@dev-anywhere/proxy 0.11.0 → 0.11.2

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.
@@ -0,0 +1,60 @@
1
+ #!/usr/bin/env node
2
+
3
+ // src/common/system-http-proxy.ts
4
+ import { execFileSync } from "child_process";
5
+ import { isIP } from "net";
6
+ var proxyKeys = ["HTTP_PROXY", "HTTPS_PROXY", "ALL_PROXY"];
7
+ function readMacSystemProxy() {
8
+ return execFileSync("/usr/sbin/scutil", ["--proxy"], {
9
+ encoding: "utf8",
10
+ timeout: 1e3,
11
+ stdio: ["ignore", "pipe", "ignore"]
12
+ });
13
+ }
14
+ function withSystemHttpProxy(env, platform = process.platform, readProxy = readMacSystemProxy) {
15
+ if (platform !== "darwin" || proxyKeys.some((key) => key in env || key.toLowerCase() in env)) {
16
+ return env;
17
+ }
18
+ let settings;
19
+ try {
20
+ settings = readProxy();
21
+ } catch {
22
+ return env;
23
+ }
24
+ const setting = (key) => settings.match(new RegExp(`^ ${key} : (.+)$`, "m"))?.[1].trim();
25
+ if (setting("ProxyAutoConfigEnable") === "1" || setting("ProxyAutoDiscoveryEnable") === "1") {
26
+ return env;
27
+ }
28
+ const result = { ...env };
29
+ let usingSystemProxy = false;
30
+ for (const protocol of ["HTTP", "HTTPS"]) {
31
+ if (setting(`${protocol}Enable`) !== "1") continue;
32
+ const host = setting(`${protocol}Proxy`)?.replace(/^\[|\]$/g, "");
33
+ const port = Number(setting(`${protocol}Port`));
34
+ if (!host || !Number.isInteger(port) || port < 1 || port > 65535) continue;
35
+ const ipv6 = isIP(host) === 6;
36
+ if (!ipv6 && !/^[a-z0-9.-]+$/i.test(host)) continue;
37
+ const url = `http://${ipv6 ? `[${host}]` : host}:${port}`;
38
+ result[`${protocol}_PROXY`] = url;
39
+ result[`${protocol.toLowerCase()}_proxy`] = url;
40
+ usingSystemProxy = true;
41
+ }
42
+ if (!usingSystemProxy) return env;
43
+ if (env.NO_PROXY === void 0 && env.no_proxy === void 0) {
44
+ const exceptions = settings.match(
45
+ /^ {2}ExceptionsList : <array> \{\s*\n([\s\S]*?)^ {2}\}/m
46
+ )?.[1];
47
+ const hosts = [...(exceptions ?? "").matchAll(/^ {4}\d+ : ([^\s,]+)\s*$/gm)].map(
48
+ (entry) => entry[1].replace(/^\*\./, ".")
49
+ );
50
+ const bypass = [.../* @__PURE__ */ new Set(["localhost", "127.0.0.1", "::1", ...hosts])].join(",");
51
+ result.NO_PROXY = bypass;
52
+ result.no_proxy = bypass;
53
+ }
54
+ return result;
55
+ }
56
+
57
+ export {
58
+ withSystemHttpProxy
59
+ };
60
+ //# sourceMappingURL=chunk-IBAO5S3D.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/common/system-http-proxy.ts"],"sourcesContent":["import { execFileSync } from \"node:child_process\";\nimport { isIP } from \"node:net\";\n\nconst proxyKeys = [\"HTTP_PROXY\", \"HTTPS_PROXY\", \"ALL_PROXY\"];\n\nfunction readMacSystemProxy(): string {\n return execFileSync(\"/usr/sbin/scutil\", [\"--proxy\"], {\n encoding: \"utf8\",\n timeout: 1_000,\n stdio: [\"ignore\", \"pipe\", \"ignore\"],\n });\n}\n\n/** Present the current static macOS proxy to CLI clients that only read environment variables. */\nexport function withSystemHttpProxy(\n env: NodeJS.ProcessEnv,\n platform: NodeJS.Platform = process.platform,\n readProxy = readMacSystemProxy,\n): NodeJS.ProcessEnv {\n // An explicit route (including an empty value) wins as a whole over the fallback.\n if (platform !== \"darwin\" || proxyKeys.some((key) => key in env || key.toLowerCase() in env)) {\n return env;\n }\n\n let settings: string;\n try {\n settings = readProxy();\n } catch {\n return env;\n }\n // Restrict matching to top-level settings, outside per-interface scutil dictionaries.\n const setting = (key: string) => settings.match(new RegExp(`^ ${key} : (.+)$`, \"m\"))?.[1].trim();\n if (setting(\"ProxyAutoConfigEnable\") === \"1\" || setting(\"ProxyAutoDiscoveryEnable\") === \"1\") {\n return env;\n }\n\n const result = { ...env };\n let usingSystemProxy = false;\n for (const protocol of [\"HTTP\", \"HTTPS\"]) {\n if (setting(`${protocol}Enable`) !== \"1\") continue;\n const host = setting(`${protocol}Proxy`)?.replace(/^\\[|\\]$/g, \"\");\n const port = Number(setting(`${protocol}Port`));\n if (!host || !Number.isInteger(port) || port < 1 || port > 65535) continue;\n const ipv6 = isIP(host) === 6;\n if (!ipv6 && !/^[a-z0-9.-]+$/i.test(host)) continue;\n // HTTPS requests use CONNECT through the configured HTTP proxy.\n const url = `http://${ipv6 ? `[${host}]` : host}:${port}`;\n result[`${protocol}_PROXY`] = url;\n result[`${protocol.toLowerCase()}_proxy`] = url;\n usingSystemProxy = true;\n }\n if (!usingSystemProxy) return env;\n\n if (env.NO_PROXY === undefined && env.no_proxy === undefined) {\n const exceptions = settings.match(\n /^ {2}ExceptionsList : <array> \\{\\s*\\n([\\s\\S]*?)^ {2}\\}/m,\n )?.[1];\n const hosts = [...(exceptions ?? \"\").matchAll(/^ {4}\\d+ : ([^\\s,]+)\\s*$/gm)].map((entry) =>\n entry[1].replace(/^\\*\\./, \".\"),\n );\n const bypass = [...new Set([\"localhost\", \"127.0.0.1\", \"::1\", ...hosts])].join(\",\");\n result.NO_PROXY = bypass;\n result.no_proxy = bypass;\n }\n return result;\n}\n"],"mappings":";;;AAAA,SAAS,oBAAoB;AAC7B,SAAS,YAAY;AAErB,IAAM,YAAY,CAAC,cAAc,eAAe,WAAW;AAE3D,SAAS,qBAA6B;AACpC,SAAO,aAAa,oBAAoB,CAAC,SAAS,GAAG;AAAA,IACnD,UAAU;AAAA,IACV,SAAS;AAAA,IACT,OAAO,CAAC,UAAU,QAAQ,QAAQ;AAAA,EACpC,CAAC;AACH;AAGO,SAAS,oBACd,KACA,WAA4B,QAAQ,UACpC,YAAY,oBACO;AAEnB,MAAI,aAAa,YAAY,UAAU,KAAK,CAAC,QAAQ,OAAO,OAAO,IAAI,YAAY,KAAK,GAAG,GAAG;AAC5F,WAAO;AAAA,EACT;AAEA,MAAI;AAC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I,CAAC,aAAa,aAAa,OAAO,GAAG,KAAK,CAAC,CAAC,EAAE,KAAK,GAAG;AACjF,WAAO,WAAW;AAClB,WAAO,WAAW;AAAA,EACpB;AACA,SAAO;AACT;","names":[]}
@@ -7,7 +7,7 @@ import {
7
7
  TERMINAL_ADMISSION_VERSION,
8
8
  parseTerminalAdmissionResponse,
9
9
  serializeTerminalAdmissionMessage
10
- } from "./chunk-GBNUJCH4.js";
10
+ } from "./chunk-DMYLOWNT.js";
11
11
  import {
12
12
  tryConnectSocket
13
13
  } from "./chunk-3NUN2VYO.js";
