open-plan-annotator 0.2.4 → 0.2.5
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.5",
|
|
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.5",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "ndom91"
|
|
7
7
|
},
|
package/README.md
CHANGED
|
@@ -67,15 +67,7 @@ cd /path/to/your/project
|
|
|
67
67
|
open-plan-annotator-install-opencode
|
|
68
68
|
```
|
|
69
69
|
|
|
70
|
-
This installs the plugin to
|
|
71
|
-
|
|
72
|
-
Then register it in your project's `opencode.json`:
|
|
73
|
-
|
|
74
|
-
```json
|
|
75
|
-
{
|
|
76
|
-
"plugin": [".opencode/plugins/open-plan-annotator"]
|
|
77
|
-
}
|
|
78
|
-
```
|
|
70
|
+
This installs the plugin to `~/.config/opencode/plugins/open-plan-annotator/`, installs dependencies, and creates a loader shim that OpenCode auto-discovers — no config changes needed.
|
|
79
71
|
|
|
80
72
|
**Option B: From source**
|
|
81
73
|
|
|
@@ -86,7 +78,7 @@ bun install
|
|
|
86
78
|
bun run install:opencode-plugin # installs to .opencode/plugins/ in CWD
|
|
87
79
|
```
|
|
88
80
|
|
|
89
|
-
|
|
81
|
+
The install script creates the auto-discovery shim, so no config changes needed.
|
|
90
82
|
|
|
91
83
|
The plugin automatically:
|
|
92
84
|
- Injects plan-mode instructions into the agent's system prompt
|
package/package.json
CHANGED
|
@@ -8,7 +8,8 @@ function resolveTargetRoot() {
|
|
|
8
8
|
if (fromArg && fromArg.trim().length > 0) {
|
|
9
9
|
return path.resolve(process.cwd(), fromArg);
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
const configHome = process.env.XDG_CONFIG_HOME || path.join(require("os").homedir(), ".config");
|
|
12
|
+
return path.join(configHome, "opencode", "plugins");
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
function ensureParentDir(dir) {
|
|
@@ -73,8 +74,17 @@ function main() {
|
|
|
73
74
|
);
|
|
74
75
|
}
|
|
75
76
|
|
|
77
|
+
// Create wrapper shim at plugins/open-plan-annotator.ts for OpenCode auto-discovery
|
|
78
|
+
// OpenCode scans plugins/*.{ts,js} but not subdirectories
|
|
79
|
+
const shimPath = path.join(targetRoot, "open-plan-annotator.ts");
|
|
80
|
+
fs.writeFileSync(
|
|
81
|
+
shimPath,
|
|
82
|
+
`export { default } from "./open-plan-annotator/index.ts";\n`,
|
|
83
|
+
);
|
|
84
|
+
console.log(`open-plan-annotator: created loader shim at ${shimPath}`);
|
|
85
|
+
|
|
76
86
|
console.log(
|
|
77
|
-
|
|
87
|
+
"\nThe plugin will be auto-discovered by OpenCode — no config changes needed.",
|
|
78
88
|
);
|
|
79
89
|
}
|
|
80
90
|
|