@nyte-ai/schema 0.0.0-stage → 0.0.19

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 +866 -0
  3. package/dist/chunks/browser-0byq2fja.js +50 -0
  4. package/dist/chunks/browser-0chm3654.js +125 -0
  5. package/dist/chunks/browser-0g0z3617.js +47 -0
  6. package/dist/chunks/browser-0khex2b1.js +33 -0
  7. package/dist/chunks/browser-0sbkxgkx.js +115 -0
  8. package/dist/chunks/browser-0xr6c36r.js +106 -0
  9. package/dist/chunks/browser-1nqahr9q.js +239 -0
  10. package/dist/chunks/browser-1sfp0bcx.js +73 -0
  11. package/dist/chunks/browser-3exd93gm.js +50 -0
  12. package/dist/chunks/browser-40enyw9r.js +75 -0
  13. package/dist/chunks/browser-4et7qtz3.js +7 -0
  14. package/dist/chunks/browser-6e1madxa.js +83 -0
  15. package/dist/chunks/browser-6yby604e.js +96 -0
  16. package/dist/chunks/browser-7195qf3t.js +14 -0
  17. package/dist/chunks/browser-8ancsy4m.js +118 -0
  18. package/dist/chunks/browser-9ystjh78.js +0 -0
  19. package/dist/chunks/browser-b519jtez.js +102 -0
  20. package/dist/chunks/browser-bg1esaw0.js +82 -0
  21. package/dist/chunks/browser-ebr6k189.js +120 -0
  22. package/dist/chunks/browser-ekbecx9r.js +73 -0
  23. package/dist/chunks/browser-fd3accdr.js +159 -0
  24. package/dist/chunks/browser-g5khdcap.js +170 -0
  25. package/dist/chunks/browser-h5k4hqfq.js +244 -0
  26. package/dist/chunks/browser-h86zs54a.js +65 -0
  27. package/dist/chunks/browser-hp9ze9ga.js +185 -0
  28. package/dist/chunks/browser-hq5q56sf.js +79 -0
  29. package/dist/chunks/browser-j150etqf.js +101 -0
  30. package/dist/chunks/browser-j629a6wa.js +17 -0
  31. package/dist/chunks/browser-jgxe05s4.js +301 -0
  32. package/dist/chunks/browser-k20f6cvv.js +0 -0
  33. package/dist/chunks/browser-m0wzr0g8.js +5 -0
  34. package/dist/chunks/browser-mzfc0v5j.js +58 -0
  35. package/dist/chunks/browser-p691tcac.js +139 -0
  36. package/dist/chunks/browser-pdv675va.js +135 -0
  37. package/dist/chunks/browser-pvfshqyk.js +36 -0
  38. package/dist/chunks/browser-qkxe0fwp.js +6 -0
  39. package/dist/chunks/browser-qncc807c.js +66 -0
  40. package/dist/chunks/browser-r87w64mz.js +32 -0
  41. package/dist/chunks/browser-s2xe7c21.js +82 -0
  42. package/dist/chunks/browser-sgst60b0.js +293 -0
  43. package/dist/chunks/browser-sgwxbek9.js +37 -0
  44. package/dist/chunks/browser-v70eq512.js +215 -0
  45. package/dist/chunks/browser-vzc3r2r3.js +64 -0
  46. package/dist/chunks/browser-xensz05x.js +172 -0
  47. package/dist/chunks/browser-ynj8v9ad.js +35 -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 +1752 -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 +280 -0
  64. package/dist/src/git.js +66 -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 +783 -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 +198 -0
  100. package/dist/src/models.js +47 -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 +830 -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 +3105 -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 +1031 -0
  138. package/dist/src/wire/operations/host.js +27 -0
  139. package/dist/src/wire/operations/index.d.ts +7103 -0
  140. package/dist/src/wire/operations/index.js +40 -0
  141. package/dist/src/wire/operations/session.d.ts +3779 -0
  142. package/dist/src/wire/operations/session.js +25 -0
  143. package/dist/src/wire/operations/workspace.d.ts +842 -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,842 @@
