@kilocode/sdk 7.5.5 → 7.5.8

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.
@@ -638,7 +638,7 @@ export class Global extends HeyApiClient {
638
638
  return (this._config ??= new Config({ client: this.client }));
639
639
  }
640
640
  }
641
- export class Event extends HeyApiClient {
641
+ export class Event_ extends HeyApiClient {
642
642
  /**
643
643
  * Subscribe to events
644
644
  *
@@ -1208,7 +1208,7 @@ export class Find extends HeyApiClient {
1208
1208
  });
1209
1209
  }
1210
1210
  }
1211
- export class File extends HeyApiClient {
1211
+ export class File_ extends HeyApiClient {
1212
1212
  /**
1213
1213
  * List files
1214
1214
  *
@@ -2659,6 +2659,7 @@ export class Session2 extends HeyApiClient {
2659
2659
  { in: "path", key: "messageID" },
2660
2660
  { in: "query", key: "directory" },
2661
2661
  { in: "query", key: "workspace" },
2662
+ { in: "query", key: "queued" },
2662
2663
  ],
2663
2664
  },
2664
2665
  ]);
@@ -2729,6 +2730,7 @@ export class Session2 extends HeyApiClient {
2729
2730
  { in: "path", key: "sessionID" },
2730
2731
  { in: "query", key: "directory" },
2731
2732
  { in: "query", key: "workspace" },
2733
+ { in: "query", key: "scope" },
2732
2734
  ],
2733
2735
  },
2734
2736
  ]);
@@ -4733,6 +4735,66 @@ export class BackgroundJob extends HeyApiClient {
4733
4735
  });
4734
4736
  }
4735
4737
  }
4738
+ export class Migrate extends HeyApiClient {
4739
+ /**
4740
+ * Migrate external sessions into Kilo
4741
+ *
4742
+ * Discover Claude Code and OpenAI Codex JSONL transcripts for a directory and migrate them into new Kilo sessions, one session per transcript. Sources that were already migrated are skipped, so calling this repeatedly is a no-op once everything has landed.
4743
+ */
4744
+ sessions(parameters, options) {
4745
+ const params = buildClientParams([parameters], [
4746
+ {
4747
+ args: [
4748
+ { in: "query", key: "directory" },
4749
+ { in: "query", key: "workspace" },
4750
+ { in: "body", key: "cwd" },
4751
+ { in: "body", key: "formats" },
4752
+ { in: "body", key: "ids" },
4753
+ { in: "body", key: "agent" },
4754
+ { in: "body", key: "model" },
4755
+ { in: "body", key: "force" },
4756
+ ],
4757
+ },
4758
+ ]);
4759
+ return (options?.client ?? this.client).post({
4760
+ url: "/kilocode/migrate/sessions",
4761
+ ...options,
4762
+ ...params,
4763
+ headers: {
4764
+ "Content-Type": "application/json",
4765
+ ...options?.headers,
4766
+ ...params.headers,
4767
+ },
4768
+ });
4769
+ }
4770
+ /**
4771
+ * Discover migratable external session transcripts
4772
+ *
4773
+ * Enumerate Claude Code and OpenAI Codex JSONL transcripts for a directory and preview each, marking the ones already migrated, so callers can render a picker before migrating. Read-only; writes nothing.
4774
+ */
4775
+ discover(parameters, options) {
4776
+ const params = buildClientParams([parameters], [
4777
+ {
4778
+ args: [
4779
+ { in: "query", key: "directory" },
4780
+ { in: "query", key: "workspace" },
4781
+ { in: "body", key: "cwd" },
4782
+ { in: "body", key: "formats" },
4783
+ ],
4784
+ },
4785
+ ]);
4786
+ return (options?.client ?? this.client).post({
4787
+ url: "/kilocode/migrate/sessions/discover",
4788
+ ...options,
4789
+ ...params,
4790
+ headers: {
4791
+ "Content-Type": "application/json",
4792
+ ...options?.headers,
4793
+ ...params.headers,
4794
+ },
4795
+ });
4796
+ }
4797
+ }
4736
4798
  export class SessionImport extends HeyApiClient {
4737
4799
  /**
4738
4800
  * Insert project for session import
@@ -4881,6 +4943,61 @@ export class SessionImport extends HeyApiClient {
4881
4943
  }
4882
4944
  }
4883
4945
  export class Kilocode extends HeyApiClient {
4946
+ /**
4947
+ * Resume an interrupted session
4948
+ *
4949
+ * Resume the specified unfinished assistant turn without adding a user message. Active, completed, reverted, and blocked sessions cannot be resumed.
4950
+ */
4951
+ resumeSession(parameters, options) {
4952
+ const params = buildClientParams([parameters], [
4953
+ {
4954
+ args: [
4955
+ { in: "path", key: "sessionID" },
4956
+ { in: "query", key: "directory" },
4957
+ { in: "query", key: "workspace" },
4958
+ { in: "body", key: "messageID" },
4959
+ { in: "body", key: "snapshotInitialization" },
4960
+ ],
4961
+ },
4962
+ ]);
4963
+ return (options?.client ?? this.client).post({
4964
+ url: "/kilocode/session/{sessionID}/resume",
4965
+ ...options,
4966
+ ...params,
4967
+ headers: {
4968
+ "Content-Type": "application/json",
4969
+ ...options?.headers,
4970
+ ...params.headers,
4971
+ },
4972
+ });
4973
+ }
4974
+ /**
4975
+ * Wait for session completion
4976
+ *
4977
+ * Wait for active session work and background result delivery, then publish the matching drain acknowledgment.
4978
+ */
4979
+ drainSession(parameters, options) {
4980
+ const params = buildClientParams([parameters], [
4981
+ {
4982
+ args: [
4983
+ { in: "path", key: "sessionID" },
4984
+ { in: "query", key: "directory" },
4985
+ { in: "query", key: "workspace" },
4986
+ { in: "body", key: "token" },
4987
+ ],
4988
+ },
4989
+ ]);
4990
+ return (options?.client ?? this.client).post({
4991
+ url: "/kilocode/session/{sessionID}/drain",
4992
+ ...options,
4993
+ ...params,
4994
+ headers: {
4995
+ "Content-Type": "application/json",
4996
+ ...options?.headers,
4997
+ ...params.headers,
4998
+ },
4999
+ });
5000
+ }
4884
5001
  /**
4885
5002
  * List command files
4886
5003
  *
@@ -4980,6 +5097,32 @@ export class Kilocode extends HeyApiClient {
4980
5097
  },
4981
5098
  });
4982
5099
  }
5100
+ /**
5101
+ * Remove a snapshot repository
5102
+ *
5103
+ * Remove the snapshot repository for an already deleted Agent Manager worktree.
5104
+ */
5105
+ removeSnapshot(parameters, options) {
5106
+ const params = buildClientParams([parameters], [
5107
+ {
5108
+ args: [
5109
+ { in: "query", key: "directory" },
5110
+ { in: "query", key: "workspace" },
5111
+ { in: "body", key: "worktree" },
5112
+ ],
5113
+ },
5114
+ ]);
5115
+ return (options?.client ?? this.client).post({
5116
+ url: "/kilocode/snapshot/remove",
5117
+ ...options,
5118
+ ...params,
5119
+ headers: {
5120
+ "Content-Type": "application/json",
5121
+ ...options?.headers,
5122
+ ...params.headers,
5123
+ },
5124
+ });
5125
+ }
4983
5126
  /**
4984
5127
  * Get session model usage
4985
5128
  *
@@ -5042,6 +5185,10 @@ export class Kilocode extends HeyApiClient {
5042
5185
  get backgroundJob() {
5043
5186
  return (this._backgroundJob ??= new BackgroundJob({ client: this.client }));
5044
5187
  }
5188
+ _migrate;
5189
+ get migrate() {
5190
+ return (this._migrate ??= new Migrate({ client: this.client }));
5191
+ }
5045
5192
  _sessionImport;
5046
5193
  get sessionImport() {
5047
5194
  return (this._sessionImport ??= new SessionImport({ client: this.client }));
@@ -6487,7 +6634,7 @@ export class Credential extends HeyApiClient {
6487
6634
  });
6488
6635
  }
6489
6636
  }
6490
- export class Request extends HeyApiClient {
6637
+ export class Request_ extends HeyApiClient {
6491
6638
  /**
6492
6639
  * List pending permission requests
6493
6640
  *
@@ -6533,7 +6680,7 @@ export class Saved extends HeyApiClient {
6533
6680
  export class Permission3 extends HeyApiClient {
6534
6681
  _request;
6535
6682
  get request() {
6536
- return (this._request ??= new Request({ client: this.client }));
6683
+ return (this._request ??= new Request_({ client: this.client }));
6537
6684
  }
6538
6685
  _saved;
6539
6686
  get saved() {
@@ -6995,7 +7142,7 @@ export class KiloClient extends HeyApiClient {
6995
7142
  }
6996
7143
  _event;
6997
7144
  get event() {
6998
- return (this._event ??= new Event({ client: this.client }));
7145
+ return (this._event ??= new Event_({ client: this.client }));
6999
7146
  }
7000
7147
  _config;
7001
7148
  get config() {
@@ -7015,7 +7162,7 @@ export class KiloClient extends HeyApiClient {
7015
7162
  }
7016
7163
  _file;
7017
7164
  get file() {
7018
- return (this._file ??= new File({ client: this.client }));
7165
+ return (this._file ??= new File_({ client: this.client }));
7019
7166
  }
7020
7167
  _instance;
7021
7168
  get instance() {