@kilocode/sdk 7.0.46 → 7.0.48

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.
@@ -453,6 +453,7 @@ export type CompactionPart = {
453
453
  messageID: string;
454
454
  type: "compaction";
455
455
  auto: boolean;
456
+ overflow?: boolean;
456
457
  };
457
458
  export type Part = TextPart | SubtaskPart | ReasoningPart | FilePart | ToolPart | StepStartPart | StepFinishPart | SnapshotPart | PatchPart | AgentPart | RetryPart | CompactionPart;
458
459
  export type EventMessagePartUpdated = {
@@ -696,6 +697,7 @@ export type Session = {
696
697
  id: string;
697
698
  slug: string;
698
699
  projectID: string;
700
+ workspaceID?: string;
699
701
  directory: string;
700
702
  parentID?: string;
701
703
  summary?: {
@@ -774,6 +776,18 @@ export type EventVcsBranchUpdated = {
774
776
  branch?: string;
775
777
  };
776
778
  };
779
+ export type EventWorkspaceReady = {
780
+ type: "workspace.ready";
781
+ properties: {
782
+ name: string;
783
+ };
784
+ };
785
+ export type EventWorkspaceFailed = {
786
+ type: "workspace.failed";
787
+ properties: {
788
+ message: string;
789
+ };
790
+ };
777
791
  export type Pty = {
778
792
  id: string;
779
793
  title: string;
@@ -821,7 +835,7 @@ export type EventWorktreeFailed = {
821
835
  message: string;
822
836
  };
823
837
  };
824
- 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 | EventSessionTurnOpen | EventSessionTurnClose | EventVcsBranchUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventWorktreeReady | EventWorktreeFailed;
838
+ 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 | EventSessionTurnOpen | EventSessionTurnClose | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventWorktreeReady | EventWorktreeFailed;
825
839
  export type GlobalEvent = {
826
840
  directory: string;
827
841
  payload: Event;
@@ -1257,6 +1271,10 @@ export type Config = {
1257
1271
  * Enable the batch tool
1258
1272
  */
1259
1273
  batch_tool?: boolean;
1274
+ /**
1275
+ * Enable AI-powered codebase search
1276
+ */
1277
+ codebase_search?: boolean;
1260
1278
  /**
1261
1279
  * Enable telemetry. Set to false to opt-out.
1262
1280
  */
@@ -1396,6 +1414,15 @@ export type ToolListItem = {
1396
1414
  parameters: unknown;
1397
1415
  };
1398
1416
  export type ToolList = Array<ToolListItem>;
1417
+ export type Workspace = {
1418
+ id: string;
1419
+ type: string;
1420
+ branch: string | null;
1421
+ name: string | null;
1422
+ directory: string | null;
1423
+ extra: unknown | null;
1424
+ projectID: string;
1425
+ };
1399
1426
  export type Worktree = {
1400
1427
  name: string;
1401
1428
  branch: string;
@@ -1414,6 +1441,18 @@ export type WorktreeRemoveInput = {
1414
1441
  export type WorktreeResetInput = {
1415
1442
  directory: string;
1416
1443
  };
1444
+ export type WorktreeDiffItem = {
1445
+ file: string;
1446
+ before: string;
1447
+ after: string;
1448
+ additions: number;
1449
+ deletions: number;
1450
+ status?: "added" | "deleted" | "modified";
1451
+ tracked: boolean;
1452
+ generatedLike: boolean;
1453
+ summarized: boolean;
1454
+ stamp: string;
1455
+ };
1417
1456
  export type ProjectSummary = {
1418
1457
  id: string;
1419
1458
  name?: string;
@@ -1423,6 +1462,7 @@ export type GlobalSession = {
1423
1462
  id: string;
1424
1463
  slug: string;
1425
1464
  projectID: string;
1465
+ workspaceID?: string;
1426
1466
  directory: string;
1427
1467
  parentID?: string;
1428
1468
  summary?: {
@@ -1747,6 +1787,7 @@ export type ProjectListData = {
1747
1787
  path?: never;
1748
1788
  query?: {
1749
1789
  directory?: string;
1790
+ workspace?: string;
1750
1791
  };
1751
1792
  url: "/project";
1752
1793
  };
@@ -1762,6 +1803,7 @@ export type ProjectCurrentData = {
1762
1803
  path?: never;
1763
1804
  query?: {
1764
1805
  directory?: string;
1806
+ workspace?: string;
1765
1807
  };
1766
1808
  url: "/project/current";
1767
1809
  };
@@ -1792,6 +1834,7 @@ export type ProjectUpdateData = {
1792
1834
  };
1793
1835
  query?: {
1794
1836
  directory?: string;
1837
+ workspace?: string;
1795
1838
  };
1796
1839
  url: "/project/{projectID}";
1797
1840
  };
@@ -1818,6 +1861,7 @@ export type PtyListData = {
1818
1861
  path?: never;
1819
1862
  query?: {
1820
1863
  directory?: string;
1864
+ workspace?: string;
1821
1865
  };
1822
1866
  url: "/pty";
1823
1867
  };
@@ -1841,6 +1885,7 @@ export type PtyCreateData = {
1841
1885
  path?: never;
1842
1886
  query?: {
1843
1887
  directory?: string;
1888
+ workspace?: string;
1844
1889
  };
1845
1890
  url: "/pty";
1846
1891
  };
@@ -1865,6 +1910,7 @@ export type PtyRemoveData = {
1865
1910
  };
1866
1911
  query?: {
1867
1912
  directory?: string;
1913
+ workspace?: string;
1868
1914
  };
1869
1915
  url: "/pty/{ptyID}";
1870
1916
  };
@@ -1889,6 +1935,7 @@ export type PtyGetData = {
1889
1935
  };
1890
1936
  query?: {
1891
1937
  directory?: string;
1938
+ workspace?: string;
1892
1939
  };
1893
1940
  url: "/pty/{ptyID}";
1894
1941
  };
@@ -1919,6 +1966,7 @@ export type PtyUpdateData = {
1919
1966
  };
1920
1967
  query?: {
1921
1968
  directory?: string;
1969
+ workspace?: string;
1922
1970
  };
1923
1971
  url: "/pty/{ptyID}";
1924
1972
  };
@@ -1943,6 +1991,7 @@ export type PtyConnectData = {
1943
1991
  };
1944
1992
  query?: {
1945
1993
  directory?: string;
1994
+ workspace?: string;
1946
1995
  };
1947
1996
  url: "/pty/{ptyID}/connect";
1948
1997
  };
@@ -1965,6 +2014,7 @@ export type ConfigGetData = {
1965
2014
  path?: never;
1966
2015
  query?: {
1967
2016
  directory?: string;
2017
+ workspace?: string;
1968
2018
  };
1969
2019
  url: "/config";
1970
2020
  };
@@ -1980,6 +2030,7 @@ export type ConfigUpdateData = {
1980
2030
  path?: never;
1981
2031
  query?: {
1982
2032
  directory?: string;
2033
+ workspace?: string;
1983
2034
  };
1984
2035
  url: "/config";
1985
2036
  };
@@ -2002,6 +2053,7 @@ export type ConfigProvidersData = {
2002
2053
  path?: never;
2003
2054
  query?: {
2004
2055
  directory?: string;
2056
+ workspace?: string;
2005
2057
  };
2006
2058
  url: "/config/providers";
2007
2059
  };
@@ -2022,6 +2074,7 @@ export type ToolIdsData = {
2022
2074
  path?: never;
2023
2075
  query?: {
2024
2076
  directory?: string;
2077
+ workspace?: string;
2025
2078
  };
2026
2079
  url: "/experimental/tool/ids";
2027
2080
  };
@@ -2044,6 +2097,7 @@ export type ToolListData = {
2044
2097
  path?: never;
2045
2098
  query: {
2046
2099
  directory?: string;
2100
+ workspace?: string;
2047
2101
  provider: string;
2048
2102
  model: string;
2049
2103
  };
@@ -2063,11 +2117,81 @@ export type ToolListResponses = {
2063
2117
  200: ToolList;
2064
2118
  };
2065
2119
  export type ToolListResponse = ToolListResponses[keyof ToolListResponses];
2120
+ export type ExperimentalWorkspaceListData = {
2121
+ body?: never;
2122
+ path?: never;
2123
+ query?: {
2124
+ directory?: string;
2125
+ workspace?: string;
2126
+ };
2127
+ url: "/experimental/workspace";
2128
+ };
2129
+ export type ExperimentalWorkspaceListResponses = {
2130
+ /**
2131
+ * Workspaces
2132
+ */
2133
+ 200: Array<Workspace>;
2134
+ };
2135
+ export type ExperimentalWorkspaceListResponse = ExperimentalWorkspaceListResponses[keyof ExperimentalWorkspaceListResponses];
2136
+ export type ExperimentalWorkspaceCreateData = {
2137
+ body?: {
2138
+ id?: string;
2139
+ type: string;
2140
+ branch: string | null;
2141
+ extra: unknown | null;
2142
+ };
2143
+ path?: never;
2144
+ query?: {
2145
+ directory?: string;
2146
+ workspace?: string;
2147
+ };
2148
+ url: "/experimental/workspace";
2149
+ };
2150
+ export type ExperimentalWorkspaceCreateErrors = {
2151
+ /**
2152
+ * Bad request
2153
+ */
2154
+ 400: BadRequestError;
2155
+ };
2156
+ export type ExperimentalWorkspaceCreateError = ExperimentalWorkspaceCreateErrors[keyof ExperimentalWorkspaceCreateErrors];
2157
+ export type ExperimentalWorkspaceCreateResponses = {
2158
+ /**
2159
+ * Workspace created
2160
+ */
2161
+ 200: Workspace;
2162
+ };
2163
+ export type ExperimentalWorkspaceCreateResponse = ExperimentalWorkspaceCreateResponses[keyof ExperimentalWorkspaceCreateResponses];
2164
+ export type ExperimentalWorkspaceRemoveData = {
2165
+ body?: never;
2166
+ path: {
2167
+ id: string;
2168
+ };
2169
+ query?: {
2170
+ directory?: string;
2171
+ workspace?: string;
2172
+ };
2173
+ url: "/experimental/workspace/{id}";
2174
+ };
2175
+ export type ExperimentalWorkspaceRemoveErrors = {
2176
+ /**
2177
+ * Bad request
2178
+ */
2179
+ 400: BadRequestError;
2180
+ };
2181
+ export type ExperimentalWorkspaceRemoveError = ExperimentalWorkspaceRemoveErrors[keyof ExperimentalWorkspaceRemoveErrors];
2182
+ export type ExperimentalWorkspaceRemoveResponses = {
2183
+ /**
2184
+ * Workspace removed
2185
+ */
2186
+ 200: Workspace;
2187
+ };
2188
+ export type ExperimentalWorkspaceRemoveResponse = ExperimentalWorkspaceRemoveResponses[keyof ExperimentalWorkspaceRemoveResponses];
2066
2189
  export type WorktreeRemoveData = {
2067
2190
  body?: WorktreeRemoveInput;
2068
2191
  path?: never;
2069
2192
  query?: {
2070
2193
  directory?: string;
2194
+ workspace?: string;
2071
2195
  };
2072
2196
  url: "/experimental/worktree";
2073
2197
  };
@@ -2090,6 +2214,7 @@ export type WorktreeListData = {
2090
2214
  path?: never;
2091
2215
  query?: {
2092
2216
  directory?: string;
2217
+ workspace?: string;
2093
2218
  };
2094
2219
  url: "/experimental/worktree";
2095
2220
  };
@@ -2105,6 +2230,7 @@ export type WorktreeCreateData = {
2105
2230
  path?: never;
2106
2231
  query?: {
2107
2232
  directory?: string;
2233
+ workspace?: string;
2108
2234
  };
2109
2235
  url: "/experimental/worktree";
2110
2236
  };
@@ -2127,6 +2253,7 @@ export type WorktreeResetData = {
2127
2253
  path?: never;
2128
2254
  query?: {
2129
2255
  directory?: string;
2256
+ workspace?: string;
2130
2257
  };
2131
2258
  url: "/experimental/worktree/reset";
2132
2259
  };
@@ -2149,6 +2276,7 @@ export type WorktreeDiffData = {
2149
2276
  path?: never;
2150
2277
  query?: {
2151
2278
  directory?: string;
2279
+ workspace?: string;
2152
2280
  /**
2153
2281
  * Base branch or ref to diff against
2154
2282
  */
@@ -2170,6 +2298,64 @@ export type WorktreeDiffResponses = {
2170
2298
  200: Array<FileDiff>;
2171
2299
  };
2172
2300
  export type WorktreeDiffResponse = WorktreeDiffResponses[keyof WorktreeDiffResponses];
2301
+ export type WorktreeDiffSummaryData = {
2302
+ body?: never;
2303
+ path?: never;
2304
+ query?: {
2305
+ directory?: string;
2306
+ workspace?: string;
2307
+ /**
2308
+ * Base branch or ref to diff against
2309
+ */
2310
+ base?: string;
2311
+ };
2312
+ url: "/experimental/worktree/diff/summary";
2313
+ };
2314
+ export type WorktreeDiffSummaryErrors = {
2315
+ /**
2316
+ * Bad request
2317
+ */
2318
+ 400: BadRequestError;
2319
+ };
2320
+ export type WorktreeDiffSummaryError = WorktreeDiffSummaryErrors[keyof WorktreeDiffSummaryErrors];
2321
+ export type WorktreeDiffSummaryResponses = {
2322
+ /**
2323
+ * Diff summary items
2324
+ */
2325
+ 200: Array<WorktreeDiffItem>;
2326
+ };
2327
+ export type WorktreeDiffSummaryResponse = WorktreeDiffSummaryResponses[keyof WorktreeDiffSummaryResponses];
2328
+ export type WorktreeDiffFileData = {
2329
+ body?: never;
2330
+ path?: never;
2331
+ query: {
2332
+ directory?: string;
2333
+ workspace?: string;
2334
+ /**
2335
+ * Base branch or ref to diff against
2336
+ */
2337
+ base?: string;
2338
+ /**
2339
+ * Relative file path to load diff contents for
2340
+ */
2341
+ file: string;
2342
+ };
2343
+ url: "/experimental/worktree/diff/file";
2344
+ };
2345
+ export type WorktreeDiffFileErrors = {
2346
+ /**
2347
+ * Bad request
2348
+ */
2349
+ 400: BadRequestError;
2350
+ };
2351
+ export type WorktreeDiffFileError = WorktreeDiffFileErrors[keyof WorktreeDiffFileErrors];
2352
+ export type WorktreeDiffFileResponses = {
2353
+ /**
2354
+ * Diff detail item
2355
+ */
2356
+ 200: WorktreeDiffItem | null;
2357
+ };
2358
+ export type WorktreeDiffFileResponse = WorktreeDiffFileResponses[keyof WorktreeDiffFileResponses];
2173
2359
  export type ExperimentalSessionListData = {
2174
2360
  body?: never;
2175
2361
  path?: never;
@@ -2178,6 +2364,7 @@ export type ExperimentalSessionListData = {
2178
2364
  * Filter sessions by project directory
2179
2365
  */
2180
2366
  directory?: string;
2367
+ workspace?: string;
2181
2368
  /**
2182
2369
  * Only return root sessions (no parentID)
2183
2370
  */
@@ -2217,6 +2404,7 @@ export type ExperimentalResourceListData = {
2217
2404
  path?: never;
2218
2405
  query?: {
2219
2406
  directory?: string;
2407
+ workspace?: string;
2220
2408
  };
2221
2409
  url: "/experimental/resource";
2222
2410
  };
@@ -2237,6 +2425,7 @@ export type SessionListData = {
2237
2425
  * Filter sessions by project directory
2238
2426
  */
2239
2427
  directory?: string;
2428
+ workspace?: string;
2240
2429
  /**
2241
2430
  * Only return root sessions (no parentID)
2242
2431
  */
@@ -2273,6 +2462,7 @@ export type SessionCreateData = {
2273
2462
  path?: never;
2274
2463
  query?: {
2275
2464
  directory?: string;
2465
+ workspace?: string;
2276
2466
  };
2277
2467
  url: "/session";
2278
2468
  };
@@ -2295,6 +2485,7 @@ export type SessionStatusData = {
2295
2485
  path?: never;
2296
2486
  query?: {
2297
2487
  directory?: string;
2488
+ workspace?: string;
2298
2489
  };
2299
2490
  url: "/session/status";
2300
2491
  };
@@ -2321,6 +2512,7 @@ export type SessionDeleteData = {
2321
2512
  };
2322
2513
  query?: {
2323
2514
  directory?: string;
2515
+ workspace?: string;
2324
2516
  };
2325
2517
  url: "/session/{sessionID}";
2326
2518
  };
@@ -2349,6 +2541,7 @@ export type SessionGetData = {
2349
2541
  };
2350
2542
  query?: {
2351
2543
  directory?: string;
2544
+ workspace?: string;
2352
2545
  };
2353
2546
  url: "/session/{sessionID}";
2354
2547
  };
@@ -2382,6 +2575,7 @@ export type SessionUpdateData = {
2382
2575
  };
2383
2576
  query?: {
2384
2577
  directory?: string;
2578
+ workspace?: string;
2385
2579
  };
2386
2580
  url: "/session/{sessionID}";
2387
2581
  };
@@ -2410,6 +2604,7 @@ export type SessionChildrenData = {
2410
2604
  };
2411
2605
  query?: {
2412
2606
  directory?: string;
2607
+ workspace?: string;
2413
2608
  };
2414
2609
  url: "/session/{sessionID}/children";
2415
2610
  };
@@ -2441,6 +2636,7 @@ export type SessionTodoData = {
2441
2636
  };
2442
2637
  query?: {
2443
2638
  directory?: string;
2639
+ workspace?: string;
2444
2640
  };
2445
2641
  url: "/session/{sessionID}/todo";
2446
2642
  };
@@ -2476,6 +2672,7 @@ export type SessionInitData = {
2476
2672
  };
2477
2673
  query?: {
2478
2674
  directory?: string;
2675
+ workspace?: string;
2479
2676
  };
2480
2677
  url: "/session/{sessionID}/init";
2481
2678
  };
@@ -2506,6 +2703,7 @@ export type SessionForkData = {
2506
2703
  };
2507
2704
  query?: {
2508
2705
  directory?: string;
2706
+ workspace?: string;
2509
2707
  };
2510
2708
  url: "/session/{sessionID}/fork";
2511
2709
  };
@@ -2523,6 +2721,7 @@ export type SessionAbortData = {
2523
2721
  };
2524
2722
  query?: {
2525
2723
  directory?: string;
2724
+ workspace?: string;
2526
2725
  };
2527
2726
  url: "/session/{sessionID}/abort";
2528
2727
  };
@@ -2551,6 +2750,7 @@ export type SessionUnshareData = {
2551
2750
  };
2552
2751
  query?: {
2553
2752
  directory?: string;
2753
+ workspace?: string;
2554
2754
  };
2555
2755
  url: "/session/{sessionID}/share";
2556
2756
  };
@@ -2579,6 +2779,7 @@ export type SessionShareData = {
2579
2779
  };
2580
2780
  query?: {
2581
2781
  directory?: string;
2782
+ workspace?: string;
2582
2783
  };
2583
2784
  url: "/session/{sessionID}/share";
2584
2785
  };
