From bac424d0566d4d42c8fcad52276ae4610b5034ca Mon Sep 17 00:00:00 2001 From: Michael Ramos Date: Thu, 9 Apr 2026 09:35:27 -0700 Subject: [PATCH] chore: bump version to 0.17.7 For provenance purposes, this commit was AI assisted. --- apps/copilot/plugin.json | 2 +- apps/hook/.claude-plugin/plugin.json | 2 +- apps/opencode-plugin/index.ts | 17 +++++++++++++++++ apps/opencode-plugin/package.json | 2 +- apps/pi-extension/package.json | 2 +- openpackage.yml | 2 +- package.json | 2 +- packages/server/package.json | 2 +- 8 files changed, 24 insertions(+), 7 deletions(-) diff --git a/apps/copilot/plugin.json b/apps/copilot/plugin.json index 1afa5760..246f3ef9 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.6", + "version": "0.17.7", "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 a3b3094a..1f2a3af3 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.6", + "version": "0.17.7", "author": { "name": "backnotprop" }, diff --git a/apps/opencode-plugin/index.ts b/apps/opencode-plugin/index.ts index 8c4d42ac..233989e1 100644 --- a/apps/opencode-plugin/index.ts +++ b/apps/opencode-plugin/index.ts @@ -20,6 +20,23 @@ import { type Plugin, tool } from "@opencode-ai/plugin"; import { existsSync, readFileSync } from "fs"; import path from "path"; + +// OpenCode's @hono/node-server patches global.Response with a polyfill that +// Bun.serve() doesn't accept (it checks native type tags, not instanceof). +// This happens in "opencode web" and "opencode serve" modes, where +// createAdaptorServer() runs before plugins load. Recover the native Response +// from the polyfill's prototype chain — hono sets up: +// Object.setPrototypeOf(Response2.prototype, GlobalResponse.prototype) +// so the parent prototype's constructor IS the original native Response. +const _proto = Object.getPrototypeOf(Response.prototype); +if (_proto?.constructor && _proto.constructor !== Response && _proto.constructor !== Object) { + globalThis.Response = _proto.constructor; + // Also fix Request — hono patches both with the same pattern + const _reqProto = Object.getPrototypeOf(Request.prototype); + if (_reqProto?.constructor && _reqProto.constructor !== Request && _reqProto.constructor !== Object) { + globalThis.Request = _reqProto.constructor; + } +} import { startPlannotatorServer, handleServerReady, diff --git a/apps/opencode-plugin/package.json b/apps/opencode-plugin/package.json index 15498a02..def62983 100644 --- a/apps/opencode-plugin/package.json +++ b/apps/opencode-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@plannotator/opencode", - "version": "0.17.6", + "version": "0.17.7", "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 27717c22..60f38c70 100644 --- a/apps/pi-extension/package.json +++ b/apps/pi-extension/package.json @@ -1,6 +1,6 @@ { "name": "@plannotator/pi-extension", - "version": "0.17.6", + "version": "0.17.7", "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 cf0cb990..20d0c8ed 100644 --- a/openpackage.yml +++ b/openpackage.yml @@ -1,5 +1,5 @@ name: plannotator -version: 0.17.6 +version: 0.17.7 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 a519352d..d8877c7b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plannotator", - "version": "0.17.6", + "version": "0.17.7", "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/package.json b/packages/server/package.json index dc979e7b..14531bab 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -1,6 +1,6 @@ { "name": "@plannotator/server", - "version": "0.17.6", + "version": "0.17.7", "private": true, "description": "Shared server implementation for Plannotator plugins", "main": "index.ts",