From 29fc7920f87c29097edc8468124cf171157c2e32 Mon Sep 17 00:00:00 2001 From: Michael Ramos Date: Thu, 9 Apr 2026 07:08:01 -0700 Subject: [PATCH] chore: bump version to 0.17.5 For provenance purposes, this commit was AI assisted. --- apps/copilot/plugin.json | 2 +- apps/hook/.claude-plugin/plugin.json | 2 +- apps/opencode-plugin/package.json | 2 +- apps/pi-extension/package.json | 2 +- openpackage.yml | 2 +- package.json | 2 +- packages/server/p4.ts | 27 ++++++++++++++++----------- packages/server/package.json | 2 +- packages/server/vcs.ts | 17 +++++++++++------ scripts/install.ps1 | 1 + scripts/install.sh | 2 +- 11 files changed, 36 insertions(+), 25 deletions(-) diff --git a/apps/copilot/plugin.json b/apps/copilot/plugin.json index c4cef6a0..0cbba84e 100644 --- a/apps/copilot/plugin.json +++ b/apps/copilot/plugin.json @@ -1,7 +1,7 @@ { "name": "plannotator-copilot", "description": "Interactive Plan & Code Review for GitHub Copilot CLI. Visual annotations, team sharing, structured feedback.", - "version": "0.17.4", + "version": "0.17.5", "author": { "name": "backnotprop" }, "repository": "https://github.com/backnotprop/plannotator", "license": "MIT OR Apache-2.0", diff --git a/apps/hook/.claude-plugin/plugin.json b/apps/hook/.claude-plugin/plugin.json index 30f39a27..0d4bf265 100644 --- a/apps/hook/.claude-plugin/plugin.json +++ b/apps/hook/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "plannotator", "description": "Interactive Plan Review: Mark up and refine your plans using a UI, easily share for team collaboration, automatically integrates with plan mode hooks.", - "version": "0.17.4", + "version": "0.17.5", "author": { "name": "backnotprop" }, diff --git a/apps/opencode-plugin/package.json b/apps/opencode-plugin/package.json index f04c12e9..df003764 100644 --- a/apps/opencode-plugin/package.json +++ b/apps/opencode-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@plannotator/opencode", - "version": "0.17.4", + "version": "0.17.5", "description": "Plannotator plugin for OpenCode - interactive plan review with visual annotation", "author": "backnotprop", "license": "MIT OR Apache-2.0", diff --git a/apps/pi-extension/package.json b/apps/pi-extension/package.json index 9a22d907..a00f62a6 100644 --- a/apps/pi-extension/package.json +++ b/apps/pi-extension/package.json @@ -1,6 +1,6 @@ { "name": "@plannotator/pi-extension", - "version": "0.17.4", + "version": "0.17.5", "type": "module", "description": "Plannotator extension for Pi coding agent - interactive plan review with visual annotation", "author": "backnotprop", diff --git a/openpackage.yml b/openpackage.yml index 9d5c39b8..4c3c262b 100644 --- a/openpackage.yml +++ b/openpackage.yml @@ -1,5 +1,5 @@ name: plannotator -version: 0.17.4 +version: 0.17.5 description: Annotate Claude Code and other agent plans and review code visually. Share with your team, and send feedback to your agent with one click author: backnotprop license: MIT/Apache2.0 diff --git a/package.json b/package.json index b21972e8..77ccc7c8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plannotator", - "version": "0.17.4", + "version": "0.17.5", "private": true, "description": "Interactive Plan Review for Claude Code - annotate plans visually, share with team, automatically send feedback", "author": "backnotprop", diff --git a/packages/server/p4.ts b/packages/server/p4.ts index 28746caf..6b84a371 100644 --- a/packages/server/p4.ts +++ b/packages/server/p4.ts @@ -20,19 +20,24 @@ async function runP4( args: string[], options?: { cwd?: string }, ): Promise { - const proc = Bun.spawn(["p4", ...args], { - cwd: options?.cwd, - stdout: "pipe", - stderr: "pipe", - }); + try { + const proc = Bun.spawn(["p4", ...args], { + cwd: options?.cwd, + stdout: "pipe", + stderr: "pipe", + }); - const [stdout, stderr, exitCode] = await Promise.all([ - new Response(proc.stdout).text(), - new Response(proc.stderr).text(), - proc.exited, - ]); + const [stdout, stderr, exitCode] = await Promise.all([ + new Response(proc.stdout).text(), + new Response(proc.stderr).text(), + proc.exited, + ]); - return { stdout: stdout.replace(/\r\n/g, "\n"), stderr, exitCode }; + return { stdout: stdout.replace(/\r\n/g, "\n"), stderr, exitCode }; + } catch { + // p4 not installed or not in PATH — treat as command failure + return { stdout: "", stderr: "p4 not found", exitCode: 1 }; + } } // --- Path helpers --- diff --git a/packages/server/package.json b/packages/server/package.json index 6487dd7a..2c6dcf7f 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -1,6 +1,6 @@ { "name": "@plannotator/server", - "version": "0.17.4", + "version": "0.17.5", "private": true, "description": "Shared server implementation for Plannotator plugins", "main": "index.ts", diff --git a/packages/server/vcs.ts b/packages/server/vcs.ts index d18a3a98..5c15d02f 100644 --- a/packages/server/vcs.ts +++ b/packages/server/vcs.ts @@ -78,12 +78,17 @@ const gitProvider: VcsProvider = { id: "git", async detect(cwd?: string): Promise { - const proc = Bun.spawn(["git", "rev-parse", "--is-inside-work-tree"], { - cwd: cwd ?? undefined, - stdout: "ignore", - stderr: "ignore", - }); - return (await proc.exited) === 0; + try { + const proc = Bun.spawn(["git", "rev-parse", "--is-inside-work-tree"], { + cwd: cwd ?? undefined, + stdout: "ignore", + stderr: "ignore", + }); + return (await proc.exited) === 0; + } catch { + // git not installed or not in PATH + return false; + } }, ownsDiffType(diffType: string): boolean { diff --git a/scripts/install.ps1 b/scripts/install.ps1 index bc480c0a..d521a376 100644 --- a/scripts/install.ps1 +++ b/scripts/install.ps1 @@ -268,6 +268,7 @@ if (Test-Path $pluginHooks) { # Clear OpenCode plugin cache Remove-Item -Recurse -Force "$env:USERPROFILE\.cache\opencode\node_modules\@plannotator" -ErrorAction SilentlyContinue +Remove-Item -Recurse -Force "$env:USERPROFILE\.cache\opencode\packages\@plannotator" -ErrorAction SilentlyContinue Remove-Item -Recurse -Force "$env:USERPROFILE\.bun\install\cache\@plannotator" -ErrorAction SilentlyContinue # Clear Pi jiti cache to force fresh download on next run diff --git a/scripts/install.sh b/scripts/install.sh index 6d02bcd8..69fa110b 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -338,7 +338,7 @@ HOOKS_EOF fi # Clear any cached OpenCode plugin to force fresh download on next run -rm -rf "$HOME/.cache/opencode/node_modules/@plannotator" "$HOME/.bun/install/cache/@plannotator" 2>/dev/null || true +rm -rf "$HOME/.cache/opencode/node_modules/@plannotator" "$HOME/.cache/opencode/packages/@plannotator" "$HOME/.bun/install/cache/@plannotator" 2>/dev/null || true # Clear Pi jiti cache to force fresh download on next run rm -rf /tmp/jiti 2>/dev/null || true