@weave-os/router 0.2.20 → 0.2.21

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.
Files changed (2) hide show
  1. package/install.sh +5 -3
  2. package/package.json +1 -1
package/install.sh CHANGED
@@ -1640,10 +1640,12 @@ fi
1640
1640
 
1641
1641
  # ---------- interactive scope prompt ----------
1642
1642
 
1643
- # If the user didn't pass --scope and we have a controlling terminal, ask which
1644
- # scope to install into. Non-interactive runs (CI, `curl | sh --non-interactive`)
1643
+ # If the user is installing and didn't pass --scope, ask which scope to write
1644
+ # into. Account, status, and model commands only read an existing install, so
1645
+ # they keep the user-scope default unless the caller explicitly selects a
1646
+ # project scope. Non-interactive installs (CI, `curl | sh --non-interactive`)
1645
1647
  # silently use the "user" default.
1646
- if [ -z "$install_dir" ] && [ "$scope_explicit" = "false" ] && [ "$non_interactive" = "false" ] && [ -r /dev/tty ]; then
1648
+ if [ "$mode" = "install" ] && [ -z "$install_dir" ] && [ "$scope_explicit" = "false" ] && [ "$non_interactive" = "false" ] && [ -r /dev/tty ]; then
1647
1649
  # Per-target paths so the prompt text matches what actually gets written.
1648
1650
  case "$target" in
1649
1651
  codex)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weave-os/router",
3
- "version": "0.2.20",
3
+ "version": "0.2.21",
4
4
  "description": "One-command installer that points Claude Code, Codex, opencode, or pi at the Weave Router. For pi it also ships the routing extension, loaded via pi.extensions.",
5
5
  "bin": {
6
6
  "weave-router": "bin.js",