@hearsay-tools/squawk 0.18.0-pr3732.6894 → 0.18.0-pr3733.6916
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 +16 -1
- package/dist/ci-wait/errors.js +2 -0
- package/dist/ci-wait/errors.js.map +1 -1
- package/dist/ci-wait/tool-catalog.js +1 -1
- package/dist/ci-wait/tool-catalog.js.map +1 -1
- package/dist/ci-wait/tools.d.ts +20 -5
- package/dist/contract/index.js +18 -2
- package/dist/contract/runs.d.ts +31 -0
- package/dist/contract/waits.d.ts +37 -0
- package/dist/delegation/conversations.d.ts +14 -0
- package/dist/delegation/routes.d.ts +11 -11
- package/dist/delegation/transport.d.ts +13 -13
- package/dist/runs/outcome-commit.d.ts +24 -1
- package/dist/runs/outcome-commit.js +15 -0
- package/dist/runs/outcome-commit.js.map +1 -1
- package/dist/runs/run-exits.d.ts +42 -0
- package/dist/runs/store.d.ts +14 -0
- package/dist/runs/store.js +1 -1
- package/dist/runs/store.js.map +1 -1
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/reports-api.d.ts +2 -2
- package/dist/server/server.d.ts +166 -40
- package/dist/server/workspace-live-routes.d.ts +6 -6
- package/dist/workflows/continuation-admission.d.ts +7 -0
- package/dist/workflows/run/done-accepted.d.ts +36 -0
- package/dist/workflows/run/done-accepted.js +123 -0
- package/dist/workflows/run/done-accepted.js.map +1 -0
- package/dist/workflows/run/input-delivery.d.ts +11 -0
- package/dist/workflows/run/input-delivery.js +45 -9
- package/dist/workflows/run/input-delivery.js.map +1 -1
- package/dist/workflows/run/run-finish.d.ts +11 -7
- package/dist/workflows/run/run-finish.js +33 -10
- package/dist/workflows/run/run-finish.js.map +1 -1
- package/dist/workflows/run/turn-boundary.d.ts +6 -5
- package/dist/workflows/run/turn-boundary.js +8 -11
- package/dist/workflows/run/turn-boundary.js.map +1 -1
- package/dist/workflows/run/turn-settler.d.ts +45 -4
- package/dist/workflows/run/turn-settler.js +84 -8
- package/dist/workflows/run/turn-settler.js.map +1 -1
- package/dist/workflows/run/types.d.ts +3 -1
- package/dist/workflows/run/wait-engine.d.ts +7 -0
- package/dist/workflows/run/wait-kinds.d.ts +5 -0
- package/dist/workflows/run/wait-kinds.js +13 -0
- package/dist/workflows/run/wait-kinds.js.map +1 -1
- package/dist/workflows/turn-end.d.ts +8 -1
- package/dist/workflows/turn-end.js +6 -0
- package/dist/workflows/turn-end.js.map +1 -1
- package/package.json +4 -4
- package/web/dist/assets/{activity-motion-G1BZ9DIT.js → activity-motion-Dw9VKFf3.js} +1 -1
- package/web/dist/assets/{activity-route-BtpWRWaI.js → activity-route-B0PcG2pV.js} +1 -1
- package/web/dist/assets/{agent-accounts-D3q1WLxk.js → agent-accounts-DqMzt9_9.js} +1 -1
- package/web/dist/assets/attention-Cqji4PT4.js +1 -0
- package/web/dist/assets/{commit-diff-panel-BAcn8Zwc.js → commit-diff-panel-AjehkvQl.js} +1 -1
- package/web/dist/assets/{diff-Ddd4e5lP.js → diff-CgXr-Vj3.js} +2 -2
- package/web/dist/assets/{diff-view-CAj8XOsx.js → diff-view-B44ukwHb.js} +1 -1
- package/web/dist/assets/{file-preview-CzhHbtFx.js → file-preview-9K7NRV-S.js} +1 -1
- package/web/dist/assets/{git-toolbar-pjYcYQ1l.js → git-toolbar-BwqVqZF5.js} +1 -1
- package/web/dist/assets/{github-Db4ZPDpJ.js → github-D4K3g1dq.js} +1 -1
- package/web/dist/assets/{global-activity-route-CfZ-oTGX.js → global-activity-route-BauSAsDZ.js} +1 -1
- package/web/dist/assets/{index-D1o36xol.js → index-7rIsGPsh.js} +4 -4
- package/web/dist/assets/{preview-pane-connected-DWfaVvcP.js → preview-pane-connected-D1q-f2lo.js} +1 -1
- package/web/dist/assets/{project-router-BqAKGSaS.js → project-router-ONhFFLgV.js} +1 -1
- package/web/dist/assets/{project-scope-context-B0yKt2yI.js → project-scope-context-9Q-zjaft.js} +3 -3
- package/web/dist/assets/{prompt-template-menu-DpCrLDWG.js → prompt-template-menu-1krX4ZTh.js} +1 -1
- package/web/dist/assets/{queries-DoYRza8s.js → queries-BIaHxHGs.js} +1 -1
- package/web/dist/assets/{reference-chip-Dd_YU2KX.js → reference-chip-N7Ds8lIY.js} +1 -1
- package/web/dist/assets/{repo-git-DidsKXQR.js → repo-git-D6K1ijkM.js} +1 -1
- package/web/dist/assets/{report-reader-Bot131OL.js → report-reader-DnlQSXH7.js} +1 -1
- package/web/dist/assets/{reports-5btvRQBd.js → reports-BxYfLoON.js} +1 -1
- package/web/dist/assets/{run-header-CW2gc5KU.js → run-header-BqfP1FSM.js} +1 -1
- package/web/dist/assets/{skills-D4z3ycnU.js → skills-eFv2IZVX.js} +1 -1
- package/web/dist/assets/{tab-link-CGzPcVvS.js → tab-link-CtD23wUM.js} +1 -1
- package/web/dist/assets/{task-changes-Cn3UEQgA.js → task-changes-C8tmdSsM.js} +1 -1
- package/web/dist/assets/{task-commits-P_uuPKA_.js → task-commits-DBst5qgV.js} +1 -1
- package/web/dist/assets/{task-files-Ny2doN2P.js → task-files-C9aKsbXo.js} +1 -1
- package/web/dist/assets/{task-github-item-C0Ymd8MZ.js → task-github-item-D8qxN6iN.js} +1 -1
- package/web/dist/assets/{task-thread-BiDNqWXW.js → task-thread-DzMRMGj_.js} +1 -1
- package/web/dist/assets/{thread-state-vR42DISv.js → thread-state-Brut_jkw.js} +1 -1
- package/web/dist/assets/{use-desktop-BwkqVHep.js → use-desktop-Bp049F-t.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-J8aDr8ea.js → use-hand-to-agent-state-Cdr9MMRo.js} +1 -1
- package/web/dist/assets/{useInfiniteQuery-DYAQvmMU.js → useInfiniteQuery-DG4gGVok.js} +1 -1
- package/web/dist/assets/useQuery-D-rAMmNQ.js +1 -0
- package/web/dist/assets/{workflows-CzgcLCOI.js → workflows-TD0kz7GM.js} +1 -1
- package/web/dist/assets/{ws-BXpZYApG.js → ws-7E9_cHrQ.js} +1 -1
- package/web/dist/index.html +12 -12
- package/web/dist/assets/attention-CdwMIvQG.js +0 -1
- package/web/dist/assets/useQuery-CnVG8NoC.js +0 -1
|
@@ -16,6 +16,12 @@ 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
|
+
} | {
|
|
19
25
|
projectId: string;
|
|
20
26
|
runId: string;
|
|
21
27
|
type: "batch";
|
|
@@ -29,12 +35,6 @@ export declare function createLiveRoutes({ resolveProject, serverGeneration, res
|
|
|
29
35
|
cursor: string;
|
|
30
36
|
afterSeq: number;
|
|
31
37
|
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: 400;
|
|
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: 409;
|
|
57
57
|
input: {
|
|
58
58
|
query: {
|
|
59
59
|
q?: string | undefined;
|
package/dist/server/server.d.ts
CHANGED
|
@@ -2988,6 +2988,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
2988
2988
|
output: {
|
|
2989
2989
|
generation: string;
|
|
2990
2990
|
results: ({
|
|
2991
|
+
projectId: string;
|
|
2992
|
+
runId: string;
|
|
2993
|
+
type: "error" | "reset";
|
|
2994
|
+
status: 400 | 404 | 409 | 413 | 503;
|
|
2995
|
+
error: string;
|
|
2996
|
+
} | {
|
|
2991
2997
|
projectId: string;
|
|
2992
2998
|
runId: string;
|
|
2993
2999
|
type: "batch";
|
|
@@ -3001,12 +3007,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
3001
3007
|
cursor: string;
|
|
3002
3008
|
afterSeq: number;
|
|
3003
3009
|
hasMore: boolean;
|
|
3004
|
-
} | {
|
|
3005
|
-
projectId: string;
|
|
3006
|
-
runId: string;
|
|
3007
|
-
type: "error" | "reset";
|
|
3008
|
-
status: 400 | 404 | 409 | 413 | 503;
|
|
3009
|
-
error: string;
|
|
3010
3010
|
})[];
|
|
3011
3011
|
};
|
|
3012
3012
|
outputFormat: "json";
|
|
@@ -7088,6 +7088,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
7088
7088
|
stepId: string;
|
|
7089
7089
|
mode: "resume" | "start";
|
|
7090
7090
|
} | undefined;
|
|
7091
|
+
doneAccepted?: {
|
|
7092
|
+
session: string;
|
|
7093
|
+
at: string;
|
|
7094
|
+
seq: number;
|
|
7095
|
+
summary?: string | undefined;
|
|
7096
|
+
freeTurn?: true | undefined;
|
|
7097
|
+
} | undefined;
|
|
7091
7098
|
invalidAsk?: boolean | undefined;
|
|
7092
7099
|
delegation?: {
|
|
7093
7100
|
role: "invalid";
|
|
@@ -8581,22 +8588,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
8581
8588
|
"/runs/:id/worker-destroy": {
|
|
8582
8589
|
$post: {
|
|
8583
8590
|
output: {
|
|
8584
|
-
|
|
8585
|
-
|
|
8586
|
-
readonly modelChoices?: {
|
|
8587
|
-
runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
|
|
8588
|
-
requestedModel: string;
|
|
8589
|
-
availableModels: {
|
|
8590
|
-
id: string;
|
|
8591
|
-
label: string;
|
|
8592
|
-
description: string;
|
|
8593
|
-
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
8594
|
-
}[];
|
|
8595
|
-
otherRunners: ("claude" | "codex" | "cursor" | "omp" | "opencode" | "pi")[];
|
|
8596
|
-
} | undefined;
|
|
8591
|
+
error: string;
|
|
8592
|
+
code?: "invalid_input" | undefined;
|
|
8597
8593
|
};
|
|
8598
8594
|
outputFormat: "json";
|
|
8599
|
-
status: 400
|
|
8595
|
+
status: 400;
|
|
8600
8596
|
input: {
|
|
8601
8597
|
query: {
|
|
8602
8598
|
[x: string]: string | string[];
|
|
@@ -8610,11 +8606,22 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
8610
8606
|
};
|
|
8611
8607
|
} | {
|
|
8612
8608
|
output: {
|
|
8613
|
-
|
|
8614
|
-
|
|
8609
|
+
readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
|
|
8610
|
+
readonly error: string;
|
|
8611
|
+
readonly modelChoices?: {
|
|
8612
|
+
runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
|
|
8613
|
+
requestedModel: string;
|
|
8614
|
+
availableModels: {
|
|
8615
|
+
id: string;
|
|
8616
|
+
label: string;
|
|
8617
|
+
description: string;
|
|
8618
|
+
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
8619
|
+
}[];
|
|
8620
|
+
otherRunners: ("claude" | "codex" | "cursor" | "omp" | "opencode" | "pi")[];
|
|
8621
|
+
} | undefined;
|
|
8615
8622
|
};
|
|
8616
8623
|
outputFormat: "json";
|
|
8617
|
-
status: 400;
|
|
8624
|
+
status: 400 | 401 | 403 | 409 | 503;
|
|
8618
8625
|
input: {
|
|
8619
8626
|
query: {
|
|
8620
8627
|
[x: string]: string | string[];
|
|
@@ -9692,6 +9699,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
9692
9699
|
stepId: string;
|
|
9693
9700
|
mode: "resume" | "start";
|
|
9694
9701
|
} | undefined;
|
|
9702
|
+
doneAccepted?: {
|
|
9703
|
+
session: string;
|
|
9704
|
+
at: string;
|
|
9705
|
+
seq: number;
|
|
9706
|
+
summary?: string | undefined;
|
|
9707
|
+
freeTurn?: true | undefined;
|
|
9708
|
+
} | undefined;
|
|
9695
9709
|
archived: boolean;
|
|
9696
9710
|
workflowDef?: {
|
|
9697
9711
|
name: string;
|
|
@@ -10791,6 +10805,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
10791
10805
|
stepId: string;
|
|
10792
10806
|
mode: "resume" | "start";
|
|
10793
10807
|
} | undefined;
|
|
10808
|
+
doneAccepted?: {
|
|
10809
|
+
session: string;
|
|
10810
|
+
at: string;
|
|
10811
|
+
seq: number;
|
|
10812
|
+
summary?: string | undefined;
|
|
10813
|
+
freeTurn?: true | undefined;
|
|
10814
|
+
} | undefined;
|
|
10794
10815
|
archived: boolean;
|
|
10795
10816
|
workflowDef?: {
|
|
10796
10817
|
name: string;
|
|
@@ -11891,6 +11912,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
11891
11912
|
stepId: string;
|
|
11892
11913
|
mode: "resume" | "start";
|
|
11893
11914
|
} | undefined;
|
|
11915
|
+
doneAccepted?: {
|
|
11916
|
+
session: string;
|
|
11917
|
+
at: string;
|
|
11918
|
+
seq: number;
|
|
11919
|
+
summary?: string | undefined;
|
|
11920
|
+
freeTurn?: true | undefined;
|
|
11921
|
+
} | undefined;
|
|
11894
11922
|
archived: boolean;
|
|
11895
11923
|
workflowDef?: {
|
|
11896
11924
|
name: string;
|
|
@@ -13018,6 +13046,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
13018
13046
|
stepId: string;
|
|
13019
13047
|
mode: "resume" | "start";
|
|
13020
13048
|
} | undefined;
|
|
13049
|
+
doneAccepted?: {
|
|
13050
|
+
session: string;
|
|
13051
|
+
at: string;
|
|
13052
|
+
seq: number;
|
|
13053
|
+
summary?: string | undefined;
|
|
13054
|
+
freeTurn?: true | undefined;
|
|
13055
|
+
} | undefined;
|
|
13021
13056
|
archived: boolean;
|
|
13022
13057
|
workflowDef?: {
|
|
13023
13058
|
name: string;
|
|
@@ -14093,6 +14128,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
14093
14128
|
stepId: string;
|
|
14094
14129
|
mode: "resume" | "start";
|
|
14095
14130
|
} | undefined;
|
|
14131
|
+
doneAccepted?: {
|
|
14132
|
+
session: string;
|
|
14133
|
+
at: string;
|
|
14134
|
+
seq: number;
|
|
14135
|
+
summary?: string | undefined;
|
|
14136
|
+
freeTurn?: true | undefined;
|
|
14137
|
+
} | undefined;
|
|
14096
14138
|
archived: boolean;
|
|
14097
14139
|
workflowDef?: {
|
|
14098
14140
|
name: string;
|
|
@@ -15168,6 +15210,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
15168
15210
|
stepId: string;
|
|
15169
15211
|
mode: "resume" | "start";
|
|
15170
15212
|
} | undefined;
|
|
15213
|
+
doneAccepted?: {
|
|
15214
|
+
session: string;
|
|
15215
|
+
at: string;
|
|
15216
|
+
seq: number;
|
|
15217
|
+
summary?: string | undefined;
|
|
15218
|
+
freeTurn?: true | undefined;
|
|
15219
|
+
} | undefined;
|
|
15171
15220
|
archived: boolean;
|
|
15172
15221
|
workflowDef?: {
|
|
15173
15222
|
name: string;
|
|
@@ -15383,6 +15432,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
15383
15432
|
stepId: string;
|
|
15384
15433
|
mode: "resume" | "start";
|
|
15385
15434
|
} | undefined;
|
|
15435
|
+
doneAccepted?: {
|
|
15436
|
+
session: string;
|
|
15437
|
+
at: string;
|
|
15438
|
+
seq: number;
|
|
15439
|
+
summary?: string | undefined;
|
|
15440
|
+
freeTurn?: true | undefined;
|
|
15441
|
+
} | undefined;
|
|
15386
15442
|
invalidAsk?: boolean | undefined;
|
|
15387
15443
|
delegation?: {
|
|
15388
15444
|
role: "invalid";
|
|
@@ -17519,6 +17575,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
17519
17575
|
stepId: string;
|
|
17520
17576
|
mode: "resume" | "start";
|
|
17521
17577
|
} | undefined;
|
|
17578
|
+
doneAccepted?: {
|
|
17579
|
+
session: string;
|
|
17580
|
+
at: string;
|
|
17581
|
+
seq: number;
|
|
17582
|
+
summary?: string | undefined;
|
|
17583
|
+
freeTurn?: true | undefined;
|
|
17584
|
+
} | undefined;
|
|
17522
17585
|
archived: boolean;
|
|
17523
17586
|
workflowDef?: {
|
|
17524
17587
|
name: string;
|
|
@@ -22897,6 +22960,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
22897
22960
|
stepId: string;
|
|
22898
22961
|
mode: "resume" | "start";
|
|
22899
22962
|
} | undefined;
|
|
22963
|
+
doneAccepted?: {
|
|
22964
|
+
session: string;
|
|
22965
|
+
at: string;
|
|
22966
|
+
seq: number;
|
|
22967
|
+
summary?: string | undefined;
|
|
22968
|
+
freeTurn?: true | undefined;
|
|
22969
|
+
} | undefined;
|
|
22900
22970
|
invalidAsk?: boolean | undefined;
|
|
22901
22971
|
delegation?: {
|
|
22902
22972
|
role: "invalid";
|
|
@@ -24390,22 +24460,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
24390
24460
|
"/runs/:id/worker-destroy": {
|
|
24391
24461
|
$post: {
|
|
24392
24462
|
output: {
|
|
24393
|
-
|
|
24394
|
-
|
|
24395
|
-
readonly modelChoices?: {
|
|
24396
|
-
runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
|
|
24397
|
-
requestedModel: string;
|
|
24398
|
-
availableModels: {
|
|
24399
|
-
id: string;
|
|
24400
|
-
label: string;
|
|
24401
|
-
description: string;
|
|
24402
|
-
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
24403
|
-
}[];
|
|
24404
|
-
otherRunners: ("claude" | "codex" | "cursor" | "omp" | "opencode" | "pi")[];
|
|
24405
|
-
} | undefined;
|
|
24463
|
+
error: string;
|
|
24464
|
+
code?: "invalid_input" | undefined;
|
|
24406
24465
|
};
|
|
24407
24466
|
outputFormat: "json";
|
|
24408
|
-
status: 400
|
|
24467
|
+
status: 400;
|
|
24409
24468
|
input: {
|
|
24410
24469
|
query: {
|
|
24411
24470
|
[x: string]: string | string[];
|
|
@@ -24419,11 +24478,22 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
24419
24478
|
};
|
|
24420
24479
|
} | {
|
|
24421
24480
|
output: {
|
|
24422
|
-
|
|
24423
|
-
|
|
24481
|
+
readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
|
|
24482
|
+
readonly error: string;
|
|
24483
|
+
readonly modelChoices?: {
|
|
24484
|
+
runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
|
|
24485
|
+
requestedModel: string;
|
|
24486
|
+
availableModels: {
|
|
24487
|
+
id: string;
|
|
24488
|
+
label: string;
|
|
24489
|
+
description: string;
|
|
24490
|
+
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
24491
|
+
}[];
|
|
24492
|
+
otherRunners: ("claude" | "codex" | "cursor" | "omp" | "opencode" | "pi")[];
|
|
24493
|
+
} | undefined;
|
|
24424
24494
|
};
|
|
24425
24495
|
outputFormat: "json";
|
|
24426
|
-
status: 400;
|
|
24496
|
+
status: 400 | 401 | 403 | 409 | 503;
|
|
24427
24497
|
input: {
|
|
24428
24498
|
query: {
|
|
24429
24499
|
[x: string]: string | string[];
|
|
@@ -25501,6 +25571,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
25501
25571
|
stepId: string;
|
|
25502
25572
|
mode: "resume" | "start";
|
|
25503
25573
|
} | undefined;
|
|
25574
|
+
doneAccepted?: {
|
|
25575
|
+
session: string;
|
|
25576
|
+
at: string;
|
|
25577
|
+
seq: number;
|
|
25578
|
+
summary?: string | undefined;
|
|
25579
|
+
freeTurn?: true | undefined;
|
|
25580
|
+
} | undefined;
|
|
25504
25581
|
archived: boolean;
|
|
25505
25582
|
workflowDef?: {
|
|
25506
25583
|
name: string;
|
|
@@ -26600,6 +26677,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
26600
26677
|
stepId: string;
|
|
26601
26678
|
mode: "resume" | "start";
|
|
26602
26679
|
} | undefined;
|
|
26680
|
+
doneAccepted?: {
|
|
26681
|
+
session: string;
|
|
26682
|
+
at: string;
|
|
26683
|
+
seq: number;
|
|
26684
|
+
summary?: string | undefined;
|
|
26685
|
+
freeTurn?: true | undefined;
|
|
26686
|
+
} | undefined;
|
|
26603
26687
|
archived: boolean;
|
|
26604
26688
|
workflowDef?: {
|
|
26605
26689
|
name: string;
|
|
@@ -27700,6 +27784,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
27700
27784
|
stepId: string;
|
|
27701
27785
|
mode: "resume" | "start";
|
|
27702
27786
|
} | undefined;
|
|
27787
|
+
doneAccepted?: {
|
|
27788
|
+
session: string;
|
|
27789
|
+
at: string;
|
|
27790
|
+
seq: number;
|
|
27791
|
+
summary?: string | undefined;
|
|
27792
|
+
freeTurn?: true | undefined;
|
|
27793
|
+
} | undefined;
|
|
27703
27794
|
archived: boolean;
|
|
27704
27795
|
workflowDef?: {
|
|
27705
27796
|
name: string;
|
|
@@ -28827,6 +28918,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
28827
28918
|
stepId: string;
|
|
28828
28919
|
mode: "resume" | "start";
|
|
28829
28920
|
} | undefined;
|
|
28921
|
+
doneAccepted?: {
|
|
28922
|
+
session: string;
|
|
28923
|
+
at: string;
|
|
28924
|
+
seq: number;
|
|
28925
|
+
summary?: string | undefined;
|
|
28926
|
+
freeTurn?: true | undefined;
|
|
28927
|
+
} | undefined;
|
|
28830
28928
|
archived: boolean;
|
|
28831
28929
|
workflowDef?: {
|
|
28832
28930
|
name: string;
|
|
@@ -29902,6 +30000,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
29902
30000
|
stepId: string;
|
|
29903
30001
|
mode: "resume" | "start";
|
|
29904
30002
|
} | undefined;
|
|
30003
|
+
doneAccepted?: {
|
|
30004
|
+
session: string;
|
|
30005
|
+
at: string;
|
|
30006
|
+
seq: number;
|
|
30007
|
+
summary?: string | undefined;
|
|
30008
|
+
freeTurn?: true | undefined;
|
|
30009
|
+
} | undefined;
|
|
29905
30010
|
archived: boolean;
|
|
29906
30011
|
workflowDef?: {
|
|
29907
30012
|
name: string;
|
|
@@ -30977,6 +31082,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
30977
31082
|
stepId: string;
|
|
30978
31083
|
mode: "resume" | "start";
|
|
30979
31084
|
} | undefined;
|
|
31085
|
+
doneAccepted?: {
|
|
31086
|
+
session: string;
|
|
31087
|
+
at: string;
|
|
31088
|
+
seq: number;
|
|
31089
|
+
summary?: string | undefined;
|
|
31090
|
+
freeTurn?: true | undefined;
|
|
31091
|
+
} | undefined;
|
|
30980
31092
|
archived: boolean;
|
|
30981
31093
|
workflowDef?: {
|
|
30982
31094
|
name: string;
|
|
@@ -31192,6 +31304,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
31192
31304
|
stepId: string;
|
|
31193
31305
|
mode: "resume" | "start";
|
|
31194
31306
|
} | undefined;
|
|
31307
|
+
doneAccepted?: {
|
|
31308
|
+
session: string;
|
|
31309
|
+
at: string;
|
|
31310
|
+
seq: number;
|
|
31311
|
+
summary?: string | undefined;
|
|
31312
|
+
freeTurn?: true | undefined;
|
|
31313
|
+
} | undefined;
|
|
31195
31314
|
invalidAsk?: boolean | undefined;
|
|
31196
31315
|
delegation?: {
|
|
31197
31316
|
role: "invalid";
|
|
@@ -33328,6 +33447,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
33328
33447
|
stepId: string;
|
|
33329
33448
|
mode: "resume" | "start";
|
|
33330
33449
|
} | undefined;
|
|
33450
|
+
doneAccepted?: {
|
|
33451
|
+
session: string;
|
|
33452
|
+
at: string;
|
|
33453
|
+
seq: number;
|
|
33454
|
+
summary?: string | undefined;
|
|
33455
|
+
freeTurn?: true | undefined;
|
|
33456
|
+
} | undefined;
|
|
33331
33457
|
archived: boolean;
|
|
33332
33458
|
workflowDef?: {
|
|
33333
33459
|
name: string;
|
|
@@ -7,12 +7,6 @@ export declare function createWorkspaceLiveRoutes(live: Parameters<typeof create
|
|
|
7
7
|
output: {
|
|
8
8
|
generation: string;
|
|
9
9
|
results: ({
|
|
10
|
-
projectId: string;
|
|
11
|
-
runId: string;
|
|
12
|
-
type: "error" | "reset";
|
|
13
|
-
status: 400 | 404 | 409 | 413 | 503;
|
|
14
|
-
error: string;
|
|
15
|
-
} | {
|
|
16
10
|
projectId: string;
|
|
17
11
|
runId: string;
|
|
18
12
|
type: "batch";
|
|
@@ -26,6 +20,12 @@ export declare function createWorkspaceLiveRoutes(live: Parameters<typeof create
|
|
|
26
20
|
cursor: string;
|
|
27
21
|
afterSeq: number;
|
|
28
22
|
hasMore: boolean;
|
|
23
|
+
} | {
|
|
24
|
+
projectId: string;
|
|
25
|
+
runId: string;
|
|
26
|
+
type: "error" | "reset";
|
|
27
|
+
status: 400 | 404 | 409 | 413 | 503;
|
|
28
|
+
error: string;
|
|
29
29
|
})[];
|
|
30
30
|
};
|
|
31
31
|
outputFormat: "json";
|
|
@@ -1131,6 +1131,13 @@ export declare class ContinuationChecks {
|
|
|
1131
1131
|
stepId: string;
|
|
1132
1132
|
mode: "resume" | "start";
|
|
1133
1133
|
} | undefined;
|
|
1134
|
+
doneAccepted?: {
|
|
1135
|
+
session: string;
|
|
1136
|
+
at: string;
|
|
1137
|
+
seq: number;
|
|
1138
|
+
summary?: string | undefined;
|
|
1139
|
+
freeTurn?: true | undefined;
|
|
1140
|
+
} | undefined;
|
|
1134
1141
|
archived: boolean;
|
|
1135
1142
|
workflowDef?: {
|
|
1136
1143
|
name: string;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { RunEvent } from '../../contract/index.js';
|
|
2
|
+
import type { DoneOwedInput } from '../../contract/index.js';
|
|
3
|
+
import type { RunRecord } from '../../runs/store.ts';
|
|
4
|
+
import type { ActiveRun } from '../active-run.ts';
|
|
5
|
+
/** Why the input `inputIds` names withdraws an accepted done, or undefined when it keeps the done:
|
|
6
|
+
* a failed wait result or a new instruction. */
|
|
7
|
+
export declare function reconsideredBy(run: RunRecord, inputIds: readonly string[]): string | undefined;
|
|
8
|
+
/** What the run still owes the agent when it calls `cezar_done` (`input_pending`): resolved wait
|
|
9
|
+
* results not yet delivered, input queued for it, a submission still waiting for its
|
|
10
|
+
* acknowledgement, and input its harness acknowledged but the
|
|
11
|
+
* model has not read: an acknowledgement is not a read. Input the harness reported read is this
|
|
12
|
+
* turn's own, as are the input submitted at the boundary that opened this turn (a harness may
|
|
13
|
+
* report its read only when the turn completes), the messages bundled behind the answer that
|
|
14
|
+
* opened it, and a continuation's opening input. A harness
|
|
15
|
+
* that cannot report reads takes input only at a turn boundary, so what it holds opened this turn.
|
|
16
|
+
* A message the agent read through its inbox (an inbox claim) is its own too. A human follow-up the harness holds is not owed: harnesses report it held until the turn it
|
|
17
|
+
* opens completes, so it cannot be told from the message that opened this turn. It runs as the
|
|
18
|
+
* next turn before any done, and one sent after the done withdraws it (`acceptedDoneHolds`). */
|
|
19
|
+
export declare function owedAtDone(run: RunRecord, state: ActiveRun): DoneOwedInput[];
|
|
20
|
+
/** Recorded after the accepted done (strictly later than `at`): the first instruction among the
|
|
21
|
+
* agent inputs, on any path (a steer, an inbox read, a continuation's opening input). */
|
|
22
|
+
export declare function instructionAfter(run: RunRecord, at: string): string | undefined;
|
|
23
|
+
/** A wait result that failed and resolved after the done. */
|
|
24
|
+
export declare function failedResultAfter(run: RunRecord, at: string): string | undefined;
|
|
25
|
+
/** A wait or a question the agent registered after the done, by any path: the tool, the CLI, a
|
|
26
|
+
* native ask. A replayed registration keeps its first time, and Squawk's own waits and its
|
|
27
|
+
* live-workers timer are not the agent's. */
|
|
28
|
+
export declare function registeredAfter(run: RunRecord, at: string): string | undefined;
|
|
29
|
+
/** A human message recorded after the done: its `user-message` event. */
|
|
30
|
+
export declare function humanMessageAfter(events: readonly RunEvent[], seq: number): string | undefined;
|
|
31
|
+
/** A turn started after the done: the turn end that reads it is not the done's own. */
|
|
32
|
+
export declare function laterTurn(events: readonly RunEvent[], seq: number): boolean;
|
|
33
|
+
/** How input delivered while a done is on record goes (hearsay-tools/squawk#2587): `free`, the
|
|
34
|
+
* done's one delivery turn that costs no wake; `kept`, the done holds but that turn is spent;
|
|
35
|
+
* `withdrawn`, the input or a fact recorded since withdraws it. Undefined with no done or no input. */
|
|
36
|
+
export declare function acceptedDoneDelivery(run: RunRecord, events: readonly RunEvent[], inputIds: readonly string[]): 'free' | 'kept' | 'withdrawn' | undefined;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { resolvedWaits, waitInputId } from '../waits.js';
|
|
2
|
+
import { WAIT_KINDS } from './wait-kinds.js';
|
|
3
|
+
import { acceptedDoneHolds } from './turn-settler.js';
|
|
4
|
+
/**
|
|
5
|
+
* Reads of the accepted-done record (`RunRecord.doneAccepted`, ADR 0064,
|
|
6
|
+
* hearsay-tools/squawk#2587). `run-finish.ts` records it and `turn-settler.ts` decides at each
|
|
7
|
+
* turn end whether it still holds; this module only reads: what the run still owes the agent when
|
|
8
|
+
* it calls `cezar_done`, and the facts recorded after it.
|
|
9
|
+
*/
|
|
10
|
+
/** An agent input that asks something of the agent: a request or follow-up from a peer or the
|
|
11
|
+
* family, or the parent's instruction to its worker. A progress note, a reply and a lifecycle
|
|
12
|
+
* observation ask nothing. */
|
|
13
|
+
function instruction(input) {
|
|
14
|
+
if (input.source !== 'agent')
|
|
15
|
+
return undefined;
|
|
16
|
+
if (!input.conversation)
|
|
17
|
+
return 'a new instruction from the parent';
|
|
18
|
+
if (input.conversation.kind !== 'request' && input.conversation.kind !== 'follow-up')
|
|
19
|
+
return undefined;
|
|
20
|
+
return input.conversation.relationship === 'peer' ? 'a new peer request' : 'a new agent request';
|
|
21
|
+
}
|
|
22
|
+
/** Why the input `inputIds` names withdraws an accepted done, or undefined when it keeps the done:
|
|
23
|
+
* a failed wait result or a new instruction. */
|
|
24
|
+
export function reconsideredBy(run, inputIds) {
|
|
25
|
+
const ids = new Set(inputIds);
|
|
26
|
+
const failed = resolvedWaits(run).find(wait => ids.has(waitInputId(wait)) && WAIT_KINDS[wait.kind].failedResult(wait));
|
|
27
|
+
if (failed)
|
|
28
|
+
return `a failed ${failed.kind} wait result`;
|
|
29
|
+
for (const input of run.agentInputs ?? []) {
|
|
30
|
+
const reason = ids.has(input.id) ? instruction(input) : undefined;
|
|
31
|
+
if (reason)
|
|
32
|
+
return reason;
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
/** What the run still owes the agent when it calls `cezar_done` (`input_pending`): resolved wait
|
|
37
|
+
* results not yet delivered, input queued for it, a submission still waiting for its
|
|
38
|
+
* acknowledgement, and input its harness acknowledged but the
|
|
39
|
+
* model has not read: an acknowledgement is not a read. Input the harness reported read is this
|
|
40
|
+
* turn's own, as are the input submitted at the boundary that opened this turn (a harness may
|
|
41
|
+
* report its read only when the turn completes), the messages bundled behind the answer that
|
|
42
|
+
* opened it, and a continuation's opening input. A harness
|
|
43
|
+
* that cannot report reads takes input only at a turn boundary, so what it holds opened this turn.
|
|
44
|
+
* A message the agent read through its inbox (an inbox claim) is its own too. A human follow-up the harness holds is not owed: harnesses report it held until the turn it
|
|
45
|
+
* opens completes, so it cannot be told from the message that opened this turn. It runs as the
|
|
46
|
+
* next turn before any done, and one sent after the done withdraws it (`acceptedDoneHolds`). */
|
|
47
|
+
export function owedAtDone(run, state) {
|
|
48
|
+
const input = state.inputState;
|
|
49
|
+
const flight = new Set(input.agentInputFlight?.inputIds ?? []);
|
|
50
|
+
const unread = notReadYet(state);
|
|
51
|
+
const results = resolvedWaits(run);
|
|
52
|
+
const resultIds = new Set(results.map(waitInputId));
|
|
53
|
+
const owed = results.filter(wait => !flight.has(waitInputId(wait)))
|
|
54
|
+
.map(wait => ({ kind: 'wait_result', wait_id: wait.id, wait_kind: wait.kind }));
|
|
55
|
+
for (const id of flight)
|
|
56
|
+
if (unread(id))
|
|
57
|
+
owed.push({ kind: 'in_flight', input_id: id });
|
|
58
|
+
const awaiting = new Set([...input.unreadInputIds ?? [], ...(run.agentInputs ?? []).filter(entry => entry.awaitingRead).map(entry => entry.id)]);
|
|
59
|
+
for (const id of awaiting)
|
|
60
|
+
if (!flight.has(id) && unread(id))
|
|
61
|
+
owed.push({ kind: 'unread', input_id: id });
|
|
62
|
+
for (const queued of run.agentInputs ?? []) {
|
|
63
|
+
if (queued.deliveredAt || queued.inboxClaim || resultIds.has(queued.id) || queued.id === input.openingAgentInputId || flight.has(queued.id))
|
|
64
|
+
continue;
|
|
65
|
+
owed.push({ kind: 'queued', input_id: queued.id, source: queued.conversation?.relationship === 'peer' ? 'peer' : queued.source });
|
|
66
|
+
}
|
|
67
|
+
return owed.slice(0, 64);
|
|
68
|
+
}
|
|
69
|
+
/** Whether input handed to the harness is still unread by the model (`owedAtDone`). */
|
|
70
|
+
function notReadYet(state) {
|
|
71
|
+
const input = state.inputState;
|
|
72
|
+
if (input.inputDelivery?.consumption !== 'observable')
|
|
73
|
+
return () => false;
|
|
74
|
+
const thisTurn = new Set([...input.turnOpenerIds ?? [], ...input.bundledInputIds ?? [], ...input.consumedBeforeAck ?? [], ...(input.openingAgentInputId ? [input.openingAgentInputId] : [])]);
|
|
75
|
+
return id => !thisTurn.has(id);
|
|
76
|
+
}
|
|
77
|
+
/** Recorded after the accepted done (strictly later than `at`): the first instruction among the
|
|
78
|
+
* agent inputs, on any path (a steer, an inbox read, a continuation's opening input). */
|
|
79
|
+
export function instructionAfter(run, at) {
|
|
80
|
+
for (const entry of run.agentInputs ?? []) {
|
|
81
|
+
const reason = entry.createdAt > at ? instruction(entry) : undefined;
|
|
82
|
+
if (reason)
|
|
83
|
+
return reason;
|
|
84
|
+
}
|
|
85
|
+
return undefined;
|
|
86
|
+
}
|
|
87
|
+
/** Every wait the run holds or settled, but cancelled ones. */
|
|
88
|
+
function liveAndSettledWaits(run) {
|
|
89
|
+
return [...run.waits ?? [], ...run.lastWaits ?? []].filter(wait => wait.phase !== 'cancelled');
|
|
90
|
+
}
|
|
91
|
+
/** A wait result that failed and resolved after the done. */
|
|
92
|
+
export function failedResultAfter(run, at) {
|
|
93
|
+
const failed = liveAndSettledWaits(run).find(wait => (wait.resolvedAt ?? '') > at && WAIT_KINDS[wait.kind].failedResult(wait));
|
|
94
|
+
return failed && `a failed ${failed.kind} wait result`;
|
|
95
|
+
}
|
|
96
|
+
/** A wait or a question the agent registered after the done, by any path: the tool, the CLI, a
|
|
97
|
+
* native ask. A replayed registration keeps its first time, and Squawk's own waits and its
|
|
98
|
+
* live-workers timer are not the agent's. */
|
|
99
|
+
export function registeredAfter(run, at) {
|
|
100
|
+
const wait = liveAndSettledWaits(run).find(entry => entry.registeredAt > at && entry.source === 'agent' && entry.via !== 'monitoring-line');
|
|
101
|
+
if (!wait)
|
|
102
|
+
return undefined;
|
|
103
|
+
return WAIT_KINDS[wait.kind].userAnswers ? 'the agent asked the user' : 'the agent registered a wait';
|
|
104
|
+
}
|
|
105
|
+
/** A human message recorded after the done: its `user-message` event. */
|
|
106
|
+
export function humanMessageAfter(events, seq) {
|
|
107
|
+
return events.some(event => event.seq > seq && event.type === 'user-message') ? 'a new human message' : undefined;
|
|
108
|
+
}
|
|
109
|
+
/** A turn started after the done: the turn end that reads it is not the done's own. */
|
|
110
|
+
export function laterTurn(events, seq) {
|
|
111
|
+
return events.some(event => event.seq > seq && event.type === 'turn.started');
|
|
112
|
+
}
|
|
113
|
+
/** How input delivered while a done is on record goes (hearsay-tools/squawk#2587): `free`, the
|
|
114
|
+
* done's one delivery turn that costs no wake; `kept`, the done holds but that turn is spent;
|
|
115
|
+
* `withdrawn`, the input or a fact recorded since withdraws it. Undefined with no done or no input. */
|
|
116
|
+
export function acceptedDoneDelivery(run, events, inputIds) {
|
|
117
|
+
if (!run.doneAccepted || !inputIds.length)
|
|
118
|
+
return undefined;
|
|
119
|
+
if (!acceptedDoneHolds(run, events).holds || reconsideredBy(run, inputIds))
|
|
120
|
+
return 'withdrawn';
|
|
121
|
+
return run.doneAccepted.freeTurn ? 'kept' : 'free';
|
|
122
|
+
}
|
|
123
|
+
//# sourceMappingURL=done-accepted.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"done-accepted.js","sourceRoot":"","sources":["../../../src/workflows/run/done-accepted.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD;;;;;GAKG;AAEH;;+BAE+B;AAC/B,SAAS,WAAW,CAAC,KAAiB;IACpC,IAAI,KAAK,CAAC,MAAM,KAAK,OAAO;QAAE,OAAO,SAAS,CAAC;IAC/C,IAAI,CAAC,KAAK,CAAC,YAAY;QAAE,OAAO,mCAAmC,CAAC;IACpE,IAAI,KAAK,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