@kilocode/sdk 7.2.3 → 7.2.4

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.
@@ -63,26 +63,6 @@ export declare class Global extends HeyApiClient {
63
63
  private _config?;
64
64
  get config(): Config;
65
65
  }
66
- export declare class Remote extends HeyApiClient {
67
- /**
68
- * Enable remote connection
69
- *
70
- * Enable WebSocket connection to UserConnectionDO for real-time session relay and commands.
71
- */
72
- enable<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<RemoteEnableResponses, unknown, ThrowOnError, "fields">;
73
- /**
74
- * Disable remote connection
75
- *
76
- * Close the remote WebSocket connection to UserConnectionDO.
77
- */
78
- disable<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<RemoteDisableResponses, unknown, ThrowOnError, "fields">;
79
- /**
80
- * Get remote connection status
81
- *
82
- * Get the current state of the remote WebSocket connection.
83
- */
84
- status<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<RemoteStatusResponses, unknown, ThrowOnError, "fields">;
85
- }
86
66
  export declare class Auth extends HeyApiClient {
87
67
  /**
88
68
  * Remove auth credentials
@@ -456,6 +436,7 @@ export declare class Session2 extends HeyApiClient {
456
436
  title?: string;
457
437
  permission?: PermissionRuleset;
458
438
  platform?: string;
439
+ workspaceID?: string;
459
440
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionCreateResponses, SessionCreateErrors, ThrowOnError, "fields">;
460
441
  /**
461
442
  * Get session status
@@ -974,6 +955,35 @@ export declare class Telemetry extends HeyApiClient {
974
955
  };
975
956
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TelemetryCaptureResponses, TelemetryCaptureErrors, ThrowOnError, "fields">;
976
957
  }
958
+ export declare class Remote extends HeyApiClient {
959
+ /**
960
+ * Enable remote connection
961
+ *
962
+ * Enable WebSocket connection to UserConnectionDO for real-time session relay and commands.
963
+ */
964
+ enable<ThrowOnError extends boolean = false>(parameters?: {
965
+ directory?: string;
966
+ workspace?: string;
967
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<RemoteEnableResponses, unknown, ThrowOnError, "fields">;
968
+ /**
969
+ * Disable remote connection
970
+ *
971
+ * Close the remote WebSocket connection to UserConnectionDO.
972
+ */
973
+ disable<ThrowOnError extends boolean = false>(parameters?: {
974
+ directory?: string;
975
+ workspace?: string;
976
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<RemoteDisableResponses, unknown, ThrowOnError, "fields">;
977
+ /**
978
+ * Get remote connection status
979
+ *
980
+ * Get the current state of the remote WebSocket connection.
981
+ */
982
+ status<ThrowOnError extends boolean = false>(parameters?: {
983
+ directory?: string;
984
+ workspace?: string;
985
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<RemoteStatusResponses, unknown, ThrowOnError, "fields">;
986
+ }
977
987
  export declare class CommitMessage extends HeyApiClient {
978
988
  /**
979
989
  * Generate commit message
@@ -1754,8 +1764,6 @@ export declare class KiloClient extends HeyApiClient {
1754
1764
  });
1755
1765
  private _global?;
1756
1766
  get global(): Global;
1757
- private _remote?;
1758
- get remote(): Remote;
1759
1767
  private _auth?;
1760
1768
  get auth(): Auth;
1761
1769
  private _project?;
@@ -1784,6 +1792,8 @@ export declare class KiloClient extends HeyApiClient {
1784
1792
  get provider(): Provider;
1785
1793
  private _telemetry?;
1786
1794
  get telemetry(): Telemetry;
1795
+ private _remote?;
1796
+ get remote(): Remote;
1787
1797
  private _commitMessage?;
1788
1798
  get commitMessage(): CommitMessage;
1789
1799
  private _enhancePrompt?;
@@ -91,41 +91,6 @@ export class Global extends HeyApiClient {
91
91
  return (this._config ??= new Config({ client: this.client }));
92
92
  }
93
93
  }
94
- export class Remote extends HeyApiClient {
95
- /**
96
- * Enable remote connection
97
- *
98
- * Enable WebSocket connection to UserConnectionDO for real-time session relay and commands.
99
- */
100
- enable(options) {
101
- return (options?.client ?? this.client).post({
102
- url: "/remote/enable",
103
- ...options,
104
- });
105
- }
106
- /**
107
- * Disable remote connection
108
- *
109
- * Close the remote WebSocket connection to UserConnectionDO.
110
- */
111
- disable(options) {
112
- return (options?.client ?? this.client).post({
113
- url: "/remote/disable",
114
- ...options,
115
- });
116
- }
117
- /**
118
- * Get remote connection status
119
- *
120
- * Get the current state of the remote WebSocket connection.
121
- */
122
- status(options) {
123
- return (options?.client ?? this.client).get({
124
- url: "/remote/status",
125
- ...options,
126
- });
127
- }
128
- }
129
94
  export class Auth extends HeyApiClient {
130
95
  /**
131
96
  * Remove auth credentials
@@ -874,6 +839,7 @@ export class Session2 extends HeyApiClient {
874
839
  { in: "body", key: "title" },
875
840
  { in: "body", key: "permission" },
876
841
  { in: "body", key: "platform" },
842
+ { in: "body", key: "workspaceID" },
877
843
  ],
878
844
  },
879
845
  ]);
@@ -1919,6 +1885,68 @@ export class Telemetry extends HeyApiClient {
1919
1885
  });
1920
1886
  }
1921
1887
  }
1888
+ export class Remote extends HeyApiClient {
1889
+ /**
1890
+ * Enable remote connection
1891
+ *
1892
+ * Enable WebSocket connection to UserConnectionDO for real-time session relay and commands.
1893
+ */
1894
+ enable(parameters, options) {
1895
+ const params = buildClientParams([parameters], [
1896
+ {
1897
+ args: [
1898
+ { in: "query", key: "directory" },
1899
+ { in: "query", key: "workspace" },
1900
+ ],
1901
+ },
1902
+ ]);
1903
+ return (options?.client ?? this.client).post({
1904
+ url: "/remote/enable",
1905
+ ...options,
1906
+ ...params,
1907
+ });
1908
+ }
1909
+ /**
1910
+ * Disable remote connection
1911
+ *
1912
+ * Close the remote WebSocket connection to UserConnectionDO.
1913
+ */
1914
+ disable(parameters, options) {
1915
+ const params = buildClientParams([parameters], [
1916
+ {
1917
+ args: [
1918
+ { in: "query", key: "directory" },
1919
+ { in: "query", key: "workspace" },
1920
+ ],
1921
+ },
1922
+ ]);
1923
+ return (options?.client ?? this.client).post({
1924
+ url: "/remote/disable",
1925
+ ...options,
1926
+ ...params,
1927
+ });
1928
+ }
1929
+ /**
1930
+ * Get remote connection status
1931
+ *
1932
+ * Get the current state of the remote WebSocket connection.
1933
+ */
1934
+ status(parameters, options) {
1935
+ const params = buildClientParams([parameters], [
1936
+ {
1937
+ args: [
1938
+ { in: "query", key: "directory" },
1939
+ { in: "query", key: "workspace" },
1940
+ ],
1941
+ },
1942
+ ]);
1943
+ return (options?.client ?? this.client).get({
1944
+ url: "/remote/status",
1945
+ ...options,
1946
+ ...params,
1947
+ });
1948
+ }
1949
+ }
1922
1950
  export class CommitMessage extends HeyApiClient {
1923
1951
  /**
1924
1952
  * Generate commit message
@@ -3291,10 +3319,6 @@ export class KiloClient extends HeyApiClient {
3291
3319
  get global() {
3292
3320
  return (this._global ??= new Global({ client: this.client }));
3293
3321
  }
3294
- _remote;
3295
- get remote() {
3296
- return (this._remote ??= new Remote({ client: this.client }));
3297
- }
3298
3322
  _auth;
3299
3323
  get auth() {
3300
3324
  return (this._auth ??= new Auth({ client: this.client }));
@@ -3351,6 +3375,10 @@ export class KiloClient extends HeyApiClient {
3351
3375
  get telemetry() {
3352
3376
  return (this._telemetry ??= new Telemetry({ client: this.client }));
3353
3377
  }
3378
+ _remote;
3379
+ get remote() {
3380
+ return (this._remote ??= new Remote({ client: this.client }));
3381
+ }
3354
3382
  _commitMessage;
3355
3383
  get commitMessage() {
3356
3384
  return (this._commitMessage ??= new CommitMessage({ client: this.client }));
@@ -1084,7 +1084,11 @@ export type ProviderConfig = {
1084
1084
  * Timeout in milliseconds for requests to this provider. Default is 120000 (2 minutes). Set to false to disable timeout.
1085
1085
  */
1086
1086
  timeout?: number | false;
1087
- [key: string]: unknown | string | boolean | number | false | undefined;
1087
+ /**
1088
+ * Timeout in milliseconds between streamed SSE chunks for this provider. If no chunk arrives within this window, the request is aborted.
1089
+ */
1090
+ chunkTimeout?: number;
1091
+ [key: string]: unknown | string | boolean | number | false | number | undefined;
1088
1092
  };
1089
1093
  };
1090
1094
  export type McpLocalConfig = {
@@ -1809,54 +1813,6 @@ export type GlobalDisposeResponses = {
1809
1813
  200: boolean;
1810
1814
  };
1811
1815
  export type GlobalDisposeResponse = GlobalDisposeResponses[keyof GlobalDisposeResponses];
1812
- export type RemoteEnableData = {
1813
- body?: never;
1814
- path?: never;
1815
- query?: never;
1816
- url: "/remote/enable";
1817
- };
1818
- export type RemoteEnableResponses = {
1819
- /**
1820
- * Remote connection enabled
1821
- */
1822
- 200: {
1823
- enabled: boolean;
1824
- connected: boolean;
1825
- };
1826
- };
1827
- export type RemoteEnableResponse = RemoteEnableResponses[keyof RemoteEnableResponses];
1828
- export type RemoteDisableData = {
1829
- body?: never;
1830
- path?: never;
1831
- query?: never;
1832
- url: "/remote/disable";
1833
- };
1834
- export type RemoteDisableResponses = {
1835
- /**
1836
- * Remote connection disabled
1837
- */
1838
- 200: {
1839
- enabled: boolean;
1840
- connected: boolean;
1841
- };
1842
- };
1843
- export type RemoteDisableResponse = RemoteDisableResponses[keyof RemoteDisableResponses];
1844
- export type RemoteStatusData = {
1845
- body?: never;
1846
- path?: never;
1847
- query?: never;
1848
- url: "/remote/status";
1849
- };
1850
- export type RemoteStatusResponses = {
1851
- /**
1852
- * Remote connection status
1853
- */
1854
- 200: {
1855
- enabled: boolean;
1856
- connected: boolean;
1857
- };
1858
- };
1859
- export type RemoteStatusResponse = RemoteStatusResponses[keyof RemoteStatusResponses];
1860
1816
  export type AuthRemoveData = {
1861
1817
  body?: never;
1862
1818
  path: {
@@ -2621,6 +2577,7 @@ export type SessionCreateData = {
2621
2577
  title?: string;
2622
2578
  permission?: PermissionRuleset;
2623
2579
  platform?: string;
2580
+ workspaceID?: string;
2624
2581
  };
2625
2582
  path?: never;
2626
2583
  query?: {
@@ -2792,9 +2749,6 @@ export type SessionChildrenResponse = SessionChildrenResponses[keyof SessionChil
2792
2749
  export type SessionTodoData = {
2793
2750
  body?: never;
2794
2751
  path: {
2795
- /**
2796
- * Session ID
2797
- */
2798
2752
  sessionID: string;
2799
2753
  };
2800
2754
  query?: {
@@ -2828,9 +2782,6 @@ export type SessionInitData = {
2828
2782
  messageID: string;
2829
2783
  };
2830
2784
  path: {
2831
- /**
2832
- * Session ID
2833
- */
2834
2785
  sessionID: string;
2835
2786
  };
2836
2787
  query?: {
@@ -2990,9 +2941,6 @@ export type SessionSummarizeData = {
2990
2941
  auto?: boolean;
2991
2942
  };
2992
2943
  path: {
2993
- /**
2994
- * Session ID
2995
- */
2996
2944
  sessionID: string;
2997
2945
  };
2998
2946
  query?: {
@@ -3022,9 +2970,6 @@ export type SessionSummarizeResponse = SessionSummarizeResponses[keyof SessionSu
3022
2970
  export type SessionMessagesData = {
3023
2971
  body?: never;
3024
2972
  path: {
3025
- /**
3026
- * Session ID
3027
- */
3028
2973
  sessionID: string;
3029
2974
  };
3030
2975
  query?: {
@@ -3082,9 +3027,6 @@ export type SessionPromptData = {
3082
3027
  parts: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
3083
3028
  };
3084
3029
  path: {
3085
- /**
3086
- * Session ID
3087
- */
3088
3030
  sessionID: string;
3089
3031
  };
3090
3032
  query?: {
@@ -3117,13 +3059,7 @@ export type SessionPromptResponse = SessionPromptResponses[keyof SessionPromptRe
3117
3059
  export type SessionDeleteMessageData = {
3118
3060
  body?: never;
3119
3061
  path: {
3120
- /**
3121
- * Session ID
3122
- */
3123
3062
  sessionID: string;
3124
- /**
3125
- * Message ID
3126
- */
3127
3063
  messageID: string;
3128
3064
  };
3129
3065
  query?: {
@@ -3153,13 +3089,7 @@ export type SessionDeleteMessageResponse = SessionDeleteMessageResponses[keyof S
3153
3089
  export type SessionMessageData = {
3154
3090
  body?: never;
3155
3091
  path: {
3156
- /**
3157
- * Session ID
3158
- */
3159
3092
  sessionID: string;
3160
- /**
3161
- * Message ID
3162
- */
3163
3093
  messageID: string;
3164
3094
  };
3165
3095
  query?: {
@@ -3192,17 +3122,8 @@ export type SessionMessageResponse = SessionMessageResponses[keyof SessionMessag
3192
3122
  export type PartDeleteData = {
3193
3123
  body?: never;
3194
3124
  path: {
3195
- /**
3196
- * Session ID
3197
- */
3198
3125
  sessionID: string;
3199
- /**
3200
- * Message ID
3201
- */
3202
3126
  messageID: string;
3203
- /**
3204
- * Part ID
3205
- */
3206
3127
  partID: string;
3207
3128
  };
3208
3129
  query?: {
@@ -3232,17 +3153,8 @@ export type PartDeleteResponse = PartDeleteResponses[keyof PartDeleteResponses];
3232
3153
  export type PartUpdateData = {
3233
3154
  body?: Part;
3234
3155
  path: {
3235
- /**
3236
- * Session ID
3237
- */
3238
3156
  sessionID: string;
3239
- /**
3240
- * Message ID
3241
- */
3242
3157
  messageID: string;
3243
- /**
3244
- * Part ID
3245
- */
3246
3158
  partID: string;
3247
3159
  };
3248
3160
  query?: {
@@ -3296,9 +3208,6 @@ export type SessionPromptAsyncData = {
3296
3208
  parts: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
3297
3209
  };
3298
3210
  path: {
3299
- /**
3300
- * Session ID
3301
- */
3302
3211
  sessionID: string;
3303
3212
  };
3304
3213
  query?: {
@@ -3343,9 +3252,6 @@ export type SessionCommandData = {
3343
3252
  }>;
3344
3253
  };
3345
3254
  path: {
3346
- /**
3347
- * Session ID
3348
- */
3349
3255
  sessionID: string;
3350
3256
  };
3351
3257
  query?: {
@@ -3385,9 +3291,6 @@ export type SessionShellData = {
3385
3291
  command: string;
3386
3292
  };
3387
3293
  path: {
3388
- /**
3389
- * Session ID
3390
- */
3391
3294
  sessionID: string;
3392
3295
  };
3393
3296
  query?: {
@@ -3997,6 +3900,63 @@ export type TelemetryCaptureResponses = {
3997
3900
  200: boolean;
3998
3901
  };
3999
3902
  export type TelemetryCaptureResponse = TelemetryCaptureResponses[keyof TelemetryCaptureResponses];
3903
+ export type RemoteEnableData = {
3904
+ body?: never;
3905
+ path?: never;
3906
+ query?: {
3907
+ directory?: string;
3908
+ workspace?: string;
3909
+ };
3910
+ url: "/remote/enable";
3911
+ };
3912
+ export type RemoteEnableResponses = {
3913
+ /**
3914
+ * Remote connection enabled
3915
+ */
3916
+ 200: {
3917
+ enabled: boolean;
3918
+ connected: boolean;
3919
+ };
3920
+ };
3921
+ export type RemoteEnableResponse = RemoteEnableResponses[keyof RemoteEnableResponses];
3922
+ export type RemoteDisableData = {
3923
+ body?: never;
3924
+ path?: never;
3925
+ query?: {
3926
+ directory?: string;
3927
+ workspace?: string;
3928
+ };
3929
+ url: "/remote/disable";
3930
+ };
3931
+ export type RemoteDisableResponses = {
3932
+ /**
3933
+ * Remote connection disabled
3934
+ */
3935
+ 200: {
3936
+ enabled: boolean;
3937
+ connected: boolean;
3938
+ };
3939
+ };
3940
+ export type RemoteDisableResponse = RemoteDisableResponses[keyof RemoteDisableResponses];
3941
+ export type RemoteStatusData = {
3942
+ body?: never;
3943
+ path?: never;
3944
+ query?: {
3945
+ directory?: string;
3946
+ workspace?: string;
3947
+ };
3948
+ url: "/remote/status";
3949
+ };
3950
+ export type RemoteStatusResponses = {
3951
+ /**
3952
+ * Remote connection status
3953
+ */
3954
+ 200: {
3955
+ enabled: boolean;
3956
+ connected: boolean;
3957
+ };
3958
+ };
3959
+ export type RemoteStatusResponse = RemoteStatusResponses[keyof RemoteStatusResponses];
4000
3960
  export type CommitMessageGenerateData = {
4001
3961
  body?: {
4002
3962
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@kilocode/sdk",
4
- "version": "7.2.3",
4
+ "version": "7.2.4",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {