@herbertgao/pi-extensions 2026.11.6 → 2026.11.8

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 (419) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +9 -9
  3. package/THIRD_PARTY_NOTICES.md +2 -2
  4. package/node_modules/@herbertgao/pi-impeccable/CHANGELOG.md +6 -0
  5. package/node_modules/@herbertgao/pi-impeccable/README.md +2 -2
  6. package/node_modules/@herbertgao/pi-impeccable/package.json +4 -4
  7. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/SKILL.md +1 -1
  8. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/VERSION +1 -1
  9. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/engine-checksums.txt +5 -5
  10. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/live-browser.js +71 -56
  11. package/node_modules/@herbertgao/pi-subagents/CHANGELOG.md +6 -0
  12. package/node_modules/@herbertgao/pi-subagents/README.md +2 -2
  13. package/node_modules/@herbertgao/pi-subagents/package.json +4 -4
  14. package/node_modules/@herbertgao/pi-subagents/src/ui/conversation-viewer.ts +10 -6
  15. package/node_modules/@herbertgao/pi-subagents/src/ui/viewer-keys.ts +47 -4
  16. package/node_modules/@narumitw/pi-btw/CHANGELOG.md +12 -0
  17. package/node_modules/@narumitw/pi-btw/dist/chunks/{main-tree-picker-WHRN26NJ.ts → main-tree-picker-3PXJARQW.ts} +59 -53
  18. package/node_modules/@narumitw/pi-btw/dist/chunks/main-tree-picker-3PXJARQW.ts.map +7 -0
  19. package/node_modules/@narumitw/pi-btw/dist/index.ts +1 -1
  20. package/node_modules/@narumitw/pi-btw/docs/main-tree-snapshots.md +39 -0
  21. package/node_modules/@narumitw/pi-btw/docs/workflows.md +1 -0
  22. package/node_modules/@narumitw/pi-btw/package.json +1 -1
  23. package/node_modules/@narumitw/pi-btw/src/main-tree-picker.ts +73 -63
  24. package/node_modules/@pi-plugins/fast-mode/dist/index.d.mts +1 -4
  25. package/node_modules/@pi-plugins/fast-mode/dist/index.d.mts.map +1 -1
  26. package/node_modules/@pi-plugins/fast-mode/dist/index.mjs +5620 -2946
  27. package/node_modules/@pi-plugins/fast-mode/dist/index.mjs.map +1 -1
  28. package/node_modules/@pi-plugins/fast-mode/package.json +11 -11
  29. package/node_modules/pi-commandcode-provider/CHANGELOG.md +5 -0
  30. package/node_modules/pi-commandcode-provider/README.md +1 -1
  31. package/node_modules/pi-commandcode-provider/package.json +1 -1
  32. package/node_modules/pi-commandcode-provider/src/commandcode-catalog.ts +5 -4
  33. package/node_modules/pi-commandcode-provider/src/pricing.ts +8 -2
  34. package/node_modules/pi-lens/CHANGELOG-USER.md +12 -12
  35. package/node_modules/pi-lens/CHANGELOG.md +212 -0
  36. package/node_modules/pi-lens/README.md +1 -0
  37. package/node_modules/pi-lens/dist/{chunk-W4CUK5G6.js → chunk-2HWVG3IM.js} +2 -2
  38. package/node_modules/pi-lens/dist/{chunk-B2YUE6YD.js → chunk-3EIZMRXI.js} +11 -11
  39. package/node_modules/pi-lens/dist/{chunk-Y3EHLUPL.js → chunk-3MHY4BQY.js} +4 -4
  40. package/node_modules/pi-lens/dist/{chunk-IDCTDKIA.js → chunk-3PMLYGJN.js} +6 -6
  41. package/node_modules/pi-lens/dist/{chunk-VPFRU5IG.js → chunk-3QMLB4TI.js} +3 -3
  42. package/node_modules/pi-lens/dist/{chunk-NL5LSKVD.js → chunk-3R3Z54J7.js} +10 -4
  43. package/node_modules/pi-lens/dist/chunk-3VWEZ6H2.js +72 -0
  44. package/node_modules/pi-lens/dist/{chunk-YT2VR4SL.js → chunk-5EEWCJG7.js} +7 -7
  45. package/node_modules/pi-lens/dist/{chunk-4NCDHTFI.js → chunk-5FDUKJZO.js} +10 -10
  46. package/node_modules/pi-lens/dist/{chunk-QUQY3IME.js → chunk-5KLRCUDT.js} +9 -8
  47. package/node_modules/pi-lens/dist/{chunk-FOEPIX76.js → chunk-6EIV3H7O.js} +158 -61
  48. package/node_modules/pi-lens/dist/{chunk-GMC4ZGYR.js → chunk-6EXGCXM5.js} +5 -5
  49. package/node_modules/pi-lens/dist/{chunk-CTB5BAJI.js → chunk-6GWCYEP7.js} +17 -16
  50. package/node_modules/pi-lens/dist/{chunk-NBM7PNBP.js → chunk-6JLNZ6DP.js} +37 -26
  51. package/node_modules/pi-lens/dist/{chunk-ACRJ2GZ5.js → chunk-7424ANRU.js} +2 -2
  52. package/node_modules/pi-lens/dist/{chunk-TJQSYX3J.js → chunk-75TVYCQW.js} +6 -6
  53. package/node_modules/pi-lens/dist/{chunk-J6BR5XN2.js → chunk-7BEADGAZ.js} +3 -3
  54. package/node_modules/pi-lens/dist/chunk-7KWI5UHL.js +28 -0
  55. package/node_modules/pi-lens/dist/{chunk-GUGKKGG7.js → chunk-7M64NTAK.js} +3 -3
  56. package/node_modules/pi-lens/dist/{chunk-SKVNHCT5.js → chunk-7T64QA5D.js} +48 -43
  57. package/node_modules/pi-lens/dist/{chunk-YQA34KAF.js → chunk-7ZVEFWOE.js} +11 -11
  58. package/node_modules/pi-lens/dist/{chunk-SJQUWQR6.js → chunk-AAIVSSUU.js} +2 -2
  59. package/node_modules/pi-lens/dist/{chunk-6I44EDNQ.js → chunk-AD7JDEI6.js} +17 -15
  60. package/node_modules/pi-lens/dist/{chunk-3FRI5H4T.js → chunk-AGEQRJ5A.js} +24 -10
  61. package/node_modules/pi-lens/dist/{chunk-NPNFGYLV.js → chunk-AVBEPUCD.js} +19 -2
  62. package/node_modules/pi-lens/dist/{chunk-OTSTS7L2.js → chunk-AYDE7RFV.js} +34 -3
  63. package/node_modules/pi-lens/dist/{chunk-UOO4D2TK.js → chunk-AZXTLZHE.js} +34 -35
  64. package/node_modules/pi-lens/dist/{chunk-AWQWXSW4.js → chunk-B4FAFEBP.js} +7 -2
  65. package/node_modules/pi-lens/dist/{chunk-S3WFVG5P.js → chunk-BEIPWPVR.js} +137 -126
  66. package/node_modules/pi-lens/dist/{chunk-CZAWWXP6.js → chunk-BMMRLJA4.js} +7 -5
  67. package/node_modules/pi-lens/dist/{chunk-QWTHFFU6.js → chunk-C6V2DSZZ.js} +12 -12
  68. package/node_modules/pi-lens/dist/chunk-CIA7X2PZ.js +26 -0
  69. package/node_modules/pi-lens/dist/{chunk-ZD4KVFXI.js → chunk-D2ZYRI7M.js} +172 -3
  70. package/node_modules/pi-lens/dist/{chunk-F6FT6BVQ.js → chunk-D6ANA6YU.js} +34 -35
  71. package/node_modules/pi-lens/dist/{chunk-HILZE4BQ.js → chunk-D7OEGXDX.js} +396 -306
  72. package/node_modules/pi-lens/dist/{chunk-FCQSZQAT.js → chunk-DFAY7JUN.js} +14 -5
  73. package/node_modules/pi-lens/dist/{chunk-DOUAWKLO.js → chunk-DIIDMDZU.js} +12 -12
  74. package/node_modules/pi-lens/dist/{chunk-6MDM5MQT.js → chunk-DZSQXG66.js} +394 -162
  75. package/node_modules/pi-lens/dist/{chunk-QGITU23N.js → chunk-E3PNZDPH.js} +1 -1
  76. package/node_modules/pi-lens/dist/{chunk-QSCZAP24.js → chunk-E5SSUV2A.js} +4 -4
  77. package/node_modules/pi-lens/dist/{chunk-H65TYP6V.js → chunk-ET3DSSFZ.js} +37 -21
  78. package/node_modules/pi-lens/dist/chunk-F7AMFFVK.js +22 -0
  79. package/node_modules/pi-lens/dist/{chunk-4ITEFRDH.js → chunk-FDLGJFAE.js} +37 -145
  80. package/node_modules/pi-lens/dist/{chunk-XAFZJEXY.js → chunk-FVQKX5KI.js} +23 -23
  81. package/node_modules/pi-lens/dist/{chunk-CYUJB552.js → chunk-G3LR6V6N.js} +18 -12
  82. package/node_modules/pi-lens/dist/{chunk-ZOPXB2KK.js → chunk-GHATCG2A.js} +111 -107
  83. package/node_modules/pi-lens/dist/{chunk-XVB3Q2PG.js → chunk-HGEE5LDW.js} +3 -2
  84. package/node_modules/pi-lens/dist/{chunk-UNBRHPHJ.js → chunk-HJWF7CGW.js} +17 -15
  85. package/node_modules/pi-lens/dist/chunk-HRQTYU2T.js +355 -0
  86. package/node_modules/pi-lens/dist/{chunk-QUPYLQA4.js → chunk-HSTN27NR.js} +14 -9
  87. package/node_modules/pi-lens/dist/{chunk-YF4G5NN5.js → chunk-HWMNTQBJ.js} +2 -2
  88. package/node_modules/pi-lens/dist/{chunk-K6WIBVMK.js → chunk-HYDJUVOE.js} +8 -9
  89. package/node_modules/pi-lens/dist/{chunk-OPFNQBS5.js → chunk-HYR25MV3.js} +21 -25
  90. package/node_modules/pi-lens/dist/{chunk-MAD4QJTP.js → chunk-IC4L65U7.js} +21 -17
  91. package/node_modules/pi-lens/dist/{chunk-I32RSMH6.js → chunk-ILC2B7IJ.js} +11 -10
  92. package/node_modules/pi-lens/dist/{chunk-BGLS5SDN.js → chunk-IT7MFVGP.js} +2 -2
  93. package/node_modules/pi-lens/dist/{chunk-KDCIG23C.js → chunk-IZ36G463.js} +13 -9
  94. package/node_modules/pi-lens/dist/{chunk-ALIZWXHZ.js → chunk-JKAVKTMY.js} +9 -9
  95. package/node_modules/pi-lens/dist/{chunk-3HM4BUHR.js → chunk-JLMS7EMD.js} +16 -15
  96. package/node_modules/pi-lens/dist/{chunk-HSYFLOZY.js → chunk-JRSS6KM4.js} +3 -3
  97. package/node_modules/pi-lens/dist/{chunk-VCRVNLE7.js → chunk-K2GV34T2.js} +9 -1
  98. package/node_modules/pi-lens/dist/{chunk-KJ3AHOCK.js → chunk-K2LD6YNH.js} +10 -10
  99. package/node_modules/pi-lens/dist/chunk-KUDUKKQE.js +89 -0
  100. package/node_modules/pi-lens/dist/{chunk-7JX3RNG4.js → chunk-KXDQD34C.js} +1 -1
  101. package/node_modules/pi-lens/dist/{chunk-VGTBLTPN.js → chunk-LD7SXICE.js} +18 -66
  102. package/node_modules/pi-lens/dist/{chunk-UY745U35.js → chunk-ME6MF2N2.js} +1 -1
  103. package/node_modules/pi-lens/dist/{chunk-QHOTTC4A.js → chunk-MOEWCPMC.js} +2 -2
  104. package/node_modules/pi-lens/dist/{chunk-JZQGRARR.js → chunk-MV6ST2KT.js} +15 -12
  105. package/node_modules/pi-lens/dist/{chunk-QL37SGTS.js → chunk-NCDH2JB7.js} +18 -18
  106. package/node_modules/pi-lens/dist/{chunk-AON2QIJF.js → chunk-NRVWLTOY.js} +20 -17
  107. package/node_modules/pi-lens/dist/chunk-NZINZCHB.js +108 -0
  108. package/node_modules/pi-lens/dist/{chunk-A5TEJZGJ.js → chunk-O6LCSHHI.js} +1 -1
  109. package/node_modules/pi-lens/dist/{chunk-PTSA6QKL.js → chunk-OEPWTSUG.js} +8 -8
  110. package/node_modules/pi-lens/dist/{chunk-QMV2APEH.js → chunk-OF2YGDUE.js} +36 -36
  111. package/node_modules/pi-lens/dist/{chunk-GTTMQ6XB.js → chunk-OHEUOWYT.js} +1 -1
  112. package/node_modules/pi-lens/dist/{chunk-GVWIU7M7.js → chunk-ORYQGVC3.js} +41 -4
  113. package/node_modules/pi-lens/dist/{chunk-KSTQ4VXT.js → chunk-OVPR3GQ6.js} +10 -13
  114. package/node_modules/pi-lens/dist/{chunk-MN635QYA.js → chunk-OYXD2MOM.js} +3 -3
  115. package/node_modules/pi-lens/dist/{chunk-TN5CWX5D.js → chunk-PCREZ4HJ.js} +34 -35
  116. package/node_modules/pi-lens/dist/{chunk-SG2JQ2YP.js → chunk-PK3GDU4M.js} +1 -1
  117. package/node_modules/pi-lens/dist/{chunk-NE4EFHJX.js → chunk-PPYUBO6Y.js} +2 -2
  118. package/node_modules/pi-lens/dist/{chunk-DVRJBQOJ.js → chunk-PTJXMYRY.js} +19 -20
  119. package/node_modules/pi-lens/dist/{chunk-TYHOEX4V.js → chunk-PXGVB2CY.js} +36 -39
  120. package/node_modules/pi-lens/dist/{chunk-LT62P654.js → chunk-QJ4T73J5.js} +1 -1
  121. package/node_modules/pi-lens/dist/{chunk-2LVJQU3I.js → chunk-QY6J2FTK.js} +33 -29
  122. package/node_modules/pi-lens/dist/{chunk-ZZDVGCGG.js → chunk-R67WQ5RY.js} +9 -9
  123. package/node_modules/pi-lens/dist/{chunk-Q2VCKC3X.js → chunk-S6ZQFPOX.js} +11 -8
  124. package/node_modules/pi-lens/dist/{chunk-KFRDFAOE.js → chunk-SF7KSXB5.js} +7 -7
  125. package/node_modules/pi-lens/dist/{chunk-CZCAZVTD.js → chunk-SRXYSLMW.js} +2 -2
  126. package/node_modules/pi-lens/dist/{chunk-WS3UFJOU.js → chunk-SUIZOCSY.js} +3 -2
  127. package/node_modules/pi-lens/dist/{chunk-NUSXS6YB.js → chunk-T5EGSBM2.js} +4 -4
  128. package/node_modules/pi-lens/dist/{chunk-V7F7JHS5.js → chunk-T6PPK3T6.js} +563 -554
  129. package/node_modules/pi-lens/dist/chunk-TM3A3K7T.js +28 -0
  130. package/node_modules/pi-lens/dist/{chunk-RQRKIRFY.js → chunk-TOOXNL6M.js} +8 -8
  131. package/node_modules/pi-lens/dist/chunk-TS5EIWEF.js +25 -0
  132. package/node_modules/pi-lens/dist/chunk-VD7MQFEV.js +56 -0
  133. package/node_modules/pi-lens/dist/{chunk-2ADRLTM2.js → chunk-VU2PRGRI.js} +6 -35
  134. package/node_modules/pi-lens/dist/chunk-W6VLB6LL.js +145 -0
  135. package/node_modules/pi-lens/dist/{chunk-CB7PEVOJ.js → chunk-WLD6BGON.js} +176 -60
  136. package/node_modules/pi-lens/dist/{chunk-C6AODRNU.js → chunk-WTSQKJAR.js} +11 -10
  137. package/node_modules/pi-lens/dist/{chunk-46TQJSUE.js → chunk-X33QECRJ.js} +2 -2
  138. package/node_modules/pi-lens/dist/{chunk-B6HXETWY.js → chunk-Y7XMKBFP.js} +28 -26
  139. package/node_modules/pi-lens/dist/{chunk-TLWFZ66Y.js → chunk-YLHJWAQS.js} +4 -4
  140. package/node_modules/pi-lens/dist/{chunk-BRESRQBE.js → chunk-YLW26OHX.js} +8 -8
  141. package/node_modules/pi-lens/dist/{chunk-IL6PIV33.js → chunk-YTXFNCVN.js} +2 -2
  142. package/node_modules/pi-lens/dist/chunk-YULIERZW.js +27 -0
  143. package/node_modules/pi-lens/dist/chunk-Z2W5YJBW.js +25 -0
  144. package/node_modules/pi-lens/dist/{chunk-XPGH5O74.js → chunk-Z6WTLVUL.js} +30 -39
  145. package/node_modules/pi-lens/dist/{chunk-W7TY6HYX.js → chunk-ZRQMENT4.js} +5 -27
  146. package/node_modules/pi-lens/dist/{chunk-E4VXKTBR.js → chunk-ZWZD4TJ5.js} +163 -173
  147. package/node_modules/pi-lens/dist/index.js +6405 -4497
  148. package/node_modules/pi-lens/dist/mcp/analyze-cli.js +17 -13
  149. package/node_modules/pi-lens/dist/mcp/cli.js +42 -43
  150. package/node_modules/pi-lens/dist/mcp/server.js +1520 -608
  151. package/node_modules/pi-lens/dist/mcp/worker.js +62 -61
  152. package/node_modules/pi-lens/dist/probes/installer.js +19 -18
  153. package/node_modules/pi-lens/docs/agent-guide.md +3 -1
  154. package/node_modules/pi-lens/docs/agent-tools.md +57 -13
  155. package/node_modules/pi-lens/docs/alignment-families.md +5 -1
  156. package/node_modules/pi-lens/docs/ci.md +120 -0
  157. package/node_modules/pi-lens/docs/configuration.md +24 -6
  158. package/node_modules/pi-lens/docs/custom-rules.md +1 -0
  159. package/node_modules/pi-lens/docs/defect-shapes.md +107 -71
  160. package/node_modules/pi-lens/docs/durable-store-audit-1202.md +1 -1
  161. package/node_modules/pi-lens/docs/engineering-principles.md +46 -12
  162. package/node_modules/pi-lens/docs/environment-variables.md +25 -2
  163. package/node_modules/pi-lens/docs/features.md +1 -1
  164. package/node_modules/pi-lens/docs/globalconfig.md +8 -1
  165. package/node_modules/pi-lens/docs/invariants/dispatch-runners.md +13 -0
  166. package/node_modules/pi-lens/docs/invariants/lsp-trust-exec.md +7 -0
  167. package/node_modules/pi-lens/docs/language-coverage.md +1 -1
  168. package/node_modules/pi-lens/docs/lsp-capability-matrix.md +15 -16
  169. package/node_modules/pi-lens/docs/lsp-idle-eviction.md +1 -1
  170. package/node_modules/pi-lens/docs/mcp.md +2 -1
  171. package/node_modules/pi-lens/docs/module-report-read-symbol.md +2 -2
  172. package/node_modules/pi-lens/docs/pi-lens-fixer.md +3 -2
  173. package/node_modules/pi-lens/docs/pi-lens-merge-policy.md +1 -0
  174. package/node_modules/pi-lens/docs/pi-lens-monitor.md +4 -1
  175. package/node_modules/pi-lens/docs/pi-lens-release.md +19 -0
  176. package/node_modules/pi-lens/docs/pi-lens-reviewer.md +8 -2
  177. package/node_modules/pi-lens/docs/public-api-stability.md +41 -6
  178. package/node_modules/pi-lens/docs/rfcs/5138-query-surface.md +121 -0
  179. package/node_modules/pi-lens/docs/servercapabilities.md +1 -1
  180. package/node_modules/pi-lens/docs/settings.md +9 -0
  181. package/node_modules/pi-lens/docs/usage.md +1 -1
  182. package/node_modules/pi-lens/docs/word-index.md +9 -10
  183. package/node_modules/pi-lens/package.json +3 -3
  184. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/README.md +2 -0
  185. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/dont-call-system-c.yml +2 -1
  186. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/file-access-before-action-c.yml +2 -1
  187. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/file-stat-before-action-c.yml +2 -1
  188. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/insecure-hash-c.yml +2 -1
  189. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/libxml2-audit-parser-c.yml +2 -1
  190. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/null-library-function-c.yml +2 -1
  191. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/sizeof-this-c.yml +2 -1
  192. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/small-key-size-c.yml +2 -1
  193. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/c/security/world-writable-file-c.yml +2 -1
  194. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/dont-call-system-cpp.yml +2 -1
  195. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/file-access-before-action-cpp.yml +2 -1
  196. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/file-stat-before-action-cpp.yml +2 -1
  197. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/fix-format-security-error-cpp.yml +2 -1
  198. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/insecure-hash-cpp.yml +2 -1
  199. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/libxml2-audit-parser-cpp.yml +2 -1
  200. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/missing-nul-cpp-string-memcpy-cpp.yml +2 -1
  201. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/null-library-function-cpp.yml +2 -1
  202. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/return-c-str-cpp.yml +2 -1
  203. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/sizeof-this-cpp.yml +2 -1
  204. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/small-key-size-cpp.yml +2 -1
  205. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/std-return-data-cpp.yml +2 -1
  206. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/std-vector-invalidation-cpp.yml +2 -1
  207. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/string-view-temporary-string-cpp.yml +2 -1
  208. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/world-writable-file-cpp.yml +2 -1
  209. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/httponly-false-csharp.yml +2 -1
  210. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/insecure-binaryformatter-deserialization-csharp.yml +2 -1
  211. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/jwt-decode-without-verify-csharp.yml +2 -1
  212. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/jwt-hardcoded-secret-csharp.yml +2 -1
  213. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/jwt-tokenvalidationparameters-no-expiry-validation-csharp.yml +2 -1
  214. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/networkcredential-hardcoded-secret-python.yml +2 -1
  215. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/npgsqlconnectionstringbuilder-hardcoded-secret-csharp.yml +2 -1
  216. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/oracleconnectionstringbuilder-hardcoded-secret-csharp.yml +2 -1
  217. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/sqlconnectionstringbuilder-hardcoded-secret-csharp.yml +2 -1
  218. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/stacktrace-disclosure-csharp.yml +2 -1
  219. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/use-ecb-mode-csharp.yml +2 -1
  220. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/avoid-bind-to-all-interfaces-go.yml +2 -1
  221. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/gorilla-cookie-store-hardcoded-session-key-go.yml +2 -1
  222. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/gorilla-csrf-hardcoded-auth-key-go.yml +2 -1
  223. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/grpc-client-insecure-connection-go.yml +2 -1
  224. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/jwt-go-none-algorithm-go.yml +2 -1
  225. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/missing-ssl-minversion-go.yml +2 -1
  226. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/openai-empty-secret-go.yml +2 -1
  227. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/openai-hardcoded-secret-go.yml +2 -1
  228. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/ssl-v3-is-insecure-go.yml +2 -1
  229. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/tls-with-insecure-cipher-go.yml +2 -1
  230. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/go/security/use-of-weak-rsa-key-go.yml +2 -1
  231. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/html/security/plaintext-http-link-html.yml +2 -1
  232. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cbc-padding-oracle-java.yml +2 -1
  233. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-httponly-false-java.yml +2 -1
  234. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-missing-httponly-java.yml +2 -1
  235. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-missing-samesite-java.yml +2 -1
  236. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-missing-secure-flag-java.yml +2 -1
  237. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-secure-flag-false-java.yml +2 -1
  238. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/datanucleus-hardcoded-connection-password-java.yml +2 -1
  239. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/des-is-deprecated-java.yml +2 -1
  240. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/desede-is-deprecated-java.yml +2 -1
  241. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/documentbuilderfactory-disallow-doctype-decl-false-java.yml +2 -1
  242. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/documentbuilderfactory-external-general-entities-true-java.yml +2 -1
  243. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/documentbuilderfactory-external-parameter-entities-true-java.yml +2 -1
  244. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/drivermanager-hardcoded-secret-java.yml +2 -1
  245. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/ecb-cipher-java.yml +2 -1
  246. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/hardcoded-connection-password-java.yml +2 -1
  247. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/hardcoded-secret-in-credentials-java.yml +2 -1
  248. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/java-jwt-hardcoded-secret-java.yml +2 -1
  249. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/jedis-jedisclientconfig-hardcoded-password-java.yml +2 -1
  250. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/jedis-jedisfactory-hardcoded-password-java.yml +2 -1
  251. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/missing-httponly-java.yml +2 -1
  252. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/missing-secure-java.yml +2 -1
  253. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/no-null-cipher-java.yml +2 -1
  254. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/passwordauthentication-hardcoded-password-java.yml +2 -1
  255. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/rsa-no-padding-java.yml +2 -1
  256. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/simple-command-injection-direct-input-java.yml +2 -1
  257. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/system-setproperty-hardcoded-secret-java.yml +2 -1
  258. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/unencrypted-socket-java.yml +2 -1
  259. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-aes-ecb-java.yml +2 -1
  260. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-blowfish-java.yml +2 -1
  261. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-default-aes-java.yml +2 -1
  262. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-md5-digest-utils-java.yml +2 -1
  263. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-md5-java.yml +2 -1
  264. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-rc2-java.yml +2 -1
  265. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-rc4-java.yml +2 -1
  266. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-sha1-java.yml +2 -1
  267. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/java/security/weak-ssl-context-java.yml +2 -1
  268. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/detect-angular-sce-disabled-javascript.yml +2 -1
  269. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/express-jwt-hardcoded-secret-javascript.yml +2 -1
  270. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/express-session-hardcoded-secret-javascript.yml +2 -1
  271. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/jwt-simple-noverify-javascript.yml +2 -1
  272. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/node-rsa-weak-key-javascript.yml +2 -1
  273. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/node-sequelize-empty-password-argument-javascript.yml +2 -1
  274. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/node-sequelize-hardcoded-secret-argument-javascript.yml +2 -1
  275. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/kotlin/security/des-is-deprecated-kotlin.yml +2 -1
  276. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/kotlin/security/desede-is-deprecated-kotlin.yml +2 -1
  277. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/kotlin/security/jwt-hardcode-kotlin.yml +2 -1
  278. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/kotlin/security/rsa-no-padding-kotlin.yml +2 -1
  279. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/kotlin/security/system-setproperty-hardcoded-secret-kotlin.yml +2 -1
  280. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/php/security/openssl-cbc-static-iv-php.yml +2 -1
  281. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/php/security/search-active-debug-php.yml +2 -1
  282. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/avoid-mktemp-python.yml +2 -1
  283. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/avoid_app_run_with_bad_host-python.yml +2 -1
  284. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/debug-enabled-python.yml +2 -1
  285. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/hashids-with-django-secret-python.yml +2 -1
  286. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/hashids-with-flask-secret-python.yml +2 -1
  287. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/insecure-cipher-algorithm-rc4-python.yml +2 -1
  288. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/jwt-python-hardcoded-secret-python.yml +2 -1
  289. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/openai-hardcoded-secret-python.yml +2 -1
  290. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-cassandra-empty-password-python.yml +2 -1
  291. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-cassandra-hardcoded-secret-python.yml +2 -1
  292. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-couchbase-empty-password-python.yml +2 -1
  293. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-couchbase-hardcoded-secret-python.yml +2 -1
  294. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-elasticsearch-hardcoded-bearer-auth-python.yml +2 -1
  295. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-ldap3-empty-password-python.yml +2 -1
  296. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-ldap3-hardcoded-secret-python.yml +2 -1
  297. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mariadb-empty-password-python.yml +2 -1
  298. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mariadb-hardcoded-secret-python.yml +2 -1
  299. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysql-empty-password-python.yml +2 -1
  300. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysql-hardcoded-secret-python.yml +2 -1
  301. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysqlclient-empty-password-python.yml +2 -1
  302. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysqlclient-hardcoded-secret-python.yml +2 -1
  303. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-neo4j-empty-password-python.yml +2 -1
  304. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-neo4j-hardcoded-secret-python.yml +2 -1
  305. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-mysql-empty-password-python.yml +2 -1
  306. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-mysql-hardcoded-secret-python.yml +2 -1
  307. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-pg-empty-password-python.yml +2 -1
  308. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-pg-hardcoded-secret-python.yml +2 -1
  309. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pg8000-empty-password-python.yml +2 -1
  310. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pg8000-hardcoded-secret-python.yml +2 -1
  311. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-psycopg2-empty-password-python.yml +2 -1
  312. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-psycopg2-hardcoded-secret-python.yml +2 -1
  313. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pyjwt-hardcoded-secret-python.yml +2 -1
  314. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymongo-empty-password-python.yml +2 -1
  315. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymongo-hardcoded-secret-python.yml +2 -1
  316. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymssql-empty-password-python.yml +2 -1
  317. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymssql-hardcoded-secret-python.yml +2 -1
  318. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymysql-empty-password-python.yml +2 -1
  319. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymysql-hardcoded-secret-python.yml +2 -1
  320. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-redis-empty-password-python.yml +2 -1
  321. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-redis-hardcoded-secret-python.yml +2 -1
  322. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-requests-empty-password-python.yml +2 -1
  323. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-requests-hardcoded-secret-python.yml +2 -1
  324. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-requests-oauth-hardcoded-secret-python.yml +2 -1
  325. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-tormysql-empty-password-python.yml +2 -1
  326. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-tormysql-hardcoded-secret-python.yml +2 -1
  327. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-urllib3-hardcoded-secret-python.yml +2 -1
  328. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-webrepl-empty-password-python.yml +2 -1
  329. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-webrepl-hardcoded-secret-python.yml +2 -1
  330. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/force-ssl-false-ruby.yml +2 -1
  331. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/hardcoded-http-auth-in-controller-ruby.yml +2 -1
  332. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/hardcoded-secret-rsa-passphrase-ruby.yml +2 -1
  333. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/insufficient-rsa-key-size-ruby.yml +2 -1
  334. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-aws-sdk-hardcoded-secret-ruby.yml +2 -1
  335. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-cassandra-empty-password-ruby.yml +2 -1
  336. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-cassandra-hardcoded-secret-ruby.yml +2 -1
  337. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-excon-hardcoded-secret-ruby.yml +2 -1
  338. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-faraday-hardcoded-secret-ruby.yml +2 -1
  339. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mongo-empty-password-ruby.yml +2 -1
  340. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mongo-hardcoded-secret-ruby.yml +2 -1
  341. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mysql2-empty-password-ruby.yml +2 -1
  342. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mysql2-hardcoded-secret-ruby.yml +2 -1
  343. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-octokit-hardcoded-secret-ruby.yml +2 -1
  344. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-pg-empty-password-ruby.yml +2 -1
  345. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-pg-hardcoded-secret-ruby.yml +2 -1
  346. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-redis-empty-password-ruby.yml +2 -1
  347. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-redis-hardcoded-secret-ruby.yml +2 -1
  348. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/empty-password-rust.yml +2 -1
  349. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/hardcoded-password-rust.yml +2 -1
  350. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/postgres-empty-password-rust.yml +2 -1
  351. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/reqwest-accept-invalid-rust.yml +2 -1
  352. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/secrets-reqwest-hardcoded-auth-rust.yml +2 -1
  353. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/ssl-verify-none-rust.yml +2 -1
  354. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/tokio-postgres-empty-password-rust.yml +2 -1
  355. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/tokio-postgres-hardcoded-password-rust.yml +2 -1
  356. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/scala/security/jwt-scala-hardcode-scala.yml +2 -1
  357. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/scala/security/scala-jwt-hardcoded-secret-scala.yml +2 -1
  358. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/swift/security/aes-hardcoded-secret-swift.yml +2 -1
  359. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/swift/security/blowfish-hardcoded-secret-swift.yml +2 -1
  360. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/swift/security/chacha20-hardcoded-secret-swift.yml +2 -1
  361. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/swift/security/insecure-biometrics-swift.yml +2 -1
  362. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/swift/security/rabbit-hardcoded-secret-swift.yml +2 -1
  363. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/detect-angular-sce-disabled-typescript.yml +2 -1
  364. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/express-session-hardcoded-secret-typescript.yml +2 -1
  365. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/jwt-simple-noverify-typescript.yml +2 -1
  366. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/node-rsa-weak-key-typescript.yml +2 -1
  367. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/node-sequelize-empty-password-argument-typescript.yml +2 -1
  368. package/node_modules/pi-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/node-sequelize-hardcoded-secret-argument-typescript.yml +2 -1
  369. package/node_modules/pi-lens/rules/ast-grep-rules/rule-schema.json +1 -1
  370. package/node_modules/pi-lens/rules/ast-grep-rules/rules/c-no-malloc-free.yml +13 -12
  371. package/node_modules/pi-lens/rules/ast-grep-rules/rules/cpp-no-malloc-free.yml +11 -10
  372. package/node_modules/pi-lens/rules/ast-grep-rules/rules/cpp-no-printf.yml +10 -9
  373. package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-defer-func-call-antipattern.yml +14 -13
  374. package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-no-fmt-println.yml +14 -13
  375. package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-no-panic-in-lib.yml +20 -19
  376. package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-no-underscore-func-name.yml +14 -13
  377. package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-prefer-errors-is.yml +14 -13
  378. package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-prefer-string-builder.yml +19 -18
  379. package/node_modules/pi-lens/rules/ast-grep-rules/rules/go-test-functions.yml +14 -13
  380. package/node_modules/pi-lens/rules/ast-grep-rules/rules/hyphenated-svg-attribute.yml +10 -9
  381. package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-no-lateinit.yml +12 -11
  382. package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-no-nullable-boolean.yml +11 -10
  383. package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-no-println.yml +15 -14
  384. package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-no-unnecessary-let.yml +10 -9
  385. package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-no-unsafe-cast.yml +10 -9
  386. package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-no-var.yml +11 -10
  387. package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-prefer-data-class.yml +10 -9
  388. package/node_modules/pi-lens/rules/ast-grep-rules/rules/kotlin-prefer-is-empty.yml +10 -9
  389. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-aws-access-key-literal.yml +1 -1
  390. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-compile-call.yml +13 -12
  391. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-flask-secret-key-literal.yml +1 -1
  392. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-hardcoded-password.yml +1 -1
  393. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-marshal-load.yml +12 -11
  394. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-python-sql-string-concat.yml +12 -11
  395. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-requests-verify-false.yml +13 -12
  396. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-secret-in-env-var-name.yml +1 -1
  397. package/node_modules/pi-lens/rules/ast-grep-rules/rules/python-optional-type.yml +9 -8
  398. package/node_modules/pi-lens/rules/ast-grep-rules/rules/reducible-list-comprehension.yml +8 -7
  399. package/node_modules/pi-lens/rules/ast-grep-rules/rules/ruby-detect-path-traversal.yml +14 -13
  400. package/node_modules/pi-lens/rules/ast-grep-rules/rules/ruby-symbol-to-proc-candidate.yml +8 -7
  401. package/node_modules/pi-lens/rules/ast-grep-rules/rules/rust-no-chars-enumerate.yml +9 -8
  402. package/node_modules/pi-lens/rules/ast-grep-rules/rules-disabled/gorm-unbounded-preload.yml +7 -6
  403. package/node_modules/pi-lens/rules/ast-grep-rules/rules-disabled/shadow-err-variable.yml +6 -5
  404. package/node_modules/pi-lens/scripts/analyze-pi-lens-logs.mjs +262 -3
  405. package/node_modules/pi-lens/scripts/lib/latency-log-phases.mjs +125 -0
  406. package/package.json +8 -8
  407. package/node_modules/@narumitw/pi-btw/dist/chunks/main-tree-picker-WHRN26NJ.ts.map +0 -7
  408. package/node_modules/pi-lens/dist/chunk-3QWVOBZJ.js +0 -73
  409. package/node_modules/pi-lens/dist/chunk-7WJ55KBN.js +0 -162
  410. package/node_modules/pi-lens/dist/chunk-BDR5MEZY.js +0 -25
  411. package/node_modules/pi-lens/dist/chunk-CKEQFGLT.js +0 -32
  412. package/node_modules/pi-lens/dist/chunk-DBS736MA.js +0 -57
  413. package/node_modules/pi-lens/dist/chunk-I74RQGKA.js +0 -88
  414. package/node_modules/pi-lens/dist/chunk-IK4YS3KC.js +0 -25
  415. package/node_modules/pi-lens/dist/chunk-JKOZ2Z4U.js +0 -20
  416. package/node_modules/pi-lens/dist/chunk-TQHOKMVZ.js +0 -28
  417. package/node_modules/pi-lens/dist/chunk-VS2L7QDI.js +0 -25
  418. package/node_modules/pi-lens/dist/chunk-WAA63ZJV.js +0 -140
  419. package/node_modules/pi-lens/dist/chunk-ZPFLHB3R.js +0 -28
