@preapexis/pi-kit 1.0.12 → 1.0.13
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/extensions/update.ts +6 -17
- package/package.json +1 -1
package/extensions/update.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// cSpell:words preapexis
|
|
1
|
+
// cSpell:words preapexis
|
|
2
2
|
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
3
3
|
|
|
4
4
|
type EventContext = Parameters<Parameters<ExtensionAPI["on"]>[1]>[1];
|
|
@@ -22,24 +22,13 @@ export default function (pi: ExtensionAPI): void {
|
|
|
22
22
|
const options: UpdateOption[] = [
|
|
23
23
|
{
|
|
24
24
|
id: "pi",
|
|
25
|
-
label: "Update Pi
|
|
26
|
-
shell:
|
|
27
|
-
"npm install -g --ignore-scripts @earendil-works/pi-coding-agent@latest"
|
|
25
|
+
label: "Update Pi",
|
|
26
|
+
shell: "pi update"
|
|
28
27
|
},
|
|
29
28
|
{
|
|
30
|
-
id: "
|
|
31
|
-
label: "Update
|
|
29
|
+
id: "extensions",
|
|
30
|
+
label: "Update Pi packages/extensions",
|
|
32
31
|
shell: "pi update --extensions"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
id: "kit-npm",
|
|
36
|
-
label: "Update PreApeXis Pi Kit from npm",
|
|
37
|
-
shell: "pi install npm:@preapexis/pi-kit"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
id: "project-npm",
|
|
41
|
-
label: "Update current project npm packages",
|
|
42
|
-
shell: "npm update"
|
|
43
32
|
}
|
|
44
33
|
];
|
|
45
34
|
|
|
@@ -232,7 +221,7 @@ export default function (pi: ExtensionAPI): void {
|
|
|
232
221
|
}
|
|
233
222
|
|
|
234
223
|
pi.registerCommand("update", {
|
|
235
|
-
description: "Update Pi
|
|
224
|
+
description: "Update Pi or installed Pi packages/extensions",
|
|
236
225
|
handler: async (_args, ctx) => {
|
|
237
226
|
if (!ctx.hasUI) {
|
|
238
227
|
console.log("The /update command requires the Pi UI.");
|