@pasko70/pibo 1.4.1 → 1.4.2
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 +183 -183
- package/context/codex-base-prompt.md +148 -148
- package/context/compute-worker.md +23 -23
- package/context/pibo-compaction-prompt.md +100 -100
- package/context/pibo-native-tooling.md +18 -18
- package/context/pibo-system-prompt.md +77 -77
- package/dist/apps/chat/agent-store.js +82 -82
- package/dist/apps/chat/data/project-service.js +166 -166
- package/dist/apps/chat/data/read-state-service.js +18 -18
- package/dist/apps/chat/data/timeline-query-service.js +8 -8
- package/dist/apps/chat/model-catalog.js +5 -1
- package/dist/apps/chat/static-assets.js +853 -853
- package/dist/apps/chat/workflow-persistence.js +255 -255
- package/dist/apps/chat-ui/assets/{dist-7YaJd19a.js → dist-B2BEpL7n.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-CiYeO8nN.js → dist-BAGS_xkV.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-BIvPnn_C.js → dist-BAXNalar.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-CjSI6y5z.js → dist-BwUvs6Ph.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-Ubstha8t.js → dist-C0zsJ8II.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-KXCMNKIL.js → dist-C3PnEkhb.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-CVQU42Fn.js → dist-CYPL-B2Z.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-BbNE72h8.js → dist-CiDSXgtg.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-D7TCkoFT.js → dist-DnACFKyO.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-ChSZNqKE.js → dist-ZB1-ui2y.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-8Noo5eCN.js → dist-vKlxFkTa.js} +1 -1
- package/dist/apps/chat-ui/assets/{index-CmxtUVG1.js → index-0x7tuTNX.js} +3 -3
- package/dist/apps/chat-ui/assets/{index-C25VYnyb.css → index-B-qaya1G.css} +1 -1
- package/dist/apps/chat-ui/index.html +18 -18
- package/dist/apps/chat-ui/manifest.webmanifest +25 -25
- package/dist/apps/chat-ui/sw.js +41 -41
- package/dist/apps/chat-vscode-web/index.html +12 -12
- package/dist/apps/cli-ui/cliSessionsCommand.js +23 -23
- package/dist/apps/context-files-ui/index.html +11 -11
- package/dist/apps/vscode-artifacts/latest.vsix +0 -0
- package/dist/apps/vscode-artifacts/{pibo-vscode-ext-1.4.1.vsix → pibo-vscode-ext-1.4.2.vsix} +0 -0
- package/dist/bin/pibo.js +0 -0
- package/dist/bin/rg.js +0 -0
- package/dist/cli.js +35 -35
- package/dist/compute/cli.js +54 -54
- package/dist/core/runtime.js +2 -0
- package/dist/core/session-router.js +1 -0
- package/dist/cron/cli.js +15 -15
- package/dist/cron/store.js +49 -49
- package/dist/data/cli.js +23 -23
- package/dist/data/event-log.js +23 -23
- package/dist/data/message-store.js +20 -20
- package/dist/data/navigation-store.js +9 -9
- package/dist/data/observation-store.js +4 -4
- package/dist/data/payload-store.js +17 -17
- package/dist/data/schema.js +429 -429
- package/dist/data/session-store.js +4 -4
- package/dist/data/telemetry-queries.js +54 -54
- package/dist/data/telemetry.js +156 -156
- package/dist/debug/events.js +12 -12
- package/dist/debug/failures.js +6 -6
- package/dist/debug/index.js +207 -207
- package/dist/debug/messages.js +6 -6
- package/dist/debug/pty.js +124 -124
- package/dist/debug/session.js +29 -29
- package/dist/debug/tools.js +5 -5
- package/dist/debug/web-snapshot-browser-scripts.js +294 -294
- package/dist/debug/web-streaming-browser-library.js +925 -925
- package/dist/debug/web-streaming-browser-scripts.js +232 -232
- package/dist/debug/web-streaming-provider-telemetry.js +4 -4
- package/dist/debug/web.js +93 -93
- package/dist/gateway/cli.js +19 -19
- package/dist/mcp/config-command.js +53 -53
- package/dist/mcp/index.js +21 -21
- package/dist/mcp/registry.js +11 -11
- package/dist/pi-packages/cli.js +11 -11
- package/dist/plugins/context-files-store.js +110 -110
- package/dist/plugins/context-files.js +4 -4
- package/dist/providers/glm.js +59 -0
- package/dist/ralph/cli.js +18 -18
- package/dist/ralph/templates.js +140 -140
- package/dist/reliability/store.js +226 -226
- package/dist/sessions/pibo-data-store.js +16 -16
- package/dist/sessions/sqlite-store.js +53 -53
- package/dist/setup/cli.js +58 -58
- package/dist/tools/agent-browser-wrapper.js +80 -80
- package/dist/tools/browser-use-cdp.js +12 -12
- package/dist/tools/browser-use-wrapper.js +762 -762
- package/dist/tools/guides.js +455 -455
- package/dist/tools/index.js +99 -99
- package/dist/tools/runtime/node-worker-source.js +205 -205
- package/dist/tools/runtime/python-worker-source.js +177 -177
- package/dist/vscode/cli.js +9 -9
- package/dist/web-annotations/cdp.js +900 -900
- package/dist/web-annotations/store.js +96 -96
- package/docs/README.md +23 -23
- package/docs/ops/install-developer-host.md +112 -112
- package/docs/ops/install-user-host.md +96 -96
- package/docs/ops/upgrade-user-to-developer-host.md +69 -69
- package/docs/ops/vscode-extension-release.md +160 -160
- package/package.json +1 -1
- package/skills/builtin/pi-agent-harness/SKILL.md +319 -319
- package/skills/builtin/pi-agent-harness/agents/openai.yaml +4 -4
- package/skills/builtin/pibo-docker-system/SKILL.md +170 -170
- package/skills/builtin/pibo-spec-writing/SKILL.md +330 -330
- package/skills/builtin/prd/SKILL.md +143 -143
- package/skills/builtin/ralph-loop/SKILL.md +359 -359
- package/skills/builtin/ralph-prd-json/SKILL.md +123 -123
- package/skills/builtin/skill-creator/LICENSE.txt +201 -201
- package/skills/builtin/skill-creator/SKILL.md +513 -513
- package/skills/builtin/skill-creator/agents/analyzer.md +274 -274
- package/skills/builtin/skill-creator/agents/comparator.md +202 -202
- package/skills/builtin/skill-creator/agents/grader.md +223 -223
- package/skills/builtin/skill-creator/assets/eval_review.html +146 -146
- package/skills/builtin/skill-creator/eval-viewer/generate_review.py +471 -471
- package/skills/builtin/skill-creator/eval-viewer/viewer.html +1325 -1325
- package/skills/builtin/skill-creator/references/schemas.md +430 -430
- package/skills/builtin/skill-creator/scripts/aggregate_benchmark.py +401 -401
- package/skills/builtin/skill-creator/scripts/generate_report.py +326 -326
- package/skills/builtin/skill-creator/scripts/improve_description.py +247 -247
- package/skills/builtin/skill-creator/scripts/package_skill.py +136 -136
- package/skills/builtin/skill-creator/scripts/quick_validate.py +102 -102
- package/skills/builtin/skill-creator/scripts/run_eval.py +310 -310
- package/skills/builtin/skill-creator/scripts/run_loop.py +328 -328
- package/skills/builtin/skill-creator/scripts/utils.py +47 -47
- package/skills/builtin/web-annotations/SKILL.md +93 -93
- package/src/mcp/LICENSE.mcp-cli +21 -21
- package/dist/apps/vscode-artifacts/pibo-vscode-1.3.0.vsix +0 -0
- package/dist/apps/vscode-artifacts/pibo-vscode-ext-1.3.3.vsix +0 -0
- package/dist/apps/vscode-artifacts/pibo-vscode-ext-1.3.4.vsix +0 -0
- package/dist/apps/vscode-artifacts/pibo-vscode-ext-1.3.5.vsix +0 -0
- package/dist/core/shared-app.js +0 -17
- package/dist/data/final-app-space-cutover-migration.js +0 -728
- package/dist/data/shared-app-migration.js +0 -757
- package/dist/session-ui/ownerViewModel.js +0 -27
- package/dist/shared-app.js +0 -4
package/README.md
CHANGED
|
@@ -1,183 +1,183 @@
|
|
|
1
|
-
# pibo
|
|
2
|
-
|
|
3
|
-
Pibo is a thin product boundary around Pi Coding Agent. Pi remains the inner engine for model turns, tools, streaming, sessions, and compaction. Pibo adds profiles, plugins, channels, local gateways, web auth, and operator tooling.
|
|
4
|
-
|
|
5
|
-
The default posture is intentionally powerful: Pibo is built for agentic coding and server operation, not for a restrictive sandbox. Install and run it as the Linux user that should own its state and credentials.
|
|
6
|
-
|
|
7
|
-
## Supported platforms
|
|
8
|
-
|
|
9
|
-
Pibo is Linux-first. The supported hosts are:
|
|
10
|
-
|
|
11
|
-
- **Linux** (any modern distribution) — primary target
|
|
12
|
-
- **macOS** — supported, same code path as Linux
|
|
13
|
-
- **Windows via WSL2** — fully supported; see [docs/guides/pibo-on-windows-via-wsl.md](./docs/guides/pibo-on-windows-via-wsl.md)
|
|
14
|
-
- **Native Windows** — not supported; `pibo setup doctor` and `pibo setup user-host` will print a clear error pointing to the WSL guide
|
|
15
|
-
|
|
16
|
-
## Install
|
|
17
|
-
|
|
18
|
-
Pibo is distributed as an npm package:
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
|
-
npm install -g @pasko70/pibo
|
|
22
|
-
pibo --help
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
The current package declares Node.js 24+. Some Linux distributions still ship Node 22 through `apt`, so install a recent Node release first when needed. A user-local Node/npm setup through `nvm`, `fnm`, or a user-writable npm prefix works well.
|
|
26
|
-
|
|
27
|
-
For a user-local global npm prefix:
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
mkdir -p ~/.local
|
|
31
|
-
npm config set prefix ~/.local
|
|
32
|
-
export PATH="$HOME/.local/bin:$PATH"
|
|
33
|
-
npm install -g @pasko70/pibo
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
## State and user paths
|
|
37
|
-
|
|
38
|
-
Pibo stores product-wide state under:
|
|
39
|
-
|
|
40
|
-
```text
|
|
41
|
-
${PIBO_HOME:-~/.pibo}
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
That means the executing Linux user owns the installation state:
|
|
45
|
-
|
|
46
|
-
```text
|
|
47
|
-
alice -> /home/alice/.pibo
|
|
48
|
-
pibo -> /home/pibo/.pibo
|
|
49
|
-
root -> /root/.pibo
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
There is no requirement to run as `root`. If you SSH as root and run Pibo, state naturally lands in `/root/.pibo`. If you create or use a dedicated user, state lands in that user's home. This is the preferred way to keep SSH keys, config, logs, and sessions separated.
|
|
53
|
-
|
|
54
|
-
Workspace-scoped files are separate and live under the active workspace:
|
|
55
|
-
|
|
56
|
-
```text
|
|
57
|
-
<workspace>/.pibo
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
Examples include custom prompts and Pi package registrations.
|
|
61
|
-
|
|
62
|
-
## Server notes
|
|
63
|
-
|
|
64
|
-
A fresh server install usually needs only three decisions:
|
|
65
|
-
|
|
66
|
-
1. Choose the Linux user that should own Pibo.
|
|
67
|
-
2. Install Node.js 24+ for that user or system-wide.
|
|
68
|
-
3. Install Pibo through npm.
|
|
69
|
-
|
|
70
|
-
Use the setup planner to keep the first run simple:
|
|
71
|
-
|
|
72
|
-
```bash
|
|
73
|
-
pibo setup doctor --domain pibo.example.com --expected-ip <server-ip>
|
|
74
|
-
pibo setup user-host --domain pibo.example.com --print-files
|
|
75
|
-
pibo setup user-host --domain pibo.example.com --write-to /tmp/pibo-setup
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
This is the normal user path: one gateway, one `PIBO_HOME`, no required Docker, no dev gateway, and no GitHub App setup. After reviewing staged files, use `--apply --yes` to write the generated systemd/Caddy files.
|
|
79
|
-
|
|
80
|
-
Developer hosts are opt-in and add production/dev separation plus Docker compute workers:
|
|
81
|
-
|
|
82
|
-
```bash
|
|
83
|
-
pibo setup developer-host \
|
|
84
|
-
--origin git@github.com:<your-fork>/pibo.git \
|
|
85
|
-
--prod-domain pibo.example.com \
|
|
86
|
-
--dev-domain dev.pibo.example.com \
|
|
87
|
-
--print-files
|
|
88
|
-
|
|
89
|
-
pibo setup developer-host \
|
|
90
|
-
--origin git@github.com:<your-fork>/pibo.git \
|
|
91
|
-
--prod-domain pibo.example.com \
|
|
92
|
-
--dev-domain dev.pibo.example.com \
|
|
93
|
-
--write-to /tmp/pibo-setup
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
See `docs/ops/install-user-host.md`, `docs/ops/install-developer-host.md`, and `docs/ops/upgrade-user-to-developer-host.md`. Developer-host services are source-pinned so production and dev do not fight over one global `pibo` symlink. Docker and swap are developer-host prerequisites only; verify them with `pibo setup doctor --require-docker --min-swap-gb 8`.
|
|
97
|
-
|
|
98
|
-
If the agent should be able to perform server administration, give that Linux user the required sudo or Docker permissions explicitly. Pibo does not need a special onboarding user to work correctly; normal Unix ownership is enough.
|
|
99
|
-
|
|
100
|
-
## Docker notes
|
|
101
|
-
|
|
102
|
-
Docker is optional. If you run Pibo in a container, avoid hard-coding `/root` unless the container is intentionally root-owned. Prefer mapping the host user's state into the container user's home:
|
|
103
|
-
|
|
104
|
-
```text
|
|
105
|
-
$HOME/.pibo -> /home/pibo/.pibo
|
|
106
|
-
$HOME/code -> /workspace/code
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
Set `HOME` and `PIBO_HOME` consistently inside the container so the same path rule applies:
|
|
110
|
-
|
|
111
|
-
```text
|
|
112
|
-
HOME=/home/pibo
|
|
113
|
-
PIBO_HOME=/home/pibo/.pibo
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
## Web gateway auth
|
|
117
|
-
|
|
118
|
-
`pibo gateway:web` starts the authenticated web runtime. It requires Better Auth configuration before production use. This step is intentionally not automated because you must create/select the Google OAuth client and allowed user list:
|
|
119
|
-
|
|
120
|
-
```bash
|
|
121
|
-
pibo config set auth.baseURL https://your-host.example
|
|
122
|
-
pibo config set auth.secret <at-least-32-characters>
|
|
123
|
-
pibo config set auth.googleClientId <google-client-id>
|
|
124
|
-
pibo config set auth.googleClientSecret <google-client-secret>
|
|
125
|
-
pibo config set auth.allowedEmails you@example.com
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
For local loopback testing, `auth.baseURL` can be `http://localhost:4788`.
|
|
129
|
-
|
|
130
|
-
## Development from source
|
|
131
|
-
|
|
132
|
-
Use source installs for development, not normal usage:
|
|
133
|
-
|
|
134
|
-
```bash
|
|
135
|
-
git clone git@github.com:Pascapone-server/pibo.git
|
|
136
|
-
cd pibo
|
|
137
|
-
npm install
|
|
138
|
-
npm run build
|
|
139
|
-
npm run start -- --help
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
Useful scripts:
|
|
143
|
-
|
|
144
|
-
```bash
|
|
145
|
-
npm run dev -- --help
|
|
146
|
-
npm run profile -- codex
|
|
147
|
-
npm run tui:routed -- codex
|
|
148
|
-
npm run gateway
|
|
149
|
-
npm run gateway:web
|
|
150
|
-
npm test
|
|
151
|
-
npm run typecheck
|
|
152
|
-
```
|
|
153
|
-
|
|
154
|
-
## Main CLI areas
|
|
155
|
-
|
|
156
|
-
```bash
|
|
157
|
-
pibo config # local config under ${PIBO_HOME:-~/.pibo}/config.json
|
|
158
|
-
pibo mcp # discover and call configured MCP servers
|
|
159
|
-
pibo tools # install and inspect curated external CLI tools
|
|
160
|
-
pibo pi-packages # register Pi Coding Agent packages
|
|
161
|
-
pibo debug # inspect local Pibo data stores
|
|
162
|
-
pibo setup # plan user-host installs and developer-host upgrades
|
|
163
|
-
pibo profile # inspect runtime profiles
|
|
164
|
-
pibo tui # start the direct Pi TUI
|
|
165
|
-
pibo tui:routed # start the routed Pibo TUI
|
|
166
|
-
pibo gateway # local gateway runtime
|
|
167
|
-
pibo gateway:web # authenticated web gateway runtime
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
## Further docs
|
|
171
|
-
|
|
172
|
-
- `docs/architecture.md` describes runtime architecture and boundaries.
|
|
173
|
-
- `docs/mcp.md` documents MCP configuration and commands.
|
|
174
|
-
- `docs/tools.md` documents curated external CLI tools.
|
|
175
|
-
- `docs/pi-packages.md` documents Pi package registration.
|
|
176
|
-
- `docs/chat-rooms-event-log.md` documents Chat Web rooms and durable event storage.
|
|
177
|
-
- `docs/progress.md` is the short implementation status snapshot.
|
|
178
|
-
|
|
179
|
-
## Philosophy
|
|
180
|
-
|
|
181
|
-
Keep Pibo thin. Pi Coding Agent should remain the inner engine; Pibo owns only the product boundary: profiles, plugins, channels, routing, auth, policy, and operator tooling.
|
|
182
|
-
|
|
183
|
-
Optional integrations should stay outside the core package until installed. MCP servers, Python virtual environments, external CLIs, and user skills are configured on demand rather than bundled into every runtime.
|
|
1
|
+
# pibo
|
|
2
|
+
|
|
3
|
+
Pibo is a thin product boundary around Pi Coding Agent. Pi remains the inner engine for model turns, tools, streaming, sessions, and compaction. Pibo adds profiles, plugins, channels, local gateways, web auth, and operator tooling.
|
|
4
|
+
|
|
5
|
+
The default posture is intentionally powerful: Pibo is built for agentic coding and server operation, not for a restrictive sandbox. Install and run it as the Linux user that should own its state and credentials.
|
|
6
|
+
|
|
7
|
+
## Supported platforms
|
|
8
|
+
|
|
9
|
+
Pibo is Linux-first. The supported hosts are:
|
|
10
|
+
|
|
11
|
+
- **Linux** (any modern distribution) — primary target
|
|
12
|
+
- **macOS** — supported, same code path as Linux
|
|
13
|
+
- **Windows via WSL2** — fully supported; see [docs/guides/pibo-on-windows-via-wsl.md](./docs/guides/pibo-on-windows-via-wsl.md)
|
|
14
|
+
- **Native Windows** — not supported; `pibo setup doctor` and `pibo setup user-host` will print a clear error pointing to the WSL guide
|
|
15
|
+
|
|
16
|
+
## Install
|
|
17
|
+
|
|
18
|
+
Pibo is distributed as an npm package:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npm install -g @pasko70/pibo
|
|
22
|
+
pibo --help
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
The current package declares Node.js 24+. Some Linux distributions still ship Node 22 through `apt`, so install a recent Node release first when needed. A user-local Node/npm setup through `nvm`, `fnm`, or a user-writable npm prefix works well.
|
|
26
|
+
|
|
27
|
+
For a user-local global npm prefix:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
mkdir -p ~/.local
|
|
31
|
+
npm config set prefix ~/.local
|
|
32
|
+
export PATH="$HOME/.local/bin:$PATH"
|
|
33
|
+
npm install -g @pasko70/pibo
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## State and user paths
|
|
37
|
+
|
|
38
|
+
Pibo stores product-wide state under:
|
|
39
|
+
|
|
40
|
+
```text
|
|
41
|
+
${PIBO_HOME:-~/.pibo}
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
That means the executing Linux user owns the installation state:
|
|
45
|
+
|
|
46
|
+
```text
|
|
47
|
+
alice -> /home/alice/.pibo
|
|
48
|
+
pibo -> /home/pibo/.pibo
|
|
49
|
+
root -> /root/.pibo
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
There is no requirement to run as `root`. If you SSH as root and run Pibo, state naturally lands in `/root/.pibo`. If you create or use a dedicated user, state lands in that user's home. This is the preferred way to keep SSH keys, config, logs, and sessions separated.
|
|
53
|
+
|
|
54
|
+
Workspace-scoped files are separate and live under the active workspace:
|
|
55
|
+
|
|
56
|
+
```text
|
|
57
|
+
<workspace>/.pibo
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Examples include custom prompts and Pi package registrations.
|
|
61
|
+
|
|
62
|
+
## Server notes
|
|
63
|
+
|
|
64
|
+
A fresh server install usually needs only three decisions:
|
|
65
|
+
|
|
66
|
+
1. Choose the Linux user that should own Pibo.
|
|
67
|
+
2. Install Node.js 24+ for that user or system-wide.
|
|
68
|
+
3. Install Pibo through npm.
|
|
69
|
+
|
|
70
|
+
Use the setup planner to keep the first run simple:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
pibo setup doctor --domain pibo.example.com --expected-ip <server-ip>
|
|
74
|
+
pibo setup user-host --domain pibo.example.com --print-files
|
|
75
|
+
pibo setup user-host --domain pibo.example.com --write-to /tmp/pibo-setup
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
This is the normal user path: one gateway, one `PIBO_HOME`, no required Docker, no dev gateway, and no GitHub App setup. After reviewing staged files, use `--apply --yes` to write the generated systemd/Caddy files.
|
|
79
|
+
|
|
80
|
+
Developer hosts are opt-in and add production/dev separation plus Docker compute workers:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
pibo setup developer-host \
|
|
84
|
+
--origin git@github.com:<your-fork>/pibo.git \
|
|
85
|
+
--prod-domain pibo.example.com \
|
|
86
|
+
--dev-domain dev.pibo.example.com \
|
|
87
|
+
--print-files
|
|
88
|
+
|
|
89
|
+
pibo setup developer-host \
|
|
90
|
+
--origin git@github.com:<your-fork>/pibo.git \
|
|
91
|
+
--prod-domain pibo.example.com \
|
|
92
|
+
--dev-domain dev.pibo.example.com \
|
|
93
|
+
--write-to /tmp/pibo-setup
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
See `docs/ops/install-user-host.md`, `docs/ops/install-developer-host.md`, and `docs/ops/upgrade-user-to-developer-host.md`. Developer-host services are source-pinned so production and dev do not fight over one global `pibo` symlink. Docker and swap are developer-host prerequisites only; verify them with `pibo setup doctor --require-docker --min-swap-gb 8`.
|
|
97
|
+
|
|
98
|
+
If the agent should be able to perform server administration, give that Linux user the required sudo or Docker permissions explicitly. Pibo does not need a special onboarding user to work correctly; normal Unix ownership is enough.
|
|
99
|
+
|
|
100
|
+
## Docker notes
|
|
101
|
+
|
|
102
|
+
Docker is optional. If you run Pibo in a container, avoid hard-coding `/root` unless the container is intentionally root-owned. Prefer mapping the host user's state into the container user's home:
|
|
103
|
+
|
|
104
|
+
```text
|
|
105
|
+
$HOME/.pibo -> /home/pibo/.pibo
|
|
106
|
+
$HOME/code -> /workspace/code
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Set `HOME` and `PIBO_HOME` consistently inside the container so the same path rule applies:
|
|
110
|
+
|
|
111
|
+
```text
|
|
112
|
+
HOME=/home/pibo
|
|
113
|
+
PIBO_HOME=/home/pibo/.pibo
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
## Web gateway auth
|
|
117
|
+
|
|
118
|
+
`pibo gateway:web` starts the authenticated web runtime. It requires Better Auth configuration before production use. This step is intentionally not automated because you must create/select the Google OAuth client and allowed user list:
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
pibo config set auth.baseURL https://your-host.example
|
|
122
|
+
pibo config set auth.secret <at-least-32-characters>
|
|
123
|
+
pibo config set auth.googleClientId <google-client-id>
|
|
124
|
+
pibo config set auth.googleClientSecret <google-client-secret>
|
|
125
|
+
pibo config set auth.allowedEmails you@example.com
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
For local loopback testing, `auth.baseURL` can be `http://localhost:4788`.
|
|
129
|
+
|
|
130
|
+
## Development from source
|
|
131
|
+
|
|
132
|
+
Use source installs for development, not normal usage:
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
git clone git@github.com:Pascapone-server/pibo.git
|
|
136
|
+
cd pibo
|
|
137
|
+
npm install
|
|
138
|
+
npm run build
|
|
139
|
+
npm run start -- --help
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
Useful scripts:
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
npm run dev -- --help
|
|
146
|
+
npm run profile -- codex
|
|
147
|
+
npm run tui:routed -- codex
|
|
148
|
+
npm run gateway
|
|
149
|
+
npm run gateway:web
|
|
150
|
+
npm test
|
|
151
|
+
npm run typecheck
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
## Main CLI areas
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
pibo config # local config under ${PIBO_HOME:-~/.pibo}/config.json
|
|
158
|
+
pibo mcp # discover and call configured MCP servers
|
|
159
|
+
pibo tools # install and inspect curated external CLI tools
|
|
160
|
+
pibo pi-packages # register Pi Coding Agent packages
|
|
161
|
+
pibo debug # inspect local Pibo data stores
|
|
162
|
+
pibo setup # plan user-host installs and developer-host upgrades
|
|
163
|
+
pibo profile # inspect runtime profiles
|
|
164
|
+
pibo tui # start the direct Pi TUI
|
|
165
|
+
pibo tui:routed # start the routed Pibo TUI
|
|
166
|
+
pibo gateway # local gateway runtime
|
|
167
|
+
pibo gateway:web # authenticated web gateway runtime
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
## Further docs
|
|
171
|
+
|
|
172
|
+
- `docs/architecture.md` describes runtime architecture and boundaries.
|
|
173
|
+
- `docs/mcp.md` documents MCP configuration and commands.
|
|
174
|
+
- `docs/tools.md` documents curated external CLI tools.
|
|
175
|
+
- `docs/pi-packages.md` documents Pi package registration.
|
|
176
|
+
- `docs/chat-rooms-event-log.md` documents Chat Web rooms and durable event storage.
|
|
177
|
+
- `docs/progress.md` is the short implementation status snapshot.
|
|
178
|
+
|
|
179
|
+
## Philosophy
|
|
180
|
+
|
|
181
|
+
Keep Pibo thin. Pi Coding Agent should remain the inner engine; Pibo owns only the product boundary: profiles, plugins, channels, routing, auth, policy, and operator tooling.
|
|
182
|
+
|
|
183
|
+
Optional integrations should stay outside the core package until installed. MCP servers, Python virtual environments, external CLIs, and user skills are configured on demand rather than bundled into every runtime.
|