launch-upgrader: default to opencode-go/glm-5.2 when unset
Weekly upgrade run now defaults backend=opencode, model=opencode-go/glm-5.2 with no env set. Model default tracks backend (claude override → sonnet). Override via LOOP_BACKEND/LOOP_MODEL or /srv/cc-ci/upgrader.env. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
1443ccaea5
commit
5351ec2e40
@@ -14,10 +14,11 @@ Usage:
|
|||||||
launch-upgrader.py attach tmux attach to the session
|
launch-upgrader.py attach tmux attach to the session
|
||||||
|
|
||||||
Env:
|
Env:
|
||||||
LOOP_BACKEND claude (default) | opencode — also accepts UPGRADER_BACKEND
|
LOOP_BACKEND opencode (default) | claude — also accepts UPGRADER_BACKEND
|
||||||
LOOP_MODEL model flag (overrides UPGRADER_MODEL)
|
LOOP_MODEL model flag (overrides UPGRADER_MODEL); default tracks backend —
|
||||||
UPGRADER_MODEL sonnet (default for claude) | provider/model for opencode, e.g.
|
opencode→opencode-go/glm-5.2, claude→sonnet
|
||||||
opencode-go/glm-5.2 (OpenCode Go subscription) or tinfoil/deepseek-v4-pro
|
UPGRADER_MODEL provider/model for opencode, e.g. opencode-go/glm-5.2 (OpenCode Go
|
||||||
|
subscription) or tinfoil/deepseek-v4-pro; sonnet etc. for claude
|
||||||
UPGRADER_ARGS extra args passed to /upgrade-all (e.g. "n8n ghost", "--dry-run")
|
UPGRADER_ARGS extra args passed to /upgrade-all (e.g. "n8n ghost", "--dry-run")
|
||||||
|
|
||||||
claude backend:
|
claude backend:
|
||||||
@@ -37,8 +38,12 @@ WORKDIR = os.environ.get("UPGRADER_DIR", "/srv/cc-ci")
|
|||||||
LOG_DIR = os.environ.get("LOG_DIR", "/srv/cc-ci/.cc-ci-logs")
|
LOG_DIR = os.environ.get("LOG_DIR", "/srv/cc-ci/.cc-ci-logs")
|
||||||
|
|
||||||
# LOOP_BACKEND / LOOP_MODEL take precedence (unified control from the operator).
|
# LOOP_BACKEND / LOOP_MODEL take precedence (unified control from the operator).
|
||||||
BACKEND = os.environ.get("LOOP_BACKEND", os.environ.get("UPGRADER_BACKEND", "claude"))
|
# Default backend+model is the OpenCode Go subscription on glm-5.2; override either via env.
|
||||||
MODEL = os.environ.get("LOOP_MODEL", os.environ.get("UPGRADER_MODEL", "sonnet"))
|
# The model default tracks the backend so an explicit `LOOP_BACKEND=claude` (without a model)
|
||||||
|
# still gets a sensible claude model rather than a glm id.
|
||||||
|
BACKEND = os.environ.get("LOOP_BACKEND", os.environ.get("UPGRADER_BACKEND", "opencode"))
|
||||||
|
_DEFAULT_MODEL = "opencode-go/glm-5.2" if BACKEND == "opencode" else "sonnet"
|
||||||
|
MODEL = os.environ.get("LOOP_MODEL", os.environ.get("UPGRADER_MODEL", _DEFAULT_MODEL))
|
||||||
|
|
||||||
CLAUDE_BIN = os.environ.get("CLAUDE_BIN", "claude")
|
CLAUDE_BIN = os.environ.get("CLAUDE_BIN", "claude")
|
||||||
CLAUDE_FLAGS = os.environ.get("CLAUDE_FLAGS", "--dangerously-skip-permissions")
|
CLAUDE_FLAGS = os.environ.get("CLAUDE_FLAGS", "--dangerously-skip-permissions")
|
||||||
|
|||||||
Reference in New Issue
Block a user