@pasko70/pibo 1.4.0 → 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.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
|
@@ -1,170 +1,170 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: pibo-docker-system
|
|
3
|
-
description: Use this skill for Pibo Docker Compute System work, isolated implementation, worker worktrees, Chat Web or gateway testing, worker dev auth, browser/CDP validation, resource cleanup, and when coordinating Docker worker use with the github-server-flow strategy.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Pibo Docker Compute System
|
|
7
|
-
|
|
8
|
-
Use Docker compute workers as the isolated execution boundary for Pibo code work, gateway checks, Chat Web validation, browser automation, and end-to-end tests. Keep Docker-specific operating rules here instead of duplicating them in `AGENTS.md`.
|
|
9
|
-
|
|
10
|
-
## Relationship to GitHub flow
|
|
11
|
-
|
|
12
|
-
Use this skill together with `github-server-flow`:
|
|
13
|
-
|
|
14
|
-
- `github-server-flow` owns branch, PR, fork mirror, and release strategy.
|
|
15
|
-
- `pibo-docker-system` owns where implementation and validation run.
|
|
16
|
-
- Normal code work starts from `upstream/dev` on a focused branch, then runs inside a Docker dev worker.
|
|
17
|
-
- Do not use `origin/dev` as a preview or staging branch just to test work. Push focused branches to `origin` and open PRs to `upstream/dev`.
|
|
18
|
-
- Documentation-only edits do not require a Docker worker unless they are coupled to code, build, gateway, or browser validation.
|
|
19
|
-
|
|
20
|
-
### Worker branch pattern
|
|
21
|
-
|
|
22
|
-
`pibo compute dev spawn --worktree <name>` creates or attaches a Git worktree and uses `<name>` as the local branch name. Because container names and worktree names should be simple, prefer a slash-free local worker branch and push it to a slash-based PR branch when ready.
|
|
23
|
-
|
|
24
|
-
Recommended pattern:
|
|
25
|
-
|
|
26
|
-
```bash
|
|
27
|
-
cd /root/code/pibo
|
|
28
|
-
git fetch origin --prune
|
|
29
|
-
git fetch upstream --prune
|
|
30
|
-
|
|
31
|
-
# Use a slash-free local branch/worktree name created from upstream/dev.
|
|
32
|
-
git branch <short-topic> upstream/dev
|
|
33
|
-
pibo compute dev spawn --worktree <short-topic>
|
|
34
|
-
|
|
35
|
-
# Work in the returned worktree, then push as a focused PR branch.
|
|
36
|
-
cd /root/code/pibo/.worktrees/<short-topic>
|
|
37
|
-
git push -u origin HEAD:feature/<short-topic>
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
If the local branch already exists and points at the intended base, `pibo compute dev spawn --worktree <short-topic>` attaches a worktree for it. If it does not exist, the compute CLI creates it from the current checkout, so pre-create the branch from `upstream/dev` when strict upstream-first history matters.
|
|
41
|
-
|
|
42
|
-
## Commands
|
|
43
|
-
|
|
44
|
-
Discover progressively with the CLI first:
|
|
45
|
-
|
|
46
|
-
```bash
|
|
47
|
-
pibo compute --help
|
|
48
|
-
pibo compute dev --help
|
|
49
|
-
pibo compute dev spawn --help
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
Common commands:
|
|
53
|
-
|
|
54
|
-
- `pibo compute spawn [--name <name>]` — create a short-lived worker container. It is useful for isolated checks but does not create the development worktree flow.
|
|
55
|
-
- `pibo compute dev spawn --worktree <name>` — create a long-lived dev worker with a Git worktree and deterministic port block.
|
|
56
|
-
- `pibo compute rebuild` — force a fresh Docker image build.
|
|
57
|
-
- `pibo compute list` / `pibo compute list --all` — inspect worker and dev-worker containers.
|
|
58
|
-
- `pibo compute release <id>` — stop and remove the named worker container. This does not delete the Git worktree.
|
|
59
|
-
- `pibo compute reap --dry-run` — preview worker cleanup.
|
|
60
|
-
- `pibo compute reap --apply` — apply selected cleanup. Dev workers are excluded unless the command explicitly includes them.
|
|
61
|
-
- `pibo compute health` / `pibo compute doctor` — read-only resource health checks.
|
|
62
|
-
- `pibo compute diagnostics` / `pibo compute disk` — read-only Docker disk diagnostics.
|
|
63
|
-
|
|
64
|
-
## Development rule
|
|
65
|
-
|
|
66
|
-
Use a Docker dev worker for Pibo code and feature implementation whenever the compute system is available, especially for:
|
|
67
|
-
|
|
68
|
-
- gateway changes;
|
|
69
|
-
- Chat Web changes;
|
|
70
|
-
- browser automation;
|
|
71
|
-
- auth behavior;
|
|
72
|
-
- runtime/session routing changes;
|
|
73
|
-
- CLI/TUI changes that need realistic user-visible validation;
|
|
74
|
-
- end-to-end checks.
|
|
75
|
-
|
|
76
|
-
Do not edit the host checkout as an experimental workspace for code changes. Do not restart, replace, or run ad hoc host gateways for development unless the user explicitly requests host operations or Docker is unavailable. The host gateway is for observation and production/dev deployment only.
|
|
77
|
-
|
|
78
|
-
## Worker lifecycle
|
|
79
|
-
|
|
80
|
-
1. Start from the GitHub strategy: fetch remotes, create a focused branch from `upstream/dev`, and spawn a dev worker for that branch.
|
|
81
|
-
2. Use the returned worktree for edits.
|
|
82
|
-
3. Use the returned web and CDP ports for app and browser checks.
|
|
83
|
-
4. Run builds/tests inside the worker worktree when the work requires runtime validation.
|
|
84
|
-
5. Release the container with `pibo compute release <id>` when done.
|
|
85
|
-
6. Keep, merge, push, or discard the Git worktree only after review or explicit user approval.
|
|
86
|
-
|
|
87
|
-
Releasing a dev worker removes the container, not the worktree. Worktree deletion is a separate Git cleanup decision.
|
|
88
|
-
|
|
89
|
-
## Gateway and deployment boundaries
|
|
90
|
-
|
|
91
|
-
Host gateways are managed only through the Pibo CLI:
|
|
92
|
-
|
|
93
|
-
```bash
|
|
94
|
-
pibo gateway web status
|
|
95
|
-
pibo gateway web start
|
|
96
|
-
pibo gateway web restart
|
|
97
|
-
pibo gateway dev status
|
|
98
|
-
pibo gateway dev start
|
|
99
|
-
pibo gateway dev restart
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
After Docker validation, use the host dev gateway for host-level testing:
|
|
103
|
-
|
|
104
|
-
```bash
|
|
105
|
-
./scripts/deploy-web-dev.sh
|
|
106
|
-
pibo gateway dev restart
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
The hosted dev Chat URL is host-specific. Set `PIBO_DEV_PUBLIC_URL` or `PIBO_DEV_BASE_URL` in the environment or repo-local `.env.developer-host`; do not hard-code public hostnames in docs, scripts, or skills.
|
|
110
|
-
|
|
111
|
-
Deploy production only after dev testing succeeds and the user approves it:
|
|
112
|
-
|
|
113
|
-
```bash
|
|
114
|
-
./scripts/deploy-web.sh
|
|
115
|
-
pibo gateway web restart
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
If the production gateway restart is blocked because active agent work is running, ask the user before interrupting sessions. Do not bypass the CLI restart guard without explicit confirmation.
|
|
119
|
-
|
|
120
|
-
## Dev auth boundary
|
|
121
|
-
|
|
122
|
-
Dev auth belongs only to Docker workers.
|
|
123
|
-
|
|
124
|
-
- `gateway:web` inside a worker enables dev auth through the Docker entrypoint's internal option.
|
|
125
|
-
- `PIBO_DEV_AUTH` does not enable dev auth for normal host gateways.
|
|
126
|
-
- Never start the host gateway with dev-auth flags or fake-auth infrastructure.
|
|
127
|
-
- The normal host gateway must use Better Auth.
|
|
128
|
-
- Dev-auth web access is loopback-only; if a worker web port is accidentally reached through a public reverse proxy, auth requests are rejected.
|
|
129
|
-
|
|
130
|
-
If auth is needed inside a Docker worker, use the `pibo-debug-auth` skill rather than bypassing auth ad hoc.
|
|
131
|
-
|
|
132
|
-
## Browser and app validation
|
|
133
|
-
|
|
134
|
-
For Chat Web browser debugging while changing Pibo, start from the Docker dev worker when one is available. Use the worker's returned web/CDP ports so browser automation and gateway restarts stay isolated from host gateways.
|
|
135
|
-
|
|
136
|
-
Useful validation evidence includes:
|
|
137
|
-
|
|
138
|
-
- route visited;
|
|
139
|
-
- visible state or DOM assertions;
|
|
140
|
-
- screenshot path;
|
|
141
|
-
- CDP target details;
|
|
142
|
-
- request/response evidence;
|
|
143
|
-
- terminal output for CLI/TUI flows.
|
|
144
|
-
|
|
145
|
-
A gateway healthcheck only proves the service responds. For Web, CLI, TUI, gateway, runtime, auth, or agent-routing work, also verify user-visible behavior when feasible:
|
|
146
|
-
|
|
147
|
-
- Use browser/CDP or browser-use for Web UI flows.
|
|
148
|
-
- Use a pseudo-TTY or interactive shell for Ink/TUI flows.
|
|
149
|
-
- Use the real command, API, router, or persistence path when the default path is locally testable.
|
|
150
|
-
|
|
151
|
-
Fake/demo checks and healthchecks are useful supporting evidence, but do not treat them as final validation for a user-facing default path unless the real path is unavailable or explicitly out of scope.
|
|
152
|
-
|
|
153
|
-
## Resource hygiene
|
|
154
|
-
|
|
155
|
-
- Workers are intended to be bounded and recyclable.
|
|
156
|
-
- Prefer `pibo compute release <id>` when you finish with a worker.
|
|
157
|
-
- Use `pibo compute list --all` to inspect running, stopped, dirty, and OOM-killed workers.
|
|
158
|
-
- Use `pibo compute reap --dry-run` before destructive cleanup.
|
|
159
|
-
- Use `pibo compute health` and `pibo compute diagnostics --json` for read-only resource investigations.
|
|
160
|
-
- Do not delete worktrees just because containers were released. Worktree cleanup must be explicit.
|
|
161
|
-
|
|
162
|
-
## Source docs
|
|
163
|
-
|
|
164
|
-
For exact product requirements and implementation details, read the canonical docs on demand:
|
|
165
|
-
|
|
166
|
-
- `docs/specs/capabilities/docker-compute-workers.md`
|
|
167
|
-
- `docs/specs/capabilities/standalone-docker-runtime.md`
|
|
168
|
-
- `docs/project/compute-browser-resource-operating-model.md`
|
|
169
|
-
- `docs/project/compute-browser-resource-rollout-checklist.md`
|
|
170
|
-
- `src/skills/pibo-debug-auth/SKILL.md`
|
|
1
|
+
---
|
|
2
|
+
name: pibo-docker-system
|
|
3
|
+
description: Use this skill for Pibo Docker Compute System work, isolated implementation, worker worktrees, Chat Web or gateway testing, worker dev auth, browser/CDP validation, resource cleanup, and when coordinating Docker worker use with the github-server-flow strategy.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Pibo Docker Compute System
|
|
7
|
+
|
|
8
|
+
Use Docker compute workers as the isolated execution boundary for Pibo code work, gateway checks, Chat Web validation, browser automation, and end-to-end tests. Keep Docker-specific operating rules here instead of duplicating them in `AGENTS.md`.
|
|
9
|
+
|
|
10
|
+
## Relationship to GitHub flow
|
|
11
|
+
|
|
12
|
+
Use this skill together with `github-server-flow`:
|
|
13
|
+
|
|
14
|
+
- `github-server-flow` owns branch, PR, fork mirror, and release strategy.
|
|
15
|
+
- `pibo-docker-system` owns where implementation and validation run.
|
|
16
|
+
- Normal code work starts from `upstream/dev` on a focused branch, then runs inside a Docker dev worker.
|
|
17
|
+
- Do not use `origin/dev` as a preview or staging branch just to test work. Push focused branches to `origin` and open PRs to `upstream/dev`.
|
|
18
|
+
- Documentation-only edits do not require a Docker worker unless they are coupled to code, build, gateway, or browser validation.
|
|
19
|
+
|
|
20
|
+
### Worker branch pattern
|
|
21
|
+
|
|
22
|
+
`pibo compute dev spawn --worktree <name>` creates or attaches a Git worktree and uses `<name>` as the local branch name. Because container names and worktree names should be simple, prefer a slash-free local worker branch and push it to a slash-based PR branch when ready.
|
|
23
|
+
|
|
24
|
+
Recommended pattern:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
cd /root/code/pibo
|
|
28
|
+
git fetch origin --prune
|
|
29
|
+
git fetch upstream --prune
|
|
30
|
+
|
|
31
|
+
# Use a slash-free local branch/worktree name created from upstream/dev.
|
|
32
|
+
git branch <short-topic> upstream/dev
|
|
33
|
+
pibo compute dev spawn --worktree <short-topic>
|
|
34
|
+
|
|
35
|
+
# Work in the returned worktree, then push as a focused PR branch.
|
|
36
|
+
cd /root/code/pibo/.worktrees/<short-topic>
|
|
37
|
+
git push -u origin HEAD:feature/<short-topic>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
If the local branch already exists and points at the intended base, `pibo compute dev spawn --worktree <short-topic>` attaches a worktree for it. If it does not exist, the compute CLI creates it from the current checkout, so pre-create the branch from `upstream/dev` when strict upstream-first history matters.
|
|
41
|
+
|
|
42
|
+
## Commands
|
|
43
|
+
|
|
44
|
+
Discover progressively with the CLI first:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
pibo compute --help
|
|
48
|
+
pibo compute dev --help
|
|
49
|
+
pibo compute dev spawn --help
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Common commands:
|
|
53
|
+
|
|
54
|
+
- `pibo compute spawn [--name <name>]` — create a short-lived worker container. It is useful for isolated checks but does not create the development worktree flow.
|
|
55
|
+
- `pibo compute dev spawn --worktree <name>` — create a long-lived dev worker with a Git worktree and deterministic port block.
|
|
56
|
+
- `pibo compute rebuild` — force a fresh Docker image build.
|
|
57
|
+
- `pibo compute list` / `pibo compute list --all` — inspect worker and dev-worker containers.
|
|
58
|
+
- `pibo compute release <id>` — stop and remove the named worker container. This does not delete the Git worktree.
|
|
59
|
+
- `pibo compute reap --dry-run` — preview worker cleanup.
|
|
60
|
+
- `pibo compute reap --apply` — apply selected cleanup. Dev workers are excluded unless the command explicitly includes them.
|
|
61
|
+
- `pibo compute health` / `pibo compute doctor` — read-only resource health checks.
|
|
62
|
+
- `pibo compute diagnostics` / `pibo compute disk` — read-only Docker disk diagnostics.
|
|
63
|
+
|
|
64
|
+
## Development rule
|
|
65
|
+
|
|
66
|
+
Use a Docker dev worker for Pibo code and feature implementation whenever the compute system is available, especially for:
|
|
67
|
+
|
|
68
|
+
- gateway changes;
|
|
69
|
+
- Chat Web changes;
|
|
70
|
+
- browser automation;
|
|
71
|
+
- auth behavior;
|
|
72
|
+
- runtime/session routing changes;
|
|
73
|
+
- CLI/TUI changes that need realistic user-visible validation;
|
|
74
|
+
- end-to-end checks.
|
|
75
|
+
|
|
76
|
+
Do not edit the host checkout as an experimental workspace for code changes. Do not restart, replace, or run ad hoc host gateways for development unless the user explicitly requests host operations or Docker is unavailable. The host gateway is for observation and production/dev deployment only.
|
|
77
|
+
|
|
78
|
+
## Worker lifecycle
|
|
79
|
+
|
|
80
|
+
1. Start from the GitHub strategy: fetch remotes, create a focused branch from `upstream/dev`, and spawn a dev worker for that branch.
|
|
81
|
+
2. Use the returned worktree for edits.
|
|
82
|
+
3. Use the returned web and CDP ports for app and browser checks.
|
|
83
|
+
4. Run builds/tests inside the worker worktree when the work requires runtime validation.
|
|
84
|
+
5. Release the container with `pibo compute release <id>` when done.
|
|
85
|
+
6. Keep, merge, push, or discard the Git worktree only after review or explicit user approval.
|
|
86
|
+
|
|
87
|
+
Releasing a dev worker removes the container, not the worktree. Worktree deletion is a separate Git cleanup decision.
|
|
88
|
+
|
|
89
|
+
## Gateway and deployment boundaries
|
|
90
|
+
|
|
91
|
+
Host gateways are managed only through the Pibo CLI:
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
pibo gateway web status
|
|
95
|
+
pibo gateway web start
|
|
96
|
+
pibo gateway web restart
|
|
97
|
+
pibo gateway dev status
|
|
98
|
+
pibo gateway dev start
|
|
99
|
+
pibo gateway dev restart
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
After Docker validation, use the host dev gateway for host-level testing:
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
./scripts/deploy-web-dev.sh
|
|
106
|
+
pibo gateway dev restart
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
The hosted dev Chat URL is host-specific. Set `PIBO_DEV_PUBLIC_URL` or `PIBO_DEV_BASE_URL` in the environment or repo-local `.env.developer-host`; do not hard-code public hostnames in docs, scripts, or skills.
|
|
110
|
+
|
|
111
|
+
Deploy production only after dev testing succeeds and the user approves it:
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
./scripts/deploy-web.sh
|
|
115
|
+
pibo gateway web restart
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
If the production gateway restart is blocked because active agent work is running, ask the user before interrupting sessions. Do not bypass the CLI restart guard without explicit confirmation.
|
|
119
|
+
|
|
120
|
+
## Dev auth boundary
|
|
121
|
+
|
|
122
|
+
Dev auth belongs only to Docker workers.
|
|
123
|
+
|
|
124
|
+
- `gateway:web` inside a worker enables dev auth through the Docker entrypoint's internal option.
|
|
125
|
+
- `PIBO_DEV_AUTH` does not enable dev auth for normal host gateways.
|
|
126
|
+
- Never start the host gateway with dev-auth flags or fake-auth infrastructure.
|
|
127
|
+
- The normal host gateway must use Better Auth.
|
|
128
|
+
- Dev-auth web access is loopback-only; if a worker web port is accidentally reached through a public reverse proxy, auth requests are rejected.
|
|
129
|
+
|
|
130
|
+
If auth is needed inside a Docker worker, use the `pibo-debug-auth` skill rather than bypassing auth ad hoc.
|
|
131
|
+
|
|
132
|
+
## Browser and app validation
|
|
133
|
+
|
|
134
|
+
For Chat Web browser debugging while changing Pibo, start from the Docker dev worker when one is available. Use the worker's returned web/CDP ports so browser automation and gateway restarts stay isolated from host gateways.
|
|
135
|
+
|
|
136
|
+
Useful validation evidence includes:
|
|
137
|
+
|
|
138
|
+
- route visited;
|
|
139
|
+
- visible state or DOM assertions;
|
|
140
|
+
- screenshot path;
|
|
141
|
+
- CDP target details;
|
|
142
|
+
- request/response evidence;
|
|
143
|
+
- terminal output for CLI/TUI flows.
|
|
144
|
+
|
|
145
|
+
A gateway healthcheck only proves the service responds. For Web, CLI, TUI, gateway, runtime, auth, or agent-routing work, also verify user-visible behavior when feasible:
|
|
146
|
+
|
|
147
|
+
- Use browser/CDP or browser-use for Web UI flows.
|
|
148
|
+
- Use a pseudo-TTY or interactive shell for Ink/TUI flows.
|
|
149
|
+
- Use the real command, API, router, or persistence path when the default path is locally testable.
|
|
150
|
+
|
|
151
|
+
Fake/demo checks and healthchecks are useful supporting evidence, but do not treat them as final validation for a user-facing default path unless the real path is unavailable or explicitly out of scope.
|
|
152
|
+
|
|
153
|
+
## Resource hygiene
|
|
154
|
+
|
|
155
|
+
- Workers are intended to be bounded and recyclable.
|
|
156
|
+
- Prefer `pibo compute release <id>` when you finish with a worker.
|
|
157
|
+
- Use `pibo compute list --all` to inspect running, stopped, dirty, and OOM-killed workers.
|
|
158
|
+
- Use `pibo compute reap --dry-run` before destructive cleanup.
|
|
159
|
+
- Use `pibo compute health` and `pibo compute diagnostics --json` for read-only resource investigations.
|
|
160
|
+
- Do not delete worktrees just because containers were released. Worktree cleanup must be explicit.
|
|
161
|
+
|
|
162
|
+
## Source docs
|
|
163
|
+
|
|
164
|
+
For exact product requirements and implementation details, read the canonical docs on demand:
|
|
165
|
+
|
|
166
|
+
- `docs/specs/capabilities/docker-compute-workers.md`
|
|
167
|
+
- `docs/specs/capabilities/standalone-docker-runtime.md`
|
|
168
|
+
- `docs/project/compute-browser-resource-operating-model.md`
|
|
169
|
+
- `docs/project/compute-browser-resource-rollout-checklist.md`
|
|
170
|
+
- `src/skills/pibo-debug-auth/SKILL.md`
|