@evident-ai/cli 3.6.1-dev.69de1a0 → 3.6.1-dev.6da6fb2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -63,6 +63,54 @@ Show the currently authenticated user for the current endpoint.
63
63
  evident whoami
64
64
  ```
65
65
 
66
+ ### `evident teams`
67
+
68
+ List the teams available to the authenticated user. Each line contains a team's
69
+ ID and name. A selected team is prefixed with `*`; the command does not print
70
+ team roles. With no teams, it prints `No teams found for this account.` With
71
+ several teams and no selection, it prints:
72
+ `Choose a team with --team <id> or set EVIDENT_TEAM.`
73
+
74
+ ```bash
75
+ evident teams
76
+ ```
77
+
78
+ When you belong to more than one team, choose one for team-scoped requests with
79
+ the global `--team <id>` flag or `EVIDENT_TEAM`. The CLI does not store the
80
+ selection. A specific runner or proxy uses the team that owns it and does not
81
+ require a selection.
82
+
83
+ ### `evident status`
84
+
85
+ Check whether the configured credentials can reach Evident. It resolves
86
+ credentials the same way `evident run` does: `EVIDENT_RUNNER_KEY` /
87
+ `EVIDENT_AGENT_KEY` → `EVIDENT_TOKEN` → credentials stored by `evident login`,
88
+ then calls `GET /me` to confirm they are accepted.
89
+
90
+ ```bash
91
+ evident status
92
+ ```
93
+
94
+ Options:
95
+
96
+ - `--json` — Output in JSON format.
97
+
98
+ ### `evident mcp authorize <proxy-id> <connection-id>`
99
+
100
+ Authorize a local MCP connection with your Evident user login. The CLI opens the
101
+ provider in your browser and waits for it to return to this computer:
102
+
103
+ ```bash
104
+ evident mcp authorize <proxy-id> <connection-id>
105
+ ```
106
+
107
+ The callback page shows when the provider response arrives, while Evident finishes
108
+ authorization, and confirms the connection only after Evident reports success. If
109
+ authorization succeeds while tools are still being prepared, the page says so. If
110
+ completion cannot be confirmed, check the connection in Evident before retrying.
111
+ Use `--no-browser` to open the printed authorization URL yourself, or `--json` to
112
+ keep the final result on standard output while progress is written to standard error.
113
+
66
114
  ### `evident run`
67
115
 
68
116
  Connect to Evident and serve your runner. `evident run` authenticates, resolves
@@ -98,10 +146,13 @@ Options:
98
146
  healthy when the runner starts it itself (default: `180`). On expiry the runner
99
147
  warns and comes online anyway rather than failing. Env:
100
148
  `EVIDENT_OPENCODE_START_TIMEOUT` (seconds).
101
- - `--opencode-version <v1|v2>` — Which OpenCode major version to launch: `v1` or
102
- `v2` (default: `v1`). Env: `EVIDENT_OPENCODE_VERSION`. When selected, the CLI
103
- starts or attaches to `opencode2` and authenticates its local requests with the
104
- generated server credential when it starts the process. V1 remains the default.
149
+ - `--opencode-version <v1|v2|auto>` — `auto` (default) checks for a running server
150
+ on the selected port, then uses your installed binary if no server is identified.
151
+ Use `v1` or `v2` to skip server-protocol detection. If both protocol probes require
152
+ credentials, the CLI reports the ambiguity rather than guessing. Env:
153
+ `EVIDENT_OPENCODE_VERSION`. When `evident run` starts V2, it generates a server
154
+ password for its requests. If you started a released V2 that needs a password this
155
+ command does not have, the CLI identifies it but does not join it.
105
156
  - `--litestream-config <path>` — Start `litestream replicate` for the OpenCode
106
157
  session database with this config file. Use this for runner images that persist
107
158
  the session database; the file is produced by `runner-synchroniser litestream-config`.
@@ -125,6 +176,10 @@ Options:
125
176
  - `--opencode-config-overlay <path>` — Apply a runner-provided OpenCode config
126
177
  before starting OpenCode. Relative paths are resolved from the working directory;
127
178
  an existing `opencode.jsonc` is replaced before `opencode.json`.
179
+ - `--auto-configure-credentials-proxy` — Install Evident's generated `evident-*`
180
+ OpenCode provider entries for the runner's credential pool. This is off by default;
181
+ without it, the CLI only delivers `EVIDENT_PROXY_TOKEN` and leaves provider
182
+ configuration to you.
128
183
  - `--credential-sync-marker <path>` — Own the interval credential sync and write
129
184
  this marker once the shutdown flush has finished, so the runner image's lifecycle
130
185
  hooks can wait on it.
@@ -180,6 +235,12 @@ Options:
180
235
  disabling cleanup. Each sweep also reclaims disk space freed by the sessions
181
236
  it deleted, so the store shrinks rather than merely stopping its growth. Env:
182
237
  `EVIDENT_SESSION_CLEANUP_INTERVAL`.
238
+ - `--session-archive` — Opt in to uploading full OpenCode transcripts as JSON
239
+ archives to the runner's durable-state bucket. Off by default. Env:
240
+ `EVIDENT_SESSION_ARCHIVE` (set to `on`, `true`, or `1`; the flag wins).
241
+ - `--session-archive-interval <duration>` — How often changed sessions are
242
+ archived (default: `1h`). An invalid value warns and falls back to `1h`. Env:
243
+ `EVIDENT_SESSION_ARCHIVE_INTERVAL` (the flag wins).
183
244
  - `--enable-file-sync-to <dir>` — Let the runner write files Evident has queued
184
245
  for it into this directory — it collects them as part of the polling it
185
246
  already does, so they land a couple of seconds after you hand them over.
@@ -188,6 +249,12 @@ Options:
188
249
  runner collects nothing and refuses any queued file, telling you why. Use
189
250
  `--enable-file-sync-to ~/.claude` to connect a Claude subscription from the
190
251
  web — see the website's Model providers doc.
252
+ - `--enable-file-sync-to-exact-file <path>` — Let the runner write files Evident has
253
+ queued for it to exactly this one file; it does not grant the directory holding it.
254
+ Repeatable (up to 16); each value must be absolute once a leading `~` is
255
+ expanded, and the filesystem root is rejected. Use
256
+ `--enable-file-sync-to-exact-file ~/.local/share/opencode/mcp-auth.json` for
257
+ OpenCode's MCP token store.
191
258
 
192
259
  ## Global flags
193
260
 
@@ -197,6 +264,9 @@ targets the **production** Evident platform by default.
197
264
  - `--endpoint <url>` — Evident REST API base URL (e.g. `http://localhost:3001`).
