open-plan-annotator 0.1.4 → 0.1.7

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.
@@ -12,7 +12,7 @@
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": "0.1.4",
15
+ "version": "0.1.7",
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": "0.1.4",
4
+ "version": "0.1.7",
5
5
  "author": {
6
6
  "name": "ndom91"
7
7
  },
@@ -5,13 +5,28 @@ const path = require("path");
5
5
  const fs = require("fs");
6
6
 
7
7
  const binaryPath = path.join(__dirname, "open-plan-annotator-binary");
8
+ const installScript = path.join(__dirname, "..", "install.cjs");
8
9
 
9
10
  if (!fs.existsSync(binaryPath)) {
10
- console.error(
11
- "open-plan-annotator: binary not found. The postinstall script may have failed.\n" +
12
- "Try running: node " + path.join(__dirname, "..", "install.cjs")
13
- );
14
- process.exit(1);
11
+ // Auto-download the binary (handles pnpm blocking postinstall)
12
+ console.error("open-plan-annotator: binary not found, downloading...");
13
+ try {
14
+ execFileSync(process.execPath, [installScript], { stdio: "inherit" });
15
+ } catch (e) {
16
+ console.error(
17
+ "\nopen-plan-annotator: failed to download binary.\n" +
18
+ "Try running manually: node " + installScript + "\n"
19
+ );
20
+ process.exit(1);
21
+ }
22
+
23
+ if (!fs.existsSync(binaryPath)) {
24
+ console.error(
25
+ "open-plan-annotator: binary still not found after install.\n" +
26
+ "Try running manually: node " + installScript + "\n"
27
+ );
28
+ process.exit(1);
29
+ }
15
30
  }
16
31
 
17
32
  try {
package/install.cjs CHANGED
@@ -11,7 +11,7 @@ const zlib = require("zlib");
11
11
  const https = require("https");
12
12
 
13
13
  const VERSION = require("./package.json").version;
14
- const REPO = "ndomino/open-plan-annotator";
14
+ const REPO = "ndom91/open-plan-annotator";
15
15
 
16
16
  const PLATFORM_MAP = {
17
17
  "darwin-arm64": "open-plan-annotator-darwin-arm64",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-plan-annotator",
3
- "version": "0.1.4",
3
+ "version": "0.1.7",
4
4
  "type": "module",
5
5
  "description": "Fully local plugin for interactive plan annotation from your Agentic assistants",
6
6
  "author": "ndom91",