Commit graph

11 commits

Author SHA1 Message Date
Dax Raad
11bf8d8a42 refactor(cli): simplify updater, remove cache and confirmation
- Remove the 24h disk cache (State, readState/writeState, checkInterval)
  that served stale latest versions within the TTL window
- Remove file lock (Flock) and confirmation prompt (Prompt/Terminal)
- Every check now hits the npm registry directly
- Updates always auto-install on any version mismatch within the same
  major, including rollbacks where the registry version is lower
- Drop the interactive option from check() and the confirm/declined/
  dismissed action concepts
2026-06-27 20:52:03 -04:00
Dax Raad
b458dd8c63 feat(cli): log updater check decisions
Add Effect.logInfo at every previously-silent path in the updater
check so each run is observable in opencode.log: skip reasons
(local install, disabled, policy), the resolved version with source
(cached vs registry), and the final action (up-to-date, dismissed,
declined).
2026-06-27 13:29:46 -04:00
Dax Raad
5df049d081 feat(cli): add self-update service
Check the npm registry (at most once per 24h, file-locked) for newer
@opencode-ai/cli releases and act on a host-level autoupdate policy read
from config. Apply patch updates automatically, confirm minor updates
interactively, and never auto-update across majors. Skip local installs
and honor the disable flag. Wired into the default TUI command
(interactive) and serve (background).
2026-06-27 00:51:45 -04:00
Dax Raad
655adbf46e fix: stabilize v2 runtime behavior 2026-06-26 20:56:36 -04:00
Dax Raad
e6f660fecf feat(tui): add v2 terminal interface 2026-06-26 14:38:25 -04:00
opencode-agent[bot]
155e1f20d6 chore: generate 2026-06-07 03:28:52 +00:00
Dax
fe0c4f8c74
refactor(server): canonicalize service API (#31049) 2026-06-07 03:27:28 +00:00
opencode-agent[bot]
7ae856a9e9 chore: generate 2026-06-05 05:31:34 +00:00
Dax
b01eb22b2c
fix(cli): harden daemon lifecycle (#30844) 2026-06-05 01:30:19 -04:00
opencode-agent[bot]
30ec231aaf chore: generate 2026-06-04 06:59:09 +00:00
Dax
1ff19103a2
feat(core): add command registry (#30624) 2026-06-04 02:57:43 -04:00