@matrix-ai/sdk 1.1.59 → 1.1.61

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.
@@ -77,6 +77,18 @@ export type EventFileEdited = {
77
77
  file: string;
78
78
  };
79
79
  };
80
+ export type OutputFormatText = {
81
+ type: "text";
82
+ };
83
+ export type JsonSchema = {
84
+ [key: string]: unknown;
85
+ };
86
+ export type OutputFormatJsonSchema = {
87
+ type: "json_schema";
88
+ schema: JsonSchema;
89
+ retryCount?: number;
90
+ };
91
+ export type OutputFormat = OutputFormatText | OutputFormatJsonSchema;
80
92
  export type FileDiff = {
81
93
  file: string;
82
94
  before: string;
@@ -92,6 +104,7 @@ export type UserMessage = {
92
104
  time: {
93
105
  created: number;
94
106
  };
107
+ format?: OutputFormat;
95
108
  summary?: {
96
109
  title?: string;
97
110
  body?: string;
@@ -133,6 +146,13 @@ export type MessageAbortedError = {
133
146
  message: string;
134
147
  };
135
148
  };
149
+ export type StructuredOutputError = {
150
+ name: "StructuredOutputError";
151
+ data: {
152
+ message: string;
153
+ retries: number;
154
+ };
155
+ };
136
156
  export type ContextOverflowError = {
137
157
  name: "ContextOverflowError";
138
158
  data: {
@@ -163,7 +183,7 @@ export type AssistantMessage = {
163
183
  created: number;
164
184
  completed?: number;
165
185
  };
166
- error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ContextOverflowError | ApiError;
186
+ error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ApiError;
167
187
  parentID: string;
168
188
  modelID: string;
169
189
  providerID: string;
@@ -185,6 +205,7 @@ export type AssistantMessage = {
185
205
  write: number;
186
206
  };
187
207
  };
208
+ structured?: unknown;
188
209
  variant?: string;
189
210
  finish?: string;
190
211
  };
@@ -425,13 +446,23 @@ export type CompactionPart = {
425
446
  messageID: string;
426
447
  type: "compaction";
427
448
  auto: boolean;
449
+ overflow?: boolean;
428
450
  };
429
451
  export type Part = TextPart | SubtaskPart | ReasoningPart | FilePart | ToolPart | StepStartPart | StepFinishPart | SnapshotPart | PatchPart | AgentPart | RetryPart | CompactionPart;
430
452
  export type EventMessagePartUpdated = {
431
453
  type: "message.part.updated";
432
454
  properties: {
433
455
  part: Part;
434
- delta?: string;
456
+ };
457
+ };
458
+ export type EventMessagePartDelta = {
459
+ type: "message.part.delta";
460
+ properties: {
461
+ sessionID: string;
462
+ messageID: string;
463
+ partID: string;
464
+ field: string;
465
+ delta: string;
435
466
  };
436
467
  };
437
468
  export type EventMessagePartRemoved = {
@@ -581,10 +612,6 @@ export type Todo = {
581
612
  * Priority level of the task: high, medium, low
582
613
  */
583
614
  priority: string;
584
- /**
585
- * Unique identifier for the todo item
586
- */
587
- id: string;
588
615
  };
589
616
  export type EventTodoUpdated = {
590
617
  type: "todo.updated";
@@ -659,6 +686,7 @@ export type Session = {
659
686
  id: string;
660
687
  slug: string;
661
688
  projectID: string;
689
+ workspaceID?: string;
662
690
  directory: string;
663
691
  parentID?: string;
664
692
  summary?: {
@@ -715,7 +743,7 @@ export type EventSessionError = {
715
743
  type: "session.error";
716
744
  properties: {
717
745
  sessionID?: string;
718
- error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ContextOverflowError | ApiError;
746
+ error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ApiError;
719
747
  };
720
748
  };
721
749
  export type EventVcsBranchUpdated = {
@@ -724,6 +752,18 @@ export type EventVcsBranchUpdated = {
724
752
  branch?: string;
725
753
  };
726
754
  };
755
+ export type EventWorkspaceReady = {
756
+ type: "workspace.ready";
757
+ properties: {
758
+ name: string;
759
+ };
760
+ };
761
+ export type EventWorkspaceFailed = {
762
+ type: "workspace.failed";
763
+ properties: {
764
+ message: string;
765
+ };
766
+ };
727
767
  export type Pty = {
728
768
  id: string;
729
769
  title: string;
@@ -771,392 +811,11 @@ export type EventWorktreeFailed = {
771
811
  message: string;
772
812
  };
773
813
  };
774
- export type Event = EventInstallationUpdated | EventInstallationUpdateAvailable | EventProjectUpdated | EventServerInstanceDisposed | EventServerConnected | EventGlobalDisposed | EventLspClientDiagnostics | EventLspUpdated | EventFileEdited | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionAsked | EventPermissionReplied | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventFileWatcherUpdated | EventTodoUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventVcsBranchUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventWorktreeReady | EventWorktreeFailed;
814
+ export type Event = EventInstallationUpdated | EventInstallationUpdateAvailable | EventProjectUpdated | EventServerInstanceDisposed | EventServerConnected | EventGlobalDisposed | EventLspClientDiagnostics | EventLspUpdated | EventFileEdited | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartDelta | EventMessagePartRemoved | EventPermissionAsked | EventPermissionReplied | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventFileWatcherUpdated | EventTodoUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventWorktreeReady | EventWorktreeFailed;
775
815
  export type GlobalEvent = {
776
816
  directory: string;
777
817
  payload: Event;
778
818
  };
779
- /**
780
- * Custom keybind configurations
781
- */
782
- export type KeybindsConfig = {
783
- /**
784
- * Leader key for keybind combinations
785
- */
786
- leader?: string;
787
- /**
788
- * Exit the application
789
- */
790
- app_exit?: string;
791
- /**
792
- * Open external editor
793
- */
794
- editor_open?: string;
795
- /**
796
- * List available themes
797
- */
798
- theme_list?: string;
799
- /**
800
- * Toggle sidebar
801
- */
802
- sidebar_toggle?: string;
803
- /**
804
- * Toggle session scrollbar
805
- */
806
- scrollbar_toggle?: string;
807
- /**
808
- * Toggle username visibility
809
- */
810
- username_toggle?: string;
811
- /**
812
- * View status
813
- */
814
- status_view?: string;
815
- /**
816
- * Export session to editor
817
- */
818
- session_export?: string;
819
- /**
820
- * Create a new session
821
- */
822
- session_new?: string;
823
- /**
824
- * List all sessions
825
- */
826
- session_list?: string;
827
- /**
828
- * Show session timeline
829
- */
830
- session_timeline?: string;
831
- /**
832
- * Fork session from message
833
- */
834
- session_fork?: string;
835
- /**
836
- * Rename session
837
- */
838
- session_rename?: string;
839
- /**
840
- * Delete session
841
- */
842
- session_delete?: string;
843
- /**
844
- * Delete stash entry
845
- */
846
- stash_delete?: string;
847
- /**
848
- * Open provider list from model dialog
849
- */
850
- model_provider_list?: string;
851
- /**
852
- * Toggle model favorite status
853
- */
854
- model_favorite_toggle?: string;
855
- /**
856
- * Share current session
857
- */
858
- session_share?: string;
859
- /**
860
- * Unshare current session
861
- */
862
- session_unshare?: string;
863
- /**
864
- * Interrupt current session
865
- */
866
- session_interrupt?: string;
867
- /**
868
- * Compact the session
869
- */
870
- session_compact?: string;
871
- /**
872
- * Scroll messages up by one page
873
- */
874
- messages_page_up?: string;
875
- /**
876
- * Scroll messages down by one page
877
- */
878
- messages_page_down?: string;
879
- /**
880
- * Scroll messages up by one line
881
- */
882
- messages_line_up?: string;
883
- /**
884
- * Scroll messages down by one line
885
- */
886
- messages_line_down?: string;
887
- /**
888
- * Scroll messages up by half page
889
- */
890
- messages_half_page_up?: string;
891
- /**
892
- * Scroll messages down by half page
893
- */
894
- messages_half_page_down?: string;
895
- /**
896
- * Navigate to first message
897
- */
898
- messages_first?: string;
899
- /**
900
- * Navigate to last message
901
- */
902
- messages_last?: string;
903
- /**
904
- * Navigate to next message
905
- */
906
- messages_next?: string;
907
- /**
908
- * Navigate to previous message
909
- */
910
- messages_previous?: string;
911
- /**
912
- * Navigate to last user message
913
- */
914
- messages_last_user?: string;
915
- /**
916
- * Copy message
917
- */
918
- messages_copy?: string;
919
- /**
920
- * Undo message
921
- */
922
- messages_undo?: string;
923
- /**
924
- * Redo message
925
- */
926
- messages_redo?: string;
927
- /**
928
- * Toggle code block concealment in messages
929
- */
930
- messages_toggle_conceal?: string;
931
- /**
932
- * Toggle tool details visibility
933
- */
934
- tool_details?: string;
935
- /**
936
- * List available models
937
- */
938
- model_list?: string;
939
- /**
940
- * Next recently used model
941
- */
942
- model_cycle_recent?: string;
943
- /**
944
- * Previous recently used model
945
- */
946
- model_cycle_recent_reverse?: string;
947
- /**
948
- * Next favorite model
949
- */
950
- model_cycle_favorite?: string;
951
- /**
952
- * Previous favorite model
953
- */
954
- model_cycle_favorite_reverse?: string;
955
- /**
956
- * List available commands
957
- */
958
- command_list?: string;
959
- /**
960
- * List agents
961
- */
962
- agent_list?: string;
963
- /**
964
- * Next agent
965
- */
966
- agent_cycle?: string;
967
- /**
968
- * Previous agent
969
- */
970
- agent_cycle_reverse?: string;
971
- /**
972
- * Cycle model variants
973
- */
974
- variant_cycle?: string;
975
- /**
976
- * Clear input field
977
- */
978
- input_clear?: string;
979
- /**
980
- * Paste from clipboard
981
- */
982
- input_paste?: string;
983
- /**
984
- * Submit input
985
- */
986
- input_submit?: string;
987
- /**
988
- * Insert newline in input
989
- */
990
- input_newline?: string;
991
- /**
992
- * Move cursor left in input
993
- */
994
- input_move_left?: string;
995
- /**
996
- * Move cursor right in input
997
- */
998
- input_move_right?: string;
999
- /**
1000
- * Move cursor up in input
1001
- */
1002
- input_move_up?: string;
1003
- /**
1004
- * Move cursor down in input
1005
- */
1006
- input_move_down?: string;
1007
- /**
1008
- * Select left in input
1009
- */
1010
- input_select_left?: string;
1011
- /**
1012
- * Select right in input
1013
- */
1014
- input_select_right?: string;
1015
- /**
1016
- * Select up in input
1017
- */
1018
- input_select_up?: string;
1019
- /**
1020
- * Select down in input
1021
- */
1022
- input_select_down?: string;
1023
- /**
1024
- * Move to start of line in input
1025
- */
1026
- input_line_home?: string;
1027
- /**
1028
- * Move to end of line in input
1029
- */
1030
- input_line_end?: string;
1031
- /**
1032
- * Select to start of line in input
1033
- */
1034
- input_select_line_home?: string;
1035
- /**
1036
- * Select to end of line in input
1037
- */
1038
- input_select_line_end?: string;
1039
- /**
1040
- * Move to start of visual line in input
1041
- */
1042
- input_visual_line_home?: string;
1043
- /**
1044
- * Move to end of visual line in input
1045
- */
1046
- input_visual_line_end?: string;
1047
- /**
1048
- * Select to start of visual line in input
1049
- */
1050
- input_select_visual_line_home?: string;
1051
- /**
1052
- * Select to end of visual line in input
1053
- */
1054
- input_select_visual_line_end?: string;
1055
- /**
1056
- * Move to start of buffer in input
1057
- */
1058
- input_buffer_home?: string;
1059
- /**
1060
- * Move to end of buffer in input
1061
- */
1062
- input_buffer_end?: string;
1063
- /**
1064
- * Select to start of buffer in input
1065
- */
1066
- input_select_buffer_home?: string;
1067
- /**
1068
- * Select to end of buffer in input
1069
- */
1070
- input_select_buffer_end?: string;
1071
- /**
1072
- * Delete line in input
1073
- */
1074
- input_delete_line?: string;
1075
- /**
1076
- * Delete to end of line in input
1077
- */
1078
- input_delete_to_line_end?: string;
1079
- /**
1080
- * Delete to start of line in input
1081
- */
1082
- input_delete_to_line_start?: string;
1083
- /**
1084
- * Backspace in input
1085
- */
1086
- input_backspace?: string;
1087
- /**
1088
- * Delete character in input
1089
- */
1090
- input_delete?: string;
1091
- /**
1092
- * Undo in input
1093
- */
1094
- input_undo?: string;
1095
- /**
1096
- * Redo in input
1097
- */
1098
- input_redo?: string;
1099
- /**
1100
- * Move word forward in input
1101
- */
1102
- input_word_forward?: string;
1103
- /**
1104
- * Move word backward in input
1105
- */
1106
- input_word_backward?: string;
1107
- /**
1108
- * Select word forward in input
1109
- */
1110
- input_select_word_forward?: string;
1111
- /**
1112
- * Select word backward in input
1113
- */
1114
- input_select_word_backward?: string;
1115
- /**
1116
- * Delete word forward in input
1117
- */
1118
- input_delete_word_forward?: string;
1119
- /**
1120
- * Delete word backward in input
1121
- */
1122
- input_delete_word_backward?: string;
1123
- /**
1124
- * Previous history item
1125
- */
1126
- history_previous?: string;
1127
- /**
1128
- * Next history item
1129
- */
1130
- history_next?: string;
1131
- /**
1132
- * Next child session
1133
- */
1134
- session_child_cycle?: string;
1135
- /**
1136
- * Previous child session
1137
- */
1138
- session_child_cycle_reverse?: string;
1139
- /**
1140
- * Go to parent session
1141
- */
1142
- session_parent?: string;
1143
- /**
1144
- * Suspend terminal
1145
- */
1146
- terminal_suspend?: string;
1147
- /**
1148
- * Toggle terminal title
1149
- */
1150
- terminal_title_toggle?: string;
1151
- /**
1152
- * Toggle tips on home screen
1153
- */
1154
- tips_toggle?: string;
1155
- /**
1156
- * Toggle thinking blocks visibility
1157
- */
1158
- display_thinking?: string;
1159
- };
1160
819
  /**
1161
820
  * Log level
1162
821
  */
@@ -1308,7 +967,8 @@ export type ProviderConfig = {
1308
967
  [key: string]: string;
1309
968
  };
1310
969
  provider?: {
1311
- npm: string;
970
+ npm?: string;
971
+ api?: string;
1312
972
  };
1313
973
  /**
1314
974
  * Variant-specific configuration
@@ -1419,34 +1079,7 @@ export type Config = {
1419
1079
  * JSON schema reference for configuration validation
1420
1080
  */
1421
1081
  $schema?: string;
1422
- /**
1423
- * Theme name to use for the interface
1424
- */
1425
- theme?: string;
1426
- keybinds?: KeybindsConfig;
1427
1082
  logLevel?: LogLevel;
1428
- /**
1429
- * TUI specific settings
1430
- */
1431
- tui?: {
1432
- /**
1433
- * TUI scroll speed
1434
- */
1435
- scroll_speed?: number;
1436
- /**
1437
- * Scroll acceleration settings
1438
- */
1439
- scroll_acceleration?: {
1440
- /**
1441
- * Enable scroll acceleration
1442
- */
1443
- enabled: boolean;
1444
- };
1445
- /**
1446
- * Control diff rendering style: 'auto' adapts to terminal width, 'stacked' always shows single column
1447
- */
1448
- diff_style?: "auto" | "stacked";
1449
- };
1450
1083
  server?: ServerConfig;
1451
1084
  /**
1452
1085
  * Command configuration, see https://opencode.ai/docs/commands
@@ -1746,6 +1379,15 @@ export type ToolListItem = {
1746
1379
  parameters: unknown;
1747
1380
  };
1748
1381
  export type ToolList = Array<ToolListItem>;
1382
+ export type Workspace = {
1383
+ id: string;
1384
+ type: string;
1385
+ branch: string | null;
1386
+ name: string | null;
1387
+ directory: string | null;
1388
+ extra: unknown | null;
1389
+ projectID: string;
1390
+ };
1749
1391
  export type Worktree = {
1750
1392
  name: string;
1751
1393
  branch: string;
@@ -1764,6 +1406,44 @@ export type WorktreeRemoveInput = {
1764
1406
  export type WorktreeResetInput = {
1765
1407
  directory: string;
1766
1408
  };
1409
+ export type ProjectSummary = {
1410
+ id: string;
1411
+ name?: string;
1412
+ worktree: string;
1413
+ };
1414
+ export type GlobalSession = {
1415
+ id: string;
1416
+ slug: string;
1417
+ projectID: string;
1418
+ workspaceID?: string;
1419
+ directory: string;
1420
+ parentID?: string;
1421
+ summary?: {
1422
+ additions: number;
1423
+ deletions: number;
1424
+ files: number;
1425
+ diffs?: Array<FileDiff>;
1426
+ };
1427
+ share?: {
1428
+ url: string;
1429
+ };
1430
+ title: string;
1431
+ version: string;
1432
+ time: {
1433
+ created: number;
1434
+ updated: number;
1435
+ compacting?: number;
1436
+ archived?: number;
1437
+ };
1438
+ permission?: PermissionRuleset;
1439
+ revert?: {
1440
+ messageID: string;
1441
+ partID?: string;
1442
+ snapshot?: string;
1443
+ diff?: string;
1444
+ };
1445
+ project: ProjectSummary | null;
1446
+ };
1767
1447
  export type McpResource = {
1768
1448
  name: string;
1769
1449
  uri: string;
@@ -2060,6 +1740,7 @@ export type ProjectListData = {
2060
1740
  path?: never;
2061
1741
  query?: {
2062
1742
  directory?: string;
1743
+ workspace?: string;
2063
1744
  };
2064
1745
  url: "/project";
2065
1746
  };
@@ -2075,6 +1756,7 @@ export type ProjectCurrentData = {
2075
1756
  path?: never;
2076
1757
  query?: {
2077
1758
  directory?: string;
1759
+ workspace?: string;
2078
1760
  };
2079
1761
  url: "/project/current";
2080
1762
  };
@@ -2085,6 +1767,22 @@ export type ProjectCurrentResponses = {
2085
1767
  200: Project;
2086
1768
  };
2087
1769
  export type ProjectCurrentResponse = ProjectCurrentResponses[keyof ProjectCurrentResponses];
1770
+ export type ProjectInitGitData = {
1771
+ body?: never;
1772
+ path?: never;
1773
+ query?: {
1774
+ directory?: string;
1775
+ workspace?: string;
1776
+ };
1777
+ url: "/project/git/init";
1778
+ };
1779
+ export type ProjectInitGitResponses = {
1780
+ /**
1781
+ * Project information after git initialization
1782
+ */
1783
+ 200: Project;
1784
+ };
1785
+ export type ProjectInitGitResponse = ProjectInitGitResponses[keyof ProjectInitGitResponses];
2088
1786
  export type ProjectUpdateData = {
2089
1787
  body?: {
2090
1788
  name?: string;
@@ -2105,6 +1803,7 @@ export type ProjectUpdateData = {
2105
1803
  };
2106
1804
  query?: {
2107
1805
  directory?: string;
1806
+ workspace?: string;
2108
1807
  };
2109
1808
  url: "/project/{projectID}";
2110
1809
  };
@@ -2131,6 +1830,7 @@ export type PtyListData = {
2131
1830
  path?: never;
2132
1831
  query?: {
2133
1832
  directory?: string;
1833
+ workspace?: string;
2134
1834
  };
2135
1835
  url: "/pty";
2136
1836
  };
@@ -2154,6 +1854,7 @@ export type PtyCreateData = {
2154
1854
  path?: never;
2155
1855
  query?: {
2156
1856
  directory?: string;
1857
+ workspace?: string;
2157
1858
  };
2158
1859
  url: "/pty";
2159
1860
  };
@@ -2178,6 +1879,7 @@ export type PtyRemoveData = {
2178
1879
  };
2179
1880
  query?: {
2180
1881
  directory?: string;
1882
+ workspace?: string;
2181
1883
  };
2182
1884
  url: "/pty/{ptyID}";
2183
1885
  };
@@ -2202,6 +1904,7 @@ export type PtyGetData = {
2202
1904
  };
2203
1905
  query?: {
2204
1906
  directory?: string;
1907
+ workspace?: string;
2205
1908
  };
2206
1909
  url: "/pty/{ptyID}";
2207
1910
  };
@@ -2232,6 +1935,7 @@ export type PtyUpdateData = {
2232
1935
  };
2233
1936
  query?: {
2234
1937
  directory?: string;
1938
+ workspace?: string;
2235
1939
  };
2236
1940
  url: "/pty/{ptyID}";
2237
1941
  };
@@ -2256,6 +1960,7 @@ export type PtyConnectData = {
2256
1960
  };
2257
1961
  query?: {
2258
1962
  directory?: string;
1963
+ workspace?: string;
2259
1964
  };
2260
1965
  url: "/pty/{ptyID}/connect";
2261
1966
  };
@@ -2278,6 +1983,7 @@ export type ConfigGetData = {
2278
1983
  path?: never;
2279
1984
  query?: {
2280
1985
  directory?: string;
1986
+ workspace?: string;
2281
1987
  };
2282
1988
  url: "/config";
2283
1989
  };
@@ -2293,6 +1999,7 @@ export type ConfigUpdateData = {
2293
1999
  path?: never;
2294
2000
  query?: {
2295
2001
  directory?: string;
2002
+ workspace?: string;
2296
2003
  };
2297
2004
  url: "/config";
2298
2005
  };
@@ -2315,6 +2022,7 @@ export type ConfigProvidersData = {
2315
2022
  path?: never;
2316
2023
  query?: {
2317
2024
  directory?: string;
2025
+ workspace?: string;
2318
2026
  };
2319
2027
  url: "/config/providers";
2320
2028
  };
@@ -2335,6 +2043,7 @@ export type ToolIdsData = {
2335
2043
  path?: never;
2336
2044
  query?: {
2337
2045
  directory?: string;
2046
+ workspace?: string;
2338
2047
  };
2339
2048
  url: "/experimental/tool/ids";
2340
2049
  };
@@ -2357,6 +2066,7 @@ export type ToolListData = {
2357
2066
  path?: never;
2358
2067
  query: {
2359
2068
  directory?: string;
2069
+ workspace?: string;
2360
2070
  provider: string;
2361
2071
  model: string;
2362
2072
  };
@@ -2376,11 +2086,81 @@ export type ToolListResponses = {
2376
2086
  200: ToolList;
2377
2087
  };
2378
2088
  export type ToolListResponse = ToolListResponses[keyof ToolListResponses];
2089
+ export type ExperimentalWorkspaceListData = {
2090
+ body?: never;
2091
+ path?: never;
2092
+ query?: {
2093
+ directory?: string;
2094
+ workspace?: string;
2095
+ };
2096
+ url: "/experimental/workspace";
2097
+ };
2098
+ export type ExperimentalWorkspaceListResponses = {
2099
+ /**
2100
+ * Workspaces
2101
+ */
2102
+ 200: Array<Workspace>;
2103
+ };
2104
+ export type ExperimentalWorkspaceListResponse = ExperimentalWorkspaceListResponses[keyof ExperimentalWorkspaceListResponses];
2105
+ export type ExperimentalWorkspaceCreateData = {
2106
+ body?: {
2107
+ id?: string;
2108
+ type: string;
2109
+ branch: string | null;
2110
+ extra: unknown | null;
2111
+ };
2112
+ path?: never;
2113
+ query?: {
2114
+ directory?: string;
2115
+ workspace?: string;
2116
+ };
2117
+ url: "/experimental/workspace";
2118
+ };
2119
+ export type ExperimentalWorkspaceCreateErrors = {
2120
+ /**
2121
+ * Bad request
2122
+ */
2123
+ 400: BadRequestError;
2124
+ };
2125
+ export type ExperimentalWorkspaceCreateError = ExperimentalWorkspaceCreateErrors[keyof ExperimentalWorkspaceCreateErrors];
2126
+ export type ExperimentalWorkspaceCreateResponses = {
2127
+ /**
2128
+ * Workspace created
2129
+ */
2130
+ 200: Workspace;
2131
+ };
2132
+ export type ExperimentalWorkspaceCreateResponse = ExperimentalWorkspaceCreateResponses[keyof ExperimentalWorkspaceCreateResponses];
2133
+ export type ExperimentalWorkspaceRemoveData = {
2134
+ body?: never;
2135
+ path: {
2136
+ id: string;
2137
+ };
2138
+ query?: {
2139
+ directory?: string;
2140
+ workspace?: string;
2141
+ };
2142
+ url: "/experimental/workspace/{id}";
2143
+ };
2144
+ export type ExperimentalWorkspaceRemoveErrors = {
2145
+ /**
2146
+ * Bad request
2147
+ */
2148
+ 400: BadRequestError;
2149
+ };
2150
+ export type ExperimentalWorkspaceRemoveError = ExperimentalWorkspaceRemoveErrors[keyof ExperimentalWorkspaceRemoveErrors];
2151
+ export type ExperimentalWorkspaceRemoveResponses = {
2152
+ /**
2153
+ * Workspace removed
2154
+ */
2155
+ 200: Workspace;
2156
+ };
2157
+ export type ExperimentalWorkspaceRemoveResponse = ExperimentalWorkspaceRemoveResponses[keyof ExperimentalWorkspaceRemoveResponses];
2379
2158
  export type WorktreeRemoveData = {
2380
2159
  body?: WorktreeRemoveInput;
2381
2160
  path?: never;
2382
2161
  query?: {
2383
2162
  directory?: string;
2163
+ workspace?: string;
2384
2164
  };
2385
2165
  url: "/experimental/worktree";
2386
2166
  };
@@ -2403,6 +2183,7 @@ export type WorktreeListData = {
2403
2183
  path?: never;
2404
2184
  query?: {
2405
2185
  directory?: string;
2186
+ workspace?: string;
2406
2187
  };
2407
2188
  url: "/experimental/worktree";
2408
2189
  };
@@ -2418,6 +2199,7 @@ export type WorktreeCreateData = {
2418
2199
  path?: never;
2419
2200
  query?: {
2420
2201
  directory?: string;
2202
+ workspace?: string;
2421
2203
  };
2422
2204
  url: "/experimental/worktree";
2423
2205
  };
@@ -2440,6 +2222,7 @@ export type WorktreeResetData = {
2440
2222
  path?: never;
2441
2223
  query?: {
2442
2224
  directory?: string;
2225
+ workspace?: string;
2443
2226
  };
2444
2227
  url: "/experimental/worktree/reset";
2445
2228
  };
@@ -2457,11 +2240,55 @@ export type WorktreeResetResponses = {
2457
2240
  200: boolean;
2458
2241
  };
2459
2242
  export type WorktreeResetResponse = WorktreeResetResponses[keyof WorktreeResetResponses];
2243
+ export type ExperimentalSessionListData = {
2244
+ body?: never;
2245
+ path?: never;
2246
+ query?: {
2247
+ /**
2248
+ * Filter sessions by project directory
2249
+ */
2250
+ directory?: string;
2251
+ workspace?: string;
2252
+ /**
2253
+ * Only return root sessions (no parentID)
2254
+ */
2255
+ roots?: boolean;
2256
+ /**
2257
+ * Filter sessions updated on or after this timestamp (milliseconds since epoch)
2258
+ */
2259
+ start?: number;
2260
+ /**
2261
+ * Return sessions updated before this timestamp (milliseconds since epoch)
2262
+ */
2263
+ cursor?: number;
2264
+ /**
2265
+ * Filter sessions by title (case-insensitive)
2266
+ */
2267
+ search?: string;
2268
+ /**
2269
+ * Maximum number of sessions to return
2270
+ */
2271
+ limit?: number;
2272
+ /**
2273
+ * Include archived sessions (default false)
2274
+ */
2275
+ archived?: boolean;
2276
+ };
2277
+ url: "/experimental/session";
2278
+ };
2279
+ export type ExperimentalSessionListResponses = {
2280
+ /**
2281
+ * List of sessions
2282
+ */
2283
+ 200: Array<GlobalSession>;
2284
+ };
2285
+ export type ExperimentalSessionListResponse = ExperimentalSessionListResponses[keyof ExperimentalSessionListResponses];
2460
2286
  export type ExperimentalResourceListData = {
2461
2287
  body?: never;
2462
2288
  path?: never;
2463
2289
  query?: {
2464
2290
  directory?: string;
2291
+ workspace?: string;
2465
2292
  };
2466
2293
  url: "/experimental/resource";
2467
2294
  };
@@ -2482,6 +2309,7 @@ export type SessionListData = {
2482
2309
  * Filter sessions by project directory
2483
2310
  */
2484
2311
  directory?: string;
2312
+ workspace?: string;
2485
2313
  /**
2486
2314
  * Only return root sessions (no parentID)
2487
2315
  */
@@ -2517,6 +2345,7 @@ export type SessionCreateData = {
2517
2345
  path?: never;
2518
2346
  query?: {
2519
2347
  directory?: string;
2348
+ workspace?: string;
2520
2349
  };
2521
2350
  url: "/session";
2522
2351
  };
@@ -2539,6 +2368,7 @@ export type SessionStatusData = {
2539
2368
  path?: never;
2540
2369
  query?: {
2541
2370
  directory?: string;
2371
+ workspace?: string;
2542
2372
  };
2543
2373
  url: "/session/status";
2544
2374
  };
@@ -2565,6 +2395,7 @@ export type SessionDeleteData = {
2565
2395
  };
2566
2396
  query?: {
2567
2397
  directory?: string;
2398
+ workspace?: string;
2568
2399
  };
2569
2400
  url: "/session/{sessionID}";
2570
2401
  };
@@ -2593,6 +2424,7 @@ export type SessionGetData = {
2593
2424
  };
2594
2425
  query?: {
2595
2426
  directory?: string;
2427
+ workspace?: string;
2596
2428
  };
2597
2429
  url: "/session/{sessionID}";
2598
2430
  };
@@ -2626,6 +2458,7 @@ export type SessionUpdateData = {
2626
2458
  };
2627
2459
  query?: {
2628
2460
  directory?: string;
2461
+ workspace?: string;
2629
2462
  };
2630
2463
  url: "/session/{sessionID}";
2631
2464
  };
@@ -2654,6 +2487,7 @@ export type SessionChildrenData = {
2654
2487
  };
2655
2488
  query?: {
2656
2489
  directory?: string;
2490
+ workspace?: string;
2657
2491
  };
2658
2492
  url: "/session/{sessionID}/children";
2659
2493
  };
