mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
chore(opencode): move the OpenCode pin to 2.2.5 from a workspace catalog
Manager builds against and requires OpenCode 2.2.5. Every @opencode package, plus effect and the OpenTUI/solid dependencies they share, resolves from one pnpm workspace catalog instead of separate pins. The built-against version and the supported floor are now separate settings, so a future OpenCode release can move the pin before raising the floor. Docker and the dev setup script read the floor from its own argument. ocm-cli moves to 0.6.0 on the same 2.2.5 and OpenTUI 0.8 baseline. A linked server on a different version is still connectable and now shows a neutral version notice instead of an unsupported badge.
This commit is contained in:
1 parent
dc0220843e
commit
807c7cb896
20 files changed
+583
-562
No files matched your search
@@ -60,7 +60,7 @@ ensure_auth_secret() {
|
||||
export AUTH_SECRET
|
||||
}
|
||||
|
||||
OPENCODE_SUPPORTED_FLOOR="${OPENCODE_BUNDLED_VERSION:-}"
|
||||
OPENCODE_SUPPORTED_FLOOR="${OPENCODE_MIN_VERSION:-}"
|
||||
|
||||
read_opencode_version() {
|
||||
local binary output
|
||||
@@ -93,7 +93,7 @@ reconcile_persisted_opencode() {
|
||||
return 0
|
||||
fi
|
||||
if ! is_supported_opencode_version "$persisted_version"; then
|
||||
echo "Persisted OpenCode $persisted_version is outside the supported range $(supported_opencode_range); removing it so the bundled OpenCode $OPENCODE_SUPPORTED_FLOOR binary is used"
|
||||
echo "Persisted OpenCode $persisted_version is outside the supported range $(supported_opencode_range); removing it so the bundled OpenCode ${OPENCODE_BUNDLED_VERSION:-} binary is used"
|
||||
rm -f "$persisted_path"
|
||||
return 0
|
||||
fi
|
||||
|
||||
@@ -38,7 +38,7 @@ fi
|
||||
|
||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
source "$REPO_ROOT/scripts/lib/opencode-release.sh"
|
||||
OPENCODE_SUPPORTED_FLOOR="$(sed -n 's/^ARG OPENCODE_VERSION=//p' "$REPO_ROOT/Dockerfile" | head -1)"
|
||||
OPENCODE_SUPPORTED_FLOOR="$(sed -n 's/^ARG OPENCODE_MIN_VERSION=//p' "$REPO_ROOT/Dockerfile" | head -1)"
|
||||
OPENCODE_VERSION_OUTPUT="$(opencode --version 2>&1)" || OPENCODE_VERSION_OUTPUT=""
|
||||
OPENCODE_VERSION="$(parse_opencode_version_output "$OPENCODE_VERSION_OUTPUT")"
|
||||
|
||||
|
||||
Reference in new issue
Block a user