@intentic/sandbox-contract 1.240.0 → 1.243.0

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 (310) hide show
  1. package/README.md +52 -16
  2. package/dist/agent-catalog.d.ts +5 -28
  3. package/dist/agent-catalog.d.ts.map +1 -1
  4. package/dist/agent-catalog.js +21 -157
  5. package/dist/agent-catalog.js.map +1 -1
  6. package/dist/agent-run-model.d.ts +3 -2
  7. package/dist/agent-run-model.d.ts.map +1 -1
  8. package/dist/agent-run-model.js +9 -6
  9. package/dist/agent-run-model.js.map +1 -1
  10. package/dist/agent-runtimes.d.ts +27 -0
  11. package/dist/agent-runtimes.d.ts.map +1 -0
  12. package/dist/agent-runtimes.js +113 -0
  13. package/dist/agent-runtimes.js.map +1 -0
  14. package/dist/approvals-execution.d.ts +11 -0
  15. package/dist/approvals-execution.d.ts.map +1 -0
  16. package/dist/approvals-execution.js +44 -0
  17. package/dist/approvals-execution.js.map +1 -0
  18. package/dist/arrival.d.ts +151 -0
  19. package/dist/arrival.d.ts.map +1 -0
  20. package/dist/arrival.js +56 -0
  21. package/dist/arrival.js.map +1 -0
  22. package/dist/card-status.d.ts +5 -0
  23. package/dist/card-status.d.ts.map +1 -0
  24. package/dist/card-status.js +74 -0
  25. package/dist/card-status.js.map +1 -0
  26. package/dist/chores/chores.d.ts.map +1 -1
  27. package/dist/chores/chores.js +1 -1
  28. package/dist/chores/chores.js.map +1 -1
  29. package/dist/command-classes.d.ts +0 -1
  30. package/dist/command-classes.d.ts.map +1 -1
  31. package/dist/command-classes.js +9 -2
  32. package/dist/command-classes.js.map +1 -1
  33. package/dist/command-run.d.ts +10 -0
  34. package/dist/command-run.d.ts.map +1 -0
  35. package/dist/command-run.js +46 -0
  36. package/dist/command-run.js.map +1 -0
  37. package/dist/contracts/agent.contract.d.ts +991 -771
  38. package/dist/contracts/agent.contract.d.ts.map +1 -1
  39. package/dist/contracts/agents.contract.d.ts +345 -337
  40. package/dist/contracts/agents.contract.d.ts.map +1 -1
  41. package/dist/contracts/agents.contract.js +20 -2
  42. package/dist/contracts/agents.contract.js.map +1 -1
  43. package/dist/contracts/approvals.contract.d.ts +99 -0
  44. package/dist/contracts/approvals.contract.d.ts.map +1 -0
  45. package/dist/contracts/approvals.contract.js +32 -0
  46. package/dist/contracts/approvals.contract.js.map +1 -0
  47. package/dist/contracts/ci.contract.d.ts +1 -4
  48. package/dist/contracts/ci.contract.d.ts.map +1 -1
  49. package/dist/contracts/ci.contract.js +1 -9
  50. package/dist/contracts/ci.contract.js.map +1 -1
  51. package/dist/contracts/claude.contract.d.ts +9 -0
  52. package/dist/contracts/claude.contract.d.ts.map +1 -1
  53. package/dist/contracts/cursor.contract.d.ts +6 -0
  54. package/dist/contracts/cursor.contract.d.ts.map +1 -1
  55. package/dist/contracts/git.contract.d.ts +63 -1
  56. package/dist/contracts/git.contract.d.ts.map +1 -1
  57. package/dist/contracts/git.contract.js +22 -4
  58. package/dist/contracts/git.contract.js.map +1 -1
  59. package/dist/contracts/grok.contract.d.ts +3 -0
  60. package/dist/contracts/grok.contract.d.ts.map +1 -1
  61. package/dist/contracts/keys.contract.d.ts +81 -0
  62. package/dist/contracts/keys.contract.d.ts.map +1 -0
  63. package/dist/contracts/keys.contract.js +51 -0
  64. package/dist/contracts/keys.contract.js.map +1 -0
  65. package/dist/contracts/panels.contract.d.ts +7 -0
  66. package/dist/contracts/panels.contract.d.ts.map +1 -1
  67. package/dist/contracts/prepush.contract.js +2 -2
  68. package/dist/contracts/providers.contract.d.ts +2 -0
  69. package/dist/contracts/providers.contract.d.ts.map +1 -1
  70. package/dist/contracts/runner.contract.d.ts +84 -86
  71. package/dist/contracts/runner.contract.d.ts.map +1 -1
  72. package/dist/contracts/safety.contract.d.ts +35 -0
  73. package/dist/contracts/safety.contract.d.ts.map +1 -0
  74. package/dist/contracts/safety.contract.js +32 -0
  75. package/dist/contracts/safety.contract.js.map +1 -0
  76. package/dist/contracts/sessions.contract.d.ts +73 -337
  77. package/dist/contracts/sessions.contract.d.ts.map +1 -1
  78. package/dist/contracts/settings.contract.d.ts +30 -32
  79. package/dist/contracts/settings.contract.d.ts.map +1 -1
  80. package/dist/contracts/system.contract.d.ts +139 -337
  81. package/dist/contracts/system.contract.d.ts.map +1 -1
  82. package/dist/contracts/translator.contract.d.ts +31 -3
  83. package/dist/contracts/translator.contract.d.ts.map +1 -1
  84. package/dist/contracts/usage.contract.d.ts +29 -20
  85. package/dist/contracts/usage.contract.d.ts.map +1 -1
  86. package/dist/contracts/usage.contract.js +13 -0
  87. package/dist/contracts/usage.contract.js.map +1 -1
  88. package/dist/contracts/workspace.contract.d.ts +8 -0
  89. package/dist/contracts/workspace.contract.d.ts.map +1 -1
  90. package/dist/conversation-ids.d.ts +2 -0
  91. package/dist/conversation-ids.d.ts.map +1 -1
  92. package/dist/conversation-ids.js +8 -0
  93. package/dist/conversation-ids.js.map +1 -1
  94. package/dist/credential-material.d.ts +1 -0
  95. package/dist/credential-material.d.ts.map +1 -1
  96. package/dist/credential-material.js +24 -2
  97. package/dist/credential-material.js.map +1 -1
  98. package/dist/definition.d.ts +51 -93
  99. package/dist/definition.d.ts.map +1 -1
  100. package/dist/definition.js +6 -28
  101. package/dist/definition.js.map +1 -1
  102. package/dist/events.d.ts +1831 -2285
  103. package/dist/events.d.ts.map +1 -1
  104. package/dist/events.js +155 -55
  105. package/dist/events.js.map +1 -1
  106. package/dist/history-state.d.ts.map +1 -1
  107. package/dist/history-state.js +1 -0
  108. package/dist/history-state.js.map +1 -1
  109. package/dist/index.d.ts +1959 -1903
  110. package/dist/index.d.ts.map +1 -1
  111. package/dist/index.js +20 -5
  112. package/dist/index.js.map +1 -1
  113. package/dist/ingress-protocol.d.ts +13 -1
  114. package/dist/ingress-protocol.d.ts.map +1 -1
  115. package/dist/ingress-protocol.js +19 -0
  116. package/dist/ingress-protocol.js.map +1 -1
  117. package/dist/mentions.d.ts +3 -0
  118. package/dist/mentions.d.ts.map +1 -0
  119. package/dist/mentions.js +13 -0
  120. package/dist/mentions.js.map +1 -0
  121. package/dist/needs-action.d.ts +7 -0
  122. package/dist/needs-action.d.ts.map +1 -0
  123. package/dist/needs-action.js +3 -0
  124. package/dist/needs-action.js.map +1 -0
  125. package/dist/overlay-lint.d.ts +7 -0
  126. package/dist/overlay-lint.d.ts.map +1 -0
  127. package/dist/overlay-lint.js +68 -0
  128. package/dist/overlay-lint.js.map +1 -0
  129. package/dist/owner-ticket.d.ts +18 -0
  130. package/dist/owner-ticket.d.ts.map +1 -0
  131. package/dist/owner-ticket.js +51 -0
  132. package/dist/owner-ticket.js.map +1 -0
  133. package/dist/plan-pools.d.ts +13 -0
  134. package/dist/plan-pools.d.ts.map +1 -0
  135. package/dist/plan-pools.js +31 -0
  136. package/dist/plan-pools.js.map +1 -0
  137. package/dist/provider-specs.d.ts +228 -0
  138. package/dist/provider-specs.d.ts.map +1 -0
  139. package/dist/provider-specs.js +124 -0
  140. package/dist/provider-specs.js.map +1 -0
  141. package/dist/quick-model.d.ts.map +1 -1
  142. package/dist/quick-model.js +2 -1
  143. package/dist/quick-model.js.map +1 -1
  144. package/dist/runner-protocol.js +2 -2
  145. package/dist/runner-protocol.js.map +1 -1
  146. package/dist/runtime-state.d.ts +2 -2
  147. package/dist/runtime-state.d.ts.map +1 -1
  148. package/dist/runtime-state.js +1 -1
  149. package/dist/runtime-state.js.map +1 -1
  150. package/dist/safety-policy.d.ts +49 -0
  151. package/dist/safety-policy.d.ts.map +1 -0
  152. package/dist/safety-policy.js +52 -0
  153. package/dist/safety-policy.js.map +1 -0
  154. package/dist/schemas/agent.d.ts +21 -3
  155. package/dist/schemas/agent.d.ts.map +1 -1
  156. package/dist/schemas/agent.js +18 -8
  157. package/dist/schemas/agent.js.map +1 -1
  158. package/dist/schemas/agents.d.ts +19 -0
  159. package/dist/schemas/agents.d.ts.map +1 -1
  160. package/dist/schemas/agents.js +15 -0
  161. package/dist/schemas/agents.js.map +1 -1
  162. package/dist/schemas/approvals.d.ts +241 -0
  163. package/dist/schemas/approvals.d.ts.map +1 -0
  164. package/dist/schemas/approvals.js +63 -0
  165. package/dist/schemas/approvals.js.map +1 -0
  166. package/dist/schemas/automations.d.ts +5 -0
  167. package/dist/schemas/automations.d.ts.map +1 -1
  168. package/dist/schemas/ci.d.ts +5 -9
  169. package/dist/schemas/ci.d.ts.map +1 -1
  170. package/dist/schemas/ci.js +3 -10
  171. package/dist/schemas/ci.js.map +1 -1
  172. package/dist/schemas/computers.d.ts +40 -5
  173. package/dist/schemas/computers.d.ts.map +1 -1
  174. package/dist/schemas/computers.js +16 -5
  175. package/dist/schemas/computers.js.map +1 -1
  176. package/dist/schemas/environment.d.ts +11 -131
  177. package/dist/schemas/environment.d.ts.map +1 -1
  178. package/dist/schemas/environment.js +5 -42
  179. package/dist/schemas/environment.js.map +1 -1
  180. package/dist/schemas/git-history.d.ts +4 -0
  181. package/dist/schemas/git-history.d.ts.map +1 -1
  182. package/dist/schemas/git.d.ts +179 -0
  183. package/dist/schemas/git.d.ts.map +1 -1
  184. package/dist/schemas/git.js +39 -1
  185. package/dist/schemas/git.js.map +1 -1
  186. package/dist/schemas/panels.d.ts +21 -0
  187. package/dist/schemas/panels.d.ts.map +1 -1
  188. package/dist/schemas/panels.js +5 -0
  189. package/dist/schemas/panels.js.map +1 -1
  190. package/dist/schemas/plan-limits.d.ts +50 -3
  191. package/dist/schemas/plan-limits.d.ts.map +1 -1
  192. package/dist/schemas/plan-limits.js +11 -6
  193. package/dist/schemas/plan-limits.js.map +1 -1
  194. package/dist/schemas/provider-oauth.d.ts +6 -0
  195. package/dist/schemas/provider-oauth.d.ts.map +1 -1
  196. package/dist/schemas/provider-subscriptions.d.ts +2 -1
  197. package/dist/schemas/provider-subscriptions.d.ts.map +1 -1
  198. package/dist/schemas/provider-subscriptions.js +2 -1
  199. package/dist/schemas/provider-subscriptions.js.map +1 -1
  200. package/dist/schemas/settings.d.ts +29 -16
  201. package/dist/schemas/settings.d.ts.map +1 -1
  202. package/dist/schemas/settings.js +13 -20
  203. package/dist/schemas/settings.js.map +1 -1
  204. package/dist/schemas/system.d.ts +3 -0
  205. package/dist/schemas/system.d.ts.map +1 -1
  206. package/dist/schemas/system.js +5 -1
  207. package/dist/schemas/system.js.map +1 -1
  208. package/dist/schemas/workspace-repos.d.ts +14 -0
  209. package/dist/schemas/workspace-repos.d.ts.map +1 -1
  210. package/dist/schemas/workspace-repos.js +5 -0
  211. package/dist/schemas/workspace-repos.js.map +1 -1
  212. package/dist/schemas/workspace-tree.d.ts +1 -0
  213. package/dist/schemas/workspace-tree.d.ts.map +1 -1
  214. package/dist/schemas/workspace-tree.js +3 -0
  215. package/dist/schemas/workspace-tree.js.map +1 -1
  216. package/dist/transcript-fold.d.ts +31 -0
  217. package/dist/transcript-fold.d.ts.map +1 -0
  218. package/dist/transcript-fold.js +457 -0
  219. package/dist/transcript-fold.js.map +1 -0
  220. package/dist/workspace-state.d.ts +20 -3
  221. package/dist/workspace-state.d.ts.map +1 -1
  222. package/dist/workspace-state.js +22 -2
  223. package/dist/workspace-state.js.map +1 -1
  224. package/package.json +27 -5
  225. package/src/agent-catalog.test.ts +1 -1
  226. package/src/agent-catalog.ts +76 -555
  227. package/src/agent-run-model.test.ts +31 -15
  228. package/src/agent-run-model.ts +26 -12
  229. package/src/agent-runtimes.ts +419 -0
  230. package/src/approvals-execution.ts +96 -0
  231. package/src/arrival.ts +160 -0
  232. package/src/capability-ledger.test.ts +6 -4
  233. package/src/card-status.ts +93 -0
  234. package/src/chores/chores.ts +6 -3
  235. package/src/command-classes.test.ts +25 -0
  236. package/src/command-classes.ts +47 -5
  237. package/src/command-run.ts +78 -0
  238. package/src/contract-lock.test.ts +1 -1
  239. package/src/contract-lock.ts +2 -2
  240. package/src/contracts/agents.contract.ts +35 -2
  241. package/src/contracts/approvals.contract.ts +37 -0
  242. package/src/contracts/ci.contract.ts +0 -13
  243. package/src/contracts/git.contract.ts +28 -3
  244. package/src/contracts/keys.contract.ts +79 -0
  245. package/src/contracts/prepush.contract.ts +3 -3
  246. package/src/contracts/safety.contract.ts +48 -0
  247. package/src/contracts/usage.contract.ts +22 -0
  248. package/src/conversation-ids.test.ts +31 -1
  249. package/src/conversation-ids.ts +37 -3
  250. package/src/credential-material.test.ts +69 -1
  251. package/src/credential-material.ts +86 -5
  252. package/src/definition.ts +25 -53
  253. package/src/events.ts +374 -173
  254. package/src/history-state.ts +6 -0
  255. package/src/index.ts +24 -5
  256. package/src/ingress-protocol.ts +52 -1
  257. package/src/mentions.test.ts +22 -0
  258. package/src/mentions.ts +25 -0
  259. package/src/needs-action.ts +14 -0
  260. package/src/overlay-lint.test.ts +89 -0
  261. package/src/overlay-lint.ts +116 -0
  262. package/src/owner-ticket.test.ts +54 -0
  263. package/src/owner-ticket.ts +102 -0
  264. package/src/plan-pools.test.ts +71 -0
  265. package/src/plan-pools.ts +92 -0
  266. package/src/provider-specs.test.ts +130 -0
  267. package/src/provider-specs.ts +352 -0
  268. package/src/quick-model.ts +9 -5
  269. package/src/runner-protocol.ts +2 -2
  270. package/src/runtime-state.ts +6 -6
  271. package/src/safety-policy.ts +165 -0
  272. package/src/schemas/agent.ts +62 -17
  273. package/src/schemas/agents.ts +71 -0
  274. package/src/schemas/approvals.ts +174 -0
  275. package/src/schemas/ci.ts +19 -26
  276. package/src/schemas/computers.ts +91 -15
  277. package/src/schemas/environment.ts +21 -100
  278. package/src/schemas/git.ts +121 -6
  279. package/src/schemas/issues.ts +1 -1
  280. package/src/schemas/panels.ts +20 -0
  281. package/src/schemas/plan-limits.ts +58 -11
  282. package/src/schemas/provider-subscriptions.ts +7 -2
  283. package/src/schemas/settings.ts +67 -93
  284. package/src/schemas/system.ts +12 -1
  285. package/src/schemas/workspace-repos.ts +9 -0
  286. package/src/schemas/workspace-tree.ts +11 -0
  287. package/src/transcript-fold.test.ts +493 -0
  288. package/src/transcript-fold.ts +655 -0
  289. package/src/workspace-state.test.ts +77 -29
  290. package/src/workspace-state.ts +99 -31
  291. package/dist/contracts/drafts.contract.d.ts +0 -57
  292. package/dist/contracts/drafts.contract.d.ts.map +0 -1
  293. package/dist/contracts/drafts.contract.js +0 -32
  294. package/dist/contracts/drafts.contract.js.map +0 -1
  295. package/dist/definition-action.d.ts +0 -7
  296. package/dist/definition-action.d.ts.map +0 -1
  297. package/dist/definition-action.js +0 -3
  298. package/dist/definition-action.js.map +0 -1
  299. package/dist/publish-drafts.d.ts +0 -7
  300. package/dist/publish-drafts.d.ts.map +0 -1
  301. package/dist/publish-drafts.js +0 -20
  302. package/dist/publish-drafts.js.map +0 -1
  303. package/dist/schemas/drafts.d.ts +0 -84
  304. package/dist/schemas/drafts.d.ts.map +0 -1
  305. package/dist/schemas/drafts.js +0 -44
  306. package/dist/schemas/drafts.js.map +0 -1
  307. package/src/contracts/drafts.contract.ts +0 -35
  308. package/src/definition-action.ts +0 -8
  309. package/src/publish-drafts.ts +0 -59
  310. package/src/schemas/drafts.ts +0 -108