@@ -2685,6 +2519,7 @@ export type SessionTodoData = {
2685
2519
  };
2686
2520
  query?: {
2687
2521
  directory?: string;
2522
+ workspace?: string;
2688
2523
  };
2689
2524
  url: "/session/{sessionID}/todo";
2690
2525
  };
@@ -2720,6 +2555,7 @@ export type SessionInitData = {
2720
2555
  };
2721
2556
  query?: {
2722
2557
  directory?: string;
2558
+ workspace?: string;
2723
2559
  };
2724
2560
  url: "/session/{sessionID}/init";
2725
2561
  };
@@ -2750,6 +2586,7 @@ export type SessionForkData = {
2750
2586
  };
2751
2587
  query?: {
2752
2588
  directory?: string;
2589
+ workspace?: string;
2753
2590
  };
2754
2591
  url: "/session/{sessionID}/fork";
2755
2592
  };
@@ -2767,6 +2604,7 @@ export type SessionAbortData = {
2767
2604
  };
2768
2605
  query?: {
2769
2606
  directory?: string;
2607
+ workspace?: string;
2770
2608
  };
2771
2609
  url: "/session/{sessionID}/abort";
2772
2610
  };
@@ -2795,6 +2633,7 @@ export type SessionUnshareData = {
2795
2633
  };
