@hearsay-tools/squawk 0.18.0-pr3688.6747 → 0.18.0-pr3688.6766
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/contract/index.d.ts +1 -0
- package/dist/contract/index.js +73 -3
- package/dist/contract/runner-facts.d.ts +91 -0
- package/dist/contract/runs.d.ts +31 -4
- package/dist/core/claude-cli-runner.d.ts +5 -0
- package/dist/core/codex-app-server-runner.d.ts +5 -0
- package/dist/core/cursor-print-runner.d.ts +5 -0
- package/dist/core/cursor-runner.d.ts +5 -0
- package/dist/core/omp-runner.d.ts +5 -0
- package/dist/core/opencode-server-runner.d.ts +5 -0
- package/dist/core/pi-runner.d.ts +5 -0
- package/dist/core/runner-cli.d.ts +31 -0
- package/dist/core/runner-cli.js +40 -0
- package/dist/core/runner-cli.js.map +1 -0
- package/dist/core/runner-facts.d.ts +57 -0
- package/dist/core/runner-facts.js +53 -0
- package/dist/core/runner-facts.js.map +1 -1
- package/dist/core/runner-model-catalog.js +2 -9
- package/dist/core/runner-model-catalog.js.map +1 -1
- package/dist/delegation/conversations.d.ts +8 -2
- package/dist/delegation/execution-identity.js +2 -1
- package/dist/delegation/execution-identity.js.map +1 -1
- package/dist/delegation/routes.d.ts +11 -11
- package/dist/delegation/transport.d.ts +15 -15
- package/dist/runs/legacy-run-rows.d.ts +8 -0
- package/dist/runs/legacy-run-rows.js +19 -0
- package/dist/runs/legacy-run-rows.js.map +1 -1
- package/dist/runs/run-exits.d.ts +1366 -51
- package/dist/runs/run-exits.js +18 -7
- package/dist/runs/run-exits.js.map +1 -1
- package/dist/runs/store.d.ts +11 -2
- package/dist/runs/store.js +4 -4
- package/dist/runs/store.js.map +1 -1
- package/dist/serve-boot.js +1 -0
- package/dist/serve-boot.js.map +1 -1
- package/dist/server/checkout.d.ts +1 -1
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/open-in-targets.d.ts +1 -1
- package/dist/server/open-in-targets.js +5 -12
- package/dist/server/open-in-targets.js.map +1 -1
- package/dist/server/provider-action-gate.js +3 -10
- package/dist/server/provider-action-gate.js.map +1 -1
- package/dist/server/server.d.ts +294 -247
- package/dist/server/server.js +33 -68
- package/dist/server/server.js.map +1 -1
- package/dist/workflows/continuation-admission.d.ts +4 -1
- package/dist/workflows/run/auto-resume.d.ts +9 -8
- package/dist/workflows/run/auto-resume.js +17 -27
- package/dist/workflows/run/auto-resume.js.map +1 -1
- package/dist/workflows/run/compose.d.ts +3 -0
- package/dist/workflows/run/compose.js +13 -12
- package/dist/workflows/run/compose.js.map +1 -1
- package/dist/workflows/run/continuation-session.js +2 -0
- package/dist/workflows/run/continuation-session.js.map +1 -1
- package/dist/workflows/run/family-reconciler.d.ts +4 -5
- package/dist/workflows/run/family-reconciler.js +9 -19
- package/dist/workflows/run/family-reconciler.js.map +1 -1
- package/dist/workflows/run/inbox-claims.d.ts +3 -4
- package/dist/workflows/run/inbox-claims.js +7 -17
- package/dist/workflows/run/inbox-claims.js.map +1 -1
- package/dist/workflows/run/input-delivery.d.ts +3 -1
- package/dist/workflows/run/input-delivery.js +14 -15
- package/dist/workflows/run/input-delivery.js.map +1 -1
- package/dist/workflows/run/input-timers.js +3 -2
- package/dist/workflows/run/input-timers.js.map +1 -1
- package/dist/workflows/run/launch-read-resolver.d.ts +4 -1
- package/dist/workflows/run/launch-read-resolver.js +24 -9
- package/dist/workflows/run/launch-read-resolver.js.map +1 -1
- package/dist/workflows/run/liveness-timers.d.ts +97 -0
- package/dist/workflows/run/liveness-timers.js +130 -0
- package/dist/workflows/run/liveness-timers.js.map +1 -0
- package/dist/workflows/run/run-memory.d.ts +11 -3
- package/dist/workflows/run/run-memory.js +34 -8
- package/dist/workflows/run/run-memory.js.map +1 -1
- package/dist/workflows/run/run-settlement.d.ts +9 -4
- package/dist/workflows/run/run-settlement.js +25 -12
- package/dist/workflows/run/run-settlement.js.map +1 -1
- package/dist/workflows/run/squawk-tools.js +2 -0
- package/dist/workflows/run/squawk-tools.js.map +1 -1
- package/dist/workflows/run/step-loop.d.ts +2 -2
- package/dist/workflows/run/step-loop.js +8 -3
- package/dist/workflows/run/step-loop.js.map +1 -1
- package/dist/workflows/run/subagent-waits.d.ts +3 -5
- package/dist/workflows/run/subagent-waits.js +13 -32
- package/dist/workflows/run/subagent-waits.js.map +1 -1
- package/dist/workflows/run/turn-nudges.d.ts +3 -1
- package/dist/workflows/run/turn-nudges.js +9 -6
- package/dist/workflows/run/turn-nudges.js.map +1 -1
- package/dist/workflows/run/turn-settler.d.ts +3 -1
- package/dist/workflows/run/turn-settler.js +7 -4
- package/dist/workflows/run/turn-settler.js.map +1 -1
- package/dist/workflows/run/wait-engine.d.ts +4 -1
- package/dist/workflows/run/wake-retries.d.ts +5 -7
- package/dist/workflows/run/wake-retries.js +17 -42
- package/dist/workflows/run/wake-retries.js.map +1 -1
- package/dist/workflows/run/worker-executions.js +2 -0
- package/dist/workflows/run/worker-executions.js.map +1 -1
- package/dist/workflows/run/workflow-position.d.ts +1 -0
- package/dist/workflows/run/workflow-position.js +1 -0
- package/dist/workflows/run/workflow-position.js.map +1 -1
- package/dist/workflows/run-scheduling.d.ts +4 -1
- package/dist/workflows/run-scheduling.js +10 -1
- package/dist/workflows/run-scheduling.js.map +1 -1
- package/dist/workflows/run-states.js +5 -2
- package/dist/workflows/run-states.js.map +1 -1
- package/dist/workflows/run.js +9 -2
- package/dist/workflows/run.js.map +1 -1
- package/package.json +4 -4
- package/scripts/mock-pi-rpc.mjs +9 -4
- package/web/dist/assets/{activity-motion-DMp6Uo_E.js → activity-motion-BuYyx7FA.js} +1 -1
- package/web/dist/assets/{activity-route-D04JxCzp.js → activity-route-CwCOUHW_.js} +1 -1
- package/web/dist/assets/agent-accounts-otlDWnij.js +18 -0
- package/web/dist/assets/attention-CVI366xV.js +1 -0
- package/web/dist/assets/{commit-diff-panel-Din879JP.js → commit-diff-panel-DfroYfL1.js} +1 -1
- package/web/dist/assets/{diff-Btt23N3M.js → diff-DFr6upJd.js} +2 -2
- package/web/dist/assets/{diff-view-CfWaBIJu.js → diff-view-OL2OUW_-.js} +1 -1
- package/web/dist/assets/{file-preview-DcznUbkx.js → file-preview-BAeoEunx.js} +1 -1
- package/web/dist/assets/{git-toolbar-DUnmDIe8.js → git-toolbar-Cqn20cT3.js} +1 -1
- package/web/dist/assets/{github-C6OOf2Jp.js → github-CTdVmXHk.js} +1 -1
- package/web/dist/assets/{global-activity-route-ko4iBoc3.js → global-activity-route-BeK5uyF4.js} +1 -1
- package/web/dist/assets/index-dSavRQY0.js +17 -0
- package/web/dist/assets/{preview-pane-connected-gIoE5-9m.js → preview-pane-connected-DjLnuD1-.js} +1 -1
- package/web/dist/assets/{project-router-oKsNlPN6.js → project-router-WQWd3UUn.js} +1 -1
- package/web/dist/assets/project-scope-context-bgdvGX9z.js +4 -0
- package/web/dist/assets/{prompt-template-menu-C3d8Xkvo.js → prompt-template-menu-BJfUg1uF.js} +1 -1
- package/web/dist/assets/queries-BJM44umy.js +1 -0
- package/web/dist/assets/{reference-chip-BliLpdSz.js → reference-chip-vraIzoEF.js} +1 -1
- package/web/dist/assets/{repo-git-DGrhzyWR.js → repo-git-DOlTO-ta.js} +1 -1
- package/web/dist/assets/{report-reader-C2yXiPa9.js → report-reader-CRavuX2Z.js} +1 -1
- package/web/dist/assets/{reports-mmONzYgk.js → reports-Bb3vtVsH.js} +1 -1
- package/web/dist/assets/run-header-Cxdc-XhG.js +2 -0
- package/web/dist/assets/{skills-N0vkndca.js → skills-B1O4s2Wq.js} +1 -1
- package/web/dist/assets/{tab-link-Buy1fRFO.js → tab-link-DiNYVlpl.js} +1 -1
- package/web/dist/assets/{task-changes-BhvqWHW7.js → task-changes-CSLkTX4c.js} +1 -1
- package/web/dist/assets/{task-commits-RGVmBirX.js → task-commits-BX7KxbwA.js} +1 -1
- package/web/dist/assets/{task-files-B-W_PC8S.js → task-files-DRM-mV9P.js} +1 -1
- package/web/dist/assets/{task-github-item-csNEiMBa.js → task-github-item-B6kB4xf0.js} +1 -1
- package/web/dist/assets/task-thread-BcnNZTky.js +9 -0
- package/web/dist/assets/{thread-state-DeDb0lsY.js → thread-state-BYfJknDB.js} +1 -1
- package/web/dist/assets/{use-desktop-jIeTPw3K.js → use-desktop-Ct4lvA3b.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-CIysCyMM.js → use-hand-to-agent-state-CIs3NcrF.js} +1 -1
- package/web/dist/assets/{useInfiniteQuery-Yn58_Fkn.js → useInfiniteQuery-s3lTx_YX.js} +1 -1
- package/web/dist/assets/useQuery-C0ee1rw5.js +1 -0
- package/web/dist/assets/workflows-CN39y1QZ.js +7 -0
- package/web/dist/assets/{ws-DbXGHAke.js → ws-WW6DrfbT.js} +1 -1
- package/web/dist/index.html +12 -12
- package/web/dist/assets/agent-accounts-C48RdN3o.js +0 -18
- package/web/dist/assets/attention-BF8NA1XM.js +0 -1
- package/web/dist/assets/index-C3YyGC-J.js +0 -17
- package/web/dist/assets/project-scope-context-BBVJVcJp.js +0 -4
- package/web/dist/assets/queries-Be8VyHam.js +0 -1
- package/web/dist/assets/run-header-Cin11tct.js +0 -2
- package/web/dist/assets/task-thread-B23Uq5iQ.js +0 -9
- package/web/dist/assets/useQuery-C1xFF0nd.js +0 -1
- package/web/dist/assets/workflows-k0YtC-LB.js +0 -7
package/dist/contract/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './pending-ask.ts';
|
|
|
8
8
|
export * from './delegation.ts';
|
|
9
9
|
export * from './effort.ts';
|
|
10
10
|
export * from './health.ts';
|
|
11
|
+
export * from './runner-facts.ts';
|
|
11
12
|
export * from './runs.ts';
|
|
12
13
|
export * from './task-options.ts';
|
|
13
14
|
export * from './run-labels.ts';
|
package/dist/contract/index.js
CHANGED
|
@@ -1115,6 +1115,67 @@ var healthResponseSchema = z12.object({
|
|
|
1115
1115
|
bootProject: z12.string()
|
|
1116
1116
|
});
|
|
1117
1117
|
|
|
1118
|
+
// ../contract/src/runner-facts.ts
|
|
1119
|
+
var RUNNER_COCKPIT_FACTS = {
|
|
1120
|
+
claude: {
|
|
1121
|
+
displayName: "Claude Code",
|
|
1122
|
+
modelListName: "Claude",
|
|
1123
|
+
modelCatalogDelivery: "on-request",
|
|
1124
|
+
effortLevels: "catalog-or-generic",
|
|
1125
|
+
modelIdScope: "own",
|
|
1126
|
+
inputMode: "steer"
|
|
1127
|
+
},
|
|
1128
|
+
codex: {
|
|
1129
|
+
displayName: "Codex",
|
|
1130
|
+
modelListName: "Codex",
|
|
1131
|
+
modelCatalogDelivery: "on-request",
|
|
1132
|
+
effortLevels: "catalog-or-generic",
|
|
1133
|
+
modelIdScope: "own",
|
|
1134
|
+
inputMode: "steer"
|
|
1135
|
+
},
|
|
1136
|
+
opencode: {
|
|
1137
|
+
displayName: "OpenCode",
|
|
1138
|
+
modelListName: "OpenCode",
|
|
1139
|
+
modelCatalogDelivery: "on-request",
|
|
1140
|
+
effortLevels: "catalog-or-generic",
|
|
1141
|
+
modelIdScope: "provider-spanning",
|
|
1142
|
+
inputMode: "steer"
|
|
1143
|
+
},
|
|
1144
|
+
pi: {
|
|
1145
|
+
displayName: "pi",
|
|
1146
|
+
modelListName: "Pi",
|
|
1147
|
+
modelCatalogDelivery: "on-request",
|
|
1148
|
+
effortLevels: "catalog-or-generic",
|
|
1149
|
+
modelIdScope: "provider-spanning",
|
|
1150
|
+
inputMode: "steer"
|
|
1151
|
+
},
|
|
1152
|
+
cursor: {
|
|
1153
|
+
displayName: "Cursor",
|
|
1154
|
+
modelListName: "Cursor",
|
|
1155
|
+
modelCatalogDelivery: "pushed",
|
|
1156
|
+
effortLevels: "catalog-only",
|
|
1157
|
+
modelIdScope: "any-provider",
|
|
1158
|
+
inputMode: "boundary"
|
|
1159
|
+
},
|
|
1160
|
+
omp: {
|
|
1161
|
+
displayName: "OMP",
|
|
1162
|
+
modelListName: "OMP",
|
|
1163
|
+
modelCatalogDelivery: "on-request",
|
|
1164
|
+
effortLevels: "catalog-or-generic",
|
|
1165
|
+
modelIdScope: "provider-spanning",
|
|
1166
|
+
inputMode: "steer"
|
|
1167
|
+
}
|
|
1168
|
+
};
|
|
1169
|
+
function runnerDisplayName(runner) {
|
|
1170
|
+
return RUNNER_COCKPIT_FACTS[runner].displayName;
|
|
1171
|
+
}
|
|
1172
|
+
function runnerModelListName(runner) {
|
|
1173
|
+
return RUNNER_COCKPIT_FACTS[runner].modelListName;
|
|
1174
|
+
}
|
|
1175
|
+
function cockpitRunnersWhere(matches) {
|
|
1176
|
+
return Object.keys(RUNNER_COCKPIT_FACTS).filter((runner) => matches(RUNNER_COCKPIT_FACTS[runner]));
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1118
1179
|
// ../contract/src/runs.ts
|
|
1119
1180
|
import { z as z20 } from "zod";
|
|
1120
1181
|
|
|
@@ -2520,6 +2581,7 @@ var runPullRequestSchema = z20.object({
|
|
|
2520
2581
|
url: z20.string().regex(/^https?:\/\/github\.com\/[a-z0-9_.-]+\/[a-z0-9_.-]+\/pull\/\d+\/?(?:[?#][^\s]*)?$/i).optional(),
|
|
2521
2582
|
source: z20.enum(["declared", "created"])
|
|
2522
2583
|
}).refine((entry) => entry.url === void 0 || Number(/\/pull\/(\d+)/i.exec(entry.url)?.[1]) === entry.number, { message: "PR URL and number must agree" });
|
|
2584
|
+
var workflowCursorSchema = z20.object({ stepId: z20.string(), mode: z20.enum(["resume", "start"]) });
|
|
2523
2585
|
var runRecordSchema = z20.object({
|
|
2524
2586
|
id: z20.string(),
|
|
2525
2587
|
title: z20.string(),
|
|
@@ -2537,8 +2599,10 @@ var runRecordSchema = z20.object({
|
|
|
2537
2599
|
stopping: z20.boolean().optional(),
|
|
2538
2600
|
/** Opening Continue message, retained until its first completed turn for crash recovery. */
|
|
2539
2601
|
continuationMessage: continuationMessageSchema.optional(),
|
|
2540
|
-
/**
|
|
2541
|
-
|
|
2602
|
+
/** The workflow step the run goes on from (ADR 0064): `resume` continues that step's session (a
|
|
2603
|
+
* failed attempt awaiting CI recovery or a provider retry), `start` runs it after a Continue
|
|
2604
|
+
* completed the step before it. Only the run exits write it (`runs/run-exits.ts`). */
|
|
2605
|
+
workflowCursor: workflowCursorSchema.optional(),
|
|
2542
2606
|
/** The last turn carried a malformed explicit structured question. */
|
|
2543
2607
|
invalidAsk: z20.boolean().optional(),
|
|
2544
2608
|
/** Owned-run authority; absence is legacy, invalid is explicitly quarantined. */
|
|
@@ -2739,7 +2803,8 @@ var apiRunSchema = runRecordSchema.extend({
|
|
|
2739
2803
|
/** Read-only GET /runs/:id verdict: null permits Finish, a string explains refusal.
|
|
2740
2804
|
* Absent on lists, stored records and mutation responses; absence is not permission. */
|
|
2741
2805
|
finishBlocked: z20.string().nullable().optional(),
|
|
2742
|
-
/**
|
|
2806
|
+
/** The server's take-over command for the run's latest session, with the executable the server
|
|
2807
|
+
* resolves. Absent without a session or for an id the server refuses. Never persisted. */
|
|
2743
2808
|
cliResumeCommand: z20.string().optional(),
|
|
2744
2809
|
usage: processUsageSchema.optional()
|
|
2745
2810
|
});
|
|
@@ -5870,6 +5935,7 @@ export {
|
|
|
5870
5935
|
RENEW_MS,
|
|
5871
5936
|
REPORTS_QUERY_MAX,
|
|
5872
5937
|
RETENTION_RUN_RULE,
|
|
5938
|
+
RUNNER_COCKPIT_FACTS,
|
|
5873
5939
|
RUNS_SEARCH_PER_PROJECT_MAX,
|
|
5874
5940
|
RUN_HISTORY_PAGE_ITEMS,
|
|
5875
5941
|
RUN_SEARCH_FIELDS,
|
|
@@ -6016,6 +6082,7 @@ export {
|
|
|
6016
6082
|
ciWaitRequestSchema,
|
|
6017
6083
|
ciWaitResultSchema,
|
|
6018
6084
|
ciWaitSchema,
|
|
6085
|
+
cockpitRunnersWhere,
|
|
6019
6086
|
commitQuerySchema,
|
|
6020
6087
|
completionActionSchema,
|
|
6021
6088
|
completionControlsShape,
|
|
@@ -6341,7 +6408,9 @@ export {
|
|
|
6341
6408
|
runWorktreeSetupSchema,
|
|
6342
6409
|
rungNeedsYou,
|
|
6343
6410
|
runnerDiscoversModels,
|
|
6411
|
+
runnerDisplayName,
|
|
6344
6412
|
runnerModelCatalogResponseSchema,
|
|
6413
|
+
runnerModelListName,
|
|
6345
6414
|
runnerModelOptionSchema,
|
|
6346
6415
|
runnerModelsSchema,
|
|
6347
6416
|
runnerSchema,
|
|
@@ -6493,6 +6562,7 @@ export {
|
|
|
6493
6562
|
workerWorkspaceSchema,
|
|
6494
6563
|
workersAllowed,
|
|
6495
6564
|
workersWaitingLabel,
|
|
6565
|
+
workflowCursorSchema,
|
|
6496
6566
|
workflowDefSchema,
|
|
6497
6567
|
workflowFileSchema,
|
|
6498
6568
|
workflowLoadIssueSchema,
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type { Runner } from './runner.ts';
|
|
2
|
+
/**
|
|
3
|
+
* What the cockpit and the server both need to know about one runner, declared once per runner
|
|
4
|
+
* id (hearsay-tools/squawk#3642). Shared code reads a row instead of comparing runner ids, so a
|
|
5
|
+
* new runner needs one new row and no new branch. The server's own wire facts live in
|
|
6
|
+
* `RUNNER_FACTS` (`packages/cezar/src/core/runner-facts.ts`); its test checks that the two agree
|
|
7
|
+
* where they state the same fact.
|
|
8
|
+
*/
|
|
9
|
+
export interface CockpitRunnerFacts {
|
|
10
|
+
/** The runner's name on provider, account and conversation surfaces and in server messages. */
|
|
11
|
+
readonly displayName: string;
|
|
12
|
+
/** The runner's name in model discovery messages and in the model picker's status line. */
|
|
13
|
+
readonly modelListName: string;
|
|
14
|
+
/**
|
|
15
|
+
* `pushed`: the server refreshes the model catalog in the background, serves the cached copy on
|
|
16
|
+
* request and pushes each change on the `models:<runner>` topic. `on-request`: each request
|
|
17
|
+
* discovers the catalog, through the server's short cache.
|
|
18
|
+
*/
|
|
19
|
+
readonly modelCatalogDelivery: 'pushed' | 'on-request';
|
|
20
|
+
/**
|
|
21
|
+
* `catalog-only`: the effort levels come only from the runner's own discovered catalog; without
|
|
22
|
+
* them the picker offers only auto. `catalog-or-generic`: without catalog levels the picker
|
|
23
|
+
* offers every generic level.
|
|
24
|
+
*/
|
|
25
|
+
readonly effortLevels: 'catalog-only' | 'catalog-or-generic';
|
|
26
|
+
/**
|
|
27
|
+
* Which model ids the runner serves. `own`: its own provider's ids, so another runner's known
|
|
28
|
+
* preset conflicts with it. `provider-spanning`: `provider/model` ids of every configured
|
|
29
|
+
* provider, so an id it lists belongs to no runner alone. `any-provider`: bare ids of every
|
|
30
|
+
* provider, so no id conflicts with it.
|
|
31
|
+
*/
|
|
32
|
+
readonly modelIdScope: 'own' | 'provider-spanning' | 'any-provider';
|
|
33
|
+
/** `steer`: input reaches the agent during its turn. `boundary`: input waits for the turn to end. */
|
|
34
|
+
readonly inputMode: 'steer' | 'boundary';
|
|
35
|
+
}
|
|
36
|
+
export declare const RUNNER_COCKPIT_FACTS: {
|
|
37
|
+
readonly claude: {
|
|
38
|
+
readonly displayName: 'Claude Code';
|
|
39
|
+
readonly modelListName: 'Claude';
|
|
40
|
+
readonly modelCatalogDelivery: 'on-request';
|
|
41
|
+
readonly effortLevels: 'catalog-or-generic';
|
|
42
|
+
readonly modelIdScope: 'own';
|
|
43
|
+
readonly inputMode: 'steer';
|
|
44
|
+
};
|
|
45
|
+
readonly codex: {
|
|
46
|
+
readonly displayName: 'Codex';
|
|
47
|
+
readonly modelListName: 'Codex';
|
|
48
|
+
readonly modelCatalogDelivery: 'on-request';
|
|
49
|
+
readonly effortLevels: 'catalog-or-generic';
|
|
50
|
+
readonly modelIdScope: 'own';
|
|
51
|
+
readonly inputMode: 'steer';
|
|
52
|
+
};
|
|
53
|
+
readonly opencode: {
|
|
54
|
+
readonly displayName: 'OpenCode';
|
|
55
|
+
readonly modelListName: 'OpenCode';
|
|
56
|
+
readonly modelCatalogDelivery: 'on-request';
|
|
57
|
+
readonly effortLevels: 'catalog-or-generic';
|
|
58
|
+
readonly modelIdScope: 'provider-spanning';
|
|
59
|
+
readonly inputMode: 'steer';
|
|
60
|
+
};
|
|
61
|
+
readonly pi: {
|
|
62
|
+
readonly displayName: 'pi';
|
|
63
|
+
readonly modelListName: 'Pi';
|
|
64
|
+
readonly modelCatalogDelivery: 'on-request';
|
|
65
|
+
readonly effortLevels: 'catalog-or-generic';
|
|
66
|
+
readonly modelIdScope: 'provider-spanning';
|
|
67
|
+
readonly inputMode: 'steer';
|
|
68
|
+
};
|
|
69
|
+
readonly cursor: {
|
|
70
|
+
readonly displayName: 'Cursor';
|
|
71
|
+
readonly modelListName: 'Cursor';
|
|
72
|
+
readonly modelCatalogDelivery: 'pushed';
|
|
73
|
+
readonly effortLevels: 'catalog-only';
|
|
74
|
+
readonly modelIdScope: 'any-provider';
|
|
75
|
+
readonly inputMode: 'boundary';
|
|
76
|
+
};
|
|
77
|
+
readonly omp: {
|
|
78
|
+
readonly displayName: 'OMP';
|
|
79
|
+
readonly modelListName: 'OMP';
|
|
80
|
+
readonly modelCatalogDelivery: 'on-request';
|
|
81
|
+
readonly effortLevels: 'catalog-or-generic';
|
|
82
|
+
readonly modelIdScope: 'provider-spanning';
|
|
83
|
+
readonly inputMode: 'steer';
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
/** The display name of a runner. */
|
|
87
|
+
export declare function runnerDisplayName(runner: Runner): string;
|
|
88
|
+
/** The runner's name in model discovery messages. */
|
|
89
|
+
export declare function runnerModelListName(runner: Runner): string;
|
|
90
|
+
/** The runners whose cockpit facts match, in the table's order. */
|
|
91
|
+
export declare function cockpitRunnersWhere(matches: (facts: CockpitRunnerFacts) => boolean): Runner[];
|
package/dist/contract/runs.d.ts
CHANGED
|
@@ -194,6 +194,15 @@ export declare const runPullRequestSchema: z.ZodObject<{
|
|
|
194
194
|
}>;
|
|
195
195
|
}, z.core.$strip>;
|
|
196
196
|
export type RunPullRequest = z.infer<typeof runPullRequestSchema>;
|
|
197
|
+
/** The workflow step a run goes on from, and how (ADR 0064). */
|
|
198
|
+
export declare const workflowCursorSchema: z.ZodObject<{
|
|
199
|
+
stepId: z.ZodString;
|
|
200
|
+
mode: z.ZodEnum<{
|
|
201
|
+
resume: "resume";
|
|
202
|
+
start: "start";
|
|
203
|
+
}>;
|
|
204
|
+
}, z.core.$strip>;
|
|
205
|
+
export type WorkflowCursor = z.infer<typeof workflowCursorSchema>;
|
|
197
206
|
export declare const runRecordSchema: z.ZodObject<{
|
|
198
207
|
archiveWhenDone: z.ZodOptional<z.ZodBoolean>;
|
|
199
208
|
autoMergePr: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -235,7 +244,13 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
235
244
|
restarted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
236
245
|
}, z.core.$strip>>;
|
|
237
246
|
}, z.core.$strip>>;
|
|
238
|
-
|
|
247
|
+
workflowCursor: z.ZodOptional<z.ZodObject<{
|
|
248
|
+
stepId: z.ZodString;
|
|
249
|
+
mode: z.ZodEnum<{
|
|
250
|
+
resume: "resume";
|
|
251
|
+
start: "start";
|
|
252
|
+
}>;
|
|
253
|
+
}, z.core.$strip>>;
|
|
239
254
|
invalidAsk: z.ZodOptional<z.ZodBoolean>;
|
|
240
255
|
delegation: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
241
256
|
role: z.ZodLiteral<"root">;
|
|
@@ -2126,7 +2141,7 @@ export type RunRecord = z.infer<typeof runRecordSchema>;
|
|
|
2126
2141
|
/**
|
|
2127
2142
|
* What `GET /runs` and `GET /runs/:id` answer: the stored record plus host-derived fields.
|
|
2128
2143
|
* The live `usage` sample is absent for finished runs and wherever `ps` yields nothing.
|
|
2129
|
-
*
|
|
2144
|
+
* The take-over command uses the server's executable override. Finish eligibility is computed
|
|
2130
2145
|
* only for detail reads. These fields are never persisted or attached by mutation routes.
|
|
2131
2146
|
*/
|
|
2132
2147
|
export declare const apiRunSchema: z.ZodObject<{
|
|
@@ -2170,7 +2185,13 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
2170
2185
|
restarted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2171
2186
|
}, z.core.$strip>>;
|
|
2172
2187
|
}, z.core.$strip>>;
|
|
2173
|
-
|
|
2188
|
+
workflowCursor: z.ZodOptional<z.ZodObject<{
|
|
2189
|
+
stepId: z.ZodString;
|
|
2190
|
+
mode: z.ZodEnum<{
|
|
2191
|
+
resume: "resume";
|
|
2192
|
+
start: "start";
|
|
2193
|
+
}>;
|
|
2194
|
+
}, z.core.$strip>>;
|
|
2174
2195
|
invalidAsk: z.ZodOptional<z.ZodBoolean>;
|
|
2175
2196
|
delegation: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2176
2197
|
role: z.ZodLiteral<"root">;
|
|
@@ -4880,7 +4901,13 @@ export declare const createRunResponseSchema: z.ZodObject<{
|
|
|
4880
4901
|
restarted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
4881
4902
|
}, z.core.$strip>>;
|
|
4882
4903
|
}, z.core.$strip>>;
|
|
4883
|
-
|
|
4904
|
+
workflowCursor: z.ZodOptional<z.ZodObject<{
|
|
4905
|
+
stepId: z.ZodString;
|
|
4906
|
+
mode: z.ZodEnum<{
|
|
4907
|
+
resume: "resume";
|
|
4908
|
+
start: "start";
|
|
4909
|
+
}>;
|
|
4910
|
+
}, z.core.$strip>>;
|
|
4884
4911
|
invalidAsk: z.ZodOptional<z.ZodBoolean>;
|
|
4885
4912
|
delegation: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4886
4913
|
role: z.ZodLiteral<"root">;
|
|
@@ -30,6 +30,11 @@ export declare class ClaudeCliRunner implements AgentRunner {
|
|
|
30
30
|
readonly specSupport: Readonly<Record<keyof AgentRunSpec, import("./agent-runner.ts").SpecFieldSupport>>;
|
|
31
31
|
readonly systemPromptOnResume: "resent";
|
|
32
32
|
readonly facts: {
|
|
33
|
+
readonly childWork: 'nested';
|
|
34
|
+
readonly hookEvents: 'reported';
|
|
35
|
+
readonly nativePermission: 'none';
|
|
36
|
+
readonly transport: 'stdio';
|
|
37
|
+
readonly humanPromptHold: 'none';
|
|
33
38
|
readonly inputDelivery: {
|
|
34
39
|
readonly mode: 'steer';
|
|
35
40
|
readonly consumption: 'observable';
|
|
@@ -33,6 +33,11 @@ export declare class CodexAppServerRunner implements AgentRunner {
|
|
|
33
33
|
readonly specSupport: Readonly<Record<keyof AgentRunSpec, import("./agent-runner.ts").SpecFieldSupport>>;
|
|
34
34
|
readonly systemPromptOnResume: "in-thread";
|
|
35
35
|
readonly facts: {
|
|
36
|
+
readonly childWork: 'nested';
|
|
37
|
+
readonly hookEvents: 'reported';
|
|
38
|
+
readonly nativePermission: 'in-turn';
|
|
39
|
+
readonly transport: 'stdio';
|
|
40
|
+
readonly humanPromptHold: 'consumption';
|
|
36
41
|
readonly inputDelivery: {
|
|
37
42
|
readonly mode: 'steer';
|
|
38
43
|
readonly consumption: 'observable';
|
|
@@ -20,6 +20,11 @@ export declare class CursorPrintRunner implements AgentRunner {
|
|
|
20
20
|
readonly specSupport: Readonly<Record<keyof AgentRunSpec, import("./agent-runner.ts").SpecFieldSupport>>;
|
|
21
21
|
readonly systemPromptOnResume: "in-thread";
|
|
22
22
|
readonly facts: {
|
|
23
|
+
readonly childWork: 'none';
|
|
24
|
+
readonly hookEvents: 'none';
|
|
25
|
+
readonly nativePermission: 'none';
|
|
26
|
+
readonly transport: 'stdio';
|
|
27
|
+
readonly humanPromptHold: 'turn-end';
|
|
23
28
|
readonly inputDelivery: {
|
|
24
29
|
readonly mode: 'boundary';
|
|
25
30
|
readonly consumption: 'unobservable';
|
|
@@ -22,6 +22,11 @@ export declare class CursorRunner implements AgentRunner {
|
|
|
22
22
|
readonly backend: 'cursor';
|
|
23
23
|
readonly specSupport: Readonly<Record<keyof AgentRunSpec, import("./agent-runner.ts").SpecFieldSupport>>;
|
|
24
24
|
readonly facts: {
|
|
25
|
+
readonly childWork: 'none';
|
|
26
|
+
readonly hookEvents: 'none';
|
|
27
|
+
readonly nativePermission: 'none';
|
|
28
|
+
readonly transport: 'stdio';
|
|
29
|
+
readonly humanPromptHold: 'turn-end';
|
|
25
30
|
readonly inputDelivery: {
|
|
26
31
|
readonly mode: 'boundary';
|
|
27
32
|
readonly consumption: 'unobservable';
|
|
@@ -60,6 +60,11 @@ export declare class OmpRunner implements AgentRunner {
|
|
|
60
60
|
readonly specSupport: Readonly<Record<keyof AgentRunSpec, import("./agent-runner.js").SpecFieldSupport>>;
|
|
61
61
|
readonly systemPromptOnResume: "resent";
|
|
62
62
|
readonly facts: {
|
|
63
|
+
readonly childWork: 'nested';
|
|
64
|
+
readonly hookEvents: 'none';
|
|
65
|
+
readonly nativePermission: 'none';
|
|
66
|
+
readonly transport: 'stdio';
|
|
67
|
+
readonly humanPromptHold: 'acknowledgement';
|
|
63
68
|
readonly inputDelivery: {
|
|
64
69
|
readonly mode: 'steer';
|
|
65
70
|
readonly consumption: 'observable';
|
|
@@ -49,6 +49,11 @@ export declare class OpencodeServerRunner implements AgentRunner {
|
|
|
49
49
|
readonly specSupport: Readonly<Record<keyof AgentRunSpec, import("./agent-runner.ts").SpecFieldSupport>>;
|
|
50
50
|
readonly systemPromptOnResume: "in-thread";
|
|
51
51
|
readonly facts: {
|
|
52
|
+
readonly childWork: 'nested';
|
|
53
|
+
readonly hookEvents: 'none';
|
|
54
|
+
readonly nativePermission: 'after-turn';
|
|
55
|
+
readonly transport: 'http';
|
|
56
|
+
readonly humanPromptHold: 'acknowledgement';
|
|
52
57
|
readonly inputDelivery: {
|
|
53
58
|
readonly mode: 'steer';
|
|
54
59
|
readonly consumption: 'observable';
|
package/dist/core/pi-runner.d.ts
CHANGED
|
@@ -32,6 +32,11 @@ export declare class PiRunner implements AgentRunner {
|
|
|
32
32
|
readonly specSupport: Readonly<Record<keyof AgentRunSpec, import("./agent-runner.js").SpecFieldSupport>>;
|
|
33
33
|
readonly systemPromptOnResume: "resent";
|
|
34
34
|
readonly facts: {
|
|
35
|
+
readonly childWork: 'none';
|
|
36
|
+
readonly hookEvents: 'none';
|
|
37
|
+
readonly nativePermission: 'none';
|
|
38
|
+
readonly transport: 'stdio';
|
|
39
|
+
readonly humanPromptHold: 'acknowledgement';
|
|
35
40
|
readonly inputDelivery: {
|
|
36
41
|
readonly mode: 'steer';
|
|
37
42
|
readonly consumption: 'observable';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { RunnerId } from './agent-runner.ts';
|
|
2
|
+
/**
|
|
3
|
+
* How a terminal starts each runner's own CLI, the take-over command of "Open in terminal" and
|
|
4
|
+
* the cockpit's copyable resume line (hearsay-tools/squawk#3642).
|
|
5
|
+
*/
|
|
6
|
+
export interface RunnerCli {
|
|
7
|
+
/**
|
|
8
|
+
* The executable a terminal runs. `path-name`: the CLI's name on PATH. `configured`: the
|
|
9
|
+
* executable the server resolves from its `HSQ_*_BIN` override, so only the server can spell it.
|
|
10
|
+
*/
|
|
11
|
+
readonly terminalExecutable: {
|
|
12
|
+
readonly kind: 'path-name';
|
|
13
|
+
readonly name: string;
|
|
14
|
+
} | {
|
|
15
|
+
readonly kind: 'configured';
|
|
16
|
+
readonly resolve: () => string;
|
|
17
|
+
};
|
|
18
|
+
/** The arguments that reopen a recorded session, after the executable. */
|
|
19
|
+
readonly resumeArgs: (sessionId: string) => string;
|
|
20
|
+
}
|
|
21
|
+
export declare const RUNNER_CLI: Readonly<Record<RunnerId, RunnerCli>>;
|
|
22
|
+
/** The terminal executable of a runner as a shell word; null when the configured one cannot be
|
|
23
|
+
* spelled safely on this platform. */
|
|
24
|
+
export declare function terminalExecutable(runner: RunnerId, platform?: NodeJS.Platform): string | null;
|
|
25
|
+
/** True for session ids safe to splice into the take-over command (see above). */
|
|
26
|
+
export declare function isSafeSessionId(sessionId: string): boolean;
|
|
27
|
+
/**
|
|
28
|
+
* The native session take-over command. Refuse unrecognized session-id shapes, and configured
|
|
29
|
+
* executables the platform cannot quote, rather than embed unsafe or platform-misquoted values.
|
|
30
|
+
*/
|
|
31
|
+
export declare function resumeCommand(runner: RunnerId, sessionId: string): string | null;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { resolveCursorExecutable } from './cursor-model-catalog.js';
|
|
2
|
+
import { resolveOmpExecutable } from './omp-model-catalog.js';
|
|
3
|
+
import { quoteExecutable } from './shell-env.js';
|
|
4
|
+
export const RUNNER_CLI = {
|
|
5
|
+
claude: { terminalExecutable: { kind: 'path-name', name: 'claude' }, resumeArgs: id => `--resume ${id}` },
|
|
6
|
+
codex: { terminalExecutable: { kind: 'path-name', name: 'codex' }, resumeArgs: id => `resume ${id}` },
|
|
7
|
+
opencode: { terminalExecutable: { kind: 'path-name', name: 'opencode' }, resumeArgs: id => `--session ${id}` },
|
|
8
|
+
pi: { terminalExecutable: { kind: 'path-name', name: 'pi' }, resumeArgs: id => `--session ${id}` },
|
|
9
|
+
cursor: { terminalExecutable: { kind: 'configured', resolve: () => resolveCursorExecutable() }, resumeArgs: id => `--resume ${id}` },
|
|
10
|
+
omp: { terminalExecutable: { kind: 'configured', resolve: () => resolveOmpExecutable() }, resumeArgs: id => `--resume ${id}` },
|
|
11
|
+
};
|
|
12
|
+
/** The terminal executable of a runner as a shell word; null when the configured one cannot be
|
|
13
|
+
* spelled safely on this platform. */
|
|
14
|
+
export function terminalExecutable(runner, platform = process.platform) {
|
|
15
|
+
const executable = RUNNER_CLI[runner].terminalExecutable;
|
|
16
|
+
return executable.kind === 'path-name' ? executable.name : quoteExecutable(executable.resolve(), platform);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* The session id shape every backend actually mints: UUIDs (claude/codex) and
|
|
20
|
+
* the CLIs' own slug-ish ids. No character here is special to bash, AppleScript
|
|
21
|
+
* OR cmd.exe, and a leading `-` is refused so the id can never be read as an
|
|
22
|
+
* option by the CLI it is passed to (same dash-guard as `isSafeGitRef`, open-mercato/cezar#431).
|
|
23
|
+
* Bounded, like every other input that reaches a spawned process.
|
|
24
|
+
*/
|
|
25
|
+
const SAFE_SESSION_ID = /^[A-Za-z0-9._][A-Za-z0-9._-]{0,199}$/;
|
|
26
|
+
/** True for session ids safe to splice into the take-over command (see above). */
|
|
27
|
+
export function isSafeSessionId(sessionId) {
|
|
28
|
+
return SAFE_SESSION_ID.test(sessionId);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* The native session take-over command. Refuse unrecognized session-id shapes, and configured
|
|
32
|
+
* executables the platform cannot quote, rather than embed unsafe or platform-misquoted values.
|
|
33
|
+
*/
|
|
34
|
+
export function resumeCommand(runner, sessionId) {
|
|
35
|
+
if (!isSafeSessionId(sessionId))
|
|
36
|
+
return null;
|
|
37
|
+
const executable = terminalExecutable(runner);
|
|
38
|
+
return executable === null ? null : `${executable} ${RUNNER_CLI[runner].resumeArgs(sessionId)}`;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=runner-cli.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runner-cli.js","sourceRoot":"","sources":["../../src/core/runner-cli.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAgBjD,MAAM,CAAC,MAAM,UAAU,GAA0C;IAC/D,MAAM,EAAE,EAAE,kBAAkB,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,UAAU,EAAE,EAAE,CAAC,EAAE,CAAC,YAAY,EAAE,EAAE,EAAE;IACzG,KAAK,EAAE,EAAE,kBAAkB,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,UAAU,EAAE,EAAE,CAAC,EAAE,CAAC,UAAU,EAAE,EAAE,EAAE;IACrG,QAAQ,EAAE,EAAE,kBAAkB,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,EAAE,CAAC,EAAE,CAAC,aAAa,EAAE,EAAE,EAAE;IAC9G,EAAE,EAAE,EAAE,kBAAkB,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,EAAE,CAAC,EAAE,CAAC,aAAa,EAAE,EAAE,EAAE;IAClG,MAAM,EAAE,EAAE,kBAAkB,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,uBAAuB,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,CAAC,EAAE,CAAC,YAAY,EAAE,EAAE,EAAE;IACpI,GAAG,EAAE,EAAE,kBAAkB,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,oBAAoB,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,CAAC,EAAE,CAAC,YAAY,EAAE,EAAE,EAAE;CAC/H,CAAC;AAEF;uCACuC;AACvC,MAAM,UAAU,kBAAkB,CAAC,MAAgB,EAAE,QAAQ,GAAoB,OAAO,CAAC,QAAQ;IAC/F,MAAM,UAAU,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,kBAAkB,CAAC;IACzD,OAAO,UAAU,CAAC,IAAI,KAAK,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,eAAe,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,QAAQ,CAAC,CAAC;AAC7G,CAAC;AAED;;;;;;GAMG;AACH,MAAM,eAAe,GAAG,sCAAsC,CAAC;AAE/D,kFAAkF;AAClF,MAAM,UAAU,eAAe,CAAC,SAAiB;IAC/C,OAAO,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;AACzC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,aAAa,CAAC,MAAgB,EAAE,SAAiB;IAC/D,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC;QAAE,OAAO,IAAI,CAAC;IAC7C,MAAM,UAAU,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAC9C,OAAO,UAAU,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,UAAU,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;AAClG,CAAC"}
|
|
@@ -25,6 +25,33 @@ export interface RunnerFacts {
|
|
|
25
25
|
* stays open until every child returns, so no turn end parks on running children.
|
|
26
26
|
*/
|
|
27
27
|
readonly nativeSubagents: 'reported' | 'unreported' | 'turn-held';
|
|
28
|
+
/**
|
|
29
|
+
* A native subagent's own work. `nested`: the wire reports a child's items together with the
|
|
30
|
+
* parent tool call that started the child, so the child's work nests under that call. `none`:
|
|
31
|
+
* the wire carries no child session and no child transcript.
|
|
32
|
+
*/
|
|
33
|
+
readonly childWork: 'nested' | 'none';
|
|
34
|
+
/** Hook runs. `reported`: the wire streams each hook run, which Squawk maps to a hook item.
|
|
35
|
+
* `none`: hooks run inside the harness and the wire carries no hook frame. */
|
|
36
|
+
readonly hookEvents: 'reported' | 'none';
|
|
37
|
+
/**
|
|
38
|
+
* How long a human prompt on its way to the wire holds agent input back. `none`: agent input is
|
|
39
|
+
* never refused for a human prompt. `consumption`: the hold ends when the wire reports the prompt
|
|
40
|
+
* read; a prompt that starts a turn is also released by that start's acknowledgement, and a prompt
|
|
41
|
+
* steered into a running turn by the turn's end. `acknowledgement`: the hold ends only at the
|
|
42
|
+
* prompt's acknowledgement. `turn-end`: the hold ends when the turn the prompt opened ends.
|
|
43
|
+
*/
|
|
44
|
+
readonly humanPromptHold: 'none' | 'consumption' | 'acknowledgement' | 'turn-end';
|
|
45
|
+
/**
|
|
46
|
+
* The harness's native permission request, which Squawk answers through the cockpit permission
|
|
47
|
+
* card. `none`: the wire carries no permission request. `in-turn`: a request arrives only inside
|
|
48
|
+
* the running turn, so none arrives after the turn ends. `after-turn`: a request can also arrive
|
|
49
|
+
* after the turn ended, and it reopens the turn.
|
|
50
|
+
*/
|
|
51
|
+
readonly nativePermission: 'none' | 'in-turn' | 'after-turn';
|
|
52
|
+
/** How Squawk reaches the native wire. `stdio`: the stdin and stdout of the spawned process
|
|
53
|
+
* carry it. `http`: Squawk spawns a server, waits for it to listen, and talks to it over HTTP. */
|
|
54
|
+
readonly transport: 'stdio' | 'http';
|
|
28
55
|
/** The native tool that schedules the session's own wake-up, the equivalent of a `cezar_wait`
|
|
29
56
|
* timer; null when the wire has none. A tool of the same name on another wire means nothing. */
|
|
30
57
|
readonly nativeTimerTool: string | null;
|
|
@@ -51,6 +78,11 @@ export interface RunnerFacts {
|
|
|
51
78
|
}
|
|
52
79
|
export declare const RUNNER_FACTS: {
|
|
53
80
|
readonly claude: {
|
|
81
|
+
readonly childWork: 'nested';
|
|
82
|
+
readonly hookEvents: 'reported';
|
|
83
|
+
readonly nativePermission: 'none';
|
|
84
|
+
readonly transport: 'stdio';
|
|
85
|
+
readonly humanPromptHold: 'none';
|
|
54
86
|
readonly inputDelivery: {
|
|
55
87
|
readonly mode: 'steer';
|
|
56
88
|
readonly consumption: 'observable';
|
|
@@ -68,6 +100,11 @@ export declare const RUNNER_FACTS: {
|
|
|
68
100
|
readonly turnStart: 'on-write';
|
|
69
101
|
};
|
|
70
102
|
readonly codex: {
|
|
103
|
+
readonly childWork: 'nested';
|
|
104
|
+
readonly hookEvents: 'reported';
|
|
105
|
+
readonly nativePermission: 'in-turn';
|
|
106
|
+
readonly transport: 'stdio';
|
|
107
|
+
readonly humanPromptHold: 'consumption';
|
|
71
108
|
readonly inputDelivery: {
|
|
72
109
|
readonly mode: 'steer';
|
|
73
110
|
readonly consumption: 'observable';
|
|
@@ -85,6 +122,11 @@ export declare const RUNNER_FACTS: {
|
|
|
85
122
|
readonly turnStart: 'on-wire';
|
|
86
123
|
};
|
|
87
124
|
readonly opencode: {
|
|
125
|
+
readonly childWork: 'nested';
|
|
126
|
+
readonly hookEvents: 'none';
|
|
127
|
+
readonly nativePermission: 'after-turn';
|
|
128
|
+
readonly transport: 'http';
|
|
129
|
+
readonly humanPromptHold: 'acknowledgement';
|
|
88
130
|
readonly inputDelivery: {
|
|
89
131
|
readonly mode: 'steer';
|
|
90
132
|
readonly consumption: 'observable';
|
|
@@ -102,6 +144,11 @@ export declare const RUNNER_FACTS: {
|
|
|
102
144
|
readonly turnStart: 'on-wire';
|
|
103
145
|
};
|
|
104
146
|
readonly pi: {
|
|
147
|
+
readonly childWork: 'none';
|
|
148
|
+
readonly hookEvents: 'none';
|
|
149
|
+
readonly nativePermission: 'none';
|
|
150
|
+
readonly transport: 'stdio';
|
|
151
|
+
readonly humanPromptHold: 'acknowledgement';
|
|
105
152
|
readonly inputDelivery: {
|
|
106
153
|
readonly mode: 'steer';
|
|
107
154
|
readonly consumption: 'observable';
|
|
@@ -119,6 +166,11 @@ export declare const RUNNER_FACTS: {
|
|
|
119
166
|
readonly turnStart: 'on-write';
|
|
120
167
|
};
|
|
121
168
|
readonly cursor: {
|
|
169
|
+
readonly childWork: 'none';
|
|
170
|
+
readonly hookEvents: 'none';
|
|
171
|
+
readonly nativePermission: 'none';
|
|
172
|
+
readonly transport: 'stdio';
|
|
173
|
+
readonly humanPromptHold: 'turn-end';
|
|
122
174
|
readonly inputDelivery: {
|
|
123
175
|
readonly mode: 'boundary';
|
|
124
176
|
readonly consumption: 'unobservable';
|
|
@@ -136,6 +188,11 @@ export declare const RUNNER_FACTS: {
|
|
|
136
188
|
readonly turnStart: 'on-wire';
|
|
137
189
|
};
|
|
138
190
|
readonly omp: {
|
|
191
|
+
readonly childWork: 'nested';
|
|
192
|
+
readonly hookEvents: 'none';
|
|
193
|
+
readonly nativePermission: 'none';
|
|
194
|
+
readonly transport: 'stdio';
|
|
195
|
+
readonly humanPromptHold: 'acknowledgement';
|
|
139
196
|
readonly inputDelivery: {
|
|
140
197
|
readonly mode: 'steer';
|
|
141
198
|
readonly consumption: 'observable';
|