@maudecode/talaria-web-contracts 1.21.0 → 1.23.2

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 (71) 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 +279 -83
  32. package/dist/routes/core.d.ts +168 -0
  33. package/dist/routes/core.js +48 -1
  34. package/dist/routes/core.js.map +1 -1
  35. package/dist/routes/groups.d.ts +860 -0
  36. package/dist/routes/groups.js +13 -0
  37. package/dist/routes/groups.js.map +1 -0
  38. package/dist/routes/raw.js +18 -3
  39. package/dist/routes/raw.js.map +1 -1
  40. package/dist/routes/sessions.d.ts +751 -204
  41. package/dist/routes/settings.d.ts +1100 -1
  42. package/dist/routes/settings.js +56 -0
  43. package/dist/routes/settings.js.map +1 -1
  44. package/dist/routes/tools.d.ts +109 -24
  45. package/dist/routes/tools.js +6 -3
  46. package/dist/routes/tools.js.map +1 -1
  47. package/dist/routes/workspaces.d.ts +2 -2
  48. package/dist/sidecar/methods.d.ts +522 -24
  49. package/dist/sidecar/methods.js +3 -1
  50. package/dist/sidecar/methods.js.map +1 -1
  51. package/dist/sidecar/namespaces.d.ts +611 -34
  52. package/dist/sidecar/namespaces.js +46 -5
  53. package/dist/sidecar/namespaces.js.map +1 -1
  54. package/dist/sidecar/rpc.d.ts +3 -3
  55. package/dist/sidecar/version.d.ts +1 -1
  56. package/dist/sidecar/version.js +1 -1
  57. package/dist/sse.d.ts +97 -20
  58. package/dist/sse.js +4 -3
  59. package/dist/sse.js.map +1 -1
  60. package/dist/views.d.ts +886 -161
  61. package/dist/views.js +48 -23
  62. package/dist/views.js.map +1 -1
  63. package/fixtures/sidecar/agent-imports.json +6 -0
  64. package/fixtures/sidecar/aux.json +58 -0
  65. package/fixtures/sidecar/connectors.json +29 -0
  66. package/fixtures/sidecar/groups.json +18 -0
  67. package/fixtures/sidecar/providers.json +37 -1
  68. package/fixtures/sidecar/runtime.json +3 -3
  69. package/fixtures/sidecar/skills.json +19 -2
  70. package/fixtures/sidecar/tts.json +6 -0
  71. package/package.json +1 -1
@@ -132,6 +132,7 @@ export declare const ChatSyncResponseSchema: z.ZodObject<{
132
132
  can_archive: z.ZodBoolean;
133
133
  can_delete: z.ZodBoolean;
134
134
  can_duplicate: z.ZodBoolean;
135
+ can_share: z.ZodBoolean;
135
136
  source_tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
136
137
  can_compress: z.ZodOptional<z.ZodBoolean>;
137
138
  confirms_deep_truncate: z.ZodOptional<z.ZodBoolean>;
@@ -163,10 +164,6 @@ export declare const ChatSyncResponseSchema: z.ZodObject<{
163
164
  }, z.core.$strip>>>;
164
165
  assistant_name: z.ZodOptional<z.ZodString>;
165
166
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
166
- compression_reference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
167
- text: z.ZodString;
168
- after_message_index: z.ZodNullable<z.ZodNumber>;
169
- }, z.core.$strip>>>;
170
167
  focus_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
171
168
  branched_from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
172
169
  session_id: z.ZodString;
@@ -176,16 +173,55 @@ export declare const ChatSyncResponseSchema: z.ZodObject<{
176
173
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
177
174
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
178
175
  context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
176
+ plan_gauge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
177
+ id: z.ZodString;
178
+ label: z.ZodString;
179
+ used_bp: z.ZodNumber;
180
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
181
+ }, z.core.$strip>>>;
182
+ show_reasoning: z.ZodOptional<z.ZodBoolean>;
179
183
  activity_phase: z.ZodOptional<z.ZodEnum<{
180
- running: "running";
181
- cancelled: "cancelled";
182
184
  stale: "stale";
185
+ running: "running";
183
186
  failed: "failed";
187
+ cancelled: "cancelled";
184
188
  completed: "completed";
185
189
  starting: "starting";
186
190
  waiting_for_approval: "waiting_for_approval";
187
191
  waiting_for_input: "waiting_for_input";
188
192
  }>>;
193
+ todo_state: z.ZodOptional<z.ZodObject<{
194
+ display_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
195
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
196
+ text: z.ZodString;
197
+ state: z.ZodEnum<{
198
+ pending: "pending";
199
+ cancelled: "cancelled";
200
+ completed: "completed";
201
+ in_progress: "in_progress";
202
+ }>;
203
+ }, z.core.$strip>>>;
204
+ total_count: z.ZodOptional<z.ZodNumber>;
205
+ completed_count: z.ZodOptional<z.ZodNumber>;
206
+ pending_count: z.ZodOptional<z.ZodNumber>;
207
+ in_progress_count: z.ZodOptional<z.ZodNumber>;
208
+ cancelled_count: z.ZodOptional<z.ZodNumber>;
209
+ session_id: z.ZodOptional<z.ZodString>;
210
+ todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
211
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
212
+ text: z.ZodOptional<z.ZodString>;
213
+ content: z.ZodOptional<z.ZodString>;
214
+ title: z.ZodOptional<z.ZodString>;
215
+ status: z.ZodOptional<z.ZodString>;
216
+ done: z.ZodOptional<z.ZodBoolean>;
217
+ completed: z.ZodOptional<z.ZodBoolean>;
218
+ }, z.core.$loose>>>;
219
+ summary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
220
+ version: z.ZodOptional<z.ZodNumber>;
221
+ ts: z.ZodOptional<z.ZodNumber>;
222
+ source: z.ZodOptional<z.ZodString>;
223
+ description: z.ZodOptional<z.ZodString>;
224
+ }, z.core.$loose>>;
189
225
  source_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
190
226
  session_id: z.ZodString;
191
227
  tip_session_id: z.ZodString;
@@ -194,6 +230,7 @@ export declare const ChatSyncResponseSchema: z.ZodObject<{
194
230
  }, z.core.$strip>>>;
195
231
  context_detail_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
