github vercel/eve eve@1.4.0

one hour ago

Released 2026-11-23 · Compare with 1.3.0

Features

  • Import the custom skills tools from eve/experimental/extensions/custom-skills to offer them only to some sessions, such as behind a per-user feature flag.
    Return a tool from defineDynamic in a same-named file in the mount directory to hide it, and return no scopes from scopes to hide saved skills. The extension's manage skill is now offered only when the session has a skill scope, so it disappears along with them. (#6596)
  • Add ctx.end() to hook handlers so hooks can permanently retire a session from any event.
    ctx.end(reason?) is available on HookBaseContext for every hook event. On turn.settled, delivery.settled, or between turns, the remaining handlers for the event finish, and then eve tears down child sessions and the sandbox (onSessionEnd with reason: "completed"), records session.ended with outcome: "completed" and cause: { hook }, closes the stream, and releases channel addresses. When called during a running or opening turn, eve stops the turn before its next model call (turn.settled with outcome: "cancelled"), cancels working tasks, and then ends the session with outcome: "completed" and cause: { hook }. ctx.end() drops any pending ctx.continue() continuation on the same turn, acts once with the first hook winning, does nothing on session.ended, and throws if called after the handler resolves. (#6783)
  • offloadContent() from eve/tools writes a tool result over maxBytes (20,000 by default) to a sandbox file and gives the model a short note with the file's path, so a large MCP or tool result no longer fills the context window.
    Set it as toModelOutput on defineTool, including a tool that spreads a built-in definition, or as toolCall.toModelOutput on an MCP or OpenAPI connection. toModelOutput now receives a second argument, ctx, with the callId, the toolName, getSandbox() and defaultModelOutput(), and a function that takes only the output keeps working. When the result can't be saved, because there is no sandbox or the sandbox fails to open or write, fallback decides what the model gets: "inline" (the default) the whole result, or "summary" only its size, shape and first lines. eve logs one warning per session.
    offloadContent() never writes a result over 10 MB. A sandbox keeps at most 100 saved results and 100 MB of them, and a new result that takes it over removes the oldest saved results, so the model runs that tool again to get one back. A published MCP tool now returns the model's projection of its output as the result content (text, image and file parts), so an offloaded result stays out of it. structuredContent is unchanged and carries the tool's full output, so toModelOutput does not redact it for MCP callers. (#6642)
  • OpenAPI connection tools now derive an outputSchema from each operation's JSON success response, so tool signatures type the returned body. (#6787)
  • Set principal on a steering turnPolicy to let another person's message join a running turn in a shared session while retaining the turn's caller.
    turnPolicy takes { mode: "queue" } and { mode: "steer", principal } beside "queue" and "steer", where principal is "match" (the default) or "retain". PrincipalPolicy and TurnMode are exported from eve/channels, and TurnMode from eve/client. Set turnPolicy on a channel, on a server-side send, or in a built-in channel's message hook result (including eveChannel({ onMessage }), which also receives the client-requested mode on ctx.eve.turnPolicy). An HTTP request body and the client SDK take only "queue" or "steer".
    principal: "retain" keeps the turn's caller (ctx.session.auth.current and the turn ID never change). A channel's deliver hook receives the delivery's authenticated sender on payload.auth while channel.session.auth.current stays the turn's caller. While someone else's message steers the turn, ctx.session.auth.steeredBy lists them, and eve holds the caller's identity until the caller sends a message or their approval is accepted. The caller's token for a user-scoped connection or provider fails with ConnectionAuthorizationFailedError and reason: "turn_steered". So do MCP tool calls with forwardPrincipal and connection event subscriptions. Dynamic schedule tools, remote agent calls with forwardPrincipal, and tools of byPrincipal-scoped memory slots fail with an error carrying the same message, and byPrincipal-scoped memory skips automatic recall and capture while steered.
    The steered() policy from eve/tools/approval asks the caller before a call made while steered, enforcing caller-only approval whenever it triggers even if the tool defines a custom approval.response policy. Use it for tools or connections that authorize from ctx.session.auth.current in their own code. The git extension's gh tool (in app-installation mode), the custom skills extension's writes and personal-scope reads, and the deployed self-modification extension's tools ask the same way while steered. The default, principal: "match", keeps current behavior. (#6312)
  • Add sessions.end() and sessions.prewarm() to eve/server and retire handed-off sessions cleanly when their anchor Vercel deployment has been deleted.
    sessions.end(sessionId, options?) retires an active or stranded session by ID in process without a request context or channel handle, returning a Delivery and throwing SessionNotActiveError when inactive. sessions.prewarm(sessionId) prepares an idle session to hand off onto the current deployment without starting a model turn. When a handed-off session's initial anchor deployment is deleted on Vercel, both end() and sessionTimeoutMs preserve sandbox and child-session cleanup on the live deployment, skip the unreadable terminal stream write and channel session.ended handlers, and cancel the dead anchor run.
    Thanks @xcscxr for #6568 and #4603. (#6784)
  • workflow() from eve/tools/workflow now supports foreground mode: "execute" (typed as WorkflowExecuteTool), ctx.agents, ctx.ask(), ctx.sleep(), ctx.progress(), ctx.agent() https:// files, captured console output with error line numbers, and a 10,000-token model output cap. (#6788)
  • Turn steps write their usage attributes once per step, overlapping the stream flush, instead of once per model call in sequence. (#6720)
  • MCP tool calls reuse the connection that earlier steps of the same turn opened, instead of repeating the initialize handshake and tools/list in every step. (#6746)

Bug Fixes

  • Between-turn compaction now evaluates an agent's dynamic model with the session conversation before resolving the compaction model, fixing failures when no dynamic model selection was persisted yet or when a live dynamic model rebuilds on a cold invocation.
    Thanks @xcscxr for reporting this in #6630. (#6779)
  • Run one turn, not two, when Linq redelivers a message webhook or when Linq or Photon redelivers a tapback webhook. (#6593)
  • Return not_found instead of internal from MCP invocation tools when the world rejects a malformed invocationId.
    Thanks @pranavmital for reporting this in #6613. (#6615)
  • Keep packages host-external in server builds when they only reference a build.externalDependencies entry through optionalDependencies or an optional peerDependenciesMeta peer.
    Thanks @kachar for reporting this and providing the minimal reproduction in #6554. (#6611)
  • Include chunk names, relative module IDs, direct importers, and entry-to-module import chains when a single-chunk Rolldown bundle emits multiple chunks.
    Thanks @xcscxr for reporting this in #5939. (#6780)
  • On self-hosted Workflow Worlds, an eve upgrade no longer replays a legacy session or a connection event subscription that the earlier eve version started.
    Such runs used to replay against renamed steps and fail with a replay divergence. Legacy sessions are now parked like other sessions, and connection event subscriptions are retired with a cancel reason, so the agent must watch those events again. Session timeouts and connection event deliveries still run after an upgrade, because they start fresh on the new version. (#6754)
  • Reading a session started on an earlier eve no longer fails with session_version_unsupported when the stream route's check of its first line is slow or fails; the route now answers a retryable 503, which eve clients retry, instead of serving the session's lines unconverted.
    Thanks @jimexist for reporting this in #5778. (#5780)
  • The dev TUI now marks fast models and Fast mode with ⚡︎ instead of ↯. (#6797)

Don't miss a new eve release

NewReleases is sending notifications on new releases.