@evident-ai/cli 3.6.1-dev.bbdfbd6 → 3.6.1-dev.c4b402e
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 +83 -7
- package/dist/index.js +7045 -3246
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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>` —
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
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`.
|
|
@@ -184,6 +235,12 @@ Options:
|
|
|
184
235
|
disabling cleanup. Each sweep also reclaims disk space freed by the sessions
|
|
185
236
|
it deleted, so the store shrinks rather than merely stopping its growth. Env:
|
|
186
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).
|
|
187
244
|
- `--enable-file-sync-to <dir>` — Let the runner write files Evident has queued
|
|
188
245
|
for it into this directory — it collects them as part of the polling it
|
|
189
246
|
already does, so they land a couple of seconds after you hand them over.
|
|
@@ -192,6 +249,12 @@ Options:
|
|
|
192
249
|
runner collects nothing and refuses any queued file, telling you why. Use
|
|
193
250
|
`--enable-file-sync-to ~/.claude` to connect a Claude subscription from the
|
|
194
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.
|
|
195
258
|
|
|
196
259
|
## Global flags
|
|
197
260
|
|
|
@@ -201,6 +264,9 @@ targets the **production** Evident platform by default.
|
|
|
201
264
|
- `--endpoint <url>` — Evident REST API base URL (e.g. `http://localhost:3001`).
|
|
202
265
|
A trailing `/v1` is optional — it's added automatically.
|
|
203
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`.
|
|
204
270
|
|
|
205
271
|
## Environment variables
|
|
206
272
|
|
|
@@ -215,6 +281,9 @@ targets the **production** Evident platform by default.
|
|
|
215
281
|
keychain login from `evident login`).
|
|
216
282
|
- `EVIDENT_API_URL` — Override the API base URL (equivalent to `--endpoint`).
|
|
217
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.
|
|
218
287
|
- `EVIDENT_CLAUDE_USAGE_REPORTING` — Equivalent to `--claude-usage-reporting`; the
|
|
219
288
|
flag wins if both are set.
|
|
220
289
|
- `EVIDENT_OPENAI_USAGE_REPORTING` — Equivalent to `--openai-usage-reporting`; the
|
|
@@ -233,7 +302,7 @@ targets the **production** Evident platform by default.
|
|
|
233
302
|
- `EVIDENT_OPENCODE_START_TIMEOUT` — Equivalent to `--opencode-start-timeout`
|
|
234
303
|
(seconds); the flag wins if both are set.
|
|
235
304
|
- `EVIDENT_OPENCODE_VERSION` — Equivalent to `--opencode-version`; the flag wins
|
|
236
|
-
if both are set. Defaults to `
|
|
305
|
+
if both are set. Accepts `v1`, `v2`, or `auto`. Defaults to `auto`.
|
|
237
306
|
- `EVIDENT_SESSION_CLEANUP_MAX_AGE` — Equivalent to `--session-cleanup-max-age`;
|
|
238
307
|
the flag wins if both are set.
|
|
239
308
|
- `EVIDENT_SESSION_CLEANUP_MAX_COUNT` — Equivalent to
|
|
@@ -242,6 +311,14 @@ targets the **production** Evident platform by default.
|
|
|
242
311
|
flag wins if both are set.
|
|
243
312
|
- `EVIDENT_SESSION_CLEANUP_INTERVAL` — Equivalent to
|
|
244
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.
|
|
245
322
|
- `EVIDENT_SESSION_DB_PROVENANCE_STATE` — Override the path where the CLI stores
|
|
246
323
|
session-database provenance state (default:
|
|
247
324
|
`~/.local/state/evident/session-db-provenance.json`).
|
|
@@ -263,8 +340,7 @@ evident login
|
|
|
263
340
|
|
|
264
341
|
### 2. Create a runner
|
|
265
342
|
|
|
266
|
-
In the Evident web app, create a runner
|
|
267
|
-
ID.
|
|
343
|
+
In the Evident web app, create a runner. Note its runner ID.
|
|
268
344
|
|
|
269
345
|
### 3. Run it on your machine
|
|
270
346
|
|