@kilocode/sdk 7.4.6 → 7.4.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.
@@ -1,4 +1,5 @@
1
1
  export * from "./gen/types.gen.js";
2
+ export type { FileSystemBinaryContent as LocationFileSystemBinaryContent, FileSystemEntry as LocationFileSystemEntry, FileSystemTextContent as LocationFileSystemTextContent, } from "./gen/types.gen.js";
2
3
  import { type Config } from "./gen/client/types.gen.js";
3
4
  import { KiloClient } from "./gen/sdk.gen.js";
4
5
  export { type Config as KiloClientConfig, KiloClient };
package/dist/v2/client.js CHANGED
@@ -26,8 +26,10 @@ function rewrite(request, values) {
26
26
  const value = pick(request.headers.get(name), key === "directory" ? values.directory : values.workspace, key === "directory" ? encodeURIComponent : undefined);
27
27
  if (!value)
28
28
  continue;
29
- if (!url.searchParams.has(key)) {
30
- url.searchParams.set(key, value);
29
+ for (const query of url.pathname.startsWith("/api/") ? [key, `location[${key}]`] : [key]) {
30
+ if (!url.searchParams.has(query)) {
31
+ url.searchParams.set(query, value);
32
+ }
31
33
  }
32
34
  changed = true;
33
35
  }