@nyte-ai/schema 0.0.24 → 0.0.25-beta.1

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 (45) hide show
  1. package/dist/chunks/{browser-xk4psyrx.js → browser-40skw1kj.js} +1 -1
  2. package/dist/chunks/{browser-fnanbp6m.js → browser-5w8ywd56.js} +5 -4
  3. package/dist/chunks/{browser-0chm3654.js → browser-82qzgxz4.js} +13 -2
  4. package/dist/chunks/{browser-qncc807c.js → browser-b1pzvhs6.js} +1 -1
  5. package/dist/chunks/{browser-h5k4hqfq.js → browser-b1zjf2es.js} +1 -1
  6. package/dist/chunks/{browser-ay8k1s1m.js → browser-fw8cf4fc.js} +2 -2
  7. package/dist/chunks/{browser-fe66aj8v.js → browser-kmkhr82d.js} +27 -9
  8. package/dist/chunks/{browser-s2xe7c21.js → browser-pk5dmvrr.js} +3 -3
  9. package/dist/chunks/{browser-etfrcxhb.js → browser-pvrs6rs5.js} +3 -3
  10. package/dist/chunks/{browser-xensz05x.js → browser-t7t9fc1r.js} +1 -1
  11. package/dist/chunks/{browser-gzn951k8.js → browser-ts4gc07c.js} +39 -4
  12. package/dist/chunks/{browser-hq5q56sf.js → browser-wqkhghw2.js} +15 -7
  13. package/dist/src/connection.js +4 -4
  14. package/dist/src/events.d.ts +108 -108
  15. package/dist/src/events.js +3 -3
  16. package/dist/src/heads.d.ts +20 -0
  17. package/dist/src/heads.js +8 -2
  18. package/dist/src/hooks.js +2 -2
  19. package/dist/src/ids.d.ts +1 -2
  20. package/dist/src/index.js +20 -12
  21. package/dist/src/mcp.d.ts +8 -8
  22. package/dist/src/messages.d.ts +8 -0
  23. package/dist/src/messages.js +4 -2
  24. package/dist/src/parts.d.ts +40 -40
  25. package/dist/src/runs.d.ts +12 -12
  26. package/dist/src/sessions.d.ts +8 -8
  27. package/dist/src/sessions.js +2 -2
  28. package/dist/src/store.d.ts +52 -52
  29. package/dist/src/store.js +4 -4
  30. package/dist/src/views.d.ts +502 -170
  31. package/dist/src/views.js +3 -3
  32. package/dist/src/wire/operations/browser.d.ts +119 -119
  33. package/dist/src/wire/operations/fields.d.ts +6 -6
  34. package/dist/src/wire/operations/files.d.ts +52 -52
  35. package/dist/src/wire/operations/git.d.ts +121 -121
  36. package/dist/src/wire/operations/github.d.ts +34 -34
  37. package/dist/src/wire/operations/host.d.ts +299 -298
  38. package/dist/src/wire/operations/host.js +6 -6
  39. package/dist/src/wire/operations/index.d.ts +4771 -4362
  40. package/dist/src/wire/operations/index.js +9 -9
  41. package/dist/src/wire/operations/session.d.ts +2511 -2103
  42. package/dist/src/wire/operations/session.js +5 -5
  43. package/dist/src/wire/operations/workspace.d.ts +244 -244
  44. package/dist/src/wire/operations/workspace.js +3 -3
  45. package/package.json +2 -3
@@ -28,10 +28,10 @@ import {
28
28
  WorkspaceCommandOutcomeSchema2,
29
29
  UpdateOutcomeSchema2,
30
30
  RemoveSessionOutcomeSchema2
31
- } from "../chunks/browser-xensz05x.js";
31
+ } from "../chunks/browser-t7t9fc1r.js";
32
32
  import"../chunks/browser-bg1esaw0.js";
33
33
  import"../chunks/browser-8ancsy4m.js";
