@nyte-ai/schema 0.0.18 → 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 (46) hide show
  1. package/THIRD-PARTY-NOTICES.md +66 -0
  2. package/dist/chunks/{browser-mnejgne0.js → browser-0chm3654.js} +2 -2
  3. package/dist/chunks/{browser-8t9anqfc.js → browser-0sbkxgkx.js} +4 -2
  4. package/dist/chunks/{browser-48g24pes.js → browser-0xr6c36r.js} +1 -1
  5. package/dist/chunks/{browser-r00v3vwv.js → browser-1nqahr9q.js} +7 -6
  6. package/dist/chunks/{browser-fth801bw.js → browser-3exd93gm.js} +2 -2
  7. package/dist/chunks/{browser-s7907azt.js → browser-8ancsy4m.js} +2 -2
  8. package/dist/chunks/{browser-5pvw8svn.js → browser-h5k4hqfq.js} +6 -5
  9. package/dist/chunks/{browser-bxz3z1v6.js → browser-hp9ze9ga.js} +22 -18
  10. package/dist/chunks/{browser-ad9yebg7.js → browser-j150etqf.js} +1 -1
  11. package/dist/chunks/{browser-pdx38ng3.js → browser-jgxe05s4.js} +6 -6
  12. package/dist/chunks/{browser-gchr2880.js → browser-p691tcac.js} +5 -1
  13. package/dist/chunks/{browser-0ebnhqs2.js → browser-pvfshqyk.js} +4 -4
  14. package/dist/chunks/{browser-5n1dh580.js → browser-qncc807c.js} +2 -2
  15. package/dist/chunks/{browser-e5xgzd28.js → browser-s2xe7c21.js} +2 -2
  16. package/dist/chunks/{browser-vkh2tpmf.js → browser-sgst60b0.js} +14 -4
  17. package/dist/chunks/{browser-7gjnxy9m.js → browser-xensz05x.js} +2 -2
  18. package/dist/chunks/{browser-vapnjwp3.js → browser-ynj8v9ad.js} +1 -1
  19. package/dist/src/configuration.js +2 -2
  20. package/dist/src/connection.js +6 -6
  21. package/dist/src/events.d.ts +2 -0
  22. package/dist/src/events.js +6 -6
  23. package/dist/src/git.d.ts +9 -0
  24. package/dist/src/git.js +3 -1
  25. package/dist/src/heads.js +3 -3
  26. package/dist/src/hooks.js +3 -3
  27. package/dist/src/index.js +21 -17
  28. package/dist/src/models.d.ts +5 -2
  29. package/dist/src/models.js +3 -1
  30. package/dist/src/parts.js +4 -4
  31. package/dist/src/runs.js +3 -3
  32. package/dist/src/sessions.js +4 -4
  33. package/dist/src/store.d.ts +2 -3
  34. package/dist/src/store.js +7 -7
  35. package/dist/src/views.d.ts +371 -3
  36. package/dist/src/views.js +6 -6
  37. package/dist/src/wire/operations/git.js +2 -2
  38. package/dist/src/wire/operations/host.d.ts +20 -0
  39. package/dist/src/wire/operations/host.js +7 -7
  40. package/dist/src/wire/operations/index.d.ts +411 -11
  41. package/dist/src/wire/operations/index.js +14 -14
  42. package/dist/src/wire/operations/session.d.ts +371 -3
  43. package/dist/src/wire/operations/session.js +8 -8
  44. package/dist/src/wire/operations/workspace.d.ts +20 -8
  45. package/dist/src/wire/operations/workspace.js +6 -6
  46. package/package.json +2 -2
@@ -434,6 +434,98 @@ export declare const SessionViewType: Type.TObject<{
434
434
  turn: Type.TUnsafe<import("./ids.ts").Id<"turn">>;
435
435
  at: Type.TNumber;
436
436
  }>]>>;
