@herbertgao/pi-extensions 2026.11.11 → 2026.11.13

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 (262) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +13 -11
  3. package/THIRD_PARTY_NOTICES.md +3 -3
  4. package/node_modules/@herbertgao/pi-cc-extensions/CHANGELOG.md +10 -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 +60 -39
  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 +21 -3
  16. package/node_modules/@herbertgao/pi-cc-extensions/extensions/utils/format.ts +15 -0
  17. package/node_modules/@herbertgao/pi-cc-extensions/package.json +4 -4
  18. package/node_modules/@herbertgao/pi-impeccable/CHANGELOG.md +6 -0
  19. package/node_modules/@herbertgao/pi-impeccable/README.md +2 -2
  20. package/node_modules/@herbertgao/pi-impeccable/package.json +4 -4
  21. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/SKILL.md +2 -2
  22. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/adapt.md +1 -1
  23. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/animate.md +17 -0
  24. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/critique-rubric.md +496 -0
  25. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/critique.md +12 -504
  26. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/motion-reviewer.md +29 -0
  27. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/hooks.md +3 -3
  28. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/new-work-comp.md +24 -0
  29. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/new-work-world.md +20 -0
  30. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/new-work.md +5 -34
  31. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/typeset.md +6 -0
  32. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/VERSION +1 -1
  33. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/engine-checksums.txt +5 -5
  34. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/live-browser.js +17 -18
  35. package/node_modules/@herbertgao/pi-inline-skill-commands/LICENSE +21 -0
  36. package/node_modules/@herbertgao/pi-inline-skill-commands/README.md +33 -0
  37. package/node_modules/@herbertgao/pi-inline-skill-commands/package.json +53 -0
  38. package/node_modules/@herbertgao/pi-inline-skill-commands/src/index.ts +213 -0
  39. package/node_modules/pi-antigravity/README.md +58 -9
  40. package/node_modules/pi-antigravity/docs/reader-guarantees.md +35 -0
  41. package/node_modules/pi-antigravity/package.json +15 -6
  42. package/node_modules/pi-antigravity/src/client/client.ts +63 -14
  43. package/node_modules/pi-antigravity/src/client/enterprise.ts +150 -0
  44. package/node_modules/pi-antigravity/src/client/index.ts +1 -0
  45. package/node_modules/pi-antigravity/src/diagnostics/diagnostics.ts +7 -0
  46. package/node_modules/pi-antigravity/src/features/generate-image.ts +56 -2
  47. package/node_modules/pi-antigravity/src/features/read-url-content.ts +124 -0
  48. package/node_modules/pi-antigravity/src/image/image.ts +16 -2
  49. package/node_modules/pi-antigravity/src/index.ts +145 -2
  50. package/node_modules/pi-antigravity/src/models/discovery.ts +3 -4
  51. package/node_modules/pi-antigravity/src/models/grouping.ts +39 -15
  52. package/node_modules/pi-antigravity/src/models/models.ts +126 -14
  53. package/node_modules/pi-antigravity/src/stream/stream.ts +189 -30
  54. package/node_modules/pi-antigravity/src/types/types.ts +30 -1
  55. package/node_modules/pi-antigravity/src/usage/usage.ts +58 -0
  56. package/node_modules/pi-antigravity/src/utils/address.ts +180 -0
  57. package/node_modules/pi-antigravity/src/utils/credits.ts +149 -0
  58. package/node_modules/pi-antigravity/src/utils/html.ts +31 -0
  59. package/node_modules/pi-antigravity/src/utils/index.ts +2 -0
  60. package/node_modules/pi-antigravity/src/utils/security.ts +172 -13
  61. package/node_modules/pi-antigravity/src/utils/text.ts +66 -0
  62. package/node_modules/pi-antigravity/src/utils/util.ts +5 -4
  63. package/node_modules/pi-antigravity/src/web-fetch/document.ts +83 -0
  64. package/node_modules/pi-antigravity/src/web-fetch/fences.ts +24 -0
  65. package/node_modules/pi-antigravity/src/web-fetch/header.ts +97 -0
  66. package/node_modules/pi-antigravity/src/web-fetch/index.ts +3 -0
  67. package/node_modules/pi-antigravity/src/web-fetch/inspect.ts +328 -0
  68. package/node_modules/pi-antigravity/src/web-fetch/limits.ts +4 -0
  69. package/node_modules/pi-antigravity/src/web-fetch/markdown.ts +744 -0
  70. package/node_modules/pi-antigravity/src/web-fetch/mdn.ts +164 -0
  71. package/node_modules/pi-antigravity/src/web-fetch/media.ts +11 -0
  72. package/node_modules/pi-antigravity/src/web-fetch/metadata.ts +9 -0
  73. package/node_modules/pi-antigravity/src/web-fetch/representation.ts +93 -0
  74. package/node_modules/pi-antigravity/src/web-fetch/save.ts +71 -0
  75. package/node_modules/pi-antigravity/src/web-fetch/sites.ts +138 -0
  76. package/node_modules/pi-antigravity/src/web-fetch/vendor.d.ts +9 -0
  77. package/node_modules/pi-antigravity/src/web-fetch/web-fetch.ts +957 -0
  78. package/node_modules/pi-antigravity/tsconfig.json +2 -2
  79. package/node_modules/pi-commandcode-provider/CHANGELOG.md +10 -0
  80. package/node_modules/pi-commandcode-provider/README.md +2 -2
  81. package/node_modules/pi-commandcode-provider/package.json +1 -1
  82. package/node_modules/pi-commandcode-provider/src/commandcode-catalog.ts +15 -9
  83. package/node_modules/pi-commandcode-provider/src/oauth.ts +69 -12
  84. package/node_modules/pi-lens/CHANGELOG-USER.md +6 -6
  85. package/node_modules/pi-lens/CHANGELOG.md +172 -0
  86. package/node_modules/pi-lens/README.md +103 -217
  87. package/node_modules/pi-lens/dist/{chunk-KXDQD34C.js → chunk-27JQHK7Y.js} +1 -1
  88. package/node_modules/pi-lens/dist/{chunk-W6VLB6LL.js → chunk-2APSZHHI.js} +61 -3
  89. package/node_modules/pi-lens/dist/{chunk-5EEWCJG7.js → chunk-2H5GHZKC.js} +8 -8
  90. package/node_modules/pi-lens/dist/{chunk-TS5EIWEF.js → chunk-2H7NFZ4Q.js} +11 -11
  91. package/node_modules/pi-lens/dist/{chunk-6GWCYEP7.js → chunk-37IDWT6O.js} +64 -16
  92. package/node_modules/pi-lens/dist/{chunk-OEPWTSUG.js → chunk-3PAS2ERX.js} +8 -8
  93. package/node_modules/pi-lens/dist/{chunk-ET3DSSFZ.js → chunk-3PO4YYOX.js} +9 -17
  94. package/node_modules/pi-lens/dist/{chunk-C6V2DSZZ.js → chunk-3QXFUP6T.js} +11 -11
  95. package/node_modules/pi-lens/dist/{chunk-HWMNTQBJ.js → chunk-3TSMQZG6.js} +32 -11
  96. package/node_modules/pi-lens/dist/{chunk-QY6J2FTK.js → chunk-4DAHGU3V.js} +15 -14
  97. package/node_modules/pi-lens/dist/{chunk-PCREZ4HJ.js → chunk-4IZZEN63.js} +33 -34
  98. package/node_modules/pi-lens/dist/{chunk-OYXD2MOM.js → chunk-5HBQL7DH.js} +2 -2
  99. package/node_modules/pi-lens/dist/{chunk-B4FAFEBP.js → chunk-5JB4WENL.js} +1 -1
  100. package/node_modules/pi-lens/dist/chunk-5YJXF2IS.js +56 -0
  101. package/node_modules/pi-lens/dist/{chunk-GHATCG2A.js → chunk-6CFSDLHE.js} +22 -18
  102. package/node_modules/pi-lens/dist/{chunk-FVQKX5KI.js → chunk-6E5QLMWI.js} +24 -22
  103. package/node_modules/pi-lens/dist/{chunk-AVBEPUCD.js → chunk-6GLMMGCX.js} +2 -2
  104. package/node_modules/pi-lens/dist/{chunk-YTXFNCVN.js → chunk-74AMPWNC.js} +2 -2
  105. package/node_modules/pi-lens/dist/{chunk-K2GV34T2.js → chunk-7CLWC2UH.js} +26 -37
  106. package/node_modules/pi-lens/dist/{chunk-MOEWCPMC.js → chunk-7DPXUPRF.js} +2 -2
  107. package/node_modules/pi-lens/dist/{chunk-7BEADGAZ.js → chunk-7U36VQL6.js} +2 -2
  108. package/node_modules/pi-lens/dist/{chunk-PPYUBO6Y.js → chunk-7WKVCZI4.js} +1 -1
  109. package/node_modules/pi-lens/dist/{chunk-ILC2B7IJ.js → chunk-7ZVTFLCC.js} +10 -10
  110. package/node_modules/pi-lens/dist/{chunk-IT7MFVGP.js → chunk-ADYQRETD.js} +2 -2
  111. package/node_modules/pi-lens/dist/{chunk-NCDH2JB7.js → chunk-ARTYCUGF.js} +25 -10
  112. package/node_modules/pi-lens/dist/{chunk-Z6WTLVUL.js → chunk-AXAR5ZW2.js} +225 -104
  113. package/node_modules/pi-lens/dist/{chunk-PK3GDU4M.js → chunk-AZG5UJYY.js} +1 -1
  114. package/node_modules/pi-lens/dist/{chunk-NRVWLTOY.js → chunk-B2OXE4AH.js} +60 -21
  115. package/node_modules/pi-lens/dist/{chunk-ORYQGVC3.js → chunk-B42AIWPJ.js} +2 -2
  116. package/node_modules/pi-lens/dist/{chunk-IC4L65U7.js → chunk-BBSDJTOV.js} +12 -13
  117. package/node_modules/pi-lens/dist/{chunk-HJWF7CGW.js → chunk-BKWFDWYM.js} +16 -16
  118. package/node_modules/pi-lens/dist/{chunk-D2ZYRI7M.js → chunk-C5PLBTNR.js} +1 -1
  119. package/node_modules/pi-lens/dist/{chunk-SRXYSLMW.js → chunk-CQY2HEH7.js} +1 -1
  120. package/node_modules/pi-lens/dist/{chunk-7424ANRU.js → chunk-CXQYK4YT.js} +1 -1
  121. package/node_modules/pi-lens/dist/{chunk-HYR25MV3.js → chunk-CZJGAOKL.js} +8 -7
  122. package/node_modules/pi-lens/dist/{chunk-DIIDMDZU.js → chunk-DCA2MXVQ.js} +11 -11
  123. package/node_modules/pi-lens/dist/{chunk-K2LD6YNH.js → chunk-DFKOA74L.js} +9 -9
  124. package/node_modules/pi-lens/dist/{chunk-AYDE7RFV.js → chunk-DI4AZZNY.js} +2 -2
  125. package/node_modules/pi-lens/dist/{chunk-6EXGCXM5.js → chunk-G53LBDNU.js} +99 -5
  126. package/node_modules/pi-lens/dist/chunk-GCSDF5IE.js +27 -0
  127. package/node_modules/pi-lens/dist/{chunk-5KLRCUDT.js → chunk-H5API74E.js} +6 -6
  128. package/node_modules/pi-lens/dist/chunk-HBX55MWO.js +27 -0
  129. package/node_modules/pi-lens/dist/{chunk-JRSS6KM4.js → chunk-HIJ4CHFF.js} +2 -2
  130. package/node_modules/pi-lens/dist/{chunk-3MHY4BQY.js → chunk-HIRBC72R.js} +4 -4
  131. package/node_modules/pi-lens/dist/{chunk-F7AMFFVK.js → chunk-HRLF35WL.js} +8 -8
  132. package/node_modules/pi-lens/dist/{chunk-HSTN27NR.js → chunk-I2FYOZNW.js} +9 -9
  133. package/node_modules/pi-lens/dist/{chunk-5FDUKJZO.js → chunk-I3NZVAMN.js} +9 -9
  134. package/node_modules/pi-lens/dist/{chunk-NZINZCHB.js → chunk-INBK3HIT.js} +3 -3
  135. package/node_modules/pi-lens/dist/{chunk-PXGVB2CY.js → chunk-J2ZB5MDS.js} +20 -18
  136. package/node_modules/pi-lens/dist/{chunk-HYDJUVOE.js → chunk-JGUDT5KD.js} +4 -4
  137. package/node_modules/pi-lens/dist/chunk-JOIKBUQN.js +88 -0
  138. package/node_modules/pi-lens/dist/{chunk-AZXTLZHE.js → chunk-K4Z7MK6T.js} +169 -165
  139. package/node_modules/pi-lens/dist/{chunk-WTSQKJAR.js → chunk-K7O6AHSJ.js} +10 -10
  140. package/node_modules/pi-lens/dist/{chunk-S6ZQFPOX.js → chunk-KNJH6WJQ.js} +6 -6
  141. package/node_modules/pi-lens/dist/{chunk-SUIZOCSY.js → chunk-KNSOA43J.js} +1 -1
  142. package/node_modules/pi-lens/dist/{chunk-3QMLB4TI.js → chunk-KXGTLAUW.js} +2 -2
  143. package/node_modules/pi-lens/dist/{chunk-OHEUOWYT.js → chunk-KZ732ZVW.js} +1 -1
  144. package/node_modules/pi-lens/dist/{chunk-G3LR6V6N.js → chunk-L6BDRYUK.js} +19 -17
  145. package/node_modules/pi-lens/dist/{chunk-OVPR3GQ6.js → chunk-LGH2HHZG.js} +24 -6
  146. package/node_modules/pi-lens/dist/{chunk-3R3Z54J7.js → chunk-LOEJFTF2.js} +1 -1
  147. package/node_modules/pi-lens/dist/{chunk-HGEE5LDW.js → chunk-LQQNFCQJ.js} +1 -1
  148. package/node_modules/pi-lens/dist/chunk-LVLPA32Q.js +810 -0
  149. package/node_modules/pi-lens/dist/chunk-M2YMBT5G.js +73 -0
  150. package/node_modules/pi-lens/dist/{chunk-Z2W5YJBW.js → chunk-MJRGPEQ5.js} +11 -11
  151. package/node_modules/pi-lens/dist/{chunk-3EIZMRXI.js → chunk-MOAVEPC4.js} +10 -10
  152. package/node_modules/pi-lens/dist/{chunk-TOOXNL6M.js → chunk-NGNBJIUO.js} +7 -7
  153. package/node_modules/pi-lens/dist/{chunk-AGEQRJ5A.js → chunk-NHA5K226.js} +1 -1
  154. package/node_modules/pi-lens/dist/{chunk-YLW26OHX.js → chunk-NNEQOC3U.js} +31 -59
  155. package/node_modules/pi-lens/dist/{chunk-ZWZD4TJ5.js → chunk-O2MHF7QM.js} +35 -36
  156. package/node_modules/pi-lens/dist/{chunk-PTJXMYRY.js → chunk-OLWGYBYT.js} +15 -16
  157. package/node_modules/pi-lens/dist/{chunk-JKAVKTMY.js → chunk-OZQQ3AIR.js} +17 -20
  158. package/node_modules/pi-lens/dist/{chunk-6JLNZ6DP.js → chunk-P5MSLVUW.js} +10 -10
  159. package/node_modules/pi-lens/dist/{chunk-OF2YGDUE.js → chunk-PFJLYRO3.js} +37 -38
  160. package/node_modules/pi-lens/dist/chunk-PKWEBMCA.js +2957 -0
  161. package/node_modules/pi-lens/dist/{chunk-JLMS7EMD.js → chunk-PPQHMSPH.js} +16 -15
  162. package/node_modules/pi-lens/dist/{chunk-6EIV3H7O.js → chunk-PQF6YGYB.js} +12 -5
  163. package/node_modules/pi-lens/dist/{chunk-VU2PRGRI.js → chunk-PQXUZYTQ.js} +4 -4
  164. package/node_modules/pi-lens/dist/{chunk-MV6ST2KT.js → chunk-Q7J3JYJ2.js} +13 -12
  165. package/node_modules/pi-lens/dist/{chunk-BMMRLJA4.js → chunk-QE5DJ7MX.js} +27 -10
  166. package/node_modules/pi-lens/dist/{chunk-IZ36G463.js → chunk-QE7BJQ6K.js} +7 -7
  167. package/node_modules/pi-lens/dist/{chunk-E5SSUV2A.js → chunk-QMWKSYWB.js} +4 -4
  168. package/node_modules/pi-lens/dist/{chunk-QJ4T73J5.js → chunk-QV3JPCMK.js} +1 -1
  169. package/node_modules/pi-lens/dist/{chunk-3PMLYGJN.js → chunk-R4L7KZ7R.js} +5 -5
  170. package/node_modules/pi-lens/dist/{chunk-7ZVEFWOE.js → chunk-RIH3UBK4.js} +10 -10
  171. package/node_modules/pi-lens/dist/{chunk-T5EGSBM2.js → chunk-RJ3APNIP.js} +3 -3
  172. package/node_modules/pi-lens/dist/{chunk-AAIVSSUU.js → chunk-S6MCMD27.js} +35 -12
  173. package/node_modules/pi-lens/dist/{chunk-SF7KSXB5.js → chunk-SCU62JLX.js} +6 -6
  174. package/node_modules/pi-lens/dist/{chunk-FDLGJFAE.js → chunk-SDYLT45T.js} +3 -3
  175. package/node_modules/pi-lens/dist/chunk-TFKN5EIR.js +27 -0
  176. package/node_modules/pi-lens/dist/{chunk-Y7XMKBFP.js → chunk-TKOFTLGB.js} +34 -26
  177. package/node_modules/pi-lens/dist/chunk-TQWRH25U.js +35 -0
  178. package/node_modules/pi-lens/dist/{chunk-DZSQXG66.js → chunk-TWEOJE3D.js} +277 -62
  179. package/node_modules/pi-lens/dist/{chunk-R67WQ5RY.js → chunk-UN72ZAJ5.js} +8 -8
  180. package/node_modules/pi-lens/dist/{chunk-AD7JDEI6.js → chunk-UNP6Y4JV.js} +16 -16
  181. package/node_modules/pi-lens/dist/{chunk-D6ANA6YU.js → chunk-VGRGW4UL.js} +63 -55
  182. package/node_modules/pi-lens/dist/{chunk-DFAY7JUN.js → chunk-VSQT6IHZ.js} +2 -2
  183. package/node_modules/pi-lens/dist/{chunk-7T64QA5D.js → chunk-VWEBZ2JV.js} +39 -38
  184. package/node_modules/pi-lens/dist/{chunk-HRQTYU2T.js → chunk-W26QZ3OM.js} +1 -1
  185. package/node_modules/pi-lens/dist/{chunk-2HWVG3IM.js → chunk-XDNWR7SG.js} +2 -2
  186. package/node_modules/pi-lens/dist/{chunk-75TVYCQW.js → chunk-XSC3BCN3.js} +5 -5
  187. package/node_modules/pi-lens/dist/{chunk-ME6MF2N2.js → chunk-YCR6ZYTE.js} +1 -1
  188. package/node_modules/pi-lens/dist/{chunk-LD7SXICE.js → chunk-ZI7YHV6I.js} +5 -5
  189. package/node_modules/pi-lens/dist/{chunk-E3PNZDPH.js → chunk-ZQSSO7LO.js} +33 -1
  190. package/node_modules/pi-lens/dist/{chunk-T6PPK3T6.js → chunk-ZULZS2I6.js} +385 -407
  191. package/node_modules/pi-lens/dist/index.js +6508 -5413
  192. package/node_modules/pi-lens/dist/mcp/analyze-cli.js +9 -9
  193. package/node_modules/pi-lens/dist/mcp/cli.js +39 -38
  194. package/node_modules/pi-lens/dist/mcp/server.js +602 -345
  195. package/node_modules/pi-lens/dist/mcp/worker.js +57 -58
  196. package/node_modules/pi-lens/dist/probes/installer.js +19 -17
  197. package/node_modules/pi-lens/docs/architecture.md +113 -0
  198. package/node_modules/pi-lens/docs/ast-grep_rules_catalog.md +2 -2
  199. package/node_modules/pi-lens/docs/ci.md +18 -4
  200. package/node_modules/pi-lens/docs/defect-shapes.md +41 -3
  201. package/node_modules/pi-lens/docs/dependencies.md +10 -10
  202. package/node_modules/pi-lens/docs/features.md +3 -3
  203. package/node_modules/pi-lens/docs/invariants/dispatch-runners.md +13 -1
  204. package/node_modules/pi-lens/docs/invariants/lsp-trust-exec.md +19 -0
  205. package/node_modules/pi-lens/docs/language-coverage.md +39 -0
  206. package/node_modules/pi-lens/docs/lsp-capability-matrix.md +10 -4
  207. package/node_modules/pi-lens/docs/lsp-idle-eviction.md +1 -1
  208. package/node_modules/pi-lens/docs/pi-lens-fixer.md +4 -0
  209. package/node_modules/pi-lens/docs/pi-lens-merge-policy.md +1 -1
  210. package/node_modules/pi-lens/docs/pi-lens-reviewer.md +4 -5
  211. package/node_modules/pi-lens/docs/pi-lens-subagent.md +5 -2
  212. package/node_modules/pi-lens/docs/prose-standard.md +112 -0
  213. package/node_modules/pi-lens/docs/servercapabilities.md +1 -1
  214. package/node_modules/pi-lens/docs/usage.md +50 -0
  215. package/node_modules/pi-lens/package.json +1 -1
  216. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/array-callback-return-js-test.yml +23 -0
  217. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/array-callback-return-test.yml +23 -0
  218. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/no-negation-in-equality-check-js-test.yml +8 -0
  219. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/no-negation-in-equality-check-test.yml +8 -0
  220. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/unchecked-throwing-call-js-test.yml +16 -0
  221. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/unchecked-throwing-call-test.yml +16 -0
  222. package/node_modules/pi-lens/rules/ast-grep-rules/rules/array-callback-return-js.yml +8 -0
  223. package/node_modules/pi-lens/rules/ast-grep-rules/rules/array-callback-return.yml +8 -0
  224. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-negation-in-equality-check-js.yml +17 -5
  225. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-negation-in-equality-check.yml +17 -5
  226. package/node_modules/pi-lens/rules/ast-grep-rules/rules/unchecked-throwing-call-js.yml +8 -1
  227. package/node_modules/pi-lens/rules/ast-grep-rules/rules/unchecked-throwing-call.yml +8 -1
  228. package/node_modules/pi-lens/rules/tree-sitter-queries/typescript/ts-react-antipatterns.yml +8 -0
  229. package/node_modules/pi-web-access/CHANGELOG.md +29 -0
  230. package/node_modules/pi-web-access/README.md +35 -15
  231. package/node_modules/pi-web-access/anysearch.ts +7 -3
  232. package/node_modules/pi-web-access/autom.ts +196 -0
  233. package/node_modules/pi-web-access/cloro.ts +254 -0
  234. package/node_modules/pi-web-access/curator-page.ts +7 -1
  235. package/node_modules/pi-web-access/curator-server.ts +3 -0
  236. package/node_modules/pi-web-access/dist/index.js +12931 -12111
  237. package/node_modules/pi-web-access/dist/mcp-cli.js +1188 -416
  238. package/node_modules/pi-web-access/domain-filter-normalization.ts +30 -0
  239. package/node_modules/pi-web-access/duckduckgo-rate-limit.ts +144 -34
  240. package/node_modules/pi-web-access/duckduckgo.ts +11 -3
  241. package/node_modules/pi-web-access/extract.ts +60 -4
  242. package/node_modules/pi-web-access/gemini-search.ts +25 -5
  243. package/node_modules/pi-web-access/index.ts +9 -1
  244. package/node_modules/pi-web-access/package.json +2 -2
  245. package/node_modules/pi-web-access/page-query.ts +12 -3
  246. package/node_modules/pi-web-access/specstream.ts +276 -0
  247. package/node_modules/pi-web-access/tool-activation.ts +21 -6
  248. package/node_modules/pi-web-access/utils.ts +4 -0
  249. package/node_modules/pi-web-access/video-extract.ts +2 -2
  250. package/node_modules/pi-web-access/web-tool-core.ts +24 -5
  251. package/node_modules/pi-web-access/youtube-extract.ts +2 -2
  252. package/package.json +13 -7
  253. package/node_modules/pi-lens/dist/chunk-3VWEZ6H2.js +0 -72
  254. package/node_modules/pi-lens/dist/chunk-7KWI5UHL.js +0 -28
  255. package/node_modules/pi-lens/dist/chunk-7M64NTAK.js +0 -38
  256. package/node_modules/pi-lens/dist/chunk-BEIPWPVR.js +0 -1037
  257. package/node_modules/pi-lens/dist/chunk-D7OEGXDX.js +0 -2417
  258. package/node_modules/pi-lens/dist/chunk-KUDUKKQE.js +0 -89
  259. package/node_modules/pi-lens/dist/chunk-TM3A3K7T.js +0 -28
  260. package/node_modules/pi-lens/dist/chunk-VD7MQFEV.js +0 -56
  261. package/node_modules/pi-lens/dist/chunk-YLHJWAQS.js +0 -256
  262. package/node_modules/pi-lens/dist/chunk-YULIERZW.js +0 -27
