@maudecode/talaria-web-contracts 1.17.2 → 1.18.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 (62) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.js +1 -0
  3. package/dist/index.js.map +1 -1
  4. package/dist/openapi.js +5 -1
  5. package/dist/openapi.js.map +1 -1
  6. package/dist/router.d.ts +3555 -1107
  7. package/dist/routes/automation.d.ts +26 -1
  8. package/dist/routes/automation.js +2 -1
  9. package/dist/routes/automation.js.map +1 -1
  10. package/dist/routes/chat.d.ts +1164 -16
  11. package/dist/routes/chat.js +5 -3
  12. package/dist/routes/chat.js.map +1 -1
  13. package/dist/routes/core.d.ts +11 -0
  14. package/dist/routes/core.js +3 -0
  15. package/dist/routes/core.js.map +1 -1
  16. package/dist/routes/git.d.ts +76 -1
  17. package/dist/routes/git.js +13 -3
  18. package/dist/routes/git.js.map +1 -1
  19. package/dist/routes/raw.d.ts +3 -1
  20. package/dist/routes/raw.js +29 -5
  21. package/dist/routes/raw.js.map +1 -1
  22. package/dist/routes/sessions.d.ts +2807 -581
  23. package/dist/routes/sessions.js +58 -1
  24. package/dist/routes/sessions.js.map +1 -1
  25. package/dist/routes/settings.d.ts +31 -0
  26. package/dist/routes/tools.d.ts +356 -15
  27. package/dist/routes/tools.js +22 -3
  28. package/dist/routes/tools.js.map +1 -1
  29. package/dist/routes/workspaces.d.ts +82 -0
  30. package/dist/routes/workspaces.js +18 -1
  31. package/dist/routes/workspaces.js.map +1 -1
  32. package/dist/sidecar/methods.d.ts +133 -0
  33. package/dist/sidecar/methods.js +2 -1
  34. package/dist/sidecar/methods.js.map +1 -1
  35. package/dist/sidecar/namespaces.d.ts +177 -0
  36. package/dist/sidecar/namespaces.js +36 -3
  37. package/dist/sidecar/namespaces.js.map +1 -1
  38. package/dist/sidecar/version.d.ts +1 -1
  39. package/dist/sidecar/version.js +1 -1
  40. package/dist/sse.d.ts +37 -10
  41. package/dist/sse.js +1 -2
  42. package/dist/sse.js.map +1 -1
  43. package/dist/theme.d.ts +10 -0
  44. package/dist/theme.js +10 -0
  45. package/dist/theme.js.map +1 -0
  46. package/dist/views.d.ts +808 -37
  47. package/dist/views.js +110 -11
  48. package/dist/views.js.map +1 -1
  49. package/fixtures/sidecar/checkpoints.json +50 -0
  50. package/fixtures/sidecar/commands.json +55 -4
  51. package/fixtures/sidecar/cron.json +38 -55
  52. package/fixtures/sidecar/goals.json +6 -6
  53. package/fixtures/sidecar/kanban.json +92 -91
  54. package/fixtures/sidecar/plugins.json +171 -172
  55. package/fixtures/sidecar/profiles.json +10 -2
  56. package/fixtures/sidecar/providers.json +25 -12
  57. package/fixtures/sidecar/rpc.json +15 -0
  58. package/fixtures/sidecar/runtime.json +22 -29
  59. package/fixtures/sidecar/state_db.json +15 -0
  60. package/fixtures/sidecar/text.json +2 -2
  61. package/fixtures/sidecar/usage.json +10 -10
  62. package/package.json +1 -1
package/dist/views.d.ts CHANGED
@@ -35,16 +35,72 @@ export declare const ToolKindSchema: z.ZodEnum<{
35
35
  delegate: "delegate";
36
36
  }>;
37
37
  export type ToolKind = z.infer<typeof ToolKindSchema>;
38
+ /**
39
+ * TAL-604: one row of a unified diff hunk as the server parsed it. `text` is the raw line, its `+` / `-` / space prefix kept;
40
+ * `old_line` / `new_line` number it on each side (null on the side it is absent from, and on a `\ No newline` marker).
41
+ */
42
+ export declare const DiffLineSchema: z.ZodObject<{
43
+ kind: z.ZodEnum<{
44
+ context: "context";
45
+ addition: "addition";
46
+ deletion: "deletion";
47
+ }>;
48
+ old_line: z.ZodNullable<z.ZodNumber>;
49
+ new_line: z.ZodNullable<z.ZodNumber>;
50
+ text: z.ZodString;
51
+ }, z.core.$strip>;
52
+ /**
53
+ * TAL-604: one hunk of a unified diff: its `@@` `header`, the first old and new line numbers, the last new line it covers
54
+ * (`new_end`, at least `new_start`), its added and removed line counts, and its lines. A diff without `@@` headers yields
55
+ * one hunk per file with an empty `header` and null numbers.
56
+ */
57
+ export declare const DiffHunkSchema: z.ZodObject<{
58
+ header: z.ZodString;
59
+ old_start: z.ZodNullable<z.ZodNumber>;
60
+ new_start: z.ZodNullable<z.ZodNumber>;
61
+ new_end: z.ZodNullable<z.ZodNumber>;
62
+ additions: z.ZodNumber;
63
+ deletions: z.ZodNumber;
64
+ lines: z.ZodArray<z.ZodObject<{
65
+ kind: z.ZodEnum<{
66
+ context: "context";
67
+ addition: "addition";
68
+ deletion: "deletion";
69
+ }>;
70
+ old_line: z.ZodNullable<z.ZodNumber>;
71
+ new_line: z.ZodNullable<z.ZodNumber>;
72
+ text: z.ZodString;
73
+ }, z.core.$strip>>;
74
+ }, z.core.$strip>;
75
+ export type DiffHunk = z.infer<typeof DiffHunkSchema>;
38
76
  /**
39
77
  * TAL-448: a completed file-edit call's change, from its result's unified diff: `added` / `removed` count the whole diff's
40
- * lines (file headers excluded); `diff` is the redacted diff, capped at 400 lines, with `truncated` when cut. Absent on a
41
- * call whose result has no diff.
78
+ * lines (file headers excluded); `diff` is the redacted diff, capped at 400 lines, with `truncated` when cut, and `hunks`
79
+ * that diff parsed (TAL-604). Absent on a call whose result has no diff.
42
80
  */
43
81
  export declare const ToolEditDiffSchema: z.ZodObject<{
44
82
  added: z.ZodNumber;
45
83
  removed: z.ZodNumber;
46
84
  diff: z.ZodString;
47
85
  truncated: z.ZodBoolean;
86
+ hunks: z.ZodArray<z.ZodObject<{
87
+ header: z.ZodString;
88
+ old_start: z.ZodNullable<z.ZodNumber>;
89
+ new_start: z.ZodNullable<z.ZodNumber>;
90
+ new_end: z.ZodNullable<z.ZodNumber>;
91
+ additions: z.ZodNumber;
92
+ deletions: z.ZodNumber;
93
+ lines: z.ZodArray<z.ZodObject<{
94
+ kind: z.ZodEnum<{
95
+ context: "context";
96
+ addition: "addition";
97
+ deletion: "deletion";
98
+ }>;
99
+ old_line: z.ZodNullable<z.ZodNumber>;
100
+ new_line: z.ZodNullable<z.ZodNumber>;
101
+ text: z.ZodString;
102
+ }, z.core.$strip>>;
103
+ }, z.core.$strip>>;
48
104
  }, z.core.$strip>;
49
105
  export type ToolEditDiff = z.infer<typeof ToolEditDiffSchema>;
50
106
  /** Server-derived display fields every tool call carries: the kind, and the redacted first-line label of its main argument (`''` when none; omitted on a live frame with none, which keeps its start frame's target), and a file edit's `edit_diff`. */
@@ -67,6 +123,24 @@ export declare const ToolDisplayFields: {
67
123
  removed: z.ZodNumber;
68
124
  diff: z.ZodString;
69
125
  truncated: z.ZodBoolean;
126
+ hunks: z.ZodArray<z.ZodObject<{
127
+ header: z.ZodString;
128
+ old_start: z.ZodNullable<z.ZodNumber>;
129
+ new_start: z.ZodNullable<z.ZodNumber>;
130
+ new_end: z.ZodNullable<z.ZodNumber>;
131
+ additions: z.ZodNumber;
132
+ deletions: z.ZodNumber;
133
+ lines: z.ZodArray<z.ZodObject<{
134
+ kind: z.ZodEnum<{
135
+ context: "context";
136
+ addition: "addition";
137
+ deletion: "deletion";
138
+ }>;
139
+ old_line: z.ZodNullable<z.ZodNumber>;
140
+ new_line: z.ZodNullable<z.ZodNumber>;
141
+ text: z.ZodString;
142
+ }, z.core.$strip>>;
143
+ }, z.core.$strip>>;
70
144
  }, z.core.$strip>>;
71
145
  };
