@wjarka/cezarion 0.14.6 → 0.14.7-pr488.741

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.
Files changed (126) hide show
  1. package/README.md +37 -2
  2. package/dist/agent-config/model-settings/shared.d.ts +2 -1
  3. package/dist/agent-config/model-settings/shared.js +1 -1
  4. package/dist/agent-config/model-settings/shared.js.map +1 -1
  5. package/dist/ci-wait/client.d.ts +4 -0
  6. package/dist/ci-wait/client.js +67 -0
  7. package/dist/ci-wait/client.js.map +1 -0
  8. package/dist/ci-wait/controller.d.ts +78 -0
  9. package/dist/ci-wait/controller.js +148 -0
  10. package/dist/ci-wait/controller.js.map +1 -0
  11. package/dist/ci-wait/github.d.ts +61 -0
  12. package/dist/ci-wait/github.js +209 -0
  13. package/dist/ci-wait/github.js.map +1 -0
  14. package/dist/ci-wait/injection.d.ts +3 -0
  15. package/dist/ci-wait/injection.js +26 -0
  16. package/dist/ci-wait/injection.js.map +1 -0
  17. package/dist/ci-wait/mcp.d.ts +97 -0
  18. package/dist/ci-wait/mcp.js +35 -0
  19. package/dist/ci-wait/mcp.js.map +1 -0
  20. package/dist/ci-wait/resources.d.ts +7 -0
  21. package/dist/ci-wait/resources.js +32 -0
  22. package/dist/ci-wait/resources.js.map +1 -0
  23. package/dist/ci-wait/supervisor.d.ts +21 -0
  24. package/dist/ci-wait/supervisor.js +163 -0
  25. package/dist/ci-wait/supervisor.js.map +1 -0
  26. package/dist/contract/ci-wait.d.ts +151 -0
  27. package/dist/contract/conversations.d.ts +105 -0
  28. package/dist/contract/delegation.d.ts +17 -0
  29. package/dist/contract/events.d.ts +10 -0
  30. package/dist/contract/index.d.ts +1 -0
  31. package/dist/contract/index.js +1046 -936
  32. package/dist/contract/runs.d.ts +496 -0
  33. package/dist/contract/skills.d.ts +99 -0
  34. package/dist/core/agent-env.js +2 -0
  35. package/dist/core/agent-env.js.map +1 -1
  36. package/dist/core/agent-runner.d.ts +6 -0
  37. package/dist/core/agent-runner.js +1 -0
  38. package/dist/core/agent-runner.js.map +1 -1
  39. package/dist/core/claude-cli-runner.js +10 -0
  40. package/dist/core/claude-cli-runner.js.map +1 -1
  41. package/dist/core/codex-app-server-runner.js +5 -1
  42. package/dist/core/codex-app-server-runner.js.map +1 -1
  43. package/dist/core/codex-app-server-transport.js +3 -1
  44. package/dist/core/codex-app-server-transport.js.map +1 -1
  45. package/dist/core/cursor-acp-runner.js +9 -1
  46. package/dist/core/cursor-acp-runner.js.map +1 -1
  47. package/dist/core/opencode-server-runner.js +6 -2
  48. package/dist/core/opencode-server-runner.js.map +1 -1
  49. package/dist/core/pi-runner.js +7 -1
  50. package/dist/core/pi-runner.js.map +1 -1
  51. package/dist/delegation/cli.js +110 -10
  52. package/dist/delegation/cli.js.map +1 -1
  53. package/dist/delegation/conversations.js +2 -1
  54. package/dist/delegation/conversations.js.map +1 -1
  55. package/dist/delegation/input.d.ts +7 -0
  56. package/dist/delegation/input.js +27 -0
  57. package/dist/delegation/input.js.map +1 -1
  58. package/dist/delegation/provision.js +4 -1
  59. package/dist/delegation/provision.js.map +1 -1
  60. package/dist/delegation/routes.d.ts +78 -0
  61. package/dist/delegation/routes.js +4 -1
  62. package/dist/delegation/routes.js.map +1 -1
  63. package/dist/delegation/service.d.ts +6 -2
  64. package/dist/delegation/service.js +113 -9
  65. package/dist/delegation/service.js.map +1 -1
  66. package/dist/delegation/transport.d.ts +78 -0
  67. package/dist/runs/delegation-state.d.ts +2 -0
  68. package/dist/runs/run-index.js +2 -3
  69. package/dist/runs/run-index.js.map +1 -1
  70. package/dist/runs/store.d.ts +534 -3
  71. package/dist/runs/store.js +186 -6
  72. package/dist/runs/store.js.map +1 -1
  73. package/dist/server/server.d.ts +1530 -12
  74. package/dist/workflows/run.d.ts +39 -1
  75. package/dist/workflows/run.js +606 -50
  76. package/dist/workflows/run.js.map +1 -1
  77. package/package.json +4 -3
  78. package/scripts/mock-ci-tool.mjs +53 -0
  79. package/scripts/mock-claude.mjs +8 -0
  80. package/scripts/mock-codex-app-server.mjs +212 -0
  81. package/scripts/mock-cursor-acp.mjs +6 -2
  82. package/scripts/mock-opencode-serve.mjs +392 -0
  83. package/scripts/mock-pi-rpc.mjs +7 -0
  84. package/scripts/pi-ci-wait.mjs +14 -0
  85. package/web/dist/assets/{agent-accounts-lP_xK83o.js → agent-accounts-DveiLHoy.js} +1 -1
  86. package/web/dist/assets/{alert-dialog-CmDuefYh.js → alert-dialog-BRmsCA3M.js} +1 -1
  87. package/web/dist/assets/{collapsible-BqX8REmY.js → collapsible-BWfM2PdZ.js} +1 -1
  88. package/web/dist/assets/{commit-list-BWvv1H7A.js → commit-list-C-rCgcKm.js} +1 -1
  89. package/web/dist/assets/{compare-variants-Bg7eLW3z.js → compare-variants-Ccp9IYp-.js} +1 -1
  90. package/web/dist/assets/{diff-0GBum40Q2.js → diff-BvZErqfg2.js} +2 -2
  91. package/web/dist/assets/{diff-controls-HwWHHait.js → diff-controls-BFI8ngtw.js} +1 -1
  92. package/web/dist/assets/{diff-stat-mNkhAc5m.js → diff-stat-CVFxf2Ar.js} +1 -1
  93. package/web/dist/assets/{diff-view-DW64doDY.js → diff-view-B35r8kQK.js} +1 -1
  94. package/web/dist/assets/{dropdown-menu-sZjYPcLh.js → dropdown-menu-C_fj6kzP.js} +1 -1
  95. package/web/dist/assets/{git-toolbar-DBW5EIcY.js → git-toolbar-BaqAvRC1.js} +1 -1
  96. package/web/dist/assets/{github-CkZ4hWI5.js → github-DIkBazPA.js} +1 -1
  97. package/web/dist/assets/{image-preview-DZicGNkU.js → image-preview-BBqbaKaq.js} +1 -1
  98. package/web/dist/assets/{index-DWWI-B9n.js → index-BIae70yp.js} +3 -3
  99. package/web/dist/assets/index-CXZukB1O.css +1 -0
  100. package/web/dist/assets/{markdown-AY2K3kIV.js → markdown-kouQNPB6.js} +1 -1
  101. package/web/dist/assets/{pill-CcJqA1cL.js → pill-mHX_rKXP.js} +1 -1
  102. package/web/dist/assets/{project-router-SwsXRKXs.js → project-router-Ds9EvxjN.js} +1 -1
  103. package/web/dist/assets/{prompt-templates-iV2WD2jy.js → prompt-templates-AaKKdIiY.js} +1 -1
  104. package/web/dist/assets/{repo-git-BW3TOs3U.js → repo-git-6StCwqhj.js} +1 -1
  105. package/web/dist/assets/{run-diff-DPUNj56q.js → run-diff-fChfUdwr.js} +1 -1
  106. package/web/dist/assets/run-header-B3ZPhDZr.js +1 -0
  107. package/web/dist/assets/{run-header-CSaJIGXl.css → run-header-BJQfFL2l.css} +1 -1
  108. package/web/dist/assets/{skills-Dv8Vwv5D.js → skills-DSWaVvcu.js} +1 -1
  109. package/web/dist/assets/{tab-link-DSftvkZS.js → tab-link-Db6yDTIQ.js} +1 -1
  110. package/web/dist/assets/{task-changes-CTCuVls1.js → task-changes-DdmerESW.js} +1 -1
  111. package/web/dist/assets/{task-commits-weJQ5GSl.js → task-commits-Co-bb1P6.js} +1 -1
  112. package/web/dist/assets/{task-files-B4bUimY8.js → task-files-B2KASfyL.js} +1 -1
  113. package/web/dist/assets/{task-thread-BuXrVB9K.js → task-thread-8kGLJO4Q.js} +4 -4
  114. package/web/dist/assets/task-thread-Dc3wplva.css +1 -0
  115. package/web/dist/assets/{textarea-CxRdTWlq.js → textarea-Qhdzn_oU.js} +1 -1
  116. package/web/dist/assets/thread-loading-C6ENzZYk.js +1 -0
  117. package/web/dist/assets/{token-metrics-Z3UFYbuD.js → token-metrics-BsT6Rqji.js} +1 -1
  118. package/web/dist/assets/utils-VFstALJW.js +64 -0
  119. package/web/dist/assets/{workflows-vA27Yi8W.js → workflows-UKoofNFJ.js} +1 -1
  120. package/web/dist/assets/{zoomable-image-DUE1KFJ0.js → zoomable-image-DpL5gtv4.js} +1 -1
  121. package/web/dist/index.html +14 -14
  122. package/web/dist/assets/index-DK0Mkv2m.css +0 -1
  123. package/web/dist/assets/run-header-DbDluWoV.js +0 -1
  124. package/web/dist/assets/task-thread-DMRD0IVt.css +0 -1
  125. package/web/dist/assets/thread-loading-J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AK,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,sDAAsD,EAAC,CAAC,CAAC;gBACpL,CAAC;YACH,CAAC;YACD,OAAO,OAAO,EAAE,CAAC;QACnB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,MAAM,CAAC,OAAO;gBAAE,OAAO,OAAO,EAAE,CAAC;YACrC,OAAO,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,EAAC,UAAU,EAAC,KAAK,YAAY,aAAa,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,sDAAsD,EAAC,CAAC,CAAC;QACpL,CAAC;gBAAS,CAAC;YAAC,OAAO,EAAE,EAAE,CAAC;QAAC,CAAC;IAC5B,CAAC;CACF"}
