@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 +1 -1
- package/dist/v2/client.d.ts +1 -0
- package/dist/v2/client.js +7 -1
- package/dist/v2/gen/types.gen.d.ts +8 -2
- package/package.json +1 -1
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-
|
|
20
|
+
"x-kilo-directory": encodeURIComponent(config.directory),
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
const client = createClient(config);
|
package/dist/v2/client.d.ts
CHANGED
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-
|
|
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
|
};
|