agent-neckbeard 1.1.19 → 1.1.21

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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## Unreleased
4
+
5
+ ## 1.1.21 - 2026-09-08
6
+
7
+ - Preserve sandbox proxy and CA settings when launching agents, fixing Claude API certificate verification failures on Daytona.
8
+
9
+ ## 1.1.20 - 2026-08-25
10
+
11
+ - Wait for Daytona sandbox deletion to complete during deployment cleanup.
12
+
3
13
  ## 1.1.19 - 2026-08-11
4
14
 
5
15
  - Make implicit source detection independent of the package checkout directory name, including nested consumer chunks beside a bundled SDK, clean up newly created sandboxes when deployment fails after provider creation, refresh the E2B and Daytona runtime dependencies, and align the advertised host Node.js range with E2B (`>=20.18.1 <21 || >=22`). Intentionally move esbuild from 0.24 to 0.28.2 despite its breaking-version boundaries: 0.25 removes the development-server exposure described by GHSA-67mh-4wv8-2f99, 0.28 verifies fallback-downloaded npm binaries, and 0.28.2 carries subsequent bundler correctness fixes. The packaged Next fixture exercises the synchronous tracing path and the live provider suites exercise asynchronous deployment bundling with the upgraded line.
@@ -1302,6 +1302,35 @@ function buildEnvironmentFdLaunch(paths, child, environmentMode) {
1302
1302
  "exec 7<&-"
1303
1303
  ];
1304
1304
  }
