@hearsay-tools/squawk 0.18.0-dev.7592 → 0.18.0-dev.7600
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/core/runner-definition.d.ts +17 -0
- package/dist/core/runner-definition.js.map +1 -1
- package/dist/delegation/transport.d.ts +65 -65
- package/dist/runners/claude/cli.d.ts +4 -0
- package/dist/runners/claude/cli.js +1 -0
- package/dist/runners/claude/cli.js.map +1 -1
- package/dist/runners/claude/mock.d.ts +42 -0
- package/dist/runners/claude/mock.js +55 -0
- package/dist/runners/claude/mock.js.map +1 -1
- package/dist/runners/codex/cli.d.ts +4 -0
- package/dist/runners/codex/cli.js +1 -0
- package/dist/runners/codex/cli.js.map +1 -1
- package/dist/runners/codex/mock.d.ts +26 -0
- package/dist/runners/codex/mock.js +32 -0
- package/dist/runners/codex/mock.js.map +1 -1
- package/dist/runners/omp/cli.d.ts +4 -0
- package/dist/runners/omp/cli.js +1 -0
- package/dist/runners/omp/cli.js.map +1 -1
- package/dist/runners/omp/mock.d.ts +22 -0
- package/dist/runners/omp/mock.js +27 -0
- package/dist/runners/omp/mock.js.map +1 -1
- package/dist/runners/opencode/cli.d.ts +4 -0
- package/dist/runners/opencode/cli.js +1 -0
- package/dist/runners/opencode/cli.js.map +1 -1
- package/dist/runners/opencode/mock.d.ts +14 -0
- package/dist/runners/opencode/mock.js +17 -0
- package/dist/runners/opencode/mock.js.map +1 -1
- package/dist/runners/pi/cli.d.ts +4 -0
- package/dist/runners/pi/cli.js +1 -0
- package/dist/runners/pi/cli.js.map +1 -1
- package/dist/runners/pi/mock.d.ts +22 -0
- package/dist/runners/pi/mock.js +27 -0
- package/dist/runners/pi/mock.js.map +1 -1
- package/dist/server/activity-routes.d.ts +23 -23
- package/dist/server/open-in-app.d.ts +4 -1
- package/dist/server/open-in-app.js +12 -17
- package/dist/server/open-in-app.js.map +1 -1
- package/package.json +4 -4
- package/scripts/mock-skill-data/claude.mjs +83 -0
- package/scripts/mock-skill-data/codex.mjs +73 -0
- package/scripts/mock-skill-data/omp.mjs +59 -0
- package/scripts/mock-skill-data/opencode.mjs +82 -0
- package/scripts/mock-skill-data/pi.mjs +64 -0
- package/scripts/mock-skill-data.mjs +13 -0
- package/scripts/mock-skill-list-data.mjs +3 -183
- package/scripts/mock-skill-trigger-data.mjs +3 -167
|
@@ -285,11 +285,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
285
285
|
"/api/v1/tools/ask": {
|
|
286
286
|
$post: {
|
|
287
287
|
output: {
|
|
288
|
-
|
|
288
|
+
ok: false;
|
|
289
|
+
code: 'unavailable';
|
|
289
290
|
message: string;
|
|
290
291
|
};
|
|
291
292
|
outputFormat: "json";
|
|
292
|
-
status:
|
|
293
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
293
294
|
input: {
|
|
294
295
|
json: {
|
|
295
296
|
questions: {
|
|
@@ -307,12 +308,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
307
308
|
};
|
|
308
309
|
} | {
|
|
309
310
|
output: {
|
|
310
|
-
|
|
311
|
-
code: 'unavailable';
|
|
311
|
+
code: 'capability_revoked';
|
|
312
312
|
message: string;
|
|
313
313
|
};
|
|
314
314
|
outputFormat: "json";
|
|
315
|
-
status:
|
|
315
|
+
status: 401;
|
|
316
316
|
input: {
|
|
317
317
|
json: {
|
|
318
318
|
questions: {
|
|
@@ -380,11 +380,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
380
380
|
"/api/v1/tools/cancel-wait": {
|
|
381
381
|
$post: {
|
|
382
382
|
output: {
|
|
383
|
-
|
|
383
|
+
cancelled: false;
|
|
384
|
+
code: 'unavailable';
|
|
384
385
|
message: string;
|
|
385
386
|
};
|
|
386
387
|
outputFormat: "json";
|
|
387
|
-
status:
|
|
388
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
388
389
|
input: {
|
|
389
390
|
json: {
|
|
390
391
|
wait_id: string;
|
|
@@ -392,12 +393,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
392
393
|
};
|
|
393
394
|
} | {
|
|
394
395
|
output: {
|
|
395
|
-
|
|
396
|
-
code: 'unavailable';
|
|
396
|
+
code: 'capability_revoked';
|
|
397
397
|
message: string;
|
|
398
398
|
};
|
|
399
399
|
outputFormat: "json";
|
|
400
|
-
status:
|
|
400
|
+
status: 401;
|
|
401
401
|
input: {
|
|
402
402
|
json: {
|
|
403
403
|
wait_id: string;
|
|
@@ -445,11 +445,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
445
445
|
"/api/v1/tools/done": {
|
|
446
446
|
$post: {
|
|
447
447
|
output: {
|
|
448
|
-
|
|
448
|
+
ok: false;
|
|
449
|
+
code: 'unavailable';
|
|
449
450
|
message: string;
|
|
450
451
|
};
|
|
451
452
|
outputFormat: "json";
|
|
452
|
-
status:
|
|
453
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
453
454
|
input: {
|
|
454
455
|
json: {
|
|
455
456
|
summary?: string | undefined;
|
|
@@ -457,12 +458,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
457
458
|
};
|
|
458
459
|
} | {
|
|
459
460
|
output: {
|
|
460
|
-
|
|
461
|
-
code: 'unavailable';
|
|
461
|
+
code: 'capability_revoked';
|
|
462
462
|
message: string;
|
|
463
463
|
};
|
|
464
464
|
outputFormat: "json";
|
|
465
|
-
status:
|
|
465
|
+
status: 401;
|
|
466
466
|
input: {
|
|
467
467
|
json: {
|
|
468
468
|
summary?: string | undefined;
|
|
@@ -545,11 +545,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
545
545
|
"/api/v1/tools/preview-stop": {
|
|
546
546
|
$post: {
|
|
547
547
|
output: {
|
|
548
|
-
|
|
548
|
+
ok: boolean;
|
|
549
|
+
code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
|
|
549
550
|
message: string;
|
|
551
|
+
hint: string;
|
|
550
552
|
};
|
|
551
553
|
outputFormat: "json";
|
|
552
|
-
status:
|
|
554
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
553
555
|
input: {
|
|
554
556
|
json: {
|
|
555
557
|
port: number;
|
|
@@ -558,13 +560,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
558
560
|
};
|
|
559
561
|
} | {
|
|
560
562
|
output: {
|
|
561
|
-
|
|
562
|
-
code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
|
|
563
|
+
code: 'capability_revoked';
|
|
563
564
|
message: string;
|
|
564
|
-
hint: string;
|
|
565
565
|
};
|
|
566
566
|
outputFormat: "json";
|
|
567
|
-
status:
|
|
567
|
+
status: 401;
|
|
568
568
|
input: {
|
|
569
569
|
json: {
|
|
570
570
|
port: number;
|
|
@@ -577,11 +577,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
577
577
|
"/api/v1/tools/preview-serve": {
|
|
578
578
|
$post: {
|
|
579
579
|
output: {
|
|
580
|
-
|
|
580
|
+
ok: boolean;
|
|
581
|
+
code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
|
|
581
582
|
message: string;
|
|
583
|
+
hint: string;
|
|
582
584
|
};
|
|
583
585
|
outputFormat: "json";
|
|
584
|
-
status:
|
|
586
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
585
587
|
input: {
|
|
586
588
|
json: {
|
|
587
589
|
command: string;
|
|
@@ -593,13 +595,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
593
595
|
};
|
|
594
596
|
} | {
|
|
595
597
|
output: {
|
|
596
|
-
|
|
597
|
-
code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
|
|
598
|
+
code: 'capability_revoked';
|
|
598
599
|
message: string;
|
|
599
|
-
hint: string;
|
|
600
600
|
};
|
|
601
601
|
outputFormat: "json";
|
|
602
|
-
status:
|
|
602
|
+
status: 401;
|
|
603
603
|
input: {
|
|
604
604
|
json: {
|
|
605
605
|
command: string;
|
|
@@ -615,11 +615,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
615
615
|
"/api/v1/tools/automation": {
|
|
616
616
|
$post: {
|
|
617
617
|
output: {
|
|
618
|
-
|
|
618
|
+
ok: false;
|
|
619
|
+
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
619
620
|
message: string;
|
|
620
621
|
};
|
|
621
622
|
outputFormat: "json";
|
|
622
|
-
status:
|
|
623
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
623
624
|
input: {
|
|
624
625
|
json: {
|
|
625
626
|
action: "create";
|
|
@@ -699,12 +700,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
699
700
|
};
|
|
700
701
|
} | {
|
|
701
702
|
output: {
|
|
702
|
-
|
|
703
|
-
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
703
|
+
code: 'capability_revoked';
|
|
704
704
|
message: string;
|
|
705
705
|
};
|
|
706
706
|
outputFormat: "json";
|
|
707
|
-
status:
|
|
707
|
+
status: 401;
|
|
708
708
|
input: {
|
|
709
709
|
json: {
|
|
710
710
|
action: "create";
|
|
@@ -960,11 +960,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
960
960
|
"/api/v1/tools/schedule-task": {
|
|
961
961
|
$post: {
|
|
962
962
|
output: {
|
|
963
|
-
|
|
963
|
+
ok: false;
|
|
964
|
+
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
964
965
|
message: string;
|
|
965
966
|
};
|
|
966
967
|
outputFormat: "json";
|
|
967
|
-
status:
|
|
968
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
968
969
|
input: {
|
|
969
970
|
json: {
|
|
970
971
|
at?: string | undefined;
|
|
@@ -981,12 +982,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
981
982
|
};
|
|
982
983
|
} | {
|
|
983
984
|
output: {
|
|
984
|
-
|
|
985
|
-
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
985
|
+
code: 'capability_revoked';
|
|
986
986
|
message: string;
|
|
987
987
|
};
|
|
988
988
|
outputFormat: "json";
|
|
989
|
-
status:
|
|
989
|
+
status: 401;
|
|
990
990
|
input: {
|
|
991
991
|
json: {
|
|
992
992
|
at?: string | undefined;
|
|
@@ -1041,11 +1041,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
1041
1041
|
"/api/v1/tools/scheduled-tasks": {
|
|
1042
1042
|
$post: {
|
|
1043
1043
|
output: {
|
|
1044
|
-
|
|
1044
|
+
ok: false;
|
|
1045
|
+
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
1045
1046
|
message: string;
|
|
1046
1047
|
};
|
|
1047
1048
|
outputFormat: "json";
|
|
1048
|
-
status:
|
|
1049
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1049
1050
|
input: {
|
|
1050
1051
|
json: {
|
|
1051
1052
|
at?: string | undefined;
|
|
@@ -1078,12 +1079,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
1078
1079
|
};
|
|
1079
1080
|
} | {
|
|
1080
1081
|
output: {
|
|
1081
|
-
|
|
1082
|
-
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
1082
|
+
code: 'capability_revoked';
|
|
1083
1083
|
message: string;
|
|
1084
1084
|
};
|
|
1085
1085
|
outputFormat: "json";
|
|
1086
|
-
status:
|
|
1086
|
+
status: 401;
|
|
1087
1087
|
input: {
|
|
1088
1088
|
json: {
|
|
1089
1089
|
at?: string | undefined;
|
|
@@ -85,6 +85,18 @@ export interface RunnerMock {
|
|
|
85
85
|
/** P6: the text the mock echoes once Squawk refuses its malformed request. Required with
|
|
86
86
|
* `scenarios['approval-malformed']`. */
|
|
87
87
|
readonly malformedApprovalEcho?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Parity cells this runner's wire cannot carry, by criterion id: how the matrix pins each and
|
|
90
|
+
* why. The parity kit's `PARITY_EXEMPTIONS` adds them to the rows it selects by facts. A row
|
|
91
|
+
* the kit selects by facts with a runner-specific reason (A9) reads that reason here.
|
|
92
|
+
*/
|
|
93
|
+
readonly parityExemptions?: Readonly<Record<string, RunnerParityExemption>>;
|
|
94
|
+
}
|
|
95
|
+
/** One parity cell a runner's wire cannot carry; the parity kit's `ExemptionKind` says how each kind is pinned. */
|
|
96
|
+
export interface RunnerParityExemption {
|
|
97
|
+
readonly kind: 'capability-absent' | 'scenario-unconstructible';
|
|
98
|
+
/** Why this runner's wire cannot carry the cell. Never "not implemented yet". */
|
|
99
|
+
readonly reason: string;
|
|
88
100
|
}
|
|
89
101
|
/**
|
|
90
102
|
* The `display` part: a `GET /api/v1/runners` entry without its id, its model presets (the `models`
|
|
@@ -174,6 +186,11 @@ export interface RunnerCli {
|
|
|
174
186
|
readonly site: string;
|
|
175
187
|
readonly label: string;
|
|
176
188
|
} | null;
|
|
189
|
+
/** The "Open in" menu entry (`cli:<id>`) that hands a session to this CLI: its label and its icon key. */
|
|
190
|
+
readonly openTarget: {
|
|
191
|
+
readonly label: string;
|
|
192
|
+
readonly icon: string;
|
|
193
|
+
};
|
|
177
194
|
}
|
|
178
195
|
/** Login and auth status (the `login` part, spec 2026-11-18-runner-definitions): the data half of
|
|
179
196
|
* a `DESCRIPTORS` entry from `core/provider-auth.ts`, read by `ProviderAuthService`. */
|
|
@@ -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":"AAiQA,0BAA0B;AAC1B,MAAM,UAAU,YAAY,CAAC,UAA4B;IACvD,OAAO,UAAU,CAAC;AACpB,CAAC"}
|
|
@@ -2,6 +2,18 @@ import type { DelegationRoutes } from './routes.ts';
|
|
|
2
2
|
export declare function createDelegationApp(routes: DelegationRoutes): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
|
|
3
3
|
"/list": {
|
|
4
4
|
$get: {
|
|
5
|
+
output: {
|
|
6
|
+
error: string;
|
|
7
|
+
code?: "invalid_input" | undefined;
|
|
8
|
+
};
|
|
9
|
+
outputFormat: "json";
|
|
10
|
+
status: 400;
|
|
11
|
+
input: {
|
|
12
|
+
query: {
|
|
13
|
+
offset?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
} | {
|
|
5
17
|
output: {
|
|
6
18
|
workers: {
|
|
7
19
|
workerId: string;
|
|
@@ -48,18 +60,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
48
60
|
offset?: string | undefined;
|
|
49
61
|
};
|
|
50
62
|
};
|
|
51
|
-
} | {
|
|
52
|
-
output: {
|
|
53
|
-
error: string;
|
|
54
|
-
code?: "invalid_input" | undefined;
|
|
55
|
-
};
|
|
56
|
-
outputFormat: "json";
|
|
57
|
-
status: 400;
|
|
58
|
-
input: {
|
|
59
|
-
query: {
|
|
60
|
-
offset?: string | undefined;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
65
|
} & {
|
|
@@ -598,6 +598,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
598
598
|
} & {
|
|
599
599
|
"/:workerId": {
|
|
600
600
|
$get: {
|
|
601
|
+
output: {
|
|
602
|
+
error: string;
|
|
603
|
+
code?: "invalid_input" | undefined;
|
|
604
|
+
};
|
|
605
|
+
outputFormat: "json";
|
|
606
|
+
status: 400;
|
|
607
|
+
input: {
|
|
608
|
+
param: {
|
|
609
|
+
workerId: string;
|
|
610
|
+
};
|
|
611
|
+
};
|
|
612
|
+
} | {
|
|
601
613
|
output: {
|
|
602
614
|
workerId: string;
|
|
603
615
|
settled: boolean;
|
|
@@ -715,7 +727,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
715
727
|
workerId: string;
|
|
716
728
|
};
|
|
717
729
|
};
|
|
718
|
-
}
|
|
730
|
+
};
|
|
731
|
+
};
|
|
732
|
+
} & {
|
|
733
|
+
"/:workerId/collect": {
|
|
734
|
+
$post: {
|
|
719
735
|
output: {
|
|
720
736
|
error: string;
|
|
721
737
|
code?: "invalid_input" | undefined;
|
|
@@ -726,12 +742,10 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
726
742
|
param: {
|
|
727
743
|
workerId: string;
|
|
728
744
|
};
|
|
745
|
+
} & {
|
|
746
|
+
json: Record<string, never>;
|
|
729
747
|
};
|
|
730
|
-
}
|
|
731
|
-
};
|
|
732
|
-
} & {
|
|
733
|
-
"/:workerId/collect": {
|
|
734
|
-
$post: {
|
|
748
|
+
} | {
|
|
735
749
|
output: {
|
|
736
750
|
workerId: string;
|
|
737
751
|
parentRunId: string;
|
|
@@ -854,7 +868,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
854
868
|
} & {
|
|
855
869
|
json: Record<string, never>;
|
|
856
870
|
};
|
|
857
|
-
}
|
|
871
|
+
};
|
|
872
|
+
};
|
|
873
|
+
} & {
|
|
874
|
+
"/:workerId/steer": {
|
|
875
|
+
$post: {
|
|
858
876
|
output: {
|
|
859
877
|
error: string;
|
|
860
878
|
code?: "invalid_input" | undefined;
|
|
@@ -866,13 +884,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
866
884
|
workerId: string;
|
|
867
885
|
};
|
|
868
886
|
} & {
|
|
869
|
-
json:
|
|
887
|
+
json: {
|
|
888
|
+
text: string;
|
|
889
|
+
};
|
|
870
890
|
};
|
|
871
|
-
}
|
|
872
|
-
};
|
|
873
|
-
} & {
|
|
874
|
-
"/:workerId/steer": {
|
|
875
|
-
$post: {
|
|
891
|
+
} | {
|
|
876
892
|
output: {
|
|
877
893
|
workerId: string;
|
|
878
894
|
state: "delivered" | "queued";
|
|
@@ -888,7 +904,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
888
904
|
text: string;
|
|
889
905
|
};
|
|
890
906
|
};
|
|
891
|
-
}
|
|
907
|
+
};
|
|
908
|
+
};
|
|
909
|
+
} & {
|
|
910
|
+
"/:workerId/stop": {
|
|
911
|
+
$post: {
|
|
892
912
|
output: {
|
|
893
913
|
error: string;
|
|
894
914
|
code?: "invalid_input" | undefined;
|
|
@@ -900,15 +920,9 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
900
920
|
workerId: string;
|
|
901
921
|
};
|
|
902
922
|
} & {
|
|
903
|
-
json:
|
|
904
|
-
text: string;
|
|
905
|
-
};
|
|
923
|
+
json: Record<string, never>;
|
|
906
924
|
};
|
|
907
|
-
}
|
|
908
|
-
};
|
|
909
|
-
} & {
|
|
910
|
-
"/:workerId/stop": {
|
|
911
|
-
$post: {
|
|
925
|
+
} | {
|
|
912
926
|
output: {
|
|
913
927
|
workerId: string;
|
|
914
928
|
state: "stopping" | "terminated";
|
|
@@ -922,7 +936,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
922
936
|
} & {
|
|
923
937
|
json: Record<string, never>;
|
|
924
938
|
};
|
|
925
|
-
}
|
|
939
|
+
};
|
|
940
|
+
};
|
|
941
|
+
} & {
|
|
942
|
+
"/:workerId/destroy": {
|
|
943
|
+
$post: {
|
|
926
944
|
output: {
|
|
927
945
|
error: string;
|
|
928
946
|
code?: "invalid_input" | undefined;
|
|
@@ -934,13 +952,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
934
952
|
workerId: string;
|
|
935
953
|
};
|
|
936
954
|
} & {
|
|
937
|
-
json:
|
|
955
|
+
json: {
|
|
956
|
+
discardWork?: true | undefined;
|
|
957
|
+
};
|
|
938
958
|
};
|
|
939
|
-
}
|
|
940
|
-
};
|
|
941
|
-
} & {
|
|
942
|
-
"/:workerId/destroy": {
|
|
943
|
-
$post: {
|
|
959
|
+
} | {
|
|
944
960
|
output: {
|
|
945
961
|
workerId: string;
|
|
946
962
|
state: "complete" | "incomplete";
|
|
@@ -969,22 +985,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
969
985
|
discardWork?: true | undefined;
|
|
970
986
|
};
|
|
971
987
|
};
|
|
972
|
-
} | {
|
|
973
|
-
output: {
|
|
974
|
-
error: string;
|
|
975
|
-
code?: "invalid_input" | undefined;
|
|
976
|
-
};
|
|
977
|
-
outputFormat: "json";
|
|
978
|
-
status: 400;
|
|
979
|
-
input: {
|
|
980
|
-
param: {
|
|
981
|
-
workerId: string;
|
|
982
|
-
};
|
|
983
|
-
} & {
|
|
984
|
-
json: {
|
|
985
|
-
discardWork?: true | undefined;
|
|
986
|
-
};
|
|
987
|
-
};
|
|
988
988
|
} | {
|
|
989
989
|
output: {
|
|
990
990
|
workerId: string;
|
|
@@ -1020,13 +1020,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
1020
1020
|
"/:workerId/diff": {
|
|
1021
1021
|
$get: {
|
|
1022
1022
|
output: {
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
diff: string;
|
|
1026
|
-
truncated: boolean;
|
|
1023
|
+
error: string;
|
|
1024
|
+
code?: "invalid_input" | undefined;
|
|
1027
1025
|
};
|
|
1028
1026
|
outputFormat: "json";
|
|
1029
|
-
status:
|
|
1027
|
+
status: 400;
|
|
1030
1028
|
input: {
|
|
1031
1029
|
param: {
|
|
1032
1030
|
workerId: string;
|
|
@@ -1034,11 +1032,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
1034
1032
|
};
|
|
1035
1033
|
} | {
|
|
1036
1034
|
output: {
|
|
1037
|
-
|
|
1038
|
-
|
|
1035
|
+
workerId: string;
|
|
1036
|
+
baselineSha: string;
|
|
1037
|
+
diff: string;
|
|
1038
|
+
truncated: boolean;
|
|
1039
1039
|
};
|
|
1040
1040
|
outputFormat: "json";
|
|
1041
|
-
status:
|
|
1041
|
+
status: 200;
|
|
1042
1042
|
input: {
|
|
1043
1043
|
param: {
|
|
1044
1044
|
workerId: string;
|
|
@@ -3,5 +3,6 @@ export const CLAUDE_CLI = {
|
|
|
3
3
|
terminalExecutable: { kind: 'path-name', name: 'claude' },
|
|
4
4
|
resumeArgs: id => `--resume ${id}`,
|
|
5
5
|
installSource: { npm: '@anthropic-ai/claude-code' },
|
|
6
|
+
openTarget: { label: 'Claude CLI', icon: 'claude' },
|
|
6
7
|
};
|
|
7
8
|
//# sourceMappingURL=cli.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/runners/claude/cli.ts"],"names":[],"mappings":"AAEA,wHAAwH;AACxH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,kBAAkB,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE;IACzD,UAAU,EAAE,EAAE,CAAC,EAAE,CAAC,YAAY,EAAE,EAAE;IAClC,aAAa,EAAE,EAAE,GAAG,EAAE,2BAA2B,EAAE;CACvB,CAAC"}
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/runners/claude/cli.ts"],"names":[],"mappings":"AAEA,wHAAwH;AACxH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,kBAAkB,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE;IACzD,UAAU,EAAE,EAAE,CAAC,EAAE,CAAC,YAAY,EAAE,EAAE;IAClC,aAAa,EAAE,EAAE,GAAG,EAAE,2BAA2B,EAAE;IACnD,UAAU,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE;CACvB,CAAC"}
|
|
@@ -54,4 +54,46 @@ export declare const CLAUDE_MOCK: {
|
|
|
54
54
|
readonly 'hook-after-park': 'mock:hook-after-park';
|
|
55
55
|
readonly 'steer-late': 'mock:hold';
|
|
56
56
|
};
|
|
57
|
+
readonly parityExemptions: {
|
|
58
|
+
readonly P9: {
|
|
59
|
+
readonly kind: 'scenario-unconstructible';
|
|
60
|
+
readonly reason: 'Claude print mode settles every tool permission inside Claude under its headless --permission-mode and sends Squawk no MCP tool approval request; Squawk\'s own tools are pre-authorized through generated --allowedTools entries (R35).';
|
|
61
|
+
};
|
|
62
|
+
readonly A13: {
|
|
63
|
+
readonly kind: 'capability-absent';
|
|
64
|
+
readonly reason: "Claude acknowledges input with its own stdin write, so no prompt acknowledgement is outstanding at a turn end, and it refuses agent input only while its own agent write is pending.";
|
|
65
|
+
};
|
|
66
|
+
readonly A14: {
|
|
67
|
+
readonly kind: 'capability-absent';
|
|
68
|
+
readonly reason: "Claude acknowledges input with its own stdin write, so no prompt acknowledgement is outstanding at a turn end, and it refuses agent input only while its own agent write is pending.";
|
|
69
|
+
};
|
|
70
|
+
readonly A15: {
|
|
71
|
+
readonly kind: 'capability-absent';
|
|
72
|
+
readonly reason: 'Claude acknowledges input with its own stdin write, so a submitted nudge cannot wait for its acknowledgement. The cell pins the inverted assertion: every acknowledgement cancels its bound and the run continues to the cap.';
|
|
73
|
+
};
|
|
74
|
+
readonly A9: {
|
|
75
|
+
readonly kind: 'capability-absent';
|
|
76
|
+
readonly reason: 'Claude stream-json asks through cezar_ask; its wire emits no native mid-turn ask.requested (A3/A4 cover the cezar_ask policy).';
|
|
77
|
+
};
|
|
78
|
+
readonly I2: {
|
|
79
|
+
readonly kind: 'capability-absent';
|
|
80
|
+
readonly reason: 'Claude 2.1.280 runs a stdin line written after the last model call as its own following result (queued_turn_count), so accepted input is never left unread (#505).';
|
|
81
|
+
};
|
|
82
|
+
readonly U12: {
|
|
83
|
+
readonly kind: 'capability-absent';
|
|
84
|
+
readonly reason: 'Claude acknowledges agent input with the local stdin pipe write, so the provider cannot delay the acknowledgement. U3b covers its delivery beside a pending question.';
|
|
85
|
+
};
|
|
86
|
+
readonly U13: {
|
|
87
|
+
readonly kind: 'capability-absent';
|
|
88
|
+
readonly reason: 'Claude acknowledges agent input with the local stdin pipe write; a written line has no provider rejection.';
|
|
89
|
+
};
|
|
90
|
+
readonly U27: {
|
|
91
|
+
readonly kind: 'capability-absent';
|
|
92
|
+
readonly reason: 'Claude acknowledges agent input with the local stdin pipe write, so no turn can end before its input is acknowledged; its fresh-step and Continue cells still run.';
|
|
93
|
+
};
|
|
94
|
+
readonly D1: {
|
|
95
|
+
readonly kind: 'capability-absent';
|
|
96
|
+
readonly reason: 'Claude Code 2.1.312 SendMessage and ListAgents also reach the session\'s own subagents, so no outbound tool is separate from subagent messaging; inbound messages from other sessions are refused on every launch (D3).';
|
|
97
|
+
};
|
|
98
|
+
};
|
|
57
99
|
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { COMMON_MOCK_SCENARIOS, STDIO_ASK_MOCK_SCENARIOS } from '../mock-prompts.js';
|
|
2
|
+
/** Why the A13 and A14 cells cannot run on this wire. */
|
|
3
|
+
const PROMPT_ACK_REASON = 'Claude acknowledges input with its own stdin write, so no prompt acknowledgement is outstanding at a turn end, and it refuses agent input only while its own agent write is pending.';
|
|
2
4
|
/** The claude runner's native mock and its scenario adapter (the `mock` part). Data only. */
|
|
3
5
|
export const CLAUDE_MOCK = {
|
|
4
6
|
askResumeCases: [{ kind: 'cezar_ask', scenario: 'ask-resume', answer: 'Library: Vitest' }],
|
|
@@ -19,5 +21,58 @@ export const CLAUDE_MOCK = {
|
|
|
19
21
|
// A line written after the last model call runs as the CLI's next queued turn.
|
|
20
22
|
'steer-late': 'mock:hold',
|
|
21
23
|
},
|
|
24
|
+
// The parity cells this wire cannot carry (`PARITY_EXEMPTIONS`).
|
|
25
|
+
parityExemptions: {
|
|
26
|
+
P9: {
|
|
27
|
+
kind: 'scenario-unconstructible',
|
|
28
|
+
reason: 'Claude print mode settles every tool permission inside Claude under its headless --permission-mode and sends Squawk no MCP tool approval request; Squawk\'s own tools are pre-authorized through generated --allowedTools entries (R35).',
|
|
29
|
+
},
|
|
30
|
+
// hearsay-tools/squawk#2452: the live A13/A14 rows run where a prompt acknowledgement can be
|
|
31
|
+
// outstanding at a turn end with no human input held.
|
|
32
|
+
A13: {
|
|
33
|
+
kind: 'capability-absent',
|
|
34
|
+
reason: PROMPT_ACK_REASON,
|
|
35
|
+
},
|
|
36
|
+
A14: {
|
|
37
|
+
kind: 'capability-absent',
|
|
38
|
+
reason: PROMPT_ACK_REASON,
|
|
39
|
+
},
|
|
40
|
+
// hearsay-tools/squawk#2443: the live row holds the nudge's acknowledgement on every wire that
|
|
41
|
+
// acknowledges apart from its own write.
|
|
42
|
+
A15: {
|
|
43
|
+
kind: 'capability-absent',
|
|
44
|
+
reason: 'Claude acknowledges input with its own stdin write, so a submitted nudge cannot wait for its acknowledgement. The cell pins the inverted assertion: every acknowledgement cancels its bound and the run continues to the cap.',
|
|
45
|
+
},
|
|
46
|
+
// A9: a native mid-turn ask.requested exists only where the declared native ask is answerable;
|
|
47
|
+
// the parity kit checks this reason against the facts.
|
|
48
|
+
A9: {
|
|
49
|
+
kind: 'capability-absent',
|
|
50
|
+
reason: 'Claude stream-json asks through cezar_ask; its wire emits no native mid-turn ask.requested (A3/A4 cover the cezar_ask policy).',
|
|
51
|
+
},
|
|
52
|
+
I2: {
|
|
53
|
+
kind: 'capability-absent',
|
|
54
|
+
reason: 'Claude 2.1.280 runs a stdin line written after the last model call as its own following result (queued_turn_count), so accepted input is never left unread (#505).',
|
|
55
|
+
},
|
|
56
|
+
// U12/U13: an agent-input acknowledgement the provider can delay or reject.
|
|
57
|
+
U12: {
|
|
58
|
+
kind: 'capability-absent',
|
|
59
|
+
reason: 'Claude acknowledges agent input with the local stdin pipe write, so the provider cannot delay the acknowledgement. U3b covers its delivery beside a pending question.',
|
|
60
|
+
},
|
|
61
|
+
U13: {
|
|
62
|
+
kind: 'capability-absent',
|
|
63
|
+
reason: 'Claude acknowledges agent input with the local stdin pipe write; a written line has no provider rejection.',
|
|
64
|
+
},
|
|
65
|
+
// U27 (hearsay-tools/cezarion#1525): the late-acknowledgement entry needs a turn that ends
|
|
66
|
+
// before its input is acknowledged.
|
|
67
|
+
U27: {
|
|
68
|
+
kind: 'capability-absent',
|
|
69
|
+
reason: 'Claude acknowledges agent input with the local stdin pipe write, so no turn can end before its input is acknowledged; its fresh-step and Continue cells still run.',
|
|
70
|
+
},
|
|
71
|
+
// D1 (hearsay-tools/cezarion#2279), checked against the installed CLI on 2026-10-30.
|
|
72
|
+
D1: {
|
|
73
|
+
kind: 'capability-absent',
|
|
74
|
+
reason: 'Claude Code 2.1.312 SendMessage and ListAgents also reach the session\'s own subagents, so no outbound tool is separate from subagent messaging; inbound messages from other sessions are refused on every launch (D3).',
|
|
75
|
+
},
|
|
76
|
+
},
|
|
22
77
|
};
|
|
23
78
|
//# sourceMappingURL=mock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock.js","sourceRoot":"","sources":["../../../src/runners/claude/mock.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAErF,6FAA6F;AAC7F,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC1F,MAAM,EAAE,gBAAgB;IACxB,MAAM,EAAE,iBAAiB;IACzB,SAAS,EAAE;QACT,GAAG,qBAAqB;QACxB,GAAG,wBAAwB;QAC3B,gGAAgG;QAChG,gBAAgB,EAAE,oBAAoB;QACtC,2BAA2B,EAAE,iBAAiB;QAC9C,sBAAsB,EAAE,2BAA2B;QACnD,sBAAsB,EAAE,2BAA2B;QACnD,QAAQ,EAAE,gBAAgB;QAC1B,qBAAqB,EAAE,0BAA0B;QACjD,cAAc,EAAE,mBAAmB;QACnC,iBAAiB,EAAE,sBAAsB;QACzC,+EAA+E;QAC/E,YAAY,EAAE,WAAW;KAC1B;CAC4B,CAAC"}
|
|
1
|
+
{"version":3,"file":"mock.js","sourceRoot":"","sources":["../../../src/runners/claude/mock.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAErF,yDAAyD;AACzD,MAAM,iBAAiB,GAAG,sLAAsL,CAAC;AAEjN,6FAA6F;AAC7F,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC1F,MAAM,EAAE,gBAAgB;IACxB,MAAM,EAAE,iBAAiB;IACzB,SAAS,EAAE;QACT,GAAG,qBAAqB;QACxB,GAAG,wBAAwB;QAC3B,gGAAgG;QAChG,gBAAgB,EAAE,oBAAoB;QACtC,2BAA2B,EAAE,iBAAiB;QAC9C,sBAAsB,EAAE,2BAA2B;QACnD,sBAAsB,EAAE,2BAA2B;QACnD,QAAQ,EAAE,gBAAgB;QAC1B,qBAAqB,EAAE,0BAA0B;QACjD,cAAc,EAAE,mBAAmB;QACnC,iBAAiB,EAAE,sBAAsB;QACzC,+EAA+E;QAC/E,YAAY,EAAE,WAAW;KAC1B;IACD,iEAAiE;IACjE,gBAAgB,EAAE;QAChB,EAAE,EAAE;YACF,IAAI,EAAE,0BAA0B;YAChC,MAAM,EAAE,0OAA0O;SACnP;QACD,6FAA6F;QAC7F,sDAAsD;QACtD,GAAG,EAAE;YACH,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE,iBAAiB;SAC1B;QACD,GAAG,EAAE;YACH,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE,iBAAiB;SAC1B;QACD,+FAA+F;QAC/F,yCAAyC;QACzC,GAAG,EAAE;YACH,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE,+NAA+N;SACxO;QACD,+FAA+F;QAC/F,uDAAuD;QACvD,EAAE,EAAE;YACF,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE,gIAAgI;SACzI;QACD,EAAE,EAAE;YACF,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE,oKAAoK;SAC7K;QACD,4EAA4E;QAC5E,GAAG,EAAE;YACH,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE,uKAAuK;SAChL;QACD,GAAG,EAAE;YACH,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE,4GAA4G;SACrH;QACD,2FAA2F;QAC3F,oCAAoC;QACpC,GAAG,EAAE;YACH,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE,oKAAoK;SAC7K;QACD,qFAAqF;QACrF,EAAE,EAAE;YACF,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE,yNAAyN;SAClO;KACF;CAC4B,CAAC"}
|