mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
feat(opencode): migrate OpenCode Manager to OpenCode 2
Port the backend lifecycle, generated plugins, event aggregation, schedules, worktrees, provider credentials, MCP, config handling, the frontend chat model, and the ocm CLI to OpenCode 2. Adopt @opencode/client 2.0.15 as the single typed V2 API contract, require OpenCode 2.0.0 or newer (pinned 2.0.15), and delete every V1-only code path.
This commit is contained in:
1 parent
6c2ebd764b
commit
7351d5f002
313 files changed
+23848
-36801
No files matched your search
@@ -32,7 +32,15 @@ echo "✅ Git is installed"
|
||||
# Check if OpenCode TUI is installed
|
||||
if ! opencode --version &> /dev/null; then
|
||||
echo "❌ OpenCode TUI is not installed. Please install it with:"
|
||||
echo " curl -fsSL https://opencode.ai/install | bash"
|
||||
echo " curl -fsSL https://opencode.ai/v2/install | bash"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
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:"
|
||||
echo " curl -fsSL https://opencode.ai/v2/install | bash"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in new issue
Block a user