@@ -93,3 +93,128 @@ export function countEntriesSince(entries, sinceIso) {
93
93
  return Number.isFinite(ts) && ts >= sinceMs;
94
94
  }).length;
95
95
  }
96
+
97
+ /**
98
+ * The p-quantile of an ascending sample by the clamped floor-rank index
99
+ * `clamp(floor(p * n), 0, n - 1)`, so `p(0)` answers the first element, `p(1)`
100
+ * the last, and every reported number is an OBSERVED sample rather than an
101
+ * interpolation between two.
102
+ *
103
+ * The exact rule matters at small n, so it is named rather than labelled
104
+ * "nearest-rank": at even n the p50 is the UPPER of the two middle samples
105
+ * (`n = 2` → the 2nd, `n = 20` → the 11th, where nearest-rank answers the 10th),
106
+ * and for every `n <= 20` the p95 index `floor(0.95 * n)` is the last index, so
107
+ * a 20-row group reports p95 equal to max and shows no tail of its own.
108
+ *
109
+ * This is the ONE implementation for both consumers of a latency-log percentile:
110
+ * the published log analyzer (`scripts/analyze-pi-lens-logs.mjs`, #5263) and the
111
+ * hot-path gate's bootstrapped CI tails (`scripts/lib/latency-stats.mjs`, #4363).
112
+ * It lives here because this module is the only percentile home in `package.json`
113
+ * `files`: `latency-stats.mjs` is dev/CI-only, so having the analyzer import it
114
+ * shipped `scripts/analyze-pi-lens-logs.mjs -> './lib/latency-stats.mjs'` →
115
+ * `NOT FOUND` in the packed tree (the `Install test` leg runs
116
+ * `scripts/check-extensions.mjs` over the installed files). The two percentile
117
+ * siblings that stay separate are different methods on purpose:
118
+ * `clients/performance-report.ts` interpolates between samples for its
119
+ * in-session p50/p99 summary, and `scripts/bench-word-index-replacement.mjs`
120
+ * uses `floor((n - 1) * p)`; folding either would change shipped numbers.
121
+ *
122
+ * @param {readonly number[]} sorted ascending sample
123
+ * @param {number} p quantile in [0, 1]
124
+ */
125
+ export function lowerRankPercentile(sorted, p) {
126
+ const at = Math.min(
127
+ sorted.length - 1,
128
+ Math.max(0, Math.floor(p * sorted.length)),
129
+ );
130
+ return sorted[at];
131
+ }
132
+
133
+ // #5379 — span versus age. A latency row's `durationMs` is a SPAN: how long the
134
+ // work the row names took. Some producers instead had a value that is an AGE
135
+ // (time since an earlier event: a document's last sync, a hold's acquisition, a
136
+ // process's start) or a partial elapsed time of work that had not finished, and
137
+ // wrote it to `durationMs` as well; every reader that ranks phases by duration
138
+ // then ranked waiting time as work (`lsp_document_drift` was 81.8% of a live
139
+ // log's phase time). Producers now write such a value to `ageMs` and no
140
+ // `durationMs`. This is the ONE rule both `clients/performance-report.ts` and
141
+ // `scripts/analyze-pi-lens-logs.mjs` read: a row is a duration only if it
142
+ // carries `durationMs` and no `ageMs`. A reader never keeps a phase-name list of
143
+ // its own; a new producer of a non-span value writes `ageMs` and every reader
144
+ // follows.
145
+
146
+ /**
147
+ * COMPAT for log lines written before #5379, which hold an age in `durationMs`
148
+ * and carry no `ageMs`. This fixed list is consulted ONLY for a line without
149
+ * `ageMs`; a line from a build that has the field never reads it. The list is
150
+ * closed on purpose: it names the producers that existed when the field was
151
+ * introduced and is never extended. A new producer of an age writes `ageMs`.
152
+ * Each name was verified against its producer, and `durationMs` was an age (or
153
+ * a partial elapsed time) on every row of the phase, never only some:
154
+ * - lsp_document_drift: now minus the document's last sync (clients/lsp/index.ts)
155
+ * - lsp_workspace_sweep_hold_force_released: the hold's age at the cap reap
156
+ * - event_loop_hold_force_released: the oldest released hold's age
157
+ * - lsp_notify_resync_deferred: the age of ANOTHER writer's outstanding write
158
+ * - lsp_notify_stall_cpu_busy: a still-outstanding write's age at a stall sample
159
+ * - lsp_workspace_diagnostics_progress: cumulative elapsed at a 10 s heartbeat
160
+ * - lsp_empty_first_publish_held: time from didOpen to the server's first publish
161
+ * - format_late_resync_chained / inband_format_late_resync /
162
+ * deferred_format_late_resync: time since the format write row began
163
+ * - host_boot: ms since process start; extension_loaded: host_boot plus eval
164
+ */
165
+ export const LEGACY_AGE_PHASES = new Set([
166
+ "lsp_document_drift",
167
+ "lsp_workspace_sweep_hold_force_released",
168
+ "event_loop_hold_force_released",
169
+ "lsp_notify_resync_deferred",
170
+ "lsp_notify_stall_cpu_busy",
171
+ "lsp_workspace_diagnostics_progress",
172
+ "lsp_empty_first_publish_held",
173
+ "format_late_resync_chained",
174
+ "inband_format_late_resync",
175
+ "deferred_format_late_resync",
176
+ "host_boot",
177
+ "extension_loaded",
178
+ ]);
179
+
180
+ function finiteMs(value) {
181
+ return typeof value === "number" && Number.isFinite(value)
182
+ ? value
183
+ : undefined;
184
+ }
185
+
186
+ /** True when the row is an age row: it carries `ageMs`, or is a legacy age line. */
187
+ function isAgeRow(entry) {
188
+ if (entry.ageMs !== undefined && entry.ageMs !== null) return true;
189
+ return entry.type === "phase" && LEGACY_AGE_PHASES.has(entry.phase);
190
+ }
191
+
192
+ /**
193
+ * The age a row carries, or undefined when it is not an age row (or its age is
194
+ * not a finite number). Reads `ageMs`; only a line without the field falls back
195
+ * to `durationMs` of a `LEGACY_AGE_PHASES` name.
196
+ *
197
+ * @param {unknown} entry a parsed latency.log row
198
+ * @returns {number | undefined}
199
+ */
200
+ export function latencyAgeMs(entry) {
201
+ if (!entry || typeof entry !== "object") return undefined;
202
+ if (!isAgeRow(entry)) return undefined;
203
+ if (entry.ageMs !== undefined && entry.ageMs !== null) {
204
+ return finiteMs(entry.ageMs);
205
+ }
206
+ return finiteMs(entry.durationMs);
207
+ }
208
+
209
+ /**
210
+ * The span a row measures, or undefined when the row is an age row or carries
211
+ * no finite `durationMs`. This is the only function a ranking reads.
212
+ *
213
+ * @param {unknown} entry a parsed latency.log row
214
+ * @returns {number | undefined}
215
+ */
216
+ export function latencySpanMs(entry) {
217
+ if (!entry || typeof entry !== "object") return undefined;
218
+ if (isAgeRow(entry)) return undefined;
219
+ return finiteMs(entry.durationMs);
220
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@herbertgao/pi-extensions",
3
- "version": "2026.11.6",
3
+ "version": "2026.11.8",
4
4
  "description": "Aggregate installer for HerbertGao-maintained Pi extensions.",
5
5
  "keywords": [
6
6
  "extensions",
@@ -36,24 +36,24 @@
36
36
  "postpack": "node ../../scripts/aggregate-bundle.mjs restore"
37
37
  },
38
38
  "dependencies": {
39
- "@ast-grep/cli": "0.51.0",
39
+ "@ast-grep/cli": "0.51.1",
40
40
  "@ast-grep/napi": "^0.51.0",
41
41
  "@dietrichgebert/ponytail": "5.3.3",
42
42
  "@herbertgao/pi-agency": "0.1.3",
43
43
  "@herbertgao/pi-bark": "0.2.2",
44
44
  "@herbertgao/pi-cc-extensions": "1.0.16-local.1",
45
- "@herbertgao/pi-impeccable": "0.2.0",
46
- "@herbertgao/pi-subagents": "0.23.1-local.1",
45
+ "@herbertgao/pi-impeccable": "0.3.0",
46
+ "@herbertgao/pi-subagents": "0.23.2-local.1",
47
47
  "@herbertgao/sol-pi": "0.4.3",
48
48
  "@juicesharp/rpiv-ask-user-question": "2.15.0",
49
49
  "@juicesharp/rpiv-config": "^2.15.0",
50
50
  "@modelcontextprotocol/sdk": "^1.32.1",
51
51
  "@mozilla/readability": "^0.6.0",
52
52
  "@napi-rs/keyring": "^2.1.0",
53
- "@narumitw/pi-btw": "0.63.5",
53
+ "@narumitw/pi-btw": "0.63.7",
54
54
  "@narumitw/pi-caffeinate": "0.49.14",
55
55
  "@narumitw/pi-tui-kit": "^0.69.1",
56
- "@pi-plugins/fast-mode": "0.1.14",
56
+ "@pi-plugins/fast-mode": "0.1.15",
57
57
  "@shikijs/cli": "^4.0.2",
58
58
  "@tifan/pi-copy-response": "0.2.7",
59
59
  "@tifan/pi-handoff": "2.2.2",
@@ -73,8 +73,8 @@
73
73
  "nanoid": "^5.0.0",
74
74
  "p-limit": "^6.1.0",
75
75
  "pi-antigravity": "0.12.0",
76
- "pi-commandcode-provider": "0.8.0",
77
- "pi-lens": "4.4.10",
76
+ "pi-commandcode-provider": "0.8.1",
77
+ "pi-lens": "4.4.12",
78
78
  "pi-next-cue": "1.0.8",
79
79
  "pi-provider-qoder": "0.6.12",
80
80
  "pi-typesafe": "0.14.0",
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/main-tree-picker.ts"],
4
- "sourcesContent": ["import {\n copyToClipboard,\n type ExtensionAPI,\n type ExtensionCommandContext,\n type SessionEntry,\n type SessionTreeNode,\n TreeSelectorComponent,\n} from \"@earendil-works/pi-coding-agent\";\nimport { type Component, type Focusable, Key, matchesKey } from \"@earendil-works/pi-tui\";\nimport { showBtwCustomPreservingEditor } from \"./menu.js\";\nimport { sanitizeSingleLine } from \"./text.js\";\n\nexport type MainEntryPickResult = { kind: \"selected\"; entryId: string } | { kind: \"back\" } | { kind: \"closed\" };\n\nexport interface MainThreadTreeSelector extends Component, Focusable {\n onCopy?: (text: string | undefined) => void;\n setViewLabel?(entryId: string, label: string | undefined, labelTimestamp?: string): void;\n dispose?(): void;\n}\n\nexport interface MainThreadTreeSelectorOptions {\n tree: SessionTreeNode[];\n currentLeafId: string | null;\n terminalRows: number;\n onSelect: (entryId: string) => void;\n onCancel: () => void;\n onCopy: (entryId: string | undefined, displayText: string | undefined) => void;\n onLabelChange: (entryId: string, label: string | undefined) => void;\n}\n\nexport interface MainThreadTreePickerDependencies {\n createSelector?: (options: MainThreadTreeSelectorOptions) => MainThreadTreeSelector;\n copyToClipboard?: (text: string, signal: AbortSignal) => Promise<void>;\n}\n\nclass MainThreadTreePickerComponent implements Component, Focusable {\n constructor(\n private readonly selector: MainThreadTreeSelector,\n private readonly onClose: () => void,\n ) {}\n\n get focused(): boolean {\n return this.selector.focused;\n }\n\n set focused(value: boolean) {\n this.selector.focused = value;\n }\n\n get wantsKeyRelease(): boolean | undefined {\n return this.selector.wantsKeyRelease;\n }\n\n render(width: number): string[] {\n return this.selector.render(width);\n }\n\n handleInput(data: string): void {\n if (matchesKey(data, Key.ctrl(\"c\"))) {\n this.onClose();\n return;\n }\n this.selector.handleInput?.(data);\n }\n\n invalidate(): void {\n this.selector.invalidate();\n }\n\n dispose(): void {\n this.selector.dispose?.();\n this.onClose();\n }\n}\n\nexport async function pickMainEntry(\n pi: ExtensionAPI,\n ctx: ExtensionCommandContext,\n dependencies: MainThreadTreePickerDependencies = {},\n): Promise<MainEntryPickResult> {\n let rawTree: SessionTreeNode[];\n let currentLeafId: string | null;\n try {\n rawTree = ctx.sessionManager.getTree();\n currentLeafId = ctx.sessionManager.getLeafId();\n } catch {\n return { kind: \"closed\" };\n }\n\n if (rawTree.length === 0) {\n notifySafely(ctx, \"No main-thread entries are available\", \"warning\");\n return { kind: \"back\" };\n }\n\n const tree = sanitizeTreeForDisplay(rawTree);\n const rawCopyText = collectRawCopyText(rawTree);\n const savedLabels = collectSavedLabels(rawTree);\n const createSelector = dependencies.createSelector ?? createNativeTreeSelector;\n const copy = dependencies.copyToClipboard ?? copyText;\n const copyControllers = new Set<AbortController>();\n const copyTasks = new Set<Promise<void>>();\n const abortCopies = () => {\n for (const controller of copyControllers) {\n controller.abort(new Error(\"The main-thread tree picker closed\"));\n }\n };\n const result = await showBtwCustomPreservingEditor<MainEntryPickResult>(ctx, (tui, _theme, _keybindings, done) => {\n let settled = false;\n let selector: MainThreadTreeSelector | undefined;\n const finish = (value: MainEntryPickResult) => {\n if (settled) return;\n settled = true;\n abortCopies();\n done(value);\n };\n const onCopy = (entryId: string | undefined, displayText: string | undefined) => {\n if (settled) return;\n const text = entryId ? rawCopyText.get(entryId) : displayText;\n if (!text) {\n notifySafely(ctx, \"Selected entry has no text to copy\", \"warning\");\n return;\n }\n const controller = new AbortController();\n copyControllers.add(controller);\n let operation: Promise<void>;\n try {\n operation = copy(text, controller.signal);\n } catch (error: unknown) {\n operation = Promise.reject(error);\n }\n let task!: Promise<void>;\n task = operation\n .then(() => {\n if (!settled) notifySafely(ctx, \"Copied selected message\", \"info\");\n })\n .catch((error: unknown) => {\n if (!settled && !controller.signal.aborted) {\n notifySafely(ctx, `Could not copy selected message: ${formatError(error)}`, \"error\");\n }\n })\n .finally(() => {\n copyControllers.delete(controller);\n copyTasks.delete(task);\n });\n copyTasks.add(task);\n };\n const restoreLabel = (entryId: string) => {\n const previous = savedLabels.get(entryId);\n selector?.setViewLabel?.(entryId, previous?.label, previous?.labelTimestamp);\n tui.requestRender();\n };\n const onLabelChange = (entryId: string, label: string | undefined) => {\n if (settled) return;\n try {\n if (!ctx.sessionManager.getEntry(entryId)) {\n restoreLabel(entryId);\n notifySafely(ctx, \"The selected main-thread entry is no longer available\", \"warning\");\n return;\n }\n const persistedLabel = label === undefined ? undefined : sanitizeSingleLine(label);\n pi.setLabel(entryId, persistedLabel);\n savedLabels.set(entryId, { label: persistedLabel });\n selector?.setViewLabel?.(entryId, persistedLabel);\n tui.requestRender();\n } catch (error: unknown) {\n restoreLabel(entryId);\n notifySafely(ctx, `Could not update tree label: ${formatError(error)}`, \"error\");\n }\n };\n selector = createSelector({\n tree,\n currentLeafId,\n terminalRows: tui.terminal.rows,\n onSelect: (entryId) => finish({ kind: \"selected\", entryId }),\n onCancel: () => finish({ kind: \"back\" }),\n onCopy,\n onLabelChange,\n });\n return new MainThreadTreePickerComponent(selector, () => finish({ kind: \"closed\" }));\n });\n abortCopies();\n await Promise.allSettled([...copyTasks]);\n\n return result ?? { kind: \"closed\" };\n}\n\nfunction createNativeTreeSelector(options: MainThreadTreeSelectorOptions): MainThreadTreeSelector {\n const selector = new TreeSelectorComponent(\n options.tree,\n options.currentLeafId,\n options.terminalRows,\n options.onSelect,\n options.onCancel,\n options.onLabelChange,\n );\n selector.onCopy = (displayText) => options.onCopy(selector.getTreeList().getSelectedNode()?.entry.id, displayText);\n const result = selector as MainThreadTreeSelector;\n result.setViewLabel = (entryId, label, labelTimestamp) =>\n selector.getTreeList().updateNodeLabel(entryId, label, labelTimestamp);\n return result;\n}\n\nfunction sanitizeTreeForDisplay(tree: readonly SessionTreeNode[]): SessionTreeNode[] {\n return tree.map((node) => {\n const result: SessionTreeNode = {\n entry: sanitizeEntryForDisplay(node.entry),\n children: sanitizeTreeForDisplay(node.children),\n };\n if (node.label !== undefined) result.label = sanitizeSingleLine(node.label);\n if (node.labelTimestamp !== undefined) {\n result.labelTimestamp = sanitizeSingleLine(node.labelTimestamp);\n }\n return result;\n });\n}\n\nfunction sanitizeEntryForDisplay(entry: SessionEntry): SessionEntry {\n switch (entry.type) {\n case \"message\": {\n const message = { ...entry.message } as Record<string, unknown>;\n if (\"content\" in entry.message) message.content = sanitizeDisplayContent(entry.message.content);\n for (const key of [\"role\", \"errorMessage\", \"command\", \"toolName\"] as const) {\n const value = message[key];\n if (typeof value === \"string\") message[key] = sanitizeSingleLine(value);\n }\n return { ...entry, message } as unknown as SessionEntry;\n }\n case \"custom_message\":\n return {\n ...entry,\n customType: sanitizeSingleLine(entry.customType),\n content: sanitizeDisplayContent(entry.content) as typeof entry.content,\n };\n case \"compaction\":\n return { ...entry, summary: sanitizeSingleLine(entry.summary) };\n case \"branch_summary\":\n return { ...entry, summary: sanitizeSingleLine(entry.summary) };\n case \"model_change\":\n return {\n ...entry,\n provider: sanitizeSingleLine(entry.provider),\n modelId: sanitizeSingleLine(entry.modelId),\n };\n case \"thinking_level_change\":\n return { ...entry, thinkingLevel: sanitizeSingleLine(entry.thinkingLevel) };\n case \"custom\":\n return { ...entry, customType: sanitizeSingleLine(entry.customType) };\n case \"context_edit\":\n return { ...entry, targetId: sanitizeSingleLine(entry.targetId) };\n case \"label\":\n return {\n ...entry,\n label: entry.label === undefined ? undefined : sanitizeSingleLine(entry.label),\n };\n case \"session_info\":\n return {\n ...entry,\n name: entry.name === undefined ? undefined : sanitizeSingleLine(entry.name),\n };\n case \"usage\":\n return {\n ...entry,\n kind: sanitizeSingleLine(entry.kind),\n provider: sanitizeSingleLine(entry.provider),\n model: sanitizeSingleLine(entry.model),\n note: entry.note === undefined ? undefined : sanitizeSingleLine(entry.note),\n };\n }\n}\n\nfunction sanitizeDisplayContent(content: unknown): unknown {\n if (typeof content === \"string\") return sanitizeSingleLine(content);\n if (!Array.isArray(content)) return content;\n return content.map((block) => {\n if (block === null || typeof block !== \"object\" || !(\"type\" in block)) return block;\n if (block.type === \"text\" && \"text\" in block && typeof block.text === \"string\") {\n return { ...block, text: sanitizeSingleLine(block.text) };\n }\n if (block.type === \"toolCall\") {\n const copy = { ...block } as Record<string, unknown>;\n if (typeof copy.name === \"string\") copy.name = sanitizeSingleLine(copy.name);\n copy.arguments = sanitizeToolArguments(copy.arguments, new WeakMap());\n return copy;\n }\n return block;\n });\n}\n\nfunction sanitizeToolArguments(value: unknown, seen: WeakMap<object, unknown>): unknown {\n if (typeof value === \"string\") return sanitizeSingleLine(value);\n if (value === null || typeof value !== \"object\") return value;\n const existing = seen.get(value);\n if (existing !== undefined) return existing;\n if (Array.isArray(value)) {\n const result: unknown[] = [];\n seen.set(value, result);\n for (const item of value) result.push(sanitizeToolArguments(item, seen));\n return result;\n }\n const result: Record<string, unknown> = {};\n seen.set(value, result);\n for (const [key, item] of Object.entries(value)) {\n result[key] = sanitizeToolArguments(item, seen);\n }\n return result;\n}\n\nfunction collectRawCopyText(tree: readonly SessionTreeNode[]): Map<string, string> {\n const result = new Map<string, string>();\n const visit = (nodes: readonly SessionTreeNode[]) => {\n for (const node of nodes) {\n const text = getRawCopyText(node.entry);\n if (text !== undefined) result.set(node.entry.id, text);\n visit(node.children);\n }\n };\n visit(tree);\n return result;\n}\n\nfunction getRawCopyText(entry: SessionEntry): string | undefined {\n let text: string | undefined;\n if (entry.type === \"message\") {\n if (entry.message.role === \"bashExecution\") text = entry.message.command;\n else if (\"content\" in entry.message) {\n text = extractRawText(entry.message.content);\n if (!text && entry.message.role === \"assistant\") text = entry.message.errorMessage;\n }\n } else if (entry.type === \"custom_message\") text = extractRawText(entry.content);\n else if (entry.type === \"compaction\" || entry.type === \"branch_summary\") text = entry.summary;\n return text?.trim() ? text : undefined;\n}\n\nfunction extractRawText(content: unknown): string {\n if (typeof content === \"string\") return content;\n if (!Array.isArray(content)) return \"\";\n return content\n .filter(\n (block): block is { type: \"text\"; text: string } =>\n block !== null &&\n typeof block === \"object\" &&\n \"type\" in block &&\n block.type === \"text\" &&\n \"text\" in block &&\n typeof block.text === \"string\",\n )\n .map((block) => block.text)\n .join(\"\");\n}\n\ninterface SavedLabel {\n label: string | undefined;\n labelTimestamp?: string;\n}\n\nfunction collectSavedLabels(tree: readonly SessionTreeNode[]): Map<string, SavedLabel> {\n const result = new Map<string, SavedLabel>();\n const visit = (nodes: readonly SessionTreeNode[]) => {\n for (const node of nodes) {\n result.set(node.entry.id, {\n label: node.label === undefined ? undefined : sanitizeSingleLine(node.label),\n labelTimestamp: node.labelTimestamp === undefined ? undefined : sanitizeSingleLine(node.labelTimestamp),\n });\n visit(node.children);\n }\n };\n visit(tree);\n return result;\n}\n\nasync function copyText(text: string, signal: AbortSignal): Promise<void> {\n signal.throwIfAborted();\n await copyToClipboard(text);\n signal.throwIfAborted();\n}\n\nfunction notifySafely(\n ctx: ExtensionCommandContext,\n message: string,\n level: Parameters<ExtensionCommandContext[\"ui\"][\"notify\"]>[1],\n): void {\n try {\n ctx.ui.notify(sanitizeSingleLine(message), level);\n } catch {\n // The command context may have been replaced while the selector was open.\n }\n}\n\nfunction formatError(error: unknown): string {\n return error instanceof Error ? error.message : String(error);\n}\n"],
5
- "mappings": ";;;;;;;;;;;AAAA;AAAA,EACE;AAAA,EAKA;AAAA,OACK;AACP,SAAyC,KAAK,kBAAkB;AA2BhE,IAAM,gCAAN,MAAoE;AAAA,EAClE,YACmB,UACA,SACjB;AAFiB;AACA;AAAA,EAChB;AAAA,EAFgB;AAAA,EACA;AAAA,EAGnB,IAAI,UAAmB;AACrB,WAAO,KAAK,SAAS;AAAA,EACvB;AAAA,EAEA,IAAI,QAAQ,OAAgB;AAC1B,SAAK,SAAS,UAAU;AAAA,EAC1B;AAAA,EAEA,IAAI,kBAAuC;AACzC,WAAO,KAAK,SAAS;AAAA,EACvB;AAAA,EAEA,OAAO,OAAyB;AAC9B,WAAO,KAAK,SAAS,OAAO,KAAK;AAAA,EACnC;AAAA,EAEA,YAAY,MAAoB;AAC9B,QAAI,WAAW,MAAM,IAAI,KAAK,GAAG,CAAC,GAAG;AACnC,WAAK,QAAQ;AACb;AAAA,IACF;AACA,SAAK,SAAS,cAAc,IAAI;AAAA,EAClC;AAAA,EAEA,aAAmB;AACjB,SAAK,SAAS,WAAW;AAAA,EAC3B;AAAA,EAEA,UAAgB;AACd,SAAK,SAAS,UAAU;AACxB,SAAK,QAAQ;AAAA,EACf;AACF;AAEA,eAAsB,cACpB,IACA,KACA,eAAiD,CAAC,GACpB;AAC9B,MAAI;AACJ,MAAI;AACJ,MAAI;AACF,cAAU,IAAI,eAAe,QAAQ;AACrC,oBAAgB,IAAI,eAAe,UAAU;AAAA,EAC/C,QAAQ;AACN,WAAO,EAAE,MAAM,SAAS;AAAA,EAC1B;AAEA,MAAI,QAAQ,WAAW,GAAG;AACxB,iBAAa,KAAK,wCAAwC,SAAS;AACnE,WAAO,EAAE,MAAM,OAAO;AAAA,EACxB;AAEA,QAAM,OAAO,uBAAuB,OAAO;AAC3C,QAAM,cAAc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ACxB;AAEA,SAAS,aACP,KACA,SACA,OACM;AACN,MAAI;AACF,QAAI,GAAG,OAAO,mBAAmB,OAAO,GAAG,KAAK;AAAA,EAClD,QAAQ;AAAA,EAER;AACF;AAEA,SAAS,YAAY,OAAwB;AAC3C,SAAO,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;AAC9D;",
6
- "names": ["result"]
7
- }
@@ -1,73 +0,0 @@
1
- import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
- import {
3
- adaptLspService,
4
- getLSPService,
5
- groupFilesByPrimaryServer,
6
- hasAuxiliaryLspPublishedForRoot,
7
- notifyExternalFileChange,
8
- peekLSPService,
9
- resetLSPService,
10
- resyncGitChangedFiles,
11
- runPerServerGroups
12
- } from "./chunk-6MDM5MQT.js";
13
- import "./chunk-FCQSZQAT.js";
14
- import "./chunk-XIMYZ3JA.js";
15
- import "./chunk-XPGH5O74.js";
16
- import "./chunk-NE4EFHJX.js";
17
- import "./chunk-YT2VR4SL.js";
18
- import "./chunk-LT62P654.js";
19
- import "./chunk-BRESRQBE.js";
20
- import "./chunk-XVB3Q2PG.js";
21
- import "./chunk-QL37SGTS.js";
22
- import "./chunk-K6WIBVMK.js";
23
- import "./chunk-ACRJ2GZ5.js";
24
- import "./chunk-WS3UFJOU.js";
25
- import "./chunk-CTB5BAJI.js";
26
- import "./chunk-Z54ZSOBZ.js";
27
- import "./chunk-GUGKKGG7.js";
28
- import "./chunk-QGITU23N.js";
29
- import "./chunk-OTSTS7L2.js";
30
- import "./chunk-6HWVI6MI.js";
31
- import "./chunk-SG2JQ2YP.js";
32
- import "./chunk-CKEQFGLT.js";
33
- import "./chunk-NBM7PNBP.js";
34
- import "./chunk-BGLS5SDN.js";
35
- import "./chunk-YF4G5NN5.js";
36
- import "./chunk-W7TY6HYX.js";
37
- import "./chunk-WAA63ZJV.js";
38
- import "./chunk-2BEMIWEW.js";
39
- import "./chunk-IJYGIDF4.js";
40
- import "./chunk-AON2QIJF.js";
41
- import "./chunk-TLWFZ66Y.js";
42
- import "./chunk-KSTQ4VXT.js";
43
- import "./chunk-VPFRU5IG.js";
44
- import "./chunk-UYXV5NIS.js";
45
- import "./chunk-NPNFGYLV.js";
46
- import "./chunk-TJQSYX3J.js";
47
- import "./chunk-7JX3RNG4.js";
48
- import "./chunk-IDCTDKIA.js";
49
- import "./chunk-IL6PIV33.js";
50
- import "./chunk-H65TYP6V.js";
51
- import "./chunk-AWQWXSW4.js";
52
- import "./chunk-QYF5S6P6.js";
53
- import "./chunk-CZCAZVTD.js";
54
- import "./chunk-FOEPIX76.js";
55
- import "./chunk-NL5LSKVD.js";
56
- import "./chunk-7WJ55KBN.js";
57
- import "./chunk-3FRI5H4T.js";
58
- import "./chunk-S26LC76R.js";
59
- import "./chunk-VCRVNLE7.js";
60
- import "./chunk-LJDODBBZ.js";
61
- import "./chunk-CB7PEVOJ.js";
62
- import "./chunk-NXL4FFQQ.js";
63
- export {
64
- adaptLspService,
65
- getLSPService,
66
- groupFilesByPrimaryServer,
67
- hasAuxiliaryLspPublishedForRoot,
68
- notifyExternalFileChange,
69
- peekLSPService,
70
- resetLSPService,
71
- resyncGitChangedFiles,
72
- runPerServerGroups
73
- };
@@ -1,162 +0,0 @@
1
- import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
- import {
3
- logExtension,
4
- recordDegradation
5
- } from "./chunk-3FRI5H4T.js";
6
- import {
7
- stagePathFor
8
- } from "./chunk-LJDODBBZ.js";
9
-
10
- // dist/clients/project-trust.js
11
- var trustState = "unknown";
12
- var installRefusalWarnings = /* @__PURE__ */ new Set();
13
- var INSTALL_REFUSAL_WARNING_CAP = 200;
14
- var trustGeneration = 0;
15
- function getProjectTrustGeneration() {
16
- return trustGeneration;
17
- }
18
- function latchProjectTrustState(next) {
19
- if (next === trustState)
20
- return;
21
- trustState = next;
22
- installRefusalWarnings.clear();
23
- trustGeneration += 1;
24
- }
25
- function setProjectTrustState(next) {
26
- const previous = trustState;
27
- latchProjectTrustState(next);
28
- if (previous !== next) {
29
- logExtension({
30
- subsystem: "project-trust",
31
- level: "debug",
32
- message: `project trust state transitioned: ${previous} -> ${next}`,
33
- metadata: { previous, next }
34
- });
35
- }
36
- }
37
- function getProjectTrustState() {
38
- return trustState;
39
- }
40
- function isToolInstallAllowedByTrust() {
41
- return trustState !== "untrusted";
42
- }
43
- function assertInstallAllowed(context) {
44
- if (isToolInstallAllowedByTrust())
45
- return true;
46
- recordDegradation({
47
- kind: "trust-refusal",
48
- subject: context,
49
- reason: projectTrustDenialReason() ?? "project trust denied"
50
- });
51
- if (!installRefusalWarnings.has(context)) {
52
- if (installRefusalWarnings.size >= INSTALL_REFUSAL_WARNING_CAP) {
53
- installRefusalWarnings.clear();
54
- }
55
- installRefusalWarnings.add(context);
56
- logExtension({
57
- subsystem: "project-trust",
58
- level: "warn",
59
- message: `install/materialization blocked: ${context}`,
60
- metadata: { context, trustState }
61
- });
62
- }
63
- return false;
64
- }
65
- function isLspSpawnAllowedByTrust() {
66
- return trustState !== "untrusted";
67
- }
68
- function projectTrustDenialReason() {
69
- return trustState === "untrusted" ? "project is not trusted (host isProjectTrusted() === false)" : void 0;
70
- }
71
-
72
- // dist/clients/atomic-write.js
73
- import * as fs from "node:fs";
74
- function writeFileAtomic(targetPath, data, options) {
75
- const bestEffort = options?.bestEffort ?? true;
76
- const tmpPath = stagePathFor(targetPath);
77
- try {
78
- fs.writeFileSync(tmpPath, data, {
79
- encoding: typeof data === "string" ? "utf-8" : void 0,
80
- mode: options?.mode
81
- });
82
- fs.renameSync(tmpPath, targetPath);
83
- } catch (err) {
84
- try {
85
- fs.rmSync(tmpPath, { force: true });
86
- } catch {
87
- }
88
- if (!bestEffort)
89
- throw err;
90
- }
91
- }
92
- async function writeFileAtomicAsync(targetPath, data, options) {
93
- const bestEffort = options?.bestEffort ?? true;
94
- const tmpPath = stagePathFor(targetPath);
95
- try {
96
- await fs.promises.writeFile(tmpPath, data, {
97
- encoding: typeof data === "string" ? "utf-8" : void 0,
98
- mode: options?.mode
99
- });
100
- await fs.promises.rename(tmpPath, targetPath);
101
- } catch (err) {
102
- try {
103
- await fs.promises.rm(tmpPath, { force: true });
104
- } catch {
105
- }
106
- if (!bestEffort)
107
- throw err;
108
- }
109
- }
110
-
111
- // dist/clients/spawn-output-cap.js
112
- var DEFAULT_MAX_OUTPUT_BYTES = 32 * 1024 * 1024;
113
- function createBoundedOutputSink(maxBytes = DEFAULT_MAX_OUTPUT_BYTES) {
114
- let text = "";
115
- let retained = 0;
116
- let truncated = false;
117
- let observed = 0;
118
- return {
119
- append(chunk) {
120
- const part = typeof chunk === "string" ? chunk : chunk.toString();
121
- const bytes = Buffer.byteLength(part);
122
- observed += bytes;
123
- if (retained + bytes <= maxBytes) {
124
- retained += bytes;
125
- text += part;
126
- return;
127
- }
128
- truncated = true;
129
- },
130
- get text() {
131
- return text;
132
- },
133
- get truncated() {
134
- return truncated;
135
- },
136
- get observedBytes() {
137
- return observed;
138
- }
139
- };
140
- }
141
- function truncatedByOutputCap(result) {
142
- return result.outputTruncated === true && result.failure !== "timeout" && result.failure !== "aborted";
143
- }
144
- function killedForOutputCap(result) {
145
- return result.killedForOutputCap === true && result.failure !== "timeout" && result.failure !== "aborted";
146
- }
147
-
148
- export {
149
- getProjectTrustGeneration,
150
- setProjectTrustState,
151
- getProjectTrustState,
152
- isToolInstallAllowedByTrust,
153
- assertInstallAllowed,
154
- isLspSpawnAllowedByTrust,
155
- projectTrustDenialReason,
156
- writeFileAtomic,
157
- writeFileAtomicAsync,
158
- DEFAULT_MAX_OUTPUT_BYTES,
159
- createBoundedOutputSink,
160
- truncatedByOutputCap,
161
- killedForOutputCap
162
- };
@@ -1,25 +0,0 @@
1
- import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
- import {
3
- GovulncheckClient,
4
- parseGovulncheckJson
5
- } from "./chunk-PTSA6QKL.js";
6
- import "./chunk-VGTBLTPN.js";
7
- import "./chunk-4ITEFRDH.js";
8
- import "./chunk-LT62P654.js";
9
- import "./chunk-VPFRU5IG.js";
10
- import "./chunk-NPNFGYLV.js";
11
- import "./chunk-H65TYP6V.js";
12
- import "./chunk-AWQWXSW4.js";
13
- import "./chunk-FOEPIX76.js";
14
- import "./chunk-NL5LSKVD.js";
15
- import "./chunk-7WJ55KBN.js";
16
- import "./chunk-3FRI5H4T.js";
17
- import "./chunk-S26LC76R.js";
18
- import "./chunk-VCRVNLE7.js";
19
- import "./chunk-LJDODBBZ.js";
20
- import "./chunk-CB7PEVOJ.js";
21
- import "./chunk-NXL4FFQQ.js";
22
- export {
23
- GovulncheckClient,
24
- parseGovulncheckJson
25
- };
@@ -1,32 +0,0 @@
1
- import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
-
3
- // dist/clients/hook-budgets.js
4
- var HOOK_WALL_BUDGET_MS = Object.freeze({
5
- /** Visible startup work; the user is watching a progress line. */
6
- session_start: 5e3,
7
- /** Pure bookkeeping — nothing here may await (#2523 contract). */
8
- turn_start: 0,
9
- /** Measured p50 3687 ms / p90 14246 ms today. The gap IS the issue. */
10
- turn_end: 3e3,
11
- /** Measured p90 10043 ms today, from one unbounded pipeline re-entry. */
12
- agent_end: 1e3,
13
- /** The designated place for settled-time sweeps; the widest non-edit budget. */
14
- agent_settled: 1e4,
15
- /** Read/Grep/Glob/Bash: must never await analyzer bootstrap (AC5). */
16
- tool_result_read_only: 500,
17
- /** The ONLY path the contract lets block the host, and only this long. */
18
- tool_result_edit: 1e4,
19
- /** Replacement teardown is synchronous so its successor ordering is preserved (#3881). */
20
- session_shutdown: 0,
21
- /** The maintainer amendment permits quit-only sink draining before process exit (#2523). */
22
- session_shutdown_quit: 500,
23
- /** Synchronous message contribution; the host is blocked on the answer. */
24
- context: 0,
25
- /** Fork bookkeeping; the session is being replaced under it. */
26
- session_before_fork: 0
27
- });
28
- var HOOK_BUDGET_KEYS = Object.keys(HOOK_WALL_BUDGET_MS);
29
-
30
- export {
31
- HOOK_WALL_BUDGET_MS
32
- };
@@ -1,57 +0,0 @@
1
- import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
- import {
3
- DependencyChecker,
4
- buildMadgeArgs,
5
- resetMadgeManagedPathMemo
6
- } from "./chunk-KDCIG23C.js";
7
- import "./chunk-S3WFVG5P.js";
8
- import "./chunk-HILZE4BQ.js";
9
- import {
10
- mapWithConcurrency
11
- } from "./chunk-XIMYZ3JA.js";
12
- import "./chunk-XPGH5O74.js";
13
- import "./chunk-NE4EFHJX.js";
14
- import "./chunk-YT2VR4SL.js";
15
- import "./chunk-LT62P654.js";
16
- import "./chunk-BRESRQBE.js";
17
- import "./chunk-ACRJ2GZ5.js";
18
- import "./chunk-WS3UFJOU.js";
19
- import "./chunk-GUGKKGG7.js";
20
- import "./chunk-QGITU23N.js";
21
- import "./chunk-OTSTS7L2.js";
22
- import "./chunk-SG2JQ2YP.js";
23
- import "./chunk-CKEQFGLT.js";
24
- import "./chunk-NBM7PNBP.js";
25
- import "./chunk-BGLS5SDN.js";
26
- import "./chunk-WAA63ZJV.js";
27
- import "./chunk-2BEMIWEW.js";
28
- import "./chunk-IJYGIDF4.js";
29
- import "./chunk-AON2QIJF.js";
30
- import "./chunk-TLWFZ66Y.js";
31
- import "./chunk-KSTQ4VXT.js";
32
- import "./chunk-VPFRU5IG.js";
33
- import "./chunk-UYXV5NIS.js";
34
- import "./chunk-NPNFGYLV.js";
35
- import "./chunk-TJQSYX3J.js";
36
- import "./chunk-7JX3RNG4.js";
37
- import "./chunk-IDCTDKIA.js";
38
- import "./chunk-IL6PIV33.js";
39
- import "./chunk-H65TYP6V.js";
40
- import "./chunk-AWQWXSW4.js";
41
- import "./chunk-QYF5S6P6.js";
42
- import "./chunk-CZCAZVTD.js";
43
- import "./chunk-FOEPIX76.js";
44
- import "./chunk-NL5LSKVD.js";
45
- import "./chunk-7WJ55KBN.js";
46
- import "./chunk-3FRI5H4T.js";
47
- import "./chunk-S26LC76R.js";
48
- import "./chunk-VCRVNLE7.js";
49
- import "./chunk-LJDODBBZ.js";
50
- import "./chunk-CB7PEVOJ.js";
51
- import "./chunk-NXL4FFQQ.js";
52
- export {
53
- DependencyChecker,
54
- buildMadgeArgs,
55
- mapWithConcurrency,
56
- resetMadgeManagedPathMemo
57
- };
@@ -1,88 +0,0 @@
1
- import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
- import {
3
- _getWarmWordIndexCacheStateForTests,
4
- _resetWarmWordIndexCacheForTests,
5
- acquireWarmWordIndex,
6
- analyzeFile,
7
- summarizeWarningTiers
8
- } from "./chunk-V7F7JHS5.js";
9
- import "./chunk-GMC4ZGYR.js";
10
- import "./chunk-UY745U35.js";
11
- import "./chunk-HSYFLOZY.js";
12
- import "./chunk-QHOTTC4A.js";
13
- import "./chunk-OPFNQBS5.js";
14
- import "./chunk-SJQUWQR6.js";
15
- import "./chunk-VGTBLTPN.js";
16
- import "./chunk-4ITEFRDH.js";
17
- import "./chunk-W4CUK5G6.js";
18
- import "./chunk-QSCZAP24.js";
19
- import "./chunk-KDCIG23C.js";
20
- import "./chunk-S3WFVG5P.js";
21
- import "./chunk-HILZE4BQ.js";
22
- import "./chunk-Y3EHLUPL.js";
23
- import "./chunk-2ADRLTM2.js";
24
- import "./chunk-ZD4KVFXI.js";
25
- import "./chunk-GTTMQ6XB.js";
26
- import "./chunk-2LVJQU3I.js";
27
- import "./chunk-3MED75HT.js";
28
- import "./chunk-PKLB2XJL.js";
29
- import "./chunk-6MDM5MQT.js";
30
- import "./chunk-FCQSZQAT.js";
31
- import "./chunk-XIMYZ3JA.js";
32
- import "./chunk-XPGH5O74.js";
33
- import "./chunk-NE4EFHJX.js";
34
- import "./chunk-YT2VR4SL.js";
35
- import "./chunk-LT62P654.js";
36
- import "./chunk-BRESRQBE.js";
37
- import "./chunk-XVB3Q2PG.js";
38
- import "./chunk-5W3R6LFT.js";
39
- import "./chunk-QL37SGTS.js";
40
- import "./chunk-K6WIBVMK.js";
41
- import "./chunk-ACRJ2GZ5.js";
42
- import "./chunk-WS3UFJOU.js";
43
- import "./chunk-CTB5BAJI.js";
44
- import "./chunk-Z54ZSOBZ.js";
45
- import "./chunk-GUGKKGG7.js";
46
- import "./chunk-QGITU23N.js";
47
- import "./chunk-OTSTS7L2.js";
48
- import "./chunk-6HWVI6MI.js";
49
- import "./chunk-SG2JQ2YP.js";
50
- import "./chunk-CKEQFGLT.js";
51
- import "./chunk-NBM7PNBP.js";
52
- import "./chunk-BGLS5SDN.js";
53
- import "./chunk-YF4G5NN5.js";
54
- import "./chunk-W7TY6HYX.js";
55
- import "./chunk-WAA63ZJV.js";
56
- import "./chunk-2BEMIWEW.js";
57
- import "./chunk-IJYGIDF4.js";
58
- import "./chunk-AON2QIJF.js";
59
- import "./chunk-TLWFZ66Y.js";
60
- import "./chunk-KSTQ4VXT.js";
61
- import "./chunk-VPFRU5IG.js";
62
- import "./chunk-UYXV5NIS.js";
63
- import "./chunk-NPNFGYLV.js";
64
- import "./chunk-TJQSYX3J.js";
65
- import "./chunk-7JX3RNG4.js";
66
- import "./chunk-IDCTDKIA.js";
67
- import "./chunk-IL6PIV33.js";
68
- import "./chunk-H65TYP6V.js";
69
- import "./chunk-AWQWXSW4.js";
70
- import "./chunk-QYF5S6P6.js";
71
- import "./chunk-CZCAZVTD.js";
72
- import "./chunk-FOEPIX76.js";
73
- import "./chunk-NL5LSKVD.js";
74
- import "./chunk-7WJ55KBN.js";
75
- import "./chunk-3FRI5H4T.js";
76
- import "./chunk-S26LC76R.js";
77
- import "./chunk-VCRVNLE7.js";
78
- import "./chunk-LJDODBBZ.js";
79
- import "./chunk-A5TEJZGJ.js";
80
- import "./chunk-CB7PEVOJ.js";
81
- import "./chunk-NXL4FFQQ.js";
82
- export {
83
- _getWarmWordIndexCacheStateForTests,
84
- _resetWarmWordIndexCacheForTests,
85
- acquireWarmWordIndex,
86
- analyzeFile,
87
- summarizeWarningTiers
88
- };