2796
2634
  query?: {
2797
2635
  directory?: string;
2636
+ workspace?: string;
2798
2637
  };
2799
2638
  url: "/session/{sessionID}/share";
2800
2639
  };
@@ -2823,6 +2662,7 @@ export type SessionShareData = {
2823
2662
  };
2824
2663
  query?: {
2825
2664
  directory?: string;
2665
+ workspace?: string;
2826
2666
  };
2827
2667
  url: "/session/{sessionID}/share";
2828
2668
  };
@@ -2851,6 +2691,7 @@ export type SessionDiffData = {
2851
2691
  };
2852
2692
  query?: {
2853
2693
  directory?: string;
2694
+ workspace?: string;
2854
2695
  messageID?: string;
2855
2696
  };
2856
2697
  url: "/session/{sessionID}/diff";
@@ -2876,6 +2717,7 @@ export type SessionSummarizeData = {
2876
2717
  };
2877
2718
  query?: {
2878
2719
  directory?: string;
2720
+ workspace?: string;
2879
2721
  };
2880
2722
  url: "/session/{sessionID}/summarize";
2881
2723
  };
@@ -2907,6 +2749,7 @@ export type SessionMessagesData = {
2907
2749
  };
2908
2750
  query?: {
2909
2751
  directory?: string;
2752
+ workspace?: string;
2910
2753
  limit?: number;
2911
2754
  };
