ceulen 0.5.0 → 0.7.0

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 (358) hide show
  1. package/CHANGELOG.md +317 -12
  2. package/README.md +87 -91
  3. package/extensions/lib/advisor-marker.ts +33 -0
  4. package/extensions/lib/panel.ts +25 -2
  5. package/extensions/lib/rate.ts +24 -0
  6. package/extensions/lib/registry.ts +93 -7
  7. package/extensions/lib/tools.ts +47 -0
  8. package/extensions/lib/usage-store.ts +33 -0
  9. package/extensions/modules/advisor/commands/advisor.ts +244 -0
  10. package/extensions/modules/advisor/configPanel.ts +194 -0
  11. package/extensions/modules/advisor/index.ts +217 -0
  12. package/extensions/modules/advisor/lib/config.ts +248 -0
  13. package/extensions/modules/advisor/lib/emission-guard.ts +153 -0
  14. package/extensions/modules/advisor/lib/isolated-model.ts +160 -0
  15. package/extensions/modules/advisor/lib/model-picker.ts +47 -0
  16. package/extensions/modules/advisor/lib/watcher.ts +286 -0
  17. package/extensions/modules/advisor/test/compliance.test.ts +125 -0
  18. package/extensions/modules/advisor/test/config.test.ts +202 -0
  19. package/extensions/modules/advisor/test/configPanel.test.ts +223 -0
  20. package/extensions/modules/advisor/test/emission-guard.test.ts +201 -0
  21. package/extensions/modules/advisor/test/isolated-model.test.ts +311 -0
  22. package/extensions/modules/advisor/test/model-picker.test.ts +32 -0
  23. package/extensions/modules/advisor/test/module.test.ts +586 -0
  24. package/extensions/modules/advisor/test/watcher.test.ts +478 -0
  25. package/extensions/modules/classifier/configPanel.ts +104 -0
  26. package/extensions/modules/classifier/index.ts +297 -0
  27. package/extensions/modules/classifier/lib/settings.ts +95 -0
  28. package/extensions/modules/classifier/test/classifier.test.ts +475 -0
  29. package/extensions/modules/composer/index.ts +152 -3
  30. package/extensions/modules/composer/lib/footer.ts +119 -0
  31. package/extensions/modules/composer/lib/shapes.ts +265 -26
  32. package/extensions/modules/composer/test/editor.test.ts +1 -1
  33. package/extensions/modules/composer/test/footer.test.ts +96 -0
  34. package/extensions/modules/composer/test/module.test.ts +113 -11
  35. package/extensions/modules/composer/test/screen.test.ts +29 -1
  36. package/extensions/modules/composer/test/shapes.test.ts +224 -8
  37. package/extensions/modules/config/defaultTools.ts +96 -0
  38. package/extensions/modules/config/index.ts +147 -7
  39. package/extensions/modules/config/piSettings.ts +254 -69
  40. package/extensions/modules/config/test/defaultTools.test.ts +122 -0
  41. package/extensions/modules/config/test/menu.test.ts +64 -0
  42. package/extensions/modules/config/test/panel.test.ts +38 -23
  43. package/extensions/modules/config/test/piSettings.test.ts +130 -3
  44. package/extensions/modules/config/test/renderTools.test.ts +71 -0
  45. package/extensions/modules/config/test/tools.test.ts +146 -0
  46. package/extensions/modules/fff/index.ts +2094 -0
  47. package/extensions/modules/fff/lib/query.ts +129 -0
  48. package/extensions/modules/fff/test/index.test.ts +607 -0
  49. package/extensions/modules/fff/test/query.test.ts +71 -0
  50. package/extensions/modules/munin/configPanel.ts +105 -0
  51. package/extensions/modules/munin/index.ts +641 -0
  52. package/extensions/modules/munin/lib/helpers.ts +471 -0
  53. package/extensions/modules/munin/lib/retry.ts +20 -0
  54. package/extensions/modules/munin/lib/sdk.ts +218 -0
  55. package/extensions/modules/munin/test/config.test.ts +168 -0
  56. package/extensions/modules/munin/test/configPanel.test.ts +161 -0
  57. package/extensions/modules/munin/test/extension.test.ts +224 -0
  58. package/extensions/modules/munin/test/helpers.test.ts +523 -0
  59. package/extensions/modules/munin/test/retry.test.ts +145 -0
  60. package/extensions/modules/munin/test/stale-protocol.test.ts +554 -0
  61. package/extensions/modules/plan/configPanel.ts +152 -0
  62. package/extensions/modules/plan/index.ts +917 -0
  63. package/extensions/modules/plan/lib/plan-tools.ts +72 -0
  64. package/extensions/modules/plan/lib/prompt.ts +65 -0
  65. package/extensions/modules/plan/lib/settings.ts +166 -0
  66. package/extensions/modules/plan/lib/shell-gate.ts +200 -0
  67. package/extensions/modules/plan/test/configPanel.test.ts +96 -0
  68. package/extensions/modules/plan/test/harness.ts +133 -0
  69. package/extensions/modules/plan/test/module.test.ts +305 -0
  70. package/extensions/modules/plan/test/settings.test.ts +114 -0
  71. package/extensions/modules/plan/test/shell-gate.test.ts +103 -0
  72. package/extensions/modules/ponytail/index.ts +23 -73
  73. package/extensions/modules/ponytail/lib/config.ts +1 -6
  74. package/extensions/modules/ponytail/test/extension.test.ts +1 -85
  75. package/extensions/modules/repair/configPanel.ts +96 -0
  76. package/extensions/modules/repair/index.ts +414 -0
  77. package/extensions/modules/repair/lib/auto-bg.ts +333 -0
  78. package/extensions/modules/repair/lib/edit-repair.ts +155 -0
  79. package/extensions/modules/repair/lib/editor.ts +251 -0
  80. package/extensions/modules/repair/lib/guards.ts +34 -0
  81. package/extensions/modules/repair/lib/input-repair.ts +324 -0
  82. package/extensions/modules/repair/lib/patch.ts +481 -0
  83. package/extensions/modules/repair/lib/settings.ts +114 -0
  84. package/extensions/modules/repair/test/auto-bg.test.ts +405 -0
  85. package/extensions/modules/repair/test/edit-repair.test.ts +224 -0
  86. package/extensions/modules/repair/test/editor.test.ts +141 -0
  87. package/extensions/modules/repair/test/guards.test.ts +64 -0
  88. package/extensions/modules/repair/test/input-repair.test.ts +231 -0
  89. package/extensions/modules/repair/test/patch.test.ts +563 -0
  90. package/extensions/modules/repair/test/settings.test.ts +167 -0
  91. package/extensions/modules/repair/test/wrapper.test.ts +210 -0
  92. package/extensions/modules/router/commands/commands.ts +4 -0
  93. package/extensions/modules/router/lib/client.ts +61 -0
  94. package/extensions/modules/router/lib/provider.ts +34 -13
  95. package/extensions/modules/router/lib/systemone.ts +152 -0
  96. package/extensions/modules/router/test/unit.test.ts +179 -0
  97. package/extensions/modules/rtk/findFallback.js +68 -0
  98. package/extensions/modules/rtk/index.ts +248 -0
  99. package/extensions/modules/rtk/safe-rewrite.js +74 -0
  100. package/extensions/modules/rtk/test/findFallback.test.js +66 -0
  101. package/extensions/modules/rtk/test/index.test.js +131 -0
  102. package/extensions/modules/rtk/test/safe-rewrite.test.js +96 -0
  103. package/extensions/modules/rtk/version-gate.js +34 -0
  104. package/extensions/modules/serena/index.ts +629 -0
  105. package/extensions/modules/serena/lib/detect.ts +73 -0
  106. package/extensions/modules/serena/lib/env.ts +76 -0
  107. package/extensions/modules/serena/lib/guidance.ts +26 -0
  108. package/extensions/modules/serena/lib/normalize.ts +27 -0
  109. package/extensions/modules/serena/lib/symbol-key.ts +20 -0
  110. package/extensions/modules/serena/lib/truncate.ts +20 -0
  111. package/extensions/modules/serena/test/env.test.ts +122 -0
  112. package/extensions/modules/serena/test/index.test.ts +347 -0
  113. package/extensions/modules/serena/test/worker.test.ts +562 -0
  114. package/extensions/modules/serena/worker.ts +858 -0
  115. package/extensions/modules/steering/configPanel.ts +122 -0
  116. package/extensions/modules/steering/index.ts +616 -0
  117. package/extensions/modules/steering/lib/anchor.ts +175 -0
  118. package/extensions/modules/steering/lib/errors.ts +253 -0
  119. package/extensions/modules/steering/lib/family.ts +33 -0
  120. package/extensions/modules/steering/lib/guidance.ts +172 -0
  121. package/extensions/modules/steering/lib/history.ts +170 -0
  122. package/extensions/modules/steering/lib/settings.ts +127 -0
  123. package/extensions/modules/steering/test/anchor-regressions.test.ts +93 -0
  124. package/extensions/modules/steering/test/anchor-wiring.test.ts +99 -0
  125. package/extensions/modules/steering/test/anchor.test.ts +160 -0
  126. package/extensions/modules/steering/test/cache-stats.test.ts +43 -0
  127. package/extensions/modules/steering/test/errors.test.ts +309 -0
  128. package/extensions/modules/steering/test/family.test.ts +43 -0
  129. package/extensions/modules/steering/test/guidance.test.ts +357 -0
  130. package/extensions/modules/steering/test/harness.ts +93 -0
  131. package/extensions/modules/steering/test/history.test.ts +118 -0
  132. package/extensions/modules/steering/test/settings.test.ts +182 -0
  133. package/extensions/modules/steering/test/status.test.ts +71 -0
  134. package/extensions/modules/steering/test/toolCall.test.ts +99 -0
  135. package/extensions/modules/subagent/agents/planner.md +14 -0
  136. package/extensions/modules/subagent/agents/reviewer.md +42 -0
  137. package/extensions/modules/subagent/agents/scout.md +47 -0
  138. package/extensions/modules/subagent/agents/tester.md +12 -0
  139. package/extensions/modules/subagent/agents/worker.md +18 -0
  140. package/extensions/modules/subagent/configPanel.ts +219 -0
  141. package/extensions/modules/subagent/index.ts +2451 -0
  142. package/extensions/modules/subagent/lib/agents.ts +408 -0
  143. package/extensions/modules/subagent/lib/background.ts +383 -0
  144. package/extensions/modules/subagent/lib/herdr.ts +1019 -0
  145. package/extensions/modules/subagent/lib/history.ts +126 -0
  146. package/extensions/modules/subagent/lib/model.ts +156 -0
  147. package/extensions/modules/subagent/lib/render.ts +335 -0
  148. package/extensions/modules/subagent/lib/result.ts +110 -0
  149. package/extensions/modules/subagent/lib/roles.ts +296 -0
  150. package/extensions/modules/subagent/lib/routing.ts +223 -0
  151. package/extensions/modules/subagent/lib/runner.ts +559 -0
  152. package/extensions/modules/subagent/lib/schema.ts +21 -0
  153. package/extensions/modules/subagent/lib/security.ts +752 -0
  154. package/extensions/modules/subagent/lib/settings.ts +159 -0
  155. package/extensions/modules/subagent/lib/thread-viewer.ts +319 -0
  156. package/extensions/modules/subagent/lib/threads.ts +135 -0
  157. package/extensions/modules/subagent/lib/types.ts +18 -0
  158. package/extensions/modules/subagent/lib/widget.ts +475 -0
  159. package/extensions/modules/subagent/test/configPanel.test.ts +132 -0
  160. package/extensions/modules/subagent/test/herdr-advisor.test.ts +40 -0
  161. package/extensions/modules/subagent/test/routing.test.ts +350 -0
  162. package/extensions/modules/subagent/test/widget.test.ts +208 -0
  163. package/extensions/modules/usage/index.ts +59 -16
  164. package/extensions/modules/usage/test/genrate.test.ts +70 -0
  165. package/extensions/modules/usage/test/parsers.test.ts +13 -0
  166. package/extensions/modules/ux/UPSTREAM +24 -0
  167. package/extensions/modules/ux/index.ts +393 -0
  168. package/extensions/modules/ux/lib/audit.ts +562 -0
  169. package/extensions/modules/ux/lib/config.ts +136 -0
  170. package/extensions/modules/ux/lib/instructions.ts +77 -0
  171. package/extensions/modules/ux/test/audit.test.ts +756 -0
  172. package/extensions/modules/ux/test/extension.test.ts +394 -0
  173. package/extensions/modules/ux/test/instructions.test.ts +19 -0
  174. package/extensions/modules/web/configPanel.ts +193 -0
  175. package/extensions/modules/web/index.ts +978 -0
  176. package/extensions/modules/web/lib/agy.ts +209 -0
  177. package/extensions/modules/web/lib/brave.ts +42 -0
  178. package/extensions/modules/web/lib/cdp.ts +686 -0
  179. package/extensions/modules/web/lib/chatapi.ts +101 -0
  180. package/extensions/modules/web/lib/chatgpt.ts +796 -0
  181. package/extensions/modules/web/lib/chrome.ts +328 -0
  182. package/extensions/modules/web/lib/config.ts +136 -0
  183. package/extensions/modules/web/lib/content.ts +99 -0
  184. package/extensions/modules/web/lib/crawl4ai.ts +172 -0
  185. package/extensions/modules/web/lib/extract.ts +235 -0
  186. package/extensions/modules/web/lib/firecrawl.ts +56 -0
  187. package/extensions/modules/web/lib/format.ts +197 -0
  188. package/extensions/modules/web/lib/gemini-auth.ts +286 -0
  189. package/extensions/modules/web/lib/gemini-dr.ts +338 -0
  190. package/extensions/modules/web/lib/gemini.ts +551 -0
  191. package/extensions/modules/web/lib/imageapi.ts +559 -0
  192. package/extensions/modules/web/lib/retry.ts +71 -0
  193. package/extensions/modules/web/lib/search.ts +237 -0
  194. package/extensions/modules/web/lib/searxng.ts +69 -0
  195. package/extensions/modules/web/lib/settings.ts +148 -0
  196. package/extensions/modules/web/scripts/cdp-smoke.ts +77 -0
  197. package/extensions/modules/web/scripts/gemini-smoke.ts +107 -0
  198. package/extensions/modules/web/test/agy.test.ts +383 -0
  199. package/extensions/modules/web/test/cdp.test.ts +717 -0
  200. package/extensions/modules/web/test/chat.test.ts +171 -0
  201. package/extensions/modules/web/test/chatgpt.test.ts +633 -0
  202. package/extensions/modules/web/test/chrome.test.ts +282 -0
  203. package/extensions/modules/web/test/config.test.ts +218 -0
  204. package/extensions/modules/web/test/configPanel.test.ts +132 -0
  205. package/extensions/modules/web/test/crawl.test.ts +134 -0
  206. package/extensions/modules/web/test/crawl4ai.test.ts +105 -0
  207. package/extensions/modules/web/test/extension.test.ts +118 -0
  208. package/extensions/modules/web/test/extract.test.ts +436 -0
  209. package/extensions/modules/web/test/fixtures/dr-confirm.bin +12 -0
  210. package/extensions/modules/web/test/fixtures/dr-plan.bin +20 -0
  211. package/extensions/modules/web/test/fixtures/interaction.html +31 -0
  212. package/extensions/modules/web/test/format.test.ts +230 -0
  213. package/extensions/modules/web/test/gemini-auth.test.ts +465 -0
  214. package/extensions/modules/web/test/gemini-dr.test.ts +249 -0
  215. package/extensions/modules/web/test/gemini.test.ts +472 -0
  216. package/extensions/modules/web/test/hook.test.ts +101 -0
  217. package/extensions/modules/web/test/image.test.ts +1089 -0
  218. package/extensions/modules/web/test/retry.test.ts +119 -0
  219. package/extensions/modules/web/test/screenshot.test.ts +109 -0
  220. package/extensions/modules/web/test/search.test.ts +210 -0
  221. package/extensions/modules/web/test/settings.test.ts +165 -0
  222. package/extensions/modules/web/test/skill.test.ts +72 -0
  223. package/extensions/modules/web/types.d.ts +3 -0
  224. package/extensions/modules/web/vendor/package.json +1 -0
  225. package/extensions/modules/web/vendor/readability/LICENSE.md +13 -0
  226. package/extensions/modules/web/vendor/readability/Readability-readerable.js +123 -0
  227. package/extensions/modules/web/vendor/readability/Readability.js +2787 -0
  228. package/extensions/modules/web/vendor/readability/index.d.ts +64 -0
  229. package/extensions/modules/web/vendor/readability/index.js +9 -0
  230. package/extensions/modules/web/vendor/turndown/LICENSE +21 -0
  231. package/extensions/modules/web/vendor/turndown/turndown.cjs.js +784 -0
  232. package/extensions/modules/web/vendor/turndown-plugin-gfm/LICENSE +21 -0
  233. package/extensions/modules/web/vendor/turndown-plugin-gfm/turndown-plugin-gfm.cjs.js +163 -0
  234. package/extensions/modules/zai/configPanel.ts +151 -0
  235. package/extensions/modules/zai/index.ts +186 -0
  236. package/extensions/modules/zai/lib/anthropic.ts +159 -0
  237. package/extensions/modules/zai/lib/settings.ts +198 -0
  238. package/extensions/modules/zai/lib/signing.ts +718 -0
  239. package/extensions/modules/zai/lib/throttle.ts +198 -0
  240. package/extensions/modules/zai/test/anthropic.test.ts +132 -0
  241. package/extensions/modules/zai/test/configPanel.test.ts +207 -0
  242. package/extensions/modules/zai/test/extension.test.ts +249 -0
  243. package/extensions/modules/zai/test/settings.test.ts +183 -0
  244. package/extensions/modules/zai/test/signing-wiring.test.ts +108 -0
  245. package/extensions/modules/zai/test/signing.test.ts +345 -0
  246. package/extensions/modules/zai/test/throttle.test.ts +329 -0
  247. package/package.json +19 -4
  248. package/scripts/validate-themes.mjs +75 -0
  249. package/skills/munin/SKILL.md +117 -0
  250. package/skills/ux-capture/SKILL.md +202 -0
  251. package/skills/ux-design/SKILL.md +279 -0
  252. package/skills/ux-presets/SKILL.md +484 -0
  253. package/skills/ux-routing/SKILL.md +46 -0
  254. package/skills/web/SKILL.md +153 -0
  255. package/themes/alabaster.json +93 -0
  256. package/themes/amethyst.json +96 -0
  257. package/themes/anthracite.json +93 -0
  258. package/themes/basalt.json +91 -0
  259. package/themes/birch.json +95 -0
  260. package/themes/catppuccin-mocha.json +91 -0
  261. package/themes/dark-abyss.json +91 -0
  262. package/themes/dark-arctic.json +104 -0
  263. package/themes/dark-aurora.json +95 -0
  264. package/themes/dark-catppuccin.json +107 -0
  265. package/themes/dark-cavern.json +91 -0
  266. package/themes/dark-celestial.json +106 -0
  267. package/themes/dark-copper.json +95 -0
  268. package/themes/dark-cosmos.json +90 -0
  269. package/themes/dark-cyberpunk.json +102 -0
  270. package/themes/dark-dracula.json +98 -0
  271. package/themes/dark-eclipse.json +91 -0
  272. package/themes/dark-ember.json +95 -0
  273. package/themes/dark-equinox.json +90 -0
  274. package/themes/dark-forest.json +96 -0
  275. package/themes/dark-github.json +105 -0
  276. package/themes/dark-gruvbox.json +112 -0
  277. package/themes/dark-lavender.json +95 -0
  278. package/themes/dark-lunar.json +89 -0
  279. package/themes/dark-midnight.json +95 -0
  280. package/themes/dark-monochrome.json +94 -0
  281. package/themes/dark-monokai.json +98 -0
  282. package/themes/dark-nebula.json +90 -0
  283. package/themes/dark-neon-noir.json +100 -0
  284. package/themes/dark-nord.json +98 -0
  285. package/themes/dark-ocean.json +101 -0
  286. package/themes/dark-one.json +100 -0
  287. package/themes/dark-poimandres.json +115 -0
  288. package/themes/dark-rainforest.json +91 -0
  289. package/themes/dark-reef.json +91 -0
  290. package/themes/dark-retro.json +92 -0
  291. package/themes/dark-rose-pine.json +96 -0
  292. package/themes/dark-sakura.json +95 -0
  293. package/themes/dark-slate.json +95 -0
  294. package/themes/dark-solarized.json +97 -0
  295. package/themes/dark-solstice.json +90 -0
  296. package/themes/dark-starfall.json +91 -0
  297. package/themes/dark-sunset.json +99 -0
  298. package/themes/dark-swamp.json +90 -0
  299. package/themes/dark-synthwave.json +103 -0
  300. package/themes/dark-taiga.json +91 -0
  301. package/themes/dark-terminal.json +95 -0
  302. package/themes/dark-tokyo-night.json +101 -0
  303. package/themes/dark-tundra.json +91 -0
  304. package/themes/dark-twilight.json +91 -0
  305. package/themes/dark-volcanic.json +91 -0
  306. package/themes/dark.json +80 -0
  307. package/themes/graphite.json +92 -0
  308. package/themes/light-arctic.json +107 -0
  309. package/themes/light-aurora-day.json +91 -0
  310. package/themes/light-canyon.json +91 -0
  311. package/themes/light-catppuccin.json +106 -0
  312. package/themes/light-cirrus.json +90 -0
  313. package/themes/light-coral.json +95 -0
  314. package/themes/light-cyberpunk.json +96 -0
  315. package/themes/light-dawn.json +90 -0
  316. package/themes/light-dunes.json +91 -0
  317. package/themes/light-eucalyptus.json +95 -0
  318. package/themes/light-forest.json +100 -0
  319. package/themes/light-frost.json +95 -0
  320. package/themes/light-github.json +115 -0
  321. package/themes/light-glacier.json +91 -0
  322. package/themes/light-gruvbox.json +108 -0
  323. package/themes/light-haze.json +90 -0
  324. package/themes/light-honeycomb.json +95 -0
  325. package/themes/light-lagoon.json +91 -0
  326. package/themes/light-lavender.json +95 -0
  327. package/themes/light-meadow.json +91 -0
  328. package/themes/light-mint.json +95 -0
  329. package/themes/light-monochrome.json +101 -0
  330. package/themes/light-ocean.json +99 -0
  331. package/themes/light-one.json +99 -0
  332. package/themes/light-opal.json +91 -0
  333. package/themes/light-orchard.json +91 -0
  334. package/themes/light-paper.json +95 -0
  335. package/themes/light-poimandres.json +115 -0
  336. package/themes/light-prism.json +90 -0
  337. package/themes/light-retro.json +98 -0
  338. package/themes/light-sand.json +95 -0
  339. package/themes/light-savanna.json +91 -0
  340. package/themes/light-solarized.json +102 -0
  341. package/themes/light-soleil.json +90 -0
  342. package/themes/light-sunset.json +99 -0
  343. package/themes/light-synthwave.json +98 -0
  344. package/themes/light-tokyo-night.json +111 -0
  345. package/themes/light-wetland.json +91 -0
  346. package/themes/light-zenith.json +89 -0
  347. package/themes/light.json +80 -0
  348. package/themes/limestone.json +94 -0
  349. package/themes/mahogany.json +97 -0
  350. package/themes/marble.json +93 -0
  351. package/themes/mirage.json +79 -0
  352. package/themes/obsidian.json +91 -0
  353. package/themes/onyx.json +91 -0
  354. package/themes/pearl.json +93 -0
  355. package/themes/porcelain.json +91 -0
  356. package/themes/quartz.json +96 -0
  357. package/themes/sandstone.json +95 -0
  358. package/themes/titanium.json +90 -0
