Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

feat: simplify the eve CLI surface (#3814)

OwenKephart04b6464f9c83
diff --git a/.changeset/fresh-cli-surface.md b/.changeset/fresh-cli-surface.md
new file mode 100644
index 000000000..dcf71edd8
--- /dev/null
+++ b/.changeset/fresh-cli-surface.md
@@ -0,0 +1,7 @@
+---
+"eve": minor
+---
+
+Simplify the CLI around explicit local and remote agent workflows. Use `eve remote` to connect to, invoke, or inspect an existing agent; `eve dev` now starts only local development.
+
+Replace `eve dev <url>` with `eve remote connect <url>`, and `eve invoke` with `eve remote invoke <url>`. Replace `eve set --model` and `eve set --reasoning` with `eve set model [model] [--reasoning <effort>]`.
diff --git a/apps/docs/geistdocs.tsx b/apps/docs/geistdocs.tsx
index 972d150b6..25269907d 100644
--- a/apps/docs/geistdocs.tsx
+++ b/apps/docs/geistdocs.tsx
@@ -59,7 +59,7 @@ export const agent = {
instructions: [
"To create or extend an eve agent for the user, start from the Getting Started guide — get it as Markdown from /llms.mdx/getting-started (or via /llms.txt).",
"Ask the user only for genuine decisions (name, model, channels, provider, deploy) and for browser/OAuth steps (vercel login, vercel link, vercel connect create slack); automate everything else.",
- "Verify setup with `eve info --json` and `eve channels list --json` before reporting success.",
+ "Verify setup with `eve info --json` before reporting success.",
"Use /llms.txt as a concise task-oriented index and /sitemap.md as the exhaustive page map.",
"Use /llms-full.txt only when you need the complete documentation corpus for offline indexing or a large context window.",
"Fetch individual docs or integration pages with a .md or .mdx extension for focused page-level context. Template pages are HTML discovery pages and do not expose this alternate Markdown route.",
diff --git a/docs/agent-config.md b/docs/agent-config.md
index 869ba4959..00099718a 100644
--- a/docs/agent-config.md
+++ b/docs/agent-config.md
@@ -18,7 +18,7 @@ export default defineAgent({
```
For a static AI Gateway model ID, you can make the same source change from the
-project root with `eve set --model anthropic/claude-opus-5.5` or from the local
+project root with `eve set model anthropic/claude-opus-5.5` or from the local
dev TUI with `/model anthropic/claude-opus-5.5`.
The root `agent.ts` can be omitted when no runtime config is needed. eve then selects its default `agent.ts` source at the same slot, configured with `spacexai/grok-4.7`; authoring the file replaces that source.
@@ -133,7 +133,7 @@ A dynamic model selection can return `reasoning` alongside `model` to override
the agent-level setting for that selection. Omitting it inherits the agent setting;
`"provider-default"` explicitly uses the provider's default.
-Run `eve set --reasoning high` to update this field from the command line.
+Run `eve set model --reasoning high` to update this field from the command line.
## Compaction
diff --git a/docs/guides/deployment/overview.md b/docs/guides/deployment/overview.md
index e9eb5f086..282df2a7c 100644
--- a/docs/guides/deployment/overview.md
+++ b/docs/guides/deployment/overview.md
@@ -47,7 +47,7 @@ curl https://your_agent.example.com/eve/v1/health
Then connect the development terminal user interface (TUI) to the deployment and send a real message:
```bash
-eve dev https://your_agent.example.com
+eve remote connect --url https://your_agent.example.com
```
Set `VERCEL_AUTOMATION_BYPASS_SECRET` locally first if a Vercel deployment uses Deployment Protection.
diff --git a/docs/guides/deployment/self-hosting.md b/docs/guides/deployment/self-hosting.md
index cb214a4fe..8a9a91c88 100644
--- a/docs/guides/deployment/self-hosting.md
+++ b/docs/guides/deployment/self-hosting.md
@@ -116,7 +116,7 @@ curl https://your_agent.example.com/eve/v1/health
Then connect the development TUI and complete a real turn:
```bash
-eve dev https://your_agent.example.com
+eve remote connect --url https://your_agent.example.com
```
## Continue configuring production
diff --git a/docs/guides/deployment/vercel.mdx b/docs/guides/deployment/vercel.mdx
index 3b5dfa7ae..fa36f6be4 100644
--- a/docs/guides/deployment/vercel.mdx
+++ b/docs/guides/deployment/vercel.mdx
@@ -143,14 +143,14 @@ For a single unnamed agent, check the health route and connect the development T
```bash
curl https://your_agent.vercel.app/eve/v1/health
-eve dev https://your_agent.vercel.app
+eve remote connect --url https://your_agent.vercel.app
```
For a workspace agent, include its public `/eve/<name>` mount. For example:
```bash
curl https://your_agent.vercel.app/eve/support/v1/health
-eve dev https://your_agent.vercel.app/eve/support
+eve remote connect --url https://your_agent.vercel.app/eve/support
```
Set `VERCEL_AUTOMATION_BYPASS_SECRET` locally before connecting if the deployment uses Deployment Protection.
diff --git a/docs/guides/dev-tui.md b/docs/guides/dev-tui.md
index 459afc15b..1b553b5fb 100644
--- a/docs/guides/dev-tui.md
+++ b/docs/guides/dev-tui.md
@@ -31,7 +31,7 @@ The transcript remains in your terminal scrollback after you exit. Run `/help` i
| `/help` | List available commands. |
| `/exit` | Quit the UI. |
-`/login`, `/model`, `/add`, `/deploy`, `/info`, and `/traces` are available when `eve dev` runs locally. They are unavailable when the UI connects to a server with `--url`.
+`/login`, `/model`, `/add`, `/deploy`, `/info`, and `/traces` are available when `eve dev` runs locally. They are unavailable when the UI connects through `eve remote connect`.
## Set up a new agent
@@ -131,19 +131,19 @@ Use `--host` and `--port` to bind the local server, or `--no-ui` to run without
Pass a URL to use the terminal UI with an existing eve server instead of starting one locally:
```bash
-eve dev https://your-app.vercel.app
+eve remote connect --url https://your-app.vercel.app
```
-The URL form is shorthand for `--url`. To send credentials or custom request headers, use a URL with HTTP Basic credentials or repeat `-H, --header`:
+Use `eve remote connect` for an existing agent. To send credentials or custom request headers, use a URL with HTTP Basic credentials or repeat `-H, --header`:
```bash
-eve dev https://user:[email protected]
-eve dev https://your-app.example.com -H 'Authorization: Bearer your_token_here'
+eve remote connect --url https://user:[email protected]
+eve remote connect --url https://your-app.example.com -H 'Authorization: Bearer your_token_here'
```
Remote Vercel sessions reuse an existing authorized CLI session. They do not open an account login flow or modify the local project's Vercel link or `.env.local`.
-When Deployment Protection blocks startup, eve verifies the target project and asks before adding a Trusted Sources rule for development access to that deployment's environment. After approval, eve applies the rule and checks access again before returning to chat. Cancelling preserves your draft; restart `eve dev <url>` to try again. If you cannot change the project's policy, provide `VERCEL_AUTOMATION_BYPASS_SECRET` or ask a project administrator to configure access in Deployment Protection settings.
+When Deployment Protection blocks startup, eve verifies the target project and asks before adding a Trusted Sources rule for development access to that deployment's environment. After approval, eve applies the rule and checks access again before returning to chat. Cancelling preserves your draft; restart `eve remote connect --url <url>` to try again. If you cannot change the project's policy, provide `VERCEL_AUTOMATION_BYPASS_SECRET` or ask a project administrator to configure access in Deployment Protection settings.
## What to read next
diff --git a/docs/guides/self-modification.md b/docs/guides/self-modification.md
index 5ffab3574..df5cdf680 100644
--- a/docs/guides/self-modification.md
+++ b/docs/guides/self-modification.md
@@ -3,7 +3,7 @@ title: "Self-Modification"
description: "Ask your agent to update its own instructions, tools, skills, and other authored files during local development."
---
-When `eve dev` starts a local server, it mounts the bundled self-modification extension by default. Ask your agent to change its instructions, tools, skills, or other files under `agent/`; eve delegates the source work to the `self-modification__agent` subagent. Connecting to an existing server with `eve dev <url>` does not add the bundled extension to that server.
+When `eve dev` starts a local server, it mounts the bundled self-modification extension by default. Ask your agent to change its instructions, tools, skills, or other files under `agent/`; eve delegates the source work to the `self-modification__agent` subagent. Connecting to an existing server with `eve remote connect --url <url>` does not add the bundled extension to that server.
The bundled extension is for local development and is not included in production builds.
diff --git a/docs/protocols/acp.md b/docs/protocols/acp.md
index 717c22eac..92e36dd42 100644
--- a/docs/protocols/acp.md
+++ b/docs/protocols/acp.md
@@ -12,7 +12,7 @@ eve acp
Without a URL, the client starts one process from the eve application root. It supervises a local development server, and closing the ACP connection stops that owned server. To bridge ACP to a deployed eve agent, pass its URL:
```sh
-eve acp https://agent.example.com
+eve acp --url https://agent.example.com
```
For a recognized Vercel deployment, eve verifies the exact origin and resolves a short-lived project-scoped OIDC token from the local Vercel session. Remote access requires an existing authorized Vercel session; account login runs during local deployment. Configure required Trusted Sources access in the target project before launching ACP. `VERCEL_AUTOMATION_BYPASS_SECRET` remains available for deployments configured with a Protection Bypass for Automation token.
diff --git a/docs/reference/cli.md b/docs/reference/cli.md
index f92659d1d..afb793df6 100644
--- a/docs/reference/cli.md
+++ b/docs/reference/cli.md
@@ -1,37 +1,30 @@
---
title: "CLI"
-description: "Reference for every eve CLI command: init, set, info, build, start, dev, logs, traces, link, deploy, eval, channels, extension, and telemetry."
+description: "Reference for every eve CLI command."
---
Relevant `eve` commands can run from the application root or any directory beneath it. Running `eve` with no command runs `eve init` when the current directory is not an eve project, or `eve dev` when it is.
## Commands
-| Command | Description |
-| ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------- |
-| `eve` | Initialize the current directory, or start development when it is already an eve project |
-| `eve init [target]` | Create a new agent, or add an agent to an existing project |
-| `eve info` | Print the resolved application, including static instructions and discovered capabilities, routes, artifact paths, and diagnostics |
-| `eve build` | Compile `.eve/` artifacts and build the host output; prints the output directory |
-| `eve start` | Serve the built `.output/` app; prints the listening URL |
-| `eve dev` | Start the local dev server and open the terminal UI |
-| `eve dev <url>` | Connect the UI to an existing server URL (e.g. a remote deployment) instead of booting a local server |
-| `eve acp [url]` | Serve the local application or an existing eve server URL as a stable ACP v1 agent over stdio |
-| `eve logs [logid]` | Print an `eve dev` diagnostic log (the most recent when `logid` is omitted) |
-| `eve logs ls` | List `eve dev` diagnostic logs, most recent first |
-| `eve traces ls` | List locally captured agent traces, most recent first |
-| `eve traces [trace]` | Show a local span tree (the most recent when omitted) |
-| `eve telemetry <command>` | Show, enable, or disable CLI telemetry collection |
-| `eve link` | Link the directory to a Vercel project and pull AI Gateway credentials |
-| `eve deploy` | Deploy the agent to Vercel production (links first if needed) |
-| `eve eval` | Run evals against the local app or a remote target |
-| `eve channels list` | List user-authored channels |
-| `eve extension init [target]` | Create a new extension package |
-| `eve extension build` | Build the current package as an extension |
-| `eve set` | Change the root agent's model and reasoning effort |
-| `eve add <item>` | Install an item from the official or a configured shadcn registry |
-| `eve integration setup <kind>` | Run a built-in setup flow directly after its registry files are installed |
-| `eve registry <command>` | Add sources and list, search, or view registry catalog items |
+| Command | Description |
+| ---------------------------------------------- | ------------------------------------------------------ |
+| `eve init [target]` | Create a new agent, or add one to an existing project |
+| `eve dev` | Start the local development server and terminal UI |
+| `eve remote connect --url <url>` | Open the terminal UI for an existing agent |
+| `eve remote invoke --url <url> [prompt]` | Invoke an existing agent without a terminal UI |
+| `eve remote info --url <url>` | Inspect an existing agent |
+| `eve acp [url]` | Serve a local or existing agent through ACP over stdio |
+| `eve info` | Inspect the local application |
+| `eve set model [model] [--reasoning <effort>]` | Change model and reasoning settings |
+| `eve build` / `eve start` | Build or serve the application |
+| `eve logs show [logid]` / `eve logs list` | Inspect local diagnostic logs |
+| `eve traces show [trace]` / `eve traces list` | Inspect local traces |
+| `eve link` / `eve deploy` | Link or deploy a Vercel project |
+| `eve eval` | Run evals against a local or remote target |
+| `eve add [item]` / `eve registry <command>` | Install and browse registry items |
+| `eve extension <command>` | Create and build extension packages |
+| `eve telemetry <command>` | Manage CLI telemetry collection |
When `eve build` fails on discovery errors, it prints the full diagnostics report (severity, message, source path) and the diagnostics artifact path.
@@ -101,19 +94,19 @@ Builds the complete agent-shaped extension tree into its configured dist root, e
Change the root agent's AI Gateway model and reasoning effort without opening the dev TUI:
```bash
-eve set \
- --model openai/gpt-6-sol \
- --reasoning high
+eve set model openai/gpt-6-sol --reasoning high
+eve set model --reasoning medium
```
-Pass either flag by itself to change one setting. When you pass both, eve writes
-them to `agent/agent.ts` in one source edit. `--reasoning` accepts
+Use `eve set model` to change the model, its reasoning effort, or both. Omit
+the optional model argument to keep the current model. When you set both, eve
+writes them to `agent/agent.ts` in one source edit. `--reasoning` accepts
`provider-default`, `none`, `minimal`, `low`, `medium`, `high`, or `xhigh`;
`provider-default` removes the authored `reasoning` field.
The command uses the same model ID validation and source editor as `/model` in
-the local dev TUI. It does not configure model credentials. The `--model` flag
-cannot rewrite models defined with `defineDynamic`, an environment expression,
+the local dev TUI. It does not configure model credentials. The `model`
+argument cannot rewrite models defined with `defineDynamic`, an environment expression,
or a provider-authored SDK model; change those models in `agent.ts`.
`--reasoning` can still update an editable root config when its model comes from
an SDK call.
@@ -211,88 +204,99 @@ For self-hosted deployments, copy the app source, `.output/`, and installed depe
```bash
eve dev [options]
-eve dev https://your-app.vercel.app
```
-Pass a bare URL and the UI connects to that server instead of booting a local one (same as `--url`), which lets you smoke-test a preview or production deployment. The interactive UI turns off in a non-TTY terminal.
-
-| Flag | Type | Default | Description |
-| ----------------------------------- | ------ | ------------------ | ----------------------------------------------------------------------------------------- |
-| `--host <host>` | string | all interfaces | Host interface to bind |
-| `--port <port>` | number | `$PORT`, then 2000 | Port to listen on |
-| `-u, --url <url>` | string | none | Connect to an existing server URL instead of starting one |
-| `-H, --header <header>` | string | none | Request header for a URL target, in `Name: value` form; repeat for multiple headers |
-| `--no-ui` | flag | UI on | Start the server without an interactive UI |
-| `--no-default-extensions` | flag | extensions on | Do not mount bundled development extensions |
-| `--name <name>` | string | app folder name | Title shown in the terminal UI |
-| `--input <text>` | string | none | Pre-fill the prompt input |
-| `--tools <mode>` | enum | `auto-collapsed` | Tool-call rendering: `full` \| `collapsed` \| `auto-collapsed` \| `hidden` |
-| `--reasoning <mode>` | enum | `full` | Reasoning rendering: `full` \| `collapsed` \| `auto-collapsed` \| `hidden` |
-| `--subagents <mode>` | enum | `auto-collapsed` | Subagent-section rendering: `full` \| `collapsed` \| `auto-collapsed` \| `hidden` |
-| `--connection-auth <mode>` | enum | `full` | Connection-authorization rendering: `full` \| `collapsed` \| `auto-collapsed` \| `hidden` |
-| `--assistant-response-stats <mode>` | enum | `tokensPerSecond` | Assistant header statistic: `tokens` \| `tokensPerSecond` |
-| `--context-size <tokens>` | number | none | Model context window size, shown as a usage percentage |
-| `--logs <mode>` | enum | `stderr` | Server/agent logs to show: `all` \| `stderr` \| `sandbox` \| `none` |
+Starts a local development server and terminal UI. To connect the UI to an existing agent, use `eve remote connect --url <url>`.
+
+| Flag | Type | Default | Description |
+| ----------------------------------- | ------ | ------------------ | ------------------------------------------- |
+| `--host <host>` | string | all interfaces | Host interface to bind |
+| `--port <port>` | number | `$PORT`, then 2000 | Port to listen on |
+| `--no-ui` | flag | UI on | Start the server without an interactive UI |
+| `--no-default-extensions` | flag | extensions on | Do not mount bundled development extensions |
+| `--name <name>` | string | app folder name | Title shown in the terminal UI |
+| `--input <text>` | string | none | Pre-fill the prompt input |
+| `--tools <mode>` | enum | `auto-collapsed` | Tool-call rendering |
+| `--reasoning <mode>` | enum | `full` | Reasoning rendering |
+| `--subagents <mode>` | enum | `auto-collapsed` | Subagent-section rendering |
+| `--connection-auth <mode>` | enum | `full` | Connection-authorization rendering |
+| `--assistant-response-stats <mode>` | enum | `tokensPerSecond` | Assistant header statistic |
+| `--context-size <tokens>` | number | none | Model context window size |
+| `--logs <mode>` | enum | `stderr` | Server and agent logs to show |
Local development mounts bundled development extensions without adding files to your project. Pass `--no-default-extensions` to disable them. See [Self-Modification](../guides/self-modification) for details.
-`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 [Agent Client Protocol (ACP)](../protocols/acp) for client configuration and capability limits.
-
A fresh `eve init` opens the TUI and reuses an available model connection or opens `/login`. No Vercel project, channels, integrations, or review step is required before chat. Use `/model` to change models and settings, and `/add` to install an addition. Other `--input` text stays editable in the prompt. See [Terminal UI](../guides/dev-tui) for credential precedence and login options.
-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:
+Local dev records the last ready URL per resolved app root in `.eve/dev-server-state.v1.json`. A second interactive `eve dev` reconnects only when that URL is loopback and healthy; each terminal UI creates a fresh client session while sharing the server process. A stale or malformed record is replaced when eve starts a new server. Passing `--host`, `--port`, or a `PORT` environment value skips reconnection and reports a healthy recorded server instead.
+
+Local dev keeps immutable runtime generations under `.eve/dev-runtime/snapshots/` so in-flight turns hold a consistent code revision while new turns pick up rebuilds. Each generation contains the compiled authored module graph and runtime resources rather than a recursive copy of the app or workspace. The terminal REPL keeps its logical session across successful rebuilds, so the next turn continues the conversation on the latest generation; `/new` terminally retires that session before clearing the transcript, and the next prompt starts a fresh session with a new session-scoped sandbox on first sandbox use. After a generation is superseded, `eve dev` retains it for at least 30 minutes and also retains the five most recently superseded generations, regardless of the configured Workflow World. The active generation is never pruned. Old runtime snapshots and local sandbox templates are pruned in the background. For manual cleanup, stop `eve dev` before deleting `.eve/dev-runtime/snapshots/` or `.eve/sandbox-cache/local/templates/`. A turn that remains unfinished beyond the automatic retention window can no longer resume after its generation is pruned.
+
+Local development records traces under `.eve/traces/` by default and bounds that store by age, size, and a keep-newest floor. Configure it with `EVE_TRACES*` in `.env.local`, or disable the destination with `agent/instrumentation/local.ts`; see [`eve traces`](#retention) for the rules and defaults.
+
+`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. See [Agent Client Protocol (ACP)](../protocols/acp) for client configuration and capability limits.
+
+## `eve remote`
+
+Use `eve remote` only with an explicit existing agent URL:
```bash
-eve dev https://user:[email protected]
+eve remote connect --url https://agent.example.com
+eve remote invoke --url https://agent.example.com "Summarize station telemetry"
+eve remote info --url https://agent.example.com
```
-For bearer tokens or custom schemes, pass explicit headers with `-H`.
+`connect` opens the terminal UI. `info` verifies the target and prints its inspection response. Remote commands never start a local application.
-### `eve invoke`
+### `eve remote connect`
+
+```bash
+eve remote connect --url <url> [-H "Name: value"]
+```
-| Option | Type | Default | Description |
-| ----------------------- | ------ | ------- | ----------------------------------------------- |
-| `[prompt]` | string | none | Prompt, follow-up, or answer to a pending input |
-| `-u, --url <url>` | string | local | Invoke an existing server |
-| `-H, --header <header>` | string | none | Request header for a URL target; repeatable |
-| `--resume` | flag | off | Read a previous resumable result from stdin |
-| `--scope <team>` | string | current | Vercel team that owns the URL target |
-| `--json-schema` | flag | off | Print the result JSON Schema and exit |
+Use `-H, --header <header>` for a bearer token or another custom request header; repeat it for multiple headers. For HTTP Basic authentication, put credentials in the URL. eve sends them as a Basic `Authorization` header and removes them from the target URL.
-Use `eve invoke` to submit a turn without opening the TUI. It emits JSON after the invocation completes or reaches a blocking input or authorization event.
+### `eve remote invoke`
```bash
-eve invoke "Summarize station telemetry"
-result=$(eve invoke "Deploy the application")
-printf '%s' "$result" | eve invoke --resume "approve"
-eve invoke --json-schema
+eve remote invoke --url <url> [prompt] [--resume] [-H "Name: value"] [--scope <team>]
```
-`--resume` reads a complete previous result from stdin. Supply text for a `ready` follow-up or pending input; the agent harness resolves input text against all pending requests. A `ready` result includes the previous turn's completed or failed `outcome`. An `authorization-required` result lists every unresolved challenge in `authorizations`; complete them, then resume without text. Pass explicit headers again for protected remote servers. If the URL belongs to another Vercel team, pass its slug with `--scope`; this does not relink the current directory. Pass the scope again when resuming. Paused invocations exit `3`; failures exit `1`.
+Invokes an existing agent without opening the terminal UI. It emits JSON after the invocation completes or reaches a blocking input or authorization event.
-Local callback-based connection authorization requires a persistent server. Run `eve dev`, then use `eve invoke --url <dev-url>` instead. If a waiting invocation receives `SIGINT` or `SIGTERM` after acceptance, it emits a final resumable `running` result before exiting.
+| Option | Type | Default | Description |
+| ----------------------- | ------ | -------- | ----------------------------------------------- |
+| `<url>` | string | required | Existing eve agent URL |
+| `[prompt]` | string | none | Prompt, follow-up, or answer to a pending input |
+| `-H, --header <header>` | string | none | Request header for the URL target; repeatable |
+| `--resume` | flag | off | Read a previous resumable result from stdin |
+| `--scope <team>` | string | current | Vercel team that owns the URL target |
-Local dev records the last ready URL per resolved app root in `.eve/dev-server-state.v1.json`. A second interactive `eve dev` reconnects only when that URL is loopback and healthy; each terminal UI creates a fresh client session while sharing the server process. A stale or malformed record is replaced when eve starts a new server. Passing `--host`, `--port`, or a `PORT` environment value skips reconnection and reports a healthy recorded server instead.
+`--resume` reads a complete previous result from stdin. Supply text for a `ready` follow-up or pending input. An `authorization-required` result lists every unresolved challenge; complete them, then resume without text. Pass headers and scope again when resuming. Paused invocations exit `3`; failures exit `1`. If a waiting invocation receives `SIGINT` or `SIGTERM` after acceptance, it emits a final resumable `running` result before exiting.
-Local dev keeps immutable runtime generations under `.eve/dev-runtime/snapshots/` so in-flight turns hold a consistent code revision while new turns pick up rebuilds. Each generation contains the compiled authored module graph and runtime resources rather than a recursive copy of the app or workspace. The terminal REPL keeps its logical session across successful rebuilds, so the next turn continues the conversation on the latest generation; `/new` terminally retires that session before clearing the transcript, and the next prompt starts a fresh session with a new session-scoped sandbox on first sandbox use. After a generation is superseded, `eve dev` retains it for at least 30 minutes and also retains the five most recently superseded generations, regardless of the configured Workflow World. The active generation is never pruned. Old runtime snapshots and local sandbox templates are pruned in the background. For manual cleanup, stop `eve dev` before deleting `.eve/dev-runtime/snapshots/` or `.eve/sandbox-cache/local/templates/`. A turn that remains unfinished beyond the automatic retention window can no longer resume after its generation is pruned.
+### `eve remote info`
-Local development records traces under `.eve/traces/` by default and bounds that store by age, size, and a keep-newest floor. Configure it with `EVE_TRACES*` in `.env.local`, or disable the destination with `agent/instrumentation/local.ts`; see [`eve traces`](#retention) for the rules and defaults.
+```bash
+eve remote info --url <url> [-H "Name: value"] [--json]
+```
+
+Verifies the existing agent and prints its inspection response. Use `-H, --header <header>` for protected targets; repeat it for multiple headers.
## `eve logs`
```bash
eve logs # print the most recent diagnostic log
-eve logs ls # list logs, most recent first
-eve logs <logid> # print a specific log
+eve logs list # list logs, most recent first
+eve logs show <logid> # print a specific log
eve logs --dump # prepend the log's environment dump
eve logs --events # interleave session events from the local workflow store
```
Each interactive `eve dev` process writes a private diagnostic log under `.eve/logs/` capturing stderr, stdout (including sandbox and rebuild lines), tool failures, workflow errors, and eve framework log records — regardless of what the transcript shows. The file is JSON Lines — every line is one JSON record with `at` and `source` fields. `eve logs` reads those files back.
-A log id is the file name without `.log` (for example `dev-2026-07-15T12-00-00.000Z-123`). `eve logs <logid>` also accepts the file name, the `.eve/logs/...` path printed in the dev transcript, or any unambiguous prefix of the id with or without the `dev-` lead — so `eve logs 2026-07-15` works when a single log matches. An ambiguous prefix fails and lists the candidates.
+A log id is the file name without `.log` (for example `dev-2026-07-15T12-00-00.000Z-123`). `eve logs show <logid>` also accepts the file name, the `.eve/logs/...` path printed in the dev transcript, or any unambiguous prefix of the id with or without the `dev-` lead — so `eve logs 2026-07-15` works when a single log matches. An ambiguous prefix fails and lists the candidates.
-`eve logs` prints nothing but records — no path banner on either stream — so `eve logs 2>&1 | jq -c .` always parses. Discover ids and file paths with `eve logs ls`; `eve logs ls --json` emits a machine-readable array with `id`, `path`, `startedAt`, and `sizeBytes`.
+`eve logs` prints nothing but records — no path banner on either stream — so `eve logs 2>&1 | jq -c .` always parses. Discover ids and file paths with `eve logs list`; `eve logs list --json` emits a machine-readable array with `id`, `path`, `startedAt`, and `sizeBytes`.
`eve logs --events` resolves session events (`session.started`, `turn.failed`, message deltas, …) from the local workflow store (`.eve/.workflow-data`) at query time and interleaves them into the output by timestamp as `source: "event"` records — the log file itself never stores them, so nothing is duplicated at capture time. Selection is by the log's time window (its start through the next log's start), so events from concurrently running `eve dev` processes may appear.
@@ -301,10 +305,10 @@ Each log has a same-named `.dump` sibling holding environment diagnostics and se
## `eve traces`
```bash
-eve traces ls # list traces, most recent first
-eve traces ls --json # emit machine-readable trace summaries
-eve traces # show the most recent span tree
-eve traces <trace> # show one span tree
+eve traces list # list traces, most recent first
+eve traces list --json # emit machine-readable trace summaries
+eve traces show # show the most recent span tree
+eve traces show <trace> # show one span tree
eve traces --verbose # expand every span with all attributes and events
eve traces --json # dump the full trace as JSON
```
@@ -385,18 +389,6 @@ Runs all discovered evals when no eval ids are given; ids match exactly or by di
See [Evals](../evals/overview) for authoring evals.
-## `eve channels list`
-
-```bash
-eve channels list [--json]
-```
-
-Lists the user-authored channels in the current project.
-
-| Flag | Type | Default | Description |
-| -------- | ---- | ------- | -------------- |
-| `--json` | flag | off | Output as JSON |
-
## Recommended loop
1. Edit files under `agent/`.
diff --git a/docs/tutorial/ship-it.mdx b/docs/tutorial/ship-it.mdx
index 4bfa6a143..a1aca8dcb 100644
--- a/docs/tutorial/ship-it.mdx
+++ b/docs/tutorial/ship-it.mdx
@@ -116,7 +116,7 @@ Open the HTTPS preview URL and enter the configured username and password. Creat
The authenticated web app and eve runtime share the same origin, and the sandbox runs on Vercel Sandbox. You can also smoke-test the deployment through the authenticated CLI:
```bash
-npx eve dev https://your-analytics-app.vercel.app
+npx eve remote connect --url https://your-analytics-app.vercel.app
```
For a production deployment, add the username, password, and model credential to the Production environment too, then run `npx vercel@latest deploy --prod`. Missing Basic credentials keep browser access closed.
diff --git a/e2e/fixtures/fixture-tasks/scripts/reproduce-tui-idle-work.sh b/e2e/fixtures/fixture-tasks/scripts/reproduce-tui-idle-work.sh
index 862e7069d..ccb920a3f 100755
--- a/e2e/fixtures/fixture-tasks/scripts/reproduce-tui-idle-work.sh
+++ b/e2e/fixtures/fixture-tasks/scripts/reproduce-tui-idle-work.sh
@@ -48,4 +48,4 @@ Foreground hang lab (each holds for 45 seconds):
EOF
printf '\n'
-pnpm --filter fixture-tasks exec eve dev --url "http://127.0.0.1:${port}"
+pnpm --filter fixture-tasks exec eve remote connect --url "http://127.0.0.1:${port}"
diff --git a/packages/eve/src/cli/acp/command.ts b/packages/eve/src/cli/acp/command.ts
index 0e84e762b..3f203068c 100644
--- a/packages/eve/src/cli/acp/command.ts
+++ b/packages/eve/src/cli/acp/command.ts
@@ -37,15 +37,9 @@ export interface RegisterAcpCommandOptions {
export function registerAcpCommand(options: RegisterAcpCommandOptions): void {
agentCommand(options.program.command("acp"), options.applicationContext, (command) => {
const commandOptions = command.opts<AcpCliOptions>();
- return (
- resolveDevelopmentUrlTarget(
- commandOptions,
- command.processedArgs[0] as string | undefined,
- ) === undefined
- );
+ return commandOptions.url === undefined;
})
.description("Serve an eve agent through stable ACP v1 over stdio.")
- .argument("[url]", "Connect to an existing server URL", parseDevelopmentServerUrl)
.option("-u, --url <url>", "Connect to an existing server URL", parseDevelopmentServerUrl)
.option("--scope <team>", "Vercel team that owns the URL target")
.option(
@@ -55,10 +49,10 @@ export function registerAcpCommand(options: RegisterAcpCommandOptions): void {
)
.addHelpText(
"after",
- "\nWithout a URL, eve supervises a local development server. You can also pass a bare URL, for example: eve acp https://example.com\nACP does not grant the agent access to the client's workspace or terminal.\n",
+ "\nWithout a URL, eve supervises a local development server. Pass --url to bridge an existing agent.\nACP does not grant the agent access to the client's workspace or terminal.\n",
)
- .action(async (positionalUrl: string | undefined, commandOptions: AcpCliOptions) => {
- const target = resolveDevelopmentUrlTarget(commandOptions, positionalUrl);
+ .action(async (commandOptions: AcpCliOptions) => {
+ const target = resolveDevelopmentUrlTarget(commandOptions, undefined);
await loadDevelopmentEnvironmentFiles(options.applicationContext.root);
const lifecycle = installShutdownSignal({ exitAfterMs: FORCED_EXIT_BACKSTOP_MS });
diff --git a/packages/eve/src/cli/commands/channels.ts b/packages/eve/src/cli/commands/channels.ts
deleted file mode 100644
index 7c70be8db..000000000
--- a/packages/eve/src/cli/commands/channels.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-import type { ResolvedDiscoveryProject } from "#discover/project.js";
-import { listAuthoredChannels } from "#setup/scaffold/index.js";
-
-export interface CliLogger {
- error(message: string): void;
- log(message: string): void;
-}
-
-export interface ListChannelsCommandOptions {
- json?: boolean;
-}
-
-export async function runChannelsListCommand(
- logger: CliLogger,
- project: ResolvedDiscoveryProject,
- options: ListChannelsCommandOptions,
-): Promise<void> {
- const channels = await listAuthoredChannels(project.agentRoot);
-
- if (options.json) {
- logger.log(JSON.stringify({ channels }, null, 2));
- return;
- }
-
- if (channels.length === 0) {
- logger.log("No channels defined. Run `eve add <channel>` to add one.");
- return;
- }
-
- for (const name of channels) logger.log(name);
-}
diff --git a/packages/eve/src/cli/commands/logs.ts b/packages/eve/src/cli/commands/logs.ts
index f1fd1329a..345d618d3 100644
--- a/packages/eve/src/cli/commands/logs.ts
+++ b/packages/eve/src/cli/commands/logs.ts
@@ -87,7 +87,7 @@ export function resolveDevDiagnosticLog(
if (matches.length === 1) return matches[0]!;
if (matches.length === 0) {
throw new Error(
- `No diagnostic log matches "${reference}". Run \`eve logs ls\` to see available logs.`,
+ `No diagnostic log matches "${reference}". Run \`eve logs list\` to see available logs.`,
);
}
throw new Error(
@@ -115,7 +115,7 @@ export interface LogsShowCommandOptions {
* when `logid` is omitted. The output carries nothing but records (no
* resolved-path banner, no progress notes on either stream), so
* `eve logs 2>&1 | jq` always parses; discover ids and paths with
- * `eve logs ls`. With `--dump`, the log's environment dump (a JSON
+ * `eve logs list`. With `--dump`, the log's environment dump (a JSON
* document) is prepended to the JSONL log body, forming one
* self-contained, parseable report. With `--events`, session events are
* resolved from the local workflow store at query time — never duplicated
@@ -233,7 +233,7 @@ export interface LogsListCommandOptions {
json?: boolean;
}
-/** Machine-readable row emitted by `eve logs ls --json`. */
+/** Machine-readable row emitted by `eve logs list --json`. */
export interface DevDiagnosticLogJson {
id: string;
path: string;
@@ -241,7 +241,7 @@ export interface DevDiagnosticLogJson {
sizeBytes: number;
}
-/** `eve logs ls`: lists diagnostic logs, most recent first. */
+/** `eve logs list`: lists diagnostic logs, most recent first. */
export async function runLogsListCommand(
logger: CliLogsLogger,
appRoot: string,
diff --git a/packages/eve/src/cli/commands/register-integration-commands.test.ts b/packages/eve/src/cli/commands/register-integration-commands.test.ts
index c29e91a24..df80c47a1 100644
--- a/packages/eve/src/cli/commands/register-integration-commands.test.ts
+++ b/packages/eve/src/cli/commands/register-integration-commands.test.ts
@@ -17,7 +17,7 @@ describe("parseConnectPrincipalType", () => {
);
});
- it("documents setup while keeping the registry-only connect command hidden", () => {
+ it("hides the registry-owned command group", () => {
const program = new Command();
registerIntegrationCommands({
program,
@@ -29,9 +29,9 @@ describe("parseConnectPrincipalType", () => {
},
});
- expect(program.helpInformation()).toContain("integration");
+ expect(program.helpInformation()).not.toContain("integration");
const integration = program.commands.find((command) => command.name() === "integration");
- expect(integration?.helpInformation()).toContain("setup [options] <kind>");
+ expect(integration?.helpInformation()).not.toContain("setup [options] <kind>");
expect(integration?.helpInformation()).not.toContain("connect <slug>");
});
});
diff --git a/packages/eve/src/cli/commands/register-integration-commands.ts b/packages/eve/src/cli/commands/register-integration-commands.ts
index 0cb8afde7..95f3350da 100644
--- a/packages/eve/src/cli/commands/register-integration-commands.ts
+++ b/packages/eve/src/cli/commands/register-integration-commands.ts
@@ -23,9 +23,11 @@ export function registerIntegrationCommands(input: {
}): void {
const { applicationContext, logger, program } = input;
- const integration = program.command("integration").description("Set up an eve integration");
+ const integration = program
+ .command("integration", { hidden: true })
+ .description("Set up an eve integration");
- agentCommand(integration.command("setup <kind>"), applicationContext)
+ agentCommand(integration.command("setup <kind>", { hidden: true }), applicationContext)
.description("Run a built-in integration setup flow")
.option("-y, --yes")
.option("--force", "Overwrite files created by setup.")
diff --git a/packages/eve/src/cli/commands/trace.ts b/packages/eve/src/cli/commands/trace.ts
index 1d9f092ae..f34c0bec8 100644
--- a/packages/eve/src/cli/commands/trace.ts
+++ b/packages/eve/src/cli/commands/trace.ts
@@ -55,7 +55,7 @@ export function resolveLocalTraces(
);
if (matches.length === 0) {
throw new Error(
- `No local trace matches "${sanitizeForTerminal(reference)}". Run \`eve traces ls\` to list traces.`,
+ `No local trace matches "${sanitizeForTerminal(reference)}". Run \`eve traces list\` to list traces.`,
);
}
if (matches.length === 1) return matches;
diff --git a/packages/eve/src/cli/dev/command.ts b/packages/eve/src/cli/dev/command.ts
index 503ed661c..def464a36 100644
--- a/packages/eve/src/cli/dev/command.ts
+++ b/packages/eve/src/cli/dev/command.ts
@@ -1,6 +1,7 @@
import { InvalidArgumentError, Option, type Command } from "#compiled/commander/index.js";
import type { CliApplicationContext } from "#cli/application-command.js";
import { agentCommand } from "#cli/agent-command.js";
+import { inspectVerifiedRemoteAgent } from "#setup/verified-remote-agent.js";
import { eveCliBanner } from "#cli/banner.js";
import { FORCED_EXIT_BACKSTOP_MS, installShutdownSignal } from "#cli/shutdown.js";
import { startCliLiveRow } from "#cli/ui/live-row.js";
@@ -14,7 +15,11 @@ import type { DevelopmentCliOptions } from "./command-options.js";
import { runInteractiveDevelopmentUi } from "./run-interactive-ui.js";
import type { DevelopmentTuiStartup, RunDevelopmentTuiInput } from "./tui/tui.js";
import { resolveDevUiMode, resolveTuiDisplayOptions } from "./ui-options.js";
-import { parseDevelopmentHeaderOption, resolveDevelopmentUrlTarget } from "./url-target.js";
+import {
+ parseDevelopmentHeaderOption,
+ resolveDevelopmentUrlTarget,
+ type DevelopmentRequestHeaders,
+} from "./url-target.js";
import { parseDevelopmentServerUrl } from "./url.js";
import { waitForServerOrStop, waitForUiOrServer } from "./wait-for-ui.js";
import {
@@ -30,10 +35,6 @@ interface DevelopmentCommandLogger {
}
interface DevelopmentCommandRuntime {
- isActiveDevelopmentServerForApp?(input: {
- readonly appRoot: string;
- readonly serverUrl: string;
- }): Promise<boolean>;
runDevelopmentTui?: (input: RunDevelopmentTuiInput) => Promise<void>;
startHost?: (appRoot: string, options?: DevelopmentServerOptions) => DevelopmentServer;
}
@@ -52,15 +53,12 @@ async function loadStartHost(): Promise<NonNullable<DevelopmentCommandRuntime["s
return (await import("#cli/dev/local-server-process.js")).createDevelopmentServer;
}
-const loadIsActiveDevelopmentServerForApp = async () =>
- (await import("#internal/nitro/host.js")).isActiveDevelopmentServerForApp;
-
function hasInteractiveTerminal(): boolean {
return Boolean(process.stdin.isTTY && process.stdout.isTTY);
}
-/** Registers the local and remote development server command. */
-export function registerDevelopmentCommand(input: {
+/** Registers an interactive client for existing eve agents. */
+export function registerRemoteCommands(input: {
applicationContext: CliApplicationContext;
logger: DevelopmentCommandLogger;
program: Command;
@@ -70,23 +68,125 @@ export function registerDevelopmentCommand(input: {
const { applicationContext, logger, program, runtime, telemetry } = input;
const theme = createCliTheme();
- agentCommand(program.command("dev"), applicationContext, (command) => {
- const options = command.opts<DevelopmentCliOptions>();
- return (
- resolveDevelopmentUrlTarget(options, command.processedArgs[0] as string | undefined) ===
- undefined
+ program
+ .command("info")
+ .description("Inspect an existing eve agent.")
+ .requiredOption("-u, --url <url>", "Existing eve agent URL", parseDevelopmentServerUrl)
+ .option(
+ "-H, --header <header>",
+ 'Request header for the URL target, in "Name: value" form (repeatable)',
+ parseDevelopmentHeaderOption,
+ )
+ .option("--json", "Output as JSON")
+ .action(
+ async (options: { header?: DevelopmentRequestHeaders; json?: boolean; url: string }) => {
+ const target = resolveDevelopmentUrlTarget(
+ { header: options.header, url: options.url },
+ undefined,
+ )!;
+ const inspection = await inspectVerifiedRemoteAgent({
+ headers: target.headers,
+ prompter:
+ process.stdin.isTTY && process.stdout.isTTY
+ ? (await import("#setup/prompter.js")).createPrompter()
+ : undefined,
+ serverUrl: target.serverUrl,
+ workspaceRoot: applicationContext.root,
+ });
+ logger.log(JSON.stringify(inspection.info, null, options.json === true ? 0 : 2));
+ },
);
- })
- .description("Start the eve development server or connect to an existing URL.")
- .argument("[url]", "Connect to an existing server URL", parseDevelopmentServerUrl)
- .option("--host <host>", "Host interface to bind")
- .option("--port <port>", "Port to listen on (defaults to $PORT, then 2000)", parsePortOption)
- .option("-u, --url <url>", "Connect to an existing server URL", parseDevelopmentServerUrl)
+
+ program
+ .command("connect")
+ .description("Open the terminal UI for an existing eve agent.")
+ .requiredOption("-u, --url <url>", "Existing eve agent URL", parseDevelopmentServerUrl)
.option(
"-H, --header <header>",
- 'Request header for a URL target, in "Name: value" form (repeatable)',
+ 'Request header for the URL target, in "Name: value" form (repeatable)',
parseDevelopmentHeaderOption,
)
+ .option("--name <name>", "Title shown in the terminal UI")
+ .option("--input <text>", "Pre-fill the prompt input")
+ .option(
+ "--tools <mode>",
+ "How tool calls render: full | collapsed | auto-collapsed | hidden",
+ parseDisplayMode,
+ )
+ .option(
+ "--reasoning <mode>",
+ "How reasoning renders: full | collapsed | auto-collapsed | hidden",
+ parseDisplayMode,
+ )
+ .option(
+ "--subagents <mode>",
+ "How subagent sections render: full | collapsed | auto-collapsed | hidden",
+ parseDisplayMode,
+ )
+ .option(
+ "--connection-auth <mode>",
+ "How connection authorization renders: full | collapsed | auto-collapsed | hidden",
+ parseDisplayMode,
+ )
+ .option(
+ "--assistant-response-stats <mode>",
+ "Assistant header statistic: tokens | tokensPerSecond",
+ parseStatsMode,
+ )
+ .option(
+ "--context-size <tokens>",
+ "Model context window size, shown as a usage percentage",
+ parseContextSizeOption,
+ )
+ .option(
+ "--logs <mode>",
+ "Which server/agent logs to show: all | stderr | sandbox | none",
+ parseLogsMode,
+ )
+ .action(async (options: DevelopmentCliOptions & { url: string }) => {
+ const remoteTarget = resolveDevelopmentUrlTarget(options, undefined)!;
+ const mode = resolveDevUiMode({ options, interactive: hasInteractiveTerminal() });
+ if (mode === "headless") {
+ throw new InvalidArgumentError("eve remote connect requires an interactive terminal.");
+ }
+ telemetry.trackDevContext({ target: "remote", ui: mode });
+ const { loadDevelopmentEnvironmentFiles } = await import("#cli/dev/environment.js");
+ await loadDevelopmentEnvironmentFiles(applicationContext.root);
+ logger.log(`↗ remote agent ${theme.info(new URL(remoteTarget.serverUrl).host)}`);
+ logger.log("");
+ const lifecycle = installShutdownSignal({ exitAfterMs: FORCED_EXIT_BACKSTOP_MS });
+ try {
+ await runInteractiveDevelopmentUi({
+ applicationRoot: applicationContext.root,
+ lifecycle,
+ onOnboardingStep: telemetry.trackSetupStep,
+ onOnboardingTerminal: telemetry.trackSetupTerminal,
+ options,
+ remoteTarget,
+ runDevelopmentTui: runtime.runDevelopmentTui,
+ server: { serverUrl: remoteTarget.serverUrl },
+ });
+ } finally {
+ lifecycle.dispose();
+ }
+ });
+}
+
+/** Registers the local development server command. */
+export function registerDevelopmentCommand(input: {
+ applicationContext: CliApplicationContext;
+ logger: DevelopmentCommandLogger;
+ program: Command;
+ runtime: DevelopmentCommandRuntime;
+ telemetry: DevelopmentCommandTelemetry;
+}): void {
+ const { applicationContext, logger, program, runtime, telemetry } = input;
+ const theme = createCliTheme();
+
+ agentCommand(program.command("dev"), applicationContext)
+ .description("Start the local eve development server.")
+ .option("--host <host>", "Host interface to bind")
+ .option("--port <port>", "Port to listen on (defaults to $PORT, then 2000)", parsePortOption)
.option("--no-ui", "Start the server without an interactive UI")
.option("--no-default-extensions", "Do not mount default development extensions")
.option("--name <name>", "Title shown in the terminal UI (defaults to the app folder name)")
@@ -127,66 +227,14 @@ export function registerDevelopmentCommand(input: {
"Which server/agent logs to show: all | stderr | sandbox | none",
parseLogsMode,
)
- .addHelpText(
- "after",
- "\nYou can also pass a bare URL, for example: eve dev https://example.com\n",
- )
- .action(async (positionalUrl: string | undefined, options: DevelopmentCliOptions) => {
- const remoteTarget = resolveDevelopmentUrlTarget(options, positionalUrl);
- const remoteServerUrl = remoteTarget?.serverUrl;
+ .action(async (options: DevelopmentCliOptions) => {
const interactive = hasInteractiveTerminal();
const mode = resolveDevUiMode({ options, interactive });
- telemetry.trackDevContext({ target: remoteTarget ? "remote" : "local", ui: mode });
+ telemetry.trackDevContext({ target: "local", ui: mode });
if (mode === "headless") logger.log(eveCliBanner());
if (options.input !== undefined && mode === "headless") {
throw new InvalidArgumentError("--input requires the interactive UI.");
}
- let existingLocalDevelopmentServer = false;
- if (remoteServerUrl !== undefined) {
- const isActive =
- runtime.isActiveDevelopmentServerForApp ?? (await loadIsActiveDevelopmentServerForApp());
- existingLocalDevelopmentServer = await isActive({
- appRoot: applicationContext.root,
- serverUrl: remoteServerUrl,
- });
- }
- if (remoteServerUrl) {
- const { loadDevelopmentEnvironmentFiles } = await import("#cli/dev/environment.js");
- await loadDevelopmentEnvironmentFiles(applicationContext.root);
- logger.log(
- `↗ ${existingLocalDevelopmentServer ? "local" : "remote"} mode targeting ${theme.info(new URL(remoteServerUrl).host)}`,
- );
- if (mode === "headless") {
- logger.log(
- renderCliTaggedLine(theme, {
- message: "Interactive UI disabled because the current terminal is not a TTY.",
- tag: "dev",
- tone: "warning",
- }),
- );
- return;
- }
-
- logger.log("");
- const lifecycle = installShutdownSignal({ exitAfterMs: FORCED_EXIT_BACKSTOP_MS });
- try {
- await runInteractiveDevelopmentUi({
- applicationRoot: applicationContext.root,
- existingLocalServer: existingLocalDevelopmentServer,
- lifecycle,
- onOnboardingStep: telemetry.trackSetupStep,
- onOnboardingTerminal: telemetry.trackSetupTerminal,
- options,
- remoteTarget,
- runDevelopmentTui: runtime.runDevelopmentTui,
- server: { serverUrl: remoteServerUrl },
- });
- } finally {
- lifecycle.dispose();
- }
- return;
- }
-
const buildProgress = mode === "tui" ? startCliLiveRow(logger, { elapsed: true }) : undefined;
const onBootProgress = createDevBootProgressReporter(buildProgress);
buildProgress?.update("Starting your agent");
@@ -278,7 +326,6 @@ export function registerDevelopmentCommand(input: {
runUi: async () =>
await runInteractiveDevelopmentUi({
applicationRoot: applicationContext.root,
- existingLocalServer: false,
lifecycle,
onOnboardingStep: telemetry.trackSetupStep,
onOnboardingTerminal: telemetry.trackSetupTerminal,
diff --git a/packages/eve/src/cli/dev/run-interactive-ui.test.ts b/packages/eve/src/cli/dev/run-interactive-ui.test.ts
index 214bb8d46..10b071eaa 100644
--- a/packages/eve/src/cli/dev/run-interactive-ui.test.ts
+++ b/packages/eve/src/cli/dev/run-interactive-ui.test.ts
@@ -30,7 +30,6 @@ describe("runInteractiveDevelopmentUi", () => {
await runInteractiveDevelopmentUi({
applicationRoot: memberRoot,
- existingLocalServer: false,
options: {},
runDevelopmentTui,
server: { appRoot: "/workspace", serverUrl: "http://localhost:2000" },
diff --git a/packages/eve/src/cli/dev/run-interactive-ui.ts b/packages/eve/src/cli/dev/run-interactive-ui.ts
index faa8e06f7..a45abe2e7 100644
--- a/packages/eve/src/cli/dev/run-interactive-ui.ts
+++ b/packages/eve/src/cli/dev/run-interactive-ui.ts
@@ -18,7 +18,6 @@ import type { CommandLifecycle } from "../shutdown.js";
export async function runInteractiveDevelopmentUi(input: {
readonly applicationRoot: string;
- readonly existingLocalServer: boolean;
readonly lifecycle?: CommandLifecycle;
readonly options: DevelopmentCliOptions;
readonly remoteTarget?: DevelopmentUrlTarget;
@@ -40,7 +39,7 @@ export async function runInteractiveDevelopmentUi(input: {
const agentRoot =
projectContext?.kind === "workspace-member" ? projectContext.member.appRoot : undefined;
const target =
- input.remoteTarget === undefined || input.existingLocalServer
+ input.remoteTarget === undefined
? { kind: "local" as const, serverUrl: input.server.serverUrl, workspaceRoot, agentRoot }
: { kind: "remote" as const, serverUrl: input.server.serverUrl, workspaceRoot, agentRoot };
const display = resolveTuiDisplayOptions(input.options);
diff --git a/packages/eve/src/cli/dev/tui/prompt-command-handler.test.ts b/packages/eve/src/cli/dev/tui/prompt-command-handler.test.ts
index ac363e291..8d94c19ff 100644
--- a/packages/eve/src/cli/dev/tui/prompt-command-handler.test.ts
+++ b/packages/eve/src/cli/dev/tui/prompt-command-handler.test.ts
@@ -156,7 +156,8 @@ describe("createPromptCommandHandler", () => {
await expect(
handler.handle({ type: "extension", name: "model", argument: "" }, context()),
).resolves.toEqual({
- message: "/model needs eve dev running the local server (it is not available with --url).",
+ message:
+ "/model needs eve dev running the local server (it is not available when connected to a remote agent).",
});
});
diff --git a/packages/eve/src/cli/dev/tui/prompt-command-handler.ts b/packages/eve/src/cli/dev/tui/prompt-command-handler.ts
index cf50be6a6..251ca0d0d 100644
--- a/packages/eve/src/cli/dev/tui/prompt-command-handler.ts
+++ b/packages/eve/src/cli/dev/tui/prompt-command-handler.ts
@@ -41,7 +41,7 @@ export function createPromptCommandHandler(
// drift from discovery.
if (target.kind === "remote" && !isPromptCommandAvailableFor(command.name, "remote")) {
return {
- message: `/${command.name} needs eve dev running the local server (it is not available with --url).`,
+ message: `/${command.name} needs eve dev running the local server (it is not available when connected to a remote agent).`,
};
}
@@ -54,7 +54,7 @@ export function createPromptCommandHandler(
if (target.kind !== "local") {
return {
message:
- "/model needs eve dev running the local server (it is not available with --url).",
+ "/model needs eve dev running the local server (it is not available when connected to a remote agent).",
};
}
const appRoot = target.agentRoot ?? target.workspaceRoot;
diff --git a/packages/eve/src/cli/dev/tui/runner.test.ts b/packages/eve/src/cli/dev/tui/runner.test.ts
index fe45b0c9a..1423e3a27 100644
--- a/packages/eve/src/cli/dev/tui/runner.test.ts
+++ b/packages/eve/src/cli/dev/tui/runner.test.ts
@@ -4675,7 +4675,7 @@ describe("EveTUIRunner command outcome rendering", () => {
await runner.run();
expect(results).toHaveLength(1);
- expect(results[0]).toContain("--url");
+ expect(results[0]).toContain("remote agent");
expect(notices).toEqual([]);
});
});
diff --git a/packages/eve/src/cli/dev/url-target.ts b/packages/eve/src/cli/dev/url-target.ts
index 8a89f785e..a83638a0e 100644
--- a/packages/eve/src/cli/dev/url-target.ts
+++ b/packages/eve/src/cli/dev/url-target.ts
@@ -1,6 +1,8 @@
import { InvalidArgumentError } from "#compiled/commander/index.js";
import { encodeBasicCredentials } from "#internal/http/basic-auth.js";
+import { parseDevelopmentServerUrl } from "./url.js";
+
export type DevelopmentRequestHeaders = Readonly<Record<string, string>>;
export interface DevelopmentUrlTargetOptions {
@@ -63,7 +65,7 @@ export function resolveDevelopmentUrlTarget(
throw new InvalidArgumentError("The --no-ui option cannot be used with --url.");
}
- const parsedUrl = URL.parse(url);
+ const parsedUrl = URL.parse(parseDevelopmentServerUrl(url));
if (parsedUrl === null) {
throw new InvalidArgumentError(`Expected an absolute http(s) URL, received "${url}".`);
}
diff --git a/packages/eve/src/cli/invoke/command.ts b/packages/eve/src/cli/invoke/command.ts
index c1cd81733..eb28bfef8 100644
--- a/packages/eve/src/cli/invoke/command.ts
+++ b/packages/eve/src/cli/invoke/command.ts
@@ -1,36 +1,30 @@
import { type Command, InvalidArgumentError } from "#compiled/commander/index.js";
import type { CliApplicationContext } from "#cli/application-command.js";
-import { agentCommand } from "#cli/agent-command.js";
import {
parseDevelopmentHeaderOption,
resolveDevelopmentUrlTarget,
type DevelopmentRequestHeaders,
} from "#cli/dev/url-target.js";
import { parseDevelopmentServerUrl } from "#cli/dev/url.js";
-import type { DevelopmentServer, DevelopmentServerOptions } from "#internal/nitro/host/types.js";
-import type { DevelopmentTarget } from "#services/dev-client/target.js";
+import type { RemoteDevelopmentTarget } from "#services/dev-client/target.js";
import { resolveInvokeOperation, type RunInvokeInput } from "./invoke.js";
-import { invokeResultJsonSchema, parseInvokeResumeInput, type InvokeResult } from "./result.js";
+import { parseInvokeResumeInput, type InvokeResult } from "./result.js";
interface InvokeCliOptions {
header?: DevelopmentRequestHeaders;
- jsonSchema?: boolean;
resume?: boolean;
scope?: string;
- url?: string;
}
export interface InvokeCommandDependencies {
readonly loadEnvironment: (appRoot: string) => void | Promise<void>;
readonly runInvoke: (input: RunInvokeInput) => Promise<InvokeResult>;
- readonly startHost: (appRoot: string) => DevelopmentServer | Promise<DevelopmentServer>;
}
-/** Runtime overrides used when wiring `eve invoke` into the root CLI. */
+/** Runtime overrides used when wiring `eve remote invoke` into the CLI. */
export interface InvokeCliRuntimeDependencies {
readonly runInvoke: (input: RunInvokeInput) => Promise<InvokeResult>;
- readonly startHost: (appRoot: string, options?: DevelopmentServerOptions) => DevelopmentServer;
}
interface InvokeCommandLogger {
@@ -51,29 +45,21 @@ export function registerRuntimeInvokeCommand(input: {
await (await import("#cli/dev/environment.js")).loadDevelopmentEnvironmentFiles(root),
runInvoke: async (invokeInput) =>
await (input.runtime.runInvoke ?? (await import("./invoke.js")).runInvoke)(invokeInput),
- startHost: async (root) =>
- (
- input.runtime.startHost ??
- (await import("#internal/nitro/host.js")).createDevelopmentServer
- )(root, { existing: "reject" }),
},
});
}
-/** Registers the non-interactive invoke command. */
+/** Registers the non-interactive remote invocation command. */
export function registerInvokeCommand(input: {
readonly applicationContext: CliApplicationContext;
readonly deps: InvokeCommandDependencies;
readonly logger: InvokeCommandLogger;
readonly program: Command;
}): void {
- agentCommand(input.program.command("invoke"), input.applicationContext, (command) => {
- const options = command.opts<InvokeCliOptions>();
- return options.url === undefined && options.jsonSchema !== true;
- })
- .description("Invoke an eve agent without a terminal UI.")
- .argument("[prompt]", "Prompt, follow-up message, or answer to a pending input")
- .option("-u, --url <url>", "Invoke an existing server URL", parseDevelopmentServerUrl)
+ input.program
+ .command("invoke [prompt]")
+ .description("Invoke an existing eve agent without a terminal UI.")
+ .requiredOption("-u, --url <url>", "Existing eve agent URL", parseDevelopmentServerUrl)
.option(
"-H, --header <header>",
'Request header for a URL target, in "Name: value" form (repeatable)',
@@ -81,9 +67,8 @@ export function registerInvokeCommand(input: {
)
.option("--resume", "Read a previous resumable result from stdin")
.option("--scope <team>", "Vercel team that owns the URL target")
- .option("--json-schema", "Print the invoke result JSON Schema and exit")
- .action((prompt: string | undefined, options: InvokeCliOptions) =>
- runInvokeCommand({ ...input, options, prompt }),
+ .action((prompt: string | undefined, options: InvokeCliOptions & { url: string }) =>
+ runInvokeCommand({ ...input, options, prompt, url: options.url }),
);
}
@@ -93,69 +78,38 @@ async function runInvokeCommand(input: {
readonly logger: InvokeCommandLogger;
readonly options: InvokeCliOptions;
readonly prompt?: string;
+ readonly url: string;
}): Promise<void> {
const { options } = input;
- if (options.jsonSchema === true) {
- assertSchemaOnly(input.prompt, options);
- input.logger.log(JSON.stringify(invokeResultJsonSchema, null, 2));
- return;
- }
const previous =
options.resume === true ? parseInvokeResumeInput(await readJsonFromStdin()) : undefined;
const resumedTarget = previous?.resume.target;
- if (resumedTarget?.kind === "local" && options.url !== undefined) {
- throw new InvalidArgumentError("A local invocation cannot be resumed against --url.");
- }
-
- const effectiveUrl =
- options.url ?? (resumedTarget?.kind === "remote" ? resumedTarget.serverUrl : undefined);
const remoteTarget = resolveDevelopmentUrlTarget(
- { header: options.header, url: effectiveUrl },
+ { header: options.header, url: input.url },
undefined,
- );
- if (options.scope !== undefined && remoteTarget === undefined) {
- throw new InvalidArgumentError("The --scope option requires a URL target.");
- }
+ )!;
if (
- resumedTarget?.kind === "remote" &&
- options.url !== undefined &&
- remoteTarget !== undefined &&
- remoteTarget.serverUrl !== resumedTarget.serverUrl
+ resumedTarget?.serverUrl !== undefined &&
+ resumedTarget.serverUrl !== remoteTarget.serverUrl
) {
- throw new InvalidArgumentError(
+ throw new Error(
`Session target ${resumedTarget.serverUrl} does not match ${remoteTarget.serverUrl}.`,
);
}
const operation = resolveInvokeOperation({ previous, prompt: input.prompt });
await input.deps.loadEnvironment(input.applicationContext.root);
- if (remoteTarget !== undefined) {
- await executeWithSignals(
- input,
- {
- kind: "remote",
- serverUrl: remoteTarget.serverUrl,
- workspaceRoot: input.applicationContext.root,
- },
- remoteTarget.headers,
- operation,
- options.scope,
- );
- return;
- }
-
- const server = await input.deps.startHost(input.applicationContext.root);
- try {
- const handle = await server.start();
- await executeWithSignals(
- input,
- { kind: "local", serverUrl: handle.url, workspaceRoot: handle.appRoot },
- undefined,
- operation,
- );
- } finally {
- await server.close();
- }
+ await executeWithSignals(
+ input,
+ {
+ kind: "remote",
+ serverUrl: remoteTarget.serverUrl,
+ workspaceRoot: input.applicationContext.root,
+ },
+ remoteTarget.headers,
+ operation,
+ options.scope,
+ );
}
async function executeWithSignals(
@@ -164,7 +118,7 @@ async function executeWithSignals(
readonly logger: InvokeCommandLogger;
readonly options: InvokeCliOptions;
},
- target: DevelopmentTarget,
+ target: RemoteDevelopmentTarget,
headers: DevelopmentRequestHeaders | undefined,
operation: RunInvokeInput["operation"],
vercelScope?: string,
@@ -197,26 +151,14 @@ async function executeWithSignals(
}
}
-function assertSchemaOnly(prompt: string | undefined, options: InvokeCliOptions): void {
- if (
- prompt !== undefined ||
- options.resume === true ||
- options.scope !== undefined ||
- options.url !== undefined ||
- options.header !== undefined
- ) {
- throw new InvalidArgumentError(
- "--json-schema cannot be combined with invoke options or a prompt.",
- );
- }
-}
-
async function readJsonFromStdin(): Promise<unknown> {
let text = "";
process.stdin.setEncoding("utf8");
for await (const chunk of process.stdin) text += chunk;
if (text.trim().length === 0) {
- throw new InvalidArgumentError("--resume expected a resumable eve invoke result on stdin.");
+ throw new InvalidArgumentError(
+ "--resume expected a resumable eve remote invoke result on stdin.",
+ );
}
try {
return JSON.parse(text) as unknown;
diff --git a/packages/eve/src/cli/invoke/invoke.test.ts b/packages/eve/src/cli/invoke/invoke.test.ts
index 0e1cb8f13..c1c1e3e43 100644
--- a/packages/eve/src/cli/invoke/invoke.test.ts
+++ b/packages/eve/src/cli/invoke/invoke.test.ts
@@ -10,11 +10,6 @@ const cursor = {
streamIndex: 3,
};
const target = { kind: "remote" as const, serverUrl: "https://example.com/" };
-const localTarget = {
- kind: "local" as const,
- serverUrl: "https://example.com/",
- workspaceRoot: "/repo",
-};
const resume = { session: cursor, target };
const request = {
action: { callId: "call-1", input: {}, kind: "tool-call" as const, toolName: "bash" },
@@ -39,12 +34,14 @@ describe("parseInvokeResumeInput", () => {
});
it("rejects standalone capsules, malformed results, and non-resumable results", () => {
- expect(() => parseInvokeResumeInput(resume)).toThrow("valid resumable eve invoke result");
+ expect(() => parseInvokeResumeInput(resume)).toThrow(
+ "valid resumable eve remote invoke result",
+ );
expect(() =>
parseInvokeResumeInput({ status: "running", resume: { ...resume, session: {} } }),
- ).toThrow("valid resumable eve invoke result");
+ ).toThrow("valid resumable eve remote invoke result");
expect(() => parseInvokeResumeInput({ status: "failed", message: "boom" })).toThrow(
- "valid resumable eve invoke result",
+ "valid resumable eve remote invoke result",
);
});
});
@@ -177,7 +174,7 @@ describe("runInvoke", () => {
});
});
- it("rejects authorization that depends on a temporary local callback server", async () => {
+ it("returns authorization with a callback URL", async () => {
await expect(
runStreamedInvocation([
{
@@ -193,10 +190,9 @@ describe("runInvoke", () => {
data: { continuationToken: "session-id", wait: "next-user-message" },
},
]),
- ).resolves.toEqual({
- status: "failed",
- message:
- "Local eve invoke cannot pause for connection authorization because its temporary server must remain available for the callback. Run eve dev, then invoke its URL with --url.",
+ ).resolves.toMatchObject({
+ status: "authorization-required",
+ authorizations: [{ name: "linear" }],
});
});
@@ -306,8 +302,9 @@ async function runStreamedInvocation(
.mockResolvedValueOnce(Response.json({ sessionId: "ses_1" }, { status: 202 }))
.mockResolvedValueOnce(streamResponse(events));
return runInvoke({
+ headers: { authorization: "Bearer explicit" },
operation: { kind: "send", payload: { message: "do foo" } },
- target: localTarget,
+ target: { kind: "remote", serverUrl: "https://example.com/", workspaceRoot: "/repo" },
...overrides,
});
}
diff --git a/packages/eve/src/cli/invoke/invoke.ts b/packages/eve/src/cli/invoke/invoke.ts
index 1b2341f28..e35f96531 100644
--- a/packages/eve/src/cli/invoke/invoke.ts
+++ b/packages/eve/src/cli/invoke/invoke.ts
@@ -7,9 +7,7 @@ import {
} from "#client/index.js";
import type { SendTurnPayload } from "#client/types.js";
import { collectTurnEvents, summarizeTurnEvents } from "#client/session-utils.js";
-import { resolveLocalDevelopmentClientOptions } from "#services/dev-client/client-options.js";
-import { resolveLinkedDevelopmentOidcToken } from "#services/dev-client/request-headers.js";
-import type { DevelopmentTarget } from "#services/dev-client/target.js";
+import type { RemoteDevelopmentTarget } from "#services/dev-client/target.js";
import {
formatVercelTrustedSourcesFailure,
isVercelAuthChallenge,
@@ -33,7 +31,7 @@ export interface RunInvokeInput {
readonly headers?: Readonly<Record<string, string>>;
readonly operation: InvokeOperation;
readonly signal?: AbortSignal;
- readonly target: DevelopmentTarget;
+ readonly target: RemoteDevelopmentTarget;
readonly vercelScope?: string;
}
@@ -92,7 +90,8 @@ export function resolveInvokeOperation(input: {
const prompt = input.prompt?.trim();
const previous = input.previous;
if (previous === undefined) {
- if (!prompt) throw new Error("eve invoke requires a prompt unless --resume is provided.");
+ if (!prompt)
+ throw new Error("eve remote invoke requires a prompt unless --resume is provided.");
return { kind: "send", payload: { message: prompt } };
}
@@ -127,18 +126,6 @@ async function createInvokeClient(input: RunInvokeInput): Promise<{
readonly client: Client;
readonly deploymentResolution?: VercelDeploymentResolution;
}> {
- if (input.target.kind === "local") {
- return {
- client: new Client({
- ...resolveLocalDevelopmentClientOptions({
- headers: input.headers,
- serverUrl: input.target.serverUrl,
- token: () => resolveLinkedDevelopmentOidcToken(input.target.workspaceRoot),
- }),
- }),
- };
- }
-
const { deploymentResolution, options } = await resolveVerifiedRemoteDevelopmentClient({
headers: input.headers,
serverUrl: input.target.serverUrl,
@@ -173,7 +160,7 @@ async function observeSafely(
}
async function observeInvocation(
- target: DevelopmentTarget,
+ target: RemoteDevelopmentTarget,
session: ClientSession,
response: AsyncIterable<MessageStreamEvent>,
): Promise<InvokeResult> {
@@ -201,16 +188,6 @@ async function observeInvocation(
const authorizations = summary.pendingAuthorizations;
if (authorizations.length > 0) {
- if (
- target.kind === "local" &&
- authorizations.some((authorization) => authorization.webhookUrl !== undefined)
- ) {
- return {
- status: "failed",
- message:
- "Local eve invoke cannot pause for connection authorization because its temporary server must remain available for the callback. Run eve dev, then invoke its URL with --url.",
- };
- }
return { status: "authorization-required", authorizations, resume };
}
@@ -221,15 +198,14 @@ async function observeInvocation(
return { status: "ready", outcome, resume };
}
-function runningResult(target: DevelopmentTarget, state: ClientSessionState): InvokeResult {
+function runningResult(target: RemoteDevelopmentTarget, state: ClientSessionState): InvokeResult {
return { status: "running", resume: createResume(target, state) };
}
-function createResume(target: DevelopmentTarget, session: ClientSessionState): InvokeResume {
+function createResume(target: RemoteDevelopmentTarget, session: ClientSessionState): InvokeResume {
return {
session,
- target:
- target.kind === "local" ? { kind: "local" } : { kind: "remote", serverUrl: target.serverUrl },
+ target: { kind: "remote", serverUrl: target.serverUrl },
};
}
diff --git a/packages/eve/src/cli/invoke/result.ts b/packages/eve/src/cli/invoke/result.ts
index 752187d25..09310d5b6 100644
--- a/packages/eve/src/cli/invoke/result.ts
+++ b/packages/eve/src/cli/invoke/result.ts
@@ -8,10 +8,7 @@ const sessionCursorSchema = z
streamIndex: z.number().int().nonnegative(),
})
.strict();
-const targetSchema = z.discriminatedUnion("kind", [
- z.object({ kind: z.literal("local") }).strict(),
- z.object({ kind: z.literal("remote"), serverUrl: z.url() }).strict(),
-]);
+const targetSchema = z.object({ kind: z.literal("remote"), serverUrl: z.url() }).strict();
const invokeResumeSchema = z
.object({ session: sessionCursorSchema, target: targetSchema })
.strict();
@@ -70,7 +67,7 @@ const invokeResultSchema = z.discriminatedUnion("status", [
.strict(),
]);
-/** Durable session coordinates emitted by `eve invoke`. Credentials are deliberately excluded. */
+/** Durable session coordinates emitted by `eve remote invoke`. Credentials are deliberately excluded. */
export type InvokeResume = z.infer<typeof invokeResumeSchema>;
export type InvocationInputRequest = z.infer<typeof invocationInputRequestSchema>;
/** Result emitted by one non-interactive agent invocation. */
@@ -92,22 +89,11 @@ export function projectInvocationInputRequest(request: InputRequest): Invocation
};
}
-/** Parses a complete, resumable result from a previous `eve invoke` command. */
+/** Parses a complete, resumable result from a previous `eve remote invoke` command. */
export function parseInvokeResumeInput(value: unknown): InvokeResult & { resume: InvokeResume } {
const result = invokeResultSchema.safeParse(value);
if (result.success && "resume" in result.data && result.data.resume !== undefined) {
return result.data as InvokeResult & { resume: InvokeResume };
}
- throw new Error("Resume JSON is not a valid resumable eve invoke result.");
+ throw new Error("Resume JSON is not a valid resumable eve remote invoke result.");
}
-
-/** JSON Schema generated from the canonical invoke result runtime schema. */
-export const invokeResultJsonSchema = {
- ...z.toJSONSchema(invokeResultSchema, {
- io: "input",
- target: "draft-2020-12",
- unrepresentable: "any",
- }),
- $id: "https://eve.dev/schemas/invoke-result.json",
- title: "eve invoke result",
-};
diff --git a/packages/eve/src/cli/run.test.ts b/packages/eve/src/cli/run.test.ts
index 4e3d6d0fb..772b9870b 100644
--- a/packages/eve/src/cli/run.test.ts
+++ b/packages/eve/src/cli/run.test.ts
@@ -99,7 +99,7 @@ describe("CLI command registration", () => {
const help = output.join("\n");
expect(help).toContain("init [options] [target]");
- expect(help).toContain("set [options]");
+ expect(help).toContain("set");
expect(help).toContain("link");
expect(help).toContain("deploy");
expect(help).toContain("registry");
@@ -122,7 +122,7 @@ describe("CLI command registration", () => {
const logger = { error: vi.fn(), log: vi.fn() };
runSetCommand.mockClear();
- await runCli(["set", "--model", "openai/gpt-5.6-sol", "--reasoning", "high"], logger);
+ await runCli(["set", "model", "openai/gpt-5.6-sol", "--reasoning", "high"], logger);
expect(runSetCommand).toHaveBeenCalledWith(logger, resolve(process.cwd()), {
model: "openai/gpt-5.6-sol",
@@ -169,7 +169,7 @@ describe("CLI command registration", () => {
const resolveProject = vi.fn(async () => resolvedProject("/workspace/weather"));
runSetCommand.mockClear();
- await runCli(["set", "--model", "openai/gpt-5.6-sol"], logger, {
+ await runCli(["set", "model", "openai/gpt-5.6-sol"], logger, {
resolveApplicationProject: resolveProject,
});
@@ -184,7 +184,7 @@ describe("CLI command registration", () => {
const resolveProject = vi.fn(async () => resolvedProject("/workspace/weather"));
await runCli(
- ["set", "--help"],
+ ["set", "model", "--help"],
{ error: vi.fn(), log: vi.fn() },
{
resolveApplicationProject: resolveProject,
@@ -197,13 +197,13 @@ describe("CLI command registration", () => {
it("lists model and reasoning options for the set command", async () => {
const output: string[] = [];
- await runCli(["set", "--help"], {
+ await runCli(["set", "model", "--help"], {
error: (message) => output.push(message),
log: (message) => output.push(message),
});
const help = output.join("\n");
- expect(help).toContain("--model <model>");
+ expect(help).toContain("[model]");
expect(help).toContain("--reasoning <effort>");
});
@@ -211,7 +211,7 @@ describe("CLI command registration", () => {
const logger = { error: vi.fn(), log: vi.fn() };
runSetCommand.mockClear();
- await expect(runCli(["set", "--reasoning", "extreme"], logger)).rejects.toThrow();
+ await expect(runCli(["set", "reasoning", "extreme"], logger)).rejects.toThrow();
expect(runSetCommand).not.toHaveBeenCalled();
});
@@ -407,7 +407,7 @@ describe("eve init compatibility flags", () => {
const help = output.join("\n");
expect(help).toContain("-y, --yes");
- expect(help).toContain("--model <model>");
+ expect(help).toContain("<model>");
expect(help).toContain("--reasoning <effort>");
expect(help).toContain("-n, --non-interactive");
});
@@ -519,7 +519,8 @@ describe("eve CLI malformed argument handling", () => {
describe("eve dev --input", () => {
it("forwards the initial draft to the interactive TUI", async () => {
const runDevelopmentTui = await runInteractiveDev([
- "dev",
+ "remote",
+ "connect",
"--url",
"https://example.com",
"--input",
@@ -541,11 +542,11 @@ describe("eve dev --input", () => {
it("rejects the option when the terminal cannot run the interactive UI", async () => {
await expect(
runCli(
- ["dev", "--url", "https://example.com", "--input", "/model"],
+ ["remote", "connect", "--url", "https://example.com", "--input", "/model"],
{ error: () => {}, log: () => {} },
{ runDevelopmentTui: vi.fn(async () => {}) },
),
- ).rejects.toThrow("--input requires the interactive UI");
+ ).rejects.toThrow("eve remote connect requires an interactive terminal.");
});
it.each([false, true])(
@@ -638,7 +639,7 @@ describe("eve dev --input", () => {
});
});
-describe("eve invoke", () => {
+describe("eve remote invoke", () => {
it("runs a fresh remote task without starting the TUI", async () => {
const runInvoke = vi.fn(async () => ({
status: "ready" as const,
@@ -651,7 +652,7 @@ describe("eve invoke", () => {
const output: string[] = [];
await runCli(
- ["invoke", "--url", "https://example.com", "--scope", "target-team", "do foo"],
+ ["remote", "invoke", "--url", "https://example.com", "--scope", "target-team", "do foo"],
{ error: () => {}, log: (message) => output.push(message) },
{ runInvoke },
);
@@ -672,15 +673,6 @@ describe("eve invoke", () => {
});
});
- it("rejects a Vercel scope without a URL target", async () => {
- await expect(
- runCli(["invoke", "--scope", "target-team", "do foo"], {
- error: () => {},
- log: () => {},
- }),
- ).rejects.toThrow("--scope option requires a URL target");
- });
-
it("accepts an explicitly supplied URL equivalent to the stored resume target", async () => {
const runInvoke = vi.fn(async () => ({
status: "running" as const,
@@ -706,7 +698,7 @@ describe("eve invoke", () => {
try {
await runCli(
- ["invoke", "--resume", "--url", "https://example.com", "follow up"],
+ ["remote", "invoke", "--url", "https://example.com", "--resume", "follow up"],
{ error: () => {}, log: () => {} },
{ runInvoke },
);
@@ -721,25 +713,9 @@ describe("eve invoke", () => {
);
});
- it("prints the JSON schema without resolving or invoking an agent", async () => {
- const runInvoke = vi.fn();
- const resolveProject = vi.fn(async () => resolvedProject("/workspace/weather"));
- const output: string[] = [];
-
- await runCli(
- ["invoke", "--json-schema"],
- { error: () => {}, log: (message) => output.push(message) },
- { resolveApplicationProject: resolveProject, runInvoke },
- );
-
- expect(resolveProject).not.toHaveBeenCalled();
- expect(runInvoke).not.toHaveBeenCalled();
- expect(JSON.parse(output[0]!)).toMatchObject({ title: "eve invoke result" });
- });
-
it("requires a prompt for a fresh invocation", async () => {
await expect(
- runCli(["invoke", "--url", "https://example.com"], {
+ runCli(["remote", "invoke", "--url", "https://example.com"], {
error: () => {},
log: () => {},
}),
@@ -747,11 +723,11 @@ describe("eve invoke", () => {
});
});
-describe("eve dev --url protocol", () => {
+describe("eve remote connect", () => {
it("does not resolve a local application for a remote URL", async () => {
const resolveProject = vi.fn(async () => resolvedProject("/workspace/weather"));
- await runInteractiveDev(["dev", "https://example.com"], {
+ await runInteractiveDev(["remote", "connect", "--url", "https://example.com"], {
resolveApplicationProject: resolveProject,
});
@@ -760,7 +736,9 @@ describe("eve dev --url protocol", () => {
it("preserves query parameters on the remote target URL", async () => {
const runDevelopmentTui = await runInteractiveDev([
- "dev",
+ "remote",
+ "connect",
+ "--url",
"https://example.com?x-vercel-protection-bypass=secret",
]);
@@ -777,7 +755,9 @@ describe("eve dev --url protocol", () => {
it("lowers URL userinfo to a Basic authorization header and strips it from the target URL", async () => {
const runDevelopmentTui = await runInteractiveDev([
- "dev",
+ "remote",
+ "connect",
+ "--url",
"https://test%40user:p%[email protected]",
]);
@@ -797,7 +777,9 @@ describe("eve dev --url protocol", () => {
it("prefers explicit authorization headers over URL userinfo", async () => {
const runDevelopmentTui = await runInteractiveDev([
- "dev",
+ "remote",
+ "connect",
+ "--url",
"https://user:[email protected]",
"-H",
"Authorization: Bearer explicit-token",
@@ -819,7 +801,8 @@ describe("eve dev --url protocol", () => {
it("forwards repeatable request headers to the remote TUI", async () => {
const runDevelopmentTui = await runInteractiveDev([
- "dev",
+ "remote",
+ "connect",
"--url",
"https://example.com",
"-H",
@@ -846,42 +829,20 @@ describe("eve dev --url protocol", () => {
it("rejects malformed request headers", async () => {
await expect(
runCli(
- ["dev", "--url", "https://example.com", "-H", "Authorization"],
+ ["remote", "connect", "--url", "https://example.com", "-H", "Authorization"],
{ error: () => {}, log: () => {} },
{ runDevelopmentTui: vi.fn(async () => {}) },
),
).rejects.toThrow('Expected header in "Name: value" format');
});
- it("rejects request headers without a URL target", async () => {
- await expect(
- runCli(["dev", "-H", "Authorization: Bearer dev-token"], {
- error: () => {},
- log: () => {},
- }),
- ).rejects.toThrow("The --header option can only be used with --url or a bare URL.");
- });
-
- it("uses the local TUI credential path only for this app's running dev server", async () => {
- const runDevelopmentTui = await runInteractiveDev(["dev", "--url", "http://127.0.0.1:2000"], {
- isActiveDevelopmentServerForApp: async () => true,
- });
-
- expect(runDevelopmentTui).toHaveBeenCalledWith(
- expect.objectContaining({
- target: {
- kind: "local",
- serverUrl: "http://127.0.0.1:2000/",
- workspaceRoot: process.cwd(),
- },
- }),
- );
- });
-
it("keeps an unverified loopback URL on the remote credential path", async () => {
- const runDevelopmentTui = await runInteractiveDev(["dev", "--url", "http://127.0.0.1:2000"], {
- isActiveDevelopmentServerForApp: async () => false,
- });
+ const runDevelopmentTui = await runInteractiveDev([
+ "remote",
+ "connect",
+ "--url",
+ "http://127.0.0.1:2000",
+ ]);
expect(runDevelopmentTui).toHaveBeenCalledWith(
expect.objectContaining({
@@ -894,14 +855,6 @@ describe("eve dev --url protocol", () => {
);
});
- it("rejects an http:// remote URL up front instead of crashing during connect", async () => {
- await expect(
- runCli(["dev", "--url", "http://my-app.vercel.app"], { error: () => {}, log: () => {} }),
- ).rejects.toThrow(/https/);
- });
-});
-
-describe("eve eval --url protocol", () => {
it("rejects an http:// remote URL up front", async () => {
await expect(
runCli(["eval", "--url", "http://my-app.vercel.app"], { error: () => {}, log: () => {} }),
@@ -912,7 +865,8 @@ describe("eve eval --url protocol", () => {
describe("eve dev --logs", () => {
it("accepts sandbox as the initial TUI log mode", async () => {
const runDevelopmentTui = await runInteractiveDev([
- "dev",
+ "remote",
+ "connect",
"--url",
"https://example.com",
"--logs",
@@ -993,7 +947,7 @@ describe("eve acp", () => {
}));
await runCli(
- ["acp", "https://agent.example.com", "--scope", "vercel-internal-playground"],
+ ["acp", "--url", "https://agent.example.com", "--scope", "vercel-internal-playground"],
{ error: () => {}, log: () => {} },
{ resolveVerifiedRemoteDevelopmentClient, runAcpServer },
);
@@ -1019,7 +973,7 @@ describe("eve acp", () => {
const runAcpServer = vi.fn(async () => {});
await runCli(
- ["acp", "https://user:[email protected]", "-H", "X-Tenant: acme"],
+ ["acp", "--url", "https://user:[email protected]", "-H", "X-Tenant: acme"],
{ error: () => {}, log: () => {} },
{ runAcpServer, startHost },
);
diff --git a/packages/eve/src/cli/run.ts b/packages/eve/src/cli/run.ts
index aba86f945..852934a33 100644
--- a/packages/eve/src/cli/run.ts
+++ b/packages/eve/src/cli/run.ts
@@ -10,7 +10,7 @@ import { eveCliBanner } from "#cli/banner.js";
import { registerIntegrationCommands } from "#cli/commands/register-integration-commands.js";
import { registerProjectCommands } from "#cli/commands/register-project-commands.js";
import { registerRegistryCommands } from "#cli/commands/register-registry-commands.js";
-import { registerDevelopmentCommand } from "#cli/dev/command.js";
+import { registerDevelopmentCommand, registerRemoteCommands } from "#cli/dev/command.js";
import { resolveDevUiMode, resolveTuiDisplayOptions } from "#cli/dev/ui-options.js";
import {
registerAcpCommand,
@@ -56,10 +56,6 @@ interface CliLogger {
interface CliRuntimeDependencies {
isCodingAgentLaunch(): Promise<boolean>;
findApplicationRoot(cwd: string): Promise<string | undefined>;
- isActiveDevelopmentServerForApp(input: {
- readonly appRoot: string;
- readonly serverUrl: string;
- }): Promise<boolean>;
buildHost: BuildHost;
resolveVerifiedRemoteDevelopmentClient: ResolveVerifiedRemoteDevelopmentClient;
runAcpServer: RunAcpServer;
@@ -136,20 +132,6 @@ export function createCliProgram(
},
});
- agentCommand(
- program
- .command("channels")
- .description("Manage user-authored channels in the current project.")
- .command("list"),
- applicationContext,
- )
- .description("List user-authored channels in the current project.")
- .option("--json", "Output as JSON")
- .action(async (options: { json?: boolean }) => {
- const { runChannelsListCommand } = await import("#cli/commands/channels.js");
- await runChannelsListCommand(logger, applicationContext.project!, options);
- });
-
registerEveTelemetryCommands(program, logger);
registerIntegrationCommands({ program, logger, applicationContext });
@@ -242,18 +224,23 @@ export function createCliProgram(
},
);
- agentCommand(program.command("set"), applicationContext)
- .description("Change root agent model settings.")
- .option("--model <model>", "Set the agent model (provider/model-id)")
+ const set = program.command("set").description("Change root agent model settings.");
+ agentCommand(set.command("model [model]"), applicationContext)
+ .description("Set the agent model and reasoning effort.")
.option(
"--reasoning <effort>",
"Set reasoning (provider-default|none|minimal|low|medium|high|xhigh)",
parseReasoningOption,
)
- .action(async (options: { model?: string; reasoning?: AgentReasoningDefinition }) => {
- const { runSetCommand } = await import("#cli/commands/set.js");
- await runSetCommand(logger, applicationContext.root, options);
- });
+ .action(
+ async (model: string | undefined, options: { reasoning?: AgentReasoningDefinition }) => {
+ const { runSetCommand } = await import("#cli/commands/set.js");
+ await runSetCommand(logger, applicationContext.root, {
+ model,
+ reasoning: options.reasoning,
+ });
+ },
+ );
registerProjectCommands({ program, logger, applicationContext });
@@ -290,7 +277,9 @@ export function createCliProgram(
await waitForShutdownSignal({ close: () => server.close(), wait: () => server.wait() });
});
- registerRuntimeInvokeCommand({ applicationContext, logger, program, runtime });
+ const remote = program.command("remote").description("Connect to an existing eve agent.");
+ registerRemoteCommands({ applicationContext, logger, program: remote, runtime, telemetry });
+ registerRuntimeInvokeCommand({ applicationContext, logger, program: remote, runtime });
registerAcpCommand({
applicationContext,
@@ -322,7 +311,7 @@ export function createCliProgram(
await runLogsShowCommand(logger, applicationContext.root, logId, options);
});
- agentCommand(logs.command("ls"), applicationContext)
+ agentCommand(logs.command("list").alias("ls"), applicationContext)
.description("List diagnostic logs, most recent first.")
.option("--json", "Output as JSON")
.action(async (options: { json?: boolean }) => {
@@ -330,9 +319,13 @@ export function createCliProgram(
await runLogsListCommand(logger, applicationContext.root, options);
});
- const traces = agentCommand(program.command("traces [trace]"), applicationContext)
- .usage("[options] [trace]\n eve traces ls [options]")
- .description("Show a local `eve dev` trace (the most recent when trace is omitted).")
+ const traces = program
+ .command("traces")
+ .usage("[options] [trace]\n eve traces list [options]")
+ .description("Inspect local `eve dev` traces.");
+
+ agentCommand(traces.command("show [trace]", { isDefault: true }), applicationContext)
+ .description("Show a local trace (the most recent when trace is omitted).")
.option("--verbose", "Expand every span with all attributes and events")
.option("--json", "Output as JSON")
.action(
@@ -342,8 +335,7 @@ export function createCliProgram(
},
);
- traces
- .command("ls")
+ agentCommand(traces.command("list").alias("ls"), applicationContext)
.description("List local traces, most recent first.")
.option("--json", "Output as JSON")
.action(async (options: { json?: boolean }) => {
diff --git a/packages/eve/src/cli/telemetry/index.ts b/packages/eve/src/cli/telemetry/index.ts
index 4a682ea5e..fb1d62529 100644
--- a/packages/eve/src/cli/telemetry/index.ts
+++ b/packages/eve/src/cli/telemetry/index.ts
@@ -117,8 +117,6 @@ const CLI_TELEMETRY_COMMANDS = new Map<string, string>([
["acp", "acp"],
["add", "add"],
["build", "build"],
- ["channels", "channels"],
- ["channels:list", "channels:list"],
["deploy", "deploy"],
["dev", "dev"],
["eval", "eval"],
@@ -130,10 +128,13 @@ const CLI_TELEMETRY_COMMANDS = new Map<string, string>([
["integration", "integration"],
["integration:connect", "integration:connect"],
["integration:setup", "integration:setup"],
- ["invoke", "invoke"],
+ ["remote", "remote"],
+ ["remote:connect", "remote:connect"],
+ ["remote:info", "remote:info"],
+ ["remote:invoke", "remote:invoke"],
["link", "link"],
["logs", "logs:show"],
- ["logs:ls", "logs:ls"],
+ ["logs:list", "logs:list"],
["logs:show", "logs:show"],
["registry", "registry"],
["registry:add", "registry:add"],
@@ -141,13 +142,15 @@ const CLI_TELEMETRY_COMMANDS = new Map<string, string>([
["registry:search", "registry:search"],
["registry:view", "registry:view"],
["set", "set"],
+ ["set:model", "set:model"],
["start", "start"],
["telemetry", "telemetry"],
["telemetry:disable", "telemetry:disable"],
["telemetry:enable", "telemetry:enable"],
["telemetry:status", "telemetry:status"],
- ["traces", "traces:show"],
- ["traces:ls", "traces:ls"],
+ ["traces", "traces"],
+ ["traces:list", "traces:list"],
+ ["traces:show", "traces:show"],
]);
/** Explicit privacy allowlist for command values emitted by CLI telemetry. */
@@ -168,9 +171,11 @@ export function canonicalCommand(argv: readonly string[]): string {
const nested = argv.slice(commandIndex + 1).find((argument) => !argument.startsWith("-"));
if (nested !== undefined) {
- const nestedCommand = CLI_TELEMETRY_COMMANDS.get(`${command}:${nested}`);
+ const normalizedNested = nested === "ls" ? "list" : nested;
+ const nestedCommand = CLI_TELEMETRY_COMMANDS.get(`${command}:${normalizedNested}`);
if (nestedCommand !== undefined) return nestedCommand;
}
+ if (command === "logs" || command === "traces") return `${command}:show`;
return CLI_TELEMETRY_COMMANDS.get(command) ?? "unknown";
}
diff --git a/packages/eve/src/execution/session/entry.ts b/packages/eve/src/execution/session/entry.ts
index cca5c09b6..93dc1750e 100644
--- a/packages/eve/src/execution/session/entry.ts
+++ b/packages/eve/src/execution/session/entry.ts
@@ -1,5 +1,4 @@
import { failSession, runPreparedSession, type SessionBoot } from "#execution/session/program.js";
-import { hasDelegatedCallerContext } from "#execution/session/turn.js";
import { getWorkflowMetadata, getWritable } from "#compiled/@workflow/core/index.js";
import type { DeliverHookPayload, RunInput, SessionCapabilities } from "#channel/types.js";
diff --git a/packages/eve/src/internal/nitro/host.ts b/packages/eve/src/internal/nitro/host.ts
index 17028846b..79dd257ae 100644
--- a/packages/eve/src/internal/nitro/host.ts
+++ b/packages/eve/src/internal/nitro/host.ts
@@ -1,8 +1,5 @@
export { buildApplication } from "#internal/nitro/host/build-application.js";
-export {
- createDevelopmentServer,
- isActiveDevelopmentServerForApp,
-} from "#internal/nitro/host/start-development-server.js";
+export { createDevelopmentServer } from "#internal/nitro/host/start-development-server.js";
export { startProductionServer } from "#internal/nitro/host/start-production-server.js";
export type {
DevelopmentServer,
diff --git a/packages/eve/src/internal/nitro/host/start-development-server.test.ts b/packages/eve/src/internal/nitro/host/start-development-server.test.ts
index 0486d34b6..e283db5ab 100644
--- a/packages/eve/src/internal/nitro/host/start-development-server.test.ts
+++ b/packages/eve/src/internal/nitro/host/start-development-server.test.ts
@@ -305,40 +305,6 @@ describe("normalizeDevelopmentServerClientUrl", () => {
});
});
-describe("isActiveDevelopmentServerForApp", () => {
- it("matches only this app's recorded healthy loopback server", async () => {
- const { isActiveDevelopmentServerForApp } = await import("./start-development-server.js");
- seedStateRecord({ url: "http://127.0.0.1:42123/" });
- mocks.fetch.mockImplementation(async () => Response.json({ revision: "test" }));
- vi.stubGlobal("fetch", mocks.fetch);
-
- try {
- await expect(
- isActiveDevelopmentServerForApp({
- appRoot: "/tmp/eve-test",
- serverUrl: "http://127.0.0.1:42123/",
- }),
- ).resolves.toBe(true);
- await expect(
- isActiveDevelopmentServerForApp({
- appRoot: "/tmp/eve-test",
- serverUrl: "http://127.0.0.1:42124/",
- }),
- ).resolves.toBe(false);
- mocks.fetch.mockResolvedValueOnce(new Response(null, { status: 200 }));
- await expect(
- isActiveDevelopmentServerForApp({
- appRoot: "/tmp/eve-test",
- serverUrl: "http://127.0.0.1:42123/",
- }),
- ).resolves.toBe(false);
- } finally {
- mocks.files.clear();
- vi.unstubAllGlobals();
- }
- });
-});
-
describe("createDevelopmentServer", () => {
beforeEach(() => {
vi.clearAllMocks();
@@ -697,7 +663,7 @@ describe("createDevelopmentServer", () => {
await expect(startDevelopmentServer("/tmp/eve-test")).rejects.toThrow(
[
"A dev server is already running for this eve agent.",
- "To connect to the existing instance, run: pnpm exec eve dev http://localhost:2000/",
+ "To connect to the existing instance, run: pnpm exec eve remote connect --url http://localhost:2000/",
].join("\n"),
);
expect(mocks.createDevelopmentApplicationNitro).not.toHaveBeenCalled();
diff --git a/packages/eve/src/internal/nitro/host/start-development-server.ts b/packages/eve/src/internal/nitro/host/start-development-server.ts
index 6475f2cee..24a0e4235 100644
--- a/packages/eve/src/internal/nitro/host/start-development-server.ts
+++ b/packages/eve/src/internal/nitro/host/start-development-server.ts
@@ -69,34 +69,6 @@ const PORT_ENV = "PORT";
export { normalizeDevelopmentServerClientUrl };
-/**
- * Returns whether a supplied URL identifies this app's healthy local development
- * server. Only that server receives the local TUI credential path.
- */
-export async function isActiveDevelopmentServerForApp(input: {
- readonly appRoot: string;
- readonly serverUrl: string;
-}): Promise<boolean> {
- try {
- const project = await resolveDiscoveryProject(input.appRoot);
- const recordedServerUrl = await new DevelopmentServerState(project).read();
- if (
- recordedServerUrl === undefined ||
- !isLoopbackServerUrl(recordedServerUrl) ||
- !(await isDevelopmentServerReady(recordedServerUrl))
- ) {
- return false;
- }
-
- return (
- new URL(recordedServerUrl).origin ===
- new URL(normalizeDevelopmentServerClientUrl(input.serverUrl)).origin
- );
- } catch {
- return false;
- }
-}
-
async function isDevelopmentServerReady(serverUrl: string): Promise<boolean> {
return (
(await readDevelopmentRuntimeArtifactsRevision({
@@ -162,7 +134,14 @@ async function formatDevelopmentServerConnectCommand(
serverUrl: string,
): Promise<string> {
const packageManager = await detectDevelopmentCommandPackageManager(appRoot);
- return [packageManager, ...eveDevArguments(packageManager), serverUrl].join(" ");
+ return [
+ packageManager,
+ ...eveDevArguments(packageManager).slice(0, -1),
+ "remote",
+ "connect",
+ "--url",
+ serverUrl,
+ ].join(" ");
}
async function createDevelopmentServerAlreadyRunningError(
diff --git a/packages/eve/src/internal/nitro/routes/index.test.ts b/packages/eve/src/internal/nitro/routes/index.test.ts
index c641b76fb..3e4be8bec 100644
--- a/packages/eve/src/internal/nitro/routes/index.test.ts
+++ b/packages/eve/src/internal/nitro/routes/index.test.ts
@@ -60,7 +60,7 @@ describe("buildHomePageResponse", () => {
const body = await response.text();
expect(body).toContain("support-$&amp;-agent");
- expect(body).toContain("eve dev https://agent-$&amp;.example");
+ expect(body).toContain("eve remote connect --url https://agent-$&amp;.example");
expect(body).not.toContain("{{AGENT_NAME}}");
expect(body).not.toContain("{{DEPLOYMENT_URL}}");
});
@@ -68,7 +68,7 @@ describe("buildHomePageResponse", () => {
it("echoes the deployment origin into the `eve dev` hint", async () => {
const body = await buildResponseForRequest("https://my-agent.example.com/").text();
- expect(body).toContain("eve dev https://my-agent.example.com");
+ expect(body).toContain("eve remote connect --url https://my-agent.example.com");
expect(body).not.toContain("eve dev {{DEPLOYMENT_URL}}");
});
@@ -80,7 +80,7 @@ describe("buildHomePageResponse", () => {
"x-forwarded-proto": "https",
}).text();
- expect(body).toContain("eve dev https://agent.production.example");
+ expect(body).toContain("eve remote connect --url https://agent.production.example");
expect(body).not.toContain("0.0.0.0");
});
@@ -90,7 +90,7 @@ describe("buildHomePageResponse", () => {
"x-forwarded-proto": "https",
}).text();
- expect(body).toContain("eve dev https://public.example");
+ expect(body).toContain("eve remote connect --url https://public.example");
expect(body).not.toContain("internal-edge");
});
diff --git a/packages/eve/src/internal/nitro/routes/index.ts b/packages/eve/src/internal/nitro/routes/index.ts
index af26f9584..030667c93 100644
--- a/packages/eve/src/internal/nitro/routes/index.ts
+++ b/packages/eve/src/internal/nitro/routes/index.ts
@@ -368,7 +368,7 @@ export function buildHomePageResponse(
const html = buildHomePageHtml({
name: input.agentName,
statusDetail: "Agent is up and accepting messages.",
- terminalCommand: `eve dev ${deploymentUrl}`,
+ terminalCommand: `eve remote connect --url ${deploymentUrl}`,
});
return new Response(html, {
diff --git a/packages/eve/src/services/dev-client/vercel-auth-error.ts b/packages/eve/src/services/dev-client/vercel-auth-error.ts
index f901fc4ac..308de6bca 100644
--- a/packages/eve/src/services/dev-client/vercel-auth-error.ts
+++ b/packages/eve/src/services/dev-client/vercel-auth-error.ts
@@ -3,7 +3,7 @@
* "Authentication Required" challenge that fronts protected previews and
* production deployments.
*
- * When the eve development client (`eve dev --url …`) targets a deployment
+ * When the eve development client (`eve remote connect …`) targets a deployment
* that has Deployment Protection enabled and no valid bypass header is
* attached, Vercel returns an HTML SSO challenge instead of routing the
* request to the function. The raw HTML body is unhelpful in a CLI
diff --git a/packages/eve/src/setup/verified-remote-agent.ts b/packages/eve/src/setup/verified-remote-agent.ts
index 2acdf7702..47c7ead0a 100644
--- a/packages/eve/src/setup/verified-remote-agent.ts
+++ b/packages/eve/src/setup/verified-remote-agent.ts
@@ -36,6 +36,7 @@ const defaultDeps: InspectVerifiedRemoteAgentDeps = {
* before inspection is retried.
*/
export async function inspectVerifiedRemoteAgent(input: {
+ readonly headers?: Readonly<Record<string, string>>;
readonly serverUrl: string;
readonly workspaceRoot: string;
readonly prompter?: Prompter;
@@ -45,6 +46,7 @@ export async function inspectVerifiedRemoteAgent(input: {
}): Promise<VerifiedRemoteAgentInspection> {
const deps = { ...defaultDeps, ...input.deps };
const verified = await deps.resolveVerifiedRemoteDevelopmentClient({
+ headers: input.headers,
serverUrl: input.serverUrl,
signal: input.signal,
workspaceRoot: input.workspaceRoot,
@@ -75,6 +77,7 @@ export async function inspectVerifiedRemoteAgent(input: {
const options: ClientOptions = {
...verified.options,
auth: { vercelOidc: { token: authentication.resolveToken } },
+ headers: input.headers,
host: input.serverUrl,
redirect: "manual",
};
diff --git a/packages/eve/test/scenarios/dev-command-url.scenario.test.ts b/packages/eve/test/scenarios/dev-command-url.scenario.test.ts
index 331c9cebb..216dda21a 100644
--- a/packages/eve/test/scenarios/dev-command-url.scenario.test.ts
+++ b/packages/eve/test/scenarios/dev-command-url.scenario.test.ts
@@ -46,22 +46,15 @@ afterEach(() => {
vi.restoreAllMocks();
});
-describe("runCli dev URL support", () => {
- it.each([
- ["--url", ["dev", "--url", "https://example.com"]],
- ["-u", ["dev", "-u", "https://example.com"]],
- ["bare URL", ["dev", "https://example.com"]],
- ])("connects the default terminal UI with %s", async (_label, argv) => {
+describe("eve remote connect", () => {
+ it("connects the terminal UI without starting a local server", async () => {
setInteractiveTerminal();
- const logger = {
- error: vi.fn(),
- log: vi.fn(),
- };
+ const logger = { error: vi.fn(), log: vi.fn() };
const startHost = vi.fn();
const runDevelopmentTui = vi.fn(async () => {});
- await runCli(argv, logger, {
+ await runCli(["remote", "connect", "--url", "https://example.com"], logger, {
runDevelopmentTui,
startHost,
});
@@ -75,38 +68,16 @@ describe("runCli dev URL support", () => {
}),
}),
);
- const devOutput = logger.log.mock.calls.map(([message]) => String(message)).join("\n");
- expect(devOutput).toContain("↗ remote mode targeting");
- expect(devOutput).toContain("example.com");
- });
-
- it("rejects local server flags when using --url", async () => {
- const logger = {
- error: vi.fn(),
- log: vi.fn(),
- };
- const startHost = vi.fn();
- const runDevelopmentTui = vi.fn(async () => {});
-
- await expect(
- runCli(["dev", "--url", "https://example.com", "--port", "3000"], logger, {
- runDevelopmentTui,
- startHost,
- }),
- ).rejects.toThrow("The --port option cannot be used with --url.");
-
- expect(startHost).not.toHaveBeenCalled();
- expect(runDevelopmentTui).not.toHaveBeenCalled();
+ const output = logger.log.mock.calls.map(([message]) => String(message)).join("\n");
+ expect(output).toContain("↗ remote agent");
+ expect(output).toContain("example.com");
});
it("loads local development env files before connecting", async () => {
const appRoot = await createTemporaryRoot();
const canonicalAppRoot = await realpath(appRoot);
const previousCwd = process.cwd();
- const logger = {
- error: vi.fn(),
- log: vi.fn(),
- };
+ const logger = { error: vi.fn(), log: vi.fn() };
const startHost = vi.fn();
const runDevelopmentTui = vi.fn(async () => {});
@@ -116,7 +87,7 @@ describe("runCli dev URL support", () => {
process.chdir(appRoot);
try {
- await runCli(["dev", "--url", "https://example.com"], logger, {
+ await runCli(["remote", "connect", "--url", "https://example.com"], logger, {
runDevelopmentTui,
startHost,
});