@maudecode/talaria-web-contracts 1.21.0 → 1.22.0

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 (68) hide show
  1. package/dist/agent-imports.d.ts +42 -0
  2. package/dist/agent-imports.js +11 -0
  3. package/dist/agent-imports.js.map +1 -0
  4. package/dist/context-detail.d.ts +3 -3
  5. package/dist/delegation.d.ts +206 -0
  6. package/dist/delegation.js +32 -0
  7. package/dist/delegation.js.map +1 -0
  8. package/dist/gateway-session.d.ts +24 -4
  9. package/dist/gateway-session.js +5 -1
  10. package/dist/gateway-session.js.map +1 -1
  11. package/dist/groups-native.d.ts +427 -0
  12. package/dist/groups-native.js +40 -0
  13. package/dist/groups-native.js.map +1 -0
  14. package/dist/groups.d.ts +1545 -0
  15. package/dist/groups.js +12 -0
  16. package/dist/groups.js.map +1 -0
  17. package/dist/index.d.ts +5 -0
  18. package/dist/index.js +5 -0
  19. package/dist/index.js.map +1 -1
  20. package/dist/mcp-cost-policy.d.ts +1 -1
  21. package/dist/openapi.js +4 -0
  22. package/dist/openapi.js.map +1 -1
  23. package/dist/plan-usage.d.ts +92 -0
  24. package/dist/plan-usage.js +20 -0
  25. package/dist/plan-usage.js.map +1 -0
  26. package/dist/prompt-queue.d.ts +2 -2
  27. package/dist/router.d.ts +13 -20005
  28. package/dist/router.js +4 -1
  29. package/dist/router.js.map +1 -1
  30. package/dist/routes/automation.d.ts +15 -15
  31. package/dist/routes/chat.d.ts +269 -83
  32. package/dist/routes/groups.d.ts +860 -0
  33. package/dist/routes/groups.js +13 -0
  34. package/dist/routes/groups.js.map +1 -0
  35. package/dist/routes/raw.js +13 -3
  36. package/dist/routes/raw.js.map +1 -1
  37. package/dist/routes/sessions.d.ts +714 -204
  38. package/dist/routes/settings.d.ts +949 -1
  39. package/dist/routes/settings.js +26 -0
  40. package/dist/routes/settings.js.map +1 -1
  41. package/dist/routes/tools.d.ts +109 -24
  42. package/dist/routes/tools.js +5 -2
  43. package/dist/routes/tools.js.map +1 -1
  44. package/dist/routes/workspaces.d.ts +2 -2
  45. package/dist/sidecar/methods.d.ts +522 -24
  46. package/dist/sidecar/methods.js +3 -1
  47. package/dist/sidecar/methods.js.map +1 -1
  48. package/dist/sidecar/namespaces.d.ts +611 -34
  49. package/dist/sidecar/namespaces.js +46 -5
  50. package/dist/sidecar/namespaces.js.map +1 -1
  51. package/dist/sidecar/rpc.d.ts +3 -3
  52. package/dist/sidecar/version.d.ts +1 -1
  53. package/dist/sidecar/version.js +1 -1
  54. package/dist/sse.d.ts +95 -20
  55. package/dist/sse.js +4 -3
  56. package/dist/sse.js.map +1 -1
  57. package/dist/views.d.ts +872 -161
  58. package/dist/views.js +43 -20
  59. package/dist/views.js.map +1 -1
  60. package/fixtures/sidecar/agent-imports.json +6 -0
  61. package/fixtures/sidecar/aux.json +58 -0
  62. package/fixtures/sidecar/connectors.json +29 -0
  63. package/fixtures/sidecar/groups.json +18 -0
  64. package/fixtures/sidecar/providers.json +37 -1
  65. package/fixtures/sidecar/runtime.json +3 -3
  66. package/fixtures/sidecar/skills.json +19 -2
  67. package/fixtures/sidecar/tts.json +6 -0
  68. package/package.json +1 -1
@@ -261,10 +261,6 @@ export declare const CompressResultSchema: z.ZodObject<{
261
261
  }, z.core.$strip>>>;
262
262
  assistant_name: z.ZodOptional<z.ZodString>;
263
263
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
264
- compression_reference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
265
- text: z.ZodString;
266
- after_message_index: z.ZodNullable<z.ZodNumber>;
267
- }, z.core.$strip>>>;
268
264
  focus_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
269
265
  branched_from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
270
266
  session_id: z.ZodString;
@@ -274,16 +270,55 @@ export declare const CompressResultSchema: z.ZodObject<{
274
270
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
275
271
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
276
272
  context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
273
+ plan_gauge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
274
+ id: z.ZodString;
275
+ label: z.ZodString;
276
+ used_bp: z.ZodNumber;
277
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
278
+ }, z.core.$strip>>>;
279
+ show_reasoning: z.ZodOptional<z.ZodBoolean>;
277
280
  activity_phase: z.ZodOptional<z.ZodEnum<{
278
- running: "running";
279
- cancelled: "cancelled";
280
281
  stale: "stale";
282
+ running: "running";
281
283
  failed: "failed";
284
+ cancelled: "cancelled";
282
285
  completed: "completed";
283
286
  starting: "starting";
284
287
  waiting_for_approval: "waiting_for_approval";
285
288
  waiting_for_input: "waiting_for_input";
286
289
  }>>;
290
+ todo_state: z.ZodOptional<z.ZodObject<{
291
+ display_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
292
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
293
+ text: z.ZodString;
294
+ state: z.ZodEnum<{
295
+ pending: "pending";
296
+ cancelled: "cancelled";
297
+ completed: "completed";
298
+ in_progress: "in_progress";
299
+ }>;
300
+ }, z.core.$strip>>>;
301
+ total_count: z.ZodOptional<z.ZodNumber>;
302
+ completed_count: z.ZodOptional<z.ZodNumber>;
303
+ pending_count: z.ZodOptional<z.ZodNumber>;
304
+ in_progress_count: z.ZodOptional<z.ZodNumber>;
305
+ cancelled_count: z.ZodOptional<z.ZodNumber>;
306
+ session_id: z.ZodOptional<z.ZodString>;
307
+ todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
308
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
309
+ text: z.ZodOptional<z.ZodString>;
310
+ content: z.ZodOptional<z.ZodString>;
311
+ title: z.ZodOptional<z.ZodString>;
312
+ status: z.ZodOptional<z.ZodString>;
313
+ done: z.ZodOptional<z.ZodBoolean>;
314
+ completed: z.ZodOptional<z.ZodBoolean>;
315
+ }, z.core.$loose>>>;
316
+ summary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
317
+ version: z.ZodOptional<z.ZodNumber>;
318
+ ts: z.ZodOptional<z.ZodNumber>;
319
+ source: z.ZodOptional<z.ZodString>;
320
+ description: z.ZodOptional<z.ZodString>;
321
+ }, z.core.$loose>>;
287
322
  source_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
288
323
  session_id: z.ZodString;
289
324
  tip_session_id: z.ZodString;
@@ -366,6 +401,7 @@ export declare const CompressResultSchema: z.ZodObject<{
366
401
  }, z.core.$strip>>;
367
402
  }, z.core.$strip>>;
368
403
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
404
+ download_url: z.ZodOptional<z.ZodString>;
369
405
  filename: z.ZodOptional<z.ZodString>;
370
406
  name: z.ZodOptional<z.ZodString>;
371
407
  path: z.ZodOptional<z.ZodString>;
