eve 0.7.3 → 0.8.0

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 (349) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/README.md +11 -11
  3. package/dist/src/chunks/{use-eve-agent-DErQj5hs.js → use-eve-agent-BSXZSn-R.js} +6 -1
  4. package/dist/src/chunks/{use-eve-agent-DoR8C4i6.js → use-eve-agent-Dlut2Qzt.js} +6 -1
  5. package/dist/src/cli/commands/init.js +1 -1
  6. package/dist/src/cli/dev/tui/blocks.d.ts +1 -1
  7. package/dist/src/cli/dev/tui/blocks.js +8 -7
  8. package/dist/src/cli/dev/tui/command-typeahead.d.ts +13 -3
  9. package/dist/src/cli/dev/tui/command-typeahead.js +1 -1
  10. package/dist/src/cli/dev/tui/line-editor.d.ts +6 -0
  11. package/dist/src/cli/dev/tui/line-editor.js +1 -1
  12. package/dist/src/cli/dev/tui/prompt-command-handler.d.ts +2 -0
  13. package/dist/src/cli/dev/tui/prompt-command-handler.js +1 -1
  14. package/dist/src/cli/dev/tui/runner.d.ts +10 -0
  15. package/dist/src/cli/dev/tui/runner.js +1 -1
  16. package/dist/src/cli/dev/tui/setup-commands.d.ts +11 -7
  17. package/dist/src/cli/dev/tui/setup-commands.js +2 -2
  18. package/dist/src/cli/dev/tui/setup-flow.d.ts +72 -10
  19. package/dist/src/cli/dev/tui/setup-issues.js +1 -1
  20. package/dist/src/cli/dev/tui/setup-panel.d.ts +91 -39
  21. package/dist/src/cli/dev/tui/setup-panel.js +3 -1
  22. package/dist/src/cli/dev/tui/setup-selection-input.d.ts +48 -0
  23. package/dist/src/cli/dev/tui/setup-selection-input.js +1 -0
  24. package/dist/src/cli/dev/tui/status-line.d.ts +13 -7
  25. package/dist/src/cli/dev/tui/status-line.js +1 -1
  26. package/dist/src/cli/dev/tui/stream-format.d.ts +2 -0
  27. package/dist/src/cli/dev/tui/stream-format.js +2 -2
  28. package/dist/src/cli/dev/tui/terminal-renderer.d.ts +4 -2
  29. package/dist/src/cli/dev/tui/terminal-renderer.js +7 -6
  30. package/dist/src/cli/dev/tui/terminal-text.d.ts +1 -0
  31. package/dist/src/cli/dev/tui/terminal-text.js +1 -1
  32. package/dist/src/cli/dev/tui/theme.d.ts +3 -1
  33. package/dist/src/cli/dev/tui/theme.js +1 -1
  34. package/dist/src/cli/dev/tui/tool-format.d.ts +1 -1
  35. package/dist/src/cli/dev/tui/tool-format.js +2 -2
  36. package/dist/src/cli/dev/tui/tui-prompter.js +1 -1
  37. package/dist/src/cli/dev/tui/tui.d.ts +6 -0
  38. package/dist/src/cli/dev/tui/tui.js +1 -1
  39. package/dist/src/cli/dev/tui/vercel-status.d.ts +4 -4
  40. package/dist/src/cli/dev/tui/vercel-status.js +1 -1
  41. package/dist/src/cli/run.d.ts +4 -3
  42. package/dist/src/cli/run.js +2 -2
  43. package/dist/src/cli/ui/output.d.ts +1 -0
  44. package/dist/src/cli/ui/output.js +8 -8
  45. package/dist/src/client/client.js +1 -1
  46. package/dist/src/client/session-utils.d.ts +1 -0
  47. package/dist/src/client/session-utils.js +1 -1
  48. package/dist/src/client/session.d.ts +1 -0
  49. package/dist/src/client/session.js +1 -1
  50. package/dist/src/client/types.d.ts +19 -0
  51. package/dist/src/compiled/.vendor-stamp.json +1 -2
  52. package/dist/src/compiler/compile-from-memory.js +1 -1
  53. package/dist/src/compiler/manifest.d.ts +28 -7
  54. package/dist/src/compiler/manifest.js +1 -1
  55. package/dist/src/compiler/normalize-agent-config.js +1 -1
  56. package/dist/src/compiler/normalize-sandbox.js +1 -1
  57. package/dist/src/context/providers/session.js +1 -1
  58. package/dist/src/evals/cli/eval-client.js +1 -1
  59. package/dist/src/execution/durable-session-store.js +1 -1
  60. package/dist/src/execution/sandbox/bash-tool.js +1 -1
  61. package/dist/src/execution/sandbox/bindings/docker-base-setup.d.ts +9 -0
  62. package/dist/src/execution/sandbox/bindings/docker-base-setup.js +2 -0
  63. package/dist/src/execution/sandbox/bindings/docker-cli.d.ts +77 -0
  64. package/dist/src/execution/sandbox/bindings/docker-cli.js +2 -0
  65. package/dist/src/execution/sandbox/bindings/docker-container.d.ts +16 -0
  66. package/dist/src/execution/sandbox/bindings/docker-container.js +1 -0
  67. package/dist/src/execution/sandbox/bindings/docker-network.d.ts +8 -0
  68. package/dist/src/execution/sandbox/bindings/docker-network.js +1 -0
  69. package/dist/src/execution/sandbox/bindings/docker-options.d.ts +21 -0
  70. package/dist/src/execution/sandbox/bindings/docker-options.js +1 -0
  71. package/dist/src/execution/sandbox/bindings/docker-session.d.ts +7 -0
  72. package/dist/src/execution/sandbox/bindings/docker-session.js +2 -0
  73. package/dist/src/execution/sandbox/bindings/docker-templates.d.ts +35 -0
  74. package/dist/src/execution/sandbox/bindings/docker-templates.js +1 -0
  75. package/dist/src/execution/sandbox/bindings/docker-utils.d.ts +2 -0
  76. package/dist/src/execution/sandbox/bindings/docker-utils.js +1 -0
  77. package/dist/src/execution/sandbox/bindings/docker.d.ts +33 -0
  78. package/dist/src/execution/sandbox/bindings/docker.js +1 -0
  79. package/dist/src/execution/sandbox/bindings/just-bash-runtime.d.ts +30 -0
  80. package/dist/src/execution/sandbox/bindings/just-bash-runtime.js +1 -0
  81. package/dist/src/execution/sandbox/bindings/just-bash.d.ts +33 -0
  82. package/dist/src/execution/sandbox/bindings/just-bash.js +1 -0
  83. package/dist/src/execution/sandbox/bindings/local-backend-utils.d.ts +23 -0
  84. package/dist/src/execution/sandbox/bindings/local-backend-utils.js +1 -0
  85. package/dist/src/execution/sandbox/bindings/local-template-prune.d.ts +16 -0
  86. package/dist/src/execution/sandbox/bindings/local-template-prune.js +1 -0
  87. package/dist/src/execution/sandbox/bindings/local.d.ts +16 -25
  88. package/dist/src/execution/sandbox/bindings/local.js +1 -1
  89. package/dist/src/execution/sandbox/bindings/microsandbox-lifecycle.d.ts +16 -0
  90. package/dist/src/execution/sandbox/bindings/microsandbox-lifecycle.js +1 -0
  91. package/dist/src/execution/sandbox/bindings/microsandbox-metadata.d.ts +21 -0
  92. package/dist/src/execution/sandbox/bindings/microsandbox-metadata.js +1 -0
  93. package/dist/src/execution/sandbox/bindings/microsandbox-network.d.ts +18 -0
  94. package/dist/src/execution/sandbox/bindings/microsandbox-network.js +1 -0
  95. package/dist/src/execution/sandbox/bindings/microsandbox-options.d.ts +34 -0
  96. package/dist/src/execution/sandbox/bindings/microsandbox-options.js +1 -0
  97. package/dist/src/execution/sandbox/bindings/microsandbox-platform.d.ts +22 -0
  98. package/dist/src/execution/sandbox/bindings/microsandbox-platform.js +178 -0
  99. package/dist/src/execution/sandbox/bindings/microsandbox-process.d.ts +3 -0
  100. package/dist/src/execution/sandbox/bindings/microsandbox-process.js +1 -0
  101. package/dist/src/execution/sandbox/bindings/microsandbox-runtime.d.ts +75 -0
  102. package/dist/src/execution/sandbox/bindings/microsandbox-runtime.js +1 -0
  103. package/dist/src/execution/sandbox/bindings/microsandbox-templates.d.ts +13 -0
  104. package/dist/src/execution/sandbox/bindings/microsandbox-templates.js +1 -0
  105. package/dist/src/execution/sandbox/bindings/microsandbox.d.ts +22 -0
  106. package/dist/src/execution/sandbox/bindings/microsandbox.js +1 -0
  107. package/dist/src/execution/sandbox/bindings/vercel-create-api.d.ts +20 -0
  108. package/dist/src/execution/sandbox/bindings/vercel-create-api.js +1 -0
  109. package/dist/src/execution/sandbox/bindings/vercel.d.ts +7 -8
  110. package/dist/src/execution/sandbox/bindings/vercel.js +1 -1
  111. package/dist/src/execution/sandbox/development-cleanup.d.ts +4 -0
  112. package/dist/src/execution/sandbox/development-cleanup.js +1 -0
  113. package/dist/src/execution/sandbox/development-prewarm.d.ts +11 -0
  114. package/dist/src/execution/sandbox/development-prewarm.js +1 -0
  115. package/dist/src/execution/sandbox/development-run.d.ts +8 -0
  116. package/dist/src/execution/sandbox/development-run.js +1 -0
  117. package/dist/src/execution/sandbox/ensure.js +1 -1
  118. package/dist/src/execution/sandbox/grep-tool.js +1 -1
  119. package/dist/src/execution/sandbox/lazy-backend.d.ts +1 -1
  120. package/dist/src/execution/sandbox/logging-session.d.ts +5 -0
  121. package/dist/src/execution/sandbox/logging-session.js +1 -0
  122. package/dist/src/execution/sandbox/prewarm.js +1 -1
  123. package/dist/src/execution/sandbox/template-prewarm-lock.d.ts +8 -0
  124. package/dist/src/execution/sandbox/template-prewarm-lock.js +1 -0
  125. package/dist/src/execution/workflow-steps.js +1 -1
  126. package/dist/src/harness/step-hooks.js +1 -1
  127. package/dist/src/harness/tool-loop.js +1 -1
  128. package/dist/src/internal/application/optional-package-install.d.ts +40 -0
  129. package/dist/src/internal/application/optional-package-install.js +1 -0
  130. package/dist/src/internal/application/package.js +1 -1
  131. package/dist/src/internal/authored-definition/sandbox.d.ts +1 -1
  132. package/dist/src/internal/authored-definition/sandbox.js +1 -1
  133. package/dist/src/internal/authored-module-loader.js +2 -2
  134. package/dist/src/internal/classify-model-routing.d.ts +24 -0
  135. package/dist/src/internal/classify-model-routing.js +1 -0
  136. package/dist/src/internal/nitro/host/channel-routes.js +2 -2
  137. package/dist/src/internal/nitro/host/compiled-sandbox-backend-prune-plugin.d.ts +5 -2
  138. package/dist/src/internal/nitro/host/compiled-sandbox-backend-prune-plugin.js +1 -1
  139. package/dist/src/internal/nitro/host/create-application-nitro.d.ts +10 -0
  140. package/dist/src/internal/nitro/host/create-application-nitro.js +1 -1
  141. package/dist/src/internal/nitro/host/dev-authored-source-watcher.js +1 -1
  142. package/dist/src/internal/nitro/host/dev-live-virtual-modules.d.ts +15 -0
  143. package/dist/src/internal/nitro/host/dev-live-virtual-modules.js +1 -0
  144. package/dist/src/internal/nitro/host/optional-engine-dependency-plugin.d.ts +28 -0
  145. package/dist/src/internal/nitro/host/optional-engine-dependency-plugin.js +1 -0
  146. package/dist/src/internal/nitro/host/start-development-server.js +1 -1
  147. package/dist/src/internal/nitro/routes/agent-info/build-agent-info-response-from-manifest.d.ts +2 -0
  148. package/dist/src/internal/nitro/routes/agent-info/build-agent-info-response-from-manifest.js +1 -1
  149. package/dist/src/internal/nitro/routes/agent-info/build-agent-info-response.d.ts +4 -0
  150. package/dist/src/internal/nitro/routes/info.js +1 -1
  151. package/dist/src/internal/nitro/routes/runtime-artifacts.js +1 -1
  152. package/dist/src/internal/resolve-model-endpoint-status.d.ts +23 -0
  153. package/dist/src/internal/resolve-model-endpoint-status.js +1 -0
  154. package/dist/src/internal/workflow-bundle/builder-support.js +2 -2
  155. package/dist/src/internal/workflow-bundle/vercel-workflow-output.d.ts +1 -1
  156. package/dist/src/internal/workflow-bundle/vercel-workflow-output.js +1 -1
  157. package/dist/src/public/definitions/sandbox-backend.js +1 -1
  158. package/dist/src/public/sandbox/backends/default.d.ts +37 -10
  159. package/dist/src/public/sandbox/backends/default.js +1 -1
  160. package/dist/src/public/sandbox/backends/docker.d.ts +14 -0
  161. package/dist/src/public/sandbox/backends/docker.js +1 -0
  162. package/dist/src/public/sandbox/backends/just-bash.d.ts +17 -0
  163. package/dist/src/public/sandbox/backends/just-bash.js +1 -0
  164. package/dist/src/public/sandbox/backends/microsandbox.d.ts +17 -0
  165. package/dist/src/public/sandbox/backends/microsandbox.js +1 -0
  166. package/dist/src/public/sandbox/backends/vercel.d.ts +5 -2
  167. package/dist/src/public/sandbox/backends/vercel.js +1 -1
  168. package/dist/src/public/sandbox/docker-sandbox.d.ts +45 -0
  169. package/dist/src/public/sandbox/index.d.ts +8 -4
  170. package/dist/src/public/sandbox/index.js +1 -1
  171. package/dist/src/public/sandbox/just-bash-sandbox.d.ts +17 -0
  172. package/dist/src/public/sandbox/just-bash-sandbox.js +1 -0
  173. package/dist/src/public/sandbox/microsandbox-sandbox.d.ts +54 -0
  174. package/dist/src/public/sandbox/microsandbox-sandbox.js +1 -0
  175. package/dist/src/public/sandbox/vercel-sandbox.d.ts +1 -1
  176. package/dist/src/runtime/compiled-artifacts-source.d.ts +11 -0
  177. package/dist/src/runtime/compiled-artifacts-source.js +1 -1
  178. package/dist/src/runtime/resolve-sandbox.js +1 -1
  179. package/dist/src/runtime/sandbox/keys.js +1 -1
  180. package/dist/src/runtime/sandbox/registry.d.ts +2 -2
  181. package/dist/src/runtime/types.d.ts +1 -1
  182. package/dist/src/runtime/workspace/spec.js +1 -1
  183. package/dist/src/setup/boxes/add-channels.d.ts +3 -2
  184. package/dist/src/setup/boxes/add-channels.js +2 -2
  185. package/dist/src/setup/boxes/apply-ai-gateway-credential.js +1 -1
  186. package/dist/src/setup/boxes/deploy-project.js +1 -1
  187. package/dist/src/setup/boxes/link-project.js +1 -1
  188. package/dist/src/setup/boxes/resolve-provisioning.d.ts +6 -0
  189. package/dist/src/setup/boxes/resolve-provisioning.js +1 -1
  190. package/dist/src/setup/boxes/select-model.d.ts +2 -2
  191. package/dist/src/setup/boxes/select-model.js +1 -1
  192. package/dist/src/setup/cli/channel-setup-prompter.d.ts +28 -0
  193. package/dist/src/setup/cli/channel-setup-prompter.js +1 -1
  194. package/dist/src/setup/cli/index.d.ts +2 -2
  195. package/dist/src/setup/cli/index.js +1 -1
  196. package/dist/src/setup/cli/option-row.d.ts +89 -0
  197. package/dist/src/setup/cli/option-row.js +1 -0
  198. package/dist/src/setup/cli/prompt-ui.d.ts +15 -29
  199. package/dist/src/setup/cli/prompt-ui.js +2 -2
  200. package/dist/src/setup/cli/select-component.d.ts +4 -3
  201. package/dist/src/setup/cli/select-component.js +1 -1
  202. package/dist/src/setup/cli/select-state.d.ts +3 -3
  203. package/dist/src/setup/cli/select-state.js +1 -1
  204. package/dist/src/setup/flows/channels.d.ts +29 -14
  205. package/dist/src/setup/flows/channels.js +1 -1
  206. package/dist/src/setup/flows/deploy.d.ts +1 -0
  207. package/dist/src/setup/flows/deploy.js +1 -1
  208. package/dist/src/setup/flows/link.d.ts +1 -0
  209. package/dist/src/setup/flows/link.js +1 -1
  210. package/dist/src/setup/flows/model.d.ts +30 -6
  211. package/dist/src/setup/flows/model.js +1 -1
  212. package/dist/src/setup/flows/vercel.d.ts +4 -1
  213. package/dist/src/setup/flows/vercel.js +2 -2
  214. package/dist/src/setup/index.js +1 -1
  215. package/dist/src/setup/primitives/open-url.d.ts +14 -0
  216. package/dist/src/setup/primitives/open-url.js +1 -0
  217. package/dist/src/setup/primitives/pm/pnpm.d.ts +9 -0
  218. package/dist/src/setup/primitives/pm/pnpm.js +2 -2
  219. package/dist/src/setup/primitives/pm/run.d.ts +12 -4
  220. package/dist/src/setup/primitives/pm/run.js +1 -1
  221. package/dist/src/setup/primitives/pm/types.d.ts +3 -0
  222. package/dist/src/setup/primitives/process-abort.d.ts +7 -0
  223. package/dist/src/setup/primitives/process-abort.js +1 -0
  224. package/dist/src/setup/primitives/run-vercel.d.ts +2 -0
  225. package/dist/src/setup/primitives/run-vercel.js +1 -1
  226. package/dist/src/setup/project-resolution.d.ts +6 -3
  227. package/dist/src/setup/project-resolution.js +1 -1
  228. package/dist/src/setup/prompter.d.ts +63 -6
  229. package/dist/src/setup/prompter.js +1 -1
  230. package/dist/src/setup/run-vercel-link.d.ts +1 -1
  231. package/dist/src/setup/run-vercel-link.js +1 -1
  232. package/dist/src/setup/runner.d.ts +2 -0
  233. package/dist/src/setup/runner.js +1 -1
  234. package/dist/src/setup/scaffold/channels-catalog.d.ts +2 -0
  235. package/dist/src/setup/scaffold/channels-catalog.js +1 -1
  236. package/dist/src/setup/scaffold/create/add-to-project.d.ts +1 -0
  237. package/dist/src/setup/scaffold/create/add-to-project.js +1 -1
  238. package/dist/src/setup/scaffold/create/project.d.ts +2 -0
  239. package/dist/src/setup/scaffold/create/project.js +6 -3
  240. package/dist/src/setup/scaffold/update/channels.d.ts +2 -0
  241. package/dist/src/setup/scaffold/update/channels.js +3 -3
  242. package/dist/src/setup/slack-connect-lifecycle.d.ts +97 -0
  243. package/dist/src/setup/slack-connect-lifecycle.js +1 -0
  244. package/dist/src/setup/slack-connect.d.ts +51 -0
  245. package/dist/src/setup/slack-connect.js +1 -0
  246. package/dist/src/setup/slackbot.d.ts +60 -47
  247. package/dist/src/setup/slackbot.js +1 -1
  248. package/dist/src/setup/state.d.ts +2 -1
  249. package/dist/src/setup/state.js +1 -1
  250. package/dist/src/setup/step.d.ts +4 -0
  251. package/dist/src/setup/validate-gateway-key.d.ts +30 -0
  252. package/dist/src/setup/validate-gateway-key.js +1 -0
  253. package/dist/src/setup/vercel-project.d.ts +19 -12
  254. package/dist/src/setup/vercel-project.js +1 -1
  255. package/dist/src/shared/agent-definition.d.ts +26 -0
  256. package/dist/src/shared/model-endpoint-status.d.ts +27 -0
  257. package/dist/src/shared/model-endpoint-status.js +1 -0
  258. package/dist/src/shared/sandbox-backend.d.ts +8 -2
  259. package/dist/src/shared/sandbox-definition.d.ts +4 -3
  260. package/dist/src/shared/sandbox-network-policy.d.ts +4 -2
  261. package/dist/src/shared/sandbox-session.d.ts +3 -2
  262. package/dist/src/svelte/index.js +1 -1
  263. package/dist/src/svelte/use-eve-agent.js +1 -1
  264. package/dist/src/vue/index.js +1 -1
  265. package/dist/src/vue/use-eve-agent.js +1 -1
  266. package/{dist/docs/public → docs}/getting-started.mdx +14 -4
  267. package/{dist/docs/public → docs}/guides/deployment.md +3 -3
  268. package/{dist/docs/public → docs}/guides/dev-tui.md +2 -2
  269. package/{dist/docs/public → docs}/reference/cli.md +2 -1
  270. package/{dist/docs/public → docs}/sandbox.mdx +39 -15
  271. package/package.json +11 -1
  272. package/dist/src/compiled/just-bash/LICENSE +0 -201
  273. package/dist/src/compiled/just-bash/index.d.ts +0 -139
  274. package/dist/src/compiled/just-bash/index.js +0 -2200
  275. package/dist/src/compiled/just-bash/network/types.d.ts +0 -155
  276. package/dist/src/public/sandbox/backends/local.d.ts +0 -16
  277. package/dist/src/public/sandbox/backends/local.js +0 -1
  278. package/dist/src/public/sandbox/local-sandbox.d.ts +0 -7
  279. /package/dist/src/public/sandbox/{local-sandbox.js → docker-sandbox.js} +0 -0
  280. /package/{dist/docs/public → docs}/README.md +0 -0
  281. /package/{dist/docs/public → docs}/agent-config.md +0 -0
  282. /package/{dist/docs/public → docs}/channels/custom.mdx +0 -0
  283. /package/{dist/docs/public → docs}/channels/discord.mdx +0 -0
  284. /package/{dist/docs/public → docs}/channels/eve.mdx +0 -0
  285. /package/{dist/docs/public → docs}/channels/github.mdx +0 -0
  286. /package/{dist/docs/public → docs}/channels/linear.mdx +0 -0
  287. /package/{dist/docs/public → docs}/channels/meta.json +0 -0
  288. /package/{dist/docs/public → docs}/channels/overview.mdx +0 -0
  289. /package/{dist/docs/public → docs}/channels/slack.mdx +0 -0
  290. /package/{dist/docs/public → docs}/channels/teams.mdx +0 -0
  291. /package/{dist/docs/public → docs}/channels/telegram.mdx +0 -0
  292. /package/{dist/docs/public → docs}/channels/twilio.mdx +0 -0
  293. /package/{dist/docs/public → docs}/concepts/context-control.md +0 -0
  294. /package/{dist/docs/public → docs}/concepts/default-harness.md +0 -0
  295. /package/{dist/docs/public → docs}/concepts/execution-model-and-durability.md +0 -0
  296. /package/{dist/docs/public → docs}/concepts/meta.json +0 -0
  297. /package/{dist/docs/public → docs}/concepts/security-model.md +0 -0
  298. /package/{dist/docs/public → docs}/concepts/sessions-runs-and-streaming.md +0 -0
  299. /package/{dist/docs/public → docs}/connections.mdx +0 -0
  300. /package/{dist/docs/public → docs}/evals/assertions.mdx +0 -0
  301. /package/{dist/docs/public → docs}/evals/cases.mdx +0 -0
  302. /package/{dist/docs/public → docs}/evals/judge.mdx +0 -0
  303. /package/{dist/docs/public → docs}/evals/meta.json +0 -0
  304. /package/{dist/docs/public → docs}/evals/overview.mdx +0 -0
  305. /package/{dist/docs/public → docs}/evals/reporters.mdx +0 -0
  306. /package/{dist/docs/public → docs}/evals/running.mdx +0 -0
  307. /package/{dist/docs/public → docs}/evals/targets.mdx +0 -0
  308. /package/{dist/docs/public → docs}/guides/auth-and-route-protection.md +0 -0
  309. /package/{dist/docs/public → docs}/guides/client/continuations.mdx +0 -0
  310. /package/{dist/docs/public → docs}/guides/client/messages.mdx +0 -0
  311. /package/{dist/docs/public → docs}/guides/client/meta.json +0 -0
  312. /package/{dist/docs/public → docs}/guides/client/output-schema.mdx +0 -0
  313. /package/{dist/docs/public → docs}/guides/client/overview.mdx +0 -0
  314. /package/{dist/docs/public → docs}/guides/client/streaming.mdx +0 -0
  315. /package/{dist/docs/public → docs}/guides/dynamic-capabilities.md +0 -0
  316. /package/{dist/docs/public → docs}/guides/dynamic-workflows.md +0 -0
  317. /package/{dist/docs/public → docs}/guides/frontend/meta.json +0 -0
  318. /package/{dist/docs/public → docs}/guides/frontend/nextjs.mdx +0 -0
  319. /package/{dist/docs/public → docs}/guides/frontend/nuxt.mdx +0 -0
  320. /package/{dist/docs/public → docs}/guides/frontend/overview.mdx +0 -0
  321. /package/{dist/docs/public → docs}/guides/frontend/sveltekit.mdx +0 -0
  322. /package/{dist/docs/public → docs}/guides/frontend/use-eve-agent-svelte.mdx +0 -0
  323. /package/{dist/docs/public → docs}/guides/frontend/use-eve-agent-vue.mdx +0 -0
  324. /package/{dist/docs/public → docs}/guides/hooks.md +0 -0
  325. /package/{dist/docs/public → docs}/guides/instrumentation.md +0 -0
  326. /package/{dist/docs/public → docs}/guides/meta.json +0 -0
  327. /package/{dist/docs/public → docs}/guides/remote-agents.md +0 -0
  328. /package/{dist/docs/public → docs}/guides/session-context.md +0 -0
  329. /package/{dist/docs/public → docs}/guides/state.md +0 -0
  330. /package/{dist/docs/public → docs}/instructions.mdx +0 -0
  331. /package/{dist/docs/public → docs}/introduction.md +0 -0
  332. /package/{dist/docs/public → docs}/meta.json +0 -0
  333. /package/{dist/docs/public → docs}/reference/meta.json +0 -0
  334. /package/{dist/docs/public → docs}/reference/project-layout.md +0 -0
  335. /package/{dist/docs/public → docs}/reference/typescript-api.md +0 -0
  336. /package/{dist/docs/public → docs}/schedules.mdx +0 -0
  337. /package/{dist/docs/public → docs}/skills.mdx +0 -0
  338. /package/{dist/docs/public → docs}/subagents.mdx +0 -0
  339. /package/{dist/docs/public → docs}/tools.mdx +0 -0
  340. /package/{dist/docs/public → docs}/tutorial/connect-a-warehouse.mdx +0 -0
  341. /package/{dist/docs/public → docs}/tutorial/first-agent.mdx +0 -0
  342. /package/{dist/docs/public → docs}/tutorial/guard-the-spend.mdx +0 -0
  343. /package/{dist/docs/public → docs}/tutorial/how-it-runs.mdx +0 -0
  344. /package/{dist/docs/public → docs}/tutorial/meta.json +0 -0
  345. /package/{dist/docs/public → docs}/tutorial/query-sample-data.mdx +0 -0
  346. /package/{dist/docs/public → docs}/tutorial/remember-definitions.mdx +0 -0
  347. /package/{dist/docs/public → docs}/tutorial/run-analysis.mdx +0 -0
  348. /package/{dist/docs/public → docs}/tutorial/ship-it.mdx +0 -0
  349. /package/{dist/docs/public → docs}/tutorial/team-playbooks.mdx +0 -0