72
146
  /**
@@ -134,6 +208,24 @@ export declare const ToolCallSchema: z.ZodObject<{
134
208
  removed: z.ZodNumber;
135
209
  diff: z.ZodString;
136
210
  truncated: z.ZodBoolean;
211
+ hunks: z.ZodArray<z.ZodObject<{
212
+ header: z.ZodString;
213
+ old_start: z.ZodNullable<z.ZodNumber>;
214
+ new_start: z.ZodNullable<z.ZodNumber>;
215
+ new_end: z.ZodNullable<z.ZodNumber>;
216
+ additions: z.ZodNumber;
217
+ deletions: z.ZodNumber;
218
+ lines: z.ZodArray<z.ZodObject<{
219
+ kind: z.ZodEnum<{
220
+ context: "context";
221
+ addition: "addition";
222
+ deletion: "deletion";
223
+ }>;
224
+ old_line: z.ZodNullable<z.ZodNumber>;
225
+ new_line: z.ZodNullable<z.ZodNumber>;
226
+ text: z.ZodString;
227
+ }, z.core.$strip>>;
228
+ }, z.core.$strip>>;
137
229
  }, z.core.$strip>>;
138
230
  }, z.core.$loose>;
139
231
  export type ToolCall = z.infer<typeof ToolCallSchema>;
@@ -273,6 +365,24 @@ export declare const ActivitySceneRowSchema: z.ZodObject<{
273
365
  removed: z.ZodNumber;
274
366
  diff: z.ZodString;
275
367
  truncated: z.ZodBoolean;
368
+ hunks: z.ZodArray<z.ZodObject<{
369
+ header: z.ZodString;
370
+ old_start: z.ZodNullable<z.ZodNumber>;
371
+ new_start: z.ZodNullable<z.ZodNumber>;
372
+ new_end: z.ZodNullable<z.ZodNumber>;
373
+ additions: z.ZodNumber;
374
+ deletions: z.ZodNumber;
375
+ lines: z.ZodArray<z.ZodObject<{
376
+ kind: z.ZodEnum<{
377
+ context: "context";
378
+ addition: "addition";
379
+ deletion: "deletion";
380
+ }>;
381
+ old_line: z.ZodNullable<z.ZodNumber>;
382
+ new_line: z.ZodNullable<z.ZodNumber>;
383
+ text: z.ZodString;
384
+ }, z.core.$strip>>;
385
+ }, z.core.$strip>>;
276
386
  }, z.core.$strip>>;
277
387
  id: z.ZodString;
278
388
  name: z.ZodString;
@@ -388,6 +498,24 @@ export declare const ActivitySceneSchema: z.ZodObject<{
388
498
  removed: z.ZodNumber;
389
499
  diff: z.ZodString;
390
500
  truncated: z.ZodBoolean;
501
+ hunks: z.ZodArray<z.ZodObject<{
502
+ header: z.ZodString;
503
+ old_start: z.ZodNullable<z.ZodNumber>;
504
+ new_start: z.ZodNullable<z.ZodNumber>;
505
+ new_end: z.ZodNullable<z.ZodNumber>;
506
+ additions: z.ZodNumber;
507
+ deletions: z.ZodNumber;
508
+ lines: z.ZodArray<z.ZodObject<{
509
+ kind: z.ZodEnum<{
510
+ context: "context";
511
+ addition: "addition";
512
+ deletion: "deletion";
513
+ }>;
514
+ old_line: z.ZodNullable<z.ZodNumber>;
515
+ new_line: z.ZodNullable<z.ZodNumber>;
516
+ text: z.ZodString;
517
+ }, z.core.$strip>>;
518
+ }, z.core.$strip>>;
391
519
  }, z.core.$strip>>;
392
520
  id: z.ZodString;
393
521
  name: z.ZodString;
@@ -514,6 +642,24 @@ export declare const MessageSchema: z.ZodObject<{
514
642
  removed: z.ZodNumber;
515
643
  diff: z.ZodString;
516
644
  truncated: z.ZodBoolean;
645
+ hunks: z.ZodArray<z.ZodObject<{
646
+ header: z.ZodString;
647
+ old_start: z.ZodNullable<z.ZodNumber>;
648
+ new_start: z.ZodNullable<z.ZodNumber>;
649
+ new_end: z.ZodNullable<z.ZodNumber>;
650
+ additions: z.ZodNumber;
651
+ deletions: z.ZodNumber;
652
+ lines: z.ZodArray<z.ZodObject<{
653
+ kind: z.ZodEnum<{
654
+ context: "context";
655
+ addition: "addition";
656
+ deletion: "deletion";
657
+ }>;
658
+ old_line: z.ZodNullable<z.ZodNumber>;
659
+ new_line: z.ZodNullable<z.ZodNumber>;
660
+ text: z.ZodString;
661
+ }, z.core.$strip>>;
662
+ }, z.core.$strip>>;
517
663
  }, z.core.$strip>>;
518
664
  }, z.core.$loose>>>;
519
665
  reasoning: z.ZodOptional<z.ZodString>;
@@ -604,6 +750,24 @@ export declare const MessageSchema: z.ZodObject<{
604
750
  removed: z.ZodNumber;
605
751
  diff: z.ZodString;
606
752
  truncated: z.ZodBoolean;
753
+ hunks: z.ZodArray<z.ZodObject<{
754
+ header: z.ZodString;
755
+ old_start: z.ZodNullable<z.ZodNumber>;
756
+ new_start: z.ZodNullable<z.ZodNumber>;
757
+ new_end: z.ZodNullable<z.ZodNumber>;
758
+ additions: z.ZodNumber;
759
+ deletions: z.ZodNumber;
760
+ lines: z.ZodArray<z.ZodObject<{
761
+ kind: z.ZodEnum<{
762
+ context: "context";
763
+ addition: "addition";
764
+ deletion: "deletion";
765
+ }>;
766
+ old_line: z.ZodNullable<z.ZodNumber>;
767
+ new_line: z.ZodNullable<z.ZodNumber>;
768
+ text: z.ZodString;
769
+ }, z.core.$strip>>;
770
+ }, z.core.$strip>>;
607
771
  }, z.core.$strip>>;
608
772
  id: z.ZodString;
609
773
  name: z.ZodString;
@@ -652,6 +816,10 @@ export declare const MessageSchema: z.ZodObject<{
652
816
  activity_scene_ref: z.ZodOptional<z.ZodString>;
653
817
  }, z.core.$loose>>;
654
818
  _turn_id: z.ZodOptional<z.ZodString>;
819
+ _turnDuration: z.ZodOptional<z.ZodNumber>;
820
+ _turnTps: z.ZodOptional<z.ZodNumber>;
821
+ _ts: z.ZodOptional<z.ZodNumber>;
822
+ reasoning_titles: z.ZodOptional<z.ZodArray<z.ZodString>>;
655
823
  _active_turn_user: z.ZodOptional<z.ZodBoolean>;
656
824
  _steer: z.ZodOptional<z.ZodObject<{
657
825
  steer_id: z.ZodString;
@@ -708,6 +876,11 @@ export declare const MessageSchema: z.ZodObject<{
708
876
  _marker_body: z.ZodOptional<z.ZodString>;
709
877
  _background_reply: z.ZodOptional<z.ZodBoolean>;
710
878
  _background_silent: z.ZodOptional<z.ZodBoolean>;
879
+ _display: z.ZodOptional<z.ZodEnum<{
880
+ row: "row";
881
+ hidden: "hidden";
882
+ in_scene: "in_scene";
883
+ }>>;
711
884
  }, z.core.$loose>;
712
885
  export type Message = z.infer<typeof MessageSchema>;
713
886
  export declare const ComposerDraftSchema: z.ZodObject<{
@@ -766,6 +939,12 @@ export declare const CompressionReferenceSchema: z.ZodObject<{
766
939
  after_message_index: z.ZodNullable<z.ZodNumber>;
767
940
  }, z.core.$strip>;
768
941
  export type CompressionReference = z.infer<typeof CompressionReferenceSchema>;
942
+ /** TAL-454: the chat a `/branch` copied, with its redacted title. */
943
+ export declare const BranchedFromSchema: z.ZodObject<{
944
+ session_id: z.ZodString;
945
+ title: z.ZodString;
946
+ }, z.core.$strip>;
947
+ export type BranchedFrom = z.infer<typeof BranchedFromSchema>;
769
948
  /** Full session record from `GET /api/session` and mutations returning `session`. */
