@evident-ai/cli 3.1.1-dev.fe0815c → 3.2.1-dev.0fe02fb

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
@@ -111,15 +111,33 @@ Options:
111
111
  `7d`, `24h`). Setting this (or `--session-cleanup-max-count`) is what enables
112
112
  cleanup — there is no separate on/off flag. An invalid value is warned about
113
113
  and ignored, which can leave cleanup off if it was the only rule set. Env:
114
- `EVIDENT_SESSION_CLEANUP_MAX_AGE`.
114
+ `EVIDENT_SESSION_CLEANUP_MAX_AGE`. With cleanup off, a runner whose local
115
+ session store has grown large warns once at startup, on the runner's page,
116
+ naming this flag — turning cleanup on both stops the store growing further
117
+ and reclaims disk space already used by deleted sessions.
115
118
  - `--session-cleanup-max-count <n>` — Keep only the newest N OpenCode sessions
116
119
  by last activity, deleting the rest. Also enables cleanup; combines with
117
120
  `--session-cleanup-max-age` as OR. A session with a turn actively in progress
118
121
  is never deleted, regardless of either rule. Env:
119
122
  `EVIDENT_SESSION_CLEANUP_MAX_COUNT`.
123
+ - `--max-active-sessions <n>` — Cap how many sessions the runner will have
124
+ actively working at once (default: unlimited). Counts sessions with work in
125
+ flight and is per runner process, not global across runners. Once the cap is
126
+ reached, new work simply stays pending and is picked up on a later poll tick
127
+ — nothing is dropped or errored — but a follow-up into a conversation whose
128
+ session is already active is never blocked, since it costs no extra slot. A
129
+ legitimately long-running turn holds its slot for as long as it runs
130
+ (bounded only by the 6h absolute processing ceiling), so pick N with that in
131
+ mind. After a restart the runner re-adopts work it had already claimed,
132
+ which can briefly push the active count above the cap — that's deliberate;
133
+ the cap bounds new dispatch, not re-adoption. An invalid value (`0`,
134
+ negative, non-numeric) is warned about and falls back to unlimited. Env:
135
+ `EVIDENT_MAX_ACTIVE_SESSIONS`.
120
136
  - `--session-cleanup-interval <duration>` — How often the cleanup sweep runs
121
137
  (default: `1h`). An invalid value falls back to the default rather than
122
- disabling cleanup. Env: `EVIDENT_SESSION_CLEANUP_INTERVAL`.
138
+ disabling cleanup. Each sweep also reclaims disk space freed by the sessions
139
+ it deleted, so the store shrinks rather than merely stopping its growth. Env:
140
+ `EVIDENT_SESSION_CLEANUP_INTERVAL`.
123
141
  - `--enable-file-sync-to <dir>` — Let the runner write files Evident has queued
124
142
  for it into this directory — it collects them as part of the polling it
125
143
  already does, so they land a couple of seconds after you hand them over.
@@ -161,6 +179,8 @@ targets the **production** Evident platform by default.
161
179
  the flag wins if both are set.
162
180
  - `EVIDENT_SESSION_CLEANUP_MAX_COUNT` — Equivalent to
163
181
  `--session-cleanup-max-count`; the flag wins if both are set.
182
+ - `EVIDENT_MAX_ACTIVE_SESSIONS` — Equivalent to `--max-active-sessions`; the
183
+ flag wins if both are set.
164
184
  - `EVIDENT_SESSION_CLEANUP_INTERVAL` — Equivalent to
165
185
  `--session-cleanup-interval`; the flag wins if both are set.
166
186