openpod

An opencode plugin that spins up a dedicated virtual machine for each session to isolate agent work.
git clone https://unitehenry.com/git/openpod.git
Log | Files | Refs | README

commit d2395d33e79fa43136c4019bc7516ba1e85ba9f0
parent 04ff3b346a8af1ffc3e7ffbd63a1044d096fca66
Author: Henry Unite <unitehenry@gmail.com>
Date:   Sun, 18 Oct 2026 18:02:07 +0000

chore: typecheck

Diffstat:
Mscripts/install | 13+++----------
Ascripts/node | 15+++++++++++++++
Ascripts/typecheck | 17+++++++++++++++++
3 files changed, 35 insertions(+), 10 deletions(-)

diff --git a/scripts/install b/scripts/install @@ -1,15 +1,8 @@ #!/usr/bin/env bash - set -euo pipefail -if ! command -v node >/dev/null 2>&1; then - echo "Error: node is not installed" >&2 - exit 1 -fi - -if [[ ! "$(node -v)" =~ ^v24\. ]]; then - echo "Error: Node.js version 24 is required" >&2 - exit 1 -fi +# Ensure Node.js v24 is available +script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +"$script_dir/node" --version >/dev/null npm install @opencode/plugin diff --git a/scripts/node b/scripts/node @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +set -euo pipefail + +if ! command -v node >/dev/null 2>&1; then + echo "Error: node is not installed" >&2 + exit 1 +fi + +node_version=$(node -v) +if [[ ! "$node_version" =~ ^v24\. ]]; then + echo "Error: Node.js version 24 is required (found $node_version)" >&2 + exit 1 +fi + +exec "$(command -v node)" "$@" diff --git a/scripts/typecheck b/scripts/typecheck @@ -0,0 +1,17 @@ +#!/usr/bin/env bash +set -euo pipefail + +# Ensure Node.js v24 is available +script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +"$script_dir/node" --version >/dev/null + +npx --yes --package @typescript/native-preview tsgo --noEmit \ + --skipLibCheck \ + --strict \ + --target esnext \ + --module nodenext \ + --moduleResolution nodenext \ + --lib esnext \ + --esModuleInterop \ + --forceConsistentCasingInFileNames \ + index.ts