@nyte-ai/schema 0.0.0-stage → 0.0.18

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 (148) hide show
  1. package/LICENSE +21 -0
  2. package/THIRD-PARTY-NOTICES.md +800 -0
  3. package/dist/chunks/browser-0byq2fja.js +50 -0
  4. package/dist/chunks/browser-0ebnhqs2.js +36 -0
  5. package/dist/chunks/browser-0g0z3617.js +47 -0
  6. package/dist/chunks/browser-0khex2b1.js +33 -0
  7. package/dist/chunks/browser-1sfp0bcx.js +73 -0
  8. package/dist/chunks/browser-40enyw9r.js +75 -0
  9. package/dist/chunks/browser-48g24pes.js +106 -0
  10. package/dist/chunks/browser-4et7qtz3.js +7 -0
  11. package/dist/chunks/browser-5n1dh580.js +66 -0
  12. package/dist/chunks/browser-5pvw8svn.js +243 -0
  13. package/dist/chunks/browser-6e1madxa.js +83 -0
  14. package/dist/chunks/browser-6yby604e.js +96 -0
  15. package/dist/chunks/browser-7195qf3t.js +14 -0
  16. package/dist/chunks/browser-7gjnxy9m.js +172 -0
  17. package/dist/chunks/browser-8t9anqfc.js +113 -0
  18. package/dist/chunks/browser-9ystjh78.js +0 -0
  19. package/dist/chunks/browser-ad9yebg7.js +101 -0
  20. package/dist/chunks/browser-b519jtez.js +102 -0
  21. package/dist/chunks/browser-bg1esaw0.js +82 -0
  22. package/dist/chunks/browser-bxz3z1v6.js +181 -0
  23. package/dist/chunks/browser-e5xgzd28.js +82 -0
  24. package/dist/chunks/browser-ebr6k189.js +120 -0
  25. package/dist/chunks/browser-ekbecx9r.js +73 -0
  26. package/dist/chunks/browser-fd3accdr.js +159 -0
  27. package/dist/chunks/browser-fth801bw.js +50 -0
  28. package/dist/chunks/browser-g5khdcap.js +170 -0
  29. package/dist/chunks/browser-gchr2880.js +135 -0
  30. package/dist/chunks/browser-h86zs54a.js +65 -0
  31. package/dist/chunks/browser-hq5q56sf.js +79 -0
  32. package/dist/chunks/browser-j629a6wa.js +17 -0
  33. package/dist/chunks/browser-k20f6cvv.js +0 -0
  34. package/dist/chunks/browser-m0wzr0g8.js +5 -0
  35. package/dist/chunks/browser-mnejgne0.js +125 -0
  36. package/dist/chunks/browser-mzfc0v5j.js +58 -0
  37. package/dist/chunks/browser-pdv675va.js +135 -0
  38. package/dist/chunks/browser-pdx38ng3.js +301 -0
  39. package/dist/chunks/browser-qkxe0fwp.js +6 -0
  40. package/dist/chunks/browser-r00v3vwv.js +238 -0
  41. package/dist/chunks/browser-r87w64mz.js +32 -0
  42. package/dist/chunks/browser-s7907azt.js +118 -0
  43. package/dist/chunks/browser-sgwxbek9.js +37 -0
  44. package/dist/chunks/browser-v70eq512.js +215 -0
  45. package/dist/chunks/browser-vapnjwp3.js +35 -0
  46. package/dist/chunks/browser-vkh2tpmf.js +283 -0
  47. package/dist/chunks/browser-vzc3r2r3.js +64 -0
  48. package/dist/chunks/browser-ypez6s7v.js +52 -0
  49. package/dist/src/browser.d.ts +64 -0
  50. package/dist/src/browser.js +26 -0
  51. package/dist/src/configuration.d.ts +26 -0
  52. package/dist/src/configuration.js +17 -0
  53. package/dist/src/connection.d.ts +189 -0
  54. package/dist/src/connection.js +35 -0
  55. package/dist/src/declaration.d.ts +12 -0
  56. package/dist/src/declaration.js +1 -0
  57. package/dist/src/errors.d.ts +56 -0
  58. package/dist/src/errors.js +23 -0
  59. package/dist/src/events.d.ts +1750 -0
  60. package/dist/src/events.js +36 -0
  61. package/dist/src/files.d.ts +130 -0
  62. package/dist/src/files.js +49 -0
  63. package/dist/src/git.d.ts +271 -0
  64. package/dist/src/git.js +64 -0
  65. package/dist/src/github.d.ts +174 -0
  66. package/dist/src/github.js +31 -0
  67. package/dist/src/heads.d.ts +255 -0
  68. package/dist/src/heads.js +48 -0
  69. package/dist/src/hooks.d.ts +201 -0
  70. package/dist/src/hooks.js +28 -0
  71. package/dist/src/host.d.ts +137 -0
  72. package/dist/src/host.js +49 -0
  73. package/dist/src/ids.d.ts +66 -0
  74. package/dist/src/ids.js +67 -0
  75. package/dist/src/index.d.ts +30 -0
  76. package/dist/src/index.js +779 -0
  77. package/dist/src/jobs.d.ts +152 -0
  78. package/dist/src/jobs.js +34 -0
  79. package/dist/src/json.d.ts +24 -0
  80. package/dist/src/json.js +21 -0
  81. package/dist/src/mcp.d.ts +212 -0
  82. package/dist/src/mcp.js +34 -0
  83. package/dist/src/messages.d.ts +114 -0
  84. package/dist/src/messages.js +28 -0
  85. package/dist/src/model/index.d.ts +6 -0
  86. package/dist/src/model/index.js +61 -0
  87. package/dist/src/model/message.d.ts +178 -0
  88. package/dist/src/model/message.js +7 -0
  89. package/dist/src/model/model.d.ts +154 -0
  90. package/dist/src/model/model.js +11 -0
  91. package/dist/src/model/text.d.ts +6 -0
  92. package/dist/src/model/text.js +10 -0
  93. package/dist/src/model/tool.d.ts +36 -0
  94. package/dist/src/model/tool.js +1 -0
  95. package/dist/src/model/transcript.d.ts +34 -0
  96. package/dist/src/model/transcript.js +37 -0
  97. package/dist/src/model/typed.d.ts +6 -0
  98. package/dist/src/model/typed.js +8 -0
  99. package/dist/src/models.d.ts +195 -0
  100. package/dist/src/models.js +45 -0
  101. package/dist/src/parts.d.ts +364 -0
  102. package/dist/src/parts.js +35 -0
  103. package/dist/src/patch.d.ts +21 -0
  104. package/dist/src/patch.js +11 -0
  105. package/dist/src/plugins.d.ts +36 -0
  106. package/dist/src/plugins.js +9 -0
  107. package/dist/src/primitives.d.ts +83 -0
  108. package/dist/src/primitives.js +26 -0
  109. package/dist/src/runs.d.ts +433 -0
  110. package/dist/src/runs.js +39 -0
  111. package/dist/src/schema.d.ts +14 -0
  112. package/dist/src/schema.js +8 -0
  113. package/dist/src/serial.d.ts +18 -0
  114. package/dist/src/serial.js +39 -0
  115. package/dist/src/sessions.d.ts +578 -0
  116. package/dist/src/sessions.js +74 -0
  117. package/dist/src/store.d.ts +831 -0
  118. package/dist/src/store.js +33 -0
  119. package/dist/src/tools.d.ts +76 -0
  120. package/dist/src/tools.js +24 -0
  121. package/dist/src/views.d.ts +2737 -0
  122. package/dist/src/views.js +50 -0
  123. package/dist/src/wire/base64.d.ts +2 -0
  124. package/dist/src/wire/base64.js +6 -0
  125. package/dist/src/wire/nullable.d.ts +2 -0
  126. package/dist/src/wire/nullable.js +6 -0
  127. package/dist/src/wire/operations/browser.d.ts +535 -0
  128. package/dist/src/wire/operations/browser.js +12 -0
  129. package/dist/src/wire/operations/fields.d.ts +54 -0
  130. package/dist/src/wire/operations/fields.js +30 -0
  131. package/dist/src/wire/operations/files.d.ts +244 -0
  132. package/dist/src/wire/operations/files.js +13 -0
  133. package/dist/src/wire/operations/git.d.ts +513 -0
  134. package/dist/src/wire/operations/git.js +15 -0
  135. package/dist/src/wire/operations/github.d.ts +172 -0
  136. package/dist/src/wire/operations/github.js +12 -0
  137. package/dist/src/wire/operations/host.d.ts +1011 -0
  138. package/dist/src/wire/operations/host.js +27 -0
  139. package/dist/src/wire/operations/index.d.ts +6703 -0
  140. package/dist/src/wire/operations/index.js +40 -0
  141. package/dist/src/wire/operations/session.d.ts +3411 -0
  142. package/dist/src/wire/operations/session.js +25 -0
  143. package/dist/src/wire/operations/workspace.d.ts +830 -0
  144. package/dist/src/wire/operations/workspace.js +24 -0
  145. package/dist/src/workspaces.d.ts +119 -0
  146. package/dist/src/workspaces.js +38 -0
  147. package/package.json +51 -3
  148. package/README.md +0 -3
