@dst-justin/relay 2.6.0 → 2.7.0
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 -0
- package/package.json +1 -1
- package/relay +7 -3
package/README.md
CHANGED
|
@@ -288,6 +288,9 @@ Sessions live in `~/.claude/projects/` and are shared across all accounts — af
|
|
|
288
288
|
|
|
289
289
|
## Changelog
|
|
290
290
|
|
|
291
|
+
### v2.7.0 — 2026-09-04
|
|
292
|
+
- `relay provider add` now turns on gateway model discovery by default (previously required `--discover-models`); opt out with `--no-discover-models`.
|
|
293
|
+
|
|
291
294
|
### v2.6.0 — 2026-09-04
|
|
292
295
|
- Add `relay run -c`/`--continue`/`-r`/`--resume` — replays the last account/provider `relay run` used in the current directory, so a crashed or Ctrl-C'd one-off provider session can resume without retyping the provider name.
|
|
293
296
|
|
package/package.json
CHANGED
package/relay
CHANGED
|
@@ -966,7 +966,7 @@ PYEOF
|
|
|
966
966
|
|
|
967
967
|
cmd_provider_add() {
|
|
968
968
|
local name="${1:-}"
|
|
969
|
-
[[ -z "${name}" ]] && { err "usage: relay provider add <name> --base-url <url> --token <token> [--model <model>] [--subagent-model <model>] [--discover-models]"; exit 1; }
|
|
969
|
+
[[ -z "${name}" ]] && { err "usage: relay provider add <name> --base-url <url> --token <token> [--model <model>] [--subagent-model <model>] [--no-discover-models]"; exit 1; }
|
|
970
970
|
shift
|
|
971
971
|
case "${name}" in
|
|
972
972
|
*[!a-zA-Z0-9_-]*) err "name must contain only letters, numbers, underscores, or hyphens"; exit 1 ;;
|
|
@@ -981,7 +981,10 @@ cmd_provider_add() {
|
|
|
981
981
|
return 0
|
|
982
982
|
fi
|
|
983
983
|
|
|
984
|
-
|
|
984
|
+
# Discovery defaults on: without a pinned --model there's nothing else to
|
|
985
|
+
# route with, and with one it's still useful for `relay provider list` /
|
|
986
|
+
# future switches, so opt-out (--no-discover-models) rather than opt-in.
|
|
987
|
+
local base_url="" token="" model="" subagent_model="" discover=1
|
|
985
988
|
while [[ $# -gt 0 ]]; do
|
|
986
989
|
case "$1" in
|
|
987
990
|
--base-url) base_url="${2:-}"; shift 2 ;;
|
|
@@ -989,6 +992,7 @@ cmd_provider_add() {
|
|
|
989
992
|
--model) model="${2:-}"; shift 2 ;;
|
|
990
993
|
--subagent-model) subagent_model="${2:-}"; shift 2 ;;
|
|
991
994
|
--discover-models) discover=1; shift ;;
|
|
995
|
+
--no-discover-models) discover=0; shift ;;
|
|
992
996
|
*) err "unknown option: $1"; exit 1 ;;
|
|
993
997
|
esac
|
|
994
998
|
done
|
|
@@ -2813,7 +2817,7 @@ cmd_help() {
|
|
|
2813
2817
|
printf " %-42s %s\n" " --model <model>" "optional: pin ANTHROPIC_MODEL to this alias"
|
|
2814
2818
|
printf " %-42s %s\n" " --subagent-model <model>" "optional: pin CLAUDE_CODE_SUBAGENT_MODEL"
|
|
2815
2819
|
printf " %-42s %s\n" " " "(overrides every subagent's own model: frontmatter)"
|
|
2816
|
-
printf " %-42s %s\n" " --discover-models"
|
|
2820
|
+
printf " %-42s %s\n" " --no-discover-models" "opt out: gateway model discovery is on by default"
|
|
2817
2821
|
printf " %-42s %s\n" " relay provider list" "list configured providers + their settings"
|
|
2818
2822
|
printf " %-42s %s\n" " relay provider use <name>" "route all future sessions through this provider"
|
|
2819
2823
|
printf " %-42s %s\n" " relay provider off" "stop routing through a provider, resume subscription account"
|