@kilocode/sdk 7.4.11 → 7.4.13

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.
@@ -314,17 +314,9 @@ export class ProjectCopy extends HeyApiClient {
314
314
  {
315
315
  args: [
316
316
  { in: "path", key: "projectID" },
317
- {
318
- in: "query",
319
- key: "query_directory",
320
- map: "directory",
321
- },
322
317
  { in: "query", key: "workspace" },
323
- {
324
- in: "body",
325
- key: "body_directory",
326
- map: "directory",
327
- },
318
+ { in: "body", key: "directory" },
319
+ { in: "body", key: "force" },
328
320
  ],
329
321
  },
330
322
  ]);
@@ -5457,9 +5449,9 @@ export class Memory extends HeyApiClient {
5457
5449
  }
5458
5450
  export class Health extends HeyApiClient {
5459
5451
  /**
5460
- * Check v2 server health
5452
+ * Check server health
5461
5453
  *
5462
- * Check whether the v2 API server is ready to accept requests.
5454
+ * Check whether the API server is ready to accept requests.
5463
5455
  */
5464
5456
  get(options) {
5465
5457
  return (options?.client ?? this.client).get({
@@ -5468,11 +5460,26 @@ export class Health extends HeyApiClient {
5468
5460
  });
5469
5461
  }
5470
5462
  }
5463
+ export class Location extends HeyApiClient {
5464
+ /**
5465
+ * Get location
5466
+ *
5467
+ * Resolve the requested location or the server default location.
5468
+ */
5469
+ get(parameters, options) {
5470
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
5471
+ return (options?.client ?? this.client).get({
5472
+ url: "/api/location",
5473
+ ...options,
5474
+ ...params,
5475
+ });
5476
+ }
5477
+ }
5471
5478
  export class Agent extends HeyApiClient {
5472
5479
  /**
5473
- * List v2 agents
5480
+ * List agents
5474
5481
  *
5475
- * Retrieve currently registered v2 agents.
5482
+ * Retrieve currently registered agents.
5476
5483
  */
5477
5484
  list(parameters, options) {
5478
5485
  const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
@@ -5492,7 +5499,7 @@ export class Permission2 extends HeyApiClient {
5492
5499
  list(parameters, options) {
5493
5500
  const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "sessionID" }] }]);
5494
5501
  return (options?.client ?? this.client).get({
5495
- url: "/api/session/{sessionID}/permission/request",
5502
+ url: "/api/session/{sessionID}/permission",
5496
5503
  ...options,
5497
5504
  ...params,
5498
5505
  });
@@ -5514,7 +5521,7 @@ export class Permission2 extends HeyApiClient {
5514
5521
  },
5515
5522
  ]);
5516
5523
  return (options?.client ?? this.client).post({
5517
- url: "/api/session/{sessionID}/permission/request/{requestID}/reply",
5524
+ url: "/api/session/{sessionID}/permission/{requestID}/reply",
5518
5525
  ...options,
5519
5526
  ...params,
5520
5527
  headers: {
@@ -5526,6 +5533,19 @@ export class Permission2 extends HeyApiClient {
5526
5533
  }
5527
5534
  }
5528
5535
  export class Question2 extends HeyApiClient {
5536
+ /**
5537
+ * List session question requests
5538
+ *
5539
+ * Retrieve pending question requests owned by a session.
5540
+ */
5541
+ list(parameters, options) {
5542
+ const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "sessionID" }] }]);
5543
+ return (options?.client ?? this.client).get({
5544
+ url: "/api/session/{sessionID}/question",
5545
+ ...options,
5546
+ ...params,
5547
+ });
5548
+ }
5529
5549
  /**
5530
5550
  * Reply to pending question request
5531
5551
  *
@@ -5542,7 +5562,7 @@ export class Question2 extends HeyApiClient {
5542
5562
  },
5543
5563
  ]);
5544
5564
  return (options?.client ?? this.client).post({
5545
- url: "/api/session/{sessionID}/question/request/{requestID}/reply",
5565
+ url: "/api/session/{sessionID}/question/{requestID}/reply",
5546
5566
  ...options,
5547
5567
  ...params,
5548
5568
  headers: {
@@ -5567,7 +5587,7 @@ export class Question2 extends HeyApiClient {
5567
5587
  },
5568
5588
  ]);
5569
5589
  return (options?.client ?? this.client).post({
5570
- url: "/api/session/{sessionID}/question/request/{requestID}/reject",
5590
+ url: "/api/session/{sessionID}/question/{requestID}/reject",
5571
5591
  ...options,
5572
5592
  ...params,
5573
5593
  });
@@ -5575,7 +5595,7 @@ export class Question2 extends HeyApiClient {
5575
5595
  }
5576
5596
  export class Session4 extends HeyApiClient {
5577
5597
  /**
5578
- * List v2 sessions
5598
+ * List sessions
5579
5599
  *
5580
5600
  * Retrieve sessions in the requested order. Items keep that order across pages; use cursor.next or cursor.previous to move through the ordered list.
5581
5601
  */