@@ -88,6 +88,10 @@ export interface SandboxBackendCreateInput {
88
88
  export interface SandboxBackendPrewarmInput<BO = Record<string, never>> {
89
89
  readonly templateKey: string;
90
90
  readonly bootstrap?: (input: SandboxBootstrapContext<BO>) => void | Promise<void>;
91
+ /**
92
+ * Optional progress logger for backend-specific prewarm phases.
93
+ */
94
+ readonly log?: (message: string) => void;
91
95
  readonly runtimeContext: SandboxBackendRuntimeContext;
92
96
  readonly seedFiles: ReadonlyArray<SandboxSeedFile>;
93
97
  }
@@ -110,8 +114,10 @@ export interface SandboxBackendPrewarmResult {
110
114
  *
111
115
  * A `SandboxBackend` is a value an author attaches to a
112
116
  * {@link SandboxDefinition} to choose which underlying runtime hosts the
113
- * sandbox. Eve ships two built-in backends (`vercelBackend()` and
114
- * `localBackend()`), but the interface is public so authors can write
117
+ * sandbox. Eve ships built-in backends (`dockerBackend()`,
118
+ * `justBashBackend()`, `microsandboxBackend()`,
119
+ * `vercelSandboxBackend()`, and the availability-aware
120
+ * `defaultBackend()`), but the interface is public so authors can write
115
121
  * their own.
116
122
  *
117
123
  * A backend implements the full two-phase lifecycle:
@@ -69,13 +69,14 @@ interface SandboxDefinitionBase<BO = Record<string, never>, SO = Record<string,
69
69
  *
70
70
  * ```ts
71
71
  * defineSandbox({
72
- * backend: () => vercelBackend({ env: { TOKEN: process.env.TOKEN ?? "" } }),
72
+ * backend: () => vercelSandboxBackend({ env: { TOKEN: process.env.TOKEN ?? "" } }),
73
73
  * });
74
74
  * ```
75
75
  *
76
76
  * When this field is omitted, Eve substitutes `defaultBackend()` at
77
- * runtime, which delegates to `vercelBackend()` on hosted Vercel
78
- * (where `process.env.VERCEL` is set) and to `localBackend()`
77
+ * runtime, which picks the best available backend: `vercelSandboxBackend()`
78
+ * on hosted Vercel (where `process.env.VERCEL` is set), then Docker,
79
+ * microsandbox, or just-bash
79
80
  * everywhere else. Set `backend` explicitly to pin the sandbox to a
80
81
  * specific backend regardless of environment.
81
82
  */
@@ -17,7 +17,9 @@ import type { NetworkPolicy } from "#compiled/@vercel/sandbox/index.js";
17
17
  * });
