@herbertgao/pi-extensions 2026.11.10 → 2026.11.12

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 (296) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +10 -10
  3. package/THIRD_PARTY_NOTICES.md +3 -3
  4. package/node_modules/@herbertgao/pi-cc-extensions/CHANGELOG.md +16 -0
  5. package/node_modules/@herbertgao/pi-cc-extensions/README.en.md +3 -4
  6. package/node_modules/@herbertgao/pi-cc-extensions/README.md +3 -4
  7. package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/agent-summary/core.ts +22 -15
  8. package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/agent-summary/index.ts +22 -8
  9. package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/context.ts +0 -29
  10. package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/shell/prompt-editor.ts +5 -2
  11. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/compact-mode.ts +73 -47
  12. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/mouse/interaction.ts +3 -2
  13. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/codemode.ts +0 -40
  14. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/diff/diff-parse.ts +4 -1
  15. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/grouping.ts +79 -18
  16. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/tool-io.ts +0 -5
  17. package/node_modules/@herbertgao/pi-cc-extensions/extensions/utils/ansi-text.ts +18 -4
  18. package/node_modules/@herbertgao/pi-cc-extensions/extensions/utils/format.ts +15 -0
  19. package/node_modules/@herbertgao/pi-cc-extensions/package.json +4 -4
  20. package/node_modules/@herbertgao/pi-impeccable/CHANGELOG.md +12 -0
  21. package/node_modules/@herbertgao/pi-impeccable/README.md +2 -2
  22. package/node_modules/@herbertgao/pi-impeccable/package.json +4 -4
  23. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/SKILL.md +4 -2
  24. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/adapt.md +2 -2
  25. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/animate.md +17 -0
  26. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/audit.md +12 -1
  27. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/audit.native.md +4 -0
  28. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/critique-rubric.md +496 -0
  29. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/critique.md +13 -505
  30. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/documenter.md +1 -1
  31. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/finish-reviewer.md +1 -1
  32. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/motion-reviewer.md +29 -0
  33. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/distill.md +1 -1
  34. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/document.md +3 -1
  35. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/foundations.md +44 -0
  36. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/hooks.md +3 -3
  37. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/live-setup.md +1 -1
  38. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/live.md +26 -12
  39. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/new-work-comp.md +24 -0
  40. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/new-work-world.md +20 -0
  41. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/new-work.md +9 -37
  42. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/onboard.md +7 -6
  43. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/overdrive.md +2 -2
  44. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/quieter.md +1 -1
  45. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/typeset.md +6 -0
  46. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/visualize.md +1 -1
  47. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/VERSION +1 -1
  48. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/engine-checksums.txt +5 -5
  49. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/impeccable +69 -16
  50. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/impeccable.cmd +55 -7
  51. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/live-browser.js +51 -22
  52. package/node_modules/@herbertgao/pi-subagents/CHANGELOG.md +6 -0
  53. package/node_modules/@herbertgao/pi-subagents/README.md +27 -9
  54. package/node_modules/@herbertgao/pi-subagents/docs/workflows.md +11 -11
  55. package/node_modules/@herbertgao/pi-subagents/package.json +4 -4
  56. package/node_modules/@herbertgao/pi-subagents/src/agent-manager.ts +13 -0
  57. package/node_modules/@herbertgao/pi-subagents/src/agent-runner.ts +51 -32
  58. package/node_modules/@herbertgao/pi-subagents/src/default-agents.ts +7 -0
  59. package/node_modules/@herbertgao/pi-subagents/src/index.ts +334 -893
  60. package/node_modules/@herbertgao/pi-subagents/src/nested-tools.ts +4 -1
  61. package/node_modules/@herbertgao/pi-subagents/src/prompts.ts +13 -0
  62. package/node_modules/@herbertgao/pi-subagents/src/schedule-store.ts +18 -13
  63. package/node_modules/@herbertgao/pi-subagents/src/schedule.ts +25 -5
  64. package/node_modules/@herbertgao/pi-subagents/src/settings.ts +215 -69
  65. package/node_modules/@herbertgao/pi-subagents/src/types.ts +17 -0
  66. package/node_modules/@herbertgao/pi-subagents/src/ui/agent-widget.ts +9 -0
  67. package/node_modules/@herbertgao/pi-subagents/src/ui/agents-menu.ts +705 -0
  68. package/node_modules/@herbertgao/pi-subagents/src/ui/settings-menu.ts +361 -0
  69. package/node_modules/@herbertgao/pi-subagents/src/ui/viewer-keys.ts +1 -1
  70. package/node_modules/pi-antigravity/README.md +58 -9
  71. package/node_modules/pi-antigravity/docs/reader-guarantees.md +35 -0
  72. package/node_modules/pi-antigravity/package.json +15 -6
  73. package/node_modules/pi-antigravity/src/client/client.ts +63 -14
  74. package/node_modules/pi-antigravity/src/client/enterprise.ts +150 -0
  75. package/node_modules/pi-antigravity/src/client/index.ts +1 -0
  76. package/node_modules/pi-antigravity/src/diagnostics/diagnostics.ts +7 -0
  77. package/node_modules/pi-antigravity/src/features/generate-image.ts +56 -2
  78. package/node_modules/pi-antigravity/src/features/read-url-content.ts +124 -0
  79. package/node_modules/pi-antigravity/src/image/image.ts +16 -2
  80. package/node_modules/pi-antigravity/src/index.ts +145 -2
  81. package/node_modules/pi-antigravity/src/models/discovery.ts +3 -4
  82. package/node_modules/pi-antigravity/src/models/grouping.ts +39 -15
  83. package/node_modules/pi-antigravity/src/models/models.ts +126 -14
  84. package/node_modules/pi-antigravity/src/stream/stream.ts +189 -30
  85. package/node_modules/pi-antigravity/src/types/types.ts +30 -1
  86. package/node_modules/pi-antigravity/src/usage/usage.ts +58 -0
  87. package/node_modules/pi-antigravity/src/utils/address.ts +180 -0
  88. package/node_modules/pi-antigravity/src/utils/credits.ts +149 -0
  89. package/node_modules/pi-antigravity/src/utils/html.ts +31 -0
  90. package/node_modules/pi-antigravity/src/utils/index.ts +2 -0
  91. package/node_modules/pi-antigravity/src/utils/security.ts +172 -13
  92. package/node_modules/pi-antigravity/src/utils/text.ts +66 -0
  93. package/node_modules/pi-antigravity/src/utils/util.ts +5 -4
  94. package/node_modules/pi-antigravity/src/web-fetch/document.ts +83 -0
  95. package/node_modules/pi-antigravity/src/web-fetch/fences.ts +24 -0
  96. package/node_modules/pi-antigravity/src/web-fetch/header.ts +97 -0
  97. package/node_modules/pi-antigravity/src/web-fetch/index.ts +3 -0
  98. package/node_modules/pi-antigravity/src/web-fetch/inspect.ts +328 -0
  99. package/node_modules/pi-antigravity/src/web-fetch/limits.ts +4 -0
  100. package/node_modules/pi-antigravity/src/web-fetch/markdown.ts +744 -0
  101. package/node_modules/pi-antigravity/src/web-fetch/mdn.ts +164 -0
  102. package/node_modules/pi-antigravity/src/web-fetch/media.ts +11 -0
  103. package/node_modules/pi-antigravity/src/web-fetch/metadata.ts +9 -0
  104. package/node_modules/pi-antigravity/src/web-fetch/representation.ts +93 -0
  105. package/node_modules/pi-antigravity/src/web-fetch/save.ts +71 -0
  106. package/node_modules/pi-antigravity/src/web-fetch/sites.ts +138 -0
  107. package/node_modules/pi-antigravity/src/web-fetch/vendor.d.ts +9 -0
  108. package/node_modules/pi-antigravity/src/web-fetch/web-fetch.ts +957 -0
  109. package/node_modules/pi-antigravity/tsconfig.json +2 -2
  110. package/node_modules/pi-commandcode-provider/CHANGELOG.md +21 -1
  111. package/node_modules/pi-commandcode-provider/README.md +2 -2
  112. package/node_modules/pi-commandcode-provider/index.ts +2 -1
  113. package/node_modules/pi-commandcode-provider/package.json +5 -4
  114. package/node_modules/pi-commandcode-provider/src/commandcode-catalog.ts +15 -9
  115. package/node_modules/pi-commandcode-provider/src/oauth.ts +69 -12
  116. package/node_modules/pi-commandcode-provider/src/pricing.ts +8 -1
  117. package/node_modules/pi-commandcode-provider/src/responses-compat.ts +137 -0
  118. package/node_modules/pi-lens/CHANGELOG-USER.md +6 -6
  119. package/node_modules/pi-lens/CHANGELOG.md +172 -0
  120. package/node_modules/pi-lens/README.md +103 -217
  121. package/node_modules/pi-lens/dist/{chunk-KXDQD34C.js → chunk-27JQHK7Y.js} +1 -1
  122. package/node_modules/pi-lens/dist/{chunk-W6VLB6LL.js → chunk-2APSZHHI.js} +61 -3
  123. package/node_modules/pi-lens/dist/{chunk-5EEWCJG7.js → chunk-2H5GHZKC.js} +8 -8
  124. package/node_modules/pi-lens/dist/{chunk-TS5EIWEF.js → chunk-2H7NFZ4Q.js} +11 -11
  125. package/node_modules/pi-lens/dist/{chunk-6GWCYEP7.js → chunk-37IDWT6O.js} +64 -16
  126. package/node_modules/pi-lens/dist/{chunk-OEPWTSUG.js → chunk-3PAS2ERX.js} +8 -8
  127. package/node_modules/pi-lens/dist/{chunk-ET3DSSFZ.js → chunk-3PO4YYOX.js} +9 -17
  128. package/node_modules/pi-lens/dist/{chunk-C6V2DSZZ.js → chunk-3QXFUP6T.js} +11 -11
  129. package/node_modules/pi-lens/dist/{chunk-HWMNTQBJ.js → chunk-3TSMQZG6.js} +32 -11
  130. package/node_modules/pi-lens/dist/{chunk-QY6J2FTK.js → chunk-4DAHGU3V.js} +15 -14
  131. package/node_modules/pi-lens/dist/{chunk-PCREZ4HJ.js → chunk-4IZZEN63.js} +33 -34
  132. package/node_modules/pi-lens/dist/{chunk-OYXD2MOM.js → chunk-5HBQL7DH.js} +2 -2
  133. package/node_modules/pi-lens/dist/{chunk-B4FAFEBP.js → chunk-5JB4WENL.js} +1 -1
  134. package/node_modules/pi-lens/dist/chunk-5YJXF2IS.js +56 -0
  135. package/node_modules/pi-lens/dist/{chunk-GHATCG2A.js → chunk-6CFSDLHE.js} +22 -18
  136. package/node_modules/pi-lens/dist/{chunk-FVQKX5KI.js → chunk-6E5QLMWI.js} +24 -22
  137. package/node_modules/pi-lens/dist/{chunk-AVBEPUCD.js → chunk-6GLMMGCX.js} +2 -2
  138. package/node_modules/pi-lens/dist/{chunk-YTXFNCVN.js → chunk-74AMPWNC.js} +2 -2
  139. package/node_modules/pi-lens/dist/{chunk-K2GV34T2.js → chunk-7CLWC2UH.js} +26 -37
  140. package/node_modules/pi-lens/dist/{chunk-MOEWCPMC.js → chunk-7DPXUPRF.js} +2 -2
  141. package/node_modules/pi-lens/dist/{chunk-7BEADGAZ.js → chunk-7U36VQL6.js} +2 -2
  142. package/node_modules/pi-lens/dist/{chunk-PPYUBO6Y.js → chunk-7WKVCZI4.js} +1 -1
  143. package/node_modules/pi-lens/dist/{chunk-ILC2B7IJ.js → chunk-7ZVTFLCC.js} +10 -10
  144. package/node_modules/pi-lens/dist/{chunk-IT7MFVGP.js → chunk-ADYQRETD.js} +2 -2
  145. package/node_modules/pi-lens/dist/{chunk-NCDH2JB7.js → chunk-ARTYCUGF.js} +25 -10
  146. package/node_modules/pi-lens/dist/{chunk-Z6WTLVUL.js → chunk-AXAR5ZW2.js} +225 -104
  147. package/node_modules/pi-lens/dist/{chunk-PK3GDU4M.js → chunk-AZG5UJYY.js} +1 -1
  148. package/node_modules/pi-lens/dist/{chunk-NRVWLTOY.js → chunk-B2OXE4AH.js} +60 -21
  149. package/node_modules/pi-lens/dist/{chunk-ORYQGVC3.js → chunk-B42AIWPJ.js} +2 -2
  150. package/node_modules/pi-lens/dist/{chunk-IC4L65U7.js → chunk-BBSDJTOV.js} +12 -13
  151. package/node_modules/pi-lens/dist/{chunk-HJWF7CGW.js → chunk-BKWFDWYM.js} +16 -16
  152. package/node_modules/pi-lens/dist/{chunk-D2ZYRI7M.js → chunk-C5PLBTNR.js} +1 -1
  153. package/node_modules/pi-lens/dist/{chunk-SRXYSLMW.js → chunk-CQY2HEH7.js} +1 -1
  154. package/node_modules/pi-lens/dist/{chunk-7424ANRU.js → chunk-CXQYK4YT.js} +1 -1
  155. package/node_modules/pi-lens/dist/{chunk-HYR25MV3.js → chunk-CZJGAOKL.js} +8 -7
  156. package/node_modules/pi-lens/dist/{chunk-DIIDMDZU.js → chunk-DCA2MXVQ.js} +11 -11
  157. package/node_modules/pi-lens/dist/{chunk-K2LD6YNH.js → chunk-DFKOA74L.js} +9 -9
  158. package/node_modules/pi-lens/dist/{chunk-AYDE7RFV.js → chunk-DI4AZZNY.js} +2 -2
  159. package/node_modules/pi-lens/dist/{chunk-6EXGCXM5.js → chunk-G53LBDNU.js} +99 -5
  160. package/node_modules/pi-lens/dist/chunk-GCSDF5IE.js +27 -0
  161. package/node_modules/pi-lens/dist/{chunk-5KLRCUDT.js → chunk-H5API74E.js} +6 -6
  162. package/node_modules/pi-lens/dist/chunk-HBX55MWO.js +27 -0
  163. package/node_modules/pi-lens/dist/{chunk-JRSS6KM4.js → chunk-HIJ4CHFF.js} +2 -2
  164. package/node_modules/pi-lens/dist/{chunk-3MHY4BQY.js → chunk-HIRBC72R.js} +4 -4
  165. package/node_modules/pi-lens/dist/{chunk-F7AMFFVK.js → chunk-HRLF35WL.js} +8 -8
  166. package/node_modules/pi-lens/dist/{chunk-HSTN27NR.js → chunk-I2FYOZNW.js} +9 -9
  167. package/node_modules/pi-lens/dist/{chunk-5FDUKJZO.js → chunk-I3NZVAMN.js} +9 -9
  168. package/node_modules/pi-lens/dist/{chunk-NZINZCHB.js → chunk-INBK3HIT.js} +3 -3
  169. package/node_modules/pi-lens/dist/{chunk-PXGVB2CY.js → chunk-J2ZB5MDS.js} +20 -18
  170. package/node_modules/pi-lens/dist/{chunk-HYDJUVOE.js → chunk-JGUDT5KD.js} +4 -4
  171. package/node_modules/pi-lens/dist/chunk-JOIKBUQN.js +88 -0
  172. package/node_modules/pi-lens/dist/{chunk-AZXTLZHE.js → chunk-K4Z7MK6T.js} +169 -165
  173. package/node_modules/pi-lens/dist/{chunk-WTSQKJAR.js → chunk-K7O6AHSJ.js} +10 -10
  174. package/node_modules/pi-lens/dist/{chunk-S6ZQFPOX.js → chunk-KNJH6WJQ.js} +6 -6
  175. package/node_modules/pi-lens/dist/{chunk-SUIZOCSY.js → chunk-KNSOA43J.js} +1 -1
  176. package/node_modules/pi-lens/dist/{chunk-3QMLB4TI.js → chunk-KXGTLAUW.js} +2 -2
  177. package/node_modules/pi-lens/dist/{chunk-OHEUOWYT.js → chunk-KZ732ZVW.js} +1 -1
  178. package/node_modules/pi-lens/dist/{chunk-G3LR6V6N.js → chunk-L6BDRYUK.js} +19 -17
  179. package/node_modules/pi-lens/dist/{chunk-OVPR3GQ6.js → chunk-LGH2HHZG.js} +24 -6
  180. package/node_modules/pi-lens/dist/{chunk-3R3Z54J7.js → chunk-LOEJFTF2.js} +1 -1
  181. package/node_modules/pi-lens/dist/{chunk-HGEE5LDW.js → chunk-LQQNFCQJ.js} +1 -1
  182. package/node_modules/pi-lens/dist/chunk-LVLPA32Q.js +810 -0
  183. package/node_modules/pi-lens/dist/chunk-M2YMBT5G.js +73 -0
  184. package/node_modules/pi-lens/dist/{chunk-Z2W5YJBW.js → chunk-MJRGPEQ5.js} +11 -11
  185. package/node_modules/pi-lens/dist/{chunk-3EIZMRXI.js → chunk-MOAVEPC4.js} +10 -10
  186. package/node_modules/pi-lens/dist/{chunk-TOOXNL6M.js → chunk-NGNBJIUO.js} +7 -7
  187. package/node_modules/pi-lens/dist/{chunk-AGEQRJ5A.js → chunk-NHA5K226.js} +1 -1
  188. package/node_modules/pi-lens/dist/{chunk-YLW26OHX.js → chunk-NNEQOC3U.js} +31 -59
  189. package/node_modules/pi-lens/dist/{chunk-ZWZD4TJ5.js → chunk-O2MHF7QM.js} +35 -36
  190. package/node_modules/pi-lens/dist/{chunk-PTJXMYRY.js → chunk-OLWGYBYT.js} +15 -16
  191. package/node_modules/pi-lens/dist/{chunk-JKAVKTMY.js → chunk-OZQQ3AIR.js} +17 -20
  192. package/node_modules/pi-lens/dist/{chunk-6JLNZ6DP.js → chunk-P5MSLVUW.js} +10 -10
  193. package/node_modules/pi-lens/dist/{chunk-OF2YGDUE.js → chunk-PFJLYRO3.js} +37 -38
  194. package/node_modules/pi-lens/dist/chunk-PKWEBMCA.js +2957 -0
  195. package/node_modules/pi-lens/dist/{chunk-JLMS7EMD.js → chunk-PPQHMSPH.js} +16 -15
  196. package/node_modules/pi-lens/dist/{chunk-6EIV3H7O.js → chunk-PQF6YGYB.js} +12 -5
  197. package/node_modules/pi-lens/dist/{chunk-VU2PRGRI.js → chunk-PQXUZYTQ.js} +4 -4
  198. package/node_modules/pi-lens/dist/{chunk-MV6ST2KT.js → chunk-Q7J3JYJ2.js} +13 -12
  199. package/node_modules/pi-lens/dist/{chunk-BMMRLJA4.js → chunk-QE5DJ7MX.js} +27 -10
  200. package/node_modules/pi-lens/dist/{chunk-IZ36G463.js → chunk-QE7BJQ6K.js} +7 -7
  201. package/node_modules/pi-lens/dist/{chunk-E5SSUV2A.js → chunk-QMWKSYWB.js} +4 -4
  202. package/node_modules/pi-lens/dist/{chunk-QJ4T73J5.js → chunk-QV3JPCMK.js} +1 -1
  203. package/node_modules/pi-lens/dist/{chunk-3PMLYGJN.js → chunk-R4L7KZ7R.js} +5 -5
  204. package/node_modules/pi-lens/dist/{chunk-7ZVEFWOE.js → chunk-RIH3UBK4.js} +10 -10
  205. package/node_modules/pi-lens/dist/{chunk-T5EGSBM2.js → chunk-RJ3APNIP.js} +3 -3
  206. package/node_modules/pi-lens/dist/{chunk-AAIVSSUU.js → chunk-S6MCMD27.js} +35 -12
  207. package/node_modules/pi-lens/dist/{chunk-SF7KSXB5.js → chunk-SCU62JLX.js} +6 -6
  208. package/node_modules/pi-lens/dist/{chunk-FDLGJFAE.js → chunk-SDYLT45T.js} +3 -3
  209. package/node_modules/pi-lens/dist/chunk-TFKN5EIR.js +27 -0
  210. package/node_modules/pi-lens/dist/{chunk-Y7XMKBFP.js → chunk-TKOFTLGB.js} +34 -26
  211. package/node_modules/pi-lens/dist/chunk-TQWRH25U.js +35 -0
  212. package/node_modules/pi-lens/dist/{chunk-DZSQXG66.js → chunk-TWEOJE3D.js} +277 -62
  213. package/node_modules/pi-lens/dist/{chunk-R67WQ5RY.js → chunk-UN72ZAJ5.js} +8 -8
  214. package/node_modules/pi-lens/dist/{chunk-AD7JDEI6.js → chunk-UNP6Y4JV.js} +16 -16
  215. package/node_modules/pi-lens/dist/{chunk-D6ANA6YU.js → chunk-VGRGW4UL.js} +63 -55
  216. package/node_modules/pi-lens/dist/{chunk-DFAY7JUN.js → chunk-VSQT6IHZ.js} +2 -2
  217. package/node_modules/pi-lens/dist/{chunk-7T64QA5D.js → chunk-VWEBZ2JV.js} +39 -38
  218. package/node_modules/pi-lens/dist/{chunk-HRQTYU2T.js → chunk-W26QZ3OM.js} +1 -1
  219. package/node_modules/pi-lens/dist/{chunk-2HWVG3IM.js → chunk-XDNWR7SG.js} +2 -2
  220. package/node_modules/pi-lens/dist/{chunk-75TVYCQW.js → chunk-XSC3BCN3.js} +5 -5
  221. package/node_modules/pi-lens/dist/{chunk-ME6MF2N2.js → chunk-YCR6ZYTE.js} +1 -1
  222. package/node_modules/pi-lens/dist/{chunk-LD7SXICE.js → chunk-ZI7YHV6I.js} +5 -5
  223. package/node_modules/pi-lens/dist/{chunk-E3PNZDPH.js → chunk-ZQSSO7LO.js} +33 -1
  224. package/node_modules/pi-lens/dist/{chunk-T6PPK3T6.js → chunk-ZULZS2I6.js} +385 -407
  225. package/node_modules/pi-lens/dist/index.js +6508 -5413
  226. package/node_modules/pi-lens/dist/mcp/analyze-cli.js +9 -9
  227. package/node_modules/pi-lens/dist/mcp/cli.js +39 -38
  228. package/node_modules/pi-lens/dist/mcp/server.js +602 -345
  229. package/node_modules/pi-lens/dist/mcp/worker.js +57 -58
  230. package/node_modules/pi-lens/dist/probes/installer.js +19 -17
  231. package/node_modules/pi-lens/docs/architecture.md +113 -0
  232. package/node_modules/pi-lens/docs/ast-grep_rules_catalog.md +2 -2
  233. package/node_modules/pi-lens/docs/ci.md +18 -4
  234. package/node_modules/pi-lens/docs/defect-shapes.md +41 -3
  235. package/node_modules/pi-lens/docs/dependencies.md +10 -10
  236. package/node_modules/pi-lens/docs/features.md +3 -3
  237. package/node_modules/pi-lens/docs/invariants/dispatch-runners.md +13 -1
  238. package/node_modules/pi-lens/docs/invariants/lsp-trust-exec.md +19 -0
  239. package/node_modules/pi-lens/docs/language-coverage.md +39 -0
  240. package/node_modules/pi-lens/docs/lsp-capability-matrix.md +10 -4
  241. package/node_modules/pi-lens/docs/lsp-idle-eviction.md +1 -1
  242. package/node_modules/pi-lens/docs/pi-lens-fixer.md +4 -0
  243. package/node_modules/pi-lens/docs/pi-lens-merge-policy.md +1 -1
  244. package/node_modules/pi-lens/docs/pi-lens-reviewer.md +4 -5
  245. package/node_modules/pi-lens/docs/pi-lens-subagent.md +5 -2
  246. package/node_modules/pi-lens/docs/prose-standard.md +112 -0
  247. package/node_modules/pi-lens/docs/servercapabilities.md +1 -1
  248. package/node_modules/pi-lens/docs/usage.md +50 -0
  249. package/node_modules/pi-lens/package.json +1 -1
  250. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/array-callback-return-js-test.yml +23 -0
  251. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/array-callback-return-test.yml +23 -0
  252. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/no-negation-in-equality-check-js-test.yml +8 -0
  253. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/no-negation-in-equality-check-test.yml +8 -0
  254. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/unchecked-throwing-call-js-test.yml +16 -0
  255. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/unchecked-throwing-call-test.yml +16 -0
  256. package/node_modules/pi-lens/rules/ast-grep-rules/rules/array-callback-return-js.yml +8 -0
  257. package/node_modules/pi-lens/rules/ast-grep-rules/rules/array-callback-return.yml +8 -0
  258. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-negation-in-equality-check-js.yml +17 -5
  259. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-negation-in-equality-check.yml +17 -5
  260. package/node_modules/pi-lens/rules/ast-grep-rules/rules/unchecked-throwing-call-js.yml +8 -1
  261. package/node_modules/pi-lens/rules/ast-grep-rules/rules/unchecked-throwing-call.yml +8 -1
  262. package/node_modules/pi-lens/rules/tree-sitter-queries/typescript/ts-react-antipatterns.yml +8 -0
  263. package/node_modules/pi-web-access/CHANGELOG.md +29 -0
  264. package/node_modules/pi-web-access/README.md +35 -15
  265. package/node_modules/pi-web-access/anysearch.ts +7 -3
  266. package/node_modules/pi-web-access/autom.ts +196 -0
  267. package/node_modules/pi-web-access/cloro.ts +254 -0
  268. package/node_modules/pi-web-access/curator-page.ts +7 -1
  269. package/node_modules/pi-web-access/curator-server.ts +3 -0
  270. package/node_modules/pi-web-access/dist/index.js +12931 -12111
  271. package/node_modules/pi-web-access/dist/mcp-cli.js +1188 -416
  272. package/node_modules/pi-web-access/domain-filter-normalization.ts +30 -0
  273. package/node_modules/pi-web-access/duckduckgo-rate-limit.ts +144 -34
  274. package/node_modules/pi-web-access/duckduckgo.ts +11 -3
  275. package/node_modules/pi-web-access/extract.ts +60 -4
  276. package/node_modules/pi-web-access/gemini-search.ts +25 -5
  277. package/node_modules/pi-web-access/index.ts +9 -1
  278. package/node_modules/pi-web-access/package.json +2 -2
  279. package/node_modules/pi-web-access/page-query.ts +12 -3
  280. package/node_modules/pi-web-access/specstream.ts +276 -0
  281. package/node_modules/pi-web-access/tool-activation.ts +21 -6
  282. package/node_modules/pi-web-access/utils.ts +4 -0
  283. package/node_modules/pi-web-access/video-extract.ts +2 -2
  284. package/node_modules/pi-web-access/web-tool-core.ts +24 -5
  285. package/node_modules/pi-web-access/youtube-extract.ts +2 -2
  286. package/package.json +11 -8
  287. package/node_modules/pi-lens/dist/chunk-3VWEZ6H2.js +0 -72
  288. package/node_modules/pi-lens/dist/chunk-7KWI5UHL.js +0 -28
  289. package/node_modules/pi-lens/dist/chunk-7M64NTAK.js +0 -38
  290. package/node_modules/pi-lens/dist/chunk-BEIPWPVR.js +0 -1037
  291. package/node_modules/pi-lens/dist/chunk-D7OEGXDX.js +0 -2417
  292. package/node_modules/pi-lens/dist/chunk-KUDUKKQE.js +0 -89
  293. package/node_modules/pi-lens/dist/chunk-TM3A3K7T.js +0 -28
  294. package/node_modules/pi-lens/dist/chunk-VD7MQFEV.js +0 -56
  295. package/node_modules/pi-lens/dist/chunk-YLHJWAQS.js +0 -256
  296. package/node_modules/pi-lens/dist/chunk-YULIERZW.js +0 -27
