@evident-ai/cli 3.4.1-dev.8b081ae → 3.4.1-dev.90d85e0
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 +31 -0
- package/dist/index.js +2408 -327
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -98,10 +98,36 @@ Options:
|
|
|
98
98
|
healthy when the runner starts it itself (default: `180`). On expiry the runner
|
|
99
99
|
warns and comes online anyway rather than failing. Env:
|
|
100
100
|
`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`. **`v2` currently only works
|
|
103
|
+
against an already-running, unauthenticated `opencode2` process** — auto-starting
|
|
104
|
+
one is hard-gated off pending
|
|
105
|
+
[#2075](https://github.com/sroze/evident/issues/2075) and errors immediately
|
|
106
|
+
otherwise.
|
|
101
107
|
- `--litestream-config <path>` — Start `litestream replicate` for the OpenCode
|
|
102
108
|
session database with this config file. Use this for runner images that persist
|
|
103
109
|
the session database; the file is produced by `runner-synchroniser litestream-config`.
|
|
104
110
|
Omit it to disable replication.
|
|
111
|
+
- `--opencode-pid-file <path>` — Record the image-owned OpenCode process ID here and
|
|
112
|
+
leave that process running at shutdown for the runner image's lifecycle hooks to stop.
|
|
113
|
+
- `--litestream-pid-file <path>` — Record the image-owned Litestream process ID here and
|
|
114
|
+
leave that process running at shutdown for the runner image's lifecycle hooks to stop.
|
|
115
|
+
- `--session-db-no-replicate-marker <path>` — Read this marker before starting
|
|
116
|
+
Litestream; session-DB restore writes it when this boot's database is not safe to
|
|
117
|
+
replicate.
|
|
118
|
+
- `--restore-session-db` — Restore and verify the OpenCode session database before
|
|
119
|
+
starting OpenCode. Requires `--litestream-config` for the replica location and
|
|
120
|
+
`--session-db-no-replicate-marker` for give-up records. Omit it for a normal local
|
|
121
|
+
run.
|
|
122
|
+
- `--restore-runner-credentials` — Restore the hosted runner secret and persisted
|
|
123
|
+
credential stores before starting OpenCode. Intended for runner images; omit it
|
|
124
|
+
for a normal local run.
|
|
125
|
+
- `--opencode-config-overlay <path>` — Apply a runner-provided OpenCode config
|
|
126
|
+
before starting OpenCode. Relative paths are resolved from the working directory;
|
|
127
|
+
an existing `opencode.jsonc` is replaced before `opencode.json`.
|
|
128
|
+
- `--credential-sync-marker <path>` — Own the interval credential sync and write
|
|
129
|
+
this marker once the shutdown flush has finished, so the runner image's lifecycle
|
|
130
|
+
hooks can wait on it.
|
|
105
131
|
- `--claude-usage-reporting <mode>` — Whether to report the local Claude Code
|
|
106
132
|
subscription's rate-limit usage to Evident, so it shows on the runner page:
|
|
107
133
|
`auto` (default) reports it when a usable Claude Code login is found on this
|
|
@@ -196,6 +222,8 @@ targets the **production** Evident platform by default.
|
|
|
196
222
|
set, and `-v`/`--verbose` also outranks this env var.
|
|
197
223
|
- `EVIDENT_OPENCODE_START_TIMEOUT` — Equivalent to `--opencode-start-timeout`
|
|
198
224
|
(seconds); the flag wins if both are set.
|
|
225
|
+
- `EVIDENT_OPENCODE_VERSION` — Equivalent to `--opencode-version`; the flag wins
|
|
226
|
+
if both are set. Defaults to `v1`.
|
|
199
227
|
- `EVIDENT_SESSION_CLEANUP_MAX_AGE` — Equivalent to `--session-cleanup-max-age`;
|
|
200
228
|
the flag wins if both are set.
|
|
201
229
|
- `EVIDENT_SESSION_CLEANUP_MAX_COUNT` — Equivalent to
|
|
@@ -204,6 +232,9 @@ targets the **production** Evident platform by default.
|
|
|
204
232
|
flag wins if both are set.
|
|
205
233
|
- `EVIDENT_SESSION_CLEANUP_INTERVAL` — Equivalent to
|
|
206
234
|
`--session-cleanup-interval`; the flag wins if both are set.
|
|
235
|
+
- `EVIDENT_SESSION_DB_PROVENANCE_STATE` — Override the path where the CLI stores
|
|
236
|
+
session-database provenance state (default:
|
|
237
|
+
`~/.local/state/evident/session-db-provenance.json`).
|
|
207
238
|
|
|
208
239
|
Authentication precedence for `run`: `EVIDENT_RUNNER_KEY`/`EVIDENT_AGENT_KEY`
|
|
209
240
|
(tied; `EVIDENT_RUNNER_KEY` wins if both are set) → `EVIDENT_TOKEN` →
|