@workweave/router 0.2.0 → 0.2.1
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/install.sh +9 -8
- package/package.json +1 -1
package/install.sh
CHANGED
|
@@ -706,13 +706,14 @@ write_pi_models_config() {
|
|
|
706
706
|
}
|
|
707
707
|
|
|
708
708
|
# write_pi_settings_config makes the `weave` provider pi's default and loads the
|
|
709
|
-
# @workweave/router extension. defaultProvider
|
|
710
|
-
#
|
|
711
|
-
#
|
|
712
|
-
#
|
|
713
|
-
#
|
|
714
|
-
#
|
|
715
|
-
# here, so no
|
|
709
|
+
# @workweave/router extension. defaultProvider is always set to "weave" — the
|
|
710
|
+
# installer's job is to route via Weave; uninstall reverts it. defaultModel is set
|
|
711
|
+
# only when unset (don't clobber a user's model pick). The npm package source is
|
|
712
|
+
# appended to `packages` idempotently — pi auto-installs missing packages on
|
|
713
|
+
# startup — and the legacy `npm:@workweave/pi-router` id (from before the
|
|
714
|
+
# extension was folded into @workweave/router) is dropped so a config from the
|
|
715
|
+
# old layout can't keep a dangling/duplicate entry. No secret lives here, so no
|
|
716
|
+
# chmod 600.
|
|
716
717
|
#
|
|
717
718
|
# Usage: write_pi_settings_config <settings_file>
|
|
718
719
|
write_pi_settings_config() {
|
|
@@ -724,7 +725,7 @@ write_pi_settings_config() {
|
|
|
724
725
|
(.packages //= [])
|
|
725
726
|
| (.packages -= ["npm:@workweave/pi-router"])
|
|
726
727
|
| (if (.packages | index($pkg)) then . else .packages += [$pkg] end)
|
|
727
|
-
|
|
|
728
|
+
| .defaultProvider = "weave"
|
|
728
729
|
| (if (.defaultModel // "") == "" then .defaultModel = "claude-sonnet-4-6" else . end)
|
|
729
730
|
' "$settings_file")"
|
|
730
731
|
else
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workweave/router",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
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"
|