@@ -2,81 +2,80 @@
2
2
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
3
3
  import {
4
4
  analyzeFile
5
- } from "../chunk-T6PPK3T6.js";
6
- import "../chunk-6EXGCXM5.js";
7
- import "../chunk-ME6MF2N2.js";
8
- import "../chunk-JRSS6KM4.js";
9
- import "../chunk-MOEWCPMC.js";
10
- import "../chunk-HYR25MV3.js";
11
- import "../chunk-AAIVSSUU.js";
12
- import "../chunk-LD7SXICE.js";
13
- import "../chunk-NZINZCHB.js";
14
- import "../chunk-FDLGJFAE.js";
15
- import "../chunk-2HWVG3IM.js";
16
- import "../chunk-E5SSUV2A.js";
17
- import "../chunk-IZ36G463.js";
18
- import "../chunk-BEIPWPVR.js";
19
- import "../chunk-D7OEGXDX.js";
20
- import "../chunk-3MHY4BQY.js";
21
- import "../chunk-VU2PRGRI.js";
22
- import "../chunk-D2ZYRI7M.js";
23
- import "../chunk-OHEUOWYT.js";
24
- import "../chunk-QY6J2FTK.js";
5
+ } from "../chunk-ZULZS2I6.js";
6
+ import "../chunk-G53LBDNU.js";
7
+ import "../chunk-YCR6ZYTE.js";
8
+ import "../chunk-HIJ4CHFF.js";
9
+ import "../chunk-7DPXUPRF.js";
10
+ import "../chunk-CZJGAOKL.js";
11
+ import "../chunk-S6MCMD27.js";
12
+ import "../chunk-ZI7YHV6I.js";
13
+ import "../chunk-INBK3HIT.js";
14
+ import "../chunk-SDYLT45T.js";
15
+ import "../chunk-XDNWR7SG.js";
16
+ import "../chunk-QMWKSYWB.js";
17
+ import "../chunk-QE7BJQ6K.js";
18
+ import "../chunk-PKWEBMCA.js";
19
+ import "../chunk-HIRBC72R.js";
20
+ import "../chunk-PQXUZYTQ.js";
21
+ import "../chunk-C5PLBTNR.js";
22
+ import "../chunk-KZ732ZVW.js";
23
+ import "../chunk-4DAHGU3V.js";
25
24
  import "../chunk-3MED75HT.js";
