@opencode-ai/sdk 1.2.15 → 1.2.17

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.
@@ -446,6 +446,7 @@ export type CompactionPart = {
446
446
  messageID: string;
447
447
  type: "compaction";
448
448
  auto: boolean;
449
+ overflow?: boolean;
449
450
  };
450
451
  export type Part = TextPart | SubtaskPart | ReasoningPart | FilePart | ToolPart | StepStartPart | StepFinishPart | SnapshotPart | PatchPart | AgentPart | RetryPart | CompactionPart;
451
452
  export type EventMessagePartUpdated = {
@@ -685,6 +686,7 @@ export type Session = {
685
686
  id: string;
686
687
  slug: string;
687
688
  projectID: string;
689
+ workspaceID?: string;
688
690
  directory: string;
689
691
  parentID?: string;
690
692
  summary?: {
@@ -750,6 +752,18 @@ export type EventVcsBranchUpdated = {
750
752
  branch?: string;
751
753
  };
752
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
+ };
753
767
  export type Pty = {
754
768
  id: string;
755
769
  title: string;
@@ -797,7 +811,7 @@ export type EventWorktreeFailed = {
797
811
  message: string;
798
812
  };
799
813
  };
800
- 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 | 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;
801
815
  export type GlobalEvent = {
802
816
  directory: string;
803
817
  payload: Event;
@@ -1365,6 +1379,15 @@ export type ToolListItem = {
1365
1379
  parameters: unknown;
1366
1380
  };
1367
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
+ };
1368
1391
  export type Worktree = {
1369
1392
  name: string;
1370
1393
  branch: string;
@@ -1392,6 +1415,7 @@ export type GlobalSession = {
1392
1415
  id: string;
1393
1416
  slug: string;
1394
1417
  projectID: string;
1418
+ workspaceID?: string;
1395
1419
  directory: string;
1396
1420
  parentID?: string;
1397
1421
  summary?: {
@@ -1716,6 +1740,7 @@ export type ProjectListData = {
1716
1740
  path?: never;
1717
1741
  query?: {
1718
1742
  directory?: string;
1743
+ workspace?: string;
1719
1744
  };
1720
1745
  url: "/project";
1721
1746
  };
@@ -1731,6 +1756,7 @@ export type ProjectCurrentData = {
1731
1756
  path?: never;
1732
1757
  query?: {
1733
1758
  directory?: string;
1759
+ workspace?: string;
1734
1760
  };
1735
1761
  url: "/project/current";
1736
1762
  };
@@ -1761,6 +1787,7 @@ export type ProjectUpdateData = {
1761
1787
  };
1762
1788
  query?: {
1763
1789
  directory?: string;
1790
+ workspace?: string;
1764
1791
  };
1765
1792
  url: "/project/{projectID}";
1766
1793
  };
@@ -1787,6 +1814,7 @@ export type PtyListData = {
1787
1814
  path?: never;
1788
1815
  query?: {
1789
1816
  directory?: string;
1817
+ workspace?: string;
1790
1818
  };
1791
1819
  url: "/pty";
1792
1820
  };
@@ -1810,6 +1838,7 @@ export type PtyCreateData = {
1810
1838
  path?: never;
1811
1839
  query?: {
1812
1840
  directory?: string;
1841
+ workspace?: string;
1813
1842
  };
1814
1843
  url: "/pty";
1815
1844
  };
@@ -1834,6 +1863,7 @@ export type PtyRemoveData = {
1834
1863
  };
1835
1864
  query?: {
1836
1865
  directory?: string;
1866
+ workspace?: string;
1837
1867
  };
1838
1868
  url: "/pty/{ptyID}";
1839
1869
  };
@@ -1858,6 +1888,7 @@ export type PtyGetData = {
1858
1888
  };
1859
1889
  query?: {
1860
1890
  directory?: string;
1891
+ workspace?: string;
1861
1892
  };
1862
1893
  url: "/pty/{ptyID}";
1863
1894
  };
@@ -1888,6 +1919,7 @@ export type PtyUpdateData = {
1888
1919
  };
1889
1920
  query?: {
1890
1921
  directory?: string;
1922
+ workspace?: string;
1891
1923
  };
1892
1924
  url: "/pty/{ptyID}";
1893
1925
  };
@@ -1912,6 +1944,7 @@ export type PtyConnectData = {
1912
1944
  };
1913
1945
  query?: {
1914
1946
  directory?: string;
1947
+ workspace?: string;
1915
1948
  };
1916
1949
  url: "/pty/{ptyID}/connect";
1917
1950
  };