2912
2755
  url: "/session/{sessionID}/message";
@@ -2947,6 +2790,7 @@ export type SessionPromptData = {
2947
2790
  tools?: {
2948
2791
  [key: string]: boolean;
2949
2792
  };
2793
+ format?: OutputFormat;
2950
2794
  system?: string;
2951
2795
  variant?: string;
2952
2796
  parts: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
@@ -2959,6 +2803,7 @@ export type SessionPromptData = {
2959
2803
  };
2960
2804
  query?: {
2961
2805
  directory?: string;
2806
+ workspace?: string;
2962
2807
  };
2963
2808
  url: "/session/{sessionID}/message";
2964
2809
  };
@@ -2983,6 +2828,42 @@ export type SessionPromptResponses = {
2983
2828
  };
2984
2829
  };
2985
2830
  export type SessionPromptResponse = SessionPromptResponses[keyof SessionPromptResponses];
2831
+ export type SessionDeleteMessageData = {
2832
+ body?: never;
2833
+ path: {
2834
+ /**
2835
+ * Session ID
2836
+ */
2837
+ sessionID: string;
2838
+ /**
2839
+ * Message ID
2840
+ */
2841
+ messageID: string;
2842
+ };
2843
+ query?: {
2844
+ directory?: string;
2845
+ workspace?: string;
2846
+ };
2847
+ url: "/session/{sessionID}/message/{messageID}";
2848
+ };
2849
+ export type SessionDeleteMessageErrors = {
2850
+ /**
2851
+ * Bad request
2852
+ */
2853
+ 400: BadRequestError;
2854
+ /**
2855
+ * Not found
2856
+ */
2857
+ 404: NotFoundError;
2858
+ };
2859
+ export type SessionDeleteMessageError = SessionDeleteMessageErrors[keyof SessionDeleteMessageErrors];
2860
+ export type SessionDeleteMessageResponses = {
2861
+ /**
2862
+ * Successfully deleted message
2863
+ */
2864
+ 200: boolean;
2865
+ };
2866
+ export type SessionDeleteMessageResponse = SessionDeleteMessageResponses[keyof SessionDeleteMessageResponses];
2986
2867
  export type SessionMessageData = {
2987
2868
  body?: never;
2988
2869
  path: {
@@ -2997,6 +2878,7 @@ export type SessionMessageData = {
2997
2878
  };
2998
2879
  query?: {
2999
2880
  directory?: string;
2881
+ workspace?: string;
3000
2882
  };
3001
2883
  url: "/session/{sessionID}/message/{messageID}";
3002
2884
  };
@@ -3039,6 +2921,7 @@ export type PartDeleteData = {
3039
2921
  };
3040
2922
  query?: {
3041
2923
  directory?: string;
2924
+ workspace?: string;
3042
2925
  };
3043
2926
  url: "/session/{sessionID}/message/{messageID}/part/{partID}";
3044
2927
  };
