@hearsay-tools/squawk 0.18.0-pr3725.6898 → 0.18.0-pr3725.6909
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 +31 -7
- package/dist/contract/run-predicates.d.ts +8 -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/execution-identity.d.ts +1 -5
- package/dist/delegation/execution-identity.js +2 -14
- package/dist/delegation/execution-identity.js.map +1 -1
- package/dist/delegation/routes.d.ts +9 -9
- package/dist/delegation/transport.d.ts +16 -16
- 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/server.d.ts +224 -98
- 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-Cbx0dG_F.js → activity-motion-DXtoOkpz.js} +1 -1
- package/web/dist/assets/{activity-route-CTWPmAJz.js → activity-route-r-em7Y-G.js} +1 -1
- package/web/dist/assets/{agent-accounts-1sG5dFTE.js → agent-accounts-DuMsyDoO.js} +1 -1
- package/web/dist/assets/attention-CB_z05E7.js +1 -0
- package/web/dist/assets/{commit-diff-panel-Z0-J2bqp.js → commit-diff-panel-BGLQaKRb.js} +1 -1
- package/web/dist/assets/{diff-BWQ0bBbq.js → diff-BRFJnYsC.js} +2 -2
- package/web/dist/assets/{diff-view-C987qwGs.js → diff-view-JWqbvzMs.js} +1 -1
- package/web/dist/assets/{file-preview-D38rtUVh.js → file-preview-BW__Krxm.js} +1 -1
- package/web/dist/assets/{git-toolbar-CW1set9z.js → git-toolbar-DoXf_s-G.js} +1 -1
- package/web/dist/assets/{github-T3IVQYu-.js → github-CijmslJ6.js} +1 -1
- package/web/dist/assets/{global-activity-route-QBf6nme4.js → global-activity-route-B2EeYnAW.js} +1 -1
- package/web/dist/assets/{index-yQ4aroAM.js → index-BHoqo9RG.js} +4 -4
- package/web/dist/assets/{preview-pane-connected-CdpH1s_D.js → preview-pane-connected-D6vrA6hJ.js} +1 -1
- package/web/dist/assets/{project-router-DFVFZDkA.js → project-router-C5EZmTkk.js} +1 -1
- package/web/dist/assets/project-scope-context-HUq7jkZN.js +4 -0
- package/web/dist/assets/{prompt-template-menu-B2FhhxGd.js → prompt-template-menu-DOYsMTKv.js} +1 -1
- package/web/dist/assets/{queries-DEnjNRg_.js → queries-BXHx1ZPw.js} +1 -1
- package/web/dist/assets/{reference-chip-Da6I9G_p.js → reference-chip-CjJnlcQb.js} +1 -1
- package/web/dist/assets/{repo-git-rf-mUMWA.js → repo-git-CyRoQgtr.js} +1 -1
- package/web/dist/assets/{report-reader-Cn26AqSq.js → report-reader-BJiEbYfZ.js} +1 -1
- package/web/dist/assets/{reports-COdh8sks.js → reports-Ddn-WBxa.js} +1 -1
- package/web/dist/assets/{run-header-BBqaYN69.js → run-header-B7qHisMu.js} +1 -1
- package/web/dist/assets/{skills-DHiB7MPs.js → skills-D2wzJWpY.js} +1 -1
- package/web/dist/assets/{tab-link-DX5ftrqt.js → tab-link-B_gKjZgM.js} +1 -1
- package/web/dist/assets/{task-changes-B7WMiUQy.js → task-changes-CqKQIYHP.js} +1 -1
- package/web/dist/assets/{task-commits-CRSqJGxC.js → task-commits-CY7XFJBU.js} +1 -1
- package/web/dist/assets/{task-files-CpLNPHn6.js → task-files-CW1gWAY3.js} +1 -1
- package/web/dist/assets/{task-github-item-DsX-nohF.js → task-github-item-Djq-z2As.js} +1 -1
- package/web/dist/assets/{task-thread-BzTAQpre.js → task-thread-DyZ9WjLc.js} +1 -1
- package/web/dist/assets/{thread-state-DxKkroyX.js → thread-state-Dbru_dO3.js} +1 -1
- package/web/dist/assets/use-desktop-BCMH-x7R.js +1 -0
- package/web/dist/assets/{use-hand-to-agent-state-CPWpSlsm.js → use-hand-to-agent-state-C94Si0KS.js} +1 -1
- package/web/dist/assets/{useInfiniteQuery-pimelj0e.js → useInfiniteQuery-O53uZ95W.js} +1 -1
- package/web/dist/assets/useQuery-C9ErlZEv.js +1 -0
- package/web/dist/assets/{workflows-Cmyq-zA0.js → workflows-CwS6zbSa.js} +1 -1
- package/web/dist/assets/{ws-CFHmgwZ0.js → ws-CRnL5yIc.js} +1 -1
- package/web/dist/index.html +12 -12
- package/web/dist/assets/attention-DHNDX6bq.js +0 -1
- package/web/dist/assets/project-scope-context-BIMyxsHW.js +0 -4
- package/web/dist/assets/use-desktop-CAM2zm7q.js +0 -1
- package/web/dist/assets/useQuery-BiEoT9Jp.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";
|
package/dist/server/server.d.ts
CHANGED
|
@@ -2979,6 +2979,12 @@ 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
|
+
} | {
|
|
2982
2988
|
projectId: string;
|
|
2983
2989
|
runId: string;
|
|
2984
2990
|
type: "batch";
|
|
@@ -2992,12 +2998,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
2992
2998
|
cursor: string;
|
|
2993
2999
|
afterSeq: number;
|
|
2994
3000
|
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";
|
|
@@ -4780,6 +4780,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
4780
4780
|
} & {
|
|
4781
4781
|
"/repo/commit/:sha": {
|
|
4782
4782
|
$get: {
|
|
4783
|
+
output: string;
|
|
4784
|
+
outputFormat: "text";
|
|
4785
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4786
|
+
input: {
|
|
4787
|
+
query: {
|
|
4788
|
+
structured?: string | undefined;
|
|
4789
|
+
};
|
|
4790
|
+
} & {
|
|
4791
|
+
param: {
|
|
4792
|
+
sha: string;
|
|
4793
|
+
};
|
|
4794
|
+
};
|
|
4795
|
+
} | {
|
|
4783
4796
|
output: {
|
|
4784
4797
|
error: string;
|
|
4785
4798
|
code?: "invalid_input" | undefined;
|
|
@@ -4843,19 +4856,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
4843
4856
|
sha: string;
|
|
4844
4857
|
};
|
|
4845
4858
|
};
|
|
4846
|
-
} | {
|
|
4847
|
-
output: string;
|
|
4848
|
-
outputFormat: "text";
|
|
4849
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4850
|
-
input: {
|
|
4851
|
-
query: {
|
|
4852
|
-
structured?: string | undefined;
|
|
4853
|
-
};
|
|
4854
|
-
} & {
|
|
4855
|
-
param: {
|
|
4856
|
-
sha: string;
|
|
4857
|
-
};
|
|
4858
|
-
};
|
|
4859
4859
|
};
|
|
4860
4860
|
};
|
|
4861
4861
|
} & {
|
|
@@ -7074,6 +7074,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
7074
7074
|
stepId: string;
|
|
7075
7075
|
mode: "resume" | "start";
|
|
7076
7076
|
} | undefined;
|
|
7077
|
+
doneAccepted?: {
|
|
7078
|
+
session: string;
|
|
7079
|
+
at: string;
|
|
7080
|
+
seq: number;
|
|
7081
|
+
summary?: string | undefined;
|
|
7082
|
+
freeTurn?: true | undefined;
|
|
7083
|
+
} | undefined;
|
|
7077
7084
|
invalidAsk?: boolean | undefined;
|
|
7078
7085
|
delegation?: {
|
|
7079
7086
|
role: "invalid";
|
|
@@ -8570,11 +8577,22 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
8570
8577
|
"/runs/:id/worker-destroy": {
|
|
8571
8578
|
$post: {
|
|
8572
8579
|
output: {
|
|
8573
|
-
|
|
8574
|
-
|
|
8580
|
+
readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
|
|
8581
|
+
readonly error: string;
|
|
8582
|
+
readonly modelChoices?: {
|
|
8583
|
+
runner: "claude" | "codex" | "omp" | "opencode" | "pi";
|
|
8584
|
+
requestedModel: string;
|
|
8585
|
+
availableModels: {
|
|
8586
|
+
id: string;
|
|
8587
|
+
label: string;
|
|
8588
|
+
description: string;
|
|
8589
|
+
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
8590
|
+
}[];
|
|
8591
|
+
otherRunners: ("claude" | "codex" | "omp" | "opencode" | "pi")[];
|
|
8592
|
+
} | undefined;
|
|
8575
8593
|
};
|
|
8576
8594
|
outputFormat: "json";
|
|
8577
|
-
status: 400;
|
|
8595
|
+
status: 400 | 401 | 403 | 409 | 503;
|
|
8578
8596
|
input: {
|
|
8579
8597
|
query: {
|
|
8580
8598
|
[x: string]: string | string[];
|
|
@@ -8588,22 +8606,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
8588
8606
|
};
|
|
8589
8607
|
} | {
|
|
8590
8608
|
output: {
|
|
8591
|
-
|
|
8592
|
-
|
|
8593
|
-
readonly modelChoices?: {
|
|
8594
|
-
runner: "claude" | "codex" | "omp" | "opencode" | "pi";
|
|
8595
|
-
requestedModel: string;
|
|
8596
|
-
availableModels: {
|
|
8597
|
-
id: string;
|
|
8598
|
-
label: string;
|
|
8599
|
-
description: string;
|
|
8600
|
-
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
8601
|
-
}[];
|
|
8602
|
-
otherRunners: ("claude" | "codex" | "omp" | "opencode" | "pi")[];
|
|
8603
|
-
} | undefined;
|
|
8609
|
+
error: string;
|
|
8610
|
+
code?: "invalid_input" | undefined;
|
|
8604
8611
|
};
|
|
8605
8612
|
outputFormat: "json";
|
|
8606
|
-
status: 400
|
|
8613
|
+
status: 400;
|
|
8607
8614
|
input: {
|
|
8608
8615
|
query: {
|
|
8609
8616
|
[x: string]: string | string[];
|
|
@@ -9682,6 +9689,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
9682
9689
|
stepId: string;
|
|
9683
9690
|
mode: "resume" | "start";
|
|
9684
9691
|
} | undefined;
|
|
9692
|
+
doneAccepted?: {
|
|
9693
|
+
session: string;
|
|
9694
|
+
at: string;
|
|
9695
|
+
seq: number;
|
|
9696
|
+
summary?: string | undefined;
|
|
9697
|
+
freeTurn?: true | undefined;
|
|
9698
|
+
} | undefined;
|
|
9685
9699
|
archived: boolean;
|
|
9686
9700
|
workflowDef?: {
|
|
9687
9701
|
name: string;
|
|
@@ -10782,6 +10796,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
10782
10796
|
stepId: string;
|
|
10783
10797
|
mode: "resume" | "start";
|
|
10784
10798
|
} | undefined;
|
|
10799
|
+
doneAccepted?: {
|
|
10800
|
+
session: string;
|
|
10801
|
+
at: string;
|
|
10802
|
+
seq: number;
|
|
10803
|
+
summary?: string | undefined;
|
|
10804
|
+
freeTurn?: true | undefined;
|
|
10805
|
+
} | undefined;
|
|
10785
10806
|
archived: boolean;
|
|
10786
10807
|
workflowDef?: {
|
|
10787
10808
|
name: string;
|
|
@@ -11883,6 +11904,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
11883
11904
|
stepId: string;
|
|
11884
11905
|
mode: "resume" | "start";
|
|
11885
11906
|
} | undefined;
|
|
11907
|
+
doneAccepted?: {
|
|
11908
|
+
session: string;
|
|
11909
|
+
at: string;
|
|
11910
|
+
seq: number;
|
|
11911
|
+
summary?: string | undefined;
|
|
11912
|
+
freeTurn?: true | undefined;
|
|
11913
|
+
} | undefined;
|
|
11886
11914
|
archived: boolean;
|
|
11887
11915
|
workflowDef?: {
|
|
11888
11916
|
name: string;
|
|
@@ -13011,6 +13039,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
13011
13039
|
stepId: string;
|
|
13012
13040
|
mode: "resume" | "start";
|
|
13013
13041
|
} | undefined;
|
|
13042
|
+
doneAccepted?: {
|
|
13043
|
+
session: string;
|
|
13044
|
+
at: string;
|
|
13045
|
+
seq: number;
|
|
13046
|
+
summary?: string | undefined;
|
|
13047
|
+
freeTurn?: true | undefined;
|
|
13048
|
+
} | undefined;
|
|
13014
13049
|
archived: boolean;
|
|
13015
13050
|
workflowDef?: {
|
|
13016
13051
|
name: string;
|
|
@@ -14087,6 +14122,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
14087
14122
|
stepId: string;
|
|
14088
14123
|
mode: "resume" | "start";
|
|
14089
14124
|
} | undefined;
|
|
14125
|
+
doneAccepted?: {
|
|
14126
|
+
session: string;
|
|
14127
|
+
at: string;
|
|
14128
|
+
seq: number;
|
|
14129
|
+
summary?: string | undefined;
|
|
14130
|
+
freeTurn?: true | undefined;
|
|
14131
|
+
} | undefined;
|
|
14090
14132
|
archived: boolean;
|
|
14091
14133
|
workflowDef?: {
|
|
14092
14134
|
name: string;
|
|
@@ -15163,6 +15205,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
15163
15205
|
stepId: string;
|
|
15164
15206
|
mode: "resume" | "start";
|
|
15165
15207
|
} | undefined;
|
|
15208
|
+
doneAccepted?: {
|
|
15209
|
+
session: string;
|
|
15210
|
+
at: string;
|
|
15211
|
+
seq: number;
|
|
15212
|
+
summary?: string | undefined;
|
|
15213
|
+
freeTurn?: true | undefined;
|
|
15214
|
+
} | undefined;
|
|
15166
15215
|
archived: boolean;
|
|
15167
15216
|
workflowDef?: {
|
|
15168
15217
|
name: string;
|
|
@@ -15378,6 +15427,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
15378
15427
|
stepId: string;
|
|
15379
15428
|
mode: "resume" | "start";
|
|
15380
15429
|
} | undefined;
|
|
15430
|
+
doneAccepted?: {
|
|
15431
|
+
session: string;
|
|
15432
|
+
at: string;
|
|
15433
|
+
seq: number;
|
|
15434
|
+
summary?: string | undefined;
|
|
15435
|
+
freeTurn?: true | undefined;
|
|
15436
|
+
} | undefined;
|
|
15381
15437
|
invalidAsk?: boolean | undefined;
|
|
15382
15438
|
delegation?: {
|
|
15383
15439
|
role: "invalid";
|
|
@@ -17516,6 +17572,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
17516
17572
|
stepId: string;
|
|
17517
17573
|
mode: "resume" | "start";
|
|
17518
17574
|
} | undefined;
|
|
17575
|
+
doneAccepted?: {
|
|
17576
|
+
session: string;
|
|
17577
|
+
at: string;
|
|
17578
|
+
seq: number;
|
|
17579
|
+
summary?: string | undefined;
|
|
17580
|
+
freeTurn?: true | undefined;
|
|
17581
|
+
} | undefined;
|
|
17519
17582
|
archived: boolean;
|
|
17520
17583
|
workflowDef?: {
|
|
17521
17584
|
name: string;
|
|
@@ -18243,20 +18306,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
18243
18306
|
} & {
|
|
18244
18307
|
"/runs/:id/handoff": {
|
|
18245
18308
|
$get: {
|
|
18246
|
-
output:
|
|
18247
|
-
|
|
18248
|
-
|
|
18249
|
-
outputFormat: "json";
|
|
18250
|
-
status: 404;
|
|
18309
|
+
output: string;
|
|
18310
|
+
outputFormat: "text";
|
|
18311
|
+
status: 200;
|
|
18251
18312
|
input: {
|
|
18252
18313
|
param: {
|
|
18253
18314
|
id: string;
|
|
18254
18315
|
};
|
|
18255
18316
|
};
|
|
18256
18317
|
} | {
|
|
18257
|
-
output:
|
|
18258
|
-
|
|
18259
|
-
|
|
18318
|
+
output: {
|
|
18319
|
+
error: string;
|
|
18320
|
+
};
|
|
18321
|
+
outputFormat: "json";
|
|
18322
|
+
status: 404;
|
|
18260
18323
|
input: {
|
|
18261
18324
|
param: {
|
|
18262
18325
|
id: string;
|
|
@@ -18294,20 +18357,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
18294
18357
|
} & {
|
|
18295
18358
|
"/runs/:id/diff": {
|
|
18296
18359
|
$get: {
|
|
18297
|
-
output:
|
|
18298
|
-
|
|
18299
|
-
|
|
18300
|
-
outputFormat: "json";
|
|
18301
|
-
status: 404 | 409;
|
|
18360
|
+
output: string;
|
|
18361
|
+
outputFormat: "text";
|
|
18362
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
18302
18363
|
input: {
|
|
18303
18364
|
param: {
|
|
18304
18365
|
id: string;
|
|
18305
18366
|
};
|
|
18306
18367
|
};
|
|
18307
18368
|
} | {
|
|
18308
|
-
output:
|
|
18309
|
-
|
|
18310
|
-
|
|
18369
|
+
output: {
|
|
18370
|
+
error: string;
|
|
18371
|
+
};
|
|
18372
|
+
outputFormat: "json";
|
|
18373
|
+
status: 404 | 409;
|
|
18311
18374
|
input: {
|
|
18312
18375
|
param: {
|
|
18313
18376
|
id: string;
|
|
@@ -20595,6 +20658,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
20595
20658
|
} & {
|
|
20596
20659
|
"/repo/commit/:sha": {
|
|
20597
20660
|
$get: {
|
|
20661
|
+
output: string;
|
|
20662
|
+
outputFormat: "text";
|
|
20663
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
20664
|
+
input: {
|
|
20665
|
+
query: {
|
|
20666
|
+
structured?: string | undefined;
|
|
20667
|
+
};
|
|
20668
|
+
} & {
|
|
20669
|
+
param: {
|
|
20670
|
+
sha: string;
|
|
20671
|
+
};
|
|
20672
|
+
};
|
|
20673
|
+
} | {
|
|
20598
20674
|
output: {
|
|
20599
20675
|
error: string;
|
|
20600
20676
|
code?: "invalid_input" | undefined;
|
|
@@ -20658,19 +20734,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
20658
20734
|
sha: string;
|
|
20659
20735
|
};
|
|
20660
20736
|
};
|
|
20661
|
-
} | {
|
|
20662
|
-
output: string;
|
|
20663
|
-
outputFormat: "text";
|
|
20664
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
20665
|
-
input: {
|
|
20666
|
-
query: {
|
|
20667
|
-
structured?: string | undefined;
|
|
20668
|
-
};
|
|
20669
|
-
} & {
|
|
20670
|
-
param: {
|
|
20671
|
-
sha: string;
|
|
20672
|
-
};
|
|
20673
|
-
};
|
|
20674
20737
|
};
|
|
20675
20738
|
};
|
|
20676
20739
|
} & {
|
|
@@ -22889,6 +22952,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
22889
22952
|
stepId: string;
|
|
22890
22953
|
mode: "resume" | "start";
|
|
22891
22954
|
} | undefined;
|
|
22955
|
+
doneAccepted?: {
|
|
22956
|
+
session: string;
|
|
22957
|
+
at: string;
|
|
22958
|
+
seq: number;
|
|
22959
|
+
summary?: string | undefined;
|
|
22960
|
+
freeTurn?: true | undefined;
|
|
22961
|
+
} | undefined;
|
|
22892
22962
|
invalidAsk?: boolean | undefined;
|
|
22893
22963
|
delegation?: {
|
|
22894
22964
|
role: "invalid";
|
|
@@ -24385,11 +24455,22 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
24385
24455
|
"/runs/:id/worker-destroy": {
|
|
24386
24456
|
$post: {
|
|
24387
24457
|
output: {
|
|
24388
|
-
|
|
24389
|
-
|
|
24458
|
+
readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
|
|
24459
|
+
readonly error: string;
|
|
24460
|
+
readonly modelChoices?: {
|
|
24461
|
+
runner: "claude" | "codex" | "omp" | "opencode" | "pi";
|
|
24462
|
+
requestedModel: string;
|
|
24463
|
+
availableModels: {
|
|
24464
|
+
id: string;
|
|
24465
|
+
label: string;
|
|
24466
|
+
description: string;
|
|
24467
|
+
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
24468
|
+
}[];
|
|
24469
|
+
otherRunners: ("claude" | "codex" | "omp" | "opencode" | "pi")[];
|
|
24470
|
+
} | undefined;
|
|
24390
24471
|
};
|
|
24391
24472
|
outputFormat: "json";
|
|
24392
|
-
status: 400;
|
|
24473
|
+
status: 400 | 401 | 403 | 409 | 503;
|
|
24393
24474
|
input: {
|
|
24394
24475
|
query: {
|
|
24395
24476
|
[x: string]: string | string[];
|
|
@@ -24403,22 +24484,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
24403
24484
|
};
|
|
24404
24485
|
} | {
|
|
24405
24486
|
output: {
|
|
24406
|
-
|
|
24407
|
-
|
|
24408
|
-
readonly modelChoices?: {
|
|
24409
|
-
runner: "claude" | "codex" | "omp" | "opencode" | "pi";
|
|
24410
|
-
requestedModel: string;
|
|
24411
|
-
availableModels: {
|
|
24412
|
-
id: string;
|
|
24413
|
-
label: string;
|
|
24414
|
-
description: string;
|
|
24415
|
-
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
24416
|
-
}[];
|
|
24417
|
-
otherRunners: ("claude" | "codex" | "omp" | "opencode" | "pi")[];
|
|
24418
|
-
} | undefined;
|
|
24487
|
+
error: string;
|
|
24488
|
+
code?: "invalid_input" | undefined;
|
|
24419
24489
|
};
|
|
24420
24490
|
outputFormat: "json";
|
|
24421
|
-
status: 400
|
|
24491
|
+
status: 400;
|
|
24422
24492
|
input: {
|
|
24423
24493
|
query: {
|
|
24424
24494
|
[x: string]: string | string[];
|
|
@@ -25497,6 +25567,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
25497
25567
|
stepId: string;
|
|
25498
25568
|
mode: "resume" | "start";
|
|
25499
25569
|
} | undefined;
|
|
25570
|
+
doneAccepted?: {
|
|
25571
|
+
session: string;
|
|
25572
|
+
at: string;
|
|
25573
|
+
seq: number;
|
|
25574
|
+
summary?: string | undefined;
|
|
25575
|
+
freeTurn?: true | undefined;
|
|
25576
|
+
} | undefined;
|
|
25500
25577
|
archived: boolean;
|
|
25501
25578
|
workflowDef?: {
|
|
25502
25579
|
name: string;
|
|
@@ -26597,6 +26674,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
26597
26674
|
stepId: string;
|
|
26598
26675
|
mode: "resume" | "start";
|
|
26599
26676
|
} | undefined;
|
|
26677
|
+
doneAccepted?: {
|
|
26678
|
+
session: string;
|
|
26679
|
+
at: string;
|
|
26680
|
+
seq: number;
|
|
26681
|
+
summary?: string | undefined;
|
|
26682
|
+
freeTurn?: true | undefined;
|
|
26683
|
+
} | undefined;
|
|
26600
26684
|
archived: boolean;
|
|
26601
26685
|
workflowDef?: {
|
|
26602
26686
|
name: string;
|
|
@@ -27698,6 +27782,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
27698
27782
|
stepId: string;
|
|
27699
27783
|
mode: "resume" | "start";
|
|
27700
27784
|
} | undefined;
|
|
27785
|
+
doneAccepted?: {
|
|
27786
|
+
session: string;
|
|
27787
|
+
at: string;
|
|
27788
|
+
seq: number;
|
|
27789
|
+
summary?: string | undefined;
|
|
27790
|
+
freeTurn?: true | undefined;
|
|
27791
|
+
} | undefined;
|
|
27701
27792
|
archived: boolean;
|
|
27702
27793
|
workflowDef?: {
|
|
27703
27794
|
name: string;
|
|
@@ -28826,6 +28917,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
28826
28917
|
stepId: string;
|
|
28827
28918
|
mode: "resume" | "start";
|
|
28828
28919
|
} | undefined;
|
|
28920
|
+
doneAccepted?: {
|
|
28921
|
+
session: string;
|
|
28922
|
+
at: string;
|
|
28923
|
+
seq: number;
|
|
28924
|
+
summary?: string | undefined;
|
|
28925
|
+
freeTurn?: true | undefined;
|
|
28926
|
+
} | undefined;
|
|
28829
28927
|
archived: boolean;
|
|
28830
28928
|
workflowDef?: {
|
|
28831
28929
|
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;
|
|
@@ -30978,6 +31083,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
30978
31083
|
stepId: string;
|
|
30979
31084
|
mode: "resume" | "start";
|
|
30980
31085
|
} | undefined;
|
|
31086
|
+
doneAccepted?: {
|
|
31087
|
+
session: string;
|
|
31088
|
+
at: string;
|
|
31089
|
+
seq: number;
|
|
31090
|
+
summary?: string | undefined;
|
|
31091
|
+
freeTurn?: true | undefined;
|
|
31092
|
+
} | undefined;
|
|
30981
31093
|
archived: boolean;
|
|
30982
31094
|
workflowDef?: {
|
|
30983
31095
|
name: string;
|
|
@@ -31193,6 +31305,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
31193
31305
|
stepId: string;
|
|
31194
31306
|
mode: "resume" | "start";
|
|
31195
31307
|
} | undefined;
|
|
31308
|
+
doneAccepted?: {
|
|
31309
|
+
session: string;
|
|
31310
|
+
at: string;
|
|
31311
|
+
seq: number;
|
|
31312
|
+
summary?: string | undefined;
|
|
31313
|
+
freeTurn?: true | undefined;
|
|
31314
|
+
} | undefined;
|
|
31196
31315
|
invalidAsk?: boolean | undefined;
|
|
31197
31316
|
delegation?: {
|
|
31198
31317
|
role: "invalid";
|
|
@@ -33331,6 +33450,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
33331
33450
|
stepId: string;
|
|
33332
33451
|
mode: "resume" | "start";
|
|
33333
33452
|
} | undefined;
|
|
33453
|
+
doneAccepted?: {
|
|
33454
|
+
session: string;
|
|
33455
|
+
at: string;
|
|
33456
|
+
seq: number;
|
|
33457
|
+
summary?: string | undefined;
|
|
33458
|
+
freeTurn?: true | undefined;
|
|
33459
|
+
} | undefined;
|
|
33334
33460
|
archived: boolean;
|
|
33335
33461
|
workflowDef?: {
|
|
33336
33462
|
name: string;
|
|
@@ -34058,20 +34184,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
34058
34184
|
} & {
|
|
34059
34185
|
"/runs/:id/handoff": {
|
|
34060
34186
|
$get: {
|
|
34061
|
-
output:
|
|
34062
|
-
|
|
34063
|
-
|
|
34064
|
-
outputFormat: "json";
|
|
34065
|
-
status: 404;
|
|
34187
|
+
output: string;
|
|
34188
|
+
outputFormat: "text";
|
|
34189
|
+
status: 200;
|
|
34066
34190
|
input: {
|
|
34067
34191
|
param: {
|
|
34068
34192
|
id: string;
|
|
34069
34193
|
};
|
|
34070
34194
|
};
|
|
34071
34195
|
} | {
|
|
34072
|
-
output:
|
|
34073
|
-
|
|
34074
|
-
|
|
34196
|
+
output: {
|
|
34197
|
+
error: string;
|
|
34198
|
+
};
|
|
34199
|
+
outputFormat: "json";
|
|
34200
|
+
status: 404;
|
|
34075
34201
|
input: {
|
|
34076
34202
|
param: {
|
|
34077
34203
|
id: string;
|
|
@@ -34109,20 +34235,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
34109
34235
|
} & {
|
|
34110
34236
|
"/runs/:id/diff": {
|
|
34111
34237
|
$get: {
|
|
34112
|
-
output:
|
|
34113
|
-
|
|
34114
|
-
|
|
34115
|
-
outputFormat: "json";
|
|
34116
|
-
status: 404 | 409;
|
|
34238
|
+
output: string;
|
|
34239
|
+
outputFormat: "text";
|
|
34240
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
34117
34241
|
input: {
|
|
34118
34242
|
param: {
|
|
34119
34243
|
id: string;
|
|
34120
34244
|
};
|
|
34121
34245
|
};
|
|
34122
34246
|
} | {
|
|
34123
|
-
output:
|
|
34124
|
-
|
|
34125
|
-
|
|
34247
|
+
output: {
|
|
34248
|
+
error: string;
|
|
34249
|
+
};
|
|
34250
|
+
outputFormat: "json";
|
|
34251
|
+
status: 404 | 409;
|
|
34126
34252
|
input: {
|
|
34127
34253
|
param: {
|
|
34128
34254
|
id: 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";
|
|
@@ -1137,6 +1137,13 @@ export declare class ContinuationChecks {
|
|
|
1137
1137
|
stepId: string;
|
|
1138
1138
|
mode: "resume" | "start";
|
|
1139
1139
|
} | undefined;
|
|
1140
|
+
doneAccepted?: {
|
|
1141
|
+
session: string;
|
|
1142
|
+
at: string;
|
|
1143
|
+
seq: number;
|
|
1144
|
+
summary?: string | undefined;
|
|
1145
|
+
freeTurn?: true | undefined;
|
|
1146
|
+
} | undefined;
|
|
1140
1147
|
archived: boolean;
|
|
1141
1148
|
workflowDef?: {
|
|
1142
1149
|
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;
|