zidane 7.0.14 → 7.0.16
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/README.md +18 -9
- package/dist/{acp-CZpX91YE.js → acp-Bw2b_kka.js} +3 -3
- package/dist/{acp-CZpX91YE.js.map → acp-Bw2b_kka.js.map} +1 -1
- package/dist/acp-cli.js +4 -4
- package/dist/acp.d.ts +1 -1
- package/dist/acp.js +1 -1
- package/dist/{agent-B1jsFaDq.js → agent-B_uQo4f1.js} +649 -48
- package/dist/agent-B_uQo4f1.js.map +1 -0
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +1 -1
- package/dist/{anthropic-Da39cE-d.js → anthropic-QbHqqTkV.js} +2 -2
- package/dist/{anthropic-Da39cE-d.js.map → anthropic-QbHqqTkV.js.map} +1 -1
- package/dist/{approvals-S100xf1d.js → approvals-B9aIQJRQ.js} +287 -45
- package/dist/approvals-B9aIQJRQ.js.map +1 -0
- package/dist/artifacts-CV2hUKnL.js +112 -0
- package/dist/artifacts-CV2hUKnL.js.map +1 -0
- package/dist/{auth-DfEWnkC7.js → auth-plw6npda.js} +19 -7
- package/dist/auth-plw6npda.js.map +1 -0
- package/dist/chat/pure.d.ts +3 -3
- package/dist/chat/pure.js +1 -1
- package/dist/chat.d.ts +6 -6
- package/dist/chat.js +5 -5
- package/dist/contexts/daytona.d.ts +1 -1
- package/dist/contexts/e2b.d.ts +1 -1
- package/dist/daemon-cli.js +1 -1
- package/dist/eval.d.ts +1 -1
- package/dist/eval.js +1 -1
- package/dist/extensions.d.ts +2 -2
- package/dist/extensions.js +2 -2
- package/dist/headless.d.ts +1 -1
- package/dist/headless.js +2 -2
- package/dist/{index-DFGECPfm.d.ts → index-Dc_zYpEu.d.ts} +351 -2
- package/dist/index-Dc_zYpEu.d.ts.map +1 -0
- package/dist/{index-DP7xYXr9.d.ts → index-Df2CH6bn.d.ts} +92 -7
- package/dist/index-Df2CH6bn.d.ts.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -6
- package/dist/{ipc-BLLscoIl.js → ipc-T_pPnHkp.js} +2 -2
- package/dist/{ipc-BLLscoIl.js.map → ipc-T_pPnHkp.js.map} +1 -1
- package/dist/ipc.d.ts +54 -6
- package/dist/ipc.d.ts.map +1 -1
- package/dist/ipc.js +3 -3
- package/dist/mcp.d.ts +1 -1
- package/dist/{oauth-C4GvY_p1.js → oauth-EIBUuSDK.js} +2 -2
- package/dist/{oauth-C4GvY_p1.js.map → oauth-EIBUuSDK.js.map} +1 -1
- package/dist/output/stream-json.d.ts +1 -1
- package/dist/output/terminal.d.ts +1 -1
- package/dist/plugins.d.ts +1 -1
- package/dist/presets.d.ts +2 -2
- package/dist/presets.js +2 -2
- package/dist/providers/anthropic.d.ts +1 -1
- package/dist/providers/anthropic.js +1 -1
- package/dist/providers/arcee.d.ts +1 -1
- package/dist/providers/baseten.d.ts +1 -1
- package/dist/providers/cerebras.d.ts +1 -1
- package/dist/providers/local.d.ts +1 -1
- package/dist/providers/openai-compat.d.ts +1 -1
- package/dist/providers/openai.d.ts +1 -1
- package/dist/providers/openai.js +1 -1
- package/dist/providers/openrouter.d.ts +1 -1
- package/dist/providers/xai.d.ts +1 -1
- package/dist/providers/xai.js +2 -2
- package/dist/{providers-BYgyPb15.js → providers-CoK1rZ1p.js} +2 -2
- package/dist/{providers-BYgyPb15.js.map → providers-CoK1rZ1p.js.map} +1 -1
- package/dist/providers.d.ts +1 -1
- package/dist/providers.js +3 -3
- package/dist/restate.d.ts +1 -1
- package/dist/restate.js +1 -1
- package/dist/{server-C8gULJ0d.js → server-DXM8ZbGi.js} +64 -6
- package/dist/server-DXM8ZbGi.js.map +1 -0
- package/dist/session/sqlite.d.ts +1 -1
- package/dist/session/sqlite.d.ts.map +1 -1
- package/dist/session/sqlite.js +117 -1
- package/dist/session/sqlite.js.map +1 -1
- package/dist/{session-K3icbPH9.js → session-DPZnncaQ.js} +60 -1
- package/dist/session-DPZnncaQ.js.map +1 -0
- package/dist/session.d.ts +2 -2
- package/dist/session.js +3 -2
- package/dist/skills.d.ts +1 -1
- package/dist/{tool-formatters-C-s_-u0v.d.ts → tool-formatters-BgdOYAy9.d.ts} +2 -2
- package/dist/{tool-formatters-C-s_-u0v.d.ts.map → tool-formatters-BgdOYAy9.d.ts.map} +1 -1
- package/dist/tools/fetch-url.d.ts +1 -1
- package/dist/tools/web-search.d.ts +1 -1
- package/dist/tools.d.ts +2 -2
- package/dist/tools.js +2 -2
- package/dist/{transcript-anchors-D1ToF-EW.d.ts → transcript-anchors-CtnwuQJM.d.ts} +3 -3
- package/dist/transcript-anchors-CtnwuQJM.d.ts.map +1 -0
- package/dist/tui.d.ts +3 -3
- package/dist/tui.d.ts.map +1 -1
- package/dist/tui.js +576 -102
- package/dist/tui.js.map +1 -1
- package/dist/{turn-operations-CZLsNgw-.js → turn-operations-DkJ1R0p8.js} +4 -3
- package/dist/turn-operations-DkJ1R0p8.js.map +1 -0
- package/dist/{turn-operations-Bp5-BAki.d.ts → turn-operations-khAvr7KJ.d.ts} +5 -3
- package/dist/turn-operations-khAvr7KJ.d.ts.map +1 -0
- package/dist/types.d.ts +1 -1
- package/dist/{xai-DILdFGzN.js → xai-CazjStOK.js} +3 -3
- package/dist/{xai-DILdFGzN.js.map → xai-CazjStOK.js.map} +1 -1
- package/docs/ACP.md +6 -0
- package/docs/ARCHITECTURE.md +179 -356
- package/docs/ARTIFACTS.md +130 -0
- package/docs/CHAT.md +426 -1312
- package/docs/EXECUTION_CONTEXT.md +46 -19
- package/docs/EXTENSIONS.md +234 -584
- package/docs/HEADLESS.md +5 -0
- package/docs/INTERACTIONS.md +21 -22
- package/docs/IPC.md +318 -335
- package/docs/PLUGINS.md +2 -0
- package/docs/README.md +57 -0
- package/docs/RESTATE.md +199 -491
- package/docs/RUN_IN_BACKGROUND.md +107 -558
- package/docs/SKILL.md +171 -238
- package/docs/TUI.md +213 -591
- package/package.json +1 -1
- package/dist/agent-B1jsFaDq.js.map +0 -1
- package/dist/approvals-S100xf1d.js.map +0 -1
- package/dist/auth-DfEWnkC7.js.map +0 -1
- package/dist/index-DFGECPfm.d.ts.map +0 -1
- package/dist/index-DP7xYXr9.d.ts.map +0 -1
- package/dist/server-C8gULJ0d.js.map +0 -1
- package/dist/session-K3icbPH9.js.map +0 -1
- package/dist/transcript-anchors-D1ToF-EW.d.ts.map +0 -1
- package/dist/turn-operations-Bp5-BAki.d.ts.map +0 -1
- package/dist/turn-operations-CZLsNgw-.js.map +0 -1
|
@@ -8,6 +8,7 @@ context**. You pick one with `--context`:
|
|
|
8
8
|
| `process` (default) | None — runs on the host | You trust the prompt and want the fastest path with full host access. |
|
|
9
9
|
| `docker` | Container | You want a disposable, isolated environment on your own machine. |
|
|
10
10
|
| `e2b` | Remote micro-VM sandbox | You want isolation off-box, on E2B's hosted cloud or a self-hosted cluster. |
|
|
11
|
+
| `daytona` | Remote sandbox | You want isolation off-box on Daytona instead of E2B. |
|
|
11
12
|
|
|
12
13
|
```bash
|
|
13
14
|
bun start --prompt "build a TODO API" # process (default)
|
|
@@ -26,18 +27,20 @@ files → destroy), so the agent behaves identically regardless of which one you
|
|
|
26
27
|
choose. What changes is *where* the work runs, *how it's isolated*, and a few
|
|
27
28
|
context-specific flags.
|
|
28
29
|
|
|
30
|
+
Contents: [Flags at a glance](#flags-at-a-glance) · [The `e2b` context](#the-e2b-context) · [The `daytona` context](#the-daytona-context) · [The `docker` context](#the-docker-context) · [The `process` context](#the-process-context-default) · [Programmatic use](#programmatic-use) · [See also](#see-also)
|
|
31
|
+
|
|
29
32
|
## Flags at a glance
|
|
30
33
|
|
|
31
|
-
| Flag | `process` | `docker` | `e2b` | Meaning |
|
|
32
|
-
|
|
33
|
-
| `--context <name>` | ✓ | ✓ | ✓ | Select the context (`process` \| `docker` \| `e2b`). |
|
|
34
|
-
| `--cwd <dir>` | ✓ | ✓ | ✓ | Working directory for the agent's commands. |
|
|
35
|
-
| `--env KEY=VALUE` | ✓ | ✓ | ✓ | Set an environment variable (repeatable). |
|
|
36
|
-
| `--pass-env VARNAME` | ✓ | ✓ | ✓ | Forward a host env var into the context by name (repeatable). |
|
|
37
|
-
| `--image <name>` | — | ✓ | — | Docker image to run. |
|
|
38
|
-
| `--pregame <file>` | warns | warns | ✓ | Setup script to run before prompting. |
|
|
39
|
-
| `--sandbox <id>` | warns | warns | ✓ | Attach to an existing
|
|
40
|
-
| `--sandbox-on-destroy kill\|pause\|leave` | warns | warns | ✓ | What to do with an owned sandbox when the run ends (default `kill`). |
|
|
34
|
+
| Flag | `process` | `docker` | `e2b` | `daytona` | Meaning |
|
|
35
|
+
|------|:---------:|:--------:|:-----:|:---------:|---------|
|
|
36
|
+
| `--context <name>` | ✓ | ✓ | ✓ | ✓ | Select the context (`process` \| `docker` \| `e2b` \| `daytona`). |
|
|
37
|
+
| `--cwd <dir>` | ✓ | ✓ | ✓ | ✓ | Working directory for the agent's commands. |
|
|
38
|
+
| `--env KEY=VALUE` | ✓ | ✓ | ✓ | ✓ | Set an environment variable (repeatable). |
|
|
39
|
+
| `--pass-env VARNAME` | ✓ | ✓ | ✓ | ✓ | Forward a host env var into the context by name (repeatable). |
|
|
40
|
+
| `--image <name>` | — | ✓ | — | — | Docker image to run. |
|
|
41
|
+
| `--pregame <file>` | warns | warns | ✓ | ✓ | Setup script to run before prompting. |
|
|
42
|
+
| `--sandbox <id>` | warns | warns | ✓ | ✓ | Attach to an existing sandbox. |
|
|
43
|
+
| `--sandbox-on-destroy kill\|pause\|leave` | warns | warns | ✓ | ✓ | What to do with an owned sandbox when the run ends (default `kill`). |
|
|
41
44
|
|
|
42
45
|
"warns" means the flag is accepted but ignored with a warning when it doesn't
|
|
43
46
|
apply to the selected context.
|
|
@@ -178,6 +181,28 @@ command, so a warm or pre-provisioned sandbox never loses it.
|
|
|
178
181
|
|
|
179
182
|
---
|
|
180
183
|
|
|
184
|
+
## The `daytona` context
|
|
185
|
+
|
|
186
|
+
Daytona gives the agent a remote sandbox the same way `e2b` does — a different
|
|
187
|
+
provider behind the same `SandboxProvider` interface. Install the optional
|
|
188
|
+
peer dependency and set `DAYTONA_API_KEY` (also `DAYTONA_API_URL` /
|
|
189
|
+
`DAYTONA_TARGET` for a non-default endpoint or region):
|
|
190
|
+
|
|
191
|
+
```bash
|
|
192
|
+
bun add @daytona/sdk
|
|
193
|
+
export DAYTONA_API_KEY=dtn_xxxxxxxxxxxxxxxx
|
|
194
|
+
bun start --prompt "run the test suite" --context daytona
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
`--cwd`, `--pregame`, `--sandbox`, and `--sandbox-on-destroy` behave exactly as
|
|
198
|
+
they do for `e2b` (see above), including the accepted `kill`/`pause`/`leave`
|
|
199
|
+
values. Programmatic use (`createDaytonaProvider`, see
|
|
200
|
+
[Programmatic use](#programmatic-use)) exposes a few extra `onDestroy` values
|
|
201
|
+
(`stop`, `archive`, `delete`) and an `ownAttached` flag for taking over an
|
|
202
|
+
attached sandbox's lifecycle — neither is reachable from the CLI.
|
|
203
|
+
|
|
204
|
+
---
|
|
205
|
+
|
|
181
206
|
## The `docker` context
|
|
182
207
|
|
|
183
208
|
Docker runs the agent inside a container on your own machine — isolated, but
|
|
@@ -258,13 +283,11 @@ The process context also implements the optional `fileSize` capability — a
|
|
|
258
283
|
containment-aware size probe that lets whole-file tools (`read_file`, `edit`,
|
|
259
284
|
`multi_edit`, grep's no-ripgrep fallback) refuse multi-GB targets (256MB
|
|
260
285
|
ceiling) instead of materializing them into host memory. The docker context
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
refused before the SDK transfers it into host memory. The experience is
|
|
267
|
-
uniform across contexts: the same 256MB ceiling, the same refusal message.
|
|
286
|
+
probes via `wc -c` through its exec; remote sandbox contexts (e2b, daytona,
|
|
287
|
+
custom providers) probe identically through the sandbox's shell, one extra
|
|
288
|
+
round-trip per whole-read tool call. The experience is uniform across
|
|
289
|
+
contexts: the same 256MB ceiling, the same refusal message.
|
|
290
|
+
|
|
268
291
|
One residual remains in the remote SDK contexts: `exec` output is buffered
|
|
269
292
|
inside the provider SDKs and can't be capped from our side, so a command that
|
|
270
293
|
streams GBs to stdout within its timeout can still balloon the host — bounded
|
|
@@ -278,6 +301,7 @@ The CLI flags map onto context factories you can call directly:
|
|
|
278
301
|
|
|
279
302
|
```ts
|
|
280
303
|
import { createProcessContext, createSandboxContext } from 'zidane/contexts'
|
|
304
|
+
import { createDaytonaProvider } from 'zidane/contexts/daytona'
|
|
281
305
|
import { createDockerContext } from 'zidane/contexts/docker'
|
|
282
306
|
import { createE2BProvider } from 'zidane/contexts/e2b'
|
|
283
307
|
|
|
@@ -304,6 +328,9 @@ const e2bPause = createSandboxContext(createE2BProvider({
|
|
|
304
328
|
const e2bResume = createSandboxContext(createE2BProvider({
|
|
305
329
|
sandboxId: 'sbx-abc123def456', // Sandbox.connect auto-resumes a paused sandbox
|
|
306
330
|
}))
|
|
331
|
+
|
|
332
|
+
// daytona
|
|
333
|
+
const daytona = createSandboxContext(createDaytonaProvider({ cwd: '/home/daytona/project' }))
|
|
307
334
|
```
|
|
308
335
|
|
|
309
336
|
The Docker factory accepts the full advanced `SpawnConfig` (mounts, ports, user,
|
|
@@ -314,5 +341,5 @@ network, labels, resource limits) that the CLI doesn't surface.
|
|
|
314
341
|
## See also
|
|
315
342
|
|
|
316
343
|
- [HEADLESS.md](HEADLESS.md) — the non-interactive CLI contract.
|
|
317
|
-
- [ARCHITECTURE.md](ARCHITECTURE.md) — agent lifecycle
|
|
318
|
-
|
|
344
|
+
- [ARCHITECTURE.md](ARCHITECTURE.md) — agent lifecycle and background-task
|
|
345
|
+
semantics.
|