@herbertgao/pi-extensions 2026.11.4 → 2026.11.6

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 (207) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +9 -9
  3. package/THIRD_PARTY_NOTICES.md +2 -2
  4. package/node_modules/@herbertgao/pi-cc-extensions/CHANGELOG.md +10 -0
  5. package/node_modules/@herbertgao/pi-cc-extensions/README.en.md +5 -4
  6. package/node_modules/@herbertgao/pi-cc-extensions/README.md +5 -4
  7. package/node_modules/@herbertgao/pi-cc-extensions/extensions/config/panel.ts +4 -4
  8. package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/compact-thinking.ts +6 -0
  9. package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/shell/footer.ts +22 -4
  10. package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/shell/session-tokens.ts +3 -3
  11. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/compact-mode.ts +22 -2
  12. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/index.ts +5 -0
  13. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/ccstyle-tool.ts +38 -6
  14. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/codemode.ts +2 -1
  15. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/diff/diff-header.ts +4 -4
  16. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/diff/diff-layout.ts +6 -6
  17. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/diff/diff-palette.ts +4 -4
  18. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/diff/diff-presentation.ts +2 -2
  19. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/tool-io.ts +3 -2
  20. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/transcript-mode.ts +465 -0
  21. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/transcript-scope.ts +44 -0
  22. package/node_modules/@herbertgao/pi-cc-extensions/package.json +4 -4
  23. package/node_modules/@herbertgao/pi-cc-extensions/themes/cc-dark-hc.json +2 -4
  24. package/node_modules/@herbertgao/pi-cc-extensions/themes/cc-dark.json +3 -5
  25. package/node_modules/@herbertgao/pi-cc-extensions/themes/cc-light-hc.json +2 -4
  26. package/node_modules/@herbertgao/pi-cc-extensions/themes/cc-light.json +3 -5
  27. package/node_modules/@herbertgao/pi-impeccable/CHANGELOG.md +10 -0
  28. package/node_modules/@herbertgao/pi-impeccable/README.md +2 -2
  29. package/node_modules/@herbertgao/pi-impeccable/package.json +4 -4
  30. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/SKILL.md +1 -1
  31. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/asset-producer.md +1 -1
  32. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/documenter.md +4 -4
  33. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/finish-reviewer.md +2 -2
  34. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/manual-edit-applier.md +3 -2
  35. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/hooks.md +13 -7
  36. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/init.md +2 -0
  37. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/live.md +5 -3
  38. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/new-work.md +2 -2
  39. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/VERSION +1 -1
  40. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/engine-checksums.txt +5 -5
  41. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/impeccable +39 -22
  42. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/impeccable.cmd +43 -15
  43. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/live-browser.js +357 -139
  44. package/node_modules/@narumitw/pi-btw/CHANGELOG.md +8 -0
  45. package/node_modules/@narumitw/pi-btw/README.md +1 -0
  46. package/node_modules/@narumitw/pi-btw/dist/chunks/bring-to-main-VMICX6GU.ts +450 -0
  47. package/node_modules/@narumitw/pi-btw/dist/chunks/bring-to-main-VMICX6GU.ts.map +7 -0
  48. package/node_modules/@narumitw/pi-btw/dist/chunks/chunk-6GO5M6UJ.ts +142 -0
  49. package/node_modules/@narumitw/pi-btw/dist/chunks/chunk-6GO5M6UJ.ts.map +7 -0
  50. package/node_modules/@narumitw/pi-btw/dist/chunks/chunk-E4LBFYRH.ts +452 -0
  51. package/node_modules/@narumitw/pi-btw/dist/chunks/chunk-E4LBFYRH.ts.map +7 -0
  52. package/node_modules/@narumitw/pi-btw/dist/chunks/chunk-FWW662MW.ts +329 -0
  53. package/node_modules/@narumitw/pi-btw/dist/chunks/chunk-FWW662MW.ts.map +7 -0
  54. package/node_modules/@narumitw/pi-btw/dist/chunks/chunk-TPDBHPLD.ts +614 -0
  55. package/node_modules/@narumitw/pi-btw/dist/chunks/chunk-TPDBHPLD.ts.map +7 -0
  56. package/node_modules/@narumitw/pi-btw/dist/chunks/fullscreen-ui-4MJ3HOFJ.ts +1400 -0
  57. package/node_modules/@narumitw/pi-btw/dist/chunks/fullscreen-ui-4MJ3HOFJ.ts.map +7 -0
  58. package/node_modules/@narumitw/pi-btw/dist/chunks/import-main-updates-XFSIED52.ts +79 -0
  59. package/node_modules/@narumitw/pi-btw/dist/chunks/import-main-updates-XFSIED52.ts.map +7 -0
  60. package/node_modules/@narumitw/pi-btw/dist/chunks/main-tree-picker-WHRN26NJ.ts +328 -0
  61. package/node_modules/@narumitw/pi-btw/dist/chunks/main-tree-picker-WHRN26NJ.ts.map +7 -0
  62. package/node_modules/@narumitw/pi-btw/dist/chunks/menu-SYMLQYWC.ts +15 -0
  63. package/node_modules/@narumitw/pi-btw/dist/chunks/menu-SYMLQYWC.ts.map +7 -0
  64. package/node_modules/@narumitw/pi-btw/dist/chunks/transcript-pager-D7XAJC65.ts +824 -0
  65. package/node_modules/@narumitw/pi-btw/dist/chunks/transcript-pager-D7XAJC65.ts.map +7 -0
  66. package/node_modules/@narumitw/pi-btw/dist/index.ts +111 -4497
  67. package/node_modules/@narumitw/pi-btw/dist/index.ts.map +4 -4
  68. package/node_modules/@narumitw/pi-btw/package.json +2 -2
  69. package/node_modules/@narumitw/pi-btw/src/btw.ts +55 -30
  70. package/node_modules/pi-antigravity/README.md +6 -2
  71. package/node_modules/pi-antigravity/package.json +9 -5
  72. package/node_modules/pi-antigravity/src/features/generate-image.ts +9 -3
  73. package/node_modules/pi-antigravity/src/features/google-search.ts +3 -2
  74. package/node_modules/pi-antigravity/src/image/image.ts +42 -4
  75. package/node_modules/pi-antigravity/src/index.ts +3 -1
  76. package/node_modules/pi-antigravity/src/models/models.ts +27 -2
  77. package/node_modules/pi-antigravity/src/search/search.ts +7 -2
  78. package/node_modules/pi-antigravity/src/stream/stream.ts +91 -15
  79. package/node_modules/pi-antigravity/src/types/types.ts +2 -0
  80. package/node_modules/pi-antigravity/src/utils/util.ts +7 -0
  81. package/node_modules/pi-lens/CHANGELOG-USER.md +6 -6
  82. package/node_modules/pi-lens/CHANGELOG.md +80 -0
  83. package/node_modules/pi-lens/README.md +2 -0
  84. package/node_modules/pi-lens/dist/{chunk-CM6BDY4E.js → chunk-2ADRLTM2.js} +2 -2
  85. package/node_modules/pi-lens/dist/{chunk-XO756WE5.js → chunk-2LVJQU3I.js} +15 -14
  86. package/node_modules/pi-lens/dist/{chunk-W5E72HJA.js → chunk-3FRI5H4T.js} +13 -1
  87. package/node_modules/pi-lens/dist/{chunk-N5CEGQPG.js → chunk-3HM4BUHR.js} +11 -11
  88. package/node_modules/pi-lens/dist/{chunk-UAKO2M6B.js → chunk-3QWVOBZJ.js} +30 -30
  89. package/node_modules/pi-lens/dist/{chunk-QB7T2PHK.js → chunk-46TQJSUE.js} +3 -1
  90. package/node_modules/pi-lens/dist/{chunk-ZZN74OGD.js → chunk-4ITEFRDH.js} +3 -2
  91. package/node_modules/pi-lens/dist/{chunk-C3YRO3EU.js → chunk-4NCDHTFI.js} +6 -6
  92. package/node_modules/pi-lens/dist/{chunk-G22UNQID.js → chunk-6I44EDNQ.js} +10 -10
  93. package/node_modules/pi-lens/dist/{chunk-OUYAUXAT.js → chunk-6MDM5MQT.js} +169 -56
  94. package/node_modules/pi-lens/dist/{chunk-CDFJF5YD.js → chunk-7JX3RNG4.js} +1 -1
  95. package/node_modules/pi-lens/dist/{chunk-PIIUNJIT.js → chunk-7WJ55KBN.js} +1 -1
  96. package/node_modules/pi-lens/dist/{chunk-ZMMHHXSW.js → chunk-A5TEJZGJ.js} +1 -0
  97. package/node_modules/pi-lens/dist/{chunk-HEA3EM23.js → chunk-ALIZWXHZ.js} +8 -8
  98. package/node_modules/pi-lens/dist/{chunk-MQ4PPCJB.js → chunk-AON2QIJF.js} +32 -36
  99. package/node_modules/pi-lens/dist/{chunk-DGKFWQK4.js → chunk-B2YUE6YD.js} +7 -7
  100. package/node_modules/pi-lens/dist/{chunk-GQTQUNCG.js → chunk-B6HXETWY.js} +20 -20
  101. package/node_modules/pi-lens/dist/{chunk-KR5VGMVT.js → chunk-BDR5MEZY.js} +9 -9
  102. package/node_modules/pi-lens/dist/{chunk-MRLH4MYU.js → chunk-BGLS5SDN.js} +1 -1
  103. package/node_modules/pi-lens/dist/{chunk-PRHYIA6X.js → chunk-BRESRQBE.js} +4 -4
  104. package/node_modules/pi-lens/dist/{chunk-5GEYJJHG.js → chunk-C6AODRNU.js} +7 -7
  105. package/node_modules/pi-lens/dist/{chunk-ZZSJAR76.js → chunk-CTB5BAJI.js} +24 -11
  106. package/node_modules/pi-lens/dist/{chunk-IICERRFF.js → chunk-CYUJB552.js} +4 -4
  107. package/node_modules/pi-lens/dist/{chunk-THYHUIDR.js → chunk-CZAWWXP6.js} +1 -1
  108. package/node_modules/pi-lens/dist/{chunk-QJJKOHLH.js → chunk-DBS736MA.js} +27 -27
  109. package/node_modules/pi-lens/dist/{chunk-XLAI7UYY.js → chunk-DOUAWKLO.js} +8 -8
  110. package/node_modules/pi-lens/dist/{chunk-LAHHGNAY.js → chunk-DVRJBQOJ.js} +12 -12
  111. package/node_modules/pi-lens/dist/{chunk-KV6GQOGN.js → chunk-E4VXKTBR.js} +28 -28
  112. package/node_modules/pi-lens/dist/{chunk-XKFO2SZV.js → chunk-F6FT6BVQ.js} +26 -26
  113. package/node_modules/pi-lens/dist/{chunk-VWLSU3XV.js → chunk-FCQSZQAT.js} +1 -1
  114. package/node_modules/pi-lens/dist/{chunk-X5BJ3G2P.js → chunk-FOEPIX76.js} +1 -1
  115. package/node_modules/pi-lens/dist/{chunk-F6BEQWAK.js → chunk-GMC4ZGYR.js} +4 -4
  116. package/node_modules/pi-lens/dist/{chunk-TOE2RRCS.js → chunk-GTTMQ6XB.js} +1 -1
  117. package/node_modules/pi-lens/dist/{chunk-5YSEQHJN.js → chunk-GUGKKGG7.js} +1 -1
  118. package/node_modules/pi-lens/dist/{chunk-OSEKJEUU.js → chunk-GVWIU7M7.js} +1 -1
  119. package/node_modules/pi-lens/dist/{chunk-TMNUTMT5.js → chunk-H65TYP6V.js} +25 -4
  120. package/node_modules/pi-lens/dist/{chunk-7R5GZIA6.js → chunk-HILZE4BQ.js} +5 -4
  121. package/node_modules/pi-lens/dist/{chunk-HYSKJMZK.js → chunk-HSYFLOZY.js} +2 -2
  122. package/node_modules/pi-lens/dist/{chunk-V2WDBOLZ.js → chunk-I32RSMH6.js} +7 -7
  123. package/node_modules/pi-lens/dist/chunk-I74RQGKA.js +88 -0
  124. package/node_modules/pi-lens/dist/{chunk-RNXOWDM6.js → chunk-IDCTDKIA.js} +3 -3
  125. package/node_modules/pi-lens/dist/{chunk-TYHPVE5H.js → chunk-IK4YS3KC.js} +8 -8
  126. package/node_modules/pi-lens/dist/{chunk-ZCQBNPRH.js → chunk-IL6PIV33.js} +2 -2
  127. package/node_modules/pi-lens/dist/{chunk-6GPB3JLL.js → chunk-J6BR5XN2.js} +2 -2
  128. package/node_modules/pi-lens/dist/{chunk-UC5AXW5Z.js → chunk-JKOZ2Z4U.js} +6 -6
  129. package/node_modules/pi-lens/dist/{chunk-WSSLVMDA.js → chunk-JZQGRARR.js} +7 -7
  130. package/node_modules/pi-lens/dist/{chunk-7UTSNTWM.js → chunk-K6WIBVMK.js} +4 -3
  131. package/node_modules/pi-lens/dist/{chunk-QVBOXT3L.js → chunk-KDCIG23C.js} +6 -6
  132. package/node_modules/pi-lens/dist/{chunk-NOWH2VA2.js → chunk-KFRDFAOE.js} +4 -4
  133. package/node_modules/pi-lens/dist/{chunk-NMUSOZ2D.js → chunk-KJ3AHOCK.js} +6 -6
  134. package/node_modules/pi-lens/dist/{chunk-E65WJVI5.js → chunk-KSTQ4VXT.js} +5 -5
  135. package/node_modules/pi-lens/dist/{chunk-4ENEJHF4.js → chunk-MAD4QJTP.js} +9 -9
  136. package/node_modules/pi-lens/dist/{chunk-KXMJLOZF.js → chunk-NBM7PNBP.js} +7 -7
  137. package/node_modules/pi-lens/dist/{chunk-7YTRG6YW.js → chunk-NE4EFHJX.js} +1 -1
  138. package/node_modules/pi-lens/dist/{chunk-AACN5GNE.js → chunk-NPNFGYLV.js} +3 -1
  139. package/node_modules/pi-lens/dist/{chunk-H3BVMK47.js → chunk-OPFNQBS5.js} +5 -5
  140. package/node_modules/pi-lens/dist/{chunk-WTB4GKMH.js → chunk-OTSTS7L2.js} +11 -2
  141. package/node_modules/pi-lens/dist/{chunk-JUZ67QZQ.js → chunk-PTSA6QKL.js} +7 -7
  142. package/node_modules/pi-lens/dist/{chunk-ZPM7ZIFL.js → chunk-Q2VCKC3X.js} +3 -3
  143. package/node_modules/pi-lens/dist/{chunk-2VZ3VN3N.js → chunk-QHOTTC4A.js} +2 -2
  144. package/node_modules/pi-lens/dist/{chunk-L7O774U7.js → chunk-QL37SGTS.js} +105 -13
  145. package/node_modules/pi-lens/dist/{chunk-FRUBVFXV.js → chunk-QMV2APEH.js} +27 -27
  146. package/node_modules/pi-lens/dist/{chunk-L4Y3ROKQ.js → chunk-QSCZAP24.js} +3 -3
  147. package/node_modules/pi-lens/dist/{chunk-IILEH3ZC.js → chunk-QUPYLQA4.js} +4 -4
  148. package/node_modules/pi-lens/dist/{chunk-3NPWO5UO.js → chunk-QUQY3IME.js} +4 -4
  149. package/node_modules/pi-lens/dist/{chunk-FGNSESAC.js → chunk-QWTHFFU6.js} +8 -8
  150. package/node_modules/pi-lens/dist/{chunk-EKNYSXFB.js → chunk-RQRKIRFY.js} +5 -5
  151. package/node_modules/pi-lens/dist/{chunk-NCLO6E6N.js → chunk-S3WFVG5P.js} +14 -21
  152. package/node_modules/pi-lens/dist/{chunk-RTFMDIKV.js → chunk-SG2JQ2YP.js} +1 -1
  153. package/node_modules/pi-lens/dist/{chunk-VO4JFPTV.js → chunk-SJQUWQR6.js} +2 -2
  154. package/node_modules/pi-lens/dist/{chunk-SLSMJPEF.js → chunk-SKVNHCT5.js} +32 -32
  155. package/node_modules/pi-lens/dist/{chunk-3HTZDY3C.js → chunk-TJQSYX3J.js} +3 -3
  156. package/node_modules/pi-lens/dist/{chunk-RNJFRXEN.js → chunk-TLWFZ66Y.js} +3 -3
  157. package/node_modules/pi-lens/dist/{chunk-LWOM6LVS.js → chunk-TN5CWX5D.js} +26 -26
  158. package/node_modules/pi-lens/dist/{chunk-UTJP6WOS.js → chunk-TQHOKMVZ.js} +11 -11
  159. package/node_modules/pi-lens/dist/{chunk-N56BNAA6.js → chunk-TYHOEX4V.js} +15 -15
  160. package/node_modules/pi-lens/dist/{chunk-QP33NKYC.js → chunk-UNBRHPHJ.js} +10 -10
  161. package/node_modules/pi-lens/dist/{chunk-EY6LY2HO.js → chunk-UOO4D2TK.js} +11 -11
  162. package/node_modules/pi-lens/dist/{chunk-47UCC4MM.js → chunk-UY745U35.js} +1 -1
  163. package/node_modules/pi-lens/dist/{chunk-ZDMFGACN.js → chunk-V7F7JHS5.js} +71 -55
  164. package/node_modules/pi-lens/dist/{chunk-PBZNYHMM.js → chunk-VGTBLTPN.js} +4 -4
  165. package/node_modules/pi-lens/dist/{chunk-L6WBJGQS.js → chunk-VPFRU5IG.js} +1 -1
  166. package/node_modules/pi-lens/dist/{chunk-Q6JQKWPK.js → chunk-VS2L7QDI.js} +8 -8
  167. package/node_modules/pi-lens/dist/{chunk-PXQ45SGD.js → chunk-W4CUK5G6.js} +2 -2
  168. package/node_modules/pi-lens/dist/{chunk-MKPDIAZH.js → chunk-WAA63ZJV.js} +1 -1
  169. package/node_modules/pi-lens/dist/{chunk-J3Q2NYJR.js → chunk-WS3UFJOU.js} +1 -1
  170. package/node_modules/pi-lens/dist/{chunk-T5QSLSMM.js → chunk-XAFZJEXY.js} +16 -16
  171. package/node_modules/pi-lens/dist/{chunk-YOXCCJDF.js → chunk-XPGH5O74.js} +56 -46
  172. package/node_modules/pi-lens/dist/{chunk-UXTQ3QPD.js → chunk-Y3EHLUPL.js} +2 -2
  173. package/node_modules/pi-lens/dist/{chunk-HSOBIN22.js → chunk-YF4G5NN5.js} +2 -2
  174. package/node_modules/pi-lens/dist/{chunk-SIQHOB6P.js → chunk-YQA34KAF.js} +7 -7
  175. package/node_modules/pi-lens/dist/{chunk-V67D6TMU.js → chunk-YT2VR4SL.js} +4 -4
  176. package/node_modules/pi-lens/dist/{chunk-CJS6WE66.js → chunk-ZOPXB2KK.js} +11 -11
  177. package/node_modules/pi-lens/dist/{chunk-H6FLQ5NW.js → chunk-ZPFLHB3R.js} +11 -11
  178. package/node_modules/pi-lens/dist/{chunk-ZVCDHYWZ.js → chunk-ZZDVGCGG.js} +6 -6
  179. package/node_modules/pi-lens/dist/index.js +537 -269
  180. package/node_modules/pi-lens/dist/mcp/analyze-cli.js +6 -6
  181. package/node_modules/pi-lens/dist/mcp/cli.js +32 -32
  182. package/node_modules/pi-lens/dist/mcp/server.js +109 -109
  183. package/node_modules/pi-lens/dist/mcp/worker.js +49 -49
  184. package/node_modules/pi-lens/dist/probes/installer.js +13 -13
  185. package/node_modules/pi-lens/docs/agent-guide.md +2 -1
  186. package/node_modules/pi-lens/docs/agent-tools.md +13 -2
  187. package/node_modules/pi-lens/docs/configuration.md +9 -4
  188. package/node_modules/pi-lens/docs/defect-shapes.md +15 -1
  189. package/node_modules/pi-lens/docs/features.md +11 -1
  190. package/node_modules/pi-lens/docs/globalconfig.md +13 -0
  191. package/node_modules/pi-lens/docs/invariants/language-config.md +9 -1
  192. package/node_modules/pi-lens/docs/language-coverage.md +66 -0
  193. package/node_modules/pi-lens/docs/lsp-capability-matrix.md +66 -20
  194. package/node_modules/pi-lens/docs/lsp-idle-eviction.md +17 -13
  195. package/node_modules/pi-lens/docs/pi-lens-fixer.md +8 -6
  196. package/node_modules/pi-lens/docs/pi-lens-merge-policy.md +5 -1
  197. package/node_modules/pi-lens/docs/pi-lens-release.md +3 -2
  198. package/node_modules/pi-lens/docs/pi-lens-reviewer.md +52 -11
  199. package/node_modules/pi-lens/docs/servercapabilities.md +1 -1
  200. package/node_modules/pi-lens/docs/settings.md +7 -4
  201. package/node_modules/pi-lens/docs/usage.md +1 -0
  202. package/node_modules/pi-lens/package.json +2 -2
  203. package/node_modules/pi-lens/scripts/download-grammars.js +10 -0
  204. package/node_modules/pi-lens/scripts/grammars.lock.json +7 -0
  205. package/node_modules/pi-lens/vendor/grammars/tree-sitter-groovy.wasm +0 -0
  206. package/package.json +7 -7
  207. package/node_modules/pi-lens/dist/chunk-TGQDAG4B.js +0 -88