18
18
  * ```
19
19
  *
20
- * The local backend rejects `setNetworkPolicy`: just-bash cannot update its
21
- * network policy at run time and runs no binaries to govern.
20
+ * The Docker backend honors only the coarse `"allow-all"` and
21
+ * `"deny-all"` policies; the just-bash backend rejects `setNetworkPolicy`
22
+ * entirely (its network policy is fixed at sandbox creation and it runs
23
+ * no binaries to govern).
22
24
  */
23
25
  export type SandboxNetworkPolicy = NetworkPolicy;
@@ -107,8 +107,9 @@ export interface SandboxSession extends Pick<AiSdkSandbox, "run" | "spawn" | "re
107
107
  *
108
108
  * When the policy is known at session start, prefer configuring it up
109
109
  * front in the sandbox backend factory or `onSession`'s `use()`. The
110
- * local backend rejects this call: just-bash cannot update its network
111
- * policy at run time and runs no binaries to govern.
110
+ * Docker backend honors only `"allow-all"` and `"deny-all"`;
111
+ * the just-bash backend rejects this call entirely (its network policy
112
+ * is fixed at sandbox creation and it runs no binaries to govern).
112
113
  */
113
114
  setNetworkPolicy(policy: SandboxNetworkPolicy): Promise<void>;
114
115
  /**
@@ -1,3 +1,3 @@
1
- import { n as defaultMessageReducer, t as useEveAgent } from "../chunks/use-eve-agent-DoR8C4i6.js";
1
+ import { n as defaultMessageReducer, t as useEveAgent } from "../chunks/use-eve-agent-Dlut2Qzt.js";
2
2
 
3
3
  export { defaultMessageReducer, useEveAgent };
@@ -1,3 +1,3 @@
1
- import { t as useEveAgent } from "../chunks/use-eve-agent-DoR8C4i6.js";
1
+ import { t as useEveAgent } from "../chunks/use-eve-agent-Dlut2Qzt.js";
2
2
 
3
3
  export { useEveAgent };
@@ -1,3 +1,3 @@
1
- import { n as defaultMessageReducer, t as useEveAgent } from "../chunks/use-eve-agent-DErQj5hs.js";
1
+ import { n as defaultMessageReducer, t as useEveAgent } from "../chunks/use-eve-agent-BSXZSn-R.js";
2
2
 
3
3
  export { defaultMessageReducer, useEveAgent };
@@ -1,3 +1,3 @@
1
- import { t as useEveAgent } from "../chunks/use-eve-agent-DErQj5hs.js";
1
+ import { t as useEveAgent } from "../chunks/use-eve-agent-BSXZSn-R.js";
2
2
 
3
3
  export { useEveAgent };
@@ -26,7 +26,17 @@ You also need a model credential. Set the provider or gateway key your model str
26
26
 
27
27
  The quick start uses `eve init` for a guided scaffold. The target can also be an existing project directory (`eve init .`): the project must have a `package.json`, the `agent/` files must not exist yet, and the missing `eve`, `ai`, and `zod` dependencies are added without touching anything else the project owns. Either way the final handoff runs the `eve dev` binary through the project's package manager, never the project's own `dev` script.
28
28
 
29
- To wire Eve into an existing app yourself instead, add only the dependency and author the two files the runtime needs:
29
+ To wire Eve into an existing app yourself instead, make sure the app declares a compatible Node runtime in `package.json`:
30
+
31
+ ```json
32
+ {
33
+ "engines": {
34
+ "node": ">=24"
35
+ }
36
+ }
37
+ ```
38
+
39
+ Then add only the dependency and author the two files the runtime needs:
30
40
 
31
41
  ```bash
