diff --git a/registry/coder-labs/modules/opencode/README.md b/registry/coder-labs/modules/opencode/README.md index 711ad522..2eb6baf7 100644 --- a/registry/coder-labs/modules/opencode/README.md +++ b/registry/coder-labs/modules/opencode/README.md @@ -13,7 +13,7 @@ Run [OpenCode](https://opencode.ai) AI coding assistant in your workspace for in ```tf module "opencode" { source = "registry.coder.com/coder-labs/opencode/coder" - version = "0.1.1" + version = "0.1.2" agent_id = coder_agent.main.id workdir = "/home/coder/project" } @@ -34,7 +34,7 @@ resource "coder_ai_task" "task" { module "opencode" { source = "registry.coder.com/coder-labs/opencode/coder" - version = "0.1.1" + version = "0.1.2" agent_id = coder_agent.main.id workdir = "/home/coder/project" @@ -89,7 +89,7 @@ Run OpenCode as a command-line tool without web interface or task reporting: ```tf module "opencode" { source = "registry.coder.com/coder-labs/opencode/coder" - version = "0.1.1" + version = "0.1.2" agent_id = coder_agent.main.id workdir = "/home/coder" report_tasks = false diff --git a/registry/coder-labs/modules/opencode/scripts/install.sh b/registry/coder-labs/modules/opencode/scripts/install.sh index 6d553108..473e5ac4 100755 --- a/registry/coder-labs/modules/opencode/scripts/install.sh +++ b/registry/coder-labs/modules/opencode/scripts/install.sh @@ -39,7 +39,7 @@ install_opencode() { if [ "$ARG_OPENCODE_VERSION" = "latest" ]; then curl -fsSL https://opencode.ai/install | bash else - VERSION=$ARG_OPENCODE_VERSION curl -fsSL https://opencode.ai/install | bash + curl -fsSL https://opencode.ai/install | VERSION="${ARG_OPENCODE_VERSION}" bash fi export PATH=/home/coder/.opencode/bin:$PATH printf "Opencode location: %s\n" "$(which opencode)"