770
949
  export declare const SessionSchema: z.ZodObject<{
771
950
  enabled_toolsets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
@@ -795,6 +974,7 @@ export declare const SessionSchema: z.ZodObject<{
795
974
  can_delete: z.ZodBoolean;
796
975
  can_duplicate: z.ZodBoolean;
797
976
  source_tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
977
+ can_compress: z.ZodOptional<z.ZodBoolean>;
798
978
  source_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
799
979
  session_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
800
980
  raw_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -826,6 +1006,10 @@ export declare const SessionSchema: z.ZodObject<{
826
1006
  text: z.ZodString;
827
1007
  after_message_index: z.ZodNullable<z.ZodNumber>;
828
1008
  }, z.core.$strip>>>;
1009
+ branched_from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1010
+ session_id: z.ZodString;
1011
+ title: z.ZodString;
1012
+ }, z.core.$strip>>>;
829
1013
  context_used_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
830
1014
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
831
1015
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -899,6 +1083,24 @@ export declare const SessionSchema: z.ZodObject<{
899
1083
  removed: z.ZodNumber;
900
1084
  diff: z.ZodString;
901
1085
  truncated: z.ZodBoolean;
1086
+ hunks: z.ZodArray<z.ZodObject<{
1087
+ header: z.ZodString;
1088
+ old_start: z.ZodNullable<z.ZodNumber>;
1089
+ new_start: z.ZodNullable<z.ZodNumber>;
1090
+ new_end: z.ZodNullable<z.ZodNumber>;
1091
+ additions: z.ZodNumber;
1092
+ deletions: z.ZodNumber;
1093
+ lines: z.ZodArray<z.ZodObject<{
1094
+ kind: z.ZodEnum<{
1095
+ context: "context";
1096
+ addition: "addition";
1097
+ deletion: "deletion";
1098
+ }>;
1099
+ old_line: z.ZodNullable<z.ZodNumber>;
1100
+ new_line: z.ZodNullable<z.ZodNumber>;
1101
+ text: z.ZodString;
1102
+ }, z.core.$strip>>;
1103
+ }, z.core.$strip>>;
902
1104
  }, z.core.$strip>>;
903
1105
  }, z.core.$loose>>>;
904
1106
  reasoning: z.ZodOptional<z.ZodString>;
@@ -989,6 +1191,24 @@ export declare const SessionSchema: z.ZodObject<{
989
1191
  removed: z.ZodNumber;
990
1192
  diff: z.ZodString;
991
1193
  truncated: z.ZodBoolean;
1194
+ hunks: z.ZodArray<z.ZodObject<{
1195
+ header: z.ZodString;
1196
+ old_start: z.ZodNullable<z.ZodNumber>;
1197
+ new_start: z.ZodNullable<z.ZodNumber>;
1198
+ new_end: z.ZodNullable<z.ZodNumber>;
1199
+ additions: z.ZodNumber;
1200
+ deletions: z.ZodNumber;
1201
+ lines: z.ZodArray<z.ZodObject<{
1202
+ kind: z.ZodEnum<{
1203
+ context: "context";
1204
+ addition: "addition";
1205
+ deletion: "deletion";
1206
+ }>;
1207
+ old_line: z.ZodNullable<z.ZodNumber>;
1208
+ new_line: z.ZodNullable<z.ZodNumber>;
1209
+ text: z.ZodString;
1210
+ }, z.core.$strip>>;
1211
+ }, z.core.$strip>>;
992
1212
  }, z.core.$strip>>;
993
1213
  id: z.ZodString;
994
1214
  name: z.ZodString;
@@ -1037,6 +1257,10 @@ export declare const SessionSchema: z.ZodObject<{
1037
1257
  activity_scene_ref: z.ZodOptional<z.ZodString>;
1038
1258
  }, z.core.$loose>>;
1039
1259
  _turn_id: z.ZodOptional<z.ZodString>;
1260
+ _turnDuration: z.ZodOptional<z.ZodNumber>;
1261
+ _turnTps: z.ZodOptional<z.ZodNumber>;
1262
+ _ts: z.ZodOptional<z.ZodNumber>;
1263
+ reasoning_titles: z.ZodOptional<z.ZodArray<z.ZodString>>;
1040
1264
  _active_turn_user: z.ZodOptional<z.ZodBoolean>;
1041
1265
  _steer: z.ZodOptional<z.ZodObject<{
1042
1266
  steer_id: z.ZodString;
@@ -1093,6 +1317,11 @@ export declare const SessionSchema: z.ZodObject<{
1093
1317
  _marker_body: z.ZodOptional<z.ZodString>;
1094
1318
  _background_reply: z.ZodOptional<z.ZodBoolean>;
1095
1319
  _background_silent: z.ZodOptional<z.ZodBoolean>;
1320
+ _display: z.ZodOptional<z.ZodEnum<{
1321
+ row: "row";
1322
+ hidden: "hidden";
1323
+ in_scene: "in_scene";
1324
+ }>>;
1096
1325
  }, z.core.$loose>>>;
1097
1326
  tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1098
1327
  name: z.ZodOptional<z.ZodString>;
@@ -1138,6 +1367,24 @@ export declare const SessionSchema: z.ZodObject<{
1138
1367
  removed: z.ZodNumber;
1139
1368
  diff: z.ZodString;
1140
1369
  truncated: z.ZodBoolean;
1370
+ hunks: z.ZodArray<z.ZodObject<{
1371
+ header: z.ZodString;
1372
+ old_start: z.ZodNullable<z.ZodNumber>;
1373
+ new_start: z.ZodNullable<z.ZodNumber>;
1374
+ new_end: z.ZodNullable<z.ZodNumber>;
1375
+ additions: z.ZodNumber;
1376
+ deletions: z.ZodNumber;
1377
+ lines: z.ZodArray<z.ZodObject<{
1378
+ kind: z.ZodEnum<{
1379
+ context: "context";
1380
+ addition: "addition";
1381
+ deletion: "deletion";
1382
+ }>;
1383
+ old_line: z.ZodNullable<z.ZodNumber>;
1384
+ new_line: z.ZodNullable<z.ZodNumber>;
1385
+ text: z.ZodString;
1386
+ }, z.core.$strip>>;
1387
+ }, z.core.$strip>>;
1141
1388
  }, z.core.$strip>>;
1142
1389
  }, z.core.$loose>>>;
1143
1390
  created_at: z.ZodOptional<z.ZodNumber>;
@@ -1224,6 +1471,7 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1224
1471
  can_delete: z.ZodBoolean;
1225
1472
  can_duplicate: z.ZodBoolean;
1226
1473
  source_tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1474
+ can_compress: z.ZodOptional<z.ZodBoolean>;
1227
1475
  source_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1228
1476
  session_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1229
1477
  raw_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1255,6 +1503,10 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1255
1503
  text: z.ZodString;
1256
1504
  after_message_index: z.ZodNullable<z.ZodNumber>;
1257
1505
  }, z.core.$strip>>>;
1506
+ branched_from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1507
+ session_id: z.ZodString;
1508
+ title: z.ZodString;
1509
+ }, z.core.$strip>>>;
1258
1510
  context_used_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1259
1511
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1260
1512
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -1328,6 +1580,24 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1328
1580
  removed: z.ZodNumber;
1329
1581
  diff: z.ZodString;
1330
1582
  truncated: z.ZodBoolean;
1583
+ hunks: z.ZodArray<z.ZodObject<{
1584
+ header: z.ZodString;
1585
+ old_start: z.ZodNullable<z.ZodNumber>;
1586
+ new_start: z.ZodNullable<z.ZodNumber>;
1587
+ new_end: z.ZodNullable<z.ZodNumber>;
1588
+ additions: z.ZodNumber;
1589
+ deletions: z.ZodNumber;
1590
+ lines: z.ZodArray<z.ZodObject<{
1591
+ kind: z.ZodEnum<{
1592
+ context: "context";
1593
+ addition: "addition";
1594
+ deletion: "deletion";
1595
+ }>;
1596
+ old_line: z.ZodNullable<z.ZodNumber>;
1597
+ new_line: z.ZodNullable<z.ZodNumber>;
1598
+ text: z.ZodString;
1599
+ }, z.core.$strip>>;
1600
+ }, z.core.$strip>>;
1331
1601
  }, z.core.$strip>>;
1332
1602
  }, z.core.$loose>>>;
1333
1603
  reasoning: z.ZodOptional<z.ZodString>;
@@ -1418,6 +1688,24 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1418
1688
  removed: z.ZodNumber;
1419
1689
  diff: z.ZodString;
1420
1690
  truncated: z.ZodBoolean;
1691
+ hunks: z.ZodArray<z.ZodObject<{
1692
+ header: z.ZodString;
1693
+ old_start: z.ZodNullable<z.ZodNumber>;
1694
+ new_start: z.ZodNullable<z.ZodNumber>;
1695
+ new_end: z.ZodNullable<z.ZodNumber>;
1696
+ additions: z.ZodNumber;
1697
+ deletions: z.ZodNumber;
1698
+ lines: z.ZodArray<z.ZodObject<{
1699
+ kind: z.ZodEnum<{
1700
+ context: "context";
1701
+ addition: "addition";
1702
+ deletion: "deletion";
1703
+ }>;
1704
+ old_line: z.ZodNullable<z.ZodNumber>;
1705
+ new_line: z.ZodNullable<z.ZodNumber>;
1706
+ text: z.ZodString;
1707
+ }, z.core.$strip>>;
1708
+ }, z.core.$strip>>;
1421
1709
  }, z.core.$strip>>;
1422
1710
  id: z.ZodString;
1423
1711
  name: z.ZodString;
@@ -1466,6 +1754,10 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1466
1754
  activity_scene_ref: z.ZodOptional<z.ZodString>;
1467
1755
  }, z.core.$loose>>;
1468
1756
  _turn_id: z.ZodOptional<z.ZodString>;
1757
+ _turnDuration: z.ZodOptional<z.ZodNumber>;
1758
+ _turnTps: z.ZodOptional<z.ZodNumber>;
1759
+ _ts: z.ZodOptional<z.ZodNumber>;
1760
+ reasoning_titles: z.ZodOptional<z.ZodArray<z.ZodString>>;
1469
1761
  _active_turn_user: z.ZodOptional<z.ZodBoolean>;
