Files
redshift 819fde0972 feat(cli): add routstrd models auto-model-path toggle
Enabling automatic model-path selection meant hand-editing `autoModelPath`
in ~/.routstrd/config.json. Add a first-class way to flip it:

  routstrd models auto-model-path          # show the current setting
  routstrd models auto-model-path on|off
  routstrd models auto-model-path toggle
  routstrd models auto-model-path on --no-restart

- daemon: GET/POST /settings/auto-model-path persists `autoModelPath` and
  reports `restartRequired` (the running daemon captures the setting at
  startup, so a restart is what makes it take effect). GET also reports the
  value on disk (`configured`) next to the value in effect.
- cli: the command restarts the local daemon after a change (skip with
  --no-restart) and, for a remote node, prints the reminder that its
  operator has to restart it. `status` warns when config.json and the
  running daemon disagree.
- cli: factor the stop/wait/start sequence into `restartLocalDaemon` and
  reuse it from `restart` and `mode`; `restart` now also keeps the
  configured `provider` pin, which it previously dropped.
- docs: README/SKILL cover the command, the setting, and the endpoint.
- tests: endpoint scenario (persist, pending restart, no-op re-post) and
  unit tests for the state argument parsing.
2026-10-09 23:41:40 +08:00
..