Skip to content

v1.2.0

Choose a tag to compare

@macintacos macintacos released this 07 Oct 18:30
Immutable release. Only release title and notes can be modified.
71560ac

caret 1.2.0 lets you review plans from another device: set host and hostnames in config.toml's [daemon] table, then open the link caret login-link prints once on each phone, tablet or computer. It also keeps comments and key order when caret install edits a hand-written OpenCode config, and gives plan sessions started outside OpenCode's TUI the same steer and daemon warm as the TUI's.

Added

  • The review UI can be reached from other devices. Three new [daemon] keys in config.toml set the address the daemon binds (host), the names it answers to (hostnames, on any port and over HTTPS), and whether it asks for a token (auth). Reaching caret from another device walks through the setup, including running behind an HTTPS reverse proxy.
  • Token auth for the daemon. It turns on when host is exposed or auth = "token". Opening the login link once sets a cookie that keeps the device logged in, marked Secure behind an HTTPS proxy. caret serve prints the link on every start, and the new caret login-link prints it for the service's daemon. Review links use the first hostnames entry. With no host set, caret behaves as before and never asks for a token.
  • caret doctor has an opencode-host check. It lists every opencode on your PATH and fails when OpenCode is older than 1.3.4, the oldest version caret supports, or when caret sits in a config file or key your OpenCode doesn't load, naming caret install as the fix.

Fixed

  • Changing daemon.port or daemon.host no longer leaves a second daemon running beside the first. The next review restarts the service, or retires an on-demand daemon left on the old address, before it starts one, and a review left open follows the daemon to its new address.
  • On OpenCode, a plan session started without naming an agent — opencode run without --agent, the SDK, or a web client — now gets caret's planning steer and daemon warm, as sessions started from the TUI do.
  • Interrupting OpenCode during a caret review stops the review and shows a "caret: review cancelled" toast instead of reporting that changes were requested.
  • caret install and --uninstall keep the comments, indentation and line endings of a hand-written OpenCode config, leave caret's entry in its slot in the plugin array, and refuse a config that lists the plugin key twice instead of writing a broken edit.
  • caret install writes caret into the one global OpenCode config file your OpenCode loads and removes it from the others, so OpenCode never sees two caret entries. --dry-run lists every file it would change, and a config that fails to parse stops install before it writes anything.
  • caret install recognises a file: OpenCode entry naming a packed caret tarball (macintacos-caret-<version>.tgz) as caret's own, so it replaces it instead of adding a second caret entry. Uninstall and caret doctor see it too.

Security

  • An invalid config.toml now leaves the daemon on loopback with token auth on, instead of falling back to no auth. caret login-link prints the link to log in.

Full Changelog: v1.1.1...v1.2.0