@hearsay-tools/squawk 0.18.0-dev.7472 → 0.18.0-dev.7479
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ci-wait/tool-catalog.js +1 -0
- package/dist/ci-wait/tool-catalog.js.map +1 -1
- package/dist/ci-wait/tools.d.ts +4 -4
- package/dist/core/backend-detect.d.ts +7 -2
- package/dist/core/backend-detect.js +16 -136
- package/dist/core/backend-detect.js.map +1 -1
- package/dist/core/claude-cli-runner.d.ts +1 -8
- package/dist/core/claude-cli-runner.js +2 -28
- package/dist/core/claude-cli-runner.js.map +1 -1
- package/dist/core/codex-app-server-runner.d.ts +1 -9
- package/dist/core/codex-app-server-runner.js +2 -29
- package/dist/core/codex-app-server-runner.js.map +1 -1
- package/dist/core/omp-runner.d.ts +1 -9
- package/dist/core/omp-runner.js +2 -33
- package/dist/core/omp-runner.js.map +1 -1
- package/dist/core/opencode-server-runner.d.ts +1 -9
- package/dist/core/opencode-server-runner.js +2 -29
- package/dist/core/opencode-server-runner.js.map +1 -1
- package/dist/core/pi-args.d.ts +0 -4
- package/dist/core/pi-args.js +0 -5
- package/dist/core/pi-args.js.map +1 -1
- package/dist/core/pi-runner.d.ts +1 -17
- package/dist/core/pi-runner.js +3 -38
- package/dist/core/pi-runner.js.map +1 -1
- package/dist/core/runner-cli.d.ts +0 -20
- package/dist/core/runner-cli.js +3 -10
- package/dist/core/runner-cli.js.map +1 -1
- package/dist/core/runner-definition.d.ts +58 -1
- package/dist/core/runner-definition.js.map +1 -1
- package/dist/jobs/cli.js +18 -4
- package/dist/jobs/cli.js.map +1 -1
- package/dist/jobs/command.js +1 -1
- package/dist/jobs/command.js.map +1 -1
- package/dist/jobs/job.d.ts +17 -0
- package/dist/jobs/job.js +29 -2
- package/dist/jobs/job.js.map +1 -1
- package/dist/runners/claude/cli.d.ts +11 -0
- package/dist/runners/claude/cli.js +7 -0
- package/dist/runners/claude/cli.js.map +1 -0
- package/dist/runners/claude/definition.js +6 -0
- package/dist/runners/claude/definition.js.map +1 -1
- package/dist/runners/claude/detection.d.ts +12 -0
- package/dist/runners/claude/detection.js +17 -0
- package/dist/runners/claude/detection.js.map +1 -0
- package/dist/runners/claude/spec-support.d.ts +8 -0
- package/dist/runners/claude/spec-support.js +30 -0
- package/dist/runners/claude/spec-support.js.map +1 -0
- package/dist/runners/codex/cli.d.ts +11 -0
- package/dist/runners/codex/cli.js +7 -0
- package/dist/runners/codex/cli.js.map +1 -0
- package/dist/runners/codex/definition.js +6 -0
- package/dist/runners/codex/definition.js.map +1 -1
- package/dist/runners/codex/detection.d.ts +8 -0
- package/dist/runners/codex/detection.js +14 -0
- package/dist/runners/codex/detection.js.map +1 -0
- package/dist/runners/codex/spec-support.d.ts +9 -0
- package/dist/runners/codex/spec-support.js +31 -0
- package/dist/runners/codex/spec-support.js.map +1 -0
- package/dist/runners/omp/cli.d.ts +9 -0
- package/dist/runners/omp/cli.js +8 -0
- package/dist/runners/omp/cli.js.map +1 -0
- package/dist/runners/omp/definition.js +6 -0
- package/dist/runners/omp/definition.js.map +1 -1
- package/dist/runners/omp/detection.d.ts +8 -0
- package/dist/runners/omp/detection.js +12 -0
- package/dist/runners/omp/detection.js.map +1 -0
- package/dist/runners/omp/spec-support.d.ts +9 -0
- package/dist/runners/omp/spec-support.js +35 -0
- package/dist/runners/omp/spec-support.js.map +1 -0
- package/dist/runners/opencode/cli.d.ts +12 -0
- package/dist/runners/opencode/cli.js +7 -0
- package/dist/runners/opencode/cli.js.map +1 -0
- package/dist/runners/opencode/definition.js +6 -0
- package/dist/runners/opencode/definition.js.map +1 -1
- package/dist/runners/opencode/detection.d.ts +8 -0
- package/dist/runners/opencode/detection.js +12 -0
- package/dist/runners/opencode/detection.js.map +1 -0
- package/dist/runners/opencode/spec-support.d.ts +9 -0
- package/dist/runners/opencode/spec-support.js +31 -0
- package/dist/runners/opencode/spec-support.js.map +1 -0
- package/dist/runners/pi/cli.d.ts +9 -0
- package/dist/runners/pi/cli.js +7 -0
- package/dist/runners/pi/cli.js.map +1 -0
- package/dist/runners/pi/definition.js +6 -0
- package/dist/runners/pi/definition.js.map +1 -1
- package/dist/runners/pi/detection.d.ts +8 -0
- package/dist/runners/pi/detection.js +13 -0
- package/dist/runners/pi/detection.js.map +1 -0
- package/dist/runners/pi/spec-support.d.ts +21 -0
- package/dist/runners/pi/spec-support.js +44 -0
- package/dist/runners/pi/spec-support.js.map +1 -0
- package/dist/server-install/steps.js +7 -10
- package/dist/server-install/steps.js.map +1 -1
- package/package.json +4 -4
- package/scripts/mock-lifecycle.mjs +1 -1
- package/scripts/mock-omp-rpc.mjs +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AgentRunner, RunnerId } from './agent-runner.ts';
|
|
1
|
+
import type { AgentRunner, AgentRunSpecSupport, RunnerId } from './agent-runner.ts';
|
|
2
2
|
import type { RunnerFacts } from './runner-facts.ts';
|
|
3
3
|
import type { BackendModelMap } from './model-identity.ts';
|
|
4
4
|
import type { AgentModelSettingsStrategy } from './runner-model-settings.ts';
|
|
@@ -20,6 +20,12 @@ export interface RunnerDefinition {
|
|
|
20
20
|
readonly facts: RunnerFacts;
|
|
21
21
|
/** Imports the adapter module and builds a new runner. */
|
|
22
22
|
loadAdapter(): Promise<AgentRunner>;
|
|
23
|
+
/** Which `AgentRunSpec` fields the runner's wire honors. The adapter class reads the same data file. */
|
|
24
|
+
readonly specSupport: AgentRunSpecSupport;
|
|
25
|
+
/** How the host probe finds the runner's CLI and reads its version. Core runs the probe. */
|
|
26
|
+
readonly detection: RunnerDetection;
|
|
27
|
+
/** How a terminal starts the runner's CLI, and where the installer gets it. */
|
|
28
|
+
readonly cli: RunnerCli;
|
|
23
29
|
/** The model presets, the model id map and the reader of the native default model. */
|
|
24
30
|
readonly models: RunnerModels;
|
|
25
31
|
/** Imports the runner's model catalog adapter, which lists the models its CLI offers. */
|
|
@@ -48,5 +54,56 @@ export interface RunnerModels extends RunnerModelData {
|
|
|
48
54
|
/** Imports the runner's native-settings policy: vendor precedence, environment and provider. */
|
|
49
55
|
loadSettings(): Promise<AgentModelSettingsStrategy>;
|
|
50
56
|
}
|
|
57
|
+
/** How the host probe finds a runner's CLI (`detectEnvironment`, `core/backend-detect.ts`). */
|
|
58
|
+
export interface RunnerDetection {
|
|
59
|
+
/** The CLI's name on PATH. */
|
|
60
|
+
readonly binary: string;
|
|
61
|
+
/** The executable the host configured through the runner's `*_BIN` setting, if any. It replaces `binary`. */
|
|
62
|
+
readonly binOverride: () => string | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* What `DRY_RUN=1` reports. `always`: the bundled mock stands in, so the CLI counts as present
|
|
65
|
+
* without a spawn. `unless-bin-override`: the same, except that an explicit `binOverride`
|
|
66
|
+
* outranks the mock in the runner, so the probe still spawns it.
|
|
67
|
+
*/
|
|
68
|
+
readonly dryRun: 'always' | 'unless-bin-override';
|
|
69
|
+
/**
|
|
70
|
+
* A version line the CLI must print. A binary whose `--version` output does not match is not
|
|
71
|
+
* this CLI (a shell wrapper or an unrelated tool on PATH), and the probe reports it absent.
|
|
72
|
+
*/
|
|
73
|
+
readonly banner?: {
|
|
74
|
+
readonly pattern: RegExp;
|
|
75
|
+
readonly label: string;
|
|
76
|
+
};
|
|
77
|
+
/** The hint that goes with a CLI that answered. */
|
|
78
|
+
readonly availableHint: string;
|
|
79
|
+
/** The hint that goes with a CLI that did not answer. */
|
|
80
|
+
readonly missingHint: string;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* How a terminal starts each runner's own CLI, the take-over command of "Open in terminal" and
|
|
84
|
+
* the cockpit's copyable resume line (hearsay-tools/squawk#3642), and where the installer gets it.
|
|
85
|
+
*/
|
|
86
|
+
export interface RunnerCli {
|
|
87
|
+
/**
|
|
88
|
+
* The executable a terminal runs. `path-name`: the CLI's name on PATH. `configured`: the
|
|
89
|
+
* executable the server resolves from its `HSQ_*_BIN` override, so only the server can spell it.
|
|
90
|
+
*/
|
|
91
|
+
readonly terminalExecutable: {
|
|
92
|
+
readonly kind: 'path-name';
|
|
93
|
+
readonly name: string;
|
|
94
|
+
} | {
|
|
95
|
+
readonly kind: 'configured';
|
|
96
|
+
readonly resolve: () => string;
|
|
97
|
+
};
|
|
98
|
+
/** The arguments that reopen a recorded session, after the executable. */
|
|
99
|
+
readonly resumeArgs: (sessionId: string) => string;
|
|
100
|
+
/** Where the installer gets the CLI: an npm package, a site the operator installs from, or nowhere it knows. */
|
|
101
|
+
readonly installSource: {
|
|
102
|
+
readonly npm: string;
|
|
103
|
+
} | {
|
|
104
|
+
readonly site: string;
|
|
105
|
+
readonly label: string;
|
|
106
|
+
} | null;
|
|
107
|
+
}
|
|
51
108
|
/** Declare one runner. */
|
|
52
109
|
export declare function defineRunner(definition: RunnerDefinition): RunnerDefinition;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner-definition.js","sourceRoot":"","sources":["../../src/core/runner-definition.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"runner-definition.js","sourceRoot":"","sources":["../../src/core/runner-definition.ts"],"names":[],"mappings":"AAqGA,0BAA0B;AAC1B,MAAM,UAAU,YAAY,CAAC,UAA4B;IACvD,OAAO,UAAU,CAAC;AACpB,CAAC"}
|
package/dist/jobs/cli.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { parseArgs } from 'node:util';
|
|
2
2
|
import { commandText } from '../home/command.js';
|
|
3
|
-
import { JobError, SUPERVISE, jobDirectory, jobStatus, startJob, superviseJob, tellStarter } from './job.js';
|
|
3
|
+
import { JobError, SUPERVISE, jobDirectory, jobStatus, startJob, stopJob, superviseJob, tellStarter } from './job.js';
|
|
4
4
|
const HELP = commandText(`Usage: cez job start <name> [--dir <dir>] -- <command> [args...]
|
|
5
5
|
cez job status <name> [--dir <dir>]
|
|
6
|
+
cez job stop <name> [--dir <dir>]
|
|
6
7
|
|
|
7
8
|
start Run a long command so that it outlives this shell call, the turn and the
|
|
8
9
|
agent session. Writes its output to a log file and its exit code to an
|
|
@@ -12,6 +13,13 @@ start Run a long command so that it outlives this shell call, the turn and the
|
|
|
12
13
|
that name still runs. A name whose job ended starts again.
|
|
13
14
|
status Print JSON: "state" is "running" or "exited", with "pid", "log",
|
|
14
15
|
"exitFile", and "exitCode" when the exit file holds one.
|
|
16
|
+
stop End the job's whole process group: SIGTERM, then SIGKILL after 10 s for
|
|
17
|
+
what still runs. Stop a job with this, never with kill <pid>: that
|
|
18
|
+
reaches only the command, and its children can keep running. On Linux
|
|
19
|
+
it also ends what such a kill left behind; elsewhere nothing proves
|
|
20
|
+
that group is still the job's, so it is reported, not signalled.
|
|
21
|
+
Prints JSON with "stopped"; it is false, with exit 1, while a process
|
|
22
|
+
of the job may still run.
|
|
15
23
|
|
|
16
24
|
--dir <dir> Where the job's files live. Default: $TMPDIR, the task's temp
|
|
17
25
|
directory. Squawk keeps it across its own restart while the
|
|
@@ -25,6 +33,7 @@ status Print JSON: "state" is "running" or "exited", with "pid", "log",
|
|
|
25
33
|
-h, --help Show this help.
|
|
26
34
|
|
|
27
35
|
The command runs without a shell. For a pipeline, pass: -- sh -c '<pipeline>'.`);
|
|
36
|
+
const ACTIONS = new Set(['start', 'status', 'stop']);
|
|
28
37
|
/** `cez job`: one JSON object on stdout for a result and on stderr for an error; help is text. */
|
|
29
38
|
export async function runJobCommand(argv, env) {
|
|
30
39
|
if (argv[0] === SUPERVISE)
|
|
@@ -39,15 +48,20 @@ export async function runJobCommand(argv, env) {
|
|
|
39
48
|
try {
|
|
40
49
|
const { values, positionals } = parseArgs({ args: own, options: { dir: { type: 'string' } }, allowPositionals: true });
|
|
41
50
|
const [action, name, ...rest] = positionals;
|
|
42
|
-
if (!name || rest.length > 0 || (action
|
|
51
|
+
if (!name || rest.length > 0 || !ACTIONS.has(action))
|
|
43
52
|
throw new JobError(HELP);
|
|
44
53
|
const dir = jobDirectory(values.dir, env);
|
|
54
|
+
if (action !== 'start' && command.length > 0)
|
|
55
|
+
throw new JobError(HELP);
|
|
45
56
|
if (action === 'status') {
|
|
46
|
-
if (command.length > 0)
|
|
47
|
-
throw new JobError(HELP);
|
|
48
57
|
console.log(JSON.stringify(jobStatus(dir, name)));
|
|
49
58
|
return 0;
|
|
50
59
|
}
|
|
60
|
+
if (action === 'stop') {
|
|
61
|
+
const stopped = await stopJob(dir, name);
|
|
62
|
+
console.log(JSON.stringify(stopped));
|
|
63
|
+
return stopped.stopped ? 0 : 1;
|
|
64
|
+
}
|
|
51
65
|
console.log(JSON.stringify(await startJob({ name, dir, command, env })));
|
|
52
66
|
return 0;
|
|
53
67
|
}
|
package/dist/jobs/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/jobs/cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/jobs/cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEtH,MAAM,IAAI,GAAG,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+EA+BsD,CAAC,CAAC;AAEjF,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC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*/
|
|
15
15
|
export function jobInstructions() {
|
|
16
16
|
const command = `${ownCommand().map(shellQuote).join(' ')} job start`;
|
|
17
|
-
return `## Long commands\nTo run a command that takes longer than one shell call (a full test run, a benchmark, a measurement), start it with ${command} <name> -- <command> [args...]. It prints JSON with a long-lived \`pid\`, a \`log\` path and an \`exitFile\` path, and the command keeps running after this shell call, this turn and this session end. Then call cezar_wait with kind "process", that \`pid\` and that \`exitFile\` as \`exit_file\`, and end your turn. Replace \`start\` with \`status\` to find a job by its name later.`;
|
|
17
|
+
return `## Long commands\nTo run a command that takes longer than one shell call (a full test run, a benchmark, a measurement), start it with ${command} <name> -- <command> [args...]. It prints JSON with a long-lived \`pid\`, a \`log\` path and an \`exitFile\` path, and the command keeps running after this shell call, this turn and this session end. Then call cezar_wait with kind "process", that \`pid\` and that \`exitFile\` as \`exit_file\`, and end your turn. Replace \`start\` with \`status\` to find a job by its name later, or with \`stop\` to end it and every process it started; never \`kill\` its \`pid\`, which leaves its children running.`;
|
|
18
18
|
}
|
|
19
19
|
//# sourceMappingURL=command.js.map
|
package/dist/jobs/command.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.js","sourceRoot":"","sources":["../../src/jobs/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,wGAAwG;AACxG,MAAM,UAAU,UAAU;IACxB,MAAM,MAAM,GAAG,OAAO,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC/C,MAAM,KAAK,GAAG,aAAa,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,aAAa,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9F,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC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ED
|
@@ -36,6 +36,23 @@ export declare function jobStatus(dir: string, name: string): JobStatus;
|
|
|
36
36
|
* directory that cannot be listed holds no job this can find.
|
|
37
37
|
*/
|
|
38
38
|
export declare function jobRunsIn(dirs: readonly string[]): boolean;
|
|
39
|
+
export interface StoppedJob {
|
|
40
|
+
name: string;
|
|
41
|
+
pid: number;
|
|
42
|
+
stopped: boolean;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Ends the job's whole process group, which its supervisor leads: SIGTERM, then SIGKILL for what
|
|
46
|
+
* outlives `graceMs` (hearsay-tools/squawk#3941). A signal to the supervisor's PID alone reaches only
|
|
47
|
+
* its command, so a member that ignores SIGTERM, or a child the command started, keeps running. A
|
|
48
|
+
* group whose supervisor has already exited is still the job's while any member lives, so this also
|
|
49
|
+
* ends what such a signal left, where the record proves the group is still the job's. `stopped` is
|
|
50
|
+
* false when a member still runs, or when the group cannot be proved the job's and still runs: such a
|
|
51
|
+
* number may name another group now, and it is not signalled.
|
|
52
|
+
*/
|
|
53
|
+
export declare function stopJob(dir: string, name: string, options?: {
|
|
54
|
+
graceMs?: number;
|
|
55
|
+
}): Promise<StoppedJob>;
|
|
39
56
|
/** What the supervisor tells its starter: it holds the name, or another supervisor does. */
|
|
40
57
|
export type ClaimAnswer = {
|
|
41
58
|
claimed: true;
|
package/dist/jobs/job.js
CHANGED
|
@@ -4,8 +4,11 @@ import { constants, tmpdir } from 'node:os';
|
|
|
4
4
|
import { join, resolve } from 'node:path';
|
|
5
5
|
import { JOB_EXIT_SUFFIX, JOB_NAME, JOB_RECORD_SUFFIX } from '../process-wait/job-exit-file.js';
|
|
6
6
|
import { DatabaseSync } from 'node:sqlite';
|
|
7
|
-
import { recordedProcessLive } from '../delegation/process-liveness.js';
|
|
8
|
-
import {
|
|
7
|
+
import { processPredatesCurrentBoot, recordedProcessLive } from '../delegation/process-liveness.js';
|
|
8
|
+
import { pidExists } from '../core/process-stat.js';
|
|
9
|
+
import { processGroupAlive } from '../core/session-process.js';
|
|
10
|
+
import { groupOwned } from '../worker-scope/groups.js';
|
|
11
|
+
import { processStartToken, startOwnedGroup, stopGroup } from '../detached-process.js';
|
|
9
12
|
import { ownCommand } from './command.js';
|
|
10
13
|
/**
|
|
11
14
|
* A long command an agent starts from its own shell and leaves running (hearsay-tools/cezarion#3097).
|
|
@@ -140,6 +143,30 @@ export function jobRunsIn(dirs) {
|
|
|
140
143
|
});
|
|
141
144
|
});
|
|
142
145
|
}
|
|
146
|
+
/**
|
|
147
|
+
* Ends the job's whole process group, which its supervisor leads: SIGTERM, then SIGKILL for what
|
|
148
|
+
* outlives `graceMs` (hearsay-tools/squawk#3941). A signal to the supervisor's PID alone reaches only
|
|
149
|
+
* its command, so a member that ignores SIGTERM, or a child the command started, keeps running. A
|
|
150
|
+
* group whose supervisor has already exited is still the job's while any member lives, so this also
|
|
151
|
+
* ends what such a signal left, where the record proves the group is still the job's. `stopped` is
|
|
152
|
+
* false when a member still runs, or when the group cannot be proved the job's and still runs: such a
|
|
153
|
+
* number may name another group now, and it is not signalled.
|
|
154
|
+
*/
|
|
155
|
+
export async function stopJob(dir, name, options = {}) {
|
|
156
|
+
const record = readRecord(jobPaths(dir, name));
|
|
157
|
+
if (!record)
|
|
158
|
+
throw new JobError(`No job named ${JSON.stringify(name)} in ${dir}.`);
|
|
159
|
+
const entry = { pid: record.pid, pgid: record.pid, ...(record.start === undefined ? {} : { startToken: record.start }) };
|
|
160
|
+
// A group whose supervisor is gone is the job's only where the record proves this boot, as for a
|
|
161
|
+
// worker's groups (ADR 0032): after a reboot its number can name another group. One the record
|
|
162
|
+
// cannot prove is never signalled; a record from an earlier boot proves the job's group ended.
|
|
163
|
+
if (!pidExists(record.pid) && !groupOwned(entry)) {
|
|
164
|
+
return { name, pid: record.pid, stopped: processPredatesCurrentBoot(entry) || !processGroupAlive(record.pid) };
|
|
165
|
+
}
|
|
166
|
+
const leader = record.start === undefined ? { pid: record.pid } : { pid: record.pid, start: record.start };
|
|
167
|
+
const stopped = await stopGroup(leader, options.graceMs === undefined ? {} : { graceMs: options.graceMs });
|
|
168
|
+
return { name, pid: record.pid, stopped };
|
|
169
|
+
}
|
|
143
170
|
/**
|
|
144
171
|
* Claims `name` for this process, or answers who holds it. Read, decide and write are one write
|
|
145
172
|
* transaction, so two claimants never both find the name free. A holder that has written its exit
|
package/dist/jobs/job.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job.js","sourceRoot":"","sources":["../../src/jobs/job.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAqB,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC3H,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAChG,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C;;;;;;;;;;;;;GAaG;AAEH,MAAM,aAAa,GAAG,iBAAiB,CAAC;AACxC,MAAM,WAAW,GAAG,eAAe,CAAC;AACpC,MAAM,IAAI,GAAG,QAAQ,CAAC;AACtB,sFAAsF;AACtF,MAAM,gBAAgB,GAAG,MAAM,CAAC;AAChC,2FAA2F;AAC3F,MAAM,aAAa,GAAG,MAAM,CAAC;AAQ7B,MAAM,OAAO,QAAS,SAAQ,KAAK;CAAG;AAEt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AC,KAAK,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;QACjG,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAClG,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** How a terminal starts the Claude CLI and where the installer gets it. Data only: the definition and core read it. */
|
|
2
|
+
export declare const CLAUDE_CLI: {
|
|
3
|
+
readonly terminalExecutable: {
|
|
4
|
+
readonly kind: 'path-name';
|
|
5
|
+
readonly name: 'claude';
|
|
6
|
+
};
|
|
7
|
+
readonly resumeArgs: (id: string) => string;
|
|
8
|
+
readonly installSource: {
|
|
9
|
+
readonly npm: '@anthropic-ai/claude-code';
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** How a terminal starts the Claude CLI and where the installer gets it. Data only: the definition and core read it. */
|
|
2
|
+
export const CLAUDE_CLI = {
|
|
3
|
+
terminalExecutable: { kind: 'path-name', name: 'claude' },
|
|
4
|
+
resumeArgs: id => `--resume ${id}`,
|
|
5
|
+
installSource: { npm: '@anthropic-ai/claude-code' },
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=cli.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/runners/claude/cli.ts"],"names":[],"mappings":"AAEA,wHAAwH;AACxH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,kBAAkB,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE;IACzD,UAAU,EAAE,EAAE,CAAC,EAAE,CAAC,YAAY,EAAE,EAAE;IAClC,aAAa,EAAE,EAAE,GAAG,EAAE,2BAA2B,EAAE;CACvB,CAAC"}
|
|
@@ -3,10 +3,16 @@ import { CLAUDE_FACTS } from './facts.js';
|
|
|
3
3
|
import { CLAUDE_MODELS } from './models.js';
|
|
4
4
|
import { CLAUDE_CONFIG_FILES } from './config-files.js';
|
|
5
5
|
import { CLAUDE_EXTRA_TOOLS } from './extra-tools.js';
|
|
6
|
+
import { CLAUDE_SPEC_SUPPORT } from './spec-support.js';
|
|
7
|
+
import { CLAUDE_DETECTION } from './detection.js';
|
|
8
|
+
import { CLAUDE_CLI } from './cli.js';
|
|
6
9
|
/** The Claude runner. */
|
|
7
10
|
export const claudeRunner = defineRunner({
|
|
8
11
|
id: 'claude',
|
|
9
12
|
facts: CLAUDE_FACTS,
|
|
13
|
+
specSupport: CLAUDE_SPEC_SUPPORT,
|
|
14
|
+
detection: CLAUDE_DETECTION,
|
|
15
|
+
cli: CLAUDE_CLI,
|
|
10
16
|
loadAdapter: async () => new (await import('../../core/claude-cli-runner.js')).ClaudeCliRunner(),
|
|
11
17
|
models: {
|
|
12
18
|
...CLAUDE_MODELS,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../src/runners/claude/definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../src/runners/claude/definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,yBAAyB;AACzB,MAAM,CAAC,MAAM,YAAY,GAAG,YAAY,CAAC;IACvC,EAAE,EAAE,QAAQ;IACZ,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,mBAAmB;IAChC,SAAS,EAAE,gBAAgB;IAC3B,GAAG,EAAE,UAAU;IACf,WAAW,EAAE,KAAK,IAAI,EAAE,CAAC,IAAI,CAAC,MAAM,MAAM,CAAC,iCAAiC,CAAC,CAAC,CAAC,eAAe,EAAE;IAChG,MAAM,EAAE;QACN,GAAG,aAAa;QAChB,YAAY,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,6CAA6C,CAAC,CAAC,CAAC,2BAA2B;KACpH;IACD,gBAAgB,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,oCAAoC,CAAC,CAAC,CAAC,oBAAoB;IACvG,gBAAgB,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,oCAAoC,CAAC,CAAC,CAAC,oBAAoB;IACvG,WAAW,EAAE,mBAAmB;IAChC,UAAU,EAAE,kBAAkB;CAC/B,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** How the host probe finds the Claude CLI. Data only: the definition reads it and core runs the probe. */
|
|
2
|
+
export declare const CLAUDE_DETECTION: {
|
|
3
|
+
readonly binary: 'claude';
|
|
4
|
+
readonly binOverride: () => string | undefined;
|
|
5
|
+
readonly dryRun: 'always';
|
|
6
|
+
readonly banner: {
|
|
7
|
+
readonly pattern: RegExp;
|
|
8
|
+
readonly label: 'Claude Code';
|
|
9
|
+
};
|
|
10
|
+
readonly availableHint: 'if not authenticated, run `claude` once and log in';
|
|
11
|
+
readonly missingHint: 'install Claude Code (npm i -g @anthropic-ai/claude-code) and log in';
|
|
12
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { productEnv } from '../../core/product-env.js';
|
|
2
|
+
/** How the host probe finds the Claude CLI. Data only: the definition reads it and core runs the probe. */
|
|
3
|
+
export const CLAUDE_DETECTION = {
|
|
4
|
+
binary: 'claude',
|
|
5
|
+
// `CEZ_CLAUDE_BIN` like every other claude call site (the runner, provider-auth,
|
|
6
|
+
// open-in-app). Probing a bare `claude` reported "not installed" for a host whose
|
|
7
|
+
// only install is at a custom path — which drops claude from the composer and the
|
|
8
|
+
// installer's dependency step even though runs would have worked fine.
|
|
9
|
+
binOverride: () => productEnv('CLAUDE_BIN'),
|
|
10
|
+
dryRun: 'always',
|
|
11
|
+
// A generic `claude` binary (a shell wrapper, an unrelated tool) can shadow
|
|
12
|
+
// the real CLI on $PATH — reject anything that doesn't match the banner.
|
|
13
|
+
banner: { pattern: /^\d+\.\d+|^claude(\s+code)?\s+version\s+\d+\.\d+/i, label: 'Claude Code' },
|
|
14
|
+
availableHint: 'if not authenticated, run `claude` once and log in',
|
|
15
|
+
missingHint: 'install Claude Code (npm i -g @anthropic-ai/claude-code) and log in',
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=detection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detection.js","sourceRoot":"","sources":["../../../src/runners/claude/detection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAGvD,2GAA2G;AAC3G,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,MAAM,EAAE,QAAQ;IAChB,iFAAiF;IACjF,kFAAkF;IAClF,kFAAkF;IAClF,uEAAuE;IACvE,WAAW,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC;IAC3C,MAAM,EAAE,QAAQ;IAChB,4EAA4E;IAC5E,yEAAyE;IACzE,MAAM,EAAE,EAAE,OAAO,EAAE,mDAAmD,EAAE,KAAK,EAAE,aAAa,EAAE;IAC9F,aAAa,EAAE,oDAAoD;IACnE,WAAW,EAAE,qEAAqE;CAChD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AgentRunSpecSupport } from '../../core/agent-runner.ts';
|
|
2
|
+
/**
|
|
3
|
+
* What the claude CLI receives from each `AgentRunSpec` field (#284). Every
|
|
4
|
+
* field has a native flag or a stdin/spawn channel — this is the runner the
|
|
5
|
+
* spec was shaped around. Held against `--allowedTools`/stdin recordings by
|
|
6
|
+
* the harness parity matrix; change a row only with the mapping in `buildArgs`.
|
|
7
|
+
*/
|
|
8
|
+
export declare const CLAUDE_SPEC_SUPPORT: AgentRunSpecSupport;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { SQUAWK_SIDE_SPEC_SUPPORT } from '../../core/agent-runner.js';
|
|
2
|
+
// Data only: the adapter class and the definition read this value, so importing it loads no adapter.
|
|
3
|
+
/**
|
|
4
|
+
* What the claude CLI receives from each `AgentRunSpec` field (#284). Every
|
|
5
|
+
* field has a native flag or a stdin/spawn channel — this is the runner the
|
|
6
|
+
* spec was shaped around. Held against `--allowedTools`/stdin recordings by
|
|
7
|
+
* the harness parity matrix; change a row only with the mapping in `buildArgs`.
|
|
8
|
+
*/
|
|
9
|
+
export const CLAUDE_SPEC_SUPPORT = {
|
|
10
|
+
squawkTools: { honored: true, via: '--mcp-config and generated --allowedTools name' },
|
|
11
|
+
...SQUAWK_SIDE_SPEC_SUPPORT,
|
|
12
|
+
systemPrompt: { honored: true, via: '--append-system-prompt' },
|
|
13
|
+
skill: { honored: true, via: 'last text block /id args; context in earlier blocks' },
|
|
14
|
+
resumeFallbackSkill: { honored: true, via: 'native opening trigger only when bootstrap opens a fresh session' },
|
|
15
|
+
userPrompt: { honored: true, via: 'text block of the first stream-json user message on stdin' },
|
|
16
|
+
images: { honored: true, via: 'image blocks ahead of the text in the first stdin message' },
|
|
17
|
+
cwd: { honored: true, via: 'spawn cwd' },
|
|
18
|
+
toolGrant: { honored: true, via: '--allowedTools, through buildAllowedTools, with a bashAllowlist as Bash(<prefix>:*) entries, one per prefix; unset sends none; an empty list sends --tools "" so no built-in tool exists, and --allowedTools names only the Squawk tools' },
|
|
19
|
+
restrictCrossSessionMessaging: { honored: false, reason: 'SendMessage and ListAgents also reach the session\'s own subagents, so no outbound tool is separate from subagent messaging; inbound messages from other sessions are refused on every launch (crossSessionInbound, D3)' },
|
|
20
|
+
minimal: { honored: true, via: '--safe-mode (no CLAUDE.md, plugins, hooks, MCP servers or custom agents; auth and model selection stay), --disable-slash-commands (no skills or commands) and --no-session-persistence; not --bare, which accepts only API-key auth. Managed (policy) settings still apply' },
|
|
21
|
+
additionalDirectories: { honored: true, via: '--add-dir, once per directory' },
|
|
22
|
+
env: { honored: true, via: 'merged over the child env through buildChildEnv' },
|
|
23
|
+
model: { honored: true, via: '--model' },
|
|
24
|
+
effort: { honored: true, via: '--effort, canonical level' },
|
|
25
|
+
timeoutMs: { honored: true, via: 'wall-clock kill switch on the child process' },
|
|
26
|
+
sessionId: { honored: true, via: '--session-id, or --resume when resume is set' },
|
|
27
|
+
resume: { honored: true, via: '--resume <sessionId> in place of --session-id' },
|
|
28
|
+
resumeFallbackSystemPrompt: { honored: false, reason: 'Continue already resends spec.systemPrompt on every process; a separate fallback prompt is unused' },
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=spec-support.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spec-support.js","sourceRoot":"","sources":["../../../src/runners/claude/spec-support.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4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AE;IAChF,SAAS,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,8CAA8C,EAAE;IACjF,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,+CAA+C,EAAE;IAC/E,0BAA0B,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,mGAAmG,EAAE;CAC5J,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** How a terminal starts the Codex CLI and where the installer gets it. Data only: the definition and core read it. */
|
|
2
|
+
export declare const CODEX_CLI: {
|
|
3
|
+
readonly terminalExecutable: {
|
|
4
|
+
readonly kind: 'path-name';
|
|
5
|
+
readonly name: 'codex';
|
|
6
|
+
};
|
|
7
|
+
readonly resumeArgs: (id: string) => string;
|
|
8
|
+
readonly installSource: {
|
|
9
|
+
readonly npm: '@openai/codex';
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** How a terminal starts the Codex CLI and where the installer gets it. Data only: the definition and core read it. */
|
|
2
|
+
export const CODEX_CLI = {
|
|
3
|
+
terminalExecutable: { kind: 'path-name', name: 'codex' },
|
|
4
|
+
resumeArgs: id => `resume ${id}`,
|
|
5
|
+
installSource: { npm: '@openai/codex' },
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=cli.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/runners/codex/cli.ts"],"names":[],"mappings":"AAEA,uHAAuH;AACvH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,kBAAkB,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE;IACxD,UAAU,EAAE,EAAE,CAAC,EAAE,CAAC,UAAU,EAAE,EAAE;IAChC,aAAa,EAAE,EAAE,GAAG,EAAE,eAAe,EAAE;CACX,CAAC"}
|
|
@@ -3,10 +3,16 @@ import { CODEX_FACTS } from './facts.js';
|
|
|
3
3
|
import { CODEX_MODELS } from './models.js';
|
|
4
4
|
import { CODEX_CONFIG_FILES } from './config-files.js';
|
|
5
5
|
import { CODEX_EXTRA_TOOLS } from './extra-tools.js';
|
|
6
|
+
import { CODEX_SPEC_SUPPORT } from './spec-support.js';
|
|
7
|
+
import { CODEX_DETECTION } from './detection.js';
|
|
8
|
+
import { CODEX_CLI } from './cli.js';
|
|
6
9
|
/** The Codex runner. */
|
|
7
10
|
export const codexRunner = defineRunner({
|
|
8
11
|
id: 'codex',
|
|
9
12
|
facts: CODEX_FACTS,
|
|
13
|
+
specSupport: CODEX_SPEC_SUPPORT,
|
|
14
|
+
detection: CODEX_DETECTION,
|
|
15
|
+
cli: CODEX_CLI,
|
|
10
16
|
loadAdapter: async () => new (await import('../../core/codex-app-server-runner.js')).CodexAppServerRunner(),
|
|
11
17
|
models: {
|
|
12
18
|
...CODEX_MODELS,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../src/runners/codex/definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../src/runners/codex/definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,wBAAwB;AACxB,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC;IACtC,EAAE,EAAE,OAAO;IACX,KAAK,EAAE,WAAW;IAClB,WAAW,EAAE,kBAAkB;IAC/B,SAAS,EAAE,eAAe;IAC1B,GAAG,EAAE,SAAS;IACd,WAAW,EAAE,KAAK,IAAI,EAAE,CAAC,IAAI,CAAC,MAAM,MAAM,CAAC,uCAAuC,CAAC,CAAC,CAAC,oBAAoB,EAAE;IAC3G,MAAM,EAAE;QACN,GAAG,YAAY;QACf,YAAY,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,4CAA4C,CAAC,CAAC,CAAC,0BAA0B;KAClH;IACD,gBAAgB,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,mCAAmC,CAAC,CAAC,CAAC,mBAAmB;IACrG,gBAAgB,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,mCAAmC,CAAC,CAAC,CAAC,mBAAmB;IACrG,WAAW,EAAE,kBAAkB;IAC/B,UAAU,EAAE,iBAAiB;CAC9B,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** How the host probe finds the Codex CLI. Data only: the definition reads it and core runs the probe. */
|
|
2
|
+
export declare const CODEX_DETECTION: {
|
|
3
|
+
readonly binary: 'codex';
|
|
4
|
+
readonly binOverride: () => string | undefined;
|
|
5
|
+
readonly dryRun: 'unless-bin-override';
|
|
6
|
+
readonly availableHint: 'if not authenticated, run `codex` once and log in';
|
|
7
|
+
readonly missingHint: 'optional: install the Codex CLI (npm i -g @openai/codex) and log in to use the Codex runner';
|
|
8
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { productEnv } from '../../core/product-env.js';
|
|
2
|
+
/** How the host probe finds the Codex CLI. Data only: the definition reads it and core runs the probe. */
|
|
3
|
+
export const CODEX_DETECTION = {
|
|
4
|
+
binary: 'codex',
|
|
5
|
+
binOverride: () => productEnv('CODEX_BIN'),
|
|
6
|
+
// Dry-run stands the runner up on its bundled mock, so report it present without
|
|
7
|
+
// spawning the real CLI: `opencode --version` alone cost ~1-3 s per dry-run boot
|
|
8
|
+
// under load (hearsay-tools/cezarion#1042). An explicit CEZ_CODEX_BIN outranks the
|
|
9
|
+
// mock in the runner too, so it is still probed.
|
|
10
|
+
dryRun: 'unless-bin-override',
|
|
11
|
+
availableHint: 'if not authenticated, run `codex` once and log in',
|
|
12
|
+
missingHint: 'optional: install the Codex CLI (npm i -g @openai/codex) and log in to use the Codex runner',
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=detection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detection.js","sourceRoot":"","sources":["../../../src/runners/codex/detection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAGvD,0GAA0G;AAC1G,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,MAAM,EAAE,OAAO;IACf,WAAW,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IAC1C,iFAAiF;IACjF,iFAAiF;IACjF,mFAAmF;IACnF,iDAAiD;IACjD,MAAM,EAAE,qBAAqB;IAC7B,aAAa,EAAE,mDAAmD;IAClE,WAAW,EAAE,6FAA6F;CACxE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AgentRunSpecSupport } from '../../core/agent-runner.ts';
|
|
2
|
+
/**
|
|
3
|
+
* What the codex app-server receives from each `AgentRunSpec` field (#284).
|
|
4
|
+
* Tool access does not cross this wire: managed permissions belong to Codex;
|
|
5
|
+
* unmanaged sessions use Squawk's sandbox choice. The app-server has no per-tool
|
|
6
|
+
* allowlist, so `toolGrant` is declared dropped rather than mapped (spec
|
|
7
|
+
* 2026-07-17-permission-modes). Held against the recorded JSON-RPC by the harness parity matrix.
|
|
8
|
+
*/
|
|
9
|
+
export declare const CODEX_SPEC_SUPPORT: AgentRunSpecSupport;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { SQUAWK_SIDE_SPEC_SUPPORT } from '../../core/agent-runner.js';
|
|
2
|
+
// Data only: the adapter class and the definition read this value, so importing it loads no adapter.
|
|
3
|
+
/**
|
|
4
|
+
* What the codex app-server receives from each `AgentRunSpec` field (#284).
|
|
5
|
+
* Tool access does not cross this wire: managed permissions belong to Codex;
|
|
6
|
+
* unmanaged sessions use Squawk's sandbox choice. The app-server has no per-tool
|
|
7
|
+
* allowlist, so `toolGrant` is declared dropped rather than mapped (spec
|
|
8
|
+
* 2026-07-17-permission-modes). Held against the recorded JSON-RPC by the harness parity matrix.
|
|
9
|
+
*/
|
|
10
|
+
export const CODEX_SPEC_SUPPORT = {
|
|
11
|
+
squawkTools: { honored: true, via: 'thread/start and thread/resume dotted mcp_servers config with env_vars and default_tools_approval_mode approve' },
|
|
12
|
+
...SQUAWK_SIDE_SPEC_SUPPORT,
|
|
13
|
+
systemPrompt: { honored: true, via: 'prepended to the opening turn/start input through prependSystemPrompt' },
|
|
14
|
+
skill: { honored: true, via: 'turn/start structured skill item with listed path and text arguments' },
|
|
15
|
+
resumeFallbackSkill: { honored: true, via: 'native opening trigger only when bootstrap opens a fresh session' },
|
|
16
|
+
userPrompt: { honored: true, via: 'turn/start input text' },
|
|
17
|
+
images: { honored: false, reason: 'the adapter sends text input items only; image blocks are dropped' },
|
|
18
|
+
cwd: { honored: true, via: 'spawn cwd, and the thread/start / thread/resume cwd' },
|
|
19
|
+
toolGrant: { honored: false, reason: 'no per-tool allowlist on the app-server, so no command-prefix restriction either; managed permissions and approval policy belong to Codex' },
|
|
20
|
+
restrictCrossSessionMessaging: { honored: true, via: 'thread/start and thread/resume config features.agent_message_board=false; multi-agent tools reach only the session\'s own agents and stay as configured (hearsay-tools/cezarion#2279)' },
|
|
21
|
+
minimal: { honored: true, via: 'thread/start and thread/resume config features.hooks, features.plugins, features.apps, features.memories and features.multi_agent false, project_doc_max_bytes 0 (no AGENTS.md) and web_search disabled; sandbox read-only under a confirmed unmanaged policy or a failed requirements read, since the app-server ignores toolGrant (a discovered managed policy stays Codex\'s); thread/start ephemeral. Codex 0.164.0 has no override that stops skills or the user\'s MCP servers' },
|
|
22
|
+
additionalDirectories: { honored: false, reason: 'no extra-root mapping; managed filesystem permissions belong to Codex' },
|
|
23
|
+
env: { honored: true, via: 'merged over the child env through buildCodexAppServerEnv' },
|
|
24
|
+
model: { honored: true, via: 'thread/start and thread/resume model' },
|
|
25
|
+
effort: { honored: true, via: 'turn/start effort, canonical level' },
|
|
26
|
+
timeoutMs: { honored: true, via: 'wall-clock kill switch on the child process' },
|
|
27
|
+
sessionId: { honored: true, via: 'thread/resume threadId when resume is set; a fresh thread/start mints its own thread id' },
|
|
28
|
+
resume: { honored: true, via: 'thread/resume in place of thread/start' },
|
|
29
|
+
resumeFallbackSystemPrompt: { honored: false, reason: 'thread/resume fails a missing thread; the adapter does not open a replacement thread' },
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=spec-support.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spec-support.js","sourceRoot":"","sources":["../../../src/runners/codex/spec-support.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,qGAAqG;AAErG;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAwB;IACrD,WAAW,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,gHAAgH,EAAE;IACrJ,GAAG,wBAAwB;IAC3B,YAAY,EAAE,EAAE,OAAO,EAAE,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E,sFAAsF,EAAE;CAC/I,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** How a terminal starts the OMP CLI and where the installer gets it. Data only: the definition and core read it. */
|
|
2
|
+
export declare const OMP_CLI: {
|
|
3
|
+
readonly terminalExecutable: {
|
|
4
|
+
readonly kind: 'configured';
|
|
5
|
+
readonly resolve: () => string;
|
|
6
|
+
};
|
|
7
|
+
readonly resumeArgs: (id: string) => string;
|
|
8
|
+
readonly installSource: null;
|
|
9
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { productEnv } from '../../core/product-env.js';
|
|
2
|
+
/** How a terminal starts the OMP CLI and where the installer gets it. Data only: the definition and core read it. */
|
|
3
|
+
export const OMP_CLI = {
|
|
4
|
+
terminalExecutable: { kind: 'configured', resolve: () => productEnv('OMP_BIN') ?? 'omp' },
|
|
5
|
+
resumeArgs: id => `--resume ${id}`,
|
|
6
|
+
installSource: null,
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=cli.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/runners/omp/cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAGvD,qHAAqH;AACrH,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,kBAAkB,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,KAAK,EAAE;IACzF,UAAU,EAAE,EAAE,CAAC,EAAE,CAAC,YAAY,EAAE,EAAE;IAClC,aAAa,EAAE,IAAI;CACS,CAAC"}
|
|
@@ -3,10 +3,16 @@ import { OMP_FACTS } from './facts.js';
|
|
|
3
3
|
import { OMP_MODELS } from './models.js';
|
|
4
4
|
import { OMP_CONFIG_FILES } from './config-files.js';
|
|
5
5
|
import { OMP_EXTRA_TOOLS } from './extra-tools.js';
|
|
6
|
+
import { OMP_SPEC_SUPPORT } from './spec-support.js';
|
|
7
|
+
import { OMP_DETECTION } from './detection.js';
|
|
8
|
+
import { OMP_CLI } from './cli.js';
|
|
6
9
|
/** The OMP runner. */
|
|
7
10
|
export const ompRunner = defineRunner({
|
|
8
11
|
id: 'omp',
|
|
9
12
|
facts: OMP_FACTS,
|
|
13
|
+
specSupport: OMP_SPEC_SUPPORT,
|
|
14
|
+
detection: OMP_DETECTION,
|
|
15
|
+
cli: OMP_CLI,
|
|
10
16
|
loadAdapter: async () => new (await import('../../core/omp-runner.js')).OmpRunner(),
|
|
11
17
|
models: {
|
|
12
18
|
...OMP_MODELS,
|