@kilocode/sdk 7.0.34 → 7.0.35

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.
@@ -277,6 +277,7 @@ export declare class Worktree extends HeyApiClient {
277
277
  */
278
278
  diff<ThrowOnError extends boolean = false>(parameters?: {
279
279
  directory?: string;
280
+ base?: string;
280
281
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<WorktreeDiffResponses, WorktreeDiffErrors, ThrowOnError, "fields">;
281
282
  }
282
283
  export declare class Session extends HeyApiClient {
@@ -502,7 +502,14 @@ export class Worktree extends HeyApiClient {
502
502
  * Get file diffs for a worktree compared to its base branch. Includes uncommitted changes.
503
503
  */
504
504
  diff(parameters, options) {
505
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
505
+ const params = buildClientParams([parameters], [
506
+ {
507
+ args: [
508
+ { in: "query", key: "directory" },
509
+ { in: "query", key: "base" },
510
+ ],
511
+ },
512
+ ]);
506
513
  return (options?.client ?? this.client).get({
507
514
  url: "/experimental/worktree/diff",
508
515
  ...options,
@@ -2149,6 +2149,10 @@ export type WorktreeDiffData = {
2149
2149
  path?: never;
2150
2150
  query?: {
2151
2151
  directory?: string;
2152
+ /**
2153
+ * Base branch or ref to diff against
2154
+ */
2155
+ base?: string;
2152
2156
  };
2153
2157
  url: "/experimental/worktree/diff";
2154
2158
  };
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.34",
4
+ "version": "7.0.35",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {