open-plan-annotator 1.0.6 → 1.0.8
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": "1.0.
|
|
15
|
+
"version": "1.0.8",
|
|
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.0.
|
|
4
|
+
"version": "1.0.8",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "ndom91"
|
|
7
7
|
},
|
|
@@ -6,6 +6,27 @@ const fs = require("fs");
|
|
|
6
6
|
|
|
7
7
|
const binaryPath = path.join(__dirname, "open-plan-annotator-binary");
|
|
8
8
|
const installScript = path.join(__dirname, "..", "install.cjs");
|
|
9
|
+
const VERSION = require("../package.json").version;
|
|
10
|
+
|
|
11
|
+
const arg = process.argv[2];
|
|
12
|
+
|
|
13
|
+
if (arg === "--version" || arg === "-v") {
|
|
14
|
+
console.log(VERSION);
|
|
15
|
+
process.exit(0);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
if (arg === "--help" || arg === "-h") {
|
|
19
|
+
console.log(`open-plan-annotator v${VERSION}
|
|
20
|
+
|
|
21
|
+
Usage:
|
|
22
|
+
open-plan-annotator Run as a Claude Code hook (reads stdin)
|
|
23
|
+
open-plan-annotator update Update the binary to the latest version
|
|
24
|
+
open-plan-annotator --version Print version
|
|
25
|
+
open-plan-annotator --help Show this help
|
|
26
|
+
|
|
27
|
+
https://github.com/ndom91/open-plan-annotator`);
|
|
28
|
+
process.exit(0);
|
|
29
|
+
}
|
|
9
30
|
|
|
10
31
|
// Buffer stdin immediately so it's not lost if we need to download first.
|
|
11
32
|
// Skip when stdin is a TTY (manual invocation) to avoid blocking forever.
|