@@ -6,251 +6,131 @@
6
6
 
7
7
  [![omp status](https://omppackages.com/badge/pi-lens.svg)](https://omppackages.com/packages/pi-lens)
8
8
 
9
- pi-lens gives AI coding agents fast, language-aware feedback while they write/edit.
10
-
11
- > **Working in this project as an AI agent?** Read the [agent guide](docs/agent-guide.md)
12
- > for how pi-lens surfaces diagnostics (honesty labels, blockers, read-before-edit)
13
- > and how to respond.
14
-
15
- ## What It Does
16
-
17
- - LSP diagnostics and navigation across supported languages
18
- - Impact cascade diagnostics that show which related files were affected and run LSP diagnostics on them
19
- - Language-specific linters, type-checkers, and scanners on every write/edit
20
- - Safe formatting/autofix where tools are configured or confidently detected
21
- - ast-grep and tree-sitter structural rules for correctness/security smells
22
- - Agent-facing tools for LSP navigation/diagnostics, AST search/replace,
23
- diagnostics state, and project intelligence
24
- - Review-graph intelligence for supported languages via bundled tree-sitter WASMs
25
- - Ranked identifier search (`symbol_search`) over an always-warm word index,
26
- feeding the discovery funnel (symbol_search → module_report → read_symbol)
27
- - Diagnostic triage (`lens_diagnostic_mark`): findings can be marked
28
- false-positive, suppressed in source, deferred, or flagged-to-fix — honored
29
- across all surfaces
30
- - `/lens-map` — interactive HTML dependency map of the project
31
- - Read-guard and edit-autopatch support to reduce bad edits
32
- - Background security/dependency scans for opted-in projects
33
- - Runtime health telemetry (`/lens-health`) including a bounded degradation
34
- ledger for silently-degraded behavior (LSP breakers, formatter
35
- skips/failures, idle evictions, timeouts)
36
- - MCP server (experimental) so Claude Code or any MCP client can drive the
37
- same diagnostics/read-substitute tools pi-lens exposes to pi
38
-
39
- ## Architecture
40
-
41
- Most lifecycle events enter through one wrapper, which drops and counts events
42
- that arrive on a replaced session. `tool_call` registers raw: it delegates
43
- straight to a handler that owns its own total guard. Events fan out into the
44
- edit-time lane and the LSP lane. Both lanes write into the findings stores.
45
- Nothing reaches the agent from those stores until a freshness gate or an
46
- explicit age label clears it.
47
-
48
- ```mermaid
49
- flowchart TD
50
- subgraph host["pi host"]
51
- HOST["Host events<br/>tool_call, tool_result, turn_start/end,<br/>session_start/shutdown, agent_end, context"]
52
- 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"]
53
- end
54
-
55
- subgraph guards["Guards"]
56
- RG["Read-guard<br/>blocks edits that lack prior reading"]
57
- GG["Git-guard<br/>holds commit/push while findings stay unresolved"]
58
- end
59
-
60
- subgraph edit["Edit-time lane"]
61
- PIPE["Post-write pipeline<br/>secrets, format, autofix, sync, lint, tests"]
62
- PLAN["Dispatch plan<br/>per file kind, per capability group"]
63
- RUN["Runners<br/>format, lint, types, security, smells, docs"]
64
- STRUCT["Structural rules<br/>tree-sitter queries and ast-grep"]
65
- BUS["files-touched bus<br/>tells extensions which paths moved"]
66
- end
67
-
68
- subgraph lsp["LSP lane"]
69
- POOL["Client pool<br/>warm reuse, idle eviction"]
70
- DIAGS["File and workspace diagnostics"]
71
- CASC["Impact cascade<br/>tiered wait policy"]
72
- end
73
-
74
- STORES["Findings stores<br/>widget state, warning caches, project snapshot"]
75
-
76
- subgraph gate["Freshness gating"]
77
- FRESH["Path freshness<br/>mtime vs scan time, past-EOF, dependency drift"]
78
- DISPO["Dispositions<br/>false-positive, suppress, defer, flagged"]
79
- LABEL["Explicit age label<br/>for findings no path gate can check"]
80
- end
81
-
82
- subgraph deliver["Delivery surfaces"]
83
- TURN["Turn-end findings injection"]
84
- WIDGET["Widget and footer tally"]
85
- TOOLS["lens_diagnostics tool"]
86
- NUDGE["Agent nudges"]
87
- end
88
-
89
- SESSION["Session lifecycle<br/>primary, sequential replacement, concurrent secondary"]
90
- SINKS["Observability sinks<br/>latency.log, degradation ledger, bounded telemetry,<br/>cache observability, cascade and tree-sitter logs"]
91
- CONFIG["Config-core<br/>resolve, merge, deny"]
92
- REVIEWGRAPH["Review-graph intelligence<br/>call graph, reverse deps, import resolution"]
93
-
94
- HOST --> WRAP
95
- HOST -->|tool_call, raw| RG
96
- HOST -->|tool_call, raw| GG
97
- WRAP -->|session_start| SESSION
98
- WRAP -->|tool_result| PIPE
99
- WRAP -->|tool_result, records reads and writes| RG
100
- SESSION --> POOL
101
- SESSION --> STORES
102
- PIPE --> PLAN
103
- PLAN --> RUN
104
- PLAN --> STRUCT
105
- PIPE --> POOL
106
- PIPE --> BUS
107
- CONFIG --> PIPE
108
- CONFIG --> PLAN
109
- STRUCT --> REVIEWGRAPH
110
- REVIEWGRAPH --> CASC
111
- POOL --> DIAGS
112
- DIAGS --> CASC
113
- RUN --> STORES
114
- STRUCT --> STORES
115
- DIAGS --> STORES
116
- CASC --> STORES
117
- BUS --> NUDGE
118
- RG -->|read and edit history filter| NUDGE
119
- STORES --> FRESH
120
- STORES --> LABEL
121
- FRESH --> DISPO
122
- DISPO --> TURN
123
- DISPO --> WIDGET
124
- DISPO --> TOOLS
125
- LABEL --> TURN
126
- TURN --> GG
127
- WRAP --> SINKS
128
- PIPE --> SINKS
129
- RUN --> SINKS
130
- STRUCT --> SINKS
131
- POOL --> SINKS
132
- CASC --> SINKS
133
- RG --> SINKS
134
- GG --> SINKS
135
- FRESH --> SINKS
136
- ```
137
-
138
- Architecture-level view, updated when a lane changes. Per-tool inventories live
139
- in [features](docs/features.md) and
140
- [language coverage](docs/language-coverage.md). Today the edit-time lane carries
141
- 45+ runner modules over 35+ file kinds, and the LSP lane speaks to 50
142
- language server definitions.
9
+ pi-lens gives AI coding agents fast, language-aware feedback while they write and edit code. It is an extension for the pi coding agent, with an experimental [MCP server](docs/mcp.md) for other hosts.
143
10
 
144
- The gating box is an abstraction, not a call order. Freshness covers several
145
- independent mechanisms: path freshness against scan time, past-EOF line checks,
146
- and forward-import dependency drift. Dispositions are one more filter alongside
147
- them, not a second stage every finding walks through. Read the box as "a finding
148
- passes the gates that apply to it", and see `clients/finding-delivery-gate.ts`
149
- for the per-surface contract.
11
+ > **An AI agent working with pi-lens?** Read the [agent guide](docs/agent-guide.md). It explains the findings you will see and how to respond.
12
+ >
13
+ > **An AI agent changing pi-lens itself?** Read [`AGENTS.md`](AGENTS.md) and [`CONTRIBUTING.md`](CONTRIBUTING.md). A one-line-per-doc index for agents is in [`llms.txt`](llms.txt).
150
14
 
151
- ## Install
15
+ ## Quick start
152
16
 
153
17
  ```bash
154
18
  pi install npm:pi-lens
155
19
  ```
156
20
 
157
- Or from git:
158
-
159
- ```bash
160
- pi install git:github.com/apmantza/pi-lens
161
- ```
21
+ Or from git: `pi install git:github.com/apmantza/pi-lens`.
162
22
 
163
- pi-lens delivers its four skills through the `pi.skills` package manifest, so
164
- install it as a package (`npm:`, `git:`, or a local path); a package install
165
- honours the host's `packages[].skills` filters (for example `[]`,
166
- `!skills/<name>/SKILL.md`, or `-skills/<name>/SKILL.md`). Loading the extension
167
- file directly (`pi --extension ./index.js`) does not read that manifest and
168
- loads no pi-lens skills.
23
+ Requirements: Node.js >=22.19.0 and a pi host of 0.86.1 or newer. On pi 0.80–0.85, pi-lens gives no findings, because those hosts keep the prompt where the extension cannot write to it. [Release QA baseline](docs/release-qa-baseline.md) lists the certified hosts. See [Troubleshooting](#troubleshooting) for npm v12, Android, and skills-manifest notes.
169
24
 
170
- Requires Node.js >=22.19.0 (matches the pi host's own floor — see `engines`
171
- in `package.json`), and a pi host of 0.86.1 or newer. pi 0.80–0.85 keep the
172
- prompt outside the request the extension can write to, so pi-lens delivers no
173
- findings there; `docs/release-qa-baseline.md` lists the certified hosts.
25
+ Install it and start a session. The language servers and many linters start with no setup. Some tools need your project's config, and a few are opt-in. See [What runs by default](#what-runs-by-default) and [Settings](docs/settings.md).
174
26
 
175
- Letting a coding agent do it: paste this into its prompt.
27
+ To let a coding agent install it, paste this into its prompt:
176
28
 
177
29
  ```text
178
- Install pi-lens (npm:pi-lens) into pi, then read AGENTS.md in
179
- https://github.com/apmantza/pi-lens for how the extension works and how it
180
- expects to be operated.
30
+ Install pi-lens (npm:pi-lens) into pi, then read docs/agent-guide.md in
31
+ https://github.com/apmantza/pi-lens for how to read and respond to its findings.
181
32
  ```
182
33
 
183
- > **npm v12 users:** dependency lifecycle scripts (e.g. `@ast-grep/cli`'s
184
- > `postinstall`) now require explicit approval — if `npm install` warns about
185
- > unreviewed install scripts, review and allow them with
186
- > `npm approve-scripts`, or trust the `allowScripts` entries already declared
187
- > in this package's `package.json` (maintainers: see CONTRIBUTING.md
188
- > "Lifecycle-script approvals"). Installing from a git source (`pi install
189
- > git:...` / `pi update --extension git:...`) may similarly prompt for
190
- > git-dependency approval; accept it to let the `prepare` build step run.
34
+ ## What the agent sees
35
+
36
+ After an edit, the tool result carries any blocking findings, with the offending line. At the end of the turn, pi-lens injects the findings that remain. The text below follows the real renderers: the `STOP` block from `clients/pipeline.ts`, and the turn-end framing, `Advisory` label, and warnings summary from `clients/runtime-context.ts` and `clients/runtime-turn.ts`.
191
37
 
192
- ### Android/Termux fallback
38
+ ```text
39
+ 🔴 STOP — 1 issue(s) must be fixed:
40
+ L4: 'randomInt' is declared but its value is never read.
41
+ → const randomInt = Math.floor(result);
193
42
 
194
- Try the normal install first. If it fails in `@ast-grep/cli`'s
195
- `postinstall.js` with `Failed to locate @ast-grep/cli native binary`, the
196
- fallback below has worked in one Termux environment:
43
+ [pi-lens automated check — not a user request] Address 🔴 blockers before continuing; ℹ️ advisories are informational only.
197
44
 
198
- ```bash
199
- pkg install rust clang
200
- cargo install ast-grep --locked
201
- ast-grep --version
202
- npm_config_ignore_scripts=true pi install npm:pi-lens
45
+ ℹ️ Advisory — no action required this turn:
46
+ 🟡 Fixable warnings introduced this turn: 1.
47
+ Use lens_diagnostics with mode=delta to inspect these warnings.
48
+ Files:
49
+ src/app.ts: 1
203
50
  ```
204
51
 
205
- `npm_config_ignore_scripts=true` skips every dependency lifecycle script for
206
- that `pi install` command, not only the failing `@ast-grep/cli` script. Use it
207
- only for this fallback after installing and checking the Rust-built `ast-grep`
208
- binary separately. `pi update` runs the same postinstall, so set the variable
209
- for it too. `ast-grep --version` must succeed from a new shell, which means
210
- `~/.cargo/bin` is on your `PATH`.
52
+ The agent must clear a 🔴 blocker before it reports the task as done. A result marked partial, stale, or unconfirmed is never reported as clean.
53
+
54
+ ## What you get
55
+
56
+ - **Real diagnostics on every edit.** Language servers, linters, type-checkers, and scanners check each written file, and an impact cascade checks the files that depend on it. See [language coverage](docs/language-coverage.md).
57
+ - **Safe formatting and autofix.** pi-lens formats and fixes files with the tools you configure or it confidently detects.
58
+ - **Structural rules.** ast-grep and tree-sitter rules flag correctness and security smells, and you can add [custom rules](docs/custom-rules.md).
59
+ - **Code navigation for the agent.** Tools cover LSP navigation, ranked identifier search, module reports, and symbol reads, so the agent reads less code. See [agent tools](docs/agent-tools.md).
60
+ - **Guards and triage.** Read-before-edit blocks blind edits, an optional git guard holds `git commit` while blockers stand, and on pi you can mark a finding false-positive, suppressed, or deferred. The marking tool has no MCP endpoint, and under pi's lazy tool loading the agent activates it first. See [dispositions](docs/dispositions.md) and [agent tools](docs/agent-tools.md).
61
+ - **Health and scans.** `/lens-health` reports runtime health, and opted-in projects get background security and dependency scans.
62
+
63
+ The [feature reference](docs/features.md) covers everything.
64
+
65
+ ## What runs by default
66
+
67
+ pi-lens runs tools in three tiers. The [per-tool table](docs/language-coverage.md#what-runs-by-default) lists every gate and where it lives in the code.
68
+
69
+ - **No project config.** Language servers start by default, and `--no-lsp` turns them off. Many linters and formatters also run when the tool is available. Examples: ruff, shellcheck, hadolint, and ktlint for linting; oxlint or Biome for JS and TS when the project has no ESLint config; Biome and shfmt for formatting.
70
+ - **Your project's config.** ESLint, golangci-lint, mypy, phpstan, and vale skip a project that lacks their config. detekt needs a detekt config file, credo needs `mix.exs`, and the taplo and clang-format formatters wait for config.
71
+ - **Opt-in.** trivy (`trivy.enabled`), SpotBugs (`--lens-spotbugs`), Helm render validation (`helm.renderValidation.enabled`), and the commit guard (`--lens-guard`) stay off until you enable them.
72
+
73
+ Project-local binaries, such as `node_modules/.bin/eslint` or `.venv/bin/ruff`, run only when pi trusts the project.
211
74
 
212
- In the verified environment, `/lens-health` reported zero pipeline crashes and
213
- listed the `ast-grep` and `bash` LSP servers as available. This confirms startup
214
- and server discovery only; `ast_grep_search` was not tested end to end.
75
+ ## Commands you'll use
215
76
 
216
- pi-lens only looks for an `ast-grep` on `PATH` (such as Cargo's
217
- `~/.cargo/bin/ast-grep`) when pi trusts the project, so in an untrusted
218
- project this fallback leaves `ast_grep_search` unavailable. The in-process
219
- ast-grep rules (`@ast-grep/napi`) and Biome have no Android build, so they stay
220
- unavailable either way.
77
+ | Command | What it does |
78
+ |---|---|
79
+ | `/lens-health` | Show runtime health, latency, and degradation counts |
80
+ | `/lens-widget-toggle` | Show or hide the diagnostics widget below the editor |
81
+ | `/lens-toggle` | Turn pi-lens on or off for the session |
82
+ | `/lens-map` | Build an interactive HTML dependency map of the project |
83
+ | `/lens-allow-edit <path>` | Override the read-before-edit guard for one edit |
84
+ | `/lens-tools` | Show which tools are installed, auto-installed, or fall back to `npx` |
85
+
86
+ The full list of commands and runtime flags is in [Tools and commands](docs/tools.md).
221
87
 
222
88
  ## Documentation
223
89
 
224
- - [Agent guide](docs/agent-guide.md) — how an AI agent should consume and respond to pi-lens
225
- - [Agent tools](docs/agent-tools.md) — pi tool names, scopes, and arguments
226
- - [Usage guide](docs/usage.md) — lifecycle, tool behavior, MCP notes, and
227
- troubleshooting
228
- - [Features](docs/features.md) — detailed feature reference
229
- - [Word index](docs/word-index.md) — identifier search (`symbol_search`) and
230
- the discovery funnel
231
- - [Tools and commands](docs/tools.md) — runtime flags and slash commands
232
- - [Diagnostic dispositions](docs/dispositions.md) — triage: false-positive,
233
- suppress, defer, flagged-to-fix
234
- - [Settings](docs/settings.md) — the configuration hub: defaults, env vars, CLI
235
- flags, and global vs project config at a glance
236
- - [Configuration](docs/globalconfig.md) — global and project config files
237
- - [Environment variables](docs/environment-variables.md) — common env vars and
238
- full reference
239
- - [Language coverage](docs/language-coverage.md) — supported languages, runners,
240
- and formatters
241
- - [Dependencies](docs/dependencies.md) — auto-install policy and external tools
242
- - [Custom rules](docs/custom-rules.md) — project ast-grep and tree-sitter rules
243
- - [MCP server](docs/mcp.md) — experimental MCP server for Claude Code and
244
- other MCP clients
245
- - [Architecture decision records](docs/adr/README.md) — settled design
246
- decisions, linked from the engineering-defect catalog
90
+ ### Use
91
+
92
+ - [Agent guide](docs/agent-guide.md): how an agent reads and responds to pi-lens
93
+ - [Agent tools](docs/agent-tools.md): tool names, scopes, and arguments
94
+ - [Usage guide](docs/usage.md): lifecycle, tool behavior, MCP notes, and troubleshooting
95
+ - [Features](docs/features.md): the detailed feature reference
96
+ - [Diagnostic dispositions](docs/dispositions.md): triage with false-positive, suppress, defer, and flagged-to-fix
97
+ - [Word index](docs/word-index.md): identifier search and the discovery funnel
98
+
99
+ ### Configure
100
+
101
+ - [Settings](docs/settings.md): defaults, environment variables, flags, and global versus project config
102
+ - [Configuration](docs/globalconfig.md): global and project config files
103
+ - [Environment variables](docs/environment-variables.md): the full reference
104
+ - [Language coverage](docs/language-coverage.md): supported languages, runners, and formatters
105
+ - [Dependencies](docs/dependencies.md): auto-install policy and external tools
106
+
107
+ ### Extend
108
+
109
+ - [Custom rules](docs/custom-rules.md): project ast-grep and tree-sitter rules
110
+ - [MCP server](docs/mcp.md): the experimental server for Claude Code and other MCP clients
111
+ - [Architecture](docs/architecture.md): how events reach the findings the agent sees
112
+ - [Architecture decision records](docs/adr/README.md): settled design decisions
113
+
114
+ ## Troubleshooting
115
+
116
+ <details>
117
+ <summary>Install problems</summary>
118
+
119
+ The install notes in the [usage guide](docs/usage.md#install-notes) cover three cases:
120
+
121
+ - **npm v12** asks you to approve dependency install scripts such as the `@ast-grep/cli` postinstall.
122
+ - **Android and Termux** can fail to find the `@ast-grep/cli` native binary. The notes give a verified fallback.
123
+ - **Skills** arrive through the package manifest. Loading the extension file directly (`pi --extension ./index.js`) loads no pi-lens skills.
124
+
125
+ </details>
126
+
127
+ For runtime problems, run `/lens-health` and read the [usage guide troubleshooting section](docs/usage.md#troubleshooting).
247
128
 
248
129
  ## Contributing
249
130
 
250
- See [`CONTRIBUTING.md`](CONTRIBUTING.md) for the development workflow, runner,
251
- LSP, formatter, and rule checklists, and issue/PR conventions.
131
+ See [`CONTRIBUTING.md`](CONTRIBUTING.md) for the development workflow, runner, LSP, formatter, and rule checklists, and for issue and PR conventions.
252
132
 
253
- Security issues should be reported privately; see [`SECURITY.md`](SECURITY.md).
133
+ Report security issues privately; see [`SECURITY.md`](SECURITY.md).
254
134
  pi-lens is released under the [MIT License](LICENSE).
255
135
 
256
136
  ## Contributors
@@ -555,6 +435,12 @@ Thanks goes to these wonderful people:
555
435
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/ProphetOfDoom-PoD"><img src="https://avatars.githubusercontent.com/u/260035065?v=4" width="100px;" alt=""/><br /><sub><b>Prophet Of Doom</b></sub></a><br /><a href="#ideas-ProphetOfDoom-PoD" title="Ideas & Planning">🤔</a></td>
556
436
  <td align="center" valign="top" width="14.28%"><a href="http://www.apostolapostolov.com/"><img src="https://avatars.githubusercontent.com/u/4083812?v=4" width="100px;" alt=""/><br /><sub><b>Apostol Apostolov</b></sub></a><br /><a href="#bug-apoapostolov" title="Bug reports">🐛</a></td>
557
437
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/spearmootz"><img src="https://avatars.githubusercontent.com/u/19737290?v=4" width="100px;" alt=""/><br /><sub><b>Ricardo Spear</b></sub></a><br /><a href="#bug-spearmootz" title="Bug reports">🐛</a></td>
438
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/lluppi"><img src="https://avatars.githubusercontent.com/u/88203649?v=4" width="100px;" alt=""/><br /><sub><b>Lee Luppi</b></sub></a><br /><a href="#ideas-lluppi" title="Ideas & Planning">🤔</a> <a href="#code-lluppi" title="Code">💻</a></td>
439
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/gezerui888"><img src="https://avatars.githubusercontent.com/u/17674876?v=4" width="100px;" alt=""/><br /><sub><b>Zerui Ge</b></sub></a><br /><a href="#code-gezerui888" title="Code">💻</a></td>
440
+ </tr>
441
+ <tr>
442
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/HyeokjaeLee"><img src="https://avatars.githubusercontent.com/u/71566740?v=4" width="100px;" alt=""/><br /><sub><b>HyeokjaeLee</b></sub></a><br /><a href="#code-HyeokjaeLee" title="Code">💻</a> <a href="#bug-HyeokjaeLee" title="Bug reports">🐛</a></td>
443
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/dmarchevsky"><img src="https://avatars.githubusercontent.com/u/32597866?v=4" width="100px;" alt=""/><br /><sub><b>Dima Marchevskyi</b></sub></a><br /><a href="#bug-dmarchevsky" title="Bug reports">🐛</a></td>
558
444
  </tr>
559
445
  </tbody>
560
446
  </table>
@@ -2,7 +2,7 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
2
2
  import {
3
3
  collectSourceFiles,
4
4
  collectSourceFilesAsync
5
- } from "./chunk-3PMLYGJN.js";
5
+ } from "./chunk-R4L7KZ7R.js";
6
6
 
7
7
  // dist/clients/scan-utils.js
8
8
  function getSourceFiles(dir, _isTsProject) {
@@ -26,6 +26,9 @@ function checkedVerdict(tier, rows) {
26
26
  const completed = [first, ...rest];
27
27
  return { checked: true, tier, runnerIds: completed };
28
28
  }
29
+ function cleanVerdict(evidence) {
30
+ return evidence.findings === 0 && evidence.scope > 0 && evidence.proven === evidence.scope;
31
+ }
29
32
  function emptyDispatchResult(verdict) {
30
33
  return {
31
34
  diagnostics: [],
@@ -50,13 +53,56 @@ var RUNNER_SKIP_REASONS = [
50
53
  "dialect-unsupported",
51
54
  "covered-by-primary",
52
55
  "disabled-by-config",
53
- "not-enabled"
56
+ "not-enabled",
57
+ "not-installed",
58
+ "install-disabled",
59
+ "not-configured",
60
+ "not-preferred",
61
+ "probe-incomplete",
62
+ "probe-rejected",
63
+ "trust-refused",
64
+ "runtime-missing"
65
+ ];
66
+ var VERDICT_SKIP_REASONS = [
67
+ "no-files-matched",
68
+ "configured-non-biome-linter",
69
+ "dialect-unsupported",
70
+ "covered-by-primary",
71
+ "disabled-by-config"
72
+ ];
73
+ var TOOL_UNUSABLE_SKIP_REASONS = [
74
+ "not-installed",
75
+ "install-disabled",
76
+ "probe-incomplete",
77
+ "probe-rejected",
78
+ "trust-refused",
79
+ "runtime-missing"
54
80
  ];
81
+ var SKIP_REASON_PHRASE = {
82
+ "no-files-matched": "no file matched",
83
+ "configured-non-biome-linter": "the project is configured for another linter",
84
+ "dialect-unsupported": "its tool does not support this file's dialect",
85
+ "covered-by-primary": "the primary language server covers this file",
86
+ "disabled-by-config": "disabled in config by dispatch.disabledRunners",
87
+ "not-enabled": "not enabled",
88
+ "not-installed": "not installed",
89
+ "install-disabled": "not installed, and the managed install is off (PI_LENS_DISABLE_TOOL_INSTALL=1)",
90
+ "not-configured": "not configured",
91
+ "not-preferred": "the project's lint policy prefers another tool",
92
+ "probe-incomplete": "its availability probe did not finish",
93
+ // The binary may be a runtime the tool needs (Java for SpotBugs), not the
94
+ // tool itself, so the phrase does not say the tool was found.
95
+ "probe-rejected": "a binary it runs was found but rejected its version probe",
96
+ "trust-refused": "the project's own binary was refused (pi project trust is not granted)",
97
+ "runtime-missing": "a runtime it needs is not installed"
98
+ };
55
99
  var NOT_APPLICABLE_SKIP_REASONS = [
56
100
  "no-files-matched",
57
101
  "configured-non-biome-linter",
58
102
  "dialect-unsupported",
59
- "not-enabled"
103
+ "not-enabled",
104
+ "not-configured",
105
+ "not-preferred"
60
106
  ];
61
107
  function isNotApplicableSkipReason(value) {
62
108
  return NOT_APPLICABLE_SKIP_REASONS.some((reason) => reason === value);
@@ -103,6 +149,14 @@ function faultSkip(fault) {
103
149
  skipFault: fault
104
150
  };
105
151
  }
152
+ function skipped(reason) {
153
+ return {
154
+ status: "skipped",
155
+ diagnostics: [],
156
+ semantic: "none",
157
+ skipReason: reason
158
+ };
159
+ }
106
160
  function hasUsableResult(result) {
107
161
  return result.status === "succeeded" || result.status === "failed" && result.failureKind === BLOCKING_DIAGNOSTICS_FAILURE_KIND;
108
162
  }
@@ -115,7 +169,7 @@ function reachedNoVerdict(result) {
115
169
  case "deferred":
116
170
  return true;
117
171
  case "skipped":
118
- return !isRunnerSkipReason(result.skipReason) || result.skipReason === "not-enabled";
172
+ return !VERDICT_SKIP_REASONS.some((reason) => reason === result.skipReason);
119
173
  case "succeeded":
120
174
  default:
121
175
  return false;
@@ -129,17 +183,21 @@ export {
129
183
  verdictUncheckedReason,
130
184
  recordedUnchecked,
131
185
  checkedVerdict,
186
+ cleanVerdict,
132
187
  emptyDispatchResult,
133
188
  IN_FLIGHT_REASON,
134
189
  NO_ANALYZER_REASON,
135
190
  NO_SERVER_REASON,
136
191
  noPrimaryCheckerReason,
192
+ TOOL_UNUSABLE_SKIP_REASONS,
193
+ SKIP_REASON_PHRASE,
137
194
  isNotApplicableSkipReason,
138
195
  isRunnerSkipReason,
139
196
  isRunnerClaimSource,
140
197
  findingsResult,
141
198
  faultResult,
142
199
  faultSkip,
200
+ skipped,
143
201
  hasUsableResult,
144
202
  reachedNoVerdict
145
203
  };
@@ -1,27 +1,27 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  parseJsonc
4
- } from "./chunk-7424ANRU.js";
4
+ } from "./chunk-CXQYK4YT.js";
5
+ import {
6
+ resolveLanguage
7
+ } from "./chunk-DI4AZZNY.js";
5
8
  import {
6
9
  extractTomlTableSection,
7
10
  hasTomlTable,
8
11
  parseTomlScalarString,
9
12
  parseTomlStringArray
10
- } from "./chunk-SUIZOCSY.js";
11
- import {
12
- resolveLanguage
13
- } from "./chunk-AYDE7RFV.js";
13
+ } from "./chunk-KNSOA43J.js";
14
14
  import {
15
15
  getProjectTrustState
16
- } from "./chunk-HRQTYU2T.js";
16
+ } from "./chunk-W26QZ3OM.js";
17
17
  import {
18
18
  incrementDegradationCount,
19
19
  logExtension,
20
20
  recordDegradationOnce
21
- } from "./chunk-AGEQRJ5A.js";
21
+ } from "./chunk-NHA5K226.js";
22
22
  import {
23
23
  logLatency
24
- } from "./chunk-K2GV34T2.js";
24
+ } from "./chunk-7CLWC2UH.js";
25
25
  import {
26
26
  UV_WORKSPACE_EXCLUDE_DIALECT,
27
27
  UV_WORKSPACE_MEMBERS_DIALECT,
@@ -3,18 +3,18 @@ import {
3
3
  GoClient,
4
4
  goClient,
5
5
  resetGoAvailability
6
- } from "./chunk-MOEWCPMC.js";
7
- import "./chunk-E5SSUV2A.js";
8
- import "./chunk-3QMLB4TI.js";
9
- import "./chunk-AVBEPUCD.js";
10
- import "./chunk-ET3DSSFZ.js";
11
- import "./chunk-B4FAFEBP.js";
12
- import "./chunk-6EIV3H7O.js";
13
- import "./chunk-3R3Z54J7.js";
14
- import "./chunk-HRQTYU2T.js";
15
- import "./chunk-AGEQRJ5A.js";
6
+ } from "./chunk-7DPXUPRF.js";
7
+ import "./chunk-QMWKSYWB.js";
8
+ import "./chunk-KXGTLAUW.js";
9
+ import "./chunk-6GLMMGCX.js";
10
+ import "./chunk-3PO4YYOX.js";
11
+ import "./chunk-5JB4WENL.js";
12
+ import "./chunk-PQF6YGYB.js";
13
+ import "./chunk-LOEJFTF2.js";
14
+ import "./chunk-W26QZ3OM.js";
15
+ import "./chunk-NHA5K226.js";
16
16
  import "./chunk-S26LC76R.js";
17
- import "./chunk-K2GV34T2.js";
17
+ import "./chunk-7CLWC2UH.js";
18
18
  import "./chunk-LJDODBBZ.js";
19
19
  import "./chunk-WLD6BGON.js";
20
20
  import "./chunk-NXL4FFQQ.js";