@open-plan-annotator/pi-extension 1.5.0

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 ADDED
@@ -0,0 +1,5 @@
1
+ # open-plan-annotator Pi Extension
2
+
3
+ Installs the `submit_plan` tool and `/annotate-plan` command for Pi.
4
+
5
+ This package reuses the main `open-plan-annotator` package for the shared plan review flow.
@@ -0,0 +1,16 @@
1
+ async function loadRegisterPiExtension() {
2
+ try {
3
+ return await import("open-plan-annotator/shared/piExtension.mjs");
4
+ } catch (error) {
5
+ if (error?.code !== "ERR_MODULE_NOT_FOUND" && error?.code !== "MODULE_NOT_FOUND") {
6
+ throw error;
7
+ }
8
+
9
+ return await import("../../../shared/piExtension.mjs");
10
+ }
11
+ }
12
+
13
+ export default async function (pi) {
14
+ const { registerPiExtension } = await loadRegisterPiExtension();
15
+ registerPiExtension(pi);
16
+ }
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "@open-plan-annotator/pi-extension",
3
+ "version": "1.5.0",
4
+ "type": "module",
5
+ "description": "Pi extension for open-plan-annotator",
6
+ "license": "MIT",
7
+ "keywords": [
8
+ "pi-package"
9
+ ],
10
+ "main": "extensions/index.js",
11
+ "files": [
12
+ "extensions/",
13
+ "README.md"
14
+ ],
15
+ "dependencies": {
16
+ "open-plan-annotator": "1.5.0"
17
+ },
18
+ "peerDependencies": {
19
+ "@mariozechner/pi-coding-agent": "*",
20
+ "typebox": "*"
21
+ },
22
+ "pi": {
23
+ "extensions": [
24
+ "./extensions"
25
+ ]
26
+ }
27
+ }