1305
+ var SANDBOX_NETWORK_ENVIRONMENT_KEYS = [
1306
+ "HTTP_PROXY",
1307
+ "HTTPS_PROXY",
1308
+ "ALL_PROXY",
1309
+ "NO_PROXY",
1310
+ "http_proxy",
1311
+ "https_proxy",
1312
+ "all_proxy",
1313
+ "no_proxy",
1314
+ "NODE_EXTRA_CA_CERTS",
1315
+ "SSL_CERT_FILE",
1316
+ "SSL_CERT_DIR",
1317
+ "REQUESTS_CA_BUNDLE",
1318
+ "CURL_CA_BUNDLE"
1319
+ ];
1320
+ function inheritSandboxNetworkEnvironment() {
1321
+ const script = [
1322
+ "import json, os",
1323
+ `payload = json.loads(os.environ[${JSON.stringify(SUPERVISOR_ENVIRONMENT_PAYLOAD_ENV)}])`,
1324
+ `for name in ${JSON.stringify(SANDBOX_NETWORK_ENVIRONMENT_KEYS)}:`,
1325
+ " if name in os.environ:",
1326
+ ' payload["environment"].setdefault(name, os.environ[name])',
1327
+ 'encoded = json.dumps(payload, ensure_ascii=False, separators=(",", ":"))',
1328
+ `if len(encoded.encode("utf-8")) > ${SUPERVISOR_ENVIRONMENT_MAX_BYTES} or len(payload["environment"]) > ${SUPERVISOR_ENVIRONMENT_MAX_ENTRIES}:`,
1329
+ " raise SystemExit(1)",
1330
+ "print(encoded)"
1331
+ ].join("\n");
1332
+ return `${SUPERVISOR_ENVIRONMENT_PAYLOAD_ENV}=$(${SUPERVISOR_ENVIRONMENT_PAYLOAD_ENV}="$${SUPERVISOR_ENVIRONMENT_PAYLOAD_ENV}" python3 -I -S -c ${shellQuote(script)}) || exit 1`;
1333
+ }
1305
1334
  function cleanLifecycleShell(script, environmentMode) {
1306
1335
  let suffix = 0;
1307
1336
  let delimiter = "NECKBEARD_DETACHED_LIFECYCLE";
@@ -1316,7 +1345,8 @@ function cleanLifecycleShell(script, environmentMode) {
1316
1345
  return [
1317
1346
  `export PATH=${shellQuote(DETACHED_PROCESS_TRUSTED_PATH)}`,
1318
1347
  ...environmentMode === "exec" ? [
1319
- `if [ -z "\${${SUPERVISOR_ENVIRONMENT_PAYLOAD_ENV}+present}" ]; then ${SUPERVISOR_ENVIRONMENT_PAYLOAD_ENV}=${shellQuote('{"version":1,"environment":{}}')}; fi`
1348
+ `if [ -z "\${${SUPERVISOR_ENVIRONMENT_PAYLOAD_ENV}+present}" ]; then ${SUPERVISOR_ENVIRONMENT_PAYLOAD_ENV}=${shellQuote('{"version":1,"environment":{}}')}; fi`,
1349
+ inheritSandboxNetworkEnvironment()
1320
1350
  ] : [],
1321
1351
  `exec env -i ${fixedEnvironment} ${SUPERVISOR_ENVIRONMENT_PAYLOAD_ENV}="$${SUPERVISOR_ENVIRONMENT_PAYLOAD_ENV}" sh -s <<'${delimiter}'`,
1322
1352
  script,
package/dist/index.cjs CHANGED
@@ -1654,6 +1654,35 @@ function buildEnvironmentFdLaunch(paths, child, environmentMode) {
1654
1654
  "exec 7<&-"
1655
1655
  ];
1656
1656
  }
1657
+ var SANDBOX_NETWORK_ENVIRONMENT_KEYS = [
1658
+ "HTTP_PROXY",
1659
+ "HTTPS_PROXY",
1660
+ "ALL_PROXY",
1661
+ "NO_PROXY",
1662
+ "http_proxy",
1663
+ "https_proxy",
1664
+ "all_proxy",
1665
+ "no_proxy",
1666
+ "NODE_EXTRA_CA_CERTS",
1667
+ "SSL_CERT_FILE",
1668
+ "SSL_CERT_DIR",
1669
+ "REQUESTS_CA_BUNDLE",
1670
+ "CURL_CA_BUNDLE"
1671
+ ];
1672
+ function inheritSandboxNetworkEnvironment() {
1673
+ const script = [
1674
+ "import json, os",
1675
+ `payload = json.loads(os.environ[${JSON.stringify(SUPERVISOR_ENVIRONMENT_PAYLOAD_ENV)}])`,
1676
+ `for name in ${JSON.stringify(SANDBOX_NETWORK_ENVIRONMENT_KEYS)}:`,
1677
+ " if name in os.environ:",
1678
+ ' payload["environment"].setdefault(name, os.environ[name])',
1679
+ 'encoded = json.dumps(payload, ensure_ascii=False, separators=(",", ":"))',
1680
+ `if len(encoded.encode("utf-8")) > ${SUPERVISOR_ENVIRONMENT_MAX_BYTES} or len(payload["environment"]) > ${SUPERVISOR_ENVIRONMENT_MAX_ENTRIES}:`,
1681
+ " raise SystemExit(1)",
1682
+ "print(encoded)"
1683
+ ].join("\n");
1684
+ return `${SUPERVISOR_ENVIRONMENT_PAYLOAD_ENV}=$(${SUPERVISOR_ENVIRONMENT_PAYLOAD_ENV}="$${SUPERVISOR_ENVIRONMENT_PAYLOAD_ENV}" python3 -I -S -c ${shellQuote(script)}) || exit 1`;
1685
+ }
1657
1686
  function cleanLifecycleShell(script, environmentMode) {
1658
1687
  let suffix = 0;
1659
1688
  let delimiter = "NECKBEARD_DETACHED_LIFECYCLE";
@@ -1668,7 +1697,8 @@ function cleanLifecycleShell(script, environmentMode) {
1668
1697
  return [
1669
1698
  `export PATH=${shellQuote(DETACHED_PROCESS_TRUSTED_PATH)}`,
1670
1699
  ...environmentMode === "exec" ? [
1671
- `if [ -z "\${${SUPERVISOR_ENVIRONMENT_PAYLOAD_ENV}+present}" ]; then ${SUPERVISOR_ENVIRONMENT_PAYLOAD_ENV}=${shellQuote('{"version":1,"environment":{}}')}; fi`
1700
+ `if [ -z "\${${SUPERVISOR_ENVIRONMENT_PAYLOAD_ENV}+present}" ]; then ${SUPERVISOR_ENVIRONMENT_PAYLOAD_ENV}=${shellQuote('{"version":1,"environment":{}}')}; fi`,
1701
+ inheritSandboxNetworkEnvironment()
1672
1702
  ] : [],
1673
1703
  `exec env -i ${fixedEnvironment} ${SUPERVISOR_ENVIRONMENT_PAYLOAD_ENV}="$${SUPERVISOR_ENVIRONMENT_PAYLOAD_ENV}" sh -s <<'${delimiter}'`,
1674
1704
  script,
@@ -2992,7 +3022,10 @@ var DaytonaSandboxHandle = class _DaytonaSandboxHandle {
2992
3022
  return { url: preview.url, trafficToken: preview.token };
2993
3023
  }
2994
3024
  destroy() {
2995
- return this.sandbox.delete(daytonaTimeoutSeconds(SANDBOX_COMMAND_TIMEOUT_MS));
3025
+ return this.sandbox.delete(
3026
+ daytonaTimeoutSeconds(SANDBOX_COMMAND_TIMEOUT_MS),
3027
+ true
3028
+ );
2996
3029
  }
2997
3030
  };
2998
3031
 
@@ -4216,7 +4249,10 @@ async function createProviderSandboxHandle(options) {
4216
4249
  (message) => new DeploymentError(message)
4217
4250
  );
4218
4251
  } catch (error) {
4219
- await sandbox2.delete(options.createTimeoutSec ?? DAYTONA_CREATE_TIMEOUT_SEC).catch(() => void 0);
4252
+ await sandbox2.delete(
4253
+ options.createTimeoutSec ?? DAYTONA_CREATE_TIMEOUT_SEC,
4254
+ true
4255
+ ).catch(() => void 0);
4220
4256
  throw error;
4221
4257
  }
4222
4258
  }
package/dist/index.js CHANGED
@@ -15,7 +15,7 @@ import {
15
15
  parseDetachedProcessLogs,
16
16
  shellQuote,
17
17
  uploadDaytonaFile
18
- } from "./chunk-3EB4CT5S.js";
18
+ } from "./chunk-FL7Y55YM.js";
19
19
  import {
20
20
  RUNTIME_PROTOCOL_VERSION
21
21
  } from "./chunk-DHFC3O44.js";
@@ -324,7 +324,10 @@ var DaytonaSandboxHandle = class _DaytonaSandboxHandle {
324
324
  return { url: preview.url, trafficToken: preview.token };
325
325
  }
326
326
  destroy() {
327
- return this.sandbox.delete(daytonaTimeoutSeconds(SANDBOX_COMMAND_TIMEOUT_MS));
327
+ return this.sandbox.delete(
328
+ daytonaTimeoutSeconds(SANDBOX_COMMAND_TIMEOUT_MS),
329
+ true
330
+ );
328
331
  }
329
332
  };