package/CHANGELOG.md CHANGED
@@ -1,17 +1,295 @@
1
1
  # Changelog
2
2
 
3
- ## 0.5.0 — 2026-09-30
3
+ ## 0.7.0 — 2026-10-04
4
4
 
5
- - **pi 0.99.1 compatibility**: peer dependencies widened from
6
- `>=0.80.8 <0.88.0` to `^0.99.1` for both `@earendil-works/pi-coding-agent`
7
- and `@earendil-works/pi-tui`. No code changes — all surfaces verified:
8
- registration API (guarded() claims), composer `CustomEditor` duck-typing,
9
- theme Proxy/`setTheme` semantics, `session_start` re-fire, trust.json
10
- gating, jiti extension loading (the 0.99 tsx→type-stripping switch affects
11
- pi's own build only). 306 tests + live `pi --mode rpc` smoke pass.
5
+ - **web**: new module — the 11 unified web tools ported from `@bacnh85/pi-web`
6
+ 0.17.8: `web_search` (SearXNG → Brave → Firecrawl adaptive), `web_extract`
7
+ (static JSDOM → Firecrawl → Crawl4AI → agy), `web_map`, `web_crawl`,
8
+ `web_screenshot` / `web_pdf` (Crawl4AI daemon, local headless Chrome for
9
+ localhost/LAN/file URLs), `web_interact` (trusted CDP click/type/evaluate
10
+ with device-metrics emulation), `web_research` (Gemini web ask / Deep
11
+ Research), `web_image` (Gemini web → ChatGPT web → Z.ai GLM-Image → custom),
12
+ `web_chat`, `web_status`. Ships the `web` skill and injects the
13
+ backend-routing guidance only while a `web_*` tool is active.
14
+ - Config: `/config` → Tools → Web — 16 rows over the GLOBAL `web` settings
15
+ section (SearXNG/Brave/Firecrawl/Crawl4AI endpoints, keys and timeouts,
16
+ Gemini web cookie/proxy, image + chat providers), read per tool call so a
17
+ save applies with no `/reload`; a trusted project `.pi/settings.json`
18
+ `web` section shadows per field, env vars win over both. Secrets are masked
19
+ rows. The two timeout rows are a closed set — pi-web's loaders reject
20
+ anything below 1000 ms by throwing.
21
+ - Per-tool kill-switch: all 11 tools appear as toggle rows (Tools tab).
22
+ - Dependencies: `jsdom` + `gemini-reverse` (+ `axios`, which gemini-reverse
23
+ hard-depends on) are the module's un-vendorable engines;
24
+ `@mozilla/readability`, `turndown`, and `turndown-plugin-gfm` are vendored
25
+ under `extensions/modules/web/vendor/`.
26
+ - Remove the standalone `@bacnh85/pi-web` when enabling this module — the
27
+ conflict guard refuses the duplicate `web_*` names.
28
+
29
+ - **plan**: new module — read-only plan mode ported from `@bacnh85/pi-plan`
30
+ 0.16.6, reduced to the permission + review gate. `/plan` (also `--plan`,
31
+ `ctrl+alt+p`) toggles planning; `write_plan` records a reviewable Markdown
32
+ plan (default `.pi/plans/<timestamp>-<slug>.md`) and `ask_user_question`
33
+ resolves consequential ambiguities with 2–4 options, a ★-recommended
34
+ default, and an "Other" free-form path. `/plan-approve current|new` executes
35
+ the approved plan here or in a fresh session; `/plan-auto` arms autonomous
36
+ approval (a written plan executes with no keypress).
37
+ - **Save-plans policy** (`plan.savePlans`, /config → Tasks → Plan mode):
38
+ `all` writes every draft, `approved` keeps drafts in memory and writes the
39
+ file at approval, `none` never persists (the conversation is the copy;
40
+ fresh-session execution is refused because it needs a file). Plans
41
+ directory (`plan.plansDir`, default `.pi/plans`, `{yyyymm}` supported),
42
+ plan-only model/thinking (restored on exit), and the auto-approve toggle
43
+ are rows too.
44
+ - **Tool gating**: mutators (`edit`/`write`/`apply_patch`/
45
+ `str_replace_editor`/Serena-Munin mutations) hard-block; bash writers
46
+ hard-block, read-only bash (incl. pipelines of reads, `cd &&` chains,
47
+ `VAR=` prefixes, read-only git) auto-runs; unknown executables and non-read
48
+ tools take an Allow-once / Allow-for-this-session / Deny prompt (headless
49
+ blocks). A `subagent` dispatch auto-allows only when every named agent
50
+ resolves `sandbox: read-only`.
51
+ - **Dropped from upstream** (ceulen covers them elsewhere): the
52
+ implement→verify→review flow, `/rewind`, `/goal`, `/specs`, `/handoff`,
53
+ `/btw`, `/doctor`, the fallback chain, and the Jev plan gate. Vendored
54
+ shell classifier with one hardening deviation: `xargs --null rm` no longer
55
+ strips to an empty payload (upstream read it as "read").
56
+ - Config: `plan` section (GLOBAL settings.json + trusted project overlay),
57
+ read per event so /config saves apply live; Tasks tab → Plan mode.
58
+ - Remove the standalone `@bacnh85/pi-plan` when enabling this module — the
59
+ conflict guard refuses the duplicate commands/tools.
60
+
61
+ - **subagent**: two runner-level upgrades for herdr-mode delegation.
62
+ - **Classifier-chosen dispatch**: the classify round-trip can now answer a
63
+ third question — pane or detached background — for a single dispatch
64
+ inside herdr whose caller named neither `runner` nor `background`
65
+ (`subagent.routing.dispatch`, default `classify`, new /config row).
66
+ Explicit params always win, the verdict is reused for tier/effort (one
67
+ Jev call per dispatch), and a background verdict says so on the receipt.
68
+ Verified live: a long, self-contained audit → background; a trivial
69
+ one-liner → visible pane.
70
+ - **Dead `wantTier` gate fixed** (surfaced by a live routing probe): the
71
+ tier question is now actually suppressed for an unresolvable chain
72
+ (typo'd `@alias`), matching its comment — previously the question was
73
+ asked unconditionally and a confident tier verdict could silently swap
74
+ in the role pools, hiding the typo. Tier answers are also only read when
75
+ the question was asked (defensive parse, mirroring effort/dispatch).
76
+ - **Advisor-aware collection**: a herdr child runs full pi, so its own
77
+ advisor reviews the settled turn and can steer corrections after the
78
+ parent had already collected the report (observed live: draft collected,
79
+ advisor note 16s later, child revised — the parent never saw the fix).
80
+ The child's advisor now publishes its review cycle
81
+ (`reviewing` → `done` + `steered`) to a sidecar named by
82
+ `CEULEN_ADVISOR_MARKER` (passed to the pane via `herdr --env`), and the
83
+ parent waits for the verdict before collecting: a short grace poll when no
84
+ review starts, the steered revision's settle when one does, ≤2 rounds,
85
+ bounded by `subagent.advisorWaitSecs` (default 120s, 0 = off; new /config
86
+ row). Write-capable children are told to update the report file when
87
+ follow-up feedback arrives. Results, history, and the usage line record
88
+ folded revisions (`advisor:N revision(s)`); the widget shows
89
+ `herdr: advisor-review` / `advisor-revise` while waiting. SDK children get
90
+ no advisor (the watch is TUI-gated) — nothing to wait for there.
91
+
92
+ - **subagent**: classifier routing now applies to herdr dispatches too — the
93
+ herdr runner (`prepareHerdrOne`, used by foreground single/parallel
94
+ dispatch) resolved the model chain straight from frontmatter/pins and never
95
+ asked the classifier, so in a live herdr session every agent silently ran
96
+ its frontmatter default (a trivial reviewer went to `@smart`/`high` instead
97
+ of the routed `fast`/`off`). Both runners now share one `routedChain()`
98
+ helper, so tier, effort, pins, and `solutionSpace` behave identically
99
+ in-process and in panes. Verified live in herdr: reviewer trivial →
100
+ `combo/deepseek-v4.1-flash` · `off`, planner trivial →
101
+ `combo/deepseek-v4.1-flash` · `off`, worker deep-design →
102
+ `cmd/deepseek/deepseek-v4-pro` · `xhigh`. Alongside:
103
+ - history entries (`.pi/subagent-history.json`, `/subagent history`) now
104
+ record the resolved `thinking` level next to `model`, so routing decisions
105
+ stay auditable after the run;
106
+ - the bundled `worker` agent gains `timeout: 10` (same as planner/reviewer).
107
+ Herdr's prompt wait falls back to the 3-min inactivity constant when the
108
+ agent declares no timeout, and that window is a TOTAL cap there (the pane
109
+ is cancelled), unlike the SDK path where it resets on activity — a routed
110
+ `xhigh` worker could otherwise die at 3 min.
111
+
112
+ - **subagent**: OMP-parity live-UI surface for running agents, covering SDK,
113
+ background, and herdr threads alike (all store-driven; pure renderers
114
+ unit-tested in `test/widget.test.ts`):
115
+ - the live widget gains a `Subagents · N running · M ✓ · K ✗` header, a
116
+ `/agent to inspect` tail, per-thread token counters (`↑12k, ↓1.4k`), and
117
+ herdr panes now render their `herdr: <state>` lifecycle label where SDK
118
+ threads show their latest tool call (raw SDK event labels like
119
+ `message_end` never render); failed threads count as `✗`, never `✓`;
120
+ - a new footer status item `ceulen-subagent` (`👥 N running · …`) shows
121
+ while any thread runs and clears on idle/session change — the widget
122
+ controller owns set + clear, and both pi's native footer and the
123
+ composer footer pass it through;
124
+ - `operation: status|wait` tool rows render the OMP-style job tree
125
+ (`⏳ waiting on N of M jobs`, waited task first, settled rows with a
126
+ `⎿` first-line output snippet);
127
+ - chain/parallel call rows honor Ctrl+O expansion (full task list instead
128
+ of the cap-3 preview, with a `(Ctrl+O to expand)` hint when truncated).
129
+
130
+ - **security hardening** across the bundle:
131
+ - **serena**: the Python worker's env no longer merges an *untrusted*
132
+ checkout's cwd `.env` (it could set `NODE_OPTIONS`/`PYTHONPATH` and reach
133
+ the language servers the worker spawns — RCE class). Cwd dot-files load
134
+ only for trusted projects now, same rule as the bundle's `.env`
135
+ ingestion; global agent-dir dot-files always load.
136
+ - **classifier**: the bash verdict hook is reframed honestly as
137
+ audit/annotation only. pi 1.0.0 core has no per-call approval prompt
138
+ for `tool_call` to skip, so the previous "auto-approve/enforce" framing
139
+ described behavior that never existed — nothing was ever approved or
140
+ denied. Behavior is unchanged (verdict + audit +, in enforce mode, a
141
+ transcript annotation); `classifier.log` is now written `0600`.
142
+ - **usage**: router settings resolve through `PI_CODING_AGENT_DIR`
143
+ (was hardcoded `~/.pi/agent/settings.json`, so usage fetches could hit
144
+ the wrong endpoint under an alternate agent dir).
145
+ - **munin**: the vendored SDK's `capabilities` fetch now arms the same
146
+ timeout as `invoke()` (a dead server could hang every
147
+ `ensureCapability` tool call forever).
12
148
 
13
- ## Unreleased
149
+ - **munin** (new module, ported from `@bacnh85/pi-munin` 0.5.12): Munin
150
+ long-term memory — eight `munin_*` tools (search/get/store/list/recent/
151
+ delete/capabilities/share, each per-tool toggleable in `/config`),
152
+ `/munin-status`, the Munin Memory Protocol injected into the system prompt
153
+ while Munin is configured, the `tool_result` error sanitizer, and the `munin`
154
+ skill (kill-switch gated via `resources_discover`). The `@kalera/munin-sdk`
155
+ client is vendored (152 lines, zero deps; capabilities cache now keyed by
156
+ `baseUrl|apiKey`) and dotenv dropped (ceulen's trust-gated `.env` ingestion
157
+ covers it) — no new runtime dependency. **Config is project-level**:
158
+ `munin.project`/`munin.baseUrl`/`munin.apiKey` saved to
159
+ `<repo>/.pi/settings.json` via `/config` (new **Memory** tab, masked key row
160
+ with a gitignore warning), read only when the project is trusted; precedence
161
+ per-call params > `MUNIN_*` env > project file > global file > default.
162
+ Applies immediately — config resolves per tool call, no reload.
163
+ - **advisor** (new module, ported from `@bacnh85/pi-advisor` 0.3.8): a
164
+ second-model reviewer — after each settled turn an isolated reviewer reads the
165
+ transcript and may emit ONE severity-routed note (`nit` / `concern` /
166
+ `blocker`), steered as a follow-up turn or deferred to the next turn as an
167
+ LLM-visible aside during the post-steer calm-down window, under the ported
168
+ emission guard (content-free drop, dedupe with escalation, one note per
169
+ cycle). The ordered fallback chain (per-entry `:level` thinking) backs the
170
+ on-demand `advisor` tool (per-tool toggleable). Config: `/config` → Model →
171
+ Advisor — **Review settled turns** (the background watch; off = no review,
172
+ the consult tool keeps working), **Primary model** (catalogue picker),
173
+ **Thinking**, **Fallback chain** (inline model completions), min tool calls,
174
+ immune turns, and **Consult tool** (register the on-demand `advisor` tool);
175
+ saved to the GLOBAL **`advisor`** settings section and applied live through a
176
+ module bridge (no `/reload`). The module is **core**: always loaded, no
177
+ Enable row — its off-switch is an empty primary model (a stale
178
+ `ceulen.disabled: ["advisor"]` entry is ignored). The standalone `pi-advisor`
179
+ section is a read-only legacy alias (legacy `watch.enabled` folds into the new
180
+ `enabled`, the legacy section is deleted on the first save); the pi-plan
181
+ `advisorModel` migration is dropped (pi-plan's own port owns it). The
182
+ pi-config-panel models editor and the `ModelSelectorComponent` picker are
183
+ gone — `/config` is the editor. Isolated calls go through the public
184
+ `modelRegistry.streamSimple`, so no `@earendil-works/pi-ai` dependency is
185
+ added. Watch is TUI-only, fire-and-forget, pauses after 3 consecutive
186
+ failures, self-disarms on session shutdown, and the `advisor` tool is
187
+ re-synced on session_start/model_select while always honoring
188
+ `ceulen.disabledTools`. OMP-parity hardening: the reviewer prompt bans the
189
+ production noise classes (restating errors the agent already has, user-intent
190
+ and ceremony advice, scope policing, unsolicited back-compat, second-guessing
191
+ committed decisions, partial-work critique) and requires cited evidence;
192
+ token/cost accounting accumulates into `/advisor status` and the consult
193
+ tool's result; the review cursor and guard reset on `session_compact` /
194
+ `session_before_switch` (a re-primed reviewer may re-raise against the
195
+ rewritten transcript); the guard folds Unicode letters/digits (full-width
196
+ filler dedupes) and carries omp's larger content-free phrase list.
197
+ - **classifier** (new module, ported from `@bacnh85/pi-classifier` 0.2.3,
198
+ registry-backed): System One decision models (TypeSafe Jev) — the `classify`
199
+ tool (same name/schema, per-tool toggleable) and the bash permission
200
+ auto-approve hook (static RISKY list first, LRU verdict cache keyed by
201
+ command+cwd+task, observe/enforce + threshold, never denies, audit lines in
202
+ `classifier.log`). Every ask now goes through `modelRegistry.classify()`:
203
+ the **router** module discovers decision models from
204
+ `GET <router.baseUrl>/v1/systemone/models` (404-fail-open — plain OmniRoute
205
+ keeps a chat-only catalog), registers them as `type: "classifier"` models
206
+ with a vendored System One transport (`lib/systemone.ts`, ~130 lines), and
207
+ the mixed chat+classifier catalog persists/restores in models-store.json.
208
+ Chat `/models` stay clean; core consumers (codemode, extensions) can use
209
+ `router/combo/jev` via the registry. Auth is the shared ROUTER credential —
210
+ no separate `classifier.baseUrl`/`CLASSIFIER_API_KEY`. Config: `/config` →
211
+ Model tab → Classifier (Jev) (model menu from live discovery, auto-approve
212
+ toggle/mode/threshold). `planGate` is dropped (pi-plan removed; returns with
213
+ the pi-plan port). Replaces the standalone pi-classifier package — remove it
214
+ from `packages` to avoid a duplicate `classify` tool (first registration
215
+ wins); `/router-status` now shows the classifier model count.
14
216
 
217
+ - **config**: new **Tools → Built-in tools** section — one toggle per pi
218
+ built-in tool (`read`, `bash`, `powershell`, `edit`, `write`, `grep`,
219
+ `find`, `ls`) plus the built-in extension tools `codemode` and
220
+ `tool_search`; the stock four (`read`, `bash`, `edit`, `write`) default on.
221
+ Toggling writes the `defaultTools` setting (global settings.json; a
222
+ stock-equal selection deletes the key again) and applies to the current
223
+ session immediately — enabling grep/codemode no longer needs a settings
224
+ edit or a restart.
225
+ - **composer**: the line above the band is now a full usage line — token
226
+ stats + provider quota windows flush LEFT (`↑1.9M ↓377k R69M W2.0k CH99.6%
227
+ · (router) R:59%/2H3M`), Generation Rate justified RIGHT (`⚡ N tok/s`),
228
+ split by the composer's stock left/right groups. `CH` (cache-hit share of
229
+ the latest assistant prompt) joins the stats figures; cost stays `/usage`-
230
+ only. Under width pressure the left group sheds whole segments (usage →
231
+ stats) while the rate stands; rate alone still right-justifies. The band
232
+ itself stays identity-only (π · model · dir · git + context%).
233
+ - **ux** (new module, ported from `@bacnh85/pi-ux` 0.6.6): anti-slop UI/UX
234
+ design discipline — `/ux off|lite|strict` (session-persisted, `stop ux` /
235
+ `normal mode` deactivates) injects the ux-design method into the system
236
+ prompt each turn; strict blocks handoff until the `ux_audit` tool passes
237
+ (deterministic APCA-contrast / token / state / slop-tell gates, no model).
238
+ Ships the four `ux-*` skills (`ux-design`, `ux-presets`, `ux-routing`,
239
+ `ux-capture`) through `resources_discover`, gated by the module kill-switch.
240
+ Configured in `/config` (Appearance → UX discipline: default mode,
241
+ quiet startup; per-tool toggle for `ux_audit`) — persists to
242
+ `~/.config/pi-ux/config.json` with `PI_UX_*` env overrides, so standalone
243
+ pi-ux settings carry over. **No status-bar footprint** (upstream's status
244
+ segment, `hideStatus` setting and `PI_UX_HIDE_STATUS` are dropped), and
245
+ bare `/ux` reports status instead of resetting (ponytail #99 precedent);
246
+ `/ux default <mode>` is gone — the central panel owns defaults. The
247
+ ponytail module's skill contribution was narrowed from the whole `skills/`
248
+ root to its own six `ponytail*` dirs so the ux kill-switch actually gates
249
+ the ux skills.
250
+ - **themes** (new package resource): 104 selectable themes ship with the bundle —
251
+ the 4 from `@bacnh85/pi-themes` (`pi-dark`, `pi-mirage`, `pi-light`,
252
+ `pi-catppuccin-mocha`) plus 100 from oh-my-pi's collection (`dark-*` /
253
+ `light-*` families + stone/gem one-offs). Loaded by pi itself via the
254
+ package manifest (`pi.themes`) — no module, no kill-switch; select in
255
+ `/theme` or `/config` (Appearance → Theme, live preview). omp copies were
256
+ re-pointed at pi's theme schema and their 8-digit RGBA `selectedBg`
257
+ (poimandres pair) truncated to 6-digit hex (pi's `parseColor` rejects
258
+ alpha). `scripts/validate-themes.mjs` (in `npm test`) enforces name
259
+ uniqueness, no builtin collisions (`dark`/`light`/`system`), the full
260
+ pi-required token set, and resolvable color values across all 104.
261
+ - **serena, fff, rtk** (new modules, ported from the pi-extensions monorepo):
262
+ Serena semantic code tools (`serena_*`, Python worker), FFF fuzzy
263
+ file/content search (`ffgrep`, `ffind`, `fff_multi_grep`, `resolve_file`,
264
+ `related_files` + @-mention completions), and RTK bash-command rewriting
265
+ (`/rtk`). Every tool they register gets a **per-tool toggle row in /config**
266
+ (Tools · Serena / FFF search, Shell · RTK sections): toggling writes
267
+ `ceulen.disabledTools` and applies to the running session immediately via
268
+ `setActiveTools` (disabled tools re-register inactive on every load, so the
269
+ setting survives restarts without a /reload). rtk has no tools — its surface
270
+ is the module Enable row. No status-bar entries — the modules stay silent
271
+ in the footer. First runtime dependency: `@ff-labs/fff-node`
272
+ (native FFI engine, unvendorable); `typebox` joins the peer deps (pi aliases
273
+ it at runtime). Serena/fff tests converted to the repo's `node:test` + tsx
274
+ convention; rtk's were already `node:test`.
275
+ - **config**: stock-`/settings` parity — every pi setting with a typed
276
+ `SettingsManager` setter is now a `/config` row. New: **per-model thinking
277
+ overrides** (one row per model + an **Add model override** row whose menu
278
+ lists catalog models; the clear option reverts to the default — rows appear
279
+ and disappear on commit via the kernel's new `rebuildOnCommit`), **Fullscreen
280
+ wheel scrolling**, and the extra-resource-dir lists (**Extension dirs**,
281
+ **Skill dirs**, **Template dirs**, **Theme dirs**). Stock choice UX: HTTP idle
282
+ timeout renders the labeled choices (`30 sec`…`disabled`), Default project
283
+ trust `Ask`/`Always trust`/`Never trust`, editor padding / autocomplete /
284
+ image width as stock choice sets, and thinking levels carry their per-level
285
+ descriptions (`off` … `max`, ~token hints). OMP taxonomy: transport →
286
+ **Providers · Protocol**, HTTP idle timeout → **Providers · Timeouts**,
287
+ telemetry/analytics → **Providers · Privacy**, skill commands + skill dirs →
288
+ **Tasks · Commands & Skills**, extension dirs → **Tools · Extensions**,
289
+ template dirs → **Context · Prompt templates**; descriptions now match pi's
290
+ own stock `/settings` copy. Kernel: `ConfigPanelOpts.rebuildOnCommit` +
291
+ `ConfigPanelModel.rebuild` rebuild the row set after any committed edit
292
+ (toggle, menu pick, inline submit) — used by the dynamic per-model rows.
15
293
  - **composer** (new CORE module): Composer Shape for the input editor with
16
294
  OMP's full vocabulary and copy — **Status Band** (default) · **Rounded Box**
17
295
  · **Claude Code** · **Pi** · **Borderless** · **Top Rule Dock** · **Compact
@@ -23,9 +301,19 @@
23
301
  and filled surfaces are composed by re-laying the editor out at the
24
302
  shape's content width and wrapping each row — the cursor marker survives,
25
303
  so wrapping and hardware-cursor placement stay exact. Status-bearing
26
- shapes show live model · cwd · context-%; the working spinner stays
27
- visible in every shape. Always on: no kill-switch (a half-configured
28
- composer is worse than none).
304
+ shapes show OMP's stock status split with icons on every segment — left
305
+ group: `π` brand · `(provider) model (thinking level)` (level live via `thinking_level_select`; `off` hidden; the provider prefix is skipped when the display name already carries it) · `📁` cwd · `⑂` branch + working-tree counts
306
+ (`*N`/`+N`/`?N`, warning when dirty) · provider quota windows (`(router)
307
+ R:59%/2H3M`, fed by the usage module) · session token stats (`↑40k ↓44 R64
308
+ CH0.2%`) · `⚡` Generation Rate; right group: the context window
309
+ (`0.0%/1.0M (auto)`, stepped at 70%/90%). The band fills the
310
+ status chip only, not the whole line. On status-bearing
311
+ shapes the module replaces Pi's built-in footer with a narrowed one —
312
+ the other extensions' statuses only, since cwd/branch/
313
+ model/context%/token-stats/quota-windows are already in the band;
314
+ non-embedding shapes keep the
315
+ native footer. The working spinner stays visible in every shape. Always on:
316
+ no kill-switch (a half-configured composer is worse than none).
29
317
  - **config**: rows can carry a `previewLines` hook — a read-only preview
30
318
  block under the rows pane / selection menu that follows the highlighted
31
319
  option (OMP's settings-screen preview window).
@@ -127,6 +415,23 @@
127
415
  - **bundle**: trusted cwd `.env` ingestion (`loadCwdEnvFilesIfTrusted`) is now also registered at the bundle entry, before every module's `session_start` — sub previously loaded it in its own handler, which runs after router's, so a trusted repo's `.env`-provided `ROUTER_BASE_URL`/`ROUTER_ENABLE_REASONING` was invisible to router for the entire first session.
128
416
  - **sub**: backported the nightly-review security fix from pi-sub — cwd `.env.local`/`.env` are no longer ingested at import time (an untrusted checkout could inject `ROUTER_MGMT_TOKEN` etc.); they now load in `session_start` only behind `ctx.isProjectTrusted()`, with global agent-dir env files still injected at import and trusted-cwd files overriding only those. Also backported the expired-Codex-JWT fix: a plan label no longer renders from a token whose `exp` has passed (shows `expired`).
129
417
 
418
+ ## 0.5.1 — 2026-09-30
419
+
420
+ - Widened pi peer range from `^0.99.1` to `>=0.99.1 <0.101.0`: caret on a
421
+ 0.x dependency is patch-only (≥0.99.1 <0.100.0), too narrow for pi's fast
422
+ minor releases. No other changes.
423
+
424
+ ## 0.5.0 — 2026-09-30
425
+
426
+ - **pi 0.99.1 compatibility**: peer dependencies widened from
427
+ `>=0.80.8 <0.88.0` to `^0.99.1` for both
428
+ `@earendil-works/pi-coding-agent` and `@earendil-works/pi-tui` (range
429
+ corrected to `>=0.99.1 <0.101.0` in 0.5.1). No code changes — all surfaces verified:
430
+ registration API (guarded() claims), composer `CustomEditor` duck-typing,
431
+ theme Proxy/`setTheme` semantics, `session_start` re-fire, trust.json
432
+ gating, jiti extension loading (the 0.99 tsx→type-stripping switch affects
433
+ pi's own build only). 306 tests + live `pi --mode rpc` smoke pass.
434
+
130
435
  ## 0.3.0 — 2026-09-28
131
436
 
132
437
  Wave 2: ponytail merged into the bundle.
package/README.md CHANGED
@@ -2,17 +2,9 @@
2
2
 
3
3
  **The Pi coding agent, fully dressed.**
4
4
 
5
- Pi's minimal core + one bundle extension carrying the complete toolkit, wired behind a single `/ceulen` command. Named for Ludolph van Ceulen, who computed π to 35 digits — they're carved on his tombstone.
5
+ One extension bundle that turns [Pi](https://github.com/earendil-works/pi) into a fully equipped coding agent: a router provider, a second-model reviewer, long-term memory, usage display, themes, and a central settings panel — one install, one command surface, most modules individually switchable.
6
6
 
7
- ## What it is
8
-
9
- A [Pi](https://github.com/earendil-works/pi) distro in the form of one extension bundle:
10
-
11
- - **One install** — the suite ships as a unit
12
- - **One surface** — modules register into Pi's native UX: tools, commands, events
13
- - **Selective adoption** — every module has an individual kill-switch; disable what you don't use
14
- - **No core patches** — Pi's public extension API only, so upstream upgrades stay drop-in
15
- - **Zero runtime dependencies** — everything is vendored
7
+ Named for Ludolph van Ceulen, who computed π to 35 digits — they're carved on his tombstone.
16
8
 
17
9
  ## Install
18
10
 
@@ -20,108 +12,112 @@ A [Pi](https://github.com/earendil-works/pi) distro in the form of one extension
20
12
  pi install npm:ceulen
21
13
  ```
22
14
 
23
- Add `-l` to install into the current project instead of your user scope. Update with `pi update --extensions`. Then start Pi in your project directory — ceulen's modules load automatically.
15
+ Add `-l` to install into the current project instead of your user scope. Update with `pi update --extensions`. Then start Pi in your project — the modules load automatically.
16
+
17
+ ## Quick start
18
+
19
+ ```sh
20
+ /config # one panel for pi core + every ceulen module
21
+ /ceulen # which modules are active
22
+ ```
23
+
24
+ Most modules work out of the box. Two need credentials; one is optionally configured:
25
+
26
+ - **router** — set `router.baseUrl` (via `/config` → Providers, or `ROUTER_BASE_URL` env), then `/login router`.
27
+ - **munin** — set project + API key via `/config` → Memory (saved to `<repo>/.pi/settings.json`).
28
+ - **web** — optional: set search/extract backends via `/config` → Tools → Web (SearXNG/Brave/Firecrawl/Crawl4AI). Works with only one backend configured; `web_status` reports what is ready.
24
29
 
25
30
  ## Modules
26
31
 
27
32
  ### router — any OpenAI-compatible router as a Pi provider
28
33
 
29
- Registers the generic `router` provider (models via `GET /v1/models`, chat via `/v1/chat/completions`) against 9router, OmniRoute, yardmaster, or any OpenAI-compatible router.
34
+ Use 9router, OmniRoute, yardmaster, or any OpenAI-compatible endpoint as a normal Pi provider: models appear in `/model`, chat goes through `/v1/chat/completions`.
30
35
 
31
- - Config: `router.baseUrl` in `~/.pi/agent/settings.json` (or `ROUTER_BASE_URL` env)
32
- - Auth: `/login router` in Pi (or `ROUTER_API_KEY` env)
33
- - Commands: `/router-status`, `/router-model` — settings via `/config` (Providers tab)
36
+ - Config: `/config` → Providers (base URL + thinking levels; a save re-registers and refreshes live)
37
+ - Auth: `/login router` or `ROUTER_API_KEY` env
38
+ - Commands: `/router-status`, `/router-model`
34
39
 
35
- ### usage — subscription-usage footer
40
+ If the router serves System One decision models (yardmaster's `GET /v1/systemone/models`), they're listed as classifier models for the `classify` tool — never mixed into the chat picker.
36
41
 
37
- A status footer showing subscription/provider usage (5-hour, weekly, monthly windows, credits). Commands: `/usage` (usage detail), `/context` (context-window detail).
42
+ ### classifier — decision models (Jev) for typed answers
38
43
 
39
- **Yardmaster**: if `router.baseUrl` points at a yardmaster instance, the footer polls `GET <baseUrl>/usage?provider=<prefix>` (falling back to the aggregate `GET /usage`, then OmniRoute's `om-usage` endpoint) and renders remaining % per window plus credit balance:
44
+ The `classify` tool asks a System One decision model typed questions (yes-probability, multiple choice with confidence, scored position) and gets calibrated answers instead of prose — useful for routing, verification, and gating decisions inside scripts and codemode.
40
45
 
41
- ```
42
- Router · command-code 5h:82% W:64% M:31% M:$12.40
43
- ```
46
+ It also audits bash commands (reversible? serves the task?) to `~/.pi/agent/classifier.log`. This is **observation only** — it never blocks or approves anything.
47
+
48
+ - Config: `/config` → Model → Classifier (Jev)
49
+ - Needs the router module configured
50
+
51
+ ### advisor — a second pair of eyes
52
+
53
+ After each turn with real work, a separate reviewer model reads the transcript and may raise **one** note — `nit` (consider), `concern` (address or justify), `blocker` (fix first) — or stay silent. A dedupe/rate-limit guard keeps it quiet; the reviewer never uses your primary model.
54
+
55
+ - Tool: `advisor` — consult the reviewer on demand
56
+ - Config: `/config` → Model → Advisor (reviewer model, fallback chain, watch knobs — applies live)
57
+ - Commands: `/advisor [model[, model…]|models|on|off|status]`
58
+ - Turn it off: clear the Primary model row
59
+
60
+ ### usage — subscription usage in the footer
61
+
62
+ A status footer with provider usage: 5-hour / weekly / monthly windows, credits, and a generation-rate indicator. `/usage` for detail, `/context` for a context-window breakdown. Supports openai-codex, opencode-go, z.ai, Command Code, and router/yardmaster (needs a key with usage permission).
63
+
64
+ ### composer — a proper input editor
44
65
 
45
- Needs a yardmaster API key with the **usage** permission — the same key you `/login router` with works if it has that permission.
66
+ Pick the input editor's look from `/config` → Appearance → Composer Shape: Status Band (default), Rounded Box, Claude Code, Pi, Borderless, and more — with live preview while you browse. Status-bearing shapes show model, directory, git branch + working-tree state, generation rate, and context usage in one strip. Always on.
46
67
 
47
- ### composer — Composer Shape for the input editor
68
+ ### munin — long-term memory
48
69
 
49
- Re-chrome Pi's input editor from `/config` (Appearance → Composer Shape) with
50
- OMP's full composer vocabulary — **Status Band** (default) · **Rounded Box** ·
51
- **Claude Code** · **Pi** · **Borderless** · **Top Rule Dock** · **Compact
52
- Field** · **Accent Rail** — each with OMP's own label and one-line
53
- description in the selection menu. Browsing the Shape row previews the shape
54
- right in the panel (rendered through the same chrome builders the live editor
55
- uses — no drift); Enter applies it to the running editor immediately — text,
56
- autocomplete and all app keybindings intact (the custom editor extends Pi's
57
- `CustomEditor`) — and persists `composer.shape` to the global settings.json.
58
- Status-bearing shapes (Band, Box, Claude, Top Rule Dock) show live session
59
- data — model · directory · context %; the working spinner stays visible in
60
- every shape. **Core module**: always loaded, no kill-switch — a
61
- half-configured composer is worse than none.
70
+ `munin_search` / `munin_get` / `munin_store` / `munin_list` / `munin_recent` / `munin_share` / `munin_delete` / `munin_capabilities`, plus a memory protocol that teaches the agent when to search and what's worth storing. `/munin-status` shows where each config field comes from (never the key itself).
62
71
 
63
- - Config: `composer.shape` in `~/.pi/agent/settings.json` — via `/config` (Appearance tab)
72
+ - Config: `/config` → Memory — **project-level** (`<repo>/.pi/settings.json`; add it to `.gitignore`). Read only when the project is trusted; `MUNIN_*` env vars override.
64
73
 
65
74
  ### ponytail — lazy-senior-dev mode
66
75
 
67
- Lazy mode for the agent itself: `/ponytail off|lite|full|ultra|review` switches the over-engineering discipline level (persisted per session); `stop ponytail` / `normal mode` deactivates. The active level is injected into the system prompt each turn, shown in the status bar, and inherited by subagents. Ships the six `ponytail*` skills (`/ponytail-review|audit|gain|debt|help`).
68
-
69
- - Config: `~/.config/ponytail/config.json` or `PONYTAIL_*` envs
70
- - Command: `/ponytail [mode|status]` — default mode via `/config` (Tasks tab)
71
-
72
- ### config — central settings panel
73
-
74
- `/config` opens one fullscreen panel for **pi core settings and every ceulen
75
- module** — the frame fills the terminal (boxed corners, tab row, pinned
76
- key-hint footer), so the chat is replaced while you configure and comes back
77
- untouched on close. Tabs follow OMP's settings taxonomy: **Appearance · Model ·
78
- Interaction · Context · Shell · Tasks · Providers · Plugins** (empty
79
- categories don't render). A tab with several settings groups shows them as a
80
- left sidebar of sections with the underlined section headings repeated beside
81
- the detail rows, OMP style; the sidebar geometry stays identical across tabs.
82
-
83
- - **Appearance** — pi theme, display/editor/fullscreen/terminal-image settings, plus the usage-footer and composer module switches
84
- - **Model** — default model/provider, thinking, network transport/timeouts, retry, cache warming
85
- - **Interaction** — steering/follow-up modes, double-escape + tree filter, startup notices, trust & telemetry
86
- - **Context / Shell** — auto-compact, shell path/prefix, npm command
87
- - **Tasks** — ponytail (default mode `off/lite/full/ultra`, quiet startup, status-bar visibility; applies next session)
88
- - **Providers** — router (base URL + thinking levels; saves re-register the provider and refresh the catalog live)
89
- - **Plugins** — every installed Pi package (`packages` in settings.json) with an on/off
90
- toggle; disabling writes the package in Pi's all-empty-resource-list form. Packages
91
- with granular `pi config` filters or project filter deltas show as read-only
92
- ("custom filters"). Toggles apply after `/reload`.
93
-
94
- Each module's on/off switch lives at the top of its own section (Router → Providers,
95
- ponytail → Tasks, usage → Appearance, the config panel itself → Plugins) as an
96
- **Enabled** row writing the `ceulen.disabled` list — a feature is turned on where
97
- it is configured. Pi-core rows are backed by Pi's `SettingsManager` and save to the
98
- global `settings.json`; they apply after `/reload` (or a new session).
99
-
100
- Keyboard: `←→`/`Tab`/`Shift+Tab` switch tabs (wrapping), `↑↓` move, `PageUp`/
101
- `PageDown` jump sections, `Enter` toggles a switch or opens the selection menu,
102
- type any text to fuzzy-search across every tab (`←→` jumps between matching
103
- categories), `Esc` saves and closes (a second `Esc` clears the search first).
104
- Multi-choice rows (theme, thinking level, transport, model, …) open an
105
- OMP-style **selection menu** in place: `↑↓` browse, type to filter, `Enter`
106
- selects, `Esc` backs out. **Theme changes preview live** as you browse (the
107
- whole terminal restyles; `Esc` restores the previous theme) and the model
108
- picker lists `provider/id` from the model catalogue. Values differing
109
- from their default render in warning color; rows that env vars can override
110
- say so in the help area.
111
-
112
- Pi's builtin `/settings` cannot be overridden by extensions (a colliding
113
- command is renamed `/settings:1`); `/config` adds the ceulen modules around
114
- pi's own settings. Non-TUI shells get a text summary (`/config show`).
115
-
116
- ## Kill-switches
117
-
118
- In `~/.pi/agent/settings.json` (or a trusted project's `.pi/settings.json`):
76
+ `/ponytail off|lite|full|ultra` switches an over-engineering discipline: simplest solution that works, stdlib first, no speculative abstraction. Also ships `/ponytail-review`, `/ponytail-audit`, `/ponytail-debt`, `/ponytail-gain` skills. Deactivate with `stop ponytail`.
77
+
78
+ ### ux — anti-slop UI discipline
79
+
80
+ `/ux off|lite|strict` injects a UI design method (tokens only, full interaction states, no AI-slop tells) for any UI work; `strict` blocks handoff until the deterministic `ux_audit` tool passes (APCA contrast, token, and state gates — no model needed). Ships the `ux-*` skills. Deactivate with `stop ux`.
81
+
82
+ ### plan — read-only plan mode
83
+
84
+ `/plan` (or `--plan`, `ctrl+alt+p`) switches a read-only planning mode: research tools and read-only bash run untouched, file mutators hard-block, unknown commands ask first. The agent produces a reviewable plan via `write_plan` and can resolve ambiguities with `ask_user_question`; `/plan-approve current|new` executes it in this session or a fresh one. Plans land in `.pi/plans/` by default — **Save plans** in `/config` → Tasks → Plan mode decides which ones hit disk (`all` drafts, `approved` only finalized ones, `none` conversation-only). Plan-only model/thinking and `/plan-auto` autonomous approval are config rows too.
85
+
86
+ ### web — unified web tools
87
+
88
+ `web_search` (adaptive SearXNG → Brave → Firecrawl), `web_extract`, `web_map`, `web_crawl`, `web_screenshot`, `web_pdf`, `web_interact` (real headless-Chrome click/type/evaluate for verifying UI behaviour), `web_research` (Gemini web + Deep Research), `web_image`, `web_chat`, `web_status`. Backend-routing guidance is injected only while a web tool is active.
89
+
90
+ - Config: `/config` → Tools → **Web** — 16 provider rows (endpoints, keys, timeouts, Gemini cookie, image/chat providers). Written to the global `web` settings section and read per tool call, so saves apply without `/reload`; `BRAVE_API_KEY`, `SEARXNG_BASE_URL`, `FIRECRAWL_*`, `CRAWL4AI_*`, `GEMINI_WEB_*`, `ZAI_API_KEY`, `WEB_IMAGE_*`, `WEB_CHAT_*` env vars still win. Secrets are masked. Individual tools toggle from the same section.
91
+ - Static extraction uses vendored readability/turndown (no extra install); `jsdom` and `gemini-reverse` are the module's only runtime dependencies.
92
+
93
+ ### serena / fff / rtk — code navigation & search (bundled tools)
94
+
95
+ - **serena** — semantic code tools (find symbol, references, rename, diagnostics) via a persistent language-server worker
96
+ - **fff** — fast fuzzy file/content search (`ffgrep`, `fffind`) feeding the built-in grep/find experience and `@`-mention completions
97
+ - **rtk** — transparently rewrites shell commands to save tokens (`/rtk status`, `RTK_DISABLED=1` to bypass)
98
+
99
+ ### config — the settings panel
100
+
101
+ `/config` opens one fullscreen panel covering **pi core settings and every ceulen module**, organized in tabs (Appearance · Model · Interaction · Memory · Context · Shell · Tasks · Providers · Plugins).
102
+
103
+ - Theme and composer changes preview live while you browse; tool toggles apply immediately
104
+ - Module on/off switches and pi-core rows take effect after `/reload`
105
+ - Type any text to fuzzy-search every tab; `Esc` saves and closes
106
+ - Non-TUI contexts get a text summary: `/config show`
107
+
108
+ ## Themes
109
+
110
+ 104 themes ship with the package — select them in Pi's `/theme` picker or `/config` (Appearance → Theme; previews live). Includes the Ayu/Catppuccin ports and the 100-theme oh-my-pi collection.
111
+
112
+ ## Turning modules off
119
113
 
120
114
  ```json
121
- { "ceulen": { "disabled": ["usage"] } }
115
+ { "ceulen": { "disabled": ["munin", "ponytail"] } }
122
116
  ```
123
117
 
124
- Disabled modules don't register anything; `/ceulen` lists what's active and disabled. `/config` toggles the same list — it writes to whichever file currently carries the `ceulen` section (project file when that's the effective one, disclosed in the panel).
118
+ In `~/.pi/agent/settings.json` or a trusted project's `.pi/settings.json`. `/ceulen` lists what's active; `/config` toggles the same list. Individual tools can be toggled too (Tools tab). Disabled modules register nothing.
119
+
120
+ The core set — router, usage, ux, classifier, composer, advisor, and the `/config` panel itself — is always on and never appears in the kill-switch list.
125
121
 
126
122
  ## License
127
123
 
@@ -0,0 +1,33 @@
1
+ // Cross-module contract: the subagent module's herdr runner spawns child panes
2
+ // with ADVISOR_MARKER_ENV naming a JSON sidecar; the advisor module running
3
+ // inside that child publishes its review cycle there, so the parent can wait
4
+ // for the advisor verdict instead of collecting a draft the advisor is about
5
+ // to correct. See subagent/lib/herdr.ts (reader) and advisor/lib/watcher.ts
6
+ // (writer). The parent's own advisor never sees the env var, so this is inert
7
+ // outside delegated panes.
8
+
9
+ /** Env var naming the sidecar file (absolute path). */
10
+ export const ADVISOR_MARKER_ENV = "CEULEN_ADVISOR_MARKER";
11
+
12
+ export interface AdvisorMarker {
13
+ /** "reviewing" while the isolated review call runs; "done" when the cycle
14
+ * ended (steered or not) — every exit path publishes "done". */
15
+ phase: "reviewing" | "done";
16
+ /** True when this cycle steered a follow-up turn into the child. */
17
+ steered: boolean;
18
+ /** Producer clock (ms) — same machine, so freshness comparisons are safe. */
19
+ at: number;
20
+ }
21
+
22
+ /** Parse a marker payload. Undefined for absent/corrupt/unknown shapes — the
23
+ * caller must treat that as "no advisor", never as "review in progress". */
24
+ export function parseAdvisorMarker(raw: string | undefined | null): AdvisorMarker | undefined {
25
+ if (!raw) return undefined;
26
+ try {
27
+ const value = JSON.parse(raw) as Partial<AdvisorMarker>;
28
+ if ((value.phase === "reviewing" || value.phase === "done") && typeof value.at === "number" && Number.isFinite(value.at)) {
29
+ return { phase: value.phase, steered: value.steered === true, at: value.at };
30
+ }
31
+ } catch { /* not JSON — treated as no signal */ }
32
+ return undefined;
33
+ }