@@ -3078,6 +2961,7 @@ export type PartUpdateData = {
3078
2961
  };
3079
2962
  query?: {
3080
2963
  directory?: string;
2964
+ workspace?: string;
3081
2965
  };
3082
2966
  url: "/session/{sessionID}/message/{messageID}/part/{partID}";
3083
2967
  };
@@ -3114,6 +2998,7 @@ export type SessionPromptAsyncData = {
3114
2998
  tools?: {
3115
2999
  [key: string]: boolean;
3116
3000
  };
3001
+ format?: OutputFormat;
3117
3002
  system?: string;
3118
3003
  variant?: string;
3119
3004
  parts: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
@@ -3126,6 +3011,7 @@ export type SessionPromptAsyncData = {
3126
3011
  };
3127
3012
  query?: {
3128
3013
  directory?: string;
3014
+ workspace?: string;
3129
3015
  };
3130
3016
  url: "/session/{sessionID}/prompt_async";
3131
3017
  };
@@ -3172,6 +3058,7 @@ export type SessionCommandData = {
3172
3058
  };
3173
3059
  query?: {
3174
3060
  directory?: string;
3061
+ workspace?: string;
3175
3062
  };
3176
3063
  url: "/session/{sessionID}/command";
3177
3064
  };
@@ -3213,6 +3100,7 @@ export type SessionShellData = {
3213
3100
  };