@@ -2,82 +2,82 @@
2
2
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
3
3
  import {
4
4
  analyzeFile
5
- } from "../chunk-ZDMFGACN.js";
6
- import "../chunk-F6BEQWAK.js";
7
- import "../chunk-47UCC4MM.js";
8
- import "../chunk-HYSKJMZK.js";
9
- import "../chunk-2VZ3VN3N.js";
10
- import "../chunk-H3BVMK47.js";
11
- import "../chunk-VO4JFPTV.js";
12
- import "../chunk-PBZNYHMM.js";
13
- import "../chunk-ZZN74OGD.js";
14
- import "../chunk-PXQ45SGD.js";
15
- import "../chunk-L4Y3ROKQ.js";
16
- import "../chunk-QVBOXT3L.js";
17
- import "../chunk-NCLO6E6N.js";
18
- import "../chunk-7R5GZIA6.js";
19
- import "../chunk-UXTQ3QPD.js";
20
- import "../chunk-CM6BDY4E.js";
5
+ } from "../chunk-V7F7JHS5.js";
6
+ import "../chunk-GMC4ZGYR.js";
7
+ import "../chunk-UY745U35.js";
8
+ import "../chunk-HSYFLOZY.js";
9
+ import "../chunk-QHOTTC4A.js";
10
+ import "../chunk-OPFNQBS5.js";
11
+ import "../chunk-SJQUWQR6.js";
12
+ import "../chunk-VGTBLTPN.js";
13
+ import "../chunk-4ITEFRDH.js";
14
+ import "../chunk-W4CUK5G6.js";
15
+ import "../chunk-QSCZAP24.js";
16
+ import "../chunk-KDCIG23C.js";
17
+ import "../chunk-S3WFVG5P.js";
18
+ import "../chunk-HILZE4BQ.js";
19
+ import "../chunk-Y3EHLUPL.js";
20
+ import "../chunk-2ADRLTM2.js";
21
21
  import "../chunk-ZD4KVFXI.js";