@@ -244,4 +244,4 @@ export {
244
244
  requestTerminalAdmission,
245
245
  swapServeSocket
246
246
  };
247
- //# sourceMappingURL=chunk-5DGT5OCO.js.map
247
+ //# sourceMappingURL=chunk-VU5TZ24H.js.map
package/dist/index.js CHANGED
@@ -254,7 +254,7 @@ var program = new Command("dev-anywhere").description("Dev Anywhere - transparen
254
254
  console.error(err instanceof Error ? err.message : String(err));
255
255
  process.exit(1);
256
256
  }
257
- const { startTerminal } = await import("./terminal-D2E4NE43.js");
257
+ const { startTerminal } = await import("./terminal-RTUZIOM5.js");
258
258
  const { provider, args } = invocation;
259
259
  await startTerminal(args, provider);
260
260
  });
@@ -310,12 +310,12 @@ for (const [action, description] of [
310
310
  ["status", "Show automatic startup status"]
311
311
  ]) {
312
312
  autostart.command(action).description(description).option("--system", "Use a system service that runs without desktop login").option("--now", "Start the system service now and restart Proxy (enable --system only)").action(async (options) => {
313
- const { runAutostartCommand } = await import("./autostart-ZEUB5VIE.js");
313
+ const { runAutostartCommand } = await import("./autostart-4ODG6HXY.js");
314
314
  await runAutostartCommand(action, options);
315
315
  });
316
316
  }