@@ -0,0 +1,151 @@
1
+ import { z } from 'zod';
2
+ /** CI observations never authorize merging, accepting review, or completing a task. */
3
+ export declare const CI_WAIT_LIMITATION = "Passing reported checks does not prove that every expected workflow has appeared or that the PR is merge-ready. This observation is not merge approval.";
4
+ export declare const CI_WAIT_RECEIPT_INSTRUCTION: string;
5
+ export declare const ciPrUrlSchema: z.ZodString;
6
+ export declare const ciWaitRequestSchema: z.ZodObject<{
7
+ pr: z.ZodString;
8
+ timeout_seconds: z.ZodDefault<z.ZodNumber>;
9
+ }, z.core.$strict>;
10
+ export type CiWaitRequest = z.infer<typeof ciWaitRequestSchema>;
11
+ export declare const ciPrIdentitySchema: z.ZodObject<{
12
+ prUrl: z.ZodString;
13
+ repository: z.ZodString;
14
+ prNumber: z.ZodNumber;
15
+ headSha: z.ZodString;
16
+ }, z.core.$strict>;
17
+ export type CiPrIdentity = z.infer<typeof ciPrIdentitySchema>;
18
+ export declare const ciWaitOutcomeSchema: z.ZodEnum<{
19
+ cancelled: "cancelled";
20
+ deadline: "deadline";
21
+ error: "error";
22
+ failed: "failed";
23
+ head_changed: "head_changed";
24
+ no_checks: "no_checks";
25
+ passed: "passed";
26
+ skipped: "skipped";
27
+ }>;
28
+ export declare const ciWaitErrorCodeSchema: z.ZodEnum<{
29
+ authentication: "authentication";
30
+ capacity: "capacity";
31
+ command_failed: "command_failed";
32
+ gh_missing: "gh_missing";
33
+ inaccessible_pr: "inaccessible_pr";
34
+ invalid_request: "invalid_request";
35
+ malformed_data: "malformed_data";
36
+ output_limit: "output_limit";
37
+ persistence: "persistence";
38
+ query_timeout: "query_timeout";
39
+ unauthorized: "unauthorized";
40
+ unavailable: "unavailable";
41
+ unsupported_host: "unsupported_host";
42
+ wait_conflict: "wait_conflict";
43
+ }>;
44
+ export declare const ciWaitErrorSchema: z.ZodObject<{
45
+ code: z.ZodEnum<{
46
+ authentication: "authentication";
47
+ capacity: "capacity";
48
+ command_failed: "command_failed";
49
+ gh_missing: "gh_missing";
50
+ inaccessible_pr: "inaccessible_pr";
51
+ invalid_request: "invalid_request";
52
+ malformed_data: "malformed_data";
53
+ output_limit: "output_limit";
54
+ persistence: "persistence";
55
+ query_timeout: "query_timeout";
56
+ unauthorized: "unauthorized";
57
+ unavailable: "unavailable";
58
+ unsupported_host: "unsupported_host";
59
+ wait_conflict: "wait_conflict";
60
+ }>;
61
+ message: z.ZodString;
62
+ }, z.core.$strict>;
63
+ export type CiWaitError = z.infer<typeof ciWaitErrorSchema>;
64
+ export type CiWaitErrorCode = z.infer<typeof ciWaitErrorCodeSchema>;
65
+ export declare const ciWaitResultSchema: z.ZodObject<{
66
+ outcome: z.ZodEnum<{
67
+ cancelled: "cancelled";
68
+ deadline: "deadline";
69
+ error: "error";
70
+ failed: "failed";
71
+ head_changed: "head_changed";
72
+ no_checks: "no_checks";
73
+ passed: "passed";
74
+ skipped: "skipped";
75
+ }>;
76
+ headSha: z.ZodString;
77
+ observedHeadSha: z.ZodOptional<z.ZodString>;
78
+ observedAt: z.ZodISODateTime;
79
+ checks: z.ZodArray<z.ZodObject<{
80
+ name: z.ZodString;
81
+ state: z.ZodString;
82
+ link: z.ZodString;
83
+ }, z.core.$strict>>;
84
+ totalChecks: z.ZodNumber;
85
+ truncated: z.ZodBoolean;
86
+ diagnostic: z.ZodOptional<z.ZodString>;
87
+ }, z.core.$strict>;
88
+ export type CiWaitResult = z.infer<typeof ciWaitResultSchema>;
89
+ export declare const ciWaitSchema: z.ZodObject<{
90
+ prUrl: z.ZodString;
91
+ repository: z.ZodString;
92
+ prNumber: z.ZodNumber;
93
+ headSha: z.ZodString;
94
+ id: z.ZodUUID;
95
+ generation: z.ZodString;
96
+ turnId: z.ZodString;
97
+ timeoutSeconds: z.ZodNumber;
98
+ registeredAt: z.ZodISODateTime;
99
+ deadline: z.ZodISODateTime;
100
+ phase: z.ZodEnum<{
101
+ delivered: "delivered";
102
+ parked: "parked";
103
+ registered: "registered";
104
+ "wake-pending": "wake-pending";
105
+ withdrawn: "withdrawn";
106
+ }>;
107
+ result: z.ZodOptional<z.ZodObject<{
108
+ outcome: z.ZodEnum<{
109
+ cancelled: "cancelled";
110
+ deadline: "deadline";
111
+ error: "error";
112
+ failed: "failed";
113
+ head_changed: "head_changed";
114
+ no_checks: "no_checks";
115
+ passed: "passed";
116
+ skipped: "skipped";
117
+ }>;
118
+ headSha: z.ZodString;
119
+ observedHeadSha: z.ZodOptional<z.ZodString>;
120
+ observedAt: z.ZodISODateTime;
121
+ checks: z.ZodArray<z.ZodObject<{
122
+ name: z.ZodString;
123
+ state: z.ZodString;
124
+ link: z.ZodString;
125
+ }, z.core.$strict>>;
126
+ totalChecks: z.ZodNumber;
127
+ truncated: z.ZodBoolean;
128
+ diagnostic: z.ZodOptional<z.ZodString>;
129
+ }, z.core.$strict>>;
130
+ wakeId: z.ZodOptional<z.ZodString>;
131
+ deliveredAt: z.ZodOptional<z.ZodISODateTime>;
132
+ }, z.core.$strict>;
133
+ export type CiWait = z.infer<typeof ciWaitSchema>;
134
+ /** Model-facing acknowledgement; internal authority and delivery checkpoints stay private. */
135
+ export declare const ciWaitReceiptSchema: z.ZodObject<{
136
+ prUrl: z.ZodString;
137
+ repository: z.ZodString;
138
+ prNumber: z.ZodNumber;
139
+ headSha: z.ZodString;
140
+ waitId: z.ZodUUID;
141
+ registeredAt: z.ZodISODateTime;
142
+ deadline: z.ZodISODateTime;
143
+ phase: z.ZodEnum<{
144
+ delivered: "delivered";
145
+ parked: "parked";
146
+ registered: "registered";
147
+ "wake-pending": "wake-pending";
148
+ withdrawn: "withdrawn";
149
+ }>;
150
+ }, z.core.$strict>;
151
+ export type CiWaitReceipt = z.infer<typeof ciWaitReceiptSchema>;
@@ -31,6 +31,8 @@ export declare const conversationMessageSchema: z.ZodObject<{
31
31
  destroyed: "destroyed";
32
32
  late: "late";
33
33
  }>;