26
25
  import "../chunk-PKLB2XJL.js";
27
- import "../chunk-DZSQXG66.js";
28
- import "../chunk-DFAY7JUN.js";
26
+ import "../chunk-TWEOJE3D.js";
27
+ import "../chunk-VSQT6IHZ.js";
29
28
  import "../chunk-XIMYZ3JA.js";
30
- import "../chunk-Z6WTLVUL.js";
31
- import "../chunk-PPYUBO6Y.js";
32
- import "../chunk-5EEWCJG7.js";
33
- import "../chunk-QJ4T73J5.js";
34
- import "../chunk-YLW26OHX.js";
35
- import "../chunk-HGEE5LDW.js";
29
+ import "../chunk-AXAR5ZW2.js";
30
+ import "../chunk-7WKVCZI4.js";
31
+ import "../chunk-2H5GHZKC.js";
32
+ import "../chunk-QV3JPCMK.js";
33
+ import "../chunk-NNEQOC3U.js";
34
+ import "../chunk-LQQNFCQJ.js";
36
35
  import "../chunk-5W3R6LFT.js";
37
- import "../chunk-NCDH2JB7.js";
38
- import "../chunk-HYDJUVOE.js";
39
- import "../chunk-7424ANRU.js";
40
- import "../chunk-SUIZOCSY.js";
41
- import "../chunk-6GWCYEP7.js";
36
+ import "../chunk-ARTYCUGF.js";
37
+ import "../chunk-JGUDT5KD.js";
38
+ import "../chunk-CXQYK4YT.js";
39
+ import "../chunk-37IDWT6O.js";
42
40
  import "../chunk-Z54ZSOBZ.js";
