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 ba45b958cc9181d3a5b1ed5292b9e43700957287
parent 22079f05f2c38a95eeef2a0f7f8d74c089c13430
Author: Henry Unite <unitehenry@gmail.com>
Date:   Mon, 26 Oct 2026 00:44:52 +0000

style: format opencode.test.ts

Diffstat:
Mopencode.test.ts | 24++++++++++++++++++------
1 file changed, 18 insertions(+), 6 deletions(-)

diff --git a/opencode.test.ts b/opencode.test.ts @@ -71,7 +71,9 @@ describe("opencode", () => { it("should not create openpod instance for uninitialized git repo", async () => { // Create a temp directory that is not a git repo - const tempDir = await mkdtemp(path.join(os.tmpdir(), "openpod-e2e-non-git-")); + const tempDir = await mkdtemp( + path.join(os.tmpdir(), "openpod-e2e-non-git-"), + ); const session = await opencode.sessions.create(); @@ -103,7 +105,9 @@ describe("opencode", () => { it("should not create openpod instance for uninitialized git origin", async () => { // Create a temp directory and init a git repo (but no remote origin) - const tempDir = await mkdtemp(path.join(os.tmpdir(), "openpod-e2e-no-origin-")); + const tempDir = await mkdtemp( + path.join(os.tmpdir(), "openpod-e2e-no-origin-"), + ); execSync("git init", { cwd: tempDir, stdio: "ignore" }); const session = await opencode.sessions.create(); @@ -137,8 +141,12 @@ describe("opencode", () => { { timeout: 120_000 }, async () => { // Create a temp git repo with a remote origin - const tempDir = await mkdtemp(path.join(os.tmpdir(), "openpod-e2e-happy-path-")); - const bareDir = await mkdtemp(path.join(os.tmpdir(), "openpod-bare-happy-path-")); + const tempDir = await mkdtemp( + path.join(os.tmpdir(), "openpod-e2e-happy-path-"), + ); + const bareDir = await mkdtemp( + path.join(os.tmpdir(), "openpod-bare-happy-path-"), + ); execSync("git init --bare", { cwd: bareDir, stdio: "ignore" }); execSync("git init", { cwd: tempDir, stdio: "ignore" }); execSync(`git remote add origin ${bareDir}`, { @@ -180,8 +188,12 @@ describe("opencode", () => { { timeout: 120_000 }, async () => { // Create a temp git repo with a remote origin - const tempDir = await mkdtemp(path.join(os.tmpdir(), "openpod-e2e-shell-")); - const bareDir = await mkdtemp(path.join(os.tmpdir(), "openpod-bare-shell-")); + const tempDir = await mkdtemp( + path.join(os.tmpdir(), "openpod-e2e-shell-"), + ); + const bareDir = await mkdtemp( + path.join(os.tmpdir(), "openpod-bare-shell-"), + ); execSync("git init --bare", { cwd: bareDir, stdio: "ignore" }); execSync("git init", { cwd: tempDir, stdio: "ignore" }); execSync(`git remote add origin ${bareDir}`, {