@@ -2607,6 +2808,7 @@ export type SessionDiffData = {
2607
2808
  };
2608
2809
  query?: {
2609
2810
  directory?: string;
2811
+ workspace?: string;
2610
2812
  messageID?: string;
2611
2813
  };
2612
2814
  url: "/session/{sessionID}/diff";
@@ -2632,6 +2834,7 @@ export type SessionSummarizeData = {
2632
2834
  };
2633
2835
  query?: {
2634
2836
  directory?: string;
2837
+ workspace?: string;
2635
2838
  };
2636
2839
  url: "/session/{sessionID}/summarize";
2637
2840
  };
@@ -2663,6 +2866,7 @@ export type SessionMessagesData = {
2663
2866
  };
2664
2867
  query?: {
2665
2868
  directory?: string;
2869
+ workspace?: string;
2666
2870
  limit?: number;
2667
2871
  };
2668
2872
  url: "/session/{sessionID}/message";
@@ -2723,6 +2927,7 @@ export type SessionPromptData = {
2723
2927
  };
2724
2928
  query?: {
2725
2929
  directory?: string;
2930
+ workspace?: string;
2726
2931
  };
2727
2932
  url: "/session/{sessionID}/message";
2728
2933
  };
@@ -2761,6 +2966,7 @@ export type SessionDeleteMessageData = {
2761
2966
  };