@@ -64,835 +64,1054 @@ export declare const agentContract: {
64
64
  attach: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
65
65
  conversationId: import("zod").ZodString;
66
66
  run: import("zod").ZodOptional<import("zod").ZodString>;
67
- after: import("zod").ZodOptional<import("zod").ZodNumber>;
68
67
  }, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
69
68
  kind: "attached";
70
69
  run: string;
71
- prompt: string;
72
70
  startedAt: number;
73
71
  seq: number;
74
- } | {
75
- kind: "frame";
76
- seq: number;
77
- event: {
78
- kind: "session";
79
- sessionId: string;
80
- account?: string | undefined;
81
- } | {
82
- kind: "worktree";
83
- branch: string;
84
- base: string;
85
- unenforced?: boolean | undefined;
86
- sync?: {
87
- commits: number;
88
- blocked: string[];
89
- } | undefined;
90
- remote?: string | undefined;
91
- } | {
92
- kind: "landed";
93
- landed: boolean;
94
- conflicts?: {
95
- repo: string;
96
- paths: {
97
- path: string;
98
- reason: "binary" | "diverged" | "workspace";
99
- }[];
100
- clean: number;
101
- mainBranch?: string | undefined;
102
- }[] | undefined;
103
- held?: boolean | undefined;
104
- deps?: {
105
- missing: number;
106
- started: string[];
107
- deferred: boolean;
108
- } | undefined;
109
- } | {
110
- kind: "preamble";
111
- notes: {
112
- title: string;
113
- text: string;
114
- }[];
115
- } | {
116
- kind: "init";
117
- model: string;
118
- } | {
119
- kind: "checkpoint";
120
- id: string;
121
- index?: number | undefined;
122
- } | {
123
- kind: "steer";
72
+ rows: {
73
+ role: "assistant" | "notice" | "user";
124
74
  text: string;
125
- sentAt: number;
75
+ sentAt?: number | undefined;
126
76
  attachments?: string[] | undefined;
127
- } | {
128
- kind: "delta";
129
- text: string;
130
- parentToolUseId?: string | undefined;
131
- } | {
132
- kind: "text_end";
133
- parentToolUseId?: string | undefined;
134
- } | {
135
- kind: "thinking";
136
- text: string;
137
- parentToolUseId?: string | undefined;
138
- } | {
139
- kind: "tool_call";
140
- id: string;
141
- name: string;
142
- category: "delete" | "edit" | "execute" | "fetch" | "move" | "other" | "read" | "search" | "think";
143
- status: "completed" | "failed" | "in_progress" | "pending";
144
- target?: string | undefined;
145
- locations?: {
146
- path: string;
147
- line?: number | undefined;
148
- }[] | undefined;
149
- content?: ({
150
- type: "text";
151
- text: string;
152
- } | {
153
- type: "diff";
154
- path: string;
155
- oldText?: string | undefined;
156
- newText: string;
157
- truncated?: boolean | undefined;
158
- } | {
159
- type: "image";
160
- path: string;
161
- })[] | undefined;
162
- parentToolUseId?: string | undefined;
163
- } | {
164
- kind: "tool_call_update";
165
- id: string;
166
- status?: "completed" | "failed" | "in_progress" | "pending" | undefined;
167
- content?: ({
168
- type: "text";
169
- text: string;
170
- } | {
171
- type: "diff";
172
- path: string;
173
- oldText?: string | undefined;
174
- newText: string;
175
- truncated?: boolean | undefined;
176
- } | {
177
- type: "image";
178
- path: string;
179
- })[] | undefined;
180
- locations?: {
181
- path: string;
182
- line?: number | undefined;
183
- }[] | undefined;
184
- } | {
185
- kind: "terminal";
186
- session: string;
187
- } | {
188
- kind: "browser";
189
- session: string;
190
- } | {
191
- kind: "subagent";
192
- id: string;
193
- subagentKind: "spawned" | "subagent";
194
- agentType?: string | undefined;
195
- description?: string | undefined;
196
- model?: string | undefined;
197
- provider?: string | undefined;
198
- background?: boolean | undefined;
199
- } | {
200
- kind: "subagent_update";
201
- id: string;
202
- status?: "blocked" | "completed" | "failed" | "killed" | "paused" | "pending" | "running" | undefined;
203
- tokens?: number | undefined;
204
- toolUses?: number | undefined;
205
- lastTool?: string | undefined;
206
- summary?: string | undefined;
207
- error?: string | undefined;
208
- verification?: {
209
- state: "failing" | "no-code" | "unproven" | "verified";
210
- paths?: string[] | undefined;
211
- check?: string | undefined;
212
- } | undefined;
213
- } | {
214
- kind: "todos";
215
- items: {
77
+ checkpointId?: string | undefined;
78
+ rewindIndex?: number | undefined;
79
+ thinking?: string | undefined;
80
+ tools?: unknown[] | undefined;
81
+ todos?: {
216
82
  content: string;
217
83
  status: "completed" | "in_progress" | "pending";
218
84
  activeForm?: string | undefined;
219
- }[];
220
- } | {
221
- kind: "commands";
222
- items: {
223
- name: string;
224
- description: string;
225
- hint?: string | undefined;
226
- }[];
227
- } | {
228
- kind: "usage";
229
- account?: string | undefined;
230
- costUsd?: number | undefined;
231
- inputTokens?: number | undefined;
232
- outputTokens?: number | undefined;
233
- cacheReadTokens?: number | undefined;
234
- cacheCreationTokens?: number | undefined;
235
- durationMs?: number | undefined;
236
- numTurns?: number | undefined;
237
- } | {
238
- status: "allowed" | "allowed_warning" | "rejected";
239
- resetsAt?: number | undefined;
240
- rateLimitType?: string | undefined;
241
- utilization?: number | undefined;
242
- kind: "rate_limit_info";
243
- account?: string | undefined;
244
- } | {
245
- kind: "fast_mode";
246
- state: "cooldown" | "off" | "on";
247
- reason?: string | undefined;
248
- } | {
249
- kind: "tier";
250
- tier: "fast" | "standard";
251
- score: number;
252
- rules: string[];
253
- model?: string | undefined;
254
- routed: boolean;
255
- held?: boolean | undefined;
256
- } | {
257
- kind: "provider_retry";
258
- attempt: number;
259
- maxAttempts?: number | undefined;
260
- nextAttemptAt?: number | undefined;
261
- status?: number | undefined;
262
- } | {
263
- kind: "account_usage";
264
- account?: string | undefined;
265
- windows: {
266
- kind: string;
267
- label?: string | undefined;
268
- utilization: number;
269
- resetsAt?: number | undefined;
270
- }[];
271
- } | {
272
- tokens: number;
273
- contextWindow: number;
274
- kind: "context_usage";
275
- } | {
276
- kind: "compact";
277
- trigger: string;
278
- preTokens?: number | undefined;
279
- postTokens?: number | undefined;
280
- } | {
281
- requestId: string;
282
- text: string;
283
- document?: {
284
- path: string;
285
- title: string;
286
- markdown: string;
287
- truncated?: boolean | undefined;
288
- plan?: boolean | undefined;
85
+ }[] | undefined;
86
+ usage?: {
87
+ costUsd?: number | undefined;
88
+ inputTokens?: number | undefined;
89
+ outputTokens?: number | undefined;
90
+ durationMs?: number | undefined;
91
+ numTurns?: number | undefined;
289
92
  } | undefined;
290
- kind: "plan";
291
- } | {
292
- requestId: string;
293
- questions: {
294
- question: string;
295
- header: string;
296
- multiSelect: boolean;
297
- options: {
298
- label: string;
299
- description: string;
300
- preview?: string | undefined;
301
- }[];
302
- }[];
303
- document?: {
304
- path: string;
93
+ notes?: {
305
94
  title: string;
306
- markdown: string;
307
- truncated?: boolean | undefined;
308
- plan?: boolean | undefined;
309
- } | undefined;
310
- kind: "question";
311
- } | {
312
- toolName: string;
313
- title?: string | undefined;
314
- displayName?: string | undefined;
315
- description?: string | undefined;
316
- reason?: string | undefined;
317
- path?: string | undefined;
318
- alwaysLabel?: string | undefined;
319
- program?: {
320
95
  text: string;
321
- language: "bash" | "javascript";
322
- truncated: boolean;
323
- spans: {
324
- start: number;
325
- end: number;
326
- }[];
327
- } | undefined;
328
- explain?: string | undefined;
329
- requestId: string;
330
- kind: "permission";
331
- } | {
332
- requestId: string;
333
- session: string;
334
- account: string;
335
- message: string;
336
- kind: "browser_help";
337
- } | {
338
- requestId: string;
339
- session: string;
340
- message: string;
341
- kind: "terminal_help";
342
- } | {
343
- requestId: string;
344
- offer: {
345
- slug: string;
346
- name: string;
347
- publisher: string;
348
- description: string;
349
- creditsPerRun: number;
350
- probation?: boolean | undefined;
351
- credits?: {
352
- allowance: number;
353
- remaining: number;
354
- resetsAt: string;
355
- } | undefined;
356
- request: string;
357
- why?: string | undefined;
358
- };
359
- kind: "service_offer";
360
- } | {
361
- kind: "service_event";
362
- requestId: string;
363
- event: {
364
- event: "status";
365
- text: string;
366
- } | {
367
- event: "result";
368
- data: unknown;
369
- };
370
- } | {
371
- outcome: "ok" | "refunded" | "refused";
372
- credits: number;
373
- remaining?: number | undefined;
374
- kind: "service_receipt";
375
- requestId: string;
376
- } | {
377
- requestId: string;
378
- offer: {
379
- card: string;
380
- name: string;
381
- why?: string | undefined;
382
- };
383
- kind: "capability_offer";
384
- } | {
385
- outcome: "connected" | "unfinished";
386
- id?: string | undefined;
387
- kind: "capability_outcome";
388
- requestId: string;
389
- } | {
390
- requestId: string;
391
- offer: {
392
- url: string;
393
- description?: string | undefined;
394
- payTo: string;
395
- network: string;
396
- asset: string;
397
- assetName: string;
398
- amountUsd: string;
399
- spentTodayUsd: string;
400
- dailyCapUsd: string;
401
- why?: string | undefined;
402
- };
403
- kind: "payment_offer";
404
- } | {
405
- outcome: "failed" | "paid";
406
- amountUsd: string;
407
- transaction?: string | undefined;
408
- network?: string | undefined;
409
- kind: "payment_receipt";
410
- requestId: string;
411
- } | {
412
- kind: "resolved";
413
- requestId: string;
414
- reply?: {
415
- kind: "plan";
96
+ }[] | undefined;
97
+ placed?: boolean | undefined;
98
+ noticeAction?: "depsInstall" | "landHold" | "outageOptOut" | "tierHold" | undefined;
99
+ noticeWait?: "credentialRenewal" | undefined;
100
+ plan?: {
416
101
  requestId: string;
417
- approve: boolean;
418
- feedback?: string | undefined;
419
- } | {
420
- kind: "question";
102
+ text: string;
103
+ document?: {
104
+ path: string;
105
+ title: string;
106
+ markdown: string;
107
+ truncated?: boolean | undefined;
108
+ plan?: boolean | undefined;
109
+ } | undefined;
110
+ status: "approved" | "cancelled" | "pending" | "rejected";
111
+ } | undefined;
112
+ question?: {
421
113
  requestId: string;
114
+ questions: {
115
+ question: string;
116
+ header: string;
117
+ multiSelect: boolean;
118
+ options: {
119
+ label: string;
120
+ description: string;
121
+ preview?: string | undefined;
122
+ }[];
123
+ }[];
124
+ document?: {
125
+ path: string;
126
+ title: string;
127
+ markdown: string;
128
+ truncated?: boolean | undefined;
129
+ plan?: boolean | undefined;
130
+ } | undefined;
131
+ status: "answered" | "cancelled" | "pending";
422
132
  answers?: Record<string, string[]> | undefined;
423
- cancelled?: boolean | undefined;
424
- } | {
425
- kind: "permission";
133
+ } | undefined;
134
+ permission?: {
135
+ toolName: string;
136
+ title?: string | undefined;
137
+ displayName?: string | undefined;
138
+ description?: string | undefined;
139
+ reason?: string | undefined;
140
+ path?: string | undefined;
141
+ alwaysLabel?: string | undefined;
142
+ program?: {
143
+ text: string;
144
+ language: "bash" | "javascript";
145
+ truncated: boolean;
146
+ spans: {
147
+ start: number;
148
+ end: number;
149
+ }[];
150
+ } | undefined;
151
+ explain?: string | undefined;
426
152
  requestId: string;
427
- decision: "always" | "deny" | "once";
428
- feedback?: string | undefined;
429
- } | {
430
- kind: "browser_help";
153
+ status: "allowed" | "always" | "cancelled" | "denied" | "pending";
154
+ } | undefined;
155
+ browserHelp?: {
431
156
  requestId: string;
432
- helped: boolean;
433
- note?: string | undefined;
434
- } | {
435
- kind: "terminal_help";
157
+ session: string;
158
+ account: string;
159
+ message: string;
160
+ status: "cancelled" | "declined" | "helped" | "pending";
161
+ } | undefined;
162
+ terminalHelp?: {
436
163
  requestId: string;
437
- helped: boolean;
438
- note?: string | undefined;
439
- } | {
440
- kind: "service_offer";
164
+ session: string;
165
+ message: string;
166
+ status: "cancelled" | "declined" | "helped" | "pending";
167
+ } | undefined;
168
+ serviceOffer?: {
441
169
  requestId: string;
442
- approve: boolean;
443
- } | {
444
- kind: "capability_offer";
170
+ offer: {
171
+ slug: string;
172
+ name: string;
173
+ publisher: string;
174
+ description: string;
175
+ creditsPerRun: number;
176
+ probation?: boolean | undefined;
177
+ credits?: {
178
+ allowance: number;
179
+ remaining: number;
180
+ resetsAt: string;
181
+ } | undefined;
182
+ request: string;
183
+ why?: string | undefined;
184
+ };
185
+ status: "approved" | "cancelled" | "pending" | "skipped";
186
+ events?: ({
187
+ event: "status";
188
+ text: string;
189
+ } | {
190
+ event: "result";
191
+ data: unknown;
192
+ })[] | undefined;
193
+ receipt?: {
194
+ outcome: "ok" | "refunded" | "refused";
195
+ credits: number;
196
+ remaining?: number | undefined;
197
+ } | undefined;
198
+ } | undefined;
199
+ capabilityOffer?: {
445
200
  requestId: string;
446
- connect: boolean;
447
- } | {
448
- kind: "payment_offer";
201
+ offer: {
202
+ card: string;
203
+ name: string;
204
+ why?: string | undefined;
205
+ };
206
+ status: "cancelled" | "connecting" | "pending" | "skipped";
207
+ outcome?: {
208
+ outcome: "connected" | "unfinished";
209
+ id?: string | undefined;
210
+ } | undefined;
211
+ } | undefined;
212
+ paymentOffer?: {
449
213
  requestId: string;
450
- approve: boolean;
214
+ offer: {
215
+ url: string;
216
+ description?: string | undefined;
217
+ payTo: string;
218
+ network: string;
219
+ asset: string;
220
+ assetName: string;
221
+ amountUsd: string;
222
+ spentTodayUsd: string;
223
+ dailyCapUsd: string;
224
+ why?: string | undefined;
225
+ };
226
+ status: "approved" | "cancelled" | "pending" | "skipped";
227
+ receipt?: {
228
+ outcome: "failed" | "paid";
229
+ amountUsd: string;
230
+ transaction?: string | undefined;
231
+ network?: string | undefined;
232
+ } | undefined;
451
233
  } | undefined;
234
+ }[];
235
+ } | {
236
+ kind: "patch";
237
+ seq: number;
238
+ patch: {
239
+ op: "append";
240
+ row: {
241
+ role: "assistant" | "notice" | "user";
242
+ text: string;
243
+ sentAt?: number | undefined;
244
+ attachments?: string[] | undefined;
245
+ checkpointId?: string | undefined;
246
+ rewindIndex?: number | undefined;
247
+ thinking?: string | undefined;
248
+ tools?: unknown[] | undefined;
249
+ todos?: {
250
+ content: string;
251
+ status: "completed" | "in_progress" | "pending";
252
+ activeForm?: string | undefined;
253
+ }[] | undefined;
254
+ usage?: {
255
+ costUsd?: number | undefined;
256
+ inputTokens?: number | undefined;
257
+ outputTokens?: number | undefined;
258
+ durationMs?: number | undefined;
259
+ numTurns?: number | undefined;
260
+ } | undefined;
261
+ notes?: {
262
+ title: string;
263
+ text: string;
264
+ }[] | undefined;
265
+ placed?: boolean | undefined;
266
+ noticeAction?: "depsInstall" | "landHold" | "outageOptOut" | "tierHold" | undefined;
267
+ noticeWait?: "credentialRenewal" | undefined;
268
+ plan?: {
269
+ requestId: string;
270
+ text: string;
271
+ document?: {
272
+ path: string;
273
+ title: string;
274
+ markdown: string;
275
+ truncated?: boolean | undefined;
276
+ plan?: boolean | undefined;
277
+ } | undefined;
278
+ status: "approved" | "cancelled" | "pending" | "rejected";
279
+ } | undefined;
280
+ question?: {
281
+ requestId: string;
282
+ questions: {
283
+ question: string;
284
+ header: string;
285
+ multiSelect: boolean;
286
+ options: {
287
+ label: string;
288
+ description: string;
289
+ preview?: string | undefined;
290
+ }[];
291
+ }[];
292
+ document?: {
293
+ path: string;
294
+ title: string;
295
+ markdown: string;
296
+ truncated?: boolean | undefined;
297
+ plan?: boolean | undefined;
298
+ } | undefined;
299
+ status: "answered" | "cancelled" | "pending";
300
+ answers?: Record<string, string[]> | undefined;
301
+ } | undefined;
302
+ permission?: {
303
+ toolName: string;
304
+ title?: string | undefined;
305
+ displayName?: string | undefined;
306
+ description?: string | undefined;
307
+ reason?: string | undefined;
308
+ path?: string | undefined;
309
+ alwaysLabel?: string | undefined;
310
+ program?: {
311
+ text: string;
312
+ language: "bash" | "javascript";
313
+ truncated: boolean;
314
+ spans: {
315
+ start: number;
316
+ end: number;
317
+ }[];
318
+ } | undefined;
319
+ explain?: string | undefined;
320
+ requestId: string;
321
+ status: "allowed" | "always" | "cancelled" | "denied" | "pending";
322
+ } | undefined;
323
+ browserHelp?: {
324
+ requestId: string;
325
+ session: string;
326
+ account: string;
327
+ message: string;
328
+ status: "cancelled" | "declined" | "helped" | "pending";
329
+ } | undefined;
330
+ terminalHelp?: {
331
+ requestId: string;
332
+ session: string;
333
+ message: string;
334
+ status: "cancelled" | "declined" | "helped" | "pending";
335
+ } | undefined;
336
+ serviceOffer?: {
337
+ requestId: string;
338
+ offer: {
339
+ slug: string;
340
+ name: string;
341
+ publisher: string;
342
+ description: string;
343
+ creditsPerRun: number;
344
+ probation?: boolean | undefined;
345
+ credits?: {
346
+ allowance: number;
347
+ remaining: number;
348
+ resetsAt: string;
349
+ } | undefined;
350
+ request: string;
351
+ why?: string | undefined;
352
+ };
353
+ status: "approved" | "cancelled" | "pending" | "skipped";
354
+ events?: ({
355
+ event: "status";
356
+ text: string;
357
+ } | {
358
+ event: "result";
359
+ data: unknown;
360
+ })[] | undefined;
361
+ receipt?: {
362
+ outcome: "ok" | "refunded" | "refused";
363
+ credits: number;
364
+ remaining?: number | undefined;
365
+ } | undefined;
366
+ } | undefined;
367
+ capabilityOffer?: {
368
+ requestId: string;
369
+ offer: {
370
+ card: string;
371
+ name: string;
372
+ why?: string | undefined;
373
+ };
374
+ status: "cancelled" | "connecting" | "pending" | "skipped";
375
+ outcome?: {
376
+ outcome: "connected" | "unfinished";
377
+ id?: string | undefined;
378
+ } | undefined;
379
+ } | undefined;
380
+ paymentOffer?: {
381
+ requestId: string;
382
+ offer: {
383
+ url: string;
384
+ description?: string | undefined;
385
+ payTo: string;
386
+ network: string;
387
+ asset: string;
388
+ assetName: string;
389
+ amountUsd: string;
390
+ spentTodayUsd: string;
391
+ dailyCapUsd: string;
392
+ why?: string | undefined;
393
+ };
394
+ status: "approved" | "cancelled" | "pending" | "skipped";
395
+ receipt?: {
396
+ outcome: "failed" | "paid";
397
+ amountUsd: string;
398
+ transaction?: string | undefined;
399
+ network?: string | undefined;
400
+ } | undefined;
401
+ } | undefined;
402
+ };
403
+ } | {
404
+ op: "replace";
405
+ index: number;
406
+ row: {
407
+ role: "assistant" | "notice" | "user";
408
+ text: string;
409
+ sentAt?: number | undefined;
410
+ attachments?: string[] | undefined;
411
+ checkpointId?: string | undefined;
412
+ rewindIndex?: number | undefined;
413
+ thinking?: string | undefined;
414
+ tools?: unknown[] | undefined;
415
+ todos?: {
416
+ content: string;
417
+ status: "completed" | "in_progress" | "pending";
418
+ activeForm?: string | undefined;
419
+ }[] | undefined;
420
+ usage?: {
421
+ costUsd?: number | undefined;
422
+ inputTokens?: number | undefined;
423
+ outputTokens?: number | undefined;
424
+ durationMs?: number | undefined;
425
+ numTurns?: number | undefined;
426
+ } | undefined;
427
+ notes?: {
428
+ title: string;
429
+ text: string;
430
+ }[] | undefined;
431
+ placed?: boolean | undefined;
432
+ noticeAction?: "depsInstall" | "landHold" | "outageOptOut" | "tierHold" | undefined;
433
+ noticeWait?: "credentialRenewal" | undefined;
434
+ plan?: {
435
+ requestId: string;
436
+ text: string;
437
+ document?: {
438
+ path: string;
439
+ title: string;
440
+ markdown: string;
441
+ truncated?: boolean | undefined;
442
+ plan?: boolean | undefined;
443
+ } | undefined;
444
+ status: "approved" | "cancelled" | "pending" | "rejected";
445
+ } | undefined;
446
+ question?: {
447
+ requestId: string;
448
+ questions: {
449
+ question: string;
450
+ header: string;
451
+ multiSelect: boolean;
452
+ options: {
453
+ label: string;
454
+ description: string;
455
+ preview?: string | undefined;
456
+ }[];
457
+ }[];
458
+ document?: {
459
+ path: string;
460
+ title: string;
461
+ markdown: string;
462
+ truncated?: boolean | undefined;
463
+ plan?: boolean | undefined;
464
+ } | undefined;
465
+ status: "answered" | "cancelled" | "pending";
466
+ answers?: Record<string, string[]> | undefined;
467
+ } | undefined;
468
+ permission?: {
469
+ toolName: string;
470
+ title?: string | undefined;
471
+ displayName?: string | undefined;
472
+ description?: string | undefined;
473
+ reason?: string | undefined;
474
+ path?: string | undefined;
475
+ alwaysLabel?: string | undefined;
476
+ program?: {
477
+ text: string;
478
+ language: "bash" | "javascript";
479
+ truncated: boolean;
480
+ spans: {
481
+ start: number;
482
+ end: number;
483
+ }[];
484
+ } | undefined;
485
+ explain?: string | undefined;
486
+ requestId: string;
487
+ status: "allowed" | "always" | "cancelled" | "denied" | "pending";
488
+ } | undefined;
489
+ browserHelp?: {
490
+ requestId: string;
491
+ session: string;
492
+ account: string;
493
+ message: string;
494
+ status: "cancelled" | "declined" | "helped" | "pending";
495
+ } | undefined;
496
+ terminalHelp?: {
497
+ requestId: string;
498
+ session: string;
499
+ message: string;
500
+ status: "cancelled" | "declined" | "helped" | "pending";
501
+ } | undefined;
502
+ serviceOffer?: {
503
+ requestId: string;
504
+ offer: {
505
+ slug: string;
506
+ name: string;
507
+ publisher: string;
508
+ description: string;
509
+ creditsPerRun: number;
510
+ probation?: boolean | undefined;
511
+ credits?: {
512
+ allowance: number;
513
+ remaining: number;
514
+ resetsAt: string;
515
+ } | undefined;
516
+ request: string;
517
+ why?: string | undefined;
518
+ };
519
+ status: "approved" | "cancelled" | "pending" | "skipped";
520
+ events?: ({
521
+ event: "status";
522
+ text: string;
523
+ } | {
524
+ event: "result";
525
+ data: unknown;
526
+ })[] | undefined;
527
+ receipt?: {
528
+ outcome: "ok" | "refunded" | "refused";
529
+ credits: number;
530
+ remaining?: number | undefined;
531
+ } | undefined;
532
+ } | undefined;
533
+ capabilityOffer?: {
534
+ requestId: string;
535
+ offer: {
536
+ card: string;
537
+ name: string;
538
+ why?: string | undefined;
539
+ };
540
+ status: "cancelled" | "connecting" | "pending" | "skipped";
541
+ outcome?: {
542
+ outcome: "connected" | "unfinished";
543
+ id?: string | undefined;
544
+ } | undefined;
545
+ } | undefined;
546
+ paymentOffer?: {
547
+ requestId: string;
548
+ offer: {
549
+ url: string;
550
+ description?: string | undefined;
551
+ payTo: string;
552
+ network: string;
553
+ asset: string;
554
+ assetName: string;
555
+ amountUsd: string;
556
+ spentTodayUsd: string;
557
+ dailyCapUsd: string;
558
+ why?: string | undefined;
559
+ };
560
+ status: "approved" | "cancelled" | "pending" | "skipped";
561
+ receipt?: {
562
+ outcome: "failed" | "paid";
563
+ amountUsd: string;
564
+ transaction?: string | undefined;
565
+ network?: string | undefined;
566
+ } | undefined;
567
+ } | undefined;
568
+ };
452
569
  } | {
453
- kind: "permission_note";
454
- requestId: string;
455
- explain: string;
570
+ op: "drop";
571
+ index: number;
456
572
  } | {
457
- kind: "mode";
458
- mode: "acceptEdits" | "bypassPermissions" | "default" | "plan";
573
+ op: "text";
574
+ index: number;
575
+ text: string;
459
576
  } | {
460
- kind: "error";
461
- message: string;
462
- code?: "agent-busy" | "claude-not-entitled" | "claude-reauth" | "claude-token-refused" | "codex-advisory" | "codex-model-invalid" | "codex-reauth" | "context-window-too-small" | "engine-version-floor" | "grok-model-invalid" | "harness-incomplete" | "provider-outage" | "rate_limit" | "sandbox-memory-low" | "session-not-found" | "subscription-required" | "trial-exhausted" | "trial-model-unavailable" | "trial-unavailable" | "turn-cap" | "unknown-command" | undefined;
463
- engine?: {
464
- id: string;
465
- running?: string | undefined;
466
- floor: string;
467
- } | undefined;
468
- resetsAt?: number | undefined;
469
- autoResume?: "available" | "scheduled" | undefined;
470
- held?: {
471
- ran: boolean;
472
- } | undefined;
473
- outage?: {
474
- retryAt: number;
475
- attempt: number;
476
- maxAttempts: number;
477
- } | undefined;
577
+ op: "thinking";
578
+ index: number;
579
+ text: string;
478
580
  } | {
479
- kind: "done";
581
+ op: "tool";
582
+ index: number;
583
+ tool: unknown;
584
+ parent?: string | undefined;
480
585
  };
586
+ } | {
587
+ kind: "fact";
588
+ seq: number;
589
+ fact: unknown;
481
590
  } | {
482
591
  kind: "end";
483
592
  }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
484
593
  kind: "attached";
485
594
  run: string;
486
- prompt: string;
487
595
  startedAt: number;
488
596
  seq: number;
489
- } | {
490
- kind: "frame";
491
- seq: number;
492
- event: {
493
- kind: "session";
494
- sessionId: string;
495
- account?: string | undefined;
496
- } | {
497
- kind: "worktree";
498
- branch: string;
499
- base: string;
500
- unenforced?: boolean | undefined;
501
- sync?: {
502
- commits: number;
503
- blocked: string[];
504
- } | undefined;
505
- remote?: string | undefined;
506
- } | {
507
- kind: "landed";
508
- landed: boolean;
509
- conflicts?: {
510
- repo: string;
511
- paths: {
512
- path: string;
513
- reason: "binary" | "diverged" | "workspace";
514
- }[];
515
- clean: number;
516
- mainBranch?: string | undefined;
517
- }[] | undefined;
518
- held?: boolean | undefined;
519
- deps?: {
520
- missing: number;
521
- started: string[];
522
- deferred: boolean;
523
- } | undefined;
524
- } | {
525
- kind: "preamble";
526
- notes: {
527
- title: string;
528
- text: string;
529
- }[];
530
- } | {
531
- kind: "init";
532
- model: string;
533
- } | {
534
- kind: "checkpoint";
535
- id: string;
536
- index?: number | undefined;
537
- } | {
538
- kind: "steer";
597
+ rows: {
598
+ role: "assistant" | "notice" | "user";
539
599
  text: string;
540
- sentAt: number;
600
+ sentAt?: number | undefined;
541
601
  attachments?: string[] | undefined;
542
- } | {
543
- kind: "delta";
544
- text: string;
545
- parentToolUseId?: string | undefined;
546
- } | {
547
- kind: "text_end";
548
- parentToolUseId?: string | undefined;
549
- } | {
550
- kind: "thinking";
551
- text: string;
552
- parentToolUseId?: string | undefined;
553
- } | {
554
- kind: "tool_call";
555
- id: string;
556
- name: string;
557
- category: "delete" | "edit" | "execute" | "fetch" | "move" | "other" | "read" | "search" | "think";
558
- status: "completed" | "failed" | "in_progress" | "pending";
559
- target?: string | undefined;
560
- locations?: {
561
- path: string;
562
- line?: number | undefined;
563
- }[] | undefined;
564
- content?: ({
565
- type: "text";
566
- text: string;
567
- } | {
568
- type: "diff";
569
- path: string;
570
- oldText?: string | undefined;
571
- newText: string;
572
- truncated?: boolean | undefined;
573
- } | {
574
- type: "image";
575
- path: string;
576
- })[] | undefined;
577
- parentToolUseId?: string | undefined;
578
- } | {
579
- kind: "tool_call_update";
580
- id: string;
581
- status?: "completed" | "failed" | "in_progress" | "pending" | undefined;
582
- content?: ({
583
- type: "text";
584
- text: string;
585
- } | {
586
- type: "diff";
587
- path: string;
588
- oldText?: string | undefined;
589
- newText: string;
590
- truncated?: boolean | undefined;
591
- } | {
592
- type: "image";
593
- path: string;
594
- })[] | undefined;
595
- locations?: {
596
- path: string;
597
- line?: number | undefined;
598
- }[] | undefined;
599
- } | {
600
- kind: "terminal";
601
- session: string;
602
- } | {
603
- kind: "browser";
604
- session: string;
605
- } | {
606
- kind: "subagent";
607
- id: string;
608
- subagentKind: "spawned" | "subagent";
609
- agentType?: string | undefined;
610
- description?: string | undefined;
611
- model?: string | undefined;
612
- provider?: string | undefined;
613
- background?: boolean | undefined;
614
- } | {
615
- kind: "subagent_update";
616
- id: string;
617
- status?: "blocked" | "completed" | "failed" | "killed" | "paused" | "pending" | "running" | undefined;
618
- tokens?: number | undefined;
619
- toolUses?: number | undefined;
620
- lastTool?: string | undefined;
621
- summary?: string | undefined;
622
- error?: string | undefined;
623
- verification?: {
624
- state: "failing" | "no-code" | "unproven" | "verified";
625
- paths?: string[] | undefined;
626
- check?: string | undefined;
627
- } | undefined;
628
- } | {
629
- kind: "todos";
630
- items: {
602
+ checkpointId?: string | undefined;
603
+ rewindIndex?: number | undefined;
604
+ thinking?: string | undefined;
605
+ tools?: import("../events.js").TranscriptTool[] | undefined;
606
+ todos?: {
631
607
  content: string;
632
608
  status: "completed" | "in_progress" | "pending";
633
609
  activeForm?: string | undefined;
634
- }[];
635
- } | {
636
- kind: "commands";
637
- items: {
638
- name: string;
639
- description: string;
640
- hint?: string | undefined;
641
- }[];
642
- } | {
643
- kind: "usage";
644
- account?: string | undefined;
645
- costUsd?: number | undefined;
646
- inputTokens?: number | undefined;
647
- outputTokens?: number | undefined;
648
- cacheReadTokens?: number | undefined;
649
- cacheCreationTokens?: number | undefined;
650
- durationMs?: number | undefined;
651
- numTurns?: number | undefined;
652
- } | {
653
- status: "allowed" | "allowed_warning" | "rejected";
654
- resetsAt?: number | undefined;
655
- rateLimitType?: string | undefined;
656
- utilization?: number | undefined;
657
- kind: "rate_limit_info";
658
- account?: string | undefined;
659
- } | {
660
- kind: "fast_mode";
661
- state: "cooldown" | "off" | "on";
662
- reason?: string | undefined;
663
- } | {
664
- kind: "tier";
665
- tier: "fast" | "standard";
666
- score: number;
667
- rules: string[];
668
- model?: string | undefined;
669
- routed: boolean;
670
- held?: boolean | undefined;
671
- } | {
672
- kind: "provider_retry";
673
- attempt: number;
674
- maxAttempts?: number | undefined;
675
- nextAttemptAt?: number | undefined;
676
- status?: number | undefined;
677
- } | {
678
- kind: "account_usage";
679
- account?: string | undefined;
680
- windows: {
681
- kind: string;
682
- label?: string | undefined;
683
- utilization: number;
684
- resetsAt?: number | undefined;
685
- }[];
686
- } | {
687
- tokens: number;
688
- contextWindow: number;
689
- kind: "context_usage";
690
- } | {
691
- kind: "compact";
692
- trigger: string;
693
- preTokens?: number | undefined;
694
- postTokens?: number | undefined;
695
- } | {
696
- requestId: string;
697
- text: string;
698
- document?: {
699
- path: string;
700
- title: string;
701
- markdown: string;
702
- truncated?: boolean | undefined;
703
- plan?: boolean | undefined;
610
+ }[] | undefined;
611
+ usage?: {
612
+ costUsd?: number | undefined;
613
+ inputTokens?: number | undefined;
614
+ outputTokens?: number | undefined;
615
+ durationMs?: number | undefined;
616
+ numTurns?: number | undefined;
704
617
  } | undefined;
705
- kind: "plan";
706
- } | {
707
- requestId: string;
708
- questions: {
709
- question: string;
710
- header: string;
711
- multiSelect: boolean;
712
- options: {
713
- label: string;
714
- description: string;
715
- preview?: string | undefined;
716
- }[];
717
- }[];
718
- document?: {
719
- path: string;
618
+ notes?: {
720
619
  title: string;
721
- markdown: string;
722
- truncated?: boolean | undefined;
723
- plan?: boolean | undefined;
724
- } | undefined;
725
- kind: "question";
726
- } | {
727
- toolName: string;
728
- title?: string | undefined;
729
- displayName?: string | undefined;
730
- description?: string | undefined;
731
- reason?: string | undefined;
732
- path?: string | undefined;
733
- alwaysLabel?: string | undefined;
734
- program?: {
735
620
  text: string;
736
- language: "bash" | "javascript";
737
- truncated: boolean;
738
- spans: {
739
- start: number;
740
- end: number;
741
- }[];
742
- } | undefined;
743
- explain?: string | undefined;
744
- requestId: string;
745
- kind: "permission";
746
- } | {
747
- requestId: string;
748
- session: string;
749
- account: string;
750
- message: string;
751
- kind: "browser_help";
752
- } | {
753
- requestId: string;
754
- session: string;
755
- message: string;
756
- kind: "terminal_help";
757
- } | {
758
- requestId: string;
759
- offer: {
760
- slug: string;
761
- name: string;
762
- publisher: string;
763
- description: string;
764
- creditsPerRun: number;
765
- probation?: boolean | undefined;
766
- credits?: {
767
- allowance: number;
768
- remaining: number;
769
- resetsAt: string;
770
- } | undefined;
771
- request: string;
772
- why?: string | undefined;
773
- };
774
- kind: "service_offer";
775
- } | {
776
- kind: "service_event";
777
- requestId: string;
778
- event: {
779
- event: "status";
780
- text: string;
781
- } | {
782
- event: "result";
783
- data: unknown;
784
- };
785
- } | {
786
- outcome: "ok" | "refunded" | "refused";
787
- credits: number;
788
- remaining?: number | undefined;
789
- kind: "service_receipt";
790
- requestId: string;
791
- } | {
792
- requestId: string;
793
- offer: {
794
- card: string;
795
- name: string;
796
- why?: string | undefined;
797
- };
798
- kind: "capability_offer";
799
- } | {
800
- outcome: "connected" | "unfinished";
801
- id?: string | undefined;
802
- kind: "capability_outcome";
803
- requestId: string;
804
- } | {
805
- requestId: string;
806
- offer: {
807
- url: string;
808
- description?: string | undefined;
809
- payTo: string;
810
- network: string;
811
- asset: string;
812
- assetName: string;
813
- amountUsd: string;
814
- spentTodayUsd: string;
815
- dailyCapUsd: string;
816
- why?: string | undefined;
817
- };
818
- kind: "payment_offer";
819
- } | {
820
- outcome: "failed" | "paid";
821
- amountUsd: string;
822
- transaction?: string | undefined;
823
- network?: string | undefined;
824
- kind: "payment_receipt";
825
- requestId: string;
826
- } | {
827
- kind: "resolved";
828
- requestId: string;
829
- reply?: {
830
- kind: "plan";
621
+ }[] | undefined;
622
+ placed?: boolean | undefined;
623
+ noticeAction?: "depsInstall" | "landHold" | "outageOptOut" | "tierHold" | undefined;
624
+ noticeWait?: "credentialRenewal" | undefined;
625
+ plan?: {
831
626
  requestId: string;
832
- approve: boolean;
833
- feedback?: string | undefined;
834
- } | {
835
- kind: "question";
627
+ text: string;
628
+ document?: {
629
+ path: string;
630
+ title: string;
631
+ markdown: string;
632
+ truncated?: boolean | undefined;
633
+ plan?: boolean | undefined;
634
+ } | undefined;
635
+ status: "approved" | "cancelled" | "pending" | "rejected";
636
+ } | undefined;
637
+ question?: {
836
638
  requestId: string;
639
+ questions: {
640
+ question: string;
641
+ header: string;
642
+ multiSelect: boolean;
643
+ options: {
644
+ label: string;
645
+ description: string;
646
+ preview?: string | undefined;
647
+ }[];
648
+ }[];
649
+ document?: {
650
+ path: string;
651
+ title: string;
652
+ markdown: string;
653
+ truncated?: boolean | undefined;
654
+ plan?: boolean | undefined;
655
+ } | undefined;
656
+ status: "answered" | "cancelled" | "pending";
837
657
  answers?: Record<string, string[]> | undefined;
838
- cancelled?: boolean | undefined;
839
- } | {
840
- kind: "permission";
658
+ } | undefined;
659
+ permission?: {
660
+ toolName: string;
661
+ title?: string | undefined;
662
+ displayName?: string | undefined;
663
+ description?: string | undefined;
664
+ reason?: string | undefined;
665
+ path?: string | undefined;
666
+ alwaysLabel?: string | undefined;
667
+ program?: {
668
+ text: string;
669
+ language: "bash" | "javascript";
670
+ truncated: boolean;
671
+ spans: {
672
+ start: number;
673
+ end: number;
674
+ }[];
675
+ } | undefined;
676
+ explain?: string | undefined;
841
677
  requestId: string;
842
- decision: "always" | "deny" | "once";
843
- feedback?: string | undefined;
844
- } | {
845
- kind: "browser_help";
678
+ status: "allowed" | "always" | "cancelled" | "denied" | "pending";
679
+ } | undefined;
680
+ browserHelp?: {
846
681
  requestId: string;
847
- helped: boolean;
848
- note?: string | undefined;
849
- } | {
850
- kind: "terminal_help";
682
+ session: string;
683
+ account: string;
684
+ message: string;
685
+ status: "cancelled" | "declined" | "helped" | "pending";
686
+ } | undefined;
687
+ terminalHelp?: {
851
688
  requestId: string;
852
- helped: boolean;
853
- note?: string | undefined;
854
- } | {
855
- kind: "service_offer";
689
+ session: string;
690
+ message: string;
691
+ status: "cancelled" | "declined" | "helped" | "pending";
692
+ } | undefined;
693
+ serviceOffer?: {
856
694
  requestId: string;
857
- approve: boolean;
858
- } | {
859
- kind: "capability_offer";
695
+ offer: {
696
+ slug: string;
697
+ name: string;
698
+ publisher: string;
699
+ description: string;
700
+ creditsPerRun: number;
701
+ probation?: boolean | undefined;
702
+ credits?: {
703
+ allowance: number;
704
+ remaining: number;
705
+ resetsAt: string;
706
+ } | undefined;
707
+ request: string;
708
+ why?: string | undefined;
709
+ };
710
+ status: "approved" | "cancelled" | "pending" | "skipped";
711
+ events?: ({
712
+ event: "status";
713
+ text: string;
714
+ } | {
715
+ event: "result";
716
+ data: unknown;
717
+ })[] | undefined;
718
+ receipt?: {
719
+ outcome: "ok" | "refunded" | "refused";
720
+ credits: number;
721
+ remaining?: number | undefined;
722
+ } | undefined;
723
+ } | undefined;
724
+ capabilityOffer?: {
860
725
  requestId: string;
861
- connect: boolean;
862
- } | {
863
- kind: "payment_offer";
726
+ offer: {
727
+ card: string;
728
+ name: string;
729
+ why?: string | undefined;
730
+ };
731
+ status: "cancelled" | "connecting" | "pending" | "skipped";
732
+ outcome?: {
733
+ outcome: "connected" | "unfinished";
734
+ id?: string | undefined;
735
+ } | undefined;
736
+ } | undefined;
737
+ paymentOffer?: {
864
738
  requestId: string;
865
- approve: boolean;
739
+ offer: {
740
+ url: string;
741
+ description?: string | undefined;
742
+ payTo: string;
743
+ network: string;
744
+ asset: string;
745
+ assetName: string;
746
+ amountUsd: string;
747
+ spentTodayUsd: string;
748
+ dailyCapUsd: string;
749
+ why?: string | undefined;
750
+ };
751
+ status: "approved" | "cancelled" | "pending" | "skipped";
752
+ receipt?: {
753
+ outcome: "failed" | "paid";
754
+ amountUsd: string;
755
+ transaction?: string | undefined;
756
+ network?: string | undefined;
757
+ } | undefined;
866
758
  } | undefined;
759
+ }[];
760
+ } | {
761
+ kind: "patch";
762
+ seq: number;
763
+ patch: {
764
+ op: "append";
765
+ row: {
766
+ role: "assistant" | "notice" | "user";
767
+ text: string;
768
+ sentAt?: number | undefined;
769
+ attachments?: string[] | undefined;
770
+ checkpointId?: string | undefined;
771
+ rewindIndex?: number | undefined;
772
+ thinking?: string | undefined;
773
+ tools?: import("../events.js").TranscriptTool[] | undefined;
774
+ todos?: {
775
+ content: string;
776
+ status: "completed" | "in_progress" | "pending";
777
+ activeForm?: string | undefined;
778
+ }[] | undefined;
779
+ usage?: {
780
+ costUsd?: number | undefined;
781
+ inputTokens?: number | undefined;
782
+ outputTokens?: number | undefined;
783
+ durationMs?: number | undefined;
784
+ numTurns?: number | undefined;
785
+ } | undefined;
786
+ notes?: {
787
+ title: string;
788
+ text: string;
789
+ }[] | undefined;
790
+ placed?: boolean | undefined;
791
+ noticeAction?: "depsInstall" | "landHold" | "outageOptOut" | "tierHold" | undefined;
792
+ noticeWait?: "credentialRenewal" | undefined;
793
+ plan?: {
794
+ requestId: string;
795
+ text: string;
796
+ document?: {
797
+ path: string;
798
+ title: string;
799
+ markdown: string;
800
+ truncated?: boolean | undefined;
801
+ plan?: boolean | undefined;
802
+ } | undefined;
803
+ status: "approved" | "cancelled" | "pending" | "rejected";
804
+ } | undefined;
805
+ question?: {
806
+ requestId: string;
807
+ questions: {
808
+ question: string;
809
+ header: string;
810
+ multiSelect: boolean;
811
+ options: {
812
+ label: string;
813
+ description: string;
814
+ preview?: string | undefined;
815
+ }[];
816
+ }[];
817
+ document?: {
818
+ path: string;
819
+ title: string;
820
+ markdown: string;
821
+ truncated?: boolean | undefined;
822
+ plan?: boolean | undefined;
823
+ } | undefined;
824
+ status: "answered" | "cancelled" | "pending";
825
+ answers?: Record<string, string[]> | undefined;
826
+ } | undefined;
827
+ permission?: {
828
+ toolName: string;
829
+ title?: string | undefined;
830
+ displayName?: string | undefined;
831
+ description?: string | undefined;
832
+ reason?: string | undefined;
833
+ path?: string | undefined;
834
+ alwaysLabel?: string | undefined;
835
+ program?: {
836
+ text: string;
837
+ language: "bash" | "javascript";
838
+ truncated: boolean;
839
+ spans: {
840
+ start: number;
841
+ end: number;
842
+ }[];
843
+ } | undefined;
844
+ explain?: string | undefined;
845
+ requestId: string;
846
+ status: "allowed" | "always" | "cancelled" | "denied" | "pending";
847
+ } | undefined;
848
+ browserHelp?: {
849
+ requestId: string;
850
+ session: string;
851
+ account: string;
852
+ message: string;
853
+ status: "cancelled" | "declined" | "helped" | "pending";
854
+ } | undefined;
855
+ terminalHelp?: {
856
+ requestId: string;
857
+ session: string;
858
+ message: string;
859
+ status: "cancelled" | "declined" | "helped" | "pending";
860
+ } | undefined;
861
+ serviceOffer?: {
862
+ requestId: string;
863
+ offer: {
864
+ slug: string;
865
+ name: string;
866
+ publisher: string;
867
+ description: string;
868
+ creditsPerRun: number;
869
+ probation?: boolean | undefined;
870
+ credits?: {
871
+ allowance: number;
872
+ remaining: number;
873
+ resetsAt: string;
874
+ } | undefined;
875
+ request: string;
876
+ why?: string | undefined;
877
+ };
878
+ status: "approved" | "cancelled" | "pending" | "skipped";
879
+ events?: ({
880
+ event: "status";
881
+ text: string;
882
+ } | {
883
+ event: "result";
884
+ data: unknown;
885
+ })[] | undefined;
886
+ receipt?: {
887
+ outcome: "ok" | "refunded" | "refused";
888
+ credits: number;
889
+ remaining?: number | undefined;
890
+ } | undefined;
891
+ } | undefined;
892
+ capabilityOffer?: {
893
+ requestId: string;
894
+ offer: {
895
+ card: string;
896
+ name: string;
897
+ why?: string | undefined;
898
+ };
899
+ status: "cancelled" | "connecting" | "pending" | "skipped";
900
+ outcome?: {
901
+ outcome: "connected" | "unfinished";
902
+ id?: string | undefined;
903
+ } | undefined;
904
+ } | undefined;
905
+ paymentOffer?: {
906
+ requestId: string;
907
+ offer: {
908
+ url: string;
909
+ description?: string | undefined;
910
+ payTo: string;
911
+ network: string;
912
+ asset: string;
913
+ assetName: string;
914
+ amountUsd: string;
915
+ spentTodayUsd: string;
916
+ dailyCapUsd: string;
917
+ why?: string | undefined;
918
+ };
919
+ status: "approved" | "cancelled" | "pending" | "skipped";
920
+ receipt?: {
921
+ outcome: "failed" | "paid";
922
+ amountUsd: string;
923
+ transaction?: string | undefined;
924
+ network?: string | undefined;
925
+ } | undefined;
926
+ } | undefined;
927
+ };
928
+ } | {
929
+ op: "replace";
930
+ index: number;
931
+ row: {
932
+ role: "assistant" | "notice" | "user";
933
+ text: string;
934
+ sentAt?: number | undefined;
935
+ attachments?: string[] | undefined;
936
+ checkpointId?: string | undefined;
937
+ rewindIndex?: number | undefined;
938
+ thinking?: string | undefined;
939
+ tools?: import("../events.js").TranscriptTool[] | undefined;
940
+ todos?: {
941
+ content: string;
942
+ status: "completed" | "in_progress" | "pending";
943
+ activeForm?: string | undefined;
944
+ }[] | undefined;
945
+ usage?: {
946
+ costUsd?: number | undefined;
947
+ inputTokens?: number | undefined;
948
+ outputTokens?: number | undefined;
949
+ durationMs?: number | undefined;
950
+ numTurns?: number | undefined;
951
+ } | undefined;
952
+ notes?: {
953
+ title: string;
954
+ text: string;
955
+ }[] | undefined;
956
+ placed?: boolean | undefined;
957
+ noticeAction?: "depsInstall" | "landHold" | "outageOptOut" | "tierHold" | undefined;
958
+ noticeWait?: "credentialRenewal" | undefined;
959
+ plan?: {
960
+ requestId: string;
961
+ text: string;
962
+ document?: {
963
+ path: string;
964
+ title: string;
965
+ markdown: string;
966
+ truncated?: boolean | undefined;
967
+ plan?: boolean | undefined;
968
+ } | undefined;
969
+ status: "approved" | "cancelled" | "pending" | "rejected";
970
+ } | undefined;
971
+ question?: {
972
+ requestId: string;
973
+ questions: {
974
+ question: string;
975
+ header: string;
976
+ multiSelect: boolean;
977
+ options: {
978
+ label: string;
979
+ description: string;
980
+ preview?: string | undefined;
981
+ }[];
982
+ }[];
983
+ document?: {
984
+ path: string;
985
+ title: string;
986
+ markdown: string;
987
+ truncated?: boolean | undefined;
988
+ plan?: boolean | undefined;
989
+ } | undefined;
990
+ status: "answered" | "cancelled" | "pending";
991
+ answers?: Record<string, string[]> | undefined;
992
+ } | undefined;
993
+ permission?: {
994
+ toolName: string;
995
+ title?: string | undefined;
996
+ displayName?: string | undefined;
997
+ description?: string | undefined;
998
+ reason?: string | undefined;
999
+ path?: string | undefined;
1000
+ alwaysLabel?: string | undefined;
1001
+ program?: {
1002
+ text: string;
1003
+ language: "bash" | "javascript";
1004
+ truncated: boolean;
1005
+ spans: {
1006
+ start: number;
1007
+ end: number;
1008
+ }[];
1009
+ } | undefined;
1010
+ explain?: string | undefined;
1011
+ requestId: string;
1012
+ status: "allowed" | "always" | "cancelled" | "denied" | "pending";
1013
+ } | undefined;
1014
+ browserHelp?: {
1015
+ requestId: string;
1016
+ session: string;
1017
+ account: string;
1018
+ message: string;
1019
+ status: "cancelled" | "declined" | "helped" | "pending";
1020
+ } | undefined;
1021
+ terminalHelp?: {
1022
+ requestId: string;
1023
+ session: string;
1024
+ message: string;
1025
+ status: "cancelled" | "declined" | "helped" | "pending";
1026
+ } | undefined;
1027
+ serviceOffer?: {
1028
+ requestId: string;
1029
+ offer: {
1030
+ slug: string;
1031
+ name: string;
1032
+ publisher: string;
1033
+ description: string;
1034
+ creditsPerRun: number;
1035
+ probation?: boolean | undefined;
1036
+ credits?: {
1037
+ allowance: number;
1038
+ remaining: number;
1039
+ resetsAt: string;
1040
+ } | undefined;
1041
+ request: string;
1042
+ why?: string | undefined;
1043
+ };
1044
+ status: "approved" | "cancelled" | "pending" | "skipped";
1045
+ events?: ({
1046
+ event: "status";
1047
+ text: string;
1048
+ } | {
1049
+ event: "result";
1050
+ data: unknown;
1051
+ })[] | undefined;
1052
+ receipt?: {
1053
+ outcome: "ok" | "refunded" | "refused";
1054
+ credits: number;
1055
+ remaining?: number | undefined;
1056
+ } | undefined;
1057
+ } | undefined;
1058
+ capabilityOffer?: {
1059
+ requestId: string;
1060
+ offer: {
1061
+ card: string;
1062
+ name: string;
1063
+ why?: string | undefined;
1064
+ };
1065
+ status: "cancelled" | "connecting" | "pending" | "skipped";
1066
+ outcome?: {
1067
+ outcome: "connected" | "unfinished";
1068
+ id?: string | undefined;
1069
+ } | undefined;
1070
+ } | undefined;
1071
+ paymentOffer?: {
1072
+ requestId: string;
1073
+ offer: {
1074
+ url: string;
1075
+ description?: string | undefined;
1076
+ payTo: string;
1077
+ network: string;
1078
+ asset: string;
1079
+ assetName: string;
1080
+ amountUsd: string;
1081
+ spentTodayUsd: string;
1082
+ dailyCapUsd: string;
1083
+ why?: string | undefined;
1084
+ };
1085
+ status: "approved" | "cancelled" | "pending" | "skipped";
1086
+ receipt?: {
1087
+ outcome: "failed" | "paid";
1088
+ amountUsd: string;
1089
+ transaction?: string | undefined;
1090
+ network?: string | undefined;
1091
+ } | undefined;
1092
+ } | undefined;
1093
+ };
867
1094
  } | {
868
- kind: "permission_note";
869
- requestId: string;
870
- explain: string;
1095
+ op: "drop";
1096
+ index: number;
871
1097
  } | {
872
- kind: "mode";
873
- mode: "acceptEdits" | "bypassPermissions" | "default" | "plan";
1098
+ op: "text";
1099
+ index: number;
1100
+ text: string;
874
1101
  } | {
875
- kind: "error";
876
- message: string;
877
- code?: "agent-busy" | "claude-not-entitled" | "claude-reauth" | "claude-token-refused" | "codex-advisory" | "codex-model-invalid" | "codex-reauth" | "context-window-too-small" | "engine-version-floor" | "grok-model-invalid" | "harness-incomplete" | "provider-outage" | "rate_limit" | "sandbox-memory-low" | "session-not-found" | "subscription-required" | "trial-exhausted" | "trial-model-unavailable" | "trial-unavailable" | "turn-cap" | "unknown-command" | undefined;
878
- engine?: {
879
- id: string;
880
- running?: string | undefined;
881
- floor: string;
882
- } | undefined;
883
- resetsAt?: number | undefined;
884
- autoResume?: "available" | "scheduled" | undefined;
885
- held?: {
886
- ran: boolean;
887
- } | undefined;
888
- outage?: {
889
- retryAt: number;
890
- attempt: number;
891
- maxAttempts: number;
892
- } | undefined;
1102
+ op: "thinking";
1103
+ index: number;
1104
+ text: string;
893
1105
  } | {
894
- kind: "done";
1106
+ op: "tool";
1107
+ index: number;
1108
+ tool: import("../events.js").TranscriptTool;
1109
+ parent?: string | undefined;
895
1110
  };
1111
+ } | {
1112
+ kind: "fact";
1113
+ seq: number;
1114
+ fact: import("../events.js").TurnFact;
896
1115
  } | {
897
1116
  kind: "end";
898
1117
  }, unknown, void>>, Record<never, never>, Record<never, never>>;
@@ -998,6 +1217,7 @@ export declare const agentContract: {
998
1217
  }>;
999
1218
  message: import("zod").ZodString;
1000
1219
  account: import("zod").ZodOptional<import("zod").ZodString>;
1220
+ model: import("zod").ZodOptional<import("zod").ZodString>;
1001
1221
  }, import("zod/v4/core").$strip>>;
1002
1222
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
1003
1223
  };