437
+ leadingPrompt: Type.TUnion<[Type.TObject<{
438
+ kind: Type.TLiteral<"user">;
439
+ content: Type.TUnion<[Type.TString, Type.TArray<Type.TUnion<[Type.TObject<{
440
+ kind: Type.TLiteral<"text">;
441
+ text: Type.TString;
442
+ }>, Type.TObject<{
443
+ kind: Type.TLiteral<"file">;
444
+ blob: Type.TUnsafe<import("./ids.ts").Id<"blob">>;
445
+ mime: Type.TString;
446
+ name: Type.TString;
447
+ }>, Type.TObject<{
448
+ kind: Type.TLiteral<"reference">;
449
+ path: Type.TString;
450
+ blob: Type.TOptional<Type.TUnsafe<import("./ids.ts").Id<"blob">>>;
451
+ }>, Type.TObject<{
452
+ kind: Type.TLiteral<"skill">;
453
+ name: Type.TString;
454
+ location: Type.TString;
455
+ }>, Type.TObject<{
456
+ kind: Type.TLiteral<"excerpt">;
457
+ source: Type.TUnion<[Type.TObject<{
458
+ kind: Type.TLiteral<"diff">;
459
+ path: Type.TString;
460
+ side: Type.TEnum<["old", "new"]>;
461
+ start: Type.TNumber;
462
+ end: Type.TNumber;
463
+ }>, Type.TObject<{
464
+ kind: Type.TLiteral<"terminal">;
465
+ command: Type.TOptional<Type.TString>;
466
+ }>, Type.TObject<{
467
+ kind: Type.TLiteral<"browser">;
468
+ url: Type.TString;
469
+ selector: Type.TString;
470
+ }>]>;
471
+ text: Type.TString;
472
+ }>]>>]>;
473
+ source: Type.TUnion<[Type.TObject<{
474
+ kind: Type.TLiteral<"user">;
475
+ }>, Type.TObject<{
476
+ kind: Type.TLiteral<"child">;
477
+ session: Type.TUnsafe<import("./ids.ts").Id<"session">>;
478
+ end: Type.TEnum<["completed", "stopped", "failed"]>;
479
+ }>, Type.TObject<{
480
+ kind: Type.TLiteral<"job">;
481
+ job: Type.TUnsafe<import("./ids.ts").Id<"job">>;
482
+ }>, Type.TObject<{
483
+ kind: Type.TLiteral<"shell">;
484
+ }>, Type.TObject<{
485
+ kind: Type.TLiteral<"action">;
486
+ label: Type.TString;
487
+ command: Type.TOptional<Type.TString>;
488
+ }>]>;
489
+ delivery: Type.TEnum<["steer", "queue", "attach"]>;
490
+ status: Type.TUnion<[Type.TObject<{
491
+ kind: Type.TLiteral<"unsent">;
492
+ attempts: Type.TNumber;
493
+ retrying: Type.TUnion<[Type.TObject<{
494
+ at: Type.TNumber;
495
+ reason: Type.TString;
496
+ }>, Type.TNull]>;
497
+ }>, Type.TObject<{
498
+ kind: Type.TLiteral<"pending">;
499
+ schedule: Type.TUnion<[Type.TObject<{
500
+ kind: Type.TLiteral<"joined">;
501
+ run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
502
+ }>, Type.TObject<{
503
+ kind: Type.TLiteral<"next-turn">;
504
+ reason: Type.TEnum<["requested", "idle", "run-ended", "configuration"]>;
505
+ }>, Type.TObject<{
506
+ kind: Type.TLiteral<"attached">;
507
+ }>, Type.TObject<{
508
+ kind: Type.TLiteral<"deciding">;
509
+ }>]>;
510
+ covered: Type.TBoolean;
511
+ }>, Type.TObject<{
512
+ kind: Type.TLiteral<"landed">;
513
+ commit: Type.TUnsafe<import("./ids.ts").Id<"commit">>;
514
+ run: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"run">>, Type.TNull]>;
515
+ replaced: Type.TUnion<[Type.TObject<{
516
+ previous: Type.TUnsafe<import("./ids.ts").Id<"message">>;
517
+ stopped: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"run">>, Type.TNull]>;
518
+ }>, Type.TNull]>;
519
+ }>]>;
520
+ siblings: Type.TObject<{
521
+ index: Type.TNumber;
522
+ count: Type.TNumber;
523
+ ids: Type.TArray<Type.TUnsafe<import("./ids.ts").Id<"commit">>>;
524
+ }>;
525
+ id: Type.TUnsafe<import("./ids.ts").Id<"message">>;
526
+ turn: Type.TUnsafe<import("./ids.ts").Id<"turn">>;
527
+ at: Type.TNumber;
528
+ }>, Type.TNull]>;
437
529
  parts: Type.TArray<Type.TObject<{
438
530
  id: Type.TUnsafe<import("./ids.ts").Id<"part">>;
439
531
  partKind: Type.TString;
@@ -998,7 +1090,7 @@ export declare const SessionViewType: Type.TObject<{
998
1090
  }>>;
999
1091
  }>;