@@ -5601,9 +5621,49 @@ export class Session4 extends HeyApiClient {
5601
5621
  });
5602
5622
  }
5603
5623
  /**
5604
- * Send v2 message
5624
+ * Create session
5625
+ *
5626
+ * Create a session at the requested location.
5627
+ */
5628
+ create(parameters, options) {
5629
+ const params = buildClientParams([parameters], [
5630
+ {
5631
+ args: [
5632
+ { in: "body", key: "id" },
5633
+ { in: "body", key: "agent" },
5634
+ { in: "body", key: "model" },
5635
+ { in: "body", key: "location" },
5636
+ ],
5637
+ },
5638
+ ]);
5639
+ return (options?.client ?? this.client).post({
5640
+ url: "/api/session",
5641
+ ...options,
5642
+ ...params,
5643
+ headers: {
5644
+ "Content-Type": "application/json",
5645
+ ...options?.headers,
5646
+ ...params.headers,
5647
+ },
5648
+ });
5649
+ }
5650
+ /**
5651
+ * Get session
5652
+ *
5653
+ * Retrieve a session by ID.
5654
+ */
5655
+ get(parameters, options) {
5656
+ const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "sessionID" }] }]);
5657
+ return (options?.client ?? this.client).get({
5658
+ url: "/api/session/{sessionID}",
5659
+ ...options,
5660
+ ...params,
5661
+ });
5662
+ }
5663
+ /**
5664
+ * Send message
5605
5665
  *
5606
- * Durably admit one v2 session input and schedule agent-loop execution unless resume is false.
5666
+ * Durably admit one session input and schedule agent-loop execution unless resume is false.
5607
5667
  */
5608
5668
  prompt(parameters, options) {
5609
5669
  const params = buildClientParams([parameters], [
@@ -5629,9 +5689,9 @@ export class Session4 extends HeyApiClient {
5629
5689
  });
5630
5690
  }
5631
5691
  /**
5632
- * Compact v2 session
5692
+ * Compact session
5633
5693
  *
5634
- * Compact a v2 session conversation.
5694
+ * Compact a session conversation.
5635
5695
  */
5636
5696
  compact(parameters, options) {
5637
5697
  const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "sessionID" }] }]);
@@ -5642,9 +5702,9 @@ export class Session4 extends HeyApiClient {
5642
5702
  });
5643
5703
  }
5644
5704
  /**
5645
- * Wait for v2 session
5705
+ * Wait for session
5646
5706
  *
5647
- * Wait for a v2 session agent loop to become idle.
5707
+ * Wait for a session agent loop to become idle.
5648
5708
  */
5649
5709
  wait(parameters, options) {
5650
5710
  const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "sessionID" }] }]);
@@ -5655,9 +5715,9 @@ export class Session4 extends HeyApiClient {
5655
5715
  });
5656
5716
  }
5657
5717
  /**
5658
- * Get v2 session context
5718
+ * Get session context
5659
5719
  *
5660
- * Retrieve the active context messages for a v2 session (all messages after the last compaction).
5720
+ * Retrieve the active context messages for a session (all messages after the last compaction).
5661
5721
  */
5662
5722
  context(parameters, options) {
5663
5723
  const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "sessionID" }] }]);
@@ -5668,9 +5728,9 @@ export class Session4 extends HeyApiClient {
5668
5728
  });
5669
5729
  }
5670
5730
  /**
5671
- * Get v2 session messages
5731
+ * Get session messages
5672
5732
  *
5673
- * Retrieve projected v2 messages for a session. Items keep the requested order across pages; use cursor.next or cursor.previous to move through the ordered timeline.
5733
+ * Retrieve projected messages for a session. Items keep the requested order across pages; use cursor.next or cursor.previous to move through the ordered timeline.
5674
5734
  */