@@ -1934,6 +1967,7 @@ export type ConfigGetData = {
1934
1967
  path?: never;
1935
1968
  query?: {
1936
1969
  directory?: string;
1970
+ workspace?: string;
1937
1971
  };
1938
1972
  url: "/config";
1939
1973
  };
@@ -1949,6 +1983,7 @@ export type ConfigUpdateData = {
1949
1983
  path?: never;
1950
1984
  query?: {
1951
1985
  directory?: string;
1986
+ workspace?: string;
1952
1987
  };
1953
1988
  url: "/config";
1954
1989
  };
@@ -1971,6 +2006,7 @@ export type ConfigProvidersData = {
1971
2006
  path?: never;
1972
2007
  query?: {
1973
2008
  directory?: string;
2009
+ workspace?: string;
1974
2010
  };
1975
2011
  url: "/config/providers";
1976
2012
  };
@@ -1991,6 +2027,7 @@ export type ToolIdsData = {
1991
2027
  path?: never;
1992
2028
  query?: {
1993
2029
  directory?: string;
2030
+ workspace?: string;
1994
2031
  };
1995
2032
  url: "/experimental/tool/ids";
1996
2033
  };
@@ -2013,6 +2050,7 @@ export type ToolListData = {
2013
2050
  path?: never;
2014
2051
  query: {
2015
2052
  directory?: string;
2053
+ workspace?: string;
2016
2054
  provider: string;
2017
2055
  model: string;
2018
2056
  };
@@ -2032,11 +2070,81 @@ export type ToolListResponses = {
2032
2070
  200: ToolList;
2033
2071
  };
2034
2072
  export type ToolListResponse = ToolListResponses[keyof ToolListResponses];
2073
+ export type ExperimentalWorkspaceListData = {
2074
+ body?: never;
2075
+ path?: never;
2076
+ query?: {
2077
+ directory?: string;
2078
+ workspace?: string;
2079
+ };
2080
+ url: "/experimental/workspace";
2081
+ };
2082
+ export type ExperimentalWorkspaceListResponses = {
2083
+ /**
2084
+ * Workspaces
2085
+ */
2086
+ 200: Array<Workspace>;
2087
+ };
2088
+ export type ExperimentalWorkspaceListResponse = ExperimentalWorkspaceListResponses[keyof ExperimentalWorkspaceListResponses];
2089
+ export type ExperimentalWorkspaceCreateData = {
2090
+ body?: {
2091
+ id?: string;
2092
+ type: string;
2093
+ branch: string | null;
2094
+ extra: unknown | null;
2095
+ };
2096
+ path?: never;
2097
+ query?: {
2098
+ directory?: string;
2099
+ workspace?: string;
2100
+ };
2101
+ url: "/experimental/workspace";
2102
+ };
2103
+ export type ExperimentalWorkspaceCreateErrors = {
2104
+ /**
2105
+ * Bad request
2106
+ */
2107
+ 400: BadRequestError;
2108
+ };
2109
+ export type ExperimentalWorkspaceCreateError = ExperimentalWorkspaceCreateErrors[keyof ExperimentalWorkspaceCreateErrors];
2110
+ export type ExperimentalWorkspaceCreateResponses = {
2111
+ /**
2112
+ * Workspace created
2113
+ */
2114
+ 200: Workspace;
2115
+ };
2116
+ export type ExperimentalWorkspaceCreateResponse = ExperimentalWorkspaceCreateResponses[keyof ExperimentalWorkspaceCreateResponses];
2117
+ export type ExperimentalWorkspaceRemoveData = {
2118
+ body?: never;
2119
+ path: {
2120
+ id: string;
2121
+ };
2122
+ query?: {
2123
+ directory?: string;
2124
+ workspace?: string;
2125
+ };
2126
+ url: "/experimental/workspace/{id}";
2127
+ };
2128
+ export type ExperimentalWorkspaceRemoveErrors = {
2129
+ /**
2130
+ * Bad request
2131
+ */
2132
+ 400: BadRequestError;
2133
+ };
2134
+ export type ExperimentalWorkspaceRemoveError = ExperimentalWorkspaceRemoveErrors[keyof ExperimentalWorkspaceRemoveErrors];
2135
+ export type ExperimentalWorkspaceRemoveResponses = {
2136
+ /**
2137
+ * Workspace removed
2138
+ */
2139
+ 200: Workspace;
2140
+ };
2141
+ export type ExperimentalWorkspaceRemoveResponse = ExperimentalWorkspaceRemoveResponses[keyof ExperimentalWorkspaceRemoveResponses];
2035
2142
  export type WorktreeRemoveData = {
2036
2143
  body?: WorktreeRemoveInput;
2037
2144
  path?: never;
2038
2145
  query?: {
2039
2146
  directory?: string;
2147
+ workspace?: string;
2040
2148
  };
2041
2149
  url: "/experimental/worktree";
2042
2150
  };
@@ -2059,6 +2167,7 @@ export type WorktreeListData = {
2059
2167
  path?: never;
2060
2168
  query?: {
2061
2169
  directory?: string;
2170
+ workspace?: string;
2062
2171
  };
2063
2172
  url: "/experimental/worktree";
2064
2173
  };
@@ -2074,6 +2183,7 @@ export type WorktreeCreateData = {
2074
2183
  path?: never;
2075
2184
  query?: {
2076
2185
  directory?: string;
2186
+ workspace?: string;
2077
2187
  };
2078
2188
  url: "/experimental/worktree";
2079
2189
  };
@@ -2096,6 +2206,7 @@ export type WorktreeResetData = {
2096
2206
  path?: never;
2097
2207
  query?: {
2098
2208
  directory?: string;
2209
+ workspace?: string;
2099
2210
  };
2100
2211
  url: "/experimental/worktree/reset";
2101
2212
  };
@@ -2121,6 +2232,7 @@ export type ExperimentalSessionListData = {
2121
2232
  * Filter sessions by project directory
2122
2233
  */
2123
2234
  directory?: string;
2235
+ workspace?: string;
2124
2236
  /**
2125
2237
  * Only return root sessions (no parentID)
2126
2238
  */
@@ -2160,6 +2272,7 @@ export type ExperimentalResourceListData = {
2160
2272
  path?: never;
2161
2273
  query?: {
2162
2274
  directory?: string;
2275
+ workspace?: string;
2163
2276
  };
2164
2277
  url: "/experimental/resource";
2165
2278
  };
@@ -2180,6 +2293,7 @@ export type SessionListData = {
2180
2293
  * Filter sessions by project directory
2181
2294
  */
2182
2295
  directory?: string;
2296
+ workspace?: string;
2183
2297
  /**
2184
2298
  * Only return root sessions (no parentID)
2185
2299
  */
@@ -2215,6 +2329,7 @@ export type SessionCreateData = {
2215
2329
  path?: never;
2216
2330
  query?: {
2217
2331
  directory?: string;
2332
+ workspace?: string;
2218
2333
  };
2219
2334
  url: "/session";
2220
2335
  };
@@ -2237,6 +2352,7 @@ export type SessionStatusData = {
2237
2352
  path?: never;
2238
2353
  query?: {
2239
2354
  directory?: string;
2355
+ workspace?: string;
2240
2356
  };
2241
2357
  url: "/session/status";
2242
2358
  };
@@ -2263,6 +2379,7 @@ export type SessionDeleteData = {
2263
2379
  };
2264
2380
  query?: {
2265
2381
  directory?: string;
2382
+ workspace?: string;
2266
2383
  };
2267
2384
  url: "/session/{sessionID}";
2268
2385
  };
@@ -2291,6 +2408,7 @@ export type SessionGetData = {
2291
2408
  };
2292
2409
  query?: {
2293
2410
  directory?: string;
2411
+ workspace?: string;
2294
2412
  };
2295
2413
  url: "/session/{sessionID}";
2296
2414
  };
@@ -2324,6 +2442,7 @@ export type SessionUpdateData = {
2324
2442
  };
2325
2443
  query?: {
2326
2444
  directory?: string;
2445
+ workspace?: string;
2327
2446
  };
2328
2447
  url: "/session/{sessionID}";
2329
2448
  };