1000
1092
  }>;
1001
- /** A head's view: its last `tail` messages, the turns those messages belong to from the earliest one on (older turns arrive with older messages through `head.history`), and `usage`, the sum of every completed run on the head's history. */
1093
+ /** A head's view: its last `tail` messages, at most `tail` and contiguous; `leadingPrompt`, the prompt of the earliest turn among them when that prompt is before them, else null; the turns those messages belong to from the earliest one on (older turns and the messages between `leadingPrompt` and `messages` arrive through `head.history`); and `usage`, the sum of every completed run on the head's history. */
1002
1094
  export type SessionView = Decoded<typeof SessionViewType>;
1003
1095
  export declare const HistoryPageType: Type.TObject<{
1004
1096
  messages: Type.TArray<Type.TUnion<[Type.TObject<{
@@ -1145,6 +1237,98 @@ export declare const HistoryPageType: Type.TObject<{
1145
1237
  turn: Type.TUnsafe<import("./ids.ts").Id<"turn">>;
1146
1238
  at: Type.TNumber;
1147
1239
  }>]>>;
1240
+ leadingPrompt: Type.TUnion<[Type.TObject<{
1241
+ kind: Type.TLiteral<"user">;
1242
+ content: Type.TUnion<[Type.TString, Type.TArray<Type.TUnion<[Type.TObject<{
1243
+ kind: Type.TLiteral<"text">;
1244
+ text: Type.TString;
1245
+ }>, Type.TObject<{
1246
+ kind: Type.TLiteral<"file">;
1247
+ blob: Type.TUnsafe<import("./ids.ts").Id<"blob">>;
1248
+ mime: Type.TString;
1249
+ name: Type.TString;
1250
+ }>, Type.TObject<{
1251
+ kind: Type.TLiteral<"reference">;
1252
+ path: Type.TString;
1253
+ blob: Type.TOptional<Type.TUnsafe<import("./ids.ts").Id<"blob">>>;
1254
+ }>, Type.TObject<{
1255
+ kind: Type.TLiteral<"skill">;
1256
+ name: Type.TString;
1257
+ location: Type.TString;
1258
+ }>, Type.TObject<{
1259
+ kind: Type.TLiteral<"excerpt">;
1260
+ source: Type.TUnion<[Type.TObject<{
1261
+ kind: Type.TLiteral<"diff">;
1262
+ path: Type.TString;
1263
+ side: Type.TEnum<["old", "new"]>;
1264
+ start: Type.TNumber;
1265
+ end: Type.TNumber;
1266
+ }>, Type.TObject<{
1267
+ kind: Type.TLiteral<"terminal">;
1268
+ command: Type.TOptional<Type.TString>;
1269
+ }>, Type.TObject<{
1270
+ kind: Type.TLiteral<"browser">;
1271
+ url: Type.TString;
1272
+ selector: Type.TString;
1273
+ }>]>;
1274
+ text: Type.TString;
1275
+ }>]>>]>;
1276
+ source: Type.TUnion<[Type.TObject<{
1277
+ kind: Type.TLiteral<"user">;
1278
+ }>, Type.TObject<{
1279
+ kind: Type.TLiteral<"child">;
1280
+ session: Type.TUnsafe<import("./ids.ts").Id<"session">>;
1281
+ end: Type.TEnum<["completed", "stopped", "failed"]>;
1282
+ }>, Type.TObject<{
1283
+ kind: Type.TLiteral<"job">;
1284
+ job: Type.TUnsafe<import("./ids.ts").Id<"job">>;
1285
+ }>, Type.TObject<{
1286
+ kind: Type.TLiteral<"shell">;
1287
+ }>, Type.TObject<{
1288
+ kind: Type.TLiteral<"action">;
1289
+ label: Type.TString;
1290
+ command: Type.TOptional<Type.TString>;
1291
+ }>]>;
1292
+ delivery: Type.TEnum<["steer", "queue", "attach"]>;
1293
+ status: Type.TUnion<[Type.TObject<{
1294
+ kind: Type.TLiteral<"unsent">;
1295
+ attempts: Type.TNumber;
1296
+ retrying: Type.TUnion<[Type.TObject<{
1297
+ at: Type.TNumber;
1298
+ reason: Type.TString;
1299
+ }>, Type.TNull]>;
1300
+ }>, Type.TObject<{
1301
+ kind: Type.TLiteral<"pending">;
1302
+ schedule: Type.TUnion<[Type.TObject<{
1303
+ kind: Type.TLiteral<"joined">;
1304
+ run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
1305
+ }>, Type.TObject<{
1306
+ kind: Type.TLiteral<"next-turn">;
1307
+ reason: Type.TEnum<["requested", "idle", "run-ended", "configuration"]>;
1308
+ }>, Type.TObject<{
1309
+ kind: Type.TLiteral<"attached">;
1310
+ }>, Type.TObject<{
1311
+ kind: Type.TLiteral<"deciding">;
1312
+ }>]>;
1313
+ covered: Type.TBoolean;
1314
+ }>, Type.TObject<{
1315
+ kind: Type.TLiteral<"landed">;
1316
+ commit: Type.TUnsafe<import("./ids.ts").Id<"commit">>;
1317
+ run: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"run">>, Type.TNull]>;
1318
+ replaced: Type.TUnion<[Type.TObject<{
1319
+ previous: Type.TUnsafe<import("./ids.ts").Id<"message">>;
1320
+ stopped: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"run">>, Type.TNull]>;
1321
+ }>, Type.TNull]>;
1322
+ }>]>;
1323
+ siblings: Type.TObject<{
1324
+ index: Type.TNumber;
1325
+ count: Type.TNumber;
1326
+ ids: Type.TArray<Type.TUnsafe<import("./ids.ts").Id<"commit">>>;
1327
+ }>;
1328
+ id: Type.TUnsafe<import("./ids.ts").Id<"message">>;
1329
+ turn: Type.TUnsafe<import("./ids.ts").Id<"turn">>;
1330
+ at: Type.TNumber;
1331
+ }>, Type.TNull]>;
1148
1332
  turns: Type.TArray<Type.TObject<{
1149
1333
  id: Type.TUnsafe<import("./ids.ts").Id<"turn">>;
1150
1334
  run: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"run">>, Type.TNull]>;
