@open-plan-annotator/pi-extension 1.5.4 → 1.5.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.
- package/README.md +2 -2
- package/extensions/index.js +5 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -38,13 +38,13 @@ pi install npm:@open-plan-annotator/pi-extension
|
|
|
38
38
|
|
|
39
39
|
The extension package registers:
|
|
40
40
|
|
|
41
|
-
- a `
|
|
41
|
+
- a `annotate_plan` tool, exposed to the model with prompt guidance to call it after drafting a concrete markdown plan and before implementation
|
|
42
42
|
- an `/annotate-plan` command for manual review of the latest assistant message or supplied plan text
|
|
43
43
|
|
|
44
44
|
Typical flow:
|
|
45
45
|
|
|
46
46
|
1. Ask Pi to make a plan before coding.
|
|
47
|
-
2. Pi drafts the plan and calls `
|
|
47
|
+
2. Pi drafts the plan and calls `annotate_plan`.
|
|
48
48
|
3. The browser review UI opens locally.
|
|
49
49
|
4. Approval returns “Plan approved. Continue with implementation.”; requested changes return the serialized annotations as feedback.
|
|
50
50
|
|
package/extensions/index.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
async function loadRegisterPiExtension() {
|
|
2
|
+
// Prefer the workspace-local module so dev edits and tests see the latest
|
|
3
|
+
// source. Falls back to the published `open-plan-annotator` package when the
|
|
4
|
+
// pi-extension is installed standalone (the relative path won't resolve).
|
|
2
5
|
try {
|
|
3
|
-
return await import("
|
|
6
|
+
return await import("../../../shared/piExtension.mjs");
|
|
4
7
|
} catch (error) {
|
|
5
8
|
if (error?.code !== "ERR_MODULE_NOT_FOUND" && error?.code !== "MODULE_NOT_FOUND") {
|
|
6
9
|
throw error;
|
|
7
10
|
}
|
|
8
11
|
|
|
9
|
-
return await import("
|
|
12
|
+
return await import("open-plan-annotator/shared/piExtension.mjs");
|
|
10
13
|
}
|
|
11
14
|
}
|
|
12
15
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-plan-annotator/pi-extension",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Pi extension for open-plan-annotator that adds plan review tools and commands",
|
|
6
6
|
"author": "ndom91",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"README.md"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"open-plan-annotator": "1.5.
|
|
32
|
+
"open-plan-annotator": "1.5.5"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@mariozechner/pi-coding-agent": "*",
|