@hearsay-tools/squawk 0.18.0-pr3722.6871 → 0.18.0-pr3725.6898
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/README.md +5 -10
- package/dist/agent-config/account-identity.js +0 -1
- package/dist/agent-config/account-identity.js.map +1 -1
- package/dist/agent-config/catalog.d.ts +0 -2
- package/dist/agent-config/catalog.js +3 -41
- package/dist/agent-config/catalog.js.map +1 -1
- package/dist/agent-config/models.js +0 -4
- package/dist/agent-config/models.js.map +1 -1
- package/dist/automations/service.d.ts +14 -14
- package/dist/ci-wait/controller.d.ts +4 -4
- package/dist/ci-wait/tools.d.ts +4 -4
- package/dist/config.d.ts +0 -2
- package/dist/config.js +0 -1
- package/dist/config.js.map +1 -1
- package/dist/contract/activity.d.ts +0 -7
- package/dist/contract/agent-config.d.ts +0 -2
- package/dist/contract/agent-profiles.d.ts +0 -15
- package/dist/contract/automation-requests.d.ts +0 -6
- package/dist/contract/automation-storage.d.ts +0 -6
- package/dist/contract/automations.d.ts +0 -18
- package/dist/contract/config-requests.d.ts +0 -2
- package/dist/contract/delegation.d.ts +0 -8
- package/dist/contract/discovery.d.ts +0 -8
- package/dist/contract/health.d.ts +0 -3
- package/dist/contract/index.d.ts +1 -0
- package/dist/contract/index.js +23 -39
- package/dist/contract/per-runner-optional-strings.d.ts +1 -2
- package/dist/contract/provider-requests.d.ts +0 -5
- package/dist/contract/query-requests.d.ts +0 -1
- package/dist/contract/run-requests.d.ts +0 -1
- package/dist/contract/runner-facts.d.ts +2 -42
- package/dist/contract/runner.d.ts +4 -1
- package/dist/contract/runs.d.ts +11 -44
- package/dist/contract/workflow-file.d.ts +0 -1
- package/dist/contract/workflows.d.ts +0 -6
- package/dist/contract/workspace-events.d.ts +2 -4
- package/dist/contract/workspace.d.ts +1 -20
- package/dist/core/agent-env.js +0 -1
- package/dist/core/agent-env.js.map +1 -1
- package/dist/core/agent-profiles.js +0 -3
- package/dist/core/agent-profiles.js.map +1 -1
- package/dist/core/agent-runner.d.ts +22 -16
- package/dist/core/agent-runner.js +17 -2
- package/dist/core/agent-runner.js.map +1 -1
- package/dist/core/backend-detect.js +0 -14
- package/dist/core/backend-detect.js.map +1 -1
- package/dist/core/claude-cli-runner.js +5 -3
- package/dist/core/claude-cli-runner.js.map +1 -1
- package/dist/core/codex-app-server-runner.js +8 -5
- package/dist/core/codex-app-server-runner.js.map +1 -1
- package/dist/core/codex-app-server-transport.d.ts +4 -3
- package/dist/core/codex-app-server-transport.js +7 -6
- package/dist/core/codex-app-server-transport.js.map +1 -1
- package/dist/core/host-model-catalog.js +0 -2
- package/dist/core/host-model-catalog.js.map +1 -1
- package/dist/core/model-identity.js +0 -3
- package/dist/core/model-identity.js.map +1 -1
- package/dist/core/model-presets.js +0 -4
- package/dist/core/model-presets.js.map +1 -1
- package/dist/core/model-probe-spawn.d.ts +9 -0
- package/dist/core/model-probe-spawn.js +7 -0
- package/dist/core/model-probe-spawn.js.map +1 -0
- package/dist/core/omp-model-catalog.d.ts +3 -5
- package/dist/core/omp-model-catalog.js +3 -8
- package/dist/core/omp-model-catalog.js.map +1 -1
- package/dist/core/omp-runner.js +2 -2
- package/dist/core/omp-runner.js.map +1 -1
- package/dist/core/opencode-server-runner.js +5 -2
- package/dist/core/opencode-server-runner.js.map +1 -1
- package/dist/core/pi-model-catalog.d.ts +3 -5
- package/dist/core/pi-model-catalog.js +3 -7
- package/dist/core/pi-model-catalog.js.map +1 -1
- package/dist/core/pi-runner.js +2 -2
- package/dist/core/pi-runner.js.map +1 -1
- package/dist/core/process-usage.d.ts +1 -1
- package/dist/core/process-usage.js +1 -1
- package/dist/core/process-usage.js.map +1 -1
- package/dist/core/product-env.d.ts +0 -4
- package/dist/core/product-env.js +0 -6
- package/dist/core/product-env.js.map +1 -1
- package/dist/core/provider-auth.d.ts +1 -1
- package/dist/core/provider-auth.js +0 -29
- package/dist/core/provider-auth.js.map +1 -1
- package/dist/core/runner-cli.js +0 -2
- package/dist/core/runner-cli.js.map +1 -1
- package/dist/core/runner-factory.d.ts +1 -4
- package/dist/core/runner-factory.js +1 -4
- package/dist/core/runner-factory.js.map +1 -1
- package/dist/core/runner-facts.d.ts +5 -28
- package/dist/core/runner-facts.js +0 -20
- package/dist/core/runner-facts.js.map +1 -1
- package/dist/core/runner-model-catalog.d.ts +0 -3
- package/dist/core/runner-model-catalog.js +1 -25
- package/dist/core/runner-model-catalog.js.map +1 -1
- package/dist/core/session-process.d.ts +1 -6
- package/dist/core/session-process.js +2 -20
- package/dist/core/session-process.js.map +1 -1
- package/dist/core/ui-events.d.ts +1 -1
- package/dist/delegation/conversations.d.ts +10 -8
- package/dist/delegation/execution-identity.d.ts +6 -8
- package/dist/delegation/execution-identity.js +18 -0
- package/dist/delegation/execution-identity.js.map +1 -1
- package/dist/delegation/provision.js +2 -1
- package/dist/delegation/provision.js.map +1 -1
- package/dist/delegation/routes.d.ts +19 -19
- package/dist/delegation/transport.d.ts +21 -21
- package/dist/discovery/cli.js +2 -1
- package/dist/discovery/cli.js.map +1 -1
- package/dist/home/identity.d.ts +2 -6
- package/dist/home/identity.js +0 -2
- package/dist/home/identity.js.map +1 -1
- package/dist/managed-install/layout.d.ts +2 -3
- package/dist/managed-install/layout.js.map +1 -1
- package/dist/paths.js +1 -4
- package/dist/paths.js.map +1 -1
- package/dist/runs/legacy-run-rows.d.ts +13 -0
- package/dist/runs/legacy-run-rows.js +60 -0
- package/dist/runs/legacy-run-rows.js.map +1 -1
- package/dist/runs/run-exits.d.ts +26 -20
- package/dist/runs/run-summary-page.js +2 -0
- package/dist/runs/run-summary-page.js.map +1 -1
- package/dist/runs/store.d.ts +11 -19
- package/dist/runs/store.js +2 -2
- package/dist/runs/store.js.map +1 -1
- package/dist/serve-boot.d.ts +1 -1
- package/dist/serve-boot.js +1 -1
- package/dist/serve-command.d.ts +0 -2
- package/dist/serve-command.js +1 -2
- package/dist/serve-command.js.map +1 -1
- package/dist/serve-stop.d.ts +0 -1
- package/dist/serve-stop.js +0 -1
- package/dist/serve-stop.js.map +1 -1
- package/dist/server/activity-routes.d.ts +2 -2
- package/dist/server/fs-browse.js +2 -3
- package/dist/server/fs-browse.js.map +1 -1
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/open-in-app.js +0 -1
- package/dist/server/open-in-app.js.map +1 -1
- package/dist/server/server.d.ts +331 -328
- package/dist/server/server.js +10 -37
- package/dist/server/server.js.map +1 -1
- package/dist/server/workspace-live-routes.d.ts +6 -6
- package/dist/server-install/steps.js +0 -1
- package/dist/server-install/steps.js.map +1 -1
- package/dist/skills-remote.d.ts +1 -1
- package/dist/skills-remote.js +1 -1
- package/dist/skills-remote.js.map +1 -1
- package/dist/workflows/continuation-admission.d.ts +19 -13
- package/dist/workflows/continuation-admission.js +16 -13
- package/dist/workflows/continuation-admission.js.map +1 -1
- package/dist/workflows/run/continuation-session.d.ts +1 -2
- package/dist/workflows/run/continuation-session.js +1 -5
- package/dist/workflows/run/continuation-session.js.map +1 -1
- package/dist/workflows/run/input-delivery.d.ts +8 -9
- package/dist/workflows/run/input-delivery.js +10 -8
- package/dist/workflows/run/input-delivery.js.map +1 -1
- package/dist/workflows/run/launch-read-resolver.d.ts +11 -14
- package/dist/workflows/run/launch-read-resolver.js +8 -22
- package/dist/workflows/run/launch-read-resolver.js.map +1 -1
- package/dist/workflows/run/queued-revival.d.ts +2 -2
- package/dist/workflows/run/queued-revival.js +17 -6
- package/dist/workflows/run/queued-revival.js.map +1 -1
- package/dist/workflows/run/run-skills.d.ts +2 -2
- package/dist/workflows/run/run-skills.js +3 -4
- package/dist/workflows/run/run-skills.js.map +1 -1
- package/dist/workflows/run/session-events.js +1 -2
- package/dist/workflows/run/session-events.js.map +1 -1
- package/dist/workflows/run/turn-nudges.d.ts +1 -1
- package/dist/workflows/run/turn-nudges.js +2 -2
- package/dist/workflows/run/turn-nudges.js.map +1 -1
- package/dist/workflows/run/turn-settler.js +1 -1
- package/dist/workflows/run/turn-settler.js.map +1 -1
- package/dist/workflows/run/wait-engine.d.ts +5 -4
- package/dist/workflows/run-scheduling.js +4 -0
- package/dist/workflows/run-scheduling.js.map +1 -1
- package/dist/workflows/run-states.js +1 -1
- package/dist/workflows/run-states.js.map +1 -1
- package/dist/workflows/run.js +12 -0
- package/dist/workflows/run.js.map +1 -1
- package/dist/workflows/types.js +0 -1
- package/dist/workflows/types.js.map +1 -1
- package/dist/workspace/agent-accounts.d.ts +1 -5
- package/dist/workspace/agent-accounts.js +0 -1
- package/dist/workspace/agent-accounts.js.map +1 -1
- package/dist/workspace/config.d.ts +1 -3
- package/dist/workspace/config.js +0 -1
- package/dist/workspace/config.js.map +1 -1
- package/package.json +4 -4
- package/scripts/mock-ci-tool.mjs +2 -15
- package/scripts/mock-deferred-turn-start.mjs +1 -1
- package/scripts/mock-provider-failures.mjs +0 -9
- package/scripts/mock-scenario.d.mts +1 -1
- package/scripts/mock-scenario.mjs +2 -2
- package/web/dist/assets/activity-motion-Cbx0dG_F.js +2 -0
- package/web/dist/assets/{activity-route-rhYVhpXu.js → activity-route-CTWPmAJz.js} +1 -1
- package/web/dist/assets/agent-accounts-1sG5dFTE.js +18 -0
- package/web/dist/assets/attention-DHNDX6bq.js +1 -0
- package/web/dist/assets/{cez-idle-BqmM5iRr.js → cez-idle-D49bY6KR.js} +1 -1
- package/web/dist/assets/{commit-diff-panel-CZAQ_wMQ.js → commit-diff-panel-Z0-J2bqp.js} +1 -1
- package/web/dist/assets/diff-BWQ0bBbq.js +3 -0
- package/web/dist/assets/{diff-view-Bn7tV6S7.js → diff-view-C987qwGs.js} +3 -3
- package/web/dist/assets/{file-preview-1f8vPVsK.js → file-preview-D38rtUVh.js} +1 -1
- package/web/dist/assets/{git-toolbar-BbY7l1x9.js → git-toolbar-CW1set9z.js} +1 -1
- package/web/dist/assets/{github-CTdrVztq.js → github-T3IVQYu-.js} +1 -1
- package/web/dist/assets/{global-activity-route-xvY0P60v.js → global-activity-route-QBf6nme4.js} +1 -1
- package/web/dist/assets/{index-DTIPJ2b8.css → index-Ci54Zqis.css} +1 -1
- package/web/dist/assets/index-yQ4aroAM.js +17 -0
- package/web/dist/assets/{live-protocol-BmbbwF5R.js → live-protocol-DHEBTIRD.js} +1 -1
- package/web/dist/assets/preview-pane-connected-CdpH1s_D.js +3 -0
- package/web/dist/assets/{project-router-BqAKGSaS.js → project-router-DFVFZDkA.js} +1 -1
- package/web/dist/assets/project-scope-context-BIMyxsHW.js +4 -0
- package/web/dist/assets/{prompt-template-menu-DpCrLDWG.js → prompt-template-menu-B2FhhxGd.js} +1 -1
- package/web/dist/assets/queries-DEnjNRg_.js +1 -0
- package/web/dist/assets/{reference-chip-Dd_YU2KX.js → reference-chip-Da6I9G_p.js} +1 -1
- package/web/dist/assets/{repo-git-BrkR6pTH.js → repo-git-rf-mUMWA.js} +1 -1
- package/web/dist/assets/{report-reader-BeZdoVhf.js → report-reader-Cn26AqSq.js} +1 -1
- package/web/dist/assets/reports-COdh8sks.js +1 -0
- package/web/dist/assets/run-header-BBqaYN69.js +2 -0
- package/web/dist/assets/runner-facts-BpvNgJqf.js +1 -0
- package/web/dist/assets/skills-DHiB7MPs.js +1 -0
- package/web/dist/assets/{tab-link-CGzPcVvS.js → tab-link-DX5ftrqt.js} +1 -1
- package/web/dist/assets/{task-changes-f9ldtHuA.js → task-changes-B7WMiUQy.js} +1 -1
- package/web/dist/assets/{task-commits-CLjEhkFM.js → task-commits-CRSqJGxC.js} +1 -1
- package/web/dist/assets/{task-files-BEKlg0dR.js → task-files-CpLNPHn6.js} +1 -1
- package/web/dist/assets/{task-github-item-CbdPCKot.js → task-github-item-DsX-nohF.js} +1 -1
- package/web/dist/assets/task-thread-BzTAQpre.js +9 -0
- package/web/dist/assets/{thread-state-ZdBez7Ij.js → thread-state-DxKkroyX.js} +1 -1
- package/web/dist/assets/{use-desktop-BwkqVHep.js → use-desktop-CAM2zm7q.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-BOD9cT6o.js → use-hand-to-agent-state-CPWpSlsm.js} +1 -1
- package/web/dist/assets/{useInfiniteQuery-DYAQvmMU.js → useInfiniteQuery-pimelj0e.js} +1 -1
- package/web/dist/assets/useQuery-BiEoT9Jp.js +1 -0
- package/web/dist/assets/workflows-Cmyq-zA0.js +7 -0
- package/web/dist/assets/{ws-BXpZYApG.js → ws-CFHmgwZ0.js} +1 -1
- package/web/dist/index.html +16 -15
- package/web/dist/live-worker.js +1 -1
- package/dist/core/cursor-cli-flags.d.ts +0 -19
- package/dist/core/cursor-cli-flags.js +0 -47
- package/dist/core/cursor-cli-flags.js.map +0 -1
- package/dist/core/cursor-config-options.d.ts +0 -18
- package/dist/core/cursor-config-options.js +0 -31
- package/dist/core/cursor-config-options.js.map +0 -1
- package/dist/core/cursor-model-catalog.d.ts +0 -50
- package/dist/core/cursor-model-catalog.js +0 -306
- package/dist/core/cursor-model-catalog.js.map +0 -1
- package/dist/core/cursor-print-capabilities.d.ts +0 -14
- package/dist/core/cursor-print-capabilities.js +0 -169
- package/dist/core/cursor-print-capabilities.js.map +0 -1
- package/dist/core/cursor-print-process.d.ts +0 -36
- package/dist/core/cursor-print-process.js +0 -117
- package/dist/core/cursor-print-process.js.map +0 -1
- package/dist/core/cursor-print-runner.d.ts +0 -50
- package/dist/core/cursor-print-runner.js +0 -579
- package/dist/core/cursor-print-runner.js.map +0 -1
- package/dist/core/cursor-print-tool-catalog.d.ts +0 -3
- package/dist/core/cursor-print-tool-catalog.js +0 -13
- package/dist/core/cursor-print-tool-catalog.js.map +0 -1
- package/dist/core/cursor-print-ui-mapper.d.ts +0 -47
- package/dist/core/cursor-print-ui-mapper.js +0 -574
- package/dist/core/cursor-print-ui-mapper.js.map +0 -1
- package/dist/core/cursor-provider-error.d.ts +0 -9
- package/dist/core/cursor-provider-error.js +0 -15
- package/dist/core/cursor-provider-error.js.map +0 -1
- package/dist/core/cursor-runner.d.ts +0 -53
- package/dist/core/cursor-runner.js +0 -145
- package/dist/core/cursor-runner.js.map +0 -1
- package/dist/core/disclaim-spawn.d.ts +0 -11
- package/dist/core/disclaim-spawn.js +0 -60
- package/dist/core/disclaim-spawn.js.map +0 -1
- package/dist/desktop-supervisor.d.ts +0 -10
- package/dist/desktop-supervisor.js +0 -52
- package/dist/desktop-supervisor.js.map +0 -1
- package/scripts/mock-cursor-hang-stdin-late.mjs +0 -35
- package/scripts/mock-cursor-hang-stdin.mjs +0 -30
- package/scripts/mock-cursor-print.mjs +0 -237
- package/scripts/probe-cursor-print.mjs +0 -699
- package/web/dist/assets/activity-motion-awuRigEi.js +0 -2
- package/web/dist/assets/agent-accounts-D3q1WLxk.js +0 -18
- package/web/dist/assets/attention-CdwMIvQG.js +0 -1
- package/web/dist/assets/diff-BDJ4xGSd.js +0 -3
- package/web/dist/assets/index-MgNz22Tg.js +0 -17
- package/web/dist/assets/preview-pane-connected-D6TfZFTU.js +0 -3
- package/web/dist/assets/project-scope-context-B0yKt2yI.js +0 -4
- package/web/dist/assets/queries-DoYRza8s.js +0 -1
- package/web/dist/assets/reports-D93WfzdD.js +0 -1
- package/web/dist/assets/run-header-FB4j_Fjm.js +0 -2
- package/web/dist/assets/skills-BV3eF6mC.js +0 -1
- package/web/dist/assets/task-thread-BPSL3OMS.js +0 -9
- package/web/dist/assets/useQuery-CnVG8NoC.js +0 -1
- package/web/dist/assets/workflows-Driy32Xn.js +0 -7
|
@@ -157,11 +157,11 @@ export declare const workspaceRunSummaryEventSchema: z.ZodObject<{
|
|
|
157
157
|
runner: z.ZodOptional<z.ZodEnum<{
|
|
158
158
|
claude: "claude";
|
|
159
159
|
codex: "codex";
|
|
160
|
-
cursor: "cursor";
|
|
161
160
|
omp: "omp";
|
|
162
161
|
opencode: "opencode";
|
|
163
162
|
pi: "pi";
|
|
164
163
|
}>>;
|
|
164
|
+
removedRunner: z.ZodOptional<z.ZodString>;
|
|
165
165
|
model: z.ZodOptional<z.ZodString>;
|
|
166
166
|
notify: z.ZodOptional<z.ZodBoolean>;
|
|
167
167
|
diffStat: z.ZodOptional<z.ZodObject<{
|
|
@@ -177,7 +177,6 @@ export declare const workspaceRunSummaryEventSchema: z.ZodObject<{
|
|
|
177
177
|
currentStepBackend: z.ZodOptional<z.ZodEnum<{
|
|
178
178
|
claude: "claude";
|
|
179
179
|
codex: "codex";
|
|
180
|
-
cursor: "cursor";
|
|
181
180
|
omp: "omp";
|
|
182
181
|
opencode: "opencode";
|
|
183
182
|
pi: "pi";
|
|
@@ -353,11 +352,11 @@ export declare const runsIndexResponseSchema: z.ZodObject<{
|
|
|
353
352
|
runner: z.ZodOptional<z.ZodEnum<{
|
|
354
353
|
claude: "claude";
|
|
355
354
|
codex: "codex";
|
|
356
|
-
cursor: "cursor";
|
|
357
355
|
omp: "omp";
|
|
358
356
|
opencode: "opencode";
|
|
359
357
|
pi: "pi";
|
|
360
358
|
}>>;
|
|
359
|
+
removedRunner: z.ZodOptional<z.ZodString>;
|
|
361
360
|
model: z.ZodOptional<z.ZodString>;
|
|
362
361
|
notify: z.ZodOptional<z.ZodBoolean>;
|
|
363
362
|
diffStat: z.ZodOptional<z.ZodObject<{
|
|
@@ -373,7 +372,6 @@ export declare const runsIndexResponseSchema: z.ZodObject<{
|
|
|
373
372
|
currentStepBackend: z.ZodOptional<z.ZodEnum<{
|
|
374
373
|
claude: "claude";
|
|
375
374
|
codex: "codex";
|
|
376
|
-
cursor: "cursor";
|
|
377
375
|
omp: "omp";
|
|
378
376
|
opencode: "opencode";
|
|
379
377
|
pi: "pi";
|
|
@@ -49,7 +49,6 @@ export declare const workspaceConfigResponseSchema: z.ZodObject<{
|
|
|
49
49
|
runner: z.ZodOptional<z.ZodEnum<{
|
|
50
50
|
claude: "claude";
|
|
51
51
|
codex: "codex";
|
|
52
|
-
cursor: "cursor";
|
|
53
52
|
omp: "omp";
|
|
54
53
|
opencode: "opencode";
|
|
55
54
|
pi: "pi";
|
|
@@ -59,7 +58,6 @@ export declare const workspaceConfigResponseSchema: z.ZodObject<{
|
|
|
59
58
|
codex: z.ZodOptional<z.ZodString>;
|
|
60
59
|
opencode: z.ZodOptional<z.ZodString>;
|
|
61
60
|
pi: z.ZodOptional<z.ZodString>;
|
|
62
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
63
61
|
omp: z.ZodOptional<z.ZodString>;
|
|
64
62
|
}, z.core.$strip>>;
|
|
65
63
|
}, z.core.$strip>;
|
|
@@ -84,7 +82,6 @@ export declare const setWorkspaceConfigInputSchema: z.ZodObject<{
|
|
|
84
82
|
runner: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
85
83
|
claude: "claude";
|
|
86
84
|
codex: "codex";
|
|
87
|
-
cursor: "cursor";
|
|
88
85
|
omp: "omp";
|
|
89
86
|
opencode: "opencode";
|
|
90
87
|
pi: "pi";
|
|
@@ -94,7 +91,6 @@ export declare const setWorkspaceConfigInputSchema: z.ZodObject<{
|
|
|
94
91
|
codex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
92
|
opencode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
93
|
pi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
97
|
-
cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
98
94
|
omp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
99
95
|
}, z.core.$strip>>;
|
|
100
96
|
}, z.core.$strip>>;
|
|
@@ -219,7 +215,6 @@ export declare const workspaceUiStateSchema: z.ZodObject<{
|
|
|
219
215
|
codex: z.ZodOptional<z.ZodString>;
|
|
220
216
|
opencode: z.ZodOptional<z.ZodString>;
|
|
221
217
|
pi: z.ZodOptional<z.ZodString>;
|
|
222
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
223
218
|
omp: z.ZodOptional<z.ZodString>;
|
|
224
219
|
}, z.core.$strip>>;
|
|
225
220
|
appearance: z.ZodOptional<z.ZodObject<{
|
|
@@ -309,7 +304,6 @@ export declare const runnerModelsSchema: z.ZodObject<{
|
|
|
309
304
|
codex: z.ZodOptional<z.ZodString>;
|
|
310
305
|
opencode: z.ZodOptional<z.ZodString>;
|
|
311
306
|
pi: z.ZodOptional<z.ZodString>;
|
|
312
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
313
307
|
omp: z.ZodOptional<z.ZodString>;
|
|
314
308
|
}, z.core.$strip>;
|
|
315
309
|
export type RunnerModels = z.infer<typeof runnerModelsSchema>;
|
|
@@ -342,7 +336,6 @@ export declare const configResponseSchema: z.ZodObject<{
|
|
|
342
336
|
defaultRunner: z.ZodEnum<{
|
|
343
337
|
claude: "claude";
|
|
344
338
|
codex: "codex";
|
|
345
|
-
cursor: "cursor";
|
|
346
339
|
omp: "omp";
|
|
347
340
|
opencode: "opencode";
|
|
348
341
|
pi: "pi";
|
|
@@ -353,7 +346,6 @@ export declare const configResponseSchema: z.ZodObject<{
|
|
|
353
346
|
codex: z.ZodOptional<z.ZodString>;
|
|
354
347
|
opencode: z.ZodOptional<z.ZodString>;
|
|
355
348
|
pi: z.ZodOptional<z.ZodString>;
|
|
356
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
357
349
|
omp: z.ZodOptional<z.ZodString>;
|
|
358
350
|
}, z.core.$strip>;
|
|
359
351
|
modelsLocked: z.ZodBoolean;
|
|
@@ -383,7 +375,6 @@ export declare const setConfigResponseSchema: z.ZodObject<{
|
|
|
383
375
|
defaultRunner: z.ZodEnum<{
|
|
384
376
|
claude: "claude";
|
|
385
377
|
codex: "codex";
|
|
386
|
-
cursor: "cursor";
|
|
387
378
|
omp: "omp";
|
|
388
379
|
opencode: "opencode";
|
|
389
380
|
pi: "pi";
|
|
@@ -394,7 +385,6 @@ export declare const setConfigResponseSchema: z.ZodObject<{
|
|
|
394
385
|
codex: z.ZodOptional<z.ZodString>;
|
|
395
386
|
opencode: z.ZodOptional<z.ZodString>;
|
|
396
387
|
pi: z.ZodOptional<z.ZodString>;
|
|
397
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
398
388
|
omp: z.ZodOptional<z.ZodString>;
|
|
399
389
|
}, z.core.$strip>;
|
|
400
390
|
modelsLocked: z.ZodBoolean;
|
|
@@ -423,7 +413,6 @@ export declare const setConfigInputSchema: z.ZodObject<{
|
|
|
423
413
|
defaultRunner: z.ZodOptional<z.ZodEnum<{
|
|
424
414
|
claude: "claude";
|
|
425
415
|
codex: "codex";
|
|
426
|
-
cursor: "cursor";
|
|
427
416
|
omp: "omp";
|
|
428
417
|
opencode: "opencode";
|
|
429
418
|
pi: "pi";
|
|
@@ -434,7 +423,6 @@ export declare const setConfigInputSchema: z.ZodObject<{
|
|
|
434
423
|
codex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
435
424
|
opencode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
436
425
|
pi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
437
|
-
cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
438
426
|
omp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
439
427
|
}, z.core.$strip>>;
|
|
440
428
|
maxParallel: z.ZodOptional<z.ZodNumber>;
|
|
@@ -452,7 +440,6 @@ export type SetConfigInput = z.infer<typeof setConfigInputSchema>;
|
|
|
452
440
|
export declare const providerIdSchema: z.ZodEnum<{
|
|
453
441
|
claude: "claude";
|
|
454
442
|
codex: "codex";
|
|
455
|
-
cursor: "cursor";
|
|
456
443
|
omp: "omp";
|
|
457
444
|
opencode: "opencode";
|
|
458
445
|
pi: "pi";
|
|
@@ -478,7 +465,6 @@ export declare const providerStatusSchema: z.ZodObject<{
|
|
|
478
465
|
provider: z.ZodEnum<{
|
|
479
466
|
claude: "claude";
|
|
480
467
|
codex: "codex";
|
|
481
|
-
cursor: "cursor";
|
|
482
468
|
omp: "omp";
|
|
483
469
|
opencode: "opencode";
|
|
484
470
|
pi: "pi";
|
|
@@ -501,7 +487,6 @@ export declare const providerStatusResponseSchema: z.ZodObject<{
|
|
|
501
487
|
provider: z.ZodEnum<{
|
|
502
488
|
claude: "claude";
|
|
503
489
|
codex: "codex";
|
|
504
|
-
cursor: "cursor";
|
|
505
490
|
omp: "omp";
|
|
506
491
|
opencode: "opencode";
|
|
507
492
|
pi: "pi";
|
|
@@ -534,13 +519,12 @@ export type ProviderConnectResponse = z.infer<typeof providerConnectResponseSche
|
|
|
534
519
|
/**
|
|
535
520
|
* The runners whose model list is discovered from the host rather than hard-coded: Codex
|
|
536
521
|
* through its app-server protocol, OpenCode through its own `models` listing (#794), Pi
|
|
537
|
-
* through `pi --list-models`,
|
|
522
|
+
* through `pi --list-models`, and Claude through
|
|
538
523
|
* stream-json `list_models`. One definition, used by the route's query validator and the picker.
|
|
539
524
|
*/
|
|
540
525
|
export declare const modelDiscoveryRunnerSchema: z.ZodEnum<{
|
|
541
526
|
claude: "claude";
|
|
542
527
|
codex: "codex";
|
|
543
|
-
cursor: "cursor";
|
|
544
528
|
omp: "omp";
|
|
545
529
|
opencode: "opencode";
|
|
546
530
|
pi: "pi";
|
|
@@ -569,7 +553,6 @@ export declare const runnerModelCatalogResponseSchema: z.ZodObject<{
|
|
|
569
553
|
runner: z.ZodEnum<{
|
|
570
554
|
claude: "claude";
|
|
571
555
|
codex: "codex";
|
|
572
|
-
cursor: "cursor";
|
|
573
556
|
omp: "omp";
|
|
574
557
|
opencode: "opencode";
|
|
575
558
|
pi: "pi";
|
|
@@ -602,7 +585,6 @@ export declare const modelChoicesSchema: z.ZodObject<{
|
|
|
602
585
|
runner: z.ZodEnum<{
|
|
603
586
|
claude: "claude";
|
|
604
587
|
codex: "codex";
|
|
605
|
-
cursor: "cursor";
|
|
606
588
|
omp: "omp";
|
|
607
589
|
opencode: "opencode";
|
|
608
590
|
pi: "pi";
|
|
@@ -623,7 +605,6 @@ export declare const modelChoicesSchema: z.ZodObject<{
|
|
|
623
605
|
otherRunners: z.ZodArray<z.ZodEnum<{
|
|
624
606
|
claude: "claude";
|
|
625
607
|
codex: "codex";
|
|
626
|
-
cursor: "cursor";
|
|
627
608
|
omp: "omp";
|
|
628
609
|
opencode: "opencode";
|
|
629
610
|
pi: "pi";
|
package/dist/core/agent-env.js
CHANGED
|
@@ -204,7 +204,6 @@ const BACKEND_ALLOW_PREFIXES = {
|
|
|
204
204
|
'claude-cli': ['ANTHROPIC_', 'CLAUDE_'],
|
|
205
205
|
codex: ['OPENAI_', 'CODEX_', 'AZURE_OPENAI_'],
|
|
206
206
|
opencode: MULTI_PROVIDER_PREFIXES,
|
|
207
|
-
cursor: ['CURSOR_'],
|
|
208
207
|
// pi selects models as `provider/model` (#387), so it needs both its own config and any
|
|
209
208
|
// provider a configured model id can name — the same set OpenCode gets, for the same reason.
|
|
210
209
|
// Deliberately NOT `CLAUDE_`: pi is not Claude Code and reads none of its variables, and the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-env.js","sourceRoot":"","sources":["../../src/core/agent-env.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD;;;;;;;GAOG;AACH,SAAS,QAAQ,CAAC,KAAwB;IACxC,OAAO,IAAI,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;AACpD,CAAC;AAED,6EAA6E;AAC7E,MAAM,gBAAgB,GAAwB,QAAQ,CAAC;IACrD,gCAAgC;IAChC,MAAM;IACN,MAAM;IACN,OAAO;IACP,MAAM;IACN,SAAS;IACT,OAAO;IACP,KAAK;IACL,QAAQ;IACR,OAAO;IACP,UAAU;IACV,MAAM;IACN,UAAU;IACV,UAAU;IACV,QAAQ;IACR,QAAQ;IACR,MAAM;IACN,KAAK;IACL,IAAI;IACJ,SAAS;IACT,MAAM;IACN,UAAU;IACV,qBAAqB;IACrB,MAAM;IACN,UAAU;IACV,WAAW;IACX,SAAS;IACT,OAAO;IACP,UAAU;IACV,aAAa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OAAO;IACP,SAAS;IACT,YAAY;IACZ,SAAS;IACT,SAAS;IACT,WAAW;IACX,aAAa;IACb,MAAM;IACN,QAAQ;IACR,OAAO;IACP,QAAQ;IACR,aAAa;IACb,yBAAyB;IACzB,MAAM;IACN,MAAM;IACN,QAAQ;IACR,SAAS;IACT,SAAS;IACT,UAAU;IACV,SAAS;IACT,eAAe;IACf,SAAS;IACT,QAAQ;IACR,OAAO;IACP,OAAO;IACP,WAAW;IACX,OAAO;IACP,OAAO;IACP,WAAW;CACZ,CAAC;AAEF;+FAC+F;AAC/F,MAAM,uBAAuB,GAAsB;IACjD,SAAS;IACT,YAAY;IACZ,eAAe;IACf,aAAa;IACb,OAAO;IACP,UAAU;IACV,SAAS;IACT,uBAAuB;IACvB,WAAW;IACX,MAAM;IACN,aAAa;IACb,WAAW;IACX,YAAY;CACb,CAAC;AAEF,qEAAqE;AACrE,MAAM,sBAAsB,GAA4C;IACtE,MAAM,EAAE,CAAC,YAAY,EAAE,SAAS,CAAC;IACjC,YAAY,EAAE,CAAC,YAAY,EAAE,SAAS,CAAC;IACvC,KAAK,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,eAAe,CAAC;IAC7C,QAAQ,EAAE,uBAAuB;IACjC,
|
|
1
|
+
{"version":3,"file":"agent-env.js","sourceRoot":"","sources":["../../src/core/agent-env.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD;;;;;;;GAOG;AACH,SAAS,QAAQ,CAAC,KAAwB;IACxC,OAAO,IAAI,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;AACpD,CAAC;AAED,6EAA6E;AAC7E,MAAM,gBAAgB,GAAwB,QAAQ,CAAC;IACrD,gCAAgC;IAChC,M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Aa,CAAC;YAAE,OAAO,IAAI,CAAC;QAC1E,+BAA+B;QAC/B,IAAI,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC;YAAE,OAAO,IAAI,CAAC;QACtC,0EAA0E;QAC1E,uEAAuE;QACvE,uEAAuE;QACvE,IAAI,gBAAgB,CAAC,GAAG,CAAC,GAAG,CAAC;YAAE,OAAO,IAAI,CAAC;QAC3C,IAAI,aAAa,CAAC,GAAG,EAAE,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC;YAAE,OAAO,IAAI,CAAC;QAC9E,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
|
|
@@ -8,8 +8,6 @@ export const ACCOUNT_LAYOUT = {
|
|
|
8
8
|
codex: { select: { envVar: 'CODEX_HOME', by: 'folder' }, configSubdir: null, defaultBindsHome: true, stateFile: 'in-home' },
|
|
9
9
|
opencode: { select: null, configSubdir: null, defaultBindsHome: false, stateFile: 'in-home' },
|
|
10
10
|
pi: { select: { envVar: 'PI_CODING_AGENT_DIR', by: 'folder' }, configSubdir: null, defaultBindsHome: false, stateFile: 'in-home' },
|
|
11
|
-
// CURSOR_CONFIG_DIR relocates configuration, not a verified whole account home.
|
|
12
|
-
cursor: { select: null, configSubdir: null, defaultBindsHome: false, stateFile: 'in-home' },
|
|
13
11
|
// A named omp account is a profile folder that keeps its config in `agent/`.
|
|
14
12
|
omp: { select: { envVar: 'OMP_PROFILE', by: 'profile-name' }, configSubdir: 'agent', defaultBindsHome: false, stateFile: 'in-home' },
|
|
15
13
|
};
|
|
@@ -104,7 +102,6 @@ const PROFILE_DIR_MARKERS = {
|
|
|
104
102
|
// dir is probed, but nothing it holds marks a login.
|
|
105
103
|
opencode: [],
|
|
106
104
|
pi: ['auth.json', 'settings.json', 'models.json', 'sessions'],
|
|
107
|
-
cursor: [],
|
|
108
105
|
// A named account is a profile folder (`agent/`, `logs/`, `run/`, `cache/`); the discovered
|
|
109
106
|
// default is an agent dir (`agent.db`, `config.yml`, `sessions/`). Either listing answers.
|
|
110
107
|
omp: ['agent', 'agent.db', 'config.yml', 'sessions'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-profiles.js","sourceRoot":"","sources":["../../src/core/agent-profiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAiCjC;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAgD;IACzE,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,mBAAmB,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE;IACvI,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE;IAC3H,QAAQ,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE;IAC7F,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,qBAAqB,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE;IAClI,
|
|
1
|
+
{"version":3,"file":"agent-profiles.js","sourceRoot":"","sources":["../../src/core/agent-profiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAiCjC;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAgD;IACzE,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,mBAAmB,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,YAAY,EAAE,I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E,eAAe,EAAE,UAAU,EAAE,UAAU,CAAC;IACjE,KAAK,EAAE,CAAC,WAAW,EAAE,aAAa,CAAC;IACnC,8FAA8F;IAC9F,qDAAqD;IACrD,QAAQ,EAAE,EAAE;IACZ,EAAE,EAAE,CAAC,WAAW,EAAE,eAAe,EAAE,aAAa,EAAE,UAAU,CAAC;IAC7D,4FAA4F;IAC5F,2FAA2F;IAC3F,GAAG,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,CAAC;CACrD,CAAC"}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* resume. Adapters own native process lifetimes and emit normalized events behind this seam.
|
|
4
4
|
*/
|
|
5
5
|
import type { UiEvent } from './ui-events.ts';
|
|
6
|
-
import type { SessionTransport } from '../contract/index.js';
|
|
7
6
|
import type { RunnerTimings } from './runner-runtime.ts';
|
|
8
7
|
import type { SpawnScope } from '../worker-scope/scope.ts';
|
|
9
8
|
import type { RunnerFacts } from './runner-facts.ts';
|
|
@@ -11,12 +10,21 @@ import type { RunnerFacts } from './runner-facts.ts';
|
|
|
11
10
|
* Canonical user-selectable runner tuple in display order. Derive runtime enumerations and
|
|
12
11
|
* schemas from this set; keep legacy backend ids separate for persisted records.
|
|
13
12
|
*/
|
|
14
|
-
export declare const RUNNER_IDS: readonly ['claude', 'codex', 'opencode', 'pi', '
|
|
13
|
+
export declare const RUNNER_IDS: readonly ['claude', 'codex', 'opencode', 'pi', 'omp'];
|
|
15
14
|
/** The user-selectable runners (what config/GUI expose). */
|
|
16
15
|
export type RunnerId = (typeof RUNNER_IDS)[number];
|
|
17
16
|
/** `claude-cli` is the legacy id kept so old run records still parse. */
|
|
18
17
|
export type AgentBackend = RunnerId | 'claude-cli';
|
|
19
18
|
/** Narrow an arbitrary string (a config value, a check name) to a runner id. */
|
|
19
|
+
/** The rejection of an agent-input acknowledgement that the session's own `end()` cut off
|
|
20
|
+
* (hearsay-tools/squawk#3508). Squawk keeps such input owed as a closed-session delivery
|
|
21
|
+
* failure. A runner raises it only for the abort its `end()` fired: a provider error that
|
|
22
|
+
* arrived first, even one whose body the close cut off, keeps its own error. */
|
|
23
|
+
export declare class SessionEndedBeforeAcknowledgement extends Error {
|
|
24
|
+
constructor();
|
|
25
|
+
}
|
|
26
|
+
/** The abort an `AbortController` fires rejects a fetch or a read with this name. */
|
|
27
|
+
export declare function isAbortError(error: unknown): boolean;
|
|
20
28
|
export declare function isRunnerId(value: string): value is RunnerId;
|
|
21
29
|
/**
|
|
22
30
|
* The runner a backend value names. A legacy id maps to its runner; undefined and an unknown value
|
|
@@ -241,7 +249,6 @@ export type AgentEvent = {
|
|
|
241
249
|
| {
|
|
242
250
|
type: 'session';
|
|
243
251
|
sessionId: string;
|
|
244
|
-
sessionTransport?: SessionTransport;
|
|
245
252
|
}
|
|
246
253
|
/** `unconsumedInputIds`: agent input accepted in this turn that the model never
|
|
247
254
|
* read before the turn ended idle (#505). */
|
|
@@ -305,9 +312,8 @@ export interface SessionOptions {
|
|
|
305
312
|
onPidChange?: (pid: number) => void;
|
|
306
313
|
}
|
|
307
314
|
/**
|
|
308
|
-
* A live logical agent session.
|
|
309
|
-
*
|
|
310
|
-
* turn and resumes the same native session ID for follow-ups.
|
|
315
|
+
* A live logical agent session. A backend may replace its process during the
|
|
316
|
+
* session (`onPidChange`) and resume the same native session id for follow-ups.
|
|
311
317
|
*/
|
|
312
318
|
export interface AgentSession {
|
|
313
319
|
/** Resolves when the backend process exits — the session is fully over. */
|
|
@@ -324,7 +330,9 @@ export interface AgentSession {
|
|
|
324
330
|
* confirms the HARNESS ACCEPTED the input — mid-turn on a `steer` runner — not that
|
|
325
331
|
* the model consumed it (#505). Reject retains caller ownership for replay.
|
|
326
332
|
* `inputIds` correlate `onAgentInputConsumed` and `turn-end.unconsumedInputIds`.
|
|
327
|
-
* Never fall back to the human-answer seam.
|
|
333
|
+
* Never fall back to the human-answer seam. A submission this session's own `end()`
|
|
334
|
+
* cuts off rejects with `SessionEndedBeforeAcknowledgement`; any other rejection is a
|
|
335
|
+
* delivery failure (hearsay-tools/squawk#3508). */
|
|
328
336
|
sendAgentMessage(content: ContentBlock[], inputIds?: readonly string[]): false | Promise<void>;
|
|
329
337
|
/**
|
|
330
338
|
* Drop follow-ups queued while a turn was still in flight. A turn end that
|
|
@@ -383,10 +391,9 @@ interface InputDeliveryFacts {
|
|
|
383
391
|
* What resolves `sendAgentMessage`'s Promise (hearsay-tools/cezarion#2991). `write`: the local
|
|
384
392
|
* pipe write, so the provider can neither delay nor reject it (Claude's stdin). `response`: a
|
|
385
393
|
* native response to the submission, apart from the turn's frames (an RPC result, an HTTP
|
|
386
|
-
* acknowledgement, a prompt response id).
|
|
387
|
-
* turn the input opens, so no turn can end before its input is acknowledged (Cursor print).
|
|
394
|
+
* acknowledgement, a prompt response id).
|
|
388
395
|
*/
|
|
389
|
-
readonly acknowledgement: 'write' | 'response'
|
|
396
|
+
readonly acknowledgement: 'write' | 'response';
|
|
390
397
|
/** The native mechanism. Documentation only: no code branches on it. */
|
|
391
398
|
readonly via: string;
|
|
392
399
|
}
|
|
@@ -411,7 +418,8 @@ export type InputDelivery = InputDeliveryFacts & ({
|
|
|
411
418
|
readonly humanInputAtTurnEnd: 'always-held';
|
|
412
419
|
});
|
|
413
420
|
export declare const BOUNDARY_INPUT_DELIVERY: InputDelivery;
|
|
414
|
-
/** Absent means the pre-#505 behavior every runner had.
|
|
421
|
+
/** Absent means the pre-#505 behavior every runner had. No shipped runner declares `boundary`;
|
|
422
|
+
* it remains the delivery of a runner that declares none. */
|
|
415
423
|
export declare function inputDeliveryOf(runner: Pick<AgentRunner, 'inputDelivery'>): InputDelivery;
|
|
416
424
|
/**
|
|
417
425
|
* How this runner delivers `spec.systemPrompt` across session/process boundaries (#790).
|
|
@@ -425,12 +433,12 @@ export declare function inputDeliveryOf(runner: Pick<AgentRunner, 'inputDelivery
|
|
|
425
433
|
* not live-verified (not installed here) and is declared `resent` as the
|
|
426
434
|
* safe value.
|
|
427
435
|
* - `in-thread`: the system prompt was prepended into the opening turn and is
|
|
428
|
-
* part of the resumed thread's history (OpenCode, Codex
|
|
436
|
+
* part of the resumed thread's history (OpenCode, Codex). Re-sending
|
|
429
437
|
* the skill on the same session duplicates it; a fresh-session continuation
|
|
430
438
|
* (no `sessionId`, or OpenCode's lost-session fallback) still needs it.
|
|
431
439
|
*
|
|
432
440
|
* The flag is the caller's dedupe policy for the skill prefix, not a statement
|
|
433
|
-
* that in-thread runners ignore `systemPrompt` on resume. Codex
|
|
441
|
+
* that in-thread runners ignore `systemPrompt` on resume. Codex and
|
|
434
442
|
* OpenCode still re-prepend the whole `spec.systemPrompt` (extra prompt + handoff)
|
|
435
443
|
* on every resumed opening turn; Continue omits only the skill prefix on a
|
|
436
444
|
* same-session in-thread resume.
|
|
@@ -439,9 +447,7 @@ export type SystemPromptOnResume = 'resent' | 'in-thread';
|
|
|
439
447
|
/** Builds the runner for a backend id. The engine depends on this type only; the entry points
|
|
440
448
|
* pass `createRunner` from `runner-factory.ts`, which knows every adapter, and a test passes a
|
|
441
449
|
* factory for the one runner it drives (hearsay-tools/cezarion#2939). */
|
|
442
|
-
export type RunnerFactory = (backend: AgentBackend | RunnerId | undefined
|
|
443
|
-
sessionTransport?: SessionTransport;
|
|
444
|
-
}) => AgentRunner;
|
|
450
|
+
export type RunnerFactory = (backend: AgentBackend | RunnerId | undefined) => AgentRunner;
|
|
445
451
|
export interface AgentRunner {
|
|
446
452
|
readonly backend: AgentBackend;
|
|
447
453
|
/** Which `AgentRunSpec` fields this runner honors, and how — see `AgentRunSpecSupport`. */
|
|
@@ -6,8 +6,22 @@
|
|
|
6
6
|
* Canonical user-selectable runner tuple in display order. Derive runtime enumerations and
|
|
7
7
|
* schemas from this set; keep legacy backend ids separate for persisted records.
|
|
8
8
|
*/
|
|
9
|
-
export const RUNNER_IDS = ['claude', 'codex', 'opencode', 'pi', '
|
|
9
|
+
export const RUNNER_IDS = ['claude', 'codex', 'opencode', 'pi', 'omp'];
|
|
10
10
|
/** Narrow an arbitrary string (a config value, a check name) to a runner id. */
|
|
11
|
+
/** The rejection of an agent-input acknowledgement that the session's own `end()` cut off
|
|
12
|
+
* (hearsay-tools/squawk#3508). Squawk keeps such input owed as a closed-session delivery
|
|
13
|
+
* failure. A runner raises it only for the abort its `end()` fired: a provider error that
|
|
14
|
+
* arrived first, even one whose body the close cut off, keeps its own error. */
|
|
15
|
+
export class SessionEndedBeforeAcknowledgement extends Error {
|
|
16
|
+
constructor() {
|
|
17
|
+
super('the session ended before the input was acknowledged');
|
|
18
|
+
this.name = 'SessionEndedBeforeAcknowledgement';
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
/** The abort an `AbortController` fires rejects a fetch or a read with this name. */
|
|
22
|
+
export function isAbortError(error) {
|
|
23
|
+
return typeof error === 'object' && error !== null && error.name === 'AbortError';
|
|
24
|
+
}
|
|
11
25
|
export function isRunnerId(value) {
|
|
12
26
|
return RUNNER_IDS.includes(value);
|
|
13
27
|
}
|
|
@@ -110,7 +124,8 @@ export function trackChildExit(child) {
|
|
|
110
124
|
export const BOUNDARY_INPUT_DELIVERY = {
|
|
111
125
|
mode: 'boundary', consumption: 'unobservable', acknowledgement: 'response', humanInputAtTurnEnd: 'always-held', via: 'next idle turn',
|
|
112
126
|
};
|
|
113
|
-
/** Absent means the pre-#505 behavior every runner had.
|
|
127
|
+
/** Absent means the pre-#505 behavior every runner had. No shipped runner declares `boundary`;
|
|
128
|
+
* it remains the delivery of a runner that declares none. */
|
|
114
129
|
export function inputDeliveryOf(runner) {
|
|
115
130
|
return runner.inputDelivery ?? BOUNDARY_INPUT_DELIVERY;
|
|
116
131
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-runner.js","sourceRoot":"","sources":["../../src/core/agent-runner.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"agent-runner.js","sourceRoot":"","sources":["../../src/core/agent-runner.ts"],"names":[],"mappings":"AAA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;;;;;;;;GAYG;AACH,MAAM,UAAU,cAAc,CAAC,KAAqB;IAClD,IAAI,MAAM,GAAG,KAAK,CAAC,QAAQ,IAAI,IAAI,IAAI,KAAK,CAAC,UAAU,IAAI,IAAI,CAAC;IAChE,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE;QACtB,MAAM,GAAG,IAAI,CAAC;IAChB,CAAC,CAAC,CAAC;IACH,OAAO,GAAG,EAAE,CAAC,MAAM,CAAC;AACtB,CAAC;AAoLD,MAAM,CAAC,MAAM,uBAAuB,GAAkB;IACpD,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,cAAc,EAAE,eAAe,EAAE,UAAU,EAAE,mBAAmB,EAAE,aAAa,EAAE,GAAG,EAAE,gBAAgB;CACtI,CAAC;AACF;8DAC8D;AAC9D,MAAM,UAAU,eAAe,CAAC,MAA0C;IACxE,OAAO,MAAM,CAAC,aAAa,IAAI,uBAAuB,CAAC;AACzD,CAAC"}
|
|
@@ -21,7 +21,6 @@ const RUNNER_PROBES = {
|
|
|
21
21
|
codex: probeCodex,
|
|
22
22
|
opencode: probeOpencode,
|
|
23
23
|
pi: probePi,
|
|
24
|
-
cursor: probeCursor,
|
|
25
24
|
omp: probeOmp,
|
|
26
25
|
};
|
|
27
26
|
/** Banner spelling follows the release identity; switch-off output stays stable. */
|
|
@@ -141,19 +140,6 @@ async function probePi() {
|
|
|
141
140
|
};
|
|
142
141
|
}
|
|
143
142
|
}
|
|
144
|
-
async function probeCursor() {
|
|
145
|
-
if (productEnv('DRY_RUN') === '1') {
|
|
146
|
-
return { name: 'cursor', available: true, version: dryRunVersion() };
|
|
147
|
-
}
|
|
148
|
-
const bin = productEnv('CURSOR_BIN') ?? 'agent';
|
|
149
|
-
try {
|
|
150
|
-
const { stdout } = await exec(bin, ['--version'], { timeout: 10_000 });
|
|
151
|
-
return { name: 'cursor', available: true, version: stdout.trim(), hint: 'Run `agent login` to connect Cursor.' };
|
|
152
|
-
}
|
|
153
|
-
catch {
|
|
154
|
-
return { name: 'cursor', available: false, hint: 'Optional: install Cursor CLI (https://cursor.com/docs/cli/installation), then run `agent login`.' };
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
143
|
// Copy of probePi with OMP's binary, env override and hints; it never spawns `pi`.
|
|
158
144
|
export async function probeOmp() {
|
|
159
145
|
// Dry-run stands the runner up on the shared mock, so report it present.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backend-detect.js","sourceRoot":"","sources":["../../src/core/backend-detect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAiB,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,MAAM,IAAI,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC;AASjC;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB;IACrC,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC;AACtG,CAAC;AAED,0EAA0E;AAC1E,MAAM,aAAa,GAAkD;IACnE,MAAM,EAAE,WAAW;IACnB,KAAK,EAAE,UAAU;IACjB,QAAQ,EAAE,aAAa;IACvB,EAAE,EAAE,OAAO;IACX,
|
|
1
|
+
{"version":3,"file":"backend-detect.js","sourceRoot":"","sources":["../../src/core/backend-detect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBA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AAK,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC;QAC5B,IAAI,KAAK;YAAE,OAAO,KAAK,CAAC;IAC1B,CAAC;IAAC,MAAM,CAAC;QACP,8BAA8B;IAChC,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,IAAI,EAAE,IAAI,IAAI,CAAC;AAClD,CAAC"}
|
|
@@ -7,7 +7,7 @@ import { resolveClaudeExecutable } from './claude-executable.js';
|
|
|
7
7
|
import { AUTO_END_DELAY_MS, boundOutputDrainAfterExit, DEFAULT_RUNNER_TIMINGS } from './runner-runtime.js';
|
|
8
8
|
import { RUNNER_FACTS } from './runner-facts.js';
|
|
9
9
|
import { productName } from '../home/display.js';
|
|
10
|
-
import { isSignalTerminationExit, trackChildExit, unknownToolGrant, SQUAWK_SIDE_SPEC_SUPPORT } from './agent-runner.js';
|
|
10
|
+
import { isSignalTerminationExit, SessionEndedBeforeAcknowledgement, trackChildExit, unknownToolGrant, SQUAWK_SIDE_SPEC_SUPPORT } from './agent-runner.js';
|
|
11
11
|
import { signalSession, spawnSessionLeader, waitForEofExit } from './session-process.js';
|
|
12
12
|
import { buildChildEnv } from './agent-env.js';
|
|
13
13
|
import { squawkToolEnvNames, squawkToolNames } from '../ci-wait/tool-catalog.js';
|
|
@@ -627,13 +627,15 @@ export class ClaudeCliRunner {
|
|
|
627
627
|
let resolve, reject;
|
|
628
628
|
const acknowledged = new Promise((yes, no) => { resolve = yes; reject = no; });
|
|
629
629
|
agentWritePending = true;
|
|
630
|
-
|
|
630
|
+
// After this session's own end(), a close or write error before the write completed is the close.
|
|
631
|
+
const failed = (error) => reject(explicitEnd ? new SessionEndedBeforeAcknowledgement() : error);
|
|
632
|
+
const closed = () => { agentWritePending = false; failed(new Error('claude closed before stdin delivery completed')); };
|
|
631
633
|
child.once('close', closed);
|
|
632
634
|
const sent = sendMessage(content, error => {
|
|
633
635
|
child.off('close', closed);
|
|
634
636
|
agentWritePending = false;
|
|
635
637
|
if (error)
|
|
636
|
-
|
|
638
|
+
failed(error);
|
|
637
639
|
else
|
|
638
640
|
resolve();
|
|
639
641
|
if (stdinOpen && agentInputReady) {
|