@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,1011 @@
1
+ export declare const HOST_OPERATIONS: {
2
+ readonly "connection.watch": {
3
+ readonly kind: "watch";
4
+ readonly input: import("../../schema.ts").Schema<object>;
5
+ readonly output: import("../../schema.ts").Schema<{
6
+ readonly link: {
7
+ readonly kind: "connected";
8
+ } | {
9
+ readonly kind: "reconnecting";
10
+ readonly since: number;
11
+ readonly attempts: number;
12
+ } | {
13
+ readonly kind: "closed";
14
+ readonly reason: "client" | "revoked" | "host-gone";
15
+ };
16
+ readonly name: string;
17
+ readonly principal: import("../../ids.ts").Id<"principal">;
18
+ readonly id: import("../../ids.ts").Id<"host">;
19
+ readonly settings: readonly {
20
+ readonly value: import("../../json.ts").Json;
21
+ readonly id: string;
22
+ readonly label: string;
23
+ readonly owner: string;
24
+ readonly from: "session" | "host" | "default";
25
+ readonly scope: "session" | "host";
26
+ readonly schema: {
27
+ readonly [x: string]: import("../../json.ts").Json;
28
+ };
29
+ readonly choices: readonly {
30
+ readonly badge?: string | undefined;
31
+ readonly value: import("../../json.ts").Json;
32
+ readonly label: string;
33
+ }[] | null;
34
+ }[];
35
+ readonly authority: readonly ("participant" | "owner" | "maintenance")[];
36
+ readonly plugins: readonly {
37
+ readonly issues: readonly {
38
+ readonly source?: {
39
+ readonly file?: string | undefined;
40
+ readonly line?: number | undefined;
41
+ readonly plugin: string;
42
+ } | undefined;
43
+ readonly message: string;
44
+ readonly severity: "error" | "warning";
45
+ readonly path: readonly (string | number)[];
46
+ }[];
47
+ readonly id: string;
48
+ readonly path: string | null;
49
+ readonly source: "user" | "builtin" | "project" | "inline";
50
+ }[];
51
+ readonly platform: string;
52
+ readonly version: string;
53
+ readonly catalog: import("../../ids.ts").Id<"catalog-generation">;
54
+ readonly defaultWorkspace: import("../../ids.ts").Id<"workspace"> | null;
55
+ }>;
56
+ readonly authority: "participant";
57
+ readonly scope: "host";
58
+ };
59
+ readonly "connection.blob": {
60
+ readonly kind: "stream";
61
+ readonly input: import("../../schema.ts").Schema<{
62
+ id: import("../../ids.ts").Id<"blob">;
63
+ }>;
64
+ readonly output: import("../../schema.ts").Schema<Uint8Array<ArrayBufferLike>>;
65
+ readonly authority: "participant";
66
+ readonly scope: "host";
67
+ };
68
+ readonly "models.list": {
69
+ readonly kind: "query";
70
+ readonly input: import("../../schema.ts").Schema<object>;
71
+ readonly output: import("../../schema.ts").Schema<{
72
+ readonly generation: import("../../ids.ts").Id<"catalog-generation">;
73
+ readonly default: {
74
+ readonly id: string;
75
+ readonly provider: string;
76
+ } | null;
77
+ readonly providers: readonly {
78
+ readonly name: string;
79
+ readonly id: string;
80
+ readonly limits: readonly {
81
+ readonly label: string;
82
+ readonly used: number;
83
+ readonly limit: number;
84
+ readonly resetsAt: number | null;
85
+ }[];
86
+ readonly credential: "failed" | "unknown" | "missing" | "configured" | "verified";
87
+ readonly methods: readonly ({
88
+ readonly kind: "oauth";
89
+ } | {
90
+ readonly kind: "key";
91
+ })[];
92
+ readonly models: readonly {
93
+ readonly name: string;
94
+ readonly ref: {
95
+ readonly id: string;
96
+ readonly provider: string;
97
+ };
98
+ readonly input: readonly ("text" | "image")[];
99
+ readonly reasoning: boolean;
100
+ readonly cost: {
101
+ readonly output: number;
102
+ readonly input: number;
103
+ readonly cacheRead: number;
104
+ readonly cacheWrite: number;
105
+ };
106
+ readonly thinking: readonly ("off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max")[];
107
+ readonly defaultThinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
108
+ readonly fast: {
109
+ readonly id: string;
110
+ readonly provider: string;
111
+ } | null;
112
+ readonly contextWindow: number;
113
+ readonly compactAt: number;
114
+ readonly maxOutput: number;
115
+ readonly capabilities: {
116
+ readonly steer: boolean;
117
+ };
118
+ }[];
119
+ }[];
120
+ }>;
121
+ readonly authority: "participant";
122
+ readonly scope: "host";
123
+ };
124
+ readonly "models.accounts": {
125
+ readonly kind: "query";
126
+ readonly input: import("../../schema.ts").Schema<{
127
+ provider?: string | undefined;
128
+ }>;
129
+ readonly output: import("../../schema.ts").Schema<{
130
+ id: string;
131
+ provider: string;
132
+ label: string;
133
+ method: {
134
+ kind: "oauth";
135
+ } | {
136
+ kind: "key";
137
+ };
138
+ active: boolean;
139
+ }[]>;
140
+ readonly authority: "owner";
141
+ readonly scope: "host";
142
+ };
143
+ readonly "models.selectAccount": {
144
+ readonly kind: "command";
145
+ readonly input: import("../../schema.ts").Schema<{
146
+ provider: string;
147
+ account: string;
148
+ }>;
149
+ readonly output: import("../../schema.ts").Schema<null>;
150
+ readonly authority: "owner";
151
+ readonly scope: "host";
152
+ };
153
+ readonly "models.usage": {
154
+ readonly kind: "query";
155
+ readonly input: import("../../schema.ts").Schema<object>;
156
+ readonly output: import("../../schema.ts").Schema<{
157
+ name: string;
158
+ provider: string;
159
+ account: {
160
+ id: string;
161
+ provider: string;
162
+ label: string;
163
+ method: {
164
+ kind: "oauth";
165
+ } | {
166
+ kind: "key";
167
+ };
168
+ active: boolean;
169
+ } | null;
170
+ state: {
171
+ error: string | null;
172
+ kind: "ready";
173
+ stale: boolean;
174
+ limits: {
175
+ label: string;
176
+ used: number;
177
+ limit: number;
178
+ resetsAt: number | null;
179
+ }[];
180
+ observedAt: number;
181
+ } | {
182
+ message: string;
183
+ kind: "unavailable";
184
+ reason: "unsupported" | "unconfigured" | "failed";
185
+ };
186
+ }[]>;
187
+ readonly authority: "owner";
188
+ readonly scope: "host";
189
+ };
190
+ readonly "models.refresh": {
191
+ readonly kind: "command";
192
+ readonly input: import("../../schema.ts").Schema<{
193
+ provider?: string | undefined;
194
+ }>;
195
+ readonly output: import("../../schema.ts").Schema<null>;
196
+ readonly authority: "owner";
197
+ readonly scope: "host";
198
+ };
199
+ readonly "models.setDefault": {
200
+ readonly kind: "command";
201
+ readonly input: import("../../schema.ts").Schema<{
202
+ ref: {
203
+ id: string;
204
+ provider: string;
205
+ };
206
+ }>;
207
+ readonly output: import("../../schema.ts").Schema<{
208
+ kind: "set";
209
+ } | {
210
+ kind: "unknown-model";
211
+ }>;
212
+ readonly authority: "owner";
213
+ readonly scope: "host";
214
+ };
215
+ readonly "models.verify": {
216
+ readonly kind: "command";
217
+ readonly input: import("../../schema.ts").Schema<{
218
+ provider: string;
219
+ }>;
220
+ readonly output: import("../../schema.ts").Schema<{
221
+ kind: "verified";
222
+ } | {
223
+ kind: "unverified";
224
+ } | {
225
+ kind: "failed";
226
+ reason: string;
227
+ }>;
228
+ readonly authority: "owner";
229
+ readonly scope: "host";
230
+ };
231
+ readonly "models.login": {
232
+ readonly kind: "command";
233
+ readonly input: import("../../schema.ts").Schema<{
234
+ label?: string | undefined;
235
+ browser?: "host" | "elsewhere" | undefined;
236
+ provider: string;
237
+ method: {
238
+ kind: "oauth";
239
+ } | {
240
+ kind: "key";
241
+ };
242
+ }>;
243
+ readonly output: import("../../schema.ts").Schema<null>;
244
+ readonly authority: "owner";
245
+ readonly scope: "host";
246
+ };
247
+ readonly "models.logout": {
248
+ readonly kind: "command";
249
+ readonly input: import("../../schema.ts").Schema<{
250
+ provider: string;
251
+ }>;
252
+ readonly output: import("../../schema.ts").Schema<null>;
253
+ readonly authority: "owner";
254
+ readonly scope: "host";
255
+ };
256
+ readonly "login.steps": {
257
+ readonly kind: "stream";
258
+ readonly input: import("../../schema.ts").Schema<{
259
+ provider: string;
260
+ }>;
261
+ readonly output: import("../../schema.ts").Schema<{
262
+ code?: string | undefined;
263
+ url: string;
264
+ kind: "open";
265
+ } | {
266
+ message: string;
267
+ kind: "paste";
268
+ secret: boolean;
269
+ } | {
270
+ message: string;
271
+ kind: "choose";
272
+ options: {
273
+ id: string;
274
+ label: string;
275
+ }[];
276
+ } | {
277
+ kind: "waiting";
278
+ } | {
279
+ kind: "done";
280
+ } | {
281
+ kind: "failed";
282
+ reason: string;
283
+ }>;
284
+ readonly authority: "owner";
285
+ readonly scope: "host";
286
+ };
287
+ readonly "login.answer": {
288
+ readonly kind: "command";
289
+ readonly input: import("../../schema.ts").Schema<{
290
+ provider: string;
291
+ code: string;
292
+ }>;
293
+ readonly output: import("../../schema.ts").Schema<null>;
294
+ readonly authority: "owner";
295
+ readonly scope: "host";
296
+ };
297
+ readonly "settings.apply": {
298
+ readonly kind: "command";
299
+ readonly input: import("../../schema.ts").Schema<{
300
+ value: import("../../json.ts").Json;
301
+ id: string;
302
+ }>;
303
+ readonly output: import("../../schema.ts").Schema<{
304
+ readonly kind: "applied";
305
+ } | {
306
+ readonly issues: readonly {
307
+ readonly source?: {
308
+ readonly file?: string | undefined;
309
+ readonly line?: number | undefined;
310
+ readonly plugin: string;
311
+ } | undefined;
312
+ readonly message: string;
313
+ readonly severity: "error" | "warning";
314
+ readonly path: readonly (string | number)[];
315
+ }[];
316
+ readonly kind: "invalid";
317
+ } | {
318
+ readonly kind: "unknown";
319
+ }>;
320
+ readonly authority: "owner";
321
+ readonly scope: "host";
322
+ };
323
+ readonly "workspaces.list": {
324
+ readonly kind: "query";
325
+ readonly input: import("../../schema.ts").Schema<object>;
326
+ readonly output: import("../../schema.ts").Schema<{
327
+ id: import("../../ids.ts").Id<"workspace">;
328
+ sessions: number;
329
+ identity: import("../../ids.ts").Id<"environment-identity">;
330
+ target: {
331
+ kind: "local";
332
+ path: string;
333
+ } | {
334
+ kind: string;
335
+ locator: import("../../json.ts").Json;
336
+ };
337
+ availability: {
338
+ kind: "available";
339
+ } | {
340
+ kind: "unavailable";
341
+ reason: "unreachable" | "unsupported";
342
+ };
343
+ projectSources: string[];
344
+ projectResources: boolean | null;
345
+ trusted: boolean | null;
346
+ addedBy: import("../../ids.ts").Id<"principal">;
347
+ writers: import("../../ids.ts").Id<"run">[];
348
+ isolation: {
349
+ session: import("../../ids.ts").Id<"session">;
350
+ kind: "worktree";
351
+ source: import("../../ids.ts").Id<"workspace">;
352
+ branch: string;
353
+ base: string;
354
+ } | null;
355
+ }[]>;
356
+ readonly authority: "participant";
357
+ readonly scope: "host";
358
+ };
359
+ readonly "workspaces.inspect": {
360
+ readonly kind: "query";
361
+ readonly input: import("../../schema.ts").Schema<{
362
+ target: {
363
+ kind: "local";
364
+ path: string;
365
+ } | {
366
+ kind: string;
367
+ locator: import("../../json.ts").Json;
368
+ };
369
+ }>;
370
+ readonly output: import("../../schema.ts").Schema<{
371
+ readonly identity: import("../../ids.ts").Id<"environment-identity">;
372
+ readonly target: {
373
+ readonly kind: "local";
374
+ readonly path: string;
375
+ } | {
376
+ readonly kind: string;
377
+ readonly locator: import("../../json.ts").Json;
378
+ };
379
+ readonly availability: {
380
+ readonly kind: "available";
381
+ } | {
382
+ readonly kind: "unavailable";
383
+ readonly reason: "unreachable" | "unsupported";
384
+ };
385
+ readonly projectSources: readonly string[];
386
+ readonly registered: import("../../ids.ts").Id<"workspace"> | null;
387
+ }>;
388
+ readonly authority: "owner";
389
+ readonly scope: "host";
390
+ };
391
+ readonly "workspaces.add": {
392
+ readonly kind: "command";
393
+ readonly input: import("../../schema.ts").Schema<{
394
+ options?: {
395
+ expect?: {
396
+ identity: import("../../ids.ts").Id<"environment-identity">;
397
+ } | undefined;
398
+ projectResources?: boolean | undefined;
399
+ } | undefined;
400
+ target: {
401
+ kind: "local";
402
+ path: string;
403
+ } | {
404
+ kind: string;
405
+ locator: import("../../json.ts").Json;
406
+ };
407
+ }>;
408
+ readonly output: import("../../schema.ts").Schema<{
409
+ readonly workspace: import("../../ids.ts").Id<"workspace">;
410
+ readonly kind: "added";
411
+ } | {
412
+ readonly workspace: import("../../ids.ts").Id<"workspace">;
413
+ readonly kind: "exists";
414
+ } | {
415
+ readonly kind: "stale";
416
+ readonly identity: import("../../ids.ts").Id<"environment-identity">;
417
+ } | {
418
+ readonly kind: "unavailable";
419
+ readonly reason: "unreachable" | "unsupported";
420
+ }>;
421
+ readonly authority: "owner";
422
+ readonly scope: "host";
423
+ };
424
+ readonly "workspaces.forget": {
425
+ readonly kind: "command";
426
+ readonly input: import("../../schema.ts").Schema<{
427
+ id: import("../../ids.ts").Id<"workspace">;
428
+ }>;
429
+ readonly output: import("../../schema.ts").Schema<{
430
+ readonly kind: "forgotten";
431
+ } | {
432
+ readonly kind: "busy";
433
+ readonly sessions: readonly import("../../ids.ts").Id<"session">[];
434
+ } | {
435
+ readonly kind: "missing";
436
+ }>;
437
+ readonly authority: "owner";
438
+ readonly scope: "host";
439
+ };
440
+ readonly "sessions.watch": {
441
+ readonly kind: "watch";
442
+ readonly input: import("../../schema.ts").Schema<{
443
+ limit?: number | undefined;
444
+ parents?: {
445
+ kind: "all";
446
+ } | {
447
+ kind: "roots";
448
+ } | {
449
+ session: import("../../ids.ts").Id<"session">;
450
+ kind: "children";
451
+ } | undefined;
452
+ }>;
453
+ readonly output: import("../../schema.ts").Schema<{
454
+ name: string | null;
455
+ call: import("../../ids.ts").Id<"call"> | null;
456
+ workspace: import("../../ids.ts").Id<"workspace">;
457
+ id: import("../../ids.ts").Id<"session">;
458
+ parent: import("../../ids.ts").Id<"session"> | null;
459
+ heads: {
460
+ name: import("../../ids.ts").Id<"head">;
461
+ tip: {
462
+ kind: "start";
463
+ } | {
464
+ id: import("../../ids.ts").Id<"commit">;
465
+ kind: "commit";
466
+ };
467
+ stack: {
468
+ stale: boolean;
469
+ parent: import("../../ids.ts").Id<"head">;
470
+ base: {
471
+ kind: "start";
472
+ } | {
473
+ id: import("../../ids.ts").Id<"commit">;
474
+ kind: "commit";
475
+ };
476
+ } | null;
477
+ execution: {
478
+ kind: "idle";
479
+ lastRun: {
480
+ id: import("../../ids.ts").Id<"run">;
481
+ end: {
482
+ kind: "completed";
483
+ usage: {
484
+ output: number;
485
+ input: number;
486
+ cacheRead: number;
487
+ cacheWrite: number;
488
+ reasoning: number | null;
489
+ total: number;
490
+ cost: {
491
+ output: number;
492
+ input: number;
493
+ cacheRead: number;
494
+ cacheWrite: number;
495
+ total: number;
496
+ };
497
+ };
498
+ } | {
499
+ kind: "stopped";
500
+ } | {
501
+ kind: "failed";
502
+ failure: {
503
+ retryAfterMs?: number | undefined;
504
+ message: string;
505
+ class: "provider" | "rate_limit" | "auth" | "quota" | "context_window" | "overloaded" | "network" | "aborted" | "runner";
506
+ };
507
+ };
508
+ endedAt: number;
509
+ } | null;
510
+ } | {
511
+ run: {
512
+ head: import("../../ids.ts").Id<"head">;
513
+ id: import("../../ids.ts").Id<"run">;
514
+ configuration: {
515
+ kind: "exact";
516
+ thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
517
+ model: {
518
+ id: string;
519
+ provider: string;
520
+ };
521
+ agent: string | null;
522
+ settings: Record<string, import("../../json.ts").Json>;
523
+ settingsVersion: string;
524
+ };
525
+ startedAt: number;
526
+ attempt: number;
527
+ origin: {
528
+ message: import("../../ids.ts").Id<"message">;
529
+ kind: "input";
530
+ } | {
531
+ kind: "continuation";
532
+ from: "job" | "child" | "wake";
533
+ };
534
+ };
535
+ kind: "live";
536
+ phase: "responding" | "executing";
537
+ stopping: boolean;
538
+ } | {
539
+ run: {
540
+ head: import("../../ids.ts").Id<"head">;
541
+ id: import("../../ids.ts").Id<"run">;
542
+ configuration: {
543
+ kind: "exact";
544
+ thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
545
+ model: {
546
+ id: string;
547
+ provider: string;
548
+ };
549
+ agent: string | null;
550
+ settings: Record<string, import("../../json.ts").Json>;
551
+ settingsVersion: string;
552
+ };
553
+ startedAt: number;
554
+ attempt: number;
555
+ origin: {
556
+ message: import("../../ids.ts").Id<"message">;
557
+ kind: "input";
558
+ } | {
559
+ kind: "continuation";
560
+ from: "job" | "child" | "wake";
561
+ };
562
+ };
563
+ kind: "waiting";
564
+ on: {
565
+ deadline?: number | undefined;
566
+ session: import("../../ids.ts").Id<"session">;
567
+ run: import("../../ids.ts").Id<"run">;
568
+ kind: "run";
569
+ } | {
570
+ deadline?: number | undefined;
571
+ job: import("../../ids.ts").Id<"job">;
572
+ kind: "job";
573
+ } | {
574
+ deadline?: number | undefined;
575
+ part: import("../../ids.ts").Id<"part">;
576
+ kind: "part";
577
+ } | {
578
+ deadline?: number | undefined;
579
+ kind: "timer";
580
+ until: number;
581
+ };
582
+ } | {
583
+ run: {
584
+ head: import("../../ids.ts").Id<"head">;
585
+ id: import("../../ids.ts").Id<"run">;
586
+ configuration: {
587
+ kind: "exact";
588
+ thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
589
+ model: {
590
+ id: string;
591
+ provider: string;
592
+ };
593
+ agent: string | null;
594
+ settings: Record<string, import("../../json.ts").Json>;
595
+ settingsVersion: string;
596
+ };
597
+ startedAt: number;
598
+ attempt: number;
599
+ origin: {
600
+ message: import("../../ids.ts").Id<"message">;
601
+ kind: "input";
602
+ } | {
603
+ kind: "continuation";
604
+ from: "job" | "child" | "wake";
605
+ };
606
+ };
607
+ kind: "retrying";
608
+ reason: string;
609
+ until: number;
610
+ };
611
+ unread: boolean;
612
+ }[];
613
+ pinned: boolean;
614
+ archived: boolean;
615
+ activation: {
616
+ kind: "active";
617
+ } | {
618
+ kind: "inactive";
619
+ } | {
620
+ workspace: import("../../ids.ts").Id<"workspace">;
621
+ kind: "unavailable";
622
+ reason: "unreachable" | "unsupported";
623
+ } | {
624
+ message: string;
625
+ kind: "failed";
626
+ };
627
+ createdAt: number;
628
+ lastActivityAt: number;
629
+ }[]>;
630
+ readonly authority: "participant";
631
+ readonly scope: "host";
632
+ };
633
+ readonly "sessions.start": {
634
+ readonly kind: "receipt";
635
+ readonly recovery: "replay";
636
+ readonly input: import("../../schema.ts").Schema<{
637
+ name?: string | undefined;
638
+ workspace?: import("../../ids.ts").Id<"workspace"> | undefined;
639
+ configuration?: {
640
+ kind: "exact";
641
+ thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
642
+ model: {
643
+ id: string;
644
+ provider: string;
645
+ };
646
+ agent: string | null;
647
+ settings: Record<string, import("../../json.ts").Json>;
648
+ settingsVersion: string;
649
+ } | {
650
+ thinking?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
651
+ model?: {
652
+ id: string;
653
+ provider: string;
654
+ } | undefined;
655
+ agent?: string | null | undefined;
656
+ settings?: Record<string, import("../../json.ts").Json> | undefined;
657
+ } | undefined;
658
+ parent?: import("../../ids.ts").Id<"session"> | undefined;
659
+ isolation?: "worktree" | undefined;
660
+ prompt?: {
661
+ order?: number | undefined;
662
+ text: string;
663
+ kind: "layer";
664
+ } | {
665
+ text: string;
666
+ kind: "replace";
667
+ } | undefined;
668
+ id: import("../../ids.ts").Id<"session">;
669
+ content: string | ({
670
+ text: string;
671
+ kind: "text";
672
+ } | {
673
+ name: string;
674
+ blob: import("../../ids.ts").Id<"blob">;
675
+ kind: "file";
676
+ mime: string;
677
+ } | {
678
+ blob?: import("../../ids.ts").Id<"blob"> | undefined;
679
+ kind: "reference";
680
+ path: string;
681
+ } | {
682
+ name: string;
683
+ kind: "skill";
684
+ location: string;
685
+ } | {
686
+ text: string;
687
+ kind: "excerpt";
688
+ source: {
689
+ kind: "diff";
690
+ path: string;
691
+ side: "old" | "new";
692
+ start: number;
693
+ end: number;
694
+ } | {
695
+ command?: string | undefined;
696
+ kind: "terminal";
697
+ } | {
698
+ url: string;
699
+ kind: "browser";
700
+ selector: string;
701
+ };
702
+ })[];
703
+ }>;
704
+ readonly output: import("../../schema.ts").Schema<{
705
+ session: import("../../ids.ts").Id<"session">;
706
+ message: import("../../ids.ts").Id<"message">;
707
+ receipt: import("../../ids.ts").Id<"receipt">;
708
+ }>;
709
+ readonly authority: "participant";
710
+ readonly scope: "host";
711
+ };
712
+ readonly "sessions.list": {
713
+ readonly kind: "query";
714
+ readonly input: import("../../schema.ts").Schema<{
715
+ cursor?: import("../../ids.ts").Id<"cursor"> | undefined;
716
+ limit?: number | undefined;
717
+ parents?: {
718
+ kind: "all";
719
+ } | {
720
+ kind: "roots";
721
+ } | {
722
+ session: import("../../ids.ts").Id<"session">;
723
+ kind: "children";
724
+ } | undefined;
725
+ }>;
726
+ readonly output: import("../../schema.ts").Schema<{
727
+ items: {
728
+ name: string | null;
729
+ call: import("../../ids.ts").Id<"call"> | null;
730
+ workspace: import("../../ids.ts").Id<"workspace">;
731
+ id: import("../../ids.ts").Id<"session">;
732
+ parent: import("../../ids.ts").Id<"session"> | null;
733
+ heads: {
734
+ name: import("../../ids.ts").Id<"head">;
735
+ tip: {
736
+ kind: "start";
737
+ } | {
738
+ id: import("../../ids.ts").Id<"commit">;
739
+ kind: "commit";
740
+ };
741
+ stack: {
742
+ stale: boolean;
743
+ parent: import("../../ids.ts").Id<"head">;
744
+ base: {
745
+ kind: "start";
746
+ } | {
747
+ id: import("../../ids.ts").Id<"commit">;
748
+ kind: "commit";
749
+ };
750
+ } | null;
751
+ execution: {
752
+ kind: "idle";
753
+ lastRun: {
754
+ id: import("../../ids.ts").Id<"run">;
755
+ end: {
756
+ kind: "completed";
757
+ usage: {
758
+ output: number;
759
+ input: number;
760
+ cacheRead: number;
761
+ cacheWrite: number;
762
+ reasoning: number | null;
763
+ total: number;
764
+ cost: {
765
+ output: number;
766
+ input: number;
767
+ cacheRead: number;
768
+ cacheWrite: number;
769
+ total: number;
770
+ };
771
+ };
772
+ } | {
773
+ kind: "stopped";
774
+ } | {
775
+ kind: "failed";
776
+ failure: {
777
+ retryAfterMs?: number | undefined;
778
+ message: string;
779
+ class: "provider" | "rate_limit" | "auth" | "quota" | "context_window" | "overloaded" | "network" | "aborted" | "runner";
780
+ };
781
+ };
782
+ endedAt: number;
783
+ } | null;
784
+ } | {
785
+ run: {
786
+ head: import("../../ids.ts").Id<"head">;
787
+ id: import("../../ids.ts").Id<"run">;
788
+ configuration: {
789
+ kind: "exact";
790
+ thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
791
+ model: {
792
+ id: string;
793
+ provider: string;
794
+ };
795
+ agent: string | null;
796
+ settings: Record<string, import("../../json.ts").Json>;
797
+ settingsVersion: string;
798
+ };
799
+ startedAt: number;
800
+ attempt: number;
801
+ origin: {
802
+ message: import("../../ids.ts").Id<"message">;
803
+ kind: "input";
804
+ } | {
805
+ kind: "continuation";
806
+ from: "job" | "child" | "wake";
807
+ };
808
+ };
809
+ kind: "live";
810
+ phase: "responding" | "executing";
811
+ stopping: boolean;
812
+ } | {
813
+ run: {
814
+ head: import("../../ids.ts").Id<"head">;
815
+ id: import("../../ids.ts").Id<"run">;
816
+ configuration: {
817
+ kind: "exact";
818
+ thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
819
+ model: {
820
+ id: string;
821
+ provider: string;
822
+ };
823
+ agent: string | null;
824
+ settings: Record<string, import("../../json.ts").Json>;
825
+ settingsVersion: string;
826
+ };
827
+ startedAt: number;
828
+ attempt: number;
829
+ origin: {
830
+ message: import("../../ids.ts").Id<"message">;
831
+ kind: "input";
832
+ } | {
833
+ kind: "continuation";
834
+ from: "job" | "child" | "wake";
835
+ };
836
+ };
837
+ kind: "waiting";
838
+ on: {
839
+ deadline?: number | undefined;
840
+ session: import("../../ids.ts").Id<"session">;
841
+ run: import("../../ids.ts").Id<"run">;
842
+ kind: "run";
843
+ } | {
844
+ deadline?: number | undefined;
845
+ job: import("../../ids.ts").Id<"job">;
846
+ kind: "job";
847
+ } | {
848
+ deadline?: number | undefined;
849
+ part: import("../../ids.ts").Id<"part">;
850
+ kind: "part";
851
+ } | {
852
+ deadline?: number | undefined;
853
+ kind: "timer";
854
+ until: number;
855
+ };
856
+ } | {
857
+ run: {
858
+ head: import("../../ids.ts").Id<"head">;
859
+ id: import("../../ids.ts").Id<"run">;
860
+ configuration: {
861
+ kind: "exact";
862
+ thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
863
+ model: {
864
+ id: string;
865
+ provider: string;
866
+ };
867
+ agent: string | null;
868
+ settings: Record<string, import("../../json.ts").Json>;
869
+ settingsVersion: string;
870
+ };
871
+ startedAt: number;
872
+ attempt: number;
873
+ origin: {
874
+ message: import("../../ids.ts").Id<"message">;
875
+ kind: "input";
876
+ } | {
877
+ kind: "continuation";
878
+ from: "job" | "child" | "wake";
879
+ };
880
+ };
881
+ kind: "retrying";
882
+ reason: string;
883
+ until: number;
884
+ };
885
+ unread: boolean;
886
+ }[];
887
+ pinned: boolean;
888
+ archived: boolean;
889
+ activation: {
890
+ kind: "active";
891
+ } | {
892
+ kind: "inactive";
893
+ } | {
894
+ workspace: import("../../ids.ts").Id<"workspace">;
895
+ kind: "unavailable";
896
+ reason: "unreachable" | "unsupported";
897
+ } | {
898
+ message: string;
899
+ kind: "failed";
900
+ };
901
+ createdAt: number;
902
+ lastActivityAt: number;
903
+ }[];
904
+ next: import("../../ids.ts").Id<"cursor"> | null;
905
+ }>;
906
+ readonly authority: "participant";
907
+ readonly scope: "host";
908
+ };
909
+ };
910
+ export declare const MAINTENANCE_OPERATIONS: {
911
+ readonly "plugins.replace": {
912
+ readonly kind: "command";
913
+ readonly input: import("../../schema.ts").Schema<{
914
+ scope?: {
915
+ session: import("../../ids.ts").Id<"session">;
916
+ } | undefined;
917
+ plugins: {
918
+ path: string;
919
+ }[];
920
+ }>;
921
+ readonly output: import("../../schema.ts").Schema<{
922
+ readonly generation: import("../../ids.ts").Id<"catalog-generation">;
923
+ readonly plugins: readonly {
924
+ readonly issues: readonly {
925
+ readonly source?: {
926
+ readonly file?: string | undefined;
927
+ readonly line?: number | undefined;
928
+ readonly plugin: string;
929
+ } | undefined;
930
+ readonly message: string;
931
+ readonly severity: "error" | "warning";
932
+ readonly path: readonly (string | number)[];
933
+ }[];
934
+ readonly id: string;
935
+ readonly kind: "activated" | "rejected" | "kept-previous";
936
+ }[];
937
+ }>;
938
+ readonly authority: "maintenance";
939
+ readonly scope: "host";
940
+ };
941
+ readonly "plugins.check": {
942
+ readonly kind: "query";
943
+ readonly input: import("../../schema.ts").Schema<{
944
+ plugins: {
945
+ path: string;
946
+ }[];
947
+ }>;
948
+ readonly output: import("../../schema.ts").Schema<{
949
+ readonly plugins: readonly {
950
+ readonly issues: readonly {
951
+ readonly source?: {
952
+ readonly file?: string | undefined;
953
+ readonly line?: number | undefined;
954
+ readonly plugin: string;
955
+ } | undefined;
956
+ readonly message: string;
957
+ readonly severity: "error" | "warning";
958
+ readonly path: readonly (string | number)[];
959
+ }[];
960
+ readonly id: string;
961
+ readonly kind: "activated" | "rejected" | "kept-previous";
962
+ }[];
963
+ readonly collisions: readonly {
964
+ readonly source?: {
965
+ readonly file?: string | undefined;
966
+ readonly line?: number | undefined;
967
+ readonly plugin: string;
968
+ } | undefined;
969
+ readonly message: string;
970
+ readonly severity: "error" | "warning";
971
+ readonly path: readonly (string | number)[];
972
+ }[];
973
+ }>;
974
+ readonly authority: "maintenance";
975
+ readonly scope: "host";
976
+ };
977
+ readonly "principals.list": {
978
+ readonly kind: "query";
979
+ readonly input: import("../../schema.ts").Schema<object>;
980
+ readonly output: import("../../schema.ts").Schema<{
981
+ id: import("../../ids.ts").Id<"principal">;
982
+ label: string;
983
+ authority: ("participant" | "owner" | "maintenance")[];
984
+ pairedAt: number;
985
+ }[]>;
986
+ readonly authority: "maintenance";
987
+ readonly scope: "host";
988
+ };
989
+ readonly "principals.pair": {
990
+ readonly kind: "command";
991
+ readonly input: import("../../schema.ts").Schema<{
992
+ label?: string | undefined;
993
+ authority: ("participant" | "owner" | "maintenance")[];
994
+ }>;
995
+ readonly output: import("../../schema.ts").Schema<{
996
+ code: string;
997
+ expiresAt: number;
998
+ }>;
999
+ readonly authority: "maintenance";
1000
+ readonly scope: "host";
1001
+ };
1002
+ readonly "principals.revoke": {
1003
+ readonly kind: "command";
1004
+ readonly input: import("../../schema.ts").Schema<{
1005
+ id: import("../../ids.ts").Id<"principal">;
1006
+ }>;
1007
+ readonly output: import("../../schema.ts").Schema<null>;
1008
+ readonly authority: "maintenance";
1009
+ readonly scope: "host";
1010
+ };
1011
+ };