3214
3101
  query?: {
3215
3102
  directory?: string;
3103
+ workspace?: string;
3216
3104
  };
3217
3105
  url: "/session/{sessionID}/shell";
3218
3106
  };
@@ -3244,6 +3132,7 @@ export type SessionRevertData = {
3244
3132
  };
3245
3133
  query?: {
3246
3134
  directory?: string;
3135
+ workspace?: string;
3247
3136
  };
3248
3137
  url: "/session/{sessionID}/revert";
3249
3138
  };
@@ -3272,6 +3161,7 @@ export type SessionUnrevertData = {
3272
3161
  };
3273
3162
  query?: {
3274
3163
  directory?: string;
3164
+ workspace?: string;
3275
3165
  };
3276
3166
  url: "/session/{sessionID}/unrevert";
3277
3167
  };
@@ -3303,6 +3193,7 @@ export type PermissionRespondData = {
3303
3193
  };
3304
3194
  query?: {
3305
3195
  directory?: string;
3196
+ workspace?: string;
3306
3197
  };
3307
3198
  url: "/session/{sessionID}/permissions/{permissionID}";
3308
3199
  };
@@ -3334,6 +3225,7 @@ export type PermissionReplyData = {
3334
3225
  };
3335
3226
  query?: {
3336
3227
  directory?: string;
3228
+ workspace?: string;
3337
3229
  };
3338
3230
  url: "/permission/{requestID}/reply";
3339
3231
  };
@@ -3360,6 +3252,7 @@ export type PermissionListData = {
3360
3252
  path?: never;
3361
3253
  query?: {
3362
3254
  directory?: string;
3255
+ workspace?: string;
3363
3256
  };
3364
3257
  url: "/permission";
3365
3258
  };