2762
2967
  query?: {
2763
2968
  directory?: string;
2969
+ workspace?: string;
2764
2970
  };
2765
2971
  url: "/session/{sessionID}/message/{messageID}";
2766
2972
  };
@@ -2796,6 +3002,7 @@ export type SessionMessageData = {
2796
3002
  };
2797
3003
  query?: {
2798
3004
  directory?: string;
3005
+ workspace?: string;
2799
3006
  };
2800
3007
  url: "/session/{sessionID}/message/{messageID}";
2801
3008
  };
@@ -2838,6 +3045,7 @@ export type PartDeleteData = {
2838
3045
  };
2839
3046
  query?: {
2840
3047
  directory?: string;
3048
+ workspace?: string;
2841
3049
  };
2842
3050
  url: "/session/{sessionID}/message/{messageID}/part/{partID}";
2843
3051
  };
@@ -2877,6 +3085,7 @@ export type PartUpdateData = {
2877
3085
  };
2878
3086
  query?: {
2879
3087
  directory?: string;
3088
+ workspace?: string;
2880
3089
  };
2881
3090
  url: "/session/{sessionID}/message/{messageID}/part/{partID}";
2882
3091
  };
@@ -2933,6 +3142,7 @@ export type SessionPromptAsyncData = {
2933
3142
  };
