@evident-ai/cli 3.6.1-dev.7729485 → 3.6.1-dev.795576a
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 +71 -7
- package/dist/index.js +5723 -2226
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -63,6 +63,38 @@ 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
|
+
|
|
66
98
|
### `evident run`
|
|
67
99
|
|
|
68
100
|
Connect to Evident and serve your runner. `evident run` authenticates, resolves
|
|
@@ -98,10 +130,13 @@ Options:
|
|
|
98
130
|
healthy when the runner starts it itself (default: `180`). On expiry the runner
|
|
99
131
|
warns and comes online anyway rather than failing. Env:
|
|
100
132
|
`EVIDENT_OPENCODE_START_TIMEOUT` (seconds).
|
|
101
|
-
- `--opencode-version <v1|v2>` —
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
133
|
+
- `--opencode-version <v1|v2|auto>` — `auto` (default) checks for a running server
|
|
134
|
+
on the selected port, then uses your installed binary if no server is identified.
|
|
135
|
+
Use `v1` or `v2` to skip server-protocol detection. If both protocol probes require
|
|
136
|
+
credentials, the CLI reports the ambiguity rather than guessing. Env:
|
|
137
|
+
`EVIDENT_OPENCODE_VERSION`. When `evident run` starts V2, it generates a server
|
|
138
|
+
password for its requests. If you started a released V2 that needs a password this
|
|
139
|
+
command does not have, the CLI identifies it but does not join it.
|
|
105
140
|
- `--litestream-config <path>` — Start `litestream replicate` for the OpenCode
|
|
106
141
|
session database with this config file. Use this for runner images that persist
|
|
107
142
|
the session database; the file is produced by `runner-synchroniser litestream-config`.
|
|
@@ -125,6 +160,10 @@ Options:
|
|
|
125
160
|
- `--opencode-config-overlay <path>` — Apply a runner-provided OpenCode config
|
|
126
161
|
before starting OpenCode. Relative paths are resolved from the working directory;
|
|
127
162
|
an existing `opencode.jsonc` is replaced before `opencode.json`.
|
|
163
|
+
- `--auto-configure-credentials-proxy` — Install Evident's generated `evident-*`
|
|
164
|
+
OpenCode provider entries for the runner's credential pool. This is off by default;
|
|
165
|
+
without it, the CLI only delivers `EVIDENT_PROXY_TOKEN` and leaves provider
|
|
166
|
+
configuration to you.
|
|
128
167
|
- `--credential-sync-marker <path>` — Own the interval credential sync and write
|
|
129
168
|
this marker once the shutdown flush has finished, so the runner image's lifecycle
|
|
130
169
|
hooks can wait on it.
|
|
@@ -180,6 +219,12 @@ Options:
|
|
|
180
219
|
disabling cleanup. Each sweep also reclaims disk space freed by the sessions
|
|
181
220
|
it deleted, so the store shrinks rather than merely stopping its growth. Env:
|
|
182
221
|
`EVIDENT_SESSION_CLEANUP_INTERVAL`.
|
|
222
|
+
- `--session-archive` — Opt in to uploading full OpenCode transcripts as JSON
|
|
223
|
+
archives to the runner's durable-state bucket. Off by default. Env:
|
|
224
|
+
`EVIDENT_SESSION_ARCHIVE` (set to `on`, `true`, or `1`; the flag wins).
|
|
225
|
+
- `--session-archive-interval <duration>` — How often changed sessions are
|
|
226
|
+
archived (default: `1h`). An invalid value warns and falls back to `1h`. Env:
|
|
227
|
+
`EVIDENT_SESSION_ARCHIVE_INTERVAL` (the flag wins).
|
|
183
228
|
- `--enable-file-sync-to <dir>` — Let the runner write files Evident has queued
|
|
184
229
|
for it into this directory — it collects them as part of the polling it
|
|
185
230
|
already does, so they land a couple of seconds after you hand them over.
|
|
@@ -188,6 +233,12 @@ Options:
|
|
|
188
233
|
runner collects nothing and refuses any queued file, telling you why. Use
|
|
189
234
|
`--enable-file-sync-to ~/.claude` to connect a Claude subscription from the
|
|
190
235
|
web — see the website's Model providers doc.
|
|
236
|
+
- `--enable-file-sync-to-exact-file <path>` — Let the runner write files Evident has
|
|
237
|
+
queued for it to exactly this one file; it does not grant the directory holding it.
|
|
238
|
+
Repeatable (up to 16); each value must be absolute once a leading `~` is
|
|
239
|
+
expanded, and the filesystem root is rejected. Use
|
|
240
|
+
`--enable-file-sync-to-exact-file ~/.local/share/opencode/mcp-auth.json` for
|
|
241
|
+
OpenCode's MCP token store.
|
|
191
242
|
|
|
192
243
|
## Global flags
|
|
193
244
|
|
|
@@ -197,6 +248,9 @@ targets the **production** Evident platform by default.
|
|
|
197
248
|
- `--endpoint <url>` — Evident REST API base URL (e.g. `http://localhost:3001`).
|
|
198
249
|
A trailing `/v1` is optional — it's added automatically.
|
|
199
250
|
- `--tunnel <url>` — Tunnel WebSocket URL (e.g. `ws://localhost:8787`).
|
|
251
|
+
- `--team <id>` — Evident team ID to act in when your account belongs to more than
|
|
252
|
+
one team. List available teams with `evident teams`. The selection is not stored
|
|
253
|
+
by the CLI. Env: `EVIDENT_TEAM`.
|
|
200
254
|
|
|
201
255
|
## Environment variables
|
|
202
256
|
|
|
@@ -211,6 +265,9 @@ targets the **production** Evident platform by default.
|
|
|
211
265
|
keychain login from `evident login`).
|
|
212
266
|
- `EVIDENT_API_URL` — Override the API base URL (equivalent to `--endpoint`).
|
|
213
267
|
- `EVIDENT_TUNNEL_URL` — Override the tunnel relay URL (equivalent to `--tunnel`).
|
|
268
|
+
- `EVIDENT_TEAM` — Select the Evident team ID for team-scoped requests (equivalent
|
|
269
|
+
to `--team`). List available teams with `evident teams`. The selection is not
|
|
270
|
+
stored by the CLI.
|
|
214
271
|
- `EVIDENT_CLAUDE_USAGE_REPORTING` — Equivalent to `--claude-usage-reporting`; the
|
|
215
272
|
flag wins if both are set.
|
|
216
273
|
- `EVIDENT_OPENAI_USAGE_REPORTING` — Equivalent to `--openai-usage-reporting`; the
|
|
@@ -229,7 +286,7 @@ targets the **production** Evident platform by default.
|
|
|
229
286
|
- `EVIDENT_OPENCODE_START_TIMEOUT` — Equivalent to `--opencode-start-timeout`
|
|
230
287
|
(seconds); the flag wins if both are set.
|
|
231
288
|
- `EVIDENT_OPENCODE_VERSION` — Equivalent to `--opencode-version`; the flag wins
|
|
232
|
-
if both are set. Defaults to `
|
|
289
|
+
if both are set. Accepts `v1`, `v2`, or `auto`. Defaults to `auto`.
|
|
233
290
|
- `EVIDENT_SESSION_CLEANUP_MAX_AGE` — Equivalent to `--session-cleanup-max-age`;
|
|
234
291
|
the flag wins if both are set.
|
|
235
292
|
- `EVIDENT_SESSION_CLEANUP_MAX_COUNT` — Equivalent to
|
|
@@ -238,6 +295,14 @@ targets the **production** Evident platform by default.
|
|
|
238
295
|
flag wins if both are set.
|
|
239
296
|
- `EVIDENT_SESSION_CLEANUP_INTERVAL` — Equivalent to
|
|
240
297
|
`--session-cleanup-interval`; the flag wins if both are set.
|
|
298
|
+
- `EVIDENT_SESSION_ARCHIVE` — Enable or disable full transcript archives. Off by
|
|
299
|
+
default; accepted values are `on`/`true`/`1` and `off`/`false`/`0`. The
|
|
300
|
+
`--session-archive` flag wins if both are set.
|
|
301
|
+
- `EVIDENT_SESSION_ARCHIVE_INTERVAL` — Equivalent to
|
|
302
|
+
`--session-archive-interval`; default: `1h`. The flag wins if both are set.
|
|
303
|
+
- `EVIDENT_SESSION_ARCHIVE_FLUSH_MS` — Graceful-shutdown archive flush budget in
|
|
304
|
+
milliseconds (default: `2000`). The flush is best-effort and may leave changed
|
|
305
|
+
sessions for a later hourly run.
|
|
241
306
|
- `EVIDENT_SESSION_DB_PROVENANCE_STATE` — Override the path where the CLI stores
|
|
242
307
|
session-database provenance state (default:
|
|
243
308
|
`~/.local/state/evident/session-db-provenance.json`).
|
|
@@ -259,8 +324,7 @@ evident login
|
|
|
259
324
|
|
|
260
325
|
### 2. Create a runner
|
|
261
326
|
|
|
262
|
-
In the Evident web app, create a runner
|
|
263
|
-
ID.
|
|
327
|
+
In the Evident web app, create a runner. Note its runner ID.
|
|
264
328
|
|
|
265
329
|
### 3. Run it on your machine
|
|
266
330
|
|