22
- import "../chunk-TOE2RRCS.js";
23
- import "../chunk-XO756WE5.js";
22
+ import "../chunk-GTTMQ6XB.js";
23
+ import "../chunk-2LVJQU3I.js";
24
24
  import "../chunk-3MED75HT.js";
25
25
  import "../chunk-PKLB2XJL.js";
26
- import "../chunk-OUYAUXAT.js";
27
- import "../chunk-VWLSU3XV.js";
26
+ import "../chunk-6MDM5MQT.js";
27
+ import "../chunk-FCQSZQAT.js";
28
28
  import "../chunk-XIMYZ3JA.js";
29
- import "../chunk-YOXCCJDF.js";
30
- import "../chunk-7YTRG6YW.js";
31
- import "../chunk-V67D6TMU.js";
29
+ import "../chunk-XPGH5O74.js";
30
+ import "../chunk-NE4EFHJX.js";
31
+ import "../chunk-YT2VR4SL.js";
32
32
  import "../chunk-LT62P654.js";
33
- import "../chunk-PRHYIA6X.js";
33
+ import "../chunk-BRESRQBE.js";
34
34
  import "../chunk-XVB3Q2PG.js";
35
35
  import "../chunk-5W3R6LFT.js";
36
- import "../chunk-L7O774U7.js";
37
- import "../chunk-7UTSNTWM.js";
36
+ import "../chunk-QL37SGTS.js";
37
+ import "../chunk-K6WIBVMK.js";
38
38
  import "../chunk-ACRJ2GZ5.js";