34
- import"../chunks/browser-hq5q56sf.js";
34
+ import"../chunks/browser-wqkhghw2.js";
35
35
  import"../chunks/browser-40enyw9r.js";
36
36
  import"../chunks/browser-m0wzr0g8.js";
37
37
  import"../chunks/browser-ynj8v9ad.js";
@@ -100,6 +100,8 @@ export declare const RefUpdateType: Type.TObject<{
100
100
  }>, Type.TObject<{
101
101
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
102
102
  } & {
103
+ kind: Type.TLiteral<"input">;
104
+ message: Type.TUnsafe<import("./ids.ts").Id<"message">>;
103
105
  change: Type.TLiteral<"admitted">;
104
106
  content: Type.TUnion<[Type.TString, Type.TArray<Type.TUnion<[Type.TObject<{
105
107
  kind: Type.TLiteral<"text">;
@@ -180,11 +182,11 @@ export declare const RefUpdateType: Type.TObject<{
180
182
  stopped: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"run">>, Type.TNull]>;
181
183
  }>, Type.TNull]>;
182
184
  requires: Type.TOptional<Type.TArray<Type.TString>>;
183
- kind: Type.TLiteral<"input">;
184
- message: Type.TUnsafe<import("./ids.ts").Id<"message">>;
185
185
  }>, Type.TObject<{
186
186
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
187
187
  } & {
188
+ kind: Type.TLiteral<"input">;
189
+ message: Type.TUnsafe<import("./ids.ts").Id<"message">>;
188
190
  change: Type.TLiteral<"scheduled">;
189
191
  schedule: Type.TUnion<[Type.TObject<{
190
192
  kind: Type.TLiteral<"joined">;
@@ -198,32 +200,32 @@ export declare const RefUpdateType: Type.TObject<{
198
200
  kind: Type.TLiteral<"deciding">;
199
201
  }>]>;
200
202
  position: Type.TNumber;
201
- kind: Type.TLiteral<"input">;
202
- message: Type.TUnsafe<import("./ids.ts").Id<"message">>;
203
203
  }>, Type.TObject<{
204
204
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
205
205
  } & {
206
+ kind: Type.TLiteral<"input">;
207
+ message: Type.TUnsafe<import("./ids.ts").Id<"message">>;
206
208
  change: Type.TLiteral<"landed">;
207
209
  commit: Type.TUnsafe<import("./ids.ts").Id<"commit">>;
208
210
  run: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"run">>, Type.TNull]>;
209
- kind: Type.TLiteral<"input">;
210
- message: Type.TUnsafe<import("./ids.ts").Id<"message">>;
211
211
  }>, Type.TObject<{
212
212
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
213
213
  } & {
214
- change: Type.TLiteral<"withdrawn">;
215
214
  kind: Type.TLiteral<"input">;
216
215
  message: Type.TUnsafe<import("./ids.ts").Id<"message">>;
216
+ change: Type.TLiteral<"withdrawn">;
217
217
  }>, Type.TObject<{
218
218
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
219
219
  } & {
220
- change: Type.TLiteral<"superseded">;
221
- by: Type.TUnsafe<import("./ids.ts").Id<"message">>;
222
220
  kind: Type.TLiteral<"input">;
223
221
  message: Type.TUnsafe<import("./ids.ts").Id<"message">>;
222
+ change: Type.TLiteral<"superseded">;
223
+ by: Type.TUnsafe<import("./ids.ts").Id<"message">>;
224
224
  }>, Type.TObject<{
225
225
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
226
226
  } & {
227
+ kind: Type.TLiteral<"run">;
228
+ run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
227
229
  change: Type.TLiteral<"started">;
228
230
  view: Type.TObject<{
229
231
  id: Type.TUnsafe<import("./ids.ts").Id<"run">>;
@@ -249,57 +251,57 @@ export declare const RefUpdateType: Type.TObject<{
249
251
  from: Type.TEnum<["child", "job", "wake"]>;
250
252
  }>]>;
251
253
  }>;
252
- kind: Type.TLiteral<"run">;
253
- run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
254
254
  }>, Type.TObject<{
255
255
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
256
256
  } & {
257
- change: Type.TLiteral<"phase">;
258
- phase: Type.TEnum<["responding", "executing"]>;
259
257
  kind: Type.TLiteral<"run">;
260
258
  run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
259
+ change: Type.TLiteral<"phase">;
260
+ phase: Type.TEnum<["responding", "executing"]>;
261
261
  }>, Type.TObject<{
262
262
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
263
263
  } & {
264
+ kind: Type.TLiteral<"run">;
265
+ run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
264
266
  change: Type.TLiteral<"waiting">;
265
267
  on: Type.TUnion<[Type.TObject<{
268
+ deadline: Type.TOptional<Type.TNumber>;
266
269
  kind: Type.TLiteral<"run">;
267
270
  session: Type.TUnsafe<import("./ids.ts").Id<"session">>;
268
271
  run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
269
- deadline: Type.TOptional<Type.TNumber>;
270
272
  }>, Type.TObject<{
273
+ deadline: Type.TOptional<Type.TNumber>;
271
274
  kind: Type.TLiteral<"job">;
272
275
  job: Type.TUnsafe<import("./ids.ts").Id<"job">>;
273
- deadline: Type.TOptional<Type.TNumber>;
274
276
  }>, Type.TObject<{
277
+ deadline: Type.TOptional<Type.TNumber>;
275
278
  kind: Type.TLiteral<"part">;
276
279
  part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
277
- deadline: Type.TOptional<Type.TNumber>;
278
280
  }>, Type.TObject<{
281
+ deadline: Type.TOptional<Type.TNumber>;
279
282
  kind: Type.TLiteral<"timer">;
280
283
  until: Type.TNumber;
281
- deadline: Type.TOptional<Type.TNumber>;
282
284
  }>]>;
283
- kind: Type.TLiteral<"run">;
284
- run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
285
285
  }>, Type.TObject<{
286
286
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
287
287
  } & {
288
+ kind: Type.TLiteral<"run">;
289
+ run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
288
290
  change: Type.TLiteral<"retrying">;
289
291
  attempt: Type.TNumber;
290
292
  until: Type.TNumber;
291
293
  reason: Type.TString;
292
- kind: Type.TLiteral<"run">;
293
- run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
294
294
  }>, Type.TObject<{
295
295
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
296
296
  } & {
297
- change: Type.TLiteral<"stopping">;
298
297
  kind: Type.TLiteral<"run">;
299
298
  run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
299
+ change: Type.TLiteral<"stopping">;
300
300
  }>, Type.TObject<{
301
301
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
302
302
  } & {
303
+ kind: Type.TLiteral<"run">;
304
+ run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
303
305
  change: Type.TLiteral<"ended">;
304
306
  end: Type.TUnion<[Type.TObject<{
305
307
  kind: Type.TLiteral<"completed">;
@@ -328,11 +330,11 @@ export declare const RefUpdateType: Type.TObject<{
328
330
  retryAfterMs: Type.TOptional<Type.TNumber>;
329
331
  }>;
330
332
  }>]>;
331
- kind: Type.TLiteral<"run">;
332
- run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
333
333
  }>, Type.TObject<{
334
334
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
335
335
  } & {
336
+ kind: Type.TLiteral<"part">;
337
+ part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
336
338
  change: Type.TLiteral<"created">;
337
339
  partKind: Type.TString;
338
340
  placement: Type.TUnion<[Type.TObject<{
@@ -347,93 +349,94 @@ export declare const RefUpdateType: Type.TObject<{
347
349
  version: Type.TNumber;
348
350
  run: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"run">>, Type.TNull]>;
349
351
  owner: Type.TUnion<[Type.TString, Type.TNull]>;
350
- kind: Type.TLiteral<"part">;
351
- part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
352
352
  }>, Type.TObject<{
353
353
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
354
354
  } & {
355
+ kind: Type.TLiteral<"part">;
356
+ part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
355
357
  change: Type.TLiteral<"updated">;
356
358
  state: Type.TUnsafe<import("./json.ts").Json>;
357
359
  version: Type.TNumber;
358
- kind: Type.TLiteral<"part">;
359
- part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
360
360
  }>, Type.TObject<{
361
361
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
362
362
  } & {
363
- change: Type.TLiteral<"waiting">;
364
- call: Type.TUnsafe<import("./ids.ts").Id<"call">>;
365
363
  kind: Type.TLiteral<"part">;
366
364
  part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
365
+ change: Type.TLiteral<"waiting">;
366
+ call: Type.TUnsafe<import("./ids.ts").Id<"call">>;
367
367
  }>, Type.TObject<{
368
368
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
369
369
  } & {
370
+ kind: Type.TLiteral<"part">;
371
+ part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
370
372
  change: Type.TLiteral<"settled">;
371
373
  commit: Type.TUnsafe<import("./ids.ts").Id<"commit">>;
372
374
  endedAt: Type.TNumber;
373
- kind: Type.TLiteral<"part">;
374
- part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
375
375
  }>, Type.TObject<{
376
376
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
377
377
  } & {
378
+ kind: Type.TLiteral<"part">;
379
+ part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
378
380
  change: Type.TLiteral<"failed">;
379
381
  failure: Type.TObject<{
380
382
  class: Type.TEnum<["rate_limit", "auth", "quota", "context_window", "overloaded", "network", "aborted", "provider", "runner"]>;
381
383
  message: Type.TString;
382
384
  retryAfterMs: Type.TOptional<Type.TNumber>;
383
385
  }>;
384
- kind: Type.TLiteral<"part">;
385
- part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
386
386
  }>, Type.TObject<{
387
387
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
388
388
  } & {
389
+ kind: Type.TLiteral<"part">;
390
+ part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
389
391
  change: Type.TLiteral<"answered">;
390
392
  answer: Type.TObject<{
391
393
  action: Type.TString;
392
394
  input: Type.TUnsafe<import("./json.ts").Json>;
393
395
  }>;
394
- kind: Type.TLiteral<"part">;
395
- part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
396
396
  }>, Type.TObject<{
397
397
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
398
398
  } & {
399
- change: Type.TLiteral<"closed">;
400
399
  kind: Type.TLiteral<"part">;
401
400
  part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
401
+ change: Type.TLiteral<"closed">;
402
402
  }>, Type.TObject<{
403
403
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
404
404
  } & {
405
- change: Type.TLiteral<"intent">;
406
405
  kind: Type.TLiteral<"call">;
407
406
  call: Type.TUnsafe<import("./ids.ts").Id<"call">>;
408
407
  part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
408
+ change: Type.TLiteral<"intent">;
409
409
  }>, Type.TObject<{
410
410
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
411
411
  } & {
412
+ kind: Type.TLiteral<"call">;
413
+ call: Type.TUnsafe<import("./ids.ts").Id<"call">>;
414
+ part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
412
415
  change: Type.TLiteral<"waiting">;
413
416
  on: Type.TUnion<[Type.TObject<{
417
+ deadline: Type.TOptional<Type.TNumber>;
414
418
  kind: Type.TLiteral<"run">;
415
419
  session: Type.TUnsafe<import("./ids.ts").Id<"session">>;
416
420
  run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
417
- deadline: Type.TOptional<Type.TNumber>;
418
421
  }>, Type.TObject<{
422
+ deadline: Type.TOptional<Type.TNumber>;
419
423
  kind: Type.TLiteral<"job">;
420
424
  job: Type.TUnsafe<import("./ids.ts").Id<"job">>;
421
- deadline: Type.TOptional<Type.TNumber>;
422
425
  }>, Type.TObject<{
426
+ deadline: Type.TOptional<Type.TNumber>;
423
427
  kind: Type.TLiteral<"part">;
424
428
  part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
425
- deadline: Type.TOptional<Type.TNumber>;
426
429
  }>, Type.TObject<{
430
+ deadline: Type.TOptional<Type.TNumber>;
427
431
  kind: Type.TLiteral<"timer">;
428
432
  until: Type.TNumber;
429
- deadline: Type.TOptional<Type.TNumber>;
430
433
  }>]>;
431
- kind: Type.TLiteral<"call">;
432
- call: Type.TUnsafe<import("./ids.ts").Id<"call">>;
433
- part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
434
434
  }>, Type.TObject<{
435
435
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
436
436
  } & {
437
+ kind: Type.TLiteral<"call">;
438
+ call: Type.TUnsafe<import("./ids.ts").Id<"call">>;
439
+ part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
437
440
  change: Type.TLiteral<"settled">;
438
441
  outcome: Type.TUnion<[Type.TObject<{
439
442
  kind: Type.TLiteral<"ok">;
@@ -465,9 +468,6 @@ export declare const RefUpdateType: Type.TObject<{
465
468
  paths: Type.TArray<Type.TString>;
466
469
  unattributed: Type.TOptional<Type.TLiteral<true>>;
467
470
  }>, Type.TNull]>;
468
- kind: Type.TLiteral<"call">;
469
- call: Type.TUnsafe<import("./ids.ts").Id<"call">>;
470
- part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
471
471
  }>, Type.TObject<{
472
472
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
473
473
  } & {
@@ -685,22 +685,22 @@ export declare const RefUpdateType: Type.TObject<{
685
685
  }>]>;
686
686
  }>;
687
687
  on: Type.TUnion<[Type.TObject<{
688
+ deadline: Type.TOptional<Type.TNumber>;
688
689
  kind: Type.TLiteral<"run">;
689
690
  session: Type.TUnsafe<import("./ids.ts").Id<"session">>;
690
691
  run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
691
- deadline: Type.TOptional<Type.TNumber>;
692
692
  }>, Type.TObject<{
693
+ deadline: Type.TOptional<Type.TNumber>;
693
694
  kind: Type.TLiteral<"job">;
694
695
  job: Type.TUnsafe<import("./ids.ts").Id<"job">>;
695
- deadline: Type.TOptional<Type.TNumber>;
696
696
  }>, Type.TObject<{
697
+ deadline: Type.TOptional<Type.TNumber>;
697
698
  kind: Type.TLiteral<"part">;
698
699
  part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
699
- deadline: Type.TOptional<Type.TNumber>;
700
700
  }>, Type.TObject<{
701
+ deadline: Type.TOptional<Type.TNumber>;
701
702
  kind: Type.TLiteral<"timer">;
702
703
  until: Type.TNumber;
703
- deadline: Type.TOptional<Type.TNumber>;
704
704
  }>]>;
705
705
  }>, Type.TObject<{
706
706
  kind: Type.TLiteral<"retrying">;
package/dist/src/store.js CHANGED
@@ -5,14 +5,14 @@ import {
5
5
  RefSchema2,
6
6
  RefUpdateSchema2,
7
7
  SetOutcomeSchema2
8
- } from "../chunks/browser-xk4psyrx.js";
9
- import"../chunks/browser-ay8k1s1m.js";
8
+ } from "../chunks/browser-40skw1kj.js";
9
+ import"../chunks/browser-fw8cf4fc.js";
10
10
  import"../chunks/browser-t5xqtqzh.js";
11
11
  import"../chunks/browser-h86zs54a.js";
12
- import"../chunks/browser-xensz05x.js";
12
+ import"../chunks/browser-t7t9fc1r.js";
13
13
  import"../chunks/browser-bg1esaw0.js";
14
14
  import"../chunks/browser-8ancsy4m.js";
15
- import"../chunks/browser-hq5q56sf.js";
15
+ import"../chunks/browser-wqkhghw2.js";
16
16
  import"../chunks/browser-40enyw9r.js";
17
17
  import"../chunks/browser-m0wzr0g8.js";
18
18
  import"../chunks/browser-ynj8v9ad.js";