@evident-ai/cli 3.1.1-dev.dcb2f6d → 3.1.1-dev.dcd86e4

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 CHANGED
@@ -72,19 +72,21 @@ delivers any channel messages (e.g. Slack) to your local OpenCode.
72
72
 
73
73
  ```bash
74
74
  # Interactive: connect a specific runner
75
- evident run --agent <agent-id>
75
+ evident run --runner <runner-id>
76
76
 
77
77
  # Drive a single conversation
78
- evident run --agent <agent-id> --conversation <conversation-id>
78
+ evident run --runner <runner-id> --conversation <conversation-id>
79
79
 
80
80
  # CI: exit after 30s with no work
81
- evident run --agent <agent-id> --idle-timeout 30
81
+ evident run --runner <runner-id> --idle-timeout 30
82
82
  ```
83
83
 
84
84
  Options:
85
85
 
86
- - `-a, --agent [id]` — Runner ID to connect to. Optional when `EVIDENT_AGENT_KEY`
86
+ - `--runner [id]` — Runner ID to connect to. Optional when `EVIDENT_RUNNER_KEY`
87
87
  is set (the runner is then resolved automatically from the key).
88
+ - `-a, --agent [id]` — Deprecated alias for `--runner`. Still supported, but it
89
+ prints a deprecation warning; `--runner` wins if both are given.
88
90
  - `-p, --port <port>` — OpenCode port (default: `4096`).
89
91
  - `--log-level <level>` — Log verbosity: `debug | info | warn | error` (default:
90
92
  `info`). Env: `EVIDENT_LOG_LEVEL`.
@@ -92,6 +94,10 @@ Options:
92
94
  - `-c, --conversation <id>` — Process only this specific conversation.
93
95
  - `--idle-timeout <seconds>` — Exit after N seconds with no pending work (useful
94
96
  in CI to avoid polling indefinitely).
97
+ - `--opencode-start-timeout <seconds>` — How long to wait for OpenCode to become
98
+ healthy when the runner starts it itself (default: `180`). On expiry the runner
99
+ warns and comes online anyway rather than failing. Env:
100
+ `EVIDENT_OPENCODE_START_TIMEOUT` (seconds).
95
101
  - `--json` — Output in JSON format (forces non-interactive mode).
96
102
 
97
103
  ## Global flags
@@ -105,15 +111,20 @@ targets the **production** Evident platform by default.
105
111
 
106
112
  ## Environment variables
107
113
 
108
- - `EVIDENT_AGENT_KEY` — A runner key. When set, `evident run` authenticates as
109
- that runner and resolves the runner ID automatically, so `--agent` is not
110
- required. Ideal for CI/CD.
114
+ - `EVIDENT_RUNNER_KEY` — A runner key. When set, `evident run` authenticates as
115
+ that runner and resolves the runner ID automatically, so `--runner`/`--agent`
116
+ is not required. Ideal for CI/CD. Preferred name; wins over `EVIDENT_AGENT_KEY`
117
+ if both are set.
118
+ - `EVIDENT_AGENT_KEY` — Deprecated alias for `EVIDENT_RUNNER_KEY`. Still fully
119
+ supported, but `evident run` prints a deprecation warning when it is used
120
+ without `EVIDENT_RUNNER_KEY`.
111
121
  - `EVIDENT_TOKEN` — A user token used for authentication (alternative to a
112
122
  keychain login from `evident login`).
113
123
  - `EVIDENT_API_URL` — Override the API base URL (equivalent to `--endpoint`).
114
124
  - `EVIDENT_TUNNEL_URL` — Override the tunnel relay URL (equivalent to `--tunnel`).
115
125
 
116
- Authentication precedence for `run`: `EVIDENT_AGENT_KEY` → `EVIDENT_TOKEN` →
126
+ Authentication precedence for `run`: `EVIDENT_RUNNER_KEY`/`EVIDENT_AGENT_KEY`
127
+ (tied; `EVIDENT_RUNNER_KEY` wins if both are set) → `EVIDENT_TOKEN` →
117
128
  credentials stored by `evident login`. For the URL flags, an explicit
118
129
  `--endpoint` / `--tunnel` flag wins over the matching environment variable, which
119
130
  in turn overrides the production default.
@@ -137,19 +148,22 @@ ID.
137
148
  From your project directory, start the runner:
138
149
 
139
150
  ```bash
140
- evident run --agent <agent-id>
151
+ evident run --runner <runner-id>
141
152
  ```
142
153
 
143
154
  `evident run` ensures `opencode serve` is running on `127.0.0.1:4096` (starting
144
155
  it if needed) and connects the tunnel. Once connected, the web shows the runner as
145
156
  online and you can open its chat.
146
157
 
147
- For CI or unattended use, set `EVIDENT_AGENT_KEY` and omit `--agent`:
158
+ For CI or unattended use, set `EVIDENT_RUNNER_KEY` and omit `--runner`:
148
159
 
149
160
  ```bash
150
- EVIDENT_AGENT_KEY=<agent-key> evident run --idle-timeout 30
161
+ EVIDENT_RUNNER_KEY=<runner-key> evident run --idle-timeout 30
151
162
  ```
152
163
 
164
+ (`EVIDENT_AGENT_KEY` is a still-supported deprecated alias for
165
+ `EVIDENT_RUNNER_KEY`.)
166
+
153
167
  ## How it works
154
168
 
155
169
  ```
@@ -185,7 +199,7 @@ evident logout
185
199
  evident login
186
200
  ```
187
201
 
188
- In CI, make sure `EVIDENT_AGENT_KEY` (or `EVIDENT_TOKEN`) is set.
202
+ In CI, make sure `EVIDENT_RUNNER_KEY` (or `EVIDENT_TOKEN`) is set.
189
203
 
190
204
  ### OpenCode isn't reachable
191
205