@@ -2352,6 +2471,7 @@ export type SessionChildrenData = {
2352
2471
  };
2353
2472
  query?: {
2354
2473
  directory?: string;
2474
+ workspace?: string;
2355
2475
  };
2356
2476
  url: "/session/{sessionID}/children";
2357
2477
  };
@@ -2383,6 +2503,7 @@ export type SessionTodoData = {
2383
2503
  };
2384
2504
  query?: {
2385
2505
  directory?: string;
2506
+ workspace?: string;
2386
2507
  };
2387
2508
  url: "/session/{sessionID}/todo";
2388
2509
  };
@@ -2418,6 +2539,7 @@ export type SessionInitData = {
2418
2539
  };
2419
2540
  query?: {
2420
2541
  directory?: string;
2542
+ workspace?: string;
2421
2543
  };
2422
2544
  url: "/session/{sessionID}/init";
2423
2545
  };
@@ -2448,6 +2570,7 @@ export type SessionForkData = {
2448
2570
  };
2449
2571
  query?: {
2450
2572
  directory?: string;
2573
+ workspace?: string;
2451
2574
  };
2452
2575
  url: "/session/{sessionID}/fork";
2453
2576
  };
@@ -2465,6 +2588,7 @@ export type SessionAbortData = {
2465
2588
  };