2934
3143
  query?: {
2935
3144
  directory?: string;
3145
+ workspace?: string;
2936
3146
  };
2937
3147
  url: "/session/{sessionID}/prompt_async";
2938
3148
  };
@@ -2979,6 +3189,7 @@ export type SessionCommandData = {
2979
3189
  };
2980
3190
  query?: {
2981
3191
  directory?: string;
3192
+ workspace?: string;
2982
3193
  };
2983
3194
  url: "/session/{sessionID}/command";
2984
3195
  };
@@ -3020,6 +3231,7 @@ export type SessionShellData = {
3020
3231
  };
3021
3232
  query?: {
3022
3233
  directory?: string;
3234
+ workspace?: string;
3023
3235
  };
3024
3236
  url: "/session/{sessionID}/shell";
3025
3237
  };
@@ -3051,6 +3263,7 @@ export type SessionRevertData = {
3051
3263
  };
3052
3264
  query?: {
3053
3265
  directory?: string;
3266
+ workspace?: string;
3054
3267
  };
3055
3268
  url: "/session/{sessionID}/revert";
3056
3269
  };
@@ -3079,6 +3292,7 @@ export type SessionUnrevertData = {
3079
3292
  };
3080
3293
  query?: {
3081
3294
  directory?: string;
3295
+ workspace?: string;
3082
3296
  };
