@larose/pi-web 0.3.0 → 0.4.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 +2 -0
- package/extensions/pi-web.ts +17 -0
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -25,6 +25,8 @@ pi-web
|
|
|
25
25
|
|
|
26
26
|
Open <http://127.0.0.1:31415>. Set `PI_WEB_PORT` (or `PORT`) to use another port.
|
|
27
27
|
|
|
28
|
+
The Pi package's `/pi-web` command shows separate-terminal launch instructions; it does not start the server.
|
|
29
|
+
|
|
28
30
|
## Features
|
|
29
31
|
|
|
30
32
|
- Start, resume, rename, and delete Pi sessions from the browser.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
2
|
+
|
|
3
|
+
const help = `Pi Web runs as a separate browser interface.
|
|
4
|
+
|
|
5
|
+
From another terminal, run:
|
|
6
|
+
npx @larose/pi-web
|
|
7
|
+
|
|
8
|
+
Then open http://127.0.0.1:31415.`;
|
|
9
|
+
|
|
10
|
+
export default function piWebExtension(pi: ExtensionAPI): void {
|
|
11
|
+
pi.registerCommand("pi-web", {
|
|
12
|
+
description: "Show how to start Pi Web",
|
|
13
|
+
handler: async (_args, ctx) => {
|
|
14
|
+
ctx.ui.notify(help, "info");
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@larose/pi-web",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Pi, in your browser",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Mathieu Larose",
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
"pi-package"
|
|
14
14
|
],
|
|
15
15
|
"pi": {
|
|
16
|
+
"extensions": [
|
|
17
|
+
"./extensions"
|
|
18
|
+
],
|
|
16
19
|
"image": "https://unpkg.com/@larose/pi-web/screenshots/session.png"
|
|
17
20
|
},
|
|
18
21
|
"publishConfig": {
|
|
@@ -20,6 +23,7 @@
|
|
|
20
23
|
},
|
|
21
24
|
"files": [
|
|
22
25
|
"dist/",
|
|
26
|
+
"extensions/",
|
|
23
27
|
"public/",
|
|
24
28
|
"screenshots/",
|
|
25
29
|
"THIRD_PARTY_LICENSES.md",
|