@@ -1240,7 +1424,7 @@ export declare const HistoryPageType: Type.TObject<{
1240
1424
  }>;
1241
1425
  }>>;
1242
1426
  }>;
1243
- /** Messages before a view's window, with the turns they belong to. */
1427
+ /** Messages before a view's window, with the turns they belong to and `leadingPrompt`, the prompt of the earliest of those turns when it is before `messages`, else null. */
1244
1428
  export type HistoryPage = Decoded<typeof HistoryPageType>;
1245
1429
  export declare const ViewAppendType: Type.TObject<{
1246
1430
  at: Type.TNumber;
@@ -1410,6 +1594,98 @@ export declare const ViewFrameType: Type.TUnion<[Type.TObject<{
1410
1594
  turn: Type.TUnsafe<import("./ids.ts").Id<"turn">>;
1411
1595
  at: Type.TNumber;
1412
1596
  }>]>>;
1597
+ leadingPrompt: Type.TUnion<[Type.TObject<{
1598
+ kind: Type.TLiteral<"user">;
1599
+ content: Type.TUnion<[Type.TString, Type.TArray<Type.TUnion<[Type.TObject<{
1600
+ kind: Type.TLiteral<"text">;
1601
+ text: Type.TString;
1602
+ }>, Type.TObject<{
1603
+ kind: Type.TLiteral<"file">;
1604
+ blob: Type.TUnsafe<import("./ids.ts").Id<"blob">>;
1605
+ mime: Type.TString;
1606
+ name: Type.TString;
1607
+ }>, Type.TObject<{
1608
+ kind: Type.TLiteral<"reference">;
1609
+ path: Type.TString;
1610
+ blob: Type.TOptional<Type.TUnsafe<import("./ids.ts").Id<"blob">>>;
1611
+ }>, Type.TObject<{
1612
+ kind: Type.TLiteral<"skill">;
1613
+ name: Type.TString;
1614
+ location: Type.TString;
1615
+ }>, Type.TObject<{
1616
+ kind: Type.TLiteral<"excerpt">;
1617
+ source: Type.TUnion<[Type.TObject<{
1618
+ kind: Type.TLiteral<"diff">;
1619
+ path: Type.TString;
1620
+ side: Type.TEnum<["old", "new"]>;
1621
+ start: Type.TNumber;
1622
+ end: Type.TNumber;
1623
+ }>, Type.TObject<{
1624
+ kind: Type.TLiteral<"terminal">;
1625
+ command: Type.TOptional<Type.TString>;
1626
+ }>, Type.TObject<{
1627
+ kind: Type.TLiteral<"browser">;
1628
+ url: Type.TString;
1629
+ selector: Type.TString;
1630
+ }>]>;
1631
+ text: Type.TString;
1632
+ }>]>>]>;
1633
+ source: Type.TUnion<[Type.TObject<{
1634
+ kind: Type.TLiteral<"user">;
1635
+ }>, Type.TObject<{
1636
+ kind: Type.TLiteral<"child">;
1637
+ session: Type.TUnsafe<import("./ids.ts").Id<"session">>;
1638
+ end: Type.TEnum<["completed", "stopped", "failed"]>;
1639
+ }>, Type.TObject<{
1640
+ kind: Type.TLiteral<"job">;
1641
+ job: Type.TUnsafe<import("./ids.ts").Id<"job">>;
1642
+ }>, Type.TObject<{
1643
+ kind: Type.TLiteral<"shell">;
1644
+ }>, Type.TObject<{
1645
+ kind: Type.TLiteral<"action">;
1646
+ label: Type.TString;
1647
+ command: Type.TOptional<Type.TString>;
1648
+ }>]>;
1649
+ delivery: Type.TEnum<["steer", "queue", "attach"]>;
1650
+ status: Type.TUnion<[Type.TObject<{
1651
+ kind: Type.TLiteral<"unsent">;
1652
+ attempts: Type.TNumber;
1653
+ retrying: Type.TUnion<[Type.TObject<{
1654
+ at: Type.TNumber;
1655
+ reason: Type.TString;
1656
+ }>, Type.TNull]>;
1657
+ }>, Type.TObject<{
1658
+ kind: Type.TLiteral<"pending">;
1659
+ schedule: Type.TUnion<[Type.TObject<{
1660
+ kind: Type.TLiteral<"joined">;
1661
+ run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
1662
+ }>, Type.TObject<{
1663
+ kind: Type.TLiteral<"next-turn">;
1664
+ reason: Type.TEnum<["requested", "idle", "run-ended", "configuration"]>;
1665
+ }>, Type.TObject<{
1666
+ kind: Type.TLiteral<"attached">;
1667
+ }>, Type.TObject<{
1668
+ kind: Type.TLiteral<"deciding">;
1669
+ }>]>;
1670
+ covered: Type.TBoolean;
1671
+ }>, Type.TObject<{
1672
+ kind: Type.TLiteral<"landed">;
1673
+ commit: Type.TUnsafe<import("./ids.ts").Id<"commit">>;
1674
+ run: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"run">>, Type.TNull]>;
1675
+ replaced: Type.TUnion<[Type.TObject<{
1676
+ previous: Type.TUnsafe<import("./ids.ts").Id<"message">>;
1677
+ stopped: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"run">>, Type.TNull]>;
1678
+ }>, Type.TNull]>;
1679
+ }>]>;
1680
+ siblings: Type.TObject<{
1681
+ index: Type.TNumber;
1682
+ count: Type.TNumber;
1683
+ ids: Type.TArray<Type.TUnsafe<import("./ids.ts").Id<"commit">>>;
1684
+ }>;
1685
+ id: Type.TUnsafe<import("./ids.ts").Id<"message">>;
1686
+ turn: Type.TUnsafe<import("./ids.ts").Id<"turn">>;
1687
+ at: Type.TNumber;
1688
+ }>, Type.TNull]>;
1413
1689
  parts: Type.TArray<Type.TObject<{
1414
1690
  id: Type.TUnsafe<import("./ids.ts").Id<"part">>;
1415
1691
  partKind: Type.TString;
@@ -2142,6 +2418,98 @@ export declare const ViewFrameType: Type.TUnion<[Type.TObject<{
2142
2418
  append: Type.TString;
2143
2419
  version: Type.TNumber;
2144
2420
  }>>>;
2421
+ leadingPrompt: Type.TOptional<Type.TUnion<[Type.TObject<{
2422
+ kind: Type.TLiteral<"user">;
2423
+ content: Type.TUnion<[Type.TString, Type.TArray<Type.TUnion<[Type.TObject<{
2424
+ kind: Type.TLiteral<"text">;
2425
+ text: Type.TString;
2426
+ }>, Type.TObject<{
2427
+ kind: Type.TLiteral<"file">;
2428
+ blob: Type.TUnsafe<import("./ids.ts").Id<"blob">>;
2429
+ mime: Type.TString;
2430
+ name: Type.TString;
2431
+ }>, Type.TObject<{
2432
+ kind: Type.TLiteral<"reference">;
2433
+ path: Type.TString;
2434
+ blob: Type.TOptional<Type.TUnsafe<import("./ids.ts").Id<"blob">>>;
2435
+ }>, Type.TObject<{
2436
+ kind: Type.TLiteral<"skill">;
2437
+ name: Type.TString;
2438
+ location: Type.TString;
2439
+ }>, Type.TObject<{
2440
+ kind: Type.TLiteral<"excerpt">;
2441
+ source: Type.TUnion<[Type.TObject<{
2442
+ kind: Type.TLiteral<"diff">;
2443
+ path: Type.TString;
2444
+ side: Type.TEnum<["old", "new"]>;
2445
+ start: Type.TNumber;
2446
+ end: Type.TNumber;
2447
+ }>, Type.TObject<{
2448
+ kind: Type.TLiteral<"terminal">;
2449
+ command: Type.TOptional<Type.TString>;
2450
+ }>, Type.TObject<{
2451
+ kind: Type.TLiteral<"browser">;
2452
+ url: Type.TString;
2453
+ selector: Type.TString;
2454
+ }>]>;
2455
+ text: Type.TString;
2456
+ }>]>>]>;
2457
+ source: Type.TUnion<[Type.TObject<{
2458
+ kind: Type.TLiteral<"user">;
2459
+ }>, Type.TObject<{
2460
+ kind: Type.TLiteral<"child">;
2461
+ session: Type.TUnsafe<import("./ids.ts").Id<"session">>;
2462
+ end: Type.TEnum<["completed", "stopped", "failed"]>;
2463
+ }>, Type.TObject<{
2464
+ kind: Type.TLiteral<"job">;
2465
+ job: Type.TUnsafe<import("./ids.ts").Id<"job">>;
2466
+ }>, Type.TObject<{
2467
+ kind: Type.TLiteral<"shell">;
2468
+ }>, Type.TObject<{
2469
+ kind: Type.TLiteral<"action">;
2470
+ label: Type.TString;
2471
+ command: Type.TOptional<Type.TString>;
2472
+ }>]>;
2473
+ delivery: Type.TEnum<["steer", "queue", "attach"]>;
2474
+ status: Type.TUnion<[Type.TObject<{
2475
+ kind: Type.TLiteral<"unsent">;
2476
+ attempts: Type.TNumber;
2477
+ retrying: Type.TUnion<[Type.TObject<{
2478
+ at: Type.TNumber;
2479
+ reason: Type.TString;
2480
+ }>, Type.TNull]>;
2481
+ }>, Type.TObject<{
2482
+ kind: Type.TLiteral<"pending">;
2483
+ schedule: Type.TUnion<[Type.TObject<{
2484
+ kind: Type.TLiteral<"joined">;
2485
+ run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
2486
+ }>, Type.TObject<{
2487
+ kind: Type.TLiteral<"next-turn">;
2488
+ reason: Type.TEnum<["requested", "idle", "run-ended", "configuration"]>;
2489
+ }>, Type.TObject<{
2490
+ kind: Type.TLiteral<"attached">;
2491
+ }>, Type.TObject<{
2492
+ kind: Type.TLiteral<"deciding">;
2493
+ }>]>;
2494
+ covered: Type.TBoolean;
2495
+ }>, Type.TObject<{
2496
+ kind: Type.TLiteral<"landed">;
2497
+ commit: Type.TUnsafe<import("./ids.ts").Id<"commit">>;
2498
+ run: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"run">>, Type.TNull]>;
2499
+ replaced: Type.TUnion<[Type.TObject<{
2500
+ previous: Type.TUnsafe<import("./ids.ts").Id<"message">>;
2501
+ stopped: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"run">>, Type.TNull]>;
2502
+ }>, Type.TNull]>;
2503
+ }>]>;
2504
+ siblings: Type.TObject<{
2505
+ index: Type.TNumber;
2506
+ count: Type.TNumber;
2507
+ ids: Type.TArray<Type.TUnsafe<import("./ids.ts").Id<"commit">>>;
2508
+ }>;
2509
+ id: Type.TUnsafe<import("./ids.ts").Id<"message">>;
2510
+ turn: Type.TUnsafe<import("./ids.ts").Id<"turn">>;
2511
+ at: Type.TNumber;
2512
+ }>, Type.TNull]>>;
2145
2513
  parts: Type.TOptional<Type.TObject<{
2146
2514
  runs: Type.TArray<Type.TNumber>;
2147
2515
  items: Type.TArray<Type.TObject<{
@@ -2721,7 +3089,7 @@ export declare const ViewFrameType: Type.TUnion<[Type.TObject<{
2721
3089
  }>>;
2722
3090
  }>>;
2723
3091
  }>]>;
