@pasko70/pibo 1.7.1 → 1.7.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.
Files changed (180) hide show
  1. package/context/codex-base-prompt.md +0 -0
  2. package/context/compute-worker.md +0 -0
  3. package/context/pibo-compaction-prompt.md +0 -0
  4. package/context/pibo-native-tooling.md +0 -0
  5. package/context/pibo-system-prompt.md +0 -0
  6. package/dist/apps/chat-ui/assets/{dist-r34sHBLi.js → dist-8eLx-6HY.js} +1 -1
  7. package/dist/apps/chat-ui/assets/{dist-CA1Gi-1G.js → dist-BXT6rjJn.js} +1 -1
  8. package/dist/apps/chat-ui/assets/{dist-BDxKfyTI.js → dist-CCHtiwhr.js} +1 -1
  9. package/dist/apps/chat-ui/assets/{dist-BDNjNt4b.js → dist-CCt9U3Or.js} +1 -1
  10. package/dist/apps/chat-ui/assets/{dist-DJJN6SPt.js → dist-Cfyo-Bgw.js} +1 -1
  11. package/dist/apps/chat-ui/assets/{dist-CTQ40XYd.js → dist-CxWQqjbA.js} +1 -1
  12. package/dist/apps/chat-ui/assets/{dist-B7ZRIJ16.js → dist-Ddn6n4ge.js} +1 -1
  13. package/dist/apps/chat-ui/assets/{dist-D8Q2E5o5.js → dist-DjmyW251.js} +1 -1
  14. package/dist/apps/chat-ui/assets/{dist-exkn8clz.js → dist-Jc0njXt3.js} +1 -1
  15. package/dist/apps/chat-ui/assets/{dist-CcwGcMtk.js → dist-cyStkSiF.js} +1 -1
  16. package/dist/apps/chat-ui/assets/{dist-mG9WxdYM.js → dist-eRtG3vUM.js} +1 -1
  17. package/dist/apps/chat-ui/assets/index-COp5Hme0.js +166 -0
  18. package/dist/apps/chat-ui/assets/{index-D8itqvK_.css → index-Dz6asKNQ.css} +1 -1
  19. package/dist/apps/chat-ui/assets/pwa-images/android/launchericon-144x144.png +0 -0
  20. package/dist/apps/chat-ui/assets/pwa-images/android/launchericon-192x192.png +0 -0
  21. package/dist/apps/chat-ui/assets/pwa-images/android/launchericon-48x48.png +0 -0
  22. package/dist/apps/chat-ui/assets/pwa-images/android/launchericon-512x512.png +0 -0
  23. package/dist/apps/chat-ui/assets/pwa-images/android/launchericon-72x72.png +0 -0
  24. package/dist/apps/chat-ui/assets/pwa-images/android/launchericon-96x96.png +0 -0
  25. package/dist/apps/chat-ui/assets/pwa-images/ios/100.png +0 -0
  26. package/dist/apps/chat-ui/assets/pwa-images/ios/1024.png +0 -0
  27. package/dist/apps/chat-ui/assets/pwa-images/ios/114.png +0 -0
  28. package/dist/apps/chat-ui/assets/pwa-images/ios/120.png +0 -0
  29. package/dist/apps/chat-ui/assets/pwa-images/ios/128.png +0 -0
  30. package/dist/apps/chat-ui/assets/pwa-images/ios/144.png +0 -0
  31. package/dist/apps/chat-ui/assets/pwa-images/ios/152.png +0 -0
  32. package/dist/apps/chat-ui/assets/pwa-images/ios/16.png +0 -0
  33. package/dist/apps/chat-ui/assets/pwa-images/ios/167.png +0 -0
  34. package/dist/apps/chat-ui/assets/pwa-images/ios/180.png +0 -0
  35. package/dist/apps/chat-ui/assets/pwa-images/ios/192.png +0 -0
  36. package/dist/apps/chat-ui/assets/pwa-images/ios/20.png +0 -0
  37. package/dist/apps/chat-ui/assets/pwa-images/ios/256.png +0 -0
  38. package/dist/apps/chat-ui/assets/pwa-images/ios/29.png +0 -0
  39. package/dist/apps/chat-ui/assets/pwa-images/ios/32.png +0 -0
  40. package/dist/apps/chat-ui/assets/pwa-images/ios/40.png +0 -0
  41. package/dist/apps/chat-ui/assets/pwa-images/ios/50.png +0 -0
  42. package/dist/apps/chat-ui/assets/pwa-images/ios/512.png +0 -0
  43. package/dist/apps/chat-ui/assets/pwa-images/ios/57.png +0 -0
  44. package/dist/apps/chat-ui/assets/pwa-images/ios/58.png +0 -0
  45. package/dist/apps/chat-ui/assets/pwa-images/ios/60.png +0 -0
  46. package/dist/apps/chat-ui/assets/pwa-images/ios/64.png +0 -0
  47. package/dist/apps/chat-ui/assets/pwa-images/ios/72.png +0 -0
  48. package/dist/apps/chat-ui/assets/pwa-images/ios/76.png +0 -0
  49. package/dist/apps/chat-ui/assets/pwa-images/ios/80.png +0 -0
  50. package/dist/apps/chat-ui/assets/pwa-images/ios/87.png +0 -0
  51. package/dist/apps/chat-ui/assets/pwa-images/windows/LargeTile.scale-100.png +0 -0
  52. package/dist/apps/chat-ui/assets/pwa-images/windows/LargeTile.scale-125.png +0 -0
  53. package/dist/apps/chat-ui/assets/pwa-images/windows/LargeTile.scale-150.png +0 -0
  54. package/dist/apps/chat-ui/assets/pwa-images/windows/LargeTile.scale-200.png +0 -0
  55. package/dist/apps/chat-ui/assets/pwa-images/windows/LargeTile.scale-400.png +0 -0
  56. package/dist/apps/chat-ui/assets/pwa-images/windows/SmallTile.scale-100.png +0 -0
  57. package/dist/apps/chat-ui/assets/pwa-images/windows/SmallTile.scale-125.png +0 -0
  58. package/dist/apps/chat-ui/assets/pwa-images/windows/SmallTile.scale-150.png +0 -0
  59. package/dist/apps/chat-ui/assets/pwa-images/windows/SmallTile.scale-200.png +0 -0
  60. package/dist/apps/chat-ui/assets/pwa-images/windows/SmallTile.scale-400.png +0 -0
  61. package/dist/apps/chat-ui/assets/pwa-images/windows/SplashScreen.scale-100.png +0 -0
  62. package/dist/apps/chat-ui/assets/pwa-images/windows/SplashScreen.scale-125.png +0 -0
  63. package/dist/apps/chat-ui/assets/pwa-images/windows/SplashScreen.scale-150.png +0 -0
  64. package/dist/apps/chat-ui/assets/pwa-images/windows/SplashScreen.scale-200.png +0 -0
  65. package/dist/apps/chat-ui/assets/pwa-images/windows/SplashScreen.scale-400.png +0 -0
  66. package/dist/apps/chat-ui/assets/pwa-images/windows/Square150x150Logo.scale-100.png +0 -0
  67. package/dist/apps/chat-ui/assets/pwa-images/windows/Square150x150Logo.scale-125.png +0 -0
  68. package/dist/apps/chat-ui/assets/pwa-images/windows/Square150x150Logo.scale-150.png +0 -0
  69. package/dist/apps/chat-ui/assets/pwa-images/windows/Square150x150Logo.scale-200.png +0 -0
  70. package/dist/apps/chat-ui/assets/pwa-images/windows/Square150x150Logo.scale-400.png +0 -0
  71. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-lightunplated_targetsize-16.png +0 -0
  72. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-lightunplated_targetsize-20.png +0 -0
  73. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-lightunplated_targetsize-24.png +0 -0
  74. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-lightunplated_targetsize-256.png +0 -0
  75. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-lightunplated_targetsize-30.png +0 -0
  76. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-lightunplated_targetsize-32.png +0 -0
  77. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-lightunplated_targetsize-36.png +0 -0
  78. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-lightunplated_targetsize-40.png +0 -0
  79. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-lightunplated_targetsize-44.png +0 -0
  80. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-lightunplated_targetsize-48.png +0 -0
  81. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-lightunplated_targetsize-60.png +0 -0
  82. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-lightunplated_targetsize-64.png +0 -0
  83. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-lightunplated_targetsize-72.png +0 -0
  84. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-lightunplated_targetsize-80.png +0 -0
  85. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-lightunplated_targetsize-96.png +0 -0
  86. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-unplated_targetsize-16.png +0 -0
  87. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-unplated_targetsize-20.png +0 -0
  88. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-unplated_targetsize-24.png +0 -0
  89. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-unplated_targetsize-256.png +0 -0
  90. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-unplated_targetsize-30.png +0 -0
  91. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-unplated_targetsize-32.png +0 -0
  92. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-unplated_targetsize-36.png +0 -0
  93. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-unplated_targetsize-40.png +0 -0
  94. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-unplated_targetsize-44.png +0 -0
  95. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-unplated_targetsize-48.png +0 -0
  96. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-unplated_targetsize-60.png +0 -0
  97. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-unplated_targetsize-64.png +0 -0
  98. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-unplated_targetsize-72.png +0 -0
  99. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-unplated_targetsize-80.png +0 -0
  100. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-unplated_targetsize-96.png +0 -0
  101. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.scale-100.png +0 -0
  102. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.scale-125.png +0 -0
  103. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.scale-150.png +0 -0
  104. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.scale-200.png +0 -0
  105. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.scale-400.png +0 -0
  106. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.targetsize-16.png +0 -0
  107. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.targetsize-20.png +0 -0
  108. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.targetsize-24.png +0 -0
  109. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.targetsize-256.png +0 -0
  110. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.targetsize-30.png +0 -0
  111. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.targetsize-32.png +0 -0
  112. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.targetsize-36.png +0 -0
  113. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.targetsize-40.png +0 -0
  114. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.targetsize-44.png +0 -0
  115. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.targetsize-48.png +0 -0
  116. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.targetsize-60.png +0 -0
  117. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.targetsize-64.png +0 -0
  118. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.targetsize-72.png +0 -0
  119. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.targetsize-80.png +0 -0
  120. package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.targetsize-96.png +0 -0
  121. package/dist/apps/chat-ui/assets/pwa-images/windows/StoreLogo.scale-100.png +0 -0
  122. package/dist/apps/chat-ui/assets/pwa-images/windows/StoreLogo.scale-125.png +0 -0
  123. package/dist/apps/chat-ui/assets/pwa-images/windows/StoreLogo.scale-150.png +0 -0
  124. package/dist/apps/chat-ui/assets/pwa-images/windows/StoreLogo.scale-200.png +0 -0
  125. package/dist/apps/chat-ui/assets/pwa-images/windows/StoreLogo.scale-400.png +0 -0
  126. package/dist/apps/chat-ui/assets/pwa-images/windows/Wide310x150Logo.scale-100.png +0 -0
  127. package/dist/apps/chat-ui/assets/pwa-images/windows/Wide310x150Logo.scale-125.png +0 -0
  128. package/dist/apps/chat-ui/assets/pwa-images/windows/Wide310x150Logo.scale-150.png +0 -0
  129. package/dist/apps/chat-ui/assets/pwa-images/windows/Wide310x150Logo.scale-200.png +0 -0
  130. package/dist/apps/chat-ui/assets/pwa-images/windows/Wide310x150Logo.scale-400.png +0 -0
  131. package/dist/apps/chat-ui/index.html +2 -2
  132. package/dist/apps/chat-ui/manifest.webmanifest +0 -0
  133. package/dist/apps/chat-ui/sw.js +0 -0
  134. package/dist/apps/chat-vscode-web/assets/index-CfeNUaRh.js +41 -0
  135. package/dist/apps/chat-vscode-web/index.html +1 -1
  136. package/dist/bin/pibo.js +0 -0
  137. package/dist/bin/rg.js +0 -0
  138. package/dist/cli.js +4 -1
  139. package/dist/compute/docker.js +16 -8
  140. package/dist/gateway/web.js +3 -12
  141. package/dist/plugins/dev-auth.js +28 -2
  142. package/package.json +1 -1
  143. package/skills/builtin/graphify/SKILL.md +0 -0
  144. package/skills/builtin/pi-agent-harness/SKILL.md +0 -0
  145. package/skills/builtin/pi-agent-harness/agents/openai.yaml +0 -0
  146. package/skills/builtin/pibo-docker-system/SKILL.md +0 -0
  147. package/skills/builtin/pibo-spec-writing/SKILL.md +0 -0
  148. package/skills/builtin/prd/SKILL.md +0 -0
  149. package/skills/builtin/ralph-loop/SKILL.md +0 -0
  150. package/skills/builtin/ralph-prd-json/SKILL.md +0 -0
  151. package/skills/builtin/skill-creator/LICENSE.txt +0 -0
  152. package/skills/builtin/skill-creator/SKILL.md +0 -0
  153. package/skills/builtin/skill-creator/agents/analyzer.md +0 -0
  154. package/skills/builtin/skill-creator/agents/comparator.md +0 -0
  155. package/skills/builtin/skill-creator/agents/grader.md +0 -0
  156. package/skills/builtin/skill-creator/assets/eval_review.html +0 -0
  157. package/skills/builtin/skill-creator/eval-viewer/generate_review.py +0 -0
  158. package/skills/builtin/skill-creator/eval-viewer/viewer.html +0 -0
  159. package/skills/builtin/skill-creator/references/schemas.md +0 -0
  160. package/skills/builtin/skill-creator/scripts/__init__.py +0 -0
  161. package/skills/builtin/skill-creator/scripts/aggregate_benchmark.py +0 -0
  162. package/skills/builtin/skill-creator/scripts/generate_report.py +0 -0
  163. package/skills/builtin/skill-creator/scripts/improve_description.py +0 -0
  164. package/skills/builtin/skill-creator/scripts/package_skill.py +0 -0
  165. package/skills/builtin/skill-creator/scripts/quick_validate.py +0 -0
  166. package/skills/builtin/skill-creator/scripts/run_eval.py +0 -0
  167. package/skills/builtin/skill-creator/scripts/run_loop.py +0 -0
  168. package/skills/builtin/skill-creator/scripts/utils.py +0 -0
  169. package/skills/builtin/web-annotations/SKILL.md +0 -0
  170. package/src/mcp/LICENSE.mcp-cli +0 -0
  171. package/README.md +0 -183
  172. package/dist/apps/chat-ui/assets/index-C5smwAJD.js +0 -166
  173. package/dist/apps/chat-vscode-web/assets/index-lOZ1r-No.js +0 -41
  174. package/dist/apps/vscode-artifacts/latest.vsix +0 -0
  175. package/dist/apps/vscode-artifacts/pibo-vscode-ext-1.7.1.vsix +0 -0
  176. package/docs/README.md +0 -23
  177. package/docs/ops/install-developer-host.md +0 -112
  178. package/docs/ops/install-user-host.md +0 -96
  179. package/docs/ops/upgrade-user-to-developer-host.md +0 -69
  180. package/docs/ops/vscode-extension-release.md +0 -160