1470
1762
  _steer: z.ZodOptional<z.ZodObject<{
1471
1763
  steer_id: z.ZodString;
@@ -1522,6 +1814,11 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1522
1814
  _marker_body: z.ZodOptional<z.ZodString>;
1523
1815
  _background_reply: z.ZodOptional<z.ZodBoolean>;
1524
1816
  _background_silent: z.ZodOptional<z.ZodBoolean>;
1817
+ _display: z.ZodOptional<z.ZodEnum<{
1818
+ row: "row";
1819
+ hidden: "hidden";
1820
+ in_scene: "in_scene";
1821
+ }>>;
1525
1822
  }, z.core.$loose>>>;
1526
1823
  tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1527
1824
  name: z.ZodOptional<z.ZodString>;
@@ -1567,6 +1864,24 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1567
1864
  removed: z.ZodNumber;
1568
1865
  diff: z.ZodString;
1569
1866
  truncated: z.ZodBoolean;
1867
+ hunks: z.ZodArray<z.ZodObject<{
1868
+ header: z.ZodString;
1869
+ old_start: z.ZodNullable<z.ZodNumber>;
1870
+ new_start: z.ZodNullable<z.ZodNumber>;
1871
+ new_end: z.ZodNullable<z.ZodNumber>;
1872
+ additions: z.ZodNumber;
1873
+ deletions: z.ZodNumber;
1874
+ lines: z.ZodArray<z.ZodObject<{
1875
+ kind: z.ZodEnum<{
1876
+ context: "context";
1877
+ addition: "addition";
1878
+ deletion: "deletion";
1879
+ }>;
1880
+ old_line: z.ZodNullable<z.ZodNumber>;
1881
+ new_line: z.ZodNullable<z.ZodNumber>;
1882
+ text: z.ZodString;
1883
+ }, z.core.$strip>>;
1884
+ }, z.core.$strip>>;
1570
1885
  }, z.core.$strip>>;
1571
1886
  }, z.core.$loose>>>;
1572
1887
  created_at: z.ZodOptional<z.ZodNumber>;
@@ -1946,6 +2261,7 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
1946
2261
  can_delete: z.ZodBoolean;
1947
2262
  can_duplicate: z.ZodBoolean;
1948
2263
  source_tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2264
+ can_compress: z.ZodOptional<z.ZodBoolean>;
1949
2265
  source_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1950
2266
  session_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1951
2267
  raw_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1977,6 +2293,10 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
1977
2293
  text: z.ZodString;
1978
2294
  after_message_index: z.ZodNullable<z.ZodNumber>;
1979
2295
  }, z.core.$strip>>>;
2296
+ branched_from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2297
+ session_id: z.ZodString;
2298
+ title: z.ZodString;
2299
+ }, z.core.$strip>>>;
1980
2300
  context_used_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1981
2301
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1982
2302
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -2050,6 +2370,24 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
2050
2370
  removed: z.ZodNumber;
2051
2371
  diff: z.ZodString;
2052
2372
  truncated: z.ZodBoolean;
2373
+ hunks: z.ZodArray<z.ZodObject<{
2374
+ header: z.ZodString;
2375
+ old_start: z.ZodNullable<z.ZodNumber>;
2376
+ new_start: z.ZodNullable<z.ZodNumber>;
2377
+ new_end: z.ZodNullable<z.ZodNumber>;
2378
+ additions: z.ZodNumber;
2379
+ deletions: z.ZodNumber;
2380
+ lines: z.ZodArray<z.ZodObject<{
2381
+ kind: z.ZodEnum<{
2382
+ context: "context";
2383
+ addition: "addition";
2384
+ deletion: "deletion";
2385
+ }>;
2386
+ old_line: z.ZodNullable<z.ZodNumber>;
2387
+ new_line: z.ZodNullable<z.ZodNumber>;
2388
+ text: z.ZodString;
2389
+ }, z.core.$strip>>;
2390
+ }, z.core.$strip>>;
2053
2391
  }, z.core.$strip>>;
2054
2392
  }, z.core.$loose>>>;
2055
2393
  reasoning: z.ZodOptional<z.ZodString>;
@@ -2140,6 +2478,24 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
2140
2478
  removed: z.ZodNumber;
2141
2479
  diff: z.ZodString;
2142
2480
  truncated: z.ZodBoolean;
2481
+ hunks: z.ZodArray<z.ZodObject<{
2482
+ header: z.ZodString;
2483
+ old_start: z.ZodNullable<z.ZodNumber>;
2484
+ new_start: z.ZodNullable<z.ZodNumber>;
2485
+ new_end: z.ZodNullable<z.ZodNumber>;
2486
+ additions: z.ZodNumber;
2487
+ deletions: z.ZodNumber;
2488
+ lines: z.ZodArray<z.ZodObject<{
2489
+ kind: z.ZodEnum<{
2490
+ context: "context";
2491
+ addition: "addition";
2492
+ deletion: "deletion";
2493
+ }>;
2494
+ old_line: z.ZodNullable<z.ZodNumber>;
2495
+ new_line: z.ZodNullable<z.ZodNumber>;
2496
+ text: z.ZodString;
2497
+ }, z.core.$strip>>;
2498
+ }, z.core.$strip>>;
2143
2499
  }, z.core.$strip>>;
2144
2500
  id: z.ZodString;
2145
2501
  name: z.ZodString;
@@ -2188,6 +2544,10 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
2188
2544
  activity_scene_ref: z.ZodOptional<z.ZodString>;
2189
2545
  }, z.core.$loose>>;
2190
2546
  _turn_id: z.ZodOptional<z.ZodString>;
2547
+ _turnDuration: z.ZodOptional<z.ZodNumber>;
2548
+ _turnTps: z.ZodOptional<z.ZodNumber>;
2549
+ _ts: z.ZodOptional<z.ZodNumber>;
2550
+ reasoning_titles: z.ZodOptional<z.ZodArray<z.ZodString>>;
2191
2551
  _active_turn_user: z.ZodOptional<z.ZodBoolean>;
2192
2552
  _steer: z.ZodOptional<z.ZodObject<{
2193
2553
  steer_id: z.ZodString;
@@ -2244,6 +2604,11 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
2244
2604
  _marker_body: z.ZodOptional<z.ZodString>;
2245
2605
  _background_reply: z.ZodOptional<z.ZodBoolean>;
2246
2606
  _background_silent: z.ZodOptional<z.ZodBoolean>;
2607
+ _display: z.ZodOptional<z.ZodEnum<{
2608
+ row: "row";
2609
+ hidden: "hidden";
2610
+ in_scene: "in_scene";
2611
+ }>>;
2247
2612
  }, z.core.$loose>>>;
2248
2613
  tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2249
2614
  name: z.ZodOptional<z.ZodString>;
@@ -2289,6 +2654,24 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
2289
2654
  removed: z.ZodNumber;
2290
2655
  diff: z.ZodString;
2291
2656
  truncated: z.ZodBoolean;
2657
+ hunks: z.ZodArray<z.ZodObject<{
2658
+ header: z.ZodString;
2659
+ old_start: z.ZodNullable<z.ZodNumber>;
2660
+ new_start: z.ZodNullable<z.ZodNumber>;
2661
+ new_end: z.ZodNullable<z.ZodNumber>;
2662
+ additions: z.ZodNumber;
2663
+ deletions: z.ZodNumber;
2664
+ lines: z.ZodArray<z.ZodObject<{
2665
+ kind: z.ZodEnum<{
2666
+ context: "context";
2667
+ addition: "addition";
2668
+ deletion: "deletion";
2669
+ }>;
2670
+ old_line: z.ZodNullable<z.ZodNumber>;
2671
+ new_line: z.ZodNullable<z.ZodNumber>;
2672
+ text: z.ZodString;
2673
+ }, z.core.$strip>>;
2674
+ }, z.core.$strip>>;
2292
2675
  }, z.core.$strip>>;
2293
2676
  }, z.core.$loose>>>;
2294
2677
  created_at: z.ZodOptional<z.ZodNumber>;
@@ -2473,6 +2856,7 @@ export declare const SteerResponseSchema: z.ZodObject<{
2473
2856
  can_delete: z.ZodBoolean;
2474
2857
  can_duplicate: z.ZodBoolean;
2475
2858
  source_tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2859
+ can_compress: z.ZodOptional<z.ZodBoolean>;
2476
2860
  source_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2477
2861
  session_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2478
2862
  raw_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2504,6 +2888,10 @@ export declare const SteerResponseSchema: z.ZodObject<{
2504
2888
  text: z.ZodString;
2505
2889
  after_message_index: z.ZodNullable<z.ZodNumber>;
2506
2890
  }, z.core.$strip>>>;
2891
+ branched_from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2892
+ session_id: z.ZodString;
2893
+ title: z.ZodString;
2894
+ }, z.core.$strip>>>;
2507
2895
  context_used_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2508
