@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
@@ -34,7 +34,7 @@ import {
34
34
  supportedPlatform,
35
35
  systemdUnitPath,
36
36
  toolSearchDirs
37
- } from "./chunk-VW545PK2.js";
37
+ } from "./chunk-M67QYTVA.js";
38
38
  import {
39
39
  DESKTOP_PERMISSION_GUIDANCE,
40
40
  PlatformDesktop,
package/dist/main.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  ConfigError,
4
4
  runDaemon
5
- } from "./chunk-VW545PK2.js";
5
+ } from "./chunk-M67QYTVA.js";
6
6
  import "./chunk-GS3Q6EU5.js";
7
7
 
8
8
  // src/main.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skylandnpm/octopus-proxy",
3
- "version": "0.1.60",
3
+ "version": "0.1.61",
4
4
  "type": "module",
5
5
  "description": "Octopus host proxy: OpenCode, Codex, ZCode and Pi adapters with service installer CLI",
6
6
  "bin": {