2466
2589
  query?: {
2467
2590
  directory?: string;
2591
+ workspace?: string;
2468
2592
  };
2469
2593
  url: "/session/{sessionID}/abort";
2470
2594
  };
@@ -2493,6 +2617,7 @@ export type SessionUnshareData = {
2493
2617
  };
2494
2618
  query?: {
2495
2619
  directory?: string;
2620
+ workspace?: string;
2496
2621
  };
2497
2622
  url: "/session/{sessionID}/share";
2498
2623
  };
@@ -2521,6 +2646,7 @@ export type SessionShareData = {
2521
2646
  };
2522
2647
  query?: {
2523
2648
  directory?: string;
2649
+ workspace?: string;
2524
2650
  };
2525
2651
  url: "/session/{sessionID}/share";
2526
2652
  };
@@ -2549,6 +2675,7 @@ export type SessionDiffData = {
2549
2675
  };
2550
2676
  query?: {
2551
2677
  directory?: string;
2678
+ workspace?: string;
2552
2679
  messageID?: string;
2553
2680
  };
2554
2681
  url: "/session/{sessionID}/diff";
@@ -2574,6 +2701,7 @@ export type SessionSummarizeData = {
2574
2701
  };
2575
2702
  query?: {
2576
2703
  directory?: string;
2704
+ workspace?: string;
2577
2705
  };
2578
2706
  url: "/session/{sessionID}/summarize";
2579
2707
  };
@@ -2605,6 +2733,7 @@ export type SessionMessagesData = {
2605
2733
  };
2606
2734
  query?: {
2607
2735
  directory?: string;
2736
+ workspace?: string;
2608
2737
  limit?: number;
2609
2738
  };
2610
2739
  url: "/session/{sessionID}/message";
@@ -2658,6 +2787,7 @@ export type SessionPromptData = {
2658
2787
  };
2659
2788
  query?: {
2660
2789
  directory?: string;
2790
+ workspace?: string;
2661
2791
  };
2662
2792
  url: "/session/{sessionID}/message";
2663
2793
  };
@@ -2696,6 +2826,7 @@ export type SessionDeleteMessageData = {
2696
2826
  };
2697
2827
  query?: {
2698
2828
  directory?: string;
2829
+ workspace?: string;
2699
2830
  };
2700
2831
  url: "/session/{sessionID}/message/{messageID}";
2701
2832
  };
@@ -2731,6 +2862,7 @@ export type SessionMessageData = {
2731
2862
  };
