agent-neckbeard 1.1.27 → 1.1.29
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 +16 -0
- package/README.md +53 -461
- package/dist/build.cjs +5715 -0
- package/dist/build.d.cts +80 -0
- package/dist/build.d.ts +80 -0
- package/dist/build.js +17 -0
- package/dist/chunk-BPXEIXPM.js +4363 -0
- package/dist/chunk-FSBTLBB5.js +346 -0
- package/dist/chunk-KG6SJM74.js +97 -0
- package/dist/chunk-YFG4EKZM.js +508 -0
- package/dist/cli.cjs +5761 -0
- package/dist/cli.d.cts +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +75 -0
- package/dist/index.cjs +1599 -146
- package/dist/index.d.cts +321 -6
- package/dist/index.d.ts +321 -6
- package/dist/index.js +36 -3397
- package/dist/{invoke-client-YKWOTQWG.js → invoke-client-P2CPBYTF.js} +2 -41
- package/dist/serve-Du2NCz9_.d.cts +111 -0
- package/dist/serve-Du2NCz9_.d.ts +111 -0
- package/dist/serve.cjs +467 -0
- package/dist/serve.d.cts +1 -0
- package/dist/serve.d.ts +1 -0
- package/dist/serve.js +8 -0
- package/docs/AGENT.md +205 -0
- package/docs/DAYTONA.md +56 -0
- package/docs/DOCKER.md +7 -7
- package/docs/E2B.md +11 -0
- package/docs/LEGACY.md +335 -0
- package/docs/MODAL.md +14 -12
- package/docs/SUPERVISOR.md +2 -2
- package/package.json +43 -3
- package/dist/chunk-6GCQOKYI.js +0 -48
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.1.29 - 2026-11-19
|
|
4
|
+
|
|
5
|
+
- Add `Agent.steer(sandboxId, turnId, { steerId, message })` and the runtime's `POST /turns/:turnId/steer`, which queue a message for a running turn with the session's `steer()`; Pi delivers it after its current tool calls. Each steer gets exactly one outcome: it is delivered into its turn, or the turn's end record names it in `undeliveredSteerIds`, and it never reaches a later turn. `steer()` returns `false` for a turn that can no longer take it, a repeated `steerId` shares the first request's outcome, and an abort takes back the steers still queued before stopping the session. See `docs/AGENT.md#steering`.
|
|
6
|
+
- **Breaking:** the turn protocol is version 3. A host on this release refuses to start a sandbox whose image serves version 2, so build the agent's image with this release before deploying the host, as a host that runs its own commit's image does.
|
|
7
|
+
|
|
8
|
+
## 1.1.28 - 2026-11-13
|
|
9
|
+
|
|
10
|
+
- Add `Agent`, which runs a Pi agent from a prebuilt container image, and `serve()` from the new `agent-neckbeard/serve` entry point, which the image runs as its main process around its Pi session, calling the session's optional `afterTurn()` before each turn's end record and outside its deadline. Starting a sandbox installs and uploads nothing, and `kill()` throws when a provider fails to delete a sandbox that still exists, so cleanup can be retried. Turns carry a caller-chosen `turnId` and per-turn `env`, stream numbered records of Pi's JSON events, keep running when the host disconnects, and resume from any record; retrying a start never runs a turn twice. Modal pulls the image directly; `prepare()` turns it into a Daytona snapshot or E2B template, and `gc()` deletes older ones. See `docs/AGENT.md`.
|
|
11
|
+
- **Breaking:** rename the previous `Agent` to `LegacyBundledAgent` and deprecate it, along with `resolveAgentSourceFile`, `withNeckbeardNextConfig`, and `AgentConfig`. Its bundled sandbox code must import `LegacyBundledAgent`.
|
|
12
|
+
- Add `getPiTurnResult(records)`, which reads how a Pi turn ended from its records, and reports a turn as completed only once its records include the `end` record.
|
|
13
|
+
- Add `SandboxClient.getServerEndpoint(port)`, and Modal `command` and `registrySecret` options for `SandboxClient.create()`.
|
|
14
|
+
- Add `defineAgent()`, which describes an agent once, in the module both the host and the image load: its image, its sandbox, and its Pi session from config (`model`, `thinkingLevel`, `tools`, `systemPrompt`, `cwd`, `persist`) or a `createSession` of its own. On the host it has `Agent`'s methods and `run()`, which runs a turn to its end and returns its text; in the image, `serve()`. A host runs the image `<registry>/<name>:<tag>`, with the tag from `NECKBEARD_IMAGE_TAG` or the commit its platform deployed, such as `RENDER_GIT_COMMIT` (`resolveImageTag()`). A Pi session's working directory is exported as `NECKBEARD_CWD`, and `start({ sessionId })` names a persisted session's file. See `docs/AGENT.md#defining-an-agent`. Pi is an optional peer dependency, `>=1.3.0 <2.0.0`; a `pi` agent's image installs the version its package resolves. A `pi` agent traces its turns in Braintrust when its sandbox has `BRAINTRUST_API_KEY` and `BRAINTRUST_PROJECT_NAME`; `braintrust` is an optional peer dependency. See `docs/AGENT.md#tracing`.
|
|
15
|
+
- Add `neckbeard push`, and `pushAgent()` from `agent-neckbeard/build`, which build an agent's image with its Dockerfile from a temporary build context, push it, and build each pushed tag's Daytona snapshot or E2B template again, so a reused tag such as `master` gets its new contents, deleting all but the newest three older ones. `--cache` uses a registry build cache, and `--dry-run` only builds.
|
|
16
|
+
- Add `neckbeard build`, and `buildAgent()` from the new `agent-neckbeard/build` entry point, which write the build context of an agent defined with `defineAgent()`: the bundled module with an entry point that serves it, a `package.json` pinning the packages left external, and `.agents/skills` with the package's own `skills/` plus the third-party skills its `skills-lock.json` pins. Those are restored with the skills CLI (`skills@1.8.1`, a new optional dependency that needs Node.js 22.20 or later, which a build with a lock then needs too) under `--frozen-lockfile`, so each is fetched at its locked commit and verified against the lock's hash. The build fails on a lock entry not pinned to a full commit SHA or a skill in both places. See `docs/AGENT.md#building-and-pushing-the-image`.
|
|
17
|
+
- Rewrite the README around `defineAgent()`, `neckbeard push`, and `SandboxClient`. The deprecated API's documentation moves to `docs/LEGACY.md`, Daytona and E2B get their own docs, and the host requirements move to `docs/CONSUMER_ENVIRONMENTS.md`.
|
|
18
|
+
|
|
3
19
|
## 1.1.27 - 2026-11-09
|
|
4
20
|
|
|
5
21
|
- Upload `localDirectories` (and `claudeDir`) as one gzipped tar archive extracted with the sandbox's `tar`, instead of one provider call per file and directory. A 138-file skills directory took about two minutes to upload to a distant Modal sandbox. Images now need `tar` and `gzip`, and uploaded files have mode 0644.
|