@rexvane/piweb 0.3.1 → 0.3.3
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 +9 -15
- package/package.json +2 -3
- package/src/app/globals.css +1 -1
- package/src/components/icons.tsx +1 -2
- package/src/hooks/usePiWeb.ts +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# PiWeb
|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
|
-
<strong>A modern web UI for the Pi Coding Agent
|
|
4
|
+
<strong>A modern web UI for the Pi Coding Agent.</strong>
|
|
5
5
|
</p>
|
|
6
6
|
|
|
7
7
|
<p align="center">
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
---
|
|
16
16
|
|
|
17
|
-
**PiWeb** brings a sleek, feature-rich browser interface to the [pi coding agent](https://github.com/earendil-works/pi) with zero modifications to the core Pi engine. Built with Next.js and Tailwind CSS
|
|
17
|
+
**PiWeb** brings a sleek, feature-rich browser interface to the [pi coding agent](https://github.com/earendil-works/pi) with zero modifications to the core Pi engine. Built with Next.js and Tailwind CSS.
|
|
18
18
|
|
|
19
19
|
## Key Features
|
|
20
20
|
|
|
@@ -39,27 +39,21 @@ npm install -g @rexvane/piweb
|
|
|
39
39
|
piweb
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
A global install prepares the production bundle once (during install, or on the first run if the script was skipped) and then starts in production mode. If that build fails, `piweb` reports it instead of falling back to a development server that cannot work without dev dependencies; retry with `npm rebuild -g @rexvane/piweb`. The package registers
|
|
42
|
+
A global install prepares the production bundle once (during install, or on the first run if the script was skipped) and then starts in production mode. If that build fails, `piweb` reports it instead of falling back to a development server that cannot work without dev dependencies; retry with `npm rebuild -g @rexvane/piweb`. The package registers only the `piweb` command, so it never conflicts with the official `pi` CLI (`npm i -g @earendil-works/pi-coding-agent`) if you have both.
|
|
43
43
|
|
|
44
44
|
### Inside this repository
|
|
45
45
|
|
|
46
|
-
You can launch PiWeb directly from your terminal using `pi web` (case-insensitive: `pi web`, `PI WEB`, `Pi Web`):
|
|
47
|
-
|
|
48
46
|
```bash
|
|
49
|
-
|
|
50
|
-
npm
|
|
51
|
-
|
|
52
|
-
# Launch anywhere in your terminal (case-insensitive)
|
|
53
|
-
pi web
|
|
47
|
+
npm install
|
|
48
|
+
npm run dev # development server with hot reload
|
|
54
49
|
```
|
|
55
50
|
|
|
56
|
-
|
|
51
|
+
Or run a production build locally:
|
|
57
52
|
|
|
58
53
|
```bash
|
|
59
|
-
|
|
60
|
-
npm run
|
|
61
|
-
#
|
|
62
|
-
npm start
|
|
54
|
+
npm install
|
|
55
|
+
npm run build # or: npm run build:release (staged, does not touch a running build)
|
|
56
|
+
npm start # serves on http://127.0.0.1:30141 (auto-increments if busy)
|
|
63
57
|
```
|
|
64
58
|
|
|
65
59
|
### CLI Options (`bin/piweb.js`)
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rexvane/piweb",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"description": "
|
|
6
|
+
"description": "Modern web UI for the pi coding agent, driven by the official pi SDK without modifying pi",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "git+https://github.com/RexVane/PiWeb.git"
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
"cli"
|
|
22
22
|
],
|
|
23
23
|
"bin": {
|
|
24
|
-
"pi": "bin/pi.js",
|
|
25
24
|
"piweb": "bin/piweb.js"
|
|
26
25
|
},
|
|
27
26
|
"files": [
|
package/src/app/globals.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@import "tailwindcss";
|
|
2
2
|
|
|
3
3
|
/* ============================================================
|
|
4
|
-
Pi Web 视觉令牌
|
|
4
|
+
Pi Web 视觉令牌
|
|
5
5
|
浅色默认,深色用 body[data-ds-dark-theme]
|
|
6
6
|
============================================================ */
|
|
7
7
|
|
package/src/components/icons.tsx
CHANGED
package/src/hooks/usePiWeb.ts
CHANGED
|
@@ -846,7 +846,7 @@ export function usePiWeb() {
|
|
|
846
846
|
presetRestorePromiseRef.current = restore;
|
|
847
847
|
}, [currentId, snapshotEpoch, state.connected, state.snapshot, sendCommand]);
|
|
848
848
|
|
|
849
|
-
//
|
|
849
|
+
// 会话可见性规则:当前会话豁免归档过滤——归档当前会话不关闭、
|
|
850
850
|
// 主列表保持可见可聊,已归档区也不显示它(取消归档前菜单按真实归档态切换)。
|
|
851
851
|
const visibleSessions = useMemo(() => {
|
|
852
852
|
const set = new Set(archivedSessionPaths.map(pathKey));
|