43
- import "../chunk-7M64NTAK.js";
44
- import "../chunk-E3PNZDPH.js";
41
+ import "../chunk-ZQSSO7LO.js";
45
42
  import "../chunk-6HWVI6MI.js";
46
- import "../chunk-PK3GDU4M.js";
47
- import "../chunk-6JLNZ6DP.js";
48
- import "../chunk-IT7MFVGP.js";
49
- import "../chunk-AYDE7RFV.js";
50
- import "../chunk-W6VLB6LL.js";
51
- import "../chunk-HWMNTQBJ.js";
43
+ import "../chunk-AZG5UJYY.js";
44
+ import "../chunk-P5MSLVUW.js";
45
+ import "../chunk-ADYQRETD.js";
46
+ import "../chunk-DI4AZZNY.js";
47
+ import "../chunk-3TSMQZG6.js";
48
+ import "../chunk-2APSZHHI.js";
52
49
  import "../chunk-ZRQMENT4.js";
53
50
  import "../chunk-2BEMIWEW.js";
54
51
  import "../chunk-IJYGIDF4.js";
55
- import "../chunk-NRVWLTOY.js";
56
- import "../chunk-YLHJWAQS.js";
57
- import "../chunk-OVPR3GQ6.js";
58
- import "../chunk-3QMLB4TI.js";
52
+ import "../chunk-B2OXE4AH.js";
53
+ import "../chunk-LVLPA32Q.js";
54
+ import "../chunk-LGH2HHZG.js";
55
+ import "../chunk-KXGTLAUW.js";
56
+ import "../chunk-TQWRH25U.js";
59
57
  import "../chunk-UYXV5NIS.js";
60
- import "../chunk-AVBEPUCD.js";
61
- import "../chunk-75TVYCQW.js";
62
- import "../chunk-KXDQD34C.js";
63
- import "../chunk-3PMLYGJN.js";
64
- import "../chunk-YTXFNCVN.js";
65
- import "../chunk-ET3DSSFZ.js";
66
- import "../chunk-B4FAFEBP.js";
58
+ import "../chunk-KNSOA43J.js";
59
+ import "../chunk-6GLMMGCX.js";
60
+ import "../chunk-XSC3BCN3.js";
61
+ import "../chunk-27JQHK7Y.js";
62
+ import "../chunk-R4L7KZ7R.js";
63
+ import "../chunk-74AMPWNC.js";
64
+ import "../chunk-3PO4YYOX.js";
65
+ import "../chunk-5JB4WENL.js";
67
66
  import "../chunk-QYF5S6P6.js";
68
- import "../chunk-SRXYSLMW.js";
69
- import "../chunk-6EIV3H7O.js";
70
- import "../chunk-3R3Z54J7.js";
67
+ import "../chunk-CQY2HEH7.js";
68
+ import "../chunk-PQF6YGYB.js";
69
+ import "../chunk-LOEJFTF2.js";
71
70
  import "../chunk-CIA7X2PZ.js";
72
71
  import {
73
72
  setProjectTrustState
74
- } from "../chunk-HRQTYU2T.js";
73
+ } from "../chunk-W26QZ3OM.js";
75
74
  import {
76
75
  logExtension
77
- } from "../chunk-AGEQRJ5A.js";
76
+ } from "../chunk-NHA5K226.js";
78
77
  import "../chunk-S26LC76R.js";
