@evident-ai/cli 3.4.1-dev.8fa4d29 → 3.4.1-dev.9c22b93
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 +34 -1
- package/dist/index.js +2116 -157
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -98,13 +98,41 @@ 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
|
+
- `--litestream-config <path>` — Start `litestream replicate` for the OpenCode
|
|
102
|
+
session database with this config file. Use this for runner images that persist
|
|
103
|
+
the session database; the file is produced by `runner-synchroniser litestream-config`.
|
|
104
|
+
Omit it to disable replication.
|
|
105
|
+
- `--opencode-pid-file <path>` — Record the image-owned OpenCode process ID here and
|
|
106
|
+
leave that process running at shutdown for the runner image's lifecycle hooks to stop.
|
|
107
|
+
- `--litestream-pid-file <path>` — Record the image-owned Litestream process ID here and
|
|
108
|
+
leave that process running at shutdown for the runner image's lifecycle hooks to stop.
|
|
109
|
+
- `--session-db-no-replicate-marker <path>` — Read this marker before starting
|
|
110
|
+
Litestream; session-DB restore writes it when this boot's database is not safe to
|
|
111
|
+
replicate.
|
|
112
|
+
- `--restore-session-db` — Restore and verify the OpenCode session database before
|
|
113
|
+
starting OpenCode. Requires `--litestream-config` for the replica location and
|
|
114
|
+
`--session-db-no-replicate-marker` for give-up records. Omit it for a normal local
|
|
115
|
+
run.
|
|
116
|
+
- `--restore-runner-credentials` — Restore the hosted runner secret and persisted
|
|
117
|
+
credential stores before starting OpenCode. Intended for runner images; omit it
|
|
118
|
+
for a normal local run.
|
|
119
|
+
- `--opencode-config-overlay <path>` — Apply a runner-provided OpenCode config
|
|
120
|
+
before starting OpenCode. Relative paths are resolved from the working directory;
|
|
121
|
+
an existing `opencode.jsonc` is replaced before `opencode.json`.
|
|
101
122
|
- `--claude-usage-reporting <mode>` — Whether to report the local Claude Code
|
|
102
123
|
subscription's rate-limit usage to Evident, so it shows on the runner page:
|
|
103
124
|
`auto` (default) reports it when a usable Claude Code login is found on this
|
|
104
125
|
machine and stays silent otherwise; `on` forces reporting and warns loudly (and
|
|
105
126
|
keeps retrying) if no usable login is found; `off` disables it entirely — no
|
|
106
127
|
Claude credential is ever read. An unrecognized value falls back to `auto` with
|
|
107
|
-
|
|
128
|
+
a warning. Env: `EVIDENT_CLAUDE_USAGE_REPORTING`.
|
|
129
|
+
- `--openai-usage-reporting <mode>` — Whether to report the ChatGPT plan usage
|
|
130
|
+
from an OpenCode login to Evident, so it shows on the runner page: `auto`
|
|
131
|
+
(default) reports it when a usable ChatGPT login is found and stays silent
|
|
132
|
+
otherwise; `on` forces reporting and warns loudly (and keeps retrying) if no
|
|
133
|
+
usable login is found; `off` disables it entirely — no OpenCode login is ever
|
|
134
|
+
read. An unrecognized value falls back to `auto` with a warning. Env:
|
|
135
|
+
`EVIDENT_OPENAI_USAGE_REPORTING`.
|
|
108
136
|
- `--no-resource-usage-reporting` — Don't report this machine's CPU
|
|
109
137
|
utilization, total and available memory, core count, disk space, and the
|
|
110
138
|
OpenCode session-store size to Evident, so it shows on the runner page. On
|
|
@@ -176,6 +204,8 @@ targets the **production** Evident platform by default.
|
|
|
176
204
|
- `EVIDENT_TUNNEL_URL` — Override the tunnel relay URL (equivalent to `--tunnel`).
|
|
177
205
|
- `EVIDENT_CLAUDE_USAGE_REPORTING` — Equivalent to `--claude-usage-reporting`; the
|
|
178
206
|
flag wins if both are set.
|
|
207
|
+
- `EVIDENT_OPENAI_USAGE_REPORTING` — Equivalent to `--openai-usage-reporting`; the
|
|
208
|
+
flag wins if both are set.
|
|
179
209
|
- `EVIDENT_RESOURCE_USAGE_REPORTING` — Equivalent to
|
|
180
210
|
`--no-resource-usage-reporting`; set it to `off` to disable. The flag wins
|
|
181
211
|
if both are set.
|
|
@@ -191,6 +221,9 @@ targets the **production** Evident platform by default.
|
|
|
191
221
|
flag wins if both are set.
|
|
192
222
|
- `EVIDENT_SESSION_CLEANUP_INTERVAL` — Equivalent to
|
|
193
223
|
`--session-cleanup-interval`; the flag wins if both are set.
|
|
224
|
+
- `EVIDENT_SESSION_DB_PROVENANCE_STATE` — Override the path where the CLI stores
|
|
225
|
+
session-database provenance state (default:
|
|
226
|
+
`~/.local/state/evident/session-db-provenance.json`).
|
|
194
227
|
|
|
195
228
|
Authentication precedence for `run`: `EVIDENT_RUNNER_KEY`/`EVIDENT_AGENT_KEY`
|
|
196
229
|
(tied; `EVIDENT_RUNNER_KEY` wins if both are set) → `EVIDENT_TOKEN` →
|