@skylandnpm/octopus-proxy 0.1.49 → 0.1.50

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.
@@ -13152,6 +13152,7 @@ import { randomUUID as randomUUID15 } from "node:crypto";
13152
13152
  import { access as access2, stat as stat9 } from "node:fs/promises";
13153
13153
  import { constants as constants5 } from "node:fs";
13154
13154
  import { platform as platform3, userInfo as userInfo3 } from "node:os";
13155
+ import { delimiter } from "node:path";
13155
13156
  import * as pty from "node-pty";
13156
13157
 
13157
13158
  // src/terminal-support.ts
@@ -13234,6 +13235,15 @@ var TerminalManager = class {
13234
13235
  }
13235
13236
  const { helper } = await ensureTerminalSupport();
13236
13237
  const id = randomUUID15();
13238
+ const path = [
13239
+ process.env.PATH,
13240
+ "/usr/bin",
13241
+ "/bin",
13242
+ "/usr/sbin",
13243
+ "/sbin",
13244
+ "/usr/local/bin",
13245
+ ...platform3() === "darwin" ? ["/opt/homebrew/bin"] : []
13246
+ ].filter(Boolean).join(delimiter);
13237
13247
  let terminalProcess;
13238
13248
  try {
13239
13249
  terminalProcess = pty.spawn(shell, [], {
@@ -13241,7 +13251,7 @@ var TerminalManager = class {
13241
13251
  cols: 80,
13242
13252
  rows: 24,
13243
13253
  cwd,
13244
- env: { PATH: process.env.PATH || "/usr/bin:/bin", HOME: userInfo3().homedir, TERM: "xterm-256color", USER: userInfo3().username }
13254
+ env: { PATH: path, HOME: userInfo3().homedir, TERM: "xterm-256color", USER: userInfo3().username }
13245
13255
  });
13246
13256
  } catch (error) {
13247
13257
  throw new Error(`\u7EC8\u7AEF\u542F\u52A8\u5931\u8D25\uFF1A${error instanceof Error ? error.message : String(error)}\uFF08shell=${shell}\uFF0Ccwd=${cwd}${helper ? `\uFF0Chelper=${helper}` : ""}\uFF0C${process.platform}/${process.arch}\uFF0CNode ${process.version}\uFF09\uFF1B\u8BF7\u5728 Proxy \u4E3B\u673A\u8FD0\u884C octopus-proxy doctor --fix \u68C0\u67E5`);
package/dist/cli.js CHANGED
@@ -31,7 +31,7 @@ import {
31
31
  supportedPlatform,
32
32
  systemdUnitPath,
33
33
  toolSearchDirs
34
- } from "./chunk-AIAW33NC.js";
34
+ } from "./chunk-6NV726RL.js";
35
35
  import {
36
36
  DESKTOP_PERMISSION_GUIDANCE,
37
37
  PlatformDesktop,
package/dist/main.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  ConfigError,
4
4
  runDaemon
5
- } from "./chunk-AIAW33NC.js";
5
+ } from "./chunk-6NV726RL.js";
6
6
  import "./chunk-PPH4OB7Y.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.49",
3
+ "version": "0.1.50",
4
4
  "type": "module",
5
5
  "description": "Octopus host proxy: OpenCode, Codex, ZCode and Pi adapters with service installer CLI",
6
6
  "bin": {