317
317
  autostart.command("run", { hidden: true }).option("--daemon", "Detach after service readiness (systemd login trigger)").option("--system", "Run the persistent system service host").action(async (_options, command) => {
318
- const { startAutostartService } = await import("./autostart-ZEUB5VIE.js");
318
+ const { startAutostartService } = await import("./autostart-4ODG6HXY.js");
319
319
  const options = command.optsWithGlobals();
320
320
  await startAutostartService(Boolean(options.daemon), Boolean(options.system));
321
321
  });
@@ -329,7 +329,7 @@ relay.command("token").description("Print the relay's current client token (auth
329
329
  console.error(`Dev Anywhere is not initialized. Run "dev-anywhere init" first.`);
330
330
  process.exit(1);
331
331
  }
332
- const { runRelayTokenCommand } = await import("./relay-token-YP4HZGIJ.js");
332
+ const { runRelayTokenCommand } = await import("./relay-token-R4ML46WK.js");
333
333
  await runRelayTokenCommand({ relayName: opts.relay });
334
334
  });
335
335
  program.addCommand(relay);
@@ -1,7 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  loadConfig
4
- } from "./chunk-GSYEOTS5.js";
4
+ } from "./chunk-4DKT2TRT.js";
5
+ import "./chunk-IBAO5S3D.js";
5
6
  import "./chunk-NQDJ6QAM.js";
6
7
  import "./chunk-YFCPLWNV.js";
7
8
  import "./chunk-GKG5ZNSI.js";