34
+ resumed: z.ZodOptional<z.ZodLiteral<true>>;
35
+ instruction: z.ZodOptional<z.ZodString>;
34
36
  }, z.core.$strict>;
35
37
  export type ConversationMessage = z.infer<typeof conversationMessageSchema>;
36
38
  export declare const requestOutcomeSchema: z.ZodObject<{
@@ -70,6 +72,8 @@ export declare const conversationStateSchema: z.ZodObject<{
70
72
  destroyed: "destroyed";
71
73
  late: "late";
72
74
  }>;
75
+ resumed: z.ZodOptional<z.ZodLiteral<true>>;
76
+ instruction: z.ZodOptional<z.ZodString>;
73
77
  }, z.core.$strict>>;
74
78
  outcomes: z.ZodArray<z.ZodObject<{
75
79
  requestId: z.ZodUUID;
@@ -87,6 +91,104 @@ export declare const conversationStateSchema: z.ZodObject<{
87
91
  }, z.core.$strict>>;
88
92
  }, z.core.$strict>;
89
93
  export type ConversationState = z.infer<typeof conversationStateSchema>;
94
+ export declare const conversationInspectResultSchema: z.ZodObject<{
95
+ messages: z.ZodArray<z.ZodObject<{
96
+ senderRunId: z.ZodUUID;
97
+ recipientRunId: z.ZodUUID;
98
+ kind: z.ZodEnum<{
99
+ "follow-up": "follow-up";
100
+ progress: "progress";
101
+ reply: "reply";
102
+ request: "request";
103
+ }>;
104
+ requestId: z.ZodOptional<z.ZodUUID>;
105
+ id: z.ZodUUID;
106
+ text: z.ZodString;
107
+ createdAt: z.ZodISODateTime;
108
+ deadline: z.ZodOptional<z.ZodISODateTime>;
109
+ requestHash: z.ZodString;
110
+ state: z.ZodEnum<{
111
+ accepted: "accepted";
112
+ "continuation-required": "continuation-required";
113
+ destroyed: "destroyed";
114
+ late: "late";
115
+ }>;
116
+ resumed: z.ZodOptional<z.ZodLiteral<true>>;
117
+ instruction: z.ZodOptional<z.ZodString>;
118
+ }, z.core.$strict>>;
119
+ outcomes: z.ZodArray<z.ZodObject<{
120
+ requestId: z.ZodUUID;
121
+ status: z.ZodEnum<{
122
+ cancelled: "cancelled";
123
+ "completed-without-reply": "completed-without-reply";
124
+ destroyed: "destroyed";
125
+ failed: "failed";
126
+ replied: "replied";
127
+ "sender-closed": "sender-closed";
128
+ "timed-out": "timed-out";
129
+ }>;
130
+ observedAt: z.ZodISODateTime;
131
+ replyId: z.ZodOptional<z.ZodUUID>;
132
+ }, z.core.$strict>>;
133
+ hint: z.ZodOptional<z.ZodString>;
134
+ }, z.core.$strict>;
135
+ export type ConversationInspectResult = z.infer<typeof conversationInspectResultSchema>;
136
+ export declare const inboxReserveResultSchema: z.ZodObject<{
137
+ messages: z.ZodArray<z.ZodObject<{
138
+ senderRunId: z.ZodUUID;
139
+ recipientRunId: z.ZodUUID;
140
+ kind: z.ZodEnum<{
141
+ "follow-up": "follow-up";
142
+ progress: "progress";
143
+ reply: "reply";
144
+ request: "request";
145
+ }>;
146
+ requestId: z.ZodOptional<z.ZodUUID>;
147
+ id: z.ZodUUID;
148
+ text: z.ZodString;
149
+ createdAt: z.ZodISODateTime;
150
+ deadline: z.ZodOptional<z.ZodISODateTime>;
151
+ requestHash: z.ZodString;
152
+ state: z.ZodEnum<{
153
+ accepted: "accepted";
154
+ "continuation-required": "continuation-required";
155
+ destroyed: "destroyed";
156
+ late: "late";
157
+ }>;
158
+ resumed: z.ZodOptional<z.ZodLiteral<true>>;
159
+ instruction: z.ZodOptional<z.ZodString>;
160
+ }, z.core.$strict>>;
161
+ outcomes: z.ZodArray<z.ZodObject<{
162
+ requestId: z.ZodUUID;
163
+ status: z.ZodEnum<{
164
+ cancelled: "cancelled";
165
+ "completed-without-reply": "completed-without-reply";
166
+ destroyed: "destroyed";
167
+ failed: "failed";
168
+ replied: "replied";
169
+ "sender-closed": "sender-closed";
170
+ "timed-out": "timed-out";
171
+ }>;
172
+ observedAt: z.ZodISODateTime;
173
+ replyId: z.ZodOptional<z.ZodUUID>;
174
+ }, z.core.$strict>>;
175
+ receiptId: z.ZodOptional<z.ZodUUID>;
176
+ expiresAt: z.ZodOptional<z.ZodISODateTime>;
177
+ }, z.core.$strict>;
178
+ export type InboxReserveResult = z.infer<typeof inboxReserveResultSchema>;
179
+ export declare const inboxReceiptRequestSchema: z.ZodObject<{
180
+ receiptId: z.ZodUUID;
181
+ }, z.core.$strict>;
182
+ export type InboxReceiptRequest = z.infer<typeof inboxReceiptRequestSchema>;
183
+ export declare const inboxReceiptResultSchema: z.ZodObject<{
184
+ receiptId: z.ZodUUID;
185
+ status: z.ZodEnum<{
186
+ acknowledged: "acknowledged";
187
+ "already-acknowledged": "already-acknowledged";
188
+ released: "released";
189
+ }>;
190
+ }, z.core.$strict>;
191
+ export type InboxReceiptResult = z.infer<typeof inboxReceiptResultSchema>;
90
192
  export declare const conversationSendRequestSchema: z.ZodObject<{
91
193
  id: z.ZodUUID;
92
194
  recipientRunId: z.ZodUUID;
@@ -99,6 +201,7 @@ export declare const conversationSendRequestSchema: z.ZodObject<{
99
201
  requestId: z.ZodOptional<z.ZodUUID>;
100
202
  text: z.ZodString;
101
203
  timeoutSeconds: z.ZodDefault<z.ZodNumber>;
204
+ resume: z.ZodOptional<z.ZodBoolean>;
102
205
  }, z.core.$strict>;
103
206
  export type ConversationSendRequest = z.infer<typeof conversationSendRequestSchema>;
104
207
  export declare const conversationSendResultSchema: z.ZodObject<{
@@ -123,6 +226,8 @@ export declare const conversationSendResultSchema: z.ZodObject<{
123
226
  destroyed: "destroyed";
124
227
  late: "late";
125
228
  }>;
229
+ resumed: z.ZodOptional<z.ZodLiteral<true>>;
230
+ instruction: z.ZodOptional<z.ZodString>;
126
231
  }, z.core.$strict>;
127
232
  delivery: z.ZodEnum<{
128
233
  delivered: "delivered";
@@ -538,6 +538,8 @@ export declare const delegationStateSchema: z.ZodDiscriminatedUnion<[z.ZodObject
538
538
  destroyed: "destroyed";
539
539
  late: "late";
540
540
  }>;
541
+ resumed: z.ZodOptional<z.ZodLiteral<true>>;
542
+ instruction: z.ZodOptional<z.ZodString>;
541
543
  }, z.core.$strict>>;
542
544
  outcomes: z.ZodArray<z.ZodObject<{
543
545
  requestId: z.ZodUUID;
@@ -944,6 +946,14 @@ export declare const workerWaitRequestSchema: z.ZodObject<{
944
946
  }>>;
945
947
  }, z.core.$strict>;
946
948
  export type WorkerWaitRequest = z.infer<typeof workerWaitRequestSchema>;
949
+ export declare const inboxClaimSchema: z.ZodObject<{
950
+ receiptId: z.ZodUUID;
951
+ generation: z.ZodUUID;
952
+ expiresAt: z.ZodISODateTime;
953
+ acknowledgedAt: z.ZodOptional<z.ZodISODateTime>;
954
+ memberIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
955
+ }, z.core.$strict>;
956
+ export type InboxClaim = z.infer<typeof inboxClaimSchema>;
947
957
  export declare const agentInputSchema: z.ZodObject<{
948
958
  conversation: z.ZodOptional<z.ZodObject<{
949
959
  senderRunId: z.ZodUUID;
@@ -965,6 +975,13 @@ export declare const agentInputSchema: z.ZodObject<{
965
975
  text: z.ZodString;
966
976
  createdAt: z.ZodISODateTime;
967
977
  deliveredAt: z.ZodOptional<z.ZodISODateTime>;
978
+ inboxClaim: z.ZodOptional<z.ZodObject<{
979
+ receiptId: z.ZodUUID;
980
+ generation: z.ZodUUID;
981
+ expiresAt: z.ZodISODateTime;
982
+ acknowledgedAt: z.ZodOptional<z.ZodISODateTime>;
983
+ memberIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
984
+ }, z.core.$strict>>;
968
985
  }, z.core.$strict>;
969
986
  export type AgentInput = z.infer<typeof agentInputSchema>;
970
987
  export declare const workerInspectionSchema: z.ZodObject<{
@@ -51,12 +51,15 @@ export declare const conversationMessageEventSchema: z.ZodObject<{
51
51
  destroyed: "destroyed";
52
52
  late: "late";
53
53
  }>;
54
+ resumed: z.ZodOptional<z.ZodLiteral<true>>;
55
+ instruction: z.ZodOptional<z.ZodString>;
54
56
  }, z.core.$strict>;
55
57
  delivery: z.ZodEnum<{
56
58
  delivered: "delivered";
57
59
  "not-delivered": "not-delivered";
58
60
  queued: "queued";
59
61
  }>;
62
+ deliveredAt: z.ZodOptional<z.ZodISODateTime>;
60
63
  }, z.core.$loose>;
61
64
  export type ConversationMessageEvent = z.infer<typeof conversationMessageEventSchema>;
62
65
  export declare const requestOutcomeEventSchema: z.ZodObject<{
@@ -106,6 +109,13 @@ export declare const agentInputEventSchema: z.ZodObject<{
106
109
  text: z.ZodString;
107
110
  createdAt: z.ZodISODateTime;
108
111
  deliveredAt: z.ZodOptional<z.ZodISODateTime>;
112
+ inboxClaim: z.ZodOptional<z.ZodObject<{
113
+ receiptId: z.ZodUUID;
114
+ generation: z.ZodUUID;
115
+ expiresAt: z.ZodISODateTime;
116
+ acknowledgedAt: z.ZodOptional<z.ZodISODateTime>;
117
+ memberIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
118
+ }, z.core.$strict>>;
109
119
  }, z.core.$strict>;
110
120
  }, z.core.$loose>;
111
121
  export type AgentInputEvent = z.infer<typeof agentInputEventSchema>;
@@ -18,3 +18,4 @@ export * from './agent-config.ts';
18
18
  export * from './agent-profiles.ts';
19
19
  export * from './automations.ts';
20
20
  export * from './conversations.ts';
21
+ export * from './ci-wait.ts';