fix(server): load only the Linux process birth probe

This commit is contained in:
Codex committed 2026-11-14 10:58:29 -06:00
1 parent 92528d130d
commit 7622f7b379
3 files changed
+18 -3

No files matched your search

@@ -44,7 +44,7 @@ const runnerDist = resolve(runnerRoot, "dist");
// The only entry points server/src actually imports from the vendored
// runner, including the installed-runtime readiness probe surface.
const ENTRY_POINT_NAMES = ["index.js", "testing.js", "live/index.js"];
const ENTRY_POINT_NAMES = ["index.js", "testing.js", "live/index.js", "live/linux-process-start.js"];
const NODE_BUILTINS = new Set([
...builtinModules,
+2 -2
View File
@@ -1,7 +1,7 @@
import { execFile } from "node:child_process";
import fs from "node:fs/promises";
import path from "node:path";
import type { LinuxProcessStartOptions } from "../vendor/paperclip-runner/index.js";
import type { LinuxProcessStartOptions } from "../vendor/paperclip-runner/live/linux-process-start.js";
import {
resolvePaperclipHomeDir,
resolvePaperclipInstanceId,
@@ -186,7 +186,7 @@ export async function readProcessStartedAt(
const runCommand = options.runCommand ?? runProcessCommand;
if (platform === "linux") {
const { readLinuxProcessStartedAt } = await import("../vendor/paperclip-runner/index.js");
const { readLinuxProcessStartedAt } = await import("../vendor/paperclip-runner/live/linux-process-start.js");
return readLinuxProcessStartedAt(pid, options.linuxProcessStart);
}
@@ -0,0 +1,15 @@
import type { LinuxProcessStartOptions } from "@paperclipai/paperclip-runner";
export type { LinuxProcessStartOptions };
type LinuxProcessStartModule = Pick<
typeof import("@paperclipai/paperclip-runner"),
"readLinuxProcessStartedAt"
>;
const sourceUrl = new URL(
"../../../../../packages/paperclip-runner/src/live/linux-process-start.ts",
import.meta.url,
);
const linuxProcessStart = (await import(sourceUrl.href)) as LinuxProcessStartModule;
export const readLinuxProcessStartedAt = linuxProcessStart.readLinuxProcessStartedAt;