open-plan-annotator 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,14 +5,14 @@
5
5
  },
6
6
  "metadata": {
7
7
  "description": "Interactive plan annotation plugin for Claude Code",
8
- "version": "1.2.0"
8
+ "version": "1.2.1"
9
9
  },
10
10
  "plugins": [
11
11
  {
12
12
  "name": "open-plan-annotator",
13
13
  "source": "./",
14
14
  "description": "Interactive plan annotation UI: review, strikethrough, and comment on Claude's plans before approving. Fully local, no external services.",
15
- "version": "1.2.0",
15
+ "version": "1.2.1",
16
16
  "author": {
17
17
  "name": "ndom91"
18
18
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "open-plan-annotator",
3
3
  "description": "Interactive plan annotation UI: review, strikethrough, and comment on Claude's plans before approving. Fully local, no external services.",
4
- "version": "1.2.0",
4
+ "version": "1.2.1",
5
5
  "author": {
6
6
  "name": "ndom91"
7
7
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-plan-annotator",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "type": "module",
5
5
  "description": "Fully local plugin for interactive plan annotation from your Agentic assistants",
6
6
  "author": "ndom91",
@@ -70,9 +70,9 @@
70
70
  "@opencode-ai/plugin": "^1.2.14"
71
71
  },
72
72
  "optionalDependencies": {
73
- "@open-plan-annotator/runtime-darwin-arm64": "1.2.0",
74
- "@open-plan-annotator/runtime-darwin-x64": "1.2.0",
75
- "@open-plan-annotator/runtime-linux-arm64": "1.2.0",
76
- "@open-plan-annotator/runtime-linux-x64": "1.2.0"
73
+ "@open-plan-annotator/runtime-darwin-arm64": "1.2.1",
74
+ "@open-plan-annotator/runtime-darwin-x64": "1.2.1",
75
+ "@open-plan-annotator/runtime-linux-arm64": "1.2.1",
76
+ "@open-plan-annotator/runtime-linux-x64": "1.2.1"
77
77
  }
78
78
  }
@@ -67,16 +67,24 @@ export function isNewerVersion(current, latest) {
67
67
  }
68
68
 
69
69
  export async function fetchLatestVersion(packageName = "open-plan-annotator") {
70
- const response = await fetch(`${NPM_REGISTRY_BASE_URL}/${encodeURIComponent(packageName)}/latest`, {
71
- headers: { "User-Agent": "open-plan-annotator-update-check", Accept: "application/json" },
72
- signal: AbortSignal.timeout(10_000),
73
- });
70
+ const url = `${NPM_REGISTRY_BASE_URL}/${encodeURIComponent(packageName)}/latest`;
71
+
72
+ // Shell out to curl instead of using fetch/node:https — both hang inside
73
+ // compiled bun binaries due to a DNS resolution bug.
74
+ const { execFileSync } = await import("node:child_process");
74
75
 
75
- if (!response.ok) {
76
- throw new Error(`npm registry responded with ${response.status}`);
76
+ try {
77
+ execFileSync("curl", ["--version"], { stdio: "ignore", timeout: 2_000 });
78
+ } catch {
79
+ throw new Error("curl not available, skipping update check");
77
80
  }
78
81
 
79
- const payload = await response.json();
82
+ const body = execFileSync("curl", ["-sf", "-H", "Accept: application/json", "-H", "User-Agent: open-plan-annotator-update-check", url], {
83
+ timeout: 10_000,
84
+ encoding: "utf8",
85
+ });
86
+
87
+ const payload = JSON.parse(body);
80
88
  if (!payload || typeof payload !== "object" || typeof payload.version !== "string") {
81
89
  throw new Error("npm registry response did not include a version string");
82
90
  }