@jacobbd/relay-ai 0.7.1 → 0.7.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/README.md +3 -3
- package/dist/{chunk-6CBNKM55.js → chunk-LNQ46VW7.js} +9 -2
- package/dist/{chunk-6CBNKM55.js.map → chunk-LNQ46VW7.js.map} +1 -1
- package/dist/cli.js +259 -85
- package/dist/cli.js.map +1 -1
- package/dist/core/index.js +1 -1
- package/dist/core/index.js.map +1 -1
- package/dist/{ui-command-S3TQKB3D.js → ui-command-5VEFZ5GM.js} +2 -2
- package/package.json +1 -1
- /package/dist/{ui-command-S3TQKB3D.js.map → ui-command-5VEFZ5GM.js.map} +0 -0
package/README.md
CHANGED
|
@@ -216,7 +216,7 @@ To skip that question, use `--http-proxy`. A selected model does not need to be
|
|
|
216
216
|
relay-ai claude --http-proxy --provider moonshot --model kimi-k3
|
|
217
217
|
```
|
|
218
218
|
|
|
219
|
-
Using `--http-proxy` without a provider/model keeps native Claude as the starting model and adds any compatible saved favorites
|
|
219
|
+
Using `--http-proxy` without a provider/model keeps native Claude as the starting model and adds any compatible saved favorites into Claude Code's normal `/model` picker (alongside your Anthropic subscription models). The temporary local connection is password-protected, uses a per-session certificate, and closes automatically when Claude Code exits. Existing non-local network or corporate proxy settings are rejected with a clear error because proxy chaining is not supported yet.
|
|
220
220
|
|
|
221
221
|
> **Compatibility:** This mixed Anthropic + Relay mode currently supports Claude Code connected directly to Anthropic. It does not preserve Google Vertex AI configuration. Vertex users should continue using their normal Claude Code launch or Relay-only mode.
|
|
222
222
|
|
|
@@ -232,7 +232,7 @@ Add up to 20 favorites from Zen, Go, or any OpenCode-configured provider. When y
|
|
|
232
232
|
|
|
233
233
|
No favorites? Launch works like before: single model, no switch menu. `--dry-run` ignores saved favorites so you can preview a single-model launch.
|
|
234
234
|
|
|
235
|
-
That built-in favorites catalog applies to **Relay-only mode** (choose **No** when asked whether to keep your normal Claude models). In mixed Anthropic + Relay mode
|
|
235
|
+
That built-in favorites catalog applies to **Relay-only mode** (choose **No** when asked whether to keep your normal Claude models). In mixed Anthropic + Relay mode (`--http-proxy` / choose **Yes**), compatible favorites also show up in Claude Code's normal `/model` picker next to your Anthropic models.
|
|
236
236
|
|
|
237
237
|
#### `relay-ai claude` options
|
|
238
238
|
|
|
@@ -556,7 +556,7 @@ When you launch, relay-ai builds a clean child environment:
|
|
|
556
556
|
|
|
557
557
|
When Claude Code exits (normal exit, Ctrl+C, terminal close), your shell is unchanged. No cleanup step. No restore needed.
|
|
558
558
|
|
|
559
|
-
In `--http-proxy` mode, relay-ai does not replace your Anthropic credential. It removes stale third-party endpoint/cloud overrides from the child process, sets a password-protected loopback proxy plus a temporary CA bundle, and forwards native Anthropic requests—including their original auth and body—unchanged. Only the selected Relay model and compatible favorites are allowed to use registry provider credentials.
|
|
559
|
+
In `--http-proxy` mode, relay-ai does not replace your Anthropic credential. It removes stale third-party endpoint/cloud overrides from the child process, sets a password-protected loopback proxy plus a temporary CA bundle, points Claude Code at a local sentinel Anthropic host (still forwarded to real Anthropic), seeds the gateway models cache so favorites appear in `/model`, and forwards native Anthropic requests—including their original auth and body—unchanged (restoring Host + billing attribution headers on the way out). Only the selected Relay model and compatible favorites are allowed to use registry provider credentials.
|
|
560
560
|
|
|
561
561
|
**Caveat: Claude Code persists the model.** relay-ai doesn't edit `~/.claude/settings.json`, but Claude Code saves the model you launched with (via `--model` and `ANTHROPIC_MODEL`). A later bare `claude` launch may still show that model, e.g. `anthropic-opencode-go__deepseek-v4-flash` from a prior relay-ai session. To get back to a first-party default, run `claude --model sonnet` (or your preferred Claude model), or remove the `"model"` key from `~/.claude/settings.json`. If you used the favorites switch menu, Claude Code may also cache the gateway catalog at `~/.claude/cache/gateway-models.json`. Delete that file if `/model` shows stale entries from a dead proxy.
|
|
562
562
|
|
|
@@ -11,7 +11,7 @@ import { join } from "path";
|
|
|
11
11
|
// package.json
|
|
12
12
|
var package_default = {
|
|
13
13
|
name: "@jacobbd/relay-ai",
|
|
14
|
-
version: "0.7.
|
|
14
|
+
version: "0.7.2",
|
|
15
15
|
publishConfig: {
|
|
16
16
|
access: "public"
|
|
17
17
|
},
|
|
@@ -10904,12 +10904,17 @@ function buildHttpProxyRoutes(providers, favorites, selected, max = MAX_MODEL_CA
|
|
|
10904
10904
|
unavailable.push(item);
|
|
10905
10905
|
continue;
|
|
10906
10906
|
}
|
|
10907
|
+
const gatewayAliasId2 = claudeCodeClientModelId(
|
|
10908
|
+
aliasModelId(model.id, provider.id),
|
|
10909
|
+
model.contextWindow
|
|
10910
|
+
);
|
|
10907
10911
|
routes.push({
|
|
10908
10912
|
...route,
|
|
10909
10913
|
aliasId: claudeCodeClientModelId(
|
|
10910
10914
|
httpProxyModelId(provider.id, model.id),
|
|
10911
10915
|
model.contextWindow
|
|
10912
10916
|
),
|
|
10917
|
+
gatewayAliasId: gatewayAliasId2,
|
|
10913
10918
|
displayName: `${model.name || model.id} (${provider.name})`
|
|
10914
10919
|
});
|
|
10915
10920
|
}
|
|
@@ -11880,6 +11885,8 @@ export {
|
|
|
11880
11885
|
readBody,
|
|
11881
11886
|
extractApiKey,
|
|
11882
11887
|
sendJson,
|
|
11888
|
+
formatAnthropicModelEntry,
|
|
11889
|
+
formatAnthropicModelList,
|
|
11883
11890
|
gatewayProviderLabel,
|
|
11884
11891
|
openAiIdCollisions,
|
|
11885
11892
|
createGatewayModelCatalog,
|
|
@@ -11959,4 +11966,4 @@ export {
|
|
|
11959
11966
|
supportsClaudeTransparentMode,
|
|
11960
11967
|
buildHttpProxyRoutes
|
|
11961
11968
|
};
|
|
11962
|
-
//# sourceMappingURL=chunk-
|
|
11969
|
+
//# sourceMappingURL=chunk-LNQ46VW7.js.map
|