eve 0.29.3 → 0.29.4

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 (216) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/src/acp/adapter.d.ts +43 -0
  3. package/dist/src/acp/adapter.js +1 -0
  4. package/dist/src/acp/line-limit.d.ts +3 -0
  5. package/dist/src/acp/line-limit.js +1 -0
  6. package/dist/src/acp/server.d.ts +24 -0
  7. package/dist/src/acp/server.js +1 -0
  8. package/dist/src/chunks/{use-eve-agent-DaH3cf8K.js → use-eve-agent-8mofdZcO.js} +45 -10
  9. package/dist/src/chunks/{use-eve-agent-CyDt3Lny.js → use-eve-agent-bKJbH0k4.js} +45 -10
  10. package/dist/src/cli/acp/command.d.ts +22 -0
  11. package/dist/src/cli/acp/command.js +4 -0
  12. package/dist/src/cli/commands/agent-prompt/build-and-verify.md +4 -0
  13. package/dist/src/cli/commands/extension-init.js +1 -1
  14. package/dist/src/cli/commands/init-git.js +1 -1
  15. package/dist/src/cli/commands/init-repl.js +1 -1
  16. package/dist/src/cli/commands/init.js +1 -1
  17. package/dist/src/cli/commands/logs.js +2 -2
  18. package/dist/src/cli/commands/register-integration-commands.js +1 -1
  19. package/dist/src/cli/commands/register-registry-commands.js +1 -1
  20. package/dist/src/cli/commands/registry-project.js +1 -1
  21. package/dist/src/cli/commands/registry-setup-command.js +1 -1
  22. package/dist/src/cli/commands/registry.d.ts +14 -2
  23. package/dist/src/cli/commands/registry.js +1 -1
  24. package/dist/src/cli/commands/trace.d.ts +2 -2
  25. package/dist/src/cli/dev/command-options.d.ts +22 -0
  26. package/dist/src/cli/dev/command-options.js +1 -0
  27. package/dist/src/cli/dev/diagnostic-dump.js +1 -1
  28. package/dist/src/cli/dev/diagnostic-sink.js +1 -1
  29. package/dist/src/cli/dev/local-server-cleanup.js +1 -1
  30. package/dist/src/cli/dev/local-server-process.js +1 -1
  31. package/dist/src/cli/dev/tui/command-typeahead.js +1 -1
  32. package/dist/src/cli/dev/tui/remote-auth.d.ts +6 -3
  33. package/dist/src/cli/dev/tui/remote-connection-probe.js +1 -1
  34. package/dist/src/cli/dev/tui/runner.js +1 -1
  35. package/dist/src/cli/dev/tui/stream-format.d.ts +14 -0
  36. package/dist/src/cli/dev/tui/stream-format.js +2 -2
  37. package/dist/src/cli/dev/tui/terminal-background.d.ts +23 -0
  38. package/dist/src/cli/dev/tui/terminal-background.js +1 -0
  39. package/dist/src/cli/dev/tui/terminal-renderer.js +12 -12
  40. package/dist/src/cli/dev/tui/traces/trace-content.d.ts +7 -0
  41. package/dist/src/cli/dev/tui/traces/trace-content.js +2 -2
  42. package/dist/src/cli/dev/tui/traces/trace-conversation.d.ts +10 -5
  43. package/dist/src/cli/dev/tui/traces/trace-conversation.js +1 -1
  44. package/dist/src/cli/dev/tui/traces/trace-store.js +1 -1
  45. package/dist/src/cli/dev/tui/traces/trace-surfaces.d.ts +40 -0
  46. package/dist/src/cli/dev/tui/traces/trace-surfaces.js +1 -0
  47. package/dist/src/cli/dev/tui/traces/trace-view.d.ts +8 -1
  48. package/dist/src/cli/dev/tui/traces/trace-view.js +2 -2
  49. package/dist/src/cli/dev/tui/traces/trace-viewer-session.d.ts +13 -0
  50. package/dist/src/cli/dev/tui/traces/trace-viewer-session.js +1 -1
  51. package/dist/src/cli/dev/tui/traces/trace-viewer-state.js +1 -1
  52. package/dist/src/cli/dev/tui/tui.js +1 -1
  53. package/dist/src/cli/invoke/invoke.js +1 -1
  54. package/dist/src/cli/invoke/result.js +1 -1
  55. package/dist/src/cli/run.d.ts +3 -0
  56. package/dist/src/cli/run.js +3 -3
  57. package/dist/src/cli/ui/terminal-text.d.ts +0 -3
  58. package/dist/src/cli/ui/terminal-text.js +1 -1
  59. package/dist/src/client/index.d.ts +1 -1
  60. package/dist/src/client/open-stream.js +1 -1
  61. package/dist/src/client/session.d.ts +15 -1
  62. package/dist/src/client/session.js +1 -1
  63. package/dist/src/client/types.d.ts +9 -0
  64. package/dist/src/compiled/.vendor-stamp.json +2 -1
  65. package/dist/src/compiled/@agentclientprotocol/sdk/LICENSE +191 -0
  66. package/dist/src/compiled/@agentclientprotocol/sdk/index.d.ts +1835 -0
  67. package/dist/src/compiled/@agentclientprotocol/sdk/index.js +65 -0
  68. package/dist/src/compiled/@agentclientprotocol/sdk/jsonrpc.d.ts +603 -0
  69. package/dist/src/compiled/@agentclientprotocol/sdk/schema/guards.gen.d.ts +199 -0
  70. package/dist/src/compiled/@agentclientprotocol/sdk/schema/index.d.ts +51 -0
  71. package/dist/src/compiled/@agentclientprotocol/sdk/schema/types.gen.d.ts +6118 -0
  72. package/dist/src/compiled/@agentclientprotocol/sdk/stream.d.ts +35 -0
  73. package/dist/src/compiler/artifacts.js +1 -1
  74. package/dist/src/compiler/extension-compatibility.js +1 -1
  75. package/dist/src/compiler/model-catalog.js +1 -1
  76. package/dist/src/compiler/normalize-sandbox.js +1 -1
  77. package/dist/src/compiler/workspace-resources.js +1 -1
  78. package/dist/src/discover/project-source.js +1 -1
  79. package/dist/src/evals/cli/eval.js +2 -2
  80. package/dist/src/evals/loaders/json.js +1 -1
  81. package/dist/src/evals/loaders/yaml.js +1 -1
  82. package/dist/src/evals/runner/artifacts.js +1 -1
  83. package/dist/src/evals/runner/discover.js +1 -1
  84. package/dist/src/evals/runner/reporters/junit.js +1 -1
  85. package/dist/src/evals/session.js +1 -1
  86. package/dist/src/execution/sandbox/bindings/docker-cli.js +1 -1
  87. package/dist/src/execution/sandbox/bindings/docker-templates.js +1 -1
  88. package/dist/src/execution/sandbox/bindings/just-bash-runtime.js +1 -1
  89. package/dist/src/execution/sandbox/bindings/just-bash.js +1 -1
  90. package/dist/src/execution/sandbox/bindings/local-backend-utils.js +1 -1
  91. package/dist/src/execution/sandbox/bindings/microsandbox-lifecycle.js +1 -1
  92. package/dist/src/execution/sandbox/bindings/microsandbox-metadata.js +1 -1
  93. package/dist/src/execution/sandbox/bindings/microsandbox-platform.js +1 -1
  94. package/dist/src/execution/sandbox/bindings/microsandbox-runtime.js +1 -1
  95. package/dist/src/execution/sandbox/bindings/microsandbox-templates.js +1 -1
  96. package/dist/src/execution/sandbox/development-cleanup.js +1 -1
  97. package/dist/src/execution/sandbox/template-prewarm-lock.js +1 -1
  98. package/dist/src/harness/attachment-staging.js +1 -1
  99. package/dist/src/internal/application/build-profile.js +1 -1
  100. package/dist/src/internal/application/build-workspace.js +1 -1
  101. package/dist/src/internal/application/cache-metadata.js +1 -1
  102. package/dist/src/internal/application/compiled-artifacts.js +8 -8
  103. package/dist/src/internal/application/optional-package-install.js +2 -2
  104. package/dist/src/internal/application/output-publication-artifacts.js +1 -1
  105. package/dist/src/internal/application/output-publication-journal.js +1 -1
  106. package/dist/src/internal/application/output-publication-lock.js +1 -1
  107. package/dist/src/internal/application/output-publication.js +1 -1
  108. package/dist/src/internal/application/package.js +1 -1
  109. package/dist/src/internal/application/paths.js +1 -1
  110. package/dist/src/internal/application/production-compiler-artifacts.js +1 -1
  111. package/dist/src/internal/application/tsconfig-dependencies.js +1 -1
  112. package/dist/src/internal/authored-asset-import-plugin.js +1 -1
  113. package/dist/src/internal/authored-module-loader.js +3 -3
  114. package/dist/src/internal/authored-package-tsconfig-paths.js +1 -1
  115. package/dist/src/internal/materialized-authored-modules.js +1 -1
  116. package/dist/src/internal/nitro/dev-runtime-artifacts-retention.js +1 -1
  117. package/dist/src/internal/nitro/dev-runtime-artifacts.js +1 -1
  118. package/dist/src/internal/nitro/dev-runtime-source-snapshot-copy.js +1 -1
  119. package/dist/src/internal/nitro/dev-runtime-source-snapshot.js +1 -1
  120. package/dist/src/internal/nitro/host/build-application.js +1 -1
  121. package/dist/src/internal/nitro/host/build-extension.js +1 -1
  122. package/dist/src/internal/nitro/host/build-vercel-agent-summary.js +1 -1
  123. package/dist/src/internal/nitro/host/configure-nitro-routes.js +3 -3
  124. package/dist/src/internal/nitro/host/copy-host-middleware.js +1 -1
  125. package/dist/src/internal/nitro/host/create-application-nitro.js +1 -1
  126. package/dist/src/internal/nitro/host/cron-handler-route.js +1 -1
  127. package/dist/src/internal/nitro/host/dev-authored-rebuild-coordinator.js +1 -1
  128. package/dist/src/internal/nitro/host/dev-authored-source-watcher.js +1 -1
  129. package/dist/src/internal/nitro/host/dev-host-fingerprint.js +1 -1
  130. package/dist/src/internal/nitro/host/dev-host-workspace.js +1 -1
  131. package/dist/src/internal/nitro/host/dev-server-http.js +1 -1
  132. package/dist/src/internal/nitro/host/dev-server-state.js +1 -1
  133. package/dist/src/internal/nitro/host/dev-workspace-extensions.js +1 -1
  134. package/dist/src/internal/nitro/host/extension-build-config.js +1 -1
  135. package/dist/src/internal/nitro/host/extension-declarations.js +2 -2
  136. package/dist/src/internal/nitro/host/extension-distribution.js +3 -3
  137. package/dist/src/internal/nitro/host/extension-state-usage.js +1 -1
  138. package/dist/src/internal/nitro/host/normalize-vercel-service-crons.js +1 -1
  139. package/dist/src/internal/nitro/host/start-development-server.js +2 -2
  140. package/dist/src/internal/nitro/host/start-production-server.js +2 -2
  141. package/dist/src/internal/nitro/host/types.d.ts +2 -0
  142. package/dist/src/internal/vercel/project-link.js +1 -1
  143. package/dist/src/internal/workflow/development-world-client.js +1 -1
  144. package/dist/src/internal/workflow-bundle/builder-support.js +6 -6
  145. package/dist/src/internal/workflow-bundle/builder.js +3 -3
  146. package/dist/src/internal/workflow-bundle/nitro-step-entry.js +2 -2
  147. package/dist/src/internal/workflow-bundle/vercel-workflow-output.js +1 -1
  148. package/dist/src/internal/workflow-bundle/workflow-builders.js +1 -1
  149. package/dist/src/public/channels/discord/discordChannel.js +1 -1
  150. package/dist/src/public/channels/discord/verify.js +1 -1
  151. package/dist/src/public/channels/github/auth.js +2 -2
  152. package/dist/src/public/channels/github/githubChannel.js +1 -1
  153. package/dist/src/public/channels/github/verify.js +1 -1
  154. package/dist/src/public/channels/linear/inbound.js +2 -2
  155. package/dist/src/public/channels/linear/linearChannel.js +1 -1
  156. package/dist/src/public/channels/linear/verify.js +1 -1
  157. package/dist/src/public/channels/teams/teamsChannel.js +1 -1
  158. package/dist/src/public/channels/telegram/verify.js +1 -1
  159. package/dist/src/public/channels/twilio/twilioChannel.js +1 -1
  160. package/dist/src/public/models/openai/chatgpt/auth.js +1 -1
  161. package/dist/src/public/next/server.js +2 -2
  162. package/dist/src/public/next/vercel-output-config.js +1 -1
  163. package/dist/src/public/nuxt/dev-server.js +1 -1
  164. package/dist/src/public/nuxt/vercel-services.js +1 -1
  165. package/dist/src/public/sveltekit/dev-server.js +1 -1
  166. package/dist/src/public/sveltekit/vercel-json.js +1 -1
  167. package/dist/src/runtime/framework-tools/file-state.js +1 -1
  168. package/dist/src/runtime/sandbox/keys.js +1 -1
  169. package/dist/src/runtime/workspace/seed-files.js +1 -1
  170. package/dist/src/setup/boxes/detect-ai-gateway.js +1 -1
  171. package/dist/src/setup/index.d.ts +1 -0
  172. package/dist/src/setup/index.js +1 -1
  173. package/dist/src/setup/integrations/discord/api.d.ts +15 -0
  174. package/dist/src/setup/integrations/discord/api.js +1 -0
  175. package/dist/src/setup/integrations/discord/connect.d.ts +24 -0
  176. package/dist/src/setup/integrations/discord/connect.js +1 -0
  177. package/dist/src/setup/integrations/discord/setup.d.ts +19 -0
  178. package/dist/src/setup/integrations/discord/setup.js +8 -0
  179. package/dist/src/setup/integrations/registry.js +1 -1
  180. package/dist/src/setup/package-manager.js +1 -1
  181. package/dist/src/setup/primitives/pm/pnpm.js +3 -3
  182. package/dist/src/setup/project-resolution.js +1 -1
  183. package/dist/src/setup/prompter.js +1 -1
  184. package/dist/src/setup/registry-setup-client.d.ts +6 -2
  185. package/dist/src/setup/registry-setup-client.js +1 -1
  186. package/dist/src/setup/scaffold/create/add-to-project.js +1 -1
  187. package/dist/src/setup/scaffold/create/extension.js +1 -1
  188. package/dist/src/setup/scaffold/create/project.js +2 -9
  189. package/dist/src/setup/scaffold/files.js +1 -1
  190. package/dist/src/setup/scaffold/update/channels.js +2 -2
  191. package/dist/src/setup/scaffold/update/connections.js +1 -1
  192. package/dist/src/setup/scaffold/workspace-root.js +1 -1
  193. package/dist/src/setup/slack-connect-lifecycle.js +1 -1
  194. package/dist/src/setup/vercel-project-framework.js +1 -1
  195. package/dist/src/shared/guards.d.ts +2 -0
  196. package/dist/src/shared/guards.js +1 -1
  197. package/dist/src/shared/skill-package.js +1 -1
  198. package/dist/src/shared/skill-paths.d.ts +4 -4
  199. package/dist/src/shared/skill-paths.js +2 -2
  200. package/dist/src/shared/vercel-output-directory.js +1 -1
  201. package/dist/src/source-change/static-source-change.js +1 -1
  202. package/dist/src/svelte/index.js +1 -1
  203. package/dist/src/svelte/use-eve-agent.js +1 -1
  204. package/dist/src/tracing/local-instrumentation-runtime.js +1 -1
  205. package/dist/src/tracing/local-trace-reader.d.ts +22 -5
  206. package/dist/src/tracing/local-trace-reader.js +1 -1
  207. package/dist/src/tracing/local-trace-retention.js +1 -1
  208. package/dist/src/tracing/local-trace-span-processor.js +1 -1
  209. package/dist/src/vue/index.js +1 -1
  210. package/dist/src/vue/use-eve-agent.js +1 -1
  211. package/docs/channels/discord.mdx +30 -14
  212. package/docs/guides/acp.md +91 -0
  213. package/docs/guides/client/streaming.mdx +24 -0
  214. package/docs/guides/meta.json +1 -0
  215. package/docs/reference/cli.md +3 -0
  216. package/package.json +2 -1
