mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
refactor(opencode): reload config in place and drop v1 compatibility shims
Route config/skill/AGENTS.md changes through the OpenCode location reload API instead of a full server restart, stop auto-resuming interrupted sessions, remove the restart coordinator and v1 MCP/version shims, and pin support to OpenCode >=2.0.15 <3.0.0. Adds integration-ready retries, service-mode launch, ocm-cli repo proxy, and new frontend form/MCP helpers.
This commit is contained in:
1 parent
7351d5f002
commit
f5d0f0c27e
171 files changed
+5046
-11437
No files matched your search
Executable → Regular
+7
-2
@@ -36,10 +36,15 @@ if ! opencode --version &> /dev/null; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
OPENCODE_PINNED_VERSION="$(sed -n 's/^ARG OPENCODE_VERSION=//p' "$REPO_ROOT/Dockerfile" | head -1)"
|
||||
OPENCODE_PINNED_MAJOR="${OPENCODE_PINNED_VERSION%%.*}"
|
||||
OPENCODE_VERSION="$(opencode --version 2>&1 | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)"
|
||||
|
||||
if ! printf '%s\n%s\n' "2.0.0" "$OPENCODE_VERSION" | sort -V -C; then
|
||||
echo "❌ OpenCode 2.0.0 or newer is required. Please upgrade it with:"
|
||||
if [ -z "$OPENCODE_PINNED_VERSION" ] \
|
||||
|| [ "${OPENCODE_VERSION%%.*}" != "$OPENCODE_PINNED_MAJOR" ] \
|
||||
|| ! printf '%s\n%s\n' "$OPENCODE_PINNED_VERSION" "$OPENCODE_VERSION" | sort -V -C; then
|
||||
echo "❌ OpenCode ${OPENCODE_VERSION:-unknown} is not supported; OpenCode >=${OPENCODE_PINNED_VERSION} <$((OPENCODE_PINNED_MAJOR + 1)).0.0 is required. Please install it with:"
|
||||
echo " curl -fsSL https://opencode.ai/v2/install | bash"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user