@hearsay-tools/squawk 0.18.0-pr3787.7052 → 0.18.0-pr3791.7068
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/controller.d.ts +42 -42
- package/dist/ci-wait/tools.d.ts +4 -4
- package/dist/contract/index.js +11 -0
- package/dist/contract/runner-skills.d.ts +11 -0
- package/dist/contract/runs.d.ts +33 -18
- package/dist/core/agent-runner.d.ts +2 -0
- package/dist/core/agent-runner.js +1 -0
- package/dist/core/agent-runner.js.map +1 -1
- package/dist/core/claude-cli-runner.d.ts +2 -4
- package/dist/core/claude-cli-runner.js +5 -5
- package/dist/core/claude-cli-runner.js.map +1 -1
- package/dist/core/codex-app-server-runner.js +8 -8
- package/dist/core/codex-app-server-runner.js.map +1 -1
- package/dist/core/omp-runner.js +16 -2
- package/dist/core/omp-runner.js.map +1 -1
- package/dist/core/opencode-server-runner.js +6 -6
- package/dist/core/opencode-server-runner.js.map +1 -1
- package/dist/core/pi-args.d.ts +2 -0
- package/dist/core/pi-args.js +8 -0
- package/dist/core/pi-args.js.map +1 -0
- package/dist/core/pi-runner.js +23 -10
- package/dist/core/pi-runner.js.map +1 -1
- package/dist/core/pi-skill-catalog.js +2 -2
- package/dist/core/pi-skill-catalog.js.map +1 -1
- package/dist/core/runner-skill-reference.d.ts +20 -0
- package/dist/core/runner-skill-reference.js +36 -0
- package/dist/core/runner-skill-reference.js.map +1 -0
- package/dist/core/skill-trigger.d.ts +6 -2
- package/dist/core/skill-trigger.js +10 -4
- package/dist/core/skill-trigger.js.map +1 -1
- package/dist/delegation/conversations.d.ts +6 -0
- package/dist/delegation/routes.d.ts +71 -71
- package/dist/delegation/service.d.ts +1 -1
- package/dist/delegation/service.js +8 -4
- package/dist/delegation/service.js.map +1 -1
- package/dist/delegation/transport.d.ts +11 -11
- package/dist/headless-run.js +3 -1
- package/dist/headless-run.js.map +1 -1
- package/dist/planner.d.ts +2 -2
- package/dist/planner.js +11 -7
- package/dist/planner.js.map +1 -1
- package/dist/runs/run-exits.d.ts +16 -0
- package/dist/runs/store.d.ts +8 -1
- package/dist/serve-command.js +6 -2
- package/dist/serve-command.js.map +1 -1
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/runner-skills.d.ts +14 -0
- package/dist/server/runner-skills.js +19 -0
- package/dist/server/runner-skills.js.map +1 -0
- package/dist/server/server-deps.d.ts +1 -1
- package/dist/server/server-deps.js +3 -0
- package/dist/server/server-deps.js.map +1 -1
- package/dist/server/server.d.ts +2094 -1886
- package/dist/server/server.js +22 -17
- package/dist/server/server.js.map +1 -1
- package/dist/server/start-run-options.d.ts +3 -0
- package/dist/server/start-run-options.js +5 -2
- package/dist/server/start-run-options.js.map +1 -1
- package/dist/server/workspace-live-routes.d.ts +6 -6
- package/dist/task-cli/cli.js +30 -24
- package/dist/task-cli/cli.js.map +1 -1
- package/dist/workflows/continuation-admission.d.ts +4 -0
- package/dist/workflows/run/compose.js +4 -5
- package/dist/workflows/run/compose.js.map +1 -1
- package/dist/workflows/run/continuation-session.d.ts +0 -7
- package/dist/workflows/run/continuation-session.js +39 -122
- package/dist/workflows/run/continuation-session.js.map +1 -1
- package/dist/workflows/run/input-delivery.d.ts +8 -1
- package/dist/workflows/run/input-delivery.js +64 -38
- package/dist/workflows/run/input-delivery.js.map +1 -1
- package/dist/workflows/run/launch-context.d.ts +1 -1
- package/dist/workflows/run/launch-context.js +5 -6
- package/dist/workflows/run/launch-context.js.map +1 -1
- package/dist/workflows/run/launch-read-resolver.d.ts +21 -19
- package/dist/workflows/run/launch-read-resolver.js +16 -25
- package/dist/workflows/run/launch-read-resolver.js.map +1 -1
- package/dist/workflows/run/native-skill-input-queue.d.ts +59 -0
- package/dist/workflows/run/native-skill-input-queue.js +157 -0
- package/dist/workflows/run/native-skill-input-queue.js.map +1 -0
- package/dist/workflows/run/prompts.js +1 -1
- package/dist/workflows/run/prompts.js.map +1 -1
- package/dist/workflows/run/queued-input.js +9 -0
- package/dist/workflows/run/queued-input.js.map +1 -1
- package/dist/workflows/run/run-memory.d.ts +5 -0
- package/dist/workflows/run/run-memory.js +1 -1
- package/dist/workflows/run/run-memory.js.map +1 -1
- package/dist/workflows/run/run-skills.d.ts +23 -105
- package/dist/workflows/run/run-skills.js +83 -209
- package/dist/workflows/run/run-skills.js.map +1 -1
- package/dist/workflows/run/step-session.d.ts +2 -2
- package/dist/workflows/run/step-session.js +39 -40
- package/dist/workflows/run/step-session.js.map +1 -1
- package/dist/workflows/run/turn-bookkeeping.d.ts +2 -2
- package/dist/workflows/run/turn-bookkeeping.js +2 -2
- package/dist/workflows/run/turn-bookkeeping.js.map +1 -1
- package/dist/workflows/run/turn-settler.d.ts +2 -1
- package/dist/workflows/run/turn-settler.js +5 -1
- package/dist/workflows/run/turn-settler.js.map +1 -1
- package/dist/workflows/run/types.d.ts +5 -5
- package/dist/workflows/run/wait-engine.d.ts +3 -0
- package/dist/workflows/run.d.ts +28 -0
- package/dist/workflows/run.js +12 -2
- package/dist/workflows/run.js.map +1 -1
- package/package.json +4 -4
- package/scripts/mock-omp-rpc.mjs +20 -4
- package/scripts/mock-pi-rpc.mjs +4 -4
- package/web/dist/assets/{activity-motion-DAjCyDzm.js → activity-motion-xKVlnR0q.js} +1 -1
- package/web/dist/assets/{activity-route-6spKzFa-.js → activity-route-KsJ3FdWd.js} +1 -1
- package/web/dist/assets/{agent-accounts-BiXu1qX6.js → agent-accounts-CEmxoU4C.js} +1 -1
- package/web/dist/assets/attention-D0gSE5Rr.js +1 -0
- package/web/dist/assets/{commit-diff-panel-uoyOydBG.js → commit-diff-panel-DGjLiAVs.js} +1 -1
- package/web/dist/assets/{diff-BefwAEc1.js → diff-CsyHTaL2.js} +2 -2
- package/web/dist/assets/{diff-view-CXtKy-02.js → diff-view-lTo0JT2v.js} +1 -1
- package/web/dist/assets/{file-preview-TYTU1SBo.js → file-preview-Dq54dro7.js} +1 -1
- package/web/dist/assets/{git-toolbar-BwD-ShUL.js → git-toolbar-ChgRC3vR.js} +1 -1
- package/web/dist/assets/{github-DKC9GSOG.js → github-BnwdgVET.js} +1 -1
- package/web/dist/assets/{global-activity-route-BnUvjKgI.js → global-activity-route-lHJSxyik.js} +1 -1
- package/web/dist/assets/{index-C6UoXbYK.js → index-ZXr4fght.js} +4 -4
- package/web/dist/assets/{preview-pane-connected-ZAr18goj.js → preview-pane-connected-Cpc-OIBO.js} +1 -1
- package/web/dist/assets/{project-router-znDYCNAi.js → project-router-RpJixuMl.js} +1 -1
- package/web/dist/assets/project-scope-context-Cs9K5L24.js +4 -0
- package/web/dist/assets/{prompt-template-menu-Z7WYlxLR.js → prompt-template-menu-35CQbC0C.js} +1 -1
- package/web/dist/assets/{queries-LH_fzdoQ.js → queries-CU1rdCnf.js} +1 -1
- package/web/dist/assets/{reference-chip-DB4j8hzM.js → reference-chip-CZ88WX7M.js} +1 -1
- package/web/dist/assets/{repo-git-Y7MKcjLs.js → repo-git-BQRXiSQc.js} +1 -1
- package/web/dist/assets/{report-reader-CIcjK2_U.js → report-reader-B90i10fL.js} +1 -1
- package/web/dist/assets/{reports-SBr0VYKU.js → reports-DHccd243.js} +1 -1
- package/web/dist/assets/{run-header-BSohU_tW.js → run-header-B1Mhp48O.js} +1 -1
- package/web/dist/assets/{skills-B_NKCTPq.js → skills-9eRk7nNW.js} +1 -1
- package/web/dist/assets/{tab-link-C5SNXkMO.js → tab-link-BT6RV1JN.js} +1 -1
- package/web/dist/assets/{task-changes-Ozgv3HxN.js → task-changes-D0x55i9H.js} +1 -1
- package/web/dist/assets/{task-commits-BxAERDIz.js → task-commits-yRo6PLOs.js} +1 -1
- package/web/dist/assets/{task-files-V84lmxj2.js → task-files-DxDEn0jU.js} +1 -1
- package/web/dist/assets/{task-github-item-CByJ7mYg.js → task-github-item-aysyirC9.js} +1 -1
- package/web/dist/assets/{task-thread-C6v4ddX-.js → task-thread-CFw63WOG.js} +1 -1
- package/web/dist/assets/{thread-state-ni3Us7DE.js → thread-state-CbZJSZ8d.js} +1 -1
- package/web/dist/assets/{use-desktop-CsZKGRsr.js → use-desktop-DXVYKnpA.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-W5nhKd6-.js → use-hand-to-agent-state-CPCd0vCN.js} +1 -1
- package/web/dist/assets/{useInfiniteQuery-DZDwRft0.js → useInfiniteQuery-hcJtqg7r.js} +1 -1
- package/web/dist/assets/useQuery-DeFHpzJJ.js +1 -0
- package/web/dist/assets/{workflows-Cb0BDqy5.js → workflows-DMUcQeqG.js} +1 -1
- package/web/dist/assets/{ws-ClC12aJd.js → ws-DUd04kII.js} +1 -1
- package/web/dist/index.html +12 -12
- package/web/dist/assets/attention-D4F-L5Pd.js +0 -1
- package/web/dist/assets/project-scope-context-D8RGERU-.js +0 -4
- package/web/dist/assets/useQuery-BTWv1-sJ.js +0 -1
|
@@ -282,11 +282,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
282
282
|
"/api/v1/tools/ask": {
|
|
283
283
|
$post: {
|
|
284
284
|
output: {
|
|
285
|
-
|
|
285
|
+
ok: false;
|
|
286
|
+
code: 'unavailable';
|
|
286
287
|
message: string;
|
|
287
288
|
};
|
|
288
289
|
outputFormat: "json";
|
|
289
|
-
status:
|
|
290
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
290
291
|
input: {
|
|
291
292
|
json: {
|
|
292
293
|
questions: {
|
|
@@ -304,12 +305,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
304
305
|
};
|
|
305
306
|
} | {
|
|
306
307
|
output: {
|
|
307
|
-
|
|
308
|
-
code: 'unavailable';
|
|
308
|
+
code: 'capability_revoked';
|
|
309
309
|
message: string;
|
|
310
310
|
};
|
|
311
311
|
outputFormat: "json";
|
|
312
|
-
status:
|
|
312
|
+
status: 401;
|
|
313
313
|
input: {
|
|
314
314
|
json: {
|
|
315
315
|
questions: {
|
|
@@ -377,11 +377,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
377
377
|
"/api/v1/tools/cancel-wait": {
|
|
378
378
|
$post: {
|
|
379
379
|
output: {
|
|
380
|
-
|
|
380
|
+
cancelled: false;
|
|
381
|
+
code: 'unavailable';
|
|
381
382
|
message: string;
|
|
382
383
|
};
|
|
383
384
|
outputFormat: "json";
|
|
384
|
-
status:
|
|
385
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
385
386
|
input: {
|
|
386
387
|
json: {
|
|
387
388
|
wait_id: string;
|
|
@@ -389,12 +390,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
389
390
|
};
|
|
390
391
|
} | {
|
|
391
392
|
output: {
|
|
392
|
-
|
|
393
|
-
code: 'unavailable';
|
|
393
|
+
code: 'capability_revoked';
|
|
394
394
|
message: string;
|
|
395
395
|
};
|
|
396
396
|
outputFormat: "json";
|
|
397
|
-
status:
|
|
397
|
+
status: 401;
|
|
398
398
|
input: {
|
|
399
399
|
json: {
|
|
400
400
|
wait_id: string;
|
|
@@ -442,11 +442,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
442
442
|
"/api/v1/tools/done": {
|
|
443
443
|
$post: {
|
|
444
444
|
output: {
|
|
445
|
-
|
|
445
|
+
ok: false;
|
|
446
|
+
code: 'unavailable';
|
|
446
447
|
message: string;
|
|
447
448
|
};
|
|
448
449
|
outputFormat: "json";
|
|
449
|
-
status:
|
|
450
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
450
451
|
input: {
|
|
451
452
|
json: {
|
|
452
453
|
summary?: string | undefined;
|
|
@@ -454,12 +455,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
454
455
|
};
|
|
455
456
|
} | {
|
|
456
457
|
output: {
|
|
457
|
-
|
|
458
|
-
code: 'unavailable';
|
|
458
|
+
code: 'capability_revoked';
|
|
459
459
|
message: string;
|
|
460
460
|
};
|
|
461
461
|
outputFormat: "json";
|
|
462
|
-
status:
|
|
462
|
+
status: 401;
|
|
463
463
|
input: {
|
|
464
464
|
json: {
|
|
465
465
|
summary?: string | undefined;
|
|
@@ -542,11 +542,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
542
542
|
"/api/v1/tools/preview-stop": {
|
|
543
543
|
$post: {
|
|
544
544
|
output: {
|
|
545
|
-
|
|
545
|
+
ok: boolean;
|
|
546
|
+
code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
|
|
546
547
|
message: string;
|
|
548
|
+
hint: string;
|
|
547
549
|
};
|
|
548
550
|
outputFormat: "json";
|
|
549
|
-
status:
|
|
551
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
550
552
|
input: {
|
|
551
553
|
json: {
|
|
552
554
|
port: number;
|
|
@@ -555,13 +557,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
555
557
|
};
|
|
556
558
|
} | {
|
|
557
559
|
output: {
|
|
558
|
-
|
|
559
|
-
code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
|
|
560
|
+
code: 'capability_revoked';
|
|
560
561
|
message: string;
|
|
561
|
-
hint: string;
|
|
562
562
|
};
|
|
563
563
|
outputFormat: "json";
|
|
564
|
-
status:
|
|
564
|
+
status: 401;
|
|
565
565
|
input: {
|
|
566
566
|
json: {
|
|
567
567
|
port: number;
|
|
@@ -574,11 +574,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
574
574
|
"/api/v1/tools/preview-serve": {
|
|
575
575
|
$post: {
|
|
576
576
|
output: {
|
|
577
|
-
|
|
577
|
+
ok: boolean;
|
|
578
|
+
code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
|
|
578
579
|
message: string;
|
|
580
|
+
hint: string;
|
|
579
581
|
};
|
|
580
582
|
outputFormat: "json";
|
|
581
|
-
status:
|
|
583
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
582
584
|
input: {
|
|
583
585
|
json: {
|
|
584
586
|
command: string;
|
|
@@ -590,13 +592,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
590
592
|
};
|
|
591
593
|
} | {
|
|
592
594
|
output: {
|
|
593
|
-
|
|
594
|
-
code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
|
|
595
|
+
code: 'capability_revoked';
|
|
595
596
|
message: string;
|
|
596
|
-
hint: string;
|
|
597
597
|
};
|
|
598
598
|
outputFormat: "json";
|
|
599
|
-
status:
|
|
599
|
+
status: 401;
|
|
600
600
|
input: {
|
|
601
601
|
json: {
|
|
602
602
|
command: string;
|
|
@@ -612,11 +612,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
612
612
|
"/api/v1/tools/automation": {
|
|
613
613
|
$post: {
|
|
614
614
|
output: {
|
|
615
|
-
|
|
615
|
+
ok: false;
|
|
616
|
+
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
616
617
|
message: string;
|
|
617
618
|
};
|
|
618
619
|
outputFormat: "json";
|
|
619
|
-
status:
|
|
620
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
620
621
|
input: {
|
|
621
622
|
json: {
|
|
622
623
|
action: "create";
|
|
@@ -696,12 +697,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
696
697
|
};
|
|
697
698
|
} | {
|
|
698
699
|
output: {
|
|
699
|
-
|
|
700
|
-
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
700
|
+
code: 'capability_revoked';
|
|
701
701
|
message: string;
|
|
702
702
|
};
|
|
703
703
|
outputFormat: "json";
|
|
704
|
-
status:
|
|
704
|
+
status: 401;
|
|
705
705
|
input: {
|
|
706
706
|
json: {
|
|
707
707
|
action: "create";
|
|
@@ -957,11 +957,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
957
957
|
"/api/v1/tools/schedule-task": {
|
|
958
958
|
$post: {
|
|
959
959
|
output: {
|
|
960
|
-
|
|
960
|
+
ok: false;
|
|
961
|
+
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
961
962
|
message: string;
|
|
962
963
|
};
|
|
963
964
|
outputFormat: "json";
|
|
964
|
-
status:
|
|
965
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
965
966
|
input: {
|
|
966
967
|
json: {
|
|
967
968
|
at?: string | undefined;
|
|
@@ -978,12 +979,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
978
979
|
};
|
|
979
980
|
} | {
|
|
980
981
|
output: {
|
|
981
|
-
|
|
982
|
-
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
982
|
+
code: 'capability_revoked';
|
|
983
983
|
message: string;
|
|
984
984
|
};
|
|
985
985
|
outputFormat: "json";
|
|
986
|
-
status:
|
|
986
|
+
status: 401;
|
|
987
987
|
input: {
|
|
988
988
|
json: {
|
|
989
989
|
at?: string | undefined;
|
|
@@ -1038,11 +1038,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
1038
1038
|
"/api/v1/tools/scheduled-tasks": {
|
|
1039
1039
|
$post: {
|
|
1040
1040
|
output: {
|
|
1041
|
-
|
|
1041
|
+
ok: false;
|
|
1042
|
+
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
1042
1043
|
message: string;
|
|
1043
1044
|
};
|
|
1044
1045
|
outputFormat: "json";
|
|
1045
|
-
status:
|
|
1046
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1046
1047
|
input: {
|
|
1047
1048
|
json: {
|
|
1048
1049
|
at?: string | undefined;
|
|
@@ -1075,12 +1076,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
1075
1076
|
};
|
|
1076
1077
|
} | {
|
|
1077
1078
|
output: {
|
|
1078
|
-
|
|
1079
|
-
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
1079
|
+
code: 'capability_revoked';
|
|
1080
1080
|
message: string;
|
|
1081
1081
|
};
|
|
1082
1082
|
outputFormat: "json";
|
|
1083
|
-
status:
|
|
1083
|
+
status: 401;
|
|
1084
1084
|
input: {
|
|
1085
1085
|
json: {
|
|
1086
1086
|
at?: string | undefined;
|
package/dist/ci-wait/tools.d.ts
CHANGED
|
@@ -263,6 +263,10 @@ export declare function invokeScheduleTaskTool(input: unknown): Promise<{
|
|
|
263
263
|
}[];
|
|
264
264
|
isError: boolean;
|
|
265
265
|
details: {
|
|
266
|
+
ok: false;
|
|
267
|
+
code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
|
|
268
|
+
message: string;
|
|
269
|
+
} | {
|
|
266
270
|
ok: true;
|
|
267
271
|
task: {
|
|
268
272
|
id: string;
|
|
@@ -274,10 +278,6 @@ export declare function invokeScheduleTaskTool(input: unknown): Promise<{
|
|
|
274
278
|
url?: string | undefined;
|
|
275
279
|
};
|
|
276
280
|
note: string;
|
|
277
|
-
} | {
|
|
278
|
-
ok: false;
|
|
279
|
-
code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
|
|
280
|
-
message: string;
|
|
281
281
|
};
|
|
282
282
|
}>;
|
|
283
283
|
export declare function invokeScheduledTasksTool(input: unknown): Promise<{
|
package/dist/contract/index.js
CHANGED
|
@@ -2512,6 +2512,8 @@ var stepStateSchema = z20.object({
|
|
|
2512
2512
|
* that created it, so resume and Continue read this rather than the project's current
|
|
2513
2513
|
* selection. Absent on records written before accounts existed. */
|
|
2514
2514
|
profileId: z20.string().optional(),
|
|
2515
|
+
skillPath: z20.string().min(1).optional(),
|
|
2516
|
+
// Host-local copy; project skills are relative to the step's working folder.
|
|
2515
2517
|
costUsd: z20.number().optional(),
|
|
2516
2518
|
/** Explicit provenance for engine-generated continuation steps. */
|
|
2517
2519
|
synthetic: z20.literal("continuation").optional(),
|
|
@@ -2533,6 +2535,8 @@ var diffStatSchema = z20.object({
|
|
|
2533
2535
|
repointed: z20.boolean().optional()
|
|
2534
2536
|
});
|
|
2535
2537
|
var queuedMessageSchema = z20.object({
|
|
2538
|
+
replayAfterOpen: z20.literal(true).optional(),
|
|
2539
|
+
// NativeSkillInputQueue sets; launch hydration excludes; QueuedInput replays after open.
|
|
2536
2540
|
id: z20.string(),
|
|
2537
2541
|
text: z20.string(),
|
|
2538
2542
|
/** `/api/v1/runs/:id/images/…` URLs — attachments are persisted, never inlined. Images and
|
|
@@ -3119,6 +3123,7 @@ var createRunInputBaseSchema = z20.object({
|
|
|
3119
3123
|
images: z20.array(attachmentInputSchema).max(4).optional()
|
|
3120
3124
|
});
|
|
3121
3125
|
var createRunInputSchema = createRunInputBaseSchema.extend({
|
|
3126
|
+
steps: z20.array(workflowStepDefSchema.safeExtend({ skillPath: z20.string().min(1).optional() })).min(1).max(8).optional(),
|
|
3122
3127
|
/** Idempotent start (#504): a retry with the same id and payload answers `200` with the run
|
|
3123
3128
|
* the first request created; a different payload answers `409`. Scoped to the project. Not
|
|
3124
3129
|
* on the base schema, so an automation's task definition cannot carry one. */
|
|
@@ -5911,6 +5916,11 @@ var homeRecoveryActionSchema = z49.object({ file: homeFileSchema, detectedAt: z4
|
|
|
5911
5916
|
// ../contract/src/runner-skills.ts
|
|
5912
5917
|
import { z as z50 } from "zod";
|
|
5913
5918
|
var runnerSkillScopeSchema = z50.enum(["repo", "user", "system", "other"]);
|
|
5919
|
+
var runnerSkillsQuerySchema = z50.object({
|
|
5920
|
+
runner: runnerSchema,
|
|
5921
|
+
account: z50.string().min(1).max(64).optional(),
|
|
5922
|
+
refresh: z50.literal("1").optional()
|
|
5923
|
+
});
|
|
5914
5924
|
var runnerSkillSchema = z50.object({
|
|
5915
5925
|
id: z50.string(),
|
|
5916
5926
|
name: z50.string(),
|
|
@@ -6509,6 +6519,7 @@ export {
|
|
|
6509
6519
|
runnerSkillProblemSchema,
|
|
6510
6520
|
runnerSkillSchema,
|
|
6511
6521
|
runnerSkillScopeSchema,
|
|
6522
|
+
runnerSkillsQuerySchema,
|
|
6512
6523
|
runningSubagents,
|
|
6513
6524
|
runsIndexResponseSchema,
|
|
6514
6525
|
runsSearchQuerySchema,
|
|
@@ -5,6 +5,17 @@ export declare const runnerSkillScopeSchema: z.ZodEnum<{
|
|
|
5
5
|
system: "system";
|
|
6
6
|
user: "user";
|
|
7
7
|
}>;
|
|
8
|
+
export declare const runnerSkillsQuerySchema: z.ZodObject<{
|
|
9
|
+
runner: z.ZodEnum<{
|
|
10
|
+
claude: "claude";
|
|
11
|
+
codex: "codex";
|
|
12
|
+
omp: "omp";
|
|
13
|
+
opencode: "opencode";
|
|
14
|
+
pi: "pi";
|
|
15
|
+
}>;
|
|
16
|
+
account: z.ZodOptional<z.ZodString>;
|
|
17
|
+
refresh: z.ZodOptional<z.ZodLiteral<"1">>;
|
|
18
|
+
}, z.core.$strip>;
|
|
8
19
|
export declare const runnerSkillSchema: z.ZodObject<{
|
|
9
20
|
id: z.ZodString;
|
|
10
21
|
name: z.ZodString;
|
package/dist/contract/runs.d.ts
CHANGED
|
@@ -94,6 +94,7 @@ export declare const stepStateSchema: z.ZodObject<{
|
|
|
94
94
|
}>>;
|
|
95
95
|
removedBackend: z.ZodOptional<z.ZodString>;
|
|
96
96
|
profileId: z.ZodOptional<z.ZodString>;
|
|
97
|
+
skillPath: z.ZodOptional<z.ZodString>;
|
|
97
98
|
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
98
99
|
synthetic: z.ZodOptional<z.ZodLiteral<"continuation">>;
|
|
99
100
|
continuesStepId: z.ZodOptional<z.ZodString>;
|
|
@@ -109,6 +110,7 @@ export declare const diffStatSchema: z.ZodObject<{
|
|
|
109
110
|
export type DiffStat = z.infer<typeof diffStatSchema>;
|
|
110
111
|
/** One prompt message stacked onto a run while it waits for a free agent slot (#472). */
|
|
111
112
|
export declare const queuedMessageSchema: z.ZodObject<{
|
|
113
|
+
replayAfterOpen: z.ZodOptional<z.ZodLiteral<true>>;
|
|
112
114
|
id: z.ZodString;
|
|
113
115
|
text: z.ZodString;
|
|
114
116
|
images: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -117,6 +119,7 @@ export declare const queuedMessageSchema: z.ZodObject<{
|
|
|
117
119
|
export type QueuedMessage = z.infer<typeof queuedMessageSchema>;
|
|
118
120
|
/** Optional for legacy records; only explicit human origin can acknowledge a delegated ask. */
|
|
119
121
|
export declare const continuationMessageSchema: z.ZodObject<{
|
|
122
|
+
replayAfterOpen: z.ZodOptional<z.ZodLiteral<true>>;
|
|
120
123
|
id: z.ZodString;
|
|
121
124
|
text: z.ZodString;
|
|
122
125
|
images: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -223,6 +226,7 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
223
226
|
workflow: z.ZodString;
|
|
224
227
|
task: z.ZodString;
|
|
225
228
|
queuedMessages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
229
|
+
replayAfterOpen: z.ZodOptional<z.ZodLiteral<true>>;
|
|
226
230
|
id: z.ZodString;
|
|
227
231
|
text: z.ZodString;
|
|
228
232
|
images: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -230,6 +234,7 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
230
234
|
}, z.core.$strip>>>;
|
|
231
235
|
stopping: z.ZodOptional<z.ZodBoolean>;
|
|
232
236
|
continuationMessage: z.ZodOptional<z.ZodObject<{
|
|
237
|
+
replayAfterOpen: z.ZodOptional<z.ZodLiteral<true>>;
|
|
233
238
|
id: z.ZodString;
|
|
234
239
|
text: z.ZodString;
|
|
235
240
|
images: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -2096,6 +2101,7 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
2096
2101
|
}>>;
|
|
2097
2102
|
removedBackend: z.ZodOptional<z.ZodString>;
|
|
2098
2103
|
profileId: z.ZodOptional<z.ZodString>;
|
|
2104
|
+
skillPath: z.ZodOptional<z.ZodString>;
|
|
2099
2105
|
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
2100
2106
|
synthetic: z.ZodOptional<z.ZodLiteral<"continuation">>;
|
|
2101
2107
|
continuesStepId: z.ZodOptional<z.ZodString>;
|
|
@@ -2170,6 +2176,7 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
2170
2176
|
workflow: z.ZodString;
|
|
2171
2177
|
task: z.ZodString;
|
|
2172
2178
|
queuedMessages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2179
|
+
replayAfterOpen: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2173
2180
|
id: z.ZodString;
|
|
2174
2181
|
text: z.ZodString;
|
|
2175
2182
|
images: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -2177,6 +2184,7 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
2177
2184
|
}, z.core.$strip>>>;
|
|
2178
2185
|
stopping: z.ZodOptional<z.ZodBoolean>;
|
|
2179
2186
|
continuationMessage: z.ZodOptional<z.ZodObject<{
|
|
2187
|
+
replayAfterOpen: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2180
2188
|
id: z.ZodString;
|
|
2181
2189
|
text: z.ZodString;
|
|
2182
2190
|
images: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -4043,6 +4051,7 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
4043
4051
|
}>>;
|
|
4044
4052
|
removedBackend: z.ZodOptional<z.ZodString>;
|
|
4045
4053
|
profileId: z.ZodOptional<z.ZodString>;
|
|
4054
|
+
skillPath: z.ZodOptional<z.ZodString>;
|
|
4046
4055
|
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
4047
4056
|
synthetic: z.ZodOptional<z.ZodLiteral<"continuation">>;
|
|
4048
4057
|
continuesStepId: z.ZodOptional<z.ZodString>;
|
|
@@ -4888,6 +4897,7 @@ export declare const createRunResponseSchema: z.ZodObject<{
|
|
|
4888
4897
|
workflow: z.ZodString;
|
|
4889
4898
|
task: z.ZodString;
|
|
4890
4899
|
queuedMessages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4900
|
+
replayAfterOpen: z.ZodOptional<z.ZodLiteral<true>>;
|
|
4891
4901
|
id: z.ZodString;
|
|
4892
4902
|
text: z.ZodString;
|
|
4893
4903
|
images: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -4895,6 +4905,7 @@ export declare const createRunResponseSchema: z.ZodObject<{
|
|
|
4895
4905
|
}, z.core.$strip>>>;
|
|
4896
4906
|
stopping: z.ZodOptional<z.ZodBoolean>;
|
|
4897
4907
|
continuationMessage: z.ZodOptional<z.ZodObject<{
|
|
4908
|
+
replayAfterOpen: z.ZodOptional<z.ZodLiteral<true>>;
|
|
4898
4909
|
id: z.ZodString;
|
|
4899
4910
|
text: z.ZodString;
|
|
4900
4911
|
images: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -6761,6 +6772,7 @@ export declare const createRunResponseSchema: z.ZodObject<{
|
|
|
6761
6772
|
}>>;
|
|
6762
6773
|
removedBackend: z.ZodOptional<z.ZodString>;
|
|
6763
6774
|
profileId: z.ZodOptional<z.ZodString>;
|
|
6775
|
+
skillPath: z.ZodOptional<z.ZodString>;
|
|
6764
6776
|
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
6765
6777
|
synthetic: z.ZodOptional<z.ZodLiteral<"continuation">>;
|
|
6766
6778
|
continuesStepId: z.ZodOptional<z.ZodString>;
|
|
@@ -6910,6 +6922,7 @@ export declare const messageResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
6910
6922
|
}, z.core.$strip>, z.ZodObject<{
|
|
6911
6923
|
queued: z.ZodLiteral<true>;
|
|
6912
6924
|
message: z.ZodObject<{
|
|
6925
|
+
replayAfterOpen: z.ZodOptional<z.ZodLiteral<true>>;
|
|
6913
6926
|
id: z.ZodString;
|
|
6914
6927
|
text: z.ZodString;
|
|
6915
6928
|
images: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -6922,6 +6935,7 @@ export type MessageResponse = z.infer<typeof messageResponseSchema>;
|
|
|
6922
6935
|
/** `PATCH /runs/:id/queued-messages/:msgId` (#472) — the replaced entry. */
|
|
6923
6936
|
export declare const editQueuedMessageResponseSchema: z.ZodObject<{
|
|
6924
6937
|
message: z.ZodObject<{
|
|
6938
|
+
replayAfterOpen: z.ZodOptional<z.ZodLiteral<true>>;
|
|
6925
6939
|
id: z.ZodString;
|
|
6926
6940
|
text: z.ZodString;
|
|
6927
6941
|
images: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -7075,6 +7089,24 @@ export declare const createRunInputSchema: z.ZodObject<{
|
|
|
7075
7089
|
allowWorkers: z.ZodOptional<z.ZodBoolean>;
|
|
7076
7090
|
allowMessaging: z.ZodOptional<z.ZodBoolean>;
|
|
7077
7091
|
workflow: z.ZodOptional<z.ZodString>;
|
|
7092
|
+
task: z.ZodString;
|
|
7093
|
+
model: z.ZodOptional<z.ZodString>;
|
|
7094
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
7095
|
+
runner: z.ZodOptional<z.ZodEnum<{
|
|
7096
|
+
claude: "claude";
|
|
7097
|
+
codex: "codex";
|
|
7098
|
+
omp: "omp";
|
|
7099
|
+
opencode: "opencode";
|
|
7100
|
+
pi: "pi";
|
|
7101
|
+
}>>;
|
|
7102
|
+
agentProfile: z.ZodOptional<z.ZodString>;
|
|
7103
|
+
worktree: z.ZodOptional<z.ZodBoolean>;
|
|
7104
|
+
autonomous: z.ZodOptional<z.ZodBoolean>;
|
|
7105
|
+
systemPrompt: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string | undefined, string | undefined>>;
|
|
7106
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7107
|
+
mediaType: z.ZodString;
|
|
7108
|
+
data: z.ZodString;
|
|
7109
|
+
}, z.core.$strip>>>;
|
|
7078
7110
|
steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7079
7111
|
id: z.ZodString;
|
|
7080
7112
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -7098,24 +7130,7 @@ export declare const createRunInputSchema: z.ZodObject<{
|
|
|
7098
7130
|
retry: z.ZodString;
|
|
7099
7131
|
max: z.ZodDefault<z.ZodNumber>;
|
|
7100
7132
|
}, z.core.$strip>>;
|
|
7101
|
-
|
|
7102
|
-
task: z.ZodString;
|
|
7103
|
-
model: z.ZodOptional<z.ZodString>;
|
|
7104
|
-
effort: z.ZodOptional<z.ZodString>;
|
|
7105
|
-
runner: z.ZodOptional<z.ZodEnum<{
|
|
7106
|
-
claude: "claude";
|
|
7107
|
-
codex: "codex";
|
|
7108
|
-
omp: "omp";
|
|
7109
|
-
opencode: "opencode";
|
|
7110
|
-
pi: "pi";
|
|
7111
|
-
}>>;
|
|
7112
|
-
agentProfile: z.ZodOptional<z.ZodString>;
|
|
7113
|
-
worktree: z.ZodOptional<z.ZodBoolean>;
|
|
7114
|
-
autonomous: z.ZodOptional<z.ZodBoolean>;
|
|
7115
|
-
systemPrompt: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string | undefined, string | undefined>>;
|
|
7116
|
-
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7117
|
-
mediaType: z.ZodString;
|
|
7118
|
-
data: z.ZodString;
|
|
7133
|
+
skillPath: z.ZodOptional<z.ZodString>;
|
|
7119
7134
|
}, z.core.$strip>>>;
|
|
7120
7135
|
clientRequestId: z.ZodOptional<z.ZodString>;
|
|
7121
7136
|
notify: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -48,6 +48,8 @@ export interface AgentRunSpec {
|
|
|
48
48
|
userPrompt: string;
|
|
49
49
|
/** Native trigger. userPrompt remains opening context; args belongs to the skill. */
|
|
50
50
|
skill?: SkillTrigger;
|
|
51
|
+
/** Continue sends this trigger only when the adapter opens a fresh native session. */
|
|
52
|
+
resumeFallbackSkill?: SkillTrigger;
|
|
51
53
|
/** Image blocks delivered with the first user message — screenshots pasted
|
|
52
54
|
* into the new-task form (spec 002's paste path, at task start). */
|
|
53
55
|
images?: ContentBlock[] | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-runner.js","sourceRoot":"","sources":["../../src/core/agent-runner.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAOH;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,CAAU,CAAC;AAQhF,gFAAgF;AAChF;;;iFAGiF;AACjF,MAAM,OAAO,iCAAkC,SAAQ,KAAK;IAC1D;QACE,KAAK,CAAC,qDAAqD,CAAC,CAAC;QAC7D,IAAI,CAAC,IAAI,GAAG,mCAAmC,CAAC;IAClD,CAAC;CACF;AAED,qFAAqF;AACrF,MAAM,UAAU,YAAY,CAAC,KAAc;IACzC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAK,KAA4B,CAAC,IAAI,KAAK,YAAY,CAAC;AAC5G,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,KAAa;IACtC,OAAQ,UAAgC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC3D,CAAC;AAED,4EAA4E;AAC5E,MAAM,iBAAiB,GAAkC,IAAI,GAAG,CAAC,CAAC,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;AAE7F;;;GAGG;AACH,MAAM,UAAU,UAAU,CAAC,OAA2B;IACpD,IAAI,OAAO,KAAK,SAAS;QAAE,OAAO,QAAQ,CAAC;IAC3C,OAAO,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,iBAAiB,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,QAAQ,CAAC;AACpF,CAAC;
|
|
1
|
+
{"version":3,"file":"agent-runner.js","sourceRoot":"","sources":["../../src/core/agent-runner.ts"],"names":[],"mappings":"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"}
|
|
@@ -13,10 +13,8 @@ export interface ClaudeCliRunnerOptions {
|
|
|
13
13
|
* repo `cwd`; `Bash` is narrowed to `Bash(<prefix>:*)` patterns only when the
|
|
14
14
|
* grant carries a `bashAllowlist` — the zero-config default has none, so `Bash`
|
|
15
15
|
* is unrestricted shell access (#430).
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* github-janitor's `claudeRunner.ts`; the original single-turn adaptation
|
|
19
|
-
* came from @cezar/core's `ClaudeCodeCliRunner`.
|
|
16
|
+
* Session mechanics follow github-janitor's `claudeRunner.ts`; the single-turn
|
|
17
|
+
* adaptation came from @cezar/core's `ClaudeCodeCliRunner`.
|
|
20
18
|
*/
|
|
21
19
|
/**
|
|
22
20
|
* What the claude CLI receives from each `AgentRunSpec` field (#284). Every
|
|
@@ -25,10 +25,8 @@ import { claudeTurnStarted, createClaudeUiState, mapClaudeMessage, stringifyTool
|
|
|
25
25
|
* repo `cwd`; `Bash` is narrowed to `Bash(<prefix>:*)` patterns only when the
|
|
26
26
|
* grant carries a `bashAllowlist` — the zero-config default has none, so `Bash`
|
|
27
27
|
* is unrestricted shell access (#430).
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* github-janitor's `claudeRunner.ts`; the original single-turn adaptation
|
|
31
|
-
* came from @cezar/core's `ClaudeCodeCliRunner`.
|
|
28
|
+
* Session mechanics follow github-janitor's `claudeRunner.ts`; the single-turn
|
|
29
|
+
* adaptation came from @cezar/core's `ClaudeCodeCliRunner`.
|
|
32
30
|
*/
|
|
33
31
|
/**
|
|
34
32
|
* What the claude CLI receives from each `AgentRunSpec` field (#284). Every
|
|
@@ -41,6 +39,7 @@ export const CLAUDE_SPEC_SUPPORT = {
|
|
|
41
39
|
...SQUAWK_SIDE_SPEC_SUPPORT,
|
|
42
40
|
systemPrompt: { honored: true, via: '--append-system-prompt' },
|
|
43
41
|
skill: { honored: true, via: 'last text block /id args; context in earlier blocks' },
|
|
42
|
+
resumeFallbackSkill: { honored: true, via: 'native opening trigger only when bootstrap opens a fresh session' },
|
|
44
43
|
userPrompt: { honored: true, via: 'text block of the first stream-json user message on stdin' },
|
|
45
44
|
images: { honored: true, via: 'image blocks ahead of the text in the first stdin message' },
|
|
46
45
|
cwd: { honored: true, via: 'spawn cwd' },
|
|
@@ -277,7 +276,8 @@ export class ClaudeCliRunner {
|
|
|
277
276
|
}, (spec.timings?.killGraceMs ?? DEFAULT_RUNNER_TIMINGS.killGraceMs));
|
|
278
277
|
killTimer.unref?.();
|
|
279
278
|
};
|
|
280
|
-
|
|
279
|
+
// Claude refuses a missing --resume id before any turn; this adapter never starts a replacement.
|
|
280
|
+
sendMessage(openingContent(spec, Boolean(spec.resume && spec.sessionId)));
|
|
281
281
|
const toolCalls = [];
|
|
282
282
|
let tokensUsed = 0;
|
|
283
283
|
let sawUsage = false;
|