@nyte-ai/schema 0.0.23 → 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 (46) hide show
  1. package/THIRD-PARTY-NOTICES.md +2 -38
  2. package/dist/chunks/{browser-xk4psyrx.js → browser-40skw1kj.js} +1 -1
  3. package/dist/chunks/{browser-fnanbp6m.js → browser-5w8ywd56.js} +5 -4
  4. package/dist/chunks/{browser-0chm3654.js → browser-82qzgxz4.js} +13 -2
  5. package/dist/chunks/{browser-qncc807c.js → browser-b1pzvhs6.js} +1 -1
  6. package/dist/chunks/{browser-h5k4hqfq.js → browser-b1zjf2es.js} +1 -1
  7. package/dist/chunks/{browser-ay8k1s1m.js → browser-fw8cf4fc.js} +2 -2
  8. package/dist/chunks/{browser-fe66aj8v.js → browser-kmkhr82d.js} +27 -9
  9. package/dist/chunks/{browser-s2xe7c21.js → browser-pk5dmvrr.js} +3 -3
  10. package/dist/chunks/{browser-etfrcxhb.js → browser-pvrs6rs5.js} +3 -3
  11. package/dist/chunks/{browser-xensz05x.js → browser-t7t9fc1r.js} +1 -1
  12. package/dist/chunks/{browser-gzn951k8.js → browser-ts4gc07c.js} +39 -4
  13. package/dist/chunks/{browser-hq5q56sf.js → browser-wqkhghw2.js} +15 -7
  14. package/dist/src/connection.js +4 -4
  15. package/dist/src/events.d.ts +108 -108
  16. package/dist/src/events.js +3 -3
  17. package/dist/src/heads.d.ts +20 -0
  18. package/dist/src/heads.js +8 -2
  19. package/dist/src/hooks.js +2 -2
  20. package/dist/src/ids.d.ts +1 -2
  21. package/dist/src/index.js +20 -12
  22. package/dist/src/mcp.d.ts +8 -8
  23. package/dist/src/messages.d.ts +8 -0
  24. package/dist/src/messages.js +4 -2
  25. package/dist/src/parts.d.ts +40 -40
  26. package/dist/src/runs.d.ts +12 -12
  27. package/dist/src/sessions.d.ts +8 -8
  28. package/dist/src/sessions.js +2 -2
  29. package/dist/src/store.d.ts +52 -52
  30. package/dist/src/store.js +4 -4
  31. package/dist/src/views.d.ts +502 -170
  32. package/dist/src/views.js +3 -3
  33. package/dist/src/wire/operations/browser.d.ts +119 -119
  34. package/dist/src/wire/operations/fields.d.ts +6 -6
  35. package/dist/src/wire/operations/files.d.ts +52 -52
  36. package/dist/src/wire/operations/git.d.ts +121 -121
  37. package/dist/src/wire/operations/github.d.ts +34 -34
  38. package/dist/src/wire/operations/host.d.ts +299 -298
  39. package/dist/src/wire/operations/host.js +6 -6
  40. package/dist/src/wire/operations/index.d.ts +4771 -4362
  41. package/dist/src/wire/operations/index.js +9 -9
  42. package/dist/src/wire/operations/session.d.ts +2511 -2103
  43. package/dist/src/wire/operations/session.js +5 -5
  44. package/dist/src/wire/operations/workspace.d.ts +244 -244
  45. package/dist/src/wire/operations/workspace.js +3 -3
  46. package/package.json +2 -3