2724
- /** One frame of a head's watch on the wire: the whole view first, then each later view as what changed since the frame before it, an absent field unchanged. */
3092
+ /** One frame of a head's watch on the wire: the whole view first, then each later view as what changed since the frame before it, an absent field unchanged; a null `leadingPrompt` clears it. */
2725
3093
  export type ViewFrame = Decoded<typeof ViewFrameType>;
2726
3094
  export declare const ViewOptionsSchema: Schema<ViewOptions>;
2727
3095
  export declare const UserStatusSchema: Schema<UserStatus>;
package/dist/src/views.js CHANGED
@@ -14,17 +14,17 @@ import {
14
14
  SessionViewSchema2,
15
15
  HistoryPageSchema2,
16
16
  ViewFrameSchema2
17
- } from "../chunks/browser-bxz3z1v6.js";
18
- import"../chunks/browser-ad9yebg7.js";
17
+ } from "../chunks/browser-hp9ze9ga.js";
18
+ import"../chunks/browser-j150etqf.js";
19
19
  import"../chunks/browser-h86zs54a.js";
20
- import"../chunks/browser-7gjnxy9m.js";
20
+ import"../chunks/browser-xensz05x.js";
21
21
  import"../chunks/browser-bg1esaw0.js";
22
- import"../chunks/browser-s7907azt.js";
22
+ import"../chunks/browser-8ancsy4m.js";
23
23
  import"../chunks/browser-hq5q56sf.js";
