Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/opencode/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "OpenCode",
"id": "opencode",
"version": "1.1.0",
"version": "1.1.1",
"description": "AI coding agent, built for the terminal. An open-source alternative to Claude Code with support for multiple LLM providers.",
"documentationURL": "https://opencode.ai/docs",
"options": {
Expand Down
8 changes: 4 additions & 4 deletions src/opencode/install.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

# Variables
REPO_OWNER="sst"
REPO_OWNER="anomalyco"
REPO_NAME="opencode"
OPENCODE_VERSION="${VERSION:-"latest"}"

Expand All @@ -26,7 +26,7 @@ check_packages() {
fi
}

# Make sure we have curl, ca-certificates, and tar
# Make sure we have curl, ca-certificates, tar, and jq
check_packages curl ca-certificates tar jq

echo "Installing OpenCode version: $OPENCODE_VERSION"
Expand Down Expand Up @@ -96,14 +96,14 @@ resolve_latest_version_fallback() {
fi

echo "Failed to resolve version from HTML, using known fallback version..." >&2
echo "1.0.107" # Known recent version as last resort
echo "1.0.223" # Known recent version as last resort
return 1
}

# Resolve version
if [ "$OPENCODE_VERSION" = "latest" ]; then
if ! RESOLVED_VERSION=$(resolve_latest_version); then
RESOLVED_VERSION=$(resolve_latest_version_fallback)
RESOLVED_VERSION=$(resolve_latest_version_fallback) || true
fi
echo "Resolved latest version to: $RESOLVED_VERSION"
OPENCODE_VERSION="$RESOLVED_VERSION"
Expand Down