79
- import "../chunk-K2GV34T2.js";
78
+ import "../chunk-7CLWC2UH.js";
80
79
  import "../chunk-LJDODBBZ.js";
81
80
  import "../chunk-O6LCSHHI.js";
82
81
  import "../chunk-WLD6BGON.js";
@@ -53,27 +53,29 @@ import {
53
53
  verifyNpmPackageEntry,
54
54
  verifyToolBinary,
55
55
  wasLastResolveTransient
56
- } from "../chunk-NRVWLTOY.js";
57
- import "../chunk-YLHJWAQS.js";
58
- import "../chunk-OVPR3GQ6.js";
59
- import "../chunk-3QMLB4TI.js";
56
+ } from "../chunk-B2OXE4AH.js";
57
+ import "../chunk-LVLPA32Q.js";
58
+ import "../chunk-LGH2HHZG.js";
59
+ import "../chunk-KXGTLAUW.js";
60
+ import "../chunk-TQWRH25U.js";
60
61
  import "../chunk-UYXV5NIS.js";
61
- import "../chunk-AVBEPUCD.js";
62
- import "../chunk-75TVYCQW.js";
63
- import "../chunk-KXDQD34C.js";
64
- import "../chunk-3PMLYGJN.js";
65
- import "../chunk-YTXFNCVN.js";
66
- import "../chunk-ET3DSSFZ.js";
67
- import "../chunk-B4FAFEBP.js";
62
+ import "../chunk-KNSOA43J.js";
63
+ import "../chunk-6GLMMGCX.js";
64
+ import "../chunk-XSC3BCN3.js";
65
+ import "../chunk-27JQHK7Y.js";
66
+ import "../chunk-R4L7KZ7R.js";
67
+ import "../chunk-74AMPWNC.js";
68
+ import "../chunk-3PO4YYOX.js";
69
+ import "../chunk-5JB4WENL.js";
68
70
  import "../chunk-QYF5S6P6.js";
69
- import "../chunk-SRXYSLMW.js";
70
- import "../chunk-6EIV3H7O.js";
71
- import "../chunk-3R3Z54J7.js";
71
+ import "../chunk-CQY2HEH7.js";
72
+ import "../chunk-PQF6YGYB.js";
73
+ import "../chunk-LOEJFTF2.js";
72
74
  import "../chunk-CIA7X2PZ.js";
73
- import "../chunk-HRQTYU2T.js";
74
- import "../chunk-AGEQRJ5A.js";
75
+ import "../chunk-W26QZ3OM.js";
76
+ import "../chunk-NHA5K226.js";
75
77
  import "../chunk-S26LC76R.js";
76
- import "../chunk-K2GV34T2.js";
78
+ import "../chunk-7CLWC2UH.js";
77
79
  import "../chunk-LJDODBBZ.js";
78
80
  import "../chunk-WLD6BGON.js";
79
81
  import "../chunk-NXL4FFQQ.js";
@@ -0,0 +1,113 @@
1
+ # Architecture
2
+
3
+ This page maps how pi-lens routes a host event to the findings the agent sees. It is for contributors and curious users; you do not need it to use pi-lens.
4
+
5
+ Most lifecycle events enter through one wrapper, which drops and counts events
6
+ that arrive on a replaced session. `tool_call` registers raw: it delegates
7
+ straight to a handler that owns its own total guard. Events fan out into the
8
+ edit-time lane and the LSP lane. Both lanes write into the findings stores.
9
+ Nothing reaches the agent from those stores until a freshness gate or an
10
+ explicit age label clears it.
11
+
12
+ ```mermaid
13
+ flowchart TD
14
+ subgraph host["pi host"]
15
+ HOST["Host events<br/>tool_call, tool_result, turn_start/end,<br/>session_start/shutdown, agent_end, context"]
16
+ WRAP["Stale-ctx wrapper<br/>skips and counts events on a replaced session<br/>tool_result, turn_start, turn_end, agent_end,<br/>agent_settled, session_start, context"]
17
+ end
18
+
19
+ subgraph guards["Guards"]
20
+ RG["Read-guard<br/>blocks edits that lack prior reading"]
21
+ GG["Git-guard<br/>holds commit/push while findings stay unresolved"]
22
+ end
23
+
24
+ subgraph edit["Edit-time lane"]
25
+ PIPE["Post-write pipeline<br/>secrets, format, autofix, sync, lint, tests"]
26
+ PLAN["Dispatch plan<br/>per file kind, per capability group"]
27
+ RUN["Runners<br/>format, lint, types, security, smells, docs"]
28
+ STRUCT["Structural rules<br/>tree-sitter queries and ast-grep"]
29
+ BUS["files-touched bus<br/>tells extensions which paths moved"]
30
+ end
31
+
32
+ subgraph lsp["LSP lane"]
33
+ POOL["Client pool<br/>warm reuse, idle eviction"]
34
+ DIAGS["File and workspace diagnostics"]
35
+ CASC["Impact cascade<br/>tiered wait policy"]
36
+ end
37
+
38
+ STORES["Findings stores<br/>widget state, warning caches, project snapshot"]
39
+
40
+ subgraph gate["Freshness gating"]
41
+ FRESH["Path freshness<br/>mtime vs scan time, past-EOF, dependency drift"]
42
+ DISPO["Dispositions<br/>false-positive, suppress, defer, flagged"]
43
+ LABEL["Explicit age label<br/>for findings no path gate can check"]
44
+ end
45
+
46
+ subgraph deliver["Delivery surfaces"]
47
+ TURN["Turn-end findings injection"]
48
+ WIDGET["Widget and footer tally"]
49
+ TOOLS["lens_diagnostics tool"]
50
+ NUDGE["Agent nudges"]
51
+ end
52
+
53
+ SESSION["Session lifecycle<br/>primary, sequential replacement, concurrent secondary"]
54
+ SINKS["Observability sinks<br/>latency.log, degradation ledger, bounded telemetry,<br/>cache observability, cascade and tree-sitter logs"]
55
+ CONFIG["Config-core<br/>resolve, merge, deny"]
56
+ REVIEWGRAPH["Review-graph intelligence<br/>call graph, reverse deps, import resolution"]
57
+
58
+ HOST --> WRAP
59
+ HOST -->|tool_call, raw| RG
60
+ HOST -->|tool_call, raw| GG
61
+ WRAP -->|session_start| SESSION
62
+ WRAP -->|tool_result| PIPE
63
+ WRAP -->|tool_result, records reads and writes| RG
64
+ SESSION --> POOL
65
+ SESSION --> STORES
66
+ PIPE --> PLAN
67
+ PLAN --> RUN
68
+ PLAN --> STRUCT
69
+ PIPE --> POOL
70
+ PIPE --> BUS
71
+ CONFIG --> PIPE
72
+ CONFIG --> PLAN
73
+ STRUCT --> REVIEWGRAPH
74
+ REVIEWGRAPH --> CASC
75
+ POOL --> DIAGS
76
+ DIAGS --> CASC
77
+ RUN --> STORES
78
+ STRUCT --> STORES
79
+ DIAGS --> STORES
80
+ CASC --> STORES
81
+ BUS --> NUDGE
82
+ RG -->|read and edit history filter| NUDGE
83
+ STORES --> FRESH
84
+ STORES --> LABEL
85
+ FRESH --> DISPO
86
+ DISPO --> TURN
87
+ DISPO --> WIDGET
88
+ DISPO --> TOOLS
89
+ LABEL --> TURN
90
+ TURN --> GG
91
+ WRAP --> SINKS
92
+ PIPE --> SINKS
93
+ RUN --> SINKS
94
+ STRUCT --> SINKS
95
+ POOL --> SINKS
96
+ CASC --> SINKS
97
+ RG --> SINKS
98
+ GG --> SINKS
99
+ FRESH --> SINKS
100
+ ```
101
+
102
+ Architecture-level view, updated when a lane changes. Per-tool inventories live
103
+ in [features](features.md) and
104
+ [language coverage](language-coverage.md). Today the edit-time lane carries
105
+ 45+ runner modules over 35+ file kinds, and the LSP lane speaks to 50
106
+ language server definitions.
107
+
108
+ The gating box is an abstraction, not a call order. Freshness covers several
109
+ independent mechanisms: path freshness against scan time, past-EOF line checks,
110
+ and forward-import dependency drift. Dispositions are one more filter alongside
111
+ them, not a second stage every finding walks through. Read the box as "a finding
112
+ passes the gates that apply to it", and see `clients/finding-delivery-gate.ts`
113
+ for the per-surface contract.
@@ -233,7 +233,7 @@ See [`docs/custom-rules.md`](custom-rules.md) to add your own. Rule sources: `ru
233
233
  | `strict-equality-js` | warning | yes | pi-lens | Use === instead of == |
234
234
  | `strict-inequality-js` | warning | yes | pi-lens | Use !== instead of != |
235
235
  | `throw-new-error-js` | warning | no | pi-lens | Use new Error() not Error() — explicit construction is clearer |
236
- | `unchecked-throwing-call-js` | error | no | pi-lens | $CALL without try/catch — throws on invalid input |
236
+ | `unchecked-throwing-call-js` | warning | no | pi-lens | $CALL without try/catch — throws on invalid input |
237
237
  | `weak-rsa-key-js` | error | no | pi-lens | Weak RSA key size — use at least 2048 bits |
238
238
 
239
239
  ### Kotlin (13)
@@ -575,7 +575,7 @@ See [`docs/custom-rules.md`](custom-rules.md) to add your own. Rule sources: `ru
575
575
  | `ts-unnecessary-else-return` | warning | no | pi-lens | else after return - the else block is redundant |