39
- import "../chunk-J3Q2NYJR.js";
40
- import "../chunk-ZZSJAR76.js";
39
+ import "../chunk-WS3UFJOU.js";
40
+ import "../chunk-CTB5BAJI.js";
41
41
  import "../chunk-Z54ZSOBZ.js";
42
- import "../chunk-5YSEQHJN.js";
42
+ import "../chunk-GUGKKGG7.js";
43
43
  import "../chunk-QGITU23N.js";
44
- import "../chunk-WTB4GKMH.js";
44
+ import "../chunk-OTSTS7L2.js";
45
45
  import "../chunk-6HWVI6MI.js";
46
- import "../chunk-RTFMDIKV.js";
46
+ import "../chunk-SG2JQ2YP.js";
47
47
  import "../chunk-CKEQFGLT.js";
48
- import "../chunk-KXMJLOZF.js";
49
- import "../chunk-MRLH4MYU.js";
50
- import "../chunk-HSOBIN22.js";
48
+ import "../chunk-NBM7PNBP.js";
49
+ import "../chunk-BGLS5SDN.js";
50
+ import "../chunk-YF4G5NN5.js";
51
51
  import "../chunk-W7TY6HYX.js";
52
- import "../chunk-MKPDIAZH.js";
52
+ import "../chunk-WAA63ZJV.js";
53
53
  import "../chunk-2BEMIWEW.js";
54
54
  import "../chunk-IJYGIDF4.js";
55
- import "../chunk-MQ4PPCJB.js";
56
- import "../chunk-RNJFRXEN.js";
57
- import "../chunk-E65WJVI5.js";
58
- import "../chunk-L6WBJGQS.js";
55
+ import "../chunk-AON2QIJF.js";
56
+ import "../chunk-TLWFZ66Y.js";
57
+ import "../chunk-KSTQ4VXT.js";
58
+ import "../chunk-VPFRU5IG.js";
59
59
  import "../chunk-UYXV5NIS.js";
60
- import "../chunk-AACN5GNE.js";
61
- import "../chunk-3HTZDY3C.js";
62
- import "../chunk-CDFJF5YD.js";
63
- import "../chunk-RNXOWDM6.js";
64
- import "../chunk-ZCQBNPRH.js";
65
- import "../chunk-TMNUTMT5.js";
60
+ import "../chunk-NPNFGYLV.js";
61
+ import "../chunk-TJQSYX3J.js";
62
+ import "../chunk-7JX3RNG4.js";
63
+ import "../chunk-IDCTDKIA.js";
64
+ import "../chunk-IL6PIV33.js";
65
+ import "../chunk-H65TYP6V.js";
66
66
  import "../chunk-AWQWXSW4.js";
67
67
  import "../chunk-QYF5S6P6.js";
68
68
  import "../chunk-CZCAZVTD.js";
69
- import "../chunk-X5BJ3G2P.js";
69
+ import "../chunk-FOEPIX76.js";
70
70
  import "../chunk-NL5LSKVD.js";
71
71
  import {
72
72
  setProjectTrustState
73
- } from "../chunk-PIIUNJIT.js";
73
+ } from "../chunk-7WJ55KBN.js";
74
74
  import {
75
75
  logExtension
76
- } from "../chunk-W5E72HJA.js";
76
+ } from "../chunk-3FRI5H4T.js";
77
77
  import "../chunk-S26LC76R.js";
78
78
  import "../chunk-VCRVNLE7.js";
79
79
  import "../chunk-LJDODBBZ.js";
80
- import "../chunk-ZMMHHXSW.js";
80
+ import "../chunk-A5TEJZGJ.js";
81
81
  import "../chunk-CB7PEVOJ.js";
82
82
  import "../chunk-NXL4FFQQ.js";
83
83
 
@@ -53,24 +53,24 @@ import {
53
53
  verifyNpmPackageEntry,
54
54
  verifyToolBinary,
55
55
  wasLastResolveTransient
56
- } from "../chunk-MQ4PPCJB.js";
57
- import "../chunk-RNJFRXEN.js";
58
- import "../chunk-E65WJVI5.js";
59
- import "../chunk-L6WBJGQS.js";
56
+ } from "../chunk-AON2QIJF.js";
57
+ import "../chunk-TLWFZ66Y.js";
58
+ import "../chunk-KSTQ4VXT.js";
59
+ import "../chunk-VPFRU5IG.js";
60
60
  import "../chunk-UYXV5NIS.js";
61
- import "../chunk-AACN5GNE.js";
62
- import "../chunk-3HTZDY3C.js";
63
- import "../chunk-CDFJF5YD.js";
64
- import "../chunk-RNXOWDM6.js";
65
- import "../chunk-ZCQBNPRH.js";
66
- import "../chunk-TMNUTMT5.js";
61
+ import "../chunk-NPNFGYLV.js";
62
+ import "../chunk-TJQSYX3J.js";
63
+ import "../chunk-7JX3RNG4.js";
64
+ import "../chunk-IDCTDKIA.js";
65
+ import "../chunk-IL6PIV33.js";
66
+ import "../chunk-H65TYP6V.js";
67
67
  import "../chunk-AWQWXSW4.js";
68
68
  import "../chunk-QYF5S6P6.js";
69
69
  import "../chunk-CZCAZVTD.js";
70
- import "../chunk-X5BJ3G2P.js";
70
+ import "../chunk-FOEPIX76.js";
71
71
  import "../chunk-NL5LSKVD.js";
72
- import "../chunk-PIIUNJIT.js";
73
- import "../chunk-W5E72HJA.js";
72
+ import "../chunk-7WJ55KBN.js";
73
+ import "../chunk-3FRI5H4T.js";
74
74
  import "../chunk-S26LC76R.js";
75
75
  import "../chunk-VCRVNLE7.js";
76
76
  import "../chunk-LJDODBBZ.js";
@@ -173,7 +173,8 @@ Helpful mechanics you can rely on:
173
173
  function/method/class (or Markdown section), and coverage is recorded at
174
174
  symbol level. The result starts with a `[pi-lens: read widened ...]` note
175
175
  naming the requested and the returned lines; ask for `limit` above 100 for
176
- the exact range. It is off with the read guard (`--no-read-guard`).
176
+ the exact range. It is off with the read guard (`--no-read-guard`), or on its
177
+ own with `--no-read-expansion` / `readGuard.expandReads=false`.
177
178
  - `read_symbol` / `read_enclosing` reads count as edit coverage for that symbol range.
178
179
  - Markdown warns instead of blocking; `.txt`/`.log` are exempt.
179
180
  - Escape hatch (human): `/lens-allow-edit <path>` arms one exemption.
@@ -96,9 +96,20 @@ and `[]` mean no arguments.
96
96
  tier. `source=lsp` reads a file's on-disk content and will not sync it to a
