@evident-ai/cli 3.4.1-dev.74a16b2 → 3.4.1-dev.7703679
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 +49 -1
- package/dist/index.js +5753 -1054
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -98,13 +98,48 @@ 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`. 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.
|
|
105
|
+
- `--litestream-config <path>` — Start `litestream replicate` for the OpenCode
|
|
106
|
+
session database with this config file. Use this for runner images that persist
|
|
107
|
+
the session database; the file is produced by `runner-synchroniser litestream-config`.
|
|
108
|
+
Omit it to disable replication.
|
|
109
|
+
- `--opencode-pid-file <path>` — Record the image-owned OpenCode process ID here and
|
|
110
|
+
leave that process running at shutdown for the runner image's lifecycle hooks to stop.
|
|
111
|
+
- `--litestream-pid-file <path>` — Record the image-owned Litestream process ID here and
|
|
112
|
+
leave that process running at shutdown for the runner image's lifecycle hooks to stop.
|
|
113
|
+
- `--session-db-no-replicate-marker <path>` — Read this marker before starting
|
|
114
|
+
Litestream; session-DB restore writes it when this boot's database is not safe to
|
|
115
|
+
replicate.
|
|
116
|
+
- `--restore-session-db` — Restore and verify the OpenCode session database before
|
|
117
|
+
starting OpenCode. Requires `--litestream-config` for the replica location and
|
|
118
|
+
`--session-db-no-replicate-marker` for give-up records. Omit it for a normal local
|
|
119
|
+
run.
|
|
120
|
+
- `--restore-runner-credentials` — Restore the hosted runner secret and persisted
|
|
121
|
+
credential stores before starting OpenCode. Intended for runner images; omit it
|
|
122
|
+
for a normal local run.
|
|
123
|
+
- `--opencode-config-overlay <path>` — Apply a runner-provided OpenCode config
|
|
124
|
+
before starting OpenCode. Relative paths are resolved from the working directory;
|
|
125
|
+
an existing `opencode.jsonc` is replaced before `opencode.json`.
|
|
126
|
+
- `--credential-sync-marker <path>` — Own the interval credential sync and write
|
|
127
|
+
this marker once the shutdown flush has finished, so the runner image's lifecycle
|
|
128
|
+
hooks can wait on it.
|
|
101
129
|
- `--claude-usage-reporting <mode>` — Whether to report the local Claude Code
|
|
102
130
|
subscription's rate-limit usage to Evident, so it shows on the runner page:
|
|
103
131
|
`auto` (default) reports it when a usable Claude Code login is found on this
|
|
104
132
|
machine and stays silent otherwise; `on` forces reporting and warns loudly (and
|
|
105
133
|
keeps retrying) if no usable login is found; `off` disables it entirely — no
|
|
106
134
|
Claude credential is ever read. An unrecognized value falls back to `auto` with
|
|
107
|
-
|
|
135
|
+
a warning. Env: `EVIDENT_CLAUDE_USAGE_REPORTING`.
|
|
136
|
+
- `--openai-usage-reporting <mode>` — Whether to report the ChatGPT plan usage
|
|
137
|
+
from an OpenCode login to Evident, so it shows on the runner page: `auto`
|
|
138
|
+
(default) reports it when a usable ChatGPT login is found and stays silent
|
|
139
|
+
otherwise; `on` forces reporting and warns loudly (and keeps retrying) if no
|
|
140
|
+
usable login is found; `off` disables it entirely — no OpenCode login is ever
|
|
141
|
+
read. An unrecognized value falls back to `auto` with a warning. Env:
|
|
142
|
+
`EVIDENT_OPENAI_USAGE_REPORTING`.
|
|
108
143
|
- `--no-resource-usage-reporting` — Don't report this machine's CPU
|
|
109
144
|
utilization, total and available memory, core count, disk space, and the
|
|
110
145
|
OpenCode session-store size to Evident, so it shows on the runner page. On
|
|
@@ -176,13 +211,23 @@ targets the **production** Evident platform by default.
|
|
|
176
211
|
- `EVIDENT_TUNNEL_URL` — Override the tunnel relay URL (equivalent to `--tunnel`).
|
|
177
212
|
- `EVIDENT_CLAUDE_USAGE_REPORTING` — Equivalent to `--claude-usage-reporting`; the
|
|
178
213
|
flag wins if both are set.
|
|
214
|
+
- `EVIDENT_OPENAI_USAGE_REPORTING` — Equivalent to `--openai-usage-reporting`; the
|
|
215
|
+
flag wins if both are set.
|
|
179
216
|
- `EVIDENT_RESOURCE_USAGE_REPORTING` — Equivalent to
|
|
180
217
|
`--no-resource-usage-reporting`; set it to `off` to disable. The flag wins
|
|
181
218
|
if both are set.
|
|
219
|
+
- `OPENCODE_LOG_LEVEL` — OpenCode log level when `evident run` starts an
|
|
220
|
+
image-owned process: `DEBUG`, `INFO`, `WARN`, or `ERROR` (default: `INFO`).
|
|
221
|
+
Invalid values fall back to `INFO`.
|
|
222
|
+
Under `--opencode-version v2`, the accepted set is
|
|
223
|
+
`all|trace|debug|info|warn|warning|error|fatal|none` and invalid values fall back to
|
|
224
|
+
`info`.
|
|
182
225
|
- `EVIDENT_LOG_LEVEL` — Equivalent to `--log-level`; the flag wins if both are
|
|
183
226
|
set, and `-v`/`--verbose` also outranks this env var.
|
|
184
227
|
- `EVIDENT_OPENCODE_START_TIMEOUT` — Equivalent to `--opencode-start-timeout`
|
|
185
228
|
(seconds); the flag wins if both are set.
|
|
229
|
+
- `EVIDENT_OPENCODE_VERSION` — Equivalent to `--opencode-version`; the flag wins
|
|
230
|
+
if both are set. Defaults to `v1`.
|
|
186
231
|
- `EVIDENT_SESSION_CLEANUP_MAX_AGE` — Equivalent to `--session-cleanup-max-age`;
|
|
187
232
|
the flag wins if both are set.
|
|
188
233
|
- `EVIDENT_SESSION_CLEANUP_MAX_COUNT` — Equivalent to
|
|
@@ -191,6 +236,9 @@ targets the **production** Evident platform by default.
|
|
|
191
236
|
flag wins if both are set.
|
|
192
237
|
- `EVIDENT_SESSION_CLEANUP_INTERVAL` — Equivalent to
|
|
193
238
|
`--session-cleanup-interval`; the flag wins if both are set.
|
|
239
|
+
- `EVIDENT_SESSION_DB_PROVENANCE_STATE` — Override the path where the CLI stores
|
|
240
|
+
session-database provenance state (default:
|
|
241
|
+
`~/.local/state/evident/session-db-provenance.json`).
|
|
194
242
|
|
|
195
243
|
Authentication precedence for `run`: `EVIDENT_RUNNER_KEY`/`EVIDENT_AGENT_KEY`
|
|
196
244
|
(tied; `EVIDENT_RUNNER_KEY` wins if both are set) → `EVIDENT_TOKEN` →
|