24
24
  import"../chunks/browser-40enyw9r.js";
25
25
  import"../chunks/browser-m0wzr0g8.js";
26
- import"../chunks/browser-vapnjwp3.js";
27
- import"../chunks/browser-8t9anqfc.js";
26
+ import"../chunks/browser-ynj8v9ad.js";
27
+ import"../chunks/browser-0sbkxgkx.js";
28
28
  import"../chunks/browser-sgwxbek9.js";
29
29
  import"../chunks/browser-1sfp0bcx.js";
30
30
  import"../chunks/browser-ebr6k189.js";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  GIT_OPERATIONS2
3
- } from "../../../chunks/browser-48g24pes.js";
3
+ } from "../../../chunks/browser-0xr6c36r.js";
4
4
  import"../../../chunks/browser-r87w64mz.js";
5
5
  import"../../../chunks/browser-0byq2fja.js";
6
6
  import"../../../chunks/browser-m0wzr0g8.js";
7
7
  import"../../../chunks/browser-sgwxbek9.js";
8
- import"../../../chunks/browser-gchr2880.js";
8
+ import"../../../chunks/browser-p691tcac.js";
9
9
  import"../../../chunks/browser-ebr6k189.js";
10
10
  import"../../../chunks/browser-4et7qtz3.js";