3083
3297
  url: "/session/{sessionID}/unrevert";
3084
3298
  };
@@ -3110,6 +3324,7 @@ export type PermissionRespondData = {
3110
3324
  };
3111
3325
  query?: {
3112
3326
  directory?: string;
3327
+ workspace?: string;
3113
3328
  };
3114
3329
  url: "/session/{sessionID}/permissions/{permissionID}";
3115
3330
  };
@@ -3141,6 +3356,7 @@ export type PermissionReplyData = {
3141
3356
  };
3142
3357
  query?: {
3143
3358
  directory?: string;
3359
+ workspace?: string;
3144
3360
  };
3145
3361
  url: "/permission/{requestID}/reply";
3146
3362
  };
@@ -3162,11 +3378,44 @@ export type PermissionReplyResponses = {
3162
3378
  200: boolean;
3163
3379
  };
3164
3380
  export type PermissionReplyResponse = PermissionReplyResponses[keyof PermissionReplyResponses];
3381
+ export type PermissionSaveAlwaysRulesData = {
3382
+ body?: {
3383
+ approvedAlways?: Array<string>;
3384
+ deniedAlways?: Array<string>;
3385
+ };
3386
+ path: {
3387
+ requestID: string;
3388
+ };
3389
+ query?: {
3390
+ directory?: string;
3391
+ workspace?: string;
3392
+ };
3393
+ url: "/permission/{requestID}/always-rules";
3394
+ };
3395
+ export type PermissionSaveAlwaysRulesErrors = {
3396
+ /**
3397
+ * Bad request
3398
+ */
3399
+ 400: BadRequestError;
3400
+ /**
3401
+ * Not found
3402
+ */
3403
+ 404: NotFoundError;
3404
+ };
3405
+ export type PermissionSaveAlwaysRulesError = PermissionSaveAlwaysRulesErrors[keyof PermissionSaveAlwaysRulesErrors];
3406
+ export type PermissionSaveAlwaysRulesResponses = {
3407
+ /**
3408
+ * Always rules saved successfully
3409
+ */
3410
+ 200: boolean;
3411
+ };
3412
+ export type PermissionSaveAlwaysRulesResponse = PermissionSaveAlwaysRulesResponses[keyof PermissionSaveAlwaysRulesResponses];
3165
3413
  export type PermissionListData = {
3166
3414
  body?: never;
3167
3415
  path?: never;
3168
3416
  query?: {
3169
3417
  directory?: string;
3418
+ workspace?: string;
3170
3419
  };
3171
3420
  url: "/permission";
3172
3421
  };
@@ -3182,6 +3431,7 @@ export type QuestionListData = {
3182
3431
  path?: never;
3183
3432
  query?: {
3184
3433
  directory?: string;
3434
+ workspace?: string;
3185
3435
  };
3186
3436
  url: "/question";
3187
3437
  };
@@ -3204,6 +3454,7 @@ export type QuestionReplyData = {
3204
3454
  };
3205
3455
  query?: {
3206
3456
  directory?: string;
3457
+ workspace?: string;
3207
3458
  };
3208
3459
  url: "/question/{requestID}/reply";
3209
3460
  };
@@ -3232,6 +3483,7 @@ export type QuestionRejectData = {
3232
3483
  };
3233
3484
  query?: {
3234
3485
  directory?: string;
3486
+ workspace?: string;
3235
3487
  };
3236
3488
  url: "/question/{requestID}/reject";
3237
3489
  };
@@ -3258,6 +3510,7 @@ export type ProviderListData = {
3258
3510
  path?: never;
3259
3511
  query?: {
3260
3512
  directory?: string;
3513
+ workspace?: string;
3261
3514
  };
3262
3515
  url: "/provider";
3263
3516
  };
@@ -3340,6 +3593,7 @@ export type ProviderAuthData = {
3340
3593
  path?: never;
3341
3594
  query?: {
3342
3595
  directory?: string;
3596
+ workspace?: string;
3343
3597
  };
3344
3598
  url: "/provider/auth";
3345
3599
  };
@@ -3367,6 +3621,7 @@ export type ProviderOauthAuthorizeData = {
3367
3621
  };
3368
3622
  query?: {
3369
3623
  directory?: string;
3624
+ workspace?: string;
3370
3625
  };