@@ -180,6 +180,30 @@ Because a tail-relative cursor cannot be bounded, `follow: false` throws when co
180
180
 
181
181
  `stream()` throws if the session has no `sessionId`, because there's no stream to attach to before the first send.
182
182
 
183
+ ## Snapshot a session
184
+
185
+ Use `snapshot()` when you need the complete event prefix and its matching cursor
186
+ as one value, such as when hydrating a server-rendered chat:
187
+
188
+ ```ts
189
+ const session = client.session({ sessionId, streamIndex: 0 });
190
+ const snapshot = await session.snapshot();
191
+
192
+ // snapshot.events contains event indexes 0 through snapshot.session.streamIndex - 1.
193
+ ```
194
+
195
+ The read pins the durable tail when it opens, just like
196
+ `stream({ follow: false })`. Events written afterward are not included, and
197
+ `snapshot.session.streamIndex` is the exact index from which a live consumer can
198
+ continue. `snapshot()` always reads from index `0`; use a bounded stream directly
199
+ when you only need the unread suffix from an existing cursor.
200
+
201
+ Unlike `stream()`, `snapshot()` does not advance or reset the originating
202
+ `ClientSession`. Its returned session includes a continuation token only when
203
+ the captured prefix ends in `session.waiting`, or when completed sessions are
204
+ explicitly preserved by the client. Active and terminal snapshots remain
205
+ inspectable at their returned stream cursor but cannot accept another turn.
206
+
183
207
  ## Abort a request
