@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.
- package/dist/{chunk-AIAW33NC.js → chunk-6NV726RL.js} +11 -1
- package/dist/cli.js +1 -1
- package/dist/main.js +1 -1
- package/package.json +1 -1
|
@@ -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:
|
|
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
package/dist/main.js
CHANGED