fix(computer-use): isolate worker process entry

This commit is contained in:
usr-bin-roygbiv
2026-07-25 07:13:12 +00:00
parent f1fb05df80
commit a7e988b604
15 changed files with 86 additions and 67 deletions
@@ -10,6 +10,8 @@ export interface CodingAgentCompileOptions {
readonly repoRoot: string;
/** Absolute CLI entrypoint. */
readonly entrypoint: string;
/** Additional worker modules embedded as independently evaluated process entries. */
readonly workerEntrypoints?: readonly string[];
/** Absolute standalone executable output path. */
readonly outfile: string;
/** Concrete Transformers.js version baked into the tiny-model worker. */
@@ -33,7 +35,7 @@ export async function compileCodingAgent(options: CodingAgentCompileOptions): Pr
}
try {
const output = await Bun.build({
entrypoints: [options.entrypoint],
entrypoints: [options.entrypoint, ...(options.workerEntrypoints ?? [])],
root: options.repoRoot,
external: [...COMPILED_EXTERNAL_DEPENDENCIES],
define: {