@firstpick/pi-package-webui 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 +12 -3
- package/bin/pi-webui.mjs +1261 -16
- package/package.json +2 -1
- package/public/app.js +1580 -44
- package/public/index.html +78 -4
- package/public/service-worker.js +1 -1
- package/public/styles.css +655 -31
- package/tests/mobile-static.test.mjs +98 -9
package/README.md
CHANGED
|
@@ -82,7 +82,7 @@ Use the CLI when you want to start the Web UI without first opening terminal Pi:
|
|
|
82
82
|
|
|
83
83
|
```bash
|
|
84
84
|
npm install -g @firstpick/pi-package-webui
|
|
85
|
-
pi-webui
|
|
85
|
+
pi-webui
|
|
86
86
|
```
|
|
87
87
|
|
|
88
88
|
```text
|
|
@@ -92,7 +92,7 @@ pi-webui [options] [-- <pi args...>]
|
|
|
92
92
|
```text
|
|
93
93
|
--host <host> HTTP bind host (default: 127.0.0.1)
|
|
94
94
|
--port <port> HTTP port (default: 31415)
|
|
95
|
-
--cwd <path>
|
|
95
|
+
--cwd <path> Start the first Pi terminal in this working directory
|
|
96
96
|
--pi <command> Pi executable to spawn (default: bundled dependency, then "pi")
|
|
97
97
|
--no-session Start Pi RPC with --no-session
|
|
98
98
|
--name <name> Initial Web UI tab name
|
|
@@ -100,9 +100,12 @@ pi-webui [options] [-- <pi args...>]
|
|
|
100
100
|
-v, --version Print version
|
|
101
101
|
```
|
|
102
102
|
|
|
103
|
+
If `--cwd` is omitted, the server starts first and the browser asks for the first terminal CWD.
|
|
104
|
+
|
|
103
105
|
Examples:
|
|
104
106
|
|
|
105
107
|
```bash
|
|
108
|
+
pi-webui
|
|
106
109
|
pi-webui --cwd ~/src/my-project
|
|
107
110
|
pi-webui --port 3000 -- --model anthropic/claude-sonnet-4-5:high
|
|
108
111
|
PI_WEBUI_PI_BIN=/path/to/pi pi-webui --no-session
|
|
@@ -116,6 +119,7 @@ Environment variables:
|
|
|
116
119
|
|
|
117
120
|
## Main features
|
|
118
121
|
|
|
122
|
+
- Pathless `pi-webui` startup: the server opens first, then the browser prompts for the first terminal CWD.
|
|
119
123
|
- Multi-tab Pi sessions with isolated processes, working directories, prompt drafts, and activity state.
|
|
120
124
|
- Automatic tab naming from the first prompt, with `--name <name>` still available for an explicit initial tab name.
|
|
121
125
|
- Streaming chat transcript with Markdown, thinking output, tool/bash cards, queue and compaction events, and abort controls.
|
|
@@ -124,6 +128,7 @@ Environment variables:
|
|
|
124
128
|
- Model, thinking, session, workspace, theme, optional-feature, Codex usage, network, event, and notification controls in the side panel.
|
|
125
129
|
- Side-panel theme picker backed by optional `@firstpick/pi-themes-bundle` themes when loaded.
|
|
126
130
|
- Per-tab cwd changes, a clickable footer cwd picker, saved path fast picks, server-persisted fast picks, and restart-safe restoration of open tabs.
|
|
131
|
+
- Detected app runner dropdown for the active tab cwd, including Cargo, Bun, npm/npx/pnpm, Python/uv, Go/Golang, Zig, C/C++, Docker Compose, root/dev/scripts shell scripts, and other common project runners with live output pinned at the top of the terminal. Projects can add browseable custom runners in `.pi-webui-runners.json` with a command (default `./`) plus a relative path to the file to run.
|
|
127
132
|
- Browser support for Pi extension UI prompts, widgets, status updates, browser notifications when a tab needs an extension UI response and an optional side-panel toggle for agent-done notifications.
|
|
128
133
|
- Feedback reactions (`👍`, `👎`, `?`) on final assistant output plus tool/bash action cards, which can ask Pi to create or update a LEARNING.
|
|
129
134
|
- Mobile-friendly layout and PWA install support where the browser allows it.
|
|
@@ -168,7 +173,11 @@ The Git workflow button runs local git commands in the active Pi working directo
|
|
|
168
173
|
4. Commit with the selected message
|
|
169
174
|
5. Run `git push`
|
|
170
175
|
|
|
171
|
-
|
|
176
|
+
After the message is generated, **Create PR** asks Pi to generate `dev/COMMIT/staged-branch-name.txt`, lets you confirm or edit the `type/feature-name` branch, then switches with `git switch -c` before committing. In PR mode, choose **Commit short** or **Commit long**, then **Push and Create PR** pushes the branch, sends `/pr`, shows the generated `dev/PR/<branch>.md` description for editing/confirmation, and creates the pull request with `gh pr create`. Use **Manual branch** to skip agent branch-name generation and type the branch directly.
|
|
177
|
+
|
|
178
|
+
Use the workflow process buttons to jump directly to **Stage**, **Message**, **Commit**, or **Push** when earlier work was already completed manually. Selecting **Commit** loads the current generated files from `dev/COMMIT/` before enabling the commit choices. A yellow dot means that process was selected or is available but its action has not completed in this workflow; green means the process action completed.
|
|
179
|
+
|
|
180
|
+
This requires `/git-staged-msg` and `/pr` from `@firstpick/pi-prompts-git-pr`; branch-name generation uses `/git-branch-name` when available and otherwise sends an equivalent inline prompt. Creating the PR also requires an authenticated GitHub CLI (`gh`). Review the generated commit message, branch name, and PR description before committing, pushing, or creating a PR.
|
|
172
181
|
|
|
173
182
|
## Mobile and PWA notes
|
|
174
183
|
|