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.
Files changed (124) hide show
  1. package/README.md +18 -9
  2. package/dist/{acp-CZpX91YE.js → acp-Bw2b_kka.js} +3 -3
  3. package/dist/{acp-CZpX91YE.js.map → acp-Bw2b_kka.js.map} +1 -1
  4. package/dist/acp-cli.js +4 -4
  5. package/dist/acp.d.ts +1 -1
  6. package/dist/acp.js +1 -1
  7. package/dist/{agent-B1jsFaDq.js → agent-B_uQo4f1.js} +649 -48
  8. package/dist/agent-B_uQo4f1.js.map +1 -0
  9. package/dist/agent.d.ts +1 -1
  10. package/dist/agent.js +1 -1
  11. package/dist/{anthropic-Da39cE-d.js → anthropic-QbHqqTkV.js} +2 -2
  12. package/dist/{anthropic-Da39cE-d.js.map → anthropic-QbHqqTkV.js.map} +1 -1
  13. package/dist/{approvals-S100xf1d.js → approvals-B9aIQJRQ.js} +287 -45
  14. package/dist/approvals-B9aIQJRQ.js.map +1 -0
  15. package/dist/artifacts-CV2hUKnL.js +112 -0
  16. package/dist/artifacts-CV2hUKnL.js.map +1 -0
  17. package/dist/{auth-DfEWnkC7.js → auth-plw6npda.js} +19 -7
  18. package/dist/auth-plw6npda.js.map +1 -0
  19. package/dist/chat/pure.d.ts +3 -3
  20. package/dist/chat/pure.js +1 -1
  21. package/dist/chat.d.ts +6 -6
  22. package/dist/chat.js +5 -5
  23. package/dist/contexts/daytona.d.ts +1 -1
  24. package/dist/contexts/e2b.d.ts +1 -1
  25. package/dist/daemon-cli.js +1 -1
  26. package/dist/eval.d.ts +1 -1
  27. package/dist/eval.js +1 -1
  28. package/dist/extensions.d.ts +2 -2
  29. package/dist/extensions.js +2 -2
  30. package/dist/headless.d.ts +1 -1
  31. package/dist/headless.js +2 -2
  32. package/dist/{index-DFGECPfm.d.ts → index-Dc_zYpEu.d.ts} +351 -2
  33. package/dist/index-Dc_zYpEu.d.ts.map +1 -0
  34. package/dist/{index-DP7xYXr9.d.ts → index-Df2CH6bn.d.ts} +92 -7
  35. package/dist/index-Df2CH6bn.d.ts.map +1 -0
  36. package/dist/index.d.ts +2 -2
  37. package/dist/index.js +7 -6
  38. package/dist/{ipc-BLLscoIl.js → ipc-T_pPnHkp.js} +2 -2
  39. package/dist/{ipc-BLLscoIl.js.map → ipc-T_pPnHkp.js.map} +1 -1
  40. package/dist/ipc.d.ts +54 -6
  41. package/dist/ipc.d.ts.map +1 -1
  42. package/dist/ipc.js +3 -3
  43. package/dist/mcp.d.ts +1 -1
  44. package/dist/{oauth-C4GvY_p1.js → oauth-EIBUuSDK.js} +2 -2
  45. package/dist/{oauth-C4GvY_p1.js.map → oauth-EIBUuSDK.js.map} +1 -1
  46. package/dist/output/stream-json.d.ts +1 -1
  47. package/dist/output/terminal.d.ts +1 -1
  48. package/dist/plugins.d.ts +1 -1
  49. package/dist/presets.d.ts +2 -2
  50. package/dist/presets.js +2 -2
  51. package/dist/providers/anthropic.d.ts +1 -1
  52. package/dist/providers/anthropic.js +1 -1
  53. package/dist/providers/arcee.d.ts +1 -1
  54. package/dist/providers/baseten.d.ts +1 -1
  55. package/dist/providers/cerebras.d.ts +1 -1
  56. package/dist/providers/local.d.ts +1 -1
  57. package/dist/providers/openai-compat.d.ts +1 -1
  58. package/dist/providers/openai.d.ts +1 -1
  59. package/dist/providers/openai.js +1 -1
  60. package/dist/providers/openrouter.d.ts +1 -1
  61. package/dist/providers/xai.d.ts +1 -1
  62. package/dist/providers/xai.js +2 -2
  63. package/dist/{providers-BYgyPb15.js → providers-CoK1rZ1p.js} +2 -2
  64. package/dist/{providers-BYgyPb15.js.map → providers-CoK1rZ1p.js.map} +1 -1
  65. package/dist/providers.d.ts +1 -1
  66. package/dist/providers.js +3 -3
  67. package/dist/restate.d.ts +1 -1
  68. package/dist/restate.js +1 -1
  69. package/dist/{server-C8gULJ0d.js → server-DXM8ZbGi.js} +64 -6
  70. package/dist/server-DXM8ZbGi.js.map +1 -0
  71. package/dist/session/sqlite.d.ts +1 -1
  72. package/dist/session/sqlite.d.ts.map +1 -1
  73. package/dist/session/sqlite.js +117 -1
  74. package/dist/session/sqlite.js.map +1 -1
  75. package/dist/{session-K3icbPH9.js → session-DPZnncaQ.js} +60 -1
  76. package/dist/session-DPZnncaQ.js.map +1 -0
  77. package/dist/session.d.ts +2 -2
  78. package/dist/session.js +3 -2
  79. package/dist/skills.d.ts +1 -1
  80. package/dist/{tool-formatters-C-s_-u0v.d.ts → tool-formatters-BgdOYAy9.d.ts} +2 -2
  81. package/dist/{tool-formatters-C-s_-u0v.d.ts.map → tool-formatters-BgdOYAy9.d.ts.map} +1 -1
  82. package/dist/tools/fetch-url.d.ts +1 -1
  83. package/dist/tools/web-search.d.ts +1 -1
  84. package/dist/tools.d.ts +2 -2
  85. package/dist/tools.js +2 -2
  86. package/dist/{transcript-anchors-D1ToF-EW.d.ts → transcript-anchors-CtnwuQJM.d.ts} +3 -3
  87. package/dist/transcript-anchors-CtnwuQJM.d.ts.map +1 -0
  88. package/dist/tui.d.ts +3 -3
  89. package/dist/tui.d.ts.map +1 -1
  90. package/dist/tui.js +576 -102
  91. package/dist/tui.js.map +1 -1
  92. package/dist/{turn-operations-CZLsNgw-.js → turn-operations-DkJ1R0p8.js} +4 -3
  93. package/dist/turn-operations-DkJ1R0p8.js.map +1 -0
  94. package/dist/{turn-operations-Bp5-BAki.d.ts → turn-operations-khAvr7KJ.d.ts} +5 -3
  95. package/dist/turn-operations-khAvr7KJ.d.ts.map +1 -0
  96. package/dist/types.d.ts +1 -1
  97. package/dist/{xai-DILdFGzN.js → xai-CazjStOK.js} +3 -3
  98. package/dist/{xai-DILdFGzN.js.map → xai-CazjStOK.js.map} +1 -1
  99. package/docs/ACP.md +6 -0
  100. package/docs/ARCHITECTURE.md +179 -356
  101. package/docs/ARTIFACTS.md +130 -0
  102. package/docs/CHAT.md +426 -1312
  103. package/docs/EXECUTION_CONTEXT.md +46 -19
  104. package/docs/EXTENSIONS.md +234 -584
  105. package/docs/HEADLESS.md +5 -0
  106. package/docs/INTERACTIONS.md +21 -22
  107. package/docs/IPC.md +318 -335
  108. package/docs/PLUGINS.md +2 -0
  109. package/docs/README.md +57 -0
  110. package/docs/RESTATE.md +199 -491
  111. package/docs/RUN_IN_BACKGROUND.md +107 -558
  112. package/docs/SKILL.md +171 -238
  113. package/docs/TUI.md +213 -591
  114. package/package.json +1 -1
  115. package/dist/agent-B1jsFaDq.js.map +0 -1
  116. package/dist/approvals-S100xf1d.js.map +0 -1
  117. package/dist/auth-DfEWnkC7.js.map +0 -1
  118. package/dist/index-DFGECPfm.d.ts.map +0 -1
  119. package/dist/index-DP7xYXr9.d.ts.map +0 -1
  120. package/dist/server-C8gULJ0d.js.map +0 -1
  121. package/dist/session-K3icbPH9.js.map +0 -1
  122. package/dist/transcript-anchors-D1ToF-EW.d.ts.map +0 -1
  123. package/dist/turn-operations-Bp5-BAki.d.ts.map +0 -1
  124. 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 E2B sandbox. |
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
- implements the same probe via `wc -c` through its exec (its `readFile` also
262
- gets transport headroom above the tool ceiling, so tool policy — not the
263
- docker transport — decides read limits). Remote sandbox contexts (e2b,
264
- daytona, custom providers) probe identically through the sandbox's shell —
265
- one extra round-trip per whole-read tool call, paid so a multi-GB file is
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, context teardown
318
- ordering, and background-task semantics.
344
+ - [ARCHITECTURE.md](ARCHITECTURE.md) — agent lifecycle and background-task
345
+ semantics.