@kilocode/sdk 7.0.51 → 7.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.js CHANGED
@@ -17,7 +17,7 @@ export function createKiloClient(config) {
17
17
  if (config?.directory) {
18
18
  config.headers = {
19
19
  ...config.headers,
20
- "x-opencode-directory": encodeURIComponent(config.directory),
20
+ "x-kilo-directory": encodeURIComponent(config.directory),
21
21
  };
22
22
  }
23
23
  const client = createClient(config);
@@ -4,4 +4,5 @@ import { KiloClient } from "./gen/sdk.gen.js";
4
4
  export { type Config as KiloClientConfig, KiloClient };
5
5
  export declare function createKiloClient(config?: Config & {
6
6
  directory?: string;
7
+ experimental_workspaceID?: string;
7
8
  }): KiloClient;
package/dist/v2/client.js CHANGED
@@ -19,7 +19,13 @@ export function createKiloClient(config) {
19
19
  const encodedDirectory = isNonASCII ? encodeURIComponent(config.directory) : config.directory;
20
20
  config.headers = {
21
21
  ...config.headers,
22
- "x-opencode-directory": encodedDirectory,
22
+ "x-kilo-directory": encodedDirectory,
23
+ };
24
+ }
25
+ if (config?.experimental_workspaceID) {
26
+ config.headers = {
27
+ ...config.headers,
28
+ "x-kilo-workspace": config.experimental_workspaceID,
23
29
  };
24
30
  }
25
31
  const client = createClient(config);
@@ -58,6 +58,12 @@ export type EventGlobalDisposed = {
58
58
  [key: string]: unknown;
59
59
  };
60
60
  };
61
+ export type EventGlobalConfigUpdated = {
62
+ type: "global.config.updated";
63
+ properties: {
64
+ [key: string]: unknown;
65
+ };
66
+ };
61
67
  export type EventLspClientDiagnostics = {
62
68
  type: "lsp.client.diagnostics";
63
69
  properties: {
@@ -834,7 +840,7 @@ export type EventWorktreeFailed = {
834
840
  message: string;
835
841
  };
836
842
  };
837
- 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;
843
+ export type Event = EventInstallationUpdated | EventInstallationUpdateAvailable | EventProjectUpdated | EventServerInstanceDisposed | EventServerConnected | EventGlobalDisposed | EventGlobalConfigUpdated | 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;
838
844
  export type GlobalEvent = {
839
845
  directory: string;
840
846
  payload: Event;
@@ -868,7 +874,7 @@ export type ServerConfig = {
868
874
  */
869
875
  cors?: Array<string>;
870
876
  };
871
- export type PermissionActionConfig = "ask" | "allow" | "deny";
877
+ export type PermissionActionConfig = "ask" | "allow" | "deny" | null;
872
878
  export type PermissionObjectConfig = {
873
879
  [key: string]: PermissionActionConfig;
874
880
  };
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.0.51",
4
+ "version": "7.1.0",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {