@pasko70/pibo 1.9.2 → 1.9.4

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.
Files changed (120) hide show
  1. package/README.md +183 -183
  2. package/context/codex-base-prompt.md +148 -148
  3. package/context/compute-worker.md +23 -23
  4. package/context/pibo-compaction-prompt.md +100 -100
  5. package/context/pibo-native-tooling.md +18 -18
  6. package/context/pibo-system-prompt.md +77 -77
  7. package/dist/apps/chat/agent-store.js +248 -248
  8. package/dist/apps/chat/data/project-service.js +168 -168
  9. package/dist/apps/chat/data/read-state-service.js +18 -18
  10. package/dist/apps/chat/data/session-query-service.js +25 -25
  11. package/dist/apps/chat/data/timeline-query-service.js +14 -14
  12. package/dist/apps/chat/static-assets.js +854 -854
  13. package/dist/apps/chat/workflow-persistence.js +255 -255
  14. package/dist/apps/chat-ui/assets/{dist-CjYtD7ZT.js → dist-9a5adSX0.js} +1 -1
  15. package/dist/apps/chat-ui/assets/{dist-9lsp1UpA.js → dist-BJftG-mN.js} +1 -1
  16. package/dist/apps/chat-ui/assets/{dist-2KdPXbMT.js → dist-BmIDFlGO.js} +1 -1
  17. package/dist/apps/chat-ui/assets/{dist-BWbWIOcD.js → dist-CCNYUBAQ.js} +1 -1
  18. package/dist/apps/chat-ui/assets/{dist-Cge8JklW.js → dist-Cmr0ZAV7.js} +1 -1
  19. package/dist/apps/chat-ui/assets/{dist-DFhhiR8M.js → dist-Crc-B1sZ.js} +1 -1
  20. package/dist/apps/chat-ui/assets/{dist-5GM30SQK.js → dist-DHPwmWcR.js} +1 -1
  21. package/dist/apps/chat-ui/assets/{dist-C-5u2QIS.js → dist-U3lqQ0aI.js} +1 -1
  22. package/dist/apps/chat-ui/assets/{dist-Idz5kzy8.js → dist-_poCjCWK.js} +1 -1
  23. package/dist/apps/chat-ui/assets/{dist-Etxmpyxg.js → dist-ffW7mw39.js} +1 -1
  24. package/dist/apps/chat-ui/assets/{dist-BYKMZlI0.js → dist-w2d_3LSu.js} +1 -1
  25. package/dist/apps/chat-ui/assets/{index-BqD_bm7z.js → index-rXMhSu4U.js} +9 -9
  26. package/dist/apps/chat-ui/index.html +17 -17
  27. package/dist/apps/chat-ui/manifest.webmanifest +25 -25
  28. package/dist/apps/chat-ui/sw.js +47 -47
  29. package/dist/apps/chat-vscode-web/assets/index-BAMxIaI_.js +41 -0
  30. package/dist/apps/chat-vscode-web/index.html +13 -13
  31. package/dist/apps/cli-ui/cliSessionsCommand.js +23 -23
  32. package/dist/apps/context-files-ui/index.html +11 -11
  33. package/dist/cli.js +39 -39
  34. package/dist/compute/cli.js +54 -54
  35. package/dist/core/session-router.js +5 -2
  36. package/dist/cron/cli.js +15 -15
  37. package/dist/cron/store.js +49 -49
  38. package/dist/data/cli.js +23 -23
  39. package/dist/data/event-log.js +23 -23
  40. package/dist/data/message-store.js +20 -20
  41. package/dist/data/navigation-store.js +9 -9
  42. package/dist/data/observation-store.js +4 -4
  43. package/dist/data/payload-store.js +17 -17
  44. package/dist/data/schema.js +431 -431
  45. package/dist/data/session-store.js +4 -4
  46. package/dist/data/telemetry-queries.js +54 -54
  47. package/dist/data/telemetry.js +197 -197
  48. package/dist/debug/events.js +12 -12
  49. package/dist/debug/failures.js +6 -6
  50. package/dist/debug/index.js +227 -227
  51. package/dist/debug/messages.js +6 -6
  52. package/dist/debug/pty.js +124 -124
  53. package/dist/debug/session.js +29 -29
  54. package/dist/debug/tools.js +5 -5
  55. package/dist/debug/web-snapshot-browser-scripts.js +294 -294
  56. package/dist/debug/web-streaming-browser-library.js +925 -925
  57. package/dist/debug/web-streaming-browser-scripts.js +232 -232
  58. package/dist/debug/web-streaming-provider-telemetry.js +4 -4
  59. package/dist/debug/web.js +93 -93
  60. package/dist/gateway/cli.js +19 -19
  61. package/dist/mcp/config-command.js +53 -53
  62. package/dist/mcp/index.js +21 -21
  63. package/dist/mcp/registry.js +11 -11
  64. package/dist/pi-packages/cli.js +11 -11
  65. package/dist/plugins/context-files-store.js +110 -110
  66. package/dist/plugins/context-files.js +4 -4
  67. package/dist/ralph/cli.js +18 -18
  68. package/dist/ralph/templates.js +140 -140
  69. package/dist/reliability/store.js +226 -226
  70. package/dist/session-ui/sessionActivity.js +30 -0
  71. package/dist/sessions/pibo-data-store.js +16 -16
  72. package/dist/sessions/sqlite-store.js +53 -53
  73. package/dist/setup/cli.js +58 -58
  74. package/dist/signals/projector.js +26 -11
  75. package/dist/signals/registry.js +41 -0
  76. package/dist/tools/agent-browser-wrapper.js +80 -80
  77. package/dist/tools/browser-use-cdp.js +12 -12
  78. package/dist/tools/browser-use-wrapper.js +762 -762
  79. package/dist/tools/guides.js +538 -538
  80. package/dist/tools/index.js +99 -99
  81. package/dist/tools/runtime/node-worker-source.js +205 -205
  82. package/dist/tools/runtime/python-worker-source.js +177 -177
  83. package/dist/vscode/cli.js +9 -9
  84. package/dist/web-annotations/cdp.js +900 -900
  85. package/dist/web-annotations/store.js +96 -96
  86. package/docs/README.md +23 -23
  87. package/docs/ops/install-developer-host.md +112 -112
  88. package/docs/ops/install-user-host.md +96 -96
  89. package/docs/ops/upgrade-user-to-developer-host.md +69 -69
  90. package/docs/ops/vscode-extension-release.md +160 -160
  91. package/package.json +95 -95
  92. package/skills/builtin/graphify/SKILL.md +52 -52
  93. package/skills/builtin/pi-agent-harness/SKILL.md +319 -319
  94. package/skills/builtin/pi-agent-harness/agents/openai.yaml +4 -4
  95. package/skills/builtin/pibo-docker-system/SKILL.md +170 -170
  96. package/skills/builtin/pibo-spec-writing/SKILL.md +330 -330
  97. package/skills/builtin/prd/SKILL.md +143 -143
  98. package/skills/builtin/ralph-loop/SKILL.md +359 -359
  99. package/skills/builtin/ralph-prd-json/SKILL.md +123 -123
  100. package/skills/builtin/skill-creator/LICENSE.txt +201 -201
  101. package/skills/builtin/skill-creator/SKILL.md +513 -513
  102. package/skills/builtin/skill-creator/agents/analyzer.md +274 -274
  103. package/skills/builtin/skill-creator/agents/comparator.md +202 -202
  104. package/skills/builtin/skill-creator/agents/grader.md +223 -223
  105. package/skills/builtin/skill-creator/assets/eval_review.html +146 -146
  106. package/skills/builtin/skill-creator/eval-viewer/generate_review.py +471 -471
  107. package/skills/builtin/skill-creator/eval-viewer/viewer.html +1325 -1325
  108. package/skills/builtin/skill-creator/references/schemas.md +430 -430
  109. package/skills/builtin/skill-creator/scripts/aggregate_benchmark.py +401 -401
  110. package/skills/builtin/skill-creator/scripts/generate_report.py +326 -326
  111. package/skills/builtin/skill-creator/scripts/improve_description.py +247 -247
  112. package/skills/builtin/skill-creator/scripts/package_skill.py +136 -136
  113. package/skills/builtin/skill-creator/scripts/quick_validate.py +102 -102
  114. package/skills/builtin/skill-creator/scripts/run_eval.py +310 -310
  115. package/skills/builtin/skill-creator/scripts/run_loop.py +328 -328
  116. package/skills/builtin/skill-creator/scripts/utils.py +47 -47
  117. package/skills/builtin/web-annotations/SKILL.md +93 -93
  118. package/src/mcp/LICENSE.mcp-cli +21 -21
  119. package/dist/apps/chat-vscode-web/assets/index-Cst9OUkC.js +0 -41
  120. package/dist/session-ui/activeTurn.js +0 -126