3371
3626
  url: "/provider/{providerID}/oauth/authorize";
3372
3627
  };
@@ -3403,6 +3658,7 @@ export type ProviderOauthCallbackData = {
3403
3658
  };
3404
3659
  query?: {
3405
3660
  directory?: string;
3661
+ workspace?: string;
3406
3662
  };
3407
3663
  url: "/provider/{providerID}/oauth/callback";
3408
3664
  };
@@ -3436,6 +3692,7 @@ export type TelemetryCaptureData = {
3436
3692
  path?: never;
3437
3693
  query?: {
3438
3694
  directory?: string;
3695
+ workspace?: string;
3439
3696
  };
3440
3697
  url: "/telemetry/capture";
3441
3698
  };
@@ -3471,6 +3728,7 @@ export type CommitMessageGenerateData = {
3471
3728
  path?: never;
3472
3729
  query?: {
3473
3730
  directory?: string;
3731
+ workspace?: string;
3474
3732
  };
3475
3733
  url: "/commit-message";
3476
3734
  };
@@ -3500,6 +3758,7 @@ export type EnhancePromptEnhanceData = {
3500
3758
  path?: never;
3501
3759
  query?: {
3502
3760
  directory?: string;
3761
+ workspace?: string;
3503
3762
  };
3504
3763
  url: "/enhance-prompt";
3505
3764
  };
@@ -3519,11 +3778,62 @@ export type EnhancePromptEnhanceResponses = {
3519
3778
  };
3520
3779
  };
3521
3780
  export type EnhancePromptEnhanceResponse = EnhancePromptEnhanceResponses[keyof EnhancePromptEnhanceResponses];
3781
+ export type KilocodeRemoveSkillData = {
3782
+ body?: {
3783
+ location: string;
3784
+ };
3785
+ path?: never;
3786
+ query?: {
3787
+ directory?: string;
3788
+ workspace?: string;
3789
+ };
3790
+ url: "/kilocode/skill/remove";
3791
+ };
3792
+ export type KilocodeRemoveSkillErrors = {
3793
+ /**
3794
+ * Bad request
3795
+ */
3796
+ 400: BadRequestError;
3797
+ };
3798
+ export type KilocodeRemoveSkillError = KilocodeRemoveSkillErrors[keyof KilocodeRemoveSkillErrors];
3799
+ export type KilocodeRemoveSkillResponses = {
3800
+ /**
3801
+ * Skill removed
3802
+ */
3803
+ 200: boolean;
3804
+ };
3805
+ export type KilocodeRemoveSkillResponse = KilocodeRemoveSkillResponses[keyof KilocodeRemoveSkillResponses];
3806
+ export type KilocodeRemoveAgentData = {
3807
+ body?: {
3808
+ name: string;
3809
+ };
3810
+ path?: never;
3811
+ query?: {
3812
+ directory?: string;
3813
+ workspace?: string;
3814
+ };
3815
+ url: "/kilocode/agent/remove";
3816
+ };
3817
+ export type KilocodeRemoveAgentErrors = {
3818
+ /**
3819
+ * Bad request
3820
+ */
3821
+ 400: BadRequestError;
3822
+ };
3823
+ export type KilocodeRemoveAgentError = KilocodeRemoveAgentErrors[keyof KilocodeRemoveAgentErrors];
3824
+ export type KilocodeRemoveAgentResponses = {
3825
+ /**
3826
+ * Agent removed
3827
+ */
3828
+ 200: boolean;
3829
+ };
3830
+ export type KilocodeRemoveAgentResponse = KilocodeRemoveAgentResponses[keyof KilocodeRemoveAgentResponses];
3522
3831
  export type KiloProfileData = {
3523
3832
  body?: never;
3524
3833
  path?: never;
3525
3834
  query?: {
3526
3835
  directory?: string;
3836
+ workspace?: string;
3527
3837
  };
3528
3838
  url: "/kilo/profile";
3529
3839
  };
@@ -3562,6 +3872,7 @@ export type KiloOrganizationSetData = {
3562
3872
  path?: never;
3563
3873
  query?: {
3564
3874
  directory?: string;
3875
+ workspace?: string;
3565
3876
  };
3566
3877
  url: "/kilo/organization";
3567
3878
  };
@@ -3590,6 +3901,7 @@ export type KiloFimData = {
3590
3901
  path?: never;
3591
3902
  query?: {
3592
3903
  directory?: string;
3904
+ workspace?: string;
3593
3905
  };
3594
3906
  url: "/kilo/fim";
3595
3907
  };
@@ -3623,6 +3935,7 @@ export type KiloNotificationsData = {
3623
3935
  path?: never;
3624
3936
  query?: {
3625
3937
  directory?: string;
3938
+ workspace?: string;
3626
3939
  };
3627
3940
  url: "/kilo/notifications";
3628
3941
  };
@@ -3656,6 +3969,7 @@ export type KiloCloudSessionGetData = {
3656
3969
  };
3657
3970
  query?: {
3658
3971
  directory?: string;
3972
+ workspace?: string;
3659
3973
  };
3660
3974
  url: "/kilo/cloud/session/{id}";
3661
3975
  };
@@ -3679,6 +3993,7 @@ export type KiloCloudSessionImportData = {
3679
3993
  path?: never;
3680
3994
  query?: {
3681
3995
  directory?: string;
3996
+ workspace?: string;
3682
3997
  };
3683
3998
  url: "/kilo/cloud/session/import";
3684
3999
  };
