@hearsay-tools/squawk 0.18.0-pr3964.7518 → 0.18.0-pr3964.7528
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/agent-config/catalog.js +1 -1
- package/dist/agent-config/catalog.js.map +1 -1
- package/dist/ci-wait/controller.d.ts +42 -42
- package/dist/contract/index.js +47 -1
- package/dist/contract/runners.d.ts +106 -1
- package/dist/core/runner-definition.d.ts +26 -5
- package/dist/core/runner-definition.js.map +1 -1
- package/dist/delegation/routes.d.ts +65 -65
- package/dist/delegation/transport.d.ts +65 -65
- package/dist/runners/agent-config-notes.d.ts +5 -0
- package/dist/runners/agent-config-notes.js +6 -0
- package/dist/runners/agent-config-notes.js.map +1 -0
- package/dist/runners/claude/config-files.d.ts +3 -0
- package/dist/runners/claude/config-files.js +14 -0
- package/dist/runners/claude/config-files.js.map +1 -1
- package/dist/runners/claude/definition.js +2 -2
- package/dist/runners/claude/definition.js.map +1 -1
- package/dist/runners/claude/display.d.ts +6 -0
- package/dist/runners/claude/display.js +6 -0
- package/dist/runners/claude/display.js.map +1 -1
- package/dist/runners/claude/models.js +7 -0
- package/dist/runners/claude/models.js.map +1 -1
- package/dist/runners/codex/config-files.d.ts +3 -0
- package/dist/runners/codex/config-files.js +15 -0
- package/dist/runners/codex/config-files.js.map +1 -1
- package/dist/runners/codex/definition.js +2 -2
- package/dist/runners/codex/definition.js.map +1 -1
- package/dist/runners/codex/display.d.ts +6 -0
- package/dist/runners/codex/display.js +6 -0
- package/dist/runners/codex/display.js.map +1 -1
- package/dist/runners/codex/models.js +2 -0
- package/dist/runners/codex/models.js.map +1 -1
- package/dist/runners/omp/config-files.d.ts +3 -0
- package/dist/runners/omp/config-files.js +15 -0
- package/dist/runners/omp/config-files.js.map +1 -1
- package/dist/runners/omp/definition.js +2 -2
- package/dist/runners/omp/definition.js.map +1 -1
- package/dist/runners/omp/display.d.ts +5 -0
- package/dist/runners/omp/display.js +5 -0
- package/dist/runners/omp/display.js.map +1 -1
- package/dist/runners/omp/models.js +2 -0
- package/dist/runners/omp/models.js.map +1 -1
- package/dist/runners/opencode/config-files.d.ts +3 -0
- package/dist/runners/opencode/config-files.js +15 -0
- package/dist/runners/opencode/config-files.js.map +1 -1
- package/dist/runners/opencode/definition.js +2 -2
- package/dist/runners/opencode/definition.js.map +1 -1
- package/dist/runners/opencode/display.d.ts +5 -0
- package/dist/runners/opencode/display.js +5 -0
- package/dist/runners/opencode/display.js.map +1 -1
- package/dist/runners/opencode/models.js +2 -0
- package/dist/runners/opencode/models.js.map +1 -1
- package/dist/runners/pi/config-files.d.ts +3 -0
- package/dist/runners/pi/config-files.js +16 -0
- package/dist/runners/pi/config-files.js.map +1 -1
- package/dist/runners/pi/definition.js +2 -2
- package/dist/runners/pi/definition.js.map +1 -1
- package/dist/runners/pi/display.d.ts +6 -0
- package/dist/runners/pi/display.js +6 -0
- package/dist/runners/pi/display.js.map +1 -1
- package/dist/runners/pi/models.js +2 -0
- package/dist/runners/pi/models.js.map +1 -1
- package/dist/server/activity-routes.d.ts +23 -23
- package/dist/server/runners-routes.d.ts +28 -2
- package/dist/server/runners-routes.js +11 -3
- package/dist/server/runners-routes.js.map +1 -1
- package/dist/server/server.d.ts +1651 -1626
- package/package.json +4 -4
- package/web/dist/assets/{activity-motion-DQwtapOI.js → activity-motion-C3PyGX1i.js} +1 -1
- package/web/dist/assets/{activity-route-BwZiMGfK.js → activity-route-CBE9suPx.js} +1 -1
- package/web/dist/assets/{commit-diff-panel-BVWKMptW.js → commit-diff-panel-BHLfoc5K.js} +1 -1
- package/web/dist/assets/diff-CPP5-PAO.js +3 -0
- package/web/dist/assets/{diff-view-y7x-a5xQ.js → diff-view-pVNE2LKd.js} +4 -4
- package/web/dist/assets/{file-preview-CEaNT3ht.js → file-preview-Dnl25_Yq.js} +2 -2
- package/web/dist/assets/{git-toolbar-BvvAgmDO.js → git-toolbar-B8j0rXz_.js} +1 -1
- package/web/dist/assets/{github-B3WekFy2.js → github-Bk_W_P7M.js} +1 -1
- package/web/dist/assets/{global-activity-route-D3lMjvxF.js → global-activity-route-B3Bg4j74.js} +1 -1
- package/web/dist/assets/index-BUcVG7uX.js +14 -0
- package/web/dist/assets/{markdown-BojHOSHX.js → markdown-DZFo50wI.js} +3 -3
- package/web/dist/assets/picker-pill-Bhsrt_K5.js +15 -0
- package/web/dist/assets/preview-pane-connected-B887FUPw.js +3 -0
- package/web/dist/assets/prompt-template-menu-Cl8ES_lT.js +1 -0
- package/web/dist/assets/{queries-BpsLvjtu.js → queries-D5f-3moU.js} +1 -1
- package/web/dist/assets/{reference-chip-HnvJLwQV.js → reference-chip-BPdU-pFz.js} +1 -1
- package/web/dist/assets/repo-git-DkdZ-lHF.js +1 -0
- package/web/dist/assets/{report-reader-B9tuKd1M.js → report-reader-ClrhPnHJ.js} +1 -1
- package/web/dist/assets/{reports-DX1Hw80D.js → reports-CNDxM3-h.js} +1 -1
- package/web/dist/assets/run-header-CGu_4msV.js +2 -0
- package/web/dist/assets/runners-Dc2_oqXR.js +1 -0
- package/web/dist/assets/skills-rESbVzy9.js +1 -0
- package/web/dist/assets/task-changes-BqMvI8iD.js +1 -0
- package/web/dist/assets/{task-commits-BtU9bGk7.js → task-commits-B0vE6rWz.js} +1 -1
- package/web/dist/assets/{task-files-B0n2qyBi.js → task-files-5YPOAXtn.js} +1 -1
- package/web/dist/assets/{task-github-item-Xr08h42p.js → task-github-item-D6VreAoa.js} +1 -1
- package/web/dist/assets/task-thread-DO2BE7tp.js +9 -0
- package/web/dist/assets/{thread-state-DoSqzctg.js → thread-state-Cn5cetra.js} +1 -1
- package/web/dist/assets/{use-desktop-Coqw26IL.js → use-desktop-R2WTomyJ.js} +1 -1
- package/web/dist/assets/use-hand-to-agent-state-B277xMq3.js +1 -0
- package/web/dist/assets/{workflows-BEniI_am.js → workflows-fZms9I7r.js} +3 -3
- package/web/dist/index.html +7 -8
- package/web/dist/assets/agent-accounts-C_UK6pPU.js +0 -1
- package/web/dist/assets/diff-CXCoZr3w.js +0 -3
- package/web/dist/assets/index-BvMEJ3Ux.js +0 -14
- package/web/dist/assets/picker-pill-ToL4uifX.js +0 -15
- package/web/dist/assets/preview-pane-connected-BmBOIaSo.js +0 -3
- package/web/dist/assets/prompt-template-menu-D8RsDr0w.js +0 -1
- package/web/dist/assets/repo-git-jRvRtMVC.js +0 -1
- package/web/dist/assets/run-header-ClrfkoK4.js +0 -2
- package/web/dist/assets/runners-CIHj9D-C.js +0 -1
- package/web/dist/assets/skills-Y60pkNkG.js +0 -1
- package/web/dist/assets/task-changes-D-No9noD.js +0 -1
- package/web/dist/assets/task-thread-B7lUY_dn.js +0 -9
- package/web/dist/assets/use-hand-to-agent-state-PL74uvoL.js +0 -1
|
@@ -10,7 +10,7 @@ import { registeredRunners } from '../core/runner-registry.js';
|
|
|
10
10
|
* every runner's own files.
|
|
11
11
|
*/
|
|
12
12
|
export function listConfigFiles() {
|
|
13
|
-
const files = registeredRunners().flatMap((definition) => definition.configFiles);
|
|
13
|
+
const files = registeredRunners().flatMap((definition) => definition.configFiles.files);
|
|
14
14
|
return files.filter((file, index) => files.lastIndexOf(file) === index);
|
|
15
15
|
}
|
|
16
16
|
/** Look up one entry by its stable id, or undefined when the id is unknown. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.js","sourceRoot":"","sources":["../../src/agent-config/catalog.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D;;;;GAIG;AAEH;;;;GAIG;AACH,MAAM,UAAU,eAAe;IAC7B,MAAM,KAAK,GAAG,iBAAiB,EAAE,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.js","sourceRoot":"","sources":["../../src/agent-config/catalog.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D;;;;GAIG;AAEH;;;;GAIG;AACH,MAAM,UAAU,eAAe;IAC7B,MAAM,KAAK,GAAG,iBAAiB,EAAE,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IACxF,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,KAAK,CAAC,CAAC;AAC1E,CAAC;AAED,+EAA+E;AAC/E,MAAM,UAAU,cAAc,CAAC,EAAU;IACvC,OAAO,eAAe,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;AACpD,CAAC"}
|
|
@@ -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/contract/index.js
CHANGED
|
@@ -1200,13 +1200,55 @@ var healthResponseSchema = z13.object({
|
|
|
1200
1200
|
// ../contract/src/runners.ts
|
|
1201
1201
|
import { z as z14 } from "zod";
|
|
1202
1202
|
var runnerModelIdScopeSchema = z14.enum(["own", "provider-spanning"]);
|
|
1203
|
+
var runnerModelPresetSchema = z14.object({
|
|
1204
|
+
id: z14.string(),
|
|
1205
|
+
label: z14.string(),
|
|
1206
|
+
desc: z14.string()
|
|
1207
|
+
});
|
|
1208
|
+
var runnerModelSuggestionsSchema = z14.object({
|
|
1209
|
+
/** The picker's fallback suggestions, in order; the first is auto. */
|
|
1210
|
+
suggested: z14.array(runnerModelPresetSchema),
|
|
1211
|
+
/** Retired model ids. They are no presets any more, but another runner still refuses them. */
|
|
1212
|
+
retired: z14.array(z14.string())
|
|
1213
|
+
});
|
|
1214
|
+
var runnerAgentConfigGroupSchema = z14.object({
|
|
1215
|
+
id: z14.enum(["settings", "mcp", "memory"]),
|
|
1216
|
+
label: z14.string(),
|
|
1217
|
+
/** Group-level caveat, for example where this agent keeps its MCP servers. */
|
|
1218
|
+
note: z14.string().optional(),
|
|
1219
|
+
/** Shown instead of the file list when the group has nothing to list. */
|
|
1220
|
+
empty: z14.string().optional(),
|
|
1221
|
+
/** The group also shows the user-level MCP listing, even with no file. */
|
|
1222
|
+
showsUserMcp: z14.literal(true).optional()
|
|
1223
|
+
});
|
|
1224
|
+
var runnerAgentConfigSchema = z14.object({
|
|
1225
|
+
/** The agent's name on its tab. */
|
|
1226
|
+
label: z14.string(),
|
|
1227
|
+
/** Pane-level caveat shown under the agent's heading. */
|
|
1228
|
+
note: z14.string().optional(),
|
|
1229
|
+
groups: z14.array(runnerAgentConfigGroupSchema)
|
|
1230
|
+
});
|
|
1203
1231
|
var runnerEntrySchema = z14.object({
|
|
1204
1232
|
id: runnerSchema,
|
|
1205
1233
|
/** The runner's name on provider, account and conversation surfaces and in server messages. */
|
|
1206
1234
|
displayName: z14.string(),
|
|
1207
1235
|
/** The runner's name in model discovery messages and in the model picker's status line. */
|
|
1208
1236
|
modelListName: z14.string(),
|
|
1209
|
-
modelIdScope: runnerModelIdScopeSchema
|
|
1237
|
+
modelIdScope: runnerModelIdScopeSchema,
|
|
1238
|
+
/** The runner's name in the runner picker. */
|
|
1239
|
+
pickerLabel: z14.string(),
|
|
1240
|
+
/** The runner's line in the runner picker. */
|
|
1241
|
+
pickerDescription: z14.string(),
|
|
1242
|
+
/** A key for the cockpit's icon set. An unknown key shows the generic runner icon. */
|
|
1243
|
+
icon: z14.string(),
|
|
1244
|
+
/** What the accounts pane says when the CLI is not installed. */
|
|
1245
|
+
installHint: z14.string(),
|
|
1246
|
+
/** The command that logs the CLI in, as a terminal runs it. */
|
|
1247
|
+
loginCommand: z14.string(),
|
|
1248
|
+
/** A generic example account folder for the add-account dialog. */
|
|
1249
|
+
accountFolderExample: z14.string().optional(),
|
|
1250
|
+
models: runnerModelSuggestionsSchema,
|
|
1251
|
+
agentConfig: runnerAgentConfigSchema
|
|
1210
1252
|
});
|
|
1211
1253
|
var runnersResponseSchema = z14.object({
|
|
1212
1254
|
runners: z14.array(runnerEntrySchema)
|
|
@@ -6484,10 +6526,14 @@ export {
|
|
|
6484
6526
|
runWorkflowLabel,
|
|
6485
6527
|
runWorktreeSetupSchema,
|
|
6486
6528
|
rungNeedsYou,
|
|
6529
|
+
runnerAgentConfigGroupSchema,
|
|
6530
|
+
runnerAgentConfigSchema,
|
|
6487
6531
|
runnerEntrySchema,
|
|
6488
6532
|
runnerModelCatalogResponseSchema,
|
|
6489
6533
|
runnerModelIdScopeSchema,
|
|
6490
6534
|
runnerModelOptionSchema,
|
|
6535
|
+
runnerModelPresetSchema,
|
|
6536
|
+
runnerModelSuggestionsSchema,
|
|
6491
6537
|
runnerModelsSchema,
|
|
6492
6538
|
runnerSchema,
|
|
6493
6539
|
runnerSkillListSchema,
|
|
@@ -9,7 +9,54 @@ export declare const runnerModelIdScopeSchema: z.ZodEnum<{
|
|
|
9
9
|
"provider-spanning": "provider-spanning";
|
|
10
10
|
}>;
|
|
11
11
|
export type RunnerModelIdScope = z.infer<typeof runnerModelIdScopeSchema>;
|
|
12
|
-
/** One
|
|
12
|
+
/** One model the picker suggests before host discovery answers. `id: ''` is auto. */
|
|
13
|
+
export declare const runnerModelPresetSchema: z.ZodObject<{
|
|
14
|
+
id: z.ZodString;
|
|
15
|
+
label: z.ZodString;
|
|
16
|
+
desc: z.ZodString;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export type RunnerModelPreset = z.infer<typeof runnerModelPresetSchema>;
|
|
19
|
+
/** The model data the cockpit reads: the picker's suggestions and the ids a runner retired. */
|
|
20
|
+
export declare const runnerModelSuggestionsSchema: z.ZodObject<{
|
|
21
|
+
suggested: z.ZodArray<z.ZodObject<{
|
|
22
|
+
id: z.ZodString;
|
|
23
|
+
label: z.ZodString;
|
|
24
|
+
desc: z.ZodString;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
retired: z.ZodArray<z.ZodString>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export type RunnerModelSuggestions = z.infer<typeof runnerModelSuggestionsSchema>;
|
|
29
|
+
/** One group of the Settings → Agent config pane. The file filter stays in the cockpit. */
|
|
30
|
+
export declare const runnerAgentConfigGroupSchema: z.ZodObject<{
|
|
31
|
+
id: z.ZodEnum<{
|
|
32
|
+
mcp: "mcp";
|
|
33
|
+
memory: "memory";
|
|
34
|
+
settings: "settings";
|
|
35
|
+
}>;
|
|
36
|
+
label: z.ZodString;
|
|
37
|
+
note: z.ZodOptional<z.ZodString>;
|
|
38
|
+
empty: z.ZodOptional<z.ZodString>;
|
|
39
|
+
showsUserMcp: z.ZodOptional<z.ZodLiteral<true>>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
export type RunnerAgentConfigGroup = z.infer<typeof runnerAgentConfigGroupSchema>;
|
|
42
|
+
/** The Settings → Agent config pane of one runner. */
|
|
43
|
+
export declare const runnerAgentConfigSchema: z.ZodObject<{
|
|
44
|
+
label: z.ZodString;
|
|
45
|
+
note: z.ZodOptional<z.ZodString>;
|
|
46
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
47
|
+
id: z.ZodEnum<{
|
|
48
|
+
mcp: "mcp";
|
|
49
|
+
memory: "memory";
|
|
50
|
+
settings: "settings";
|
|
51
|
+
}>;
|
|
52
|
+
label: z.ZodString;
|
|
53
|
+
note: z.ZodOptional<z.ZodString>;
|
|
54
|
+
empty: z.ZodOptional<z.ZodString>;
|
|
55
|
+
showsUserMcp: z.ZodOptional<z.ZodLiteral<true>>;
|
|
56
|
+
}, z.core.$strip>>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
export type RunnerAgentConfig = z.infer<typeof runnerAgentConfigSchema>;
|
|
59
|
+
/** One registered runner as the cockpit shows it: the parts of its definition the cockpit reads. */
|
|
13
60
|
export declare const runnerEntrySchema: z.ZodObject<{
|
|
14
61
|
id: z.ZodString;
|
|
15
62
|
displayName: z.ZodString;
|
|
@@ -18,6 +65,35 @@ export declare const runnerEntrySchema: z.ZodObject<{
|
|
|
18
65
|
own: "own";
|
|
19
66
|
"provider-spanning": "provider-spanning";
|
|
20
67
|
}>;
|
|
68
|
+
pickerLabel: z.ZodString;
|
|
69
|
+
pickerDescription: z.ZodString;
|
|
70
|
+
icon: z.ZodString;
|
|
71
|
+
installHint: z.ZodString;
|
|
72
|
+
loginCommand: z.ZodString;
|
|
73
|
+
accountFolderExample: z.ZodOptional<z.ZodString>;
|
|
74
|
+
models: z.ZodObject<{
|
|
75
|
+
suggested: z.ZodArray<z.ZodObject<{
|
|
76
|
+
id: z.ZodString;
|
|
77
|
+
label: z.ZodString;
|
|
78
|
+
desc: z.ZodString;
|
|
79
|
+
}, z.core.$strip>>;
|
|
80
|
+
retired: z.ZodArray<z.ZodString>;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
agentConfig: z.ZodObject<{
|
|
83
|
+
label: z.ZodString;
|
|
84
|
+
note: z.ZodOptional<z.ZodString>;
|
|
85
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
86
|
+
id: z.ZodEnum<{
|
|
87
|
+
mcp: "mcp";
|
|
88
|
+
memory: "memory";
|
|
89
|
+
settings: "settings";
|
|
90
|
+
}>;
|
|
91
|
+
label: z.ZodString;
|
|
92
|
+
note: z.ZodOptional<z.ZodString>;
|
|
93
|
+
empty: z.ZodOptional<z.ZodString>;
|
|
94
|
+
showsUserMcp: z.ZodOptional<z.ZodLiteral<true>>;
|
|
95
|
+
}, z.core.$strip>>;
|
|
96
|
+
}, z.core.$strip>;
|
|
21
97
|
}, z.core.$strip>;
|
|
22
98
|
export type RunnerEntry = z.infer<typeof runnerEntrySchema>;
|
|
23
99
|
/**
|
|
@@ -34,6 +110,35 @@ export declare const runnersResponseSchema: z.ZodObject<{
|
|
|
34
110
|
own: "own";
|
|
35
111
|
"provider-spanning": "provider-spanning";
|
|
36
112
|
}>;
|
|
113
|
+
pickerLabel: z.ZodString;
|
|
114
|
+
pickerDescription: z.ZodString;
|
|
115
|
+
icon: z.ZodString;
|
|
116
|
+
installHint: z.ZodString;
|
|
117
|
+
loginCommand: z.ZodString;
|
|
118
|
+
accountFolderExample: z.ZodOptional<z.ZodString>;
|
|
119
|
+
models: z.ZodObject<{
|
|
120
|
+
suggested: z.ZodArray<z.ZodObject<{
|
|
121
|
+
id: z.ZodString;
|
|
122
|
+
label: z.ZodString;
|
|
123
|
+
desc: z.ZodString;
|
|
124
|
+
}, z.core.$strip>>;
|
|
125
|
+
retired: z.ZodArray<z.ZodString>;
|
|
126
|
+
}, z.core.$strip>;
|
|
127
|
+
agentConfig: z.ZodObject<{
|
|
128
|
+
label: z.ZodString;
|
|
129
|
+
note: z.ZodOptional<z.ZodString>;
|
|
130
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
131
|
+
id: z.ZodEnum<{
|
|
132
|
+
mcp: "mcp";
|
|
133
|
+
memory: "memory";
|
|
134
|
+
settings: "settings";
|
|
135
|
+
}>;
|
|
136
|
+
label: z.ZodString;
|
|
137
|
+
note: z.ZodOptional<z.ZodString>;
|
|
138
|
+
empty: z.ZodOptional<z.ZodString>;
|
|
139
|
+
showsUserMcp: z.ZodOptional<z.ZodLiteral<true>>;
|
|
140
|
+
}, z.core.$strip>>;
|
|
141
|
+
}, z.core.$strip>;
|
|
37
142
|
}, z.core.$strip>>;
|
|
38
143
|
}, z.core.$strip>;
|
|
39
144
|
export type RunnersResponse = z.infer<typeof runnersResponseSchema>;
|
|
@@ -7,7 +7,7 @@ import type { SkillCatalog } from './runner-skill-catalog.ts';
|
|
|
7
7
|
import type { SkillDiscoveryOptions } from './skill-probe.ts';
|
|
8
8
|
import type { ConfigFileDef } from './runner-config-files.ts';
|
|
9
9
|
import type { ProviderCommandResult, ProviderConnectionState } from './provider-auth.ts';
|
|
10
|
-
import type { RunnerEntry } from '../contract/index.js';
|
|
10
|
+
import type { RunnerAgentConfig, RunnerEntry, RunnerModelPreset } from '../contract/index.js';
|
|
11
11
|
/**
|
|
12
12
|
* Everything Squawk knows about one runner, in one object (spec 2026-11-18-runner-definitions).
|
|
13
13
|
* Each runner's `runners/<id>/definition.ts` exports one, made with `defineRunner`, and an entry
|
|
@@ -36,8 +36,8 @@ export interface RunnerDefinition {
|
|
|
36
36
|
}) => Promise<ModelOption[]>>;
|
|
37
37
|
/** Imports the runner's skill list adapter, which lists the skills its CLI sees. */
|
|
38
38
|
loadSkillCatalog(): Promise<(options: SkillDiscoveryOptions) => Promise<SkillCatalog>>;
|
|
39
|
-
/** The native config files that Settings → Agent config shows,
|
|
40
|
-
readonly configFiles:
|
|
39
|
+
/** The native config files that Settings → Agent config shows, and the runner's pane there. */
|
|
40
|
+
readonly configFiles: RunnerConfigFiles;
|
|
41
41
|
/** Extra tools unioned onto the default when a step does not set allowedTools. */
|
|
42
42
|
readonly extraTools: readonly string[];
|
|
43
43
|
/** Login and auth-status data (the `login` part). */
|
|
@@ -86,10 +86,31 @@ export interface RunnerMock {
|
|
|
86
86
|
* `scenarios['approval-malformed']`. */
|
|
87
87
|
readonly malformedApprovalEcho?: string;
|
|
88
88
|
}
|
|
89
|
-
/**
|
|
90
|
-
|
|
89
|
+
/**
|
|
90
|
+
* The `display` part: a `GET /api/v1/runners` entry without its id, its model presets (the `models`
|
|
91
|
+
* part) and its agent config pane (the `configFiles` part).
|
|
92
|
+
*/
|
|
93
|
+
export type RunnerDisplay = Omit<RunnerEntry, 'id' | 'models' | 'agentConfig'>;
|
|
94
|
+
/** A runner's `configFiles` part: its native files and the pane that groups them. Plain data. */
|
|
95
|
+
export interface RunnerConfigFiles {
|
|
96
|
+
/** The native config files that Settings → Agent config shows, in presentation order. */
|
|
97
|
+
readonly files: readonly ConfigFileDef[];
|
|
98
|
+
/** The runner's tab in Settings → Agent config: its name, notes and groups. The cockpit filters
|
|
99
|
+
* the agent config route's files into the groups by each file's `runners`, `kind` and `holdsMcp`. */
|
|
100
|
+
readonly agentConfig: RunnerAgentConfig;
|
|
101
|
+
}
|
|
91
102
|
/** A runner's model data: plain data in `runners/<id>/models.ts`. */
|
|
92
103
|
export interface RunnerModelData {
|
|
104
|
+
/**
|
|
105
|
+
* The model picker's fallback suggestions, in order, before host discovery answers. The first is
|
|
106
|
+
* auto (`id: ''`). The cockpit reads them from `GET /api/v1/runners`.
|
|
107
|
+
*/
|
|
108
|
+
readonly suggested: readonly RunnerModelPreset[];
|
|
109
|
+
/**
|
|
110
|
+
* Retired model ids: no presets any more, but another runner still refuses them as known
|
|
111
|
+
* foreign ids (`modelConflictsWithRunner` in the cockpit).
|
|
112
|
+
*/
|
|
113
|
+
readonly retired: readonly string[];
|
|
93
114
|
/**
|
|
94
115
|
* Known preset ids, for mismatch checks (`core/model-presets.ts`). This is not a whitelist:
|
|
95
116
|
* unknown custom ids remain valid. OpenCode uses native discovery plus a structural guard.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner-definition.js","sourceRoot":"","sources":["../../src/core/runner-definition.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"runner-definition.js","sourceRoot":"","sources":["../../src/core/runner-definition.ts"],"names":[],"mappings":"AAkPA,0BAA0B;AAC1B,MAAM,UAAU,YAAY,CAAC,UAA4B;IACvD,OAAO,UAAU,CAAC;AACpB,CAAC"}
|