@skylandnpm/octopus-proxy 0.1.60 → 0.1.61
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.
|
@@ -10667,7 +10667,8 @@ var OpenCodeAdapter = class {
|
|
|
10667
10667
|
async request(project, method, path, body, signal) {
|
|
10668
10668
|
const root = await this.workspace.root(project);
|
|
10669
10669
|
const url = new URL(path, this.runtime.baseUrl);
|
|
10670
|
-
if (path === "/api/session") url.searchParams.set("directory", root);
|
|
10670
|
+
if (path === "/api/session" && method === "GET") url.searchParams.set("directory", root);
|
|
10671
|
+
else if (path === "/api/session" && method === "POST") body = { ...body, location: { directory: root } };
|
|
10671
10672
|
else if (/^\/api\/(?:agent|model|provider|mcp|command|config|pty|permission\/request|form|integration|location|experimental\/mcp)(?:\/|$)/.test(path)) url.searchParams.set("location[directory]", root);
|
|
10672
10673
|
const response = await fetch(url, {
|
|
10673
10674
|
method,
|
package/dist/cli.js
CHANGED
package/dist/main.js
CHANGED