@@ -158,6 +158,8 @@ export declare const DurableEventType: Type.TUnion<[Type.TObject<{
158
158
  }>, Type.TObject<{
159
159
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
160
160
  } & {
161
+ kind: Type.TLiteral<"input">;
162
+ message: Type.TUnsafe<import("./ids.ts").Id<"message">>;
161
163
  change: Type.TLiteral<"admitted">;
162
164
  content: Type.TUnion<[Type.TString, Type.TArray<Type.TUnion<[Type.TObject<{
163
165
  kind: Type.TLiteral<"text">;
@@ -238,11 +240,11 @@ export declare const DurableEventType: Type.TUnion<[Type.TObject<{
238
240
  stopped: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"run">>, Type.TNull]>;
239
241
  }>, Type.TNull]>;
240
242
  requires: Type.TOptional<Type.TArray<Type.TString>>;
241
- kind: Type.TLiteral<"input">;
242
- message: Type.TUnsafe<import("./ids.ts").Id<"message">>;
243
243
  }>, Type.TObject<{
244
244
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
245
245
  } & {
246
+ kind: Type.TLiteral<"input">;
247
+ message: Type.TUnsafe<import("./ids.ts").Id<"message">>;
246
248
  change: Type.TLiteral<"scheduled">;
247
249
  schedule: Type.TUnion<[Type.TObject<{
248
250
  kind: Type.TLiteral<"joined">;
@@ -256,32 +258,32 @@ export declare const DurableEventType: Type.TUnion<[Type.TObject<{
256
258
  kind: Type.TLiteral<"deciding">;
257
259
  }>]>;
258
260
  position: Type.TNumber;
259
- kind: Type.TLiteral<"input">;
260
- message: Type.TUnsafe<import("./ids.ts").Id<"message">>;
261
261
  }>, Type.TObject<{
262
262
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
263
263
  } & {
264
+ kind: Type.TLiteral<"input">;
265
+ message: Type.TUnsafe<import("./ids.ts").Id<"message">>;
264
266
  change: Type.TLiteral<"landed">;
265
267
  commit: Type.TUnsafe<import("./ids.ts").Id<"commit">>;
266
268
  run: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"run">>, Type.TNull]>;
267
- kind: Type.TLiteral<"input">;
268
- message: Type.TUnsafe<import("./ids.ts").Id<"message">>;
269
269
  }>, Type.TObject<{
270
270
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
271
271
  } & {
272
- change: Type.TLiteral<"withdrawn">;
273
272
  kind: Type.TLiteral<"input">;
274
273
  message: Type.TUnsafe<import("./ids.ts").Id<"message">>;
274
+ change: Type.TLiteral<"withdrawn">;
275
275
  }>, Type.TObject<{
276
276
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
277
277
  } & {
278
- change: Type.TLiteral<"superseded">;
279
- by: Type.TUnsafe<import("./ids.ts").Id<"message">>;
280
278
  kind: Type.TLiteral<"input">;
281
279
  message: Type.TUnsafe<import("./ids.ts").Id<"message">>;
280
+ change: Type.TLiteral<"superseded">;
281
+ by: Type.TUnsafe<import("./ids.ts").Id<"message">>;
282
282
  }>, Type.TObject<{
283
283
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
284
284
  } & {
285
+ kind: Type.TLiteral<"run">;
286
+ run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
285
287
  change: Type.TLiteral<"started">;
286
288
  view: Type.TObject<{
287
289
  id: Type.TUnsafe<import("./ids.ts").Id<"run">>;
@@ -307,57 +309,57 @@ export declare const DurableEventType: Type.TUnion<[Type.TObject<{
307
309
  from: Type.TEnum<["child", "job", "wake"]>;
308
310
  }>]>;
309
311
  }>;
310
- kind: Type.TLiteral<"run">;
311
- run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
312
312
  }>, Type.TObject<{
313
313
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
314
314
  } & {
315
- change: Type.TLiteral<"phase">;
316
- phase: Type.TEnum<["responding", "executing"]>;
317
315
  kind: Type.TLiteral<"run">;
318
316
  run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
317
+ change: Type.TLiteral<"phase">;
318
+ phase: Type.TEnum<["responding", "executing"]>;
319
319
  }>, Type.TObject<{
320
320
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
321
321
  } & {
322
+ kind: Type.TLiteral<"run">;
323
+ run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
322
324
  change: Type.TLiteral<"waiting">;
323
325
  on: Type.TUnion<[Type.TObject<{
326
+ deadline: Type.TOptional<Type.TNumber>;
324
327
  kind: Type.TLiteral<"run">;
325
328
  session: Type.TUnsafe<import("./ids.ts").Id<"session">>;
326
329
  run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
327
- deadline: Type.TOptional<Type.TNumber>;
328
330
  }>, Type.TObject<{
331
+ deadline: Type.TOptional<Type.TNumber>;
329
332
  kind: Type.TLiteral<"job">;
330
333
  job: Type.TUnsafe<import("./ids.ts").Id<"job">>;
331
- deadline: Type.TOptional<Type.TNumber>;
332
334
  }>, Type.TObject<{
335
+ deadline: Type.TOptional<Type.TNumber>;
333
336
  kind: Type.TLiteral<"part">;
334
337
  part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
335
- deadline: Type.TOptional<Type.TNumber>;
336
338
  }>, Type.TObject<{
339
+ deadline: Type.TOptional<Type.TNumber>;
337
340
  kind: Type.TLiteral<"timer">;
338
341
  until: Type.TNumber;
339
- deadline: Type.TOptional<Type.TNumber>;
340
342
  }>]>;
341
- kind: Type.TLiteral<"run">;
342
- run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
343
343
  }>, Type.TObject<{
344
344
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
345
345
  } & {
346
+ kind: Type.TLiteral<"run">;
347
+ run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
346
348
  change: Type.TLiteral<"retrying">;
347
349
  attempt: Type.TNumber;
348
350
  until: Type.TNumber;
349
351
  reason: Type.TString;
350
- kind: Type.TLiteral<"run">;
351
- run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
352
352
  }>, Type.TObject<{
353
353
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
354
354
  } & {
355
- change: Type.TLiteral<"stopping">;
356
355
  kind: Type.TLiteral<"run">;
357
356
  run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
357
+ change: Type.TLiteral<"stopping">;
358
358
  }>, Type.TObject<{
359
359
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
360
360
  } & {
361
+ kind: Type.TLiteral<"run">;
362
+ run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
361
363
  change: Type.TLiteral<"ended">;
362
364
  end: Type.TUnion<[Type.TObject<{
363
365
  kind: Type.TLiteral<"completed">;
@@ -386,11 +388,11 @@ export declare const DurableEventType: Type.TUnion<[Type.TObject<{
386
388
  retryAfterMs: Type.TOptional<Type.TNumber>;
387
389
  }>;
388
390
  }>]>;
389
- kind: Type.TLiteral<"run">;
390
- run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
391
391
  }>, Type.TObject<{
392
392
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
393
393
  } & {
394
+ kind: Type.TLiteral<"part">;
395
+ part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
394
396
  change: Type.TLiteral<"created">;
395
397
  partKind: Type.TString;
396
398
  placement: Type.TUnion<[Type.TObject<{
@@ -405,93 +407,94 @@ export declare const DurableEventType: Type.TUnion<[Type.TObject<{
405
407
  version: Type.TNumber;
406
408
  run: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"run">>, Type.TNull]>;
407
409
  owner: Type.TUnion<[Type.TString, Type.TNull]>;
408
- kind: Type.TLiteral<"part">;
409
- part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
410
410
  }>, Type.TObject<{
411
411
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
412
412
  } & {
413
+ kind: Type.TLiteral<"part">;
414
+ part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
413
415
  change: Type.TLiteral<"updated">;
414
416
  state: Type.TUnsafe<import("./json.ts").Json>;
415
417
  version: Type.TNumber;
416
- kind: Type.TLiteral<"part">;
417
- part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
418
418
  }>, Type.TObject<{
419
419
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
420
420
  } & {
421
- change: Type.TLiteral<"waiting">;
422
- call: Type.TUnsafe<import("./ids.ts").Id<"call">>;
423
421
  kind: Type.TLiteral<"part">;
424
422
  part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
423
+ change: Type.TLiteral<"waiting">;
424
+ call: Type.TUnsafe<import("./ids.ts").Id<"call">>;
425
425
  }>, Type.TObject<{
426
426
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
427
427
  } & {
428
+ kind: Type.TLiteral<"part">;
429
+ part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
428
430
  change: Type.TLiteral<"settled">;
429
431
  commit: Type.TUnsafe<import("./ids.ts").Id<"commit">>;
430
432
  endedAt: Type.TNumber;
431
- kind: Type.TLiteral<"part">;
432
- part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
433
433
  }>, Type.TObject<{
434
434
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
435
435
  } & {
436
+ kind: Type.TLiteral<"part">;
437
+ part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
436
438
  change: Type.TLiteral<"failed">;
437
439
  failure: Type.TObject<{
438
440
  class: Type.TEnum<["rate_limit", "auth", "quota", "context_window", "overloaded", "network", "aborted", "provider", "runner"]>;
439
441
  message: Type.TString;
440
442
  retryAfterMs: Type.TOptional<Type.TNumber>;
441
443
  }>;
442
- kind: Type.TLiteral<"part">;
443
- part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
444
444
  }>, Type.TObject<{
445
445
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
446
446
  } & {
447
+ kind: Type.TLiteral<"part">;
448
+ part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
447
449
  change: Type.TLiteral<"answered">;
448
450
  answer: Type.TObject<{
449
451
  action: Type.TString;
450
452
  input: Type.TUnsafe<import("./json.ts").Json>;
451
453
  }>;
452
- kind: Type.TLiteral<"part">;
453
- part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
454
454
  }>, Type.TObject<{
455
455
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
456
456
  } & {
457
- change: Type.TLiteral<"closed">;
458
457
  kind: Type.TLiteral<"part">;
459
458
  part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
459
+ change: Type.TLiteral<"closed">;
460
460
  }>, Type.TObject<{
461
461
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
462
462
  } & {
463
- change: Type.TLiteral<"intent">;
464
463
  kind: Type.TLiteral<"call">;
465
464
  call: Type.TUnsafe<import("./ids.ts").Id<"call">>;
466
465
  part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
466
+ change: Type.TLiteral<"intent">;
467
467
  }>, Type.TObject<{
468
468
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
469
469
  } & {
470
+ kind: Type.TLiteral<"call">;
471
+ call: Type.TUnsafe<import("./ids.ts").Id<"call">>;
472
+ part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
470
473
  change: Type.TLiteral<"waiting">;
471
474
  on: Type.TUnion<[Type.TObject<{
475
+ deadline: Type.TOptional<Type.TNumber>;
472
476
  kind: Type.TLiteral<"run">;
473
477
  session: Type.TUnsafe<import("./ids.ts").Id<"session">>;
474
478
  run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
475
- deadline: Type.TOptional<Type.TNumber>;
476
479
  }>, Type.TObject<{
480
+ deadline: Type.TOptional<Type.TNumber>;
477
481
  kind: Type.TLiteral<"job">;
478
482
  job: Type.TUnsafe<import("./ids.ts").Id<"job">>;
479
- deadline: Type.TOptional<Type.TNumber>;
480
483
  }>, Type.TObject<{
484
+ deadline: Type.TOptional<Type.TNumber>;
481
485
  kind: Type.TLiteral<"part">;
482
486
  part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
483
- deadline: Type.TOptional<Type.TNumber>;
484
487
  }>, Type.TObject<{
488
+ deadline: Type.TOptional<Type.TNumber>;
485
489
  kind: Type.TLiteral<"timer">;
486
490
  until: Type.TNumber;
487
- deadline: Type.TOptional<Type.TNumber>;
488
491
  }>]>;
489
- kind: Type.TLiteral<"call">;
490
- call: Type.TUnsafe<import("./ids.ts").Id<"call">>;
491
- part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
492
492
  }>, Type.TObject<{
493
493
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
494
494
  } & {
495
+ kind: Type.TLiteral<"call">;
496
+ call: Type.TUnsafe<import("./ids.ts").Id<"call">>;
497
+ part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
495
498
  change: Type.TLiteral<"settled">;
496
499
  outcome: Type.TUnion<[Type.TObject<{
497
500
  kind: Type.TLiteral<"ok">;
@@ -523,9 +526,6 @@ export declare const DurableEventType: Type.TUnion<[Type.TObject<{
523
526
  paths: Type.TArray<Type.TString>;
524
527
  unattributed: Type.TOptional<Type.TLiteral<true>>;
525
528
  }>, Type.TNull]>;
526
- kind: Type.TLiteral<"call">;
527
- call: Type.TUnsafe<import("./ids.ts").Id<"call">>;
528
- part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
529
529
  }>, Type.TObject<{
530
530
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
531
531
  } & {
@@ -743,22 +743,22 @@ export declare const DurableEventType: Type.TUnion<[Type.TObject<{
743
743
  }>]>;
744
744
  }>;
745
745
  on: Type.TUnion<[Type.TObject<{
746
+ deadline: Type.TOptional<Type.TNumber>;
746
747
  kind: Type.TLiteral<"run">;
747
748
  session: Type.TUnsafe<import("./ids.ts").Id<"session">>;
748
749
  run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
749
- deadline: Type.TOptional<Type.TNumber>;
750
750
  }>, Type.TObject<{
751
+ deadline: Type.TOptional<Type.TNumber>;
751
752
  kind: Type.TLiteral<"job">;
752
753
  job: Type.TUnsafe<import("./ids.ts").Id<"job">>;
753
- deadline: Type.TOptional<Type.TNumber>;
754
754
  }>, Type.TObject<{
755
+ deadline: Type.TOptional<Type.TNumber>;
755
756
  kind: Type.TLiteral<"part">;
756
757
  part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
757
- deadline: Type.TOptional<Type.TNumber>;
758
758
  }>, Type.TObject<{
759
+ deadline: Type.TOptional<Type.TNumber>;
759
760
  kind: Type.TLiteral<"timer">;
760
761
  until: Type.TNumber;
761
- deadline: Type.TOptional<Type.TNumber>;
762
762
  }>]>;
763
763
  }>, Type.TObject<{
764
764
  kind: Type.TLiteral<"retrying">;
@@ -966,6 +966,8 @@ export declare const SessionEventType: Type.TUnion<[Type.TObject<{
966
966
  at: Type.TNumber;
967
967
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
968
968
  } & {
969
+ kind: Type.TLiteral<"input">;
970
+ message: Type.TUnsafe<import("./ids.ts").Id<"message">>;
969
971
  change: Type.TLiteral<"admitted">;
970
972
  content: Type.TUnion<[Type.TString, Type.TArray<Type.TUnion<[Type.TObject<{
971
973
  kind: Type.TLiteral<"text">;
@@ -1046,13 +1048,13 @@ export declare const SessionEventType: Type.TUnion<[Type.TObject<{
1046
1048
  stopped: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"run">>, Type.TNull]>;
1047
1049
  }>, Type.TNull]>;
1048
1050
  requires: Type.TOptional<Type.TArray<Type.TString>>;
1049
- kind: Type.TLiteral<"input">;
1050
- message: Type.TUnsafe<import("./ids.ts").Id<"message">>;
1051
1051
  }>, Type.TObject<{
1052
1052
  seq: Type.TUnsafe<import("./ids.ts").Seq>;
1053
1053
  at: Type.TNumber;
1054
1054
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
1055
1055
  } & {
1056
+ kind: Type.TLiteral<"input">;
1057
+ message: Type.TUnsafe<import("./ids.ts").Id<"message">>;
1056
1058
  change: Type.TLiteral<"scheduled">;
1057
1059
  schedule: Type.TUnion<[Type.TObject<{
1058
1060
  kind: Type.TLiteral<"joined">;
@@ -1066,40 +1068,40 @@ export declare const SessionEventType: Type.TUnion<[Type.TObject<{
1066
1068
  kind: Type.TLiteral<"deciding">;
1067
1069
  }>]>;
1068
1070
  position: Type.TNumber;
1069
- kind: Type.TLiteral<"input">;
1070
- message: Type.TUnsafe<import("./ids.ts").Id<"message">>;
1071
1071
  }>, Type.TObject<{
1072
1072
  seq: Type.TUnsafe<import("./ids.ts").Seq>;
1073
1073
  at: Type.TNumber;
1074
1074
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
1075
1075
  } & {
1076
+ kind: Type.TLiteral<"input">;
1077
+ message: Type.TUnsafe<import("./ids.ts").Id<"message">>;
1076
1078
  change: Type.TLiteral<"landed">;
1077
1079
  commit: Type.TUnsafe<import("./ids.ts").Id<"commit">>;
1078
1080
  run: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"run">>, Type.TNull]>;
1079
- kind: Type.TLiteral<"input">;
1080
- message: Type.TUnsafe<import("./ids.ts").Id<"message">>;
1081
1081
  }>, Type.TObject<{
1082
1082
  seq: Type.TUnsafe<import("./ids.ts").Seq>;
1083
1083
  at: Type.TNumber;
1084
1084
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
1085
1085
  } & {
1086
- change: Type.TLiteral<"withdrawn">;
1087
1086
  kind: Type.TLiteral<"input">;
1088
1087
  message: Type.TUnsafe<import("./ids.ts").Id<"message">>;
1088
+ change: Type.TLiteral<"withdrawn">;
1089
1089
  }>, Type.TObject<{
1090
1090
  seq: Type.TUnsafe<import("./ids.ts").Seq>;
1091
1091
  at: Type.TNumber;
1092
1092
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
1093
1093
  } & {
1094
- change: Type.TLiteral<"superseded">;
1095
- by: Type.TUnsafe<import("./ids.ts").Id<"message">>;
1096
1094
  kind: Type.TLiteral<"input">;
1097
1095
  message: Type.TUnsafe<import("./ids.ts").Id<"message">>;
1096
+ change: Type.TLiteral<"superseded">;
1097
+ by: Type.TUnsafe<import("./ids.ts").Id<"message">>;
1098
1098
  }>, Type.TObject<{
1099
1099
  seq: Type.TUnsafe<import("./ids.ts").Seq>;
1100
1100
  at: Type.TNumber;
1101
1101
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
1102
1102
  } & {
1103
+ kind: Type.TLiteral<"run">;
1104
+ run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
1103
1105
  change: Type.TLiteral<"started">;
1104
1106
  view: Type.TObject<{
1105
1107
  id: Type.TUnsafe<import("./ids.ts").Id<"run">>;
@@ -1125,67 +1127,67 @@ export declare const SessionEventType: Type.TUnion<[Type.TObject<{
1125
1127
  from: Type.TEnum<["child", "job", "wake"]>;
1126
1128
  }>]>;
1127
1129
  }>;
1128
- kind: Type.TLiteral<"run">;
1129
- run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
1130
1130
  }>, Type.TObject<{
1131
1131
  seq: Type.TUnsafe<import("./ids.ts").Seq>;
1132
1132
  at: Type.TNumber;
1133
1133
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
1134
1134
  } & {
1135
- change: Type.TLiteral<"phase">;
1136
- phase: Type.TEnum<["responding", "executing"]>;
1137
1135
  kind: Type.TLiteral<"run">;
1138
1136
  run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
1137
+ change: Type.TLiteral<"phase">;
1138
+ phase: Type.TEnum<["responding", "executing"]>;
1139
1139
  }>, Type.TObject<{
1140
1140
  seq: Type.TUnsafe<import("./ids.ts").Seq>;
1141
1141
  at: Type.TNumber;
1142
1142
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
1143
1143
  } & {
1144
+ kind: Type.TLiteral<"run">;
1145
+ run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
1144
1146
  change: Type.TLiteral<"waiting">;
1145
1147
  on: Type.TUnion<[Type.TObject<{
1148
+ deadline: Type.TOptional<Type.TNumber>;
1146
1149
  kind: Type.TLiteral<"run">;
1147
1150
  session: Type.TUnsafe<import("./ids.ts").Id<"session">>;
1148
1151
  run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
1149
- deadline: Type.TOptional<Type.TNumber>;
1150
1152
  }>, Type.TObject<{
1153
+ deadline: Type.TOptional<Type.TNumber>;
1151
1154
  kind: Type.TLiteral<"job">;
1152
1155
  job: Type.TUnsafe<import("./ids.ts").Id<"job">>;
1153
- deadline: Type.TOptional<Type.TNumber>;
1154
1156
  }>, Type.TObject<{
1157
+ deadline: Type.TOptional<Type.TNumber>;
1155
1158
  kind: Type.TLiteral<"part">;
1156
1159
  part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
1157
- deadline: Type.TOptional<Type.TNumber>;
1158
1160
  }>, Type.TObject<{
1161
+ deadline: Type.TOptional<Type.TNumber>;
1159
1162
  kind: Type.TLiteral<"timer">;
1160
1163
  until: Type.TNumber;
1161
- deadline: Type.TOptional<Type.TNumber>;
1162
1164
  }>]>;
1163
- kind: Type.TLiteral<"run">;
1164
- run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
1165
1165
  }>, Type.TObject<{
1166
1166
  seq: Type.TUnsafe<import("./ids.ts").Seq>;
1167
1167
  at: Type.TNumber;
1168
1168
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
1169
1169
  } & {
1170
+ kind: Type.TLiteral<"run">;
1171
+ run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
1170
1172
  change: Type.TLiteral<"retrying">;
1171
1173
  attempt: Type.TNumber;
1172
1174
  until: Type.TNumber;
1173
1175
  reason: Type.TString;
1174
- kind: Type.TLiteral<"run">;
1175
- run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
1176
1176
  }>, Type.TObject<{
1177
1177
  seq: Type.TUnsafe<import("./ids.ts").Seq>;
1178
1178
  at: Type.TNumber;
1179
1179
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
1180
1180
  } & {
1181
- change: Type.TLiteral<"stopping">;
1182
1181
  kind: Type.TLiteral<"run">;
1183
1182
  run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
1183
+ change: Type.TLiteral<"stopping">;
1184
1184
  }>, Type.TObject<{
1185
1185
  seq: Type.TUnsafe<import("./ids.ts").Seq>;
1186
1186
  at: Type.TNumber;
1187
1187
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
1188
1188
  } & {
1189
+ kind: Type.TLiteral<"run">;
1190
+ run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
1189
1191
  change: Type.TLiteral<"ended">;
1190
1192
  end: Type.TUnion<[Type.TObject<{
1191
1193
  kind: Type.TLiteral<"completed">;
@@ -1214,13 +1216,13 @@ export declare const SessionEventType: Type.TUnion<[Type.TObject<{
1214
1216
  retryAfterMs: Type.TOptional<Type.TNumber>;
1215
1217
  }>;
1216
1218
  }>]>;
1217
- kind: Type.TLiteral<"run">;
1218
- run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
1219
1219
  }>, Type.TObject<{
1220
1220
  seq: Type.TUnsafe<import("./ids.ts").Seq>;
1221
1221
  at: Type.TNumber;
1222
1222
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
1223
1223
  } & {
1224
+ kind: Type.TLiteral<"part">;
1225
+ part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
1224
1226
  change: Type.TLiteral<"created">;
1225
1227
  partKind: Type.TString;
1226
1228
  placement: Type.TUnion<[Type.TObject<{
@@ -1235,111 +1237,112 @@ export declare const SessionEventType: Type.TUnion<[Type.TObject<{
1235
1237
  version: Type.TNumber;
1236
1238
  run: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"run">>, Type.TNull]>;
1237
1239
  owner: Type.TUnion<[Type.TString, Type.TNull]>;
1238
- kind: Type.TLiteral<"part">;
1239
- part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
1240
1240
  }>, Type.TObject<{
1241
1241
  seq: Type.TUnsafe<import("./ids.ts").Seq>;
1242
1242
  at: Type.TNumber;
1243
1243
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
1244
1244
  } & {
1245
+ kind: Type.TLiteral<"part">;
1246
+ part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
1245
1247
  change: Type.TLiteral<"updated">;
1246
1248
  state: Type.TUnsafe<import("./json.ts").Json>;
1247
1249
  version: Type.TNumber;
1248
- kind: Type.TLiteral<"part">;
1249
- part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
1250
1250
  }>, Type.TObject<{
1251
1251
  seq: Type.TUnsafe<import("./ids.ts").Seq>;
1252
1252
  at: Type.TNumber;
1253
1253
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
1254
1254
  } & {
1255
- change: Type.TLiteral<"waiting">;
1256
- call: Type.TUnsafe<import("./ids.ts").Id<"call">>;
1257
1255
  kind: Type.TLiteral<"part">;
1258
1256
  part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
1257
+ change: Type.TLiteral<"waiting">;
1258
+ call: Type.TUnsafe<import("./ids.ts").Id<"call">>;
1259
1259
  }>, Type.TObject<{
1260
1260
  seq: Type.TUnsafe<import("./ids.ts").Seq>;
1261
1261
  at: Type.TNumber;
1262
1262
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
1263
1263
  } & {
1264
+ kind: Type.TLiteral<"part">;
1265
+ part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
1264
1266
  change: Type.TLiteral<"settled">;
1265
1267
  commit: Type.TUnsafe<import("./ids.ts").Id<"commit">>;
1266
1268
  endedAt: Type.TNumber;
1267
- kind: Type.TLiteral<"part">;
1268
- part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
1269
1269
  }>, Type.TObject<{
1270
1270
  seq: Type.TUnsafe<import("./ids.ts").Seq>;
1271
1271
  at: Type.TNumber;
1272
1272
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
1273
1273
  } & {
1274
+ kind: Type.TLiteral<"part">;
1275
+ part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
1274
1276
  change: Type.TLiteral<"failed">;
1275
1277
  failure: Type.TObject<{
1276
1278
  class: Type.TEnum<["rate_limit", "auth", "quota", "context_window", "overloaded", "network", "aborted", "provider", "runner"]>;
1277
1279
  message: Type.TString;
1278
1280
  retryAfterMs: Type.TOptional<Type.TNumber>;
1279
1281
  }>;
1280
- kind: Type.TLiteral<"part">;
1281
- part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
1282
1282
  }>, Type.TObject<{
1283
1283
  seq: Type.TUnsafe<import("./ids.ts").Seq>;
1284
1284
  at: Type.TNumber;
1285
1285
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
1286
1286
  } & {
1287
+ kind: Type.TLiteral<"part">;
1288
+ part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
1287
1289
  change: Type.TLiteral<"answered">;
1288
1290
  answer: Type.TObject<{
1289
1291
  action: Type.TString;
1290
1292
  input: Type.TUnsafe<import("./json.ts").Json>;
1291
1293
  }>;
1292
- kind: Type.TLiteral<"part">;
1293
- part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
1294
1294
  }>, Type.TObject<{
1295
1295
  seq: Type.TUnsafe<import("./ids.ts").Seq>;
1296
1296
  at: Type.TNumber;
1297
1297
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
1298
1298
  } & {
1299
- change: Type.TLiteral<"closed">;
1300
1299
  kind: Type.TLiteral<"part">;
1301
1300
  part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
1301
+ change: Type.TLiteral<"closed">;
1302
1302
  }>, Type.TObject<{
1303
1303
  seq: Type.TUnsafe<import("./ids.ts").Seq>;
1304
1304
  at: Type.TNumber;
1305
1305
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
1306
1306
  } & {
1307
- change: Type.TLiteral<"intent">;
1308
1307
  kind: Type.TLiteral<"call">;
1309
1308
  call: Type.TUnsafe<import("./ids.ts").Id<"call">>;
1310
1309
  part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
1310
+ change: Type.TLiteral<"intent">;
1311
1311
  }>, Type.TObject<{
1312
1312
  seq: Type.TUnsafe<import("./ids.ts").Seq>;
1313
1313
  at: Type.TNumber;
1314
1314
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
1315
1315
  } & {
1316
+ kind: Type.TLiteral<"call">;
1317
+ call: Type.TUnsafe<import("./ids.ts").Id<"call">>;
1318
+ part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
1316
1319
  change: Type.TLiteral<"waiting">;
1317
1320
  on: Type.TUnion<[Type.TObject<{
1321
+ deadline: Type.TOptional<Type.TNumber>;
1318
1322
  kind: Type.TLiteral<"run">;
1319
1323
  session: Type.TUnsafe<import("./ids.ts").Id<"session">>;
1320
1324
  run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
1321
- deadline: Type.TOptional<Type.TNumber>;
1322
1325
  }>, Type.TObject<{
1326
+ deadline: Type.TOptional<Type.TNumber>;
1323
1327
  kind: Type.TLiteral<"job">;
1324
1328
  job: Type.TUnsafe<import("./ids.ts").Id<"job">>;
1325
- deadline: Type.TOptional<Type.TNumber>;
1326
1329
  }>, Type.TObject<{
1330
+ deadline: Type.TOptional<Type.TNumber>;
1327
1331
  kind: Type.TLiteral<"part">;
1328
1332
  part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
1329
- deadline: Type.TOptional<Type.TNumber>;
1330
1333
  }>, Type.TObject<{
1334
+ deadline: Type.TOptional<Type.TNumber>;
1331
1335
  kind: Type.TLiteral<"timer">;
1332
1336
  until: Type.TNumber;
1333
- deadline: Type.TOptional<Type.TNumber>;
1334
1337
  }>]>;
1335
- kind: Type.TLiteral<"call">;
1336
- call: Type.TUnsafe<import("./ids.ts").Id<"call">>;
1337
- part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
1338
1338
  }>, Type.TObject<{
1339
1339
  seq: Type.TUnsafe<import("./ids.ts").Seq>;
1340
1340
  at: Type.TNumber;
1341
1341
  head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"head">>, Type.TNull]>;
1342
1342
  } & {
1343
+ kind: Type.TLiteral<"call">;
1344
+ call: Type.TUnsafe<import("./ids.ts").Id<"call">>;
1345
+ part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
1343
1346
  change: Type.TLiteral<"settled">;
1344
1347
  outcome: Type.TUnion<[Type.TObject<{
1345
1348
  kind: Type.TLiteral<"ok">;
@@ -1371,9 +1374,6 @@ export declare const SessionEventType: Type.TUnion<[Type.TObject<{
1371
1374
  paths: Type.TArray<Type.TString>;
1372
1375
  unattributed: Type.TOptional<Type.TLiteral<true>>;
1373
1376
  }>, Type.TNull]>;
1374
- kind: Type.TLiteral<"call">;
1375
- call: Type.TUnsafe<import("./ids.ts").Id<"call">>;
1376
- part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
1377
1377
  }>, Type.TObject<{
1378
1378
  seq: Type.TUnsafe<import("./ids.ts").Seq>;
1379
1379
  at: Type.TNumber;
@@ -1601,22 +1601,22 @@ export declare const SessionEventType: Type.TUnion<[Type.TObject<{
1601
1601
  }>]>;
1602
1602
  }>;
1603
1603
  on: Type.TUnion<[Type.TObject<{
1604
+ deadline: Type.TOptional<Type.TNumber>;
1604
1605
  kind: Type.TLiteral<"run">;
1605
1606
  session: Type.TUnsafe<import("./ids.ts").Id<"session">>;
1606
1607
  run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
1607
- deadline: Type.TOptional<Type.TNumber>;
1608
1608
  }>, Type.TObject<{
1609
+ deadline: Type.TOptional<Type.TNumber>;
1609
1610
  kind: Type.TLiteral<"job">;
1610
1611
  job: Type.TUnsafe<import("./ids.ts").Id<"job">>;
1611
- deadline: Type.TOptional<Type.TNumber>;
1612
1612
  }>, Type.TObject<{
1613
+ deadline: Type.TOptional<Type.TNumber>;
1613
1614
  kind: Type.TLiteral<"part">;
1614
1615
  part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
1615
- deadline: Type.TOptional<Type.TNumber>;
1616
1616
  }>, Type.TObject<{
1617
+ deadline: Type.TOptional<Type.TNumber>;
1617
1618
  kind: Type.TLiteral<"timer">;
1618
1619
  until: Type.TNumber;
1619
- deadline: Type.TOptional<Type.TNumber>;
1620
1620
  }>]>;
1621
1621
  }>, Type.TObject<{
1622
1622
  kind: Type.TLiteral<"retrying">;
@@ -1731,21 +1731,21 @@ export declare const SessionEventType: Type.TUnion<[Type.TObject<{
1731
1731
  }>]>;
1732
1732
  export type SessionEvent = Decoded<typeof SessionEventType>;
1733
1733
  export declare const PatchEventType: Type.TUnion<[Type.TObject<{
1734
- append: Type.TString;
1735
1734
  kind: Type.TLiteral<"patch">;
1736
1735
  part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
1736
+ append: Type.TString;
1737
1737
  }>, Type.TObject<{
1738
- markdown: Type.TString;
1739
1738
  kind: Type.TLiteral<"patch">;
1740
1739
  part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
1740
+ markdown: Type.TString;
1741
1741
  }>, Type.TObject<{
1742
+ kind: Type.TLiteral<"patch">;
1743
+ part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
1742
1744
  progress: Type.TObject<{
1743
1745
  text: Type.TOptional<Type.TString>;
1744
1746
  fraction: Type.TOptional<Type.TNumber>;
1745
1747
  detail: Type.TOptional<Type.TUnsafe<import("./json.ts").Json>>;
1746
1748
  }>;
1747
- kind: Type.TLiteral<"patch">;
1748
- part: Type.TUnsafe<import("./ids.ts").Id<"part">>;
1749
1749
  }>]>;
1750
1750
  export type PatchEvent = Decoded<typeof PatchEventType>;
1751
1751
  export declare const CommitBodySchema: Schema<CommitBody>;