open-plan-annotator 0.2.13 → 0.2.14
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.2.
|
|
15
|
+
"version": "0.2.14",
|
|
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.2.
|
|
4
|
+
"version": "0.2.14",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "ndom91"
|
|
7
7
|
},
|
|
@@ -65,13 +65,12 @@ child.stdout.on("data", (chunk) => {
|
|
|
65
65
|
if (!trimmed) continue;
|
|
66
66
|
try {
|
|
67
67
|
JSON.parse(trimmed);
|
|
68
|
-
// Valid JSON —
|
|
68
|
+
// Valid JSON — write directly to fd 1 (bypasses Node stream buffering),
|
|
69
|
+
// detach child, and exit immediately.
|
|
69
70
|
forwarded = true;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
});
|
|
74
|
-
return;
|
|
71
|
+
fs.writeSync(1, trimmed + "\n");
|
|
72
|
+
child.unref();
|
|
73
|
+
process.exit(0);
|
|
75
74
|
} catch {
|
|
76
75
|
// Not JSON yet, keep buffering
|
|
77
76
|
}
|
|
@@ -81,7 +80,9 @@ child.stdout.on("data", (chunk) => {
|
|
|
81
80
|
child.on("close", (code) => {
|
|
82
81
|
if (!forwarded) {
|
|
83
82
|
// Binary exited without producing valid JSON — forward whatever we have
|
|
84
|
-
if (stdout.trim())
|
|
83
|
+
if (stdout.trim()) {
|
|
84
|
+
fs.writeSync(1, stdout);
|
|
85
|
+
}
|
|
85
86
|
process.exit(code || 1);
|
|
86
87
|
}
|
|
87
88
|
});
|