184
208
 
185
209
  Pass an `AbortSignal` to cancel the POST or stream. Aborting is local transport cancellation: turns are resumable across disconnects, so detaching never stops the server-side turn — it keeps running and remains attachable by index. To stop the turn itself, POST the session's [cancel route](../../channels/eve#routes) and watch the stream settle with `turn.cancelled` followed by `session.waiting`.
@@ -11,6 +11,7 @@
11
11
  "dynamic-workflows",
12
12
  "remote-agents",
13
13
  "dev-tui",
14
+ "acp",
14
15
  "frontend",
15
16
  "client"
16
17
  ]
@@ -15,6 +15,7 @@ The `eve` binary (`bin: eve`) runs from your app root, and every command first l
15
15
  | `eve start` | Serve the built `.output/` app; prints the listening URL |
16
16
  | `eve dev` | Start the local dev server and open the terminal UI |
17
17
  | `eve dev <url>` | Connect the UI to an existing server URL (e.g. a remote deployment) instead of booting a local server |
18
+ | `eve acp [url]` | Serve the local application or an existing eve server URL as a stable ACP v1 agent over stdio |
18
19
  | `eve logs [logid]` | Print an `eve dev` diagnostic log (the most recent when `logid` is omitted) |
19
20
  | `eve logs ls` | List `eve dev` diagnostic logs, most recent first |