package/docs/README.md DELETED
@@ -1,23 +0,0 @@
1
- # Pibo Documentation
2
-
3
- This directory is the single home for project documentation, specs, plans, and reports.
4
-
5
- ## Structure
6
-
7
- ```text
8
- docs/
9
- project/ Normal/current project docs and other canonical documentation
10
- specs/ Product, technical, and implementation specifications
11
- plans/ Implementation plans and design plans
12
- reports/ Investigation reports, validation reports, and generated report artifacts
13
- legacy/ Previous documentation set kept for reference
14
- ```
15
-
16
- ## Rules
17
-
18
- - Put normal/current project docs and other canonical documentation in `docs/project/`.
19
- - Put specifications in `docs/specs/`.
20
- - Put implementation plans in `docs/plans/`.
21
- - Put investigation, validation, and incident reports in `docs/reports/`.
22
- - Do not create new root-level `plans/`, `reports/`, or `specs/` directories.
23
- - Do not delete legacy docs unless there is a separate cleanup decision.
@@ -1,112 +0,0 @@
1
- # Install Pibo as a Developer Host
2
-
3
- Use this path when the host is used to develop Pibo itself.
4
-
5
- ## Philosophy
6
-
7
- Production must stay stable while development moves quickly. The dev gateway can restart, fail, or deploy the `dev` branch without interrupting the main production gateway.
8
-
9
- Docker compute workers are part of the developer setup. Each agent should get its own isolated container and gateway so agent restarts do not disturb other agents or the host gateways.
10
-
11
- ## Target layout
12
-
13
- ```text
14
- /root/code/pibo main / production
15
- /root/code/pibo/.worktrees/dev dev / development
16
-
17
- /root/.pibo production data
18
- /root/.pibo-dev development data
19
-
20
- pibo-web.service prod web 4788, gateway 4789
21
- pibo-web-dev.service dev web 4808, gateway 4809
22
- ```
23
-
24
- ## Remotes
25
-
26
- Each developer host should use its own fork as `origin` and the canonical repo as `upstream`:
27
-
28
- ```text
29
- origin git@github.com:<server-or-user-fork>/pibo.git
30
- upstream git@github.com:Pascapone/pibo.git
31
- ```
32
-
33
- ## Plan the setup
34
-
35
- ```bash
36
- pibo setup developer-host \
37
- --origin git@github.com:<server-or-user-fork>/pibo.git \
38
- --upstream git@github.com:Pascapone/pibo.git \
39
- --prod-domain pibo.example.com \
40
- --dev-domain dev.pibo.example.com \
41
- --print-files
42
- ```
43
-
44
- Review the generated systemd units, dev start wrapper, environment template, and Caddyfile. Stage files before applying when testing a fresh host:
45
-
46
- ```bash
47
- pibo setup developer-host \
48
- --origin git@github.com:<server-or-user-fork>/pibo.git \
49
- --prod-domain pibo.example.com \
50
- --dev-domain dev.pibo.example.com \
51
- --write-to /tmp/pibo-setup
52
- ```
53
-
54
- Apply after review:
55
-
56
- ```bash
57
- pibo setup developer-host \
58
- --origin git@github.com:<server-or-user-fork>/pibo.git \
59
- --prod-domain pibo.example.com \
60
- --dev-domain dev.pibo.example.com \
61
- --apply --yes
62
- systemctl daemon-reload
63
- ```
64
-
65
- ## Important detail: service pinning
66
-
67
- Do not globally install the dev worktree over the production install. `npm install -g .` from a local checkout creates a global symlink to that checkout; running it again from the dev worktree can accidentally move `/usr/bin/pibo` to dev.
68
-
69
- The generated developer services avoid this by pinning production to:
70
-
71
- ```text
72
- /usr/bin/node /root/code/pibo/dist/bin/pibo.js
73
- ```
74
-
75
- and dev to the wrapper in `/usr/local/bin/pibo-web-dev-start.mjs`, which imports the dev worktree directly.
76
-
77
- Run this in each checkout/worktree instead:
78
-
79
- ```bash
80
- npm ci
81
- npm run build
82
- ```
83
-
84
- ## Important detail: dev internal gateway port
85
-
86
- Do not start dev only with:
87
-
88
- ```bash
89
- pibo gateway:web --web-port 4808
90
- ```
91
-
92
- That changes the web port but leaves the internal gateway at the default `4789`, which collides with production. The generated developer setup uses a wrapper that calls `runWebGatewayServer` with:
93
-
94
- ```text
95
- web port: 4808
96
- internal port: 4809
97
- ```
98
-
99
- ## Validate
100
-
101
- ```bash
102
- systemctl is-active pibo-web
103
- systemctl is-active pibo-web-dev
104
- pibo gateway web status
105
- PIBO_GATEWAY_DEV_PORT=4808 pibo gateway dev status
106
- pibo setup doctor --domain pibo.example.com --dev-domain dev.pibo.example.com --expected-ip <server-ip> --require-docker --min-swap-gb 8
107
- pibo compute spawn --help
108
- ```
109
-
110
- DNS must point to the host before Caddy can issue public certificates.
111
-
112
- Docker and swap are developer-host prerequisites only. User-host installs can ignore Docker and swap. The setup command does not create swap automatically; provision it at the OS level, then verify it with `pibo setup doctor --min-swap-gb 8`.
@@ -1,96 +0,0 @@
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 +0,0 @@
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 +0,0 @@
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.