198
265
  A trailing `/v1` is optional — it's added automatically.
199
266
  - `--tunnel <url>` — Tunnel WebSocket URL (e.g. `ws://localhost:8787`).
267
+ - `--team <id>` — Evident team ID to act in when your account belongs to more than
268
+ one team. List available teams with `evident teams`. The selection is not stored
269
+ by the CLI. Env: `EVIDENT_TEAM`.
200
270
 
201
271
  ## Environment variables
202
272
 
@@ -211,6 +281,9 @@ targets the **production** Evident platform by default.
211
281
  keychain login from `evident login`).
212
282
  - `EVIDENT_API_URL` — Override the API base URL (equivalent to `--endpoint`).
213
283
  - `EVIDENT_TUNNEL_URL` — Override the tunnel relay URL (equivalent to `--tunnel`).
284
+ - `EVIDENT_TEAM` — Select the Evident team ID for team-scoped requests (equivalent
285
+ to `--team`). List available teams with `evident teams`. The selection is not
286
+ stored by the CLI.
214
287
  - `EVIDENT_CLAUDE_USAGE_REPORTING` — Equivalent to `--claude-usage-reporting`; the
215
288
  flag wins if both are set.
216
289
  - `EVIDENT_OPENAI_USAGE_REPORTING` — Equivalent to `--openai-usage-reporting`; the
@@ -229,7 +302,7 @@ targets the **production** Evident platform by default.
229
302
  - `EVIDENT_OPENCODE_START_TIMEOUT` — Equivalent to `--opencode-start-timeout`
230
303
  (seconds); the flag wins if both are set.
231
304
  - `EVIDENT_OPENCODE_VERSION` — Equivalent to `--opencode-version`; the flag wins
232
- if both are set. Defaults to `v1`.
305
+ if both are set. Accepts `v1`, `v2`, or `auto`. Defaults to `auto`.
233
306
  - `EVIDENT_SESSION_CLEANUP_MAX_AGE` — Equivalent to `--session-cleanup-max-age`;
234
307
  the flag wins if both are set.
235
308
  - `EVIDENT_SESSION_CLEANUP_MAX_COUNT` — Equivalent to
@@ -238,6 +311,14 @@ targets the **production** Evident platform by default.
238
311
  flag wins if both are set.
239
312
  - `EVIDENT_SESSION_CLEANUP_INTERVAL` — Equivalent to
240
313
  `--session-cleanup-interval`; the flag wins if both are set.
314
+ - `EVIDENT_SESSION_ARCHIVE` — Enable or disable full transcript archives. Off by
315
+ default; accepted values are `on`/`true`/`1` and `off`/`false`/`0`. The
316
+ `--session-archive` flag wins if both are set.
317
+ - `EVIDENT_SESSION_ARCHIVE_INTERVAL` — Equivalent to
318
+ `--session-archive-interval`; default: `1h`. The flag wins if both are set.
319
+ - `EVIDENT_SESSION_ARCHIVE_FLUSH_MS` — Graceful-shutdown archive flush budget in
320
+ milliseconds (default: `2000`). The flush is best-effort and may leave changed
321
+ sessions for a later hourly run.
241
322
  - `EVIDENT_SESSION_DB_PROVENANCE_STATE` — Override the path where the CLI stores
242
323
  session-database provenance state (default:
243
324
  `~/.local/state/evident/session-db-provenance.json`).
@@ -259,8 +340,7 @@ evident login
259
340
 
260
341
  ### 2. Create a runner
261
342
 
262
- In the Evident web app, create a runner (it runs in local mode). Note its runner
263
- ID.
343
+ In the Evident web app, create a runner. Note its runner ID.
264
344
 
265
345
  ### 3. Run it on your machine
266
346