@@ -3375,6 +3268,7 @@ export type QuestionListData = {
3375
3268
  path?: never;
3376
3269
  query?: {
3377
3270
  directory?: string;
3271
+ workspace?: string;
3378
3272
  };
3379
3273
  url: "/question";
3380
3274
  };
@@ -3397,6 +3291,7 @@ export type QuestionReplyData = {
3397
3291
  };
3398
3292
  query?: {
3399
3293
  directory?: string;
3294
+ workspace?: string;
3400
3295
  };
3401
3296
  url: "/question/{requestID}/reply";
3402
3297
  };
@@ -3425,6 +3320,7 @@ export type QuestionRejectData = {
3425
3320
  };
3426
3321
  query?: {
3427
3322
  directory?: string;
3323
+ workspace?: string;
3428
3324
  };
3429
3325
  url: "/question/{requestID}/reject";
3430
3326
  };
@@ -3451,6 +3347,7 @@ export type ProviderListData = {
3451
3347
  path?: never;
3452
3348
  query?: {
3453
3349
  directory?: string;
3350
+ workspace?: string;
3454
3351
  };
3455
3352
  url: "/provider";
3456
3353
  };
@@ -3508,7 +3405,8 @@ export type ProviderListResponses = {
3508
3405
  [key: string]: string;
3509
3406
  };
3510
3407
  provider?: {
3511
- npm: string;
3408
+ npm?: string;
3409
+ api?: string;
3512
3410
  };
3513
3411
  variants?: {
3514
3412
  [key: string]: {
@@ -3530,6 +3428,7 @@ export type ProviderAuthData = {
3530
3428
  path?: never;
3531
3429
  query?: {
3532
3430
  directory?: string;
3431
+ workspace?: string;
3533
3432
  };
3534
3433
  url: "/provider/auth";
3535
3434
  };
@@ -3557,6 +3456,7 @@ export type ProviderOauthAuthorizeData = {
3557
3456
  };
3558
3457
  query?: {
3559
3458
  directory?: string;
3459
+ workspace?: string;
3560
3460
  };
3561
3461
  url: "/provider/{providerID}/oauth/authorize";
3562
3462
  };
@@ -3593,6 +3493,7 @@ export type ProviderOauthCallbackData = {
3593
3493
  };
3594
3494
  query?: {
3595
3495
  directory?: string;
3496
+ workspace?: string;
3596
3497
  };
3597
3498
  url: "/provider/{providerID}/oauth/callback";
3598
3499
  };
@@ -3615,6 +3516,7 @@ export type FindTextData = {
3615
3516
  path?: never;
3616
3517
  query: {
3617
3518
  directory?: string;
3519
+ workspace?: string;
3618
3520
  pattern: string;
3619
3521
  };
3620
3522
  url: "/find";
@@ -3647,6 +3549,7 @@ export type FindFilesData = {
3647
3549
  path?: never;
3648
3550
  query: {
3649
3551
  directory?: string;
3552
+ workspace?: string;
3650
3553
  query: string;
3651
3554
  dirs?: "true" | "false";
3652
3555
  type?: "file" | "directory" | "all";
@@ -3666,6 +3569,7 @@ export type FindSymbolsData = {
3666
3569
  path?: never;
3667
3570
  query: {
3668
3571
  directory?: string;
3572
+ workspace?: string;
3669
3573
  query: string;
3670
3574
  };
3671
3575
  url: "/find/symbol";
@@ -3682,6 +3586,7 @@ export type FileListData = {
3682
3586
  path?: never;
3683
3587
  query: {
3684
3588
  directory?: string;
3589
+ workspace?: string;
3685
3590
  path: string;
3686
3591
  };
3687
3592
  url: "/file";
@@ -3698,6 +3603,7 @@ export type FileReadData = {
3698
3603
  path?: never;
3699
3604
  query: {
3700
3605
  directory?: string;
3606
+ workspace?: string;
3701
3607
  path: string;
3702
3608
  };
3703
3609
  url: "/file/content";
@@ -3714,6 +3620,7 @@ export type FileStatusData = {
3714
3620
  path?: never;
3715
3621
  query?: {
3716
3622
  directory?: string;
3623
+ workspace?: string;
3717
3624
  };
3718
3625
  url: "/file/status";
3719
3626
  };
@@ -3729,6 +3636,7 @@ export type McpStatusData = {
3729
3636
  path?: never;
3730
3637
  query?: {
3731
3638
  directory?: string;
3639
+ workspace?: string;
3732
3640
  };
3733
3641
  url: "/mcp";
3734
3642
  };
@@ -3749,6 +3657,7 @@ export type McpAddData = {
3749
3657
  path?: never;
3750
3658
  query?: {
3751
3659
  directory?: string;
3660
+ workspace?: string;
3752
3661
  };
3753
3662
  url: "/mcp";
3754
3663
  };
@@ -3775,6 +3684,7 @@ export type McpAuthRemoveData = {
3775
3684
  };
3776
3685
  query?: {
3777
3686
  directory?: string;
3687
+ workspace?: string;
3778
3688
  };
3779
3689
  url: "/mcp/{name}/auth";
3780
3690
  };
@@ -3801,6 +3711,7 @@ export type McpAuthStartData = {
3801
3711
  };
3802
3712
  query?: {
3803
3713
  directory?: string;
3714
+ workspace?: string;
3804
3715
  };
3805
3716
  url: "/mcp/{name}/auth";
3806
3717
  };
@@ -3839,6 +3750,7 @@ export type McpAuthCallbackData = {
3839
3750
  };
3840
3751
  query?: {
3841
3752
  directory?: string;
3753
+ workspace?: string;
3842
3754
  };
3843
3755
  url: "/mcp/{name}/auth/callback";
3844
3756
  };
@@ -3867,6 +3779,7 @@ export type McpAuthAuthenticateData = {
3867
3779
  };
3868
3780
  query?: {
3869
3781
  directory?: string;
3782
+ workspace?: string;
3870
3783
  };
3871
3784
  url: "/mcp/{name}/auth/authenticate";
3872
3785
  };
@@ -3895,6 +3808,7 @@ export type McpConnectData = {
3895
3808
  };
3896
3809
  query?: {
3897
3810
  directory?: string;
3811
+ workspace?: string;
3898
3812
  };
3899
3813
  url: "/mcp/{name}/connect";
3900
3814
  };
@@ -3912,6 +3826,7 @@ export type McpDisconnectData = {
3912
3826
  };
3913
3827
  query?: {
3914
3828
  directory?: string;
3829
+ workspace?: string;
3915
3830
  };
3916
3831
  url: "/mcp/{name}/disconnect";
3917
3832
  };