2896
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2509
2897
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -2577,6 +2965,24 @@ export declare const SteerResponseSchema: z.ZodObject<{
2577
2965
  removed: z.ZodNumber;
2578
2966
  diff: z.ZodString;
2579
2967
  truncated: z.ZodBoolean;
2968
+ hunks: z.ZodArray<z.ZodObject<{
2969
+ header: z.ZodString;
2970
+ old_start: z.ZodNullable<z.ZodNumber>;
2971
+ new_start: z.ZodNullable<z.ZodNumber>;
2972
+ new_end: z.ZodNullable<z.ZodNumber>;
2973
+ additions: z.ZodNumber;
2974
+ deletions: z.ZodNumber;
2975
+ lines: z.ZodArray<z.ZodObject<{
2976
+ kind: z.ZodEnum<{
2977
+ context: "context";
2978
+ addition: "addition";
2979
+ deletion: "deletion";
2980
+ }>;
2981
+ old_line: z.ZodNullable<z.ZodNumber>;
2982
+ new_line: z.ZodNullable<z.ZodNumber>;
2983
+ text: z.ZodString;
2984
+ }, z.core.$strip>>;
2985
+ }, z.core.$strip>>;
2580
2986
  }, z.core.$strip>>;
2581
2987
  }, z.core.$loose>>>;
2582
2988
  reasoning: z.ZodOptional<z.ZodString>;
@@ -2667,6 +3073,24 @@ export declare const SteerResponseSchema: z.ZodObject<{
2667
3073
  removed: z.ZodNumber;
2668
3074
  diff: z.ZodString;
2669
3075
  truncated: z.ZodBoolean;
3076
+ hunks: z.ZodArray<z.ZodObject<{
3077
+ header: z.ZodString;
3078
+ old_start: z.ZodNullable<z.ZodNumber>;
3079
+ new_start: z.ZodNullable<z.ZodNumber>;
3080
+ new_end: z.ZodNullable<z.ZodNumber>;
3081
+ additions: z.ZodNumber;
3082
+ deletions: z.ZodNumber;
3083
+ lines: z.ZodArray<z.ZodObject<{
3084
+ kind: z.ZodEnum<{
3085
+ context: "context";
3086
+ addition: "addition";
3087
+ deletion: "deletion";
3088
+ }>;
3089
+ old_line: z.ZodNullable<z.ZodNumber>;
3090
+ new_line: z.ZodNullable<z.ZodNumber>;
3091
+ text: z.ZodString;
3092
+ }, z.core.$strip>>;
3093
+ }, z.core.$strip>>;
2670
3094
  }, z.core.$strip>>;
2671
3095
  id: z.ZodString;
2672
3096
  name: z.ZodString;
@@ -2715,6 +3139,10 @@ export declare const SteerResponseSchema: z.ZodObject<{
2715
3139
  activity_scene_ref: z.ZodOptional<z.ZodString>;
2716
3140
  }, z.core.$loose>>;
2717
3141
  _turn_id: z.ZodOptional<z.ZodString>;
3142
+ _turnDuration: z.ZodOptional<z.ZodNumber>;
3143
+ _turnTps: z.ZodOptional<z.ZodNumber>;
3144
+ _ts: z.ZodOptional<z.ZodNumber>;
3145
+ reasoning_titles: z.ZodOptional<z.ZodArray<z.ZodString>>;
2718
3146
  _active_turn_user: z.ZodOptional<z.ZodBoolean>;
2719
3147
  _steer: z.ZodOptional<z.ZodObject<{
2720
3148
  steer_id: z.ZodString;
@@ -2771,6 +3199,11 @@ export declare const SteerResponseSchema: z.ZodObject<{
2771
3199
  _marker_body: z.ZodOptional<z.ZodString>;
2772
3200
  _background_reply: z.ZodOptional<z.ZodBoolean>;
2773
3201
  _background_silent: z.ZodOptional<z.ZodBoolean>;
3202
+ _display: z.ZodOptional<z.ZodEnum<{
3203
+ row: "row";
3204
+ hidden: "hidden";
3205
+ in_scene: "in_scene";
3206
+ }>>;
2774
3207
  }, z.core.$loose>>>;
2775
3208
  tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2776
3209
  name: z.ZodOptional<z.ZodString>;
@@ -2816,6 +3249,24 @@ export declare const SteerResponseSchema: z.ZodObject<{
2816
3249
  removed: z.ZodNumber;
2817
3250
  diff: z.ZodString;
2818
3251
  truncated: z.ZodBoolean;
3252
+ hunks: z.ZodArray<z.ZodObject<{
3253
+ header: z.ZodString;
3254
+ old_start: z.ZodNullable<z.ZodNumber>;
3255
+ new_start: z.ZodNullable<z.ZodNumber>;
3256
+ new_end: z.ZodNullable<z.ZodNumber>;
3257
+ additions: z.ZodNumber;
3258
+ deletions: z.ZodNumber;
3259
+ lines: z.ZodArray<z.ZodObject<{
3260
+ kind: z.ZodEnum<{
3261
+ context: "context";
3262
+ addition: "addition";
3263
+ deletion: "deletion";
3264
+ }>;
3265
+ old_line: z.ZodNullable<z.ZodNumber>;
3266
+ new_line: z.ZodNullable<z.ZodNumber>;
3267
+ text: z.ZodString;
3268
+ }, z.core.$strip>>;
3269
+ }, z.core.$strip>>;
2819
3270
  }, z.core.$strip>>;
2820
3271
  }, z.core.$loose>>>;
2821
3272
  created_at: z.ZodOptional<z.ZodNumber>;
@@ -3081,30 +3532,6 @@ export declare const GoalResponseSchema: z.ZodObject<{
3081
3532
  status: z.ZodOptional<z.ZodString>;
3082
3533
  reason: z.ZodOptional<z.ZodString>;
3083
3534
  }, z.core.$loose>;
3084
- export declare const BackgroundResultSchema: z.ZodObject<{
3085
- id: z.ZodOptional<z.ZodString>;
3086
- task_id: z.ZodOptional<z.ZodString>;
3087
- status: z.ZodOptional<z.ZodString>;
3088
- title: z.ZodOptional<z.ZodString>;
3089
- summary: z.ZodOptional<z.ZodString>;
3090
- prompt: z.ZodOptional<z.ZodString>;
3091
- answer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3092
- error: z.ZodOptional<z.ZodString>;
3093
- completed_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3094
- }, z.core.$loose>;
3095
- export declare const BackgroundStatusSchema: z.ZodObject<{
3096
- results: z.ZodArray<z.ZodObject<{
3097
- id: z.ZodOptional<z.ZodString>;
3098
- task_id: z.ZodOptional<z.ZodString>;
3099
- status: z.ZodOptional<z.ZodString>;
3100
- title: z.ZodOptional<z.ZodString>;
3101
- summary: z.ZodOptional<z.ZodString>;
3102
- prompt: z.ZodOptional<z.ZodString>;
3103
- answer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3104
- error: z.ZodOptional<z.ZodString>;
3105
- completed_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3106
- }, z.core.$loose>>;
3107
- }, z.core.$loose>;
3108
3535
  /**
3109
3536
  * TAL-372: one piece of background work a session owns, the same record for every client, reload and restart.
3110
3537
  * - `task_id` is stable: the delegation unit's id, the process id, or the `/background` task id.
@@ -3447,6 +3874,13 @@ export declare const ProfileSchema: z.ZodObject<{
3447
3874
  gateway_running: z.ZodOptional<z.ZodBoolean>;
3448
3875
  has_env: z.ZodOptional<z.ZodBoolean>;
3449
3876
  visible: z.ZodOptional<z.ZodBoolean>;
3877
+ display_name: z.ZodOptional<z.ZodString>;
3878
+ description: z.ZodOptional<z.ZodString>;
3879
+ has_avatar: z.ZodOptional<z.ZodBoolean>;
3880
+ canonical_session: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3881
+ session_id: z.ZodString;
3882
+ tip_session_id: z.ZodString;
3883
+ }, z.core.$strip>>>;
3450
3884
  }, z.core.$loose>;
3451
3885
  export declare const ProfilesSchema: z.ZodObject<{
3452
3886
  profiles: z.ZodArray<z.ZodObject<{
@@ -3462,6 +3896,13 @@ export declare const ProfilesSchema: z.ZodObject<{
3462
3896
  gateway_running: z.ZodOptional<z.ZodBoolean>;
3463
3897
  has_env: z.ZodOptional<z.ZodBoolean>;
3464
3898
  visible: z.ZodOptional<z.ZodBoolean>;
3899
+ display_name: z.ZodOptional<z.ZodString>;
3900
+ description: z.ZodOptional<z.ZodString>;
3901
+ has_avatar: z.ZodOptional<z.ZodBoolean>;
3902
+ canonical_session: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3903
+ session_id: z.ZodString;
3904
+ tip_session_id: z.ZodString;
3905
+ }, z.core.$strip>>>;
3465
3906
  }, z.core.$loose>>;
3466
3907
  active: z.ZodString;
3467
3908
  single_profile_mode: z.ZodOptional<z.ZodBoolean>;
@@ -3487,6 +3928,13 @@ export declare const ProfileSwitchSchema: z.ZodObject<{
3487
3928
  gateway_running: z.ZodOptional<z.ZodBoolean>;
3488
3929
  has_env: z.ZodOptional<z.ZodBoolean>;
3489
3930
  visible: z.ZodOptional<z.ZodBoolean>;
3931
+ display_name: z.ZodOptional<z.ZodString>;
3932
+ description: z.ZodOptional<z.ZodString>;
3933
+ has_avatar: z.ZodOptional<z.ZodBoolean>;
3934
+ canonical_session: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3935
+ session_id: z.ZodString;
3936
+ tip_session_id: z.ZodString;
3937
+ }, z.core.$strip>>>;
3490
3938
  }, z.core.$loose>>;
3491
3939
  active: z.ZodString;
3492
3940
  single_profile_mode: z.ZodOptional<z.ZodBoolean>;
@@ -3563,7 +4011,22 @@ export declare const ModelsSchema: z.ZodObject<{
3563
4011
  configured_model_badges: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3564
4012
  }, z.core.$loose>;
3565
4013
  export type Models = z.infer<typeof ModelsSchema>;
3566
- /** `has_key` reports a credential; `configured` (TAL-570) is the row's setup status, which a keyless Ollama or LM Studio endpoint also meets. */
4014
+ /** TAL-603: where a card's credential comes from; `other` is a source the server cannot name, shown as its raw `key_source`. */
4015
+ export declare const KeySourceKindSchema: z.ZodEnum<{
4016
+ plugin: "plugin";
4017
+ env: "env";
4018
+ config: "config";
4019
+ other: "other";
4020
+ oauth: "oauth";
4021
+ pool: "pool";
4022
+ }>;
4023
+ export type KeySourceKind = z.infer<typeof KeySourceKindSchema>;
4024
+ /**
4025
+ * `has_key` reports a credential; `configured` (TAL-570) is the row's setup status, which a keyless Ollama or LM Studio endpoint also meets.
4026
+ * TAL-603: `is_active` marks the active provider's card; `key_source_kind` is the key badge (`null` without a credential);
4027
+ * `models_total` is the catalog size, never below `models.length`. `is_active` and `key_source_kind` are absent from older servers.
4028
+ * TAL-641: `removable` marks a key Remove would clear: a built-in, not self-hosted, provider whose only key is its own profile `.env` variable.
4029
+ */
3567
4030
  export declare const ProviderSchema: z.ZodObject<{
3568
4031
  id: z.ZodString;
3569
4032
  display_name: z.ZodOptional<z.ZodString>;
@@ -3587,6 +4050,16 @@ export declare const ProviderSchema: z.ZodObject<{
3587
4050
  supports_fast_tier: z.ZodOptional<z.ZodBoolean>;
3588
4051
  }, z.core.$loose>>>;
3589
4052
  models_total: z.ZodOptional<z.ZodNumber>;
4053
+ is_active: z.ZodOptional<z.ZodBoolean>;
4054
+ key_source_kind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
4055
+ plugin: "plugin";
4056
+ env: "env";
4057
+ config: "config";
4058
+ other: "other";
4059
+ oauth: "oauth";
4060
+ pool: "pool";
4061
+ }>>>;
4062
+ removable: z.ZodOptional<z.ZodBoolean>;
3590
4063
  }, z.core.$loose>;