@@ -412,8 +448,8 @@ export declare const CompressResultSchema: z.ZodObject<{
412
448
  unknown: "unknown";
413
449
  memory: "memory";
414
450
  shell: "shell";
415
- read: "read";
416
451
  list: "list";
452
+ read: "read";
417
453
  search: "search";
418
454
  web: "web";
419
455
  write: "write";
@@ -478,9 +514,9 @@ export declare const CompressResultSchema: z.ZodObject<{
478
514
  kind: z.ZodEnum<{
479
515
  file: "file";
480
516
  image: "image";
517
+ pdf: "pdf";
481
518
  audio: "audio";
482
519
  video: "video";
483
- pdf: "pdf";
484
520
  }>;
485
521
  }, z.core.$strip>>>;
486
522
  tool: z.ZodOptional<z.ZodObject<{
@@ -507,8 +543,8 @@ export declare const CompressResultSchema: z.ZodObject<{
507
543
  status: z.ZodEnum<{
508
544
  unknown: "unknown";
509
545
  running: "running";
510
- cancelled: "cancelled";
511
546
  failed: "failed";
547
+ cancelled: "cancelled";
512
548
  completed: "completed";
513
549
  attention: "attention";
514
550
  }>;
@@ -529,8 +565,8 @@ export declare const CompressResultSchema: z.ZodObject<{
529
565
  unknown: "unknown";
530
566
  memory: "memory";
531
567
  shell: "shell";
532
- read: "read";
533
568
  list: "list";
569
+ read: "read";
534
570
  search: "search";
535
571
  web: "web";
536
572
  write: "write";
@@ -585,9 +621,9 @@ export declare const CompressResultSchema: z.ZodObject<{
585
621
  kind: z.ZodEnum<{
586
622
  file: "file";
587
623
  image: "image";
624
+ pdf: "pdf";
588
625
  audio: "audio";
589
626
  video: "video";
590
- pdf: "pdf";
591
627
  }>;
592
628
  }, z.core.$strip>>>;
593
629
  terminal_state: z.ZodOptional<z.ZodString>;
@@ -633,9 +669,9 @@ export declare const CompressResultSchema: z.ZodObject<{
633
669
  kind: z.ZodEnum<{
634
670
  file: "file";
635
671
  image: "image";
672
+ pdf: "pdf";
636
673
  audio: "audio";
637
674
  video: "video";
638
- pdf: "pdf";
639
675
  }>;
640
676
  }, z.core.$strip>>>;
641
677
  _background_update: z.ZodOptional<z.ZodObject<{
@@ -650,9 +686,9 @@ export declare const CompressResultSchema: z.ZodObject<{
650
686
  summary: z.ZodString;
651
687
  lines: z.ZodArray<z.ZodObject<{
652
688
  kind: z.ZodEnum<{
653
- command: "command";
654
689
  agent: "agent";
655
690
  other: "other";
691
+ command: "command";
656
692
  }>;
657
693
  status: z.ZodEnum<{
658
694
  failed: "failed";
@@ -740,8 +776,8 @@ export declare const CompressResultSchema: z.ZodObject<{
740
776
  unknown: "unknown";
741
777
  memory: "memory";
742
778
  shell: "shell";
743
- read: "read";
744
779
  list: "list";
780
+ read: "read";
745
781
  search: "search";
746
782
  web: "web";
747
783
  write: "write";
@@ -834,8 +870,8 @@ export declare const CompressResultSchema: z.ZodObject<{
834
870
  notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
835
871
  key: z.ZodString;
836
872
  level: z.ZodEnum<{
837
- error: "error";
838
873
  success: "success";
874
+ error: "error";
839
875
  info: "info";
840
876
  warn: "warn";
841
877
  }>;
@@ -858,6 +894,7 @@ export declare const CompressResultSchema: z.ZodObject<{
858
894
  has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
859
895
  pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
860
896
  pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
897
+ download_url: z.ZodOptional<z.ZodString>;
861
898
  filename: z.ZodOptional<z.ZodString>;
862
899
  name: z.ZodOptional<z.ZodString>;
863
900
  path: z.ZodOptional<z.ZodString>;
@@ -902,8 +939,8 @@ export declare const CompressionStatusSchema: z.ZodObject<{
902
939
  status: z.ZodEnum<{
903
940
  error: "error";
904
941
  running: "running";
905
- done: "done";
906
942
  idle: "idle";
943
+ done: "done";
907
944
  }>;
908
945
  session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
909
946
  focus_topic: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1040,10 +1077,6 @@ export declare const CompressionStatusSchema: z.ZodObject<{
1040
1077
  }, z.core.$strip>>>;
1041
1078
  assistant_name: z.ZodOptional<z.ZodString>;
1042
1079
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1043
- compression_reference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1044
- text: z.ZodString;
1045
- after_message_index: z.ZodNullable<z.ZodNumber>;
1046
- }, z.core.$strip>>>;
1047
1080
  focus_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1048
1081
  branched_from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1049
1082
  session_id: z.ZodString;
@@ -1053,16 +1086,55 @@ export declare const CompressionStatusSchema: z.ZodObject<{
1053
1086
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1054
1087
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1055
1088
  context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1089
+ plan_gauge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1090
+ id: z.ZodString;
1091
+ label: z.ZodString;
1092
+ used_bp: z.ZodNumber;
1093
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
1094
+ }, z.core.$strip>>>;
1095
+ show_reasoning: z.ZodOptional<z.ZodBoolean>;
1056
1096
  activity_phase: z.ZodOptional<z.ZodEnum<{
1057
- running: "running";
1058
- cancelled: "cancelled";
1059
1097
  stale: "stale";
1098
+ running: "running";
1060
1099
  failed: "failed";
1100
+ cancelled: "cancelled";
1061
1101
  completed: "completed";
1062
1102
  starting: "starting";
1063
1103
  waiting_for_approval: "waiting_for_approval";
1064
1104
  waiting_for_input: "waiting_for_input";
1065
1105
  }>>;
1106
+ todo_state: z.ZodOptional<z.ZodObject<{
1107
+ display_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
1108
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1109
+ text: z.ZodString;
1110
+ state: z.ZodEnum<{
1111
+ pending: "pending";
1112
+ cancelled: "cancelled";
1113
+ completed: "completed";
1114
+ in_progress: "in_progress";
1115
+ }>;
1116
+ }, z.core.$strip>>>;
1117
+ total_count: z.ZodOptional<z.ZodNumber>;
1118
+ completed_count: z.ZodOptional<z.ZodNumber>;
1119
+ pending_count: z.ZodOptional<z.ZodNumber>;
1120
+ in_progress_count: z.ZodOptional<z.ZodNumber>;
1121
+ cancelled_count: z.ZodOptional<z.ZodNumber>;
1122
+ session_id: z.ZodOptional<z.ZodString>;
1123
+ todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
1124
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1125
+ text: z.ZodOptional<z.ZodString>;
1126
+ content: z.ZodOptional<z.ZodString>;
1127
+ title: z.ZodOptional<z.ZodString>;
1128
+ status: z.ZodOptional<z.ZodString>;
1129
+ done: z.ZodOptional<z.ZodBoolean>;
1130
+ completed: z.ZodOptional<z.ZodBoolean>;
1131
+ }, z.core.$loose>>>;
1132
+ summary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1133
+ version: z.ZodOptional<z.ZodNumber>;
1134
+ ts: z.ZodOptional<z.ZodNumber>;
1135
+ source: z.ZodOptional<z.ZodString>;
1136
+ description: z.ZodOptional<z.ZodString>;
1137
+ }, z.core.$loose>>;
1066
1138
  source_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
1067
1139
  session_id: z.ZodString;
1068
1140
  tip_session_id: z.ZodString;
@@ -1145,6 +1217,7 @@ export declare const CompressionStatusSchema: z.ZodObject<{
1145
1217
  }, z.core.$strip>>;
1146
1218
  }, z.core.$strip>>;
1147
1219
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1220
+ download_url: z.ZodOptional<z.ZodString>;
1148
1221
  filename: z.ZodOptional<z.ZodString>;
1149
1222
  name: z.ZodOptional<z.ZodString>;
1150
1223
  path: z.ZodOptional<z.ZodString>;
@@ -1191,8 +1264,8 @@ export declare const CompressionStatusSchema: z.ZodObject<{
1191
1264
  unknown: "unknown";
1192
1265
  memory: "memory";
1193
1266
  shell: "shell";
1194
- read: "read";
1195
1267
  list: "list";
1268
+ read: "read";
1196
1269
  search: "search";
1197
1270
  web: "web";
1198
1271
  write: "write";
@@ -1257,9 +1330,9 @@ export declare const CompressionStatusSchema: z.ZodObject<{
1257
1330
  kind: z.ZodEnum<{
1258
1331
  file: "file";
1259
1332
  image: "image";
1333
+ pdf: "pdf";
1260
1334
  audio: "audio";
1261
1335
  video: "video";
1262
- pdf: "pdf";
1263
1336
  }>;
1264
1337
  }, z.core.$strip>>>;
1265
1338
  tool: z.ZodOptional<z.ZodObject<{
@@ -1286,8 +1359,8 @@ export declare const CompressionStatusSchema: z.ZodObject<{
1286
1359
  status: z.ZodEnum<{
1287
1360
  unknown: "unknown";
1288
1361
  running: "running";
1289
- cancelled: "cancelled";
1290
1362
  failed: "failed";
1363
+ cancelled: "cancelled";
1291
1364
  completed: "completed";
1292
1365
  attention: "attention";
1293
1366
  }>;
@@ -1308,8 +1381,8 @@ export declare const CompressionStatusSchema: z.ZodObject<{
1308
1381
  unknown: "unknown";
1309
1382
  memory: "memory";
1310
1383
  shell: "shell";
1311
- read: "read";
1312
1384
  list: "list";
1385
+ read: "read";
1313
1386
  search: "search";
1314
1387
  web: "web";
1315
1388
  write: "write";
@@ -1364,9 +1437,9 @@ export declare const CompressionStatusSchema: z.ZodObject<{
1364
1437
  kind: z.ZodEnum<{
1365
1438
  file: "file";
1366
1439
  image: "image";
1440
+ pdf: "pdf";
1367
1441
  audio: "audio";
1368
1442
  video: "video";
1369
- pdf: "pdf";
1370
1443
  }>;
1371
1444
  }, z.core.$strip>>>;
1372
1445
  terminal_state: z.ZodOptional<z.ZodString>;
@@ -1412,9 +1485,9 @@ export declare const CompressionStatusSchema: z.ZodObject<{
1412
1485
  kind: z.ZodEnum<{
1413
1486
  file: "file";
1414
1487
  image: "image";
1488
+ pdf: "pdf";
1415
1489
  audio: "audio";
1416
1490
  video: "video";
1417
- pdf: "pdf";
1418
1491
  }>;
1419
1492
  }, z.core.$strip>>>;
1420
1493
  _background_update: z.ZodOptional<z.ZodObject<{
@@ -1429,9 +1502,9 @@ export declare const CompressionStatusSchema: z.ZodObject<{
1429
1502
  summary: z.ZodString;
1430
1503
  lines: z.ZodArray<z.ZodObject<{
1431
1504
  kind: z.ZodEnum<{
1432
- command: "command";
1433
1505
  agent: "agent";
1434
1506
  other: "other";
1507
+ command: "command";
1435
1508
  }>;
1436
1509
  status: z.ZodEnum<{
1437
1510
  failed: "failed";
@@ -1519,8 +1592,8 @@ export declare const CompressionStatusSchema: z.ZodObject<{
1519
1592
  unknown: "unknown";
1520
1593
  memory: "memory";
1521
1594
  shell: "shell";
1522
- read: "read";
1523
1595
  list: "list";
1596
+ read: "read";
1524
1597
  search: "search";
1525
1598
  web: "web";
1526
1599
  write: "write";
@@ -1613,8 +1686,8 @@ export declare const CompressionStatusSchema: z.ZodObject<{
1613
1686
  notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
1614
1687
  key: z.ZodString;
1615
1688
  level: z.ZodEnum<{
1616
- error: "error";
1617
1689
  success: "success";
1690
+ error: "error";
1618
1691
  info: "info";
1619
1692
  warn: "warn";
1620
1693
  }>;
@@ -1637,6 +1710,7 @@ export declare const CompressionStatusSchema: z.ZodObject<{
1637
1710
  has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
1638
1711
  pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1639
1712
  pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1713
+ download_url: z.ZodOptional<z.ZodString>;
1640
1714
  filename: z.ZodOptional<z.ZodString>;
1641
1715
  name: z.ZodOptional<z.ZodString>;
1642
1716
  path: z.ZodOptional<z.ZodString>;
@@ -1858,10 +1932,6 @@ export declare const CompressionRecoveryStartSchema: z.ZodObject<{
1858
1932
  }, z.core.$strip>>>;
1859
1933
  assistant_name: z.ZodOptional<z.ZodString>;
1860
1934
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1861
- compression_reference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1862
- text: z.ZodString;
1863
- after_message_index: z.ZodNullable<z.ZodNumber>;
1864
- }, z.core.$strip>>>;
1865
1935
  focus_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1866
1936
  branched_from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1867
1937
  session_id: z.ZodString;
@@ -1871,16 +1941,55 @@ export declare const CompressionRecoveryStartSchema: z.ZodObject<{
1871
1941
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1872
1942
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1873
1943
  context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1944
+ plan_gauge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1945
+ id: z.ZodString;
1946
+ label: z.ZodString;
1947
+ used_bp: z.ZodNumber;
1948
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
1949
+ }, z.core.$strip>>>;
1950
+ show_reasoning: z.ZodOptional<z.ZodBoolean>;
1874
1951
  activity_phase: z.ZodOptional<z.ZodEnum<{
1875
- running: "running";
1876
- cancelled: "cancelled";
1877
1952
  stale: "stale";
1953
+ running: "running";
1878
1954
  failed: "failed";
1955
+ cancelled: "cancelled";
1879
1956
  completed: "completed";
1880
1957
  starting: "starting";
1881
1958
  waiting_for_approval: "waiting_for_approval";
1882
1959
  waiting_for_input: "waiting_for_input";
1883
1960
  }>>;
1961
+ todo_state: z.ZodOptional<z.ZodObject<{
1962
+ display_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
1963
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1964
+ text: z.ZodString;
1965
+ state: z.ZodEnum<{
1966
+ pending: "pending";
1967
+ cancelled: "cancelled";
1968
+ completed: "completed";
1969
+ in_progress: "in_progress";
1970
+ }>;
1971
+ }, z.core.$strip>>>;
1972
+ total_count: z.ZodOptional<z.ZodNumber>;
1973
+ completed_count: z.ZodOptional<z.ZodNumber>;
1974
+ pending_count: z.ZodOptional<z.ZodNumber>;
1975
+ in_progress_count: z.ZodOptional<z.ZodNumber>;
1976
+ cancelled_count: z.ZodOptional<z.ZodNumber>;
1977
+ session_id: z.ZodOptional<z.ZodString>;
1978
+ todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
1979
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1980
+ text: z.ZodOptional<z.ZodString>;
1981
+ content: z.ZodOptional<z.ZodString>;
1982
+ title: z.ZodOptional<z.ZodString>;
1983
+ status: z.ZodOptional<z.ZodString>;
1984
+ done: z.ZodOptional<z.ZodBoolean>;
1985
+ completed: z.ZodOptional<z.ZodBoolean>;
1986
+ }, z.core.$loose>>>;
1987
+ summary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1988
+ version: z.ZodOptional<z.ZodNumber>;
1989
+ ts: z.ZodOptional<z.ZodNumber>;
1990
+ source: z.ZodOptional<z.ZodString>;
1991
+ description: z.ZodOptional<z.ZodString>;
1992
+ }, z.core.$loose>>;
1884
1993
  source_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
1885
1994
  session_id: z.ZodString;
1886
1995
  tip_session_id: z.ZodString;
@@ -1963,6 +2072,7 @@ export declare const CompressionRecoveryStartSchema: z.ZodObject<{
1963
2072
  }, z.core.$strip>>;
1964
2073
  }, z.core.$strip>>;
1965
2074
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
2075
+ download_url: z.ZodOptional<z.ZodString>;
1966
2076
  filename: z.ZodOptional<z.ZodString>;
1967
2077
  name: z.ZodOptional<z.ZodString>;
1968
2078
  path: z.ZodOptional<z.ZodString>;
@@ -2009,8 +2119,8 @@ export declare const CompressionRecoveryStartSchema: z.ZodObject<{
2009
2119
  unknown: "unknown";
2010
2120
  memory: "memory";
2011
2121
  shell: "shell";
2012
- read: "read";
2013
2122
  list: "list";
2123
+ read: "read";
2014
2124
  search: "search";
2015
2125
  web: "web";
2016
2126
  write: "write";
@@ -2075,9 +2185,9 @@ export declare const CompressionRecoveryStartSchema: z.ZodObject<{
2075
2185
  kind: z.ZodEnum<{
2076
2186
  file: "file";
2077
2187
  image: "image";
2188
+ pdf: "pdf";
2078
2189
  audio: "audio";
2079
2190
  video: "video";
2080
- pdf: "pdf";
2081
2191
  }>;
2082
2192
  }, z.core.$strip>>>;
2083
2193
  tool: z.ZodOptional<z.ZodObject<{
@@ -2104,8 +2214,8 @@ export declare const CompressionRecoveryStartSchema: z.ZodObject<{
2104
2214
  status: z.ZodEnum<{
2105
2215
  unknown: "unknown";
2106
2216
  running: "running";
2107
- cancelled: "cancelled";
2108
2217
  failed: "failed";
2218
+ cancelled: "cancelled";
2109
2219
  completed: "completed";
2110
2220
  attention: "attention";
2111
2221
  }>;
@@ -2126,8 +2236,8 @@ export declare const CompressionRecoveryStartSchema: z.ZodObject<{
2126
2236
  unknown: "unknown";
2127
2237
  memory: "memory";
2128
2238
  shell: "shell";
2129
- read: "read";
2130
2239
  list: "list";
2240
+ read: "read";
2131
2241
  search: "search";
2132
2242
  web: "web";
2133
2243
  write: "write";
@@ -2182,9 +2292,9 @@ export declare const CompressionRecoveryStartSchema: z.ZodObject<{
2182
2292
  kind: z.ZodEnum<{
2183
2293
  file: "file";
2184
2294
  image: "image";
2295
+ pdf: "pdf";
2185
2296
  audio: "audio";
2186
2297
  video: "video";
2187
- pdf: "pdf";
2188
2298
  }>;
2189
2299
  }, z.core.$strip>>>;
2190
2300
  terminal_state: z.ZodOptional<z.ZodString>;
@@ -2230,9 +2340,9 @@ export declare const CompressionRecoveryStartSchema: z.ZodObject<{
2230
2340
  kind: z.ZodEnum<{
2231
2341
  file: "file";
2232
2342
  image: "image";
2343
+ pdf: "pdf";
2233
2344
  audio: "audio";
2234
2345
  video: "video";
2235
- pdf: "pdf";
2236
2346
  }>;
2237
2347
  }, z.core.$strip>>>;
2238
2348
  _background_update: z.ZodOptional<z.ZodObject<{
@@ -2247,9 +2357,9 @@ export declare const CompressionRecoveryStartSchema: z.ZodObject<{
2247
2357
  summary: z.ZodString;
2248
2358
  lines: z.ZodArray<z.ZodObject<{
2249
2359
  kind: z.ZodEnum<{
2250
- command: "command";
2251
2360
  agent: "agent";
2252
2361
  other: "other";
2362
+ command: "command";
2253
2363
  }>;
2254
2364
  status: z.ZodEnum<{
2255
2365
  failed: "failed";
@@ -2337,8 +2447,8 @@ export declare const CompressionRecoveryStartSchema: z.ZodObject<{
2337
2447
  unknown: "unknown";
2338
2448
  memory: "memory";
2339
2449
  shell: "shell";
2340
- read: "read";
2341
2450
  list: "list";
2451
+ read: "read";
2342
2452
  search: "search";
2343
2453
  web: "web";
2344
2454
  write: "write";
@@ -2431,8 +2541,8 @@ export declare const CompressionRecoveryStartSchema: z.ZodObject<{
2431
2541
  notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
2432
2542
  key: z.ZodString;
2433
2543
  level: z.ZodEnum<{
2434
- error: "error";
2435
2544
  success: "success";
2545
+ error: "error";
2436
2546
  info: "info";
2437
2547
  warn: "warn";
2438
2548
  }>;
@@ -2455,6 +2565,7 @@ export declare const CompressionRecoveryStartSchema: z.ZodObject<{
2455
2565
  has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
2456
2566
  pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2457
2567
  pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
2568
+ download_url: z.ZodOptional<z.ZodString>;
2458
2569
  filename: z.ZodOptional<z.ZodString>;
2459
2570
  name: z.ZodOptional<z.ZodString>;
2460
2571
  path: z.ZodOptional<z.ZodString>;
@@ -2813,12 +2924,16 @@ export declare const sessionsContract: {
2813
2924
  share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2814
2925
  worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2815
2926
  match_type: z.ZodOptional<z.ZodEnum<{
2816
- content: "content";
2817
2927
  title: "title";
2928
+ content: "content";
2818
2929
  metadata: "metadata";
2819
2930
  }>>;
2820
2931
  match_preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2821
2932
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2933
+ sidebar_group: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2934
+ pinned: "pinned";
2935
+ recent: "recent";
2936
+ }>>>;
2822
2937
  source_reference: z.ZodObject<{
2823
2938
  session_id: z.ZodString;
2824
2939
  tip_session_id: z.ZodString;
@@ -2965,12 +3080,16 @@ export declare const sessionsContract: {
2965
3080
  share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2966
3081
  worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2967
3082
  match_type: z.ZodOptional<z.ZodEnum<{
2968
- content: "content";
2969
3083
  title: "title";
3084
+ content: "content";
2970
3085
  metadata: "metadata";
2971
3086
  }>>;
2972
3087
  match_preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2973
3088
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3089
+ sidebar_group: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3090
+ pinned: "pinned";
3091
+ recent: "recent";
3092
+ }>>>;
2974
3093
  }, z.core.$loose>>;
2975
3094
  sidebar_reference_sessions: z.ZodArray<z.ZodObject<{
2976
3095
  context_used_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -3096,12 +3215,16 @@ export declare const sessionsContract: {
3096
3215
  share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3097
3216
  worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3098
3217
  match_type: z.ZodOptional<z.ZodEnum<{
3099
- content: "content";
3100
3218
  title: "title";
3219
+ content: "content";
3101
3220
  metadata: "metadata";
3102
3221
  }>>;
3103
3222
  match_preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3104
3223
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3224
+ sidebar_group: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3225
+ pinned: "pinned";
3226
+ recent: "recent";
3227
+ }>>>;
3105
3228
  }, z.core.$loose>>;
3106
3229
  server_time: z.ZodNumber;
3107
3230
  server_tz: z.ZodString;
@@ -3119,6 +3242,13 @@ export declare const sessionsContract: {
3119
3242
  scheduled_sessions_truncated: z.ZodBoolean;
3120
3243
  webhook_session_count: z.ZodNumber;
3121
3244
  webhook_sessions_truncated: z.ZodBoolean;
3245
+ sidebar_groups: z.ZodArray<z.ZodObject<{
3246
+ kind: z.ZodEnum<{
3247
+ pinned: "pinned";
3248
+ recent: "recent";
3249
+ }>;
3250
+ title: z.ZodString;
3251
+ }, z.core.$strip>>;
3122
3252
  agent_storage: z.ZodObject<{
3123
3253
  state: z.ZodEnum<{
3124
3254
  unavailable: "unavailable";
@@ -3270,12 +3400,16 @@ export declare const sessionsContract: {
3270
3400
  share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3271
3401
  worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3272
3402
  match_type: z.ZodOptional<z.ZodEnum<{
3273
- content: "content";
3274
3403
  title: "title";
3404
+ content: "content";
3275
3405
  metadata: "metadata";
3276
3406
  }>>;
3277
3407
  match_preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3278
3408
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3409
+ sidebar_group: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3410
+ pinned: "pinned";
3411
+ recent: "recent";
3412
+ }>>>;
3279
3413
  }, z.core.$loose>>;
3280
3414
  query: z.ZodOptional<z.ZodString>;
3281
3415
  count: z.ZodOptional<z.ZodNumber>;
@@ -3454,10 +3588,6 @@ export declare const sessionsContract: {
3454
3588
  }, z.core.$strip>>>;
3455
3589
  assistant_name: z.ZodOptional<z.ZodString>;
3456
3590
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3457
- compression_reference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3458
- text: z.ZodString;
3459
- after_message_index: z.ZodNullable<z.ZodNumber>;
3460
- }, z.core.$strip>>>;
3461
3591
  focus_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3462
3592
  branched_from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3463
3593
  session_id: z.ZodString;
@@ -3467,16 +3597,55 @@ export declare const sessionsContract: {
3467
3597
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3468
3598
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3469
3599
  context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3600
+ plan_gauge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3601
+ id: z.ZodString;
3602
+ label: z.ZodString;
3603
+ used_bp: z.ZodNumber;
3604
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
3605
+ }, z.core.$strip>>>;
3606
+ show_reasoning: z.ZodOptional<z.ZodBoolean>;
3470
3607
  activity_phase: z.ZodOptional<z.ZodEnum<{
3471
- running: "running";
3472
- cancelled: "cancelled";
3473
3608
  stale: "stale";
3609
+ running: "running";
3474
3610
  failed: "failed";
3611
+ cancelled: "cancelled";
3475
3612
  completed: "completed";
3476
3613
  starting: "starting";
3477
3614
  waiting_for_approval: "waiting_for_approval";
3478
3615
  waiting_for_input: "waiting_for_input";
3479
3616
  }>>;
3617
+ todo_state: z.ZodOptional<z.ZodObject<{
3618
+ display_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
3619
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
3620
+ text: z.ZodString;
3621
+ state: z.ZodEnum<{
3622
+ pending: "pending";
3623
+ cancelled: "cancelled";
3624
+ completed: "completed";
3625
+ in_progress: "in_progress";
3626
+ }>;
3627
+ }, z.core.$strip>>>;
3628
+ total_count: z.ZodOptional<z.ZodNumber>;
3629
+ completed_count: z.ZodOptional<z.ZodNumber>;
3630
+ pending_count: z.ZodOptional<z.ZodNumber>;
3631
+ in_progress_count: z.ZodOptional<z.ZodNumber>;
3632
+ cancelled_count: z.ZodOptional<z.ZodNumber>;
3633
+ session_id: z.ZodOptional<z.ZodString>;
3634
+ todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
3635
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
3636
+ text: z.ZodOptional<z.ZodString>;
3637
+ content: z.ZodOptional<z.ZodString>;
3638
+ title: z.ZodOptional<z.ZodString>;
3639
+ status: z.ZodOptional<z.ZodString>;
3640
+ done: z.ZodOptional<z.ZodBoolean>;
3641
+ completed: z.ZodOptional<z.ZodBoolean>;
3642
+ }, z.core.$loose>>>;
3643
+ summary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3644
+ version: z.ZodOptional<z.ZodNumber>;
3645
+ ts: z.ZodOptional<z.ZodNumber>;
3646
+ source: z.ZodOptional<z.ZodString>;
3647
+ description: z.ZodOptional<z.ZodString>;
3648
+ }, z.core.$loose>>;
3480
3649
  source_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
3481
3650
  session_id: z.ZodString;
3482
3651
  tip_session_id: z.ZodString;
@@ -3559,6 +3728,7 @@ export declare const sessionsContract: {
3559
3728
  }, z.core.$strip>>;
3560
3729
  }, z.core.$strip>>;
3561
3730
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
3731
+ download_url: z.ZodOptional<z.ZodString>;
3562
3732
  filename: z.ZodOptional<z.ZodString>;
3563
3733
  name: z.ZodOptional<z.ZodString>;
3564
3734
  path: z.ZodOptional<z.ZodString>;
@@ -3605,8 +3775,8 @@ export declare const sessionsContract: {
3605
3775
  unknown: "unknown";
3606
3776
  memory: "memory";
3607
3777
  shell: "shell";
3608
- read: "read";
3609
3778
  list: "list";
3779
+ read: "read";
3610
3780
  search: "search";
3611
3781
  web: "web";
3612
3782
  write: "write";
@@ -3671,9 +3841,9 @@ export declare const sessionsContract: {
3671
3841
  kind: z.ZodEnum<{
3672
3842
  file: "file";
3673
3843
  image: "image";
3844
+ pdf: "pdf";
3674
3845
  audio: "audio";
3675
3846
  video: "video";
3676
- pdf: "pdf";
3677
3847
  }>;
3678
3848
  }, z.core.$strip>>>;
3679
3849
  tool: z.ZodOptional<z.ZodObject<{
@@ -3700,8 +3870,8 @@ export declare const sessionsContract: {
3700
3870
  status: z.ZodEnum<{
3701
3871
  unknown: "unknown";
3702
3872
  running: "running";
3703
- cancelled: "cancelled";
3704
3873
  failed: "failed";
3874
+ cancelled: "cancelled";
3705
3875
  completed: "completed";
3706
3876
  attention: "attention";
3707
3877
  }>;
@@ -3722,8 +3892,8 @@ export declare const sessionsContract: {
3722
3892
  unknown: "unknown";
3723
3893
  memory: "memory";
3724
3894
  shell: "shell";
3725
- read: "read";
3726
3895
  list: "list";
3896
+ read: "read";
3727
3897
  search: "search";
3728
3898
  web: "web";
3729
3899
  write: "write";
@@ -3778,9 +3948,9 @@ export declare const sessionsContract: {
3778
3948
  kind: z.ZodEnum<{
3779
3949
  file: "file";
3780
3950
  image: "image";
3951
+ pdf: "pdf";
3781
3952
  audio: "audio";
3782
3953
  video: "video";
3783
- pdf: "pdf";
3784
3954
  }>;
3785
3955
  }, z.core.$strip>>>;
3786
3956
  terminal_state: z.ZodOptional<z.ZodString>;
@@ -3826,9 +3996,9 @@ export declare const sessionsContract: {
3826
3996
  kind: z.ZodEnum<{
3827
3997
  file: "file";
3828
3998
  image: "image";
3999
+ pdf: "pdf";
3829
4000
  audio: "audio";
3830
4001
  video: "video";
3831
- pdf: "pdf";
3832
4002
  }>;
3833
4003
  }, z.core.$strip>>>;
3834
4004
  _background_update: z.ZodOptional<z.ZodObject<{
@@ -3843,9 +4013,9 @@ export declare const sessionsContract: {
3843
4013
  summary: z.ZodString;
3844
4014
  lines: z.ZodArray<z.ZodObject<{
3845
4015
  kind: z.ZodEnum<{
3846
- command: "command";
3847
4016
  agent: "agent";
3848
4017
  other: "other";
4018
+ command: "command";
3849
4019
  }>;
3850
4020
  status: z.ZodEnum<{
3851
4021
  failed: "failed";
@@ -3933,8 +4103,8 @@ export declare const sessionsContract: {
3933
4103
  unknown: "unknown";
3934
4104
  memory: "memory";
3935
4105
  shell: "shell";
3936
- read: "read";
3937
4106
  list: "list";
4107
+ read: "read";
3938
4108
  search: "search";
3939
4109
  web: "web";
3940
4110
  write: "write";
@@ -4027,8 +4197,8 @@ export declare const sessionsContract: {
4027
4197
  notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
4028
4198
  key: z.ZodString;
4029
4199
  level: z.ZodEnum<{
4030
- error: "error";
4031
4200
  success: "success";
4201
+ error: "error";
4032
4202
  info: "info";
4033
4203
  warn: "warn";
4034
4204
  }>;
@@ -4051,6 +4221,7 @@ export declare const sessionsContract: {
4051
4221
  has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
4052
4222
  pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4053
4223
  pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
4224
+ download_url: z.ZodOptional<z.ZodString>;
4054
4225
  filename: z.ZodOptional<z.ZodString>;
4055
4226
  name: z.ZodOptional<z.ZodString>;
4056
4227
  path: z.ZodOptional<z.ZodString>;
@@ -4071,10 +4242,10 @@ export declare const sessionsContract: {
4071
4242
  session_id: z.ZodString;
4072
4243
  }, z.core.$strip>, z.ZodObject<{
4073
4244
  activity_phase: z.ZodOptional<z.ZodEnum<{
4074
- running: "running";
4075
- cancelled: "cancelled";
4076
4245
  stale: "stale";
4246
+ running: "running";
4077
4247
  failed: "failed";
4248
+ cancelled: "cancelled";
4078
4249
  completed: "completed";
4079
4250
  starting: "starting";
4080
4251
  waiting_for_approval: "waiting_for_approval";
@@ -4176,10 +4347,10 @@ export declare const sessionsContract: {
4176
4347
  }, z.core.$strip>, z.ZodObject<{
4177
4348
  available: z.ZodBoolean;
4178
4349
  reason: z.ZodNullable<z.ZodEnum<{
4350
+ unavailable: "unavailable";
4351
+ changed: "changed";
4179
4352
  not_built: "not_built";
4180
4353
  unsupported: "unsupported";
4181
- changed: "changed";
4182
- unavailable: "unavailable";
4183
4354
  }>>;
4184
4355
  used_tokens: z.ZodNullable<z.ZodNumber>;
4185
4356
  window_tokens: z.ZodNullable<z.ZodNumber>;
@@ -4218,8 +4389,8 @@ export declare const sessionsContract: {
4218
4389
  characters: z.ZodNullable<z.ZodNumber>;
4219
4390
  tokens: z.ZodNullable<z.ZodNumber>;
4220
4391
  status: z.ZodEnum<{
4221
- truncated: "truncated";
4222
4392
  unknown: "unknown";
4393
+ truncated: "truncated";
4223
4394
  loaded: "loaded";
4224
4395
  flagged: "flagged";
4225
4396
  shadowed: "shadowed";
@@ -4237,6 +4408,12 @@ export declare const sessionsContract: {
4237
4408
  usage: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4238
4409
  session_id: z.ZodString;
4239
4410
  }, z.core.$strip>, z.ZodObject<{
4411
+ plan_gauge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4412
+ id: z.ZodString;
4413
+ label: z.ZodString;
4414
+ used_bp: z.ZodNumber;
4415
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
4416
+ }, z.core.$strip>>>;
4240
4417
  input_tokens: z.ZodOptional<z.ZodNumber>;
4241
4418
  output_tokens: z.ZodOptional<z.ZodNumber>;
4242
4419
  total_tokens: z.ZodOptional<z.ZodNumber>;
@@ -4400,10 +4577,6 @@ export declare const sessionsContract: {
4400
4577
  }, z.core.$strip>>>;
4401
4578
  assistant_name: z.ZodOptional<z.ZodString>;
4402
4579
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4403
- compression_reference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4404
- text: z.ZodString;
4405
- after_message_index: z.ZodNullable<z.ZodNumber>;
4406
- }, z.core.$strip>>>;
4407
4580
  focus_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4408
4581
  branched_from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4409
4582
  session_id: z.ZodString;
@@ -4413,16 +4586,55 @@ export declare const sessionsContract: {
4413
4586
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4414
4587
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4415
4588
  context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4589
+ plan_gauge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4590
+ id: z.ZodString;
4591
+ label: z.ZodString;
4592
+ used_bp: z.ZodNumber;
4593
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
4594
+ }, z.core.$strip>>>;
4595
+ show_reasoning: z.ZodOptional<z.ZodBoolean>;
4416
4596
  activity_phase: z.ZodOptional<z.ZodEnum<{
4417
- running: "running";
4418
- cancelled: "cancelled";
4419
4597
  stale: "stale";
4598
+ running: "running";
4420
4599
  failed: "failed";
4600
+ cancelled: "cancelled";
4421
4601
  completed: "completed";
4422
4602
  starting: "starting";
4423
4603
  waiting_for_approval: "waiting_for_approval";
4424
4604
  waiting_for_input: "waiting_for_input";
4425
4605
  }>>;
4606
+ todo_state: z.ZodOptional<z.ZodObject<{
4607
+ display_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
4608
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
4609
+ text: z.ZodString;
4610
+ state: z.ZodEnum<{
4611
+ pending: "pending";
4612
+ cancelled: "cancelled";
4613
+ completed: "completed";
4614
+ in_progress: "in_progress";
4615
+ }>;
4616
+ }, z.core.$strip>>>;
4617
+ total_count: z.ZodOptional<z.ZodNumber>;
4618
+ completed_count: z.ZodOptional<z.ZodNumber>;
4619
+ pending_count: z.ZodOptional<z.ZodNumber>;
4620
+ in_progress_count: z.ZodOptional<z.ZodNumber>;
4621
+ cancelled_count: z.ZodOptional<z.ZodNumber>;
4622
+ session_id: z.ZodOptional<z.ZodString>;
4623
+ todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
4624
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
4625
+ text: z.ZodOptional<z.ZodString>;
4626
+ content: z.ZodOptional<z.ZodString>;
4627
+ title: z.ZodOptional<z.ZodString>;
4628
+ status: z.ZodOptional<z.ZodString>;
4629
+ done: z.ZodOptional<z.ZodBoolean>;
4630
+ completed: z.ZodOptional<z.ZodBoolean>;
4631
+ }, z.core.$loose>>>;
4632
+ summary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4633
+ version: z.ZodOptional<z.ZodNumber>;
4634
+ ts: z.ZodOptional<z.ZodNumber>;
4635
+ source: z.ZodOptional<z.ZodString>;
4636
+ description: z.ZodOptional<z.ZodString>;
4637
+ }, z.core.$loose>>;
4426
4638
  source_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
4427
4639
  session_id: z.ZodString;
4428
4640
  tip_session_id: z.ZodString;
@@ -4505,6 +4717,7 @@ export declare const sessionsContract: {
4505
4717
  }, z.core.$strip>>;
4506
4718
  }, z.core.$strip>>;
4507
4719
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
4720
+ download_url: z.ZodOptional<z.ZodString>;
4508
4721
  filename: z.ZodOptional<z.ZodString>;
4509
4722
  name: z.ZodOptional<z.ZodString>;
4510
4723
  path: z.ZodOptional<z.ZodString>;
@@ -4551,8 +4764,8 @@ export declare const sessionsContract: {
4551
4764
  unknown: "unknown";
4552
4765
  memory: "memory";
4553
4766
  shell: "shell";
4554
- read: "read";
4555
4767
  list: "list";
4768
+ read: "read";
4556
4769
  search: "search";
4557
4770
  web: "web";
4558
4771
  write: "write";
@@ -4617,9 +4830,9 @@ export declare const sessionsContract: {
4617
4830
  kind: z.ZodEnum<{
4618
4831
  file: "file";
4619
4832
  image: "image";
4833
+ pdf: "pdf";
4620
4834
  audio: "audio";
4621
4835
  video: "video";
4622
- pdf: "pdf";
4623
4836
  }>;
4624
4837
  }, z.core.$strip>>>;
4625
4838
  tool: z.ZodOptional<z.ZodObject<{
@@ -4646,8 +4859,8 @@ export declare const sessionsContract: {
4646
4859
  status: z.ZodEnum<{
4647
4860
  unknown: "unknown";
4648
4861
  running: "running";
4649
- cancelled: "cancelled";
4650
4862
  failed: "failed";
4863
+ cancelled: "cancelled";
4651
4864
  completed: "completed";
4652
4865
  attention: "attention";
4653
4866
  }>;
@@ -4668,8 +4881,8 @@ export declare const sessionsContract: {
4668
4881
  unknown: "unknown";
4669
4882
  memory: "memory";
4670
4883
  shell: "shell";
4671
- read: "read";
4672
4884
  list: "list";
4885
+ read: "read";
4673
4886
  search: "search";
4674
4887
  web: "web";
4675
4888
  write: "write";
@@ -4724,9 +4937,9 @@ export declare const sessionsContract: {
4724
4937
  kind: z.ZodEnum<{
4725
4938
  file: "file";
4726
4939
  image: "image";
4940
+ pdf: "pdf";
4727
4941
  audio: "audio";
4728
4942
  video: "video";
4729
- pdf: "pdf";
4730
4943
  }>;
4731
4944
  }, z.core.$strip>>>;
4732
4945
  terminal_state: z.ZodOptional<z.ZodString>;
@@ -4772,9 +4985,9 @@ export declare const sessionsContract: {
4772
4985
  kind: z.ZodEnum<{
4773
4986
  file: "file";
4774
4987
  image: "image";
4988
+ pdf: "pdf";
4775
4989
  audio: "audio";
4776
4990
  video: "video";
4777
- pdf: "pdf";
4778
4991
  }>;
4779
4992
  }, z.core.$strip>>>;
4780
4993
  _background_update: z.ZodOptional<z.ZodObject<{
@@ -4789,9 +5002,9 @@ export declare const sessionsContract: {
4789
5002
  summary: z.ZodString;
4790
5003
  lines: z.ZodArray<z.ZodObject<{
4791
5004
  kind: z.ZodEnum<{
4792
- command: "command";
4793
5005
  agent: "agent";
4794
5006
  other: "other";
5007
+ command: "command";
4795
5008
  }>;
4796
5009
  status: z.ZodEnum<{
4797
5010
  failed: "failed";
@@ -4879,8 +5092,8 @@ export declare const sessionsContract: {
4879
5092
  unknown: "unknown";
4880
5093
  memory: "memory";
4881
5094
  shell: "shell";
4882
- read: "read";
4883
5095
  list: "list";
5096
+ read: "read";
4884
5097
  search: "search";
4885
5098
  web: "web";
4886
5099
  write: "write";
@@ -4973,8 +5186,8 @@ export declare const sessionsContract: {
4973
5186
  notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
4974
5187
  key: z.ZodString;
4975
5188
  level: z.ZodEnum<{
4976
- error: "error";
4977
5189
  success: "success";
5190
+ error: "error";
4978
5191
  info: "info";
4979
5192
  warn: "warn";
4980
5193
  }>;
@@ -4997,6 +5210,7 @@ export declare const sessionsContract: {
4997
5210
  has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
4998
5211
  pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4999
5212
  pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
5213
+ download_url: z.ZodOptional<z.ZodString>;
5000
5214
  filename: z.ZodOptional<z.ZodString>;
5001
5215
  name: z.ZodOptional<z.ZodString>;
5002
5216
  path: z.ZodOptional<z.ZodString>;
@@ -5169,10 +5383,6 @@ export declare const sessionsContract: {
5169
5383
  }, z.core.$strip>>>;
5170
5384
  assistant_name: z.ZodOptional<z.ZodString>;
5171
5385
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5172
- compression_reference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5173
- text: z.ZodString;
5174
- after_message_index: z.ZodNullable<z.ZodNumber>;
5175
- }, z.core.$strip>>>;
5176
5386
  focus_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5177
5387
  branched_from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5178
5388
  session_id: z.ZodString;
@@ -5182,16 +5392,55 @@ export declare const sessionsContract: {
5182
5392
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5183
5393
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5184
5394
  context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5395
+ plan_gauge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5396
+ id: z.ZodString;
5397
+ label: z.ZodString;
5398
+ used_bp: z.ZodNumber;
5399
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
5400
+ }, z.core.$strip>>>;
5401
+ show_reasoning: z.ZodOptional<z.ZodBoolean>;
5185
5402
  activity_phase: z.ZodOptional<z.ZodEnum<{
5186
- running: "running";
5187
- cancelled: "cancelled";
5188
5403
  stale: "stale";
5404
+ running: "running";
5189
5405
  failed: "failed";
5406
+ cancelled: "cancelled";
5190
5407
  completed: "completed";
5191
5408
  starting: "starting";
5192
5409
  waiting_for_approval: "waiting_for_approval";
5193
5410
  waiting_for_input: "waiting_for_input";
5194
5411
  }>>;
5412
+ todo_state: z.ZodOptional<z.ZodObject<{
5413
+ display_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
5414
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
5415
+ text: z.ZodString;
5416
+ state: z.ZodEnum<{
5417
+ pending: "pending";
5418
+ cancelled: "cancelled";
5419
+ completed: "completed";
5420
+ in_progress: "in_progress";
5421
+ }>;
5422
+ }, z.core.$strip>>>;
5423
+ total_count: z.ZodOptional<z.ZodNumber>;
5424
+ completed_count: z.ZodOptional<z.ZodNumber>;
5425
+ pending_count: z.ZodOptional<z.ZodNumber>;
5426
+ in_progress_count: z.ZodOptional<z.ZodNumber>;
5427
+ cancelled_count: z.ZodOptional<z.ZodNumber>;
5428
+ session_id: z.ZodOptional<z.ZodString>;
5429
+ todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
5430
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
5431
+ text: z.ZodOptional<z.ZodString>;
5432
+ content: z.ZodOptional<z.ZodString>;
5433
+ title: z.ZodOptional<z.ZodString>;
5434
+ status: z.ZodOptional<z.ZodString>;
5435
+ done: z.ZodOptional<z.ZodBoolean>;
5436
+ completed: z.ZodOptional<z.ZodBoolean>;
5437
+ }, z.core.$loose>>>;
5438
+ summary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5439
+ version: z.ZodOptional<z.ZodNumber>;
5440
+ ts: z.ZodOptional<z.ZodNumber>;
5441
+ source: z.ZodOptional<z.ZodString>;
5442
+ description: z.ZodOptional<z.ZodString>;
5443
+ }, z.core.$loose>>;
5195
5444
  source_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
5196
5445
  session_id: z.ZodString;
5197
5446
  tip_session_id: z.ZodString;
@@ -5274,6 +5523,7 @@ export declare const sessionsContract: {
5274
5523
  }, z.core.$strip>>;
5275
5524
  }, z.core.$strip>>;
5276
5525
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
5526
+ download_url: z.ZodOptional<z.ZodString>;
5277
5527
  filename: z.ZodOptional<z.ZodString>;
5278
5528
  name: z.ZodOptional<z.ZodString>;
5279
5529
  path: z.ZodOptional<z.ZodString>;
@@ -5320,8 +5570,8 @@ export declare const sessionsContract: {
5320
5570
  unknown: "unknown";
5321
5571
  memory: "memory";
5322
5572
  shell: "shell";
5323
- read: "read";
5324
5573
  list: "list";
5574
+ read: "read";
5325
5575
  search: "search";
5326
5576
  web: "web";
5327
5577
  write: "write";
@@ -5386,9 +5636,9 @@ export declare const sessionsContract: {
5386
5636
  kind: z.ZodEnum<{
5387
5637
  file: "file";
5388
5638
  image: "image";
5639
+ pdf: "pdf";
5389
5640
  audio: "audio";
5390
5641
  video: "video";
5391
- pdf: "pdf";
5392
5642
  }>;
5393
5643
  }, z.core.$strip>>>;
5394
5644
  tool: z.ZodOptional<z.ZodObject<{
@@ -5415,8 +5665,8 @@ export declare const sessionsContract: {
5415
5665
  status: z.ZodEnum<{
5416
5666
  unknown: "unknown";
5417
5667
  running: "running";
5418
- cancelled: "cancelled";
5419
5668
  failed: "failed";
5669
+ cancelled: "cancelled";
5420
5670
  completed: "completed";
5421
5671
  attention: "attention";
5422
5672
  }>;
@@ -5437,8 +5687,8 @@ export declare const sessionsContract: {
5437
5687
  unknown: "unknown";
5438
5688
  memory: "memory";
5439
5689
  shell: "shell";
5440
- read: "read";
5441
5690
  list: "list";
5691
+ read: "read";
5442
5692
  search: "search";
5443
5693
  web: "web";
5444
5694
  write: "write";
@@ -5493,9 +5743,9 @@ export declare const sessionsContract: {
5493
5743
  kind: z.ZodEnum<{
5494
5744
  file: "file";
5495
5745
  image: "image";
5746
+ pdf: "pdf";
5496
5747
  audio: "audio";
5497
5748
  video: "video";
5498
- pdf: "pdf";
5499
5749
  }>;
5500
5750
  }, z.core.$strip>>>;
5501
5751
  terminal_state: z.ZodOptional<z.ZodString>;
@@ -5541,9 +5791,9 @@ export declare const sessionsContract: {
5541
5791
  kind: z.ZodEnum<{
5542
5792
  file: "file";
5543
5793
  image: "image";
5794
+ pdf: "pdf";
5544
5795
  audio: "audio";
5545
5796
  video: "video";
5546
- pdf: "pdf";
5547
5797
  }>;
5548
5798
  }, z.core.$strip>>>;
5549
5799
  _background_update: z.ZodOptional<z.ZodObject<{
@@ -5558,9 +5808,9 @@ export declare const sessionsContract: {
5558
5808
  summary: z.ZodString;
5559
5809
  lines: z.ZodArray<z.ZodObject<{
5560
5810
  kind: z.ZodEnum<{
5561
- command: "command";
5562
5811
  agent: "agent";
5563
5812
  other: "other";
5813
+ command: "command";
5564
5814
  }>;
5565
5815
  status: z.ZodEnum<{
5566
5816
  failed: "failed";
@@ -5648,8 +5898,8 @@ export declare const sessionsContract: {
5648
5898
  unknown: "unknown";
5649
5899
  memory: "memory";
5650
5900
  shell: "shell";
5651
- read: "read";
5652
5901
  list: "list";
5902
+ read: "read";
5653
5903
  search: "search";
5654
5904
  web: "web";
5655
5905
  write: "write";
@@ -5742,8 +5992,8 @@ export declare const sessionsContract: {
5742
5992
  notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
5743
5993
  key: z.ZodString;
5744
5994
  level: z.ZodEnum<{
5745
- error: "error";
5746
5995
  success: "success";
5996
+ error: "error";
5747
5997
  info: "info";
5748
5998
  warn: "warn";
5749
5999
  }>;
@@ -5766,6 +6016,7 @@ export declare const sessionsContract: {
5766
6016
  has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
5767
6017
  pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5768
6018
  pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
6019
+ download_url: z.ZodOptional<z.ZodString>;
5769
6020
  filename: z.ZodOptional<z.ZodString>;
5770
6021
  name: z.ZodOptional<z.ZodString>;
5771
6022
  path: z.ZodOptional<z.ZodString>;
@@ -5917,12 +6168,16 @@ export declare const sessionsContract: {
5917
6168
  share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5918
6169
  worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5919
6170
  match_type: z.ZodOptional<z.ZodEnum<{
5920
- content: "content";
5921
6171
  title: "title";
6172
+ content: "content";
5922
6173
  metadata: "metadata";
5923
6174
  }>>;
5924
6175
  match_preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5925
6176
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6177
+ sidebar_group: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
6178
+ pinned: "pinned";
6179
+ recent: "recent";
6180
+ }>>>;
5926
6181
  }, z.core.$loose>;
5927
6182
  }, z.core.$catchall<z.ZodUnknown>>, Record<never, never>, Record<never, never>>;
5928
6183
  archive: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
@@ -6054,12 +6309,16 @@ export declare const sessionsContract: {
6054
6309
  share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6055
6310
  worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6056
6311
  match_type: z.ZodOptional<z.ZodEnum<{
6057
- content: "content";
6058
6312
  title: "title";
6313
+ content: "content";
6059
6314
  metadata: "metadata";
6060
6315
  }>>;
6061
6316
  match_preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6062
6317
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6318
+ sidebar_group: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
6319
+ pinned: "pinned";
6320
+ recent: "recent";
6321
+ }>>>;
6063
6322
  }, z.core.$loose>;
6064
6323
  }, z.core.$catchall<z.ZodUnknown>>, Record<never, never>, Record<never, never>>;
6065
6324
  move: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
@@ -6191,12 +6450,16 @@ export declare const sessionsContract: {
6191
6450
  share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6192
6451
  worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6193
6452
  match_type: z.ZodOptional<z.ZodEnum<{
6194
- content: "content";
6195
6453
  title: "title";
6454
+ content: "content";
6196
6455
  metadata: "metadata";
6197
6456
  }>>;
6198
6457
  match_preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6199
6458
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6459
+ sidebar_group: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
6460
+ pinned: "pinned";
6461
+ recent: "recent";
6462
+ }>>>;
6200
6463
  }, z.core.$loose>;
6201
6464
  }, z.core.$catchall<z.ZodUnknown>>, Record<never, never>, Record<never, never>>;
6202
6465
  duplicate: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
@@ -6335,10 +6598,6 @@ export declare const sessionsContract: {
6335
6598
  }, z.core.$strip>>>;
6336
6599
  assistant_name: z.ZodOptional<z.ZodString>;
6337
6600
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6338
- compression_reference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6339
- text: z.ZodString;
6340
- after_message_index: z.ZodNullable<z.ZodNumber>;
6341
- }, z.core.$strip>>>;
6342
6601
  focus_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6343
6602
  branched_from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6344
6603
  session_id: z.ZodString;
@@ -6348,16 +6607,55 @@ export declare const sessionsContract: {
6348
6607
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6349
6608
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6350
6609
  context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6610
+ plan_gauge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6611
+ id: z.ZodString;
6612
+ label: z.ZodString;
6613
+ used_bp: z.ZodNumber;
6614
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
6615
+ }, z.core.$strip>>>;
6616
+ show_reasoning: z.ZodOptional<z.ZodBoolean>;
6351
6617
  activity_phase: z.ZodOptional<z.ZodEnum<{
6352
- running: "running";
6353
- cancelled: "cancelled";
6354
6618
  stale: "stale";
6619
+ running: "running";
6355
6620
  failed: "failed";
6621
+ cancelled: "cancelled";
6356
6622
  completed: "completed";
6357
6623
  starting: "starting";
6358
6624
  waiting_for_approval: "waiting_for_approval";
6359
6625
  waiting_for_input: "waiting_for_input";
6360
6626
  }>>;
6627
+ todo_state: z.ZodOptional<z.ZodObject<{
6628
+ display_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
6629
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
6630
+ text: z.ZodString;
6631
+ state: z.ZodEnum<{
6632
+ pending: "pending";
6633
+ cancelled: "cancelled";
6634
+ completed: "completed";
6635
+ in_progress: "in_progress";
6636
+ }>;
6637
+ }, z.core.$strip>>>;
6638
+ total_count: z.ZodOptional<z.ZodNumber>;
6639
+ completed_count: z.ZodOptional<z.ZodNumber>;
6640
+ pending_count: z.ZodOptional<z.ZodNumber>;
6641
+ in_progress_count: z.ZodOptional<z.ZodNumber>;
6642
+ cancelled_count: z.ZodOptional<z.ZodNumber>;
6643
+ session_id: z.ZodOptional<z.ZodString>;
6644
+ todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
6645
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
6646
+ text: z.ZodOptional<z.ZodString>;
6647
+ content: z.ZodOptional<z.ZodString>;
6648
+ title: z.ZodOptional<z.ZodString>;
6649
+ status: z.ZodOptional<z.ZodString>;
6650
+ done: z.ZodOptional<z.ZodBoolean>;
6651
+ completed: z.ZodOptional<z.ZodBoolean>;
6652
+ }, z.core.$loose>>>;
6653
+ summary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6654
+ version: z.ZodOptional<z.ZodNumber>;
6655
+ ts: z.ZodOptional<z.ZodNumber>;
6656
+ source: z.ZodOptional<z.ZodString>;
6657
+ description: z.ZodOptional<z.ZodString>;
6658
+ }, z.core.$loose>>;
6361
6659
  source_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
6362
6660
  session_id: z.ZodString;
6363
6661
  tip_session_id: z.ZodString;
@@ -6440,6 +6738,7 @@ export declare const sessionsContract: {
6440
6738
  }, z.core.$strip>>;
6441
6739
  }, z.core.$strip>>;
6442
6740
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
6741
+ download_url: z.ZodOptional<z.ZodString>;
6443
6742
  filename: z.ZodOptional<z.ZodString>;
6444
6743
  name: z.ZodOptional<z.ZodString>;
6445
6744
  path: z.ZodOptional<z.ZodString>;
@@ -6486,8 +6785,8 @@ export declare const sessionsContract: {
6486
6785
  unknown: "unknown";
6487
6786
  memory: "memory";
6488
6787
  shell: "shell";
6489
- read: "read";
6490
6788
  list: "list";
6789
+ read: "read";
6491
6790
  search: "search";
6492
6791
  web: "web";
6493
6792
  write: "write";
@@ -6552,9 +6851,9 @@ export declare const sessionsContract: {
6552
6851
  kind: z.ZodEnum<{
6553
6852
  file: "file";
6554
6853
  image: "image";
6854
+ pdf: "pdf";
6555
6855
  audio: "audio";
6556
6856
  video: "video";
6557
- pdf: "pdf";
6558
6857
  }>;
6559
6858
  }, z.core.$strip>>>;
6560
6859
  tool: z.ZodOptional<z.ZodObject<{
@@ -6581,8 +6880,8 @@ export declare const sessionsContract: {
6581
6880
  status: z.ZodEnum<{
6582
6881
  unknown: "unknown";
6583
6882
  running: "running";
6584
- cancelled: "cancelled";
6585
6883
  failed: "failed";
6884
+ cancelled: "cancelled";
6586
6885
  completed: "completed";
6587
6886
  attention: "attention";
6588
6887
  }>;
@@ -6603,8 +6902,8 @@ export declare const sessionsContract: {
6603
6902
  unknown: "unknown";
6604
6903
  memory: "memory";
6605
6904
  shell: "shell";
6606
- read: "read";
6607
6905
  list: "list";
6906
+ read: "read";
6608
6907
  search: "search";
6609
6908
  web: "web";
6610
6909
  write: "write";
@@ -6659,9 +6958,9 @@ export declare const sessionsContract: {
6659
6958
  kind: z.ZodEnum<{
6660
6959
  file: "file";
6661
6960
  image: "image";
6961
+ pdf: "pdf";
6662
6962
  audio: "audio";
6663
6963
  video: "video";
6664
- pdf: "pdf";
6665
6964
  }>;
6666
6965
  }, z.core.$strip>>>;
6667
6966
  terminal_state: z.ZodOptional<z.ZodString>;
@@ -6707,9 +7006,9 @@ export declare const sessionsContract: {
6707
7006
  kind: z.ZodEnum<{
6708
7007
  file: "file";
6709
7008
  image: "image";
7009
+ pdf: "pdf";
6710
7010
  audio: "audio";
6711
7011
  video: "video";
6712
- pdf: "pdf";
6713
7012
  }>;
6714
7013
  }, z.core.$strip>>>;
6715
7014
  _background_update: z.ZodOptional<z.ZodObject<{
@@ -6724,9 +7023,9 @@ export declare const sessionsContract: {
6724
7023
  summary: z.ZodString;
6725
7024
  lines: z.ZodArray<z.ZodObject<{
6726
7025
  kind: z.ZodEnum<{
6727
- command: "command";
6728
7026
  agent: "agent";
6729
7027
  other: "other";
7028
+ command: "command";
6730
7029
  }>;
6731
7030
  status: z.ZodEnum<{
6732
7031
  failed: "failed";
@@ -6814,8 +7113,8 @@ export declare const sessionsContract: {
6814
7113
  unknown: "unknown";
6815
7114
  memory: "memory";
6816
7115
  shell: "shell";
6817
- read: "read";
6818
7116
  list: "list";
7117
+ read: "read";
6819
7118
  search: "search";
6820
7119
  web: "web";
6821
7120
  write: "write";
@@ -6908,8 +7207,8 @@ export declare const sessionsContract: {
6908
7207
  notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
6909
7208
  key: z.ZodString;
6910
7209
  level: z.ZodEnum<{
6911
- error: "error";
6912
7210
  success: "success";
7211
+ error: "error";
6913
7212
  info: "info";
6914
7213
  warn: "warn";
6915
7214
  }>;
@@ -6932,6 +7231,7 @@ export declare const sessionsContract: {
6932
7231
  has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
6933
7232
  pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6934
7233
  pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
7234
+ download_url: z.ZodOptional<z.ZodString>;
6935
7235
  filename: z.ZodOptional<z.ZodString>;
6936
7236
  name: z.ZodOptional<z.ZodString>;
6937
7237
  path: z.ZodOptional<z.ZodString>;
@@ -7088,12 +7388,16 @@ export declare const sessionsContract: {
7088
7388
  share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7089
7389
  worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7090
7390
  match_type: z.ZodOptional<z.ZodEnum<{
7091
- content: "content";
7092
7391
  title: "title";
7392
+ content: "content";
7093
7393
  metadata: "metadata";
7094
7394
  }>>;
7095
7395
  match_preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7096
7396
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7397
+ sidebar_group: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
7398
+ pinned: "pinned";
7399
+ recent: "recent";
7400
+ }>>>;
7097
7401
  }, z.core.$loose>;
7098
7402
  }, z.core.$catchall<z.ZodUnknown>>, z.ZodObject<{
7099
7403
  ok: z.ZodLiteral<false>;
@@ -7230,12 +7534,16 @@ export declare const sessionsContract: {
7230
7534
  share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7231
7535
  worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7232
7536
  match_type: z.ZodOptional<z.ZodEnum<{
7233
- content: "content";
7234
7537
  title: "title";
7538
+ content: "content";
7235
7539
  metadata: "metadata";
7236
7540
  }>>;
7237
7541
  match_preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7238
7542
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7543
+ sidebar_group: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
7544
+ pinned: "pinned";
7545
+ recent: "recent";
7546
+ }>>>;
7239
7547
  }, z.core.$loose>;
7240
7548
  }, z.core.$catchall<z.ZodUnknown>>, Record<never, never>, Record<never, never>>;
7241
7549
  retry: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
@@ -7245,6 +7553,7 @@ export declare const sessionsContract: {
7245
7553
  last_user_text: z.ZodString;
7246
7554
  last_user_prompt: z.ZodOptional<z.ZodString>;
7247
7555
  last_user_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
7556
+ download_url: z.ZodOptional<z.ZodString>;
7248
7557
  filename: z.ZodOptional<z.ZodString>;
7249
7558
  name: z.ZodOptional<z.ZodString>;
7250
7559
  path: z.ZodOptional<z.ZodString>;
@@ -7406,10 +7715,6 @@ export declare const sessionsContract: {
7406
7715
  }, z.core.$strip>>>;
7407
7716
  assistant_name: z.ZodOptional<z.ZodString>;
7408
7717
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7409
- compression_reference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7410
- text: z.ZodString;
7411
- after_message_index: z.ZodNullable<z.ZodNumber>;
7412
- }, z.core.$strip>>>;
7413
7718
  focus_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7414
7719
  branched_from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7415
7720
  session_id: z.ZodString;
@@ -7419,16 +7724,55 @@ export declare const sessionsContract: {
7419
7724
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7420
7725
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7421
7726
  context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7727
+ plan_gauge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7728
+ id: z.ZodString;
7729
+ label: z.ZodString;
7730
+ used_bp: z.ZodNumber;
7731
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
7732
+ }, z.core.$strip>>>;
7733
+ show_reasoning: z.ZodOptional<z.ZodBoolean>;
7422
7734
  activity_phase: z.ZodOptional<z.ZodEnum<{
7423
- running: "running";
7424
- cancelled: "cancelled";
7425
7735
  stale: "stale";
7736
+ running: "running";
7426
7737
  failed: "failed";
7738
+ cancelled: "cancelled";
7427
7739
  completed: "completed";
7428
7740
  starting: "starting";
7429
7741
  waiting_for_approval: "waiting_for_approval";
7430
7742
  waiting_for_input: "waiting_for_input";
7431
7743
  }>>;
7744
+ todo_state: z.ZodOptional<z.ZodObject<{
7745
+ display_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
7746
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
7747
+ text: z.ZodString;
7748
+ state: z.ZodEnum<{
7749
+ pending: "pending";
7750
+ cancelled: "cancelled";
7751
+ completed: "completed";
7752
+ in_progress: "in_progress";
7753
+ }>;
7754
+ }, z.core.$strip>>>;
7755
+ total_count: z.ZodOptional<z.ZodNumber>;
7756
+ completed_count: z.ZodOptional<z.ZodNumber>;
7757
+ pending_count: z.ZodOptional<z.ZodNumber>;
7758
+ in_progress_count: z.ZodOptional<z.ZodNumber>;
7759
+ cancelled_count: z.ZodOptional<z.ZodNumber>;
7760
+ session_id: z.ZodOptional<z.ZodString>;
7761
+ todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
7762
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
7763
+ text: z.ZodOptional<z.ZodString>;
7764
+ content: z.ZodOptional<z.ZodString>;
7765
+ title: z.ZodOptional<z.ZodString>;
7766
+ status: z.ZodOptional<z.ZodString>;
7767
+ done: z.ZodOptional<z.ZodBoolean>;
7768
+ completed: z.ZodOptional<z.ZodBoolean>;
7769
+ }, z.core.$loose>>>;
7770
+ summary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7771
+ version: z.ZodOptional<z.ZodNumber>;
7772
+ ts: z.ZodOptional<z.ZodNumber>;
7773
+ source: z.ZodOptional<z.ZodString>;
7774
+ description: z.ZodOptional<z.ZodString>;
7775
+ }, z.core.$loose>>;
7432
7776
  source_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
7433
7777
  session_id: z.ZodString;
7434
7778
  tip_session_id: z.ZodString;
@@ -7511,6 +7855,7 @@ export declare const sessionsContract: {
7511
7855
  }, z.core.$strip>>;
7512
7856
  }, z.core.$strip>>;
7513
7857
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
7858
+ download_url: z.ZodOptional<z.ZodString>;
7514
7859
  filename: z.ZodOptional<z.ZodString>;
7515
7860
  name: z.ZodOptional<z.ZodString>;
7516
7861
  path: z.ZodOptional<z.ZodString>;
@@ -7557,8 +7902,8 @@ export declare const sessionsContract: {
7557
7902
  unknown: "unknown";
7558
7903
  memory: "memory";
7559
7904
  shell: "shell";
7560
- read: "read";
7561
7905
  list: "list";
7906
+ read: "read";
7562
7907
  search: "search";
7563
7908
  web: "web";
7564
7909
  write: "write";
@@ -7623,9 +7968,9 @@ export declare const sessionsContract: {
7623
7968
  kind: z.ZodEnum<{
7624
7969
  file: "file";
7625
7970
  image: "image";
7971
+ pdf: "pdf";
7626
7972
  audio: "audio";
7627
7973
  video: "video";
7628
- pdf: "pdf";
7629
7974
  }>;
7630
7975
  }, z.core.$strip>>>;
7631
7976
  tool: z.ZodOptional<z.ZodObject<{
@@ -7652,8 +7997,8 @@ export declare const sessionsContract: {
7652
7997
  status: z.ZodEnum<{
7653
7998
  unknown: "unknown";
7654
7999
  running: "running";
7655
- cancelled: "cancelled";
7656
8000
  failed: "failed";
8001
+ cancelled: "cancelled";
7657
8002
  completed: "completed";
7658
8003
  attention: "attention";
7659
8004
  }>;
@@ -7674,8 +8019,8 @@ export declare const sessionsContract: {
7674
8019
  unknown: "unknown";
7675
8020
  memory: "memory";
7676
8021
  shell: "shell";
7677
- read: "read";
7678
8022
  list: "list";
8023
+ read: "read";
7679
8024
  search: "search";
7680
8025
  web: "web";
7681
8026
  write: "write";
@@ -7730,9 +8075,9 @@ export declare const sessionsContract: {
7730
8075
  kind: z.ZodEnum<{
7731
8076
  file: "file";
7732
8077
  image: "image";
8078
+ pdf: "pdf";
7733
8079
  audio: "audio";
7734
8080
  video: "video";
7735
- pdf: "pdf";
7736
8081
  }>;
7737
8082
  }, z.core.$strip>>>;
7738
8083
  terminal_state: z.ZodOptional<z.ZodString>;
@@ -7778,9 +8123,9 @@ export declare const sessionsContract: {
7778
8123
  kind: z.ZodEnum<{
7779
8124
  file: "file";
7780
8125
  image: "image";
8126
+ pdf: "pdf";
7781
8127
  audio: "audio";
7782
8128
  video: "video";
7783
- pdf: "pdf";
7784
8129
  }>;
7785
8130
  }, z.core.$strip>>>;
7786
8131
  _background_update: z.ZodOptional<z.ZodObject<{
@@ -7795,9 +8140,9 @@ export declare const sessionsContract: {
7795
8140
  summary: z.ZodString;
7796
8141
  lines: z.ZodArray<z.ZodObject<{
7797
8142
  kind: z.ZodEnum<{
7798
- command: "command";
7799
8143
  agent: "agent";
7800
8144
  other: "other";
8145
+ command: "command";
7801
8146
  }>;
7802
8147
  status: z.ZodEnum<{
7803
8148
  failed: "failed";
@@ -7885,8 +8230,8 @@ export declare const sessionsContract: {
7885
8230
  unknown: "unknown";
7886
8231
  memory: "memory";
7887
8232
  shell: "shell";
7888
- read: "read";
7889
8233
  list: "list";
8234
+ read: "read";
7890
8235
  search: "search";
7891
8236
  web: "web";
7892
8237
  write: "write";
@@ -7979,8 +8324,8 @@ export declare const sessionsContract: {
7979
8324
  notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
7980
8325
  key: z.ZodString;
7981
8326
  level: z.ZodEnum<{
7982
- error: "error";
7983
8327
  success: "success";
8328
+ error: "error";
7984
8329
  info: "info";
7985
8330
  warn: "warn";
7986
8331
  }>;
@@ -8003,6 +8348,7 @@ export declare const sessionsContract: {
8003
8348
  has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
8004
8349
  pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8005
8350
  pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
8351
+ download_url: z.ZodOptional<z.ZodString>;
8006
8352
  filename: z.ZodOptional<z.ZodString>;
8007
8353
  name: z.ZodOptional<z.ZodString>;
8008
8354
  path: z.ZodOptional<z.ZodString>;
@@ -8172,12 +8518,16 @@ export declare const sessionsContract: {
8172
8518
  share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8173
8519
  worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8174
8520
  match_type: z.ZodOptional<z.ZodEnum<{
8175
- content: "content";
8176
8521
  title: "title";
8522
+ content: "content";
8177
8523
  metadata: "metadata";
8178
8524
  }>>;
8179
8525
  match_preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8180
8526
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8527
+ sidebar_group: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
8528
+ pinned: "pinned";
8529
+ recent: "recent";
8530
+ }>>>;
8181
8531
  }, z.core.$loose>;
8182
8532
  }, z.core.$catchall<z.ZodUnknown>>, Record<never, never>, Record<never, never>>;
8183
8533
  regenerateTitle: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
@@ -8308,12 +8658,16 @@ export declare const sessionsContract: {
8308
8658
  share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8309
8659
  worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8310
8660
  match_type: z.ZodOptional<z.ZodEnum<{
8311
- content: "content";
8312
8661
  title: "title";
8662
+ content: "content";
8313
8663
  metadata: "metadata";
8314
8664
  }>>;
8315
8665
  match_preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8316
8666
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8667
+ sidebar_group: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
8668
+ pinned: "pinned";
8669
+ recent: "recent";
8670
+ }>>>;
8317
8671
  }, z.core.$loose>;
8318
8672
  title: z.ZodString;
8319
8673
  status: z.ZodString;
@@ -8665,10 +9019,6 @@ export declare const sessionsContract: {
8665
9019
  }, z.core.$strip>>>;
8666
9020
  assistant_name: z.ZodOptional<z.ZodString>;
8667
9021
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8668
- compression_reference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8669
- text: z.ZodString;
8670
- after_message_index: z.ZodNullable<z.ZodNumber>;
8671
- }, z.core.$strip>>>;
8672
9022
  focus_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8673
9023
  branched_from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8674
9024
  session_id: z.ZodString;
@@ -8678,16 +9028,55 @@ export declare const sessionsContract: {
8678
9028
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8679
9029
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8680
9030
  context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
9031
+ plan_gauge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
9032
+ id: z.ZodString;
9033
+ label: z.ZodString;
9034
+ used_bp: z.ZodNumber;
9035
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
9036
+ }, z.core.$strip>>>;
9037
+ show_reasoning: z.ZodOptional<z.ZodBoolean>;
8681
9038
  activity_phase: z.ZodOptional<z.ZodEnum<{
8682
- running: "running";
8683
- cancelled: "cancelled";
8684
9039
  stale: "stale";
9040
+ running: "running";
8685
9041
  failed: "failed";
9042
+ cancelled: "cancelled";
8686
9043
  completed: "completed";
8687
9044
  starting: "starting";
8688
9045
  waiting_for_approval: "waiting_for_approval";
8689
9046
  waiting_for_input: "waiting_for_input";
8690
9047
  }>>;
9048
+ todo_state: z.ZodOptional<z.ZodObject<{
9049
+ display_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
9050
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
9051
+ text: z.ZodString;
9052
+ state: z.ZodEnum<{
9053
+ pending: "pending";
9054
+ cancelled: "cancelled";
9055
+ completed: "completed";
9056
+ in_progress: "in_progress";
9057
+ }>;
9058
+ }, z.core.$strip>>>;
9059
+ total_count: z.ZodOptional<z.ZodNumber>;
9060
+ completed_count: z.ZodOptional<z.ZodNumber>;
9061
+ pending_count: z.ZodOptional<z.ZodNumber>;
9062
+ in_progress_count: z.ZodOptional<z.ZodNumber>;
9063
+ cancelled_count: z.ZodOptional<z.ZodNumber>;
9064
+ session_id: z.ZodOptional<z.ZodString>;
9065
+ todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
9066
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
9067
+ text: z.ZodOptional<z.ZodString>;
9068
+ content: z.ZodOptional<z.ZodString>;
9069
+ title: z.ZodOptional<z.ZodString>;
9070
+ status: z.ZodOptional<z.ZodString>;
9071
+ done: z.ZodOptional<z.ZodBoolean>;
9072
+ completed: z.ZodOptional<z.ZodBoolean>;
9073
+ }, z.core.$loose>>>;
9074
+ summary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9075
+ version: z.ZodOptional<z.ZodNumber>;
9076
+ ts: z.ZodOptional<z.ZodNumber>;
9077
+ source: z.ZodOptional<z.ZodString>;
9078
+ description: z.ZodOptional<z.ZodString>;
9079
+ }, z.core.$loose>>;
8691
9080
  source_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
8692
9081
  session_id: z.ZodString;
8693
9082
  tip_session_id: z.ZodString;
@@ -8770,6 +9159,7 @@ export declare const sessionsContract: {
8770
9159
  }, z.core.$strip>>;
8771
9160
  }, z.core.$strip>>;
8772
9161
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
9162
+ download_url: z.ZodOptional<z.ZodString>;
8773
9163
  filename: z.ZodOptional<z.ZodString>;
8774
9164
  name: z.ZodOptional<z.ZodString>;
8775
9165
  path: z.ZodOptional<z.ZodString>;
@@ -8816,8 +9206,8 @@ export declare const sessionsContract: {
8816
9206
  unknown: "unknown";
8817
9207
  memory: "memory";
8818
9208
  shell: "shell";
8819
- read: "read";
8820
9209
  list: "list";
9210
+ read: "read";
8821
9211
  search: "search";
8822
9212
  web: "web";
8823
9213
  write: "write";
@@ -8882,9 +9272,9 @@ export declare const sessionsContract: {
8882
9272
  kind: z.ZodEnum<{
8883
9273
  file: "file";
8884
9274
  image: "image";
9275
+ pdf: "pdf";
8885
9276
  audio: "audio";
8886
9277
  video: "video";
8887
- pdf: "pdf";
8888
9278
  }>;
8889
9279
  }, z.core.$strip>>>;
8890
9280
  tool: z.ZodOptional<z.ZodObject<{
@@ -8911,8 +9301,8 @@ export declare const sessionsContract: {
8911
9301
  status: z.ZodEnum<{
8912
9302
  unknown: "unknown";
8913
9303
  running: "running";
8914
- cancelled: "cancelled";
8915
9304
  failed: "failed";
9305
+ cancelled: "cancelled";
8916
9306
  completed: "completed";
8917
9307
  attention: "attention";
8918
9308
  }>;
@@ -8933,8 +9323,8 @@ export declare const sessionsContract: {
8933
9323
  unknown: "unknown";
8934
9324
  memory: "memory";
8935
9325
  shell: "shell";
8936
- read: "read";
8937
9326
  list: "list";
9327
+ read: "read";
8938
9328
  search: "search";
8939
9329
  web: "web";
8940
9330
  write: "write";
@@ -8989,9 +9379,9 @@ export declare const sessionsContract: {
8989
9379
  kind: z.ZodEnum<{
8990
9380
  file: "file";
8991
9381
  image: "image";
9382
+ pdf: "pdf";
8992
9383
  audio: "audio";
8993
9384
  video: "video";
8994
- pdf: "pdf";
8995
9385
  }>;
8996
9386
  }, z.core.$strip>>>;
8997
9387
  terminal_state: z.ZodOptional<z.ZodString>;
@@ -9037,9 +9427,9 @@ export declare const sessionsContract: {
9037
9427
  kind: z.ZodEnum<{
9038
9428
  file: "file";
9039
9429
  image: "image";
9430
+ pdf: "pdf";
9040
9431
  audio: "audio";
9041
9432
  video: "video";
9042
- pdf: "pdf";
9043
9433
  }>;
9044
9434
  }, z.core.$strip>>>;
9045
9435
  _background_update: z.ZodOptional<z.ZodObject<{
@@ -9054,9 +9444,9 @@ export declare const sessionsContract: {
9054
9444
  summary: z.ZodString;
9055
9445
  lines: z.ZodArray<z.ZodObject<{
9056
9446
  kind: z.ZodEnum<{
9057
- command: "command";
9058
9447
  agent: "agent";
9059
9448
  other: "other";
9449
+ command: "command";
9060
9450
  }>;
9061
9451
  status: z.ZodEnum<{
9062
9452
  failed: "failed";
@@ -9144,8 +9534,8 @@ export declare const sessionsContract: {
9144
9534
  unknown: "unknown";
9145
9535
  memory: "memory";
9146
9536
  shell: "shell";
9147
- read: "read";
9148
9537
  list: "list";
9538
+ read: "read";
9149
9539
  search: "search";
9150
9540
  web: "web";
9151
9541
  write: "write";
@@ -9238,8 +9628,8 @@ export declare const sessionsContract: {
9238
9628
  notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
9239
9629
  key: z.ZodString;
9240
9630
  level: z.ZodEnum<{
9241
- error: "error";
9242
9631
  success: "success";
9632
+ error: "error";
9243
9633
  info: "info";
9244
9634
  warn: "warn";
9245
9635
  }>;
@@ -9262,6 +9652,7 @@ export declare const sessionsContract: {
9262
9652
  has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
9263
9653
  pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9264
9654
  pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
9655
+ download_url: z.ZodOptional<z.ZodString>;
9265
9656
  filename: z.ZodOptional<z.ZodString>;
9266
9657
  name: z.ZodOptional<z.ZodString>;
9267
9658
  path: z.ZodOptional<z.ZodString>;
@@ -9420,10 +9811,6 @@ export declare const sessionsContract: {
9420
9811
  }, z.core.$strip>>>;
9421
9812
  assistant_name: z.ZodOptional<z.ZodString>;
9422
9813
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9423
- compression_reference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
9424
- text: z.ZodString;
9425
- after_message_index: z.ZodNullable<z.ZodNumber>;
9426
- }, z.core.$strip>>>;
9427
9814
  focus_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9428
9815
  branched_from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
9429
9816
  session_id: z.ZodString;
@@ -9433,16 +9820,55 @@ export declare const sessionsContract: {
9433
9820
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
9434
9821
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
9435
9822
  context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
9823
+ plan_gauge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
9824
+ id: z.ZodString;
9825
+ label: z.ZodString;
9826
+ used_bp: z.ZodNumber;
9827
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
9828
+ }, z.core.$strip>>>;
9829
+ show_reasoning: z.ZodOptional<z.ZodBoolean>;
9436
9830
  activity_phase: z.ZodOptional<z.ZodEnum<{
9437
- running: "running";
9438
- cancelled: "cancelled";
9439
9831
  stale: "stale";
9832
+ running: "running";
9440
9833
  failed: "failed";
9834
+ cancelled: "cancelled";
9441
9835
  completed: "completed";
9442
9836
  starting: "starting";
9443
9837
  waiting_for_approval: "waiting_for_approval";
9444
9838
  waiting_for_input: "waiting_for_input";
9445
9839
  }>>;
9840
+ todo_state: z.ZodOptional<z.ZodObject<{
9841
+ display_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
9842
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
9843
+ text: z.ZodString;
9844
+ state: z.ZodEnum<{
9845
+ pending: "pending";
9846
+ cancelled: "cancelled";
9847
+ completed: "completed";
9848
+ in_progress: "in_progress";
9849
+ }>;
9850
+ }, z.core.$strip>>>;
9851
+ total_count: z.ZodOptional<z.ZodNumber>;
9852
+ completed_count: z.ZodOptional<z.ZodNumber>;
9853
+ pending_count: z.ZodOptional<z.ZodNumber>;
9854
+ in_progress_count: z.ZodOptional<z.ZodNumber>;
9855
+ cancelled_count: z.ZodOptional<z.ZodNumber>;
9856
+ session_id: z.ZodOptional<z.ZodString>;
9857
+ todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
9858
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
9859
+ text: z.ZodOptional<z.ZodString>;
9860
+ content: z.ZodOptional<z.ZodString>;
9861
+ title: z.ZodOptional<z.ZodString>;
9862
+ status: z.ZodOptional<z.ZodString>;
9863
+ done: z.ZodOptional<z.ZodBoolean>;
9864
+ completed: z.ZodOptional<z.ZodBoolean>;
9865
+ }, z.core.$loose>>>;
9866
+ summary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9867
+ version: z.ZodOptional<z.ZodNumber>;
9868
+ ts: z.ZodOptional<z.ZodNumber>;
9869
+ source: z.ZodOptional<z.ZodString>;
9870
+ description: z.ZodOptional<z.ZodString>;
9871
+ }, z.core.$loose>>;
9446
9872
  source_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
9447
9873
  session_id: z.ZodString;
9448
9874
  tip_session_id: z.ZodString;
@@ -9525,6 +9951,7 @@ export declare const sessionsContract: {
9525
9951
  }, z.core.$strip>>;
9526
9952
  }, z.core.$strip>>;
9527
9953
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
9954
+ download_url: z.ZodOptional<z.ZodString>;
9528
9955
  filename: z.ZodOptional<z.ZodString>;
9529
9956
  name: z.ZodOptional<z.ZodString>;
9530
9957
  path: z.ZodOptional<z.ZodString>;
@@ -9571,8 +9998,8 @@ export declare const sessionsContract: {
9571
9998
  unknown: "unknown";
9572
9999
  memory: "memory";
9573
10000
  shell: "shell";
9574
- read: "read";
9575
10001
  list: "list";
10002
+ read: "read";
9576
10003
  search: "search";
9577
10004
  web: "web";
9578
10005
  write: "write";
@@ -9637,9 +10064,9 @@ export declare const sessionsContract: {
9637
10064
  kind: z.ZodEnum<{
9638
10065
  file: "file";
9639
10066
  image: "image";
10067
+ pdf: "pdf";
9640
10068
  audio: "audio";
9641
10069
  video: "video";
9642
- pdf: "pdf";
9643
10070
  }>;
9644
10071
  }, z.core.$strip>>>;
9645
10072
  tool: z.ZodOptional<z.ZodObject<{
@@ -9666,8 +10093,8 @@ export declare const sessionsContract: {
9666
10093
  status: z.ZodEnum<{
9667
10094
  unknown: "unknown";
9668
10095
  running: "running";
9669
- cancelled: "cancelled";
9670
10096
  failed: "failed";
10097
+ cancelled: "cancelled";
9671
10098
  completed: "completed";
9672
10099
  attention: "attention";
9673
10100
  }>;
@@ -9688,8 +10115,8 @@ export declare const sessionsContract: {
9688
10115
  unknown: "unknown";
9689
10116
  memory: "memory";
9690
10117
  shell: "shell";
9691
- read: "read";
9692
10118
  list: "list";
10119
+ read: "read";
9693
10120
  search: "search";
9694
10121
  web: "web";
9695
10122
  write: "write";
@@ -9744,9 +10171,9 @@ export declare const sessionsContract: {
9744
10171
  kind: z.ZodEnum<{
9745
10172
  file: "file";
9746
10173
  image: "image";
10174
+ pdf: "pdf";
9747
10175
  audio: "audio";
9748
10176
  video: "video";
9749
- pdf: "pdf";
9750
10177
  }>;
9751
10178
  }, z.core.$strip>>>;
9752
10179
  terminal_state: z.ZodOptional<z.ZodString>;
@@ -9792,9 +10219,9 @@ export declare const sessionsContract: {
9792
10219
  kind: z.ZodEnum<{
9793
10220
  file: "file";
9794
10221
  image: "image";
10222
+ pdf: "pdf";
9795
10223
  audio: "audio";
9796
10224
  video: "video";
9797
- pdf: "pdf";
9798
10225
  }>;
9799
10226
  }, z.core.$strip>>>;
9800
10227
  _background_update: z.ZodOptional<z.ZodObject<{
@@ -9809,9 +10236,9 @@ export declare const sessionsContract: {
9809
10236
  summary: z.ZodString;
9810
10237
  lines: z.ZodArray<z.ZodObject<{
9811
10238
  kind: z.ZodEnum<{
9812
- command: "command";
9813
10239
  agent: "agent";
9814
10240
  other: "other";
10241
+ command: "command";
9815
10242
  }>;
9816
10243
  status: z.ZodEnum<{
9817
10244
  failed: "failed";
@@ -9899,8 +10326,8 @@ export declare const sessionsContract: {
9899
10326
  unknown: "unknown";
9900
10327
  memory: "memory";
9901
10328
  shell: "shell";
9902
- read: "read";
9903
10329
  list: "list";
10330
+ read: "read";
9904
10331
  search: "search";
9905
10332
  web: "web";
9906
10333
  write: "write";
@@ -9993,8 +10420,8 @@ export declare const sessionsContract: {
9993
10420
  notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
9994
10421
  key: z.ZodString;
9995
10422
  level: z.ZodEnum<{
9996
- error: "error";
9997
10423
  success: "success";
10424
+ error: "error";
9998
10425
  info: "info";
9999
10426
  warn: "warn";
10000
10427
  }>;
@@ -10017,6 +10444,7 @@ export declare const sessionsContract: {
10017
10444
  has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
10018
10445
  pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10019
10446
  pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
10447
+ download_url: z.ZodOptional<z.ZodString>;
10020
10448
  filename: z.ZodOptional<z.ZodString>;
10021
10449
  name: z.ZodOptional<z.ZodString>;
10022
10450
  path: z.ZodOptional<z.ZodString>;
@@ -10060,8 +10488,8 @@ export declare const sessionsContract: {
10060
10488
  status: z.ZodEnum<{
10061
10489
  error: "error";
10062
10490
  running: "running";
10063
- done: "done";
10064
10491
  idle: "idle";
10492
+ done: "done";
10065
10493
  }>;
10066
10494
  session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10067
10495
  focus_topic: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -10198,10 +10626,6 @@ export declare const sessionsContract: {
10198
10626
  }, z.core.$strip>>>;
10199
10627
  assistant_name: z.ZodOptional<z.ZodString>;
10200
10628
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10201
- compression_reference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
10202
- text: z.ZodString;
10203
- after_message_index: z.ZodNullable<z.ZodNumber>;
10204
- }, z.core.$strip>>>;
10205
10629
  focus_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10206
10630
  branched_from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
10207
10631
  session_id: z.ZodString;
@@ -10211,16 +10635,55 @@ export declare const sessionsContract: {
10211
10635
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
10212
10636
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
10213
10637
  context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
10638
+ plan_gauge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
10639
+ id: z.ZodString;
10640
+ label: z.ZodString;
10641
+ used_bp: z.ZodNumber;
10642
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
10643
+ }, z.core.$strip>>>;
10644
+ show_reasoning: z.ZodOptional<z.ZodBoolean>;
10214
10645
  activity_phase: z.ZodOptional<z.ZodEnum<{
10215
- running: "running";
10216
- cancelled: "cancelled";
10217
10646
  stale: "stale";
10647
+ running: "running";
10218
10648
  failed: "failed";
10649
+ cancelled: "cancelled";
10219
10650
  completed: "completed";
10220
10651
  starting: "starting";
10221
10652
  waiting_for_approval: "waiting_for_approval";
10222
10653
  waiting_for_input: "waiting_for_input";
10223
10654
  }>>;
10655
+ todo_state: z.ZodOptional<z.ZodObject<{
10656
+ display_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
10657
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
10658
+ text: z.ZodString;
10659
+ state: z.ZodEnum<{
10660
+ pending: "pending";
10661
+ cancelled: "cancelled";
10662
+ completed: "completed";
10663
+ in_progress: "in_progress";
10664
+ }>;
10665
+ }, z.core.$strip>>>;
10666
+ total_count: z.ZodOptional<z.ZodNumber>;
10667
+ completed_count: z.ZodOptional<z.ZodNumber>;
10668
+ pending_count: z.ZodOptional<z.ZodNumber>;
10669
+ in_progress_count: z.ZodOptional<z.ZodNumber>;
10670
+ cancelled_count: z.ZodOptional<z.ZodNumber>;
10671
+ session_id: z.ZodOptional<z.ZodString>;
10672
+ todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
10673
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
10674
+ text: z.ZodOptional<z.ZodString>;
10675
+ content: z.ZodOptional<z.ZodString>;
10676
+ title: z.ZodOptional<z.ZodString>;
10677
+ status: z.ZodOptional<z.ZodString>;
10678
+ done: z.ZodOptional<z.ZodBoolean>;
10679
+ completed: z.ZodOptional<z.ZodBoolean>;
10680
+ }, z.core.$loose>>>;
10681
+ summary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
10682
+ version: z.ZodOptional<z.ZodNumber>;
10683
+ ts: z.ZodOptional<z.ZodNumber>;
10684
+ source: z.ZodOptional<z.ZodString>;
10685
+ description: z.ZodOptional<z.ZodString>;
10686
+ }, z.core.$loose>>;
10224
10687
  source_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
10225
10688
  session_id: z.ZodString;
10226
10689
  tip_session_id: z.ZodString;
@@ -10303,6 +10766,7 @@ export declare const sessionsContract: {
10303
10766
  }, z.core.$strip>>;
10304
10767
  }, z.core.$strip>>;
10305
10768
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
10769
+ download_url: z.ZodOptional<z.ZodString>;
10306
10770
  filename: z.ZodOptional<z.ZodString>;
10307
10771
  name: z.ZodOptional<z.ZodString>;
10308
10772
  path: z.ZodOptional<z.ZodString>;
@@ -10349,8 +10813,8 @@ export declare const sessionsContract: {
10349
10813
  unknown: "unknown";
10350
10814
  memory: "memory";
10351
10815
  shell: "shell";
10352
- read: "read";
10353
10816
  list: "list";
10817
+ read: "read";
10354
10818
  search: "search";
10355
10819
  web: "web";
10356
10820
  write: "write";
@@ -10415,9 +10879,9 @@ export declare const sessionsContract: {
10415
10879
  kind: z.ZodEnum<{
10416
10880
  file: "file";
10417
10881
  image: "image";
10882
+ pdf: "pdf";
10418
10883
  audio: "audio";
10419
10884
  video: "video";
10420
- pdf: "pdf";
10421
10885
  }>;
10422
10886
  }, z.core.$strip>>>;
10423
10887
  tool: z.ZodOptional<z.ZodObject<{
@@ -10444,8 +10908,8 @@ export declare const sessionsContract: {
10444
10908
  status: z.ZodEnum<{
10445
10909
  unknown: "unknown";
10446
10910
  running: "running";
10447
- cancelled: "cancelled";
10448
10911
  failed: "failed";
10912
+ cancelled: "cancelled";
10449
10913
  completed: "completed";
10450
10914
  attention: "attention";
10451
10915
  }>;
@@ -10466,8 +10930,8 @@ export declare const sessionsContract: {
10466
10930
  unknown: "unknown";
10467
10931
  memory: "memory";
10468
10932
  shell: "shell";
10469
- read: "read";
10470
10933
  list: "list";
10934
+ read: "read";
10471
10935
  search: "search";
10472
10936
  web: "web";
10473
10937
  write: "write";
@@ -10522,9 +10986,9 @@ export declare const sessionsContract: {
10522
10986
  kind: z.ZodEnum<{
10523
10987
  file: "file";
10524
10988
  image: "image";
10989
+ pdf: "pdf";
10525
10990
  audio: "audio";
10526
10991
  video: "video";
10527
- pdf: "pdf";
10528
10992
  }>;
10529
10993
  }, z.core.$strip>>>;
10530
10994
  terminal_state: z.ZodOptional<z.ZodString>;
@@ -10570,9 +11034,9 @@ export declare const sessionsContract: {
10570
11034
  kind: z.ZodEnum<{
10571
11035
  file: "file";
10572
11036
  image: "image";
11037
+ pdf: "pdf";
10573
11038
  audio: "audio";
10574
11039
  video: "video";
10575
- pdf: "pdf";
10576
11040
  }>;
10577
11041
  }, z.core.$strip>>>;
10578
11042
  _background_update: z.ZodOptional<z.ZodObject<{
@@ -10587,9 +11051,9 @@ export declare const sessionsContract: {
10587
11051
  summary: z.ZodString;
10588
11052
  lines: z.ZodArray<z.ZodObject<{
10589
11053
  kind: z.ZodEnum<{
10590
- command: "command";
10591
11054
  agent: "agent";
10592
11055
  other: "other";
11056
+ command: "command";
10593
11057
  }>;
10594
11058
  status: z.ZodEnum<{
10595
11059
  failed: "failed";
@@ -10677,8 +11141,8 @@ export declare const sessionsContract: {
10677
11141
  unknown: "unknown";
10678
11142
  memory: "memory";
10679
11143
  shell: "shell";
10680
- read: "read";
10681
11144
  list: "list";
11145
+ read: "read";
10682
11146
  search: "search";
10683
11147
  web: "web";
10684
11148
  write: "write";
@@ -10771,8 +11235,8 @@ export declare const sessionsContract: {
10771
11235
  notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
10772
11236
  key: z.ZodString;
10773
11237
  level: z.ZodEnum<{
10774
- error: "error";
10775
11238
  success: "success";
11239
+ error: "error";
10776
11240
  info: "info";
10777
11241
  warn: "warn";
10778
11242
  }>;
@@ -10795,6 +11259,7 @@ export declare const sessionsContract: {
10795
11259
  has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
10796
11260
  pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10797
11261
  pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
11262
+ download_url: z.ZodOptional<z.ZodString>;
10798
11263
  filename: z.ZodOptional<z.ZodString>;
10799
11264
  name: z.ZodOptional<z.ZodString>;
10800
11265
  path: z.ZodOptional<z.ZodString>;
@@ -10838,8 +11303,8 @@ export declare const sessionsContract: {
10838
11303
  status: z.ZodEnum<{
10839
11304
  error: "error";
10840
11305
  running: "running";
10841
- done: "done";
10842
11306
  idle: "idle";
11307
+ done: "done";
10843
11308
  }>;
10844
11309
  session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10845
11310
  focus_topic: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -10976,10 +11441,6 @@ export declare const sessionsContract: {
10976
11441
  }, z.core.$strip>>>;
10977
11442
  assistant_name: z.ZodOptional<z.ZodString>;
10978
11443
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10979
- compression_reference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
10980
- text: z.ZodString;
10981
- after_message_index: z.ZodNullable<z.ZodNumber>;
10982
- }, z.core.$strip>>>;
10983
11444
  focus_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10984
11445
  branched_from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
10985
11446
  session_id: z.ZodString;
@@ -10989,16 +11450,55 @@ export declare const sessionsContract: {
10989
11450
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
10990
11451
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
10991
11452
  context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
11453
+ plan_gauge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
11454
+ id: z.ZodString;
11455
+ label: z.ZodString;
11456
+ used_bp: z.ZodNumber;
11457
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
11458
+ }, z.core.$strip>>>;
11459
+ show_reasoning: z.ZodOptional<z.ZodBoolean>;
10992
11460
  activity_phase: z.ZodOptional<z.ZodEnum<{
10993
- running: "running";
10994
- cancelled: "cancelled";
10995
11461
  stale: "stale";
11462
+ running: "running";
10996
11463
  failed: "failed";
11464
+ cancelled: "cancelled";
10997
11465
  completed: "completed";
10998
11466
  starting: "starting";
10999
11467
  waiting_for_approval: "waiting_for_approval";
11000
11468
  waiting_for_input: "waiting_for_input";
11001
11469
  }>>;
11470
+ todo_state: z.ZodOptional<z.ZodObject<{
11471
+ display_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
11472
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
11473
+ text: z.ZodString;
11474
+ state: z.ZodEnum<{
11475
+ pending: "pending";
11476
+ cancelled: "cancelled";
11477
+ completed: "completed";
11478
+ in_progress: "in_progress";
11479
+ }>;
11480
+ }, z.core.$strip>>>;
11481
+ total_count: z.ZodOptional<z.ZodNumber>;
11482
+ completed_count: z.ZodOptional<z.ZodNumber>;
11483
+ pending_count: z.ZodOptional<z.ZodNumber>;
11484
+ in_progress_count: z.ZodOptional<z.ZodNumber>;
11485
+ cancelled_count: z.ZodOptional<z.ZodNumber>;
11486
+ session_id: z.ZodOptional<z.ZodString>;
11487
+ todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
11488
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
11489
+ text: z.ZodOptional<z.ZodString>;
11490
+ content: z.ZodOptional<z.ZodString>;
11491
+ title: z.ZodOptional<z.ZodString>;
11492
+ status: z.ZodOptional<z.ZodString>;
11493
+ done: z.ZodOptional<z.ZodBoolean>;
11494
+ completed: z.ZodOptional<z.ZodBoolean>;
11495
+ }, z.core.$loose>>>;
11496
+ summary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
11497
+ version: z.ZodOptional<z.ZodNumber>;
11498
+ ts: z.ZodOptional<z.ZodNumber>;
11499
+ source: z.ZodOptional<z.ZodString>;
11500
+ description: z.ZodOptional<z.ZodString>;
11501
+ }, z.core.$loose>>;
11002
11502
  source_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
11003
11503
  session_id: z.ZodString;
11004
11504
  tip_session_id: z.ZodString;
@@ -11081,6 +11581,7 @@ export declare const sessionsContract: {
11081
11581
  }, z.core.$strip>>;
11082
11582
  }, z.core.$strip>>;
11083
11583
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
11584
+ download_url: z.ZodOptional<z.ZodString>;
11084
11585
  filename: z.ZodOptional<z.ZodString>;
11085
11586
  name: z.ZodOptional<z.ZodString>;
11086
11587
  path: z.ZodOptional<z.ZodString>;
@@ -11127,8 +11628,8 @@ export declare const sessionsContract: {
11127
11628
  unknown: "unknown";
11128
11629
  memory: "memory";
11129
11630
  shell: "shell";
11130
- read: "read";
11131
11631
  list: "list";
11632
+ read: "read";
11132
11633
  search: "search";
11133
11634
  web: "web";
11134
11635
  write: "write";
@@ -11193,9 +11694,9 @@ export declare const sessionsContract: {
11193
11694
  kind: z.ZodEnum<{
11194
11695
  file: "file";
11195
11696
  image: "image";
11697
+ pdf: "pdf";
11196
11698
  audio: "audio";
11197
11699
  video: "video";
11198
- pdf: "pdf";
11199
11700
  }>;
11200
11701
  }, z.core.$strip>>>;
11201
11702
  tool: z.ZodOptional<z.ZodObject<{
@@ -11222,8 +11723,8 @@ export declare const sessionsContract: {
11222
11723
  status: z.ZodEnum<{
11223
11724
  unknown: "unknown";
11224
11725
  running: "running";
11225
- cancelled: "cancelled";
11226
11726
  failed: "failed";
11727
+ cancelled: "cancelled";
11227
11728
  completed: "completed";
11228
11729
  attention: "attention";
11229
11730
  }>;
@@ -11244,8 +11745,8 @@ export declare const sessionsContract: {
11244
11745
  unknown: "unknown";
11245
11746
  memory: "memory";
11246
11747
  shell: "shell";
11247
- read: "read";
11248
11748
  list: "list";
11749
+ read: "read";
11249
11750
  search: "search";
11250
11751
  web: "web";
11251
11752
  write: "write";
@@ -11300,9 +11801,9 @@ export declare const sessionsContract: {
11300
11801
  kind: z.ZodEnum<{
11301
11802
  file: "file";
11302
11803
  image: "image";
11804
+ pdf: "pdf";
11303
11805
  audio: "audio";
11304
11806
  video: "video";
11305
- pdf: "pdf";
11306
11807
  }>;
11307
11808
  }, z.core.$strip>>>;
11308
11809
  terminal_state: z.ZodOptional<z.ZodString>;
@@ -11348,9 +11849,9 @@ export declare const sessionsContract: {
11348
11849
  kind: z.ZodEnum<{
11349
11850
  file: "file";
11350
11851
  image: "image";
11852
+ pdf: "pdf";
11351
11853
  audio: "audio";
11352
11854
  video: "video";
11353
- pdf: "pdf";
11354
11855
  }>;
11355
11856
  }, z.core.$strip>>>;
11356
11857
  _background_update: z.ZodOptional<z.ZodObject<{
@@ -11365,9 +11866,9 @@ export declare const sessionsContract: {
11365
11866
  summary: z.ZodString;
11366
11867
  lines: z.ZodArray<z.ZodObject<{
11367
11868
  kind: z.ZodEnum<{
11368
- command: "command";
11369
11869
  agent: "agent";
11370
11870
  other: "other";
11871
+ command: "command";
11371
11872
  }>;
11372
11873
  status: z.ZodEnum<{
11373
11874
  failed: "failed";
@@ -11455,8 +11956,8 @@ export declare const sessionsContract: {
11455
11956
  unknown: "unknown";
11456
11957
  memory: "memory";
11457
11958
  shell: "shell";
11458
- read: "read";
11459
11959
  list: "list";
11960
+ read: "read";
11460
11961
  search: "search";
11461
11962
  web: "web";
11462
11963
  write: "write";
@@ -11549,8 +12050,8 @@ export declare const sessionsContract: {
11549
12050
  notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
11550
12051
  key: z.ZodString;
11551
12052
  level: z.ZodEnum<{
11552
- error: "error";
11553
12053
  success: "success";
12054
+ error: "error";
11554
12055
  info: "info";
11555
12056
  warn: "warn";
11556
12057
  }>;
@@ -11573,6 +12074,7 @@ export declare const sessionsContract: {
11573
12074
  has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
11574
12075
  pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11575
12076
  pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
12077
+ download_url: z.ZodOptional<z.ZodString>;
11576
12078
  filename: z.ZodOptional<z.ZodString>;
11577
12079
  name: z.ZodOptional<z.ZodString>;
11578
12080
  path: z.ZodOptional<z.ZodString>;
@@ -11669,9 +12171,9 @@ export declare const sessionsContract: {
11669
12171
  kind: z.ZodEnum<{
11670
12172
  file: "file";
11671
12173
  image: "image";
12174
+ pdf: "pdf";
11672
12175
  audio: "audio";
11673
12176
  video: "video";
11674
- pdf: "pdf";
11675
12177
  }>;
11676
12178
  }, z.core.$strip>>>;
11677
12179
  tool: z.ZodOptional<z.ZodObject<{
@@ -11698,8 +12200,8 @@ export declare const sessionsContract: {
11698
12200
  status: z.ZodEnum<{
11699
12201
  unknown: "unknown";
11700
12202
  running: "running";
11701
- cancelled: "cancelled";
11702
12203
  failed: "failed";
12204
+ cancelled: "cancelled";
11703
12205
  completed: "completed";
11704
12206
  attention: "attention";
11705
12207
  }>;
@@ -11720,8 +12222,8 @@ export declare const sessionsContract: {
11720
12222
  unknown: "unknown";
11721
12223
  memory: "memory";
11722
12224
  shell: "shell";
11723
- read: "read";
11724
12225
  list: "list";
12226
+ read: "read";
11725
12227
  search: "search";
11726
12228
  web: "web";
11727
12229
  write: "write";
@@ -12084,12 +12586,16 @@ export declare const sessionsContract: {
12084
12586
  share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12085
12587
  worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12086
12588
  match_type: z.ZodOptional<z.ZodEnum<{
12087
- content: "content";
12088
12589
  title: "title";
12590
+ content: "content";
12089
12591
  metadata: "metadata";
12090
12592
  }>>;
12091
12593
  match_preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12092
12594
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12595
+ sidebar_group: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
12596
+ pinned: "pinned";
12597
+ recent: "recent";
12598
+ }>>>;
12093
12599
  }, z.core.$loose>;
12094
12600
  }, z.core.$loose>, Record<never, never>, Record<never, never>>;
12095
12601
  revoke: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
@@ -12220,12 +12726,16 @@ export declare const sessionsContract: {
12220
12726
  share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12221
12727
  worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12222
12728
  match_type: z.ZodOptional<z.ZodEnum<{
12223
- content: "content";
12224
12729
  title: "title";
12730
+ content: "content";
12225
12731
  metadata: "metadata";
12226
12732
  }>>;
12227
12733
  match_preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12228
12734
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12735
+ sidebar_group: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
12736
+ pinned: "pinned";
12737
+ recent: "recent";
12738
+ }>>>;
12229
12739
  }, z.core.$loose>;
12230
12740
  }, z.core.$catchall<z.ZodUnknown>>, Record<never, never>, Record<never, never>>;
12231
12741
  read: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{