330
333
 
@@ -1548,7 +1551,10 @@ async function createProviderSandboxHandle(options) {
1548
1551
  (message) => new DeploymentError(message)
1549
1552
  );
1550
1553
  } catch (error) {
1551
- await sandbox2.delete(options.createTimeoutSec ?? DAYTONA_CREATE_TIMEOUT_SEC).catch(() => void 0);
1554
+ await sandbox2.delete(
1555
+ options.createTimeoutSec ?? DAYTONA_CREATE_TIMEOUT_SEC,
1556
+ true
1557
+ ).catch(() => void 0);
1552
1558
  throw error;
1553
1559
  }
1554
1560
  }
@@ -1332,6 +1332,35 @@ function buildEnvironmentFdLaunch(paths, child, environmentMode) {
1332
1332
  "exec 7<&-"
1333
1333
  ];
1334
1334
  }
1335
+ var SANDBOX_NETWORK_ENVIRONMENT_KEYS = [
1336
+ "HTTP_PROXY",
1337
+ "HTTPS_PROXY",
1338
+ "ALL_PROXY",
1339
+ "NO_PROXY",
1340
+ "http_proxy",
1341
+ "https_proxy",
1342
+ "all_proxy",
1343
+ "no_proxy",
1344
+ "NODE_EXTRA_CA_CERTS",
1345
+ "SSL_CERT_FILE",
1346
+ "SSL_CERT_DIR",
1347
+ "REQUESTS_CA_BUNDLE",
1348
+ "CURL_CA_BUNDLE"
1349
+ ];
1350
+ function inheritSandboxNetworkEnvironment() {
1351
+ const script = [
1352
+ "import json, os",
1353
+ `payload = json.loads(os.environ[${JSON.stringify(SUPERVISOR_ENVIRONMENT_PAYLOAD_ENV)}])`,
1354
+ `for name in ${JSON.stringify(SANDBOX_NETWORK_ENVIRONMENT_KEYS)}:`,
1355
+ " if name in os.environ:",
1356
+ ' payload["environment"].setdefault(name, os.environ[name])',
1357
+ 'encoded = json.dumps(payload, ensure_ascii=False, separators=(",", ":"))',
1358
+ `if len(encoded.encode("utf-8")) > ${SUPERVISOR_ENVIRONMENT_MAX_BYTES} or len(payload["environment"]) > ${SUPERVISOR_ENVIRONMENT_MAX_ENTRIES}:`,
1359
+ " raise SystemExit(1)",
1360
+ "print(encoded)"
1361
+ ].join("\n");
1362
+ return `${SUPERVISOR_ENVIRONMENT_PAYLOAD_ENV}=$(${SUPERVISOR_ENVIRONMENT_PAYLOAD_ENV}="$${SUPERVISOR_ENVIRONMENT_PAYLOAD_ENV}" python3 -I -S -c ${shellQuote(script)}) || exit 1`;
1363
+ }
1335
1364
  function cleanLifecycleShell(script, environmentMode) {
1336
1365
  let suffix = 0;
1337
1366
  let delimiter = "NECKBEARD_DETACHED_LIFECYCLE";
@@ -1346,7 +1375,8 @@ function cleanLifecycleShell(script, environmentMode) {
1346
1375
  return [
1347
1376
  `export PATH=${shellQuote(DETACHED_PROCESS_TRUSTED_PATH)}`,
1348
1377
  ...environmentMode === "exec" ? [
1349
- `if [ -z "\${${SUPERVISOR_ENVIRONMENT_PAYLOAD_ENV}+present}" ]; then ${SUPERVISOR_ENVIRONMENT_PAYLOAD_ENV}=${shellQuote('{"version":1,"environment":{}}')}; fi`
1378
+ `if [ -z "\${${SUPERVISOR_ENVIRONMENT_PAYLOAD_ENV}+present}" ]; then ${SUPERVISOR_ENVIRONMENT_PAYLOAD_ENV}=${shellQuote('{"version":1,"environment":{}}')}; fi`,
1379
+ inheritSandboxNetworkEnvironment()
1350
1380
  ] : [],
1351
1381
  `exec env -i ${fixedEnvironment} ${SUPERVISOR_ENVIRONMENT_PAYLOAD_ENV}="$${SUPERVISOR_ENVIRONMENT_PAYLOAD_ENV}" sh -s <<'${delimiter}'`,
1352
1382
  script,
@@ -9,7 +9,7 @@ import {
9
9
  serializeSupervisorEnvironmentHandoff,
10
10
  shellQuote,
11
11
  uploadDaytonaFile
12
- } from "./chunk-3EB4CT5S.js";
12
+ } from "./chunk-FL7Y55YM.js";
13
13
  import {
14
14
  serializeError
15
15
  } from "./chunk-33IXN6MM.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-neckbeard",
3
- "version": "1.1.19",
3
+ "version": "1.1.21",
4
4
  "description": "Deploy AI agents to E2B and Daytona sandboxes",
5
5
  "type": "module",
6
6
  "exports": {