@hearsay-tools/squawk 0.18.0-dev.6879 → 0.18.0-dev.6912
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/README.md +1 -5
- 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 +16 -1
- 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/core/codex-app-server-transport.js +1 -1
- package/dist/core/codex-app-server-transport.js.map +1 -1
- package/dist/core/product-env.d.ts +0 -4
- package/dist/core/product-env.js +0 -6
- package/dist/core/product-env.js.map +1 -1
- package/dist/core/session-process.d.ts +1 -2
- package/dist/core/session-process.js +2 -5
- package/dist/core/session-process.js.map +1 -1
- package/dist/delegation/conversations.d.ts +14 -0
- package/dist/delegation/routes.d.ts +62 -62
- package/dist/home/identity.d.ts +2 -6
- package/dist/home/identity.js +0 -2
- package/dist/home/identity.js.map +1 -1
- package/dist/managed-install/layout.d.ts +2 -3
- package/dist/managed-install/layout.js.map +1 -1
- 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/serve-boot.d.ts +1 -1
- package/dist/serve-boot.js +1 -1
- package/dist/serve-command.d.ts +0 -2
- package/dist/serve-command.js +1 -2
- package/dist/serve-command.js.map +1 -1
- package/dist/serve-stop.d.ts +0 -1
- package/dist/serve-stop.js +0 -1
- package/dist/serve-stop.js.map +1 -1
- package/dist/server/fs-browse.js +2 -3
- package/dist/server/fs-browse.js.map +1 -1
- package/dist/server/server.d.ts +218 -92
- 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-awuRigEi.js → activity-motion-Dw9VKFf3.js} +1 -1
- package/web/dist/assets/{activity-route-rhYVhpXu.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-CZAQ_wMQ.js → commit-diff-panel-AjehkvQl.js} +1 -1
- package/web/dist/assets/{diff-BDJ4xGSd.js → diff-CgXr-Vj3.js} +2 -2
- package/web/dist/assets/{diff-view-Bn7tV6S7.js → diff-view-B44ukwHb.js} +1 -1
- package/web/dist/assets/{file-preview-1f8vPVsK.js → file-preview-9K7NRV-S.js} +1 -1
- package/web/dist/assets/{git-toolbar-BbY7l1x9.js → git-toolbar-BwqVqZF5.js} +1 -1
- package/web/dist/assets/{github-CTdrVztq.js → github-D4K3g1dq.js} +1 -1
- package/web/dist/assets/{global-activity-route-xvY0P60v.js → global-activity-route-BauSAsDZ.js} +1 -1
- package/web/dist/assets/index-7rIsGPsh.js +17 -0
- package/web/dist/assets/{index-DTIPJ2b8.css → index-Ci54Zqis.css} +1 -1
- package/web/dist/assets/{preview-pane-connected-D6TfZFTU.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-BrkR6pTH.js → repo-git-D6K1ijkM.js} +1 -1
- package/web/dist/assets/{report-reader-BeZdoVhf.js → report-reader-DnlQSXH7.js} +1 -1
- package/web/dist/assets/{reports-D93WfzdD.js → reports-BxYfLoON.js} +1 -1
- package/web/dist/assets/{run-header-FB4j_Fjm.js → run-header-BqfP1FSM.js} +1 -1
- package/web/dist/assets/{skills-BV3eF6mC.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-f9ldtHuA.js → task-changes-C8tmdSsM.js} +1 -1
- package/web/dist/assets/{task-commits-CLjEhkFM.js → task-commits-DBst5qgV.js} +1 -1
- package/web/dist/assets/{task-files-BEKlg0dR.js → task-files-C9aKsbXo.js} +1 -1
- package/web/dist/assets/{task-github-item-CbdPCKot.js → task-github-item-D8qxN6iN.js} +1 -1
- package/web/dist/assets/{task-thread-BPSL3OMS.js → task-thread-DzMRMGj_.js} +1 -1
- package/web/dist/assets/{thread-state-ZdBez7Ij.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-BOD9cT6o.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-Driy32Xn.js → workflows-TD0kz7GM.js} +1 -1
- package/web/dist/assets/{ws-BXpZYApG.js → ws-7E9_cHrQ.js} +1 -1
- package/web/dist/index.html +13 -13
- package/dist/core/disclaim-spawn.d.ts +0 -11
- package/dist/core/disclaim-spawn.js +0 -60
- package/dist/core/disclaim-spawn.js.map +0 -1
- package/dist/desktop-supervisor.d.ts +0 -10
- package/dist/desktop-supervisor.js +0 -52
- package/dist/desktop-supervisor.js.map +0 -1
- package/web/dist/assets/attention-CdwMIvQG.js +0 -1
- package/web/dist/assets/index-MgNz22Tg.js +0 -17
- package/web/dist/assets/useQuery-CnVG8NoC.js +0 -1
package/dist/server/server.d.ts
CHANGED
|
@@ -4794,19 +4794,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
4794
4794
|
} & {
|
|
4795
4795
|
"/repo/commit/:sha": {
|
|
4796
4796
|
$get: {
|
|
4797
|
-
output: string;
|
|
4798
|
-
outputFormat: "text";
|
|
4799
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4800
|
-
input: {
|
|
4801
|
-
query: {
|
|
4802
|
-
structured?: string | undefined;
|
|
4803
|
-
};
|
|
4804
|
-
} & {
|
|
4805
|
-
param: {
|
|
4806
|
-
sha: string;
|
|
4807
|
-
};
|
|
4808
|
-
};
|
|
4809
|
-
} | {
|
|
4810
4797
|
output: {
|
|
4811
4798
|
error: string;
|
|
4812
4799
|
code?: "invalid_input" | undefined;
|
|
@@ -4870,6 +4857,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
4870
4857
|
sha: string;
|
|
4871
4858
|
};
|
|
4872
4859
|
};
|
|
4860
|
+
} | {
|
|
4861
|
+
output: string;
|
|
4862
|
+
outputFormat: "text";
|
|
4863
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4864
|
+
input: {
|
|
4865
|
+
query: {
|
|
4866
|
+
structured?: string | undefined;
|
|
4867
|
+
};
|
|
4868
|
+
} & {
|
|
4869
|
+
param: {
|
|
4870
|
+
sha: string;
|
|
4871
|
+
};
|
|
4872
|
+
};
|
|
4873
4873
|
};
|
|
4874
4874
|
};
|
|
4875
4875
|
} & {
|
|
@@ -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;
|
|
@@ -18246,20 +18309,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
18246
18309
|
} & {
|
|
18247
18310
|
"/runs/:id/handoff": {
|
|
18248
18311
|
$get: {
|
|
18249
|
-
output:
|
|
18250
|
-
|
|
18251
|
-
|
|
18312
|
+
output: {
|
|
18313
|
+
error: string;
|
|
18314
|
+
};
|
|
18315
|
+
outputFormat: "json";
|
|
18316
|
+
status: 404;
|
|
18252
18317
|
input: {
|
|
18253
18318
|
param: {
|
|
18254
18319
|
id: string;
|
|
18255
18320
|
};
|
|
18256
18321
|
};
|
|
18257
18322
|
} | {
|
|
18258
|
-
output:
|
|
18259
|
-
|
|
18260
|
-
|
|
18261
|
-
outputFormat: "json";
|
|
18262
|
-
status: 404;
|
|
18323
|
+
output: string;
|
|
18324
|
+
outputFormat: "text";
|
|
18325
|
+
status: 200;
|
|
18263
18326
|
input: {
|
|
18264
18327
|
param: {
|
|
18265
18328
|
id: string;
|
|
@@ -18297,20 +18360,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
18297
18360
|
} & {
|
|
18298
18361
|
"/runs/:id/diff": {
|
|
18299
18362
|
$get: {
|
|
18300
|
-
output:
|
|
18301
|
-
|
|
18302
|
-
|
|
18363
|
+
output: {
|
|
18364
|
+
error: string;
|
|
18365
|
+
};
|
|
18366
|
+
outputFormat: "json";
|
|
18367
|
+
status: 404 | 409;
|
|
18303
18368
|
input: {
|
|
18304
18369
|
param: {
|
|
18305
18370
|
id: string;
|
|
18306
18371
|
};
|
|
18307
18372
|
};
|
|
18308
18373
|
} | {
|
|
18309
|
-
output:
|
|
18310
|
-
|
|
18311
|
-
|
|
18312
|
-
outputFormat: "json";
|
|
18313
|
-
status: 404 | 409;
|
|
18374
|
+
output: string;
|
|
18375
|
+
outputFormat: "text";
|
|
18376
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
18314
18377
|
input: {
|
|
18315
18378
|
param: {
|
|
18316
18379
|
id: string;
|
|
@@ -20603,19 +20666,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
20603
20666
|
} & {
|
|
20604
20667
|
"/repo/commit/:sha": {
|
|
20605
20668
|
$get: {
|
|
20606
|
-
output: string;
|
|
20607
|
-
outputFormat: "text";
|
|
20608
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
20609
|
-
input: {
|
|
20610
|
-
query: {
|
|
20611
|
-
structured?: string | undefined;
|
|
20612
|
-
};
|
|
20613
|
-
} & {
|
|
20614
|
-
param: {
|
|
20615
|
-
sha: string;
|
|
20616
|
-
};
|
|
20617
|
-
};
|
|
20618
|
-
} | {
|
|
20619
20669
|
output: {
|
|
20620
20670
|
error: string;
|
|
20621
20671
|
code?: "invalid_input" | undefined;
|
|
@@ -20679,6 +20729,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
20679
20729
|
sha: string;
|
|
20680
20730
|
};
|
|
20681
20731
|
};
|
|
20732
|
+
} | {
|
|
20733
|
+
output: string;
|
|
20734
|
+
outputFormat: "text";
|
|
20735
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
20736
|
+
input: {
|
|
20737
|
+
query: {
|
|
20738
|
+
structured?: string | undefined;
|
|
20739
|
+
};
|
|
20740
|
+
} & {
|
|
20741
|
+
param: {
|
|
20742
|
+
sha: string;
|
|
20743
|
+
};
|
|
20744
|
+
};
|
|
20682
20745
|
};
|
|
20683
20746
|
};
|
|
20684
20747
|
} & {
|
|
@@ -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;
|
|
@@ -34055,20 +34181,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
34055
34181
|
} & {
|
|
34056
34182
|
"/runs/:id/handoff": {
|
|
34057
34183
|
$get: {
|
|
34058
|
-
output:
|
|
34059
|
-
|
|
34060
|
-
|
|
34184
|
+
output: {
|
|
34185
|
+
error: string;
|
|
34186
|
+
};
|
|
34187
|
+
outputFormat: "json";
|
|
34188
|
+
status: 404;
|
|
34061
34189
|
input: {
|
|
34062
34190
|
param: {
|
|
34063
34191
|
id: string;
|
|
34064
34192
|
};
|
|
34065
34193
|
};
|
|
34066
34194
|
} | {
|
|
34067
|
-
output:
|
|
34068
|
-
|
|
34069
|
-
|
|
34070
|
-
outputFormat: "json";
|
|
34071
|
-
status: 404;
|
|
34195
|
+
output: string;
|
|
34196
|
+
outputFormat: "text";
|
|
34197
|
+
status: 200;
|
|
34072
34198
|
input: {
|
|
34073
34199
|
param: {
|
|
34074
34200
|
id: string;
|
|
@@ -34106,20 +34232,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
34106
34232
|
} & {
|
|
34107
34233
|
"/runs/:id/diff": {
|
|
34108
34234
|
$get: {
|
|
34109
|
-
output:
|
|
34110
|
-
|
|
34111
|
-
|
|
34235
|
+
output: {
|
|
34236
|
+
error: string;
|
|
34237
|
+
};
|
|
34238
|
+
outputFormat: "json";
|
|
34239
|
+
status: 404 | 409;
|
|
34112
34240
|
input: {
|
|
34113
34241
|
param: {
|
|
34114
34242
|
id: string;
|
|
34115
34243
|
};
|
|
34116
34244
|
};
|
|
34117
34245
|
} | {
|
|
34118
|
-
output:
|
|
34119
|
-
|
|
34120
|
-
|
|
34121
|
-
outputFormat: "json";
|
|
34122
|
-
status: 404 | 409;
|
|
34246
|
+
output: string;
|
|
34247
|
+
outputFormat: "text";
|
|
34248
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
34123
34249
|
input: {
|
|
34124
34250
|
param: {
|
|
34125
34251
|
id: string;
|
|
@@ -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;
|