@hearsay-tools/squawk 0.18.0-dev.6969 → 0.18.0-dev.6973
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 +4 -4
- package/dist/contract/index.d.ts +1 -0
- package/dist/contract/index.js +24 -0
- package/dist/contract/runner-skills.d.ts +60 -0
- package/dist/core/claude-cli-runner.js +2 -4
- package/dist/core/claude-cli-runner.js.map +1 -1
- package/dist/core/claude-setting-sources.d.ts +2 -0
- package/dist/core/claude-setting-sources.js +7 -0
- package/dist/core/claude-setting-sources.js.map +1 -0
- package/dist/core/claude-skill-catalog.d.ts +4 -0
- package/dist/core/claude-skill-catalog.js +30 -0
- package/dist/core/claude-skill-catalog.js.map +1 -0
- package/dist/core/codex-skill-catalog.d.ts +4 -0
- package/dist/core/codex-skill-catalog.js +36 -0
- package/dist/core/codex-skill-catalog.js.map +1 -0
- package/dist/core/host-skill-catalog.d.ts +5 -0
- package/dist/core/host-skill-catalog.js +16 -0
- package/dist/core/host-skill-catalog.js.map +1 -0
- package/dist/core/omp-skill-catalog.d.ts +4 -0
- package/dist/core/omp-skill-catalog.js +23 -0
- package/dist/core/omp-skill-catalog.js.map +1 -0
- package/dist/core/opencode-skill-catalog.d.ts +4 -0
- package/dist/core/opencode-skill-catalog.js +37 -0
- package/dist/core/opencode-skill-catalog.js.map +1 -0
- package/dist/core/pi-skill-catalog.d.ts +4 -0
- package/dist/core/pi-skill-catalog.js +35 -0
- package/dist/core/pi-skill-catalog.js.map +1 -0
- package/dist/core/runner-skill-catalog.d.ts +29 -0
- package/dist/core/runner-skill-catalog.js +91 -0
- package/dist/core/runner-skill-catalog.js.map +1 -0
- package/dist/core/session-process.d.ts +3 -0
- package/dist/core/session-process.js +10 -0
- package/dist/core/session-process.js.map +1 -1
- package/dist/core/skill-path-scope.d.ts +4 -0
- package/dist/core/skill-path-scope.js +28 -0
- package/dist/core/skill-path-scope.js.map +1 -0
- package/dist/core/skill-probe.d.ts +17 -0
- package/dist/core/skill-probe.js +102 -0
- package/dist/core/skill-probe.js.map +1 -0
- package/dist/delegation/routes.d.ts +75 -75
- package/dist/delegation/transport.d.ts +13 -13
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/reports-api.d.ts +2 -2
- package/dist/server/server.d.ts +6 -6
- package/dist/workflows/run/liveness-timers.d.ts +4 -0
- package/dist/workflows/run/liveness-timers.js +2 -0
- package/dist/workflows/run/liveness-timers.js.map +1 -1
- package/dist/workflows/run/turn-boundary.d.ts +4 -1
- package/dist/workflows/run/turn-boundary.js.map +1 -1
- package/dist/workflows/run/turn-nudges.d.ts +17 -4
- package/dist/workflows/run/turn-nudges.js +39 -11
- package/dist/workflows/run/turn-nudges.js.map +1 -1
- package/dist/workflows/run-states.js +1 -0
- package/dist/workflows/run-states.js.map +1 -1
- package/dist/workflows/turn-end.d.ts +1 -0
- package/dist/workflows/turn-end.js +1 -0
- package/dist/workflows/turn-end.js.map +1 -1
- package/package.json +4 -4
- package/scripts/mock-autonomous.mjs +7 -0
- package/scripts/mock-claude.mjs +12 -0
- package/scripts/mock-codex-app-server.mjs +4 -0
- package/scripts/mock-omp-rpc.mjs +6 -0
- package/scripts/mock-opencode-serve.mjs +9 -0
- package/scripts/mock-pi-rpc.mjs +5 -0
- package/scripts/mock-scenario.mjs +11 -0
- package/scripts/mock-skill-list-data.d.mts +1 -0
- package/scripts/mock-skill-list-data.mjs +184 -0
- package/scripts/mock-skill-list.d.mts +1 -0
- package/scripts/mock-skill-list.mjs +8 -0
|
@@ -27,6 +27,18 @@ export declare function delegationFailure(error: unknown): {
|
|
|
27
27
|
export declare function createDelegationRoutes(service: DelegationService, credentials: CredentialRegistry): import("hono/hono-base").HonoBase<Env, {
|
|
28
28
|
"/list": {
|
|
29
29
|
$get: {
|
|
30
|
+
output: {
|
|
31
|
+
error: string;
|
|
32
|
+
code?: "invalid_input" | undefined;
|
|
33
|
+
};
|
|
34
|
+
outputFormat: "json";
|
|
35
|
+
status: 400;
|
|
36
|
+
input: {
|
|
37
|
+
query: {
|
|
38
|
+
offset?: string | undefined;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
} | {
|
|
30
42
|
output: {
|
|
31
43
|
workers: {
|
|
32
44
|
workerId: string;
|
|
@@ -64,24 +76,21 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
64
76
|
offset?: string | undefined;
|
|
65
77
|
};
|
|
66
78
|
};
|
|
67
|
-
} | {
|
|
68
|
-
output: {
|
|
69
|
-
error: string;
|
|
70
|
-
code?: "invalid_input" | undefined;
|
|
71
|
-
};
|
|
72
|
-
outputFormat: "json";
|
|
73
|
-
status: 400;
|
|
74
|
-
input: {
|
|
75
|
-
query: {
|
|
76
|
-
offset?: string | undefined;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
81
|
} & {
|
|
82
82
|
"/discover": {
|
|
83
83
|
$post: {
|
|
84
84
|
output: {
|
|
85
|
+
scope: "host-default-account";
|
|
86
|
+
runners: {
|
|
87
|
+
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
88
|
+
enabled?: boolean | undefined;
|
|
89
|
+
hint?: string | undefined;
|
|
90
|
+
authFailureId?: string | undefined;
|
|
91
|
+
runner: "claude" | "codex" | "omp" | "opencode" | "pi";
|
|
92
|
+
}[];
|
|
93
|
+
} | {
|
|
85
94
|
runner: "claude" | "codex" | "omp" | "opencode" | "pi";
|
|
86
95
|
models: {
|
|
87
96
|
id: string;
|
|
@@ -92,15 +101,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
92
101
|
source: "cache" | "live" | "unavailable";
|
|
93
102
|
stale: boolean;
|
|
94
103
|
reason?: string | undefined;
|
|
95
|
-
} | {
|
|
96
|
-
scope: "host-default-account";
|
|
97
|
-
runners: {
|
|
98
|
-
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
99
|
-
enabled?: boolean | undefined;
|
|
100
|
-
hint?: string | undefined;
|
|
101
|
-
authFailureId?: string | undefined;
|
|
102
|
-
runner: "claude" | "codex" | "omp" | "opencode" | "pi";
|
|
103
|
-
}[];
|
|
104
104
|
} | {
|
|
105
105
|
tasks: {
|
|
106
106
|
id: string;
|
|
@@ -221,13 +221,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
221
221
|
status: 200;
|
|
222
222
|
input: {
|
|
223
223
|
json: {
|
|
224
|
-
workerIds: string[];
|
|
225
|
-
timeoutSeconds?: number | undefined;
|
|
226
|
-
mode?: "all" | "any" | "one" | undefined;
|
|
227
|
-
} | {
|
|
228
224
|
requestIds: string[];
|
|
229
225
|
mode?: "all" | "any" | "one" | undefined;
|
|
230
226
|
timeoutSeconds?: number | undefined;
|
|
227
|
+
} | {
|
|
228
|
+
workerIds: string[];
|
|
229
|
+
timeoutSeconds?: number | undefined;
|
|
230
|
+
mode?: "all" | "any" | "one" | undefined;
|
|
231
231
|
} | {
|
|
232
232
|
peerIds: string[];
|
|
233
233
|
timeoutSeconds?: number | undefined;
|
|
@@ -613,6 +613,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
613
613
|
} & {
|
|
614
614
|
"/:workerId": {
|
|
615
615
|
$get: {
|
|
616
|
+
output: {
|
|
617
|
+
error: string;
|
|
618
|
+
code?: "invalid_input" | undefined;
|
|
619
|
+
};
|
|
620
|
+
outputFormat: "json";
|
|
621
|
+
status: 400;
|
|
622
|
+
input: {
|
|
623
|
+
param: {
|
|
624
|
+
workerId: string;
|
|
625
|
+
};
|
|
626
|
+
};
|
|
627
|
+
} | {
|
|
616
628
|
output: {
|
|
617
629
|
workerId: string;
|
|
618
630
|
parentRunId: string;
|
|
@@ -720,7 +732,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
720
732
|
workerId: string;
|
|
721
733
|
};
|
|
722
734
|
};
|
|
723
|
-
}
|
|
735
|
+
};
|
|
736
|
+
};
|
|
737
|
+
} & {
|
|
738
|
+
"/:workerId/collect": {
|
|
739
|
+
$post: {
|
|
724
740
|
output: {
|
|
725
741
|
error: string;
|
|
726
742
|
code?: "invalid_input" | undefined;
|
|
@@ -731,12 +747,10 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
731
747
|
param: {
|
|
732
748
|
workerId: string;
|
|
733
749
|
};
|
|
750
|
+
} & {
|
|
751
|
+
json: Record<string, never>;
|
|
734
752
|
};
|
|
735
|
-
}
|
|
736
|
-
};
|
|
737
|
-
} & {
|
|
738
|
-
"/:workerId/collect": {
|
|
739
|
-
$post: {
|
|
753
|
+
} | {
|
|
740
754
|
output: {
|
|
741
755
|
workerId: string;
|
|
742
756
|
parentRunId: string;
|
|
@@ -838,7 +852,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
838
852
|
} & {
|
|
839
853
|
json: Record<string, never>;
|
|
840
854
|
};
|
|
841
|
-
}
|
|
855
|
+
};
|
|
856
|
+
};
|
|
857
|
+
} & {
|
|
858
|
+
"/:workerId/steer": {
|
|
859
|
+
$post: {
|
|
842
860
|
output: {
|
|
843
861
|
error: string;
|
|
844
862
|
code?: "invalid_input" | undefined;
|
|
@@ -850,13 +868,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
850
868
|
workerId: string;
|
|
851
869
|
};
|
|
852
870
|
} & {
|
|
853
|
-
json:
|
|
871
|
+
json: {
|
|
872
|
+
text: string;
|
|
873
|
+
};
|
|
854
874
|
};
|
|
855
|
-
}
|
|
856
|
-
};
|
|
857
|
-
} & {
|
|
858
|
-
"/:workerId/steer": {
|
|
859
|
-
$post: {
|
|
875
|
+
} | {
|
|
860
876
|
output: {
|
|
861
877
|
workerId: string;
|
|
862
878
|
state: "delivered" | "queued";
|
|
@@ -872,7 +888,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
872
888
|
text: string;
|
|
873
889
|
};
|
|
874
890
|
};
|
|
875
|
-
}
|
|
891
|
+
};
|
|
892
|
+
};
|
|
893
|
+
} & {
|
|
894
|
+
"/:workerId/stop": {
|
|
895
|
+
$post: {
|
|
876
896
|
output: {
|
|
877
897
|
error: string;
|
|
878
898
|
code?: "invalid_input" | undefined;
|
|
@@ -884,15 +904,9 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
884
904
|
workerId: string;
|
|
885
905
|
};
|
|
886
906
|
} & {
|
|
887
|
-
json:
|
|
888
|
-
text: string;
|
|
889
|
-
};
|
|
907
|
+
json: Record<string, never>;
|
|
890
908
|
};
|
|
891
|
-
}
|
|
892
|
-
};
|
|
893
|
-
} & {
|
|
894
|
-
"/:workerId/stop": {
|
|
895
|
-
$post: {
|
|
909
|
+
} | {
|
|
896
910
|
output: {
|
|
897
911
|
workerId: string;
|
|
898
912
|
state: "stopping" | "terminated";
|
|
@@ -906,7 +920,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
906
920
|
} & {
|
|
907
921
|
json: Record<string, never>;
|
|
908
922
|
};
|
|
909
|
-
}
|
|
923
|
+
};
|
|
924
|
+
};
|
|
925
|
+
} & {
|
|
926
|
+
"/:workerId/destroy": {
|
|
927
|
+
$post: {
|
|
910
928
|
output: {
|
|
911
929
|
error: string;
|
|
912
930
|
code?: "invalid_input" | undefined;
|
|
@@ -920,11 +938,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
920
938
|
} & {
|
|
921
939
|
json: Record<string, never>;
|
|
922
940
|
};
|
|
923
|
-
}
|
|
924
|
-
};
|
|
925
|
-
} & {
|
|
926
|
-
"/:workerId/destroy": {
|
|
927
|
-
$post: {
|
|
941
|
+
} | {
|
|
928
942
|
output: {
|
|
929
943
|
workerId: string;
|
|
930
944
|
state: "complete" | "incomplete";
|
|
@@ -947,20 +961,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
947
961
|
} & {
|
|
948
962
|
json: Record<string, never>;
|
|
949
963
|
};
|
|
950
|
-
} | {
|
|
951
|
-
output: {
|
|
952
|
-
error: string;
|
|
953
|
-
code?: "invalid_input" | undefined;
|
|
954
|
-
};
|
|
955
|
-
outputFormat: "json";
|
|
956
|
-
status: 400;
|
|
957
|
-
input: {
|
|
958
|
-
param: {
|
|
959
|
-
workerId: string;
|
|
960
|
-
};
|
|
961
|
-
} & {
|
|
962
|
-
json: Record<string, never>;
|
|
963
|
-
};
|
|
964
964
|
} | {
|
|
965
965
|
output: {
|
|
966
966
|
workerId: string;
|
|
@@ -990,13 +990,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
990
990
|
"/:workerId/diff": {
|
|
991
991
|
$get: {
|
|
992
992
|
output: {
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
diff: string;
|
|
996
|
-
truncated: boolean;
|
|
993
|
+
error: string;
|
|
994
|
+
code?: "invalid_input" | undefined;
|
|
997
995
|
};
|
|
998
996
|
outputFormat: "json";
|
|
999
|
-
status:
|
|
997
|
+
status: 400;
|
|
1000
998
|
input: {
|
|
1001
999
|
param: {
|
|
1002
1000
|
workerId: string;
|
|
@@ -1004,11 +1002,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1004
1002
|
};
|
|
1005
1003
|
} | {
|
|
1006
1004
|
output: {
|
|
1007
|
-
|
|
1008
|
-
|
|
1005
|
+
workerId: string;
|
|
1006
|
+
baselineSha: string;
|
|
1007
|
+
diff: string;
|
|
1008
|
+
truncated: boolean;
|
|
1009
1009
|
};
|
|
1010
1010
|
outputFormat: "json";
|
|
1011
|
-
status:
|
|
1011
|
+
status: 200;
|
|
1012
1012
|
input: {
|
|
1013
1013
|
param: {
|
|
1014
1014
|
workerId: string;
|
|
@@ -57,15 +57,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
57
57
|
"/discover": {
|
|
58
58
|
$post: {
|
|
59
59
|
output: {
|
|
60
|
-
scope: "host-default-account";
|
|
61
|
-
runners: {
|
|
62
|
-
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
63
|
-
enabled?: boolean | undefined;
|
|
64
|
-
hint?: string | undefined;
|
|
65
|
-
authFailureId?: string | undefined;
|
|
66
|
-
runner: "claude" | "codex" | "omp" | "opencode" | "pi";
|
|
67
|
-
}[];
|
|
68
|
-
} | {
|
|
69
60
|
tasks: {
|
|
70
61
|
id: string;
|
|
71
62
|
title: string;
|
|
@@ -77,6 +68,15 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
77
68
|
reason?: string | undefined;
|
|
78
69
|
}[];
|
|
79
70
|
nextOffset?: number | undefined;
|
|
71
|
+
} | {
|
|
72
|
+
scope: "host-default-account";
|
|
73
|
+
runners: {
|
|
74
|
+
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
75
|
+
enabled?: boolean | undefined;
|
|
76
|
+
hint?: string | undefined;
|
|
77
|
+
authFailureId?: string | undefined;
|
|
78
|
+
runner: "claude" | "codex" | "omp" | "opencode" | "pi";
|
|
79
|
+
}[];
|
|
80
80
|
} | {
|
|
81
81
|
runner: "claude" | "codex" | "omp" | "opencode" | "pi";
|
|
82
82
|
models: {
|
|
@@ -196,13 +196,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
196
196
|
status: 200;
|
|
197
197
|
input: {
|
|
198
198
|
json: {
|
|
199
|
-
workerIds: string[];
|
|
200
|
-
timeoutSeconds?: number | undefined;
|
|
201
|
-
mode?: "all" | "any" | "one" | undefined;
|
|
202
|
-
} | {
|
|
203
199
|
requestIds: string[];
|
|
204
200
|
mode?: "all" | "any" | "one" | undefined;
|
|
205
201
|
timeoutSeconds?: number | undefined;
|
|
202
|
+
} | {
|
|
203
|
+
workerIds: string[];
|
|
204
|
+
timeoutSeconds?: number | undefined;
|
|
205
|
+
mode?: "all" | "any" | "one" | undefined;
|
|
206
206
|
} | {
|
|
207
207
|
peerIds: string[];
|
|
208
208
|
timeoutSeconds?: number | undefined;
|
|
@@ -16,12 +16,6 @@ export declare function createLiveRoutes({ resolveProject, serverGeneration, res
|
|
|
16
16
|
output: {
|
|
17
17
|
generation: string;
|
|
18
18
|
results: ({
|
|
19
|
-
projectId: string;
|
|
20
|
-
runId: string;
|
|
21
|
-
type: "error" | "reset";
|
|
22
|
-
status: 400 | 404 | 409 | 413 | 503;
|
|
23
|
-
error: string;
|
|
24
|
-
} | {
|
|
25
19
|
projectId: string;
|
|
26
20
|
runId: string;
|
|
27
21
|
type: "batch";
|
|
@@ -35,6 +29,12 @@ export declare function createLiveRoutes({ resolveProject, serverGeneration, res
|
|
|
35
29
|
cursor: string;
|
|
36
30
|
afterSeq: number;
|
|
37
31
|
hasMore: boolean;
|
|
32
|
+
} | {
|
|
33
|
+
projectId: string;
|
|
34
|
+
runId: string;
|
|
35
|
+
type: "error" | "reset";
|
|
36
|
+
status: 400 | 404 | 409 | 413 | 503;
|
|
37
|
+
error: string;
|
|
38
38
|
})[];
|
|
39
39
|
};
|
|
40
40
|
outputFormat: "json";
|
|
@@ -40,7 +40,7 @@ export declare const reportsRoutes: import("hono/hono-base").HonoBase<ProjectApi
|
|
|
40
40
|
error: string;
|
|
41
41
|
};
|
|
42
42
|
outputFormat: "json";
|
|
43
|
-
status:
|
|
43
|
+
status: 409;
|
|
44
44
|
input: {
|
|
45
45
|
query: {
|
|
46
46
|
q?: string | undefined;
|
|
@@ -53,7 +53,7 @@ export declare const reportsRoutes: import("hono/hono-base").HonoBase<ProjectApi
|
|
|
53
53
|
error: string;
|
|
54
54
|
};
|
|
55
55
|
outputFormat: "json";
|
|
56
|
-
status:
|
|
56
|
+
status: 400;
|
|
57
57
|
input: {
|
|
58
58
|
query: {
|
|
59
59
|
q?: string | undefined;
|
package/dist/server/server.d.ts
CHANGED
|
@@ -2979,12 +2979,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
2979
2979
|
output: {
|
|
2980
2980
|
generation: string;
|
|
2981
2981
|
results: ({
|
|
2982
|
-
projectId: string;
|
|
2983
|
-
runId: string;
|
|
2984
|
-
type: "error" | "reset";
|
|
2985
|
-
status: 400 | 404 | 409 | 413 | 503;
|
|
2986
|
-
error: string;
|
|
2987
|
-
} | {
|
|
2988
2982
|
projectId: string;
|
|
2989
2983
|
runId: string;
|
|
2990
2984
|
type: "batch";
|
|
@@ -2998,6 +2992,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
2998
2992
|
cursor: string;
|
|
2999
2993
|
afterSeq: number;
|
|
3000
2994
|
hasMore: boolean;
|
|
2995
|
+
} | {
|
|
2996
|
+
projectId: string;
|
|
2997
|
+
runId: string;
|
|
2998
|
+
type: "error" | "reset";
|
|
2999
|
+
status: 400 | 404 | 409 | 413 | 503;
|
|
3000
|
+
error: string;
|
|
3001
3001
|
})[];
|
|
3002
3002
|
};
|
|
3003
3003
|
outputFormat: "json";
|
|
@@ -19,6 +19,10 @@ export declare const LIVENESS_BOUNDS: {
|
|
|
19
19
|
readonly acknowledgement: {
|
|
20
20
|
readonly scope: 'execution';
|
|
21
21
|
};
|
|
22
|
+
/** An acknowledged autonomous nudge that gets no turn or reply closes through the idle path (`TurnNudges.armAutonomousNudgeAnswerBound`, hearsay-tools/squawk#3741). Heartbeats do not move it. */
|
|
23
|
+
readonly 'nudge-answer': {
|
|
24
|
+
readonly scope: 'execution';
|
|
25
|
+
};
|
|
22
26
|
/** Accepted input the harness never reads (`InputDelivery.armUnreadInputTimer`, hearsay-tools/cezarion#505). */
|
|
23
27
|
readonly 'unread-input': {
|
|
24
28
|
readonly scope: 'execution';
|
|
@@ -10,6 +10,8 @@ export const LIVENESS_BOUNDS = {
|
|
|
10
10
|
'nudge-reply': { scope: 'execution' },
|
|
11
11
|
/** An autonomous nudge the harness never acknowledges closes through the idle path (`TurnNudges.armAutonomousNudgeBound`, hearsay-tools/squawk#2443). */
|
|
12
12
|
'acknowledgement': { scope: 'execution' },
|
|
13
|
+
/** An acknowledged autonomous nudge that gets no turn or reply closes through the idle path (`TurnNudges.armAutonomousNudgeAnswerBound`, hearsay-tools/squawk#3741). Heartbeats do not move it. */
|
|
14
|
+
'nudge-answer': { scope: 'execution' },
|
|
13
15
|
/** Accepted input the harness never reads (`InputDelivery.armUnreadInputTimer`, hearsay-tools/cezarion#505). */
|
|
14
16
|
'unread-input': { scope: 'execution' },
|
|
15
17
|
/** A turn end deferred on a held human follow-up (`InputDelivery.armHeldHumanInputTimer`, hearsay-tools/cezarion#486). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"liveness-timers.js","sourceRoot":"","sources":["../../../src/workflows/run/liveness-timers.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,6EAA6E;IAC7E,YAAY,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE;IACpC,iHAAiH;IACjH,aAAa,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE;IACrC,yJAAyJ;IACzJ,iBAAiB,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE;IACzC,gHAAgH;IAChH,cAAc,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE;IACtC,0HAA0H;IAC1H,kBAAkB,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE;IAC1C,gFAAgF;IAChF,YAAY,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;IAC9B,2EAA2E;IAC3E,cAAc,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;IAChC,kFAAkF;IAClF,aAAa,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;IAC/B,iFAAiF;IACjF,gBAAgB,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE;IACxC,oJAAoJ;IACpJ,mBAAmB,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE;IAC3C,2GAA2G;IAC3G,gBAAgB,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;IAClC,2EAA2E;IAC3E,aAAa,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;IAC/B,8FAA8F;IAC9F,kBAAkB,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;CAC0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AC,MAAM,CAAC,IAAI,EAAE,CAAC;YAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACjE,CAAC;IAED,OAAO,CAAC,IAAY;QAClB,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,KAAK;YAAE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAClD,CAAC;IAED,OAAO,CAAC,IAAY;QAClB,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACpC,IAAI,CAAC,KAAK;YAAE,OAAO,SAAS,CAAC;QAC7B,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACzB,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC3B,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,CAAC,IAAkB,EAAE,KAAa;QACtC,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC,KAAK,KAAK,KAAK,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,MAAM;YAAE,IAAI,CAAC,aAAa,EAAE,CAAC,KAAK,CAAC,CAAC;IAC/G,CAAC;CACF;AAED,SAAS,MAAM,CAAC,IAAkB,EAAE,KAAa,EAAE,GAAG,GAAG,EAAE;IACzD,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC;AAC5C,CAAC"}
|
|
@@ -24,11 +24,14 @@ export type AckBoundary = Readonly<{
|
|
|
24
24
|
}>;
|
|
25
25
|
/** The last nudge Squawk sent or tried at a turn end of `session`, and how far it got
|
|
26
26
|
* (hearsay-tools/squawk#2452). `turn-nudges.ts` records and retires it. `acknowledged` is the state
|
|
27
|
-
* the nudge's acknowledgement bound records (hearsay-tools/squawk#2443).
|
|
27
|
+
* the nudge's acknowledgement bound records (hearsay-tools/squawk#2443). `answered` marks model
|
|
28
|
+
* work in the nudge's session before its acknowledgement; a turn start does not count, since a
|
|
29
|
+
* runner may emit one when it writes the nudge (hearsay-tools/squawk#3741). */
|
|
28
30
|
export type Nudge = Readonly<{
|
|
29
31
|
session: AgentSession;
|
|
30
32
|
cause: 'autonomous' | 'no-wait' | 'completion';
|
|
31
33
|
state: 'refused' | 'submitted' | 'acknowledged';
|
|
34
|
+
answered?: true;
|
|
32
35
|
}>;
|
|
33
36
|
type Generation = {
|
|
34
37
|
session: AgentSession | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"turn-boundary.js","sourceRoot":"","sources":["../../../src/workflows/run/turn-boundary.ts"],"names":[],"mappings":"AAoFA,IAAI,kBAAgI,CAAC;AAErI,kGAAkG;AAClG,MAAM,OAAO,aAAa;IACxB,aAAa,CAA2B;IACxC,gBAAgB,CAAU;IAC1B,sBAAsB,CAA6B;IACnD,sBAAsB,CAAsB;IAC5C,kBAAkB,CAA2B;IAC7C,eAAe,CAA2B;IAC1C,mBAAmB,CAA2B;IAC9C,SAAS,CAAuB;IAChC,gBAAgB,CAAqB;IACrC,UAAU,CAAwB;IAClC,aAAa,CAA0B;IACvC,eAAe,CAA2B;IAC1C,UAAU,CAA6B;IACvC,WAAW,CAAsB;IACjC,mBAAmB,CAAsB;IACzC,WAAW,CAAsB;IACjC,MAAM,CAAoB;IAC1B,aAAa,CAA2B;IACxC,uBAAuB,CAAsB;IAC7C,mBAAmB,CAAsB;IACzC,iBAAiB,CAA2B;IAC5C,wBAAwB,CAA2B;IACnD,iBAAiB,CAAsB;IACvC,YAAY,eAAwB,EAAE,UAAmB;QACvD,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;QACxC,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAC9B,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,IAAI,Y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AY,EAAE,OAAO,QAAQ,CAAC,GAAG,KAAK,YAAY,CAAC,CAAC,CAAC,OAAO,CAAC,mBAAoB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,SAAU,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;QACxI,KAAK,OAAO,EAAE,OAAO,QAAQ,CAAC,KAAK,KAAK,YAAY,CAAC,CAAC,CAAC,OAAO,CAAC,eAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,WAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,IAAK,CAAC,CAAC;IACvI,CAAC;AACH,CAAC;AAOD,MAAM,UAAU,sBAAsB,CAAC,GAAG,IAEqD;IAE7F,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtB,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,IAAI,CAAC;QAC5B,OAAO,kBAAkB,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;IACvD,CAAC;IACD,MAAM,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACvC,OAAO,kBAAkB,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;AAC5D,CAAC"}
|
|
@@ -19,8 +19,11 @@ export declare function nudgeRefusedAt(state: ActiveRun, session: AgentSession |
|
|
|
19
19
|
/** The autonomous nudge `session` submitted and the harness has not acknowledged yet. Its
|
|
20
20
|
* acknowledgement bound runs while no turn does (hearsay-tools/squawk#2443). */
|
|
21
21
|
export declare function nudgeAwaitsAcknowledgement(state: ActiveRun, session: AgentSession | undefined): boolean;
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
22
|
+
/** The autonomous nudge `session` acknowledged, with no turn start since: its answer bound runs
|
|
23
|
+
* (hearsay-tools/squawk#3741). A turn start retires the fact. */
|
|
24
|
+
export declare function nudgeAwaitsAnswer(state: ActiveRun, session: AgentSession | undefined): boolean;
|
|
25
|
+
/** A run an autonomous nudge kept running: refused, submitted and never acknowledged, or
|
|
26
|
+
* acknowledged and never answered. Its idle close settles it `waiting`. */
|
|
24
27
|
export declare function nudgeHeldRunning(state: ActiveRun): boolean;
|
|
25
28
|
interface TurnNudgesHost {
|
|
26
29
|
active: Map<string, ActiveRun>;
|
|
@@ -100,9 +103,19 @@ export declare class TurnNudges {
|
|
|
100
103
|
* `waiting` once its process has exited, with no human wait.
|
|
101
104
|
*/
|
|
102
105
|
armAutonomousNudgeBound(runId: string, state: ActiveRun): void;
|
|
103
|
-
/**
|
|
106
|
+
/**
|
|
107
|
+
* The bound of an autonomous nudge the harness acknowledged, while its session shows no model
|
|
108
|
+
* work (hearsay-tools/squawk#3741). An acknowledgement means the transport took the input, not
|
|
109
|
+
* that a turn started. It has the acknowledgement bound's length and expiry; model work cancels
|
|
110
|
+
* it, and heartbeats do not.
|
|
111
|
+
*/
|
|
112
|
+
armAutonomousNudgeAnswerBound(runId: string, state: ActiveRun): void;
|
|
113
|
+
private armUnansweredNudgeBound;
|
|
114
|
+
/** The harness acknowledged the nudge `session` was sent: its acknowledgement bound ends, and the
|
|
115
|
+
* fact records it. An autonomous nudge whose session showed no model work since the send gets
|
|
116
|
+
* its answer bound (hearsay-tools/squawk#3741). */
|
|
104
117
|
acknowledgeNudge(runId: string, state: ActiveRun, session: AgentSession): void;
|
|
105
|
-
/** Model work in the nudge's own session is its reply: its
|
|
118
|
+
/** Model work in the nudge's own session is its reply: its bounds stop while the turn runs. A turn
|
|
106
119
|
* end that still finds the acknowledgement missing arms it again. Both event paths name the session
|
|
107
120
|
* that emitted the event, so a retired session's late events stop nothing (hearsay-tools/squawk#2443). */
|
|
108
121
|
noteNudgeActivity(runId: string, state: ActiveRun, emitting: AgentSession | undefined, event: {
|
|
@@ -3,7 +3,7 @@ import { transitionTurnBoundary } from './turn-boundary.js';
|
|
|
3
3
|
import { randomUUID } from 'node:crypto';
|
|
4
4
|
import { enqueueAgentInput, hasLiveInboxClaim } from '../../delegation/input.js';
|
|
5
5
|
import { recordRequestRefusal } from '../completion-policy.js';
|
|
6
|
-
import { NO_WAIT_NUDGE_NOTE, NO_WAIT_NO_REPLY_NOTE, COMPLETION_NO_REPLY_NOTE, COMPLETION_NUDGE_NOTE, AUTONOMOUS_NUDGE, AUTONOMOUS_NO_ACK_NOTE, stepScopedNudge } from '../turn-end.js';
|
|
6
|
+
import { NO_WAIT_NUDGE_NOTE, NO_WAIT_NO_REPLY_NOTE, COMPLETION_NO_REPLY_NOTE, COMPLETION_NUDGE_NOTE, AUTONOMOUS_NUDGE, AUTONOMOUS_NO_ACK_NOTE, AUTONOMOUS_NO_REPLY_NOTE, stepScopedNudge } from '../turn-end.js';
|
|
7
7
|
import { clearIdleTimer, clearNoWaitNudgeReplyTimer, harnessOwesInput } from './input-timers.js';
|
|
8
8
|
import { hasPendingHumanAsk, pendingHumanAskSeq } from './pending-ask-facts.js';
|
|
9
9
|
import * as completionGateReads from './completion-gate.js';
|
|
@@ -30,10 +30,17 @@ export function nudgeAwaitsAcknowledgement(state, session) {
|
|
|
30
30
|
const nudge = state.boundary.nudge;
|
|
31
31
|
return !!session && nudge?.session === session && nudge.cause === 'autonomous' && nudge.state === 'submitted';
|
|
32
32
|
}
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
33
|
+
/** The autonomous nudge `session` acknowledged, with no turn start since: its answer bound runs
|
|
34
|
+
* (hearsay-tools/squawk#3741). A turn start retires the fact. */
|
|
35
|
+
export function nudgeAwaitsAnswer(state, session) {
|
|
36
|
+
const nudge = state.boundary.nudge;
|
|
37
|
+
return !!session && nudge?.session === session && nudge.cause === 'autonomous' && nudge.state === 'acknowledged' && !nudge.answered;
|
|
38
|
+
}
|
|
39
|
+
/** A run an autonomous nudge kept running: refused, submitted and never acknowledged, or
|
|
40
|
+
* acknowledged and never answered. Its idle close settles it `waiting`. */
|
|
35
41
|
export function nudgeHeldRunning(state) {
|
|
36
|
-
|
|
42
|
+
const session = state.boundary.nudge?.session;
|
|
43
|
+
return state.boundary.nudge?.state === 'refused' || nudgeAwaitsAcknowledgement(state, session) || nudgeAwaitsAnswer(state, session);
|
|
37
44
|
}
|
|
38
45
|
/** The work the no-progress guard counts as the model working (`MODEL_PROGRESS` in
|
|
39
46
|
* `core/managed-session.ts`), with the UI frames that carry it: a turn start and a top-level item.
|
|
@@ -227,33 +234,54 @@ export class TurnNudges {
|
|
|
227
234
|
* `waiting` once its process has exited, with no human wait.
|
|
228
235
|
*/
|
|
229
236
|
armAutonomousNudgeBound(runId, state) {
|
|
237
|
+
this.armUnansweredNudgeBound(runId, state, 'acknowledgement', nudgeAwaitsAcknowledgement, AUTONOMOUS_NO_ACK_NOTE);
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* The bound of an autonomous nudge the harness acknowledged, while its session shows no model
|
|
241
|
+
* work (hearsay-tools/squawk#3741). An acknowledgement means the transport took the input, not
|
|
242
|
+
* that a turn started. It has the acknowledgement bound's length and expiry; model work cancels
|
|
243
|
+
* it, and heartbeats do not.
|
|
244
|
+
*/
|
|
245
|
+
armAutonomousNudgeAnswerBound(runId, state) {
|
|
246
|
+
this.armUnansweredNudgeBound(runId, state, 'nudge-answer', nudgeAwaitsAnswer, AUTONOMOUS_NO_REPLY_NOTE);
|
|
247
|
+
}
|
|
248
|
+
armUnansweredNudgeBound(runId, state, kind, holds, message) {
|
|
230
249
|
const session = state.liveSession.session;
|
|
231
|
-
if (!session?.open || !
|
|
250
|
+
if (!session?.open || !holds(state, session))
|
|
232
251
|
return;
|
|
233
|
-
this.timers.arm({ kind
|
|
252
|
+
this.timers.arm({ kind, runId, delayMs: this.noWaitNudgeReplyMs,
|
|
234
253
|
session: { armed: session, current: () => state.liveSession.session } }, () => {
|
|
235
254
|
if (this.context.disposed() || this.host.active.get(runId) !== state || !session.open || state.liveSession.cancelled ||
|
|
236
|
-
state.liveSession.finishRequested || !
|
|
255
|
+
state.liveSession.finishRequested || !holds(state, session))
|
|
237
256
|
return;
|
|
238
257
|
this.host.abandonNudgeFlight(state, session);
|
|
239
|
-
this.host.closeIdleSession(runId, state, { type: 'note', tone: 'warning', ...(state.liveSession.currentStepId ? { stepId: state.liveSession.currentStepId } : {}), message
|
|
258
|
+
this.host.closeIdleSession(runId, state, { type: 'note', tone: 'warning', ...(state.liveSession.currentStepId ? { stepId: state.liveSession.currentStepId } : {}), message });
|
|
240
259
|
});
|
|
241
260
|
}
|
|
242
|
-
/** The harness acknowledged the nudge `session` was sent: its bound ends, and the
|
|
261
|
+
/** The harness acknowledged the nudge `session` was sent: its acknowledgement bound ends, and the
|
|
262
|
+
* fact records it. An autonomous nudge whose session showed no model work since the send gets
|
|
263
|
+
* its answer bound (hearsay-tools/squawk#3741). */
|
|
243
264
|
acknowledgeNudge(runId, state, session) {
|
|
244
265
|
if (state.boundary.nudge?.session !== session || state.boundary.nudge.state !== 'submitted')
|
|
245
266
|
return;
|
|
246
|
-
|
|
267
|
+
const { cause, answered } = state.boundary.nudge;
|
|
268
|
+
recordNudge(state, { cause, state: 'acknowledged', ...(answered ? { answered } : {}) });
|
|
247
269
|
this.timers.clear('acknowledgement', runId);
|
|
270
|
+
if (!answered)
|
|
271
|
+
this.armAutonomousNudgeAnswerBound(runId, state);
|
|
248
272
|
}
|
|
249
|
-
/** Model work in the nudge's own session is its reply: its
|
|
273
|
+
/** Model work in the nudge's own session is its reply: its bounds stop while the turn runs. A turn
|
|
250
274
|
* end that still finds the acknowledgement missing arms it again. Both event paths name the session
|
|
251
275
|
* that emitted the event, so a retired session's late events stop nothing (hearsay-tools/squawk#2443). */
|
|
252
276
|
noteNudgeActivity(runId, state, emitting, event) {
|
|
253
277
|
if (!emitting || this.host.active.get(runId) !== state || state.liveSession.session !== emitting ||
|
|
254
278
|
state.boundary.nudge?.session !== emitting || !isModelActivity(event))
|
|
255
279
|
return;
|
|
280
|
+
const nudge = state.boundary.nudge;
|
|
281
|
+
if (event.type !== 'turn.started' && nudge.state === 'submitted' && !nudge.answered)
|
|
282
|
+
recordNudge(state, { cause: nudge.cause, state: nudge.state, answered: true });
|
|
256
283
|
this.timers.clear('acknowledgement', runId);
|
|
284
|
+
this.timers.clear('nudge-answer', runId);
|
|
257
285
|
}
|
|
258
286
|
/** The nudge a turn end with no wait or done gets: one automatic turn, charged to the
|
|
259
287
|
* automatic-wake budget. The autonomous wording repeats; the no-wait one is sent once and is
|