2732
2863
  query?: {
2733
2864
  directory?: string;
2865
+ workspace?: string;
2734
2866
  };
2735
2867
  url: "/session/{sessionID}/message/{messageID}";
2736
2868
  };
@@ -2773,6 +2905,7 @@ export type PartDeleteData = {
2773
2905
  };
2774
2906
  query?: {
2775
2907
  directory?: string;
2908
+ workspace?: string;
2776
2909
  };
2777
2910
  url: "/session/{sessionID}/message/{messageID}/part/{partID}";
2778
2911
  };
@@ -2812,6 +2945,7 @@ export type PartUpdateData = {
2812
2945
  };
2813
2946
  query?: {
2814
2947
  directory?: string;
2948
+ workspace?: string;
2815
2949
  };
2816
2950
  url: "/session/{sessionID}/message/{messageID}/part/{partID}";
2817
2951
  };
@@ -2861,6 +2995,7 @@ export type SessionPromptAsyncData = {
2861
2995
  };
2862
2996
  query?: {
2863
2997
  directory?: string;
2998
+ workspace?: string;
2864
2999
  };
2865
3000
  url: "/session/{sessionID}/prompt_async";
2866
3001
  };
@@ -2907,6 +3042,7 @@ export type SessionCommandData = {
2907
3042
  };
2908
3043
  query?: {
2909
3044
  directory?: string;
3045
+ workspace?: string;
2910
3046
  };
2911
3047
  url: "/session/{sessionID}/command";
2912
3048
  };
@@ -2948,6 +3084,7 @@ export type SessionShellData = {
2948
3084
  };
2949
3085
  query?: {
2950
3086
  directory?: string;
3087
+ workspace?: string;
2951
3088
  };
2952
3089
  url: "/session/{sessionID}/shell";
2953
3090
  };
@@ -2979,6 +3116,7 @@ export type SessionRevertData = {
2979
3116
  };
2980
3117
  query?: {
2981
3118
  directory?: string;
3119
+ workspace?: string;
2982
3120
  };
2983
3121
  url: "/session/{sessionID}/revert";
2984
3122
  };
@@ -3007,6 +3145,7 @@ export type SessionUnrevertData = {
3007
3145
  };
3008
3146
  query?: {
3009
3147
  directory?: string;
3148
+ workspace?: string;
3010
3149
  };
3011
3150
  url: "/session/{sessionID}/unrevert";
3012
3151
  };
@@ -3038,6 +3177,7 @@ export type PermissionRespondData = {
3038
3177
  };
3039
3178
  query?: {
3040
3179
  directory?: string;
3180
+ workspace?: string;
3041
3181
  };
3042
3182
  url: "/session/{sessionID}/permissions/{permissionID}";
3043
3183
  };
@@ -3069,6 +3209,7 @@ export type PermissionReplyData = {
3069
3209
  };
3070
3210
  query?: {
3071
3211
  directory?: string;
3212
+ workspace?: string;
3072
3213
  };
3073
3214
  url: "/permission/{requestID}/reply";
3074
3215
  };
@@ -3095,6 +3236,7 @@ export type PermissionListData = {
3095
3236
  path?: never;
3096
3237
  query?: {
3097
3238
  directory?: string;
3239
+ workspace?: string;
3098
3240
  };
3099
3241
  url: "/permission";
3100
3242
  };
@@ -3110,6 +3252,7 @@ export type QuestionListData = {
3110
3252
  path?: never;
3111
3253
  query?: {
3112
3254
  directory?: string;
3255
+ workspace?: string;
3113
3256
  };
3114
3257
  url: "/question";
3115
3258
  };
@@ -3132,6 +3275,7 @@ export type QuestionReplyData = {
3132
3275
  };
3133
3276
  query?: {
3134
3277
  directory?: string;
3278
+ workspace?: string;
3135
3279
  };
3136
3280
  url: "/question/{requestID}/reply";
3137
3281
  };
@@ -3160,6 +3304,7 @@ export type QuestionRejectData = {
3160
3304
  };
3161
3305
  query?: {
3162
3306
  directory?: string;
3307
+ workspace?: string;
3163
3308
  };