@@ -3704,6 +4019,7 @@ export type KiloCloudSessionsData = {
3704
4019
  path?: never;
3705
4020
  query?: {
3706
4021
  directory?: string;
4022
+ workspace?: string;
3707
4023
  cursor?: string;
3708
4024
  limit?: number;
3709
4025
  gitUrl?: string;
@@ -3738,6 +4054,7 @@ export type FindTextData = {
3738
4054
  path?: never;
3739
4055
  query: {
3740
4056
  directory?: string;
4057
+ workspace?: string;
3741
4058
  pattern: string;
3742
4059
  };
3743
4060
  url: "/find";
@@ -3770,6 +4087,7 @@ export type FindFilesData = {
3770
4087
  path?: never;
3771
4088
  query: {
3772
4089
  directory?: string;
4090
+ workspace?: string;
3773
4091
  query: string;
3774
4092
  dirs?: "true" | "false";
3775
4093
  type?: "file" | "directory";
@@ -3789,6 +4107,7 @@ export type FindSymbolsData = {
3789
4107
  path?: never;
3790
4108
  query: {
3791
4109
  directory?: string;
4110
+ workspace?: string;
3792
4111
  query: string;
3793
4112
  };
3794
4113
  url: "/find/symbol";
@@ -3805,6 +4124,7 @@ export type FileListData = {
3805
4124
  path?: never;
3806
4125
  query: {
3807
4126
  directory?: string;
4127
+ workspace?: string;
3808
4128
  path: string;
3809
4129
  };
3810
4130
  url: "/file";
@@ -3821,6 +4141,7 @@ export type FileReadData = {
3821
4141
  path?: never;
3822
4142
  query: {
3823
4143
  directory?: string;
4144
+ workspace?: string;
3824
4145
  path: string;
3825
4146
  };
3826
4147
  url: "/file/content";
@@ -3837,6 +4158,7 @@ export type FileStatusData = {
3837
4158
  path?: never;
3838
4159
  query?: {
3839
4160
  directory?: string;
4161
+ workspace?: string;
3840
4162
  };
3841
4163
  url: "/file/status";
3842
4164
  };
@@ -3852,6 +4174,7 @@ export type McpStatusData = {
3852
4174
  path?: never;
3853
4175
  query?: {
3854
4176
  directory?: string;
4177
+ workspace?: string;
3855
4178
  };
3856
4179
  url: "/mcp";
3857
4180
  };
@@ -3872,6 +4195,7 @@ export type McpAddData = {
3872
4195
  path?: never;
3873
4196
  query?: {
3874
4197
  directory?: string;
4198
+ workspace?: string;
3875
4199
  };
3876
4200
  url: "/mcp";
3877
4201
  };
@@ -3898,6 +4222,7 @@ export type McpAuthRemoveData = {
3898
4222
  };
3899
4223
  query?: {
3900
4224
  directory?: string;
4225
+ workspace?: string;
3901
4226
  };
3902
4227
  url: "/mcp/{name}/auth";
3903
4228
  };
@@ -3924,6 +4249,7 @@ export type McpAuthStartData = {
3924
4249
  };
3925
4250
  query?: {
3926
4251
  directory?: string;
4252
+ workspace?: string;
3927
4253
  };
3928
4254
  url: "/mcp/{name}/auth";
3929
4255
  };
@@ -3962,6 +4288,7 @@ export type McpAuthCallbackData = {
3962
4288
  };
3963
4289
  query?: {
3964
4290
  directory?: string;
4291
+ workspace?: string;
3965
4292
  };
3966
4293
  url: "/mcp/{name}/auth/callback";
3967
4294
  };
@@ -3990,6 +4317,7 @@ export type McpAuthAuthenticateData = {
3990
4317
  };
3991
4318
  query?: {
3992
4319
  directory?: string;
4320
+ workspace?: string;
3993
4321
  };
3994
4322
  url: "/mcp/{name}/auth/authenticate";
3995
4323
  };
@@ -4018,6 +4346,7 @@ export type McpConnectData = {
4018
4346
  };
4019
4347
  query?: {
4020
4348
  directory?: string;
4349
+ workspace?: string;
4021
4350
  };
4022
4351
  url: "/mcp/{name}/connect";
4023
4352
  };
@@ -4035,6 +4364,7 @@ export type McpDisconnectData = {
4035
4364
  };
4036
4365
  query?: {
4037
4366
  directory?: string;
4367
+ workspace?: string;
4038
4368
  };
4039
4369
  url: "/mcp/{name}/disconnect";
4040
4370
  };
@@ -4052,6 +4382,7 @@ export type TuiAppendPromptData = {
4052
4382
  path?: never;
4053
4383
  query?: {
4054
4384
  directory?: string;
4385
+ workspace?: string;
4055
4386
  };
4056
4387
  url: "/tui/append-prompt";
4057
4388
  };
@@ -4074,6 +4405,7 @@ export type TuiOpenHelpData = {
4074
4405
  path?: never;
4075
4406
  query?: {
4076
4407
  directory?: string;
4408
+ workspace?: string;
4077
4409
  };
4078
4410
  url: "/tui/open-help";
4079
4411
  };
@@ -4089,6 +4421,7 @@ export type TuiOpenSessionsData = {
4089
4421
  path?: never;
4090
4422
  query?: {
4091
4423
  directory?: string;
4424
+ workspace?: string;
4092
4425
  };
4093
4426
  url: "/tui/open-sessions";
4094
4427
  };
@@ -4104,6 +4437,7 @@ export type TuiOpenThemesData = {
4104
4437
  path?: never;
4105
4438
  query?: {
4106
4439
  directory?: string;
4440
+ workspace?: string;
4107
4441
  };
4108
4442
  url: "/tui/open-themes";
4109
4443
  };
@@ -4119,6 +4453,7 @@ export type TuiOpenModelsData = {
4119
4453
  path?: never;
4120
4454
  query?: {
4121
4455
  directory?: string;
4456
+ workspace?: string;
4122
4457
  };
4123
4458
  url: "/tui/open-models";
4124
4459
  };
@@ -4134,6 +4469,7 @@ export type TuiSubmitPromptData = {
4134
4469
  path?: never;
4135
4470
  query?: {
4136
4471
  directory?: string;
4472
+ workspace?: string;
4137
4473
  };
4138
4474
  url: "/tui/submit-prompt";
4139
4475
  };
@@ -4149,6 +4485,7 @@ export type TuiClearPromptData = {
4149
4485
  path?: never;
4150
4486
  query?: {
4151
4487
  directory?: string;
4488
+ workspace?: string;
4152
4489
  };
4153
4490
  url: "/tui/clear-prompt";
4154
4491
  };
@@ -4166,6 +4503,7 @@ export type TuiExecuteCommandData = {
4166
4503
  path?: never;
4167
4504
  query?: {
4168
4505
  directory?: string;
4506
+ workspace?: string;
4169
4507
  };
4170
4508
  url: "/tui/execute-command";
4171
4509
  };
@@ -4196,6 +4534,7 @@ export type TuiShowToastData = {
4196
4534
  path?: never;
4197
4535
  query?: {
4198
4536
  directory?: string;
4537
+ workspace?: string;
4199
4538
  };
4200
4539
  url: "/tui/show-toast";
4201
4540
  };
@@ -4211,6 +4550,7 @@ export type TuiPublishData = {
4211
4550
  path?: never;
4212
4551
  query?: {
4213
4552
  directory?: string;
4553
+ workspace?: string;
4214
4554
  };
4215
4555
  url: "/tui/publish";
4216
4556
  };
@@ -4238,6 +4578,7 @@ export type TuiSelectSessionData = {
4238
4578
  path?: never;
4239
4579
  query?: {
4240
4580
  directory?: string;
4581
+ workspace?: string;
4241
4582
  };
4242
4583
  url: "/tui/select-session";
4243
4584
  };
@@ -4264,6 +4605,7 @@ export type TuiControlNextData = {
4264
4605
  path?: never;
4265
4606
  query?: {
4266
4607
  directory?: string;
4608
+ workspace?: string;
4267
4609
  };
4268
4610
  url: "/tui/control/next";
4269
4611
  };
@@ -4282,6 +4624,7 @@ export type TuiControlResponseData = {
4282
4624
  path?: never;
4283
4625
  query?: {
4284
4626
  directory?: string;
4627
+ workspace?: string;
4285
4628
  };
4286
4629
  url: "/tui/control/response";
4287
4630
  };
@@ -4297,6 +4640,7 @@ export type InstanceDisposeData = {
4297
4640
  path?: never;
4298
4641
  query?: {
4299
4642
  directory?: string;
4643
+ workspace?: string;
4300
4644
  };
4301
4645
  url: "/instance/dispose";
4302
4646
  };
@@ -4312,6 +4656,7 @@ export type PathGetData = {
4312
4656
  path?: never;
4313
4657
  query?: {
4314
4658
  directory?: string;
4659
+ workspace?: string;
4315
4660
  };
4316
4661
  url: "/path";
4317
4662
  };
@@ -4327,6 +4672,7 @@ export type VcsGetData = {
4327
4672
  path?: never;
4328
4673
  query?: {
4329
4674
  directory?: string;
4675
+ workspace?: string;
4330
4676
  };
4331
4677
  url: "/vcs";
4332
4678
  };
@@ -4342,6 +4688,7 @@ export type CommandListData = {
4342
4688
  path?: never;
4343
4689
  query?: {
4344
4690
  directory?: string;
4691
+ workspace?: string;
4345
4692
  };
4346
4693
  url: "/command";
4347
4694
  };
@@ -4376,6 +4723,7 @@ export type AppLogData = {
4376
4723
  path?: never;
4377
4724
  query?: {
4378
4725
  directory?: string;
4726
+ workspace?: string;
4379
4727
  };
4380
4728
  url: "/log";
4381
4729
  };
@@ -4398,6 +4746,7 @@ export type AppAgentsData = {
4398
4746
  path?: never;
4399
4747
  query?: {
4400
4748
  directory?: string;
4749
+ workspace?: string;
4401
4750
  };
4402
4751
  url: "/agent";
4403
4752
  };
@@ -4413,6 +4762,7 @@ export type AppSkillsData = {
4413
4762
  path?: never;
4414
4763
  query?: {
4415
4764
  directory?: string;
4765
+ workspace?: string;
4416
4766
  };
4417
4767
  url: "/skill";
4418
4768
  };
@@ -4433,6 +4783,7 @@ export type LspStatusData = {
4433
4783
  path?: never;
4434
4784
  query?: {
4435
4785
  directory?: string;
4786
+ workspace?: string;
4436
4787
  };
4437
4788
  url: "/lsp";
4438
4789
  };
@@ -4448,6 +4799,7 @@ export type FormatterStatusData = {
4448
4799
  path?: never;
4449
4800
  query?: {
4450
4801
  directory?: string;
4802
+ workspace?: string;
4451
4803
  };
4452
4804
  url: "/formatter";
4453
4805
  };
@@ -4463,6 +4815,7 @@ export type EventSubscribeData = {
4463
4815
  path?: never;
4464
4816
  query?: {
4465
4817
  directory?: string;
4818
+ workspace?: string;
4466
4819
  };
4467
4820
  url: "/event";
4468
4821
  };