5675
5735
  messages(parameters, options) {
5676
5736
  const params = buildClientParams([parameters], [
@@ -5700,9 +5760,9 @@ export class Session4 extends HeyApiClient {
5700
5760
  }
5701
5761
  export class Model extends HeyApiClient {
5702
5762
  /**
5703
- * List v2 models
5763
+ * List models
5704
5764
  *
5705
- * Retrieve available v2 models ordered by release date.
5765
+ * Retrieve available models ordered by release date.
5706
5766
  */
5707
5767
  list(parameters, options) {
5708
5768
  const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
@@ -5715,9 +5775,9 @@ export class Model extends HeyApiClient {
5715
5775
  }
5716
5776
  export class Provider2 extends HeyApiClient {
5717
5777
  /**
5718
- * List v2 providers
5778
+ * List providers
5719
5779
  *
5720
- * Retrieve active v2 AI providers so clients can show provider availability and configuration.
5780
+ * Retrieve active AI providers so clients can show provider availability and configuration.
5721
5781
  */
5722
5782
  list(parameters, options) {
5723
5783
  const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
@@ -5728,9 +5788,9 @@ export class Provider2 extends HeyApiClient {
5728
5788
  });
5729
5789
  }
5730
5790
  /**
5731
- * Get v2 provider
5791
+ * Get provider
5732
5792
  *
5733
- * Retrieve a single v2 AI provider so clients can inspect its availability and endpoint settings.
5793
+ * Retrieve a single AI provider so clients can inspect its availability and endpoint settings.
5734
5794
  */
5735
5795
  get(parameters, options) {
5736
5796
  const params = buildClientParams([parameters], [
@@ -5748,6 +5808,176 @@ export class Provider2 extends HeyApiClient {
5748
5808
  });
5749
5809
  }
5750
5810
  }
5811
+ export class Oauth2 extends HeyApiClient {
5812
+ /**
5813
+ * Begin OAuth connection
5814
+ *
5815
+ * Start an OAuth attempt and return the authorization details.
5816
+ */
5817
+ begin(parameters, options) {
5818
+ const params = buildClientParams([parameters], [
5819
+ {
5820
+ args: [
5821
+ { in: "path", key: "connectorID" },
5822
+ { in: "query", key: "location" },
5823
+ { in: "body", key: "methodID" },
5824
+ { in: "body", key: "inputs" },
5825
+ { in: "body", key: "label" },
5826
+ ],
5827
+ },
5828
+ ]);
5829
+ return (options?.client ?? this.client).post({
5830
+ url: "/api/connector/{connectorID}/connect/oauth",
5831
+ ...options,
5832
+ ...params,
5833
+ headers: {
5834
+ "Content-Type": "application/json",
5835
+ ...options?.headers,
5836
+ ...params.headers,
5837
+ },
5838
+ });
5839
+ }
5840
+ /**
5841
+ * Cancel OAuth connection
5842
+ *
5843
+ * Cancel an OAuth attempt and release its resources.
5844
+ */
5845
+ cancel(parameters, options) {
5846
+ const params = buildClientParams([parameters], [
5847
+ {
5848
+ args: [
5849
+ { in: "path", key: "attemptID" },
5850
+ { in: "query", key: "location" },
5851
+ ],
5852
+ },
5853
+ ]);
5854
+ return (options?.client ?? this.client).delete({
5855
+ url: "/api/connector/oauth/{attemptID}",
5856
+ ...options,
5857
+ ...params,
5858
+ });
5859
+ }
5860
+ /**
5861
+ * Get OAuth attempt status
5862
+ *
5863
+ * Poll the current status of an OAuth attempt.
5864
+ */
5865
+ status(parameters, options) {
5866
+ const params = buildClientParams([parameters], [
5867
+ {
5868
+ args: [
5869
+ { in: "path", key: "attemptID" },
5870
+ { in: "query", key: "location" },
5871
+ ],
5872
+ },
5873
+ ]);
5874
+ return (options?.client ?? this.client).get({
5875
+ url: "/api/connector/oauth/{attemptID}",
5876
+ ...options,
5877
+ ...params,
5878
+ });
5879
+ }
5880
+ /**
5881
+ * Complete OAuth connection
5882
+ *
5883
+ * Complete a code-based OAuth attempt and store the resulting credential.
5884
+ */
5885
+ complete(parameters, options) {
5886
+ const params = buildClientParams([parameters], [
5887
+ {
5888
+ args: [
5889
+ { in: "path", key: "attemptID" },
5890
+ { in: "query", key: "location" },
5891
+ { in: "body", key: "code" },
5892
+ ],
5893
+ },
5894
+ ]);
5895
+ return (options?.client ?? this.client).post({
5896
+ url: "/api/connector/oauth/{attemptID}/complete",
5897
+ ...options,
5898
+ ...params,
5899
+ headers: {
5900
+ "Content-Type": "application/json",
5901
+ ...options?.headers,
5902
+ ...params.headers,
5903
+ },
5904
+ });
5905
+ }
5906
+ }
5907
+ export class Connect extends HeyApiClient {
5908
+ /**
5909
+ * Connect with key
5910
+ *
5911
+ * Run a key authentication method and store the resulting credential.
5912
+ */
5913
+ key(parameters, options) {
5914
+ const params = buildClientParams([parameters], [
5915
+ {
5916
+ args: [
5917
+ { in: "path", key: "connectorID" },
5918
+ { in: "query", key: "location" },
5919
+ { in: "body", key: "methodID" },
5920
+ { in: "body", key: "key" },
5921
+ { in: "body", key: "inputs" },
5922
+ { in: "body", key: "label" },
5923
+ ],
5924
+ },
5925
+ ]);
5926
+ return (options?.client ?? this.client).post({
5927
+ url: "/api/connector/{connectorID}/connect/key",
5928
+ ...options,
5929
+ ...params,
5930
+ headers: {
5931
+ "Content-Type": "application/json",
5932
+ ...options?.headers,
5933
+ ...params.headers,
5934
+ },
5935
+ });
5936
+ }
5937
+ _oauth;
5938
+ get oauth() {
5939
+ return (this._oauth ??= new Oauth2({ client: this.client }));
5940
+ }
5941
+ }
5942
+ export class Connector extends HeyApiClient {
5943
+ /**
5944
+ * List connectors
5945
+ *
5946
+ * Retrieve available connectors and their authentication methods.
5947
+ */
5948
+ list(parameters, options) {
5949
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
5950
+ return (options?.client ?? this.client).get({
5951
+ url: "/api/connector",
5952
+ ...options,
5953
+ ...params,
5954
+ });
5955
+ }
5956
+ /**
5957
+ * Get connector
5958
+ *
5959
+ * Retrieve one connector and its authentication methods.
5960
+ */
5961
+ get(parameters, options) {
5962
+ const params = buildClientParams([parameters], [
5963
+ {
5964
+ args: [
5965
+ { in: "path", key: "connectorID" },
5966
+ { in: "query", key: "location" },
5967
+ ],
5968
+ },
5969
+ ]);
5970
+ return (options?.client ?? this.client).get({
5971
+ url: "/api/connector/{connectorID}",
5972
+ ...options,
5973
+ ...params,
5974
+ });
5975
+ }
5976
+ _connect;
5977
+ get connect() {
5978
+ return (this._connect ??= new Connect({ client: this.client }));
5979
+ }
5980
+ }
5751
5981
  export class Request extends HeyApiClient {
5752
5982
  /**
5753
5983
  * List pending permission requests
@@ -5805,7 +6035,7 @@ export class Fs extends HeyApiClient {
5805
6035
  /**
5806
6036
  * Read file
5807
6037
  *
5808
- * Read one file relative to the requested location.
6038
+ * Serve one file relative to the requested location.
5809
6039
  */
5810
6040
  read(parameters, options) {
5811
6041
  const params = buildClientParams([parameters], [
@@ -5813,12 +6043,11 @@ export class Fs extends HeyApiClient {
5813
6043
  args: [
5814
6044
  { in: "query", key: "location" },
5815
6045
  { in: "query", key: "path" },
5816
- { in: "query", key: "reference" },
5817
6046
  ],
5818
6047
  },
5819
6048
  ]);
5820
6049
  return (options?.client ?? this.client).get({
5821
- url: "/api/fs/read",
6050
+ url: "/api/fs/read/*",
5822
6051
  ...options,
5823
6052
  ...params,
5824
6053
  });
@@ -5834,7 +6063,6 @@ export class Fs extends HeyApiClient {
5834
6063
  args: [
5835
6064
  { in: "query", key: "location" },
5836
6065
  { in: "query", key: "path" },
5837
- { in: "query", key: "reference" },
5838
6066
  ],
5839
6067
  },
5840
6068
  ]);
@@ -5844,12 +6072,34 @@ export class Fs extends HeyApiClient {
5844
6072
  ...params,
5845
6073
  });
5846
6074
  }
6075
+ /**
6076
+ * Find files
6077
+ *
6078
+ * Find recursively ranked filesystem entries relative to the requested location.
6079
+ */
6080
+ find(parameters, options) {
6081
+ const params = buildClientParams([parameters], [
6082
+ {
6083
+ args: [
6084
+ { in: "query", key: "location" },
6085
+ { in: "query", key: "query" },
6086
+ { in: "query", key: "type" },
6087
+ { in: "query", key: "limit" },
6088
+ ],
6089
+ },
6090
+ ]);
6091
+ return (options?.client ?? this.client).get({
6092
+ url: "/api/fs/find",
6093
+ ...options,
6094
+ ...params,
6095
+ });
6096
+ }
5847
6097
  }
5848
6098
  export class Command2 extends HeyApiClient {
5849
6099
  /**
5850
- * List v2 commands
6100
+ * List commands
5851
6101
  *
5852
- * Retrieve currently registered v2 commands.
6102
+ * Retrieve currently registered commands.
5853
6103
  */
5854
6104
  list(parameters, options) {
5855
6105
  const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
@@ -5862,9 +6112,9 @@ export class Command2 extends HeyApiClient {
5862
6112
  }
5863
6113
  export class Skill extends HeyApiClient {
5864
6114
  /**
5865
- * List v2 skills
6115
+ * List skills
5866
6116
  *
5867
- * Retrieve currently registered v2 skills.
6117
+ * Retrieve currently registered skills.
5868
6118
  */
5869
6119
  list(parameters, options) {
5870
6120
  const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
@@ -5877,9 +6127,9 @@ export class Skill extends HeyApiClient {
5877
6127
  }
5878
6128
  export class Event2 extends HeyApiClient {
5879
6129
  /**
5880
- * Subscribe to v2 events
6130
+ * Subscribe to events
5881
6131
  *
5882
- * Subscribe to native EventV2 payloads for a location.
6132
+ * Subscribe to native event payloads for a location.
5883
6133
  */
5884
6134
  subscribe(parameters, options) {
5885
6135
  const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
@@ -5911,11 +6161,30 @@ export class Question3 extends HeyApiClient {
5911
6161
  return (this._request ??= new Request2({ client: this.client }));
5912
6162
  }
5913
6163
  }
6164
+ export class Reference extends HeyApiClient {
6165
+ /**
6166
+ * List references
6167
+ *
6168
+ * List references available in the requested location.
6169
+ */
6170
+ list(parameters, options) {
6171
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
6172
+ return (options?.client ?? this.client).get({
6173
+ url: "/api/reference",
6174
+ ...options,
6175
+ ...params,
6176
+ });
6177
+ }
6178
+ }
5914
6179
  export class V2 extends HeyApiClient {
5915
6180
  _health;
5916
6181
  get health() {
5917
6182
  return (this._health ??= new Health({ client: this.client }));
5918
6183
  }
6184
+ _location;
6185
+ get location() {
6186
+ return (this._location ??= new Location({ client: this.client }));
6187
+ }
5919
6188
  _agent;
5920
6189
  get agent() {
5921
6190
  return (this._agent ??= new Agent({ client: this.client }));
@@ -5932,6 +6201,10 @@ export class V2 extends HeyApiClient {
5932
6201
  get provider() {
5933
6202
  return (this._provider ??= new Provider2({ client: this.client }));
5934
6203
  }
6204
+ _connector;
6205
+ get connector() {
6206
+ return (this._connector ??= new Connector({ client: this.client }));
6207
+ }
5935
6208
  _permission;
5936
6209
  get permission() {
5937
6210
  return (this._permission ??= new Permission3({ client: this.client }));
@@ -5956,6 +6229,10 @@ export class V2 extends HeyApiClient {
5956
6229
  get question() {
5957
6230
  return (this._question ??= new Question3({ client: this.client }));
5958
6231
  }
6232
+ _reference;
6233
+ get reference() {
6234
+ return (this._reference ??= new Reference({ client: this.client }));
6235
+ }
5959
6236
  }
5960
6237
  export class KiloClient extends HeyApiClient {
5961
6238
  static __registry = new HeyApiRegistry();