3164
3309
  url: "/question/{requestID}/reject";
3165
3310
  };
@@ -3186,6 +3331,7 @@ export type ProviderListData = {
3186
3331
  path?: never;
3187
3332
  query?: {
3188
3333
  directory?: string;
3334
+ workspace?: string;
3189
3335
  };
3190
3336
  url: "/provider";
3191
3337
  };
@@ -3266,6 +3412,7 @@ export type ProviderAuthData = {
3266
3412
  path?: never;
3267
3413
  query?: {
3268
3414
  directory?: string;
3415
+ workspace?: string;
3269
3416
  };
3270
3417
  url: "/provider/auth";
3271
3418
  };
@@ -3293,6 +3440,7 @@ export type ProviderOauthAuthorizeData = {
3293
3440
  };
3294
3441
  query?: {
3295
3442
  directory?: string;
3443
+ workspace?: string;
3296
3444
  };
3297
3445
  url: "/provider/{providerID}/oauth/authorize";
3298
3446
  };
@@ -3329,6 +3477,7 @@ export type ProviderOauthCallbackData = {
3329
3477
  };
3330
3478
  query?: {
3331
3479
  directory?: string;
3480
+ workspace?: string;
3332
3481
  };
3333
3482
  url: "/provider/{providerID}/oauth/callback";
3334
3483
  };
@@ -3351,6 +3500,7 @@ export type FindTextData = {
3351
3500
  path?: never;
3352
3501
  query: {
3353
3502
  directory?: string;
3503
+ workspace?: string;
3354
3504
  pattern: string;
3355
3505
  };
3356
3506
  url: "/find";
@@ -3383,6 +3533,7 @@ export type FindFilesData = {
3383
3533
  path?: never;
3384
3534
  query: {
3385
3535
  directory?: string;
3536
+ workspace?: string;
3386
3537
  query: string;
3387
3538
  dirs?: "true" | "false";
3388
3539
  type?: "file" | "directory";
@@ -3402,6 +3553,7 @@ export type FindSymbolsData = {
3402
3553
  path?: never;
3403
3554
  query: {
3404
3555
  directory?: string;
3556
+ workspace?: string;
3405
3557
  query: string;
3406
3558
  };
3407
3559
  url: "/find/symbol";
@@ -3418,6 +3570,7 @@ export type FileListData = {
3418
3570
  path?: never;
3419
3571
  query: {
3420
3572
  directory?: string;
3573
+ workspace?: string;
3421
3574
  path: string;
3422
3575
  };
3423
3576
  url: "/file";
@@ -3434,6 +3587,7 @@ export type FileReadData = {
3434
3587
  path?: never;
3435
3588
  query: {
3436
3589
  directory?: string;
3590
+ workspace?: string;
3437
3591
  path: string;
3438
3592
  };
3439
3593
  url: "/file/content";
@@ -3450,6 +3604,7 @@ export type FileStatusData = {
3450
3604
  path?: never;
3451
3605
  query?: {
3452
3606
  directory?: string;
3607
+ workspace?: string;
3453
3608
  };
3454
3609
  url: "/file/status";
3455
3610
  };
@@ -3465,6 +3620,7 @@ export type McpStatusData = {
3465
3620
  path?: never;
3466
3621
  query?: {
3467
3622
  directory?: string;
3623
+ workspace?: string;
3468
3624
  };
3469
3625
  url: "/mcp";
3470
3626
  };
@@ -3485,6 +3641,7 @@ export type McpAddData = {
3485
3641
  path?: never;
3486
3642
  query?: {
3487
3643
  directory?: string;
3644
+ workspace?: string;
3488
3645
  };
3489
3646
  url: "/mcp";
3490
3647
  };
@@ -3511,6 +3668,7 @@ export type McpAuthRemoveData = {
3511
3668
  };
3512
3669
  query?: {
3513
3670
  directory?: string;
3671
+ workspace?: string;
3514
3672
  };
3515
3673
  url: "/mcp/{name}/auth";
3516
3674
  };
@@ -3537,6 +3695,7 @@ export type McpAuthStartData = {
3537
3695
  };
3538
3696
  query?: {
3539
3697
  directory?: string;
3698
+ workspace?: string;
3540
3699
  };
3541
3700
  url: "/mcp/{name}/auth";
3542
3701
  };
@@ -3575,6 +3734,7 @@ export type McpAuthCallbackData = {
3575
3734
  };
3576
3735
  query?: {
3577
3736
  directory?: string;
3737
+ workspace?: string;
3578
3738
  };
3579
3739
  url: "/mcp/{name}/auth/callback";
3580
3740
  };
@@ -3603,6 +3763,7 @@ export type McpAuthAuthenticateData = {
3603
3763
  };
3604
3764
  query?: {
3605
3765
  directory?: string;
3766
+ workspace?: string;
3606
3767
  };
3607
3768
  url: "/mcp/{name}/auth/authenticate";
3608
3769
  };
@@ -3631,6 +3792,7 @@ export type McpConnectData = {
3631
3792
  };
3632
3793
  query?: {
3633
3794
  directory?: string;
3795
+ workspace?: string;
3634
3796
  };
3635
3797
  url: "/mcp/{name}/connect";
3636
3798
  };
@@ -3648,6 +3810,7 @@ export type McpDisconnectData = {
3648
3810
  };
3649
3811
  query?: {
3650
3812
  directory?: string;
3813
+ workspace?: string;
3651
3814
  };
3652
3815
  url: "/mcp/{name}/disconnect";
3653
3816
  };