196
232
  composer_state_key: z.ZodOptional<z.ZodString>;
233
+ clear_generation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
197
234
  session_id: z.ZodString;
198
235
  title: z.ZodString;
199
236
  workspace: z.ZodOptional<z.ZodString>;
@@ -268,6 +305,7 @@ export declare const ChatSyncResponseSchema: z.ZodObject<{
268
305
  }, z.core.$strip>>;
269
306
  }, z.core.$strip>>;
270
307
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
308
+ download_url: z.ZodOptional<z.ZodString>;
271
309
  filename: z.ZodOptional<z.ZodString>;
272
310
  name: z.ZodOptional<z.ZodString>;
273
311
  path: z.ZodOptional<z.ZodString>;
@@ -314,8 +352,8 @@ export declare const ChatSyncResponseSchema: z.ZodObject<{
314
352
  unknown: "unknown";
315
353
  memory: "memory";
316
354
  shell: "shell";
317
- read: "read";
318
355
  list: "list";
356
+ read: "read";
319
357
  search: "search";
320
358
  web: "web";
321
359
  write: "write";
@@ -380,9 +418,9 @@ export declare const ChatSyncResponseSchema: z.ZodObject<{
380
418
  kind: z.ZodEnum<{
381
419
  file: "file";
382
420
  image: "image";
421
+ pdf: "pdf";
383
422
  audio: "audio";
384
423
  video: "video";
385
- pdf: "pdf";
386
424
  }>;
387
425
  }, z.core.$strip>>>;
388
426
  tool: z.ZodOptional<z.ZodObject<{
@@ -409,8 +447,8 @@ export declare const ChatSyncResponseSchema: z.ZodObject<{
409
447
  status: z.ZodEnum<{
410
448
  unknown: "unknown";
411
449
  running: "running";
412
- cancelled: "cancelled";
413
450
  failed: "failed";
451
+ cancelled: "cancelled";
414
452
  completed: "completed";
415
453
  attention: "attention";
416
454
  }>;
@@ -431,8 +469,8 @@ export declare const ChatSyncResponseSchema: z.ZodObject<{
431
469
  unknown: "unknown";
432
470
  memory: "memory";
433
471
  shell: "shell";
434
- read: "read";
435
472
  list: "list";
473
+ read: "read";
436
474
  search: "search";
437
475
  web: "web";
438
476
  write: "write";
@@ -487,9 +525,9 @@ export declare const ChatSyncResponseSchema: z.ZodObject<{
487
525
  kind: z.ZodEnum<{
488
526
  file: "file";
489
527
  image: "image";
528
+ pdf: "pdf";
490
529
  audio: "audio";
491
530
  video: "video";
492
- pdf: "pdf";
493
531
  }>;
494
532
  }, z.core.$strip>>>;
495
533
  terminal_state: z.ZodOptional<z.ZodString>;
@@ -535,9 +573,9 @@ export declare const ChatSyncResponseSchema: z.ZodObject<{
535
573
  kind: z.ZodEnum<{
536
574
  file: "file";
537
575
  image: "image";
576
+ pdf: "pdf";
538
577
  audio: "audio";
539
578
  video: "video";
540
- pdf: "pdf";
541
579
  }>;
542
580
  }, z.core.$strip>>>;
543
581
  _background_update: z.ZodOptional<z.ZodObject<{
@@ -552,9 +590,9 @@ export declare const ChatSyncResponseSchema: z.ZodObject<{
552
590
  summary: z.ZodString;
553
591
  lines: z.ZodArray<z.ZodObject<{
554
592
  kind: z.ZodEnum<{
555
- command: "command";
556
593
  agent: "agent";
557
594
  other: "other";
595
+ command: "command";
558
596
  }>;
559
597
  status: z.ZodEnum<{
560
598
  failed: "failed";
@@ -642,8 +680,8 @@ export declare const ChatSyncResponseSchema: z.ZodObject<{
642
680
  unknown: "unknown";
643
681
  memory: "memory";
644
682
  shell: "shell";
645
- read: "read";
646
683
  list: "list";
684
+ read: "read";
647
685
  search: "search";
648
686
  web: "web";
649
687
  write: "write";
@@ -736,8 +774,8 @@ export declare const ChatSyncResponseSchema: z.ZodObject<{
736
774
  notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
737
775
  key: z.ZodString;
738
776
  level: z.ZodEnum<{
739
- error: "error";
740
777
  success: "success";
778
+ error: "error";
741
779
  info: "info";
742
780
  warn: "warn";
743
781
  }>;
@@ -760,6 +798,7 @@ export declare const ChatSyncResponseSchema: z.ZodObject<{
760
798
  has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
761
799
  pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
762
800
  pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
801
+ download_url: z.ZodOptional<z.ZodString>;
763
802
  filename: z.ZodOptional<z.ZodString>;
764
803
  name: z.ZodOptional<z.ZodString>;
765
804
  path: z.ZodOptional<z.ZodString>;
@@ -948,6 +987,7 @@ export declare const chatContract: {
948
987
  can_archive: z.ZodBoolean;
949
988
  can_delete: z.ZodBoolean;
950
989
  can_duplicate: z.ZodBoolean;
990
+ can_share: z.ZodBoolean;
951
991
  source_tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
952
992
  can_compress: z.ZodOptional<z.ZodBoolean>;
953
993
  confirms_deep_truncate: z.ZodOptional<z.ZodBoolean>;
@@ -979,10 +1019,6 @@ export declare const chatContract: {
979
1019
  }, z.core.$strip>>>;
980
1020
  assistant_name: z.ZodOptional<z.ZodString>;
981
1021
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
982
- compression_reference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
983
- text: z.ZodString;
984
- after_message_index: z.ZodNullable<z.ZodNumber>;
985
- }, z.core.$strip>>>;
986
1022
  focus_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
987
1023
  branched_from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
988
1024
  session_id: z.ZodString;
@@ -992,16 +1028,55 @@ export declare const chatContract: {
992
1028
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
993
1029
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
994
1030
  context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1031
+ plan_gauge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1032
+ id: z.ZodString;
1033
+ label: z.ZodString;
1034
+ used_bp: z.ZodNumber;
1035
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
1036
+ }, z.core.$strip>>>;
1037
+ show_reasoning: z.ZodOptional<z.ZodBoolean>;
995
1038
  activity_phase: z.ZodOptional<z.ZodEnum<{
996
- running: "running";
997
- cancelled: "cancelled";
998
1039
  stale: "stale";
1040
+ running: "running";
999
1041
  failed: "failed";
1042
+ cancelled: "cancelled";
1000
1043
  completed: "completed";
1001
1044
  starting: "starting";
1002
1045
  waiting_for_approval: "waiting_for_approval";
1003
1046
  waiting_for_input: "waiting_for_input";
1004
1047
  }>>;
1048
+ todo_state: z.ZodOptional<z.ZodObject<{
1049
+ display_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
1050
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1051
+ text: z.ZodString;
1052
+ state: z.ZodEnum<{
1053
+ pending: "pending";
1054
+ cancelled: "cancelled";
1055
+ completed: "completed";
1056
+ in_progress: "in_progress";
1057
+ }>;
1058
+ }, z.core.$strip>>>;
1059
+ total_count: z.ZodOptional<z.ZodNumber>;
1060
+ completed_count: z.ZodOptional<z.ZodNumber>;
1061
+ pending_count: z.ZodOptional<z.ZodNumber>;
1062
+ in_progress_count: z.ZodOptional<z.ZodNumber>;
1063
+ cancelled_count: z.ZodOptional<z.ZodNumber>;
1064
+ session_id: z.ZodOptional<z.ZodString>;
1065
+ todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
1066
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1067
+ text: z.ZodOptional<z.ZodString>;
1068
+ content: z.ZodOptional<z.ZodString>;
1069
+ title: z.ZodOptional<z.ZodString>;
1070
+ status: z.ZodOptional<z.ZodString>;
1071
+ done: z.ZodOptional<z.ZodBoolean>;
1072
+ completed: z.ZodOptional<z.ZodBoolean>;
1073
+ }, z.core.$loose>>>;
1074
+ summary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1075
+ version: z.ZodOptional<z.ZodNumber>;
1076
+ ts: z.ZodOptional<z.ZodNumber>;
1077
+ source: z.ZodOptional<z.ZodString>;
1078
+ description: z.ZodOptional<z.ZodString>;
1079
+ }, z.core.$loose>>;
1005
1080
  source_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
1006
1081
  session_id: z.ZodString;
1007
1082
  tip_session_id: z.ZodString;
@@ -1010,6 +1085,7 @@ export declare const chatContract: {
1010
1085
  }, z.core.$strip>>>;
1011
1086
  context_detail_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1012
1087
  composer_state_key: z.ZodOptional<z.ZodString>;
1088
+ clear_generation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1013
1089
  session_id: z.ZodString;
1014
1090
  title: z.ZodString;
1015
1091
  workspace: z.ZodOptional<z.ZodString>;
@@ -1084,6 +1160,7 @@ export declare const chatContract: {
1084
1160
  }, z.core.$strip>>;
1085
1161
  }, z.core.$strip>>;
1086
1162
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1163
+ download_url: z.ZodOptional<z.ZodString>;
1087
1164
  filename: z.ZodOptional<z.ZodString>;
1088
1165
  name: z.ZodOptional<z.ZodString>;
1089
1166
  path: z.ZodOptional<z.ZodString>;
@@ -1130,8 +1207,8 @@ export declare const chatContract: {
1130
1207
  unknown: "unknown";
1131
1208
  memory: "memory";
1132
1209
  shell: "shell";
1133
- read: "read";
1134
1210
  list: "list";
1211
+ read: "read";
1135
1212
  search: "search";
1136
1213
  web: "web";
1137
1214
  write: "write";
@@ -1196,9 +1273,9 @@ export declare const chatContract: {
1196
1273
  kind: z.ZodEnum<{
1197
1274
  file: "file";
1198
1275
  image: "image";
1276
+ pdf: "pdf";
1199
1277
  audio: "audio";
1200
1278
  video: "video";
1201
- pdf: "pdf";
1202
1279
  }>;
1203
1280
  }, z.core.$strip>>>;
1204
1281
  tool: z.ZodOptional<z.ZodObject<{
@@ -1225,8 +1302,8 @@ export declare const chatContract: {
1225
1302
  status: z.ZodEnum<{
1226
1303
  unknown: "unknown";
1227
1304
  running: "running";
1228
- cancelled: "cancelled";
1229
1305
  failed: "failed";
1306
+ cancelled: "cancelled";
1230
1307
  completed: "completed";
1231
1308
  attention: "attention";
1232
1309
  }>;
@@ -1247,8 +1324,8 @@ export declare const chatContract: {
1247
1324
  unknown: "unknown";
1248
1325
  memory: "memory";
1249
1326
  shell: "shell";
1250
- read: "read";
1251
1327
  list: "list";
1328
+ read: "read";
1252
1329
  search: "search";
1253
1330
  web: "web";
1254
1331
  write: "write";
@@ -1303,9 +1380,9 @@ export declare const chatContract: {
1303
1380
  kind: z.ZodEnum<{
1304
1381
  file: "file";
1305
1382
  image: "image";
1383
+ pdf: "pdf";
1306
1384
  audio: "audio";
1307
1385
  video: "video";
1308
- pdf: "pdf";
1309
1386
  }>;
1310
1387
  }, z.core.$strip>>>;
1311
1388
  terminal_state: z.ZodOptional<z.ZodString>;
@@ -1351,9 +1428,9 @@ export declare const chatContract: {
1351
1428
  kind: z.ZodEnum<{
1352
1429
  file: "file";
1353
1430
  image: "image";
1431
+ pdf: "pdf";
1354
1432
  audio: "audio";
1355
1433
  video: "video";
1356
- pdf: "pdf";
1357
1434
  }>;
1358
1435
  }, z.core.$strip>>>;
1359
1436
  _background_update: z.ZodOptional<z.ZodObject<{
@@ -1368,9 +1445,9 @@ export declare const chatContract: {
1368
1445
  summary: z.ZodString;
1369
1446
  lines: z.ZodArray<z.ZodObject<{
1370
1447
  kind: z.ZodEnum<{
1371
- command: "command";
1372
1448
  agent: "agent";
1373
1449
  other: "other";
1450
+ command: "command";
1374
1451
  }>;
1375
1452
  status: z.ZodEnum<{
1376
1453
  failed: "failed";
@@ -1458,8 +1535,8 @@ export declare const chatContract: {
1458
1535
  unknown: "unknown";
1459
1536
  memory: "memory";
1460
1537
  shell: "shell";
1461
- read: "read";
1462
1538
  list: "list";
1539
+ read: "read";
1463
1540
  search: "search";
1464
1541
  web: "web";
1465
1542
  write: "write";
@@ -1552,8 +1629,8 @@ export declare const chatContract: {
1552
1629
  notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
1553
1630
  key: z.ZodString;
1554
1631
  level: z.ZodEnum<{
1555
- error: "error";
1556
1632
  success: "success";
1633
+ error: "error";
1557
1634
  info: "info";
1558
1635
  warn: "warn";
1559
1636
  }>;
@@ -1576,6 +1653,7 @@ export declare const chatContract: {
1576
1653
  has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
1577
1654
  pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1578
1655
  pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1656
+ download_url: z.ZodOptional<z.ZodString>;
1579
1657
  filename: z.ZodOptional<z.ZodString>;
1580
1658
  name: z.ZodOptional<z.ZodString>;
1581
1659
  path: z.ZodOptional<z.ZodString>;
@@ -1719,6 +1797,7 @@ export declare const chatContract: {
1719
1797
  can_archive: z.ZodBoolean;
1720
1798
  can_delete: z.ZodBoolean;
1721
1799
  can_duplicate: z.ZodBoolean;
1800
+ can_share: z.ZodBoolean;
1722
1801
  source_tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1723
1802
  can_compress: z.ZodOptional<z.ZodBoolean>;
1724
1803
  confirms_deep_truncate: z.ZodOptional<z.ZodBoolean>;
@@ -1750,10 +1829,6 @@ export declare const chatContract: {
1750
1829
  }, z.core.$strip>>>;
1751
1830
  assistant_name: z.ZodOptional<z.ZodString>;
1752
1831
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1753
- compression_reference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1754
- text: z.ZodString;
1755
- after_message_index: z.ZodNullable<z.ZodNumber>;
1756
- }, z.core.$strip>>>;
1757
1832
  focus_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1758
1833
  branched_from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1759
1834
  session_id: z.ZodString;
@@ -1763,16 +1838,55 @@ export declare const chatContract: {
1763
1838
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1764
1839
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1765
1840
  context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1841
+ plan_gauge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1842
+ id: z.ZodString;
1843
+ label: z.ZodString;
1844
+ used_bp: z.ZodNumber;
1845
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
1846
+ }, z.core.$strip>>>;
1847
+ show_reasoning: z.ZodOptional<z.ZodBoolean>;
1766
1848
  activity_phase: z.ZodOptional<z.ZodEnum<{
1767
- running: "running";
1768
- cancelled: "cancelled";
1769
1849
  stale: "stale";
1850
+ running: "running";
1770
1851
  failed: "failed";
1852
+ cancelled: "cancelled";
1771
1853
  completed: "completed";
1772
1854
  starting: "starting";
1773
1855
  waiting_for_approval: "waiting_for_approval";
1774
1856
  waiting_for_input: "waiting_for_input";
1775
1857
  }>>;
1858
+ todo_state: z.ZodOptional<z.ZodObject<{
1859
+ display_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
1860
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1861
+ text: z.ZodString;
1862
+ state: z.ZodEnum<{
1863
+ pending: "pending";
1864
+ cancelled: "cancelled";
1865
+ completed: "completed";
1866
+ in_progress: "in_progress";
1867
+ }>;
1868
+ }, z.core.$strip>>>;
1869
+ total_count: z.ZodOptional<z.ZodNumber>;
1870
+ completed_count: z.ZodOptional<z.ZodNumber>;
1871
+ pending_count: z.ZodOptional<z.ZodNumber>;
1872
+ in_progress_count: z.ZodOptional<z.ZodNumber>;
1873
+ cancelled_count: z.ZodOptional<z.ZodNumber>;
1874
+ session_id: z.ZodOptional<z.ZodString>;
1875
+ todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
1876
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1877
+ text: z.ZodOptional<z.ZodString>;
1878
+ content: z.ZodOptional<z.ZodString>;
1879
+ title: z.ZodOptional<z.ZodString>;
1880
+ status: z.ZodOptional<z.ZodString>;
1881
+ done: z.ZodOptional<z.ZodBoolean>;
1882
+ completed: z.ZodOptional<z.ZodBoolean>;
1883
+ }, z.core.$loose>>>;
1884
+ summary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1885
+ version: z.ZodOptional<z.ZodNumber>;
1886
+ ts: z.ZodOptional<z.ZodNumber>;
1887
+ source: z.ZodOptional<z.ZodString>;
1888
+ description: z.ZodOptional<z.ZodString>;
1889
+ }, z.core.$loose>>;
1776
1890
  source_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
1777
1891
  session_id: z.ZodString;
1778
1892
  tip_session_id: z.ZodString;
@@ -1781,6 +1895,7 @@ export declare const chatContract: {
1781
1895
  }, z.core.$strip>>>;
1782
1896
  context_detail_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1783
1897
  composer_state_key: z.ZodOptional<z.ZodString>;
1898
+ clear_generation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1784
1899
  session_id: z.ZodString;
1785
1900
  title: z.ZodString;
1786
1901
  workspace: z.ZodOptional<z.ZodString>;
@@ -1855,6 +1970,7 @@ export declare const chatContract: {
1855
1970
  }, z.core.$strip>>;
1856
1971
  }, z.core.$strip>>;
1857
1972
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1973
+ download_url: z.ZodOptional<z.ZodString>;
1858
1974
  filename: z.ZodOptional<z.ZodString>;
1859
1975
  name: z.ZodOptional<z.ZodString>;
1860
1976
  path: z.ZodOptional<z.ZodString>;
@@ -1901,8 +2017,8 @@ export declare const chatContract: {
1901
2017
  unknown: "unknown";
1902
2018
  memory: "memory";
1903
2019
  shell: "shell";
1904
- read: "read";
1905
2020
  list: "list";
2021
+ read: "read";
1906
2022
  search: "search";
1907
2023
  web: "web";
1908
2024
  write: "write";
@@ -1967,9 +2083,9 @@ export declare const chatContract: {
1967
2083
  kind: z.ZodEnum<{
1968
2084
  file: "file";
1969
2085
  image: "image";
2086
+ pdf: "pdf";
1970
2087
  audio: "audio";
1971
2088
  video: "video";
1972
- pdf: "pdf";
1973
2089
  }>;
1974
2090
  }, z.core.$strip>>>;
1975
2091
  tool: z.ZodOptional<z.ZodObject<{
@@ -1996,8 +2112,8 @@ export declare const chatContract: {
1996
2112
  status: z.ZodEnum<{
1997
2113
  unknown: "unknown";
1998
2114
  running: "running";
1999
- cancelled: "cancelled";
2000
2115
  failed: "failed";
2116
+ cancelled: "cancelled";
2001
2117
  completed: "completed";
2002
2118
  attention: "attention";
2003
2119
  }>;
@@ -2018,8 +2134,8 @@ export declare const chatContract: {
2018
2134
  unknown: "unknown";
2019
2135
  memory: "memory";
2020
2136
  shell: "shell";
2021
- read: "read";
2022
2137
  list: "list";
2138
+ read: "read";
2023
2139
  search: "search";
2024
2140
  web: "web";
2025
2141
  write: "write";
@@ -2074,9 +2190,9 @@ export declare const chatContract: {
2074
2190
  kind: z.ZodEnum<{
2075
2191
  file: "file";
2076
2192
  image: "image";
2193
+ pdf: "pdf";
2077
2194
  audio: "audio";
2078
2195
  video: "video";
2079
- pdf: "pdf";
2080
2196
  }>;
2081
2197
  }, z.core.$strip>>>;
2082
2198
  terminal_state: z.ZodOptional<z.ZodString>;
@@ -2122,9 +2238,9 @@ export declare const chatContract: {
2122
2238
  kind: z.ZodEnum<{
2123
2239
  file: "file";
2124
2240
  image: "image";
2241
+ pdf: "pdf";
2125
2242
  audio: "audio";
2126
2243
  video: "video";
2127
- pdf: "pdf";
2128
2244
  }>;
2129
2245
  }, z.core.$strip>>>;
2130
2246
  _background_update: z.ZodOptional<z.ZodObject<{
@@ -2139,9 +2255,9 @@ export declare const chatContract: {
2139
2255
  summary: z.ZodString;
2140
2256
  lines: z.ZodArray<z.ZodObject<{
2141
2257
  kind: z.ZodEnum<{
2142
- command: "command";
2143
2258
  agent: "agent";
2144
2259
  other: "other";
2260
+ command: "command";
2145
2261
  }>;
2146
2262
  status: z.ZodEnum<{
2147
2263
  failed: "failed";
@@ -2229,8 +2345,8 @@ export declare const chatContract: {
2229
2345
  unknown: "unknown";
2230
2346
  memory: "memory";
2231
2347
  shell: "shell";
2232
- read: "read";
2233
2348
  list: "list";
2349
+ read: "read";
2234
2350
  search: "search";
2235
2351
  web: "web";
2236
2352
  write: "write";
@@ -2323,8 +2439,8 @@ export declare const chatContract: {
2323
2439
  notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
2324
2440
  key: z.ZodString;
2325
2441
  level: z.ZodEnum<{
2326
- error: "error";
2327
2442
  success: "success";
2443
+ error: "error";
2328
2444
  info: "info";
2329
2445
  warn: "warn";
2330
2446
  }>;
@@ -2347,6 +2463,7 @@ export declare const chatContract: {
2347
2463
  has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
2348
2464
  pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2349
2465
  pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
2466
+ download_url: z.ZodOptional<z.ZodString>;
2350
2467
  filename: z.ZodOptional<z.ZodString>;
2351
2468
  name: z.ZodOptional<z.ZodString>;
2352
2469
  path: z.ZodOptional<z.ZodString>;
@@ -2378,6 +2495,7 @@ export declare const chatContract: {
2378
2495
  profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2379
2496
  explicit_model_pick: z.ZodOptional<z.ZodBoolean>;
2380
2497
  attachments: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2498
+ download_url: z.ZodOptional<z.ZodString>;
2381
2499
  filename: z.ZodOptional<z.ZodString>;
2382
2500
  name: z.ZodOptional<z.ZodString>;
2383
2501
  path: z.ZodOptional<z.ZodString>;
@@ -2577,6 +2695,7 @@ export declare const chatContract: {
2577
2695
  can_archive: z.ZodBoolean;
2578
2696
  can_delete: z.ZodBoolean;
2579
2697
  can_duplicate: z.ZodBoolean;
2698
+ can_share: z.ZodBoolean;
2580
2699
  source_tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2581
2700
  can_compress: z.ZodOptional<z.ZodBoolean>;
2582
2701
  confirms_deep_truncate: z.ZodOptional<z.ZodBoolean>;
@@ -2608,10 +2727,6 @@ export declare const chatContract: {
2608
2727
  }, z.core.$strip>>>;
2609
2728
  assistant_name: z.ZodOptional<z.ZodString>;
2610
2729
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2611
- compression_reference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2612
- text: z.ZodString;
2613
- after_message_index: z.ZodNullable<z.ZodNumber>;
2614
- }, z.core.$strip>>>;
2615
2730
  focus_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2616
2731
  branched_from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2617
2732
  session_id: z.ZodString;
@@ -2621,16 +2736,55 @@ export declare const chatContract: {
2621
2736
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2622
2737
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2623
2738
  context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2739
+ plan_gauge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2740
+ id: z.ZodString;
2741
+ label: z.ZodString;
2742
+ used_bp: z.ZodNumber;
2743
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
2744
+ }, z.core.$strip>>>;
2745
+ show_reasoning: z.ZodOptional<z.ZodBoolean>;
2624
2746
  activity_phase: z.ZodOptional<z.ZodEnum<{
2625
- running: "running";
2626
- cancelled: "cancelled";
2627
2747
  stale: "stale";
2748
+ running: "running";
2628
2749
  failed: "failed";
2750
+ cancelled: "cancelled";
2629
2751
  completed: "completed";
2630
2752
  starting: "starting";
2631
2753
  waiting_for_approval: "waiting_for_approval";
2632
2754
  waiting_for_input: "waiting_for_input";
2633
2755
  }>>;
2756
+ todo_state: z.ZodOptional<z.ZodObject<{
2757
+ display_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
2758
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2759
+ text: z.ZodString;
2760
+ state: z.ZodEnum<{
2761
+ pending: "pending";
2762
+ cancelled: "cancelled";
2763
+ completed: "completed";
2764
+ in_progress: "in_progress";
2765
+ }>;
2766
+ }, z.core.$strip>>>;
2767
+ total_count: z.ZodOptional<z.ZodNumber>;
2768
+ completed_count: z.ZodOptional<z.ZodNumber>;
2769
+ pending_count: z.ZodOptional<z.ZodNumber>;
2770
+ in_progress_count: z.ZodOptional<z.ZodNumber>;
2771
+ cancelled_count: z.ZodOptional<z.ZodNumber>;
2772
+ session_id: z.ZodOptional<z.ZodString>;
2773
+ todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
2774
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2775
+ text: z.ZodOptional<z.ZodString>;
2776
+ content: z.ZodOptional<z.ZodString>;
2777
+ title: z.ZodOptional<z.ZodString>;
2778
+ status: z.ZodOptional<z.ZodString>;
2779
+ done: z.ZodOptional<z.ZodBoolean>;
2780
+ completed: z.ZodOptional<z.ZodBoolean>;
2781
+ }, z.core.$loose>>>;
2782
+ summary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2783
+ version: z.ZodOptional<z.ZodNumber>;
2784
+ ts: z.ZodOptional<z.ZodNumber>;
2785
+ source: z.ZodOptional<z.ZodString>;
2786
+ description: z.ZodOptional<z.ZodString>;
2787
+ }, z.core.$loose>>;
2634
2788
  source_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
2635
2789
  session_id: z.ZodString;
2636
2790
  tip_session_id: z.ZodString;
@@ -2639,6 +2793,7 @@ export declare const chatContract: {
2639
2793
  }, z.core.$strip>>>;
2640
2794
  context_detail_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2641
2795
  composer_state_key: z.ZodOptional<z.ZodString>;
2796
+ clear_generation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2642
2797
  session_id: z.ZodString;
2643
2798
  title: z.ZodString;
2644
2799
  workspace: z.ZodOptional<z.ZodString>;
@@ -2713,6 +2868,7 @@ export declare const chatContract: {
2713
2868
  }, z.core.$strip>>;
2714
2869
  }, z.core.$strip>>;
2715
2870
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
2871
+ download_url: z.ZodOptional<z.ZodString>;
2716
2872
  filename: z.ZodOptional<z.ZodString>;
2717
2873
  name: z.ZodOptional<z.ZodString>;
2718
2874
  path: z.ZodOptional<z.ZodString>;
@@ -2759,8 +2915,8 @@ export declare const chatContract: {
2759
2915
  unknown: "unknown";
2760
2916
  memory: "memory";
2761
2917
  shell: "shell";
2762
- read: "read";
2763
2918
  list: "list";
2919
+ read: "read";
2764
2920
  search: "search";
2765
2921
  web: "web";
2766
2922
  write: "write";
@@ -2825,9 +2981,9 @@ export declare const chatContract: {
2825
2981
  kind: z.ZodEnum<{
2826
2982
  file: "file";
2827
2983
  image: "image";
2984
+ pdf: "pdf";
2828
2985
  audio: "audio";
2829
2986
  video: "video";
2830
- pdf: "pdf";
2831
2987
  }>;
2832
2988
  }, z.core.$strip>>>;
2833
2989
  tool: z.ZodOptional<z.ZodObject<{
@@ -2854,8 +3010,8 @@ export declare const chatContract: {
2854
3010
  status: z.ZodEnum<{
2855
3011
  unknown: "unknown";
2856
3012
  running: "running";
2857
- cancelled: "cancelled";
2858
3013
  failed: "failed";
3014
+ cancelled: "cancelled";
2859
3015
  completed: "completed";
2860
3016
  attention: "attention";
2861
3017
  }>;
@@ -2876,8 +3032,8 @@ export declare const chatContract: {
2876
3032
  unknown: "unknown";
2877
3033
  memory: "memory";
2878
3034
  shell: "shell";
2879
- read: "read";
2880
3035
  list: "list";
3036
+ read: "read";
2881
3037
  search: "search";
2882
3038
  web: "web";
2883
3039
  write: "write";
@@ -2932,9 +3088,9 @@ export declare const chatContract: {
2932
3088
  kind: z.ZodEnum<{
2933
3089
  file: "file";
2934
3090
  image: "image";
3091
+ pdf: "pdf";
2935
3092
  audio: "audio";
2936
3093
  video: "video";
2937
- pdf: "pdf";
2938
3094
  }>;
2939
3095
  }, z.core.$strip>>>;
2940
3096
  terminal_state: z.ZodOptional<z.ZodString>;
@@ -2980,9 +3136,9 @@ export declare const chatContract: {
2980
3136
  kind: z.ZodEnum<{
2981
3137
  file: "file";
2982
3138
  image: "image";
3139
+ pdf: "pdf";
2983
3140
  audio: "audio";
2984
3141
  video: "video";
2985
- pdf: "pdf";
2986
3142
  }>;
2987
3143
  }, z.core.$strip>>>;
2988
3144
  _background_update: z.ZodOptional<z.ZodObject<{
@@ -2997,9 +3153,9 @@ export declare const chatContract: {
2997
3153
  summary: z.ZodString;
2998
3154
  lines: z.ZodArray<z.ZodObject<{
2999
3155
  kind: z.ZodEnum<{
3000
- command: "command";
3001
3156
  agent: "agent";
3002
3157
  other: "other";
3158
+ command: "command";
3003
3159
  }>;
3004
3160
  status: z.ZodEnum<{
3005
3161
  failed: "failed";
@@ -3087,8 +3243,8 @@ export declare const chatContract: {
3087
3243
  unknown: "unknown";
3088
3244
  memory: "memory";
3089
3245
  shell: "shell";
3090
- read: "read";
3091
3246
  list: "list";
3247
+ read: "read";
3092
3248
  search: "search";
3093
3249
  web: "web";
3094
3250
  write: "write";
@@ -3181,8 +3337,8 @@ export declare const chatContract: {
3181
3337
  notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
3182
3338
  key: z.ZodString;
3183
3339
  level: z.ZodEnum<{
3184
- error: "error";
3185
3340
  success: "success";
3341
+ error: "error";
3186
3342
  info: "info";
3187
3343
  warn: "warn";
3188
3344
  }>;
@@ -3205,6 +3361,7 @@ export declare const chatContract: {
3205
3361
  has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
3206
3362
  pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3207
3363
  pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
3364
+ download_url: z.ZodOptional<z.ZodString>;
3208
3365
  filename: z.ZodOptional<z.ZodString>;
3209
3366
  name: z.ZodOptional<z.ZodString>;
3210
3367
  path: z.ZodOptional<z.ZodString>;
@@ -3416,6 +3573,7 @@ export declare const chatContract: {
3416
3573
  can_archive: z.ZodBoolean;
3417
3574
  can_delete: z.ZodBoolean;
3418
3575
  can_duplicate: z.ZodBoolean;
3576
+ can_share: z.ZodBoolean;
3419
3577
  source_tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3420
3578
  can_compress: z.ZodOptional<z.ZodBoolean>;
3421
3579
  confirms_deep_truncate: z.ZodOptional<z.ZodBoolean>;
@@ -3447,10 +3605,6 @@ export declare const chatContract: {
3447
3605
  }, z.core.$strip>>>;
3448
3606
  assistant_name: z.ZodOptional<z.ZodString>;
3449
3607
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3450
- compression_reference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3451
- text: z.ZodString;
3452
- after_message_index: z.ZodNullable<z.ZodNumber>;
3453
- }, z.core.$strip>>>;
3454
3608
  focus_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3455
3609
  branched_from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3456
3610
  session_id: z.ZodString;
@@ -3460,16 +3614,55 @@ export declare const chatContract: {
3460
3614
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3461
3615
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3462
3616
  context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3617
+ plan_gauge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3618
+ id: z.ZodString;
3619
+ label: z.ZodString;
3620
+ used_bp: z.ZodNumber;
3621
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
3622
+ }, z.core.$strip>>>;
3623
+ show_reasoning: z.ZodOptional<z.ZodBoolean>;
3463
3624
  activity_phase: z.ZodOptional<z.ZodEnum<{
3464
- running: "running";
3465
- cancelled: "cancelled";
3466
3625
  stale: "stale";
3626
+ running: "running";
3467
3627
  failed: "failed";
3628
+ cancelled: "cancelled";
3468
3629
  completed: "completed";
3469
3630
  starting: "starting";
3470
3631
  waiting_for_approval: "waiting_for_approval";
3471
3632
  waiting_for_input: "waiting_for_input";
3472
3633
  }>>;
3634
+ todo_state: z.ZodOptional<z.ZodObject<{
3635
+ display_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
3636
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
3637
+ text: z.ZodString;
3638
+ state: z.ZodEnum<{
3639
+ pending: "pending";
3640
+ cancelled: "cancelled";
3641
+ completed: "completed";
3642
+ in_progress: "in_progress";
3643
+ }>;
3644
+ }, z.core.$strip>>>;
3645
+ total_count: z.ZodOptional<z.ZodNumber>;
3646
+ completed_count: z.ZodOptional<z.ZodNumber>;
3647
+ pending_count: z.ZodOptional<z.ZodNumber>;
3648
+ in_progress_count: z.ZodOptional<z.ZodNumber>;
3649
+ cancelled_count: z.ZodOptional<z.ZodNumber>;
3650
+ session_id: z.ZodOptional<z.ZodString>;
3651
+ todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
3652
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
3653
+ text: z.ZodOptional<z.ZodString>;
3654
+ content: z.ZodOptional<z.ZodString>;
3655
+ title: z.ZodOptional<z.ZodString>;
3656
+ status: z.ZodOptional<z.ZodString>;
3657
+ done: z.ZodOptional<z.ZodBoolean>;
3658
+ completed: z.ZodOptional<z.ZodBoolean>;
3659
+ }, z.core.$loose>>>;
3660
+ summary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3661
+ version: z.ZodOptional<z.ZodNumber>;
3662
+ ts: z.ZodOptional<z.ZodNumber>;
3663
+ source: z.ZodOptional<z.ZodString>;
3664
+ description: z.ZodOptional<z.ZodString>;
3665
+ }, z.core.$loose>>;
3473
3666
  source_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
3474
3667
  session_id: z.ZodString;
3475
3668
  tip_session_id: z.ZodString;
@@ -3478,6 +3671,7 @@ export declare const chatContract: {
3478
3671
  }, z.core.$strip>>>;
3479
3672
  context_detail_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3480
3673
  composer_state_key: z.ZodOptional<z.ZodString>;
3674
+ clear_generation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3481
3675
  session_id: z.ZodString;
3482
3676
  title: z.ZodString;
3483
3677
  workspace: z.ZodOptional<z.ZodString>;
@@ -3552,6 +3746,7 @@ export declare const chatContract: {
3552
3746
  }, z.core.$strip>>;
3553
3747
  }, z.core.$strip>>;
3554
3748
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
3749
+ download_url: z.ZodOptional<z.ZodString>;
3555
3750
  filename: z.ZodOptional<z.ZodString>;
3556
3751
  name: z.ZodOptional<z.ZodString>;
3557
3752
  path: z.ZodOptional<z.ZodString>;
@@ -3598,8 +3793,8 @@ export declare const chatContract: {
3598
3793
  unknown: "unknown";
3599
3794
  memory: "memory";
3600
3795
  shell: "shell";
3601
- read: "read";
3602
3796
  list: "list";
3797
+ read: "read";
3603
3798
  search: "search";
3604
3799
  web: "web";
3605
3800
  write: "write";
@@ -3664,9 +3859,9 @@ export declare const chatContract: {
3664
3859
  kind: z.ZodEnum<{
3665
3860
  file: "file";
3666
3861
  image: "image";
3862
+ pdf: "pdf";
3667
3863
  audio: "audio";
3668
3864
  video: "video";
3669
- pdf: "pdf";
3670
3865
  }>;
3671
3866
  }, z.core.$strip>>>;
3672
3867
  tool: z.ZodOptional<z.ZodObject<{
@@ -3693,8 +3888,8 @@ export declare const chatContract: {
3693
3888
  status: z.ZodEnum<{
3694
3889
  unknown: "unknown";
3695
3890
  running: "running";
3696
- cancelled: "cancelled";
3697
3891
  failed: "failed";
3892
+ cancelled: "cancelled";
3698
3893
  completed: "completed";
3699
3894
  attention: "attention";
3700
3895
  }>;
@@ -3715,8 +3910,8 @@ export declare const chatContract: {
3715
3910
  unknown: "unknown";
3716
3911
  memory: "memory";
3717
3912
  shell: "shell";
3718
- read: "read";
3719
3913
  list: "list";
3914
+ read: "read";
3720
3915
  search: "search";
3721
3916
  web: "web";
3722
3917
  write: "write";
@@ -3771,9 +3966,9 @@ export declare const chatContract: {
3771
3966
  kind: z.ZodEnum<{
3772
3967
  file: "file";
3773
3968
  image: "image";
3969
+ pdf: "pdf";
3774
3970
  audio: "audio";
3775
3971
  video: "video";
3776
- pdf: "pdf";
3777
3972
  }>;
3778
3973
  }, z.core.$strip>>>;
3779
3974
  terminal_state: z.ZodOptional<z.ZodString>;
@@ -3819,9 +4014,9 @@ export declare const chatContract: {
3819
4014
  kind: z.ZodEnum<{
3820
4015
  file: "file";
3821
4016
  image: "image";
4017
+ pdf: "pdf";
3822
4018
  audio: "audio";
3823
4019
  video: "video";
3824
- pdf: "pdf";
3825
4020
  }>;
3826
4021
  }, z.core.$strip>>>;
3827
4022
  _background_update: z.ZodOptional<z.ZodObject<{
@@ -3836,9 +4031,9 @@ export declare const chatContract: {
3836
4031
  summary: z.ZodString;
3837
4032
  lines: z.ZodArray<z.ZodObject<{
3838
4033
  kind: z.ZodEnum<{
3839
- command: "command";
3840
4034
  agent: "agent";
3841
4035
  other: "other";
4036
+ command: "command";
3842
4037
  }>;
3843
4038
  status: z.ZodEnum<{
3844
4039
  failed: "failed";
@@ -3926,8 +4121,8 @@ export declare const chatContract: {
3926
4121
  unknown: "unknown";
3927
4122
  memory: "memory";
3928
4123
  shell: "shell";
3929
- read: "read";
3930
4124
  list: "list";
4125
+ read: "read";
3931
4126
  search: "search";
3932
4127
  web: "web";
3933
4128
  write: "write";
@@ -4020,8 +4215,8 @@ export declare const chatContract: {
4020
4215
  notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
4021
4216
  key: z.ZodString;
4022
4217
  level: z.ZodEnum<{
4023
- error: "error";
4024
4218
  success: "success";
4219
+ error: "error";
4025
4220
  info: "info";
4026
4221
  warn: "warn";
4027
4222
  }>;
@@ -4044,6 +4239,7 @@ export declare const chatContract: {
4044
4239
  has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
4045
4240
  pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4046
4241
  pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
4242
+ download_url: z.ZodOptional<z.ZodString>;
4047
4243
  filename: z.ZodOptional<z.ZodString>;
4048
4244
  name: z.ZodOptional<z.ZodString>;
4049
4245
  path: z.ZodOptional<z.ZodString>;
@@ -4089,10 +4285,10 @@ export declare const chatContract: {
4089
4285
  stream_id: z.ZodOptional<z.ZodString>;
4090
4286
  }, z.core.$strip>, z.ZodObject<{
4091
4287
  activity_phase: z.ZodOptional<z.ZodEnum<{
4092
- running: "running";
4093
- cancelled: "cancelled";
4094
4288
  stale: "stale";
4289
+ running: "running";
4095
4290
  failed: "failed";
4291
+ cancelled: "cancelled";
4096
4292
  completed: "completed";
4097
4293
  starting: "starting";
4098
4294
  waiting_for_approval: "waiting_for_approval";
@@ -4117,10 +4313,10 @@ export declare const chatContract: {
4117
4313
  stream_id: z.ZodOptional<z.ZodString>;
4118
4314
  }, z.core.$strip>, z.ZodObject<{
4119
4315
  activity_phase: z.ZodOptional<z.ZodEnum<{
4120
- running: "running";
4121
- cancelled: "cancelled";
4122
4316
  stale: "stale";
4317
+ running: "running";
4123
4318
  failed: "failed";
4319
+ cancelled: "cancelled";
4124
4320
  completed: "completed";
4125
4321
  starting: "starting";
4126
4322
  waiting_for_approval: "waiting_for_approval";
@@ -4305,10 +4501,10 @@ export declare const chatContract: {
4305
4501
  }>>;
4306
4502
  }, z.core.$strip>, z.ZodObject<{
4307
4503
  activity_phase: z.ZodOptional<z.ZodEnum<{
4308
- running: "running";
4309
- cancelled: "cancelled";
4310
4504
  stale: "stale";
4505
+ running: "running";
4311
4506
  failed: "failed";
4507
+ cancelled: "cancelled";
4312
4508
  completed: "completed";
4313
4509
  starting: "starting";
4314
4510
  waiting_for_approval: "waiting_for_approval";
@@ -4325,8 +4521,8 @@ export declare const chatContract: {
4325
4521
  status: z.ZodEnum<{
4326
4522
  unknown: "unknown";
4327
4523
  running: "running";
4328
- cancelled: "cancelled";
4329
4524
  failed: "failed";
4525
+ cancelled: "cancelled";
4330
4526
  completed: "completed";
4331
4527
  attention: "attention";
4332
4528
  }>;
@@ -4386,8 +4582,8 @@ export declare const chatContract: {
4386
4582
  status: z.ZodEnum<{
4387
4583
  unknown: "unknown";
4388
4584
  running: "running";
4389
- cancelled: "cancelled";
4390
4585
  failed: "failed";
4586
+ cancelled: "cancelled";
4391
4587
  completed: "completed";
4392
4588
  attention: "attention";
4393
4589
  }>;