@wjarka/cezarion 0.17.0-pr1973.3036 → 0.17.0-pr2002.3066
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/contract/conversations.d.ts +50 -0
- package/dist/contract/delegation.d.ts +20 -0
- package/dist/contract/events.d.ts +11 -0
- package/dist/contract/index.js +32 -5
- package/dist/contract/runs.d.ts +51 -0
- package/dist/contract/waits.d.ts +2 -0
- package/dist/core/omp-runner.js +280 -497
- package/dist/core/omp-runner.js.map +1 -1
- package/dist/core/omp-ui-mapper.js +1 -27
- package/dist/core/omp-ui-mapper.js.map +1 -1
- package/dist/core/pi-rpc-turn.d.ts +184 -0
- package/dist/core/pi-rpc-turn.js +380 -0
- package/dist/core/pi-rpc-turn.js.map +1 -0
- package/dist/core/pi-rpc-wire.d.ts +31 -0
- package/dist/core/pi-rpc-wire.js +88 -0
- package/dist/core/pi-rpc-wire.js.map +1 -0
- package/dist/core/pi-runner.js +182 -417
- package/dist/core/pi-runner.js.map +1 -1
- package/dist/core/pi-ui-mapper.js +1 -23
- package/dist/core/pi-ui-mapper.js.map +1 -1
- package/dist/delegation/conversations.d.ts +1570 -5
- package/dist/delegation/conversations.js +226 -25
- package/dist/delegation/conversations.js.map +1 -1
- package/dist/delegation/idle-test-app.js +20 -58
- package/dist/delegation/idle-test-app.js.map +1 -1
- package/dist/delegation/park-notice.d.ts +4 -1
- package/dist/delegation/park-notice.js +8 -0
- package/dist/delegation/park-notice.js.map +1 -1
- package/dist/delegation/process-liveness.d.ts +0 -3
- package/dist/delegation/process-liveness.js +0 -5
- package/dist/delegation/process-liveness.js.map +1 -1
- package/dist/delegation/provision.js +2 -3
- package/dist/delegation/provision.js.map +1 -1
- package/dist/delegation/questions.d.ts +3 -0
- package/dist/delegation/questions.js +5 -0
- package/dist/delegation/questions.js.map +1 -1
- package/dist/delegation/routes.d.ts +16 -9
- package/dist/delegation/service.d.ts +35 -4
- package/dist/delegation/service.js +191 -195
- package/dist/delegation/service.js.map +1 -1
- package/dist/delegation/transport.d.ts +16 -9
- package/dist/delegation/windows-workspace-identity.d.ts +0 -10
- package/dist/delegation/windows-workspace-identity.js +0 -37
- package/dist/delegation/windows-workspace-identity.js.map +1 -1
- package/dist/delegation/workspace.d.ts +1 -3
- package/dist/delegation/workspace.js +29 -324
- package/dist/delegation/workspace.js.map +1 -1
- package/dist/git-worktree-release.d.ts +1 -1
- package/dist/git-worktree-release.js +2 -2
- package/dist/git-worktree-release.js.map +1 -1
- package/dist/runs/conversation-identity.d.ts +19 -0
- package/dist/runs/conversation-identity.js +31 -0
- package/dist/runs/conversation-identity.js.map +1 -0
- package/dist/runs/delegation-state.d.ts +9 -0
- package/dist/runs/store.d.ts +87 -61
- package/dist/runs/store.js +104 -91
- package/dist/runs/store.js.map +1 -1
- package/dist/runs/task-refs.d.ts +14 -0
- package/dist/runs/task-refs.js +33 -0
- package/dist/runs/task-refs.js.map +1 -1
- package/dist/runs/worker-execution.js +1 -17
- package/dist/runs/worker-execution.js.map +1 -1
- package/dist/server/server.d.ts +1389 -1317
- package/dist/workflows/continuation-admission.d.ts +59 -55
- package/dist/workflows/input-acknowledgement.d.ts +28 -1
- package/dist/workflows/input-acknowledgement.js +6 -3
- package/dist/workflows/input-acknowledgement.js.map +1 -1
- package/dist/workflows/pasted-content.d.ts +60 -0
- package/dist/workflows/pasted-content.js +69 -0
- package/dist/workflows/pasted-content.js.map +1 -0
- package/dist/workflows/question-routing.js +5 -3
- package/dist/workflows/question-routing.js.map +1 -1
- package/dist/workflows/run.d.ts +13 -58
- package/dist/workflows/run.js +80 -93
- package/dist/workflows/run.js.map +1 -1
- package/dist/workflows/waits.d.ts +7 -1
- package/dist/workflows/waits.js +8 -0
- package/dist/workflows/waits.js.map +1 -1
- package/package.json +3 -3
- package/scripts/windows-workspace-identity.cs +10 -219
- package/scripts/windows-workspace-identity.ps1 +0 -6
- package/web/dist/assets/{centered-state-hDsyXrnH.js → centered-state-jdJvxrW-.js} +1 -1
- package/web/dist/assets/{diff-controls-GewpW9aF.js → diff-controls-BE3CL_4I.js} +1 -1
- package/web/dist/assets/{diff-view-BSRNH_Mq.js → diff-view-C4ispn-2.js} +1 -1
- package/web/dist/assets/{diff-EDmRN8pP2.js → diff-zgwc32mn2.js} +2 -2
- package/web/dist/assets/{dropdown-menu-COj_J5wd.js → dropdown-menu-fGsk_NG9.js} +1 -1
- package/web/dist/assets/{git-toolbar-B_KLrjba.js → git-toolbar-BvH6QVeG.js} +1 -1
- package/web/dist/assets/{github-gfznAOq9.js → github-DnfAE4IO.js} +1 -1
- package/web/dist/assets/{index-6mOQALqD.js → index-BK4eSq7o.js} +4 -4
- package/web/dist/assets/{live-protocol-Uce2NwEX.js → live-protocol-D7Q-V86-.js} +1 -1
- package/web/dist/assets/{popover-D56fhiXj.js → popover-Uos2ST1G.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-UwGHfbhd.js → preview-pane-connected-BBsd2fKo.js} +1 -1
- package/web/dist/assets/{reference-chip-gQNk-4jc.js → reference-chip-idvBc7SF.js} +1 -1
- package/web/dist/assets/{repo-git-BzqdlCks.js → repo-git-BVohhkFT.js} +1 -1
- package/web/dist/assets/{run-header-CBHN9bMW.js → run-header-C-6HH4D5.js} +1 -1
- package/web/dist/assets/{skills-DTponTzk.js → skills-B5Ps4YE-.js} +1 -1
- package/web/dist/assets/{status-dot-1PR0i69P.js → status-dot-Cu_rfmbp.js} +1 -1
- package/web/dist/assets/{tab-link-DmWk4l5O.js → tab-link-DerqaKoG.js} +1 -1
- package/web/dist/assets/{task-changes-1gZu3mS1.js → task-changes-C7uTFW_V.js} +1 -1
- package/web/dist/assets/{task-commits-Et-picsu.js → task-commits-C4FJPTJS.js} +1 -1
- package/web/dist/assets/{task-files-DpuknjCM.js → task-files-DGu_6-Rs.js} +1 -1
- package/web/dist/assets/{task-github-item-BGwH2nfJ.js → task-github-item-CeRl8bqG.js} +1 -1
- package/web/dist/assets/{task-thread-BInpSr44.js → task-thread-8BqH_7_e.js} +1 -1
- package/web/dist/assets/{thread-state-XbMapyPV.js → thread-state-CTBcLxKa.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-BiWjFksc.js → use-hand-to-agent-state-DH8DCWQC.js} +1 -1
- package/web/dist/assets/{workflows--EyZTjEF.js → workflows-BgFwJUgI.js} +1 -1
- package/web/dist/index.html +7 -7
- package/web/dist/live-worker.js +1 -1
- package/dist/delegation/destroy-holders.d.ts +0 -2
- package/dist/delegation/destroy-holders.js +0 -167
- package/dist/delegation/destroy-holders.js.map +0 -1
- package/dist/delegation/mount-boundary.d.ts +0 -16
- package/dist/delegation/mount-boundary.js +0 -126
- package/dist/delegation/mount-boundary.js.map +0 -1
- package/dist/runs/private-worker-file.d.ts +0 -5
- package/dist/runs/private-worker-file.js +0 -51
- package/dist/runs/private-worker-file.js.map +0 -1
- package/dist/runs/windows-worker-evidence.d.ts +0 -9
- package/dist/runs/windows-worker-evidence.js +0 -71
- package/dist/runs/windows-worker-evidence.js.map +0 -1
- package/scripts/test-fallback-sandbox.mjs +0 -39
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
/** Who may talk: a root and its owned worker (`family`), or two root tasks of one project (`peer`,
|
|
3
|
+
* spec 2026-10-27-task-communication-protocol § 2). Cezar writes it on peer messages only; an
|
|
4
|
+
* absent field reads as `family`, so family records stay as older versions wrote them. */
|
|
5
|
+
export declare const conversationRelationshipSchema: z.ZodEnum<{
|
|
6
|
+
family: "family";
|
|
7
|
+
peer: "peer";
|
|
8
|
+
}>;
|
|
9
|
+
export type ConversationRelationship = z.infer<typeof conversationRelationshipSchema>;
|
|
2
10
|
export declare const conversationAttributionSchema: z.ZodObject<{
|
|
3
11
|
senderRunId: z.ZodUUID;
|
|
4
12
|
recipientRunId: z.ZodUUID;
|
|
@@ -9,6 +17,10 @@ export declare const conversationAttributionSchema: z.ZodObject<{
|
|
|
9
17
|
request: "request";
|
|
10
18
|
}>;
|
|
11
19
|
requestId: z.ZodOptional<z.ZodUUID>;
|
|
20
|
+
relationship: z.ZodOptional<z.ZodEnum<{
|
|
21
|
+
family: "family";
|
|
22
|
+
peer: "peer";
|
|
23
|
+
}>>;
|
|
12
24
|
}, z.core.$strict>;
|
|
13
25
|
export declare const conversationMessageSchema: z.ZodObject<{
|
|
14
26
|
senderRunId: z.ZodUUID;
|
|
@@ -20,6 +32,10 @@ export declare const conversationMessageSchema: z.ZodObject<{
|
|
|
20
32
|
request: "request";
|
|
21
33
|
}>;
|
|
22
34
|
requestId: z.ZodOptional<z.ZodUUID>;
|
|
35
|
+
relationship: z.ZodOptional<z.ZodEnum<{
|
|
36
|
+
family: "family";
|
|
37
|
+
peer: "peer";
|
|
38
|
+
}>>;
|
|
23
39
|
id: z.ZodUUID;
|
|
24
40
|
text: z.ZodString;
|
|
25
41
|
createdAt: z.ZodISODateTime;
|
|
@@ -53,6 +69,7 @@ export declare const requestOutcomeSchema: z.ZodObject<{
|
|
|
53
69
|
status: z.ZodEnum<{
|
|
54
70
|
cancelled: "cancelled";
|
|
55
71
|
"completed-without-reply": "completed-without-reply";
|
|
72
|
+
deleted: "deleted";
|
|
56
73
|
destroyed: "destroyed";
|
|
57
74
|
failed: "failed";
|
|
58
75
|
"human-fallback": "human-fallback";
|
|
@@ -76,6 +93,10 @@ export declare const conversationStateSchema: z.ZodObject<{
|
|
|
76
93
|
request: "request";
|
|
77
94
|
}>;
|
|
78
95
|
requestId: z.ZodOptional<z.ZodUUID>;
|
|
96
|
+
relationship: z.ZodOptional<z.ZodEnum<{
|
|
97
|
+
family: "family";
|
|
98
|
+
peer: "peer";
|
|
99
|
+
}>>;
|
|
79
100
|
id: z.ZodUUID;
|
|
80
101
|
text: z.ZodString;
|
|
81
102
|
createdAt: z.ZodISODateTime;
|
|
@@ -108,6 +129,7 @@ export declare const conversationStateSchema: z.ZodObject<{
|
|
|
108
129
|
status: z.ZodEnum<{
|
|
109
130
|
cancelled: "cancelled";
|
|
110
131
|
"completed-without-reply": "completed-without-reply";
|
|
132
|
+
deleted: "deleted";
|
|
111
133
|
destroyed: "destroyed";
|
|
112
134
|
failed: "failed";
|
|
113
135
|
"human-fallback": "human-fallback";
|
|
@@ -121,6 +143,17 @@ export declare const conversationStateSchema: z.ZodObject<{
|
|
|
121
143
|
}, z.core.$strict>>;
|
|
122
144
|
}, z.core.$strict>;
|
|
123
145
|
export type ConversationState = z.infer<typeof conversationStateSchema>;
|
|
146
|
+
export declare const conversationCursorSchema: z.ZodString;
|
|
147
|
+
export declare function encodeConversationCursor(message: {
|
|
148
|
+
createdAt: string;
|
|
149
|
+
id: string;
|
|
150
|
+
}): string;
|
|
151
|
+
export declare function decodeConversationCursor(cursor: string): {
|
|
152
|
+
createdAt: string;
|
|
153
|
+
id: string;
|
|
154
|
+
};
|
|
155
|
+
/** The merged history page bound: the newest 1,024 messages of a pair, which may span two ledgers. */
|
|
156
|
+
export declare const CONVERSATION_PAGE_MESSAGES = 1024;
|
|
124
157
|
export declare const conversationInspectResultSchema: z.ZodObject<{
|
|
125
158
|
messages: z.ZodArray<z.ZodObject<{
|
|
126
159
|
senderRunId: z.ZodUUID;
|
|
@@ -132,6 +165,10 @@ export declare const conversationInspectResultSchema: z.ZodObject<{
|
|
|
132
165
|
request: "request";
|
|
133
166
|
}>;
|
|
134
167
|
requestId: z.ZodOptional<z.ZodUUID>;
|
|
168
|
+
relationship: z.ZodOptional<z.ZodEnum<{
|
|
169
|
+
family: "family";
|
|
170
|
+
peer: "peer";
|
|
171
|
+
}>>;
|
|
135
172
|
id: z.ZodUUID;
|
|
136
173
|
text: z.ZodString;
|
|
137
174
|
createdAt: z.ZodISODateTime;
|
|
@@ -164,6 +201,7 @@ export declare const conversationInspectResultSchema: z.ZodObject<{
|
|
|
164
201
|
status: z.ZodEnum<{
|
|
165
202
|
cancelled: "cancelled";
|
|
166
203
|
"completed-without-reply": "completed-without-reply";
|
|
204
|
+
deleted: "deleted";
|
|
167
205
|
destroyed: "destroyed";
|
|
168
206
|
failed: "failed";
|
|
169
207
|
"human-fallback": "human-fallback";
|
|
@@ -176,6 +214,7 @@ export declare const conversationInspectResultSchema: z.ZodObject<{
|
|
|
176
214
|
replyId: z.ZodOptional<z.ZodUUID>;
|
|
177
215
|
}, z.core.$strict>>;
|
|
178
216
|
hint: z.ZodOptional<z.ZodString>;
|
|
217
|
+
nextBefore: z.ZodOptional<z.ZodString>;
|
|
179
218
|
}, z.core.$strict>;
|
|
180
219
|
export type ConversationInspectResult = z.infer<typeof conversationInspectResultSchema>;
|
|
181
220
|
export declare const inboxReserveResultSchema: z.ZodObject<{
|
|
@@ -189,6 +228,10 @@ export declare const inboxReserveResultSchema: z.ZodObject<{
|
|
|
189
228
|
request: "request";
|
|
190
229
|
}>;
|
|
191
230
|
requestId: z.ZodOptional<z.ZodUUID>;
|
|
231
|
+
relationship: z.ZodOptional<z.ZodEnum<{
|
|
232
|
+
family: "family";
|
|
233
|
+
peer: "peer";
|
|
234
|
+
}>>;
|
|
192
235
|
id: z.ZodUUID;
|
|
193
236
|
text: z.ZodString;
|
|
194
237
|
createdAt: z.ZodISODateTime;
|
|
@@ -221,6 +264,7 @@ export declare const inboxReserveResultSchema: z.ZodObject<{
|
|
|
221
264
|
status: z.ZodEnum<{
|
|
222
265
|
cancelled: "cancelled";
|
|
223
266
|
"completed-without-reply": "completed-without-reply";
|
|
267
|
+
deleted: "deleted";
|
|
224
268
|
destroyed: "destroyed";
|
|
225
269
|
failed: "failed";
|
|
226
270
|
"human-fallback": "human-fallback";
|
|
@@ -280,6 +324,10 @@ export declare const conversationSendResultSchema: z.ZodObject<{
|
|
|
280
324
|
request: "request";
|
|
281
325
|
}>;
|
|
282
326
|
requestId: z.ZodOptional<z.ZodUUID>;
|
|
327
|
+
relationship: z.ZodOptional<z.ZodEnum<{
|
|
328
|
+
family: "family";
|
|
329
|
+
peer: "peer";
|
|
330
|
+
}>>;
|
|
283
331
|
id: z.ZodUUID;
|
|
284
332
|
text: z.ZodString;
|
|
285
333
|
createdAt: z.ZodISODateTime;
|
|
@@ -318,6 +366,7 @@ export declare const conversationSendResultSchema: z.ZodObject<{
|
|
|
318
366
|
status: z.ZodEnum<{
|
|
319
367
|
cancelled: "cancelled";
|
|
320
368
|
"completed-without-reply": "completed-without-reply";
|
|
369
|
+
deleted: "deleted";
|
|
321
370
|
destroyed: "destroyed";
|
|
322
371
|
failed: "failed";
|
|
323
372
|
"human-fallback": "human-fallback";
|
|
@@ -333,6 +382,7 @@ export declare const conversationSendResultSchema: z.ZodObject<{
|
|
|
333
382
|
export type ConversationSendResult = z.infer<typeof conversationSendResultSchema>;
|
|
334
383
|
export declare const conversationInspectRequestSchema: z.ZodObject<{
|
|
335
384
|
recipientRunId: z.ZodUUID;
|
|
385
|
+
before: z.ZodOptional<z.ZodString>;
|
|
336
386
|
}, z.core.$strict>;
|
|
337
387
|
export type ConversationInspectRequest = z.infer<typeof conversationInspectRequestSchema>;
|
|
338
388
|
export declare const conversationCancelRequestSchema: z.ZodObject<{
|
|
@@ -48,6 +48,7 @@ export declare const workerWaitSchema: z.ZodObject<{
|
|
|
48
48
|
status: z.ZodEnum<{
|
|
49
49
|
cancelled: "cancelled";
|
|
50
50
|
"completed-without-reply": "completed-without-reply";
|
|
51
|
+
deleted: "deleted";
|
|
51
52
|
destroyed: "destroyed";
|
|
52
53
|
failed: "failed";
|
|
53
54
|
"human-fallback": "human-fallback";
|
|
@@ -629,6 +630,10 @@ export declare const delegationStateSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
629
630
|
request: "request";
|
|
630
631
|
}>;
|
|
631
632
|
requestId: z.ZodOptional<z.ZodUUID>;
|
|
633
|
+
relationship: z.ZodOptional<z.ZodEnum<{
|
|
634
|
+
family: "family";
|
|
635
|
+
peer: "peer";
|
|
636
|
+
}>>;
|
|
632
637
|
id: z.ZodUUID;
|
|
633
638
|
text: z.ZodString;
|
|
634
639
|
createdAt: z.ZodISODateTime;
|
|
@@ -661,6 +666,7 @@ export declare const delegationStateSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
661
666
|
status: z.ZodEnum<{
|
|
662
667
|
cancelled: "cancelled";
|
|
663
668
|
"completed-without-reply": "completed-without-reply";
|
|
669
|
+
deleted: "deleted";
|
|
664
670
|
destroyed: "destroyed";
|
|
665
671
|
failed: "failed";
|
|
666
672
|
"human-fallback": "human-fallback";
|
|
@@ -705,6 +711,7 @@ export declare const delegationStateSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
705
711
|
status: z.ZodEnum<{
|
|
706
712
|
cancelled: "cancelled";
|
|
707
713
|
"completed-without-reply": "completed-without-reply";
|
|
714
|
+
deleted: "deleted";
|
|
708
715
|
destroyed: "destroyed";
|
|
709
716
|
failed: "failed";
|
|
710
717
|
"human-fallback": "human-fallback";
|
|
@@ -760,6 +767,7 @@ export declare const delegationStateSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
760
767
|
status: z.ZodEnum<{
|
|
761
768
|
cancelled: "cancelled";
|
|
762
769
|
"completed-without-reply": "completed-without-reply";
|
|
770
|
+
deleted: "deleted";
|
|
763
771
|
destroyed: "destroyed";
|
|
764
772
|
failed: "failed";
|
|
765
773
|
"human-fallback": "human-fallback";
|
|
@@ -850,6 +858,7 @@ export declare const delegationStateSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
850
858
|
status: z.ZodEnum<{
|
|
851
859
|
cancelled: "cancelled";
|
|
852
860
|
"completed-without-reply": "completed-without-reply";
|
|
861
|
+
deleted: "deleted";
|
|
853
862
|
destroyed: "destroyed";
|
|
854
863
|
failed: "failed";
|
|
855
864
|
"human-fallback": "human-fallback";
|
|
@@ -905,6 +914,7 @@ export declare const delegationStateSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
905
914
|
status: z.ZodEnum<{
|
|
906
915
|
cancelled: "cancelled";
|
|
907
916
|
"completed-without-reply": "completed-without-reply";
|
|
917
|
+
deleted: "deleted";
|
|
908
918
|
destroyed: "destroyed";
|
|
909
919
|
failed: "failed";
|
|
910
920
|
"human-fallback": "human-fallback";
|
|
@@ -1103,6 +1113,10 @@ export declare const agentInputSchema: z.ZodObject<{
|
|
|
1103
1113
|
request: "request";
|
|
1104
1114
|
}>;
|
|
1105
1115
|
requestId: z.ZodOptional<z.ZodUUID>;
|
|
1116
|
+
relationship: z.ZodOptional<z.ZodEnum<{
|
|
1117
|
+
family: "family";
|
|
1118
|
+
peer: "peer";
|
|
1119
|
+
}>>;
|
|
1106
1120
|
}, z.core.$strict>>;
|
|
1107
1121
|
id: z.ZodUUID;
|
|
1108
1122
|
source: z.ZodEnum<{
|
|
@@ -1123,6 +1137,8 @@ export declare const agentInputSchema: z.ZodObject<{
|
|
|
1123
1137
|
memberIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
1124
1138
|
}, z.core.$strict>>;
|
|
1125
1139
|
purpose: z.ZodOptional<z.ZodLiteral<"completion-refusal">>;
|
|
1140
|
+
requestHash: z.ZodOptional<z.ZodString>;
|
|
1141
|
+
deadline: z.ZodOptional<z.ZodISODateTime>;
|
|
1126
1142
|
}, z.core.$strict>;
|
|
1127
1143
|
export type AgentInput = z.infer<typeof agentInputSchema>;
|
|
1128
1144
|
export declare const workerInspectionSchema: z.ZodObject<{
|
|
@@ -1179,6 +1195,7 @@ export declare const workerInspectionSchema: z.ZodObject<{
|
|
|
1179
1195
|
status: z.ZodEnum<{
|
|
1180
1196
|
cancelled: "cancelled";
|
|
1181
1197
|
"completed-without-reply": "completed-without-reply";
|
|
1198
|
+
deleted: "deleted";
|
|
1182
1199
|
destroyed: "destroyed";
|
|
1183
1200
|
failed: "failed";
|
|
1184
1201
|
"human-fallback": "human-fallback";
|
|
@@ -1559,6 +1576,7 @@ export declare const runRelationshipsSchema: z.ZodObject<{
|
|
|
1559
1576
|
status: z.ZodEnum<{
|
|
1560
1577
|
cancelled: "cancelled";
|
|
1561
1578
|
"completed-without-reply": "completed-without-reply";
|
|
1579
|
+
deleted: "deleted";
|
|
1562
1580
|
destroyed: "destroyed";
|
|
1563
1581
|
failed: "failed";
|
|
1564
1582
|
"human-fallback": "human-fallback";
|
|
@@ -1768,6 +1786,7 @@ export declare const workerWaitResultSchema: z.ZodObject<{
|
|
|
1768
1786
|
status: z.ZodEnum<{
|
|
1769
1787
|
cancelled: "cancelled";
|
|
1770
1788
|
"completed-without-reply": "completed-without-reply";
|
|
1789
|
+
deleted: "deleted";
|
|
1771
1790
|
destroyed: "destroyed";
|
|
1772
1791
|
failed: "failed";
|
|
1773
1792
|
"human-fallback": "human-fallback";
|
|
@@ -1832,6 +1851,7 @@ export declare const workerCancelWaitResultSchema: z.ZodObject<{
|
|
|
1832
1851
|
status: z.ZodEnum<{
|
|
1833
1852
|
cancelled: "cancelled";
|
|
1834
1853
|
"completed-without-reply": "completed-without-reply";
|
|
1854
|
+
deleted: "deleted";
|
|
1835
1855
|
destroyed: "destroyed";
|
|
1836
1856
|
failed: "failed";
|
|
1837
1857
|
"human-fallback": "human-fallback";
|
|
@@ -40,6 +40,10 @@ export declare const conversationMessageEventSchema: z.ZodObject<{
|
|
|
40
40
|
request: "request";
|
|
41
41
|
}>;
|
|
42
42
|
requestId: z.ZodOptional<z.ZodUUID>;
|
|
43
|
+
relationship: z.ZodOptional<z.ZodEnum<{
|
|
44
|
+
family: "family";
|
|
45
|
+
peer: "peer";
|
|
46
|
+
}>>;
|
|
43
47
|
id: z.ZodUUID;
|
|
44
48
|
text: z.ZodString;
|
|
45
49
|
createdAt: z.ZodISODateTime;
|
|
@@ -87,6 +91,7 @@ export declare const requestOutcomeEventSchema: z.ZodObject<{
|
|
|
87
91
|
status: z.ZodEnum<{
|
|
88
92
|
cancelled: "cancelled";
|
|
89
93
|
"completed-without-reply": "completed-without-reply";
|
|
94
|
+
deleted: "deleted";
|
|
90
95
|
destroyed: "destroyed";
|
|
91
96
|
failed: "failed";
|
|
92
97
|
"human-fallback": "human-fallback";
|
|
@@ -116,6 +121,10 @@ export declare const agentInputEventSchema: z.ZodObject<{
|
|
|
116
121
|
request: "request";
|
|
117
122
|
}>;
|
|
118
123
|
requestId: z.ZodOptional<z.ZodUUID>;
|
|
124
|
+
relationship: z.ZodOptional<z.ZodEnum<{
|
|
125
|
+
family: "family";
|
|
126
|
+
peer: "peer";
|
|
127
|
+
}>>;
|
|
119
128
|
}, z.core.$strict>>;
|
|
120
129
|
id: z.ZodUUID;
|
|
121
130
|
source: z.ZodEnum<{
|
|
@@ -136,6 +145,8 @@ export declare const agentInputEventSchema: z.ZodObject<{
|
|
|
136
145
|
memberIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
137
146
|
}, z.core.$strict>>;
|
|
138
147
|
purpose: z.ZodOptional<z.ZodLiteral<"completion-refusal">>;
|
|
148
|
+
requestHash: z.ZodOptional<z.ZodString>;
|
|
149
|
+
deadline: z.ZodOptional<z.ZodISODateTime>;
|
|
139
150
|
}, z.core.$strict>;
|
|
140
151
|
}, z.core.$loose>;
|
|
141
152
|
export type AgentInputEvent = z.infer<typeof agentInputEventSchema>;
|
package/dist/contract/index.js
CHANGED
|
@@ -34,11 +34,13 @@ var askRequestSchema = z.object({
|
|
|
34
34
|
}).strict();
|
|
35
35
|
|
|
36
36
|
// ../contract/src/conversations.ts
|
|
37
|
+
var conversationRelationshipSchema = z2.enum(["family", "peer"]);
|
|
37
38
|
var conversationAttributionSchema = z2.object({
|
|
38
39
|
senderRunId: z2.uuid(),
|
|
39
40
|
recipientRunId: z2.uuid(),
|
|
40
41
|
kind: z2.enum(["request", "progress", "follow-up", "reply"]),
|
|
41
|
-
requestId: z2.uuid().optional()
|
|
42
|
+
requestId: z2.uuid().optional(),
|
|
43
|
+
relationship: conversationRelationshipSchema.optional()
|
|
42
44
|
}).strict();
|
|
43
45
|
var conversationMessageSchema = conversationAttributionSchema.extend({
|
|
44
46
|
id: z2.uuid(),
|
|
@@ -55,12 +57,28 @@ var conversationMessageSchema = conversationAttributionSchema.extend({
|
|
|
55
57
|
});
|
|
56
58
|
var requestOutcomeSchema = z2.object({
|
|
57
59
|
requestId: z2.uuid(),
|
|
58
|
-
|
|
60
|
+
/** `deleted`: a peer recipient's record was deleted while the request was open. */
|
|
61
|
+
status: z2.enum(["replied", "replied-late", "completed-without-reply", "failed", "cancelled", "destroyed", "timed-out", "sender-closed", "human-fallback", "deleted"]),
|
|
59
62
|
observedAt: z2.iso.datetime(),
|
|
60
63
|
replyId: z2.uuid().optional()
|
|
61
64
|
}).strict();
|
|
62
65
|
var conversationStateSchema = z2.object({ messages: z2.array(conversationMessageSchema).max(1024), outcomes: z2.array(requestOutcomeSchema).max(1024) }).strict();
|
|
63
|
-
var
|
|
66
|
+
var CURSOR = /^(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?Z)~([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$/i;
|
|
67
|
+
var conversationCursorSchema = z2.string().max(128).regex(CURSOR, "Not a history cursor; pass nextBefore from an earlier page");
|
|
68
|
+
function encodeConversationCursor(message2) {
|
|
69
|
+
return `${message2.createdAt}~${message2.id}`;
|
|
70
|
+
}
|
|
71
|
+
function decodeConversationCursor(cursor) {
|
|
72
|
+
const match = CURSOR.exec(cursor);
|
|
73
|
+
if (!match) throw new Error("Not a history cursor");
|
|
74
|
+
return { createdAt: match[1], id: match[2] };
|
|
75
|
+
}
|
|
76
|
+
var CONVERSATION_PAGE_MESSAGES = 1024;
|
|
77
|
+
var conversationInspectResultSchema = conversationStateSchema.extend({
|
|
78
|
+
hint: z2.string().optional(),
|
|
79
|
+
/** Present when older messages exist: pass it as `before` to read the page before this one. */
|
|
80
|
+
nextBefore: conversationCursorSchema.optional()
|
|
81
|
+
});
|
|
64
82
|
var inboxReserveResultSchema = z2.object({
|
|
65
83
|
messages: z2.array(conversationMessageSchema).max(32),
|
|
66
84
|
outcomes: z2.array(requestOutcomeSchema).max(32),
|
|
@@ -88,7 +106,7 @@ var conversationSendRequestSchema = z2.object({
|
|
|
88
106
|
resume: z2.boolean().optional()
|
|
89
107
|
}).strict().refine((value) => value.timeoutSeconds <= MAX_CONVERSATION_REQUEST_SECONDS || value.resume === true && value.kind === "request", { path: ["timeoutSeconds"], message: "Only --resume requests accept deadlines above 1800 seconds (maximum 86400)" }).refine((value) => (value.kind === "reply" || value.kind === "follow-up") === (value.requestId !== void 0), { message: "Replies and follow-ups require a request ID; new messages must omit it" }).refine((value) => !value.resume || value.kind === "request" || value.kind === "progress", { message: "--resume requires a new request or progress instruction" });
|
|
90
108
|
var conversationSendResultSchema = z2.object({ message: conversationMessageSchema, delivery: z2.enum(["queued", "delivered", "consumed", "not-delivered"]), outcome: requestOutcomeSchema.optional() }).strict();
|
|
91
|
-
var conversationInspectRequestSchema = z2.object({ recipientRunId: z2.uuid() }).strict();
|
|
109
|
+
var conversationInspectRequestSchema = z2.object({ recipientRunId: z2.uuid(), before: conversationCursorSchema.optional() }).strict();
|
|
92
110
|
var conversationCancelRequestSchema = z2.object({ requestId: z2.uuid() }).strict();
|
|
93
111
|
var requestWaitRequestSchema = z2.object({
|
|
94
112
|
requestIds: z2.array(z2.uuid()).min(1).max(32).refine((ids) => new Set(ids).size === ids.length),
|
|
@@ -841,7 +859,11 @@ var agentInputSchema = z9.object({
|
|
|
841
859
|
/** A completion refusal Cezar queued for a closed session (hearsay-tools/cezarion#1301): its
|
|
842
860
|
* delivery is the nudge's turn, bounded by the nudge's reply bound, and a session that closes
|
|
843
861
|
* before it is a failed delivery. Absent on every other input and on records written before. */
|
|
844
|
-
purpose: z9.literal("completion-refusal").optional()
|
|
862
|
+
purpose: z9.literal("completion-refusal").optional(),
|
|
863
|
+
/** A peer message's own hash and request deadline (hearsay-tools/cezarion#1990): the sender's
|
|
864
|
+
* ledger can be deleted before the recipient reads it. Absent on family and lifecycle inputs. */
|
|
865
|
+
requestHash: z9.string().regex(/^[0-9a-f]{64}$/).optional(),
|
|
866
|
+
deadline: z9.iso.datetime().optional()
|
|
845
867
|
}).strict();
|
|
846
868
|
var workerInspectionSchema = z9.object({
|
|
847
869
|
workerId: z9.uuid(),
|
|
@@ -5279,6 +5301,7 @@ export {
|
|
|
5279
5301
|
ATTENTION_RUNGS,
|
|
5280
5302
|
CI_WAIT_LIMITATION,
|
|
5281
5303
|
CI_WAIT_RECEIPT_INSTRUCTION,
|
|
5304
|
+
CONVERSATION_PAGE_MESSAGES,
|
|
5282
5305
|
DEFAULT_AGENT_ACCOUNT_ID,
|
|
5283
5306
|
DEFAULT_CONVERSATION_REQUEST_SECONDS,
|
|
5284
5307
|
DEFAULT_WEBHOOK_TRIGGERS,
|
|
@@ -5464,10 +5487,12 @@ export {
|
|
|
5464
5487
|
continueSchema,
|
|
5465
5488
|
conversationAttributionSchema,
|
|
5466
5489
|
conversationCancelRequestSchema,
|
|
5490
|
+
conversationCursorSchema,
|
|
5467
5491
|
conversationInspectRequestSchema,
|
|
5468
5492
|
conversationInspectResultSchema,
|
|
5469
5493
|
conversationMessageEventSchema,
|
|
5470
5494
|
conversationMessageSchema,
|
|
5495
|
+
conversationRelationshipSchema,
|
|
5471
5496
|
conversationSendRequestSchema,
|
|
5472
5497
|
conversationSendResultSchema,
|
|
5473
5498
|
conversationStateSchema,
|
|
@@ -5482,6 +5507,7 @@ export {
|
|
|
5482
5507
|
createRunInputSchema,
|
|
5483
5508
|
createRunResponseSchema,
|
|
5484
5509
|
cronOf,
|
|
5510
|
+
decodeConversationCursor,
|
|
5485
5511
|
defined,
|
|
5486
5512
|
delegationErrorResponseSchema,
|
|
5487
5513
|
delegationStateSchema,
|
|
@@ -5501,6 +5527,7 @@ export {
|
|
|
5501
5527
|
editQueuedMessageResponseSchema,
|
|
5502
5528
|
effortFieldSchema,
|
|
5503
5529
|
effortLevelSchema,
|
|
5530
|
+
encodeConversationCursor,
|
|
5504
5531
|
engineOwnsRun,
|
|
5505
5532
|
exactLineIndex,
|
|
5506
5533
|
fileLinkQuerySchema,
|
package/dist/contract/runs.d.ts
CHANGED
|
@@ -266,6 +266,10 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
266
266
|
request: "request";
|
|
267
267
|
}>;
|
|
268
268
|
requestId: z.ZodOptional<z.ZodUUID>;
|
|
269
|
+
relationship: z.ZodOptional<z.ZodEnum<{
|
|
270
|
+
family: "family";
|
|
271
|
+
peer: "peer";
|
|
272
|
+
}>>;
|
|
269
273
|
id: z.ZodUUID;
|
|
270
274
|
text: z.ZodString;
|
|
271
275
|
createdAt: z.ZodISODateTime;
|
|
@@ -298,6 +302,7 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
298
302
|
status: z.ZodEnum<{
|
|
299
303
|
cancelled: "cancelled";
|
|
300
304
|
"completed-without-reply": "completed-without-reply";
|
|
305
|
+
deleted: "deleted";
|
|
301
306
|
destroyed: "destroyed";
|
|
302
307
|
failed: "failed";
|
|
303
308
|
"human-fallback": "human-fallback";
|
|
@@ -342,6 +347,7 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
342
347
|
status: z.ZodEnum<{
|
|
343
348
|
cancelled: "cancelled";
|
|
344
349
|
"completed-without-reply": "completed-without-reply";
|
|
350
|
+
deleted: "deleted";
|
|
345
351
|
destroyed: "destroyed";
|
|
346
352
|
failed: "failed";
|
|
347
353
|
"human-fallback": "human-fallback";
|
|
@@ -397,6 +403,7 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
397
403
|
status: z.ZodEnum<{
|
|
398
404
|
cancelled: "cancelled";
|
|
399
405
|
"completed-without-reply": "completed-without-reply";
|
|
406
|
+
deleted: "deleted";
|
|
400
407
|
destroyed: "destroyed";
|
|
401
408
|
failed: "failed";
|
|
402
409
|
"human-fallback": "human-fallback";
|
|
@@ -487,6 +494,7 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
487
494
|
status: z.ZodEnum<{
|
|
488
495
|
cancelled: "cancelled";
|
|
489
496
|
"completed-without-reply": "completed-without-reply";
|
|
497
|
+
deleted: "deleted";
|
|
490
498
|
destroyed: "destroyed";
|
|
491
499
|
failed: "failed";
|
|
492
500
|
"human-fallback": "human-fallback";
|
|
@@ -542,6 +550,7 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
542
550
|
status: z.ZodEnum<{
|
|
543
551
|
cancelled: "cancelled";
|
|
544
552
|
"completed-without-reply": "completed-without-reply";
|
|
553
|
+
deleted: "deleted";
|
|
545
554
|
destroyed: "destroyed";
|
|
546
555
|
failed: "failed";
|
|
547
556
|
"human-fallback": "human-fallback";
|
|
@@ -656,6 +665,10 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
656
665
|
request: "request";
|
|
657
666
|
}>;
|
|
658
667
|
requestId: z.ZodOptional<z.ZodUUID>;
|
|
668
|
+
relationship: z.ZodOptional<z.ZodEnum<{
|
|
669
|
+
family: "family";
|
|
670
|
+
peer: "peer";
|
|
671
|
+
}>>;
|
|
659
672
|
}, z.core.$strict>>;
|
|
660
673
|
id: z.ZodUUID;
|
|
661
674
|
source: z.ZodEnum<{
|
|
@@ -676,6 +689,8 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
676
689
|
memberIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
677
690
|
}, z.core.$strict>>;
|
|
678
691
|
purpose: z.ZodOptional<z.ZodLiteral<"completion-refusal">>;
|
|
692
|
+
requestHash: z.ZodOptional<z.ZodString>;
|
|
693
|
+
deadline: z.ZodOptional<z.ZodISODateTime>;
|
|
679
694
|
}, z.core.$strict>>>;
|
|
680
695
|
waits: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
681
696
|
prUrl: z.ZodString;
|
|
@@ -892,6 +907,7 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
892
907
|
status: z.ZodEnum<{
|
|
893
908
|
cancelled: "cancelled";
|
|
894
909
|
"completed-without-reply": "completed-without-reply";
|
|
910
|
+
deleted: "deleted";
|
|
895
911
|
destroyed: "destroyed";
|
|
896
912
|
failed: "failed";
|
|
897
913
|
"human-fallback": "human-fallback";
|
|
@@ -1175,6 +1191,7 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
1175
1191
|
status: z.ZodEnum<{
|
|
1176
1192
|
cancelled: "cancelled";
|
|
1177
1193
|
"completed-without-reply": "completed-without-reply";
|
|
1194
|
+
deleted: "deleted";
|
|
1178
1195
|
destroyed: "destroyed";
|
|
1179
1196
|
failed: "failed";
|
|
1180
1197
|
"human-fallback": "human-fallback";
|
|
@@ -1554,6 +1571,10 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
1554
1571
|
request: "request";
|
|
1555
1572
|
}>;
|
|
1556
1573
|
requestId: z.ZodOptional<z.ZodUUID>;
|
|
1574
|
+
relationship: z.ZodOptional<z.ZodEnum<{
|
|
1575
|
+
family: "family";
|
|
1576
|
+
peer: "peer";
|
|
1577
|
+
}>>;
|
|
1557
1578
|
id: z.ZodUUID;
|
|
1558
1579
|
text: z.ZodString;
|
|
1559
1580
|
createdAt: z.ZodISODateTime;
|
|
@@ -1586,6 +1607,7 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
1586
1607
|
status: z.ZodEnum<{
|
|
1587
1608
|
cancelled: "cancelled";
|
|
1588
1609
|
"completed-without-reply": "completed-without-reply";
|
|
1610
|
+
deleted: "deleted";
|
|
1589
1611
|
destroyed: "destroyed";
|
|
1590
1612
|
failed: "failed";
|
|
1591
1613
|
"human-fallback": "human-fallback";
|
|
@@ -1630,6 +1652,7 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
1630
1652
|
status: z.ZodEnum<{
|
|
1631
1653
|
cancelled: "cancelled";
|
|
1632
1654
|
"completed-without-reply": "completed-without-reply";
|
|
1655
|
+
deleted: "deleted";
|
|
1633
1656
|
destroyed: "destroyed";
|
|
1634
1657
|
failed: "failed";
|
|
1635
1658
|
"human-fallback": "human-fallback";
|
|
@@ -1685,6 +1708,7 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
1685
1708
|
status: z.ZodEnum<{
|
|
1686
1709
|
cancelled: "cancelled";
|
|
1687
1710
|
"completed-without-reply": "completed-without-reply";
|
|
1711
|
+
deleted: "deleted";
|
|
1688
1712
|
destroyed: "destroyed";
|
|
1689
1713
|
failed: "failed";
|
|
1690
1714
|
"human-fallback": "human-fallback";
|
|
@@ -1775,6 +1799,7 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
1775
1799
|
status: z.ZodEnum<{
|
|
1776
1800
|
cancelled: "cancelled";
|
|
1777
1801
|
"completed-without-reply": "completed-without-reply";
|
|
1802
|
+
deleted: "deleted";
|
|
1778
1803
|
destroyed: "destroyed";
|
|
1779
1804
|
failed: "failed";
|
|
1780
1805
|
"human-fallback": "human-fallback";
|
|
@@ -1830,6 +1855,7 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
1830
1855
|
status: z.ZodEnum<{
|
|
1831
1856
|
cancelled: "cancelled";
|
|
1832
1857
|
"completed-without-reply": "completed-without-reply";
|
|
1858
|
+
deleted: "deleted";
|
|
1833
1859
|
destroyed: "destroyed";
|
|
1834
1860
|
failed: "failed";
|
|
1835
1861
|
"human-fallback": "human-fallback";
|
|
@@ -1944,6 +1970,10 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
1944
1970
|
request: "request";
|
|
1945
1971
|
}>;
|
|
1946
1972
|
requestId: z.ZodOptional<z.ZodUUID>;
|
|
1973
|
+
relationship: z.ZodOptional<z.ZodEnum<{
|
|
1974
|
+
family: "family";
|
|
1975
|
+
peer: "peer";
|
|
1976
|
+
}>>;
|
|
1947
1977
|
}, z.core.$strict>>;
|
|
1948
1978
|
id: z.ZodUUID;
|
|
1949
1979
|
source: z.ZodEnum<{
|
|
@@ -1964,6 +1994,8 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
1964
1994
|
memberIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
1965
1995
|
}, z.core.$strict>>;
|
|
1966
1996
|
purpose: z.ZodOptional<z.ZodLiteral<"completion-refusal">>;
|
|
1997
|
+
requestHash: z.ZodOptional<z.ZodString>;
|
|
1998
|
+
deadline: z.ZodOptional<z.ZodISODateTime>;
|
|
1967
1999
|
}, z.core.$strict>>>;
|
|
1968
2000
|
waits: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1969
2001
|
prUrl: z.ZodString;
|
|
@@ -2180,6 +2212,7 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
2180
2212
|
status: z.ZodEnum<{
|
|
2181
2213
|
cancelled: "cancelled";
|
|
2182
2214
|
"completed-without-reply": "completed-without-reply";
|
|
2215
|
+
deleted: "deleted";
|
|
2183
2216
|
destroyed: "destroyed";
|
|
2184
2217
|
failed: "failed";
|
|
2185
2218
|
"human-fallback": "human-fallback";
|
|
@@ -2463,6 +2496,7 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
2463
2496
|
status: z.ZodEnum<{
|
|
2464
2497
|
cancelled: "cancelled";
|
|
2465
2498
|
"completed-without-reply": "completed-without-reply";
|
|
2499
|
+
deleted: "deleted";
|
|
2466
2500
|
destroyed: "destroyed";
|
|
2467
2501
|
failed: "failed";
|
|
2468
2502
|
"human-fallback": "human-fallback";
|
|
@@ -3753,6 +3787,10 @@ export declare const createRunResponseSchema: z.ZodObject<{
|
|
|
3753
3787
|
request: "request";
|
|
3754
3788
|
}>;
|
|
3755
3789
|
requestId: z.ZodOptional<z.ZodUUID>;
|
|
3790
|
+
relationship: z.ZodOptional<z.ZodEnum<{
|
|
3791
|
+
family: "family";
|
|
3792
|
+
peer: "peer";
|
|
3793
|
+
}>>;
|
|
3756
3794
|
id: z.ZodUUID;
|
|
3757
3795
|
text: z.ZodString;
|
|
3758
3796
|
createdAt: z.ZodISODateTime;
|
|
@@ -3785,6 +3823,7 @@ export declare const createRunResponseSchema: z.ZodObject<{
|
|
|
3785
3823
|
status: z.ZodEnum<{
|
|
3786
3824
|
cancelled: "cancelled";
|
|
3787
3825
|
"completed-without-reply": "completed-without-reply";
|
|
3826
|
+
deleted: "deleted";
|
|
3788
3827
|
destroyed: "destroyed";
|
|
3789
3828
|
failed: "failed";
|
|
3790
3829
|
"human-fallback": "human-fallback";
|
|
@@ -3829,6 +3868,7 @@ export declare const createRunResponseSchema: z.ZodObject<{
|
|
|
3829
3868
|
status: z.ZodEnum<{
|
|
3830
3869
|
cancelled: "cancelled";
|
|
3831
3870
|
"completed-without-reply": "completed-without-reply";
|
|
3871
|
+
deleted: "deleted";
|
|
3832
3872
|
destroyed: "destroyed";
|
|
3833
3873
|
failed: "failed";
|
|
3834
3874
|
"human-fallback": "human-fallback";
|
|
@@ -3884,6 +3924,7 @@ export declare const createRunResponseSchema: z.ZodObject<{
|
|
|
3884
3924
|
status: z.ZodEnum<{
|
|
3885
3925
|
cancelled: "cancelled";
|
|
3886
3926
|
"completed-without-reply": "completed-without-reply";
|
|
3927
|
+
deleted: "deleted";
|
|
3887
3928
|
destroyed: "destroyed";
|
|
3888
3929
|
failed: "failed";
|
|
3889
3930
|
"human-fallback": "human-fallback";
|
|
@@ -3974,6 +4015,7 @@ export declare const createRunResponseSchema: z.ZodObject<{
|
|
|
3974
4015
|
status: z.ZodEnum<{
|
|
3975
4016
|
cancelled: "cancelled";
|
|
3976
4017
|
"completed-without-reply": "completed-without-reply";
|
|
4018
|
+
deleted: "deleted";
|
|
3977
4019
|
destroyed: "destroyed";
|
|
3978
4020
|
failed: "failed";
|
|
3979
4021
|
"human-fallback": "human-fallback";
|
|
@@ -4029,6 +4071,7 @@ export declare const createRunResponseSchema: z.ZodObject<{
|
|
|
4029
4071
|
status: z.ZodEnum<{
|
|
4030
4072
|
cancelled: "cancelled";
|
|
4031
4073
|
"completed-without-reply": "completed-without-reply";
|
|
4074
|
+
deleted: "deleted";
|
|
4032
4075
|
destroyed: "destroyed";
|
|
4033
4076
|
failed: "failed";
|
|
4034
4077
|
"human-fallback": "human-fallback";
|
|
@@ -4143,6 +4186,10 @@ export declare const createRunResponseSchema: z.ZodObject<{
|
|
|
4143
4186
|
request: "request";
|
|
4144
4187
|
}>;
|
|
4145
4188
|
requestId: z.ZodOptional<z.ZodUUID>;
|
|
4189
|
+
relationship: z.ZodOptional<z.ZodEnum<{
|
|
4190
|
+
family: "family";
|
|
4191
|
+
peer: "peer";
|
|
4192
|
+
}>>;
|
|
4146
4193
|
}, z.core.$strict>>;
|
|
4147
4194
|
id: z.ZodUUID;
|
|
4148
4195
|
source: z.ZodEnum<{
|
|
@@ -4163,6 +4210,8 @@ export declare const createRunResponseSchema: z.ZodObject<{
|
|
|
4163
4210
|
memberIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
4164
4211
|
}, z.core.$strict>>;
|
|
4165
4212
|
purpose: z.ZodOptional<z.ZodLiteral<"completion-refusal">>;
|
|
4213
|
+
requestHash: z.ZodOptional<z.ZodString>;
|
|
4214
|
+
deadline: z.ZodOptional<z.ZodISODateTime>;
|
|
4166
4215
|
}, z.core.$strict>>>;
|
|
4167
4216
|
waits: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4168
4217
|
prUrl: z.ZodString;
|
|
@@ -4379,6 +4428,7 @@ export declare const createRunResponseSchema: z.ZodObject<{
|
|
|
4379
4428
|
status: z.ZodEnum<{
|
|
4380
4429
|
cancelled: "cancelled";
|
|
4381
4430
|
"completed-without-reply": "completed-without-reply";
|
|
4431
|
+
deleted: "deleted";
|
|
4382
4432
|
destroyed: "destroyed";
|
|
4383
4433
|
failed: "failed";
|
|
4384
4434
|
"human-fallback": "human-fallback";
|
|
@@ -4662,6 +4712,7 @@ export declare const createRunResponseSchema: z.ZodObject<{
|
|
|
4662
4712
|
status: z.ZodEnum<{
|
|
4663
4713
|
cancelled: "cancelled";
|
|
4664
4714
|
"completed-without-reply": "completed-without-reply";
|
|
4715
|
+
deleted: "deleted";
|
|
4665
4716
|
destroyed: "destroyed";
|
|
4666
4717
|
failed: "failed";
|
|
4667
4718
|
"human-fallback": "human-fallback";
|
package/dist/contract/waits.d.ts
CHANGED
|
@@ -359,6 +359,7 @@ export declare const workerWaitEntrySchema: z.ZodObject<{
|
|
|
359
359
|
status: z.ZodEnum<{
|
|
360
360
|
cancelled: "cancelled";
|
|
361
361
|
"completed-without-reply": "completed-without-reply";
|
|
362
|
+
deleted: "deleted";
|
|
362
363
|
destroyed: "destroyed";
|
|
363
364
|
failed: "failed";
|
|
364
365
|
"human-fallback": "human-fallback";
|
|
@@ -600,6 +601,7 @@ export declare const waitSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
600
601
|
status: z.ZodEnum<{
|
|
601
602
|
cancelled: "cancelled";
|
|
602
603
|
"completed-without-reply": "completed-without-reply";
|
|
604
|
+
deleted: "deleted";
|
|
603
605
|
destroyed: "destroyed";
|
|
604
606
|
failed: "failed";
|
|
605
607
|
"human-fallback": "human-fallback";
|