@@ -3665,6 +3828,7 @@ export type TuiAppendPromptData = {
3665
3828
  path?: never;
3666
3829
  query?: {
3667
3830
  directory?: string;
3831
+ workspace?: string;
3668
3832
  };
3669
3833
  url: "/tui/append-prompt";
3670
3834
  };
@@ -3687,6 +3851,7 @@ export type TuiOpenHelpData = {
3687
3851
  path?: never;
3688
3852
  query?: {
3689
3853
  directory?: string;
3854
+ workspace?: string;
3690
3855
  };
3691
3856
  url: "/tui/open-help";
3692
3857
  };
@@ -3702,6 +3867,7 @@ export type TuiOpenSessionsData = {
3702
3867
  path?: never;
3703
3868
  query?: {
3704
3869
  directory?: string;
3870
+ workspace?: string;
3705
3871
  };
3706
3872
  url: "/tui/open-sessions";
3707
3873
  };
@@ -3717,6 +3883,7 @@ export type TuiOpenThemesData = {
3717
3883
  path?: never;
3718
3884
  query?: {
3719
3885
  directory?: string;
3886
+ workspace?: string;
3720
3887
  };
3721
3888
  url: "/tui/open-themes";
3722
3889
  };
@@ -3732,6 +3899,7 @@ export type TuiOpenModelsData = {
3732
3899
  path?: never;
3733
3900
  query?: {
3734
3901
  directory?: string;
3902
+ workspace?: string;
3735
3903
  };
3736
3904
  url: "/tui/open-models";
3737
3905
  };
@@ -3747,6 +3915,7 @@ export type TuiSubmitPromptData = {
3747
3915
  path?: never;
3748
3916
  query?: {
3749
3917
  directory?: string;
3918
+ workspace?: string;
3750
3919
  };
3751
3920
  url: "/tui/submit-prompt";
3752
3921
  };
@@ -3762,6 +3931,7 @@ export type TuiClearPromptData = {
3762
3931
  path?: never;
3763
3932
  query?: {
3764
3933
  directory?: string;
3934
+ workspace?: string;
3765
3935
  };
3766
3936
  url: "/tui/clear-prompt";
3767
3937
  };
@@ -3779,6 +3949,7 @@ export type TuiExecuteCommandData = {
3779
3949
  path?: never;
3780
3950
  query?: {
3781
3951
  directory?: string;
3952
+ workspace?: string;
3782
3953
  };
3783
3954
  url: "/tui/execute-command";
3784
3955
  };
@@ -3809,6 +3980,7 @@ export type TuiShowToastData = {
3809
3980
  path?: never;
3810
3981
  query?: {
3811
3982
  directory?: string;
3983
+ workspace?: string;
3812
3984
  };
3813
3985
  url: "/tui/show-toast";
3814
3986
  };
