@hearsay-tools/squawk 0.18.0-pr4165.8028 → 0.18.0-pr4166.8029.2
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/activity/wait.js +5 -0
- package/dist/activity/wait.js.map +1 -1
- package/dist/built-in-run-slots.d.ts +1 -3
- package/dist/built-in-run-slots.js +2 -6
- package/dist/built-in-run-slots.js.map +1 -1
- package/dist/ci-wait/controller.d.ts +74 -2
- package/dist/ci-wait/tool-catalog.js +3 -3
- package/dist/ci-wait/tool-catalog.js.map +1 -1
- package/dist/ci-wait/tools.d.ts +62 -2
- package/dist/contract/activity.d.ts +64 -0
- package/dist/contract/index.js +52 -6
- package/dist/contract/runs.d.ts +240 -0
- package/dist/contract/wait-tools.d.ts +231 -10
- package/dist/contract/waits.d.ts +87 -0
- package/dist/contract/workspace-events.d.ts +12 -0
- package/dist/runs/removal-slots.js +20 -27
- package/dist/runs/removal-slots.js.map +1 -1
- package/dist/runs/run-archive.d.ts +48 -0
- package/dist/runs/run-decode.d.ts +120 -0
- package/dist/runs/run-exits.d.ts +224 -0
- package/dist/runs/worker-executions-registry.d.ts +3 -5
- package/dist/runs/worker-executions-registry.js +15 -13
- package/dist/runs/worker-executions-registry.js.map +1 -1
- package/dist/server/activity-routes.d.ts +16 -0
- package/dist/server/server.d.ts +1132 -0
- package/dist/subcommands.js +1 -2
- package/dist/subcommands.js.map +1 -1
- package/dist/workflows/continuation-admission.d.ts +48 -0
- package/dist/workflows/input-acknowledgement.d.ts +16 -0
- package/dist/workflows/run/wait-engine.d.ts +48 -0
- package/dist/workflows/run/wait-engine.js +4 -0
- package/dist/workflows/run/wait-engine.js.map +1 -1
- package/dist/workflows/run/wait-kinds.d.ts +6 -3
- package/dist/workflows/run/wait-kinds.js +24 -2
- package/dist/workflows/run/wait-kinds.js.map +1 -1
- package/dist/workflows/run/wait-registration.js +4 -3
- package/dist/workflows/run/wait-registration.js.map +1 -1
- package/dist/workflows/run/wait-registry.js +2 -2
- package/dist/workflows/run/wait-registry.js.map +1 -1
- package/dist/workflows/run-states.d.ts +1 -1
- package/dist/workflows/run-states.js +3 -2
- package/dist/workflows/run-states.js.map +1 -1
- package/dist/workflows/waits.js +5 -3
- package/dist/workflows/waits.js.map +1 -1
- package/package.json +4 -4
- package/scripts/benchmark-family-reconcile.ts +1 -2
- package/scripts/benchmark-run-store.ts +1 -2
- package/scripts/benchmark-stuck-destroys.ts +1 -2
- package/scripts/benchmark-worker-lifecycle.ts +1 -2
- package/scripts/benchmark-workspace-events.ts +1 -2
- package/scripts/benchmark-worktree-retention.ts +1 -2
- package/scripts/measure-transcript-facts-health.mjs +1 -2
- package/web/dist/assets/{accounts-section-Lxa13E8O.js → accounts-section-B-zlsH7k.js} +1 -1
- package/web/dist/assets/activity-motion-psm6jyeg.js +2 -0
- package/web/dist/assets/{activity-route-Bo-Cyzsz.js → activity-route-DeK0riM9.js} +1 -1
- package/web/dist/assets/{agent-config-section-BE239EYo.js → agent-config-section-BvmWn_h-.js} +1 -1
- package/web/dist/assets/{agent-defaults-section-Bj5dO6F3.js → agent-defaults-section-DsuYOQpY.js} +1 -1
- package/web/dist/assets/{appearance-C2v7z5MF.js → appearance-DNMXL1v0.js} +1 -1
- package/web/dist/assets/{archive-on-merge-field-Ta3WlY1p.js → archive-on-merge-field-BovFB0t7.js} +1 -1
- package/web/dist/assets/attention-DaLkUl4h.js +1 -0
- package/web/dist/assets/{automations-route-DPpaFR0Q.js → automations-route-DyiKOd25.js} +1 -1
- package/web/dist/assets/{commit-diff-panel-CzY8bO3p.js → commit-diff-panel-DawdFJ6E.js} +1 -1
- package/web/dist/assets/{diff-3jSM3IH7.js → diff-CfoXwmnl.js} +2 -2
- package/web/dist/assets/{diff-view-C3cwyYRv.js → diff-view-5xkdG47g.js} +1 -1
- package/web/dist/assets/{file-preview-B71T62DU.js → file-preview-DIVTxup4.js} +1 -1
- package/web/dist/assets/{folder-browser-BTYMFLBY.js → folder-browser-BzVWaANT.js} +1 -1
- package/web/dist/assets/{git-toolbar-Dng31AhK.js → git-toolbar-BUViNmxj.js} +1 -1
- package/web/dist/assets/{github-Cft2RNHM.js → github-COe1nsmn.js} +1 -1
- package/web/dist/assets/{global-activity-route-CngRjBlD.js → global-activity-route-B-cJo1pg.js} +1 -1
- package/web/dist/assets/{index-MG3T7zFQ.js → index-BZiixXpY.js} +5 -5
- package/web/dist/assets/{label-C9IGG0mW.js → label-DVUPtyTI.js} +1 -1
- package/web/dist/assets/{markdown-BDWm6oGX.js → markdown-bvY77s5D.js} +1 -1
- package/web/dist/assets/{notifications-section-BxIKJ1NF.js → notifications-section-Cet1mmEc.js} +1 -1
- package/web/dist/assets/{open-in-menu-LbTu2sP4.js → open-in-menu-BpSp2CJF.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-CGQngtTw.js → preview-pane-connected-BCrpsIIn.js} +1 -1
- package/web/dist/assets/{project-location-B-18C392.js → project-location-ClZPnbBZ.js} +1 -1
- package/web/dist/assets/{project-router-DImKA81z.js → project-router-BYrAO9Ws.js} +1 -1
- package/web/dist/assets/{project-scope-context-D3_4Nfjk.js → project-scope-context-BDU1qGx3.js} +2 -2
- package/web/dist/assets/{projects-section-DQ1LxJ3A.js → projects-section-CdUdrEPd.js} +1 -1
- package/web/dist/assets/{prompt-templates-section-C5AYB6Ig.js → prompt-templates-section-D3ojaPZw.js} +1 -1
- package/web/dist/assets/{queries-BaHOUYn4.js → queries--x5yVcip.js} +1 -1
- package/web/dist/assets/{reference-chip-CdOqXRll.js → reference-chip-013dL8dQ.js} +1 -1
- package/web/dist/assets/{remote-settings-notice-BTdflMqO.js → remote-settings-notice-BbBWWAm8.js} +1 -1
- package/web/dist/assets/{repo-git-DChiMWrS.js → repo-git-1hSBzyJQ.js} +1 -1
- package/web/dist/assets/{report-reader-nV2G6iRk.js → report-reader-BNtgxtSI.js} +1 -1
- package/web/dist/assets/{reports-CoQqVEy4.js → reports-C64cW2KP.js} +1 -1
- package/web/dist/assets/{resources-section-CVaIlicS.js → resources-section-xAUouGNM.js} +1 -1
- package/web/dist/assets/{run-header-xPtXOBkm.js → run-header-75eMWFhM.js} +1 -1
- package/web/dist/assets/{runners-DccsyraI.js → runners-C4-xD5Cz.js} +1 -1
- package/web/dist/assets/{settings-agent-picker-ixlEQ-MP.js → settings-agent-picker-4P5j_ZP8.js} +1 -1
- package/web/dist/assets/{settings-shell-BwknM_fs.js → settings-shell-CME_R4D1.js} +1 -1
- package/web/dist/assets/{sidebar-section-BNy-fRPU.js → sidebar-section-BQSB_KxK.js} +1 -1
- package/web/dist/assets/{skills-CKceHo5J.js → skills-RUJCWIve.js} +1 -1
- package/web/dist/assets/{tab-link-VCVNqxFc.js → tab-link-DnbdjF4r.js} +1 -1
- package/web/dist/assets/{task-changes-D4H5YbMo.js → task-changes-Boec_UFj.js} +1 -1
- package/web/dist/assets/{task-commits-BNu0VTTf.js → task-commits-B6k-DdnE.js} +1 -1
- package/web/dist/assets/{task-files-C8q8GHYK.js → task-files-T731cz4q.js} +1 -1
- package/web/dist/assets/{task-github-item-D5kHfnwY.js → task-github-item-iQd_C1Y4.js} +1 -1
- package/web/dist/assets/{task-groups-C7yO8nMy.js → task-groups-BTMFLRHJ.js} +1 -1
- package/web/dist/assets/{task-thread-Dhts8Nbu.js → task-thread-BaPz3rdA.js} +3 -3
- package/web/dist/assets/{tasks-table-I_z4e7uI.js → tasks-table-BCuA9Kx7.js} +1 -1
- package/web/dist/assets/{thread-state-DV19z3BD.js → thread-state-B3Ichxx9.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-C6e6Mgi1.js → use-hand-to-agent-state-DIIBuX3r.js} +1 -1
- package/web/dist/assets/{useInfiniteQuery-DR5UfhCS.js → useInfiniteQuery-BxpPo6z-.js} +1 -1
- package/web/dist/assets/useQuery-DcVi2Spi.js +1 -0
- package/web/dist/assets/{workflows-BNHmFZRc.js → workflows-8HhOvPhw.js} +1 -1
- package/web/dist/assets/{workspace-tools-UHJAnHEN.js → workspace-tools-D6C2Yjat.js} +1 -1
- package/web/dist/assets/{worktrees-section-B4XPx6R5.js → worktrees-section-Cm4JH128.js} +1 -1
- package/web/dist/assets/{ws-CH3zNFKR.js → ws-Iixb-QFR.js} +1 -1
- package/web/dist/index.html +15 -15
- package/dist/core/registry.d.ts +0 -36
- package/dist/core/registry.js +0 -85
- package/dist/core/registry.js.map +0 -1
- package/web/dist/assets/activity-motion-D-8GF_WP.js +0 -2
- package/web/dist/assets/attention-B1Ei1IW6.js +0 -1
- package/web/dist/assets/useQuery-BMyCehPp.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const builtInSquawkWaitRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
3
|
pr: z.ZodString;
|
|
4
4
|
until: z.ZodDefault<z.ZodEnum<{
|
|
5
5
|
checks: "checks";
|
|
@@ -49,6 +49,174 @@ export declare const squawkWaitRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
49
49
|
timeout_seconds: z.ZodDefault<z.ZodNumber>;
|
|
50
50
|
note: z.ZodOptional<z.ZodString>;
|
|
51
51
|
}, z.core.$strict>], "kind">;
|
|
52
|
+
export type BuiltInSquawkWaitRequest = z.infer<typeof builtInSquawkWaitRequestSchema>;
|
|
53
|
+
export type BuiltInSquawkWaitRequestInput = z.input<typeof builtInSquawkWaitRequestSchema>;
|
|
54
|
+
/** Dispatch before validation so a malformed built-in retains its original Zod issues. */
|
|
55
|
+
export declare const squawkWaitRequestSchema: z.ZodPipe<z.ZodCustom<{
|
|
56
|
+
pr: string;
|
|
57
|
+
until?: "checks" | "merge" | "merge_or_blocked" | undefined;
|
|
58
|
+
wake_on_conflict?: boolean | undefined;
|
|
59
|
+
timeout_seconds?: number | undefined;
|
|
60
|
+
head_sha?: string | undefined;
|
|
61
|
+
operation_id?: string | undefined;
|
|
62
|
+
kind: "pr";
|
|
63
|
+
} | {
|
|
64
|
+
operation_id?: string | undefined;
|
|
65
|
+
kind: "worker";
|
|
66
|
+
worker_ids: string[];
|
|
67
|
+
mode?: "all" | "any" | "one" | undefined;
|
|
68
|
+
timeout_seconds?: number | undefined;
|
|
69
|
+
} | {
|
|
70
|
+
operation_id?: string | undefined;
|
|
71
|
+
kind: "request";
|
|
72
|
+
request_ids: string[];
|
|
73
|
+
mode?: "all" | "any" | "one" | undefined;
|
|
74
|
+
timeout_seconds?: number | undefined;
|
|
75
|
+
} | {
|
|
76
|
+
operation_id?: string | undefined;
|
|
77
|
+
kind: "peer";
|
|
78
|
+
peer_ids: string[];
|
|
79
|
+
timeout_seconds?: number | undefined;
|
|
80
|
+
} | {
|
|
81
|
+
operation_id?: string | undefined;
|
|
82
|
+
kind: "timer";
|
|
83
|
+
seconds: number;
|
|
84
|
+
note?: string | undefined;
|
|
85
|
+
} | {
|
|
86
|
+
operation_id?: string | undefined;
|
|
87
|
+
kind: "process";
|
|
88
|
+
pid: number;
|
|
89
|
+
exit_file?: string | undefined;
|
|
90
|
+
timeout_seconds?: number | undefined;
|
|
91
|
+
note?: string | undefined;
|
|
92
|
+
} | {
|
|
93
|
+
[x: string]: unknown;
|
|
94
|
+
operation_id?: string | undefined;
|
|
95
|
+
kind: string;
|
|
96
|
+
}, {
|
|
97
|
+
pr: string;
|
|
98
|
+
until?: "checks" | "merge" | "merge_or_blocked" | undefined;
|
|
99
|
+
wake_on_conflict?: boolean | undefined;
|
|
100
|
+
timeout_seconds?: number | undefined;
|
|
101
|
+
head_sha?: string | undefined;
|
|
102
|
+
operation_id?: string | undefined;
|
|
103
|
+
kind: "pr";
|
|
104
|
+
} | {
|
|
105
|
+
operation_id?: string | undefined;
|
|
106
|
+
kind: "worker";
|
|
107
|
+
worker_ids: string[];
|
|
108
|
+
mode?: "all" | "any" | "one" | undefined;
|
|
109
|
+
timeout_seconds?: number | undefined;
|
|
110
|
+
} | {
|
|
111
|
+
operation_id?: string | undefined;
|
|
112
|
+
kind: "request";
|
|
113
|
+
request_ids: string[];
|
|
114
|
+
mode?: "all" | "any" | "one" | undefined;
|
|
115
|
+
timeout_seconds?: number | undefined;
|
|
116
|
+
} | {
|
|
117
|
+
operation_id?: string | undefined;
|
|
118
|
+
kind: "peer";
|
|
119
|
+
peer_ids: string[];
|
|
120
|
+
timeout_seconds?: number | undefined;
|
|
121
|
+
} | {
|
|
122
|
+
operation_id?: string | undefined;
|
|
123
|
+
kind: "timer";
|
|
124
|
+
seconds: number;
|
|
125
|
+
note?: string | undefined;
|
|
126
|
+
} | {
|
|
127
|
+
operation_id?: string | undefined;
|
|
128
|
+
kind: "process";
|
|
129
|
+
pid: number;
|
|
130
|
+
exit_file?: string | undefined;
|
|
131
|
+
timeout_seconds?: number | undefined;
|
|
132
|
+
note?: string | undefined;
|
|
133
|
+
} | {
|
|
134
|
+
[x: string]: unknown;
|
|
135
|
+
operation_id?: string | undefined;
|
|
136
|
+
kind: string;
|
|
137
|
+
}>, z.ZodTransform<{
|
|
138
|
+
operation_id?: string | undefined;
|
|
139
|
+
kind: "worker";
|
|
140
|
+
worker_ids: string[];
|
|
141
|
+
mode?: "all" | "any" | "one" | undefined;
|
|
142
|
+
timeout_seconds: number;
|
|
143
|
+
} | {
|
|
144
|
+
operation_id?: string | undefined;
|
|
145
|
+
kind: "request";
|
|
146
|
+
request_ids: string[];
|
|
147
|
+
mode?: "all" | "any" | "one" | undefined;
|
|
148
|
+
timeout_seconds: number;
|
|
149
|
+
} | {
|
|
150
|
+
pr: string;
|
|
151
|
+
until: "checks" | "merge" | "merge_or_blocked";
|
|
152
|
+
wake_on_conflict: boolean;
|
|
153
|
+
timeout_seconds: number;
|
|
154
|
+
head_sha?: string | undefined;
|
|
155
|
+
operation_id?: string | undefined;
|
|
156
|
+
kind: "pr";
|
|
157
|
+
} | {
|
|
158
|
+
operation_id?: string | undefined;
|
|
159
|
+
kind: "peer";
|
|
160
|
+
peer_ids: string[];
|
|
161
|
+
timeout_seconds: number;
|
|
162
|
+
} | {
|
|
163
|
+
operation_id?: string | undefined;
|
|
164
|
+
kind: "timer";
|
|
165
|
+
seconds: number;
|
|
166
|
+
note?: string | undefined;
|
|
167
|
+
} | {
|
|
168
|
+
operation_id?: string | undefined;
|
|
169
|
+
kind: "process";
|
|
170
|
+
pid: number;
|
|
171
|
+
exit_file?: string | undefined;
|
|
172
|
+
timeout_seconds: number;
|
|
173
|
+
note?: string | undefined;
|
|
174
|
+
} | {
|
|
175
|
+
[x: string]: unknown;
|
|
176
|
+
operation_id?: string | undefined;
|
|
177
|
+
kind: string;
|
|
178
|
+
}, {
|
|
179
|
+
pr: string;
|
|
180
|
+
until?: "checks" | "merge" | "merge_or_blocked" | undefined;
|
|
181
|
+
wake_on_conflict?: boolean | undefined;
|
|
182
|
+
timeout_seconds?: number | undefined;
|
|
183
|
+
head_sha?: string | undefined;
|
|
184
|
+
operation_id?: string | undefined;
|
|
185
|
+
kind: "pr";
|
|
186
|
+
} | {
|
|
187
|
+
operation_id?: string | undefined;
|
|
188
|
+
kind: "worker";
|
|
189
|
+
worker_ids: string[];
|
|
190
|
+
mode?: "all" | "any" | "one" | undefined;
|
|
191
|
+
timeout_seconds?: number | undefined;
|
|
192
|
+
} | {
|
|
193
|
+
operation_id?: string | undefined;
|
|
194
|
+
kind: "request";
|
|
195
|
+
request_ids: string[];
|
|
196
|
+
mode?: "all" | "any" | "one" | undefined;
|
|
197
|
+
timeout_seconds?: number | undefined;
|
|
198
|
+
} | {
|
|
199
|
+
operation_id?: string | undefined;
|
|
200
|
+
kind: "peer";
|
|
201
|
+
peer_ids: string[];
|
|
202
|
+
timeout_seconds?: number | undefined;
|
|
203
|
+
} | {
|
|
204
|
+
operation_id?: string | undefined;
|
|
205
|
+
kind: "timer";
|
|
206
|
+
seconds: number;
|
|
207
|
+
note?: string | undefined;
|
|
208
|
+
} | {
|
|
209
|
+
operation_id?: string | undefined;
|
|
210
|
+
kind: "process";
|
|
211
|
+
pid: number;
|
|
212
|
+
exit_file?: string | undefined;
|
|
213
|
+
timeout_seconds?: number | undefined;
|
|
214
|
+
note?: string | undefined;
|
|
215
|
+
} | {
|
|
216
|
+
[x: string]: unknown;
|
|
217
|
+
operation_id?: string | undefined;
|
|
218
|
+
kind: string;
|
|
219
|
+
}>>;
|
|
52
220
|
export type SquawkWaitRequest = z.infer<typeof squawkWaitRequestSchema>;
|
|
53
221
|
/** What a caller may send: the defaults (`until`, `wake_on_conflict`, `timeout_seconds`) still unset. */
|
|
54
222
|
export type SquawkWaitRequestInput = z.input<typeof squawkWaitRequestSchema>;
|
|
@@ -73,15 +241,8 @@ export declare const squawkWaitAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
73
241
|
unavailable: "unavailable";
|
|
74
242
|
}>>;
|
|
75
243
|
wait_id: z.ZodUUID;
|
|
76
|
-
kind: z.
|
|
77
|
-
|
|
78
|
-
pr: "pr";
|
|
79
|
-
process: "process";
|
|
80
|
-
request: "request";
|
|
81
|
-
timer: "timer";
|
|
82
|
-
worker: "worker";
|
|
83
|
-
}>;
|
|
84
|
-
deadline: z.ZodISODateTime;
|
|
244
|
+
kind: z.ZodString;
|
|
245
|
+
deadline: z.ZodOptional<z.ZodISODateTime>;
|
|
85
246
|
open_waits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
86
247
|
wait_id: z.ZodUUID;
|
|
87
248
|
summary: z.ZodString;
|
|
@@ -98,6 +259,12 @@ export declare const squawkWaitAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
98
259
|
wait_id: z.ZodUUID;
|
|
99
260
|
summary: z.ZodString;
|
|
100
261
|
kind: z.ZodLiteral<"human">;
|
|
262
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
263
|
+
wait_id: z.ZodUUID;
|
|
264
|
+
summary: z.ZodString;
|
|
265
|
+
kind: z.ZodLiteral<"plugin">;
|
|
266
|
+
pluginKind: z.ZodString;
|
|
267
|
+
deadline: z.ZodOptional<z.ZodISODateTime>;
|
|
101
268
|
}, z.core.$strict>], "kind">>;
|
|
102
269
|
}, z.core.$strict>, z.ZodObject<{
|
|
103
270
|
operation_id: z.ZodOptional<z.ZodUUID>;
|
|
@@ -122,6 +289,12 @@ export declare const squawkWaitAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
122
289
|
wait_id: z.ZodUUID;
|
|
123
290
|
summary: z.ZodString;
|
|
124
291
|
kind: z.ZodLiteral<"human">;
|
|
292
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
293
|
+
wait_id: z.ZodUUID;
|
|
294
|
+
summary: z.ZodString;
|
|
295
|
+
kind: z.ZodLiteral<"plugin">;
|
|
296
|
+
pluginKind: z.ZodString;
|
|
297
|
+
deadline: z.ZodOptional<z.ZodISODateTime>;
|
|
125
298
|
}, z.core.$strict>], "kind">>;
|
|
126
299
|
code: z.ZodEnum<{
|
|
127
300
|
authentication: "authentication";
|
|
@@ -181,6 +354,12 @@ export declare const squawkWaitAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
181
354
|
wait_id: z.ZodUUID;
|
|
182
355
|
summary: z.ZodString;
|
|
183
356
|
kind: z.ZodLiteral<"human">;
|
|
357
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
358
|
+
wait_id: z.ZodUUID;
|
|
359
|
+
summary: z.ZodString;
|
|
360
|
+
kind: z.ZodLiteral<"plugin">;
|
|
361
|
+
pluginKind: z.ZodString;
|
|
362
|
+
deadline: z.ZodOptional<z.ZodISODateTime>;
|
|
184
363
|
}, z.core.$strict>], "kind">>>;
|
|
185
364
|
}, z.core.$strict>], "ok">;
|
|
186
365
|
export type SquawkWaitAnswer = z.infer<typeof squawkWaitAnswerSchema>;
|
|
@@ -223,6 +402,12 @@ export declare const squawkAskAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
223
402
|
wait_id: z.ZodUUID;
|
|
224
403
|
summary: z.ZodString;
|
|
225
404
|
kind: z.ZodLiteral<"human">;
|
|
405
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
406
|
+
wait_id: z.ZodUUID;
|
|
407
|
+
summary: z.ZodString;
|
|
408
|
+
kind: z.ZodLiteral<"plugin">;
|
|
409
|
+
pluginKind: z.ZodString;
|
|
410
|
+
deadline: z.ZodOptional<z.ZodISODateTime>;
|
|
226
411
|
}, z.core.$strict>], "kind">>;
|
|
227
412
|
}, z.core.$strict>, z.ZodObject<{
|
|
228
413
|
ok: z.ZodLiteral<false>;
|
|
@@ -265,6 +450,12 @@ export declare const squawkAskAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
265
450
|
wait_id: z.ZodUUID;
|
|
266
451
|
summary: z.ZodString;
|
|
267
452
|
kind: z.ZodLiteral<"human">;
|
|
453
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
454
|
+
wait_id: z.ZodUUID;
|
|
455
|
+
summary: z.ZodString;
|
|
456
|
+
kind: z.ZodLiteral<"plugin">;
|
|
457
|
+
pluginKind: z.ZodString;
|
|
458
|
+
deadline: z.ZodOptional<z.ZodISODateTime>;
|
|
268
459
|
}, z.core.$strict>], "kind">>>;
|
|
269
460
|
}, z.core.$strict>], "ok">;
|
|
270
461
|
export type SquawkAskAnswer = z.infer<typeof squawkAskAnswerSchema>;
|
|
@@ -289,6 +480,12 @@ export declare const squawkCancelWaitAnswerSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
289
480
|
wait_id: z.ZodUUID;
|
|
290
481
|
summary: z.ZodString;
|
|
291
482
|
kind: z.ZodLiteral<"human">;
|
|
483
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
484
|
+
wait_id: z.ZodUUID;
|
|
485
|
+
summary: z.ZodString;
|
|
486
|
+
kind: z.ZodLiteral<"plugin">;
|
|
487
|
+
pluginKind: z.ZodString;
|
|
488
|
+
deadline: z.ZodOptional<z.ZodISODateTime>;
|
|
292
489
|
}, z.core.$strict>], "kind">>;
|
|
293
490
|
}, z.core.$strict>, z.ZodObject<{
|
|
294
491
|
cancelled: z.ZodLiteral<false>;
|
|
@@ -316,6 +513,12 @@ export declare const squawkCancelWaitAnswerSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
316
513
|
wait_id: z.ZodUUID;
|
|
317
514
|
summary: z.ZodString;
|
|
318
515
|
kind: z.ZodLiteral<"human">;
|
|
516
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
517
|
+
wait_id: z.ZodUUID;
|
|
518
|
+
summary: z.ZodString;
|
|
519
|
+
kind: z.ZodLiteral<"plugin">;
|
|
520
|
+
pluginKind: z.ZodString;
|
|
521
|
+
deadline: z.ZodOptional<z.ZodISODateTime>;
|
|
319
522
|
}, z.core.$strict>], "kind">>>;
|
|
320
523
|
}, z.core.$strict>], "cancelled">;
|
|
321
524
|
export type SquawkCancelWaitAnswer = z.infer<typeof squawkCancelWaitAnswerSchema>;
|
|
@@ -345,6 +548,12 @@ export declare const squawkDoneAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodDiscr
|
|
|
345
548
|
wait_id: z.ZodUUID;
|
|
346
549
|
summary: z.ZodString;
|
|
347
550
|
kind: z.ZodLiteral<"human">;
|
|
551
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
552
|
+
wait_id: z.ZodUUID;
|
|
553
|
+
summary: z.ZodString;
|
|
554
|
+
kind: z.ZodLiteral<"plugin">;
|
|
555
|
+
pluginKind: z.ZodString;
|
|
556
|
+
deadline: z.ZodOptional<z.ZodISODateTime>;
|
|
348
557
|
}, z.core.$strict>], "kind">>;
|
|
349
558
|
completes: z.ZodLiteral<"task">;
|
|
350
559
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -366,6 +575,12 @@ export declare const squawkDoneAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodDiscr
|
|
|
366
575
|
wait_id: z.ZodUUID;
|
|
367
576
|
summary: z.ZodString;
|
|
368
577
|
kind: z.ZodLiteral<"human">;
|
|
578
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
579
|
+
wait_id: z.ZodUUID;
|
|
580
|
+
summary: z.ZodString;
|
|
581
|
+
kind: z.ZodLiteral<"plugin">;
|
|
582
|
+
pluginKind: z.ZodString;
|
|
583
|
+
deadline: z.ZodOptional<z.ZodISODateTime>;
|
|
369
584
|
}, z.core.$strict>], "kind">>;
|
|
370
585
|
completes: z.ZodLiteral<"step">;
|
|
371
586
|
next_step: z.ZodString;
|
|
@@ -420,6 +635,12 @@ export declare const squawkDoneAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodDiscr
|
|
|
420
635
|
wait_id: z.ZodUUID;
|
|
421
636
|
summary: z.ZodString;
|
|
422
637
|
kind: z.ZodLiteral<"human">;
|
|
638
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
639
|
+
wait_id: z.ZodUUID;
|
|
640
|
+
summary: z.ZodString;
|
|
641
|
+
kind: z.ZodLiteral<"plugin">;
|
|
642
|
+
pluginKind: z.ZodString;
|
|
643
|
+
deadline: z.ZodOptional<z.ZodISODateTime>;
|
|
423
644
|
}, z.core.$strict>], "kind">>>;
|
|
424
645
|
owed: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
425
646
|
kind: z.ZodLiteral<"wait_result">;
|
package/dist/contract/waits.d.ts
CHANGED
|
@@ -533,6 +533,33 @@ export declare const subagentWaitEntrySchema: z.ZodObject<{
|
|
|
533
533
|
export type SubagentWaitEntry = z.infer<typeof subagentWaitEntrySchema>;
|
|
534
534
|
/** The children a subagent wait still waits on. */
|
|
535
535
|
export declare function runningSubagents(wait: Pick<SubagentWaitEntry, 'children'>): number;
|
|
536
|
+
/** An open plugin-owned wait; its data remains readable without the plugin installed. */
|
|
537
|
+
export declare const pluginWaitEntrySchema: z.ZodObject<{
|
|
538
|
+
id: z.ZodUUID;
|
|
539
|
+
source: z.ZodEnum<{
|
|
540
|
+
agent: "agent";
|
|
541
|
+
cezar: "cezar";
|
|
542
|
+
}>;
|
|
543
|
+
registeredAt: z.ZodISODateTime;
|
|
544
|
+
phase: z.ZodEnum<{
|
|
545
|
+
cancelled: "cancelled";
|
|
546
|
+
delivered: "delivered";
|
|
547
|
+
open: "open";
|
|
548
|
+
resolved: "resolved";
|
|
549
|
+
}>;
|
|
550
|
+
resolvedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
551
|
+
deliveredAt: z.ZodOptional<z.ZodISODateTime>;
|
|
552
|
+
cancelledAt: z.ZodOptional<z.ZodISODateTime>;
|
|
553
|
+
turnId: z.ZodString;
|
|
554
|
+
via: z.ZodString;
|
|
555
|
+
kind: z.ZodLiteral<"plugin">;
|
|
556
|
+
pluginKind: z.ZodString;
|
|
557
|
+
deadline: z.ZodOptional<z.ZodISODateTime>;
|
|
558
|
+
summary: z.ZodString;
|
|
559
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
560
|
+
result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
561
|
+
}, z.core.$strict>;
|
|
562
|
+
export type PluginWaitEntry = z.infer<typeof pluginWaitEntrySchema>;
|
|
536
563
|
export declare const waitSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
537
564
|
prUrl: z.ZodString;
|
|
538
565
|
repository: z.ZodString;
|
|
@@ -929,6 +956,30 @@ export declare const waitSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
929
956
|
timeout: "timeout";
|
|
930
957
|
}>;
|
|
931
958
|
}, z.core.$strict>>;
|
|
959
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
960
|
+
id: z.ZodUUID;
|
|
961
|
+
source: z.ZodEnum<{
|
|
962
|
+
agent: "agent";
|
|
963
|
+
cezar: "cezar";
|
|
964
|
+
}>;
|
|
965
|
+
registeredAt: z.ZodISODateTime;
|
|
966
|
+
phase: z.ZodEnum<{
|
|
967
|
+
cancelled: "cancelled";
|
|
968
|
+
delivered: "delivered";
|
|
969
|
+
open: "open";
|
|
970
|
+
resolved: "resolved";
|
|
971
|
+
}>;
|
|
972
|
+
resolvedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
973
|
+
deliveredAt: z.ZodOptional<z.ZodISODateTime>;
|
|
974
|
+
cancelledAt: z.ZodOptional<z.ZodISODateTime>;
|
|
975
|
+
turnId: z.ZodString;
|
|
976
|
+
via: z.ZodString;
|
|
977
|
+
kind: z.ZodLiteral<"plugin">;
|
|
978
|
+
pluginKind: z.ZodString;
|
|
979
|
+
deadline: z.ZodOptional<z.ZodISODateTime>;
|
|
980
|
+
summary: z.ZodString;
|
|
981
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
982
|
+
result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
932
983
|
}, z.core.$strict>], "kind">;
|
|
933
984
|
export type Wait = z.infer<typeof waitSchema>;
|
|
934
985
|
export declare const openWaitSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -947,6 +998,12 @@ export declare const openWaitSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
947
998
|
wait_id: z.ZodUUID;
|
|
948
999
|
summary: z.ZodString;
|
|
949
1000
|
kind: z.ZodLiteral<"human">;
|
|
1001
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1002
|
+
wait_id: z.ZodUUID;
|
|
1003
|
+
summary: z.ZodString;
|
|
1004
|
+
kind: z.ZodLiteral<"plugin">;
|
|
1005
|
+
pluginKind: z.ZodString;
|
|
1006
|
+
deadline: z.ZodOptional<z.ZodISODateTime>;
|
|
950
1007
|
}, z.core.$strict>], "kind">;
|
|
951
1008
|
export type OpenWait = z.infer<typeof openWaitSchema>;
|
|
952
1009
|
export declare const waitErrorCodeSchema: z.ZodEnum<{
|
|
@@ -1390,6 +1447,30 @@ export declare const waitRegistrationReceiptSchema: z.ZodObject<{
|
|
|
1390
1447
|
timeout: "timeout";
|
|
1391
1448
|
}>;
|
|
1392
1449
|
}, z.core.$strict>>;
|
|
1450
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1451
|
+
id: z.ZodUUID;
|
|
1452
|
+
source: z.ZodEnum<{
|
|
1453
|
+
agent: "agent";
|
|
1454
|
+
cezar: "cezar";
|
|
1455
|
+
}>;
|
|
1456
|
+
registeredAt: z.ZodISODateTime;
|
|
1457
|
+
phase: z.ZodEnum<{
|
|
1458
|
+
cancelled: "cancelled";
|
|
1459
|
+
delivered: "delivered";
|
|
1460
|
+
open: "open";
|
|
1461
|
+
resolved: "resolved";
|
|
1462
|
+
}>;
|
|
1463
|
+
resolvedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1464
|
+
deliveredAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1465
|
+
cancelledAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1466
|
+
turnId: z.ZodString;
|
|
1467
|
+
via: z.ZodString;
|
|
1468
|
+
kind: z.ZodLiteral<"plugin">;
|
|
1469
|
+
pluginKind: z.ZodString;
|
|
1470
|
+
deadline: z.ZodOptional<z.ZodISODateTime>;
|
|
1471
|
+
summary: z.ZodString;
|
|
1472
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1473
|
+
result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1393
1474
|
}, z.core.$strict>], "kind">;
|
|
1394
1475
|
deduplicated: z.ZodBoolean;
|
|
1395
1476
|
}, z.core.$strict>;
|
|
@@ -1499,6 +1580,12 @@ export declare const waitingOnSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z
|
|
|
1499
1580
|
pid: z.ZodNumber;
|
|
1500
1581
|
deadline: z.ZodISODateTime;
|
|
1501
1582
|
note: z.ZodOptional<z.ZodString>;
|
|
1583
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1584
|
+
kind: z.ZodLiteral<"plugin">;
|
|
1585
|
+
pluginKind: z.ZodString;
|
|
1586
|
+
waitId: z.ZodUUID;
|
|
1587
|
+
summary: z.ZodString;
|
|
1588
|
+
deadline: z.ZodOptional<z.ZodISODateTime>;
|
|
1502
1589
|
}, z.core.$strip>, z.ZodObject<{
|
|
1503
1590
|
kind: z.ZodLiteral<"timer">;
|
|
1504
1591
|
waitId: z.ZodUUID;
|
|
@@ -77,6 +77,12 @@ export declare const workspaceRunSummaryEventSchema: z.ZodObject<{
|
|
|
77
77
|
pid: z.ZodNumber;
|
|
78
78
|
deadline: z.ZodISODateTime;
|
|
79
79
|
note: z.ZodOptional<z.ZodString>;
|
|
80
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
81
|
+
kind: z.ZodLiteral<"plugin">;
|
|
82
|
+
pluginKind: z.ZodString;
|
|
83
|
+
waitId: z.ZodUUID;
|
|
84
|
+
summary: z.ZodString;
|
|
85
|
+
deadline: z.ZodOptional<z.ZodISODateTime>;
|
|
80
86
|
}, z.core.$strip>, z.ZodObject<{
|
|
81
87
|
kind: z.ZodLiteral<"timer">;
|
|
82
88
|
waitId: z.ZodUUID;
|
|
@@ -261,6 +267,12 @@ export declare const runsIndexResponseSchema: z.ZodObject<{
|
|
|
261
267
|
pid: z.ZodNumber;
|
|
262
268
|
deadline: z.ZodISODateTime;
|
|
263
269
|
note: z.ZodOptional<z.ZodString>;
|
|
270
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
271
|
+
kind: z.ZodLiteral<"plugin">;
|
|
272
|
+
pluginKind: z.ZodString;
|
|
273
|
+
waitId: z.ZodUUID;
|
|
274
|
+
summary: z.ZodString;
|
|
275
|
+
deadline: z.ZodOptional<z.ZodISODateTime>;
|
|
264
276
|
}, z.core.$strip>, z.ZodObject<{
|
|
265
277
|
kind: z.ZodLiteral<"timer">;
|
|
266
278
|
waitId: z.ZodUUID;
|
|
@@ -1,48 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
catch (error) {
|
|
11
|
-
if (runSlotsSealed())
|
|
1
|
+
const gates = [];
|
|
2
|
+
const preparations = [];
|
|
3
|
+
const cleanups = [];
|
|
4
|
+
let sealed = false;
|
|
5
|
+
function add(list, slots) {
|
|
6
|
+
for (const slot of slots ?? []) {
|
|
7
|
+
if (list.includes(slot))
|
|
8
|
+
continue;
|
|
9
|
+
if (sealed)
|
|
12
10
|
throw new Error('The removal slots are sealed: register every slot before sealRunSlots().');
|
|
13
|
-
|
|
11
|
+
list.push(slot);
|
|
14
12
|
}
|
|
15
13
|
}
|
|
16
14
|
/** Add slots, in call order. Registering the same slot object again does nothing. */
|
|
17
15
|
export function registerRunSlots(slots) {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
registerSlot(preparations, slot);
|
|
22
|
-
for (const slot of slots.cleanups ?? [])
|
|
23
|
-
registerSlot(cleanups, slot);
|
|
16
|
+
add(gates, slots.gates);
|
|
17
|
+
add(preparations, slots.preparations);
|
|
18
|
+
add(cleanups, slots.cleanups);
|
|
24
19
|
}
|
|
25
20
|
/** Close the registry: removals may run, and no new slot may register. */
|
|
26
21
|
export function sealRunSlots() {
|
|
27
|
-
|
|
28
|
-
preparations.seal();
|
|
29
|
-
cleanups.seal();
|
|
22
|
+
sealed = true;
|
|
30
23
|
}
|
|
31
24
|
/** Whether this process sealed its removal slots. Never throws. */
|
|
32
25
|
export function runSlotsSealed() {
|
|
33
|
-
return
|
|
26
|
+
return sealed;
|
|
34
27
|
}
|
|
35
28
|
/** Throws unless the registry is sealed. A removal path calls it before its first side effect. */
|
|
36
29
|
export function assertRunSlotsSealed() {
|
|
37
|
-
if (!
|
|
38
|
-
throw new Error('No removal slot is registered: call registerBuiltInRunSlots()
|
|
30
|
+
if (!sealed) {
|
|
31
|
+
throw new Error('No removal slot is registered: call registerBuiltInRunSlots() from built-in-run-slots.ts at the process entry, '
|
|
39
32
|
+ 'or seal the slots this test uses with sealTestRunSlots() from runs/removal-slots.testkit.ts.');
|
|
40
33
|
}
|
|
41
34
|
}
|
|
42
35
|
/** The first gate's reason to refuse this deletion, in registration order. */
|
|
43
36
|
export function deletionRefusal(runId, kind, dataDir) {
|
|
44
37
|
assertRunSlotsSealed();
|
|
45
|
-
for (const gate of gates
|
|
38
|
+
for (const gate of gates) {
|
|
46
39
|
const reason = gate.refuse(runId, kind, dataDir);
|
|
47
40
|
if (reason)
|
|
48
41
|
return reason;
|
|
@@ -52,14 +45,14 @@ export function deletionRefusal(runId, kind, dataDir) {
|
|
|
52
45
|
/** Run every preparation in registration order; the first rejection stops the rest. */
|
|
53
46
|
export async function prepareReclaim(run, context) {
|
|
54
47
|
assertRunSlotsSealed();
|
|
55
|
-
for (const preparation of preparations
|
|
48
|
+
for (const preparation of preparations)
|
|
56
49
|
await preparation.prepare(run, context);
|
|
57
50
|
}
|
|
58
51
|
/** Run every cleanup in registration order, then throw the first failure. */
|
|
59
52
|
export function runRemovalCleanups(runId, dataDir) {
|
|
60
53
|
assertRunSlotsSealed();
|
|
61
54
|
const failures = [];
|
|
62
|
-
for (const cleanup of cleanups
|
|
55
|
+
for (const cleanup of cleanups) {
|
|
63
56
|
try {
|
|
64
57
|
cleanup.removed(runId, dataDir);
|
|
65
58
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removal-slots.js","sourceRoot":"","sources":["../../src/runs/removal-slots.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"removal-slots.js","sourceRoot":"","sources":["../../src/runs/removal-slots.ts"],"names":[],"mappings":"AAmDA,MAAM,KAAK,GAAmB,EAAE,CAAC;AACjC,MAAM,YAAY,GAAyB,EAAE,CAAC;AAC9C,MAAM,QAAQ,GAAqB,EAAE,CAAC;AACtC,IAAI,MAAM,GAAG,KAAK,CAAC;AAEnB,SAAS,GAAG,CAAI,IAAS,EAAE,KAA+B;IACxD,KAAK,MAAM,IAAI,IAAI,KAAK,IAAI,EAAE,EAAE,CAAC;QAC/B,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;YAAE,SAAS;QAClC,IAAI,MAAM;YAAE,MAAM,IAAI,KAAK,CAAC,0EAA0E,CAAC,CAAC;QACxG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAClB,CAAC;AACH,CAAC;AAED,qFAAqF;AACrF,MAAM,UAAU,gBAAgB,CAAC,KAAe;IAC9C,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACxB,GAAG,CAAC,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IACtC,GAAG,CAAC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;AAChC,CAAC;AAED,0EAA0E;AAC1E,MAAM,UAAU,YAAY;IAC1B,MAAM,GAAG,IAAI,CAAC;AAChB,CAAC;AAED,mEAAmE;AACnE,MAAM,UAAU,cAAc;IAC5B,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,kGAAkG;AAClG,MAAM,UAAU,oBAAoB;IAClC,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,CAAC,iHAAiH;cAC7H,8FAA8F,CAAC,CAAC;IACtG,CAAC;AACH,CAAC;AAED,8EAA8E;AAC9E,MAAM,UAAU,eAAe,CAAC,KAAa,EAAE,IAAkB,EAAE,OAAe;IAChF,oBAAoB,EAAE,CAAC;IACvB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QACjD,IAAI,MAAM;YAAE,OAAO,MAAM,CAAC;IAC5B,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,uFAAuF;AACvF,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,GAAc,EAAE,OAAuB;IAC1E,oBAAoB,EAAE,CAAC;IACvB,KAAK,MAAM,WAAW,IAAI,YAAY;QAAE,MAAM,WAAW,CAAC,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;AAClF,CAAC;AAED,6EAA6E;AAC7E,MAAM,UAAU,kBAAkB,CAAC,KAAa,EAAE,OAAe;IAC/D,oBAAoB,EAAE,CAAC;IACvB,MAAM,QAAQ,GAAc,EAAE,CAAC;IAC/B,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,IAAI,CAAC;YAAC,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAAC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAAC,CAAC;IAClF,CAAC;IACD,IAAI,QAAQ,CAAC,MAAM;QAAE,MAAM,QAAQ,CAAC,CAAC,CAAC,CAAC;AACzC,CAAC"}
|
|
@@ -356,6 +356,22 @@ export declare class RunArchiveTopic implements RunArchive, RunCompletionActions
|
|
|
356
356
|
result?: {
|
|
357
357
|
reason: "interrupted" | "settled" | "superseded" | "timeout";
|
|
358
358
|
} | undefined;
|
|
359
|
+
} | {
|
|
360
|
+
id: string;
|
|
361
|
+
source: "agent" | "cezar";
|
|
362
|
+
registeredAt: string;
|
|
363
|
+
phase: "cancelled" | "delivered" | "open" | "resolved";
|
|
364
|
+
resolvedAt?: string | undefined;
|
|
365
|
+
deliveredAt?: string | undefined;
|
|
366
|
+
cancelledAt?: string | undefined;
|
|
367
|
+
turnId: string;
|
|
368
|
+
via: string;
|
|
369
|
+
kind: "plugin";
|
|
370
|
+
pluginKind: string;
|
|
371
|
+
deadline?: string | undefined;
|
|
372
|
+
summary: string;
|
|
373
|
+
payload: Record<string, unknown>;
|
|
374
|
+
result?: Record<string, unknown> | undefined;
|
|
359
375
|
})[] | undefined;
|
|
360
376
|
waitRegistrations?: {
|
|
361
377
|
operationId: string;
|
|
@@ -552,6 +568,22 @@ export declare class RunArchiveTopic implements RunArchive, RunCompletionActions
|
|
|
552
568
|
result?: {
|
|
553
569
|
reason: "interrupted" | "settled" | "superseded" | "timeout";
|
|
554
570
|
} | undefined;
|
|
571
|
+
} | {
|
|
572
|
+
id: string;
|
|
573
|
+
source: "agent" | "cezar";
|
|
574
|
+
registeredAt: string;
|
|
575
|
+
phase: "cancelled" | "delivered" | "open" | "resolved";
|
|
576
|
+
resolvedAt?: string | undefined;
|
|
577
|
+
deliveredAt?: string | undefined;
|
|
578
|
+
cancelledAt?: string | undefined;
|
|
579
|
+
turnId: string;
|
|
580
|
+
via: string;
|
|
581
|
+
kind: "plugin";
|
|
582
|
+
pluginKind: string;
|
|
583
|
+
deadline?: string | undefined;
|
|
584
|
+
summary: string;
|
|
585
|
+
payload: Record<string, unknown>;
|
|
586
|
+
result?: Record<string, unknown> | undefined;
|
|
555
587
|
};
|
|
556
588
|
deduplicated: boolean;
|
|
557
589
|
}[] | undefined;
|
|
@@ -747,6 +779,22 @@ export declare class RunArchiveTopic implements RunArchive, RunCompletionActions
|
|
|
747
779
|
result?: {
|
|
748
780
|
reason: "interrupted" | "settled" | "superseded" | "timeout";
|
|
749
781
|
} | undefined;
|
|
782
|
+
} | {
|
|
783
|
+
id: string;
|
|
784
|
+
source: "agent" | "cezar";
|
|
785
|
+
registeredAt: string;
|
|
786
|
+
phase: "cancelled" | "delivered" | "open" | "resolved";
|
|
787
|
+
resolvedAt?: string | undefined;
|
|
788
|
+
deliveredAt?: string | undefined;
|
|
789
|
+
cancelledAt?: string | undefined;
|
|
790
|
+
turnId: string;
|
|
791
|
+
via: string;
|
|
792
|
+
kind: "plugin";
|
|
793
|
+
pluginKind: string;
|
|
794
|
+
deadline?: string | undefined;
|
|
795
|
+
summary: string;
|
|
796
|
+
payload: Record<string, unknown>;
|
|
797
|
+
result?: Record<string, unknown> | undefined;
|
|
750
798
|
})[] | undefined;
|
|
751
799
|
previewServers?: {
|
|
752
800
|
port: number;
|