@maudecode/talaria-web-contracts 1.16.1 → 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 (66) 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 +4169 -1107
  7. package/dist/routes/automation.d.ts +173 -10
  8. package/dist/routes/automation.js +17 -9
  9. package/dist/routes/automation.js.map +1 -1
  10. package/dist/routes/chat.d.ts +1215 -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 +98 -2
  17. package/dist/routes/git.js +20 -6
  18. package/dist/routes/git.js.map +1 -1
  19. package/dist/routes/raw.d.ts +3 -1
  20. package/dist/routes/raw.js +31 -7
  21. package/dist/routes/raw.js.map +1 -1
  22. package/dist/routes/sessions.d.ts +3080 -539
  23. package/dist/routes/sessions.js +68 -1
  24. package/dist/routes/sessions.js.map +1 -1
  25. package/dist/routes/settings.d.ts +132 -2
  26. package/dist/routes/settings.js +4 -4
  27. package/dist/routes/settings.js.map +1 -1
  28. package/dist/routes/tools.d.ts +425 -19
  29. package/dist/routes/tools.js +23 -4
  30. package/dist/routes/tools.js.map +1 -1
  31. package/dist/routes/workspaces.d.ts +96 -0
  32. package/dist/routes/workspaces.js +18 -1
  33. package/dist/routes/workspaces.js.map +1 -1
  34. package/dist/sidecar/methods.d.ts +253 -0
  35. package/dist/sidecar/methods.js +2 -1
  36. package/dist/sidecar/methods.js.map +1 -1
  37. package/dist/sidecar/namespaces.d.ts +381 -1
  38. package/dist/sidecar/namespaces.js +89 -10
  39. package/dist/sidecar/namespaces.js.map +1 -1
  40. package/dist/sidecar/version.d.ts +1 -1
  41. package/dist/sidecar/version.js +1 -1
  42. package/dist/sidecar/version.js.map +1 -1
  43. package/dist/sse.d.ts +79 -14
  44. package/dist/sse.js +13 -6
  45. package/dist/sse.js.map +1 -1
  46. package/dist/theme.d.ts +10 -0
  47. package/dist/theme.js +10 -0
  48. package/dist/theme.js.map +1 -0
  49. package/dist/views.d.ts +1419 -39
  50. package/dist/views.js +215 -25
  51. package/dist/views.js.map +1 -1
  52. package/fixtures/sidecar/checkpoints.json +50 -0
  53. package/fixtures/sidecar/commands.json +250 -96
  54. package/fixtures/sidecar/cron.json +38 -55
  55. package/fixtures/sidecar/goals.json +6 -6
  56. package/fixtures/sidecar/kanban.json +84 -67
  57. package/fixtures/sidecar/plugins.json +171 -172
  58. package/fixtures/sidecar/process.json +25 -0
  59. package/fixtures/sidecar/profiles.json +10 -2
  60. package/fixtures/sidecar/providers.json +25 -12
  61. package/fixtures/sidecar/rpc.json +17 -0
  62. package/fixtures/sidecar/runtime.json +22 -29
  63. package/fixtures/sidecar/state_db.json +15 -0
  64. package/fixtures/sidecar/text.json +2 -2
  65. package/fixtures/sidecar/usage.json +38 -0
  66. package/package.json +1 -1
package/dist/views.d.ts CHANGED
@@ -35,7 +35,75 @@ export declare const ToolKindSchema: z.ZodEnum<{
35
35
  delegate: "delegate";
36
36
  }>;
37
37
  export type ToolKind = z.infer<typeof ToolKindSchema>;