@@ -3929,6 +3844,7 @@ export type TuiAppendPromptData = {
3929
3844
  path?: never;
3930
3845
  query?: {
3931
3846
  directory?: string;
3847
+ workspace?: string;
3932
3848
  };
3933
3849
  url: "/tui/append-prompt";
3934
3850
  };
@@ -3951,6 +3867,7 @@ export type TuiOpenHelpData = {
3951
3867
  path?: never;
3952
3868
  query?: {
3953
3869
  directory?: string;
3870
+ workspace?: string;
3954
3871
  };
3955
3872
  url: "/tui/open-help";
3956
3873
  };
@@ -3966,6 +3883,7 @@ export type TuiOpenSessionsData = {
3966
3883
  path?: never;
3967
3884
  query?: {
3968
3885
  directory?: string;
3886
+ workspace?: string;
3969
3887
  };
3970
3888
  url: "/tui/open-sessions";
3971
3889
  };
@@ -3981,6 +3899,7 @@ export type TuiOpenThemesData = {
3981
3899
  path?: never;
3982
3900
  query?: {
3983
3901
  directory?: string;
3902
+ workspace?: string;
3984
3903
  };
3985
3904
  url: "/tui/open-themes";
3986
3905
  };
@@ -3996,6 +3915,7 @@ export type TuiOpenModelsData = {
3996
3915
  path?: never;
3997
3916
  query?: {
3998
3917
  directory?: string;
3918
+ workspace?: string;
3999
3919
  };
4000
3920
  url: "/tui/open-models";
4001
3921
  };
@@ -4011,6 +3931,7 @@ export type TuiSubmitPromptData = {
4011
3931
  path?: never;
4012
3932
  query?: {
4013
3933
  directory?: string;
3934
+ workspace?: string;
4014
3935
  };
4015
3936
  url: "/tui/submit-prompt";
4016
3937
  };
@@ -4026,6 +3947,7 @@ export type TuiClearPromptData = {
4026
3947
  path?: never;
4027
3948
  query?: {
4028
3949
  directory?: string;
3950
+ workspace?: string;
4029
3951
  };
4030
3952
  url: "/tui/clear-prompt";
4031
3953
  };
@@ -4043,6 +3965,7 @@ export type TuiExecuteCommandData = {
4043
3965
  path?: never;
4044
3966
  query?: {
4045
3967
  directory?: string;
3968
+ workspace?: string;
4046
3969
  };
4047
3970
  url: "/tui/execute-command";
4048
3971
  };
@@ -4073,6 +3996,7 @@ export type TuiShowToastData = {
4073
3996
  path?: never;
4074
3997
  query?: {
4075
3998
  directory?: string;
3999
+ workspace?: string;
4076
4000
  };
4077
4001
  url: "/tui/show-toast";
4078
4002
  };
@@ -4088,6 +4012,7 @@ export type TuiPublishData = {
4088
4012
  path?: never;
4089
4013
  query?: {
4090
4014
  directory?: string;
4015
+ workspace?: string;
4091
4016
  };
4092
4017
  url: "/tui/publish";
4093
4018
  };
@@ -4115,6 +4040,7 @@ export type TuiSelectSessionData = {
4115
4040
  path?: never;
4116
4041
  query?: {
4117
4042
  directory?: string;
4043
+ workspace?: string;
4118
4044
  };
4119
4045
  url: "/tui/select-session";
4120
4046
  };
@@ -4141,6 +4067,7 @@ export type TuiControlNextData = {
4141
4067
  path?: never;
4142
4068
  query?: {
4143
4069
  directory?: string;
4070
+ workspace?: string;
4144
4071
  };
4145
4072
  url: "/tui/control/next";
4146
4073
  };
@@ -4159,6 +4086,7 @@ export type TuiControlResponseData = {
4159
4086
  path?: never;
4160
4087
  query?: {
4161
4088
  directory?: string;
4089
+ workspace?: string;
4162
4090
  };
4163
4091
  url: "/tui/control/response";
4164
4092
  };
@@ -4174,6 +4102,7 @@ export type InstanceDisposeData = {
4174
4102
  path?: never;
4175
4103
  query?: {
4176
4104
  directory?: string;
4105
+ workspace?: string;
4177
4106
  };
4178
4107
  url: "/instance/dispose";
4179
4108
  };
@@ -4189,6 +4118,7 @@ export type PathGetData = {
4189
4118
  path?: never;
4190
4119
  query?: {
4191
4120
  directory?: string;
4121
+ workspace?: string;
4192
4122
  };
4193
4123
  url: "/path";
4194
4124
  };
@@ -4204,6 +4134,7 @@ export type VcsGetData = {
4204
4134
  path?: never;
4205
4135
  query?: {
4206
4136
  directory?: string;
4137
+ workspace?: string;
4207
4138
  };
4208
4139
  url: "/vcs";
4209
4140
  };
@@ -4219,6 +4150,7 @@ export type CommandListData = {
4219
4150
  path?: never;
4220
4151
  query?: {
4221
4152
  directory?: string;
4153
+ workspace?: string;
4222
4154
  };
4223
4155
  url: "/command";
4224
4156
  };
@@ -4253,6 +4185,7 @@ export type AppLogData = {
4253
4185
  path?: never;
4254
4186
  query?: {
4255
4187
  directory?: string;
4188
+ workspace?: string;
4256
4189
  };
4257
4190
  url: "/log";
4258
4191
  };
@@ -4275,6 +4208,7 @@ export type AppAgentsData = {
4275
4208
  path?: never;
4276
4209
  query?: {
4277
4210
  directory?: string;
4211
+ workspace?: string;
4278
4212
  };
4279
4213
  url: "/agent";
4280
4214
  };
@@ -4290,6 +4224,7 @@ export type AppSkillsData = {
4290
4224
  path?: never;
4291
4225
  query?: {
4292
4226
  directory?: string;
4227
+ workspace?: string;
4293
4228
  };
4294
4229
  url: "/skill";
4295
4230
  };
@@ -4310,6 +4245,7 @@ export type LspStatusData = {
4310
4245
  path?: never;
4311
4246
  query?: {
4312
4247
  directory?: string;
4248
+ workspace?: string;
4313
4249
  };
4314
4250
  url: "/lsp";
4315
4251
  };
@@ -4325,6 +4261,7 @@ export type FormatterStatusData = {
4325
4261
  path?: never;
4326
4262
  query?: {
4327
4263
  directory?: string;
4264
+ workspace?: string;
4328
4265
  };
4329
4266
  url: "/formatter";
4330
4267
  };
@@ -4340,6 +4277,7 @@ export type EventSubscribeData = {
4340
4277
  path?: never;
4341
4278
  query?: {
4342
4279
  directory?: string;
4280
+ workspace?: string;
4343
4281
  };
4344
4282
  url: "/event";
4345
4283
  };