@evident-ai/cli 3.6.1-dev.6dfa784 → 3.6.1-dev.6e5719c
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 +44 -7
- package/dist/index.js +4566 -2162
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -63,6 +63,21 @@ Show the currently authenticated user for the current endpoint.
|
|
|
63
63
|
evident whoami
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
+
### `evident status`
|
|
67
|
+
|
|
68
|
+
Check whether the configured credentials can reach Evident. It resolves
|
|
69
|
+
credentials the same way `evident run` does: `EVIDENT_RUNNER_KEY` /
|
|
70
|
+
`EVIDENT_AGENT_KEY` → `EVIDENT_TOKEN` → credentials stored by `evident login`,
|
|
71
|
+
then calls `GET /me` to confirm they are accepted.
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
evident status
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Options:
|
|
78
|
+
|
|
79
|
+
- `--json` — Output in JSON format.
|
|
80
|
+
|
|
66
81
|
### `evident run`
|
|
67
82
|
|
|
68
83
|
Connect to Evident and serve your runner. `evident run` authenticates, resolves
|
|
@@ -98,10 +113,13 @@ Options:
|
|
|
98
113
|
healthy when the runner starts it itself (default: `180`). On expiry the runner
|
|
99
114
|
warns and comes online anyway rather than failing. Env:
|
|
100
115
|
`EVIDENT_OPENCODE_START_TIMEOUT` (seconds).
|
|
101
|
-
- `--opencode-version <v1|v2>` —
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
116
|
+
- `--opencode-version <v1|v2|auto>` — `auto` (default) checks for a running server
|
|
117
|
+
on the selected port, then uses your installed binary if no server is identified.
|
|
118
|
+
Use `v1` or `v2` to skip server-protocol detection. If both protocol probes require
|
|
119
|
+
credentials, the CLI reports the ambiguity rather than guessing. Env:
|
|
120
|
+
`EVIDENT_OPENCODE_VERSION`. When `evident run` starts V2, it generates a server
|
|
121
|
+
password for its requests. If you started a released V2 that needs a password this
|
|
122
|
+
command does not have, the CLI identifies it but does not join it.
|
|
105
123
|
- `--litestream-config <path>` — Start `litestream replicate` for the OpenCode
|
|
106
124
|
session database with this config file. Use this for runner images that persist
|
|
107
125
|
the session database; the file is produced by `runner-synchroniser litestream-config`.
|
|
@@ -184,6 +202,12 @@ Options:
|
|
|
184
202
|
disabling cleanup. Each sweep also reclaims disk space freed by the sessions
|
|
185
203
|
it deleted, so the store shrinks rather than merely stopping its growth. Env:
|
|
186
204
|
`EVIDENT_SESSION_CLEANUP_INTERVAL`.
|
|
205
|
+
- `--session-archive` — Opt in to uploading full OpenCode transcripts as JSON
|
|
206
|
+
archives to the runner's durable-state bucket. Off by default. Env:
|
|
207
|
+
`EVIDENT_SESSION_ARCHIVE` (set to `on`, `true`, or `1`; the flag wins).
|
|
208
|
+
- `--session-archive-interval <duration>` — How often changed sessions are
|
|
209
|
+
archived (default: `1h`). An invalid value warns and falls back to `1h`. Env:
|
|
210
|
+
`EVIDENT_SESSION_ARCHIVE_INTERVAL` (the flag wins).
|
|
187
211
|
- `--enable-file-sync-to <dir>` — Let the runner write files Evident has queued
|
|
188
212
|
for it into this directory — it collects them as part of the polling it
|
|
189
213
|
already does, so they land a couple of seconds after you hand them over.
|
|
@@ -192,6 +216,12 @@ Options:
|
|
|
192
216
|
runner collects nothing and refuses any queued file, telling you why. Use
|
|
193
217
|
`--enable-file-sync-to ~/.claude` to connect a Claude subscription from the
|
|
194
218
|
web — see the website's Model providers doc.
|
|
219
|
+
- `--enable-file-sync-to-exact-file <path>` — Let the runner write files Evident has
|
|
220
|
+
queued for it to exactly this one file; it does not grant the directory holding it.
|
|
221
|
+
Repeatable (up to 16); each value must be absolute once a leading `~` is
|
|
222
|
+
expanded, and the filesystem root is rejected. Use
|
|
223
|
+
`--enable-file-sync-to-exact-file ~/.local/share/opencode/mcp-auth.json` for
|
|
224
|
+
OpenCode's MCP token store.
|
|
195
225
|
|
|
196
226
|
## Global flags
|
|
197
227
|
|
|
@@ -233,7 +263,7 @@ targets the **production** Evident platform by default.
|
|
|
233
263
|
- `EVIDENT_OPENCODE_START_TIMEOUT` — Equivalent to `--opencode-start-timeout`
|
|
234
264
|
(seconds); the flag wins if both are set.
|
|
235
265
|
- `EVIDENT_OPENCODE_VERSION` — Equivalent to `--opencode-version`; the flag wins
|
|
236
|
-
if both are set. Defaults to `
|
|
266
|
+
if both are set. Accepts `v1`, `v2`, or `auto`. Defaults to `auto`.
|
|
237
267
|
- `EVIDENT_SESSION_CLEANUP_MAX_AGE` — Equivalent to `--session-cleanup-max-age`;
|
|
238
268
|
the flag wins if both are set.
|
|
239
269
|
- `EVIDENT_SESSION_CLEANUP_MAX_COUNT` — Equivalent to
|
|
@@ -242,6 +272,14 @@ targets the **production** Evident platform by default.
|
|
|
242
272
|
flag wins if both are set.
|
|
243
273
|
- `EVIDENT_SESSION_CLEANUP_INTERVAL` — Equivalent to
|
|
244
274
|
`--session-cleanup-interval`; the flag wins if both are set.
|
|
275
|
+
- `EVIDENT_SESSION_ARCHIVE` — Enable or disable full transcript archives. Off by
|
|
276
|
+
default; accepted values are `on`/`true`/`1` and `off`/`false`/`0`. The
|
|
277
|
+
`--session-archive` flag wins if both are set.
|
|
278
|
+
- `EVIDENT_SESSION_ARCHIVE_INTERVAL` — Equivalent to
|
|
279
|
+
`--session-archive-interval`; default: `1h`. The flag wins if both are set.
|
|
280
|
+
- `EVIDENT_SESSION_ARCHIVE_FLUSH_MS` — Graceful-shutdown archive flush budget in
|
|
281
|
+
milliseconds (default: `2000`). The flush is best-effort and may leave changed
|
|
282
|
+
sessions for a later hourly run.
|
|
245
283
|
- `EVIDENT_SESSION_DB_PROVENANCE_STATE` — Override the path where the CLI stores
|
|
246
284
|
session-database provenance state (default:
|
|
247
285
|
`~/.local/state/evident/session-db-provenance.json`).
|
|
@@ -263,8 +301,7 @@ evident login
|
|
|
263
301
|
|
|
264
302
|
### 2. Create a runner
|
|
265
303
|
|
|
266
|
-
In the Evident web app, create a runner
|
|
267
|
-
ID.
|
|
304
|
+
In the Evident web app, create a runner. Note its runner ID.
|
|
268
305
|
|
|
269
306
|
### 3. Run it on your machine
|
|
270
307
|
|