38
- /** 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). */
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>;
76
+ /**
77
+ * TAL-448: a completed file-edit call's change, from its result's unified diff: `added` / `removed` count the whole diff's
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.
80
+ */
81
+ export declare const ToolEditDiffSchema: z.ZodObject<{
82
+ added: z.ZodNumber;
83
+ removed: z.ZodNumber;
84
+ diff: z.ZodString;
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>>;
104
+ }, z.core.$strip>;
105
+ export type ToolEditDiff = z.infer<typeof ToolEditDiffSchema>;
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`. */
39
107
  export declare const ToolDisplayFields: {
40
108
  kind: z.ZodOptional<z.ZodEnum<{
41
109
  unknown: "unknown";
@@ -50,6 +118,30 @@ export declare const ToolDisplayFields: {
50
118
  delegate: "delegate";
51
119
  }>>;
52
120
  target: z.ZodOptional<z.ZodString>;
121
+ edit_diff: z.ZodOptional<z.ZodObject<{
122
+ added: z.ZodNumber;
123
+ removed: z.ZodNumber;
124
+ diff: z.ZodString;
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>>;
144
+ }, z.core.$strip>>;
53
145
  };
54
146
  /**
55
147
  * TAL-315: a tool result's display sections, decided by the server's one rule for live, replayed and persisted results
@@ -111,6 +203,30 @@ export declare const ToolCallSchema: z.ZodObject<{
111
203
  delegate: "delegate";
112
204
  }>>;
113
205
  target: z.ZodOptional<z.ZodString>;
206
+ edit_diff: z.ZodOptional<z.ZodObject<{
207
+ added: z.ZodNumber;
208
+ removed: z.ZodNumber;
209
+ diff: z.ZodString;
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>>;
229
+ }, z.core.$strip>>;
114
230
  }, z.core.$loose>;
115
231
  export type ToolCall = z.infer<typeof ToolCallSchema>;
116
232
  export declare const ContentPartSchema: z.ZodObject<{
@@ -244,6 +360,30 @@ export declare const ActivitySceneRowSchema: z.ZodObject<{
244
360
  delegate: "delegate";
245
361
  }>>;
246
362
  target: z.ZodOptional<z.ZodString>;
363
+ edit_diff: z.ZodOptional<z.ZodObject<{
364
+ added: z.ZodNumber;
365
+ removed: z.ZodNumber;
366
+ diff: z.ZodString;
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>>;
386
+ }, z.core.$strip>>;
247
387
  id: z.ZodString;
248
388
  name: z.ZodString;
249
389
  }, z.core.$loose>>;
@@ -353,6 +493,30 @@ export declare const ActivitySceneSchema: z.ZodObject<{
353
493
  delegate: "delegate";
354
494
  }>>;
355
495
  target: z.ZodOptional<z.ZodString>;
496
+ edit_diff: z.ZodOptional<z.ZodObject<{
497
+ added: z.ZodNumber;
498
+ removed: z.ZodNumber;
499
+ diff: z.ZodString;
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>>;
519
+ }, z.core.$strip>>;
356
520
  id: z.ZodString;
357
521
  name: z.ZodString;
358
522
  }, z.core.$loose>>;
@@ -473,6 +637,30 @@ export declare const MessageSchema: z.ZodObject<{
473
637
  delegate: "delegate";
474
638
  }>>;
475
639
  target: z.ZodOptional<z.ZodString>;
640
+ edit_diff: z.ZodOptional<z.ZodObject<{
641
+ added: z.ZodNumber;
642
+ removed: z.ZodNumber;
643
+ diff: z.ZodString;
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>>;
663
+ }, z.core.$strip>>;
476
664
  }, z.core.$loose>>>;
477
665
  reasoning: z.ZodOptional<z.ZodString>;
478
666
  tool_call_id: z.ZodOptional<z.ZodString>;
@@ -557,6 +745,30 @@ export declare const MessageSchema: z.ZodObject<{
557
745
  delegate: "delegate";
558
746
  }>>;
559
747
  target: z.ZodOptional<z.ZodString>;
748
+ edit_diff: z.ZodOptional<z.ZodObject<{
749
+ added: z.ZodNumber;
750
+ removed: z.ZodNumber;
751
+ diff: z.ZodString;
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>>;
771
+ }, z.core.$strip>>;
560
772
  id: z.ZodString;
561
773
  name: z.ZodString;
562
774
  }, z.core.$loose>>;
@@ -604,6 +816,10 @@ export declare const MessageSchema: z.ZodObject<{
604
816
  activity_scene_ref: z.ZodOptional<z.ZodString>;
605
817
  }, z.core.$loose>>;
606
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>>;
607
823
  _active_turn_user: z.ZodOptional<z.ZodBoolean>;
608
824
  _steer: z.ZodOptional<z.ZodObject<{
609
825
  steer_id: z.ZodString;
@@ -614,6 +830,7 @@ export declare const MessageSchema: z.ZodObject<{
614
830
  _final_phase_duration: z.ZodOptional<z.ZodNumber>;
615
831
  _display_truncated: z.ZodOptional<z.ZodBoolean>;
616
832
  _display_excerpt: z.ZodOptional<z.ZodString>;
833
+ _collapsible: z.ZodOptional<z.ZodBoolean>;
617
834
  _display_content: z.ZodOptional<z.ZodString>;
618
835
  _media: z.ZodOptional<z.ZodArray<z.ZodObject<{
619
836
  url: z.ZodString;
@@ -659,6 +876,11 @@ export declare const MessageSchema: z.ZodObject<{
659
876
  _marker_body: z.ZodOptional<z.ZodString>;
660
877
  _background_reply: z.ZodOptional<z.ZodBoolean>;
661
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
+ }>>;
662
884
  }, z.core.$loose>;
663
885
  export type Message = z.infer<typeof MessageSchema>;
664
886
  export declare const ComposerDraftSchema: z.ZodObject<{
@@ -707,6 +929,22 @@ export declare const SourceKindSchema: z.ZodEnum<{
707
929
  kanban: "kanban";
708
930
  api: "api";
709
931
  }>;
932
+ /**
933
+ * TAL-560: the "Context compaction · Reference only" card, on payloads that carry `messages`. Clients render `text` after
934
+ * the row at full-transcript index `after_message_index` (row `after_message_index - _messages_offset` of `messages`), or
935
+ * above the loaded rows when it is null or before them. Null: no card.
936
+ */
937
+ export declare const CompressionReferenceSchema: z.ZodObject<{
938
+ text: z.ZodString;
939
+ after_message_index: z.ZodNullable<z.ZodNumber>;
940
+ }, z.core.$strip>;
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>;
710
948
  /** Full session record from `GET /api/session` and mutations returning `session`. */
711
949
  export declare const SessionSchema: z.ZodObject<{
712
950
  enabled_toolsets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
@@ -733,8 +971,10 @@ export declare const SessionSchema: z.ZodObject<{
733
971
  can_branch: z.ZodBoolean;
734
972
  can_pin: z.ZodBoolean;
735
973
  can_archive: z.ZodBoolean;
974
+ can_delete: z.ZodBoolean;
736
975
  can_duplicate: z.ZodBoolean;
737
976
  source_tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
977
+ can_compress: z.ZodOptional<z.ZodBoolean>;
738
978
  source_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
739
979
  session_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
740
980
  raw_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -743,6 +983,7 @@ export declare const SessionSchema: z.ZodObject<{
743
983
  worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
744
984
  worktree_repo_root: z.ZodOptional<z.ZodNullable<z.ZodString>>;
745
985
  share_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
986
+ share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
746
987
  share_created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
747
988
  manual_title: z.ZodOptional<z.ZodBoolean>;
748
989
  compression_anchor_summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -761,6 +1002,14 @@ export declare const SessionSchema: z.ZodObject<{
761
1002
  }, z.core.$strip>>>;
762
1003
  assistant_name: z.ZodOptional<z.ZodString>;
763
1004
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1005
+ compression_reference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1006
+ text: z.ZodString;
1007
+ after_message_index: z.ZodNullable<z.ZodNumber>;
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>>>;
764
1013
  context_used_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
765
1014
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
766
1015
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -829,6 +1078,30 @@ export declare const SessionSchema: z.ZodObject<{
829
1078
  delegate: "delegate";
830
1079
  }>>;
831
1080
  target: z.ZodOptional<z.ZodString>;
1081
+ edit_diff: z.ZodOptional<z.ZodObject<{
1082
+ added: z.ZodNumber;
1083
+ removed: z.ZodNumber;
1084
+ diff: z.ZodString;
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>>;
1104
+ }, z.core.$strip>>;
832
1105
  }, z.core.$loose>>>;
833
1106
  reasoning: z.ZodOptional<z.ZodString>;
834
1107
  tool_call_id: z.ZodOptional<z.ZodString>;
@@ -913,6 +1186,30 @@ export declare const SessionSchema: z.ZodObject<{
913
1186
  delegate: "delegate";
914
1187
  }>>;
915
1188
  target: z.ZodOptional<z.ZodString>;
1189
+ edit_diff: z.ZodOptional<z.ZodObject<{
1190
+ added: z.ZodNumber;
1191
+ removed: z.ZodNumber;
1192
+ diff: z.ZodString;
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>>;
1212
+ }, z.core.$strip>>;
916
1213
  id: z.ZodString;
917
1214
  name: z.ZodString;
918
1215
  }, z.core.$loose>>;
@@ -960,6 +1257,10 @@ export declare const SessionSchema: z.ZodObject<{
960
1257
  activity_scene_ref: z.ZodOptional<z.ZodString>;
961
1258
  }, z.core.$loose>>;
962
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>>;
963
1264
  _active_turn_user: z.ZodOptional<z.ZodBoolean>;
964
1265
  _steer: z.ZodOptional<z.ZodObject<{
965
1266
  steer_id: z.ZodString;
@@ -970,6 +1271,7 @@ export declare const SessionSchema: z.ZodObject<{
970
1271
  _final_phase_duration: z.ZodOptional<z.ZodNumber>;
971
1272
  _display_truncated: z.ZodOptional<z.ZodBoolean>;
972
1273
  _display_excerpt: z.ZodOptional<z.ZodString>;
1274
+ _collapsible: z.ZodOptional<z.ZodBoolean>;
973
1275
  _display_content: z.ZodOptional<z.ZodString>;
974
1276
  _media: z.ZodOptional<z.ZodArray<z.ZodObject<{
975
1277
  url: z.ZodString;
@@ -1015,6 +1317,11 @@ export declare const SessionSchema: z.ZodObject<{
1015
1317
  _marker_body: z.ZodOptional<z.ZodString>;
1016
1318
  _background_reply: z.ZodOptional<z.ZodBoolean>;
1017
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
+ }>>;
1018
1325
  }, z.core.$loose>>>;
1019
1326
  tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1020
1327
  name: z.ZodOptional<z.ZodString>;
@@ -1055,6 +1362,30 @@ export declare const SessionSchema: z.ZodObject<{
1055
1362
  delegate: "delegate";
1056
1363
  }>>;
1057
1364
  target: z.ZodOptional<z.ZodString>;
1365
+ edit_diff: z.ZodOptional<z.ZodObject<{
1366
+ added: z.ZodNumber;
1367
+ removed: z.ZodNumber;
1368
+ diff: z.ZodString;
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>>;
1388
+ }, z.core.$strip>>;
1058
1389
  }, z.core.$loose>>>;
1059
1390
  created_at: z.ZodOptional<z.ZodNumber>;
1060
1391
  updated_at: z.ZodOptional<z.ZodNumber>;
@@ -1137,8 +1468,10 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1137
1468
  can_branch: z.ZodBoolean;
1138
1469
  can_pin: z.ZodBoolean;
1139
1470
  can_archive: z.ZodBoolean;
1471
+ can_delete: z.ZodBoolean;
1140
1472
  can_duplicate: z.ZodBoolean;
1141
1473
  source_tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1474
+ can_compress: z.ZodOptional<z.ZodBoolean>;
1142
1475
  source_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1143
1476
  session_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1144
1477
  raw_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1147,6 +1480,7 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1147
1480
  worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1148
1481
  worktree_repo_root: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1149
1482
  share_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1483
+ share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1150
1484
  share_created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1151
1485
  manual_title: z.ZodOptional<z.ZodBoolean>;
1152
1486
  compression_anchor_summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1165,6 +1499,14 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1165
1499
  }, z.core.$strip>>>;
1166
1500
  assistant_name: z.ZodOptional<z.ZodString>;
1167
1501
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1502
+ compression_reference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1503
+ text: z.ZodString;
1504
+ after_message_index: z.ZodNullable<z.ZodNumber>;
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>>>;
1168
1510
  context_used_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1169
1511
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1170
1512
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -1233,6 +1575,30 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1233
1575
  delegate: "delegate";
1234
1576
  }>>;
1235
1577
  target: z.ZodOptional<z.ZodString>;
1578
+ edit_diff: z.ZodOptional<z.ZodObject<{
1579
+ added: z.ZodNumber;
1580
+ removed: z.ZodNumber;
1581
+ diff: z.ZodString;
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>>;
1601
+ }, z.core.$strip>>;
1236
1602
  }, z.core.$loose>>>;
1237
1603
  reasoning: z.ZodOptional<z.ZodString>;
1238
1604
  tool_call_id: z.ZodOptional<z.ZodString>;
@@ -1317,6 +1683,30 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1317
1683
  delegate: "delegate";
1318
1684
  }>>;
1319
1685
  target: z.ZodOptional<z.ZodString>;
1686
+ edit_diff: z.ZodOptional<z.ZodObject<{
1687
+ added: z.ZodNumber;
1688
+ removed: z.ZodNumber;
1689
+ diff: z.ZodString;
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>>;
1709
+ }, z.core.$strip>>;
1320
1710
  id: z.ZodString;
1321
1711
  name: z.ZodString;
1322
1712
  }, z.core.$loose>>;
@@ -1364,6 +1754,10 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1364
1754
  activity_scene_ref: z.ZodOptional<z.ZodString>;
1365
1755
  }, z.core.$loose>>;
1366
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>>;
1367
1761
  _active_turn_user: z.ZodOptional<z.ZodBoolean>;
1368
1762
  _steer: z.ZodOptional<z.ZodObject<{
1369
1763
  steer_id: z.ZodString;
@@ -1374,6 +1768,7 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1374
1768
  _final_phase_duration: z.ZodOptional<z.ZodNumber>;
1375
1769
  _display_truncated: z.ZodOptional<z.ZodBoolean>;
1376
1770
  _display_excerpt: z.ZodOptional<z.ZodString>;
1771
+ _collapsible: z.ZodOptional<z.ZodBoolean>;
1377
1772
  _display_content: z.ZodOptional<z.ZodString>;
1378
1773
  _media: z.ZodOptional<z.ZodArray<z.ZodObject<{
1379
1774
  url: z.ZodString;
@@ -1419,6 +1814,11 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1419
1814
  _marker_body: z.ZodOptional<z.ZodString>;
1420
1815
  _background_reply: z.ZodOptional<z.ZodBoolean>;
1421
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
+ }>>;
1422
1822
  }, z.core.$loose>>>;
1423
1823
  tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1424
1824
  name: z.ZodOptional<z.ZodString>;
@@ -1459,6 +1859,30 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1459
1859
  delegate: "delegate";
1460
1860
  }>>;
1461
1861
  target: z.ZodOptional<z.ZodString>;
1862
+ edit_diff: z.ZodOptional<z.ZodObject<{
1863
+ added: z.ZodNumber;
1864
+ removed: z.ZodNumber;
1865
+ diff: z.ZodString;
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>>;
1885
+ }, z.core.$strip>>;
1462
1886
  }, z.core.$loose>>>;
1463
1887
  created_at: z.ZodOptional<z.ZodNumber>;
1464
1888
  updated_at: z.ZodOptional<z.ZodNumber>;
@@ -1554,6 +1978,7 @@ export declare const SessionRowSchema: z.ZodObject<{
1554
1978
  can_branch: z.ZodBoolean;
1555
1979
  can_pin: z.ZodBoolean;
1556
1980
  can_archive: z.ZodBoolean;
1981
+ can_delete: z.ZodBoolean;
1557
1982
  can_duplicate: z.ZodBoolean;
1558
1983
  attention: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1559
1984
  kind: z.ZodOptional<z.ZodString>;
@@ -1566,6 +1991,7 @@ export declare const SessionRowSchema: z.ZodObject<{
1566
1991
  parent_session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1567
1992
  active_stream_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1568
1993
  share_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1994
+ share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1569
1995
  worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1570
1996
  match_type: z.ZodOptional<z.ZodEnum<{
1571
1997
  title: "title";
@@ -1615,6 +2041,7 @@ export declare const SessionsListSchema: z.ZodObject<{
1615
2041
  can_branch: z.ZodBoolean;
1616
2042
  can_pin: z.ZodBoolean;
1617
2043
  can_archive: z.ZodBoolean;
2044
+ can_delete: z.ZodBoolean;
1618
2045
  can_duplicate: z.ZodBoolean;
1619
2046
  attention: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1620
2047
  kind: z.ZodOptional<z.ZodString>;
@@ -1627,6 +2054,7 @@ export declare const SessionsListSchema: z.ZodObject<{
1627
2054
  parent_session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1628
2055
  active_stream_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1629
2056
  share_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2057
+ share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1630
2058
  worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1631
2059
  match_type: z.ZodOptional<z.ZodEnum<{
1632
2060
  title: "title";
@@ -1674,6 +2102,7 @@ export declare const SessionsListSchema: z.ZodObject<{
1674
2102
  can_branch: z.ZodBoolean;
1675
2103
  can_pin: z.ZodBoolean;
1676
2104
  can_archive: z.ZodBoolean;
2105
+ can_delete: z.ZodBoolean;
1677
2106
  can_duplicate: z.ZodBoolean;
1678
2107
  attention: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1679
2108
  kind: z.ZodOptional<z.ZodString>;
@@ -1686,6 +2115,7 @@ export declare const SessionsListSchema: z.ZodObject<{
1686
2115
  parent_session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1687
2116
  active_stream_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1688
2117
  share_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2118
+ share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1689
2119
  worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1690
2120
  match_type: z.ZodOptional<z.ZodEnum<{
1691
2121
  title: "title";
@@ -1828,8 +2258,10 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
1828
2258
  can_branch: z.ZodBoolean;
1829
2259
  can_pin: z.ZodBoolean;
1830
2260
  can_archive: z.ZodBoolean;
2261
+ can_delete: z.ZodBoolean;
1831
2262
  can_duplicate: z.ZodBoolean;
1832
2263
  source_tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2264
+ can_compress: z.ZodOptional<z.ZodBoolean>;
1833
2265
  source_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1834
2266
  session_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1835
2267
  raw_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1838,6 +2270,7 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
1838
2270
  worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1839
2271
  worktree_repo_root: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1840
2272
  share_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2273
+ share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1841
2274
  share_created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1842
2275
  manual_title: z.ZodOptional<z.ZodBoolean>;
1843
2276
  compression_anchor_summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1856,6 +2289,14 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
1856
2289
  }, z.core.$strip>>>;
1857
2290
  assistant_name: z.ZodOptional<z.ZodString>;
1858
2291
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2292
+ compression_reference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2293
+ text: z.ZodString;
2294
+ after_message_index: z.ZodNullable<z.ZodNumber>;
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>>>;
1859
2300
  context_used_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1860
2301
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1861
2302
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -1924,6 +2365,30 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
1924
2365
  delegate: "delegate";
1925
2366
  }>>;
1926
2367
  target: z.ZodOptional<z.ZodString>;
2368
+ edit_diff: z.ZodOptional<z.ZodObject<{
2369
+ added: z.ZodNumber;
2370
+ removed: z.ZodNumber;
2371
+ diff: z.ZodString;
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>>;
2391
+ }, z.core.$strip>>;
1927
2392
  }, z.core.$loose>>>;
1928
2393
  reasoning: z.ZodOptional<z.ZodString>;
1929
2394
  tool_call_id: z.ZodOptional<z.ZodString>;
@@ -2008,6 +2473,30 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
2008
2473
  delegate: "delegate";
2009
2474
  }>>;
2010
2475
  target: z.ZodOptional<z.ZodString>;
2476
+ edit_diff: z.ZodOptional<z.ZodObject<{
2477
+ added: z.ZodNumber;
2478
+ removed: z.ZodNumber;
2479
+ diff: z.ZodString;
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>>;
2499
+ }, z.core.$strip>>;
2011
2500
  id: z.ZodString;
2012
2501
  name: z.ZodString;
2013
2502
  }, z.core.$loose>>;
@@ -2055,6 +2544,10 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
2055
2544
  activity_scene_ref: z.ZodOptional<z.ZodString>;
2056
2545
  }, z.core.$loose>>;
2057
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>>;
2058
2551
  _active_turn_user: z.ZodOptional<z.ZodBoolean>;
2059
2552
  _steer: z.ZodOptional<z.ZodObject<{
2060
2553
  steer_id: z.ZodString;
@@ -2065,6 +2558,7 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
2065
2558
  _final_phase_duration: z.ZodOptional<z.ZodNumber>;
2066
2559
  _display_truncated: z.ZodOptional<z.ZodBoolean>;
2067
2560
  _display_excerpt: z.ZodOptional<z.ZodString>;
2561
+ _collapsible: z.ZodOptional<z.ZodBoolean>;
2068
2562
  _display_content: z.ZodOptional<z.ZodString>;
2069
2563
  _media: z.ZodOptional<z.ZodArray<z.ZodObject<{
2070
2564
  url: z.ZodString;
@@ -2110,6 +2604,11 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
2110
2604
  _marker_body: z.ZodOptional<z.ZodString>;
2111
2605
  _background_reply: z.ZodOptional<z.ZodBoolean>;
2112
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
+ }>>;
2113
2612
  }, z.core.$loose>>>;
2114
2613
  tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2115
2614
  name: z.ZodOptional<z.ZodString>;
@@ -2150,6 +2649,30 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
2150
2649
  delegate: "delegate";
2151
2650
  }>>;
2152
2651
  target: z.ZodOptional<z.ZodString>;
2652
+ edit_diff: z.ZodOptional<z.ZodObject<{
2653
+ added: z.ZodNumber;
2654
+ removed: z.ZodNumber;
2655
+ diff: z.ZodString;
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>>;
2675
+ }, z.core.$strip>>;
2153
2676
  }, z.core.$loose>>>;
2154
2677
  created_at: z.ZodOptional<z.ZodNumber>;
2155
2678
  updated_at: z.ZodOptional<z.ZodNumber>;
@@ -2207,11 +2730,17 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
2207
2730
  }, z.core.$loose>>;
2208
2731
  }, z.core.$loose>;
2209
2732
  export type ChatStartResponse = z.infer<typeof ChatStartResponseSchema>;
2733
+ /**
2734
+ * `active` is whether this stream's channel is still live. `blocking_stream_id` (TAL-622) is the run that still holds the
2735
+ * stream's session: this run while it unwinds after a Stop, or a successor such as a goal continuation. A session delete
2736
+ * answers 409 while it is set, so a client draining a session before deleting it waits until it is null.
2737
+ */
2210
2738
  export declare const StreamStatusSchema: z.ZodObject<{
2211
2739
  active: z.ZodBoolean;
2212
2740
  stream_id: z.ZodString;
2213
2741
  replay_available: z.ZodOptional<z.ZodBoolean>;
2214
2742
  journal: z.ZodOptional<z.ZodUnknown>;
2743
+ blocking_stream_id: z.ZodNullable<z.ZodString>;
2215
2744
  }, z.core.$loose>;
2216
2745
  export type StreamStatus = z.infer<typeof StreamStatusSchema>;
2217
2746
  /**
@@ -2324,8 +2853,10 @@ export declare const SteerResponseSchema: z.ZodObject<{
2324
2853
  can_branch: z.ZodBoolean;
2325
2854
  can_pin: z.ZodBoolean;
2326
2855
  can_archive: z.ZodBoolean;
2856
+ can_delete: z.ZodBoolean;
2327
2857
  can_duplicate: z.ZodBoolean;
2328
2858
  source_tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2859
+ can_compress: z.ZodOptional<z.ZodBoolean>;
2329
2860
  source_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2330
2861
  session_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2331
2862
  raw_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2334,6 +2865,7 @@ export declare const SteerResponseSchema: z.ZodObject<{
2334
2865
  worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2335
2866
  worktree_repo_root: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2336
2867
  share_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2868
+ share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2337
2869
  share_created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2338
2870
  manual_title: z.ZodOptional<z.ZodBoolean>;
2339
2871
  compression_anchor_summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2352,6 +2884,14 @@ export declare const SteerResponseSchema: z.ZodObject<{
2352
2884
  }, z.core.$strip>>>;
2353
2885
  assistant_name: z.ZodOptional<z.ZodString>;
2354
2886
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2887
+ compression_reference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2888
+ text: z.ZodString;
2889
+ after_message_index: z.ZodNullable<z.ZodNumber>;
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>>>;
2355
2895
  context_used_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2356
2896
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2357
2897
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -2420,6 +2960,30 @@ export declare const SteerResponseSchema: z.ZodObject<{
2420
2960
  delegate: "delegate";
2421
2961
  }>>;
2422
2962
  target: z.ZodOptional<z.ZodString>;
2963
+ edit_diff: z.ZodOptional<z.ZodObject<{
2964
+ added: z.ZodNumber;
2965
+ removed: z.ZodNumber;
2966
+ diff: z.ZodString;
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>>;
2986
+ }, z.core.$strip>>;
2423
2987
  }, z.core.$loose>>>;
2424
2988
  reasoning: z.ZodOptional<z.ZodString>;
2425
2989
  tool_call_id: z.ZodOptional<z.ZodString>;
@@ -2504,6 +3068,30 @@ export declare const SteerResponseSchema: z.ZodObject<{
2504
3068
  delegate: "delegate";
2505
3069
  }>>;
2506
3070
  target: z.ZodOptional<z.ZodString>;
3071
+ edit_diff: z.ZodOptional<z.ZodObject<{
3072
+ added: z.ZodNumber;
3073
+ removed: z.ZodNumber;
3074
+ diff: z.ZodString;
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>>;
3094
+ }, z.core.$strip>>;
2507
3095
  id: z.ZodString;
2508
3096
  name: z.ZodString;
2509
3097
  }, z.core.$loose>>;
@@ -2551,6 +3139,10 @@ export declare const SteerResponseSchema: z.ZodObject<{
2551
3139
  activity_scene_ref: z.ZodOptional<z.ZodString>;
2552
3140
  }, z.core.$loose>>;
2553
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>>;
2554
3146
  _active_turn_user: z.ZodOptional<z.ZodBoolean>;
2555
3147
  _steer: z.ZodOptional<z.ZodObject<{
2556
3148
  steer_id: z.ZodString;
@@ -2561,6 +3153,7 @@ export declare const SteerResponseSchema: z.ZodObject<{
2561
3153
  _final_phase_duration: z.ZodOptional<z.ZodNumber>;
2562
3154
  _display_truncated: z.ZodOptional<z.ZodBoolean>;
2563
3155
  _display_excerpt: z.ZodOptional<z.ZodString>;
3156
+ _collapsible: z.ZodOptional<z.ZodBoolean>;
2564
3157
  _display_content: z.ZodOptional<z.ZodString>;
2565
3158
  _media: z.ZodOptional<z.ZodArray<z.ZodObject<{
2566
3159
  url: z.ZodString;
@@ -2606,6 +3199,11 @@ export declare const SteerResponseSchema: z.ZodObject<{
2606
3199
  _marker_body: z.ZodOptional<z.ZodString>;
2607
3200
  _background_reply: z.ZodOptional<z.ZodBoolean>;
2608
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
+ }>>;
2609
3207
  }, z.core.$loose>>>;
2610
3208
  tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2611
3209
  name: z.ZodOptional<z.ZodString>;
@@ -2646,6 +3244,30 @@ export declare const SteerResponseSchema: z.ZodObject<{
2646
3244
  delegate: "delegate";
2647
3245
  }>>;
2648
3246
  target: z.ZodOptional<z.ZodString>;
3247
+ edit_diff: z.ZodOptional<z.ZodObject<{
3248
+ added: z.ZodNumber;
3249
+ removed: z.ZodNumber;
3250
+ diff: z.ZodString;
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>>;
3270
+ }, z.core.$strip>>;
2649
3271
  }, z.core.$loose>>>;
2650
3272
  created_at: z.ZodOptional<z.ZodNumber>;
2651
3273
  updated_at: z.ZodOptional<z.ZodNumber>;
@@ -2872,6 +3494,8 @@ export declare const DraftResponseSchema: z.ZodObject<{
2872
3494
  draft_version: z.ZodNullable<z.ZodString>;
2873
3495
  unchanged: z.ZodOptional<z.ZodBoolean>;
2874
3496
  }, z.core.$loose>;
3497
+ /** At most this many attachments ride one chat message; the server names each in the prompt (TAL-276, TAL-635). */
3498
+ export declare const MAX_CHAT_ATTACHMENTS = 20;
2875
3499
  export declare const UploadResponseSchema: z.ZodObject<{
2876
3500
  filename: z.ZodString;
2877
3501
  path: z.ZodString;
@@ -2879,6 +3503,8 @@ export declare const UploadResponseSchema: z.ZodObject<{
2879
3503
  mime: z.ZodString;
2880
3504
  is_image: z.ZodOptional<z.ZodBoolean>;
2881
3505
  rollback_token: z.ZodOptional<z.ZodString>;
3506
+ named_in_prompt: z.ZodOptional<z.ZodBoolean>;
3507
+ max_attachments_per_message: z.ZodOptional<z.ZodNumber>;
2882
3508
  }, z.core.$loose>;
2883
3509
  export type UploadResponse = z.infer<typeof UploadResponseSchema>;
2884
3510
  export declare const GoalViewSchema: z.ZodObject<{
@@ -2906,30 +3532,6 @@ export declare const GoalResponseSchema: z.ZodObject<{
2906
3532
  status: z.ZodOptional<z.ZodString>;
2907
3533
  reason: z.ZodOptional<z.ZodString>;
2908
3534
  }, z.core.$loose>;
2909
- export declare const BackgroundResultSchema: z.ZodObject<{
2910
- id: z.ZodOptional<z.ZodString>;
2911
- task_id: z.ZodOptional<z.ZodString>;
2912
- status: z.ZodOptional<z.ZodString>;
2913
- title: z.ZodOptional<z.ZodString>;
2914
- summary: z.ZodOptional<z.ZodString>;
2915
- prompt: z.ZodOptional<z.ZodString>;
2916
- answer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2917
- error: z.ZodOptional<z.ZodString>;
2918
- completed_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2919
- }, z.core.$loose>;
2920
- export declare const BackgroundStatusSchema: z.ZodObject<{
2921
- results: z.ZodArray<z.ZodObject<{
2922
- id: z.ZodOptional<z.ZodString>;
2923
- task_id: z.ZodOptional<z.ZodString>;
2924
- status: z.ZodOptional<z.ZodString>;
2925
- title: z.ZodOptional<z.ZodString>;
2926
- summary: z.ZodOptional<z.ZodString>;
2927
- prompt: z.ZodOptional<z.ZodString>;
2928
- answer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2929
- error: z.ZodOptional<z.ZodString>;
2930
- completed_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2931
- }, z.core.$loose>>;
2932
- }, z.core.$loose>;
2933
3535
  /**
2934
3536
  * TAL-372: one piece of background work a session owns, the same record for every client, reload and restart.
2935
3537
  * - `task_id` is stable: the delegation unit's id, the process id, or the `/background` task id.
@@ -3115,6 +3717,7 @@ export declare const ShareCreateResponseSchema: z.ZodObject<{
3115
3717
  can_branch: z.ZodBoolean;
3116
3718
  can_pin: z.ZodBoolean;
3117
3719
  can_archive: z.ZodBoolean;
3720
+ can_delete: z.ZodBoolean;
3118
3721
  can_duplicate: z.ZodBoolean;
3119
3722
  attention: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3120
3723
  kind: z.ZodOptional<z.ZodString>;
@@ -3127,6 +3730,7 @@ export declare const ShareCreateResponseSchema: z.ZodObject<{
3127
3730
  parent_session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3128
3731
  active_stream_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3129
3732
  share_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3733
+ share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3130
3734
  worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3131
3735
  match_type: z.ZodOptional<z.ZodEnum<{
3132
3736
  title: "title";
@@ -3183,6 +3787,16 @@ export declare const TranscribeCapabilitySchema: z.ZodObject<{
3183
3787
  available: z.ZodBoolean;
3184
3788
  provider: z.ZodString;
3185
3789
  }, z.core.$loose>;
3790
+ /** TAL-411: the request profile's quota urgency thresholds. A save patches valid fields and clamps critical to at most warning. */
3791
+ export declare const QuotaThresholdsSchema: z.ZodObject<{
3792
+ warning_remaining_percent: z.ZodNumber;
3793
+ critical_remaining_percent: z.ZodNumber;
3794
+ pace_tolerance_percent: z.ZodNumber;
3795
+ pace_warning_burn_rate_percent: z.ZodNumber;
3796
+ pace_critical_burn_rate_percent: z.ZodNumber;
3797
+ pace_minimum_elapsed_hours: z.ZodNumber;
3798
+ }, z.core.$strip>;
3799
+ export type QuotaThresholds = z.infer<typeof QuotaThresholdsSchema>;
3186
3800
  export declare const LoginResponseSchema: z.ZodObject<{
3187
3801
  ok: z.ZodLiteral<true>;
3188
3802
  message: z.ZodOptional<z.ZodString>;
@@ -3237,6 +3851,14 @@ export declare const SettingsSchema: z.ZodObject<{
3237
3851
  persisted_speech_keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
3238
3852
  confirm_external_links: z.ZodOptional<z.ZodBoolean>;
3239
3853
  trusted_link_hosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
3854
+ provider_quota_thresholds: z.ZodOptional<z.ZodObject<{
3855
+ warning_remaining_percent: z.ZodNumber;
3856
+ critical_remaining_percent: z.ZodNumber;
3857
+ pace_tolerance_percent: z.ZodNumber;
3858
+ pace_warning_burn_rate_percent: z.ZodNumber;
3859
+ pace_critical_burn_rate_percent: z.ZodNumber;
3860
+ pace_minimum_elapsed_hours: z.ZodNumber;
3861
+ }, z.core.$strip>>;
3240
3862
  }, z.core.$loose>;
3241
3863
  export type Settings = z.infer<typeof SettingsSchema>;
3242
3864
  export declare const ProfileSchema: z.ZodObject<{
@@ -3252,6 +3874,13 @@ export declare const ProfileSchema: z.ZodObject<{
3252
3874
  gateway_running: z.ZodOptional<z.ZodBoolean>;
3253
3875
  has_env: z.ZodOptional<z.ZodBoolean>;
3254
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>>>;
3255
3884
  }, z.core.$loose>;
3256
3885
  export declare const ProfilesSchema: z.ZodObject<{
3257
3886
  profiles: z.ZodArray<z.ZodObject<{
@@ -3267,6 +3896,13 @@ export declare const ProfilesSchema: z.ZodObject<{
3267
3896
  gateway_running: z.ZodOptional<z.ZodBoolean>;
3268
3897
  has_env: z.ZodOptional<z.ZodBoolean>;
3269
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>>>;
3270
3906
  }, z.core.$loose>>;
3271
3907
  active: z.ZodString;
3272
3908
  single_profile_mode: z.ZodOptional<z.ZodBoolean>;
@@ -3292,6 +3928,13 @@ export declare const ProfileSwitchSchema: z.ZodObject<{
3292
3928
  gateway_running: z.ZodOptional<z.ZodBoolean>;
3293
3929
  has_env: z.ZodOptional<z.ZodBoolean>;
3294
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>>>;
3295
3938
  }, z.core.$loose>>;
3296
3939
  active: z.ZodString;
3297
3940
  single_profile_mode: z.ZodOptional<z.ZodBoolean>;
@@ -3368,10 +4011,27 @@ export declare const ModelsSchema: z.ZodObject<{
3368
4011
  configured_model_badges: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3369
4012
  }, z.core.$loose>;
3370
4013
  export type Models = z.infer<typeof ModelsSchema>;
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
+ */
3371
4030
  export declare const ProviderSchema: z.ZodObject<{
3372
4031
  id: z.ZodString;
3373
4032
  display_name: z.ZodOptional<z.ZodString>;
3374
4033
  has_key: z.ZodOptional<z.ZodBoolean>;
4034
+ configured: z.ZodOptional<z.ZodBoolean>;
3375
4035
  configurable: z.ZodOptional<z.ZodBoolean>;
3376
4036
  is_oauth: z.ZodOptional<z.ZodBoolean>;
3377
4037
  is_plugin_provider: z.ZodOptional<z.ZodBoolean>;
@@ -3390,12 +4050,23 @@ export declare const ProviderSchema: z.ZodObject<{
3390
4050
  supports_fast_tier: z.ZodOptional<z.ZodBoolean>;
3391
4051
  }, z.core.$loose>>>;
3392
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>;
3393
4063
  }, z.core.$loose>;
3394
4064
  export declare const ProvidersSchema: z.ZodObject<{
3395
4065
  providers: z.ZodArray<z.ZodObject<{
3396
4066
  id: z.ZodString;
3397
4067
  display_name: z.ZodOptional<z.ZodString>;
3398
4068
  has_key: z.ZodOptional<z.ZodBoolean>;
4069
+ configured: z.ZodOptional<z.ZodBoolean>;
3399
4070
  configurable: z.ZodOptional<z.ZodBoolean>;
3400
4071
  is_oauth: z.ZodOptional<z.ZodBoolean>;
3401
4072
  is_plugin_provider: z.ZodOptional<z.ZodBoolean>;
@@ -3414,9 +4085,44 @@ export declare const ProvidersSchema: z.ZodObject<{
3414
4085
  supports_fast_tier: z.ZodOptional<z.ZodBoolean>;
3415
4086
  }, z.core.$loose>>>;
3416
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>;
3417
4098
  }, z.core.$loose>>;
3418
4099
  active_provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3419
4100
  }, z.core.$loose>;
4101
+ export declare const QuotaLevelSchema: z.ZodEnum<{
4102
+ stale: "stale";
4103
+ unavailable: "unavailable";
4104
+ warning: "warning";
4105
+ healthy: "healthy";
4106
+ critical: "critical";
4107
+ }>;
4108
+ export type QuotaLevel = z.infer<typeof QuotaLevelSchema>;
4109
+ /** TAL-411: the server's classification per colour basis; `/api/provider/quotas` only, at the profile's thresholds. */
4110
+ export declare const QuotaUrgencySchema: z.ZodObject<{
4111
+ remaining: z.ZodEnum<{
4112
+ stale: "stale";
4113
+ unavailable: "unavailable";
4114
+ warning: "warning";
4115
+ healthy: "healthy";
4116
+ critical: "critical";
4117
+ }>;
4118
+ pace: z.ZodEnum<{
4119
+ stale: "stale";
4120
+ unavailable: "unavailable";
4121
+ warning: "warning";
4122
+ healthy: "healthy";
4123
+ critical: "critical";
4124
+ }>;
4125
+ }, z.core.$loose>;
3420
4126
  /** TAL-409: a window's pace as of the envelope's `computed_at`. Stale once `valid_until` (the window's reset) passes. */
3421
4127
  export declare const QuotaPaceSchema: z.ZodObject<{
3422
4128
  expected_remaining_percent: z.ZodNumber;
@@ -3426,6 +4132,11 @@ export declare const QuotaPaceSchema: z.ZodObject<{
3426
4132
  projected_minutes_to_empty: z.ZodNullable<z.ZodNumber>;
3427
4133
  elapsed_minutes: z.ZodNumber;
3428
4134
  valid_until: z.ZodString;
4135
+ status: z.ZodOptional<z.ZodEnum<{
4136
+ over: "over";
4137
+ on: "on";
4138
+ under: "under";
4139
+ }>>;
3429
4140
  }, z.core.$loose>;
3430
4141
  export declare const QuotaForecastSchema: z.ZodObject<{
3431
4142
  outcome: z.ZodEnum<{
@@ -3454,6 +4165,11 @@ export declare const QuotaWindowSchema: z.ZodObject<{
3454
4165
  projected_minutes_to_empty: z.ZodNullable<z.ZodNumber>;
3455
4166
  elapsed_minutes: z.ZodNumber;
3456
4167
  valid_until: z.ZodString;
4168
+ status: z.ZodOptional<z.ZodEnum<{
4169
+ over: "over";
4170
+ on: "on";
4171
+ under: "under";
4172
+ }>>;
3457
4173
  }, z.core.$loose>>;
3458
4174
  forecast: z.ZodNullable<z.ZodObject<{
3459
4175
  outcome: z.ZodEnum<{
@@ -3467,6 +4183,23 @@ export declare const QuotaWindowSchema: z.ZodObject<{
3467
4183
  budget_percent: z.ZodNullable<z.ZodNumber>;
3468
4184
  depletion_margin_minutes: z.ZodNullable<z.ZodNumber>;
3469
4185
  }, z.core.$loose>>;
4186
+ projection_eligible: z.ZodOptional<z.ZodBoolean>;
4187
+ urgency: z.ZodOptional<z.ZodObject<{
4188
+ remaining: z.ZodEnum<{
4189
+ stale: "stale";
4190
+ unavailable: "unavailable";
4191
+ warning: "warning";
4192
+ healthy: "healthy";
4193
+ critical: "critical";
4194
+ }>;
4195
+ pace: z.ZodEnum<{
4196
+ stale: "stale";
4197
+ unavailable: "unavailable";
4198
+ warning: "warning";
4199
+ healthy: "healthy";
4200
+ critical: "critical";
4201
+ }>;
4202
+ }, z.core.$loose>>;
3470
4203
  }, z.core.$loose>;
3471
4204
  export declare const QuotaSourceSchema: z.ZodObject<{
3472
4205
  source_id: z.ZodString;
@@ -3493,6 +4226,11 @@ export declare const QuotaSourceSchema: z.ZodObject<{
3493
4226
  projected_minutes_to_empty: z.ZodNullable<z.ZodNumber>;
3494
4227
  elapsed_minutes: z.ZodNumber;
3495
4228
  valid_until: z.ZodString;
4229
+ status: z.ZodOptional<z.ZodEnum<{
4230
+ over: "over";
4231
+ on: "on";
4232
+ under: "under";
4233
+ }>>;
3496
4234
  }, z.core.$loose>>;
3497
4235
  forecast: z.ZodNullable<z.ZodObject<{
3498
4236
  outcome: z.ZodEnum<{
@@ -3506,6 +4244,23 @@ export declare const QuotaSourceSchema: z.ZodObject<{
3506
4244
  budget_percent: z.ZodNullable<z.ZodNumber>;
3507
4245
  depletion_margin_minutes: z.ZodNullable<z.ZodNumber>;
3508
4246
  }, z.core.$loose>>;
4247
+ projection_eligible: z.ZodOptional<z.ZodBoolean>;
4248
+ urgency: z.ZodOptional<z.ZodObject<{
4249
+ remaining: z.ZodEnum<{
4250
+ stale: "stale";
4251
+ unavailable: "unavailable";
4252
+ warning: "warning";
4253
+ healthy: "healthy";
4254
+ critical: "critical";
4255
+ }>;
4256
+ pace: z.ZodEnum<{
4257
+ stale: "stale";
4258
+ unavailable: "unavailable";
4259
+ warning: "warning";
4260
+ healthy: "healthy";
4261
+ critical: "critical";
4262
+ }>;
4263
+ }, z.core.$loose>>;
3509
4264
  }, z.core.$loose>>>;
3510
4265
  balances: z.ZodOptional<z.ZodUnknown>;
3511
4266
  plan: z.ZodOptional<z.ZodUnknown>;
@@ -3516,6 +4271,22 @@ export declare const QuotaSourceSchema: z.ZodObject<{
3516
4271
  pace_window_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3517
4272
  session_window_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3518
4273
  weekly_window_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4274
+ urgency: z.ZodOptional<z.ZodObject<{
4275
+ remaining: z.ZodEnum<{
4276
+ stale: "stale";
4277
+ unavailable: "unavailable";
4278
+ warning: "warning";
4279
+ healthy: "healthy";
4280
+ critical: "critical";
4281
+ }>;
4282
+ pace: z.ZodEnum<{
4283
+ stale: "stale";
4284
+ unavailable: "unavailable";
4285
+ warning: "warning";
4286
+ healthy: "healthy";
4287
+ critical: "critical";
4288
+ }>;
4289
+ }, z.core.$loose>>;
3519
4290
  }, z.core.$loose>;
3520
4291
  /** An account-usage provider's normalised snapshot on `/api/provider/quota` (the same windows and indexes as a quotas source). */
3521
4292
  export declare const QuotaAccountLimitsSchema: z.ZodObject<{
@@ -3539,6 +4310,11 @@ export declare const QuotaAccountLimitsSchema: z.ZodObject<{
3539
4310
  projected_minutes_to_empty: z.ZodNullable<z.ZodNumber>;
3540
4311
  elapsed_minutes: z.ZodNumber;
3541
4312
  valid_until: z.ZodString;
4313
+ status: z.ZodOptional<z.ZodEnum<{
4314
+ over: "over";
4315
+ on: "on";
4316
+ under: "under";
4317
+ }>>;
3542
4318
  }, z.core.$loose>>;
3543
4319
  forecast: z.ZodNullable<z.ZodObject<{
3544
4320
  outcome: z.ZodEnum<{
@@ -3552,6 +4328,23 @@ export declare const QuotaAccountLimitsSchema: z.ZodObject<{
3552
4328
  budget_percent: z.ZodNullable<z.ZodNumber>;
3553
4329
  depletion_margin_minutes: z.ZodNullable<z.ZodNumber>;
3554
4330
  }, z.core.$loose>>;
4331
+ projection_eligible: z.ZodOptional<z.ZodBoolean>;
4332
+ urgency: z.ZodOptional<z.ZodObject<{
4333
+ remaining: z.ZodEnum<{
4334
+ stale: "stale";
4335
+ unavailable: "unavailable";
4336
+ warning: "warning";
4337
+ healthy: "healthy";
4338
+ critical: "critical";
4339
+ }>;
4340
+ pace: z.ZodEnum<{
4341
+ stale: "stale";
4342
+ unavailable: "unavailable";
4343
+ warning: "warning";
4344
+ healthy: "healthy";
4345
+ critical: "critical";
4346
+ }>;
4347
+ }, z.core.$loose>>;
3555
4348
  }, z.core.$loose>>;
3556
4349
  details: z.ZodOptional<z.ZodUnknown>;
3557
4350
  fetched_at: z.ZodNullable<z.ZodString>;
@@ -3591,6 +4384,11 @@ export declare const ProviderQuotaSchema: z.ZodObject<{
3591
4384
  projected_minutes_to_empty: z.ZodNullable<z.ZodNumber>;
3592
4385
  elapsed_minutes: z.ZodNumber;
3593
4386
  valid_until: z.ZodString;
4387
+ status: z.ZodOptional<z.ZodEnum<{
4388
+ over: "over";
4389
+ on: "on";
4390
+ under: "under";
4391
+ }>>;
3594
4392
  }, z.core.$loose>>;
3595
4393
  forecast: z.ZodNullable<z.ZodObject<{
3596
4394
  outcome: z.ZodEnum<{
@@ -3604,6 +4402,23 @@ export declare const ProviderQuotaSchema: z.ZodObject<{
3604
4402
  budget_percent: z.ZodNullable<z.ZodNumber>;
3605
4403
  depletion_margin_minutes: z.ZodNullable<z.ZodNumber>;
3606
4404
  }, z.core.$loose>>;
4405
+ projection_eligible: z.ZodOptional<z.ZodBoolean>;
4406
+ urgency: z.ZodOptional<z.ZodObject<{
4407
+ remaining: z.ZodEnum<{
4408
+ stale: "stale";
4409
+ unavailable: "unavailable";
4410
+ warning: "warning";
4411
+ healthy: "healthy";
4412
+ critical: "critical";
4413
+ }>;
4414
+ pace: z.ZodEnum<{
4415
+ stale: "stale";
4416
+ unavailable: "unavailable";
4417
+ warning: "warning";
4418
+ healthy: "healthy";
4419
+ critical: "critical";
4420
+ }>;
4421
+ }, z.core.$loose>>;
3607
4422
  }, z.core.$loose>>;
3608
4423
  details: z.ZodOptional<z.ZodUnknown>;
3609
4424
  fetched_at: z.ZodNullable<z.ZodString>;
@@ -3646,6 +4461,11 @@ export declare const ProviderQuotasSchema: z.ZodObject<{
3646
4461
  projected_minutes_to_empty: z.ZodNullable<z.ZodNumber>;
3647
4462
  elapsed_minutes: z.ZodNumber;
3648
4463
  valid_until: z.ZodString;
4464
+ status: z.ZodOptional<z.ZodEnum<{
4465
+ over: "over";
4466
+ on: "on";
4467
+ under: "under";
4468
+ }>>;
3649
4469
  }, z.core.$loose>>;
3650
4470
  forecast: z.ZodNullable<z.ZodObject<{
3651
4471
  outcome: z.ZodEnum<{
@@ -3659,6 +4479,23 @@ export declare const ProviderQuotasSchema: z.ZodObject<{
3659
4479
  budget_percent: z.ZodNullable<z.ZodNumber>;
3660
4480
  depletion_margin_minutes: z.ZodNullable<z.ZodNumber>;
3661
4481
  }, z.core.$loose>>;
4482
+ projection_eligible: z.ZodOptional<z.ZodBoolean>;
4483
+ urgency: z.ZodOptional<z.ZodObject<{
4484
+ remaining: z.ZodEnum<{
4485
+ stale: "stale";
4486
+ unavailable: "unavailable";
4487
+ warning: "warning";
4488
+ healthy: "healthy";
4489
+ critical: "critical";
4490
+ }>;
4491
+ pace: z.ZodEnum<{
4492
+ stale: "stale";
4493
+ unavailable: "unavailable";
4494
+ warning: "warning";
4495
+ healthy: "healthy";
4496
+ critical: "critical";
4497
+ }>;
4498
+ }, z.core.$loose>>;
3662
4499
  }, z.core.$loose>>>;
3663
4500
  balances: z.ZodOptional<z.ZodUnknown>;
3664
4501
  plan: z.ZodOptional<z.ZodUnknown>;
@@ -3669,8 +4506,59 @@ export declare const ProviderQuotasSchema: z.ZodObject<{
3669
4506
  pace_window_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3670
4507
  session_window_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3671
4508
  weekly_window_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4509
+ urgency: z.ZodOptional<z.ZodObject<{
4510
+ remaining: z.ZodEnum<{
4511
+ stale: "stale";
4512
+ unavailable: "unavailable";
4513
+ warning: "warning";
4514
+ healthy: "healthy";
4515
+ critical: "critical";
4516
+ }>;
4517
+ pace: z.ZodEnum<{
4518
+ stale: "stale";
4519
+ unavailable: "unavailable";
4520
+ warning: "warning";
4521
+ healthy: "healthy";
4522
+ critical: "critical";
4523
+ }>;
4524
+ }, z.core.$loose>>;
3672
4525
  }, z.core.$loose>>;
3673
4526
  }, z.core.$loose>;
4527
+ /** One day of OpenRouter spend on `/api/provider/cost-history` (TAL-412). */
4528
+ export declare const CostSnapshotSchema: z.ZodObject<{
4529
+ date: z.ZodString;
4530
+ used: z.ZodNullable<z.ZodNumber>;
4531
+ delta: z.ZodNullable<z.ZodNumber>;
4532
+ bar_percent: z.ZodNumber;
4533
+ }, z.core.$loose>;
4534
+ /** Python `get_provider_cost_history`: OpenRouter daily spend with the server-computed monthly pace and budget standing. */
4535
+ export declare const ProviderCostHistorySchema: z.ZodObject<{
4536
+ ok: z.ZodBoolean;
4537
+ provider: z.ZodNullable<z.ZodString>;
4538
+ display_name: z.ZodOptional<z.ZodString>;
4539
+ supported: z.ZodOptional<z.ZodBoolean>;
4540
+ status: z.ZodString;
4541
+ message: z.ZodString;
4542
+ window_days: z.ZodOptional<z.ZodNumber>;
4543
+ snapshots: z.ZodOptional<z.ZodArray<z.ZodObject<{
4544
+ date: z.ZodString;
4545
+ used: z.ZodNullable<z.ZodNumber>;
4546
+ delta: z.ZodNullable<z.ZodNumber>;
4547
+ bar_percent: z.ZodNumber;
4548
+ }, z.core.$loose>>>;
4549
+ limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4550
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4551
+ monthly_budget: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4552
+ monthly_pace: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4553
+ has_enough_data: z.ZodOptional<z.ZodBoolean>;
4554
+ budget_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4555
+ budget_level: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
4556
+ ok: "ok";
4557
+ over: "over";
4558
+ warn: "warn";
4559
+ }>>>;
4560
+ }, z.core.$loose>;
4561
+ export type ProviderCostHistory = z.infer<typeof ProviderCostHistorySchema>;
3674
4562
  export declare const PersonalitiesSchema: z.ZodObject<{
3675
4563
  personalities: z.ZodArray<z.ZodObject<{
3676
4564
  name: z.ZodString;
@@ -3769,6 +4657,21 @@ export declare const DirListingSchema: z.ZodObject<{
3769
4657
  workspace_recovered: z.ZodOptional<z.ZodBoolean>;
3770
4658
  is_git: z.ZodOptional<z.ZodBoolean>;
3771
4659
  }, z.core.$loose>;
4660
+ /** How a workspace file renders (TAL-566): media streams from `/api/file/raw`; text kinds carry `content`. */
4661
+ export declare const FilePreviewKindSchema: z.ZodEnum<{
4662
+ text: "text";
4663
+ image: "image";
4664
+ audio: "audio";
4665
+ video: "video";
4666
+ pdf: "pdf";
4667
+ markdown: "markdown";
4668
+ csv: "csv";
4669
+ html: "html";
4670
+ binary: "binary";
4671
+ }>;
4672
+ export type FilePreviewKind = z.infer<typeof FilePreviewKindSchema>;
4673
+ /** `table` is a `csv` preview's leading rows (header first); `table_truncated` says the file has more. `preview_url` is an
4674
+ * `html` preview's app-relative frame URL, under which the page's relative assets also resolve. */
3772
4675
  export declare const FileContentSchema: z.ZodObject<{
3773
4676
  path: z.ZodOptional<z.ZodString>;
3774
4677
  content: z.ZodOptional<z.ZodString>;
@@ -3777,6 +4680,20 @@ export declare const FileContentSchema: z.ZodObject<{
3777
4680
  truncated: z.ZodOptional<z.ZodBoolean>;
3778
4681
  binary: z.ZodOptional<z.ZodBoolean>;
3779
4682
  mime: z.ZodOptional<z.ZodString>;
4683
+ preview: z.ZodOptional<z.ZodEnum<{
4684
+ text: "text";
4685
+ image: "image";
4686
+ audio: "audio";
4687
+ video: "video";
4688
+ pdf: "pdf";
4689
+ markdown: "markdown";
4690
+ csv: "csv";
4691
+ html: "html";
4692
+ binary: "binary";
4693
+ }>>;
4694
+ table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
4695
+ table_truncated: z.ZodOptional<z.ZodBoolean>;
4696
+ preview_url: z.ZodOptional<z.ZodString>;
3780
4697
  }, z.core.$loose>;
3781
4698
  export declare const GitInfoSchema: z.ZodObject<{
3782
4699
  git: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -3804,10 +4721,17 @@ export declare const SkillsSchema: z.ZodObject<{
3804
4721
  }, z.core.$loose>>;
3805
4722
  categories: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
3806
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
+ */
3807
4728
  export declare const SkillContentSchema: z.ZodObject<{
3808
4729
  name: z.ZodOptional<z.ZodString>;
3809
4730
  content: z.ZodOptional<z.ZodString>;
3810
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>;
3811
4735
  success: z.ZodOptional<z.ZodBoolean>;
3812
4736
  message: z.ZodOptional<z.ZodString>;
3813
4737
  ok: z.ZodOptional<z.ZodBoolean>;
@@ -3866,7 +4790,8 @@ export declare const PromptsSchema: z.ZodObject<{
3866
4790
  * first, then the Agent registry, in display order; each name appears once. `handler` says who runs it, `clients` which
3867
4791
  * clients can run it, and `unsupported_message` is the English text a client outside `clients` shows when it is typed.
3868
4792
  * Clients suggest the entries listing them whose name or any alias starts with the typed text (case-insensitive), and
3869
- * resolve a typed alias to the entry's `name`.
4793
+ * resolve a typed alias to the entry's `name`. `exec` marks an Agent entry `POST /api/commands/exec` runs: the client
4794
+ * posts the typed text there and shows the returned output instead of starting a chat turn (TAL-561).
3870
4795
  */
3871
4796
  export declare const CommandClientSchema: z.ZodEnum<{
3872
4797
  web: "web";
@@ -3890,6 +4815,7 @@ export declare const CommandRowSchema: z.ZodObject<{
3890
4815
  cli_only: z.ZodOptional<z.ZodBoolean>;
3891
4816
  gateway_only: z.ZodOptional<z.ZodBoolean>;
3892
4817
  subcommands: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
4818
+ exec: z.ZodOptional<z.ZodBoolean>;
3893
4819
  }, z.core.$loose>;
3894
4820
  export declare const CommandsSchema: z.ZodObject<{
3895
4821
  commands: z.ZodArray<z.ZodObject<{
@@ -3910,6 +4836,7 @@ export declare const CommandsSchema: z.ZodObject<{
3910
4836
  cli_only: z.ZodOptional<z.ZodBoolean>;
3911
4837
  gateway_only: z.ZodOptional<z.ZodBoolean>;
3912
4838
  subcommands: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
4839
+ exec: z.ZodOptional<z.ZodBoolean>;
3913
4840
  }, z.core.$loose>>;
3914
4841
  }, z.core.$loose>;
3915
4842
  export type Command = z.infer<typeof CommandRowSchema>;
@@ -3968,6 +4895,184 @@ export declare const DashboardStatusSchema: z.ZodObject<{
3968
4895
  version: z.ZodOptional<z.ZodString>;
3969
4896
  error: z.ZodOptional<z.ZodString>;
3970
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>;
3971
5076
  export declare const AgentHealthSchema: z.ZodObject<{
3972
5077
  alive: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3973
5078
  checked_at: z.ZodOptional<z.ZodString>;
@@ -4000,6 +5105,18 @@ export declare const SystemHealthSchema: z.ZodObject<{
4000
5105
  }, z.core.$loose>>>;
4001
5106
  webui_runtime: z.ZodOptional<z.ZodUnknown>;
4002
5107
  }, z.core.$loose>;
5108
+ export declare const UpdateStateSchema: z.ZodEnum<{
5109
+ unknown: "unknown";
5110
+ manual: "manual";
5111
+ up_to_date: "up_to_date";
5112
+ release_ready: "release_ready";
5113
+ commits_behind: "commits_behind";
5114
+ local_changes: "local_changes";
5115
+ finish: "finish";
5116
+ check_failed: "check_failed";
5117
+ off: "off";
5118
+ }>;
5119
+ export type UpdateState = z.infer<typeof UpdateStateSchema>;
4003
5120
  export declare const UpdateTargetSchema: z.ZodObject<{
4004
5121
  name: z.ZodOptional<z.ZodString>;
4005
5122
  channel: z.ZodOptional<z.ZodEnum<{
@@ -4028,6 +5145,22 @@ export declare const UpdateTargetSchema: z.ZodObject<{
4028
5145
  ignored: z.ZodOptional<z.ZodBoolean>;
4029
5146
  stale_check: z.ZodOptional<z.ZodBoolean>;
4030
5147
  current_version: z.ZodOptional<z.ZodString>;
5148
+ state: z.ZodEnum<{
5149
+ unknown: "unknown";
5150
+ manual: "manual";
5151
+ up_to_date: "up_to_date";
5152
+ release_ready: "release_ready";
5153
+ commits_behind: "commits_behind";
5154
+ local_changes: "local_changes";
5155
+ finish: "finish";
5156
+ check_failed: "check_failed";
5157
+ off: "off";
5158
+ }>;
5159
+ can_apply: z.ZodBoolean;
5160
+ installed_unverified: z.ZodBoolean;
5161
+ manual_link: z.ZodBoolean;
5162
+ target_version: z.ZodNullable<z.ZodString>;
5163
+ summary_available: z.ZodBoolean;
4031
5164
  }, z.core.$loose>;
4032
5165
  export declare const UpdatesCheckSchema: z.ZodObject<{
4033
5166
  disabled: z.ZodOptional<z.ZodBoolean>;
@@ -4067,6 +5200,22 @@ export declare const UpdatesCheckSchema: z.ZodObject<{
4067
5200
  ignored: z.ZodOptional<z.ZodBoolean>;
4068
5201
  stale_check: z.ZodOptional<z.ZodBoolean>;
4069
5202
  current_version: z.ZodOptional<z.ZodString>;
5203
+ state: z.ZodEnum<{
5204
+ unknown: "unknown";
5205
+ manual: "manual";
5206
+ up_to_date: "up_to_date";
5207
+ release_ready: "release_ready";
5208
+ commits_behind: "commits_behind";
5209
+ local_changes: "local_changes";
5210
+ finish: "finish";
5211
+ check_failed: "check_failed";
5212
+ off: "off";
5213
+ }>;
5214
+ can_apply: z.ZodBoolean;
5215
+ installed_unverified: z.ZodBoolean;
5216
+ manual_link: z.ZodBoolean;
5217
+ target_version: z.ZodNullable<z.ZodString>;
5218
+ summary_available: z.ZodBoolean;
4070
5219
  }, z.core.$loose>>>;
4071
5220
  agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4072
5221
  name: z.ZodOptional<z.ZodString>;
@@ -4096,15 +5245,50 @@ export declare const UpdatesCheckSchema: z.ZodObject<{
4096
5245
  ignored: z.ZodOptional<z.ZodBoolean>;
4097
5246
  stale_check: z.ZodOptional<z.ZodBoolean>;
4098
5247
  current_version: z.ZodOptional<z.ZodString>;
5248
+ state: z.ZodEnum<{
5249
+ unknown: "unknown";
5250
+ manual: "manual";
5251
+ up_to_date: "up_to_date";
5252
+ release_ready: "release_ready";
5253
+ commits_behind: "commits_behind";
5254
+ local_changes: "local_changes";
5255
+ finish: "finish";
5256
+ check_failed: "check_failed";
5257
+ off: "off";
5258
+ }>;
5259
+ can_apply: z.ZodBoolean;
5260
+ installed_unverified: z.ZodBoolean;
5261
+ manual_link: z.ZodBoolean;
5262
+ target_version: z.ZodNullable<z.ZodString>;
5263
+ summary_available: z.ZodBoolean;
4099
5264
  }, z.core.$loose>>>;
4100
5265
  }, z.core.$loose>;
4101
5266
  export declare const UpdatesSummarySchema: z.ZodObject<{
4102
- summary: z.ZodOptional<z.ZodString>;
4103
- text: z.ZodOptional<z.ZodString>;
4104
- ok: z.ZodOptional<z.ZodBoolean>;
4105
- error: z.ZodOptional<z.ZodString>;
4106
- diff_links: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
4107
- }, 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>;
4108
5292
  export declare const UpdateApplySchema: z.ZodObject<{
4109
5293
  ok: z.ZodOptional<z.ZodBoolean>;
4110
5294
  status: z.ZodOptional<z.ZodString>;
@@ -4166,8 +5350,8 @@ export declare const UpdateNotificationSchema: z.ZodObject<{
4166
5350
  }>, z.ZodString]>;
4167
5351
  severity: z.ZodEnum<{
4168
5352
  warning: "warning";
4169
- info: "info";
4170
5353
  critical: "critical";
5354
+ info: "info";
4171
5355
  }>;
4172
5356
  persistent: z.ZodBoolean;
4173
5357
  requires_acknowledgement: z.ZodBoolean;
@@ -4235,8 +5419,8 @@ export declare const UpdateNotificationsSchema: z.ZodObject<{
4235
5419
  }>, z.ZodString]>;
4236
5420
  severity: z.ZodEnum<{
4237
5421
  warning: "warning";
4238
- info: "info";
4239
5422
  critical: "critical";
5423
+ info: "info";
4240
5424
  }>;
4241
5425
  persistent: z.ZodBoolean;
4242
5426
  requires_acknowledgement: z.ZodBoolean;
@@ -4287,8 +5471,8 @@ export declare const UpdateNotificationsSchema: z.ZodObject<{
4287
5471
  }>, z.ZodString]>;
4288
5472
  severity: z.ZodEnum<{
4289
5473
  warning: "warning";
4290
- info: "info";
4291
5474
  critical: "critical";
5475
+ info: "info";
4292
5476
  }>;
4293
5477
  persistent: z.ZodBoolean;
4294
5478
  requires_acknowledgement: z.ZodBoolean;
@@ -4361,6 +5545,7 @@ export declare const McpServerSchema: z.ZodObject<{
4361
5545
  id: z.ZodOptional<z.ZodString>;
4362
5546
  transport: z.ZodOptional<z.ZodString>;
4363
5547
  enabled: z.ZodOptional<z.ZodBoolean>;
5548
+ can_toggle: z.ZodOptional<z.ZodBoolean>;
4364
5549
  active: z.ZodOptional<z.ZodBoolean>;
4365
5550
  status: z.ZodOptional<z.ZodString>;
4366
5551
  tools: z.ZodOptional<z.ZodNumber>;
@@ -4376,6 +5561,7 @@ export declare const McpServersSchema: z.ZodObject<{
4376
5561
  id: z.ZodOptional<z.ZodString>;
4377
5562
  transport: z.ZodOptional<z.ZodString>;
4378
5563
  enabled: z.ZodOptional<z.ZodBoolean>;
5564
+ can_toggle: z.ZodOptional<z.ZodBoolean>;
4379
5565
  active: z.ZodOptional<z.ZodBoolean>;
4380
5566
  status: z.ZodOptional<z.ZodString>;
4381
5567
  tools: z.ZodOptional<z.ZodNumber>;
@@ -4409,6 +5595,75 @@ export declare const NotesSourcesSchema: z.ZodObject<{
4409
5595
  attach_supported: z.ZodOptional<z.ZodBoolean>;
4410
5596
  automatic_recall_unchanged: z.ZodOptional<z.ZodBoolean>;
4411
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>;
4412
5667
  export declare const TodoItemSchema: z.ZodObject<{
4413
5668
  id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
4414
5669
  text: z.ZodOptional<z.ZodString>;
@@ -4429,6 +5684,7 @@ export declare const TodoStateSchema: z.ZodObject<{
4429
5684
  done: z.ZodOptional<z.ZodBoolean>;
4430
5685
  completed: z.ZodOptional<z.ZodBoolean>;
4431
5686
  }, z.core.$loose>>>;
5687
+ summary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4432
5688
  version: z.ZodOptional<z.ZodNumber>;
4433
5689
  ts: z.ZodOptional<z.ZodNumber>;
4434
5690
  source: z.ZodOptional<z.ZodString>;
@@ -4576,10 +5832,10 @@ export declare const CronRepeatSchema: z.ZodObject<{
4576
5832
  export declare const CronDerivedStateSchema: z.ZodEnum<{
4577
5833
  error: "error";
4578
5834
  active: "active";
5835
+ off: "off";
4579
5836
  needs_attention: "needs_attention";
4580
5837
  schedule_error: "schedule_error";
4581
5838
  paused: "paused";
4582
- off: "off";
4583
5839
  }>;
4584
5840
  export type CronDerivedState = z.infer<typeof CronDerivedStateSchema>;
4585
5841
  export declare const CronJobViewSchema: z.ZodObject<{
@@ -4634,13 +5890,16 @@ export declare const CronJobViewSchema: z.ZodObject<{
4634
5890
  derived_state: z.ZodOptional<z.ZodEnum<{
4635
5891
  error: "error";
4636
5892
  active: "active";
5893
+ off: "off";
4637
5894
  needs_attention: "needs_attention";
4638
5895
  schedule_error: "schedule_error";
4639
5896
  paused: "paused";
4640
- off: "off";
4641
5897
  }>>;
4642
5898
  needs_attention: z.ZodOptional<z.ZodBoolean>;
4643
5899
  resumable: z.ZodOptional<z.ZodBoolean>;
5900
+ attention_hint: z.ZodNullable<z.ZodEnum<{
5901
+ croniter_missing: "croniter_missing";
5902
+ }>>;
4644
5903
  }, z.core.$loose>;
4645
5904
  export type CronJob = z.infer<typeof CronJobViewSchema>;
4646
5905
  export declare const CronsSchema: z.ZodObject<{
@@ -4696,14 +5955,18 @@ export declare const CronsSchema: z.ZodObject<{
4696
5955
  derived_state: z.ZodOptional<z.ZodEnum<{
4697
5956
  error: "error";
4698
5957
  active: "active";
5958
+ off: "off";
4699
5959
  needs_attention: "needs_attention";
4700
5960
  schedule_error: "schedule_error";
4701
5961
  paused: "paused";
4702
- off: "off";
4703
5962
  }>>;
4704
5963
  needs_attention: z.ZodOptional<z.ZodBoolean>;
4705
5964
  resumable: z.ZodOptional<z.ZodBoolean>;
5965
+ attention_hint: z.ZodNullable<z.ZodEnum<{
5966
+ croniter_missing: "croniter_missing";
5967
+ }>>;
4706
5968
  }, z.core.$loose>>;
5969
+ ordered: z.ZodOptional<z.ZodBoolean>;
4707
5970
  active_profile: z.ZodOptional<z.ZodString>;
4708
5971
  all_profiles: z.ZodOptional<z.ZodBoolean>;
4709
5972
  other_profile_count: z.ZodOptional<z.ZodNumber>;
@@ -4806,13 +6069,16 @@ export declare const CronMutationSchema: z.ZodObject<{
4806
6069
  derived_state: z.ZodOptional<z.ZodEnum<{
4807
6070
  error: "error";
4808
6071
  active: "active";
6072
+ off: "off";
4809
6073
  needs_attention: "needs_attention";
4810
6074
  schedule_error: "schedule_error";
4811
6075
  paused: "paused";
4812
- off: "off";
4813
6076
  }>>;
4814
6077
  needs_attention: z.ZodOptional<z.ZodBoolean>;
4815
6078
  resumable: z.ZodOptional<z.ZodBoolean>;
6079
+ attention_hint: z.ZodNullable<z.ZodEnum<{
6080
+ croniter_missing: "croniter_missing";
6081
+ }>>;
4816
6082
  }, z.core.$loose>>;
4817
6083
  job_id: z.ZodOptional<z.ZodString>;
4818
6084
  status: z.ZodOptional<z.ZodString>;
@@ -4862,9 +6128,11 @@ export declare const CronHistorySchema: z.ZodObject<{
4862
6128
  offset: z.ZodOptional<z.ZodNumber>;
4863
6129
  }, z.core.$loose>;
4864
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. */
4865
6132
  export declare const CronRunSchema: z.ZodObject<{
4866
6133
  content: z.ZodOptional<z.ZodString>;
4867
6134
  snippet: z.ZodOptional<z.ZodString>;
6135
+ response: z.ZodOptional<z.ZodString>;
4868
6136
  usage: z.ZodOptional<z.ZodObject<{
4869
6137
  input_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4870
6138
  output_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -4879,7 +6147,34 @@ export declare const CronRunSchema: z.ZodObject<{
4879
6147
  export declare const CronStatusSchema: z.ZodObject<{
4880
6148
  running: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodNumber>]>>;
4881
6149
  }, z.core.$loose>;
6150
+ /** Card actions the server offers for a task's current status (TAL-557); clients show exactly these. `move_to` lists the statuses a Move may target, in display order. */
6151
+ export declare const KanbanTaskActionsSchema: z.ZodObject<{
6152
+ block: z.ZodBoolean;
6153
+ unblock: z.ZodBoolean;
6154
+ complete: z.ZodBoolean;
6155
+ archive: z.ZodBoolean;
6156
+ move_to: z.ZodArray<z.ZodString>;
6157
+ }, z.core.$strip>;
6158
+ /** Server-computed card policy on every task the Kanban routes return (TAL-557). `requires_running_exit_confirmation`: any action takes the task out of a live run, so clients confirm first. */
6159
+ export declare const KanbanTaskPolicyShape: {
6160
+ available_actions: z.ZodObject<{
6161
+ block: z.ZodBoolean;
6162
+ unblock: z.ZodBoolean;
6163
+ complete: z.ZodBoolean;
6164
+ archive: z.ZodBoolean;
6165
+ move_to: z.ZodArray<z.ZodString>;
6166
+ }, z.core.$strip>;
6167
+ requires_running_exit_confirmation: z.ZodBoolean;
6168
+ };
4882
6169
  export declare const KanbanTaskViewSchema: z.ZodObject<{
6170
+ available_actions: z.ZodObject<{
6171
+ block: z.ZodBoolean;
6172
+ unblock: z.ZodBoolean;
6173
+ complete: z.ZodBoolean;
6174
+ archive: z.ZodBoolean;
6175
+ move_to: z.ZodArray<z.ZodString>;
6176
+ }, z.core.$strip>;
6177
+ requires_running_exit_confirmation: z.ZodBoolean;
4883
6178
  id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
4884
6179
  title: z.ZodOptional<z.ZodString>;
4885
6180
  status: z.ZodOptional<z.ZodString>;
@@ -4895,6 +6190,14 @@ export declare const KanbanTaskViewSchema: z.ZodObject<{
4895
6190
  export declare const KanbanColumnSchema: z.ZodObject<{
4896
6191
  name: z.ZodString;
4897
6192
  tasks: z.ZodArray<z.ZodObject<{
6193
+ available_actions: z.ZodObject<{
6194
+ block: z.ZodBoolean;
6195
+ unblock: z.ZodBoolean;
6196
+ complete: z.ZodBoolean;
6197
+ archive: z.ZodBoolean;
6198
+ move_to: z.ZodArray<z.ZodString>;
6199
+ }, z.core.$strip>;
6200
+ requires_running_exit_confirmation: z.ZodBoolean;
4898
6201
  id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
4899
6202
  title: z.ZodOptional<z.ZodString>;
4900
6203
  status: z.ZodOptional<z.ZodString>;
@@ -4908,10 +6211,47 @@ export declare const KanbanColumnSchema: z.ZodObject<{
4908
6211
  updated_at: z.ZodOptional<z.ZodUnknown>;
4909
6212
  }, z.core.$loose>>;
4910
6213
  }, z.core.$loose>;
6214
+ /** One profile lane (TAL-567): an assignee's tasks (`null` = unassigned) across every board column, with its task count. */
6215
+ export declare const KanbanLaneSchema: z.ZodObject<{
6216
+ assignee: z.ZodNullable<z.ZodString>;
6217
+ count: z.ZodNumber;
6218
+ columns: z.ZodArray<z.ZodObject<{
6219
+ name: z.ZodString;
6220
+ tasks: z.ZodArray<z.ZodObject<{
6221
+ available_actions: z.ZodObject<{
6222
+ block: z.ZodBoolean;
6223
+ unblock: z.ZodBoolean;
6224
+ complete: z.ZodBoolean;
6225
+ archive: z.ZodBoolean;
6226
+ move_to: z.ZodArray<z.ZodString>;
6227
+ }, z.core.$strip>;
6228
+ requires_running_exit_confirmation: z.ZodBoolean;
6229
+ id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
6230
+ title: z.ZodOptional<z.ZodString>;
6231
+ status: z.ZodOptional<z.ZodString>;
6232
+ assignee: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6233
+ priority: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
6234
+ description: z.ZodOptional<z.ZodString>;
6235
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
6236
+ session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6237
+ archived: z.ZodOptional<z.ZodBoolean>;
6238
+ created_at: z.ZodOptional<z.ZodUnknown>;
6239
+ updated_at: z.ZodOptional<z.ZodUnknown>;
6240
+ }, z.core.$loose>>;
6241
+ }, z.core.$loose>>;
6242
+ }, z.core.$strip>;
4911
6243
  export declare const KanbanBoardViewSchema: z.ZodObject<{
4912
6244
  columns: z.ZodOptional<z.ZodArray<z.ZodObject<{
4913
6245
  name: z.ZodString;
4914
6246
  tasks: z.ZodArray<z.ZodObject<{
6247
+ available_actions: z.ZodObject<{
6248
+ block: z.ZodBoolean;
6249
+ unblock: z.ZodBoolean;
6250
+ complete: z.ZodBoolean;
6251
+ archive: z.ZodBoolean;
6252
+ move_to: z.ZodArray<z.ZodString>;
6253
+ }, z.core.$strip>;
6254
+ requires_running_exit_confirmation: z.ZodBoolean;
4915
6255
  id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
4916
6256
  title: z.ZodOptional<z.ZodString>;
4917
6257
  status: z.ZodOptional<z.ZodString>;
@@ -4931,6 +6271,36 @@ export declare const KanbanBoardViewSchema: z.ZodObject<{
4931
6271
  read_only: z.ZodOptional<z.ZodBoolean>;
4932
6272
  tenants: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
4933
6273
  changed: z.ZodOptional<z.ZodBoolean>;
6274
+ bulk_move_targets: z.ZodArray<z.ZodString>;
6275
+ lane_by_profile: z.ZodBoolean;
6276
+ lanes: z.ZodOptional<z.ZodArray<z.ZodObject<{
6277
+ assignee: z.ZodNullable<z.ZodString>;
6278
+ count: z.ZodNumber;
6279
+ columns: z.ZodArray<z.ZodObject<{
6280
+ name: z.ZodString;
6281
+ tasks: z.ZodArray<z.ZodObject<{
6282
+ available_actions: z.ZodObject<{
6283
+ block: z.ZodBoolean;
6284
+ unblock: z.ZodBoolean;
6285
+ complete: z.ZodBoolean;
6286
+ archive: z.ZodBoolean;
6287
+ move_to: z.ZodArray<z.ZodString>;
6288
+ }, z.core.$strip>;
6289
+ requires_running_exit_confirmation: z.ZodBoolean;
6290
+ id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
6291
+ title: z.ZodOptional<z.ZodString>;
6292
+ status: z.ZodOptional<z.ZodString>;
6293
+ assignee: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6294
+ priority: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
6295
+ description: z.ZodOptional<z.ZodString>;
6296
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
6297
+ session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6298
+ archived: z.ZodOptional<z.ZodBoolean>;
6299
+ created_at: z.ZodOptional<z.ZodUnknown>;
6300
+ updated_at: z.ZodOptional<z.ZodUnknown>;
6301
+ }, z.core.$loose>>;
6302
+ }, z.core.$loose>>;
6303
+ }, z.core.$strip>>>;
4934
6304
  }, z.core.$loose>;
4935
6305
  export declare const KanbanBoardsViewSchema: z.ZodObject<{
4936
6306
  boards: z.ZodArray<z.ZodObject<{
@@ -4942,10 +6312,20 @@ export declare const KanbanBoardsViewSchema: z.ZodObject<{
4942
6312
  color: z.ZodOptional<z.ZodString>;
4943
6313
  icon: z.ZodOptional<z.ZodString>;
4944
6314
  description: z.ZodOptional<z.ZodString>;
6315
+ removable: z.ZodBoolean;
4945
6316
  }, z.core.$loose>>;
4946
6317
  current: z.ZodOptional<z.ZodString>;
4947
6318
  read_only: z.ZodOptional<z.ZodBoolean>;
4948
6319
  }, z.core.$loose>;
6320
+ /** Board-wide task counts (TAL-567): `status_counts` in board-column order, unknown statuses after; `total` excludes archived tasks. */
6321
+ export declare const KanbanStatsViewSchema: z.ZodObject<{
6322
+ by_status: z.ZodRecord<z.ZodString, z.ZodNumber>;
6323
+ total: z.ZodNumber;
6324
+ status_counts: z.ZodArray<z.ZodObject<{
6325
+ status: z.ZodString;
6326
+ count: z.ZodNumber;
6327
+ }, z.core.$strip>>;
6328
+ }, z.core.$loose>;
4949
6329
  export declare const ExtensionStatusSchema: z.ZodObject<{
4950
6330
  enabled: z.ZodBoolean;
4951
6331
  extension_dir_configured: z.ZodOptional<z.ZodBoolean>;