@@ -0,0 +1,3411 @@
1
+ export declare const SESSION_OPERATIONS: {
2
+ readonly "session.info": {
3
+ readonly kind: "query";
4
+ readonly input: import("../../schema.ts").Schema<{
5
+ session: import("../../ids.ts").Id<"session">;
6
+ }>;
7
+ readonly output: import("../../schema.ts").Schema<{
8
+ readonly name: string | null;
9
+ readonly call: import("../../ids.ts").Id<"call"> | null;
10
+ readonly workspace: import("../../ids.ts").Id<"workspace">;
11
+ readonly id: import("../../ids.ts").Id<"session">;
12
+ readonly parent: import("../../ids.ts").Id<"session"> | null;
13
+ readonly heads: readonly {
14
+ readonly name: import("../../ids.ts").Id<"head">;
15
+ readonly tip: {
16
+ readonly kind: "start";
17
+ } | {
18
+ readonly id: import("../../ids.ts").Id<"commit">;
19
+ readonly kind: "commit";
20
+ };
21
+ readonly stack: {
22
+ readonly stale: boolean;
23
+ readonly parent: import("../../ids.ts").Id<"head">;
24
+ readonly base: {
25
+ readonly kind: "start";
26
+ } | {
27
+ readonly id: import("../../ids.ts").Id<"commit">;
28
+ readonly kind: "commit";
29
+ };
30
+ } | null;
31
+ readonly execution: {
32
+ readonly kind: "idle";
33
+ readonly lastRun: {
34
+ readonly id: import("../../ids.ts").Id<"run">;
35
+ readonly end: {
36
+ readonly kind: "completed";
37
+ readonly usage: {
38
+ readonly output: number;
39
+ readonly input: number;
40
+ readonly cacheRead: number;
41
+ readonly cacheWrite: number;
42
+ readonly reasoning: number | null;
43
+ readonly total: number;
44
+ readonly cost: {
45
+ readonly output: number;
46
+ readonly input: number;
47
+ readonly cacheRead: number;
48
+ readonly cacheWrite: number;
49
+ readonly total: number;
50
+ };
51
+ };
52
+ } | {
53
+ readonly kind: "stopped";
54
+ } | {
55
+ readonly kind: "failed";
56
+ readonly failure: {
57
+ readonly retryAfterMs?: number | undefined;
58
+ readonly message: string;
59
+ readonly class: "provider" | "rate_limit" | "auth" | "quota" | "context_window" | "overloaded" | "network" | "aborted" | "runner";
60
+ };
61
+ };
62
+ readonly endedAt: number;
63
+ } | null;
64
+ } | {
65
+ readonly run: {
66
+ readonly head: import("../../ids.ts").Id<"head">;
67
+ readonly id: import("../../ids.ts").Id<"run">;
68
+ readonly configuration: {
69
+ readonly kind: "exact";
70
+ readonly thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
71
+ readonly model: {
72
+ readonly id: string;
73
+ readonly provider: string;
74
+ };
75
+ readonly agent: string | null;
76
+ readonly settings: {
77
+ readonly [x: string]: import("../../json.ts").Json;
78
+ };
79
+ readonly settingsVersion: string;
80
+ };
81
+ readonly startedAt: number;
82
+ readonly attempt: number;
83
+ readonly origin: {
84
+ readonly message: import("../../ids.ts").Id<"message">;
85
+ readonly kind: "input";
86
+ } | {
87
+ readonly kind: "continuation";
88
+ readonly from: "job" | "child" | "wake";
89
+ };
90
+ };
91
+ readonly kind: "live";
92
+ readonly phase: "responding" | "executing";
93
+ readonly stopping: boolean;
94
+ } | {
95
+ readonly run: {
96
+ readonly head: import("../../ids.ts").Id<"head">;
97
+ readonly id: import("../../ids.ts").Id<"run">;
98
+ readonly configuration: {
99
+ readonly kind: "exact";
100
+ readonly thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
101
+ readonly model: {
102
+ readonly id: string;
103
+ readonly provider: string;
104
+ };
105
+ readonly agent: string | null;
106
+ readonly settings: {
107
+ readonly [x: string]: import("../../json.ts").Json;
108
+ };
109
+ readonly settingsVersion: string;
110
+ };
111
+ readonly startedAt: number;
112
+ readonly attempt: number;
113
+ readonly origin: {
114
+ readonly message: import("../../ids.ts").Id<"message">;
115
+ readonly kind: "input";
116
+ } | {
117
+ readonly kind: "continuation";
118
+ readonly from: "job" | "child" | "wake";
119
+ };
120
+ };
121
+ readonly kind: "waiting";
122
+ readonly on: {
123
+ readonly deadline?: number | undefined;
124
+ readonly session: import("../../ids.ts").Id<"session">;
125
+ readonly run: import("../../ids.ts").Id<"run">;
126
+ readonly kind: "run";
127
+ } | {
128
+ readonly deadline?: number | undefined;
129
+ readonly job: import("../../ids.ts").Id<"job">;
130
+ readonly kind: "job";
131
+ } | {
132
+ readonly deadline?: number | undefined;
133
+ readonly part: import("../../ids.ts").Id<"part">;
134
+ readonly kind: "part";
135
+ } | {
136
+ readonly deadline?: number | undefined;
137
+ readonly kind: "timer";
138
+ readonly until: number;
139
+ };
140
+ } | {
141
+ readonly run: {
142
+ readonly head: import("../../ids.ts").Id<"head">;
143
+ readonly id: import("../../ids.ts").Id<"run">;
144
+ readonly configuration: {
145
+ readonly kind: "exact";
146
+ readonly thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
147
+ readonly model: {
148
+ readonly id: string;
149
+ readonly provider: string;
150
+ };
151
+ readonly agent: string | null;
152
+ readonly settings: {
153
+ readonly [x: string]: import("../../json.ts").Json;
154
+ };
155
+ readonly settingsVersion: string;
156
+ };
157
+ readonly startedAt: number;
158
+ readonly attempt: number;
159
+ readonly origin: {
160
+ readonly message: import("../../ids.ts").Id<"message">;
161
+ readonly kind: "input";
162
+ } | {
163
+ readonly kind: "continuation";
164
+ readonly from: "job" | "child" | "wake";
165
+ };
166
+ };
167
+ readonly kind: "retrying";
168
+ readonly reason: string;
169
+ readonly until: number;
170
+ };
171
+ readonly unread: boolean;
172
+ }[];
173
+ readonly pinned: boolean;
174
+ readonly archived: boolean;
175
+ readonly activation: {
176
+ readonly kind: "active";
177
+ } | {
178
+ readonly kind: "inactive";
179
+ } | {
180
+ readonly workspace: import("../../ids.ts").Id<"workspace">;
181
+ readonly kind: "unavailable";
182
+ readonly reason: "unreachable" | "unsupported";
183
+ } | {
184
+ readonly message: string;
185
+ readonly kind: "failed";
186
+ };
187
+ readonly createdAt: number;
188
+ readonly lastActivityAt: number;
189
+ }>;
190
+ readonly authority: "participant";
191
+ readonly scope: "session";
192
+ };
193
+ readonly "session.update": {
194
+ readonly kind: "command";
195
+ readonly input: import("../../schema.ts").Schema<{
196
+ session: import("../../ids.ts").Id<"session">;
197
+ patch: {
198
+ name?: string | null | undefined;
199
+ workspace?: import("../../ids.ts").Id<"workspace"> | undefined;
200
+ pinned?: boolean | undefined;
201
+ archived?: boolean | undefined;
202
+ };
203
+ }>;
204
+ readonly output: import("../../schema.ts").Schema<{
205
+ readonly kind: "updated";
206
+ } | {
207
+ readonly kind: "busy";
208
+ readonly runs: readonly import("../../ids.ts").Id<"run">[];
209
+ } | {
210
+ readonly kind: "unknown-workspace";
211
+ }>;
212
+ readonly authority: "participant";
213
+ readonly scope: "session";
214
+ };
215
+ readonly "session.remove": {
216
+ readonly kind: "command";
217
+ readonly input: import("../../schema.ts").Schema<{
218
+ session: import("../../ids.ts").Id<"session">;
219
+ }>;
220
+ readonly output: import("../../schema.ts").Schema<{
221
+ readonly kind: "removed";
222
+ } | {
223
+ readonly kind: "busy";
224
+ readonly runs: readonly import("../../ids.ts").Id<"run">[];
225
+ } | {
226
+ readonly kind: "has-children";
227
+ readonly children: readonly import("../../ids.ts").Id<"session">[];
228
+ }>;
229
+ readonly authority: "participant";
230
+ readonly scope: "session";
231
+ };
232
+ readonly "session.stop": {
233
+ readonly kind: "command";
234
+ readonly input: import("../../schema.ts").Schema<{
235
+ session: import("../../ids.ts").Id<"session">;
236
+ }>;
237
+ readonly output: import("../../schema.ts").Schema<{
238
+ stopped: import("../../ids.ts").Id<"run">[];
239
+ withdrawn: import("../../ids.ts").Id<"message">[];
240
+ }>;
241
+ readonly authority: "participant";
242
+ readonly scope: "session";
243
+ };
244
+ readonly "session.command": {
245
+ readonly kind: "command";
246
+ readonly input: import("../../schema.ts").Schema<{
247
+ name: string;
248
+ session: import("../../ids.ts").Id<"session">;
249
+ text: string;
250
+ }>;
251
+ readonly output: import("../../schema.ts").Schema<{
252
+ readonly output: string | null;
253
+ readonly kind: "ran";
254
+ } | {
255
+ readonly receipt: import("../../ids.ts").Id<"receipt">;
256
+ readonly kind: "sent";
257
+ } | {
258
+ readonly kind: "unknown";
259
+ } | {
260
+ readonly message: string;
261
+ readonly kind: "failed";
262
+ }>;
263
+ readonly authority: "participant";
264
+ readonly scope: "session";
265
+ };
266
+ readonly "session.completeCommand": {
267
+ readonly kind: "query";
268
+ readonly input: import("../../schema.ts").Schema<{
269
+ name: string;
270
+ session: import("../../ids.ts").Id<"session">;
271
+ prefix: string;
272
+ }>;
273
+ readonly output: import("../../schema.ts").Schema<readonly {
274
+ readonly description?: string | undefined;
275
+ readonly value: string;
276
+ readonly label: string;
277
+ }[]>;
278
+ readonly authority: "participant";
279
+ readonly scope: "session";
280
+ };
281
+ readonly "head.send": {
282
+ readonly kind: "receipt";
283
+ readonly recovery: "replay";
284
+ readonly input: import("../../schema.ts").Schema<{
285
+ options?: {
286
+ replace?: import("../../ids.ts").Id<"message"> | undefined;
287
+ id?: import("../../ids.ts").Id<"receipt"> | undefined;
288
+ source?: {
289
+ kind: "user";
290
+ } | {
291
+ session: import("../../ids.ts").Id<"session">;
292
+ kind: "child";
293
+ end: "failed" | "completed" | "stopped";
294
+ } | {
295
+ job: import("../../ids.ts").Id<"job">;
296
+ kind: "job";
297
+ } | {
298
+ kind: "shell";
299
+ } | {
300
+ command?: string | undefined;
301
+ kind: "action";
302
+ label: string;
303
+ } | undefined;
304
+ configuration?: {
305
+ kind: "exact";
306
+ thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
307
+ model: {
308
+ id: string;
309
+ provider: string;
310
+ };
311
+ agent: string | null;
312
+ settings: Record<string, import("../../json.ts").Json>;
313
+ settingsVersion: string;
314
+ } | {
315
+ thinking?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
316
+ model?: {
317
+ id: string;
318
+ provider: string;
319
+ } | undefined;
320
+ agent?: string | null | undefined;
321
+ settings?: Record<string, import("../../json.ts").Json> | undefined;
322
+ } | undefined;
323
+ position?: {
324
+ kind: "last";
325
+ } | {
326
+ message: import("../../ids.ts").Id<"message">;
327
+ kind: "before";
328
+ } | undefined;
329
+ running?: "refuse" | "stop" | undefined;
330
+ abandoned?: "keep" | {
331
+ summarize: {
332
+ instructions?: string | undefined;
333
+ };
334
+ } | undefined;
335
+ expect?: import("../../ids.ts").Id<"revision"> | undefined;
336
+ delivery?: "steer" | "queue" | "attach" | undefined;
337
+ } | undefined;
338
+ session: import("../../ids.ts").Id<"session">;
339
+ head: import("../../ids.ts").Id<"head">;
340
+ content: string | ({
341
+ text: string;
342
+ kind: "text";
343
+ } | {
344
+ name: string;
345
+ blob: import("../../ids.ts").Id<"blob">;
346
+ kind: "file";
347
+ mime: string;
348
+ } | {
349
+ blob?: import("../../ids.ts").Id<"blob"> | undefined;
350
+ kind: "reference";
351
+ path: string;
352
+ } | {
353
+ name: string;
354
+ kind: "skill";
355
+ location: string;
356
+ } | {
357
+ text: string;
358
+ kind: "excerpt";
359
+ source: {
360
+ kind: "diff";
361
+ path: string;
362
+ side: "old" | "new";
363
+ start: number;
364
+ end: number;
365
+ } | {
366
+ command?: string | undefined;
367
+ kind: "terminal";
368
+ } | {
369
+ url: string;
370
+ kind: "browser";
371
+ selector: string;
372
+ };
373
+ })[];
374
+ }>;
375
+ readonly output: import("../../schema.ts").Schema<{
376
+ message: import("../../ids.ts").Id<"message">;
377
+ receipt: import("../../ids.ts").Id<"receipt">;
378
+ }>;
379
+ readonly authority: "participant";
380
+ readonly scope: "session";
381
+ };
382
+ readonly "head.configure": {
383
+ readonly kind: "command";
384
+ readonly input: import("../../schema.ts").Schema<{
385
+ session: import("../../ids.ts").Id<"session">;
386
+ head: import("../../ids.ts").Id<"head">;
387
+ patch: {
388
+ thinking?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
389
+ model?: {
390
+ id: string;
391
+ provider: string;
392
+ } | undefined;
393
+ agent?: string | null | undefined;
394
+ settings?: Record<string, import("../../json.ts").Json> | undefined;
395
+ };
396
+ }>;
397
+ readonly output: import("../../schema.ts").Schema<{
398
+ readonly revision: import("../../ids.ts").Id<"revision">;
399
+ readonly kind: "configured";
400
+ readonly selected: {
401
+ readonly kind: "exact";
402
+ readonly thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
403
+ readonly model: {
404
+ readonly id: string;
405
+ readonly provider: string;
406
+ };
407
+ readonly agent: string | null;
408
+ readonly settings: {
409
+ readonly [x: string]: import("../../json.ts").Json;
410
+ };
411
+ readonly settingsVersion: string;
412
+ };
413
+ } | {
414
+ readonly kind: "unknown-model";
415
+ readonly model: {
416
+ readonly id: string;
417
+ readonly provider: string;
418
+ };
419
+ } | {
420
+ readonly kind: "unknown-agent";
421
+ readonly agent: string;
422
+ } | {
423
+ readonly issues: readonly {
424
+ readonly source?: {
425
+ readonly file?: string | undefined;
426
+ readonly line?: number | undefined;
427
+ readonly plugin: string;
428
+ } | undefined;
429
+ readonly message: string;
430
+ readonly severity: "error" | "warning";
431
+ readonly path: readonly (string | number)[];
432
+ }[];
433
+ readonly kind: "invalid";
434
+ }>;
435
+ readonly authority: "participant";
436
+ readonly scope: "session";
437
+ };
438
+ readonly "head.view": {
439
+ readonly kind: "query";
440
+ readonly input: import("../../schema.ts").Schema<{
441
+ options?: {
442
+ tail?: number | undefined;
443
+ } | undefined;
444
+ session: import("../../ids.ts").Id<"session">;
445
+ head: import("../../ids.ts").Id<"head">;
446
+ }>;
447
+ readonly output: import("../../schema.ts").Schema<{
448
+ readonly revision: import("../../ids.ts").Id<"revision"> | null;
449
+ readonly seq: import("../../ids.ts").Seq;
450
+ readonly configuration: {
451
+ readonly selected: {
452
+ readonly kind: "exact";
453
+ readonly thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
454
+ readonly model: {
455
+ readonly id: string;
456
+ readonly provider: string;
457
+ };
458
+ readonly agent: string | null;
459
+ readonly settings: {
460
+ readonly [x: string]: import("../../json.ts").Json;
461
+ };
462
+ readonly settingsVersion: string;
463
+ } | null;
464
+ readonly effective: {
465
+ readonly kind: "exact";
466
+ readonly thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
467
+ readonly model: {
468
+ readonly id: string;
469
+ readonly provider: string;
470
+ };
471
+ readonly agent: string | null;
472
+ readonly settings: {
473
+ readonly [x: string]: import("../../json.ts").Json;
474
+ };
475
+ readonly settingsVersion: string;
476
+ } | null;
477
+ };
478
+ readonly heads: readonly {
479
+ readonly name: import("../../ids.ts").Id<"head">;
480
+ readonly tip: {
481
+ readonly kind: "start";
482
+ } | {
483
+ readonly id: import("../../ids.ts").Id<"commit">;
484
+ readonly kind: "commit";
485
+ };
486
+ readonly stack: {
487
+ readonly stale: boolean;
488
+ readonly parent: import("../../ids.ts").Id<"head">;
489
+ readonly base: {
490
+ readonly kind: "start";
491
+ } | {
492
+ readonly id: import("../../ids.ts").Id<"commit">;
493
+ readonly kind: "commit";
494
+ };
495
+ } | null;
496
+ readonly execution: {
497
+ readonly kind: "idle";
498
+ readonly lastRun: {
499
+ readonly id: import("../../ids.ts").Id<"run">;
500
+ readonly end: {
501
+ readonly kind: "completed";
502
+ readonly usage: {
503
+ readonly output: number;
504
+ readonly input: number;
505
+ readonly cacheRead: number;
506
+ readonly cacheWrite: number;
507
+ readonly reasoning: number | null;
508
+ readonly total: number;
509
+ readonly cost: {
510
+ readonly output: number;
511
+ readonly input: number;
512
+ readonly cacheRead: number;
513
+ readonly cacheWrite: number;
514
+ readonly total: number;
515
+ };
516
+ };
517
+ } | {
518
+ readonly kind: "stopped";
519
+ } | {
520
+ readonly kind: "failed";
521
+ readonly failure: {
522
+ readonly retryAfterMs?: number | undefined;
523
+ readonly message: string;
524
+ readonly class: "provider" | "rate_limit" | "auth" | "quota" | "context_window" | "overloaded" | "network" | "aborted" | "runner";
525
+ };
526
+ };
527
+ readonly endedAt: number;
528
+ } | null;
529
+ } | {
530
+ readonly run: {
531
+ readonly head: import("../../ids.ts").Id<"head">;
532
+ readonly id: import("../../ids.ts").Id<"run">;
533
+ readonly configuration: {
534
+ readonly kind: "exact";
535
+ readonly thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
536
+ readonly model: {
537
+ readonly id: string;
538
+ readonly provider: string;
539
+ };
540
+ readonly agent: string | null;
541
+ readonly settings: {
542
+ readonly [x: string]: import("../../json.ts").Json;
543
+ };
544
+ readonly settingsVersion: string;
545
+ };
546
+ readonly startedAt: number;
547
+ readonly attempt: number;
548
+ readonly origin: {
549
+ readonly message: import("../../ids.ts").Id<"message">;
550
+ readonly kind: "input";
551
+ } | {
552
+ readonly kind: "continuation";
553
+ readonly from: "job" | "child" | "wake";
554
+ };
555
+ };
556
+ readonly kind: "live";
557
+ readonly phase: "responding" | "executing";
558
+ readonly stopping: boolean;
559
+ } | {
560
+ readonly run: {
561
+ readonly head: import("../../ids.ts").Id<"head">;
562
+ readonly id: import("../../ids.ts").Id<"run">;
563
+ readonly configuration: {
564
+ readonly kind: "exact";
565
+ readonly thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
566
+ readonly model: {
567
+ readonly id: string;
568
+ readonly provider: string;
569
+ };
570
+ readonly agent: string | null;
571
+ readonly settings: {
572
+ readonly [x: string]: import("../../json.ts").Json;
573
+ };
574
+ readonly settingsVersion: string;
575
+ };
576
+ readonly startedAt: number;
577
+ readonly attempt: number;
578
+ readonly origin: {
579
+ readonly message: import("../../ids.ts").Id<"message">;
580
+ readonly kind: "input";
581
+ } | {
582
+ readonly kind: "continuation";
583
+ readonly from: "job" | "child" | "wake";
584
+ };
585
+ };
586
+ readonly kind: "waiting";
587
+ readonly on: {
588
+ readonly deadline?: number | undefined;
589
+ readonly session: import("../../ids.ts").Id<"session">;
590
+ readonly run: import("../../ids.ts").Id<"run">;
591
+ readonly kind: "run";
592
+ } | {
593
+ readonly deadline?: number | undefined;
594
+ readonly job: import("../../ids.ts").Id<"job">;
595
+ readonly kind: "job";
596
+ } | {
597
+ readonly deadline?: number | undefined;
598
+ readonly part: import("../../ids.ts").Id<"part">;
599
+ readonly kind: "part";
600
+ } | {
601
+ readonly deadline?: number | undefined;
602
+ readonly kind: "timer";
603
+ readonly until: number;
604
+ };
605
+ } | {
606
+ readonly run: {
607
+ readonly head: import("../../ids.ts").Id<"head">;
608
+ readonly id: import("../../ids.ts").Id<"run">;
609
+ readonly configuration: {
610
+ readonly kind: "exact";
611
+ readonly thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
612
+ readonly model: {
613
+ readonly id: string;
614
+ readonly provider: string;
615
+ };
616
+ readonly agent: string | null;
617
+ readonly settings: {
618
+ readonly [x: string]: import("../../json.ts").Json;
619
+ };
620
+ readonly settingsVersion: string;
621
+ };
622
+ readonly startedAt: number;
623
+ readonly attempt: number;
624
+ readonly origin: {
625
+ readonly message: import("../../ids.ts").Id<"message">;
626
+ readonly kind: "input";
627
+ } | {
628
+ readonly kind: "continuation";
629
+ readonly from: "job" | "child" | "wake";
630
+ };
631
+ };
632
+ readonly kind: "retrying";
633
+ readonly reason: string;
634
+ readonly until: number;
635
+ };
636
+ readonly unread: boolean;
637
+ }[];
638
+ readonly messages: readonly ({
639
+ readonly at: number;
640
+ readonly turn: import("../../ids.ts").Id<"turn">;
641
+ readonly id: import("../../ids.ts").Id<"message">;
642
+ readonly kind: "user";
643
+ readonly source: {
644
+ readonly kind: "user";
645
+ } | {
646
+ readonly session: import("../../ids.ts").Id<"session">;
647
+ readonly kind: "child";
648
+ readonly end: "failed" | "completed" | "stopped";
649
+ } | {
650
+ readonly job: import("../../ids.ts").Id<"job">;
651
+ readonly kind: "job";
652
+ } | {
653
+ readonly kind: "shell";
654
+ } | {
655
+ readonly command?: string | undefined;
656
+ readonly kind: "action";
657
+ readonly label: string;
658
+ };
659
+ readonly delivery: "steer" | "queue" | "attach";
660
+ readonly content: string | readonly ({
661
+ readonly text: string;
662
+ readonly kind: "text";
663
+ } | {
664
+ readonly name: string;
665
+ readonly blob: import("../../ids.ts").Id<"blob">;
666
+ readonly kind: "file";
667
+ readonly mime: string;
668
+ } | {
669
+ readonly blob?: import("../../ids.ts").Id<"blob"> | undefined;
670
+ readonly kind: "reference";
671
+ readonly path: string;
672
+ } | {
673
+ readonly name: string;
674
+ readonly kind: "skill";
675
+ readonly location: string;
676
+ } | {
677
+ readonly text: string;
678
+ readonly kind: "excerpt";
679
+ readonly source: {
680
+ readonly kind: "diff";
681
+ readonly path: string;
682
+ readonly side: "old" | "new";
683
+ readonly start: number;
684
+ readonly end: number;
685
+ } | {
686
+ readonly command?: string | undefined;
687
+ readonly kind: "terminal";
688
+ } | {
689
+ readonly url: string;
690
+ readonly kind: "browser";
691
+ readonly selector: string;
692
+ };
693
+ })[];
694
+ readonly status: {
695
+ readonly kind: "unsent";
696
+ readonly retrying: {
697
+ readonly at: number;
698
+ readonly reason: string;
699
+ } | null;
700
+ readonly attempts: number;
701
+ } | {
702
+ readonly kind: "pending";
703
+ readonly schedule: {
704
+ readonly run: import("../../ids.ts").Id<"run">;
705
+ readonly kind: "joined";
706
+ } | {
707
+ readonly kind: "next-turn";
708
+ readonly reason: "requested" | "idle" | "run-ended" | "configuration";
709
+ } | {
710
+ readonly kind: "attached";
711
+ } | {
712
+ readonly kind: "deciding";
713
+ };
714
+ readonly covered: boolean;
715
+ } | {
716
+ readonly run: import("../../ids.ts").Id<"run"> | null;
717
+ readonly commit: import("../../ids.ts").Id<"commit">;
718
+ readonly kind: "landed";
719
+ readonly replaced: {
720
+ readonly stopped: import("../../ids.ts").Id<"run"> | null;
721
+ readonly previous: import("../../ids.ts").Id<"message">;
722
+ } | null;
723
+ };
724
+ readonly siblings: {
725
+ readonly count: number;
726
+ readonly index: number;
727
+ readonly ids: readonly import("../../ids.ts").Id<"commit">[];
728
+ };
729
+ } | {
730
+ readonly at: number;
731
+ readonly turn: import("../../ids.ts").Id<"turn">;
732
+ readonly part: import("../../ids.ts").Id<"part">;
733
+ readonly id: import("../../ids.ts").Id<"message">;
734
+ readonly role: "answer" | "step" | "note";
735
+ readonly kind: "part";
736
+ readonly state: unknown;
737
+ readonly partKind: string;
738
+ readonly version: number;
739
+ readonly status: {
740
+ readonly waiting?: import("../../ids.ts").Id<"call"> | undefined;
741
+ readonly answer?: {
742
+ readonly input: import("../../json.ts").Json;
743
+ readonly action: string;
744
+ } | undefined;
745
+ readonly run: import("../../ids.ts").Id<"run"> | null;
746
+ readonly kind: "live";
747
+ } | {
748
+ readonly run: import("../../ids.ts").Id<"run">;
749
+ readonly kind: "waiting";
750
+ readonly on: {
751
+ readonly deadline?: number | undefined;
752
+ readonly session: import("../../ids.ts").Id<"session">;
753
+ readonly run: import("../../ids.ts").Id<"run">;
754
+ readonly kind: "run";
755
+ } | {
756
+ readonly deadline?: number | undefined;
757
+ readonly job: import("../../ids.ts").Id<"job">;
758
+ readonly kind: "job";
759
+ } | {
760
+ readonly deadline?: number | undefined;
761
+ readonly part: import("../../ids.ts").Id<"part">;
762
+ readonly kind: "part";
763
+ } | {
764
+ readonly deadline?: number | undefined;
765
+ readonly kind: "timer";
766
+ readonly until: number;
767
+ };
768
+ } | {
769
+ readonly commit: import("../../ids.ts").Id<"commit">;
770
+ readonly kind: "settled";
771
+ readonly endedAt: number;
772
+ } | {
773
+ readonly run: import("../../ids.ts").Id<"run"> | null;
774
+ readonly kind: "failed";
775
+ readonly failure: {
776
+ readonly retryAfterMs?: number | undefined;
777
+ readonly message: string;
778
+ readonly class: "provider" | "rate_limit" | "auth" | "quota" | "context_window" | "overloaded" | "network" | "aborted" | "runner";
779
+ };
780
+ };
781
+ })[];
782
+ readonly usage: {
783
+ readonly output: number;
784
+ readonly input: number;
785
+ readonly cacheRead: number;
786
+ readonly cacheWrite: number;
787
+ readonly reasoning: number | null;
788
+ readonly total: number;
789
+ readonly cost: {
790
+ readonly output: number;
791
+ readonly input: number;
792
+ readonly cacheRead: number;
793
+ readonly cacheWrite: number;
794
+ readonly total: number;
795
+ };
796
+ };
797
+ readonly execution: {
798
+ readonly kind: "idle";
799
+ readonly lastRun: {
800
+ readonly id: import("../../ids.ts").Id<"run">;
801
+ readonly end: {
802
+ readonly kind: "completed";
803
+ readonly usage: {
804
+ readonly output: number;
805
+ readonly input: number;
806
+ readonly cacheRead: number;
807
+ readonly cacheWrite: number;
808
+ readonly reasoning: number | null;
809
+ readonly total: number;
810
+ readonly cost: {
811
+ readonly output: number;
812
+ readonly input: number;
813
+ readonly cacheRead: number;
814
+ readonly cacheWrite: number;
815
+ readonly total: number;
816
+ };
817
+ };
818
+ } | {
819
+ readonly kind: "stopped";
820
+ } | {
821
+ readonly kind: "failed";
822
+ readonly failure: {
823
+ readonly retryAfterMs?: number | undefined;
824
+ readonly message: string;
825
+ readonly class: "provider" | "rate_limit" | "auth" | "quota" | "context_window" | "overloaded" | "network" | "aborted" | "runner";
826
+ };
827
+ };
828
+ readonly endedAt: number;
829
+ } | null;
830
+ } | {
831
+ readonly run: {
832
+ readonly head: import("../../ids.ts").Id<"head">;
833
+ readonly id: import("../../ids.ts").Id<"run">;
834
+ readonly configuration: {
835
+ readonly kind: "exact";
836
+ readonly thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
837
+ readonly model: {
838
+ readonly id: string;
839
+ readonly provider: string;
840
+ };
841
+ readonly agent: string | null;
842
+ readonly settings: {
843
+ readonly [x: string]: import("../../json.ts").Json;
844
+ };
845
+ readonly settingsVersion: string;
846
+ };
847
+ readonly startedAt: number;
848
+ readonly attempt: number;
849
+ readonly origin: {
850
+ readonly message: import("../../ids.ts").Id<"message">;
851
+ readonly kind: "input";
852
+ } | {
853
+ readonly kind: "continuation";
854
+ readonly from: "job" | "child" | "wake";
855
+ };
856
+ };
857
+ readonly kind: "live";
858
+ readonly phase: "responding" | "executing";
859
+ readonly stopping: boolean;
860
+ } | {
861
+ readonly run: {
862
+ readonly head: import("../../ids.ts").Id<"head">;
863
+ readonly id: import("../../ids.ts").Id<"run">;
864
+ readonly configuration: {
865
+ readonly kind: "exact";
866
+ readonly thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
867
+ readonly model: {
868
+ readonly id: string;
869
+ readonly provider: string;
870
+ };
871
+ readonly agent: string | null;
872
+ readonly settings: {
873
+ readonly [x: string]: import("../../json.ts").Json;
874
+ };
875
+ readonly settingsVersion: string;
876
+ };
877
+ readonly startedAt: number;
878
+ readonly attempt: number;
879
+ readonly origin: {
880
+ readonly message: import("../../ids.ts").Id<"message">;
881
+ readonly kind: "input";
882
+ } | {
883
+ readonly kind: "continuation";
884
+ readonly from: "job" | "child" | "wake";
885
+ };
886
+ };
887
+ readonly kind: "waiting";
888
+ readonly on: {
889
+ readonly deadline?: number | undefined;
890
+ readonly session: import("../../ids.ts").Id<"session">;
891
+ readonly run: import("../../ids.ts").Id<"run">;
892
+ readonly kind: "run";
893
+ } | {
894
+ readonly deadline?: number | undefined;
895
+ readonly job: import("../../ids.ts").Id<"job">;
896
+ readonly kind: "job";
897
+ } | {
898
+ readonly deadline?: number | undefined;
899
+ readonly part: import("../../ids.ts").Id<"part">;
900
+ readonly kind: "part";
901
+ } | {
902
+ readonly deadline?: number | undefined;
903
+ readonly kind: "timer";
904
+ readonly until: number;
905
+ };
906
+ } | {
907
+ readonly run: {
908
+ readonly head: import("../../ids.ts").Id<"head">;
909
+ readonly id: import("../../ids.ts").Id<"run">;
910
+ readonly configuration: {
911
+ readonly kind: "exact";
912
+ readonly thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
913
+ readonly model: {
914
+ readonly id: string;
915
+ readonly provider: string;
916
+ };
917
+ readonly agent: string | null;
918
+ readonly settings: {
919
+ readonly [x: string]: import("../../json.ts").Json;
920
+ };
921
+ readonly settingsVersion: string;
922
+ };
923
+ readonly startedAt: number;
924
+ readonly attempt: number;
925
+ readonly origin: {
926
+ readonly message: import("../../ids.ts").Id<"message">;
927
+ readonly kind: "input";
928
+ } | {
929
+ readonly kind: "continuation";
930
+ readonly from: "job" | "child" | "wake";
931
+ };
932
+ };
933
+ readonly kind: "retrying";
934
+ readonly reason: string;
935
+ readonly until: number;
936
+ };
937
+ readonly activation: {
938
+ readonly kind: "active";
939
+ } | {
940
+ readonly kind: "inactive";
941
+ } | {
942
+ readonly workspace: import("../../ids.ts").Id<"workspace">;
943
+ readonly kind: "unavailable";
944
+ readonly reason: "unreachable" | "unsupported";
945
+ } | {
946
+ readonly message: string;
947
+ readonly kind: "failed";
948
+ };
949
+ readonly catalog: {
950
+ readonly settings: readonly {
951
+ readonly value: import("../../json.ts").Json;
952
+ readonly id: string;
953
+ readonly label: string;
954
+ readonly owner: string;
955
+ readonly from: "session" | "host" | "default";
956
+ readonly scope: "session" | "host";
957
+ readonly schema: {
958
+ readonly [x: string]: import("../../json.ts").Json;
959
+ };
960
+ readonly choices: readonly {
961
+ readonly badge?: string | undefined;
962
+ readonly value: import("../../json.ts").Json;
963
+ readonly label: string;
964
+ }[] | null;
965
+ }[];
966
+ readonly skills: readonly {
967
+ readonly description: string;
968
+ readonly name: string;
969
+ readonly location: string;
970
+ readonly owner: string;
971
+ }[];
972
+ readonly commands: readonly {
973
+ readonly category?: string | undefined;
974
+ readonly keywords?: readonly string[] | undefined;
975
+ readonly description: string;
976
+ readonly name: string;
977
+ readonly title: string;
978
+ readonly side: "core" | "client";
979
+ readonly owner: string;
980
+ readonly takesText: boolean;
981
+ readonly completes: boolean;
982
+ }[];
983
+ readonly agents: readonly {
984
+ readonly description: string | null;
985
+ readonly id: string;
986
+ readonly model: {
987
+ readonly id: string;
988
+ readonly provider: string;
989
+ } | null;
990
+ readonly owner: string;
991
+ readonly mode: "all" | "primary" | "subagent";
992
+ }[];
993
+ readonly tools: readonly {
994
+ readonly description: string;
995
+ readonly output: {
996
+ readonly [x: string]: import("../../json.ts").Json;
997
+ } | null;
998
+ readonly name: string;
999
+ readonly owner: string;
1000
+ readonly namespace: string | null;
1001
+ readonly parameters: {
1002
+ readonly [x: string]: import("../../json.ts").Json;
1003
+ };
1004
+ readonly exposure: "model" | "code" | "deferred" | "hidden";
1005
+ }[];
1006
+ };
1007
+ readonly parts: readonly {
1008
+ readonly id: import("../../ids.ts").Id<"part">;
1009
+ readonly state: import("../../json.ts").Json;
1010
+ readonly partKind: string;
1011
+ readonly owner: string | null;
1012
+ readonly version: number;
1013
+ readonly status: {
1014
+ readonly waiting?: import("../../ids.ts").Id<"call"> | undefined;
1015
+ readonly answer?: {
1016
+ readonly input: import("../../json.ts").Json;
1017
+ readonly action: string;
1018
+ } | undefined;
1019
+ readonly run: import("../../ids.ts").Id<"run"> | null;
1020
+ readonly kind: "live";
1021
+ } | {
1022
+ readonly run: import("../../ids.ts").Id<"run">;
1023
+ readonly kind: "waiting";
1024
+ readonly on: {
1025
+ readonly deadline?: number | undefined;
1026
+ readonly session: import("../../ids.ts").Id<"session">;
1027
+ readonly run: import("../../ids.ts").Id<"run">;
1028
+ readonly kind: "run";
1029
+ } | {
1030
+ readonly deadline?: number | undefined;
1031
+ readonly job: import("../../ids.ts").Id<"job">;
1032
+ readonly kind: "job";
1033
+ } | {
1034
+ readonly deadline?: number | undefined;
1035
+ readonly part: import("../../ids.ts").Id<"part">;
1036
+ readonly kind: "part";
1037
+ } | {
1038
+ readonly deadline?: number | undefined;
1039
+ readonly kind: "timer";
1040
+ readonly until: number;
1041
+ };
1042
+ } | {
1043
+ readonly commit: import("../../ids.ts").Id<"commit">;
1044
+ readonly kind: "settled";
1045
+ readonly endedAt: number;
1046
+ } | {
1047
+ readonly run: import("../../ids.ts").Id<"run"> | null;
1048
+ readonly kind: "failed";
1049
+ readonly failure: {
1050
+ readonly retryAfterMs?: number | undefined;
1051
+ readonly message: string;
1052
+ readonly class: "provider" | "rate_limit" | "auth" | "quota" | "context_window" | "overloaded" | "network" | "aborted" | "runner";
1053
+ };
1054
+ };
1055
+ readonly placement: {
1056
+ readonly role: "answer" | "step" | "note";
1057
+ readonly kind: "transcript";
1058
+ } | {
1059
+ readonly kind: "modal";
1060
+ } | {
1061
+ readonly [x: string]: import("../../json.ts").Json;
1062
+ readonly kind: string;
1063
+ };
1064
+ }[];
1065
+ readonly changes: readonly {
1066
+ readonly from?: string | undefined;
1067
+ readonly path: string;
1068
+ readonly removed: number;
1069
+ readonly added: number;
1070
+ readonly status: "added" | "modified" | "deleted" | "renamed" | "untracked" | "conflicted";
1071
+ }[];
1072
+ readonly background: readonly {
1073
+ readonly id: string;
1074
+ readonly title: string;
1075
+ readonly kind: "job" | "page" | "child";
1076
+ readonly state: "failed" | "waiting" | "working" | "done";
1077
+ readonly startedBy: import("../../ids.ts").Id<"call"> | null;
1078
+ }[];
1079
+ readonly context: {
1080
+ readonly tokens: number;
1081
+ readonly window: number;
1082
+ readonly lastRequest: {
1083
+ readonly output: number;
1084
+ readonly input: number;
1085
+ readonly cacheRead: number;
1086
+ readonly cacheWrite: number;
1087
+ readonly reasoning: number | null;
1088
+ readonly total: number;
1089
+ readonly cost: {
1090
+ readonly output: number;
1091
+ readonly input: number;
1092
+ readonly cacheRead: number;
1093
+ readonly cacheWrite: number;
1094
+ readonly total: number;
1095
+ };
1096
+ } | null;
1097
+ };
1098
+ readonly turns: readonly {
1099
+ readonly run: import("../../ids.ts").Id<"run"> | null;
1100
+ readonly id: import("../../ids.ts").Id<"turn">;
1101
+ readonly state: {
1102
+ readonly kind: "working";
1103
+ readonly activity: string | null;
1104
+ } | {
1105
+ readonly kind: "waiting";
1106
+ readonly on: {
1107
+ readonly deadline?: number | undefined;
1108
+ readonly session: import("../../ids.ts").Id<"session">;
1109
+ readonly run: import("../../ids.ts").Id<"run">;
1110
+ readonly kind: "run";
1111
+ } | {
1112
+ readonly deadline?: number | undefined;
1113
+ readonly job: import("../../ids.ts").Id<"job">;
1114
+ readonly kind: "job";
1115
+ } | {
1116
+ readonly deadline?: number | undefined;
1117
+ readonly part: import("../../ids.ts").Id<"part">;
1118
+ readonly kind: "part";
1119
+ } | {
1120
+ readonly deadline?: number | undefined;
1121
+ readonly kind: "timer";
1122
+ readonly until: number;
1123
+ };
1124
+ } | {
1125
+ readonly kind: "ended";
1126
+ readonly end: {
1127
+ readonly kind: "completed";
1128
+ readonly usage: {
1129
+ readonly output: number;
1130
+ readonly input: number;
1131
+ readonly cacheRead: number;
1132
+ readonly cacheWrite: number;
1133
+ readonly reasoning: number | null;
1134
+ readonly total: number;
1135
+ readonly cost: {
1136
+ readonly output: number;
1137
+ readonly input: number;
1138
+ readonly cacheRead: number;
1139
+ readonly cacheWrite: number;
1140
+ readonly total: number;
1141
+ };
1142
+ };
1143
+ } | {
1144
+ readonly kind: "stopped";
1145
+ } | {
1146
+ readonly kind: "failed";
1147
+ readonly failure: {
1148
+ readonly retryAfterMs?: number | undefined;
1149
+ readonly message: string;
1150
+ readonly class: "provider" | "rate_limit" | "auth" | "quota" | "context_window" | "overloaded" | "network" | "aborted" | "runner";
1151
+ };
1152
+ };
1153
+ };
1154
+ readonly summary: {
1155
+ readonly failed: number;
1156
+ readonly stopped: number;
1157
+ readonly removed: number;
1158
+ readonly added: number;
1159
+ readonly byClass: {
1160
+ readonly shell: {
1161
+ readonly paths: readonly string[];
1162
+ readonly count: number;
1163
+ };
1164
+ readonly edit: {
1165
+ readonly paths: readonly string[];
1166
+ readonly count: number;
1167
+ };
1168
+ readonly custom: {
1169
+ readonly paths: readonly string[];
1170
+ readonly count: number;
1171
+ };
1172
+ readonly read: {
1173
+ readonly paths: readonly string[];
1174
+ readonly count: number;
1175
+ };
1176
+ readonly list: {
1177
+ readonly paths: readonly string[];
1178
+ readonly count: number;
1179
+ };
1180
+ readonly delegate: {
1181
+ readonly paths: readonly string[];
1182
+ readonly count: number;
1183
+ };
1184
+ };
1185
+ };
1186
+ readonly startedAt: number;
1187
+ readonly endedAt: number | null;
1188
+ readonly prompt: import("../../ids.ts").Id<"message"> | null;
1189
+ readonly steps: number;
1190
+ readonly thinkingOnly: boolean;
1191
+ }[];
1192
+ }>;
1193
+ readonly authority: "participant";
1194
+ readonly scope: "session";
1195
+ };
1196
+ readonly "head.watch": {
1197
+ readonly kind: "watch";
1198
+ readonly input: import("../../schema.ts").Schema<{
1199
+ options?: {
1200
+ tail?: number | undefined;
1201
+ } | undefined;
1202
+ session: import("../../ids.ts").Id<"session">;
1203
+ head: import("../../ids.ts").Id<"head">;
1204
+ }>;
1205
+ readonly output: import("../../schema.ts").Schema<{
1206
+ readonly kind: "view";
1207
+ readonly view: {
1208
+ readonly revision: import("../../ids.ts").Id<"revision"> | null;
1209
+ readonly seq: import("../../ids.ts").Seq;
1210
+ readonly configuration: {
1211
+ readonly selected: {
1212
+ readonly kind: "exact";
1213
+ readonly thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
1214
+ readonly model: {
1215
+ readonly id: string;
1216
+ readonly provider: string;
1217
+ };
1218
+ readonly agent: string | null;
1219
+ readonly settings: {
1220
+ readonly [x: string]: import("../../json.ts").Json;
1221
+ };
1222
+ readonly settingsVersion: string;
1223
+ } | null;
1224
+ readonly effective: {
1225
+ readonly kind: "exact";
1226
+ readonly thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
1227
+ readonly model: {
1228
+ readonly id: string;
1229
+ readonly provider: string;
1230
+ };
1231
+ readonly agent: string | null;
1232
+ readonly settings: {
1233
+ readonly [x: string]: import("../../json.ts").Json;
1234
+ };
1235
+ readonly settingsVersion: string;
1236
+ } | null;
1237
+ };
1238
+ readonly heads: readonly {
1239
+ readonly name: import("../../ids.ts").Id<"head">;
1240
+ readonly tip: {
1241
+ readonly kind: "start";
1242
+ } | {
1243
+ readonly id: import("../../ids.ts").Id<"commit">;
1244
+ readonly kind: "commit";
1245
+ };
1246
+ readonly stack: {
1247
+ readonly stale: boolean;
1248
+ readonly parent: import("../../ids.ts").Id<"head">;
1249
+ readonly base: {
1250
+ readonly kind: "start";
1251
+ } | {
1252
+ readonly id: import("../../ids.ts").Id<"commit">;
1253
+ readonly kind: "commit";
1254
+ };
1255
+ } | null;
1256
+ readonly execution: {
1257
+ readonly kind: "idle";
1258
+ readonly lastRun: {
1259
+ readonly id: import("../../ids.ts").Id<"run">;
1260
+ readonly end: {
1261
+ readonly kind: "completed";
1262
+ readonly usage: {
1263
+ readonly output: number;
1264
+ readonly input: number;
1265
+ readonly cacheRead: number;
1266
+ readonly cacheWrite: number;
1267
+ readonly reasoning: number | null;
1268
+ readonly total: number;
1269
+ readonly cost: {
1270
+ readonly output: number;
1271
+ readonly input: number;
1272
+ readonly cacheRead: number;
1273
+ readonly cacheWrite: number;
1274
+ readonly total: number;
1275
+ };
1276
+ };
1277
+ } | {
1278
+ readonly kind: "stopped";
1279
+ } | {
1280
+ readonly kind: "failed";
1281
+ readonly failure: {
1282
+ readonly retryAfterMs?: number | undefined;
1283
+ readonly message: string;
1284
+ readonly class: "provider" | "rate_limit" | "auth" | "quota" | "context_window" | "overloaded" | "network" | "aborted" | "runner";
1285
+ };
1286
+ };
1287
+ readonly endedAt: number;
1288
+ } | null;
1289
+ } | {
1290
+ readonly run: {
1291
+ readonly head: import("../../ids.ts").Id<"head">;
1292
+ readonly id: import("../../ids.ts").Id<"run">;
1293
+ readonly configuration: {
1294
+ readonly kind: "exact";
1295
+ readonly thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
1296
+ readonly model: {
1297
+ readonly id: string;
1298
+ readonly provider: string;
1299
+ };
1300
+ readonly agent: string | null;
1301
+ readonly settings: {
1302
+ readonly [x: string]: import("../../json.ts").Json;
1303
+ };
1304
+ readonly settingsVersion: string;
1305
+ };
1306
+ readonly startedAt: number;
1307
+ readonly attempt: number;
1308
+ readonly origin: {
1309
+ readonly message: import("../../ids.ts").Id<"message">;
1310
+ readonly kind: "input";
1311
+ } | {
1312
+ readonly kind: "continuation";
1313
+ readonly from: "job" | "child" | "wake";
1314
+ };
1315
+ };
1316
+ readonly kind: "live";
1317
+ readonly phase: "responding" | "executing";
1318
+ readonly stopping: boolean;
1319
+ } | {
1320
+ readonly run: {
1321
+ readonly head: import("../../ids.ts").Id<"head">;
1322
+ readonly id: import("../../ids.ts").Id<"run">;
1323
+ readonly configuration: {
1324
+ readonly kind: "exact";
1325
+ readonly thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
1326
+ readonly model: {
1327
+ readonly id: string;
1328
+ readonly provider: string;
1329
+ };
1330
+ readonly agent: string | null;
1331
+ readonly settings: {
1332
+ readonly [x: string]: import("../../json.ts").Json;
1333
+ };
1334
+ readonly settingsVersion: string;
1335
+ };
1336
+ readonly startedAt: number;
1337
+ readonly attempt: number;
1338
+ readonly origin: {
1339
+ readonly message: import("../../ids.ts").Id<"message">;
1340
+ readonly kind: "input";
1341
+ } | {
1342
+ readonly kind: "continuation";
1343
+ readonly from: "job" | "child" | "wake";
1344
+ };
1345
+ };
1346
+ readonly kind: "waiting";
1347
+ readonly on: {
1348
+ readonly deadline?: number | undefined;
1349
+ readonly session: import("../../ids.ts").Id<"session">;
1350
+ readonly run: import("../../ids.ts").Id<"run">;
1351
+ readonly kind: "run";
1352
+ } | {
1353
+ readonly deadline?: number | undefined;
1354
+ readonly job: import("../../ids.ts").Id<"job">;
1355
+ readonly kind: "job";
1356
+ } | {
1357
+ readonly deadline?: number | undefined;
1358
+ readonly part: import("../../ids.ts").Id<"part">;
1359
+ readonly kind: "part";
1360
+ } | {
1361
+ readonly deadline?: number | undefined;
1362
+ readonly kind: "timer";
1363
+ readonly until: number;
1364
+ };
1365
+ } | {
1366
+ readonly run: {
1367
+ readonly head: import("../../ids.ts").Id<"head">;
1368
+ readonly id: import("../../ids.ts").Id<"run">;
1369
+ readonly configuration: {
1370
+ readonly kind: "exact";
1371
+ readonly thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
1372
+ readonly model: {
1373
+ readonly id: string;
1374
+ readonly provider: string;
1375
+ };
1376
+ readonly agent: string | null;
1377
+ readonly settings: {
1378
+ readonly [x: string]: import("../../json.ts").Json;
1379
+ };
1380
+ readonly settingsVersion: string;
1381
+ };
1382
+ readonly startedAt: number;
1383
+ readonly attempt: number;
1384
+ readonly origin: {
1385
+ readonly message: import("../../ids.ts").Id<"message">;
1386
+ readonly kind: "input";
1387
+ } | {
1388
+ readonly kind: "continuation";
1389
+ readonly from: "job" | "child" | "wake";
1390
+ };
1391
+ };
1392
+ readonly kind: "retrying";
1393
+ readonly reason: string;
1394
+ readonly until: number;
1395
+ };
1396
+ readonly unread: boolean;
1397
+ }[];
1398
+ readonly messages: readonly ({
1399
+ readonly at: number;
1400
+ readonly turn: import("../../ids.ts").Id<"turn">;
1401
+ readonly id: import("../../ids.ts").Id<"message">;
1402
+ readonly kind: "user";
1403
+ readonly source: {
1404
+ readonly kind: "user";
1405
+ } | {
1406
+ readonly session: import("../../ids.ts").Id<"session">;
1407
+ readonly kind: "child";
1408
+ readonly end: "failed" | "completed" | "stopped";
1409
+ } | {
1410
+ readonly job: import("../../ids.ts").Id<"job">;
1411
+ readonly kind: "job";
1412
+ } | {
1413
+ readonly kind: "shell";
1414
+ } | {
1415
+ readonly command?: string | undefined;
1416
+ readonly kind: "action";
1417
+ readonly label: string;
1418
+ };
1419
+ readonly delivery: "steer" | "queue" | "attach";
1420
+ readonly content: string | readonly ({
1421
+ readonly text: string;
1422
+ readonly kind: "text";
1423
+ } | {
1424
+ readonly name: string;
1425
+ readonly blob: import("../../ids.ts").Id<"blob">;
1426
+ readonly kind: "file";
1427
+ readonly mime: string;
1428
+ } | {
1429
+ readonly blob?: import("../../ids.ts").Id<"blob"> | undefined;
1430
+ readonly kind: "reference";
1431
+ readonly path: string;
1432
+ } | {
1433
+ readonly name: string;
1434
+ readonly kind: "skill";
1435
+ readonly location: string;
1436
+ } | {
1437
+ readonly text: string;
1438
+ readonly kind: "excerpt";
1439
+ readonly source: {
1440
+ readonly kind: "diff";
1441
+ readonly path: string;
1442
+ readonly side: "old" | "new";
1443
+ readonly start: number;
1444
+ readonly end: number;
1445
+ } | {
1446
+ readonly command?: string | undefined;
1447
+ readonly kind: "terminal";
1448
+ } | {
1449
+ readonly url: string;
1450
+ readonly kind: "browser";
1451
+ readonly selector: string;
1452
+ };
1453
+ })[];
1454
+ readonly status: {
1455
+ readonly kind: "unsent";
1456
+ readonly retrying: {
1457
+ readonly at: number;
1458
+ readonly reason: string;
1459
+ } | null;
1460
+ readonly attempts: number;
1461
+ } | {
1462
+ readonly kind: "pending";
1463
+ readonly schedule: {
1464
+ readonly run: import("../../ids.ts").Id<"run">;
1465
+ readonly kind: "joined";
1466
+ } | {
1467
+ readonly kind: "next-turn";
1468
+ readonly reason: "requested" | "idle" | "run-ended" | "configuration";
1469
+ } | {
1470
+ readonly kind: "attached";
1471
+ } | {
1472
+ readonly kind: "deciding";
1473
+ };
1474
+ readonly covered: boolean;
1475
+ } | {
1476
+ readonly run: import("../../ids.ts").Id<"run"> | null;
1477
+ readonly commit: import("../../ids.ts").Id<"commit">;
1478
+ readonly kind: "landed";
1479
+ readonly replaced: {
1480
+ readonly stopped: import("../../ids.ts").Id<"run"> | null;
1481
+ readonly previous: import("../../ids.ts").Id<"message">;
1482
+ } | null;
1483
+ };
1484
+ readonly siblings: {
1485
+ readonly count: number;
1486
+ readonly index: number;
1487
+ readonly ids: readonly import("../../ids.ts").Id<"commit">[];
1488
+ };
1489
+ } | {
1490
+ readonly at: number;
1491
+ readonly turn: import("../../ids.ts").Id<"turn">;
1492
+ readonly part: import("../../ids.ts").Id<"part">;
1493
+ readonly id: import("../../ids.ts").Id<"message">;
1494
+ readonly role: "answer" | "step" | "note";
1495
+ readonly kind: "part";
1496
+ readonly state: unknown;
1497
+ readonly partKind: string;
1498
+ readonly version: number;
1499
+ readonly status: {
1500
+ readonly waiting?: import("../../ids.ts").Id<"call"> | undefined;
1501
+ readonly answer?: {
1502
+ readonly input: import("../../json.ts").Json;
1503
+ readonly action: string;
1504
+ } | undefined;
1505
+ readonly run: import("../../ids.ts").Id<"run"> | null;
1506
+ readonly kind: "live";
1507
+ } | {
1508
+ readonly run: import("../../ids.ts").Id<"run">;
1509
+ readonly kind: "waiting";
1510
+ readonly on: {
1511
+ readonly deadline?: number | undefined;
1512
+ readonly session: import("../../ids.ts").Id<"session">;
1513
+ readonly run: import("../../ids.ts").Id<"run">;
1514
+ readonly kind: "run";
1515
+ } | {
1516
+ readonly deadline?: number | undefined;
1517
+ readonly job: import("../../ids.ts").Id<"job">;
1518
+ readonly kind: "job";
1519
+ } | {
1520
+ readonly deadline?: number | undefined;
1521
+ readonly part: import("../../ids.ts").Id<"part">;
1522
+ readonly kind: "part";
1523
+ } | {
1524
+ readonly deadline?: number | undefined;
1525
+ readonly kind: "timer";
1526
+ readonly until: number;
1527
+ };
1528
+ } | {
1529
+ readonly commit: import("../../ids.ts").Id<"commit">;
1530
+ readonly kind: "settled";
1531
+ readonly endedAt: number;
1532
+ } | {
1533
+ readonly run: import("../../ids.ts").Id<"run"> | null;
1534
+ readonly kind: "failed";
1535
+ readonly failure: {
1536
+ readonly retryAfterMs?: number | undefined;
1537
+ readonly message: string;
1538
+ readonly class: "provider" | "rate_limit" | "auth" | "quota" | "context_window" | "overloaded" | "network" | "aborted" | "runner";
1539
+ };
1540
+ };
1541
+ })[];
1542
+ readonly usage: {
1543
+ readonly output: number;
1544
+ readonly input: number;
1545
+ readonly cacheRead: number;
1546
+ readonly cacheWrite: number;
1547
+ readonly reasoning: number | null;
1548
+ readonly total: number;
1549
+ readonly cost: {
1550
+ readonly output: number;
1551
+ readonly input: number;
1552
+ readonly cacheRead: number;
1553
+ readonly cacheWrite: number;
1554
+ readonly total: number;
1555
+ };
1556
+ };
1557
+ readonly execution: {
1558
+ readonly kind: "idle";
1559
+ readonly lastRun: {
1560
+ readonly id: import("../../ids.ts").Id<"run">;
1561
+ readonly end: {
1562
+ readonly kind: "completed";
1563
+ readonly usage: {
1564
+ readonly output: number;
1565
+ readonly input: number;
1566
+ readonly cacheRead: number;
1567
+ readonly cacheWrite: number;
1568
+ readonly reasoning: number | null;
1569
+ readonly total: number;
1570
+ readonly cost: {
1571
+ readonly output: number;
1572
+ readonly input: number;
1573
+ readonly cacheRead: number;
1574
+ readonly cacheWrite: number;
1575
+ readonly total: number;
1576
+ };
1577
+ };
1578
+ } | {
1579
+ readonly kind: "stopped";
1580
+ } | {
1581
+ readonly kind: "failed";
1582
+ readonly failure: {
1583
+ readonly retryAfterMs?: number | undefined;
1584
+ readonly message: string;
1585
+ readonly class: "provider" | "rate_limit" | "auth" | "quota" | "context_window" | "overloaded" | "network" | "aborted" | "runner";
1586
+ };
1587
+ };
1588
+ readonly endedAt: number;
1589
+ } | null;
1590
+ } | {
1591
+ readonly run: {
1592
+ readonly head: import("../../ids.ts").Id<"head">;
1593
+ readonly id: import("../../ids.ts").Id<"run">;
1594
+ readonly configuration: {
1595
+ readonly kind: "exact";
1596
+ readonly thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
1597
+ readonly model: {
1598
+ readonly id: string;
1599
+ readonly provider: string;
1600
+ };
1601
+ readonly agent: string | null;
1602
+ readonly settings: {
1603
+ readonly [x: string]: import("../../json.ts").Json;
1604
+ };
1605
+ readonly settingsVersion: string;
1606
+ };
1607
+ readonly startedAt: number;
1608
+ readonly attempt: number;
1609
+ readonly origin: {
1610
+ readonly message: import("../../ids.ts").Id<"message">;
1611
+ readonly kind: "input";
1612
+ } | {
1613
+ readonly kind: "continuation";
1614
+ readonly from: "job" | "child" | "wake";
1615
+ };
1616
+ };
1617
+ readonly kind: "live";
1618
+ readonly phase: "responding" | "executing";
1619
+ readonly stopping: boolean;
1620
+ } | {
1621
+ readonly run: {
1622
+ readonly head: import("../../ids.ts").Id<"head">;
1623
+ readonly id: import("../../ids.ts").Id<"run">;
1624
+ readonly configuration: {
1625
+ readonly kind: "exact";
1626
+ readonly thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
1627
+ readonly model: {
1628
+ readonly id: string;
1629
+ readonly provider: string;
1630
+ };
1631
+ readonly agent: string | null;
1632
+ readonly settings: {
1633
+ readonly [x: string]: import("../../json.ts").Json;
1634
+ };
1635
+ readonly settingsVersion: string;
1636
+ };
1637
+ readonly startedAt: number;
1638
+ readonly attempt: number;
1639
+ readonly origin: {
1640
+ readonly message: import("../../ids.ts").Id<"message">;
1641
+ readonly kind: "input";
1642
+ } | {
1643
+ readonly kind: "continuation";
1644
+ readonly from: "job" | "child" | "wake";
1645
+ };
1646
+ };
1647
+ readonly kind: "waiting";
1648
+ readonly on: {
1649
+ readonly deadline?: number | undefined;
1650
+ readonly session: import("../../ids.ts").Id<"session">;
1651
+ readonly run: import("../../ids.ts").Id<"run">;
1652
+ readonly kind: "run";
1653
+ } | {
1654
+ readonly deadline?: number | undefined;
1655
+ readonly job: import("../../ids.ts").Id<"job">;
1656
+ readonly kind: "job";
1657
+ } | {
1658
+ readonly deadline?: number | undefined;
1659
+ readonly part: import("../../ids.ts").Id<"part">;
1660
+ readonly kind: "part";
1661
+ } | {
1662
+ readonly deadline?: number | undefined;
1663
+ readonly kind: "timer";
1664
+ readonly until: number;
1665
+ };
1666
+ } | {
1667
+ readonly run: {
1668
+ readonly head: import("../../ids.ts").Id<"head">;
1669
+ readonly id: import("../../ids.ts").Id<"run">;
1670
+ readonly configuration: {
1671
+ readonly kind: "exact";
1672
+ readonly thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
1673
+ readonly model: {
1674
+ readonly id: string;
1675
+ readonly provider: string;
1676
+ };
1677
+ readonly agent: string | null;
1678
+ readonly settings: {
1679
+ readonly [x: string]: import("../../json.ts").Json;
1680
+ };
1681
+ readonly settingsVersion: string;
1682
+ };
1683
+ readonly startedAt: number;
1684
+ readonly attempt: number;
1685
+ readonly origin: {
1686
+ readonly message: import("../../ids.ts").Id<"message">;
1687
+ readonly kind: "input";
1688
+ } | {
1689
+ readonly kind: "continuation";
1690
+ readonly from: "job" | "child" | "wake";
1691
+ };
1692
+ };
1693
+ readonly kind: "retrying";
1694
+ readonly reason: string;
1695
+ readonly until: number;
1696
+ };
1697
+ readonly activation: {
1698
+ readonly kind: "active";
1699
+ } | {
1700
+ readonly kind: "inactive";
1701
+ } | {
1702
+ readonly workspace: import("../../ids.ts").Id<"workspace">;
1703
+ readonly kind: "unavailable";
1704
+ readonly reason: "unreachable" | "unsupported";
1705
+ } | {
1706
+ readonly message: string;
1707
+ readonly kind: "failed";
1708
+ };
1709
+ readonly catalog: {
1710
+ readonly settings: readonly {
1711
+ readonly value: import("../../json.ts").Json;
1712
+ readonly id: string;
1713
+ readonly label: string;
1714
+ readonly owner: string;
1715
+ readonly from: "session" | "host" | "default";
1716
+ readonly scope: "session" | "host";
1717
+ readonly schema: {
1718
+ readonly [x: string]: import("../../json.ts").Json;
1719
+ };
1720
+ readonly choices: readonly {
1721
+ readonly badge?: string | undefined;
1722
+ readonly value: import("../../json.ts").Json;
1723
+ readonly label: string;
1724
+ }[] | null;
1725
+ }[];
1726
+ readonly skills: readonly {
1727
+ readonly description: string;
1728
+ readonly name: string;
1729
+ readonly location: string;
1730
+ readonly owner: string;
1731
+ }[];
1732
+ readonly commands: readonly {
1733
+ readonly category?: string | undefined;
1734
+ readonly keywords?: readonly string[] | undefined;
1735
+ readonly description: string;
1736
+ readonly name: string;
1737
+ readonly title: string;
1738
+ readonly side: "core" | "client";
1739
+ readonly owner: string;
1740
+ readonly takesText: boolean;
1741
+ readonly completes: boolean;
1742
+ }[];
1743
+ readonly agents: readonly {
1744
+ readonly description: string | null;
1745
+ readonly id: string;
1746
+ readonly model: {
1747
+ readonly id: string;
1748
+ readonly provider: string;
1749
+ } | null;
1750
+ readonly owner: string;
1751
+ readonly mode: "all" | "primary" | "subagent";
1752
+ }[];
1753
+ readonly tools: readonly {
1754
+ readonly description: string;
1755
+ readonly output: {
1756
+ readonly [x: string]: import("../../json.ts").Json;
1757
+ } | null;
1758
+ readonly name: string;
1759
+ readonly owner: string;
1760
+ readonly namespace: string | null;
1761
+ readonly parameters: {
1762
+ readonly [x: string]: import("../../json.ts").Json;
1763
+ };
1764
+ readonly exposure: "model" | "code" | "deferred" | "hidden";
1765
+ }[];
1766
+ };
1767
+ readonly parts: readonly {
1768
+ readonly id: import("../../ids.ts").Id<"part">;
1769
+ readonly state: import("../../json.ts").Json;
1770
+ readonly partKind: string;
1771
+ readonly owner: string | null;
1772
+ readonly version: number;
1773
+ readonly status: {
1774
+ readonly waiting?: import("../../ids.ts").Id<"call"> | undefined;
1775
+ readonly answer?: {
1776
+ readonly input: import("../../json.ts").Json;
1777
+ readonly action: string;
1778
+ } | undefined;
1779
+ readonly run: import("../../ids.ts").Id<"run"> | null;
1780
+ readonly kind: "live";
1781
+ } | {
1782
+ readonly run: import("../../ids.ts").Id<"run">;
1783
+ readonly kind: "waiting";
1784
+ readonly on: {
1785
+ readonly deadline?: number | undefined;
1786
+ readonly session: import("../../ids.ts").Id<"session">;
1787
+ readonly run: import("../../ids.ts").Id<"run">;
1788
+ readonly kind: "run";
1789
+ } | {
1790
+ readonly deadline?: number | undefined;
1791
+ readonly job: import("../../ids.ts").Id<"job">;
1792
+ readonly kind: "job";
1793
+ } | {
1794
+ readonly deadline?: number | undefined;
1795
+ readonly part: import("../../ids.ts").Id<"part">;
1796
+ readonly kind: "part";
1797
+ } | {
1798
+ readonly deadline?: number | undefined;
1799
+ readonly kind: "timer";
1800
+ readonly until: number;
1801
+ };
1802
+ } | {
1803
+ readonly commit: import("../../ids.ts").Id<"commit">;
1804
+ readonly kind: "settled";
1805
+ readonly endedAt: number;
1806
+ } | {
1807
+ readonly run: import("../../ids.ts").Id<"run"> | null;
1808
+ readonly kind: "failed";
1809
+ readonly failure: {
1810
+ readonly retryAfterMs?: number | undefined;
1811
+ readonly message: string;
1812
+ readonly class: "provider" | "rate_limit" | "auth" | "quota" | "context_window" | "overloaded" | "network" | "aborted" | "runner";
1813
+ };
1814
+ };
1815
+ readonly placement: {
1816
+ readonly role: "answer" | "step" | "note";
1817
+ readonly kind: "transcript";
1818
+ } | {
1819
+ readonly kind: "modal";
1820
+ } | {
1821
+ readonly [x: string]: import("../../json.ts").Json;
1822
+ readonly kind: string;
1823
+ };
1824
+ }[];
1825
+ readonly changes: readonly {
1826
+ readonly from?: string | undefined;
1827
+ readonly path: string;
1828
+ readonly removed: number;
1829
+ readonly added: number;
1830
+ readonly status: "added" | "modified" | "deleted" | "renamed" | "untracked" | "conflicted";
1831
+ }[];
1832
+ readonly background: readonly {
1833
+ readonly id: string;
1834
+ readonly title: string;
1835
+ readonly kind: "job" | "page" | "child";
1836
+ readonly state: "failed" | "waiting" | "working" | "done";
1837
+ readonly startedBy: import("../../ids.ts").Id<"call"> | null;
1838
+ }[];
1839
+ readonly context: {
1840
+ readonly tokens: number;
1841
+ readonly window: number;
1842
+ readonly lastRequest: {
1843
+ readonly output: number;
1844
+ readonly input: number;
1845
+ readonly cacheRead: number;
1846
+ readonly cacheWrite: number;
1847
+ readonly reasoning: number | null;
1848
+ readonly total: number;
1849
+ readonly cost: {
1850
+ readonly output: number;
1851
+ readonly input: number;
1852
+ readonly cacheRead: number;
1853
+ readonly cacheWrite: number;
1854
+ readonly total: number;
1855
+ };
1856
+ } | null;
1857
+ };
1858
+ readonly turns: readonly {
1859
+ readonly run: import("../../ids.ts").Id<"run"> | null;
1860
+ readonly id: import("../../ids.ts").Id<"turn">;
1861
+ readonly state: {
1862
+ readonly kind: "working";
1863
+ readonly activity: string | null;
1864
+ } | {
1865
+ readonly kind: "waiting";
1866
+ readonly on: {
1867
+ readonly deadline?: number | undefined;
1868
+ readonly session: import("../../ids.ts").Id<"session">;
1869
+ readonly run: import("../../ids.ts").Id<"run">;
1870
+ readonly kind: "run";
1871
+ } | {
1872
+ readonly deadline?: number | undefined;
1873
+ readonly job: import("../../ids.ts").Id<"job">;
1874
+ readonly kind: "job";
1875
+ } | {
1876
+ readonly deadline?: number | undefined;
1877
+ readonly part: import("../../ids.ts").Id<"part">;
1878
+ readonly kind: "part";
1879
+ } | {
1880
+ readonly deadline?: number | undefined;
1881
+ readonly kind: "timer";
1882
+ readonly until: number;
1883
+ };
1884
+ } | {
1885
+ readonly kind: "ended";
1886
+ readonly end: {
1887
+ readonly kind: "completed";
1888
+ readonly usage: {
1889
+ readonly output: number;
1890
+ readonly input: number;
1891
+ readonly cacheRead: number;
1892
+ readonly cacheWrite: number;
1893
+ readonly reasoning: number | null;
1894
+ readonly total: number;
1895
+ readonly cost: {
1896
+ readonly output: number;
1897
+ readonly input: number;
1898
+ readonly cacheRead: number;
1899
+ readonly cacheWrite: number;
1900
+ readonly total: number;
1901
+ };
1902
+ };
1903
+ } | {
1904
+ readonly kind: "stopped";
1905
+ } | {
1906
+ readonly kind: "failed";
1907
+ readonly failure: {
1908
+ readonly retryAfterMs?: number | undefined;
1909
+ readonly message: string;
1910
+ readonly class: "provider" | "rate_limit" | "auth" | "quota" | "context_window" | "overloaded" | "network" | "aborted" | "runner";
1911
+ };
1912
+ };
1913
+ };
1914
+ readonly summary: {
1915
+ readonly failed: number;
1916
+ readonly stopped: number;
1917
+ readonly removed: number;
1918
+ readonly added: number;
1919
+ readonly byClass: {
1920
+ readonly shell: {
1921
+ readonly paths: readonly string[];
1922
+ readonly count: number;
1923
+ };
1924
+ readonly edit: {
1925
+ readonly paths: readonly string[];
1926
+ readonly count: number;
1927
+ };
1928
+ readonly custom: {
1929
+ readonly paths: readonly string[];
1930
+ readonly count: number;
1931
+ };
1932
+ readonly read: {
1933
+ readonly paths: readonly string[];
1934
+ readonly count: number;
1935
+ };
1936
+ readonly list: {
1937
+ readonly paths: readonly string[];
1938
+ readonly count: number;
1939
+ };
1940
+ readonly delegate: {
1941
+ readonly paths: readonly string[];
1942
+ readonly count: number;
1943
+ };
1944
+ };
1945
+ };
1946
+ readonly startedAt: number;
1947
+ readonly endedAt: number | null;
1948
+ readonly prompt: import("../../ids.ts").Id<"message"> | null;
1949
+ readonly steps: number;
1950
+ readonly thinkingOnly: boolean;
1951
+ }[];
1952
+ };
1953
+ } | {
1954
+ readonly revision?: import("../../ids.ts").Id<"revision"> | null | undefined;
1955
+ readonly configuration?: {
1956
+ readonly selected: {
1957
+ readonly kind: "exact";
1958
+ readonly thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
1959
+ readonly model: {
1960
+ readonly id: string;
1961
+ readonly provider: string;
1962
+ };
1963
+ readonly agent: string | null;
1964
+ readonly settings: {
1965
+ readonly [x: string]: import("../../json.ts").Json;
1966
+ };
1967
+ readonly settingsVersion: string;
1968
+ } | null;
1969
+ readonly effective: {
1970
+ readonly kind: "exact";
1971
+ readonly thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
1972
+ readonly model: {
1973
+ readonly id: string;
1974
+ readonly provider: string;
1975
+ };
1976
+ readonly agent: string | null;
1977
+ readonly settings: {
1978
+ readonly [x: string]: import("../../json.ts").Json;
1979
+ };
1980
+ readonly settingsVersion: string;
1981
+ } | null;
1982
+ } | undefined;
1983
+ readonly heads?: {
1984
+ readonly items: readonly {
1985
+ readonly name: import("../../ids.ts").Id<"head">;
1986
+ readonly tip: {
1987
+ readonly kind: "start";
1988
+ } | {
1989
+ readonly id: import("../../ids.ts").Id<"commit">;
1990
+ readonly kind: "commit";
1991
+ };
1992
+ readonly stack: {
1993
+ readonly stale: boolean;
1994
+ readonly parent: import("../../ids.ts").Id<"head">;
1995
+ readonly base: {
1996
+ readonly kind: "start";
1997
+ } | {
1998
+ readonly id: import("../../ids.ts").Id<"commit">;
1999
+ readonly kind: "commit";
2000
+ };
2001
+ } | null;
2002
+ readonly execution: {
2003
+ readonly kind: "idle";
2004
+ readonly lastRun: {
2005
+ readonly id: import("../../ids.ts").Id<"run">;
2006
+ readonly end: {
2007
+ readonly kind: "completed";
2008
+ readonly usage: {
2009
+ readonly output: number;
2010
+ readonly input: number;
2011
+ readonly cacheRead: number;
2012
+ readonly cacheWrite: number;
2013
+ readonly reasoning: number | null;
2014
+ readonly total: number;
2015
+ readonly cost: {
2016
+ readonly output: number;
2017
+ readonly input: number;
2018
+ readonly cacheRead: number;
2019
+ readonly cacheWrite: number;
2020
+ readonly total: number;
2021
+ };
2022
+ };
2023
+ } | {
2024
+ readonly kind: "stopped";
2025
+ } | {
2026
+ readonly kind: "failed";
2027
+ readonly failure: {
2028
+ readonly retryAfterMs?: number | undefined;
2029
+ readonly message: string;
2030
+ readonly class: "provider" | "rate_limit" | "auth" | "quota" | "context_window" | "overloaded" | "network" | "aborted" | "runner";
2031
+ };
2032
+ };
2033
+ readonly endedAt: number;
2034
+ } | null;
2035
+ } | {
2036
+ readonly run: {
2037
+ readonly head: import("../../ids.ts").Id<"head">;
2038
+ readonly id: import("../../ids.ts").Id<"run">;
2039
+ readonly configuration: {
2040
+ readonly kind: "exact";
2041
+ readonly thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
2042
+ readonly model: {
2043
+ readonly id: string;
2044
+ readonly provider: string;
2045
+ };
2046
+ readonly agent: string | null;
2047
+ readonly settings: {
2048
+ readonly [x: string]: import("../../json.ts").Json;
2049
+ };
2050
+ readonly settingsVersion: string;
2051
+ };
2052
+ readonly startedAt: number;
2053
+ readonly attempt: number;
2054
+ readonly origin: {
2055
+ readonly message: import("../../ids.ts").Id<"message">;
2056
+ readonly kind: "input";
2057
+ } | {
2058
+ readonly kind: "continuation";
2059
+ readonly from: "job" | "child" | "wake";
2060
+ };
2061
+ };
2062
+ readonly kind: "live";
2063
+ readonly phase: "responding" | "executing";
2064
+ readonly stopping: boolean;
2065
+ } | {
2066
+ readonly run: {
2067
+ readonly head: import("../../ids.ts").Id<"head">;
2068
+ readonly id: import("../../ids.ts").Id<"run">;
2069
+ readonly configuration: {
2070
+ readonly kind: "exact";
2071
+ readonly thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
2072
+ readonly model: {
2073
+ readonly id: string;
2074
+ readonly provider: string;
2075
+ };
2076
+ readonly agent: string | null;
2077
+ readonly settings: {
2078
+ readonly [x: string]: import("../../json.ts").Json;
2079
+ };
2080
+ readonly settingsVersion: string;
2081
+ };
2082
+ readonly startedAt: number;
2083
+ readonly attempt: number;
2084
+ readonly origin: {
2085
+ readonly message: import("../../ids.ts").Id<"message">;
2086
+ readonly kind: "input";
2087
+ } | {
2088
+ readonly kind: "continuation";
2089
+ readonly from: "job" | "child" | "wake";
2090
+ };
2091
+ };
2092
+ readonly kind: "waiting";
2093
+ readonly on: {
2094
+ readonly deadline?: number | undefined;
2095
+ readonly session: import("../../ids.ts").Id<"session">;
2096
+ readonly run: import("../../ids.ts").Id<"run">;
2097
+ readonly kind: "run";
2098
+ } | {
2099
+ readonly deadline?: number | undefined;
2100
+ readonly job: import("../../ids.ts").Id<"job">;
2101
+ readonly kind: "job";
2102
+ } | {
2103
+ readonly deadline?: number | undefined;
2104
+ readonly part: import("../../ids.ts").Id<"part">;
2105
+ readonly kind: "part";
2106
+ } | {
2107
+ readonly deadline?: number | undefined;
2108
+ readonly kind: "timer";
2109
+ readonly until: number;
2110
+ };
2111
+ } | {
2112
+ readonly run: {
2113
+ readonly head: import("../../ids.ts").Id<"head">;
2114
+ readonly id: import("../../ids.ts").Id<"run">;
2115
+ readonly configuration: {
2116
+ readonly kind: "exact";
2117
+ readonly thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
2118
+ readonly model: {
2119
+ readonly id: string;
2120
+ readonly provider: string;
2121
+ };
2122
+ readonly agent: string | null;
2123
+ readonly settings: {
2124
+ readonly [x: string]: import("../../json.ts").Json;
2125
+ };
2126
+ readonly settingsVersion: string;
2127
+ };
2128
+ readonly startedAt: number;
2129
+ readonly attempt: number;
2130
+ readonly origin: {
2131
+ readonly message: import("../../ids.ts").Id<"message">;
2132
+ readonly kind: "input";
2133
+ } | {
2134
+ readonly kind: "continuation";
2135
+ readonly from: "job" | "child" | "wake";
2136
+ };
2137
+ };
2138
+ readonly kind: "retrying";
2139
+ readonly reason: string;
2140
+ readonly until: number;
2141
+ };
2142
+ readonly unread: boolean;
2143
+ }[];
2144
+ readonly runs: readonly number[];
2145
+ } | undefined;
2146
+ readonly messages?: {
2147
+ readonly items: readonly ({
2148
+ readonly at: number;
2149
+ readonly turn: import("../../ids.ts").Id<"turn">;
2150
+ readonly id: import("../../ids.ts").Id<"message">;
2151
+ readonly kind: "user";
2152
+ readonly source: {
2153
+ readonly kind: "user";
2154
+ } | {
2155
+ readonly session: import("../../ids.ts").Id<"session">;
2156
+ readonly kind: "child";
2157
+ readonly end: "failed" | "completed" | "stopped";
2158
+ } | {
2159
+ readonly job: import("../../ids.ts").Id<"job">;
2160
+ readonly kind: "job";
2161
+ } | {
2162
+ readonly kind: "shell";
2163
+ } | {
2164
+ readonly command?: string | undefined;
2165
+ readonly kind: "action";
2166
+ readonly label: string;
2167
+ };
2168
+ readonly delivery: "steer" | "queue" | "attach";
2169
+ readonly content: string | readonly ({
2170
+ readonly text: string;
2171
+ readonly kind: "text";
2172
+ } | {
2173
+ readonly name: string;
2174
+ readonly blob: import("../../ids.ts").Id<"blob">;
2175
+ readonly kind: "file";
2176
+ readonly mime: string;
2177
+ } | {
2178
+ readonly blob?: import("../../ids.ts").Id<"blob"> | undefined;
2179
+ readonly kind: "reference";
2180
+ readonly path: string;
2181
+ } | {
2182
+ readonly name: string;
2183
+ readonly kind: "skill";
2184
+ readonly location: string;
2185
+ } | {
2186
+ readonly text: string;
2187
+ readonly kind: "excerpt";
2188
+ readonly source: {
2189
+ readonly kind: "diff";
2190
+ readonly path: string;
2191
+ readonly side: "old" | "new";
2192
+ readonly start: number;
2193
+ readonly end: number;
2194
+ } | {
2195
+ readonly command?: string | undefined;
2196
+ readonly kind: "terminal";
2197
+ } | {
2198
+ readonly url: string;
2199
+ readonly kind: "browser";
2200
+ readonly selector: string;
2201
+ };
2202
+ })[];
2203
+ readonly status: {
2204
+ readonly kind: "unsent";
2205
+ readonly retrying: {
2206
+ readonly at: number;
2207
+ readonly reason: string;
2208
+ } | null;
2209
+ readonly attempts: number;
2210
+ } | {
2211
+ readonly kind: "pending";
2212
+ readonly schedule: {
2213
+ readonly run: import("../../ids.ts").Id<"run">;
2214
+ readonly kind: "joined";
2215
+ } | {
2216
+ readonly kind: "next-turn";
2217
+ readonly reason: "requested" | "idle" | "run-ended" | "configuration";
2218
+ } | {
2219
+ readonly kind: "attached";
2220
+ } | {
2221
+ readonly kind: "deciding";
2222
+ };
2223
+ readonly covered: boolean;
2224
+ } | {
2225
+ readonly run: import("../../ids.ts").Id<"run"> | null;
2226
+ readonly commit: import("../../ids.ts").Id<"commit">;
2227
+ readonly kind: "landed";
2228
+ readonly replaced: {
2229
+ readonly stopped: import("../../ids.ts").Id<"run"> | null;
2230
+ readonly previous: import("../../ids.ts").Id<"message">;
2231
+ } | null;
2232
+ };
2233
+ readonly siblings: {
2234
+ readonly count: number;
2235
+ readonly index: number;
2236
+ readonly ids: readonly import("../../ids.ts").Id<"commit">[];
2237
+ };
2238
+ } | {
2239
+ readonly at: number;
2240
+ readonly turn: import("../../ids.ts").Id<"turn">;
2241
+ readonly part: import("../../ids.ts").Id<"part">;
2242
+ readonly id: import("../../ids.ts").Id<"message">;
2243
+ readonly role: "answer" | "step" | "note";
2244
+ readonly kind: "part";
2245
+ readonly state: unknown;
2246
+ readonly partKind: string;
2247
+ readonly version: number;
2248
+ readonly status: {
2249
+ readonly waiting?: import("../../ids.ts").Id<"call"> | undefined;
2250
+ readonly answer?: {
2251
+ readonly input: import("../../json.ts").Json;
2252
+ readonly action: string;
2253
+ } | undefined;
2254
+ readonly run: import("../../ids.ts").Id<"run"> | null;
2255
+ readonly kind: "live";
2256
+ } | {
2257
+ readonly run: import("../../ids.ts").Id<"run">;
2258
+ readonly kind: "waiting";
2259
+ readonly on: {
2260
+ readonly deadline?: number | undefined;
2261
+ readonly session: import("../../ids.ts").Id<"session">;
2262
+ readonly run: import("../../ids.ts").Id<"run">;
2263
+ readonly kind: "run";
2264
+ } | {
2265
+ readonly deadline?: number | undefined;
2266
+ readonly job: import("../../ids.ts").Id<"job">;
2267
+ readonly kind: "job";
2268
+ } | {
2269
+ readonly deadline?: number | undefined;
2270
+ readonly part: import("../../ids.ts").Id<"part">;
2271
+ readonly kind: "part";
2272
+ } | {
2273
+ readonly deadline?: number | undefined;
2274
+ readonly kind: "timer";
2275
+ readonly until: number;
2276
+ };
2277
+ } | {
2278
+ readonly commit: import("../../ids.ts").Id<"commit">;
2279
+ readonly kind: "settled";
2280
+ readonly endedAt: number;
2281
+ } | {
2282
+ readonly run: import("../../ids.ts").Id<"run"> | null;
2283
+ readonly kind: "failed";
2284
+ readonly failure: {
2285
+ readonly retryAfterMs?: number | undefined;
2286
+ readonly message: string;
2287
+ readonly class: "provider" | "rate_limit" | "auth" | "quota" | "context_window" | "overloaded" | "network" | "aborted" | "runner";
2288
+ };
2289
+ };
2290
+ })[];
2291
+ readonly runs: readonly number[];
2292
+ } | undefined;
2293
+ readonly usage?: {
2294
+ readonly output: number;
2295
+ readonly input: number;
2296
+ readonly cacheRead: number;
2297
+ readonly cacheWrite: number;
2298
+ readonly reasoning: number | null;
2299
+ readonly total: number;
2300
+ readonly cost: {
2301
+ readonly output: number;
2302
+ readonly input: number;
2303
+ readonly cacheRead: number;
2304
+ readonly cacheWrite: number;
2305
+ readonly total: number;
2306
+ };
2307
+ } | undefined;
2308
+ readonly execution?: {
2309
+ readonly kind: "idle";
2310
+ readonly lastRun: {
2311
+ readonly id: import("../../ids.ts").Id<"run">;
2312
+ readonly end: {
2313
+ readonly kind: "completed";
2314
+ readonly usage: {
2315
+ readonly output: number;
2316
+ readonly input: number;
2317
+ readonly cacheRead: number;
2318
+ readonly cacheWrite: number;
2319
+ readonly reasoning: number | null;
2320
+ readonly total: number;
2321
+ readonly cost: {
2322
+ readonly output: number;
2323
+ readonly input: number;
2324
+ readonly cacheRead: number;
2325
+ readonly cacheWrite: number;
2326
+ readonly total: number;
2327
+ };
2328
+ };
2329
+ } | {
2330
+ readonly kind: "stopped";
2331
+ } | {
2332
+ readonly kind: "failed";
2333
+ readonly failure: {
2334
+ readonly retryAfterMs?: number | undefined;
2335
+ readonly message: string;
2336
+ readonly class: "provider" | "rate_limit" | "auth" | "quota" | "context_window" | "overloaded" | "network" | "aborted" | "runner";
2337
+ };
2338
+ };
2339
+ readonly endedAt: number;
2340
+ } | null;
2341
+ } | {
2342
+ readonly run: {
2343
+ readonly head: import("../../ids.ts").Id<"head">;
2344
+ readonly id: import("../../ids.ts").Id<"run">;
2345
+ readonly configuration: {
2346
+ readonly kind: "exact";
2347
+ readonly thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
2348
+ readonly model: {
2349
+ readonly id: string;
2350
+ readonly provider: string;
2351
+ };
2352
+ readonly agent: string | null;
2353
+ readonly settings: {
2354
+ readonly [x: string]: import("../../json.ts").Json;
2355
+ };
2356
+ readonly settingsVersion: string;
2357
+ };
2358
+ readonly startedAt: number;
2359
+ readonly attempt: number;
2360
+ readonly origin: {
2361
+ readonly message: import("../../ids.ts").Id<"message">;
2362
+ readonly kind: "input";
2363
+ } | {
2364
+ readonly kind: "continuation";
2365
+ readonly from: "job" | "child" | "wake";
2366
+ };
2367
+ };
2368
+ readonly kind: "live";
2369
+ readonly phase: "responding" | "executing";
2370
+ readonly stopping: boolean;
2371
+ } | {
2372
+ readonly run: {
2373
+ readonly head: import("../../ids.ts").Id<"head">;
2374
+ readonly id: import("../../ids.ts").Id<"run">;
2375
+ readonly configuration: {
2376
+ readonly kind: "exact";
2377
+ readonly thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
2378
+ readonly model: {
2379
+ readonly id: string;
2380
+ readonly provider: string;
2381
+ };
2382
+ readonly agent: string | null;
2383
+ readonly settings: {
2384
+ readonly [x: string]: import("../../json.ts").Json;
2385
+ };
2386
+ readonly settingsVersion: string;
2387
+ };
2388
+ readonly startedAt: number;
2389
+ readonly attempt: number;
2390
+ readonly origin: {
2391
+ readonly message: import("../../ids.ts").Id<"message">;
2392
+ readonly kind: "input";
2393
+ } | {
2394
+ readonly kind: "continuation";
2395
+ readonly from: "job" | "child" | "wake";
2396
+ };
2397
+ };
2398
+ readonly kind: "waiting";
2399
+ readonly on: {
2400
+ readonly deadline?: number | undefined;
2401
+ readonly session: import("../../ids.ts").Id<"session">;
2402
+ readonly run: import("../../ids.ts").Id<"run">;
2403
+ readonly kind: "run";
2404
+ } | {
2405
+ readonly deadline?: number | undefined;
2406
+ readonly job: import("../../ids.ts").Id<"job">;
2407
+ readonly kind: "job";
2408
+ } | {
2409
+ readonly deadline?: number | undefined;
2410
+ readonly part: import("../../ids.ts").Id<"part">;
2411
+ readonly kind: "part";
2412
+ } | {
2413
+ readonly deadline?: number | undefined;
2414
+ readonly kind: "timer";
2415
+ readonly until: number;
2416
+ };
2417
+ } | {
2418
+ readonly run: {
2419
+ readonly head: import("../../ids.ts").Id<"head">;
2420
+ readonly id: import("../../ids.ts").Id<"run">;
2421
+ readonly configuration: {
2422
+ readonly kind: "exact";
2423
+ readonly thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
2424
+ readonly model: {
2425
+ readonly id: string;
2426
+ readonly provider: string;
2427
+ };
2428
+ readonly agent: string | null;
2429
+ readonly settings: {
2430
+ readonly [x: string]: import("../../json.ts").Json;
2431
+ };
2432
+ readonly settingsVersion: string;
2433
+ };
2434
+ readonly startedAt: number;
2435
+ readonly attempt: number;
2436
+ readonly origin: {
2437
+ readonly message: import("../../ids.ts").Id<"message">;
2438
+ readonly kind: "input";
2439
+ } | {
2440
+ readonly kind: "continuation";
2441
+ readonly from: "job" | "child" | "wake";
2442
+ };
2443
+ };
2444
+ readonly kind: "retrying";
2445
+ readonly reason: string;
2446
+ readonly until: number;
2447
+ } | undefined;
2448
+ readonly activation?: {
2449
+ readonly kind: "active";
2450
+ } | {
2451
+ readonly kind: "inactive";
2452
+ } | {
2453
+ readonly workspace: import("../../ids.ts").Id<"workspace">;
2454
+ readonly kind: "unavailable";
2455
+ readonly reason: "unreachable" | "unsupported";
2456
+ } | {
2457
+ readonly message: string;
2458
+ readonly kind: "failed";
2459
+ } | undefined;
2460
+ readonly catalog?: {
2461
+ readonly settings: readonly {
2462
+ readonly value: import("../../json.ts").Json;
2463
+ readonly id: string;
2464
+ readonly label: string;
2465
+ readonly owner: string;
2466
+ readonly from: "session" | "host" | "default";
2467
+ readonly scope: "session" | "host";
2468
+ readonly schema: {
2469
+ readonly [x: string]: import("../../json.ts").Json;
2470
+ };
2471
+ readonly choices: readonly {
2472
+ readonly badge?: string | undefined;
2473
+ readonly value: import("../../json.ts").Json;
2474
+ readonly label: string;
2475
+ }[] | null;
2476
+ }[];
2477
+ readonly skills: readonly {
2478
+ readonly description: string;
2479
+ readonly name: string;
2480
+ readonly location: string;
2481
+ readonly owner: string;
2482
+ }[];
2483
+ readonly commands: readonly {
2484
+ readonly category?: string | undefined;
2485
+ readonly keywords?: readonly string[] | undefined;
2486
+ readonly description: string;
2487
+ readonly name: string;
2488
+ readonly title: string;
2489
+ readonly side: "core" | "client";
2490
+ readonly owner: string;
2491
+ readonly takesText: boolean;
2492
+ readonly completes: boolean;
2493
+ }[];
2494
+ readonly agents: readonly {
2495
+ readonly description: string | null;
2496
+ readonly id: string;
2497
+ readonly model: {
2498
+ readonly id: string;
2499
+ readonly provider: string;
2500
+ } | null;
2501
+ readonly owner: string;
2502
+ readonly mode: "all" | "primary" | "subagent";
2503
+ }[];
2504
+ readonly tools: readonly {
2505
+ readonly description: string;
2506
+ readonly output: {
2507
+ readonly [x: string]: import("../../json.ts").Json;
2508
+ } | null;
2509
+ readonly name: string;
2510
+ readonly owner: string;
2511
+ readonly namespace: string | null;
2512
+ readonly parameters: {
2513
+ readonly [x: string]: import("../../json.ts").Json;
2514
+ };
2515
+ readonly exposure: "model" | "code" | "deferred" | "hidden";
2516
+ }[];
2517
+ } | undefined;
2518
+ readonly parts?: {
2519
+ readonly items: readonly {
2520
+ readonly id: import("../../ids.ts").Id<"part">;
2521
+ readonly state: import("../../json.ts").Json;
2522
+ readonly partKind: string;
2523
+ readonly owner: string | null;
2524
+ readonly version: number;
2525
+ readonly status: {
2526
+ readonly waiting?: import("../../ids.ts").Id<"call"> | undefined;
2527
+ readonly answer?: {
2528
+ readonly input: import("../../json.ts").Json;
2529
+ readonly action: string;
2530
+ } | undefined;
2531
+ readonly run: import("../../ids.ts").Id<"run"> | null;
2532
+ readonly kind: "live";
2533
+ } | {
2534
+ readonly run: import("../../ids.ts").Id<"run">;
2535
+ readonly kind: "waiting";
2536
+ readonly on: {
2537
+ readonly deadline?: number | undefined;
2538
+ readonly session: import("../../ids.ts").Id<"session">;
2539
+ readonly run: import("../../ids.ts").Id<"run">;
2540
+ readonly kind: "run";
2541
+ } | {
2542
+ readonly deadline?: number | undefined;
2543
+ readonly job: import("../../ids.ts").Id<"job">;
2544
+ readonly kind: "job";
2545
+ } | {
2546
+ readonly deadline?: number | undefined;
2547
+ readonly part: import("../../ids.ts").Id<"part">;
2548
+ readonly kind: "part";
2549
+ } | {
2550
+ readonly deadline?: number | undefined;
2551
+ readonly kind: "timer";
2552
+ readonly until: number;
2553
+ };
2554
+ } | {
2555
+ readonly commit: import("../../ids.ts").Id<"commit">;
2556
+ readonly kind: "settled";
2557
+ readonly endedAt: number;
2558
+ } | {
2559
+ readonly run: import("../../ids.ts").Id<"run"> | null;
2560
+ readonly kind: "failed";
2561
+ readonly failure: {
2562
+ readonly retryAfterMs?: number | undefined;
2563
+ readonly message: string;
2564
+ readonly class: "provider" | "rate_limit" | "auth" | "quota" | "context_window" | "overloaded" | "network" | "aborted" | "runner";
2565
+ };
2566
+ };
2567
+ readonly placement: {
2568
+ readonly role: "answer" | "step" | "note";
2569
+ readonly kind: "transcript";
2570
+ } | {
2571
+ readonly kind: "modal";
2572
+ } | {
2573
+ readonly [x: string]: import("../../json.ts").Json;
2574
+ readonly kind: string;
2575
+ };
2576
+ }[];
2577
+ readonly runs: readonly number[];
2578
+ } | undefined;
2579
+ readonly changes?: {
2580
+ readonly items: readonly {
2581
+ readonly from?: string | undefined;
2582
+ readonly path: string;
2583
+ readonly removed: number;
2584
+ readonly added: number;
2585
+ readonly status: "added" | "modified" | "deleted" | "renamed" | "untracked" | "conflicted";
2586
+ }[];
2587
+ readonly runs: readonly number[];
2588
+ } | undefined;
2589
+ readonly background?: {
2590
+ readonly items: readonly {
2591
+ readonly id: string;
2592
+ readonly title: string;
2593
+ readonly kind: "job" | "page" | "child";
2594
+ readonly state: "failed" | "waiting" | "working" | "done";
2595
+ readonly startedBy: import("../../ids.ts").Id<"call"> | null;
2596
+ }[];
2597
+ readonly runs: readonly number[];
2598
+ } | undefined;
2599
+ readonly context?: {
2600
+ readonly tokens: number;
2601
+ readonly window: number;
2602
+ readonly lastRequest: {
2603
+ readonly output: number;
2604
+ readonly input: number;
2605
+ readonly cacheRead: number;
2606
+ readonly cacheWrite: number;
2607
+ readonly reasoning: number | null;
2608
+ readonly total: number;
2609
+ readonly cost: {
2610
+ readonly output: number;
2611
+ readonly input: number;
2612
+ readonly cacheRead: number;
2613
+ readonly cacheWrite: number;
2614
+ readonly total: number;
2615
+ };
2616
+ } | null;
2617
+ } | undefined;
2618
+ readonly turns?: {
2619
+ readonly items: readonly {
2620
+ readonly run: import("../../ids.ts").Id<"run"> | null;
2621
+ readonly id: import("../../ids.ts").Id<"turn">;
2622
+ readonly state: {
2623
+ readonly kind: "working";
2624
+ readonly activity: string | null;
2625
+ } | {
2626
+ readonly kind: "waiting";
2627
+ readonly on: {
2628
+ readonly deadline?: number | undefined;
2629
+ readonly session: import("../../ids.ts").Id<"session">;
2630
+ readonly run: import("../../ids.ts").Id<"run">;
2631
+ readonly kind: "run";
2632
+ } | {
2633
+ readonly deadline?: number | undefined;
2634
+ readonly job: import("../../ids.ts").Id<"job">;
2635
+ readonly kind: "job";
2636
+ } | {
2637
+ readonly deadline?: number | undefined;
2638
+ readonly part: import("../../ids.ts").Id<"part">;
2639
+ readonly kind: "part";
2640
+ } | {
2641
+ readonly deadline?: number | undefined;
2642
+ readonly kind: "timer";
2643
+ readonly until: number;
2644
+ };
2645
+ } | {
2646
+ readonly kind: "ended";
2647
+ readonly end: {
2648
+ readonly kind: "completed";
2649
+ readonly usage: {
2650
+ readonly output: number;
2651
+ readonly input: number;
2652
+ readonly cacheRead: number;
2653
+ readonly cacheWrite: number;
2654
+ readonly reasoning: number | null;
2655
+ readonly total: number;
2656
+ readonly cost: {
2657
+ readonly output: number;
2658
+ readonly input: number;
2659
+ readonly cacheRead: number;
2660
+ readonly cacheWrite: number;
2661
+ readonly total: number;
2662
+ };
2663
+ };
2664
+ } | {
2665
+ readonly kind: "stopped";
2666
+ } | {
2667
+ readonly kind: "failed";
2668
+ readonly failure: {
2669
+ readonly retryAfterMs?: number | undefined;
2670
+ readonly message: string;
2671
+ readonly class: "provider" | "rate_limit" | "auth" | "quota" | "context_window" | "overloaded" | "network" | "aborted" | "runner";
2672
+ };
2673
+ };
2674
+ };
2675
+ readonly summary: {
2676
+ readonly failed: number;
2677
+ readonly stopped: number;
2678
+ readonly removed: number;
2679
+ readonly added: number;
2680
+ readonly byClass: {
2681
+ readonly shell: {
2682
+ readonly paths: readonly string[];
2683
+ readonly count: number;
2684
+ };
2685
+ readonly edit: {
2686
+ readonly paths: readonly string[];
2687
+ readonly count: number;
2688
+ };
2689
+ readonly custom: {
2690
+ readonly paths: readonly string[];
2691
+ readonly count: number;
2692
+ };
2693
+ readonly read: {
2694
+ readonly paths: readonly string[];
2695
+ readonly count: number;
2696
+ };
2697
+ readonly list: {
2698
+ readonly paths: readonly string[];
2699
+ readonly count: number;
2700
+ };
2701
+ readonly delegate: {
2702
+ readonly paths: readonly string[];
2703
+ readonly count: number;
2704
+ };
2705
+ };
2706
+ };
2707
+ readonly startedAt: number;
2708
+ readonly endedAt: number | null;
2709
+ readonly prompt: import("../../ids.ts").Id<"message"> | null;
2710
+ readonly steps: number;
2711
+ readonly thinkingOnly: boolean;
2712
+ }[];
2713
+ readonly runs: readonly number[];
2714
+ } | undefined;
2715
+ readonly appends?: readonly {
2716
+ readonly at: number;
2717
+ readonly version: number;
2718
+ readonly append: string;
2719
+ }[] | undefined;
2720
+ readonly seq: import("../../ids.ts").Seq;
2721
+ readonly kind: "delta";
2722
+ }>;
2723
+ readonly authority: "participant";
2724
+ readonly scope: "session";
2725
+ };
2726
+ readonly "head.history": {
2727
+ readonly kind: "query";
2728
+ readonly input: import("../../schema.ts").Schema<{
2729
+ session: import("../../ids.ts").Id<"session">;
2730
+ head: import("../../ids.ts").Id<"head">;
2731
+ limit: number;
2732
+ before: import("../../ids.ts").Id<"message">;
2733
+ }>;
2734
+ readonly output: import("../../schema.ts").Schema<{
2735
+ messages: ({
2736
+ at: number;
2737
+ turn: import("../../ids.ts").Id<"turn">;
2738
+ id: import("../../ids.ts").Id<"message">;
2739
+ kind: "user";
2740
+ source: {
2741
+ kind: "user";
2742
+ } | {
2743
+ session: import("../../ids.ts").Id<"session">;
2744
+ kind: "child";
2745
+ end: "failed" | "completed" | "stopped";
2746
+ } | {
2747
+ job: import("../../ids.ts").Id<"job">;
2748
+ kind: "job";
2749
+ } | {
2750
+ kind: "shell";
2751
+ } | {
2752
+ command?: string | undefined;
2753
+ kind: "action";
2754
+ label: string;
2755
+ };
2756
+ delivery: "steer" | "queue" | "attach";
2757
+ content: string | ({
2758
+ text: string;
2759
+ kind: "text";
2760
+ } | {
2761
+ name: string;
2762
+ blob: import("../../ids.ts").Id<"blob">;
2763
+ kind: "file";
2764
+ mime: string;
2765
+ } | {
2766
+ blob?: import("../../ids.ts").Id<"blob"> | undefined;
2767
+ kind: "reference";
2768
+ path: string;
2769
+ } | {
2770
+ name: string;
2771
+ kind: "skill";
2772
+ location: string;
2773
+ } | {
2774
+ text: string;
2775
+ kind: "excerpt";
2776
+ source: {
2777
+ kind: "diff";
2778
+ path: string;
2779
+ side: "old" | "new";
2780
+ start: number;
2781
+ end: number;
2782
+ } | {
2783
+ command?: string | undefined;
2784
+ kind: "terminal";
2785
+ } | {
2786
+ url: string;
2787
+ kind: "browser";
2788
+ selector: string;
2789
+ };
2790
+ })[];
2791
+ status: {
2792
+ kind: "unsent";
2793
+ retrying: {
2794
+ at: number;
2795
+ reason: string;
2796
+ } | null;
2797
+ attempts: number;
2798
+ } | {
2799
+ kind: "pending";
2800
+ schedule: {
2801
+ run: import("../../ids.ts").Id<"run">;
2802
+ kind: "joined";
2803
+ } | {
2804
+ kind: "next-turn";
2805
+ reason: "requested" | "idle" | "run-ended" | "configuration";
2806
+ } | {
2807
+ kind: "attached";
2808
+ } | {
2809
+ kind: "deciding";
2810
+ };
2811
+ covered: boolean;
2812
+ } | {
2813
+ run: import("../../ids.ts").Id<"run"> | null;
2814
+ commit: import("../../ids.ts").Id<"commit">;
2815
+ kind: "landed";
2816
+ replaced: {
2817
+ stopped: import("../../ids.ts").Id<"run"> | null;
2818
+ previous: import("../../ids.ts").Id<"message">;
2819
+ } | null;
2820
+ };
2821
+ siblings: {
2822
+ count: number;
2823
+ index: number;
2824
+ ids: import("../../ids.ts").Id<"commit">[];
2825
+ };
2826
+ } | {
2827
+ at: number;
2828
+ turn: import("../../ids.ts").Id<"turn">;
2829
+ part: import("../../ids.ts").Id<"part">;
2830
+ id: import("../../ids.ts").Id<"message">;
2831
+ role: "answer" | "step" | "note";
2832
+ kind: "part";
2833
+ state: unknown;
2834
+ partKind: string;
2835
+ version: number;
2836
+ status: {
2837
+ waiting?: import("../../ids.ts").Id<"call"> | undefined;
2838
+ answer?: {
2839
+ input: import("../../json.ts").Json;
2840
+ action: string;
2841
+ } | undefined;
2842
+ run: import("../../ids.ts").Id<"run"> | null;
2843
+ kind: "live";
2844
+ } | {
2845
+ run: import("../../ids.ts").Id<"run">;
2846
+ kind: "waiting";
2847
+ on: {
2848
+ deadline?: number | undefined;
2849
+ session: import("../../ids.ts").Id<"session">;
2850
+ run: import("../../ids.ts").Id<"run">;
2851
+ kind: "run";
2852
+ } | {
2853
+ deadline?: number | undefined;
2854
+ job: import("../../ids.ts").Id<"job">;
2855
+ kind: "job";
2856
+ } | {
2857
+ deadline?: number | undefined;
2858
+ part: import("../../ids.ts").Id<"part">;
2859
+ kind: "part";
2860
+ } | {
2861
+ deadline?: number | undefined;
2862
+ kind: "timer";
2863
+ until: number;
2864
+ };
2865
+ } | {
2866
+ commit: import("../../ids.ts").Id<"commit">;
2867
+ kind: "settled";
2868
+ endedAt: number;
2869
+ } | {
2870
+ run: import("../../ids.ts").Id<"run"> | null;
2871
+ kind: "failed";
2872
+ failure: {
2873
+ retryAfterMs?: number | undefined;
2874
+ message: string;
2875
+ class: "provider" | "rate_limit" | "auth" | "quota" | "context_window" | "overloaded" | "network" | "aborted" | "runner";
2876
+ };
2877
+ };
2878
+ })[];
2879
+ turns: {
2880
+ run: import("../../ids.ts").Id<"run"> | null;
2881
+ id: import("../../ids.ts").Id<"turn">;
2882
+ state: {
2883
+ kind: "working";
2884
+ activity: string | null;
2885
+ } | {
2886
+ kind: "waiting";
2887
+ on: {
2888
+ deadline?: number | undefined;
2889
+ session: import("../../ids.ts").Id<"session">;
2890
+ run: import("../../ids.ts").Id<"run">;
2891
+ kind: "run";
2892
+ } | {
2893
+ deadline?: number | undefined;
2894
+ job: import("../../ids.ts").Id<"job">;
2895
+ kind: "job";
2896
+ } | {
2897
+ deadline?: number | undefined;
2898
+ part: import("../../ids.ts").Id<"part">;
2899
+ kind: "part";
2900
+ } | {
2901
+ deadline?: number | undefined;
2902
+ kind: "timer";
2903
+ until: number;
2904
+ };
2905
+ } | {
2906
+ kind: "ended";
2907
+ end: {
2908
+ kind: "completed";
2909
+ usage: {
2910
+ output: number;
2911
+ input: number;
2912
+ cacheRead: number;
2913
+ cacheWrite: number;
2914
+ reasoning: number | null;
2915
+ total: number;
2916
+ cost: {
2917
+ output: number;
2918
+ input: number;
2919
+ cacheRead: number;
2920
+ cacheWrite: number;
2921
+ total: number;
2922
+ };
2923
+ };
2924
+ } | {
2925
+ kind: "stopped";
2926
+ } | {
2927
+ kind: "failed";
2928
+ failure: {
2929
+ retryAfterMs?: number | undefined;
2930
+ message: string;
2931
+ class: "provider" | "rate_limit" | "auth" | "quota" | "context_window" | "overloaded" | "network" | "aborted" | "runner";
2932
+ };
2933
+ };
2934
+ };
2935
+ summary: {
2936
+ failed: number;
2937
+ stopped: number;
2938
+ removed: number;
2939
+ added: number;
2940
+ byClass: {
2941
+ shell: {
2942
+ paths: string[];
2943
+ count: number;
2944
+ };
2945
+ edit: {
2946
+ paths: string[];
2947
+ count: number;
2948
+ };
2949
+ custom: {
2950
+ paths: string[];
2951
+ count: number;
2952
+ };
2953
+ read: {
2954
+ paths: string[];
2955
+ count: number;
2956
+ };
2957
+ list: {
2958
+ paths: string[];
2959
+ count: number;
2960
+ };
2961
+ delegate: {
2962
+ paths: string[];
2963
+ count: number;
2964
+ };
2965
+ };
2966
+ };
2967
+ startedAt: number;
2968
+ endedAt: number | null;
2969
+ prompt: import("../../ids.ts").Id<"message"> | null;
2970
+ steps: number;
2971
+ thinkingOnly: boolean;
2972
+ }[];
2973
+ }>;
2974
+ readonly authority: "participant";
2975
+ readonly scope: "session";
2976
+ };
2977
+ readonly "head.tree": {
2978
+ readonly kind: "query";
2979
+ readonly input: import("../../schema.ts").Schema<{
2980
+ session: import("../../ids.ts").Id<"session">;
2981
+ head: import("../../ids.ts").Id<"head">;
2982
+ }>;
2983
+ readonly output: import("../../schema.ts").Schema<{
2984
+ readonly revision: import("../../ids.ts").Id<"revision"> | null;
2985
+ readonly nodes: readonly {
2986
+ readonly at: number;
2987
+ readonly run: import("../../ids.ts").Id<"run"> | null;
2988
+ readonly id: import("../../ids.ts").Id<"commit">;
2989
+ readonly depth: number;
2990
+ readonly kind: "part" | "user" | "compaction" | "branchSummary";
2991
+ readonly active: boolean;
2992
+ readonly parent: import("../../ids.ts").Id<"commit"> | null;
2993
+ readonly branch: boolean;
2994
+ readonly heads: readonly import("../../ids.ts").Id<"head">[];
2995
+ readonly partKind: string | null;
2996
+ readonly preview: string;
2997
+ }[];
2998
+ readonly tip: {
2999
+ readonly kind: "start";
3000
+ } | {
3001
+ readonly id: import("../../ids.ts").Id<"commit">;
3002
+ readonly kind: "commit";
3003
+ };
3004
+ }>;
3005
+ readonly authority: "participant";
3006
+ readonly scope: "session";
3007
+ };
3008
+ readonly "head.move": {
3009
+ readonly kind: "receipt";
3010
+ readonly recovery: "replay";
3011
+ readonly input: import("../../schema.ts").Schema<{
3012
+ id?: import("../../ids.ts").Id<"receipt"> | undefined;
3013
+ options?: {
3014
+ running?: "refuse" | "stop" | undefined;
3015
+ abandoned?: "keep" | {
3016
+ summarize: {
3017
+ instructions?: string | undefined;
3018
+ };
3019
+ } | undefined;
3020
+ expect?: import("../../ids.ts").Id<"revision"> | undefined;
3021
+ } | undefined;
3022
+ session: import("../../ids.ts").Id<"session">;
3023
+ head: import("../../ids.ts").Id<"head">;
3024
+ position: {
3025
+ kind: "start";
3026
+ } | {
3027
+ id: import("../../ids.ts").Id<"commit">;
3028
+ kind: "commit";
3029
+ };
3030
+ }>;
3031
+ readonly output: import("../../schema.ts").Schema<{
3032
+ receipt: import("../../ids.ts").Id<"receipt">;
3033
+ }>;
3034
+ readonly authority: "participant";
3035
+ readonly scope: "session";
3036
+ };
3037
+ readonly "head.compact": {
3038
+ readonly kind: "command";
3039
+ readonly input: import("../../schema.ts").Schema<{
3040
+ instructions?: string | undefined;
3041
+ session: import("../../ids.ts").Id<"session">;
3042
+ head: import("../../ids.ts").Id<"head">;
3043
+ }>;
3044
+ readonly output: import("../../schema.ts").Schema<{
3045
+ message: import("../../ids.ts").Id<"message">;
3046
+ kind: "started";
3047
+ } | {
3048
+ run: import("../../ids.ts").Id<"run">;
3049
+ kind: "busy";
3050
+ } | {
3051
+ kind: "nothing-to-compact";
3052
+ }>;
3053
+ readonly authority: "participant";
3054
+ readonly scope: "session";
3055
+ };
3056
+ readonly "heads.create": {
3057
+ readonly kind: "command";
3058
+ readonly input: import("../../schema.ts").Schema<{
3059
+ input?: {
3060
+ from?: {
3061
+ kind: "start";
3062
+ } | {
3063
+ id: import("../../ids.ts").Id<"commit">;
3064
+ kind: "commit";
3065
+ } | undefined;
3066
+ } | undefined;
3067
+ name: import("../../ids.ts").Id<"head">;
3068
+ session: import("../../ids.ts").Id<"session">;
3069
+ }>;
3070
+ readonly output: import("../../schema.ts").Schema<{
3071
+ readonly kind: "created";
3072
+ readonly basedOn: {
3073
+ readonly kind: "start";
3074
+ } | {
3075
+ readonly id: import("../../ids.ts").Id<"commit">;
3076
+ readonly kind: "commit";
3077
+ };
3078
+ } | {
3079
+ readonly kind: "exists";
3080
+ } | {
3081
+ readonly kind: "missing-source";
3082
+ }>;
3083
+ readonly authority: "participant";
3084
+ readonly scope: "session";
3085
+ };
3086
+ readonly "heads.merge": {
3087
+ readonly kind: "command";
3088
+ readonly input: import("../../schema.ts").Schema<{
3089
+ options?: {
3090
+ expect?: import("../../ids.ts").Id<"revision"> | undefined;
3091
+ } | undefined;
3092
+ name: import("../../ids.ts").Id<"head">;
3093
+ session: import("../../ids.ts").Id<"session">;
3094
+ }>;
3095
+ readonly output: import("../../schema.ts").Schema<{
3096
+ readonly revision: import("../../ids.ts").Id<"revision">;
3097
+ readonly kind: "merged";
3098
+ } | {
3099
+ readonly revision: import("../../ids.ts").Id<"revision">;
3100
+ readonly kind: "stale";
3101
+ } | {
3102
+ readonly kind: "diverged";
3103
+ readonly base: {
3104
+ readonly kind: "start";
3105
+ } | {
3106
+ readonly id: import("../../ids.ts").Id<"commit">;
3107
+ readonly kind: "commit";
3108
+ };
3109
+ } | {
3110
+ readonly kind: "is-main";
3111
+ } | {
3112
+ readonly run: import("../../ids.ts").Id<"run">;
3113
+ readonly kind: "busy";
3114
+ }>;
3115
+ readonly authority: "participant";
3116
+ readonly scope: "session";
3117
+ };
3118
+ readonly "heads.remove": {
3119
+ readonly kind: "command";
3120
+ readonly input: import("../../schema.ts").Schema<{
3121
+ options?: {
3122
+ expect?: import("../../ids.ts").Id<"revision"> | undefined;
3123
+ } | undefined;
3124
+ name: import("../../ids.ts").Id<"head">;
3125
+ session: import("../../ids.ts").Id<"session">;
3126
+ }>;
3127
+ readonly output: import("../../schema.ts").Schema<{
3128
+ readonly kind: "removed";
3129
+ } | {
3130
+ readonly kind: "missing";
3131
+ } | {
3132
+ readonly kind: "is-main";
3133
+ } | {
3134
+ readonly run: import("../../ids.ts").Id<"run">;
3135
+ readonly kind: "busy";
3136
+ }>;
3137
+ readonly authority: "participant";
3138
+ readonly scope: "session";
3139
+ };
3140
+ readonly "run.stop": {
3141
+ readonly kind: "command";
3142
+ readonly input: import("../../schema.ts").Schema<{
3143
+ session: import("../../ids.ts").Id<"session">;
3144
+ run: import("../../ids.ts").Id<"run">;
3145
+ }>;
3146
+ readonly output: import("../../schema.ts").Schema<{
3147
+ kind: "requested";
3148
+ } | {
3149
+ kind: "settled";
3150
+ outcome: {
3151
+ kind: "completed";
3152
+ usage: {
3153
+ output: number;
3154
+ input: number;
3155
+ cacheRead: number;
3156
+ cacheWrite: number;
3157
+ reasoning: number | null;
3158
+ total: number;
3159
+ cost: {
3160
+ output: number;
3161
+ input: number;
3162
+ cacheRead: number;
3163
+ cacheWrite: number;
3164
+ total: number;
3165
+ };
3166
+ };
3167
+ } | {
3168
+ kind: "stopped";
3169
+ } | {
3170
+ kind: "failed";
3171
+ failure: {
3172
+ retryAfterMs?: number | undefined;
3173
+ message: string;
3174
+ class: "provider" | "rate_limit" | "auth" | "quota" | "context_window" | "overloaded" | "network" | "aborted" | "runner";
3175
+ };
3176
+ };
3177
+ } | {
3178
+ kind: "missing";
3179
+ }>;
3180
+ readonly authority: "participant";
3181
+ readonly scope: "session";
3182
+ };
3183
+ readonly "run.settled": {
3184
+ readonly kind: "query";
3185
+ readonly wait: true;
3186
+ readonly input: import("../../schema.ts").Schema<{
3187
+ session: import("../../ids.ts").Id<"session">;
3188
+ run: import("../../ids.ts").Id<"run">;
3189
+ }>;
3190
+ readonly output: import("../../schema.ts").Schema<{
3191
+ readonly kind: "completed";
3192
+ readonly usage: {
3193
+ readonly output: number;
3194
+ readonly input: number;
3195
+ readonly cacheRead: number;
3196
+ readonly cacheWrite: number;
3197
+ readonly reasoning: number | null;
3198
+ readonly total: number;
3199
+ readonly cost: {
3200
+ readonly output: number;
3201
+ readonly input: number;
3202
+ readonly cacheRead: number;
3203
+ readonly cacheWrite: number;
3204
+ readonly total: number;
3205
+ };
3206
+ };
3207
+ } | {
3208
+ readonly kind: "stopped";
3209
+ } | {
3210
+ readonly kind: "failed";
3211
+ readonly failure: {
3212
+ readonly retryAfterMs?: number | undefined;
3213
+ readonly message: string;
3214
+ readonly class: "provider" | "rate_limit" | "auth" | "quota" | "context_window" | "overloaded" | "network" | "aborted" | "runner";
3215
+ };
3216
+ }>;
3217
+ readonly authority: "participant";
3218
+ readonly scope: "session";
3219
+ };
3220
+ readonly "receipt.status": {
3221
+ readonly kind: "query";
3222
+ readonly input: import("../../schema.ts").Schema<{
3223
+ session: import("../../ids.ts").Id<"session"> | null;
3224
+ receipt: import("../../ids.ts").Id<"receipt">;
3225
+ }>;
3226
+ readonly output: import("../../schema.ts").Schema<{
3227
+ kind: "pending";
3228
+ } | {
3229
+ kind: "settled";
3230
+ outcome: import("../../json.ts").Json;
3231
+ } | {
3232
+ kind: "missing";
3233
+ }>;
3234
+ readonly authority: "participant";
3235
+ readonly scope: "session";
3236
+ };
3237
+ readonly "receipt.settled": {
3238
+ readonly kind: "query";
3239
+ readonly wait: true;
3240
+ readonly input: import("../../schema.ts").Schema<{
3241
+ session: import("../../ids.ts").Id<"session"> | null;
3242
+ receipt: import("../../ids.ts").Id<"receipt">;
3243
+ }>;
3244
+ readonly output: import("../../schema.ts").Schema<import("../../json.ts").Json>;
3245
+ readonly authority: "participant";
3246
+ readonly scope: "session";
3247
+ };
3248
+ readonly "receipt.stop": {
3249
+ readonly kind: "command";
3250
+ readonly input: import("../../schema.ts").Schema<{
3251
+ session: import("../../ids.ts").Id<"session"> | null;
3252
+ receipt: import("../../ids.ts").Id<"receipt">;
3253
+ }>;
3254
+ readonly output: import("../../schema.ts").Schema<{
3255
+ kind: "requested";
3256
+ } | {
3257
+ kind: "settled";
3258
+ outcome: import("../../json.ts").Json;
3259
+ } | {
3260
+ kind: "missing";
3261
+ }>;
3262
+ readonly authority: "participant";
3263
+ readonly scope: "session";
3264
+ };
3265
+ readonly "receipt.landed": {
3266
+ readonly kind: "query";
3267
+ readonly wait: true;
3268
+ readonly input: import("../../schema.ts").Schema<{
3269
+ session: import("../../ids.ts").Id<"session"> | null;
3270
+ receipt: import("../../ids.ts").Id<"receipt">;
3271
+ }>;
3272
+ readonly output: import("../../schema.ts").Schema<{
3273
+ run: import("../../ids.ts").Id<"run"> | null;
3274
+ commit: import("../../ids.ts").Id<"commit">;
3275
+ kind: "landed";
3276
+ replaced: {
3277
+ stopped: import("../../ids.ts").Id<"run"> | null;
3278
+ previous: import("../../ids.ts").Id<"message">;
3279
+ } | null;
3280
+ } | {
3281
+ kind: "withdrawn";
3282
+ } | {
3283
+ revision: import("../../ids.ts").Id<"revision">;
3284
+ kind: "stale";
3285
+ } | {
3286
+ run: import("../../ids.ts").Id<"run">;
3287
+ kind: "busy";
3288
+ } | {
3289
+ kind: "pending-input";
3290
+ messages: import("../../ids.ts").Id<"message">[];
3291
+ } | {
3292
+ kind: "missing-target";
3293
+ } | {
3294
+ kind: "summary-failed";
3295
+ reason: string;
3296
+ }>;
3297
+ readonly authority: "participant";
3298
+ readonly scope: "session";
3299
+ };
3300
+ readonly "parts.create": {
3301
+ readonly kind: "command";
3302
+ readonly recovery: "replay";
3303
+ readonly input: import("../../schema.ts").Schema<{
3304
+ session: import("../../ids.ts").Id<"session">;
3305
+ kind: string;
3306
+ input: {
3307
+ id?: import("../../ids.ts").Id<"part"> | undefined;
3308
+ state: import("../../json.ts").Json;
3309
+ placement: {
3310
+ role: "answer" | "step" | "note";
3311
+ kind: "transcript";
3312
+ } | {
3313
+ kind: "modal";
3314
+ } | ({
3315
+ kind: string;
3316
+ } & Record<string, import("../../json.ts").Json>);
3317
+ };
3318
+ }>;
3319
+ readonly output: import("../../schema.ts").Schema<{
3320
+ part: import("../../ids.ts").Id<"part">;
3321
+ }>;
3322
+ readonly authority: "participant";
3323
+ readonly scope: "session";
3324
+ };
3325
+ readonly "part.update": {
3326
+ readonly kind: "command";
3327
+ readonly input: import("../../schema.ts").Schema<{
3328
+ options?: {
3329
+ version?: number | undefined;
3330
+ } | undefined;
3331
+ session: import("../../ids.ts").Id<"session">;
3332
+ part: import("../../ids.ts").Id<"part">;
3333
+ next: import("../../json.ts").Json;
3334
+ }>;
3335
+ readonly output: import("../../schema.ts").Schema<{
3336
+ kind: "updated";
3337
+ version: number;
3338
+ } | {
3339
+ issues: {
3340
+ source?: {
3341
+ file?: string | undefined;
3342
+ line?: number | undefined;
3343
+ plugin: string;
3344
+ } | undefined;
3345
+ message: string;
3346
+ severity: "error" | "warning";
3347
+ path: (string | number)[];
3348
+ }[];
3349
+ kind: "invalid";
3350
+ } | {
3351
+ kind: "closed";
3352
+ } | {
3353
+ kind: "missing";
3354
+ } | {
3355
+ kind: "stale";
3356
+ }>;
3357
+ readonly authority: "participant";
3358
+ readonly scope: "session";
3359
+ };
3360
+ readonly "part.act": {
3361
+ readonly kind: "command";
3362
+ readonly input: import("../../schema.ts").Schema<{
3363
+ session: import("../../ids.ts").Id<"session">;
3364
+ part: import("../../ids.ts").Id<"part">;
3365
+ input: import("../../json.ts").Json;
3366
+ action: string;
3367
+ }>;
3368
+ readonly output: import("../../schema.ts").Schema<{
3369
+ output: import("../../json.ts").Json;
3370
+ kind: "ok";
3371
+ } | {
3372
+ kind: "rejected";
3373
+ reason: string;
3374
+ } | {
3375
+ kind: "unknown-action";
3376
+ } | {
3377
+ kind: "closed";
3378
+ } | {
3379
+ kind: "no-owner";
3380
+ } | {
3381
+ message: string;
3382
+ kind: "failed";
3383
+ }>;
3384
+ readonly authority: "participant";
3385
+ readonly scope: "session";
3386
+ };
3387
+ readonly "part.answer": {
3388
+ readonly kind: "query";
3389
+ readonly wait: true;
3390
+ readonly input: import("../../schema.ts").Schema<{
3391
+ session: import("../../ids.ts").Id<"session">;
3392
+ part: import("../../ids.ts").Id<"part">;
3393
+ }>;
3394
+ readonly output: import("../../schema.ts").Schema<{
3395
+ input: import("../../json.ts").Json;
3396
+ action: string;
3397
+ } | null>;
3398
+ readonly authority: "participant";
3399
+ readonly scope: "session";
3400
+ };
3401
+ readonly "part.close": {
3402
+ readonly kind: "command";
3403
+ readonly input: import("../../schema.ts").Schema<{
3404
+ session: import("../../ids.ts").Id<"session">;
3405
+ part: import("../../ids.ts").Id<"part">;
3406
+ }>;
3407
+ readonly output: import("../../schema.ts").Schema<null>;
3408
+ readonly authority: "participant";
3409
+ readonly scope: "session";
3410
+ };
3411
+ };