576
576
  | `ts-void-zero` | warning | yes | pi-lens | void 0 for undefined - use undefined directly |
577
577
  | `ts-while-index-length` | warning | no | pi-lens | while loop with index < length - consider for-of or array methods |
578
- | `unchecked-throwing-call` | error | no | pi-lens | $CALL without try/catch — throws on invalid input |
578
+ | `unchecked-throwing-call` | warning | no | pi-lens | $CALL without try/catch — throws on invalid input |
579
579
  | `weak-rsa-key` | error | no | pi-lens | Weak RSA key size — use at least 2048 bits |
580
580
 
581
581
  ## Disabled rules
@@ -27,8 +27,18 @@ full suite) skips no test job: the Unit shards and every
27
27
  other test job always run, because a docs edit can red tests outside tests/config
28
28
  (`docs/public-api-stability.md`, `docs/*_rules_catalog.md`). The one exception
29
29
  is the three `Install test` legs: outside `INSTALL_PATHS` in that script
30
- they report success without installing, and `Strict install` and the macOS APFS
31
- step run on non-pull_request events only. On a pull request, `TLA+ models`
30
+ they report success without installing, and the macOS APFS step runs on
31
+ non-pull_request events only. `Strict install (cold npm cache) (fast-fail)` is
32
+ its own workflow, `strict-install.yml` (#5002), triggered by a push to `master`
33
+ and `workflow_dispatch` and by nothing else: no `pull_request`, so a pull
34
+ request shows no skipped row for it, and no `merge_group`, so the merge queue and
35
+ the bot-PR dispatch of `ci.yml` (docs/ci-bot-pr-checks.md) do not run it. A
36
+ pull request that changes the manifests still gets a strict install through
37
+ `install-smoke.yml`'s `npm-strict`. ci-verdict reads the row as a non-required,
38
+ non-advisory row: absent on a pull request, and a manual dispatch on a branch
39
+ reads as advisory unless the PR author is a bot (#4090, #5062).
40
+
41
+ On a pull request, `TLA+ models`
32
42
  model-checks only when `formal/` (or its checker or ci.yml) changed: its shards
33
43
  skip at job level and the aggregate still reports. Push and merge-queue runs
34
44
  always model-check (`changes` sets `formal=true` for every non-PR event). A REQUIRED job never skips at
@@ -64,8 +74,12 @@ trust) makes `install-smoke.yml` run all four pi-load cells and an advisory LSP
64
74
  handshake job on a pull request; any other PR that reaches that workflow keeps
65
75
  the one pnpm-global cell (`tests/config/pr-smoke-paths.test.ts`).
66
76
  The Unit shards are packed by the per-file seconds in
67
- `scripts/test-shard-weights.json`; regenerate it from the shards' uploaded
68
- `vitest-results.json` when `tests/config/test-shard-assignment.test.ts` reds.
77
+ `scripts/test-shard-weights.json`; regenerate it when
78
+ `tests/config/test-shard-assignment.test.ts` reds, or when new tests leave
79
+ files unknown, with `node scripts/gen-test-shard-weights.mjs` from either the
80
+ shards' uploaded `vitest-results.json` (`--run <dir>`) or the nightly journal
81
+ (`--journal <file> [--days 5]`, no GitHub API: `git fetch <remote>
82
+ data/test-history`, then `git show FETCH_HEAD:history/test-daily.ndjson`).
69
83
 
70
84
  ## Actions cache
71
85
 
@@ -191,6 +191,21 @@ file-scoped worklist and receives no project-wide scanner output.
191
191
  only in `latency.log` is not disclosure. Removing a false "unavailable"
192
192
  notice never turns the file clean: a file no analyzer applies to reads
193
193
  "not analyzed". Instances: `HISTORY.md`.
194
+ A clean claim ("clean", "✓", "No issues", "all passed") renders only
195
+ from a producer that proves its scope was checked: `cleanVerdict` (no
196
+ findings, a non-empty scope, every file in it proven) or the dispatch
197
+ verdict's `checkedVerdict`, both in `clients/dispatch/types.ts`. An empty
198
+ answer, a stopped sweep, a lookup that never answered and a report that
199
+ was never read are not proof. In the census files (8 files: the
200
+ clean-verdict surfaces of `DELIVERY_SURFACES` plus
201
+ `clients/runtime-tool-result.ts`) every emitted literal, whatever its
202
+ words, is a claim, finding or neutral row of
203
+ `tests/clients/clean-claim-census.json`, keyed by its source text; a
204
+ claim row names its producer, and its statement must read a guard that
205
+ producer set. Every other `DELIVERY_SURFACES` file is exempt only with a
206
+ reason in the test, and a new surface with neither reds. A clean literal in a helper module that a census file calls is outside the gate (an accepted residual). Claims still decided by local logic (`own`) are the
207
+ instance list: pinned by count, they may only fall. Screen: can this line
208
+ say clean when no check completed on a file it speaks for?
194
209
  An out-of-session-root project edit records one bounded degradation and
195
210
  uses the existing advisory notice seam; intended vendor skips and pi-owned
196
211
  OS-temp artifacts stay silent (`clients/runtime-tool-result.ts`,
@@ -233,8 +248,10 @@ file-scoped worklist and receives no project-wide scanner output.
233
248
  registered `fallbackFor` alternate).
234
249
  Enforced by `tests/clients/dispatch/runners/run-outcome-ratchet.test.ts`,
235
250
  `tests/clients/dispatch/runners/parsed-nothing-sweep.test.ts` and
236
- `tests/clients/delivery-surface-ratchet.test.ts` (partial: no detector
237
- for an agent-facing bound that omits its truncation line).
251
+ `tests/clients/delivery-surface-ratchet.test.ts` (the clean-claim
252
+ census; partial: no detector for an agent-facing bound that omits its
253
+ truncation line, for a claim assembled at runtime from neutral literals,
254
+ or for a clean claim added to an exempt surface).
238
255
 
239
256
  26. **Old-role filter on a substitute:** compare fallback output with the
240
257
  substituted surface's contract, including non-blocking findings.
@@ -322,6 +339,24 @@ file-scoped worklist and receives no project-wide scanner output.
322
339
 
323
340
  ### a runner or tool outcome
324
341
 
342
+ 94. **Ignore-glob path spelling:** a runner hands a tool an absolute dispatched
343
+ path even though the tool matches its ignore globs against the argument
344
+ string, so an ignored ancestor can turn a real file into a silent clean.
345
+ Candidate list, not a census: `grep -rnE
346
+ 'ctx\.filePath|absPath|path\.resolve\(cwd, ctx\.filePath\)'
347
+ clients/dispatch/runners/*.ts`; probe each installed tool with the same
348
+ file and config under `<root>/.claude/worktrees/<lane>` and a neutral
349
+ ancestor, comparing relative and absolute argv. A fix hands the tool `optionSafeTargetArg`
350
+ (`clients/tool-policy.ts`) at the runner's existing spawn cwd: the
351
+ project-relative path, `./`-prefixed unless it starts with a letter, digit,
352
+ `_` or `.`, because a bare `-D.ts` is an option and `--fix` then rewrites
353
+ files nobody dispatched. The absolute dispatched path stays for attribution
354
+ and for files outside that cwd.
355
+ Screen: does the runner hand the tool the absolute dispatched path while
356
+ the tool matches its ignore globs against the argument string (probe the
357
+ same file under `<root>/.claude/worktrees/<lane>` and a neutral ancestor,
358
+ relative vs absolute argv)?
359
+
325
360
  3. **Wrong argv transform:** verify a command is the wrapper shape before
326
361
  dropping an argv element or launcher name.
327
362
 
@@ -575,7 +610,10 @@ file-scoped worklist and receives no project-wide scanner output.
575
610
  its own writes is queued counts late bytes on the wrong side of its window,
576
611
  or misses them. Await that sink's flush (or `flushAllNdjsonWriters`) right
577
612
  before the read with no other await in between, or inside the reading
578
- helper. Enforced by `tests/config/sink-read-drain-sweep.test.ts`.
613
+ helper. Enforced by `tests/config/sink-read-drain-sweep.test.ts`. The
614
+ removal side is the same shape: drain the queue (await
615
+ `flushAllNdjsonWriters`) before removing the directory a sink writes into,
616
+ or a queued row recreates it; enforcer none, judgment-only.
579
617
 
580
618
  68. **Model switch drift:** a TLA+ config constant that mirrors a code choice
581
619
  (inject a read, retire on an unknown range) goes stale when the code
@@ -2,29 +2,29 @@
2
2
 
3
3
  Auto-install behavior depends on gate type:
4
4
 
5
- - **Config-gated**: installs only when project config/deps indicate usage
5
+ - **Config-gated**: installs only when project config/deps indicate usage (a `config-first` row in `TOOL_EXECUTION_POLICY`; `tests/config/gate-table-derived.test.ts` pins this)
6
6
  - **Flow/language-gated**: installs when the runtime path needs it for the current file/session flow
7
7
  - **Operational prewarm**: installs during session warm scans / turn-end analysis paths
8
8
  - **GitHub release**: platform-specific binary downloaded from GitHub releases to `~/.pi-lens/bin/`
9
9
 
10
10
  | Tool | Purpose | Auto-installed | Gate |
11
11
  | ----------------------------------- | -------------------------------- | -------------- | ---------------------------------- |
12
- | `@biomejs/biome` | JS/TS lint/format/autofix | Yes | Config-gated |
13
- | `prettier` | Formatting fallback | Yes | Config-gated |
14
- | `yamllint` | YAML linting | Yes | Config-gated |
12
+ | `@biomejs/biome` | JS/TS lint/format/autofix | Yes | Language-default |
13
+ | `prettier` | Formatting fallback | Yes | Language-default for `.less`, `.graphql`, `.gql`; other types need prettier config |
14
+ | `yamllint` | YAML linting | Yes | Language-default |
15
15
  | `actionlint` | GitHub Actions workflow linting | Yes | GitHub release |
16
- | `sqlfluff` | SQL linting/formatting | Yes | Config-gated |
16
+ | `sqlfluff` | SQL linting/formatting | Yes | Language-default |
17
17
  | `ruff` | Python lint/format/autofix | Yes | Language-default + flow-gated |
18
18
  | `typescript-language-server` | Unified LSP diagnostics | Yes | Language-default |
19
19
  | `typescript` | TypeScript compiler | Yes | Language-default |
20
20
  | `pyright` | Python type diagnostics fallback | Yes | Flow/language-gated |
21
21
  | `@ast-grep/cli` (sg) | AST scans/search/replace | Yes | Operational prewarm |
22
- | `knip` | Dead code analysis | Yes | Operational prewarm + config-gated |
23
- | `jscpd` | Duplicate code detection | Yes | Operational prewarm + config-gated |
22
+ | `knip` | Dead code analysis | Yes | Operational prewarm |
23
+ | `jscpd` | Duplicate code detection | Yes | Operational prewarm |
24
24
  | `madge` | Circular dependency analysis | Yes | Turn-end analysis flow |
25
25
  | `mypy` | Python type checking | Yes | Flow-gated |
26
- | `stylelint` | CSS/SCSS/Less linting | Yes | Config-gated |
27
- | `markdownlint-cli2` | Markdown linting | Yes | Config-gated |
26
+ | `stylelint` | CSS/SCSS/Less linting | Yes | Language-default |
27
+ | `markdownlint-cli2` | Markdown linting | Yes | Language-default |
28
28
  | `shellcheck` | Shell script linting | Yes | GitHub release |
29
29
  | `shfmt` | Shell script formatting | Yes | GitHub release |
30
30
  | `rust-analyzer` | Rust LSP | Yes | GitHub release |
@@ -35,7 +35,7 @@ Auto-install behavior depends on gate type:
35
35
  | `tflint` | Terraform linting | Yes | GitHub release |
36
36
  | `taplo` | TOML linting/formatting | Yes | GitHub release |
37
37
  | `terraform-ls` | Terraform LSP | Yes | GitHub release |
38
- | `htmlhint` | HTML linting | Yes | Config-gated |
38
+ | `htmlhint` | HTML linting | Yes | Language-default |
39
39
  | `@prisma/language-server` | Prisma LSP | Yes | Flow-gated |
40
40
  | `dockerfile-language-server-nodejs` | Dockerfile LSP | Yes | Flow-gated |
41
41
  | `intelephense` | PHP LSP | Yes | Flow-gated |
@@ -28,11 +28,11 @@ LSP servers for: TypeScript, Deno, Python (pyright/basedpyright + jedi), Go, Rus
28
28
 
29
29
  pi-lens picks the launch for JS/TS files in this order. The first two steps use only the project's own `node_modules`:
30
30
 
31
- 1. **Effect language service** — when the nearest `node_modules/typescript` is version 7 or newer and the same `node_modules` holds `@effect/tsgo`, pi-lens runs the project's `effect-tsgo tsc --lsp --stdio`. Installing the package is the opt-in; there is no pi-lens setting. A malformed `@effect/tsgo` (no readable version, no `bin`) or a failure to start the process falls back to the next step; a server that starts and then fails to initialize does not fall back, and pi-lens never installs `@effect/tsgo`.
32
- 2. **Native TypeScript 7** — the project's `node_modules/.bin/tsc --lsp --stdio`.
31
+ 1. **Effect language service** — when the nearest TypeScript 7 (step 2) is found and the same `node_modules` holds `@effect/tsgo`, pi-lens runs the project's `effect-tsgo tsc --lsp --stdio`. Installing the package is the opt-in; there is no pi-lens setting. A malformed `@effect/tsgo` (no readable version, no `bin`) or a failure to start the process falls back to the next step. A server that starts and then exits or fails before it finishes initializing falls back to step 2 once. pi-lens never installs `@effect/tsgo`.
32
+ 2. **Native TypeScript 7** — the project's `node_modules/.bin/tsc --lsp --stdio`. When `node_modules/typescript` is version 6 or older and the same `node_modules` holds TypeScript 7 or newer installed as `@typescript/native` (an `npm:typescript@7` alias), pi-lens runs that package's own `bin/tsc --lsp --stdio` with Node instead. An alias that exits at launch or fails before it finishes initializing falls back to step 3 once.
33
33
  3. **Classic** — `typescript-language-server` with a `tsserver.js`, when the nearest TypeScript is version 6 or older or no step above applies. This step can also use a server and TypeScript found on `PATH` or installed by pi-lens.
34
34
 
35
- The nearest installed `typescript` decides: an ancestor's TypeScript 7 never replaces a nearer, older or malformed install. The project's own compiler and launcher run only when pi has marked the project trusted (see [Configuring pi-lens](configuration.md)); otherwise the launch falls through to the next step.
35
+ The nearest installed `typescript` decides: an ancestor's TypeScript 7, or an ancestor's `@typescript/native`, never replaces a nearer, older or malformed install. The project's own compiler and launcher run only when pi has marked the project trusted (see [Configuring pi-lens](configuration.md)); otherwise the launch falls through to the next step.
36
36
 
37
37
  ### Python: interpreter and syntax level
38
38
 
@@ -67,7 +67,19 @@
67
67
  - The one exception to that boundary is a linked worktree of the session's own repository (same git commondir, different top level, `resolveLinkedWorktreeOwner` in `clients/review-graph/git-identity.ts`, #3871): turn_end selects and runs its tests with that worktree's root as the project root (`clients/test-target-roots.ts`), so config, `node_modules` and the failed-first state are the worktree's own. A worktree root without its own runner install (no `node_modules/.bin`, venv or `vendor/bin`) is skipped with a counted `turn-end-test-root-skipped` row rather than run through `npx` or a bare interpreter; a reported location is rebased through `displayRoot` using the runner cwd first, then the dispatch root, only when that file exists, and otherwise remains as printed. A sibling worktree's file is still foreign to every other root. Python's ambient `VIRTUAL_ENV`, `CONDA_PREFIX`, or absolute `UV_PROJECT_ENVIRONMENT` is accepted for the session checkout, and for a linked worktree only when the environment root is inside that checkout; a skipped pytest row says that ambient environments were not borrowed when one is set. The edit worklist is the session's project worklist (#2504), so a session whose cwd is itself a linked worktree never sees an edit in the main checkout or a sibling and runs only its own tests. Each turn that edited files writes one `turn_end_test_selection` record to `latency.log` (candidates, selected, why not, and selected/candidates per owning root; first 8 roots, the rest in `rootsOmitted`; `selected` includes carried deferred targets, which no candidate bucket counts, so per-root `selected` can sum below it; one row of about 570 B per edit turn with candidates, bounded by log rotation only), so a turn with 0 tests is explained without the dbg lines the MCP route drops.
68
68
  - Managed tools resolve through the registry and sanctioned availability seams.
69
69
  Do not hand-roll install, PATH, or package-manager discovery. Use typed
70
- `SpawnFailure.kind`; repair only `tool-not-found`.
70
+ `SpawnFailure.kind`; repair only `tool-not-found`. A tool that has a
71
+ `TOOL_COMMAND_SPECS` row resolves through one ladder machinery, in two
72
+ orders. Runners (`resolveToolCommandWithInstallFallback`): the trusted
73
+ project's `.venv` or `node_modules/.bin` at exactly the project root, never a
74
+ parent directory's, then the managed install, then PATH with a version check.
75
+ Formatters (`resolveInstalledToolCommand`, where the caller owns the install
76
+ decision): the same project rung, then PATH with a version check, then the
77
+ managed install, because a formatter's version decides the bytes it writes, so
78
+ a working PATH binary is never replaced by a managed copy; a PATH binary that
79
+ fails its version check falls through to managed. One latch per (tool, order,
80
+ root), so the two never share an answer (#5410). A present tool that fails its
81
+ version check and has no later rung is a failed formatter outcome carrying the
82
+ probe's stderr, not "executable not found".
71
83
  - Windows LSP startup exit-code-1 failures are repairable only when the shared
72
84
  command resolver finds no command or an npm shim target is absent; present
73
85
  binaries that exit 1 remain runtime failures (#4263, #1199). The launch and
@@ -215,6 +215,25 @@
215
215
  confirm, or a server that republished for the file after the edit) keeps its
216
216
  verdict. A client that cannot date its cache reports no reuse and keeps the
217
217
  pre-#5040 verdict.
218
+ - A server that announces its readiness is not asked for a verdict before it
219
+ is ready. The client advertises `experimental.serverStatusNotification` and
220
+ records the `quiescent` flag with a change revision (`LSPClientState.serverStatus`,
221
+ `clients/lsp/client.ts`). An empty pull report from a server that was loading
222
+ when the request left, or whose readiness changed while it was in flight, is
223
+ never stored as an answer (`pullDiagnosticSource`, the one primitive touch,
224
+ refresh re-pulls and sweeps share); an empty `publishDiagnostics` received
225
+ while `quiescent` is false is dropped; the touch's first pull waits for
226
+ quiescence inside the touch budget (`pullDiagnosticsWhenReady`). A touch whose
227
+ budget lapses on a loading server is inconclusive with reason `server-loading`
228
+ (`resolveTouchVerdict`), never clean. A workspace the server says failed to
229
+ load (`health: "error"`) is not ready either: its touch is inconclusive with
230
+ reason `server-load-failed` and the server's message, at once, because no
231
+ wait fixes it; `health: "warning"` stays ready. A server that announces
232
+ nothing, or a notice without a boolean `quiescent`, is unchanged: the gate
233
+ keys on what the server announced, never on a server id or a strategy row.
234
+ The diagnostics tool names either cause and its next step, never a timeout
235
+ (`serverNotReadyText`, `tools/lsp-diagnostics.ts`); a server that died while
236
+ loading lapses as a plain diagnostics wait (`readinessBlockOf`).
218
237
  - Document line addressing has one owner, `clients/lsp/content-scan.ts`: the
219
238
  `\n` count behind the `lsp_document_send` record's `contentLineCount` and the
220
239
  LSP sync bound (`countLfNewlines`), the last LSP-addressable line an
@@ -149,6 +149,45 @@ Consequences:
149
149
  callbacks as `generic`, and Groovy is not in the review graph's main kinds.
150
150
  - Lint and format (npm-groovy-lint) are not part of this slice (#5235).
151
151
 
152
+ ## What runs by default
153
+
154
+ Each tool falls in one of three tiers. The gate comes from two layers in the code: the policy in `clients/tool-policy.ts` (`gate`, `defaultWhenUnconfigured`, and the per-tool `configEligibility`), and the skip inside each runner's `run` function. The table lists the tools the README names, plus the other runners that have no policy entry. Where the runner's skip is stricter than the policy, the table follows the runner and the notes below say so. `tests/config/gate-table-derived.test.ts` derives each tool's tier from `clients/tool-policy.ts` and fails when this table disagrees.
155
+
156
+ A tool counts as available when the binary exists in the project (`node_modules/.bin`, `.venv/bin`, or `vendor/bin`), in pi-lens's managed install, or on `PATH`. The project rung runs only when pi trusts the project (`resolveToolCommandWithInstallFallback` in `clients/dispatch/runners/utils/runner-helpers.ts`, `refuseLocalBin` in `clients/package-manager.ts`). pi-lens installs a missing linter or formatter only when its `autoInstall` is true in `TOOL_EXECUTION_POLICY`; ESLint, phpstan, and vale are never auto-installed. Language servers have no policy row: `ensureTool` in `clients/lsp/server.ts` installs a missing server, such as the TypeScript language server. Every install also needs pi project trust (`assertInstallAllowed` in `clients/project-trust.ts`).
157
+
158
+ | Tier | Tool | Gate | Source |
159
+ |---|---|---|---|
160
+ | No project config | Language servers | On by default; `--no-lsp` turns them off | `no-lsp` in `clients/lens-flag-registry.ts` |
161
+ | No project config | ruff (Python lint), `.py` format | Policy `smart-default`; ruff is the Python default | `getLinterPolicyForFile`, `ruff.ts` |
162
+ | No project config | shellcheck | Policy `smart-default`; `.shellcheckrc` is optional; skips zsh | `shellcheck.ts` |
163
+ | No project config | hadolint, markdownlint, rubocop, ktlint (lint), taplo (lint) | Policy `smart-default`, no runner skip for config | `getLinterPolicyForFile`, one runner file each |
164
+ | No project config | stylelint | Policy `smart-default`; with no config it runs default rules | `stylelint.ts` |
165
+ | No project config | oxlint, Biome (JS and TS lint) | The default pair when the project has no ESLint, oxlint, or Biome config; one project config selects its tool | `getPreferredJstsLintRunners`, `biome-check.ts` |
166
+ | No project config | swiftlint, go vet, ast-grep rules, tree-sitter rules | No linter-policy entry; the runner has no config skip. go vet needs the Go toolchain. | `swiftlint.ts`, `go-vet.ts`, `ast-grep-napi.ts`, `tree-sitter.ts` |
167
+ | No project config | javac | No policy entry; skips files inside a Maven or Gradle project | `javac.ts` |
168
+ | No project config | Formatters: Biome (`.js .jsx .mjs .cjs .ts .tsx .mts .cts .css .scss .sass`), shfmt (`.sh .bash`), gofmt, rustfmt, ruff (`.py .pyi`), typstyle (`.typ .typc`), prettier (`.less .graphql .gql` only), dart, zig (`.zig .zon`), cue | Formatter policy `defaultWhenUnconfigured: true`; explicit project config wins | `FORMATTER_POLICY_BY_EXTENSION`, `getFormattersForFile` |
169
+ | Project config | ESLint | Needs an ESLint config; policy `config-first` | `eslint.ts` |
170
+ | Project config | golangci-lint | Needs a golangci config; policy `config-first` | `golangci-lint.ts` |
171
+ | Project config | mypy | Needs a mypy config; ruff covers Python without it | `mypy.ts` |
172
+ | Project config | phpstan | Needs `phpstan.neon`, `phpstan.neon.dist`, or `phpstan.dist.neon` | `phpstan.ts` |
173
+ | Project config | vale | Needs `.vale.ini` | `vale.ts` |
174
+ | Project config | detekt | Needs a detekt config file | `detekt.ts` |
175
+ | Project config | credo | Needs `mix.exs` in the project directory | `credo.ts` |
176
+ | Project config | Formatters: taplo, clang-format, php-cs-fixer, stylua, gleam, and other `config-first` rows; ktfmt; ktlint (format) | Run only when the project has their config | `FORMATTER_POLICY_BY_EXTENSION`, `hasExplicitFormatterConfig` |
177
+ | Opt-in | trivy (IaC scans and session scan) | `trivy.enabled: true` in `.pi-lens.json` | `isTrivyEnabled` in `clients/trivy-client.ts` |
178
+ | Opt-in | SpotBugs | `--lens-spotbugs`, a Java build descriptor, and compiled `.class` files | `withSpotbugsGroup` in `clients/dispatch/integration.ts` |
179
+ | Opt-in | Helm render validation | `helm.renderValidation.enabled: true`, plus pi project trust | `helm-render.ts` |
180
+ | Opt-in | Commit guard | `--lens-guard` | `lens-guard` in `clients/lens-flag-registry.ts` |
181
+
182
+ Notes on rows where the two layers differ:
183
+
184
+ - taplo lints with no config but formats only with config. The same split holds for ktlint.
185
+ - prettier is a smart default for the formatter policy only on `.less`, `.graphql`, and `.gql`. Other prettier rows wait for config.
186
+ - credo's file policy is `smart-default` with `defaultWhenUnconfigured: true`, but its runner skips a project without `mix.exs`. The table follows the runner.
187
+ - gleam's formatter `detect` needs `gleam.toml` in the project, so a bare `.gleam` file is not formatted. The table follows the detect, not the policy's `defaultWhenUnconfigured` flag.
188
+ - mypy's per-tool row is `config-first`, while the Python file policy is `smart-default` because ruff is the default runner.
189
+ - The background scans (gitleaks, govulncheck, trivy) have their own gates; see [features](features.md).
190
+
152
191
  ## Non-core grammars
153
192
 
154
193
  The `tree-sitter` runner and `symbol_search`/`module_report` structural