agent-neckbeard 1.1.21 → 1.1.22
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 +5 -0
- package/README.md +8 -2
- package/dist/{chunk-FL7Y55YM.js → chunk-6P5I7ZCH.js} +10 -4
- package/dist/index.cjs +642 -17
- package/dist/index.d.cts +72 -5
- package/dist/index.d.ts +72 -5
- package/dist/index.js +628 -14
- package/dist/{invoke-client-D5TMTOYM.js → invoke-client-HIXYE2WN.js} +4 -0
- package/dist/supervisor.cjs +10 -4
- package/dist/supervisor.js +1 -1
- package/docs/DOCKER.md +94 -0
- package/docs/MODAL.md +163 -0
- package/package.json +10 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 1.1.22 - 2026-09-19
|
|
6
|
+
|
|
7
|
+
- Add a `modal` sandbox provider with private Connect Token HTTP auth and the shared managed detached controller; requires host Node.js 22+. See `docs/MODAL.md`.
|
|
8
|
+
- Add a `docker` sandbox provider for local development, evals, and CI. It uses the `docker` CLI without an SDK dependency, publishes no ports (HTTP goes through a loopback `docker exec` tunnel), keeps commands and secrets off host argv and `docker inspect`, can join an existing network, self-expires containers, and only removes containers it created. It is not an isolation boundary; see `docs/DOCKER.md`.
|
|
9
|
+
|
|
5
10
|
## 1.1.21 - 2026-09-08
|
|
6
11
|
|
|
7
12
|
- Preserve sandbox proxy and CA settings when launching agents, fixing Claude API certificate verification failures on Daytona.
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# neckbeard
|
|
4
4
|
|
|
5
|
-
Neckbeard deploys your agent code into an E2B or
|
|
5
|
+
Neckbeard deploys your agent code into an E2B, Daytona, or Modal sandbox and runs it behind a small persistent HTTP server inside that sandbox.
|
|
6
6
|
|
|
7
7
|
The intent is simple: your production process should not run the agent. The sandbox runs the agent, keeps its filesystem/process state, and exposes a private `/invoke` endpoint that neckbeard calls for each turn.
|
|
8
8
|
|
|
@@ -10,11 +10,17 @@ This is designed to work from short-lived request handlers and long-running work
|
|
|
10
10
|
|
|
11
11
|
The host package requires Node.js `>=20.18.1 <21 || >=22`, matching the supported range of its E2B runtime dependency. Its esbuild runtime dependency requires Linux kernel 3.2 or later or macOS 12 or later on those platforms.
|
|
12
12
|
|
|
13
|
+
The Modal provider additionally requires host Node.js 22+ and `MODAL_TOKEN_ID` / `MODAL_TOKEN_SECRET` (or SDK profile credentials). Start with `sandbox: { provider: 'modal' }`; optional settings include `appName`, registry-image `template`, `environment`, `timeoutMs`, `cpu`, and `memoryMiB`. Modal uses private Connect Token HTTP auth and the shared managed detached controller. See [Modal configuration, limits, and live tests](docs/MODAL.md).
|
|
14
|
+
|
|
15
|
+
For local development, evals, and CI there is also `sandbox: { provider: 'docker' }`, which needs only the `docker` CLI and can join a compose network via `network`. It is not an isolation boundary and is not meant for production. See [Docker provider](docs/DOCKER.md).
|
|
16
|
+
|
|
17
|
+
The Modal adapter forces root, including for custom images. Claude Agent SDK consumers opting into `bypassPermissions` must explicitly forward `IS_SANDBOX: '1'` through `Agent.envs` for Claude's root-user check; Neckbeard does not enable this or bypass permissions by default. See the [Claude-on-Modal guide and example](docs/MODAL.md#claude-permissions-under-root) for the security implications and tested workaround.
|
|
18
|
+
|
|
13
19
|
The four primary usage patterns:
|
|
14
20
|
|
|
15
21
|
- Structured tasks: an agent runs once per background task and returns one validated output (Structured Tasks below).
|
|
16
22
|
- Attached sessions: a caller-owned session emits typed progress frames while work runs (Attached Sessions below).
|
|
17
|
-
- Direct sandbox access: `SandboxClient` wraps E2B and
|
|
23
|
+
- Direct sandbox access: `SandboxClient` wraps E2B, Daytona, and Modal behind one filesystem/command API, no agent required (Direct Sandbox Access below).
|
|
18
24
|
- Durable sessions: an opt-in generated supervisor owns Pi inside Daytona and reconnects outward to a long-lived gateway (Durable Sessions below).
|
|
19
25
|
|
|
20
26
|
`Agent.kind` reports `"task"` or `"session"`. The older `mode: "run" | "stream"` property remains as a deprecated compatibility surface.
|
|
@@ -200,7 +200,7 @@ var RELEASED_PATTERN = new RegExp(
|
|
|
200
200
|
"u"
|
|
201
201
|
);
|
|
202
202
|
var HANDLE_PATTERN = new RegExp(
|
|
203
|
-
`^(daytona|e2b)-process-v2:(\\d+):(\\d+):(\\d+):(${HASH_PATTERN}):(${HASH_PATTERN})$`,
|
|
203
|
+
`^(daytona|e2b|modal|docker)-process-v2:(\\d+):(\\d+):(\\d+):(${HASH_PATTERN}):(${HASH_PATTERN})$`,
|
|
204
204
|
"u"
|
|
205
205
|
);
|
|
206
206
|
function boundDetachedProcessLog(value) {
|
|
@@ -429,7 +429,7 @@ function parseDetachedCommand(sessionId) {
|
|
|
429
429
|
const match = HANDLE_PATTERN.exec(sessionId);
|
|
430
430
|
if (!match) return null;
|
|
431
431
|
const [, provider, pid, startTicks, processSessionId, launchKey, descriptorKey] = match;
|
|
432
|
-
if (provider !== "daytona" && provider !== "e2b" || !pid || !startTicks || !processSessionId || !launchKey || !descriptorKey || pid !== processSessionId) {
|
|
432
|
+
if (provider !== "daytona" && provider !== "e2b" && provider !== "modal" && provider !== "docker" || !pid || !startTicks || !processSessionId || !launchKey || !descriptorKey || pid !== processSessionId) {
|
|
433
433
|
return null;
|
|
434
434
|
}
|
|
435
435
|
return {
|
|
@@ -442,10 +442,16 @@ function parseDetachedCommand(sessionId) {
|
|
|
442
442
|
};
|
|
443
443
|
}
|
|
444
444
|
function hasDetachedProcessV2Prefix(sessionId) {
|
|
445
|
-
return /^(?:daytona|e2b)-process-v2/u.test(sessionId);
|
|
445
|
+
return /^(?:daytona|e2b|modal|docker)-process-v2/u.test(sessionId);
|
|
446
446
|
}
|
|
447
|
+
var DETACHED_PROCESS_PROVIDER_NAMES = {
|
|
448
|
+
daytona: "Daytona",
|
|
449
|
+
e2b: "E2B",
|
|
450
|
+
modal: "Modal",
|
|
451
|
+
docker: "Docker"
|
|
452
|
+
};
|
|
447
453
|
function detachedProcessProviderName(provider) {
|
|
448
|
-
return provider
|
|
454
|
+
return DETACHED_PROCESS_PROVIDER_NAMES[provider];
|
|
449
455
|
}
|
|
450
456
|
function resolveDetachedCommandForProvider(sessionId, expectedProvider, failure, commandId) {
|
|
451
457
|
const identity = parseDetachedCommand(sessionId);
|