32
42
  npm install eve@latest
@@ -157,8 +167,8 @@ See [Sessions, runs & streaming](./concepts/sessions-runs-and-streaming) for the
157
167
 
158
168
  If a coding agent (Claude Code, Cursor, and the like) is doing the setup, hand it this prompt:
159
169
 
160
- <CopyPrompt text="Set up an Eve agent for the user. Eve is a filesystem-first TypeScript framework for durable agents, published as the npm package eve. Read its docs: once eve is installed they are bundled in the package at node_modules/eve/dist/docs/public; before eve is installed, read the published Introduction and Getting Started pages. If the project has no Eve app, scaffold one with `npx eve@latest init <name>`; add `--channel-web-nextjs` only when the user wants Web Chat. The init command installs dependencies, initializes Git, and starts the dev server, so run it in a controllable process and stop it before editing. To add Eve to an existing app, run `npm install eve@latest`. Make sure agent/agent.ts and agent/instructions.md exist, then add a first typed tool at agent/tools/get_weather.ts using defineTool from eve/tools with a Zod inputSchema and an inline execute. Start the dev server again, then exercise the HTTP API: create a session with POST /eve/v1/session, attach to GET /eve/v1/session/:id/stream, and send a follow-up with the returned continuationToken. Verify with the project's typecheck, adapt model and provider choices to the project, and do not commit unless the user asks.">
161
- Set up an Eve agent: read the Eve docs (bundled at node_modules/eve/dist/docs/public once eve is
170
+ <CopyPrompt text="Set up an Eve agent for the user. Eve is a filesystem-first TypeScript framework for durable agents, published as the npm package eve. Read its docs: once eve is installed they are bundled in the package at node_modules/eve/docs; before eve is installed, read the published Introduction and Getting Started pages. If the project has no Eve app, scaffold one with `npx eve@latest init <name>`; add `--channel-web-nextjs` only when the user wants Web Chat. The init command installs dependencies, initializes Git, and starts the dev server, so run it in a controllable process and stop it before editing. To add Eve to an existing app, run `npm install eve@latest`. Make sure agent/agent.ts and agent/instructions.md exist, then add a first typed tool at agent/tools/get_weather.ts using defineTool from eve/tools with a Zod inputSchema and an inline execute. Start the dev server again, then exercise the HTTP API: create a session with POST /eve/v1/session, attach to GET /eve/v1/session/:id/stream, and send a follow-up with the returned continuationToken. Verify with the project's typecheck, adapt model and provider choices to the project, and do not commit unless the user asks.">
171
+ Set up an Eve agent: read the Eve docs (bundled at node_modules/eve/docs once eve is
162
172
  installed), scaffold with `npx eve@latest init <name>` (or `npm install eve@latest` in an existing app), add
163
173
  a typed tool at agent/tools/get_weather.ts, run it with `npm run dev`, then create a session, stream
164
174
  it, and send a follow-up.
@@ -166,7 +176,7 @@ If a coding agent (Claude Code, Cursor, and the like) is doing the setup, hand i
166
176
 
167
177
  Once `eve` is a dependency, the full docs are bundled in the package, so the agent can read them locally without fetching anything:
168
178
 
169
- - Docs: `node_modules/eve/dist/docs/public/`
179
+ - Docs: `node_modules/eve/docs/`
170
180
 
171
181
  `eve init <name>` creates the base agent; `eve init .` adds one to an existing project. Add `--channel-web-nextjs` for Web Chat, or run
172
182
  `eve channels add slack` later from an interactive terminal.
@@ -29,10 +29,10 @@ Route-auth secrets never get serialized into the compiled discovery or module-ma
29
29
  On Vercel, the [sandbox](../sandbox) runs on hosted [Vercel Sandbox](https://vercel.com/docs/sandbox) infrastructure. Attach the backend on the sandbox definition:
30
30
 
31
31
  ```ts title="agent/sandbox/sandbox.ts"
32
- import { defineSandbox, vercelBackend } from "eve/sandbox";
32
+ import { defineSandbox, vercelSandboxBackend } from "eve/sandbox";
33
33
 
34
34
  export default defineSandbox({
35
- backend: vercelBackend(),
35
+ backend: vercelSandboxBackend(),
36
36
  });
37
37
  ```
38
38
 
@@ -110,7 +110,7 @@ Agent Runs is separate from the OpenTelemetry exporters configured in [`instrume
110
110
 
111
111
  - [ ] `eve build` succeeds and writes `.vercel/output`.
112
112
  - [ ] Provider keys and route-auth secrets are set in Vercel env vars.
113
- - [ ] The sandbox backend matches the environment (`vercelBackend()` or `defaultBackend()`).
113
+ - [ ] The sandbox backend matches the environment (`vercelSandboxBackend()` or `defaultBackend()`).
114
114
  - [ ] Build-time prewarm reused or built templates without failing.
115
115
  - [ ] `placeholderAuth()` is replaced with your real policy.
116
116
 
@@ -18,9 +18,9 @@ On startup the TUI prints a brand line with your agent's name, plus a rotating t
18
18
 
19
19
  If agent discovery reported problems, an error/warning count renders between the two lines. Instructions, tools, skills, and subagents are one `eve info` away, and `/help` lists every command.
20
20
 
21
- From there the conversation streams straight into your terminal's normal scrollback — your prompts, the agent's replies, reasoning, tool calls, nested subagents, connection-authorization prompts, and any captured `stdout`/`stderr` — so you keep native scrolling, copy/paste, and a transcript that persists after you exit. Each turn is rendered without boxes: a colored gutter glyph marks who's speaking, tool calls collapse to a one-line summary (`✓ get_weather city="SF" → 73°F`), and a subagent's work is indented beneath its `◆` header. A sticky footer keeps you oriented. The input prompt shows a dim `Type to chat · / for commands` placeholder while empty, and beneath it a persistent status line shows the model, the session's token flow (`⁕ ↑ 394.4K ↓ 4.3K`), the linked Vercel project and team (`▲ my-agent (acme)`), and a yellow `deploy pending` marker once a channel added this session still needs `/deploy`. The Vercel segment stays hidden until the directory is linked. Press `Enter` to send; `Ctrl+C` interrupts a running turn or quits at the prompt. Slash commands: `/new` starts a fresh session and `/exit` quits.
21
+ From there the conversation streams straight into your terminal's normal scrollback — your prompts, the agent's replies, reasoning, tool calls, nested subagents, connection-authorization prompts, and any captured `stdout`/`stderr` — so you keep native scrolling, copy/paste, and a transcript that persists after you exit. Each turn is rendered without boxes: a colored gutter glyph marks who's speaking, tool calls collapse to a one-line summary (`✓ get_weather city="SF" → 73°F`), and a subagent's work is indented beneath its `◆` header. A sticky footer keeps you oriented. When input is ready, the prompt shows a dim `Type to chat · / for commands` placeholder while empty; while a turn or setup action owns the terminal, only its live status is shown. Beneath the prompt or status, a persistent line shows the model, the session's token flow (`⁕ ↑ 394.4K ↓ 4.3K`), the linked Vercel project and team (`▲ my-agent (acme)`), and a yellow `/deploy pending` marker once a channel added this session still needs `/deploy`. The Vercel segment stays hidden until the directory is linked. Press `Enter` to send; `Ctrl+C` interrupts a running turn or quits at the prompt. Slash commands: `/new` starts a fresh session and `/exit` quits.
22
22
 
23
- When `eve dev` runs the server locally, three more slash commands manage the project without leaving the session. Bare `/model` opens a two-row configure menu that loops until Esc. "Change model" runs the same searchable model picker setup uses (the AI Gateway catalog, pre-selected on the model the runtime is serving); a model change is written into your agent's authored source, and the command reports success only after Eve confirms the new id (`/model <provider/model-id>` applies one directly, skipping the menu). The provider row opens the provider questions: which model provider to use (picking something other than AI Gateway shows wiring instructions for your own provider and stops there, leaving any existing setup untouched) and how to connect to AI Gateway — paste your own `AI_GATEWAY_API_KEY`, saved straight to `.env.local`, or connect via a project, which walks the same Vercel team/project pickers as setup (picking again re-links) and pulls the project's environment so an AI Gateway credential lands in `.env.local`; the dev server reloads env files automatically, no restart needed. The row demands attention (a bold yellow "Configure provider" with "Required to enable the agent") until a link or gateway credential is detected, then names the connection (e.g. "AI Gateway (Linked to my-project in my-team)") after, and each action's latest outcome stays visible beneath the menu (e.g. "✓ Model changed to openai/gpt-5.5"). `/channels` shows the agent's channel list — already-registered channels render as locked rows — and adds the one you pick, including the Slack Connect provisioning, then installs the dependencies the scaffold added so the dev server can load the new channels right away; after each addition the list repaints with the new channel locked, until Done (or Esc) leaves the flow. `/deploy` ships the agent to Vercel production, linking first when the directory is unlinked. Each command echoes as an invocation line, asks through a bordered panel that takes the input area's place — one question at a time, clearly separate from the chat transcript — and finishes with a one-line `⎿` result; loading states stay on the ephemeral status line instead of piling into the transcript. These commands are not available when connected to a remote server with `--url`, and when a turn fails because AI Gateway authentication is missing or stale, the error points you at `/model` directly. The TUI also checks at startup: a missing model-provider setup surfaces as an attention line — `⚠ 1 setup issue: model provider not linked · /model` — so the fix is visible before the first message fails, and each command's outcome hangs under it with the `⎿` connector.
23
+ When `eve dev` runs the server locally, three more slash commands manage the project without leaving the session. Bare `/model` opens a configure menu that loops until Done (or Esc). "Change model" runs the same searchable model picker setup uses (the AI Gateway catalog, pre-selected on the model the runtime is serving); a model change is written into your agent's authored source, and the command reports success only after Eve confirms the new id (`/model <provider/model-id>` applies one directly, skipping the menu). The provider row opens the provider questions: which model provider to use (picking something other than AI Gateway shows wiring instructions for your own provider and stops there, leaving any existing setup untouched) and how to connect to AI Gateway — paste your own `AI_GATEWAY_API_KEY`, saved straight to `.env.local`, or connect via a project, which asks for a Vercel team and then opens that team's existing-project list (picking again re-links) before pulling the project's environment so an AI Gateway credential lands in `.env.local`; the dev server reloads env files automatically, no restart needed. The row demands attention (a bold yellow "Configure provider" with "Required to enable the agent") until a link or gateway credential is detected, then names the connection (e.g. "AI Gateway (Linked to my-project in my-team)") after, and each action's latest outcome stays visible beneath the menu (e.g. "✓ Model changed to openai/gpt-5.5"). `/channels` shows the agent's channel list — already-registered channels render as checked, focusable rows with an "Already installed" hint — and adds the one you pick, including the Slack Connect provisioning, then installs the dependencies the scaffold added so the dev server can load the new channels right away; after each addition the list repaints with the channel checked, until Done (or Esc) leaves the flow. `/deploy` ships the agent to Vercel production, linking first when the directory is unlinked. Each command echoes as an invocation line, asks through a bordered panel that takes the input area's place — one question at a time, clearly separate from the chat transcript — and finishes with a one-line `⎿` result; loading states stay on the ephemeral status line instead of piling into the transcript. These commands are not available when connected to a remote server with `--url`, and when a turn fails because AI Gateway authentication is missing or stale, the error points you at `/model` directly. The TUI also checks at startup: a missing model-provider setup surfaces as an attention line — `⚠ 1 setup issue: model provider not linked · /model` — so the fix is visible before the first message fails, and each command's outcome hangs under it with the `⎿` connector.
24
24
 
25
25
  The prompt input behaves like a shell line editor: `↑`/`↓` cycle through the messages you've sent this session, `←`/`→`, Home/End, and `Ctrl+A`/`Ctrl+E` move the caret, and `Ctrl+U`/`Ctrl+K`/`Ctrl+W` kill the line, the rest of the line, or the previous word. If a turn fails terminally — the server session dies or the connection drops — the TUI starts a fresh session and notes it inline so you can keep going (server-side context resets with the old session). Errors render compactly, with docs links highlighted, and a code bug escaping your agent's own code shows its stack trace dim beneath the error headline. Captured server `stdout`/`stderr` renders as dim, indented log runs behind a `│` rule — consecutive lines from the same source share one label. Dev-server rebuilds condense further, into one status row that updates in place: `tui/setup-panel.ts changed · rebuilding…`, then `· rebuilt`. Only the latest rebuild shows, and paths shrink to their last two components. The TUI hides logs by default. `/loglevel <all|stderr|none>` switches what the transcript shows, and because logs stay buffered either way, the switch is retroactive: `/loglevel all` brings back everything captured so far, in its original order. Bare `/loglevel` reports the current mode; the `--logs` flag sets the starting one.
26
26
 
@@ -81,6 +81,7 @@ Pass a bare URL as the only argument and the UI connects to that server instead
81
81
  | `-u, --url <url>` | Connect to an existing server URL instead of starting one |
82
82
  | `--no-ui` | Start the server without an interactive UI |
83
83
  | `--name <name>` | Title shown in the terminal UI (defaults to the app folder name) |
84
+ | `--input <text>` | Pre-fill the prompt input after launching the UI (editable; not auto-submitted) |
84
85
  | `--tools <mode>` | Tool-call rendering: `full` \| `collapsed` \| `auto-collapsed` \| `hidden` |
85
86
  | `--reasoning <mode>` | Reasoning rendering: `full` \| `collapsed` \| `auto-collapsed` \| `hidden` |
86
87
  | `--subagents <mode>` | Subagent-section rendering: `full` \| `collapsed` \| `auto-collapsed` \| `hidden` |
@@ -97,7 +98,7 @@ Local dev keeps immutable runtime source snapshots under `.eve/dev-runtime/snaps
97
98
  eve link
98
99
  ```
99
100
 
100
- Links the current directory to a Vercel project through interactive team/project pickers, then pulls the project's environment so an AI Gateway credential (`VERCEL_OIDC_TOKEN` or `AI_GATEWAY_API_KEY`) lands in `.env.local`, and verifies one actually did. Running it again re-links: the pickers always run, and the new choice wins. Interactive only — in CI, use `vercel link --project <name> --yes` instead. A running `eve dev` reloads env files automatically, so no restart is needed after the pull.
101
+ Links the current directory to an existing Vercel project by selecting a team and then a project, then pulls the project's environment so an AI Gateway credential (`VERCEL_OIDC_TOKEN` or `AI_GATEWAY_API_KEY`) lands in `.env.local`, and verifies one actually did. Running it again re-links: the pickers always run, and the new choice wins. Interactive only — in CI, use `vercel link --project <name> --yes` instead. A running `eve dev` reloads env files automatically, so no restart is needed after the pull.
101
102
 
102
103
  ## `eve deploy`
103
104
 
@@ -51,7 +51,7 @@ The handle does more than `run` and `writeTextFile`. In every method, relative p
51
51
  | `readFile` / `writeFile` | stream a file in/out as bytes |
52
52
  | `removePath({ path, force, recursive })` | delete one file or directory; `force` ignores missing paths, `recursive` removes non-empty dirs |
53
53
  | `resolvePath(path)` | anchor a relative path to its absolute `/workspace/...` form |
54
- | `setNetworkPolicy(policy)` | change egress policy mid-turn (Vercel backend only; see [Network policy](#network-policy)) |
54
+ | `setNetworkPolicy(policy)` | change egress policy mid-turn (backend-dependent; see [Network policy](#network-policy)) |
55
55
 
56
56
  Since `run` blocks until the command exits, reach for `spawn` when the process should keep running while the agent does other work:
57
57
 
@@ -90,10 +90,10 @@ To add setup, seed files, or pick a backend, author `defineSandbox`. There are t
90
90
  - `agent/sandbox/sandbox.ts`: folder layout. Use it when you also seed `agent/sandbox/workspace/**`. If both exist, the folder layout wins.
91
91
 
92
92
  ```ts title="agent/sandbox/sandbox.ts"
93
- import { defineSandbox, vercelBackend } from "eve/sandbox";
93
+ import { defineSandbox, vercelSandboxBackend } from "eve/sandbox";
94
94
 
95
95
  export default defineSandbox({
96
- backend: vercelBackend({ runtime: "node24", resources: { vcpus: 2 } }),
96
+ backend: vercelSandboxBackend({ runtime: "node24", resources: { vcpus: 2 } }),
97
97
  revalidationKey: () => "repo-bootstrap-v1",
98
98
  async bootstrap({ use }) {
99
99
  const sandbox = await use();
@@ -109,15 +109,26 @@ export default defineSandbox({
109
109
 
110
110
  ## Backends
111
111
 
112
- The backend decides where the sandbox runs. Eve ships three factories from `eve/sandbox`:
112
+ The backend decides where the sandbox runs. Eve ships four pinned factories plus an availability-aware default from `eve/sandbox`:
113
113
 
114
- | Backend | Runs the sandbox |
115
- | ------------------ | ------------------------------------------------------------------------------------------------ |
116
- | `vercelBackend()` | on [Vercel Sandbox](https://vercel.com/docs/sandbox). |
117
- | `localBackend()` | locally via `just-bash`. The default for `eve dev`. |
118
- | `defaultBackend()` | `vercelBackend()` on hosted Vercel (`process.env.VERCEL` set), `localBackend()` everywhere else. |
114
+ | Backend | Runs the sandbox |
115
+ | ------------------------ | ---------------------------------------------------------------------------------------------- |
116
+ | `vercelSandboxBackend()` | on [Vercel Sandbox](https://vercel.com/docs/sandbox). |
117
+ | `dockerBackend()` | locally in a Docker container, driven through the `docker` CLI. |
118
+ | `microsandboxBackend()` | locally in a lightweight [microsandbox](https://www.npmjs.com/package/microsandbox) VM. |
119
+ | `justBashBackend()` | locally in the pure-JS `just-bash` interpreter — no daemon or VM, but no real binaries either. |
120
+ | `defaultBackend()` | picks the best available: Vercel Sandbox on hosted Vercel → Docker → microsandbox → just-bash. |
119
121
 
120
- With `backend` omitted, Eve uses `defaultBackend()`: `eve dev` on your laptop boots the local backend, and a production build on Vercel uses Vercel Sandbox, no code change in between. `defaultBackend()` also accepts a keyed bag so each inner backend gets its own typed create options:
122
+ Configuring a pinned factory uses that backend unconditionally — `dockerBackend()` always requires a reachable Docker daemon, `vercelSandboxBackend()` always creates hosted sandboxes (including from local dev, with Vercel credentials).
123
+
124
+ With `backend` omitted, Eve uses `defaultBackend()`, which resolves on first use in priority order:
125
+
126
+ 1. **Vercel Sandbox** when deploying on Vercel (`process.env.VERCEL` is set) — local container/VM runtimes can't run there.
127
+ 2. **Docker** when a daemon is reachable through a Docker-compatible `docker` CLI (Docker Desktop, OrbStack, Colima, Podman via its docker-compatible CLI; override the binary with `EVE_DOCKER_PATH`).
128
+ 3. **microsandbox** when the host supports it: macOS on Apple Silicon, or glibc Linux with KVM enabled.
129
+ 4. **just-bash** as the dependency-free fallback.
130
+
131
+ `defaultBackend()` also accepts a keyed bag so each inner backend gets its own typed create options:
121
132
 
122
133
  ```ts
123
134
  import { defaultBackend, defineSandbox } from "eve/sandbox";
@@ -125,12 +136,23 @@ import { defaultBackend, defineSandbox } from "eve/sandbox";
125
136
  export default defineSandbox({
126
137
  backend: defaultBackend({
127
138
  vercel: { networkPolicy: "deny-all", resources: { vcpus: 4 } },
128
- local: {},
139
+ docker: { image: "ubuntu:26.04" },
140
+ microsandbox: { memoryMiB: 2048 },
129
141
  }),
130
142
  });
131
143
  ```
132
144
 
133
- In local development, `localBackend()` stores template and session files as normal directories under `.eve/sandbox-cache/local/`. Template directories are reused across sessions when the sandbox source, seed files, and `revalidationKey` still match; `eve dev` prunes stale local templates in the background. Session directories persist `/workspace` changes across turns for the same durable session.
145
+ ### Docker
146
+
147
+ `dockerBackend()` drives the Docker CLI directly. The default base image is `ubuntu:26.04`, the official Ubuntu 26.04 image from Docker Hub; Eve installs Node 24, npm, Bash, and baseline tools during framework setup before authored bootstrap code runs. Configure it through `dockerBackend({ image, env, pullPolicy, networkPolicy })`; custom images must provide Bash, Node 24, and npm, or a package manager and setup network access that can install them. Templates are committed as local Docker images and reused across sessions when the sandbox source, seed files, `revalidationKey`, and Docker backend options still match; sessions run as long-lived containers whose filesystems persist `/workspace` changes across turns for the same durable session. `eve dev` prunes stale template images in the background.
148
+
149
+ ### microsandbox
150
+
151
+ `microsandboxBackend()` runs each sandbox in a lightweight local VM with snapshot-backed templates, a `vercel-sandbox` user, and a firewall capable of domain-level network policies and credential brokering — the closest local match to hosted Vercel Sandbox. Supported hosts: macOS on Apple Silicon, or Linux (glibc) with KVM. The `microsandbox` npm package and its VM runtime are not bundled with Eve: `eve dev` installs both automatically when missing (disable with `setup: { autoInstall: false }`); production processes fail with actionable install errors instead.
152
+
153
+ ### just-bash
154
+
155
+ `justBashBackend()` needs no daemon or VM, but commands run in a simulated bash with a virtual filesystem under `.eve/sandbox-cache/` — no real binaries (`git`, `node`, package managers) and no network isolation. The `just-bash` package is an optional peer dependency: `eve dev` installs it into your application automatically when missing (disable with `autoInstall: false`); production processes fail with an actionable install error instead.
134
156
 
135
157
  You can write your own backend too: a `SandboxBackend` is just an object with a `name`, a `create`, and an optional `prewarm`. See the `SandboxBackend*` types on `eve/sandbox`.
136
158
 
@@ -142,10 +164,10 @@ There are two hooks, scoped differently:
142
164
  - **`onSession({ use, ctx })`** is durable-session-scoped and runs once per session. This is where per-session setup goes: network policy, resources, timeout, per-user credentials, one-time markers. Because it runs inside the active runtime context, it can read `ctx.session` and derive the current principal without baking credentials into the template. Call `use(opts?)` to get a `SandboxSession`; `opts` flow to the backend's update path after create.
143
165
 
144
166
  ```ts
145
- import { defineSandbox, vercelBackend } from "eve/sandbox";
167
+ import { defineSandbox, vercelSandboxBackend } from "eve/sandbox";
146
168
 
147
169
  export default defineSandbox({
148
- backend: vercelBackend(),
170
+ backend: vercelSandboxBackend(),
149
171
  async onSession({ use, ctx }) {
150
172
  const sandbox = await use({ networkPolicy: "deny-all" });
151
173
  const user = ctx.session.auth.current;
@@ -171,7 +193,9 @@ networkPolicy: {
171
193
  };
172
194
  ```
173
195
 
174
- Set it on the factory (`vercelBackend({ networkPolicy: "deny-all" })`) and it applies from creation, including during `bootstrap`. Set it in `onSession`'s `use()` to override per-session. The common pattern combines both: leave the factory open so `bootstrap` can `git clone`, then lock down in `onSession`. And to change the policy mid-turn, call `sandbox.setNetworkPolicy(...)` on the live handle. That one is Vercel-only; the local backend rejects it.
196
+ Set it on the factory (`vercelSandboxBackend({ networkPolicy: "deny-all" })`) and it applies from creation, including during `bootstrap`. Set it in `onSession`'s `use()` to override per-session. The common pattern combines both: leave the factory open so `bootstrap` can `git clone`, then lock down in `onSession`. And to change the policy mid-turn, call `sandbox.setNetworkPolicy(...)` on the live handle.
197
+
198
+ Domain-level allow-lists and credential brokering are supported by `vercelSandboxBackend()` and `microsandboxBackend()`. The Docker backend honors only `"allow-all"` and `"deny-all"` (at creation and via `setNetworkPolicy`); the just-bash backend rejects `setNetworkPolicy` entirely.
175
199
 
176
200
  ## Credential brokering
177
201
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eve",
3
- "version": "0.7.3",
3
+ "version": "0.8.0",
4
4
  "private": false,
5
5
  "description": "Filesystem-first framework for durable backend AI agents that run anywhere.",
6
6
  "keywords": [
@@ -36,6 +36,7 @@
36
36
  "files": [
37
37
  "bin",
38
38
  "dist",
39
+ "docs",
39
40
  "CHANGELOG.md",
40
41
  "NOTICE",
41
42
  "README.md"
@@ -279,6 +280,7 @@
279
280
  "jose": "6.2.3",
280
281
  "jsonc-parser": "3.3.1",
281
282
  "just-bash": "3.0.1",
283
+ "microsandbox": "0.5.5",
282
284
  "next": "16.2.6",
283
285
  "picocolors": "1.1.1",
284
286
  "react": "19.2.6",
@@ -296,6 +298,8 @@
296
298
  "@sveltejs/kit": "^2.0.0",
297
299
  "ai": "7.0.0-canary.171",
298
300
  "braintrust": "^3.0.0",
301
+ "just-bash": "^3.0.0",
302
+ "microsandbox": "^0.5.0",
299
303
  "next": "^16.0.0",
300
304
  "nuxt": "^4.0.0",
301
305
  "react": "^19.0.0",
@@ -313,6 +317,12 @@
313
317
  "braintrust": {
314
318
  "optional": true
315
319
  },
320
+ "just-bash": {
321
+ "optional": true
322
+ },
323
+ "microsandbox": {
324
+ "optional": true
325
+ },
316
326
  "next": {
317
327
  "optional": true
318
328
  },
@@ -1,201 +0,0 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
178
- APPENDIX: How to apply the Apache License to your work.
179
-
180
- To apply the Apache License to your work, attach the following
181
- boilerplate notice, with the fields enclosed by brackets "[]"
182
- replaced with your own identifying information. (Don't include
183
- the brackets!) The text should be enclosed in the appropriate
184
- comment syntax for the file format. We also recommend that a
185
- file or class name and description of purpose be included on the
186
- same "printed page" as the copyright notice for easier
187
- identification within third-party archives.
188
-
189
- Copyright 2025 Vercel Inc.
190
-
191
- Licensed under the Apache License, Version 2.0 (the "License");
192
- you may not use this file except in compliance with the License.
193
- You may obtain a copy of the License at
194
-
195
- http://www.apache.org/licenses/LICENSE-2.0
196
-
197
- Unless required by applicable law or agreed to in writing, software
198
- distributed under the License is distributed on an "AS IS" BASIS,
199
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- See the License for the specific language governing permissions and
201
- limitations under the License.