11
11
  import"../../../chunks/browser-ypez6s7v.js";
@@ -116,6 +116,9 @@ export declare const HOST_OPERATIONS: {
116
116
  readonly steer: boolean;
117
117
  };
118
118
  }[];
119
+ readonly listings: {
120
+ readonly [x: string]: "hidden" | "favorite";
121
+ };
119
122
  }[];
120
123
  }>;
121
124
  readonly authority: "participant";
@@ -212,6 +215,23 @@ export declare const HOST_OPERATIONS: {
212
215
  readonly authority: "owner";
213
216
  readonly scope: "host";
214
217
  };
218
+ readonly "models.setListing": {
219
+ readonly kind: "command";
220
+ readonly input: import("../../schema.ts").Schema<{
221
+ refs: {
222
+ id: string;
223
+ provider: string;
224
+ }[];
225
+ listing: "shown" | "hidden" | "favorite";
226
+ }>;
227
+ readonly output: import("../../schema.ts").Schema<{
228
+ kind: "set";
229
+ } | {
230
+ kind: "unknown-model";
231
+ }>;
232
+ readonly authority: "owner";
233
+ readonly scope: "host";
234
+ };
215
235
  readonly "models.verify": {
216
236
  readonly kind: "command";
217
237
  readonly input: import("../../schema.ts").Schema<{
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  HOST_OPERATIONS2,
3
3
  MAINTENANCE_OPERATIONS2
4
- } from "../../../chunks/browser-vkh2tpmf.js";
4
+ } from "../../../chunks/browser-sgst60b0.js";
5
5
  import"../../../chunks/browser-r87w64mz.js";