1
+ export declare const WORKSPACE_OPERATIONS: {
2
+ readonly "workspace.info": {
3
+ readonly kind: "query";
4
+ readonly input: import("../../schema.ts").Schema<{
5
+ workspace: import("../../ids.ts").Id<"workspace">;
6
+ }>;
7
+ readonly output: import("../../schema.ts").Schema<{
8
+ readonly id: import("../../ids.ts").Id<"workspace">;
9
+ readonly sessions: number;
10
+ readonly identity: import("../../ids.ts").Id<"environment-identity">;
11
+ readonly target: {
12
+ readonly kind: "local";
13
+ readonly path: string;
14
+ } | {
15
+ readonly kind: string;
16
+ readonly locator: import("../../json.ts").Json;
17
+ };
18
+ readonly availability: {
19
+ readonly kind: "available";
20
+ } | {
21
+ readonly kind: "unavailable";
22
+ readonly reason: "unreachable" | "unsupported";
23
+ };
24
+ readonly projectSources: readonly string[];
25
+ readonly projectResources: boolean | null;
26
+ readonly trusted: boolean | null;
27
+ readonly addedBy: import("../../ids.ts").Id<"principal">;
28
+ readonly writers: readonly import("../../ids.ts").Id<"run">[];
29
+ readonly isolation: {
30
+ readonly session: import("../../ids.ts").Id<"session">;
31
+ readonly kind: "worktree";
32
+ readonly source: import("../../ids.ts").Id<"workspace">;
33
+ readonly branch: string;
34
+ readonly base: string;
35
+ } | null;
36
+ }>;
37
+ readonly authority: "participant";
38
+ readonly scope: "workspace";
39
+ };
40
+ readonly "workspace.watch": {
41
+ readonly kind: "watch";
42
+ readonly input: import("../../schema.ts").Schema<{
43
+ workspace: import("../../ids.ts").Id<"workspace">;
44
+ }>;
45
+ readonly output: import("../../schema.ts").Schema<{
46
+ readonly id: import("../../ids.ts").Id<"workspace">;
47
+ readonly sessions: number;
48
+ readonly identity: import("../../ids.ts").Id<"environment-identity">;
49
+ readonly target: {
50
+ readonly kind: "local";
51
+ readonly path: string;
52
+ } | {
53
+ readonly kind: string;
54
+ readonly locator: import("../../json.ts").Json;
55
+ };
56
+ readonly availability: {
57
+ readonly kind: "available";
58
+ } | {
59
+ readonly kind: "unavailable";
60
+ readonly reason: "unreachable" | "unsupported";
61
+ };
62
+ readonly projectSources: readonly string[];
63
+ readonly projectResources: boolean | null;
64
+ readonly trusted: boolean | null;
65
+ readonly addedBy: import("../../ids.ts").Id<"principal">;
66
+ readonly writers: readonly import("../../ids.ts").Id<"run">[];
67
+ readonly isolation: {
68
+ readonly session: import("../../ids.ts").Id<"session">;
69
+ readonly kind: "worktree";
70
+ readonly source: import("../../ids.ts").Id<"workspace">;
71
+ readonly branch: string;
72
+ readonly base: string;
73
+ } | null;
74
+ }>;
75
+ readonly authority: "participant";
76
+ readonly scope: "workspace";
77
+ };
78
+ readonly "workspace.catalog": {
79
+ readonly kind: "query";
80
+ readonly input: import("../../schema.ts").Schema<{
81
+ workspace: import("../../ids.ts").Id<"workspace">;
82
+ }>;
83
+ readonly output: import("../../schema.ts").Schema<{
84
+ skills: {
85
+ description: string;
86
+ name: string;
87
+ location: string;
88
+ owner: string;
89
+ }[];
90
+ commands: {
91
+ category?: string | undefined;
92
+ keywords?: string[] | undefined;
93
+ description: string;
94
+ name: string;
95
+ title: string;
96
+ side: "core" | "client";
97
+ owner: string;
98
+ takesText: boolean;
99
+ completes: boolean;
100
+ }[];
101
+ }>;
102
+ readonly authority: "participant";
103
+ readonly scope: "workspace";
104
+ };
105
+ readonly "workspace.command": {
106
+ readonly kind: "command";
107
+ readonly input: import("../../schema.ts").Schema<{
108
+ name: string;
109
+ workspace: import("../../ids.ts").Id<"workspace">;
110
+ text: string;
111
+ }>;
112
+ readonly output: import("../../schema.ts").Schema<{
113
+ readonly output: string | null;
114
+ readonly kind: "ran";
115
+ } | {
116
+ readonly kind: "prompt";
117
+ readonly content: string | readonly ({
118
+ readonly text: string;
119
+ readonly kind: "text";
120
+ } | {
121
+ readonly name: string;
122
+ readonly blob: import("../../ids.ts").Id<"blob">;
123
+ readonly kind: "file";
124
+ readonly mime: string;
125
+ } | {
126
+ readonly blob?: import("../../ids.ts").Id<"blob"> | undefined;
127
+ readonly kind: "reference";
128
+ readonly path: string;
129
+ } | {
130
+ readonly name: string;
131
+ readonly kind: "skill";
132
+ readonly location: string;
133
+ } | {
134
+ readonly text: string;
135
+ readonly kind: "excerpt";
136
+ readonly source: {
137
+ readonly kind: "diff";
138
+ readonly path: string;
139
+ readonly side: "old" | "new";
140
+ readonly start: number;
141
+ readonly end: number;
142
+ } | {
143
+ readonly command?: string | undefined;
144
+ readonly kind: "terminal";
145
+ } | {
146
+ readonly url: string;
147
+ readonly kind: "browser";
148
+ readonly selector: string;
149
+ };
150
+ })[];
151
+ } | {
152
+ readonly kind: "unknown";
153
+ } | {
154
+ readonly message: string;
155
+ readonly kind: "failed";
156
+ }>;
157
+ readonly authority: "participant";
158
+ readonly scope: "workspace";
159
+ };
160
+ readonly "workspace.completeCommand": {
161
+ readonly kind: "query";
162
+ readonly input: import("../../schema.ts").Schema<{
163
+ name: string;
164
+ workspace: import("../../ids.ts").Id<"workspace">;
165
+ prefix: string;
166
+ }>;
167
+ readonly output: import("../../schema.ts").Schema<readonly {
168
+ readonly description?: string | undefined;
169
+ readonly value: string;
170
+ readonly label: string;
171
+ }[]>;
172
+ readonly authority: "participant";
173
+ readonly scope: "workspace";
174
+ };
175
+ readonly "mcp.watch": {
176
+ readonly kind: "watch";
177
+ readonly input: import("../../schema.ts").Schema<{
178
+ workspace: import("../../ids.ts").Id<"workspace">;
179
+ }>;
180
+ readonly output: import("../../schema.ts").Schema<{
181
+ readonly issues: readonly {
182
+ readonly source?: {
183
+ readonly file?: string | undefined;
184
+ readonly line?: number | undefined;
185
+ readonly plugin: string;
186
+ } | undefined;
187
+ readonly message: string;
188
+ readonly severity: "error" | "warning";
189
+ readonly path: readonly (string | number)[];
190
+ }[];
191
+ readonly servers: readonly {
192
+ readonly description: string | null;
193
+ readonly name: string;
194
+ readonly state: {
195
+ readonly kind: "disabled";
196
+ } | {
197
+ readonly kind: "connecting";
198
+ } | {
199
+ readonly kind: "connected";
200
+ readonly tools: readonly {
201
+ readonly description: string;
202
+ readonly name: string;
203
+ readonly exposure: "hidden" | "model" | "code" | "deferred";
204
+ }[];
205
+ } | {
206
+ readonly kind: "needs-sign-in";
207
+ } | {
208
+ readonly message: string;
209
+ readonly kind: "failed";
210
+ readonly stderr: string | null;
211
+ };
212
+ readonly path: string;
213
+ readonly scope: "user" | "project";
214
+ readonly exposure: "hidden" | "model" | "code" | "deferred";
215
+ readonly override: string | null;
216
+ readonly transport: {
217
+ readonly kind: "stdio";
218
+ readonly command: string;
219
+ readonly args: readonly string[];
220
+ } | {
221
+ readonly url: string;
222
+ readonly kind: "http";
223
+ };
224
+ }[];
225
+ }>;
226
+ readonly authority: "owner";
227
+ readonly scope: "workspace";
228
+ };
229
+ readonly "mcp.reconnect": {
230
+ readonly kind: "command";
231
+ readonly input: import("../../schema.ts").Schema<{
232
+ workspace: import("../../ids.ts").Id<"workspace">;
233
+ server: string;
234
+ }>;
235
+ readonly output: import("../../schema.ts").Schema<{
236
+ readonly kind: "updated";
237
+ } | {
238
+ readonly kind: "missing";
239
+ } | {
240
+ readonly message: string;
241
+ readonly kind: "invalid";
242
+ }>;
243
+ readonly authority: "owner";
244
+ readonly scope: "workspace";
245
+ };
246
+ readonly "mcp.setEnabled": {
247
+ readonly kind: "command";
248
+ readonly input: import("../../schema.ts").Schema<{
249
+ workspace: import("../../ids.ts").Id<"workspace">;
250
+ enabled: boolean;
251
+ server: string;
252
+ }>;
253
+ readonly output: import("../../schema.ts").Schema<{
254
+ readonly kind: "updated";
255
+ } | {
256
+ readonly kind: "missing";
257
+ } | {
258
+ readonly message: string;
259
+ readonly kind: "invalid";
260
+ }>;
261
+ readonly authority: "owner";
262
+ readonly scope: "workspace";
263
+ };
264
+ readonly "mcp.login": {
265
+ readonly kind: "command";
266
+ readonly input: import("../../schema.ts").Schema<{
267
+ workspace: import("../../ids.ts").Id<"workspace">;
268
+ server: string;
269
+ }>;
270
+ readonly output: import("../../schema.ts").Schema<{
271
+ login: string;
272
+ }>;
273
+ readonly authority: "owner";
274
+ readonly scope: "workspace";
275
+ };
276
+ readonly "mcp.logout": {
277
+ readonly kind: "command";
278
+ readonly input: import("../../schema.ts").Schema<{
279
+ workspace: import("../../ids.ts").Id<"workspace">;
280
+ server: string;
281
+ }>;
282
+ readonly output: import("../../schema.ts").Schema<{
283
+ readonly kind: "updated";
284
+ } | {
285
+ readonly kind: "missing";
286
+ } | {
287
+ readonly message: string;
288
+ readonly kind: "invalid";
289
+ }>;
290
+ readonly authority: "owner";
291
+ readonly scope: "workspace";
292
+ };
293
+ readonly "mcp.add": {
294
+ readonly kind: "command";
295
+ readonly input: import("../../schema.ts").Schema<{
296
+ workspace: import("../../ids.ts").Id<"workspace">;
297
+ scope: "user" | "project";
298
+ server: string;
299
+ config: {
300
+ type?: "stdio" | undefined;
301
+ description?: string | undefined;
302
+ exposure?: "hidden" | "deferred" | "direct" | "codemode" | "codemode-deferred" | undefined;
303
+ args?: string[] | undefined;
304
+ env?: Record<string, string> | undefined;
305
+ cwd?: string | undefined;
306
+ enabled?: boolean | undefined;
307
+ timeout?: number | undefined;
308
+ toolExposure?: Record<string, "hidden" | "deferred" | "direct" | "codemode" | "codemode-deferred"> | undefined;
309
+ command: string;
310
+ } | {
311
+ type?: "http" | "streamable-http" | undefined;
312
+ description?: string | undefined;
313
+ oauth?: {
314
+ scope?: string | undefined;
315
+ clientId?: string | undefined;
316
+ clientSecret?: string | undefined;
317
+ callbackPort?: number | undefined;
318
+ callbackUrl?: string | undefined;
319
+ clientName?: string | undefined;
320
+ authServerMetadataUrl?: string | undefined;
321
+ } | undefined;
322
+ exposure?: "hidden" | "deferred" | "direct" | "codemode" | "codemode-deferred" | undefined;
323
+ headers?: Record<string, string> | undefined;
324
+ enabled?: boolean | undefined;
325
+ timeout?: number | undefined;
326
+ toolExposure?: Record<string, "hidden" | "deferred" | "direct" | "codemode" | "codemode-deferred"> | undefined;
327
+ url: string;
328
+ };
329
+ }>;
330
+ readonly output: import("../../schema.ts").Schema<{
331
+ readonly kind: "updated";
332
+ } | {
333
+ readonly kind: "missing";
334
+ } | {
335
+ readonly message: string;
336
+ readonly kind: "invalid";
337
+ }>;
338
+ readonly authority: "owner";
339
+ readonly scope: "workspace";
340
+ };
341
+ readonly "mcp.remove": {
342
+ readonly kind: "command";
343
+ readonly input: import("../../schema.ts").Schema<{
344
+ workspace: import("../../ids.ts").Id<"workspace">;
345
+ scope: "user" | "project";
346
+ server: string;
347
+ }>;
348
+ readonly output: import("../../schema.ts").Schema<{
349
+ readonly kind: "updated";
350
+ } | {
351
+ readonly kind: "missing";
352
+ } | {
353
+ readonly message: string;
354
+ readonly kind: "invalid";
355
+ }>;
356
+ readonly authority: "owner";
357
+ readonly scope: "workspace";
358
+ };
359
+ readonly "workspace.update": {
360
+ readonly kind: "command";
361
+ readonly input: import("../../schema.ts").Schema<{
362
+ workspace: import("../../ids.ts").Id<"workspace">;
363
+ patch: {
364
+ projectResources?: boolean | null | undefined;
365
+ };
366
+ }>;
367
+ readonly output: import("../../schema.ts").Schema<{
368
+ kind: "updated";
369
+ } | {
370
+ kind: "missing";
371
+ }>;
372
+ readonly authority: "owner";
373
+ readonly scope: "workspace";
374
+ };
375
+ readonly "workspace.reload": {
376
+ readonly kind: "command";
377
+ readonly input: import("../../schema.ts").Schema<{
378
+ workspace: import("../../ids.ts").Id<"workspace">;
379
+ }>;
380
+ readonly output: import("../../schema.ts").Schema<{
381
+ kind: "updated";
382
+ } | {
383
+ kind: "missing";
384
+ }>;
385
+ readonly authority: "owner";
386
+ readonly scope: "workspace";
387
+ };
388
+ readonly "workspace.changes": {
389
+ readonly kind: "query";
390
+ readonly input: import("../../schema.ts").Schema<{
391
+ workspace: import("../../ids.ts").Id<"workspace">;
392
+ source: {
393
+ run: import("../../ids.ts").Id<"run">;
394
+ kind: "run";
395
+ } | {
396
+ session: import("../../ids.ts").Id<"session">;
397
+ kind: "session";
398
+ };
399
+ }>;
400
+ readonly output: import("../../schema.ts").Schema<{
401
+ readonly revision: import("../../ids.ts").Id<"snapshot"> | import("../../ids.ts").Id<"git-revision">;
402
+ readonly files: readonly {
403
+ readonly from?: string | undefined;
404
+ readonly path: string;
405
+ readonly status: "added" | "modified" | "deleted" | "renamed" | "untracked" | "conflicted";
406
+ readonly stat: {
407
+ readonly kind: "text";
408
+ readonly removed: number;
409
+ readonly added: number;
410
+ } | {
411
+ readonly kind: "binary";
412
+ } | {
413
+ readonly kind: "unknown";
414
+ };
415
+ }[];
416
+ }>;
417
+ readonly authority: "participant";
418
+ readonly scope: "workspace";
419
+ };
420
+ readonly "workspace.patches": {
421
+ readonly kind: "stream";
422
+ readonly input: import("../../schema.ts").Schema<{
423
+ options?: {
424
+ ignoreWhitespace?: boolean | undefined;
425
+ } | undefined;
426
+ workspace: import("../../ids.ts").Id<"workspace">;
427
+ source: {
428
+ run: import("../../ids.ts").Id<"run">;
429
+ kind: "run";
430
+ } | {
431
+ session: import("../../ids.ts").Id<"session">;
432
+ kind: "session";
433
+ };
434
+ paths: string[];
435
+ }>;
436
+ readonly output: import("../../schema.ts").Schema<{
437
+ readonly entries: {
438
+ readonly [x: string]: {
439
+ readonly kind: "text";
440
+ readonly path: string;
441
+ readonly removed: number;
442
+ readonly added: number;
443
+ readonly status: "added" | "modified" | "deleted" | "renamed" | "untracked" | "conflicted";
444
+ readonly patch: string;
445
+ readonly digest: string;
446
+ readonly fresh: boolean;
447
+ } | {
448
+ readonly kind: "binary";
449
+ readonly path: string;
450
+ readonly status: "added" | "modified" | "deleted" | "renamed" | "untracked" | "conflicted";
451
+ readonly digest: string;
452
+ readonly fresh: boolean;
453
+ } | {
454
+ readonly kind: "empty";
455
+ readonly path: string;
456
+ readonly status: "added" | "modified" | "deleted" | "renamed" | "untracked" | "conflicted";
457
+ readonly digest: string;
458
+ readonly fresh: boolean;
459
+ } | {
460
+ readonly kind: "too-large";
461
+ readonly limit: number;
462
+ readonly path: string;
463
+ readonly status: "added" | "modified" | "deleted" | "renamed" | "untracked" | "conflicted";
464
+ readonly digest: string;
465
+ readonly fresh: boolean;
466
+ } | {
467
+ readonly kind: "failed";
468
+ readonly reason: string;
469
+ readonly path: string;
470
+ readonly status: "added" | "modified" | "deleted" | "renamed" | "untracked" | "conflicted";
471
+ readonly digest: string;
472
+ readonly fresh: boolean;
473
+ };
474
+ };
475
+ readonly revision: import("../../ids.ts").Id<"snapshot"> | import("../../ids.ts").Id<"git-revision">;
476
+ }>;
477
+ readonly authority: "participant";
478
+ readonly scope: "workspace";
479
+ };
480
+ readonly "workspace.files": {
481
+ readonly kind: "query";
482
+ readonly input: import("../../schema.ts").Schema<{
483
+ workspace: import("../../ids.ts").Id<"workspace">;
484
+ }>;
485
+ readonly output: import("../../schema.ts").Schema<{
486
+ readonly kind: "available";
487
+ } | {
488
+ readonly kind: "unsupported";
489
+ readonly reason: string;
490
+ } | {
491
+ readonly kind: "denied";
492
+ readonly reason: string;
493
+ } | {
494
+ readonly kind: "unavailable";
495
+ readonly reason: string;
496
+ readonly retry: "allowed" | "manual";
497
+ }>;
498
+ readonly authority: "participant";
499
+ readonly scope: "workspace";
500
+ };
501
+ readonly "workspace.git": {
502
+ readonly kind: "query";
503
+ readonly input: import("../../schema.ts").Schema<{
504
+ workspace: import("../../ids.ts").Id<"workspace">;
505
+ }>;
506
+ readonly output: import("../../schema.ts").Schema<{
507
+ readonly kind: "available";
508
+ } | {
509
+ readonly kind: "unsupported";
510
+ readonly reason: string;
511
+ } | {
512
+ readonly kind: "denied";
513
+ readonly reason: string;
514
+ } | {
515
+ readonly kind: "unavailable";
516
+ readonly reason: string;
517
+ readonly retry: "allowed" | "manual";
518
+ }>;
519
+ readonly authority: "participant";
520
+ readonly scope: "workspace";
521
+ };
522
+ readonly "workspace.github": {
523
+ readonly kind: "query";
524
+ readonly input: import("../../schema.ts").Schema<{
525
+ workspace: import("../../ids.ts").Id<"workspace">;
526
+ }>;
527
+ readonly output: import("../../schema.ts").Schema<{
528
+ readonly kind: "available";
529
+ } | {
530
+ readonly kind: "unsupported";
531
+ readonly reason: string;
532
+ } | {
533
+ readonly kind: "denied";
534
+ readonly reason: string;
535
+ } | {
536
+ readonly kind: "unavailable";
537
+ readonly reason: string;
538
+ readonly retry: "allowed" | "manual";
539
+ }>;
540
+ readonly authority: "participant";
541
+ readonly scope: "workspace";
542
+ };
543
+ readonly "workspace.browser": {
544
+ readonly kind: "query";
545
+ readonly input: import("../../schema.ts").Schema<{
546
+ workspace: import("../../ids.ts").Id<"workspace">;
547
+ }>;
548
+ readonly output: import("../../schema.ts").Schema<{
549
+ readonly kind: "available";
550
+ } | {
551
+ readonly kind: "unsupported";
552
+ readonly reason: string;
553
+ } | {
554
+ readonly kind: "denied";
555
+ readonly reason: string;
556
+ } | {
557
+ readonly kind: "unavailable";
558
+ readonly reason: string;
559
+ readonly retry: "allowed" | "manual";
560
+ }>;
561
+ readonly authority: "participant";
562
+ readonly scope: "workspace";
563
+ };
564
+ readonly "jobs.start": {
565
+ readonly kind: "command";
566
+ readonly recovery: "replay";
567
+ readonly input: import("../../schema.ts").Schema<{
568
+ session?: import("../../ids.ts").Id<"session"> | undefined;
569
+ id?: import("../../ids.ts").Id<"job"> | undefined;
570
+ title?: string | undefined;
571
+ command?: string | undefined;
572
+ pty?: {
573
+ columns: number;
574
+ rows: number;
575
+ } | undefined;
576
+ workspace: import("../../ids.ts").Id<"workspace">;
577
+ }>;
578
+ readonly output: import("../../schema.ts").Schema<{
579
+ key: import("../../ids.ts").Id<"job-key"> | null;
580
+ session: import("../../ids.ts").Id<"session"> | null;
581
+ id: import("../../ids.ts").Id<"job">;
582
+ title: string;
583
+ state: {
584
+ kind: "running";
585
+ } | {
586
+ kind: "exited";
587
+ reason: "exited" | "terminated" | "expired" | "host-lost";
588
+ code: number | null;
589
+ } | {
590
+ kind: "lost";
591
+ };
592
+ command: string;
593
+ pty: {
594
+ shell: string;
595
+ columns: number;
596
+ rows: number;
597
+ } | null;
598
+ startedAt: number;
599
+ endedAt: number | null;
600
+ tail: string;
601
+ }>;
602
+ readonly authority: "participant";
603
+ readonly scope: "workspace";
604
+ };
605
+ readonly "jobs.recover": {
606
+ readonly kind: "command";
607
+ readonly input: import("../../schema.ts").Schema<{
608
+ key: import("../../ids.ts").Id<"job-key">;
609
+ workspace: import("../../ids.ts").Id<"workspace">;
610
+ }>;
611
+ readonly output: import("../../schema.ts").Schema<{
612
+ key: import("../../ids.ts").Id<"job-key"> | null;
613
+ session: import("../../ids.ts").Id<"session"> | null;
614
+ id: import("../../ids.ts").Id<"job">;
615
+ title: string;
616
+ state: {
617
+ kind: "running";
618
+ } | {
619
+ kind: "exited";
620
+ reason: "exited" | "terminated" | "expired" | "host-lost";
621
+ code: number | null;
622
+ } | {
623
+ kind: "lost";
624
+ };
625
+ command: string;
626
+ pty: {
627
+ shell: string;
628
+ columns: number;
629
+ rows: number;
630
+ } | null;
631
+ startedAt: number;
632
+ endedAt: number | null;
633
+ tail: string;
634
+ } | {
635
+ kind: "ended";
636
+ end: {
637
+ kind: "exited";
638
+ reason: "exited" | "terminated" | "expired" | "host-lost";
639
+ code: number | null;
640
+ } | {
641
+ kind: "lost";
642
+ };
643
+ } | {
644
+ kind: "missing";
645
+ }>;
646
+ readonly authority: "participant";
647
+ readonly scope: "workspace";
648
+ };
649
+ readonly "jobs.list": {
650
+ readonly kind: "query";
651
+ readonly input: import("../../schema.ts").Schema<{
652
+ workspace: import("../../ids.ts").Id<"workspace">;
653
+ }>;
654
+ readonly output: import("../../schema.ts").Schema<{
655
+ session: import("../../ids.ts").Id<"session"> | null;
656
+ id: import("../../ids.ts").Id<"job">;
657
+ title: string;
658
+ state: {
659
+ kind: "running";
660
+ } | {
661
+ kind: "exited";
662
+ reason: "exited" | "terminated" | "expired" | "host-lost";
663
+ code: number | null;
664
+ } | {
665
+ kind: "lost";
666
+ };
667
+ command: string;
668
+ pty: {
669
+ shell: string;
670
+ columns: number;
671
+ rows: number;
672
+ } | null;
673
+ startedAt: number;
674
+ endedAt: number | null;
675
+ tail: string;
676
+ }[]>;
677
+ readonly authority: "participant";
678
+ readonly scope: "workspace";
679
+ };
680
+ readonly "jobs.watch": {
681
+ readonly kind: "watch";
682
+ readonly input: import("../../schema.ts").Schema<{
683
+ workspace: import("../../ids.ts").Id<"workspace">;
684
+ }>;
685
+ readonly output: import("../../schema.ts").Schema<{
686
+ kind: "jobs";
687
+ jobs: {
688
+ session: import("../../ids.ts").Id<"session"> | null;
689
+ id: import("../../ids.ts").Id<"job">;
690
+ title: string;
691
+ state: {
692
+ kind: "running";
693
+ } | {
694
+ kind: "exited";
695
+ reason: "exited" | "terminated" | "expired" | "host-lost";
696
+ code: number | null;
697
+ } | {
698
+ kind: "lost";
699
+ };
700
+ command: string;
701
+ pty: {
702
+ shell: string;
703
+ columns: number;
704
+ rows: number;
705
+ } | null;
706
+ startedAt: number;
707
+ endedAt: number | null;
708
+ tail: string;
709
+ }[];
710
+ } | {
711
+ job: {
712
+ session: import("../../ids.ts").Id<"session"> | null;
713
+ id: import("../../ids.ts").Id<"job">;
714
+ title: string;
715
+ state: {
716
+ kind: "running";
717
+ } | {
718
+ kind: "exited";
719
+ reason: "exited" | "terminated" | "expired" | "host-lost";
720
+ code: number | null;
721
+ } | {
722
+ kind: "lost";
723
+ };
724
+ command: string;
725
+ pty: {
726
+ shell: string;
727
+ columns: number;
728
+ rows: number;
729
+ } | null;
730
+ startedAt: number;
731
+ endedAt: number | null;
732
+ tail: string;
733
+ };
734
+ kind: "job";
735
+ } | {
736
+ id: import("../../ids.ts").Id<"job">;
737
+ kind: "forgotten";
738
+ }>;
739
+ readonly authority: "participant";
740
+ readonly scope: "workspace";
741
+ };
742
+ readonly "job.write": {
743
+ readonly kind: "command";
744
+ readonly recovery: "never";
745
+ readonly input: import("../../schema.ts").Schema<{
746
+ job: import("../../ids.ts").Id<"job">;
747
+ workspace: import("../../ids.ts").Id<"workspace">;
748
+ }>;
749
+ readonly output: import("../../schema.ts").Schema<null>;
750
+ readonly authority: "participant";
751
+ readonly scope: "workspace";
752
+ };
753
+ readonly "job.output": {
754
+ readonly kind: "stream";
755
+ readonly input: import("../../schema.ts").Schema<{
756
+ job: import("../../ids.ts").Id<"job">;
757
+ workspace: import("../../ids.ts").Id<"workspace">;
758
+ }>;
759
+ readonly output: import("../../schema.ts").Schema<{
760
+ readonly stream?: "stderr" | undefined;
761
+ readonly kind: "bytes";
762
+ readonly data: Uint8Array<ArrayBufferLike>;
763
+ } | {
764
+ readonly kind: "gap";
765
+ } | {
766
+ readonly kind: "exit";
767
+ readonly code: number | null;
768
+ }>;
769
+ readonly authority: "participant";
770
+ readonly scope: "workspace";
771
+ };
772
+ readonly "job.resize": {
773
+ readonly kind: "command";
774
+ readonly input: import("../../schema.ts").Schema<{
775
+ job: import("../../ids.ts").Id<"job">;
776
+ workspace: import("../../ids.ts").Id<"workspace">;
777
+ size: {
778
+ columns: number;
779
+ rows: number;
780
+ };
781
+ }>;
782
+ readonly output: import("../../schema.ts").Schema<{
783
+ kind: "resized";
784
+ } | {
785
+ kind: "not-pty";
786
+ } | {
787
+ kind: "missing";
788
+ }>;
789
+ readonly authority: "participant";
790
+ readonly scope: "workspace";
791
+ };
792
+ readonly "job.idle": {
793
+ readonly kind: "query";
794
+ readonly input: import("../../schema.ts").Schema<{
795
+ job: import("../../ids.ts").Id<"job">;
796
+ workspace: import("../../ids.ts").Id<"workspace">;
797
+ }>;
798
+ readonly output: import("../../schema.ts").Schema<boolean>;
799
+ readonly authority: "participant";
800
+ readonly scope: "workspace";
801
+ };
802
+ readonly "job.stop": {
803
+ readonly kind: "command";
804
+ readonly input: import("../../schema.ts").Schema<{
805
+ job: import("../../ids.ts").Id<"job">;
806
+ workspace: import("../../ids.ts").Id<"workspace">;
807
+ }>;
808
+ readonly output: import("../../schema.ts").Schema<{
809
+ kind: "requested";
810
+ } | {
811
+ kind: "settled";
812
+ outcome: {
813
+ kind: "exited";
814
+ reason: "exited" | "terminated" | "expired" | "host-lost";
815
+ code: number | null;
816
+ } | {
817
+ kind: "lost";
818
+ };
819
+ } | {
820
+ kind: "missing";
821
+ }>;
822
+ readonly authority: "participant";
823
+ readonly scope: "workspace";
824
+ };
825
+ readonly "job.settled": {
826
+ readonly kind: "query";
827
+ readonly wait: true;
828
+ readonly input: import("../../schema.ts").Schema<{
829
+ job: import("../../ids.ts").Id<"job">;
830
+ workspace: import("../../ids.ts").Id<"workspace">;
831
+ }>;
832
+ readonly output: import("../../schema.ts").Schema<{
833
+ readonly kind: "exited";
834
+ readonly reason: "exited" | "terminated" | "expired" | "host-lost";
835
+ readonly code: number | null;
836
+ } | {
837
+ readonly kind: "lost";
838
+ }>;
839
+ readonly authority: "participant";
840
+ readonly scope: "workspace";
841
+ };
842
+ };