@@ -1,96 +1,96 @@
1
- # Install Pibo as a User Host
2
-
3
- Use this path when you want to run Pibo, not develop Pibo itself.
4
-
5
- ## What this installs
6
-
7
- A user host has one gateway and one data directory:
8
-
9
- ```text
10
- /root/.pibo
11
- pibo-web.service
12
- 127.0.0.1:4788 web app
13
- 127.0.0.1:4789 internal gateway
14
- ```
15
-
16
- It does not require Docker, a dev gateway, a GitHub App, or branch worktrees.
17
-
18
- ## Recommended flow
19
-
20
- ```bash
21
- npm install -g @pasko70/pibo
22
- pibo setup doctor --domain pibo.example.com --expected-ip <server-ip>
23
- pibo setup user-host --domain pibo.example.com --print-files
24
- ```
25
-
26
- Review the generated files before installing them. To stage the exact paths without touching the host, use:
27
-
28
- ```bash
29
- pibo setup user-host --domain pibo.example.com --write-to /tmp/pibo-setup
30
- find /tmp/pibo-setup -type f -maxdepth 5 -print
31
- ```
32
-
33
- After review, apply directly on the host with:
34
-
35
- ```bash
36
- pibo setup user-host --domain pibo.example.com --apply --yes
37
- systemctl daemon-reload
38
- ```
39
-
40
- ## Configure auth
41
-
42
- For a public deployment with Google OAuth:
43
-
44
- ```bash
45
- pibo config set auth.baseURL https://pibo.example.com
46
- pibo config set auth.secret <at-least-32-characters>
47
- pibo config set auth.googleClientId <google-client-id>
48
- pibo config set auth.googleClientSecret <google-client-secret>
49
- pibo config set auth.allowedEmails you@example.com
50
- ```
51
-
52
- For a local development install on a developer laptop, use the local auth mode. This skips Google OAuth and binds the gateway to loopback only:
53
-
54
- ```bash
55
- pibo config set auth.mode local
56
- pibo gateway:web --auth=local
57
- # Open http://localhost:4788/apps/chat and click "Sign in with Google".
58
- # The dev identity dev@pibo.local is auto-attached without OAuth.
59
- ```
60
-
61
- Local auth refuses a non-loopback bind:
62
-
63
- ```bash
64
- pibo gateway:web --auth=local --web-host=0.0.0.0
65
- # Error: --auth=local requires a loopback bind (127.0.0.1, ::1, or localhost).
66
- ```
67
-
68
- Three independent request-time safety layers guard the local auth service. See `docs/specs/capabilities/web-auth-and-same-origin-host.md` REQ-010 and the `pibo-debug-auth` skill for the full model.
69
-
70
- ## Start the gateway
71
-
72
- `pibo-web` will not start until Better Auth config is complete. This cannot be automated because you must create/select your Google OAuth client and allowed user list. Check it first:
73
-
74
- ```bash
75
- pibo setup doctor --pibo-home /root/.pibo
76
- ```
77
-
78
- If auth is incomplete, the doctor prints a hard blocker and the exact missing keys. After installing the rendered systemd unit:
79
-
80
- ```bash
81
- systemctl daemon-reload
82
- systemctl enable --now pibo-web
83
- pibo gateway web status
84
- ```
85
-
86
- If you use Caddy, point DNS at the host before expecting Let's Encrypt to issue a certificate. Local auth mode bypasses the Better Auth requirement and prints a warning instead of a hard blocker.
87
-
88
- ## When not to use this path
89
-
90
- Use the developer-host path if you need:
91
-
92
- - a separate dev gateway;
93
- - Docker compute workers;
94
- - multiple agents working in isolated containers;
95
- - GitHub App PR automation;
96
- - `main` and `dev` branch deployment on the same host.
1
+ # Install Pibo as a User Host
2
+
3
+ Use this path when you want to run Pibo, not develop Pibo itself.
4
+
5
+ ## What this installs
6
+
7
+ A user host has one gateway and one data directory:
8
+
9
+ ```text
10
+ /root/.pibo
11
+ pibo-web.service
12
+ 127.0.0.1:4788 web app
13
+ 127.0.0.1:4789 internal gateway
14
+ ```
15
+
16
+ It does not require Docker, a dev gateway, a GitHub App, or branch worktrees.
17
+
18
+ ## Recommended flow
19
+
20
+ ```bash
21
+ npm install -g @pasko70/pibo
22
+ pibo setup doctor --domain pibo.example.com --expected-ip <server-ip>
23
+ pibo setup user-host --domain pibo.example.com --print-files
24
+ ```
25
+
26
+ Review the generated files before installing them. To stage the exact paths without touching the host, use:
27
+
28
+ ```bash
29
+ pibo setup user-host --domain pibo.example.com --write-to /tmp/pibo-setup
30
+ find /tmp/pibo-setup -type f -maxdepth 5 -print
31
+ ```
32
+
33
+ After review, apply directly on the host with:
34
+
35
+ ```bash
36
+ pibo setup user-host --domain pibo.example.com --apply --yes
37
+ systemctl daemon-reload
38
+ ```
39
+
40
+ ## Configure auth
41
+
42
+ For a public deployment with Google OAuth:
43
+
44
+ ```bash
45
+ pibo config set auth.baseURL https://pibo.example.com
46
+ pibo config set auth.secret <at-least-32-characters>
47
+ pibo config set auth.googleClientId <google-client-id>
48
+ pibo config set auth.googleClientSecret <google-client-secret>
49
+ pibo config set auth.allowedEmails you@example.com
50
+ ```
51
+
52
+ For a local development install on a developer laptop, use the local auth mode. This skips Google OAuth and binds the gateway to loopback only:
53
+
54
+ ```bash
55
+ pibo config set auth.mode local
56
+ pibo gateway:web --auth=local
57
+ # Open http://localhost:4788/apps/chat and click "Sign in with Google".
58
+ # The dev identity dev@pibo.local is auto-attached without OAuth.
59
+ ```
60
+
61
+ Local auth refuses a non-loopback bind:
62
+
63
+ ```bash
64
+ pibo gateway:web --auth=local --web-host=0.0.0.0
65
+ # Error: --auth=local requires a loopback bind (127.0.0.1, ::1, or localhost).
66
+ ```
67
+
68
+ Three independent request-time safety layers guard the local auth service. See `docs/specs/capabilities/web-auth-and-same-origin-host.md` REQ-010 and the `pibo-debug-auth` skill for the full model.
69
+
70
+ ## Start the gateway
71
+
72
+ `pibo-web` will not start until Better Auth config is complete. This cannot be automated because you must create/select your Google OAuth client and allowed user list. Check it first:
73
+
74
+ ```bash
75
+ pibo setup doctor --pibo-home /root/.pibo
76
+ ```
77
+
78
+ If auth is incomplete, the doctor prints a hard blocker and the exact missing keys. After installing the rendered systemd unit:
79
+
80
+ ```bash
81
+ systemctl daemon-reload
82
+ systemctl enable --now pibo-web
83
+ pibo gateway web status
84
+ ```
85
+
86
+ If you use Caddy, point DNS at the host before expecting Let's Encrypt to issue a certificate. Local auth mode bypasses the Better Auth requirement and prints a warning instead of a hard blocker.
87
+
88
+ ## When not to use this path
89
+
90
+ Use the developer-host path if you need:
91
+
92
+ - a separate dev gateway;
93
+ - Docker compute workers;
94
+ - multiple agents working in isolated containers;
95
+ - GitHub App PR automation;
96
+ - `main` and `dev` branch deployment on the same host.
@@ -1,69 +1,69 @@
1
- # Upgrade a User Host to a Developer Host
2
-
3
- A normal npm-installed Pibo host can be upgraded later. The upgrade must preserve the production gateway and add development infrastructure next to it.
4
-
5
- ## Starting point
6
-
7
- ```text
8
- /root/.pibo
9
- pibo-web.service
10
- ```
11
-
12
- ## Target point
13
-
14
- ```text
15
- /root/.pibo unchanged production data
16
- /root/.pibo-dev new development data
17
- /root/code/pibo source checkout on main
18
- /root/code/pibo/.worktrees/dev source worktree on dev
19
- pibo-web.service existing production service
20
- pibo-web-dev.service new development service
21
- Docker installed for compute workers
22
- ```
23
-
24
- ## Plan first
25
-
26
- ```bash
27
- pibo setup developer-host \
28
- --origin git@github.com:<server-or-user-fork>/pibo.git \
29
- --prod-domain pibo.example.com \
30
- --dev-domain dev.pibo.example.com \
31
- --print-files
32
-
33
- pibo setup developer-host \
34
- --origin git@github.com:<server-or-user-fork>/pibo.git \
35
- --prod-domain pibo.example.com \
36
- --dev-domain dev.pibo.example.com \
37
- --write-to /tmp/pibo-setup
38
- ```
39
-
40
- ## Upgrade rules
41
-
42
- - Do not replace `/root/.pibo`.
43
- - Do not stop production unless a user approves it.
44
- - Create `/root/.pibo-dev` separately.
45
- - Keep `pibo-web` on `4788/4789`.
46
- - Start `pibo-web-dev` on `4808/4809`.
47
- - Install Docker only for the developer path.
48
- - Provision swap at the OS level for developer hosts, then verify it with `--min-swap-gb 8`.
49
- - Build each checkout with `npm ci && npm run build`; do not globally install the dev worktree over production.
50
- - Keep generated services pinned to branch-specific entrypoints instead of relying on one mutable global `pibo` symlink.
51
- - Keep `origin` pointed at the host-specific fork.
52
- - Keep `upstream` pointed at `git@github.com:Pascapone/pibo.git`.
53
-
54
- ## Validation
55
-
56
- ```bash
57
- pibo setup doctor --domain pibo.example.com --dev-domain dev.pibo.example.com --expected-ip <server-ip> --require-docker --min-swap-gb 8
58
- pibo gateway web status
59
- PIBO_GATEWAY_DEV_PORT=4808 pibo gateway dev status
60
- docker --version
61
- pibo compute spawn --help
62
- ```
63
-
64
- After DNS is updated, check both browser URLs:
65
-
66
- ```text
67
- https://pibo.example.com/apps/chat
68
- https://dev.pibo.example.com/apps/chat
69
- ```
1
+ # Upgrade a User Host to a Developer Host
2
+
3
+ A normal npm-installed Pibo host can be upgraded later. The upgrade must preserve the production gateway and add development infrastructure next to it.
4
+
5
+ ## Starting point
6
+
7
+ ```text
8
+ /root/.pibo
9
+ pibo-web.service
10
+ ```
11
+
12
+ ## Target point
13
+
14
+ ```text
15
+ /root/.pibo unchanged production data
16
+ /root/.pibo-dev new development data
17
+ /root/code/pibo source checkout on main
18
+ /root/code/pibo/.worktrees/dev source worktree on dev
19
+ pibo-web.service existing production service
20
+ pibo-web-dev.service new development service
21
+ Docker installed for compute workers
22
+ ```
23
+
24
+ ## Plan first
25
+
26
+ ```bash
27
+ pibo setup developer-host \
28
+ --origin git@github.com:<server-or-user-fork>/pibo.git \
29
+ --prod-domain pibo.example.com \
30
+ --dev-domain dev.pibo.example.com \
31
+ --print-files
32
+
33
+ pibo setup developer-host \
34
+ --origin git@github.com:<server-or-user-fork>/pibo.git \
35
+ --prod-domain pibo.example.com \
36
+ --dev-domain dev.pibo.example.com \
37
+ --write-to /tmp/pibo-setup
38
+ ```
39
+
40
+ ## Upgrade rules
41
+
42
+ - Do not replace `/root/.pibo`.
43
+ - Do not stop production unless a user approves it.
44
+ - Create `/root/.pibo-dev` separately.
45
+ - Keep `pibo-web` on `4788/4789`.
46
+ - Start `pibo-web-dev` on `4808/4809`.
47
+ - Install Docker only for the developer path.
48
+ - Provision swap at the OS level for developer hosts, then verify it with `--min-swap-gb 8`.
49
+ - Build each checkout with `npm ci && npm run build`; do not globally install the dev worktree over production.
50
+ - Keep generated services pinned to branch-specific entrypoints instead of relying on one mutable global `pibo` symlink.
51
+ - Keep `origin` pointed at the host-specific fork.
52
+ - Keep `upstream` pointed at `git@github.com:Pascapone/pibo.git`.
53
+
54
+ ## Validation
55
+
56
+ ```bash
57
+ pibo setup doctor --domain pibo.example.com --dev-domain dev.pibo.example.com --expected-ip <server-ip> --require-docker --min-swap-gb 8
58
+ pibo gateway web status
59
+ PIBO_GATEWAY_DEV_PORT=4808 pibo gateway dev status
60
+ docker --version
61
+ pibo compute spawn --help
62
+ ```
63
+
64
+ After DNS is updated, check both browser URLs:
65
+
66
+ ```text
67
+ https://pibo.example.com/apps/chat
68
+ https://dev.pibo.example.com/apps/chat
69
+ ```
@@ -1,160 +1,160 @@
1
- # Pibo VS Code Extension Release Runbook
2
-
3
- The Pibo VS Code extension is shipped as a `.vsix` artifact. This runbook describes the end-to-end release process and the split of responsibilities between the maintainer and the `pibo` release script.
4
-
5
- ## Distribution channels
6
-
7
- The extension is published through two channels that are intentionally separate:
8
-
9
- | Channel | Owner | Cadence | What it carries |
10
- |---|---|---|---|
11
- | npm `@pasko70/pibo` | automated via `npm publish` (or the release script's `--publish-npm` flag) | every `main` commit that includes a version bump | the `pibo` CLI, the gateway, the WebView bundle at `dist/apps/chat-vscode-web/` |
12
- | VS Code Marketplace `pibo.pibo-vscode` | **maintainer uploads the VSIX manually** via <https://marketplace.visualstudio.com/manage> | every release that needs the extension UI updated | the `.vsix` produced by `npm run vscode:package` |
13
-
14
- The npm package and the Marketplace extension are versioned together. The release script bumps both `package.json` (npm) and `src/apps/chat-vscode/package.json` (extension) in one go so the published artifacts stay in lockstep.
15
-
16
- `pibo vscode install` (new since the distribution rework) downloads the VSIX from the GitHub Release for the configured repo (`Pascapone/pibo` by default). When the maintainer also uploads the same VSIX to the Marketplace, both channels serve identical bytes.
17
-
18
- ## Versioning
19
-
20
- - The root `package.json#version` is the npm version. It follows [SemVer](https://semver.org/).
21
- - The extension's `src/apps/chat-vscode/package.json#version` is the Marketplace version. It is kept equal to the npm version (the release script enforces this).
22
- - A SemVer **minor** bump (e.g., `1.2.0` → `1.3.0`) is appropriate when the change is additive and backward-compatible. The distribution rework itself is a minor bump: existing `pibo` users are unaffected, and the new `pibo vscode install` command is opt-in.
23
- - A SemVer **major** bump is reserved for breaking changes to either the public CLI surface or the WebView host↔Web postMessage contract.
24
-
25
- ## Release steps
26
-
27
- The release script does the heavy lifting. The maintainer's job is to review, commit, and push.
28
-
29
- ### 1. Pick the version
30
-
31
- Decide on the next version. For the distribution rework that introduces `pibo vscode install`, the right bump is `1.2.0` → `1.3.0` (new CLI command, new marketplace-ready extension, no breaking changes).
32
-
33
- ### 2. Bump + build + package (local)
34
-
35
- From the repo root:
36
-
37
- ```bash
38
- node scripts/release.mjs --version 1.3.0
39
- ```
40
-
41
- The script:
42
-
43
- 1. Reads the current version from both `package.json` files.
44
- 2. Writes the new version to both files.
45
- 3. Runs `npm run build` (which includes the WebView build).
46
- 4. Runs `npm run vscode:package` to produce `dist/apps/vscode-artifacts/pibo-vscode-1.3.0.vsix` and a stable `latest.vsix` copy.
47
- 5. Prints the VSIX path and size.
48
-
49
- The script does **not** push to git or create a tag. The maintainer reviews the diff and commits it.
50
-
51
- ### 3. Commit and tag
52
-
53
- ```bash
54
- git add package.json src/apps/chat-vscode/package.json
55
- git commit -m "chore(release): bump @pasko70/pibo and pibo.pibo-vscode to 1.3.0"
56
- git tag -a v1.3.0 -m "@pasko70/pibo 1.3.0"
57
- git push origin main
58
- git push origin v1.3.0
59
- ```
60
-
61
- ### 4. Create a GitHub Release with the VSIX attached
62
-
63
- The maintainer's local machine has the `gh` CLI installed:
64
-
65
- ```bash
66
- gh release create v1.3.0 \
67
- dist/apps/vscode-artifacts/pibo-vscode-1.3.0.vsix \
68
- --title "pibo 1.3.0" \
69
- --notes "..."
70
- ```
71
-
72
- In environments where `gh` is not available (e.g. the pibo compute workers),
73
- `scripts/create-github-release.mjs` performs the same action via the Pibo
74
- GitHub App, which has been installed on `Pascapone/pibo` with the
75
- `contents: write` scope. The script accepts the GitHub App credentials from
76
- `PIBO_GITHUB_APP_ID` and `PIBO_GITHUB_APP_KEY` environment variables, or
77
- from the well-known env file at
78
- `/root/.pibo/uploads/github-app.env` (with the PEM key auto-discovered
79
- next to it).
80
-
81
- ```bash
82
- node scripts/create-github-release.mjs \
83
- --tag v1.3.0 \
84
- --asset dist/apps/vscode-artifacts/pibo-vscode-1.3.0.vsix
85
- ```
86
-
87
- Both paths make the VSIX downloadable from a stable URL
88
- (`https://github.com/Pascapone/pibo/releases/download/v1.3.0/pibo-vscode-1.3.0.vsix`).
89
- The `pibo vscode install` command uses the GitHub Releases API to discover
90
- this URL automatically.
91
-
92
- The release script can also do this in one step:
93
-
94
- ```bash
95
- node scripts/release.mjs --version 1.3.0 --create-release
96
- ```
97
-
98
- …if the tag has already been pushed. Internally the release script calls
99
- `scripts/create-github-release.mjs`, so it works in worker environments
100
- without `gh`.
101
-
102
- ### 5. Publish the npm package
103
-
104
- ```bash
105
- npm publish
106
- ```
107
-
108
- Or, in one go with the release script:
109
-
110
- ```bash
111
- node scripts/release.mjs --version 1.3.0 --publish-npm --create-release
112
- ```
113
-
114
- The publish step uploads the `pibo` CLI, the gateway plugins, and the WebView bundle. The Marketplace upload is intentionally **not** automated — see step 6.
115
-
116
- ### 6. Upload the VSIX to the VS Code Marketplace (manual)
117
-
118
- The Marketplace does not currently accept a Personal Access Token from this account (Azure-side provisioning issue). The release is therefore finished by uploading the VSIX through the Marketplace web UI:
119
-
120
- 1. Open <https://marketplace.visualstudio.com/manage>.
121
- 2. Pick the publisher `pibo` (created during the first marketplace publish).
122
- 3. Click **Upload new extension** and select `dist/apps/vscode-artifacts/pibo-vscode-1.3.0.vsix`.
123
- 4. The Marketplace validates the manifest and publishes the extension. The publisher ID is `pibo.pibo-vscode`.
124
-
125
- After the upload, `code --install-extension pibo.pibo-vscode` works for end users.
126
-
127
- ### 7. Verify
128
-
129
- ```bash
130
- pibo vscode install --vsix dist/apps/vscode-artifacts/pibo-vscode-1.3.0.vsix
131
- pibo vscode status
132
- ```
133
-
134
- Confirm that `status` reports `pibo.pibo-vscode@1.3.0` installed via the expected `code` binary, and that the WebView loads the gateway at `http://127.0.0.1:4788/apps/chat-vscode/`.
135
-
136
- ## Rollback
137
-
138
- If a release is broken:
139
-
140
- - **npm**: `npm unpublish @pasko70/pibo@1.3.0` works only within 72 hours of publish. After that, publish `1.3.1` with a fix.
141
- - **VSIX via `pibo vscode install`**: delete the GitHub Release and re-create it with a fixed VSIX. Users who have already installed the extension will not auto-update until they run `pibo vscode install` again.
142
- - **Marketplace**: the Marketplace UI supports un-publishing or un-listing. For a fast fix, upload a corrected `.vsix` with the same version (the Marketplace accepts a re-upload before processing the original).
143
-
144
- ## What ships in the `pibo` npm package
145
-
146
- The `files` whitelist in `package.json` controls what is published:
147
-
148
- - `dist/` — the compiled server, the gateway plugins, the WebView bundles (chat-ui, context-files-ui, chat-vscode-web).
149
- - `context/` — the bundled agent skills.
150
- - `skills/builtin/**` — built-in user skills.
151
- - `docs/ops/**` — operator runbooks.
152
- - `README.md` and `src/mcp/LICENSE.mcp-cli`.
153
-
154
- The `.vsix` is **not** in the npm package. It lives on the GitHub Release and (after the maintainer uploads it) on the VS Code Marketplace.
155
-
156
- ## Why the WebView bundle is in the npm package
157
-
158
- The extension's WebView loads from `http://<gateway>/apps/chat-vscode/`, not from the `.vsix`. The gateway serves the bundle out of `dist/apps/chat-vscode-web/`. If the bundle were not in the npm package, the gateway would return 404 for the WebView and the extension would be unusable.
159
-
160
- Including the bundle in npm costs about 1 MB of disk per `pibo` install and zero runtime cost for users who never open the extension. Users who only use the `pibo` CLI never load the bundle.
1
+ # Pibo VS Code Extension Release Runbook
2
+
3
+ The Pibo VS Code extension is shipped as a `.vsix` artifact. This runbook describes the end-to-end release process and the split of responsibilities between the maintainer and the `pibo` release script.
4
+
5
+ ## Distribution channels
6
+
7
+ The extension is published through two channels that are intentionally separate:
8
+
9
+ | Channel | Owner | Cadence | What it carries |
10
+ |---|---|---|---|
11
+ | npm `@pasko70/pibo` | automated via `npm publish` (or the release script's `--publish-npm` flag) | every `main` commit that includes a version bump | the `pibo` CLI, the gateway, the WebView bundle at `dist/apps/chat-vscode-web/` |
12
+ | VS Code Marketplace `pibo.pibo-vscode` | **maintainer uploads the VSIX manually** via <https://marketplace.visualstudio.com/manage> | every release that needs the extension UI updated | the `.vsix` produced by `npm run vscode:package` |
13
+
14
+ The npm package and the Marketplace extension are versioned together. The release script bumps both `package.json` (npm) and `src/apps/chat-vscode/package.json` (extension) in one go so the published artifacts stay in lockstep.
15
+
16
+ `pibo vscode install` (new since the distribution rework) downloads the VSIX from the GitHub Release for the configured repo (`Pascapone/pibo` by default). When the maintainer also uploads the same VSIX to the Marketplace, both channels serve identical bytes.
17
+
18
+ ## Versioning
19
+
20
+ - The root `package.json#version` is the npm version. It follows [SemVer](https://semver.org/).
21
+ - The extension's `src/apps/chat-vscode/package.json#version` is the Marketplace version. It is kept equal to the npm version (the release script enforces this).
22
+ - A SemVer **minor** bump (e.g., `1.2.0` → `1.3.0`) is appropriate when the change is additive and backward-compatible. The distribution rework itself is a minor bump: existing `pibo` users are unaffected, and the new `pibo vscode install` command is opt-in.
23
+ - A SemVer **major** bump is reserved for breaking changes to either the public CLI surface or the WebView host↔Web postMessage contract.
24
+
25
+ ## Release steps
26
+
27
+ The release script does the heavy lifting. The maintainer's job is to review, commit, and push.
28
+
29
+ ### 1. Pick the version
30
+
31
+ Decide on the next version. For the distribution rework that introduces `pibo vscode install`, the right bump is `1.2.0` → `1.3.0` (new CLI command, new marketplace-ready extension, no breaking changes).
32
+
33
+ ### 2. Bump + build + package (local)
34
+
35
+ From the repo root:
36
+
37
+ ```bash
38
+ node scripts/release.mjs --version 1.3.0
39
+ ```
40
+
41
+ The script:
42
+
43
+ 1. Reads the current version from both `package.json` files.
44
+ 2. Writes the new version to both files.
45
+ 3. Runs `npm run build` (which includes the WebView build).
46
+ 4. Runs `npm run vscode:package` to produce `dist/apps/vscode-artifacts/pibo-vscode-1.3.0.vsix` and a stable `latest.vsix` copy.
47
+ 5. Prints the VSIX path and size.
48
+
49
+ The script does **not** push to git or create a tag. The maintainer reviews the diff and commits it.
50
+
51
+ ### 3. Commit and tag
52
+
53
+ ```bash
54
+ git add package.json src/apps/chat-vscode/package.json
55
+ git commit -m "chore(release): bump @pasko70/pibo and pibo.pibo-vscode to 1.3.0"
56
+ git tag -a v1.3.0 -m "@pasko70/pibo 1.3.0"
57
+ git push origin main
58
+ git push origin v1.3.0
59
+ ```
60
+
61
+ ### 4. Create a GitHub Release with the VSIX attached
62
+
63
+ The maintainer's local machine has the `gh` CLI installed:
64
+
65
+ ```bash
66
+ gh release create v1.3.0 \
67
+ dist/apps/vscode-artifacts/pibo-vscode-1.3.0.vsix \
68
+ --title "pibo 1.3.0" \
69
+ --notes "..."
70
+ ```
71
+
72
+ In environments where `gh` is not available (e.g. the pibo compute workers),
73
+ `scripts/create-github-release.mjs` performs the same action via the Pibo
74
+ GitHub App, which has been installed on `Pascapone/pibo` with the
75
+ `contents: write` scope. The script accepts the GitHub App credentials from
76
+ `PIBO_GITHUB_APP_ID` and `PIBO_GITHUB_APP_KEY` environment variables, or
77
+ from the well-known env file at
78
+ `/root/.pibo/uploads/github-app.env` (with the PEM key auto-discovered
79
+ next to it).
80
+
81
+ ```bash
82
+ node scripts/create-github-release.mjs \
83
+ --tag v1.3.0 \
84
+ --asset dist/apps/vscode-artifacts/pibo-vscode-1.3.0.vsix
85
+ ```
86
+
87
+ Both paths make the VSIX downloadable from a stable URL
88
+ (`https://github.com/Pascapone/pibo/releases/download/v1.3.0/pibo-vscode-1.3.0.vsix`).
89
+ The `pibo vscode install` command uses the GitHub Releases API to discover
90
+ this URL automatically.
91
+
92
+ The release script can also do this in one step:
93
+
94
+ ```bash
95
+ node scripts/release.mjs --version 1.3.0 --create-release
96
+ ```
97
+
98
+ …if the tag has already been pushed. Internally the release script calls
99
+ `scripts/create-github-release.mjs`, so it works in worker environments
100
+ without `gh`.
101
+
102
+ ### 5. Publish the npm package
103
+
104
+ ```bash
105
+ npm publish
106
+ ```
107
+
108
+ Or, in one go with the release script:
109
+
110
+ ```bash
111
+ node scripts/release.mjs --version 1.3.0 --publish-npm --create-release
112
+ ```
113
+
114
+ The publish step uploads the `pibo` CLI, the gateway plugins, and the WebView bundle. The Marketplace upload is intentionally **not** automated — see step 6.
115
+
116
+ ### 6. Upload the VSIX to the VS Code Marketplace (manual)
117
+
118
+ The Marketplace does not currently accept a Personal Access Token from this account (Azure-side provisioning issue). The release is therefore finished by uploading the VSIX through the Marketplace web UI:
119
+
120
+ 1. Open <https://marketplace.visualstudio.com/manage>.
121
+ 2. Pick the publisher `pibo` (created during the first marketplace publish).
122
+ 3. Click **Upload new extension** and select `dist/apps/vscode-artifacts/pibo-vscode-1.3.0.vsix`.
123
+ 4. The Marketplace validates the manifest and publishes the extension. The publisher ID is `pibo.pibo-vscode`.
124
+
125
+ After the upload, `code --install-extension pibo.pibo-vscode` works for end users.
126
+
127
+ ### 7. Verify
128
+
129
+ ```bash
130
+ pibo vscode install --vsix dist/apps/vscode-artifacts/pibo-vscode-1.3.0.vsix
131
+ pibo vscode status
132
+ ```
133
+
134
+ Confirm that `status` reports `pibo.pibo-vscode@1.3.0` installed via the expected `code` binary, and that the WebView loads the gateway at `http://127.0.0.1:4788/apps/chat-vscode/`.
135
+
136
+ ## Rollback
137
+
138
+ If a release is broken:
139
+
140
+ - **npm**: `npm unpublish @pasko70/pibo@1.3.0` works only within 72 hours of publish. After that, publish `1.3.1` with a fix.
141
+ - **VSIX via `pibo vscode install`**: delete the GitHub Release and re-create it with a fixed VSIX. Users who have already installed the extension will not auto-update until they run `pibo vscode install` again.
142
+ - **Marketplace**: the Marketplace UI supports un-publishing or un-listing. For a fast fix, upload a corrected `.vsix` with the same version (the Marketplace accepts a re-upload before processing the original).
143
+
144
+ ## What ships in the `pibo` npm package
145
+
146
+ The `files` whitelist in `package.json` controls what is published:
147
+
148
+ - `dist/` — the compiled server, the gateway plugins, the WebView bundles (chat-ui, context-files-ui, chat-vscode-web).
149
+ - `context/` — the bundled agent skills.
150
+ - `skills/builtin/**` — built-in user skills.
151
+ - `docs/ops/**` — operator runbooks.
152
+ - `README.md` and `src/mcp/LICENSE.mcp-cli`.
153
+
154
+ The `.vsix` is **not** in the npm package. It lives on the GitHub Release and (after the maintainer uploads it) on the VS Code Marketplace.
155
+
156
+ ## Why the WebView bundle is in the npm package
157
+
158
+ The extension's WebView loads from `http://<gateway>/apps/chat-vscode/`, not from the `.vsix`. The gateway serves the bundle out of `dist/apps/chat-vscode-web/`. If the bundle were not in the npm package, the gateway would return 404 for the WebView and the extension would be unusable.
159
+
160
+ Including the bundle in npm costs about 1 MB of disk per `pibo` install and zero runtime cost for users who never open the extension. Users who only use the `pibo` CLI never load the bundle.