supipowers 1.2.3 → 1.2.4
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/bin/install.ts +19 -0
- package/package.json +10 -1
package/bin/install.ts
CHANGED
|
@@ -196,6 +196,25 @@ function installToPlatform(platformDir: string, packageRoot: string): string {
|
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
+
// Install dependencies so the extension's runtime imports resolve.
|
|
200
|
+
// Bun installs peer deps by default, which provides @sinclair/typebox
|
|
201
|
+
// and @oh-my-pi/* packages that the extension needs at import time.
|
|
202
|
+
// Without this, the extension fails to load on systems where these
|
|
203
|
+
// packages aren't in Bun's global install (e.g. OMP installed via npm).
|
|
204
|
+
s.message("Installing extension dependencies...");
|
|
205
|
+
const install = run("bun", ["install", "--frozen-lockfile=false"], { cwd: extDir });
|
|
206
|
+
if (install.status !== 0) {
|
|
207
|
+
// Non-fatal: the extension may still work if OMP provides the deps.
|
|
208
|
+
// Log a warning but don't bail — the user might be offline or the
|
|
209
|
+
// registry might be temporarily unreachable.
|
|
210
|
+
note(
|
|
211
|
+
"Could not install extension dependencies.\n" +
|
|
212
|
+
"If /supi commands don't appear in OMP, run:\n" +
|
|
213
|
+
` cd ~/${platformDir}/agent/extensions/supipowers && bun install`,
|
|
214
|
+
"Warning",
|
|
215
|
+
);
|
|
216
|
+
}
|
|
217
|
+
|
|
199
218
|
s.stop(
|
|
200
219
|
installedVersion
|
|
201
220
|
? `supipowers updated to v${VERSION} (${platformDir})`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "supipowers",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"description": "Workflow extension for OMP coding agents.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -43,17 +43,26 @@
|
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@oh-my-pi/pi-coding-agent": "*",
|
|
46
|
+
"@oh-my-pi/pi-ai": "*",
|
|
47
|
+
"@oh-my-pi/pi-tui": "*",
|
|
46
48
|
"@sinclair/typebox": "*"
|
|
47
49
|
},
|
|
48
50
|
"peerDependenciesMeta": {
|
|
49
51
|
"@oh-my-pi/pi-coding-agent": {
|
|
50
52
|
"optional": true
|
|
51
53
|
},
|
|
54
|
+
"@oh-my-pi/pi-ai": {
|
|
55
|
+
"optional": true
|
|
56
|
+
},
|
|
52
57
|
"@oh-my-pi/pi-tui": {
|
|
53
58
|
"optional": true
|
|
59
|
+
},
|
|
60
|
+
"@sinclair/typebox": {
|
|
61
|
+
"optional": true
|
|
54
62
|
}
|
|
55
63
|
},
|
|
56
64
|
"devDependencies": {
|
|
65
|
+
"@oh-my-pi/pi-ai": "latest",
|
|
57
66
|
"@oh-my-pi/pi-coding-agent": "latest",
|
|
58
67
|
"@oh-my-pi/pi-tui": "latest",
|
|
59
68
|
"@sinclair/typebox": "^0.34.48",
|