MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / runHeadlessProbeMethod

Function runHeadlessProbeMethod

src/workspaces/service.ts:462–486  ·  view source on GitHub ↗
(
    ws: WorkspaceMeta,
    adapter: CliAdapter,
    resume: SessionFactoryContext['resume'],
    prompt: string,
    timeoutMs: number,
  )

Source from the content-addressed store, hash-verified

460 };
461
462 const runHeadlessProbeMethod = async (
463 ws: WorkspaceMeta,
464 adapter: CliAdapter,
465 resume: SessionFactoryContext['resume'],
466 prompt: string,
467 timeoutMs: number,
468 ): Promise<HeadlessProbeResult> => {
469 await ensureAgentCredentialReady({
470 meta: ws,
471 agentId: adapter.id,
472 adapter,
473 logger: launcherLogger,
474 });
475 const { command, cwd, env, transcriptDir } = composeSpawnInputs(ws, adapter, resume);
476 return runHeadlessProbe({
477 command,
478 cwd,
479 env,
480 transcriptDir,
481 transcriptFileRe: adapter.transcriptFileRe ?? null,
482 prompt,
483 timeoutMs,
484 logger: launcherLogger.child({ scope: 'probe', wsId: ws.id, agent: adapter.id }),
485 });
486 };
487
488 const runHeadlessTaskMethod = async (
489 ws: WorkspaceMeta,

Callers

nothing calls this directly

Calls 4

composeSpawnInputsFunction · 0.85
runHeadlessProbeFunction · 0.85
childMethod · 0.80

Tested by

no test coverage detected