20
21
  | `eve traces ls` | List locally captured agent traces, most recent first |
@@ -183,6 +184,8 @@ Pass a bare URL and the UI connects to that server instead of booting a local on
183
184
  | `--context-size <tokens>` | number | none | Model context window size, shown as a usage percentage |
184
185
  | `--logs <mode>` | enum | `stderr` | Server/agent logs to show: `all` \| `stderr` \| `sandbox` \| `none` |
185
186
 
187
+ `eve acp` reserves stdin and stdout for newline-delimited JSON-RPC and sends diagnostics to stderr. Without a URL, it supervises an isolated local development server. With a URL, it bridges ACP to that server's existing eve HTTP API and accepts the same URL credentials and request headers as `eve dev <url>`. Pass `--scope <team>` when the active Vercel scope does not own the deployment; `EVE_VERCEL_SCOPE` provides the same value for managed harnesses. See [Use eve through ACP](../guides/acp) for client configuration and capability limits.
188
+
186
189
  A fresh `eve init` passes `--input /model`. That bare local input starts onboarding: the TUI installs the Vercel CLI if needed, asks you to log in if needed, opens `/model`, then offers categorized registry next steps before the first prompt. Other input stays editable in the prompt.
187
190
 
188
191
  For a URL target protected by HTTP Basic auth, put the credentials in the URL. eve sends them as a Basic `Authorization` header and strips them from the server URL before connecting:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eve",
3
- "version": "0.29.3",
3
+ "version": "0.29.4",
4
4
  "private": false,
5
5
  "description": "Filesystem-first framework for durable backend AI agents that run anywhere.",
6
6
  "keywords": [
@@ -293,6 +293,7 @@
293
293
  "undici": "8.9.0"
294
294
  },
295
295
  "devDependencies": {
296
+ "@agentclientprotocol/sdk": "1.3.0",
296
297
  "@ai-sdk/anthropic": "^4.0.18",
297
298
  "@ai-sdk/google": "^4.0.21",
298
299
  "@ai-sdk/mcp": "^2.0.16",