97
97
  language server past **2 MiB or 5000 lines** (`clients/runtime-config.ts`
98
98
  `pipeline.lspMaxFileBytes`/`lspMaxFileLines`, checked in
99
- `clients/lsp/content-limits.ts`) — not env-tunable today. A file over that
99
+ `clients/lsp/content-limits.ts`) — not env-tunable. A file over that
100
100
  bound gets an explicit `file too large for LSP diagnostics (<N> bytes/lines
101
- > <limit>)` result instead of stale or partial diagnostics. This is a
101
+ > <limit>)` result instead of stale or partial diagnostics. One
102
+ exception for the line limit: the explicit single-file query (`path`, not
103
+ `paths`) takes the user-level `lsp.queryMaxFileLines` config key (suggested
104
+ `20000`, maximum `40000`; see
105
+ [globalconfig](globalconfig.md#explicit-diagnostics-query-line-limit)); a
106
+ project config or a tool argument cannot raise it. On that same single-file
107
+ query an explicit `waitMs` sets the wait past the language server's usual
108
+ per-server wait, up to 30000 ms, and a shorter one never shortens it, so a
109
+ large file's server can finish; batch and directory queries keep their
110
+ per-server budgets, except that a batch's 20 s pre-sweep warm-up still opens
111
+ a file past the bound (a named residual, #5306). A timed-out wait
112
+ reports `check timed out`, never a clean file. This is a
102
113
  *different* 2 MiB from the auto-fix full-content attachment cap described in
103
114
  [agent-guide.md](agent-guide.md), section 6 ("Auto-format / auto-fix
104
115
  timing") — the two caps currently share one constant
@@ -334,14 +334,19 @@ notice.
334
334
 
335
335
  ### `rules.<id>` — read from each file's own config
336
336
 
337
- `rules.<id>.disable`, `select`, and `ignorePaths` are resolved for each file
338
- from the nearest directory at or above it that holds a `.pi-lens.json`, up to
339
- the workspace root. That resolution layers the global file, the workspace
337
+ `rules.<id>.threshold`, `disable`, `select`, and `ignorePaths` are resolved for
338
+ each file from the nearest directory at or above it that holds a `.pi-lens.json`,
339
+ up to the workspace root. That resolution layers the global file, the workspace
340
340
  root's file, and every nested file between, by the field-wise order above. So a
341
341
  nested `.pi-lens.json` governs the files under it and no others, and the
342
342
  workspace root's policy still reaches them. Every surface that filters by rule
343
343
  policy reads it this way: the per-edit dispatch, `lens_diagnostics`,
344
- `lsp_diagnostics`, and the turn-end advisories.
344
+ `lsp_diagnostics`, and the turn-end advisories. A threshold is a value, not a
345
+ denial: for a rule the nearest file that sets a number supplies it, and a file
346
+ that sets none inherits the farther file's. A value that is not a finite number,
347
+ such as a string, `null`, or `1e999`, is dropped when the file is read, so the
348
+ farther file's value still applies. A number of `0` or less is kept: the rule's
349
+ own default applies, and the farther file's value does not come back.
345
350
 
346
351
  `rules.<id>.disable` is a denial, like `lsp.disabledServers`: it resolves as the
347
352
  union of every tier's list. A project or nested file can add rules to what the
@@ -42,6 +42,15 @@ fixes its members says so instead of quoting a before and after.
42
42
 
43
43
  39. **Walk-up result used as eligibility:** return ownership and start-directory
44
44
  identity separately; enumerate root-position by ambient-input cells.
45
+ Consolidation verdict: folded onto `walkUpDirs` (`clients/path-utils.ts`);
46
+ the loops left are the seam's own climbs and the URI-key ancestor index in
47
+ `clients/lsp/edits.ts`, which stay distributed because a key is not a
48
+ directory and must not reach `realpathOrResolve`. Counted climbs that go up
49
+ a known number of levels instead of searching also stay:
50
+ `collectInstallDiagnostics` (pi-lens's own install root, at most 6 levels),
51
+ `resolvePython` (one level per leading dot of a relative import) and
52
+ `anchorPrefix` in `clients/dispatch/rule-policy.ts` (one level per path
53
+ segment).
45
54
 
46
55
  74. **Split host-path resolution:** a path is resolved by its provenance, at one
47
56
  seam per provenance. A path a host tool was given as an argument goes
@@ -338,7 +347,12 @@ file-scoped worklist and receives no project-wide scanner output.
338
347
  Enforced by `tests/support/spawn-cwd-scan.ts` and its runner sweep.
339
348
 
340
349
  42. **Language-specific rule:** use `LANGUAGES` and registry facts; add a
341
- non-TypeScript row whenever the rule is language-neutral.
350
+ non-TypeScript row whenever the rule is language-neutral. Enforced by
351
+ `tests/config/language-alias-constancy.test.ts`, which asks the live
352
+ registered rules, providers and policy lookups whether they answer alike
353
+ for every extension of one language. Consolidation verdict (#5297):
354
+ folded onto the registry facts `isTypeScriptFile` and `isJstsFactFile`;
355
+ the mixed-language tables stay distributed.
342
356
 
343
357
  48. **Fallback direction chosen without naming the user-facing obstruction:**
344
358
  "fail closed" is not a universal justification. For each fallback, catch,
@@ -208,6 +208,16 @@ that symbol's range passes the read-before-edit check (an outline from
208
208
  - **Looking for a textual pattern across files** → use `grep` (not `module_report`).
209
209
  - **Need exact LSP cross-file resolution** → use `lsp_navigation({operation: "definition"})`.
210
210
 
211
+ **Groovy** (`.groovy`, `.gvy`, `.gy`, `.gsh`, `Jenkinsfile`, `build.gradle`,
212
+ `settings.gradle`) is outlined through a vendored tree-sitter grammar that is
213
+ partial: about 70% of 1,353 real files parse with no ERROR node (`build.gradle`
214
+ 95%, Spock 64%, Grails 56%, Jenkins pipelines 73%, `Jenkinsfile`-named files
215
+ 50% of 4). Types nested in a class, command calls with named arguments (`mail to: x, subject: y`, `@Library('x') _`),
216
+ a field with modifiers and no type (`static x = {`) and the diamond `<>` do not
217
+ parse. On a partial parse `module_report` shows its syntax-error warning, and
218
+ the symbol list may be incomplete. The measured numbers and the full list of
219
+ limits are in [`language-coverage.md`](language-coverage.md#groovy-tree-sitter-grammar).
220
+
211
221
  **MCP mirror:** `pilens_module_report` and `pilens_read_symbol` in the
212
222
  pi-lens MCP server expose the same shape to Claude Code / any MCP client.
213
223
 
@@ -366,7 +376,7 @@ Late-joiners are a non-problem in-process — extensions activate at `session_st
366
376
 
367
377
  ### Opportunistic Read Expansion
368
378
 
369
- When the agent reads a small slice of a file (≤ 100 lines), pi-lens expands the read to the full enclosing symbol (function, method, or class) using the tree-sitter AST, or to the enclosing heading section of a Markdown file. The result starts with a `[pi-lens: read widened ...]` note naming the requested and the returned lines; a `limit` above 100 reads the exact range. Expansion is off with the read guard (`--no-read-guard` or `readGuard.enabled=false`). The agent receives the full symbol as context, and the read guard records symbol-level coverage so edits anywhere within that symbol pass without requiring the agent to have read every line individually. Expansion runs within a 200 ms budget and falls back silently on unsupported file types or parse failures.
379
+ When the agent reads a small slice of a file (≤ 100 lines), pi-lens expands the read to the full enclosing symbol (function, method, or class) using the tree-sitter AST, or to the enclosing heading section of a Markdown file. The result starts with a `[pi-lens: read widened ...]` note naming the requested and the returned lines; a `limit` above 100 reads the exact range. To keep exact read ranges with the guard active, use `--no-read-expansion` or global `readGuard.expandReads=false`. Expansion is also off with the read guard (`--no-read-guard` or `readGuard.enabled=false`). The agent receives the full symbol as context, and the read guard records symbol-level coverage so edits anywhere within that symbol pass without requiring the agent to have read every line individually. Expansion runs within a 200 ms budget and falls back silently on unsupported file types or parse failures.
370
380
 
371
381
  Supported: TypeScript, TSX, JavaScript, JSX, Python, Go, Rust, Ruby, Java, Kotlin, Dart, Elixir, C, C++, C#, PHP, Swift, Lua, OCaml, Zig, Bash.
372
382
 
@@ -23,6 +23,7 @@ Each runtime toggle is settable from the CLI *and* from `config.json`. The two a
23
23
  | `--no-typos` | `typos.enabled` | `true` |
24
24
  | `--lens-spotbugs` | `spotbugs.enabled` | `false` |
25
25
  | `--no-read-guard` | `readGuard.enabled` | `true` |
26
+ | `--no-read-expansion` | `readGuard.expandReads` | `true` |
26
27
  | `--no-autoformat` | `format.enabled` | `true` |
27
28
  | `--no-autofix` | `autofix.enabled` | `true` |
28
29
  | `--no-lens-context` | `contextInjection.enabled` | `true` |
@@ -152,6 +153,18 @@ While a 🔴 blocker the model was told about stays unresolved, the first reques
152
153
 
153
154
  `actionableWarnings.enabled` gates the turn_end report. `includeLspCodeActions` fetches LSP code actions for each warning (requires an active language server). `deltaOnly` (default `true`) limits the report to lines touched in the current turn. `autoFix.enabled` applies conservative LSP quickfixes at `agent_end`; `autoFix.maxFixes` caps the number applied per turn (default `5`, must be a non-negative whole number). `maxFixes: 0` keeps the report and applies nothing, which is a useful halfway step before enabling `autoFix` for real. Unlike the toggles in the table above there is no CLI counterpart, since it takes a number rather than being on or off.
154
155
 
156
+ ### Explicit diagnostics query line limit
157
+
158
+ `lsp.queryMaxFileLines` (default `5000`, a whole number from `5000` to `40000`) sets the line limit of the explicit single-file `lens_diagnostics source=lsp` query, and of nothing else. Per-edit sync, the dispatch LSP runner, and batch (`paths`) and directory queries keep the shared bound of 5000 lines and 2 MiB, which this key does not move (measured cost is the language server's: clangd needs ~2.3 s and ~+270 MB resident per 5000-line file, and an opened document stays resident). A batch's 20 s pre-sweep warm-up still opens a file past that bound, and the session-start, cascade, head-move and workspace-sweep writers never check it; the key changes neither, and both are named residuals (#5306). The 2 MiB byte bound is not configurable.
159
+
160
+ The key is read from the user-level config only. A project `.pi-lens.json` that sets it is ignored and reported once per session as global-only, and no tool argument can raise it, so a repository or an agent cannot lift your resource policy on that query. A value that is not a whole number in range is ignored with a warning, never clamped to a nearby value.
161
+
162
+ Suggested value `20000`, which covers files of about 10,000 lines with 2x headroom. Measured on one host with synthetic C++ (investigation #5306): clangd publishes after ~11 s and holds ~+0.95 GB at 20,000 lines; 40,000 lines is 28 to 50 s and ~+1.9 GB, which is why `40000` is the ceiling. Pair it with an explicit `waitMs` on the query: the wait is the larger of `waitMs` and the server's usual wait, up to a hard 30000 ms cap, so a shorter `waitMs` never shortens it (batch and directory queries keep their own per-server budgets). A file over the limit answers `file too large for LSP diagnostics`, and a wait that runs out answers `check timed out`; neither is a clean result.
163
+
164
+ ```json
165
+ { "lsp": { "queryMaxFileLines": 20000 } }
166
+ ```
167
+
155
168
  `turnEnd.madge.enabled` (default `false`) runs the per-turn-end madge circular-dependency check on import-changed files. It is off by default because that pass only writes debug output — user-facing madge diagnostics come from the session-start scan cache and the `lens_diagnostics` extractor — and its subprocess spawns dominated the turn-end latency tail (#766). Enable it with `--lens-turn-end-madge` or `turnEnd.madge.enabled: true` if you want the per-edit circular-dependency note.
156
169
 
157
170
  `fallow.enabled` (default `false`, or `--lens-fallow`) runs [fallow](https://github.com/fallow-rs/fallow)'s `fallow-lsp` beside the TypeScript server on JS/TS files (`.ts .tsx .js .jsx .mjs .cjs .mts .cts`; no other file ever attaches it). It reports unused files, exports and dependencies, duplication and cycles as advisory warnings and never blocks. It overlaps knip, jscpd and madge, which keep running either way. Only the exact value `true` turns it on: an absent, misspelled or non-boolean value leaves it off, and pi-lens installs and launches nothing. On first use pi-lens downloads the pinned fallow release into `~/.pi-lens/tools/fallow-lsp` (a `fallow-lsp` already on `PATH` wins); the install is refused on a checksum mismatch. The per-edit diagnostics path runs it; the aggregate all-server checks (`lens_diagnostics source=lsp`, workspace sweeps) do not start it.
@@ -4,7 +4,15 @@
4
4
 
5
5
  - `clients/language-registry.ts` is the identity source for language ids,
6
6
  extensions, filenames, file kinds, LSP ids, and grammars. Consumers project
7
- from it; they do not maintain parallel language tables.
7
+ from it; they do not maintain parallel language tables. Known unfolded
8
+ sibling: `getExtensionsForLanguage` in `clients/tree-sitter-client.ts`, the
9
+ structural-search walk's hand-kept extension map (14 rows, Groovy included
10
+ per #5235). It is not pinned to the registry: ten rows match
11
+ `extensionsForLanguage` and four do not (`cpp` lists 4 of the registry's 22
12
+ extensions, `python` omits `.pyi`, `ruby` omits `.rake`, `.gemspec` and
13
+ `.ru`, and `tsx` is a grammar name the registry does not know). Folding it
14
+ onto `extensionsForLanguage` changes output for those four, so it is its own
15
+ slice.
8
16
  - Agent-facing advisory text resolves names through `resolveLensToolName` with
9
17
  the delivery host: pi uses `piName`, and MCP uses `mcpName` from
10
18
  `TOOL_REGISTRY`. Known tools without a host mapping resolve to `undefined`,
@@ -83,6 +83,72 @@ Both are upstream grammar limitations (tracked among
83
83
  [eonpatapon/tree-sitter-cue](https://github.com/eonpatapon/tree-sitter-cue)'s
84
84
  open issues), not something a query change here can fix.
85
85
 
86
+ ### Groovy tree-sitter grammar
87
+
88
+ `.groovy`, `.gvy`, `.gy` and `.gsh` files, plus `Jenkinsfile`, `build.gradle`
89
+ and `settings.gradle`, parse under tree-sitter, so `module_report`,
90
+ `read_symbol`, symbol search, import extraction and the call-graph refs all
91
+ support Groovy (#5235). Symbol extraction lists classes, traits, interfaces,
92
+ enums, records, constructors, methods, and named closures held by a class
93
+ field or a top-level script variable; import extraction reads qualified
94
+ import names, and the call-graph refs cover calls, constructions and type
95
+ names.
96
+ The grammar is [dekobon/tree-sitter-groovy](https://github.com/dekobon/tree-sitter-groovy)
97
+ v0.3.0, built to wasm at its tagged commit with `tree-sitter-cli@0.25.10` and
98
+ committed to `vendor/grammars/` **as is, with no fork and no patch**. It is a
99
+ young grammar and it is partial. Measured on 2026-11-05 over 1,353 real files
100
+ from five public repositories (Spock, jenkinsci/pipeline-examples,
101
+ apache/groovy, Gradle, grails-core), **70% parse with no ERROR node** and 8.1%
102
+ of lines sit inside an error:
103
+
104
+ | Sample | Files parsed with no ERROR node |
105
+ | ------------------------------ | ------------------------------- |
106
+ | `build.gradle` (Gradle, 250) | 95% |
107
+ | Jenkins pipeline-examples (53) | 73% |
108
+ | `Jenkinsfile`-named files (4) | 50% |
109
+ | Spock (400) | 64% |
110
+ | Grails (250) | 56% |
111
+ | apache/groovy (400) | 69% |
112
+
113
+ The Spock and apache/groovy samples are weighted toward language-stress tests,
114
+ so they are harder than typical project code. "No ERROR node" is a parse
115
+ measure, not a claim that the outline is right. Known gaps, all in the
116
+ upstream grammar rather than in this repo's queries:
117
+
118
+ - **Types nested in a class body.** A `class`, `interface`, `enum` or `trait`
119
+ declared inside another class produces an ERROR node and often a stray `}`
120
+ after it.
121
+ - **Command calls with named arguments.** `mail to: x, subject: y`,
122
+ `slackSend channel: x, message: y` and `@Library('x') _` do not parse. These
123
+ are common in Jenkins pipelines and in Gradle dependency blocks.
124
+ - **A field with modifiers and no type or `def`.** `static x = {` and
125
+ `static final X = 1` do not parse.
126
+ - **The diamond.** `new HashMap<>()` leaves a MISSING type node.
127
+
128
+ Consequences:
129
+
130
+ - A file with an ERROR node still yields the declarations the parser recovered
131
+ around it, but may miss the ones it could not. `module_report` and the read
132
+ tools carry a syntax-error warning ("tree-sitter could not parse part of this
133
+ file; the symbol list may be incomplete"): `module_report` on every such
134
+ partial parse, `read_symbol` only when the name is not found. An absent
135
+ symbol is not proof of absence.
136
+ - Named closures (`def handler = { ... }`) are listed only when held by a class
137
+ field or a top-level script variable. A method-local closure is not listed.
138
+ - Calls that take a trailing closure (`list.each { ... }`, DSL blocks) parse as
139
+ sibling statements, not as invocations, so they add no call-graph edge. Only
140
+ `foo(1)`, `a.b(2)` and `new X()` do.
141
+ - A Spock feature method (`def "adds two numbers"() { ... }`) is listed under
142
+ its quoted name.
143
+ - `Jenkinsfile`, `build.gradle` and `settings.gradle` reach the grammar by file
144
+ kind, which covers `module_report` and the symbol index. Read expansion, the
145
+ project scanner and the directory-wide tree-sitter search key on the file
146
+ extension, so they see `.groovy`, `.gvy`, `.gy` and `.gsh` only; other
147
+ `.gradle` files are not claimed.
148
+ - Groovy has no tuned callback rules, so `module_report` reports its
149
+ callbacks as `generic`, and Groovy is not in the review graph's main kinds.
150
+ - Lint and format (npm-groovy-lint) are not part of this slice (#5235).
151
+
86
152
  ## Non-core grammars
87
153
 
88
154
  The `tree-sitter` runner and `symbol_search`/`module_report` structural
@@ -25,9 +25,10 @@ classify each server and pick a per-server strategy. (Background: #240; mechanis
25
25
  confirmed against Neovim's LSP client, which sidesteps this entirely by being async.)
26
26
 
27
27
  Generate/refresh this matrix with `node scripts/characterize-lsp.mjs [--install]`
28
- (the `mode` column) and `node scripts/probe-clean-signal.mjs [--install]` (the
29
- `clean-behavior` column — 4-way: 2 / 2* / 3 / unknown — and the `first-publish`
30
- column, #3310). Both **merge** in place: a server the
28
+ (the `mode` column) and `node scripts/probe-clean-signal.mjs [--install]
29
+ --write-matrix` (the `clean-behavior` column — 4-way: 2 / 2* / 3 / unknown — and
30
+ the `first-publish` column, #3310; without `--write-matrix` the probe leaves
31
+ this tracked file alone, #5348). Both **merge** in place: a server the
31
32
  running host couldn't spawn keeps its prior row, so an ubuntu-poor run can't
32
33
  regress a richer one (#390). The nightly **tool-smoke** workflow runs both (plus
33
34
  `server-capabilities.mjs`) and opens/updates a single auto-PR
@@ -42,8 +43,25 @@ gate — because the probe is a timing-based negative observation; a mismatch
42
43
  just tells a human the marker may need updating. `unknown` observations are
43
44
  never compared in either direction (a slow/absent server isn't evidence of
44
45
  anything). The native TS7 launch variant (`typescript7`/`typescript7-clean`,
45
- #524/#526) is deliberately excluded from comparison against classic's marker —
46
- they share a server id but not a verified clean-signal behavior.
46
+ #524/#526) is compared against an explicit `false` expectation, not classic's
47
+ marker (#558): they share a server id, and the marker is measured on classic
48
+ only. Those fixtures carry `expectLaunchVariant: "native-ts7"`, and the probe
49
+ measures a row only when that launch answered it. The probe never runs a
50
+ fixture's `setup` (`npm install typescript@7`), so before #5348 the registry
51
+ fell back to the classic launch and the nightly's `typescript7` rows
52
+ (`mode=push-only`, `silent`) were classic's data. A row from the wrong launch
53
+ now reads `unknown`. Native TS7 7.0.2 is a pull server (`diagnosticProvider`
54
+ advertised, `mode=pull`, `clean-behavior=n/a (pull)`), and so is `effect-tsgo`
55
+ 0.62.0; neither pushes diagnostics for an edited file, so `silentOnClean` does
56
+ not apply to them. The marker stays `false` (it lets the silent-confirm gate
57
+ read a lapsed wait as clean). The nightly never runs `setup`, so it never
58
+ launches native TS7: `typescript7`, `typescript7-clean` and `effect-tsgo` read
59
+ `unknown` there and nothing compares them. A push-only, silent TS7 build
60
+ could surface as `silent-not-marked` only from a run that does the fixture's
61
+ `setup` first (#5348). Auxiliary servers (ast-grep, opengrep, zizmor, typos,
62
+ fallow) are never compared: `silentOnClean` is read in primary-scoped gates,
63
+ and in the warm-up gate only for a server with `workspaceIndexing`, which no
64
+ auxiliary sets.
47
65
 
48
66
  The `typescript` row has three launch variants, chosen in
49
67
  `TypeScriptServer.spawn` (`clients/lsp/server.ts`). The project's own
@@ -176,7 +194,7 @@ unconfirmed until its first publish, instead of being lost for the session.
176
194
  Raising it would charge up to the larger budget on the first edit of every
177
195
  custom server that never publishes for a clean file.
178
196
 
179
- ## Matrix (dev box + CI nightly; mode last refreshed 2026-06-17 from run 27713958681, clean-behavior probed in run 35914033696 — #460)
197
+ ## Matrix (dev box + CI nightly; regenerated by the tool-smoke workflow — #460)
180
198
 
181
199
  `mode` from cached capabilities; `clean-behavior` from the phase-aware publish-trace
182
200
  probe. The probe attributes publishes to two phases — the **dirty touch** (proves the
@@ -279,13 +297,41 @@ carries the named admission until then.
279
297
  | ast-grep | ast-grep (aux) | push-only | publishes-versioned | direct | 2 | dev+ci | — | — | — |
280
298
  | cue | CUE Language Server (cue lsp serve) | push-only | publishes-versioned | direct | 2 | dev+ci | 0.17.1 | global-path | — |
281
299
 
282
- **Unknown — fixture exists, mode not yet captured.** The toolchain-gated family
283
- (no auto-install today; tracked in #241) — `go` (gopls), `java` (jdtls),
284
- `kotlin`, `swift` (sourcekit-lsp), `cpp` (clangd), `haskell`, `elixir`,
285
- `ocaml`, `nix` (nixd), `fsharp`. Their servers don't install in the nightly, so
286
- characterize reports `unknown` (a non-failure ⚠). Once #241 lands they'll fill in
287
- the same way clojure-lsp/gleam now do (both auto-install via the github strategy
288
- and were characterized `push-only` in the run above).
300
+ **Servers without a row.** A server gets a row the first night characterize-lsp
301
+ measures its mode (`pull` or `push-only`); a server it has never measured has
302
+ none. A new pull server joins this table. A new push server waits in the generated
303
+ table below until probe-clean-signal commits its `clean-behavior` over two agreeing
304
+ nights and that value agrees with the server's `silentOnClean` marker in
305
+ `clients/lsp/wait-policy/strategies.ts`; then it moves here, where the
306
+ clean-behavior census judges it. A row whose marker disagrees stays below until
307
+ someone decides the marker. Only the
308
+ fixture `probePopulation` (`scripts/lib/lsp-idle-eviction-probe.mjs`) picks for a
309
+ registry server can create a row; a variant fixture (a clean file, nested roots, a
310
+ baseline, a custom server) never does.
311
+
312
+ ## Measured, not yet characterized (nightly-generated)
313
+
314
+ Generated by the nightly; not part of the clean-behavior census. A push
315
+ server the curated matrix has no row for waits here until
316
+ probe-clean-signal commits its `clean-behavior` (two agreeing nights, as for
317
+ a curated cell) and it agrees with the server's `silentOnClean` marker; that
318
+ night it moves to the matrix above. `stale` is the
319
+ first night characterize-lsp did not measure the server, kept until it does.
320
+
321
+ | lang | mode | server | src | version | install | stale |
322
+ |---|---|---|---|---|---|---|
323
+ | powershell | push-only | PowerShell Editor Services (pwsh Start-EditorServices.ps1 -Stdio) | ci | — | archive-dist | — |
324
+ | go | push-only | gopls | ci | — | — | — |
325
+ | fsharp | push-only | fsautocomplete | ci | — | — | — |
326
+ | kotlin | push-only | kotlin-language-server | ci | — | global-path | — |
327
+ | cpp | push-only | clangd | ci | — | archive-dist | — |
328
+ | expert | push-only | Expert (alternate of ElixirLS) | ci | 17.0.1 | global-path | — |
329
+ | typst | push-only | tinymist | ci | 51.256320801 | global-path | — |
330
+ | fish | push-only | fish-lsp | ci | 1.1.5 | pi-lens-auto | — |
331
+ | cmake | push-only | cmake-language-server | ci | 0.1.11 | global-path | — |
332
+ | zizmor | push-only | zizmor (auxiliary) | ci | 1.32.0 | global-path | — |
333
+ | typos | push-only | typos (auxiliary) | ci | — | global-path | — |
334
+ | fallow | push-only | fallow-lsp (auxiliary) | ci | — | archive-dist | — |
289
335
 
290
336
  ## Key findings
291
337
  - **Mode ≠ tier, and the split needs BOTH axes.** Push-only further splits along
@@ -432,7 +478,7 @@ dispatched nightly replaces it on the first night that reaches the server.
432
478
  | python-jedi | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: silent (6000 ms). Gated. | `node scripts/probe-save-verdict.mjs` (fixture jedi) |
433
479
  | opengrep | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: 2 publish events. Auxiliary, not gated. | `node scripts/probe-save-verdict.mjs` (fixture opengrep) |
434
480
  | gleam | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: silent (6000 ms). Gated. | `node scripts/probe-save-verdict.mjs` (fixture gleam) |
435
- | go | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: silent (6000 ms). Gated. | `node scripts/probe-save-verdict.mjs` (fixture go) |
481
+ | go | `save` | no | Measured: answers without a save (2 publish events on didOpen); a later save alone: silent (6000 ms). Gated. | `node scripts/probe-save-verdict.mjs` (fixture go) |
436
482
  | zig | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: 1 publish event. Gated. | `node scripts/probe-save-verdict.mjs` (fixture zig) |
437
483
  | rust | `save` | inconclusive | Measured: inconclusive — pull mode: every arm is a textDocument/diagnostic request, so no arm has the save as its only new input (arms: no-save silent (6000 ms), save alone 1 diagnostic, saved write silent (6000 ms)). Exempt from the clean gate. | `node scripts/probe-save-verdict.mjs` (fixture rust) |
438
484
  | terraform | `save` | no | Measured: answers without a save (2 publish events on didOpen); a later save alone: 1 publish event. Gated. | `node scripts/probe-save-verdict.mjs` (fixture terraform) |
@@ -445,7 +491,7 @@ dispatched nightly replaces it on the first night that reaches the server.
445
491
  | csharp | `save+text` | no (pull) | Measured: pull mode — no save needed; a later save+request answered: 1 diagnostic. Gated. | `node scripts/probe-save-verdict.mjs` (fixture csharp) |
446
492
  | deno | `save` | no (pull) | Measured: pull mode — no save needed; a later save+request answered: 1 diagnostic. Gated. | `node scripts/probe-save-verdict.mjs` (fixture deno) |
447
493
  | svelte | `save` | no (pull) | Measured: pull mode — no save needed; a later save+request answered: 2 diagnostics. Gated. | `node scripts/probe-save-verdict.mjs` (fixture svelte) |
448
- | powershell | `save+text` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: silent (6000 ms). Exempt from the clean gate. | `node scripts/probe-save-verdict.mjs` (fixture powershell) |
494
+ | powershell | `save+text` | yes (saved write) | Measured: only a saved write published — silent on didOpen and on the save alone, then 1 publish event on a diagnostic-neutral edit plus a save. Exempt from the clean gate. | `node scripts/probe-save-verdict.mjs` (fixture powershell) |
449
495
  | cmake | `save` | inconclusive | Measured: inconclusive — no arm published, so this fixture does not distinguish a save-triggered server from one that never diagnoses it (arms: no-save silent (6000 ms), save alone silent (6000 ms), saved write silent (6000 ms)). Exempt from the clean gate. | `node scripts/probe-save-verdict.mjs` (fixture cmake) |
450
496
 
451
497
  Notes.
@@ -493,10 +539,10 @@ then opens/updates an auto-PR with the regenerated docs (#390) — so both the `
493
539
  and `clean-behavior` columns self-populate in CI without manual copy-paste. They fill
494
540
  for servers that either auto-install (npm/pip/github — including clojure-lsp and gleam,
495
541
  both github-strategy as of f263cf3) or whose toolchain the workflow provisions
496
- (Ruby/Dart/Zig + .NET→csharp). The remaining `unknown` rows are the toolchain-gated
497
- family (#241): until `runtimeInstall` + canonical-bin discovery land, their servers
498
- don't install in CI and stay ⚠. The **merge guard** means a CI run that can't reach a
499
- server never blanks its dev-measured row.
542
+ (Ruby/Dart/Zig + .NET→csharp). A server whose toolchain the runner lacks (the
543
+ toolchain-gated family, #241: `runtimeInstall` + canonical-bin discovery) is not
544
+ measured, so it has no row until a run reaches it. The **merge guard** means a CI run
545
+ that can't reach a server never blanks its dev-measured row.
500
546
 
501
547
  The `clean-behavior` split (4-way: 2 publishes-versioned / 2\* publishes-unversioned /
502
548
  3 silent / unknown) is now measured per-server by `probe-clean-signal.mjs`, no longer a
@@ -522,5 +568,5 @@ streaks behind the `stale` column (#4512) and consecutive-night
522
568
  `idle-eviction` counts (#3989). Regenerated every run; never a measurement.
523
569
 
524
570
  ```json
525
- {"idle-eviction":{"svelte":{"nights":[{"day":"2026-11-03","rssMb":233,"coldMs":2987},{"day":"2026-11-04","rssMb":233,"coldMs":2944}]}}}
571
+ {"clean-behavior":{"cpp":{"pendingBehavior":"publishes-versioned","pendingTier":"2","runs":1},"expert":{"pendingBehavior":"publishes-unversioned","pendingTier":"2*","runs":1},"fallow":{"pendingBehavior":"silent","pendingTier":"3","runs":1},"fish":{"pendingBehavior":"publishes-unversioned","pendingTier":"2*","runs":1},"go":{"pendingBehavior":"publishes-versioned","pendingTier":"2","runs":1},"kotlin":{"pendingBehavior":"publishes-unversioned","pendingTier":"2*","runs":1},"powershell":{"pendingBehavior":"publishes-unversioned","pendingTier":"2*","runs":1},"typos":{"pendingBehavior":"publishes-versioned","pendingTier":"2","runs":1},"typst":{"pendingBehavior":"publishes-unversioned","pendingTier":"2*","runs":1},"zizmor":{"pendingBehavior":"publishes-versioned","pendingTier":"2","runs":1}},"first-publish":{"cpp":{"pendingFirstPublish":"direct","runs":1},"expert":{"pendingFirstPublish":"direct","runs":1},"fallow":{"pendingFirstPublish":"direct","runs":1},"fish":{"pendingFirstPublish":"direct","runs":1},"go":{"pendingFirstPublish":"direct","runs":1},"kotlin":{"pendingFirstPublish":"direct","runs":1},"powershell":{"pendingFirstPublish":"direct","runs":1},"typos":{"pendingFirstPublish":"direct","runs":1},"typst":{"pendingFirstPublish":"direct","runs":1},"zizmor":{"pendingFirstPublish":"direct","runs":1}},"idle-eviction":{"csharp":{"nights":[{"day":"2026-11-06","rssMb":205,"coldMs":2657}]},"dart":{"nights":[{"day":"2026-11-06","rssMb":75,"coldMs":511}]},"expert":{"nights":[{"day":"2026-11-06","rssMb":348,"coldMs":2815}]},"go":{"nights":[{"day":"2026-11-06","rssMb":89,"coldMs":567}]},"kotlin":{"nights":[{"day":"2026-11-05","rssMb":283,"coldMs":2269},{"day":"2026-11-06","rssMb":264,"coldMs":2100}]},"powershell":{"nights":[{"day":"2026-11-06","rssMb":166,"coldMs":2749}]},"rust":{"nights":[{"day":"2026-11-05","rssMb":678,"coldMs":2486},{"day":"2026-11-06","rssMb":614,"coldMs":2471}]},"svelte":{"nights":[{"day":"2026-11-03","rssMb":233,"coldMs":2987},{"day":"2026-11-04","rssMb":233,"coldMs":2944}]}}}
526
572
  ```