@alexeiled/claude-router 0.2.0 → 0.2.2
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/.claude-plugin/plugin.json +1 -1
- package/docs/design.md +7 -2
- package/docs/user-guide.md +0 -5
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "router",
|
|
3
3
|
"displayName": "Router",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2",
|
|
5
5
|
"description": "Local gateway that selects a model and an effort level for each user turn with a TypeSafe Jev Choice.",
|
|
6
6
|
"author": { "name": "Alexei Ledenev", "url": "https://github.com/alexei-led" },
|
|
7
7
|
"repository": "https://github.com/alexei-led/claude-router",
|
package/docs/design.md
CHANGED
|
@@ -156,7 +156,7 @@ Agreed with Codex on 2026-09-22. The thresholds are start values.
|
|
|
156
156
|
|
|
157
157
|
```
|
|
158
158
|
.claude-plugin/plugin.json userConfig.typesafe_api_key (Keychain)
|
|
159
|
-
.claude-plugin/marketplace.json
|
|
159
|
+
.claude-plugin/marketplace.json github source alexei-led/claude-router
|
|
160
160
|
hooks/hooks.json SessionStart -> scripts/ensure-gateway.mjs
|
|
161
161
|
scripts/gateway.mjs daemon entry
|
|
162
162
|
scripts/ensure-gateway.mjs port probe, detached spawn
|
|
@@ -196,7 +196,12 @@ Agreed with Codex on 2026-09-22. The thresholds are start values.
|
|
|
196
196
|
|
|
197
197
|
The repository root is the plugin and the npm package `@alexeiled/claude-router`.
|
|
198
198
|
The marketplace `alexei-led-claude-router` in `.claude-plugin/marketplace.json`
|
|
199
|
-
points at
|
|
199
|
+
points at this GitHub repository (`"source": "github"`), so Claude Code installs the
|
|
200
|
+
plugin from git and never calls npm. An npm source
|
|
201
|
+
fails under npm 12: Claude Code fetches the tarball URL, and npm 12 refuses
|
|
202
|
+
remote tarballs by default (`EALLOWREMOTE`). `claude plugin update` compares
|
|
203
|
+
the `version` in `.claude-plugin/plugin.json`, so each release bumps it. Local
|
|
204
|
+
development uses `claude --plugin-dir .`.
|
|
200
205
|
|
|
201
206
|
A release is a signed annotated tag `v<version>` on `main`, where the version
|
|
202
207
|
matches `package.json`. The `release.yml` workflow makes sure that the tag is
|
package/docs/user-guide.md
CHANGED
|
@@ -89,11 +89,6 @@ assistant message in a Claude Code transcript.
|
|
|
89
89
|
|
|
90
90
|
## Troubleshooting
|
|
91
91
|
|
|
92
|
-
- If `claude plugin install` fails with `code EALLOWREMOTE`, your npm is version
|
|
93
|
-
12 or later. Claude Code downloads the plugin by tarball URL, and npm 12
|
|
94
|
-
refuses remote tarballs by default (`allow-remote = "none"`). Run the install
|
|
95
|
-
with npm 11, for example `fnm exec --using 22 claude plugin install
|
|
96
|
-
router@alexei-led-claude-router`, or set `npm config set allow-remote all`.
|
|
97
92
|
- If Claude Code does not accept `router` as a model, make sure that the
|
|
98
93
|
gateway runs and that `ANTHROPIC_BASE_URL` is set. The command
|
|
99
94
|
`curl http://127.0.0.1:43170/v1/models` lists the alias.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexeiled/claude-router",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Claude Code plugin: a local gateway that selects a model and an effort level for each user turn with a TypeSafe Jev Choice.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Alexei Ledenev",
|