alpic 1.157.1 → 1.157.3

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.
Files changed (2) hide show
  1. package/bin/run.js +15 -1
  2. package/package.json +3 -3
package/bin/run.js CHANGED
@@ -5,6 +5,20 @@ import { EnvHttpProxyAgent, setGlobalDispatcher } from "undici";
5
5
 
6
6
  // Node's native fetch ignores HTTP_PROXY/HTTPS_PROXY/NO_PROXY env vars.
7
7
  // This patches global fetch to route requests through the proxy when set.
8
- setGlobalDispatcher(new EnvHttpProxyAgent());
8
+ // EnvHttpProxyAgent emits a one-time UNDICI-EHPA experimental warning on
9
+ // construction; suppress only that warning so it doesn't clutter CLI output.
10
+ const originalEmitWarning = process.emitWarning;
11
+ process.emitWarning = (warning, ...args) => {
12
+ const code = args[0] && typeof args[0] === "object" ? args[0].code : args[1];
13
+ if (code === "UNDICI-EHPA") {
14
+ return;
15
+ }
16
+ return originalEmitWarning.call(process, warning, ...args);
17
+ };
18
+ try {
19
+ setGlobalDispatcher(new EnvHttpProxyAgent());
20
+ } finally {
21
+ process.emitWarning = originalEmitWarning;
22
+ }
9
23
 
10
24
  await execute({ dir: import.meta.url });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alpic",
3
- "version": "1.157.1",
3
+ "version": "1.157.3",
4
4
  "description": "The command-line interface for Alpic",
5
5
  "homepage": "https://alpic.ai",
6
6
  "preferGlobal": true,
@@ -42,8 +42,8 @@
42
42
  "semver": "^7.8.5",
43
43
  "undici": "^6.27.0",
44
44
  "zod": "^4.4.3",
45
- "@alpic-ai/api": "1.157.1",
46
- "@alpic-ai/sdk": "1.157.1"
45
+ "@alpic-ai/api": "1.157.3",
46
+ "@alpic-ai/sdk": "1.157.3"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@orpc/openapi": "^1.14.8",