@hearsay-tools/squawk 0.18.0-dev.8015 → 0.18.0-dev.8022
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/client.js.map +1 -1
- package/dist/ci-wait/controller.d.ts +6 -5
- package/dist/ci-wait/controller.js.map +1 -1
- package/dist/ci-wait/tool-catalog.js.map +1 -1
- package/dist/contract/index.d.ts +1 -0
- package/dist/contract/index.js +622 -615
- package/dist/contract/wait-limits.d.ts +3 -0
- package/dist/contract/wait-tools.d.ts +440 -0
- package/dist/contract/waits.d.ts +2 -441
- package/dist/delegation/routes.d.ts +4 -4
- package/dist/delegation/transport.d.ts +15 -15
- package/dist/runs/run-archive.d.ts +72 -72
- package/dist/runs/run-decode.d.ts +72 -72
- package/dist/runs/run-exits.d.ts +352 -352
- package/dist/workflows/continuation-admission.d.ts +72 -72
- package/dist/workflows/run/compose.d.ts +2 -1
- package/dist/workflows/run/compose.js.map +1 -1
- package/dist/workflows/run/run-finish.js.map +1 -1
- package/dist/workflows/run/squawk-tools.d.ts +2 -1
- package/dist/workflows/run/squawk-tools.js.map +1 -1
- package/dist/workflows/run/wait-registration-tool.js +2 -1
- package/dist/workflows/run/wait-registration-tool.js.map +1 -1
- package/dist/workflows/run/wait-registration.d.ts +2 -1
- package/dist/workflows/run/wait-registration.js.map +1 -1
- package/dist/workflows/run/wait-registry.d.ts +2 -1
- package/dist/workflows/run/wait-registry.js.map +1 -1
- package/dist/workflows/run.d.ts +2 -1
- package/dist/workflows/run.js.map +1 -1
- package/package.json +4 -4
- package/web/dist/assets/{accounts-section-CJ1xR0FN.js → accounts-section-Lxa13E8O.js} +1 -1
- package/web/dist/assets/{activity-motion-C01GEN0y.js → activity-motion-D-8GF_WP.js} +1 -1
- package/web/dist/assets/{activity-route-BZ1NIKSY.js → activity-route-Bo-Cyzsz.js} +1 -1
- package/web/dist/assets/{agent-config-section-DvFcRRLD.js → agent-config-section-BE239EYo.js} +1 -1
- package/web/dist/assets/{agent-defaults-section-BE88c2RN.js → agent-defaults-section-Bj5dO6F3.js} +1 -1
- package/web/dist/assets/{appearance-B9Z6lNEm.js → appearance-C2v7z5MF.js} +1 -1
- package/web/dist/assets/{archive-on-merge-field-DtR7twJI.js → archive-on-merge-field-Ta3WlY1p.js} +1 -1
- package/web/dist/assets/attention-B1Ei1IW6.js +1 -0
- package/web/dist/assets/{automations-route-Dpa01C3j.js → automations-route-DPpaFR0Q.js} +1 -1
- package/web/dist/assets/{commit-diff-panel-CGjhxIPJ.js → commit-diff-panel-CzY8bO3p.js} +1 -1
- package/web/dist/assets/{diff-DQ18_bA-.js → diff-3jSM3IH7.js} +2 -2
- package/web/dist/assets/{diff-view-CMwe_Rx7.js → diff-view-C3cwyYRv.js} +1 -1
- package/web/dist/assets/{file-preview-_lAUlt5u.js → file-preview-B71T62DU.js} +1 -1
- package/web/dist/assets/{folder-browser-Cy26Y6YK.js → folder-browser-BTYMFLBY.js} +1 -1
- package/web/dist/assets/{git-toolbar-BJM3pWHY.js → git-toolbar-Dng31AhK.js} +1 -1
- package/web/dist/assets/{github-aO7y0526.js → github-Cft2RNHM.js} +1 -1
- package/web/dist/assets/{global-activity-route-BWOfw2C5.js → global-activity-route-CngRjBlD.js} +1 -1
- package/web/dist/assets/{index-D-Y1olb1.js → index-MG3T7zFQ.js} +5 -5
- package/web/dist/assets/{label-CbEJ99h4.js → label-C9IGG0mW.js} +1 -1
- package/web/dist/assets/{markdown-BDWII3gy.js → markdown-BDWm6oGX.js} +1 -1
- package/web/dist/assets/{notifications-section-Z_4IW83J.js → notifications-section-BxIKJ1NF.js} +1 -1
- package/web/dist/assets/{open-in-menu-21vcjK3t.js → open-in-menu-LbTu2sP4.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-CxwvH4pt.js → preview-pane-connected-CGQngtTw.js} +1 -1
- package/web/dist/assets/{project-location-CvJMe_Vp.js → project-location-B-18C392.js} +1 -1
- package/web/dist/assets/{project-router-hhGBPlav.js → project-router-DImKA81z.js} +1 -1
- package/web/dist/assets/project-scope-context-D3_4Nfjk.js +4 -0
- package/web/dist/assets/{projects-section-CQ34YFnT.js → projects-section-DQ1LxJ3A.js} +1 -1
- package/web/dist/assets/{prompt-templates-section-UIxQCLJq.js → prompt-templates-section-C5AYB6Ig.js} +1 -1
- package/web/dist/assets/{queries-D6ioEk6c.js → queries-BaHOUYn4.js} +1 -1
- package/web/dist/assets/{reference-chip-B5br2cfV.js → reference-chip-CdOqXRll.js} +1 -1
- package/web/dist/assets/{remote-settings-notice-BWDpTH5W.js → remote-settings-notice-BTdflMqO.js} +1 -1
- package/web/dist/assets/{repo-git-U12bPaG-.js → repo-git-DChiMWrS.js} +1 -1
- package/web/dist/assets/{report-reader-B5vipU-m.js → report-reader-nV2G6iRk.js} +1 -1
- package/web/dist/assets/{reports-Cdk8Dc-w.js → reports-CoQqVEy4.js} +1 -1
- package/web/dist/assets/{resources-section-BCLu3v1Z.js → resources-section-CVaIlicS.js} +1 -1
- package/web/dist/assets/{run-header-gOqc0BKa.js → run-header-xPtXOBkm.js} +1 -1
- package/web/dist/assets/{runners-5cgs0qUY.js → runners-DccsyraI.js} +1 -1
- package/web/dist/assets/{settings-agent-picker-CB7l8AW-.js → settings-agent-picker-ixlEQ-MP.js} +1 -1
- package/web/dist/assets/{settings-shell-BUHHoCDs.js → settings-shell-BwknM_fs.js} +1 -1
- package/web/dist/assets/{sidebar-section-8dTKLdQw.js → sidebar-section-BNy-fRPU.js} +1 -1
- package/web/dist/assets/{skills-thuBrq2s.js → skills-CKceHo5J.js} +1 -1
- package/web/dist/assets/{tab-link-DaFUyEhe.js → tab-link-VCVNqxFc.js} +1 -1
- package/web/dist/assets/{task-changes-DSpeg6sX.js → task-changes-D4H5YbMo.js} +1 -1
- package/web/dist/assets/{task-commits-DRDRswBh.js → task-commits-BNu0VTTf.js} +1 -1
- package/web/dist/assets/{task-files-Cevz9Mex.js → task-files-C8q8GHYK.js} +1 -1
- package/web/dist/assets/{task-github-item-DpLkKSKy.js → task-github-item-D5kHfnwY.js} +1 -1
- package/web/dist/assets/{task-groups-CafTiSSz.js → task-groups-C7yO8nMy.js} +1 -1
- package/web/dist/assets/{task-thread-BvM4rEQe.js → task-thread-Dhts8Nbu.js} +1 -1
- package/web/dist/assets/{tasks-table-DYjfmofR.js → tasks-table-I_z4e7uI.js} +1 -1
- package/web/dist/assets/{thread-state-A3TSuI5v.js → thread-state-DV19z3BD.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-IepoiFbj.js → use-hand-to-agent-state-C6e6Mgi1.js} +1 -1
- package/web/dist/assets/{useInfiniteQuery-B20OnjTe.js → useInfiniteQuery-DR5UfhCS.js} +1 -1
- package/web/dist/assets/useQuery-BMyCehPp.js +1 -0
- package/web/dist/assets/{workflows-B0TaHAzz.js → workflows-BNHmFZRc.js} +1 -1
- package/web/dist/assets/{workspace-tools-B8sP_p5c.js → workspace-tools-UHJAnHEN.js} +1 -1
- package/web/dist/assets/{worktrees-section-BDfwadB6.js → worktrees-section-B4XPx6R5.js} +1 -1
- package/web/dist/assets/{ws-ExzR2_Yn.js → ws-CH3zNFKR.js} +1 -1
- package/web/dist/index.html +15 -15
- package/web/dist/assets/attention-B6NEiTGm.js +0 -1
- package/web/dist/assets/project-scope-context-BiijuuWU.js +0 -4
- package/web/dist/assets/useQuery-BTg3x78A.js +0 -1
|
@@ -20,3 +20,6 @@ export declare const SUBAGENT_WAIT_GRACE_SECONDS = 15;
|
|
|
20
20
|
export declare const SUBAGENT_WAIT_CHILD_LIMIT = 32;
|
|
21
21
|
/** The bound on every wait and done refusal's `message`; the run manager fits its own to it. */
|
|
22
22
|
export declare const WAIT_MESSAGE_MAX = 4096;
|
|
23
|
+
/** The bound on a timer or process wait's `note`, and the lowest PID a process wait accepts. */
|
|
24
|
+
export declare const NOTE_MAX = 512;
|
|
25
|
+
export declare const PID_MIN = 2;
|
|
@@ -0,0 +1,440 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const squawkWaitRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
|
+
pr: z.ZodString;
|
|
4
|
+
until: z.ZodDefault<z.ZodEnum<{
|
|
5
|
+
checks: "checks";
|
|
6
|
+
merge: "merge";
|
|
7
|
+
merge_or_blocked: "merge_or_blocked";
|
|
8
|
+
}>>;
|
|
9
|
+
wake_on_conflict: z.ZodDefault<z.ZodBoolean>;
|
|
10
|
+
timeout_seconds: z.ZodDefault<z.ZodNumber>;
|
|
11
|
+
head_sha: z.ZodOptional<z.ZodString>;
|
|
12
|
+
operation_id: z.ZodOptional<z.ZodUUID>;
|
|
13
|
+
kind: z.ZodLiteral<"pr">;
|
|
14
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
15
|
+
operation_id: z.ZodOptional<z.ZodUUID>;
|
|
16
|
+
kind: z.ZodLiteral<"worker">;
|
|
17
|
+
worker_ids: z.ZodArray<z.ZodUUID>;
|
|
18
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
19
|
+
all: "all";
|
|
20
|
+
any: "any";
|
|
21
|
+
one: "one";
|
|
22
|
+
}>>;
|
|
23
|
+
timeout_seconds: z.ZodDefault<z.ZodNumber>;
|
|
24
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
25
|
+
operation_id: z.ZodOptional<z.ZodUUID>;
|
|
26
|
+
kind: z.ZodLiteral<"request">;
|
|
27
|
+
request_ids: z.ZodArray<z.ZodUUID>;
|
|
28
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
29
|
+
all: "all";
|
|
30
|
+
any: "any";
|
|
31
|
+
one: "one";
|
|
32
|
+
}>>;
|
|
33
|
+
timeout_seconds: z.ZodDefault<z.ZodNumber>;
|
|
34
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
35
|
+
operation_id: z.ZodOptional<z.ZodUUID>;
|
|
36
|
+
kind: z.ZodLiteral<"peer">;
|
|
37
|
+
peer_ids: z.ZodArray<z.ZodUUID>;
|
|
38
|
+
timeout_seconds: z.ZodDefault<z.ZodNumber>;
|
|
39
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40
|
+
operation_id: z.ZodOptional<z.ZodUUID>;
|
|
41
|
+
kind: z.ZodLiteral<"timer">;
|
|
42
|
+
seconds: z.ZodNumber;
|
|
43
|
+
note: z.ZodOptional<z.ZodString>;
|
|
44
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
45
|
+
operation_id: z.ZodOptional<z.ZodUUID>;
|
|
46
|
+
kind: z.ZodLiteral<"process">;
|
|
47
|
+
pid: z.ZodNumber;
|
|
48
|
+
exit_file: z.ZodOptional<z.ZodString>;
|
|
49
|
+
timeout_seconds: z.ZodDefault<z.ZodNumber>;
|
|
50
|
+
note: z.ZodOptional<z.ZodString>;
|
|
51
|
+
}, z.core.$strict>], "kind">;
|
|
52
|
+
export type SquawkWaitRequest = z.infer<typeof squawkWaitRequestSchema>;
|
|
53
|
+
/** What a caller may send: the defaults (`until`, `wake_on_conflict`, `timeout_seconds`) still unset. */
|
|
54
|
+
export type SquawkWaitRequestInput = z.input<typeof squawkWaitRequestSchema>;
|
|
55
|
+
export declare const squawkCancelWaitRequestSchema: z.ZodObject<{
|
|
56
|
+
wait_id: z.ZodUUID;
|
|
57
|
+
}, z.core.$strict>;
|
|
58
|
+
export type SquawkCancelWaitRequest = z.infer<typeof squawkCancelWaitRequestSchema>;
|
|
59
|
+
export declare const squawkWaitAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
60
|
+
operation_id: z.ZodOptional<z.ZodUUID>;
|
|
61
|
+
ok: z.ZodLiteral<true>;
|
|
62
|
+
effect: z.ZodOptional<z.ZodEnum<{
|
|
63
|
+
applied: "applied";
|
|
64
|
+
unchanged: "unchanged";
|
|
65
|
+
}>>;
|
|
66
|
+
deduplicated: z.ZodOptional<z.ZodBoolean>;
|
|
67
|
+
replayed: z.ZodOptional<z.ZodBoolean>;
|
|
68
|
+
wait_phase: z.ZodOptional<z.ZodEnum<{
|
|
69
|
+
cancelled: "cancelled";
|
|
70
|
+
delivered: "delivered";
|
|
71
|
+
open: "open";
|
|
72
|
+
resolved: "resolved";
|
|
73
|
+
unavailable: "unavailable";
|
|
74
|
+
}>>;
|
|
75
|
+
wait_id: z.ZodUUID;
|
|
76
|
+
kind: z.ZodEnum<{
|
|
77
|
+
peer: "peer";
|
|
78
|
+
pr: "pr";
|
|
79
|
+
process: "process";
|
|
80
|
+
request: "request";
|
|
81
|
+
timer: "timer";
|
|
82
|
+
worker: "worker";
|
|
83
|
+
}>;
|
|
84
|
+
deadline: z.ZodISODateTime;
|
|
85
|
+
open_waits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
86
|
+
wait_id: z.ZodUUID;
|
|
87
|
+
summary: z.ZodString;
|
|
88
|
+
kind: z.ZodEnum<{
|
|
89
|
+
peer: "peer";
|
|
90
|
+
pr: "pr";
|
|
91
|
+
process: "process";
|
|
92
|
+
subagent: "subagent";
|
|
93
|
+
timer: "timer";
|
|
94
|
+
worker: "worker";
|
|
95
|
+
}>;
|
|
96
|
+
deadline: z.ZodISODateTime;
|
|
97
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
98
|
+
wait_id: z.ZodUUID;
|
|
99
|
+
summary: z.ZodString;
|
|
100
|
+
kind: z.ZodLiteral<"human">;
|
|
101
|
+
}, z.core.$strict>], "kind">>;
|
|
102
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
103
|
+
operation_id: z.ZodOptional<z.ZodUUID>;
|
|
104
|
+
ok: z.ZodLiteral<false>;
|
|
105
|
+
effect: z.ZodOptional<z.ZodEnum<{
|
|
106
|
+
refused: "refused";
|
|
107
|
+
unknown: "unknown";
|
|
108
|
+
}>>;
|
|
109
|
+
retained_wait: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
110
|
+
wait_id: z.ZodUUID;
|
|
111
|
+
summary: z.ZodString;
|
|
112
|
+
kind: z.ZodEnum<{
|
|
113
|
+
peer: "peer";
|
|
114
|
+
pr: "pr";
|
|
115
|
+
process: "process";
|
|
116
|
+
subagent: "subagent";
|
|
117
|
+
timer: "timer";
|
|
118
|
+
worker: "worker";
|
|
119
|
+
}>;
|
|
120
|
+
deadline: z.ZodISODateTime;
|
|
121
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
122
|
+
wait_id: z.ZodUUID;
|
|
123
|
+
summary: z.ZodString;
|
|
124
|
+
kind: z.ZodLiteral<"human">;
|
|
125
|
+
}, z.core.$strict>], "kind">>;
|
|
126
|
+
code: z.ZodEnum<{
|
|
127
|
+
authentication: "authentication";
|
|
128
|
+
capability_revoked: "capability_revoked";
|
|
129
|
+
capacity: "capacity";
|
|
130
|
+
command_failed: "command_failed";
|
|
131
|
+
denied_scope: "denied_scope";
|
|
132
|
+
duplicate_deadline: "duplicate_deadline";
|
|
133
|
+
exit_file_outside: "exit_file_outside";
|
|
134
|
+
finish_requested: "finish_requested";
|
|
135
|
+
generation_mismatch: "generation_mismatch";
|
|
136
|
+
gh_missing: "gh_missing";
|
|
137
|
+
inaccessible_pr: "inaccessible_pr";
|
|
138
|
+
invalid_request: "invalid_request";
|
|
139
|
+
malformed_data: "malformed_data";
|
|
140
|
+
manager_disposed: "manager_disposed";
|
|
141
|
+
messaging_off: "messaging_off";
|
|
142
|
+
operation_conflict: "operation_conflict";
|
|
143
|
+
outcome_unknown: "outcome_unknown";
|
|
144
|
+
output_limit: "output_limit";
|
|
145
|
+
persistence: "persistence";
|
|
146
|
+
process_not_allowed: "process_not_allowed";
|
|
147
|
+
process_not_owned: "process_not_owned";
|
|
148
|
+
query_timeout: "query_timeout";
|
|
149
|
+
registration_aborted: "registration_aborted";
|
|
150
|
+
root_finish_pending: "root_finish_pending";
|
|
151
|
+
run_cancelled: "run_cancelled";
|
|
152
|
+
run_missing: "run_missing";
|
|
153
|
+
run_not_running: "run_not_running";
|
|
154
|
+
run_stopping: "run_stopping";
|
|
155
|
+
session_closed: "session_closed";
|
|
156
|
+
session_replaced: "session_replaced";
|
|
157
|
+
timers_disabled: "timers_disabled";
|
|
158
|
+
turn_changed: "turn_changed";
|
|
159
|
+
unauthorized: "unauthorized";
|
|
160
|
+
unavailable: "unavailable";
|
|
161
|
+
unsupported_host: "unsupported_host";
|
|
162
|
+
wait_conflict: "wait_conflict";
|
|
163
|
+
wake_budget_spent: "wake_budget_spent";
|
|
164
|
+
worker_execution_stopped: "worker_execution_stopped";
|
|
165
|
+
worker_wait_pending: "worker_wait_pending";
|
|
166
|
+
}>;
|
|
167
|
+
message: z.ZodString;
|
|
168
|
+
open_waits: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
169
|
+
wait_id: z.ZodUUID;
|
|
170
|
+
summary: z.ZodString;
|
|
171
|
+
kind: z.ZodEnum<{
|
|
172
|
+
peer: "peer";
|
|
173
|
+
pr: "pr";
|
|
174
|
+
process: "process";
|
|
175
|
+
subagent: "subagent";
|
|
176
|
+
timer: "timer";
|
|
177
|
+
worker: "worker";
|
|
178
|
+
}>;
|
|
179
|
+
deadline: z.ZodISODateTime;
|
|
180
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
181
|
+
wait_id: z.ZodUUID;
|
|
182
|
+
summary: z.ZodString;
|
|
183
|
+
kind: z.ZodLiteral<"human">;
|
|
184
|
+
}, z.core.$strict>], "kind">>>;
|
|
185
|
+
}, z.core.$strict>], "ok">;
|
|
186
|
+
export type SquawkWaitAnswer = z.infer<typeof squawkWaitAnswerSchema>;
|
|
187
|
+
/**
|
|
188
|
+
* `cezar_ask` (hearsay-tools/cezarion#1234): the user's answer, asked with a card. A question
|
|
189
|
+
* without options is open, and the user types its answer. The wait it opens has no deadline.
|
|
190
|
+
* `context` is required here (hearsay-tools/cezarion#1458), optional in every stored shape.
|
|
191
|
+
*/
|
|
192
|
+
export declare const squawkAskRequestSchema: z.ZodObject<{
|
|
193
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
194
|
+
id: z.ZodOptional<z.ZodString>;
|
|
195
|
+
header: z.ZodString;
|
|
196
|
+
question: z.ZodString;
|
|
197
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
198
|
+
label: z.ZodString;
|
|
199
|
+
description: z.ZodOptional<z.ZodString>;
|
|
200
|
+
}, z.core.$strict>>>;
|
|
201
|
+
multiSelect: z.ZodOptional<z.ZodBoolean>;
|
|
202
|
+
allowFreeText: z.ZodOptional<z.ZodBoolean>;
|
|
203
|
+
}, z.core.$strict>>;
|
|
204
|
+
context: z.ZodString;
|
|
205
|
+
}, z.core.$strict>;
|
|
206
|
+
export type SquawkAskRequest = z.infer<typeof squawkAskRequestSchema>;
|
|
207
|
+
export declare const squawkAskAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
208
|
+
ok: z.ZodLiteral<true>;
|
|
209
|
+
wait_id: z.ZodUUID;
|
|
210
|
+
open_waits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
211
|
+
wait_id: z.ZodUUID;
|
|
212
|
+
summary: z.ZodString;
|
|
213
|
+
kind: z.ZodEnum<{
|
|
214
|
+
peer: "peer";
|
|
215
|
+
pr: "pr";
|
|
216
|
+
process: "process";
|
|
217
|
+
subagent: "subagent";
|
|
218
|
+
timer: "timer";
|
|
219
|
+
worker: "worker";
|
|
220
|
+
}>;
|
|
221
|
+
deadline: z.ZodISODateTime;
|
|
222
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
223
|
+
wait_id: z.ZodUUID;
|
|
224
|
+
summary: z.ZodString;
|
|
225
|
+
kind: z.ZodLiteral<"human">;
|
|
226
|
+
}, z.core.$strict>], "kind">>;
|
|
227
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
228
|
+
ok: z.ZodLiteral<false>;
|
|
229
|
+
code: z.ZodEnum<{
|
|
230
|
+
autonomous_run: "autonomous_run";
|
|
231
|
+
capability_revoked: "capability_revoked";
|
|
232
|
+
capacity: "capacity";
|
|
233
|
+
finish_requested: "finish_requested";
|
|
234
|
+
generation_mismatch: "generation_mismatch";
|
|
235
|
+
invalid_request: "invalid_request";
|
|
236
|
+
manager_disposed: "manager_disposed";
|
|
237
|
+
persistence: "persistence";
|
|
238
|
+
root_finish_pending: "root_finish_pending";
|
|
239
|
+
run_cancelled: "run_cancelled";
|
|
240
|
+
run_missing: "run_missing";
|
|
241
|
+
run_not_running: "run_not_running";
|
|
242
|
+
run_stopping: "run_stopping";
|
|
243
|
+
session_closed: "session_closed";
|
|
244
|
+
session_replaced: "session_replaced";
|
|
245
|
+
supervisor_is_worker: "supervisor_is_worker";
|
|
246
|
+
unauthorized: "unauthorized";
|
|
247
|
+
unavailable: "unavailable";
|
|
248
|
+
worker_execution_stopped: "worker_execution_stopped";
|
|
249
|
+
worker_wait_pending: "worker_wait_pending";
|
|
250
|
+
}>;
|
|
251
|
+
message: z.ZodString;
|
|
252
|
+
open_waits: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
253
|
+
wait_id: z.ZodUUID;
|
|
254
|
+
summary: z.ZodString;
|
|
255
|
+
kind: z.ZodEnum<{
|
|
256
|
+
peer: "peer";
|
|
257
|
+
pr: "pr";
|
|
258
|
+
process: "process";
|
|
259
|
+
subagent: "subagent";
|
|
260
|
+
timer: "timer";
|
|
261
|
+
worker: "worker";
|
|
262
|
+
}>;
|
|
263
|
+
deadline: z.ZodISODateTime;
|
|
264
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
265
|
+
wait_id: z.ZodUUID;
|
|
266
|
+
summary: z.ZodString;
|
|
267
|
+
kind: z.ZodLiteral<"human">;
|
|
268
|
+
}, z.core.$strict>], "kind">>>;
|
|
269
|
+
}, z.core.$strict>], "ok">;
|
|
270
|
+
export type SquawkAskAnswer = z.infer<typeof squawkAskAnswerSchema>;
|
|
271
|
+
/** `already_resolved`: the result is owed and arrives with the next wake; cancelling is a no-op.
|
|
272
|
+
* `human_question`: the question already reached the user, so only their answer ends it. */
|
|
273
|
+
export declare const squawkCancelWaitAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
274
|
+
cancelled: z.ZodLiteral<true>;
|
|
275
|
+
wait_id: z.ZodUUID;
|
|
276
|
+
open_waits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
277
|
+
wait_id: z.ZodUUID;
|
|
278
|
+
summary: z.ZodString;
|
|
279
|
+
kind: z.ZodEnum<{
|
|
280
|
+
peer: "peer";
|
|
281
|
+
pr: "pr";
|
|
282
|
+
process: "process";
|
|
283
|
+
subagent: "subagent";
|
|
284
|
+
timer: "timer";
|
|
285
|
+
worker: "worker";
|
|
286
|
+
}>;
|
|
287
|
+
deadline: z.ZodISODateTime;
|
|
288
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
289
|
+
wait_id: z.ZodUUID;
|
|
290
|
+
summary: z.ZodString;
|
|
291
|
+
kind: z.ZodLiteral<"human">;
|
|
292
|
+
}, z.core.$strict>], "kind">>;
|
|
293
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
294
|
+
cancelled: z.ZodLiteral<false>;
|
|
295
|
+
code: z.ZodEnum<{
|
|
296
|
+
already_resolved: "already_resolved";
|
|
297
|
+
human_question: "human_question";
|
|
298
|
+
invalid_request: "invalid_request";
|
|
299
|
+
not_found: "not_found";
|
|
300
|
+
unavailable: "unavailable";
|
|
301
|
+
}>;
|
|
302
|
+
message: z.ZodString;
|
|
303
|
+
open_waits: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
304
|
+
wait_id: z.ZodUUID;
|
|
305
|
+
summary: z.ZodString;
|
|
306
|
+
kind: z.ZodEnum<{
|
|
307
|
+
peer: "peer";
|
|
308
|
+
pr: "pr";
|
|
309
|
+
process: "process";
|
|
310
|
+
subagent: "subagent";
|
|
311
|
+
timer: "timer";
|
|
312
|
+
worker: "worker";
|
|
313
|
+
}>;
|
|
314
|
+
deadline: z.ZodISODateTime;
|
|
315
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
316
|
+
wait_id: z.ZodUUID;
|
|
317
|
+
summary: z.ZodString;
|
|
318
|
+
kind: z.ZodLiteral<"human">;
|
|
319
|
+
}, z.core.$strict>], "kind">>>;
|
|
320
|
+
}, z.core.$strict>], "cancelled">;
|
|
321
|
+
export type SquawkCancelWaitAnswer = z.infer<typeof squawkCancelWaitAnswerSchema>;
|
|
322
|
+
/** `cezar_done`: the run finishes when this turn ends. The summary becomes the closing note. */
|
|
323
|
+
export declare const squawkDoneRequestSchema: z.ZodObject<{
|
|
324
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
325
|
+
}, z.core.$strict>;
|
|
326
|
+
export type SquawkDoneRequest = z.infer<typeof squawkDoneRequestSchema>;
|
|
327
|
+
/** An accepted done finishes the task, or, in a workflow step that is not the last, completes that
|
|
328
|
+
* step and starts `next_step`, named as the run's rail names it (hearsay-tools/cezarion#1620). */
|
|
329
|
+
export declare const squawkDoneAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
330
|
+
ok: z.ZodLiteral<true>;
|
|
331
|
+
finishes: z.ZodLiteral<"at_turn_end">;
|
|
332
|
+
open_waits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
333
|
+
wait_id: z.ZodUUID;
|
|
334
|
+
summary: z.ZodString;
|
|
335
|
+
kind: z.ZodEnum<{
|
|
336
|
+
peer: "peer";
|
|
337
|
+
pr: "pr";
|
|
338
|
+
process: "process";
|
|
339
|
+
subagent: "subagent";
|
|
340
|
+
timer: "timer";
|
|
341
|
+
worker: "worker";
|
|
342
|
+
}>;
|
|
343
|
+
deadline: z.ZodISODateTime;
|
|
344
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
345
|
+
wait_id: z.ZodUUID;
|
|
346
|
+
summary: z.ZodString;
|
|
347
|
+
kind: z.ZodLiteral<"human">;
|
|
348
|
+
}, z.core.$strict>], "kind">>;
|
|
349
|
+
completes: z.ZodLiteral<"task">;
|
|
350
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
351
|
+
ok: z.ZodLiteral<true>;
|
|
352
|
+
finishes: z.ZodLiteral<"at_turn_end">;
|
|
353
|
+
open_waits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
354
|
+
wait_id: z.ZodUUID;
|
|
355
|
+
summary: z.ZodString;
|
|
356
|
+
kind: z.ZodEnum<{
|
|
357
|
+
peer: "peer";
|
|
358
|
+
pr: "pr";
|
|
359
|
+
process: "process";
|
|
360
|
+
subagent: "subagent";
|
|
361
|
+
timer: "timer";
|
|
362
|
+
worker: "worker";
|
|
363
|
+
}>;
|
|
364
|
+
deadline: z.ZodISODateTime;
|
|
365
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
366
|
+
wait_id: z.ZodUUID;
|
|
367
|
+
summary: z.ZodString;
|
|
368
|
+
kind: z.ZodLiteral<"human">;
|
|
369
|
+
}, z.core.$strict>], "kind">>;
|
|
370
|
+
completes: z.ZodLiteral<"step">;
|
|
371
|
+
next_step: z.ZodString;
|
|
372
|
+
}, z.core.$strict>], "completes">, z.ZodObject<{
|
|
373
|
+
ok: z.ZodLiteral<false>;
|
|
374
|
+
code: z.ZodEnum<{
|
|
375
|
+
capability_revoked: "capability_revoked";
|
|
376
|
+
finish_requested: "finish_requested";
|
|
377
|
+
generation_mismatch: "generation_mismatch";
|
|
378
|
+
human_question_pending: "human_question_pending";
|
|
379
|
+
input_pending: "input_pending";
|
|
380
|
+
invalid_request: "invalid_request";
|
|
381
|
+
manager_disposed: "manager_disposed";
|
|
382
|
+
not_final_step: "not_final_step";
|
|
383
|
+
requests_outstanding: "requests_outstanding";
|
|
384
|
+
requests_unanswered: "requests_unanswered";
|
|
385
|
+
root_finish_pending: "root_finish_pending";
|
|
386
|
+
run_cancelled: "run_cancelled";
|
|
387
|
+
run_missing: "run_missing";
|
|
388
|
+
run_not_running: "run_not_running";
|
|
389
|
+
run_stopping: "run_stopping";
|
|
390
|
+
session_closed: "session_closed";
|
|
391
|
+
session_replaced: "session_replaced";
|
|
392
|
+
unavailable: "unavailable";
|
|
393
|
+
worker_questions: "worker_questions";
|
|
394
|
+
worker_wait_pending: "worker_wait_pending";
|
|
395
|
+
workers_outstanding: "workers_outstanding";
|
|
396
|
+
workers_uncollected: "workers_uncollected";
|
|
397
|
+
}>;
|
|
398
|
+
message: z.ZodString;
|
|
399
|
+
workers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
400
|
+
worker_id: z.ZodString;
|
|
401
|
+
reason: z.ZodEnum<{
|
|
402
|
+
outstanding: "outstanding";
|
|
403
|
+
question: "question";
|
|
404
|
+
uncollected: "uncollected";
|
|
405
|
+
}>;
|
|
406
|
+
}, z.core.$strict>>>;
|
|
407
|
+
open_waits: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
408
|
+
wait_id: z.ZodUUID;
|
|
409
|
+
summary: z.ZodString;
|
|
410
|
+
kind: z.ZodEnum<{
|
|
411
|
+
peer: "peer";
|
|
412
|
+
pr: "pr";
|
|
413
|
+
process: "process";
|
|
414
|
+
subagent: "subagent";
|
|
415
|
+
timer: "timer";
|
|
416
|
+
worker: "worker";
|
|
417
|
+
}>;
|
|
418
|
+
deadline: z.ZodISODateTime;
|
|
419
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
420
|
+
wait_id: z.ZodUUID;
|
|
421
|
+
summary: z.ZodString;
|
|
422
|
+
kind: z.ZodLiteral<"human">;
|
|
423
|
+
}, z.core.$strict>], "kind">>>;
|
|
424
|
+
owed: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
425
|
+
kind: z.ZodLiteral<"wait_result">;
|
|
426
|
+
wait_id: z.ZodString;
|
|
427
|
+
wait_kind: z.ZodString;
|
|
428
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
429
|
+
kind: z.ZodLiteral<"queued">;
|
|
430
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
431
|
+
source: z.ZodString;
|
|
432
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
433
|
+
kind: z.ZodLiteral<"in_flight">;
|
|
434
|
+
input_id: z.ZodString;
|
|
435
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
436
|
+
kind: z.ZodLiteral<"unread">;
|
|
437
|
+
input_id: z.ZodString;
|
|
438
|
+
}, z.core.$strict>], "kind">>>;
|
|
439
|
+
}, z.core.$strict>], "ok">;
|
|
440
|
+
export type SquawkDoneAnswer = z.infer<typeof squawkDoneAnswerSchema>;
|