6
6
  import"../../../chunks/browser-j629a6wa.js";
7
7
  import"../../../chunks/browser-0byq2fja.js";
8
- import"../../../chunks/browser-e5xgzd28.js";
9
- import"../../../chunks/browser-mnejgne0.js";
8
+ import"../../../chunks/browser-s2xe7c21.js";
9
+ import"../../../chunks/browser-0chm3654.js";
10
10
  import"../../../chunks/browser-6e1madxa.js";
11
- import"../../../chunks/browser-7gjnxy9m.js";
11
+ import"../../../chunks/browser-xensz05x.js";
12
12
  import"../../../chunks/browser-bg1esaw0.js";
13
- import"../../../chunks/browser-s7907azt.js";
13
+ import"../../../chunks/browser-8ancsy4m.js";
14
14
  import"../../../chunks/browser-hq5q56sf.js";
15
15
  import"../../../chunks/browser-40enyw9r.js";
16
16
  import"../../../chunks/browser-m0wzr0g8.js";
17
- import"../../../chunks/browser-vapnjwp3.js";
18
- import"../../../chunks/browser-8t9anqfc.js";
17
+ import"../../../chunks/browser-ynj8v9ad.js";
18
+ import"../../../chunks/browser-0sbkxgkx.js";
19
19
  import"../../../chunks/browser-sgwxbek9.js";
20
20
  import"../../../chunks/browser-1sfp0bcx.js";
21
21
  import"../../../chunks/browser-4et7qtz3.js";