@@ -81,4 +82,4 @@ function printResult(relayName, relayUrl, result) {
81
82
  export {
82
83
  runRelayTokenCommand
83
84
  };
84
- //# sourceMappingURL=relay-token-YP4HZGIJ.js.map
85
+ //# sourceMappingURL=relay-token-R4ML46WK.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/relay-token.ts"],"sourcesContent":["// `dev-anywhere relay token` 实现:用本地 proxyToken 向已配置的 relay\n// 请求当前生效的 client token,避免运维者必须 ssh 到 VPS 读 .env。\nimport { loadConfig } from \"./common/config.js\";\n\ninterface FetchClientTokenResult {\n status: \"ok\" | \"no_client_token\";\n clientToken?: string;\n}\n\nfunction toHttpUrl(relayUrl: string): string {\n return relayUrl.replace(/^ws:/i, \"http:\").replace(/^wss:/i, \"https:\").replace(/\\/$/, \"\");\n}\n\nexport async function runRelayTokenCommand(options: { relayName?: string }): Promise<void> {\n let config: ReturnType<typeof loadConfig>;\n try {\n config = loadConfig({ relayName: options.relayName });\n } catch (err) {\n console.error(err instanceof Error ? err.message : String(err));\n process.exit(1);\n }\n\n const { relayName, relayUrl, relayToken } = config;\n if (!relayUrl) {\n console.error(\n `Relay \"${relayName}\" has no URL configured. Edit ~/.dev-anywhere/config.json or set RELAY_URL.`,\n );\n process.exit(1);\n }\n if (!relayToken) {\n console.error(\n `Relay \"${relayName}\" has no proxy token configured. The admin endpoint requires one.`,\n );\n process.exit(1);\n }\n\n const adminUrl = `${toHttpUrl(relayUrl)}/api/admin/client-token`;\n let res: Response;\n try {\n res = await fetch(adminUrl, {\n headers: { authorization: `Bearer ${relayToken}` },\n cache: \"no-store\",\n });\n } catch (err) {\n console.error(`Request to ${adminUrl} failed: ${err instanceof Error ? err.message : err}`);\n process.exit(1);\n }\n\n if (res.status === 401) {\n console.error(\n `Relay rejected the proxy token (HTTP 401). Verify ~/.dev-anywhere/config.json matches the relay's RELAY_PROXY_TOKEN.`,\n );\n process.exit(1);\n }\n if (res.status === 204) {\n const result: FetchClientTokenResult = { status: \"no_client_token\" };\n printResult(relayName, relayUrl, result);\n return;\n }\n if (!res.ok) {\n const body = await res.text().catch(() => \"\");\n console.error(`Unexpected response from relay (HTTP ${res.status}): ${body}`);\n process.exit(1);\n }\n\n const json = (await res.json()) as { clientToken?: unknown };\n if (typeof json.clientToken !== \"string\" || json.clientToken.length === 0) {\n console.error(`Relay returned a malformed payload: ${JSON.stringify(json)}`);\n process.exit(1);\n }\n printResult(relayName, relayUrl, { status: \"ok\", clientToken: json.clientToken });\n}\n\nfunction printResult(relayName: string, relayUrl: string, result: FetchClientTokenResult): void {\n const httpBase = toHttpUrl(relayUrl);\n console.log(`Relay: ${relayName} (${relayUrl})`);\n if (result.status === \"no_client_token\") {\n console.log(`Token: (not configured — /client endpoint is open)`);\n console.log(`URL: ${httpBase}/`);\n return;\n }\n console.log(`Token: ${result.clientToken}`);\n console.log(`URL: ${httpBase}/`);\n console.log(`Use: paste the token in Settings -> Relay Token`);\n}\n"],"mappings":";;;;;;;;;;AASA,SAAS,UAAU,UAA0B;AAC3C,SAAO,SAAS,QAAQ,SAAS,OAAO,EAAE,QA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AK,CAAC;AAAA,EAChB;AAEA,QAAM,OAAQ,MAAM,IAAI,KAAK;AAC7B,MAAI,OAAO,KAAK,gBAAgB,YAAY,KAAK,YAAY,WAAW,GAAG;AACzE,YAAQ,MAAM,uCAAuC,KAAK,UAAU,IAAI,CAAC,EAAE;AAC3E,YAAQ,KAAK,CAAC;AAAA,EAChB;AACA,cAAY,WAAW,UAAU,EAAE,QAAQ,MAAM,aAAa,KAAK,YAAY,CAAC;AAClF;AAEA,SAAS,YAAY,WAAmB,UAAkB,QAAsC;AAC9F,QAAM,WAAW,UAAU,QAAQ;AACnC,UAAQ,IAAI,UAAU,SAAS,KAAK,QAAQ,GAAG;AAC/C,MAAI,OAAO,WAAW,mBAAmB;AACvC,YAAQ,IAAI,yDAAoD;AAChE,YAAQ,IAAI,UAAU,QAAQ,GAAG;AACjC;AAAA,EACF;AACA,UAAQ,IAAI,UAAU,OAAO,WAAW,EAAE;AAC1C,UAAQ,IAAI,UAAU,QAAQ,GAAG;AACjC,UAAQ,IAAI,mDAAmD;AACjE;","names":[]}
1
+ {"version":3,"sources":["../src/relay-token.ts"],"sourcesContent":["// `dev-anywhere relay token` 实现:用本地 proxyToken 向已配置的 relay\n// 请求当前生效的 client token,避免运维者必须 ssh 到 VPS 读 .env。\nimport { loadConfig } from \"./common/config.js\";\n\ninterface FetchClientTokenResult {\n status: \"ok\" | \"no_client_token\";\n clientToken?: string;\n}\n\nfunction toHttpUrl(relayUrl: string): string {\n return relayUrl.replace(/^ws:/i, \"http:\").replace(/^wss:/i, \"https:\").replace(/\\/$/, \"\");\n}\n\nexport async function runRelayTokenCommand(options: { relayName?: string }): Promise<void> {\n let config: ReturnType<typeof loadConfig>;\n try {\n config = loadConfig({ relayName: options.relayName });\n } catch (err) {\n console.error(err instanceof Error ? err.message : String(err));\n process.exit(1);\n }\n\n const { relayName, relayUrl, relayToken } = config;\n if (!relayUrl) {\n console.error(\n `Relay \"${relayName}\" has no URL configured. Edit ~/.dev-anywhere/config.json or set RELAY_URL.`,\n );\n process.exit(1);\n }\n if (!relayToken) {\n console.error(\n `Relay \"${relayName}\" has no proxy token configured. The admin endpoint requires one.`,\n );\n process.exit(1);\n }\n\n const adminUrl = `${toHttpUrl(relayUrl)}/api/admin/client-token`;\n let res: Response;\n try {\n res = await fetch(adminUrl, {\n headers: { authorization: `Bearer ${relayToken}` },\n cache: \"no-store\",\n });\n } catch (err) {\n console.error(`Request to ${adminUrl} failed: ${err instanceof Error ? err.message : err}`);\n process.exit(1);\n }\n\n if (res.status === 401) {\n console.error(\n `Relay rejected the proxy token (HTTP 401). Verify ~/.dev-anywhere/config.json matches the relay's RELAY_PROXY_TOKEN.`,\n );\n process.exit(1);\n }\n if (res.status === 204) {\n const result: FetchClientTokenResult = { status: \"no_client_token\" };\n printResult(relayName, relayUrl, result);\n return;\n }\n if (!res.ok) {\n const body = await res.text().catch(() => \"\");\n console.error(`Unexpected response from relay (HTTP ${res.status}): ${body}`);\n process.exit(1);\n }\n\n const json = (await res.json()) as { clientToken?: unknown };\n if (typeof json.clientToken !== \"string\" || json.clientToken.length === 0) {\n console.error(`Relay returned a malformed payload: ${JSON.stringify(json)}`);\n process.exit(1);\n }\n printResult(relayName, relayUrl, { status: \"ok\", clientToken: json.clientToken });\n}\n\nfunction printResult(relayName: string, relayUrl: string, result: FetchClientTokenResult): void {\n const httpBase = toHttpUrl(relayUrl);\n console.log(`Relay: ${relayName} (${relayUrl})`);\n if (result.status === \"no_client_token\") {\n console.log(`Token: (not configured — /client endpoint is open)`);\n console.log(`URL: ${httpBase}/`);\n return;\n }\n console.log(`Token: ${result.clientToken}`);\n console.log(`URL: ${httpBase}/`);\n console.log(`Use: paste the token in Settings -> Relay Token`);\n}\n"],"mappings":";;;;;;;;;;;AASA,SAAS,UAAU,UAA0B;AAC3C,SAAO,SAAS,QAAQ,SAAS,OAAO,EAAE,QAAQ,UAAU,QAAQ,EAAE,QAAQ,OAAO,EAAE;AACzF;AAEA,eAAsB,qBAAqB,SAAgD;AACz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K,gBAAgB,YAAY,KAAK,YAAY,WAAW,GAAG;AACzE,YAAQ,MAAM,uCAAuC,KAAK,UAAU,IAAI,CAAC,EAAE;AAC3E,YAAQ,KAAK,CAAC;AAAA,EAChB;AACA,cAAY,WAAW,UAAU,EAAE,QAAQ,MAAM,aAAa,KAAK,YAAY,CAAC;AAClF;AAEA,SAAS,YAAY,WAAmB,UAAkB,QAAsC;AAC9F,QAAM,WAAW,UAAU,QAAQ;AACnC,UAAQ,IAAI,UAAU,SAAS,KAAK,QAAQ,GAAG;AAC/C,MAAI,OAAO,WAAW,mBAAmB;AACvC,YAAQ,IAAI,yDAAoD;AAChE,YAAQ,IAAI,UAAU,QAAQ,GAAG;AACjC;AAAA,EACF;AACA,UAAQ,IAAI,UAAU,OAAO,WAAW,EAAE;AAC1C,UAAQ,IAAI,UAAU,QAAQ,GAAG;AACjC,UAAQ,IAAI,mDAAmD;AACjE;","names":[]}
package/dist/serve.js CHANGED
@@ -3,7 +3,8 @@ import {
3
3
  buildProviderEnv,
4
4
  loadConfig,
5
5
  saveAgentCliPath
6
- } from "./chunk-GSYEOTS5.js";
6
+ } from "./chunk-4DKT2TRT.js";
7
+ import "./chunk-IBAO5S3D.js";
7
8
  import {
8
9
  PersistedSessionRecordSchema,
9
10
  readSessionRuntimeIpcVersions,
@@ -39,7 +40,7 @@ import {
39
40
  import {
40
41
  buildHostedPtyArgs,
41
42
  parseTerminalWorkerCliArgs
42
- } from "./chunk-RSHWLFLA.js";
43
+ } from "./chunk-AS3GTK55.js";
43
44
  import {
44
45
  ReconnectSupervisor,
45
46
  TERMINAL_ADMISSION_FRAME_MAX_BYTES,
@@ -47,7 +48,7 @@ import {
47
48
  isTerminalAdmissionRequestCandidate,
48
49
  parseTerminalAdmissionRequest,
49
50
  serializeTerminalAdmissionMessage
50
- } from "./chunk-GBNUJCH4.js";
51
+ } from "./chunk-DMYLOWNT.js";
51
52
  import {
52
53
  startServiceControl
53
54
  } from "./chunk-VYAEW7G6.js";