@@ -3824,6 +3996,7 @@ export type TuiPublishData = {
3824
3996
  path?: never;
3825
3997
  query?: {
3826
3998
  directory?: string;
3999
+ workspace?: string;
3827
4000
  };
3828
4001
  url: "/tui/publish";
3829
4002
  };
@@ -3851,6 +4024,7 @@ export type TuiSelectSessionData = {
3851
4024
  path?: never;
3852
4025
  query?: {
3853
4026
  directory?: string;
4027
+ workspace?: string;
3854
4028
  };
3855
4029
  url: "/tui/select-session";
3856
4030
  };
@@ -3877,6 +4051,7 @@ export type TuiControlNextData = {
3877
4051
  path?: never;
3878
4052
  query?: {
3879
4053
  directory?: string;
4054
+ workspace?: string;
3880
4055
  };
3881
4056
  url: "/tui/control/next";
3882
4057
  };
@@ -3895,6 +4070,7 @@ export type TuiControlResponseData = {
3895
4070
  path?: never;
3896
4071
  query?: {
3897
4072
  directory?: string;
4073
+ workspace?: string;
3898
4074
  };
3899
4075
  url: "/tui/control/response";
3900
4076
  };
@@ -3910,6 +4086,7 @@ export type InstanceDisposeData = {
3910
4086
  path?: never;
3911
4087
  query?: {
3912
4088
  directory?: string;
4089
+ workspace?: string;
3913
4090
  };
3914
4091
  url: "/instance/dispose";
3915
4092
  };
@@ -3925,6 +4102,7 @@ export type PathGetData = {
3925
4102
  path?: never;
3926
4103
  query?: {
3927
4104
  directory?: string;
4105
+ workspace?: string;
3928
4106
  };
3929
4107
  url: "/path";
3930
4108
  };
@@ -3940,6 +4118,7 @@ export type VcsGetData = {
3940
4118
  path?: never;
3941
4119
  query?: {
3942
4120
  directory?: string;
4121
+ workspace?: string;
3943
4122
  };
3944
4123
  url: "/vcs";
3945
4124
  };
@@ -3955,6 +4134,7 @@ export type CommandListData = {
3955
4134
  path?: never;
3956
4135
  query?: {
3957
4136
  directory?: string;
4137
+ workspace?: string;
3958
4138
  };
3959
4139
  url: "/command";
3960
4140
  };
@@ -3989,6 +4169,7 @@ export type AppLogData = {
3989
4169
  path?: never;
3990
4170
  query?: {
3991
4171
  directory?: string;
4172
+ workspace?: string;
3992
4173
  };
3993
4174
  url: "/log";
3994
4175
  };
@@ -4011,6 +4192,7 @@ export type AppAgentsData = {
4011
4192
  path?: never;
4012
4193
  query?: {
4013
4194
  directory?: string;
4195
+ workspace?: string;
4014
4196
  };
4015
4197
  url: "/agent";
4016
4198
  };
@@ -4026,6 +4208,7 @@ export type AppSkillsData = {
4026
4208
  path?: never;
4027
4209
  query?: {
4028
4210
  directory?: string;
4211
+ workspace?: string;
4029
4212
  };
4030
4213
  url: "/skill";
4031
4214
  };
@@ -4046,6 +4229,7 @@ export type LspStatusData = {
4046
4229
  path?: never;
4047
4230
  query?: {
4048
4231
  directory?: string;
4232
+ workspace?: string;
4049
4233
  };
4050
4234
  url: "/lsp";
4051
4235
  };
@@ -4061,6 +4245,7 @@ export type FormatterStatusData = {
4061
4245
  path?: never;
4062
4246
  query?: {
4063
4247
  directory?: string;
4248
+ workspace?: string;
4064
4249
  };
4065
4250
  url: "/formatter";
4066
4251
  };
@@ -4076,6 +4261,7 @@ export type EventSubscribeData = {
4076
4261
  path?: never;
4077
4262
  query?: {
4078
4263
  directory?: string;
4264
+ workspace?: string;
4079
4265
  };
4080
4266
  url: "/event";
4081
4267
  };