3591
4064
  export declare const ProvidersSchema: z.ZodObject<{
3592
4065
  providers: z.ZodArray<z.ZodObject<{
@@ -3612,6 +4085,16 @@ export declare const ProvidersSchema: z.ZodObject<{
3612
4085
  supports_fast_tier: z.ZodOptional<z.ZodBoolean>;
3613
4086
  }, z.core.$loose>>>;
3614
4087
  models_total: z.ZodOptional<z.ZodNumber>;
4088
+ is_active: z.ZodOptional<z.ZodBoolean>;
4089
+ key_source_kind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
4090
+ plugin: "plugin";
4091
+ env: "env";
4092
+ config: "config";
4093
+ other: "other";
4094
+ oauth: "oauth";
4095
+ pool: "pool";
4096
+ }>>>;
4097
+ removable: z.ZodOptional<z.ZodBoolean>;
3615
4098
  }, z.core.$loose>>;
3616
4099
  active_provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3617
4100
  }, z.core.$loose>;
@@ -4238,10 +4721,17 @@ export declare const SkillsSchema: z.ZodObject<{
4238
4721
  }, z.core.$loose>>;
4239
4722
  categories: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
4240
4723
  }, z.core.$loose>;
4724
+ /**
4725
+ * `linked_files` groups the skill directory's files by folder (`references`, `templates`, ...); open one with `?file=`.
4726
+ * A linked file that is not UTF-8 text carries `binary: true` and its `size` instead of `content`.
4727
+ */
4241
4728
  export declare const SkillContentSchema: z.ZodObject<{
4242
4729
  name: z.ZodOptional<z.ZodString>;
4243
4730
  content: z.ZodOptional<z.ZodString>;
4244
4731
  path: z.ZodOptional<z.ZodString>;
4732
+ linked_files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
4733
+ binary: z.ZodOptional<z.ZodLiteral<true>>;
4734
+ size: z.ZodOptional<z.ZodNumber>;
4245
4735
  success: z.ZodOptional<z.ZodBoolean>;
4246
4736
  message: z.ZodOptional<z.ZodString>;
4247
4737
  ok: z.ZodOptional<z.ZodBoolean>;
@@ -4405,6 +4895,184 @@ export declare const DashboardStatusSchema: z.ZodObject<{
4405
4895
  version: z.ZodOptional<z.ZodString>;
4406
4896
  error: z.ZodOptional<z.ZodString>;
4407
4897
  }, z.core.$loose>;
4898
+ /**
4899
+ * Gateway status for the Settings banner (TAL-266). `running` and `configured` come from the Agent health probe; when it
4900
+ * is inconclusive, stale running metadata or known gateway sessions mark the gateway configured. `platforms` are the
4901
+ * messaging platforms of known gateway sessions; `last_active` is the gateway session index's ISO mtime while running, else "".
4902
+ */
4903
+ export declare const GatewayStatusSchema: z.ZodObject<{
4904
+ running: z.ZodBoolean;
4905
+ configured: z.ZodBoolean;
4906
+ platforms: z.ZodArray<z.ZodObject<{
4907
+ name: z.ZodString;
4908
+ label: z.ZodString;
4909
+ }, z.core.$strip>>;
4910
+ last_active: z.ZodString;
4911
+ session_count: z.ZodNumber;
4912
+ health: z.ZodObject<{
4913
+ state: z.ZodNullable<z.ZodString>;
4914
+ reason: z.ZodNullable<z.ZodString>;
4915
+ gateway_state: z.ZodNullable<z.ZodString>;
4916
+ }, z.core.$strip>;
4917
+ }, z.core.$strip>;
4918
+ export type GatewayStatus = z.infer<typeof GatewayStatusSchema>;
4919
+ export declare const GatewayActionSchema: z.ZodObject<{
4920
+ ok: z.ZodLiteral<true>;
4921
+ action: z.ZodEnum<{
4922
+ start: "start";
4923
+ stop: "stop";
4924
+ restart: "restart";
4925
+ }>;
4926
+ message: z.ZodString;
4927
+ status: z.ZodObject<{
4928
+ running: z.ZodBoolean;
4929
+ configured: z.ZodBoolean;
4930
+ platforms: z.ZodArray<z.ZodObject<{
4931
+ name: z.ZodString;
4932
+ label: z.ZodString;
4933
+ }, z.core.$strip>>;
4934
+ last_active: z.ZodString;
4935
+ session_count: z.ZodNumber;
4936
+ health: z.ZodObject<{
4937
+ state: z.ZodNullable<z.ZodString>;
4938
+ reason: z.ZodNullable<z.ZodString>;
4939
+ gateway_state: z.ZodNullable<z.ZodString>;
4940
+ }, z.core.$strip>;
4941
+ }, z.core.$strip>;
4942
+ }, z.core.$strip>;
4943
+ export declare const DashboardConfigSchema: z.ZodObject<{
4944
+ enabled: z.ZodEnum<{
4945
+ never: "never";
4946
+ always: "always";
4947
+ auto: "auto";
4948
+ }>;
4949
+ url: z.ZodString;
4950
+ }, z.core.$strip>;
4951
+ /**
4952
+ * Project OS dashboard for a repo found from the last workspace or the `board`'s default workdir (TAL-266). Every field is
4953
+ * null or empty when the profile has no local workspace I/O or no repo is found. `onboarding.active` means the docs came
4954
+ * from the repo root's `PROJECT.md`/`PLAN.md`/`STATUS.md` instead of `docs/project-os/`.
4955
+ */
4956
+ export declare const ProjectOsDashboardSchema: z.ZodObject<{
4957
+ workspace: z.ZodNullable<z.ZodString>;
4958
+ repo_root: z.ZodNullable<z.ZodString>;
4959
+ selected_board_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4960
+ git: z.ZodNullable<z.ZodObject<{
4961
+ is_git: z.ZodOptional<z.ZodBoolean>;
4962
+ branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4963
+ dirty: z.ZodOptional<z.ZodNumber>;
4964
+ modified: z.ZodOptional<z.ZodNumber>;
4965
+ untracked: z.ZodOptional<z.ZodNumber>;
4966
+ ahead: z.ZodOptional<z.ZodNumber>;
4967
+ behind: z.ZodOptional<z.ZodNumber>;
4968
+ }, z.core.$loose>>;
4969
+ docs: z.ZodObject<{
4970
+ project: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4971
+ path: z.ZodOptional<z.ZodString>;
4972
+ content: z.ZodOptional<z.ZodString>;
4973
+ lines: z.ZodOptional<z.ZodNumber>;
4974
+ size: z.ZodOptional<z.ZodNumber>;
4975
+ truncated: z.ZodOptional<z.ZodBoolean>;
4976
+ binary: z.ZodOptional<z.ZodBoolean>;
4977
+ mime: z.ZodOptional<z.ZodString>;
4978
+ preview: z.ZodOptional<z.ZodEnum<{
4979
+ text: "text";
4980
+ image: "image";
4981
+ audio: "audio";
4982
+ video: "video";
4983
+ pdf: "pdf";
4984
+ markdown: "markdown";
4985
+ csv: "csv";
4986
+ html: "html";
4987
+ binary: "binary";
4988
+ }>>;
4989
+ table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
4990
+ table_truncated: z.ZodOptional<z.ZodBoolean>;
4991
+ preview_url: z.ZodOptional<z.ZodString>;
4992
+ }, z.core.$loose>>>;
4993
+ plan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4994
+ path: z.ZodOptional<z.ZodString>;
4995
+ content: z.ZodOptional<z.ZodString>;
4996
+ lines: z.ZodOptional<z.ZodNumber>;
4997
+ size: z.ZodOptional<z.ZodNumber>;
4998
+ truncated: z.ZodOptional<z.ZodBoolean>;
4999
+ binary: z.ZodOptional<z.ZodBoolean>;
5000
+ mime: z.ZodOptional<z.ZodString>;
5001
+ preview: z.ZodOptional<z.ZodEnum<{
5002
+ text: "text";
5003
+ image: "image";
5004
+ audio: "audio";
5005
+ video: "video";
5006
+ pdf: "pdf";
5007
+ markdown: "markdown";
5008
+ csv: "csv";
5009
+ html: "html";
5010
+ binary: "binary";
5011
+ }>>;
5012
+ table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
5013
+ table_truncated: z.ZodOptional<z.ZodBoolean>;
5014
+ preview_url: z.ZodOptional<z.ZodString>;
5015
+ }, z.core.$loose>>>;
5016
+ status: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5017
+ path: z.ZodOptional<z.ZodString>;
5018
+ content: z.ZodOptional<z.ZodString>;
5019
+ lines: z.ZodOptional<z.ZodNumber>;
5020
+ size: z.ZodOptional<z.ZodNumber>;
5021
+ truncated: z.ZodOptional<z.ZodBoolean>;
5022
+ binary: z.ZodOptional<z.ZodBoolean>;
5023
+ mime: z.ZodOptional<z.ZodString>;
5024
+ preview: z.ZodOptional<z.ZodEnum<{
5025
+ text: "text";
5026
+ image: "image";
5027
+ audio: "audio";
5028
+ video: "video";
5029
+ pdf: "pdf";
5030
+ markdown: "markdown";
5031
+ csv: "csv";
5032
+ html: "html";
5033
+ binary: "binary";
5034
+ }>>;
5035
+ table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
5036
+ table_truncated: z.ZodOptional<z.ZodBoolean>;
5037
+ preview_url: z.ZodOptional<z.ZodString>;
5038
+ }, z.core.$loose>>>;
5039
+ blocker_resolver: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5040
+ path: z.ZodOptional<z.ZodString>;
5041
+ content: z.ZodOptional<z.ZodString>;
5042
+ lines: z.ZodOptional<z.ZodNumber>;
5043
+ size: z.ZodOptional<z.ZodNumber>;
5044
+ truncated: z.ZodOptional<z.ZodBoolean>;
5045
+ binary: z.ZodOptional<z.ZodBoolean>;
5046
+ mime: z.ZodOptional<z.ZodString>;
5047
+ preview: z.ZodOptional<z.ZodEnum<{
5048
+ text: "text";
5049
+ image: "image";
5050
+ audio: "audio";
5051
+ video: "video";
5052
+ pdf: "pdf";
5053
+ markdown: "markdown";
5054
+ csv: "csv";
5055
+ html: "html";
5056
+ binary: "binary";
5057
+ }>>;
5058
+ table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
5059
+ table_truncated: z.ZodOptional<z.ZodBoolean>;
5060
+ preview_url: z.ZodOptional<z.ZodString>;
5061
+ }, z.core.$loose>>>;
5062
+ }, z.core.$strip>;
5063
+ handoff: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5064
+ active: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5065
+ heartbeat: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5066
+ onboarding: z.ZodOptional<z.ZodObject<{
5067
+ active: z.ZodBoolean;
5068
+ doc_source: z.ZodEnum<{
5069
+ "project-os": "project-os";
5070
+ root: "root";
5071
+ }>;
5072
+ }, z.core.$loose>>;
5073
+ goal_summary: z.ZodString;
5074
+ }, z.core.$strip>;
5075
+ export type ProjectOsDashboard = z.infer<typeof ProjectOsDashboardSchema>;
4408
5076
  export declare const AgentHealthSchema: z.ZodObject<{
4409
5077
  alive: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
4410
5078
  checked_at: z.ZodOptional<z.ZodString>;
@@ -4439,12 +5107,12 @@ export declare const SystemHealthSchema: z.ZodObject<{
4439
5107
  }, z.core.$loose>;
4440
5108
  export declare const UpdateStateSchema: z.ZodEnum<{
4441
5109
  unknown: "unknown";
5110
+ manual: "manual";
4442
5111
  up_to_date: "up_to_date";
4443
5112
  release_ready: "release_ready";
4444
5113
  commits_behind: "commits_behind";
4445
5114
  local_changes: "local_changes";
4446
5115
  finish: "finish";
4447
- manual: "manual";
4448
5116
  check_failed: "check_failed";
4449
5117
  off: "off";
4450
5118
  }>;
@@ -4479,12 +5147,12 @@ export declare const UpdateTargetSchema: z.ZodObject<{
4479
5147
  current_version: z.ZodOptional<z.ZodString>;
4480
5148
  state: z.ZodEnum<{
4481
5149
  unknown: "unknown";
5150
+ manual: "manual";
4482
5151
  up_to_date: "up_to_date";
4483
5152
  release_ready: "release_ready";
4484
5153
  commits_behind: "commits_behind";
4485
5154
  local_changes: "local_changes";
4486
5155
  finish: "finish";
4487
- manual: "manual";
4488
5156
  check_failed: "check_failed";
4489
5157
  off: "off";
4490
5158
  }>;
@@ -4492,6 +5160,7 @@ export declare const UpdateTargetSchema: z.ZodObject<{
4492
5160
  installed_unverified: z.ZodBoolean;
4493
5161
  manual_link: z.ZodBoolean;
4494
5162
  target_version: z.ZodNullable<z.ZodString>;
5163
+ summary_available: z.ZodBoolean;
4495
5164
  }, z.core.$loose>;
4496
5165
  export declare const UpdatesCheckSchema: z.ZodObject<{
4497
5166
  disabled: z.ZodOptional<z.ZodBoolean>;
@@ -4533,12 +5202,12 @@ export declare const UpdatesCheckSchema: z.ZodObject<{
4533
5202
  current_version: z.ZodOptional<z.ZodString>;
4534
5203
  state: z.ZodEnum<{
4535
5204
  unknown: "unknown";
5205
+ manual: "manual";
4536
5206
  up_to_date: "up_to_date";
4537
5207
  release_ready: "release_ready";
4538
5208
  commits_behind: "commits_behind";
4539
5209
  local_changes: "local_changes";
4540
5210
  finish: "finish";
4541
- manual: "manual";
4542
5211
  check_failed: "check_failed";
4543
5212
  off: "off";
4544
5213
  }>;
@@ -4546,6 +5215,7 @@ export declare const UpdatesCheckSchema: z.ZodObject<{
4546
5215
  installed_unverified: z.ZodBoolean;
4547
5216
  manual_link: z.ZodBoolean;
4548
5217
  target_version: z.ZodNullable<z.ZodString>;
5218
+ summary_available: z.ZodBoolean;
4549
5219
  }, z.core.$loose>>>;
4550
5220
  agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4551
5221
  name: z.ZodOptional<z.ZodString>;
@@ -4577,12 +5247,12 @@ export declare const UpdatesCheckSchema: z.ZodObject<{
4577
5247
  current_version: z.ZodOptional<z.ZodString>;
4578
5248
  state: z.ZodEnum<{
4579
5249
  unknown: "unknown";
5250
+ manual: "manual";
4580
5251
  up_to_date: "up_to_date";
4581
5252
  release_ready: "release_ready";
4582
5253
  commits_behind: "commits_behind";
4583
5254
  local_changes: "local_changes";
4584
5255
  finish: "finish";
4585
- manual: "manual";
4586
5256
  check_failed: "check_failed";
4587
5257
  off: "off";
4588
5258
  }>;
@@ -4590,15 +5260,35 @@ export declare const UpdatesCheckSchema: z.ZodObject<{
4590
5260
  installed_unverified: z.ZodBoolean;
4591
5261
  manual_link: z.ZodBoolean;
4592
5262
  target_version: z.ZodNullable<z.ZodString>;
5263
+ summary_available: z.ZodBoolean;
4593
5264
  }, z.core.$loose>>>;
4594
5265
  }, z.core.$loose>;
4595
5266
  export declare const UpdatesSummarySchema: z.ZodObject<{
4596
- summary: z.ZodOptional<z.ZodString>;
4597
- text: z.ZodOptional<z.ZodString>;
4598
- ok: z.ZodOptional<z.ZodBoolean>;
4599
- error: z.ZodOptional<z.ZodString>;
4600
- diff_links: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
4601
- }, z.core.$loose>;
5267
+ ok: z.ZodBoolean;
5268
+ target: z.ZodEnum<{
5269
+ agent: "agent";
5270
+ webui: "webui";
5271
+ }>;
5272
+ summary: z.ZodString;
5273
+ current_version: z.ZodNullable<z.ZodString>;
5274
+ target_version: z.ZodNullable<z.ZodString>;
5275
+ summary_sections: z.ZodArray<z.ZodObject<{
5276
+ title: z.ZodString;
5277
+ items: z.ZodArray<z.ZodString>;
5278
+ }, z.core.$strip>>;
5279
+ generated_by: z.ZodEnum<{
5280
+ fallback: "fallback";
5281
+ llm: "llm";
5282
+ none: "none";
5283
+ }>;
5284
+ source: z.ZodEnum<{
5285
+ none: "none";
5286
+ release_notes: "release_notes";
5287
+ commits: "commits";
5288
+ }>;
5289
+ cached: z.ZodBoolean;
5290
+ }, z.core.$strip>;
5291
+ export type UpdatesSummary = z.infer<typeof UpdatesSummarySchema>;
4602
5292
  export declare const UpdateApplySchema: z.ZodObject<{
4603
5293
  ok: z.ZodOptional<z.ZodBoolean>;
4604
5294
  status: z.ZodOptional<z.ZodString>;
@@ -4905,6 +5595,75 @@ export declare const NotesSourcesSchema: z.ZodObject<{
4905
5595
  attach_supported: z.ZodOptional<z.ZodBoolean>;
4906
5596
  automatic_recall_unchanged: z.ZodOptional<z.ZodBoolean>;
4907
5597
  }, z.core.$loose>;
5598
+ /** Joplin search hit: bounded, redacted display text and a snippet around the query; `updated_time` is Joplin's raw value. */
5599
+ export declare const NoteSearchResultSchema: z.ZodObject<{
5600
+ id: z.ZodString;
5601
+ title: z.ZodString;
5602
+ snippet: z.ZodString;
5603
+ parent_id: z.ZodString;
5604
+ updated_time: z.ZodUnknown;
5605
+ source: z.ZodLiteral<"joplin">;
5606
+ }, z.core.$strip>;
5607
+ export declare const NotesSearchSchema: z.ZodObject<{
5608
+ source: z.ZodLiteral<"joplin">;
5609
+ query: z.ZodString;
5610
+ results: z.ZodArray<z.ZodObject<{
5611
+ id: z.ZodString;
5612
+ title: z.ZodString;
5613
+ snippet: z.ZodString;
5614
+ parent_id: z.ZodString;
5615
+ updated_time: z.ZodUnknown;
5616
+ source: z.ZodLiteral<"joplin">;
5617
+ }, z.core.$strip>>;
5618
+ }, z.core.$strip>;
5619
+ /** One Joplin note for preview: `body` is cut at 50,000 characters (with a notice) and redacted. */
5620
+ export declare const NoteItemSchema: z.ZodObject<{
5621
+ source: z.ZodLiteral<"joplin">;
5622
+ note: z.ZodObject<{
5623
+ id: z.ZodString;
5624
+ title: z.ZodString;
5625
+ body: z.ZodString;
5626
+ parent_id: z.ZodString;
5627
+ updated_time: z.ZodUnknown;
5628
+ created_time: z.ZodUnknown;
5629
+ source: z.ZodLiteral<"joplin">;
5630
+ }, z.core.$strip>;
5631
+ }, z.core.$strip>;
5632
+ /** LLM wiki summary: counts and timestamps only, never page bodies or the wiki path. `error` names the exception type when `status` is `error`. */
5633
+ export declare const WikiStatusSchema: z.ZodObject<{
5634
+ available: z.ZodBoolean;
5635
+ enabled: z.ZodBoolean;
5636
+ status: z.ZodEnum<{
5637
+ error: "error";
5638
+ ready: "ready";
5639
+ empty: "empty";
5640
+ missing: "missing";
5641
+ not_directory: "not_directory";
5642
+ }>;
5643
+ entry_count: z.ZodNumber;
5644
+ page_count: z.ZodNumber;
5645
+ raw_source_count: z.ZodNumber;
5646
+ last_updated: z.ZodNullable<z.ZodString>;
5647
+ last_writer: z.ZodString;
5648
+ path_configured: z.ZodBoolean;
5649
+ path_source: z.ZodString;
5650
+ toggle_available: z.ZodLiteral<false>;
5651
+ toggle_reason: z.ZodString;
5652
+ docs_url: z.ZodString;
5653
+ error: z.ZodOptional<z.ZodString>;
5654
+ }, z.core.$strip>;
5655
+ export declare const WikiBrowseSchema: z.ZodObject<{
5656
+ pages: z.ZodArray<z.ZodObject<{
5657
+ name: z.ZodString;
5658
+ path: z.ZodString;
5659
+ size: z.ZodNumber;
5660
+ mtime: z.ZodNumber;
5661
+ }, z.core.$strip>>;
5662
+ }, z.core.$strip>;
5663
+ export declare const WikiPageSchema: z.ZodObject<{
5664
+ content: z.ZodString;
5665
+ path: z.ZodString;
5666
+ }, z.core.$strip>;
4908
5667
  export declare const TodoItemSchema: z.ZodObject<{
4909
5668
  id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
4910
5669
  text: z.ZodOptional<z.ZodString>;
@@ -5138,6 +5897,9 @@ export declare const CronJobViewSchema: z.ZodObject<{
5138
5897
  }>>;
5139
5898
  needs_attention: z.ZodOptional<z.ZodBoolean>;
5140
5899
  resumable: z.ZodOptional<z.ZodBoolean>;
5900
+ attention_hint: z.ZodNullable<z.ZodEnum<{
5901
+ croniter_missing: "croniter_missing";
5902
+ }>>;
5141
5903
  }, z.core.$loose>;
5142
5904
  export type CronJob = z.infer<typeof CronJobViewSchema>;
5143
5905
  export declare const CronsSchema: z.ZodObject<{
@@ -5200,7 +5962,11 @@ export declare const CronsSchema: z.ZodObject<{
5200
5962
  }>>;
5201
5963
  needs_attention: z.ZodOptional<z.ZodBoolean>;
5202
5964
  resumable: z.ZodOptional<z.ZodBoolean>;
5965
+ attention_hint: z.ZodNullable<z.ZodEnum<{
5966
+ croniter_missing: "croniter_missing";
5967
+ }>>;
5203
5968
  }, z.core.$loose>>;
5969
+ ordered: z.ZodOptional<z.ZodBoolean>;
5204
5970
  active_profile: z.ZodOptional<z.ZodString>;
5205
5971
  all_profiles: z.ZodOptional<z.ZodBoolean>;
5206
5972
  other_profile_count: z.ZodOptional<z.ZodNumber>;
@@ -5310,6 +6076,9 @@ export declare const CronMutationSchema: z.ZodObject<{
5310
6076
  }>>;
5311
6077
  needs_attention: z.ZodOptional<z.ZodBoolean>;
5312
6078
  resumable: z.ZodOptional<z.ZodBoolean>;
6079
+ attention_hint: z.ZodNullable<z.ZodEnum<{
6080
+ croniter_missing: "croniter_missing";
6081
+ }>>;
5313
6082
  }, z.core.$loose>>;
5314
6083
  job_id: z.ZodOptional<z.ZodString>;
5315
6084
  status: z.ZodOptional<z.ZodString>;
@@ -5359,9 +6128,11 @@ export declare const CronHistorySchema: z.ZodObject<{
5359
6128
  offset: z.ZodOptional<z.ZodNumber>;
5360
6129
  }, z.core.$loose>;
5361
6130
  export type CronHistory = z.infer<typeof CronHistorySchema>;
6131
+ /** `response` is server-extracted (TAL-599): the agent's reply after the run file's `## Response` heading, else the whole text. */
5362
6132
  export declare const CronRunSchema: z.ZodObject<{
5363
6133
  content: z.ZodOptional<z.ZodString>;
5364
6134
  snippet: z.ZodOptional<z.ZodString>;
6135
+ response: z.ZodOptional<z.ZodString>;
5365
6136
  usage: z.ZodOptional<z.ZodObject<{
5366
6137
  input_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5367
6138
  output_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;