pi-lens 4.4.8 → 4.4.10

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 (169) hide show
  1. package/CHANGELOG-USER.md +31 -0
  2. package/CHANGELOG.md +258 -0
  3. package/README.md +4 -1
  4. package/config/dependency-cruiser-eager-allowlist.json +1 -1
  5. package/dist/{chunk-6YUNI7B5.js → chunk-2ADRLTM2.js} +14 -60
  6. package/dist/{chunk-4B2YFN4U.js → chunk-2LVJQU3I.js} +46 -33
  7. package/dist/{chunk-2453RRJ2.js → chunk-3FRI5H4T.js} +72 -23
  8. package/dist/{chunk-7MAD5ZAY.js → chunk-3HM4BUHR.js} +14 -16
  9. package/dist/chunk-3QWVOBZJ.js +73 -0
  10. package/dist/{chunk-PIQQM32Y.js → chunk-46TQJSUE.js} +4 -2
  11. package/dist/{chunk-RZG472YW.js → chunk-4ITEFRDH.js} +84 -46
  12. package/dist/{chunk-6FIRFP6A.js → chunk-4NCDHTFI.js} +10 -12
  13. package/dist/{chunk-7CGIDRIK.js → chunk-6I44EDNQ.js} +14 -16
  14. package/dist/{chunk-2BKUFQKR.js → chunk-6MDM5MQT.js} +554 -217
  15. package/dist/{chunk-BBET6HD6.js → chunk-7JX3RNG4.js} +1 -1
  16. package/dist/{chunk-JE6HKLC7.js → chunk-7WJ55KBN.js} +2 -4
  17. package/dist/{chunk-4BKU7PV3.js → chunk-A5TEJZGJ.js} +2 -1
  18. package/dist/{chunk-7ANZ7XDD.js → chunk-ACRJ2GZ5.js} +2 -2
  19. package/dist/{chunk-2ZE3AUJQ.js → chunk-ALIZWXHZ.js} +13 -15
  20. package/dist/{chunk-BQG2QFVO.js → chunk-AON2QIJF.js} +43 -55
  21. package/dist/chunk-B2YUE6YD.js +23 -0
  22. package/dist/{chunk-L4NEVZ4T.js → chunk-B6HXETWY.js} +25 -27
  23. package/dist/chunk-BDR5MEZY.js +25 -0
  24. package/dist/{chunk-HXFUTMX2.js → chunk-BGLS5SDN.js} +2 -2
  25. package/dist/{chunk-ZZDIOAAJ.js → chunk-BRESRQBE.js} +6 -6
  26. package/dist/{chunk-WXUDRAG6.js → chunk-C6AODRNU.js} +10 -12
  27. package/dist/{chunk-GMROJJRN.js → chunk-CB7PEVOJ.js} +9 -1
  28. package/dist/{chunk-BHWW6FAX.js → chunk-CTB5BAJI.js} +53 -22
  29. package/dist/{chunk-VN3L2JWZ.js → chunk-CYUJB552.js} +5 -5
  30. package/dist/{chunk-6GMGEKQN.js → chunk-CZAWWXP6.js} +39 -12
  31. package/dist/{chunk-G5GV2Q7K.js → chunk-CZCAZVTD.js} +16 -2
  32. package/dist/chunk-DBS736MA.js +57 -0
  33. package/dist/{chunk-OWTG6UMO.js → chunk-DOUAWKLO.js} +75 -22
  34. package/dist/{chunk-BOPDQ7AZ.js → chunk-DVRJBQOJ.js} +19 -21
  35. package/dist/{chunk-UHHLR2VY.js → chunk-E4VXKTBR.js} +38 -41
  36. package/dist/{chunk-X66YJ2SS.js → chunk-F6FT6BVQ.js} +33 -34
  37. package/dist/{chunk-GIRBSBGL.js → chunk-FCQSZQAT.js} +3 -3
  38. package/dist/{chunk-X35S7HSB.js → chunk-FOEPIX76.js} +41 -30
  39. package/dist/{chunk-MC6VB2E5.js → chunk-GMC4ZGYR.js} +17 -5
  40. package/dist/{chunk-7TNILKGY.js → chunk-GTTMQ6XB.js} +1 -1
  41. package/dist/{chunk-HHR7WGCI.js → chunk-GUGKKGG7.js} +3 -3
  42. package/dist/{chunk-OZWXLJMX.js → chunk-GVWIU7M7.js} +2 -2
  43. package/dist/{chunk-WMDUT4KH.js → chunk-H65TYP6V.js} +94 -90
  44. package/dist/{chunk-5F3XF3SX.js → chunk-HILZE4BQ.js} +9 -8
  45. package/dist/{chunk-PKSUMEPT.js → chunk-HSYFLOZY.js} +3 -3
  46. package/dist/{chunk-4QG55RRC.js → chunk-I32RSMH6.js} +10 -12
  47. package/dist/chunk-I74RQGKA.js +88 -0
  48. package/dist/{chunk-G6JKM4O7.js → chunk-IDCTDKIA.js} +10 -10
  49. package/dist/chunk-IK4YS3KC.js +25 -0
  50. package/dist/{chunk-O2ARHQKF.js → chunk-IL6PIV33.js} +2 -2
  51. package/dist/{chunk-L3CLUGDY.js → chunk-J6BR5XN2.js} +3 -3
  52. package/dist/chunk-JKOZ2Z4U.js +20 -0
  53. package/dist/{chunk-SP4TFY5F.js → chunk-JZQGRARR.js} +11 -13
  54. package/dist/{chunk-CUDD35TW.js → chunk-K6WIBVMK.js} +6 -5
  55. package/dist/{chunk-DIWK3LBC.js → chunk-KDCIG23C.js} +8 -10
  56. package/dist/{chunk-4NBWFYWW.js → chunk-KFRDFAOE.js} +8 -33
  57. package/dist/{chunk-I22THIHI.js → chunk-KJ3AHOCK.js} +10 -12
  58. package/dist/{chunk-VOP4PJKA.js → chunk-KSTQ4VXT.js} +7 -9
  59. package/dist/{chunk-RGGH6M34.js → chunk-LT62P654.js} +1 -1
  60. package/dist/chunk-MAD4QJTP.js +198 -0
  61. package/dist/{chunk-CM73PPGD.js → chunk-MN635QYA.js} +3 -4
  62. package/dist/{chunk-HUAM7QG3.js → chunk-NBM7PNBP.js} +25 -23
  63. package/dist/{chunk-DYRZGUMA.js → chunk-NE4EFHJX.js} +2 -2
  64. package/dist/{chunk-SQC7K3SP.js → chunk-NL5LSKVD.js} +2 -2
  65. package/dist/{chunk-JZRP4DGP.js → chunk-NPNFGYLV.js} +4 -2
  66. package/dist/{chunk-NM2NWH55.js → chunk-NUSXS6YB.js} +6 -5
  67. package/dist/{chunk-ZKLTNLAW.js → chunk-OPFNQBS5.js} +6 -6
  68. package/dist/{chunk-PPKECBPP.js → chunk-OTSTS7L2.js} +19 -1
  69. package/dist/{chunk-SFLHSL5R.js → chunk-PTSA6QKL.js} +18 -7
  70. package/dist/{chunk-OY7WZI7Q.js → chunk-Q2VCKC3X.js} +6 -6
  71. package/dist/{chunk-HKIL6DCL.js → chunk-QGITU23N.js} +1 -1
  72. package/dist/{chunk-3O5EII3W.js → chunk-QHOTTC4A.js} +2 -2
  73. package/dist/{chunk-35WKJWO5.js → chunk-QL37SGTS.js} +112 -20
  74. package/dist/{chunk-OC7VWJBZ.js → chunk-QMV2APEH.js} +35 -37
  75. package/dist/{chunk-BUZIQDFS.js → chunk-QSCZAP24.js} +3 -3
  76. package/dist/{chunk-O4N5BQ3T.js → chunk-QUPYLQA4.js} +8 -10
  77. package/dist/{chunk-A5GRLYPZ.js → chunk-QUQY3IME.js} +7 -13
  78. package/dist/{chunk-R2QQC33W.js → chunk-QWTHFFU6.js} +12 -14
  79. package/dist/{chunk-TV6RXRYH.js → chunk-RQRKIRFY.js} +8 -10
  80. package/dist/{chunk-ZFORSIED.js → chunk-S3WFVG5P.js} +15 -42
  81. package/dist/{chunk-5RNB4HVK.js → chunk-SG2JQ2YP.js} +1 -1
  82. package/dist/{chunk-KZ4ALBCH.js → chunk-SJQUWQR6.js} +2 -2
  83. package/dist/{chunk-T2S3FNNJ.js → chunk-SKVNHCT5.js} +41 -42
  84. package/dist/{chunk-SDFKOLSF.js → chunk-TJQSYX3J.js} +8 -6
  85. package/dist/{chunk-IYVYZQRL.js → chunk-TLWFZ66Y.js} +5 -7
  86. package/dist/{chunk-5T5A6YAJ.js → chunk-TN5CWX5D.js} +33 -34
  87. package/dist/chunk-TQHOKMVZ.js +28 -0
  88. package/dist/{chunk-XOMGO63G.js → chunk-TYHOEX4V.js} +19 -21
  89. package/dist/{chunk-6LJOJ6EO.js → chunk-UNBRHPHJ.js} +14 -16
  90. package/dist/{chunk-4LL2VRNY.js → chunk-UOO4D2TK.js} +16 -18
  91. package/dist/{chunk-AGGUWKRK.js → chunk-UY745U35.js} +1 -1
  92. package/dist/{chunk-LSFXZLPW.js → chunk-V7F7JHS5.js} +218 -253
  93. package/dist/{chunk-VLQ7UKZH.js → chunk-VCRVNLE7.js} +135 -2
  94. package/dist/{chunk-JPRDTY5S.js → chunk-VGTBLTPN.js} +8 -10
  95. package/dist/{chunk-JBP7KESM.js → chunk-VPFRU5IG.js} +1 -1
  96. package/dist/chunk-VS2L7QDI.js +25 -0
  97. package/dist/{chunk-4W52ZKZX.js → chunk-W4CUK5G6.js} +2 -2
  98. package/dist/{chunk-VPLBLWFO.js → chunk-W7TY6HYX.js} +1 -1
  99. package/dist/{chunk-JYLOYTZD.js → chunk-WAA63ZJV.js} +5 -1
  100. package/dist/{chunk-WC6WRNQT.js → chunk-WS3UFJOU.js} +2 -2
  101. package/dist/chunk-XAFZJEXY.js +50 -0
  102. package/dist/{chunk-XYLC35E4.js → chunk-XPGH5O74.js} +555 -336
  103. package/dist/{chunk-VOXTCULR.js → chunk-XVB3Q2PG.js} +2 -4
  104. package/dist/{chunk-FRLAUP2B.js → chunk-Y3EHLUPL.js} +4 -4
  105. package/dist/{chunk-CZL44WFN.js → chunk-YF4G5NN5.js} +2 -2
  106. package/dist/{chunk-XWIME22V.js → chunk-YQA34KAF.js} +11 -13
  107. package/dist/{chunk-FHEV6T4L.js → chunk-YT2VR4SL.js} +8 -10
  108. package/dist/chunk-ZD4KVFXI.js +234 -0
  109. package/dist/{chunk-NSPVR3FN.js → chunk-ZOPXB2KK.js} +17 -19
  110. package/dist/chunk-ZPFLHB3R.js +28 -0
  111. package/dist/{chunk-R4QWJQ2H.js → chunk-ZZDVGCGG.js} +9 -11
  112. package/dist/index.js +5398 -4438
  113. package/dist/mcp/analyze-cli.js +12 -17
  114. package/dist/mcp/cli.js +41 -42
  115. package/dist/mcp/server.js +1466 -663
  116. package/dist/mcp/worker.js +59 -60
  117. package/dist/probes/installer.js +17 -19
  118. package/docs/agent-guide.md +2 -1
  119. package/docs/agent-tools.md +53 -10
  120. package/docs/analysisall.md +1 -1
  121. package/docs/ci-bot-pr-checks.md +7 -5
  122. package/docs/configuration.md +60 -13
  123. package/docs/defect-shapes.md +67 -4
  124. package/docs/environment-variables.md +18 -1
  125. package/docs/features.md +23 -6
  126. package/docs/globalconfig.md +24 -3
  127. package/docs/invariants/language-config.md +9 -1
  128. package/docs/invariants/lsp-trust-exec.md +9 -2
  129. package/docs/invariants/session-telemetry.md +2 -2
  130. package/docs/language-coverage.md +67 -0
  131. package/docs/lsp-capability-matrix.md +121 -53
  132. package/docs/lsp-idle-eviction.md +20 -13
  133. package/docs/merge-queue-rollout.md +10 -8
  134. package/docs/module-report-read-symbol.md +34 -23
  135. package/docs/pi-lens-fixer.md +19 -7
  136. package/docs/pi-lens-investigator.md +3 -0
  137. package/docs/pi-lens-merge-policy.md +20 -8
  138. package/docs/pi-lens-release.md +3 -2
  139. package/docs/pi-lens-reviewer.md +53 -12
  140. package/docs/pi-lens-subagent.md +13 -0
  141. package/docs/public-api-stability.md +39 -5
  142. package/docs/release-qa-baseline.md +7 -4
  143. package/docs/schema/pi-lens-config-v1.json +11 -2
  144. package/docs/servercapabilities.md +3 -1
  145. package/docs/settings.md +9 -6
  146. package/docs/usage.md +1 -0
  147. package/docs/word-index.md +3 -2
  148. package/package.json +9 -4
  149. package/rules/ast-grep-rules/rules/no-sql-in-code-execute-js.yml +1 -2
  150. package/rules/ast-grep-rules/rules/no-sql-in-code-execute.yml +1 -2
  151. package/scripts/download-grammars.js +13 -2
  152. package/scripts/grammars.lock.json +7 -0
  153. package/skills/pi-lens-lsp-navigation/SKILL.md +5 -1
  154. package/vendor/grammars/tree-sitter-groovy.wasm +0 -0
  155. package/dist/chunk-2TS4GLOJ.js +0 -31
  156. package/dist/chunk-3JAHQBSY.js +0 -27
  157. package/dist/chunk-447YZL4S.js +0 -25
  158. package/dist/chunk-565VRUP4.js +0 -136
  159. package/dist/chunk-57X2CDRX.js +0 -49
  160. package/dist/chunk-GGYOZWHW.js +0 -27
  161. package/dist/chunk-IE5D3RA5.js +0 -58
  162. package/dist/chunk-LPYTPNOJ.js +0 -22
  163. package/dist/chunk-OFNMHPBT.js +0 -89
  164. package/dist/chunk-U3AS2FR6.js +0 -106
  165. package/dist/chunk-W3BGKBBK.js +0 -27
  166. package/dist/chunk-WQV6BI4Q.js +0 -48
  167. package/dist/chunk-YHGYAEFH.js +0 -443
  168. package/dist/chunk-ZONZ6YY3.js +0 -74
  169. package/dist/chunk-ZSM35JF4.js +0 -30
@@ -7,33 +7,31 @@ import {
7
7
  extractForwardImportPaths,
8
8
  extractForwardImports,
9
9
  sweepInlineBlockerFreshness
10
- } from "./chunk-35WKJWO5.js";
11
- import "./chunk-CUDD35TW.js";
12
- import "./chunk-7ANZ7XDD.js";
13
- import "./chunk-WC6WRNQT.js";
14
- import "./chunk-BHWW6FAX.js";
10
+ } from "./chunk-QL37SGTS.js";
11
+ import "./chunk-K6WIBVMK.js";
12
+ import "./chunk-ACRJ2GZ5.js";
13
+ import "./chunk-WS3UFJOU.js";
14
+ import "./chunk-CTB5BAJI.js";
15
15
  import "./chunk-Z54ZSOBZ.js";
16
- import "./chunk-HHR7WGCI.js";
17
- import "./chunk-HKIL6DCL.js";
18
- import "./chunk-PPKECBPP.js";
16
+ import "./chunk-GUGKKGG7.js";
17
+ import "./chunk-QGITU23N.js";
18
+ import "./chunk-OTSTS7L2.js";
19
19
  import "./chunk-CKEQFGLT.js";
20
- import "./chunk-JYLOYTZD.js";
21
- import "./chunk-VPLBLWFO.js";
22
- import "./chunk-JZRP4DGP.js";
23
- import "./chunk-WMDUT4KH.js";
24
- import "./chunk-G5GV2Q7K.js";
25
- import "./chunk-X35S7HSB.js";
26
- import "./chunk-SQC7K3SP.js";
27
- import "./chunk-JE6HKLC7.js";
28
- import "./chunk-2453RRJ2.js";
29
- import "./chunk-WQV6BI4Q.js";
20
+ import "./chunk-W7TY6HYX.js";
21
+ import "./chunk-WAA63ZJV.js";
22
+ import "./chunk-NPNFGYLV.js";
23
+ import "./chunk-H65TYP6V.js";
24
+ import "./chunk-CZCAZVTD.js";
25
+ import "./chunk-FOEPIX76.js";
26
+ import "./chunk-NL5LSKVD.js";
27
+ import "./chunk-7WJ55KBN.js";
28
+ import "./chunk-3FRI5H4T.js";
30
29
  import {
31
30
  MTIME_DRIFT_TOLERANCE_MS
32
31
  } from "./chunk-S26LC76R.js";
33
- import "./chunk-565VRUP4.js";
34
- import "./chunk-VLQ7UKZH.js";
32
+ import "./chunk-VCRVNLE7.js";
35
33
  import "./chunk-LJDODBBZ.js";
36
- import "./chunk-GMROJJRN.js";
34
+ import "./chunk-CB7PEVOJ.js";
37
35
  import "./chunk-NXL4FFQQ.js";
38
36
  export {
39
37
  DEPENDENCY_DRIFT_MAX_DELIVERIES,
@@ -1,82 +1,79 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  nestedWorktreeOffsets
4
- } from "./chunk-KZ4ALBCH.js";
5
- import {
6
- scannerReportParentDir
7
- } from "./chunk-RGGH6M34.js";
4
+ } from "./chunk-SJQUWQR6.js";
8
5
  import {
9
6
  formatToolFailure
10
- } from "./chunk-RZG472YW.js";
7
+ } from "./chunk-4ITEFRDH.js";
11
8
  import {
12
9
  createAvailabilityChecker,
13
10
  findManagedNodeToolBinary,
14
11
  resolveAvailableOrInstall
15
- } from "./chunk-ZFORSIED.js";
16
- import "./chunk-5F3XF3SX.js";
17
- import "./chunk-XYLC35E4.js";
18
- import "./chunk-DYRZGUMA.js";
19
- import "./chunk-FHEV6T4L.js";
20
- import "./chunk-ZZDIOAAJ.js";
21
- import "./chunk-7ANZ7XDD.js";
22
- import "./chunk-WC6WRNQT.js";
23
- import "./chunk-HHR7WGCI.js";
24
- import "./chunk-HKIL6DCL.js";
25
- import "./chunk-PPKECBPP.js";
26
- import "./chunk-5RNB4HVK.js";
12
+ } from "./chunk-S3WFVG5P.js";
13
+ import "./chunk-HILZE4BQ.js";
14
+ import "./chunk-XPGH5O74.js";
15
+ import "./chunk-NE4EFHJX.js";
16
+ import "./chunk-YT2VR4SL.js";
17
+ import {
18
+ scannerReportParentDir
19
+ } from "./chunk-LT62P654.js";
20
+ import "./chunk-BRESRQBE.js";
21
+ import "./chunk-ACRJ2GZ5.js";
22
+ import "./chunk-WS3UFJOU.js";
23
+ import "./chunk-GUGKKGG7.js";
24
+ import "./chunk-QGITU23N.js";
25
+ import "./chunk-OTSTS7L2.js";
26
+ import "./chunk-SG2JQ2YP.js";
27
27
  import "./chunk-CKEQFGLT.js";
28
- import "./chunk-JYLOYTZD.js";
29
- import "./chunk-HUAM7QG3.js";
28
+ import "./chunk-NBM7PNBP.js";
30
29
  import {
31
30
  getJscpdMaxEntriesDerived
32
- } from "./chunk-HXFUTMX2.js";
31
+ } from "./chunk-BGLS5SDN.js";
32
+ import "./chunk-WAA63ZJV.js";
33
33
  import "./chunk-2BEMIWEW.js";
34
34
  import "./chunk-IJYGIDF4.js";
35
- import "./chunk-BQG2QFVO.js";
36
- import "./chunk-IYVYZQRL.js";
35
+ import "./chunk-AON2QIJF.js";
36
+ import "./chunk-TLWFZ66Y.js";
37
37
  import {
38
38
  findNodeToolBinary
39
- } from "./chunk-VOP4PJKA.js";
39
+ } from "./chunk-KSTQ4VXT.js";
40
40
  import {
41
41
  getIsolatedNpxSpawnOptions
42
- } from "./chunk-JBP7KESM.js";
42
+ } from "./chunk-VPFRU5IG.js";
43
43
  import "./chunk-UYXV5NIS.js";
44
- import "./chunk-JZRP4DGP.js";
45
- import "./chunk-SDFKOLSF.js";
46
- import "./chunk-BBET6HD6.js";
47
- import "./chunk-G6JKM4O7.js";
44
+ import "./chunk-NPNFGYLV.js";
45
+ import "./chunk-TJQSYX3J.js";
46
+ import "./chunk-7JX3RNG4.js";
47
+ import "./chunk-IDCTDKIA.js";
48
48
  import {
49
49
  shouldRecurseIntoDir,
50
50
  walkTreeStackSync
51
- } from "./chunk-O2ARHQKF.js";
51
+ } from "./chunk-IL6PIV33.js";
52
52
  import {
53
53
  getExcludedDirGlobs,
54
54
  getProjectIgnoreGlobs,
55
55
  getProjectIgnoreMatcher,
56
56
  safeSpawnAsync
57
- } from "./chunk-WMDUT4KH.js";
57
+ } from "./chunk-H65TYP6V.js";
58
58
  import "./chunk-AWQWXSW4.js";
59
59
  import "./chunk-QYF5S6P6.js";
60
- import "./chunk-G5GV2Q7K.js";
61
- import "./chunk-X35S7HSB.js";
62
- import "./chunk-SQC7K3SP.js";
63
- import "./chunk-JE6HKLC7.js";
60
+ import "./chunk-CZCAZVTD.js";
61
+ import "./chunk-FOEPIX76.js";
62
+ import "./chunk-NL5LSKVD.js";
63
+ import "./chunk-7WJ55KBN.js";
64
64
  import {
65
+ createSubsystemLogger,
65
66
  incrementDegradationCount
66
- } from "./chunk-2453RRJ2.js";
67
- import {
68
- createSubsystemLogger
69
- } from "./chunk-WQV6BI4Q.js";
67
+ } from "./chunk-3FRI5H4T.js";
70
68
  import "./chunk-S26LC76R.js";
71
- import "./chunk-565VRUP4.js";
72
- import "./chunk-VLQ7UKZH.js";
69
+ import "./chunk-VCRVNLE7.js";
73
70
  import "./chunk-LJDODBBZ.js";
74
71
  import {
75
72
  isAtOrAboveHomeDir,
76
73
  isFullyQualified,
77
74
  realpathOrResolve,
78
75
  toPosix
79
- } from "./chunk-GMROJJRN.js";
76
+ } from "./chunk-CB7PEVOJ.js";
80
77
  import "./chunk-NXL4FFQQ.js";
81
78
 
82
79
  // dist/clients/jscpd-client.js
@@ -2,60 +2,59 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
2
2
  import {
3
3
  createAvailabilityChecker,
4
4
  resolveAvailableOrInstall
5
- } from "./chunk-ZFORSIED.js";
5
+ } from "./chunk-S3WFVG5P.js";
6
6
  import {
7
7
  ruffConfigArgs
8
- } from "./chunk-5F3XF3SX.js";
9
- import "./chunk-XYLC35E4.js";
10
- import "./chunk-DYRZGUMA.js";
11
- import "./chunk-FHEV6T4L.js";
12
- import "./chunk-ZZDIOAAJ.js";
13
- import "./chunk-7ANZ7XDD.js";
14
- import "./chunk-WC6WRNQT.js";
15
- import "./chunk-HHR7WGCI.js";
16
- import "./chunk-HKIL6DCL.js";
17
- import "./chunk-PPKECBPP.js";
18
- import "./chunk-5RNB4HVK.js";
8
+ } from "./chunk-HILZE4BQ.js";
9
+ import "./chunk-XPGH5O74.js";
10
+ import "./chunk-NE4EFHJX.js";
11
+ import "./chunk-YT2VR4SL.js";
12
+ import "./chunk-LT62P654.js";
13
+ import "./chunk-BRESRQBE.js";
14
+ import "./chunk-ACRJ2GZ5.js";
15
+ import "./chunk-WS3UFJOU.js";
16
+ import "./chunk-GUGKKGG7.js";
17
+ import "./chunk-QGITU23N.js";
18
+ import "./chunk-OTSTS7L2.js";
19
+ import "./chunk-SG2JQ2YP.js";
19
20
  import "./chunk-CKEQFGLT.js";
20
- import "./chunk-JYLOYTZD.js";
21
- import "./chunk-HUAM7QG3.js";
22
- import "./chunk-HXFUTMX2.js";
21
+ import "./chunk-NBM7PNBP.js";
22
+ import "./chunk-BGLS5SDN.js";
23
+ import "./chunk-WAA63ZJV.js";
23
24
  import "./chunk-2BEMIWEW.js";
24
25
  import "./chunk-IJYGIDF4.js";
25
- import "./chunk-BQG2QFVO.js";
26
+ import "./chunk-AON2QIJF.js";
26
27
  import {
27
28
  resolveToolCwd
28
- } from "./chunk-IYVYZQRL.js";
29
- import "./chunk-VOP4PJKA.js";
30
- import "./chunk-JBP7KESM.js";
29
+ } from "./chunk-TLWFZ66Y.js";
30
+ import "./chunk-KSTQ4VXT.js";
31
+ import "./chunk-VPFRU5IG.js";
31
32
  import "./chunk-UYXV5NIS.js";
32
- import "./chunk-JZRP4DGP.js";
33
- import "./chunk-SDFKOLSF.js";
34
- import "./chunk-BBET6HD6.js";
35
- import "./chunk-G6JKM4O7.js";
36
- import "./chunk-O2ARHQKF.js";
33
+ import "./chunk-NPNFGYLV.js";
34
+ import "./chunk-TJQSYX3J.js";
35
+ import "./chunk-7JX3RNG4.js";
36
+ import "./chunk-IDCTDKIA.js";
37
+ import "./chunk-IL6PIV33.js";
37
38
  import {
38
39
  safeSpawnAsync
39
- } from "./chunk-WMDUT4KH.js";
40
+ } from "./chunk-H65TYP6V.js";
40
41
  import "./chunk-AWQWXSW4.js";
41
42
  import "./chunk-QYF5S6P6.js";
42
43
  import {
43
44
  isFileKind
44
- } from "./chunk-G5GV2Q7K.js";
45
- import "./chunk-X35S7HSB.js";
46
- import "./chunk-SQC7K3SP.js";
47
- import "./chunk-JE6HKLC7.js";
48
- import "./chunk-2453RRJ2.js";
45
+ } from "./chunk-CZCAZVTD.js";
46
+ import "./chunk-FOEPIX76.js";
47
+ import "./chunk-NL5LSKVD.js";
48
+ import "./chunk-7WJ55KBN.js";
49
49
  import {
50
50
  createSubsystemLogger
51
- } from "./chunk-WQV6BI4Q.js";
51
+ } from "./chunk-3FRI5H4T.js";
52
52
  import "./chunk-S26LC76R.js";
53
- import "./chunk-565VRUP4.js";
54
- import "./chunk-VLQ7UKZH.js";
53
+ import "./chunk-VCRVNLE7.js";
55
54
  import "./chunk-LJDODBBZ.js";
56
55
  import {
57
56
  pathsEqual
58
- } from "./chunk-GMROJJRN.js";
57
+ } from "./chunk-CB7PEVOJ.js";
59
58
  import "./chunk-NXL4FFQQ.js";
60
59
 
61
60
  // dist/clients/ruff-client.js
@@ -1,20 +1,20 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  getProjectDataDir
4
- } from "./chunk-WMDUT4KH.js";
4
+ } from "./chunk-H65TYP6V.js";
5
5
  import {
6
6
  createNdjsonLogger,
7
7
  getGlobalPiLensLogDir,
8
8
  getProcessSingleton,
9
9
  getTurnId,
10
10
  isTestMode
11
- } from "./chunk-VLQ7UKZH.js";
11
+ } from "./chunk-VCRVNLE7.js";
12
12
  import {
13
13
  BoundedFifoMap,
14
14
  normalizeFilePath,
15
15
  normalizeMapKey,
16
16
  toPosix
17
- } from "./chunk-GMROJJRN.js";
17
+ } from "./chunk-CB7PEVOJ.js";
18
18
 
19
19
  // dist/clients/hashline-anchor.js
20
20
  var HASHLINE_ANCHOR_LENGTH = 3;
@@ -14,7 +14,7 @@ import {
14
14
  findPiLensConfigMarkerInDir,
15
15
  getPiLensGlobalConfigPath,
16
16
  isResolvedGlobalConfigPath
17
- } from "./chunk-SQC7K3SP.js";
17
+ } from "./chunk-NL5LSKVD.js";
18
18
  import {
19
19
  DEGRADATION_ENTRIES_PER_KIND,
20
20
  GLOBAL_NON_FLAG_CONFIG_SECTIONS,
@@ -28,13 +28,11 @@ import {
28
28
  assignFlagConfigSection,
29
29
  flagConfigSectionKeys,
30
30
  hasFlagConfigPath,
31
+ logExtension,
31
32
  readFlagConfigValue,
32
33
  readToolConfig,
33
34
  recordDegradationOnce
34
- } from "./chunk-2453RRJ2.js";
35
- import {
36
- logExtension
37
- } from "./chunk-WQV6BI4Q.js";
35
+ } from "./chunk-3FRI5H4T.js";
38
36
  import {
39
37
  CONFIG_SCHEMA_ANCHOR_KEY,
40
38
  CONFIG_SCHEMA_ID,
@@ -45,7 +43,7 @@ import {
45
43
  import {
46
44
  redactSecrets,
47
45
  toPositiveFinite
48
- } from "./chunk-VLQ7UKZH.js";
46
+ } from "./chunk-VCRVNLE7.js";
49
47
  import {
50
48
  BoundedFifoMap,
51
49
  BoundedLruCache,
@@ -55,7 +53,7 @@ import {
55
53
  realpathOrResolve,
56
54
  toPosix,
57
55
  walkUpDirs
58
- } from "./chunk-GMROJJRN.js";
56
+ } from "./chunk-CB7PEVOJ.js";
59
57
 
60
58
  // dist/clients/generated-artifacts.js
61
59
  import * as fs from "node:fs";
@@ -1575,10 +1573,23 @@ function rulePolicyEntryNode() {
1575
1573
  additionalProperties: true,
1576
1574
  properties: {
1577
1575
  threshold: { type: "number", [STABILITY_TIER_KEY]: "experimental" },
1578
- // These two legacy fields remain opaque so the project compatibility
1579
- // parser can preserve its established field-specific diagnostics.
1580
- disable: opaque("experimental"),
1581
- select: opaque("experimental"),
1576
+ // `disable` is a denial: the union of every tier, so a nearer config
1577
+ // adds rules and never re-enables one (#5232, #2415 AC3).
1578
+ disable: {
1579
+ type: "array",
1580
+ items: { type: "string", [STABILITY_TIER_KEY]: "experimental" },
1581
+ [DENY_KEY]: "array-union",
1582
+ [STABILITY_TIER_KEY]: "experimental"
1583
+ },
1584
+ // `select` is a typed list, so a non-string member is dropped as in
1585
+ // `disable` (#5250); a project file notices only a non-array or an
1586
+ // all-dropped list. It is not a denial: the nearest tier that sets a
1587
+ // key's list replaces it (the #5232 decision).
1588
+ select: {
1589
+ type: "array",
1590
+ items: { type: "string", [STABILITY_TIER_KEY]: "experimental" },
1591
+ [STABILITY_TIER_KEY]: "experimental"
1592
+ },
1582
1593
  ignorePaths: {
1583
1594
  type: "array",
1584
1595
  items: {
@@ -2029,7 +2040,7 @@ function reportPiLensConfigRecords(records) {
2029
2040
  }
2030
2041
  function ignoredRecordCollector(configPath, tier) {
2031
2042
  const noted = [];
2032
- const note = (reason, code = "PILENS_CFG_0001") => {
2043
+ const note = (reason, code) => {
2033
2044
  let notedRecord = {
2034
2045
  code: "PILENS_CFG_0001",
2035
2046
  file: configPath,
@@ -2265,7 +2276,7 @@ function bearingDirMtimes(dirMtimes, info) {
2265
2276
  }
2266
2277
  function parseRulePolicyList(note, ruleId, key, value) {
2267
2278
  if (!Array.isArray(value)) {
2268
- note(`rules.${ruleId}.${key} must be an array of strings`);
2279
+ note(`rules.${ruleId}.${key} must be an array of strings`, "PILENS_CFG_0005");
2269
2280
  return { list: [], invalid: true };
2270
2281
  }
2271
2282
  const list = [];
@@ -2278,7 +2289,7 @@ function parseRulePolicyList(note, ruleId, key, value) {
2278
2289
  }
2279
2290
  if (list.length === 0) {
2280
2291
  if (value.length > 0) {
2281
- note(`rules.${ruleId}.${key} must contain at least one non-empty string`);
2292
+ note(`rules.${ruleId}.${key} must contain at least one non-empty string`, "PILENS_CFG_0005");
2282
2293
  return { list: [], invalid: true };
2283
2294
  }
2284
2295
  return { list: [], invalid: false };
@@ -2287,12 +2298,12 @@ function parseRulePolicyList(note, ruleId, key, value) {
2287
2298
  }
2288
2299
  function parseRulePathList(note, ruleId, value) {
2289
2300
  if (!Array.isArray(value)) {
2290
- note(`rules.${ruleId}.ignorePaths must be an array of strings`);
2301
+ note(`rules.${ruleId}.ignorePaths must be an array of strings`, "PILENS_CFG_0005");
2291
2302
  return void 0;
2292
2303
  }
2293
2304
  const paths = value.filter((entry) => typeof entry === "string" && entry.trim().length > 0).map((entry) => entry.trim());
2294
2305
  if (value.length > 0 && paths.length === 0) {
2295
- note(`rules.${ruleId}.ignorePaths must contain a non-empty string`);
2306
+ note(`rules.${ruleId}.ignorePaths must contain a non-empty string`, "PILENS_CFG_0005");
2296
2307
  return void 0;
2297
2308
  }
2298
2309
  return paths;
@@ -2302,7 +2313,7 @@ function parseConfigFile(configPath) {
2302
2313
  const { note, records: ignoredRecords } = ignoredRecordCollector(configPath, "project");
2303
2314
  const outcome = readConfigDocument(configPath);
2304
2315
  if (outcome.status === "error") {
2305
- note({ parseError: outcome.error, sourceText: outcome.sourceText });
2316
+ note({ parseError: outcome.error, sourceText: outcome.sourceText }, "PILENS_CFG_0001");
2306
2317
  return {
2307
2318
  config: EMPTY_PROJECT_CONFIG,
2308
2319
  records: NO_RECORDS,
@@ -2317,7 +2328,7 @@ function parseConfigFile(configPath) {
2317
2328
  };
2318
2329
  }
2319
2330
  if (!outcome.value || typeof outcome.value !== "object" || Array.isArray(outcome.value)) {
2320
- note("top-level value must be an object");
2331
+ note("top-level value must be an object", "PILENS_CFG_0001");
2321
2332
  return {
2322
2333
  config: EMPTY_PROJECT_CONFIG,
2323
2334
  records: NO_RECORDS,
@@ -2347,7 +2358,7 @@ function parseConfigFile(configPath) {
2347
2358
  const rawRules = obj.rules;
2348
2359
  for (const [ruleId, ruleCfg] of Object.entries(rawRules)) {
2349
2360
  if (!ruleCfg || typeof ruleCfg !== "object" || Array.isArray(ruleCfg)) {
2350
- note(`rules.${ruleId} must be an object with threshold, disable, or select; ignored`);
2361
+ note(`rules.${ruleId} must be an object with threshold, disable, or select; ignored`, "PILENS_CFG_0005");
2351
2362
  continue;
2352
2363
  }
2353
2364
  const r = ruleCfg;
@@ -2355,7 +2366,7 @@ function parseConfigFile(configPath) {
2355
2366
  if (typeof r.threshold === "number" && Number.isFinite(r.threshold) && r.threshold > 0) {
2356
2367
  entry.threshold = r.threshold;
2357
2368
  } else if ("threshold" in r) {
2358
- note(`rules.${ruleId}.threshold must be a positive finite number`);
2369
+ note(`rules.${ruleId}.threshold must be a positive finite number`, "PILENS_CFG_0005");
2359
2370
  }
2360
2371
  if ("disable" in r) {
2361
2372
  const parsed = parseRulePolicyList(note, ruleId, "disable", r.disable);
@@ -2375,7 +2386,7 @@ function parseConfigFile(configPath) {
2375
2386
  if (entry.threshold !== void 0 || entry.disable || entry.select || entry.ignorePaths) {
2376
2387
  rules[ruleId] = entry;
2377
2388
  } else if (!("threshold" in r) && !("disable" in r) && !("select" in r) && !("ignorePaths" in r)) {
2378
- note(`rules.${ruleId} has no recognized setting (threshold, disable, select); ignored`);
2389
+ note(`rules.${ruleId} has no recognized setting (threshold, disable, select); ignored`, "PILENS_CFG_0004");
2379
2390
  }
2380
2391
  }
2381
2392
  }
@@ -2384,13 +2395,13 @@ function parseConfigFile(configPath) {
2384
2395
  if (typeof obj.maxProjectFiles === "number" && Number.isFinite(obj.maxProjectFiles) && obj.maxProjectFiles > 0) {
2385
2396
  maxProjectFiles = obj.maxProjectFiles;
2386
2397
  } else {
2387
- note("maxProjectFiles must be a positive finite number");
2398
+ note("maxProjectFiles must be a positive finite number", "PILENS_CFG_0005");
2388
2399
  }
2389
2400
  }
2390
2401
  let reviewGraph;
2391
2402
  if (obj.reviewGraph !== void 0) {
2392
2403
  if (!obj.reviewGraph || typeof obj.reviewGraph !== "object" || Array.isArray(obj.reviewGraph)) {
2393
- note("reviewGraph must be an object");
2404
+ note("reviewGraph must be an object", "PILENS_CFG_0005");
2394
2405
  } else {
2395
2406
  const rg = obj.reviewGraph;
2396
2407
  if ("maxFiles" in rg) {
@@ -2399,7 +2410,7 @@ function parseConfigFile(configPath) {
2399
2410
  const clamped = Math.min(REVIEW_GRAPH_MAX_FILES_MAX, Math.max(REVIEW_GRAPH_MAX_FILES_MIN, Math.floor(parsed)));
2400
2411
  reviewGraph = { maxFiles: clamped };
2401
2412
  } else {
2402
- note("reviewGraph.maxFiles must be a positive finite number");
2413
+ note("reviewGraph.maxFiles must be a positive finite number", "PILENS_CFG_0005");
2403
2414
  }
2404
2415
  }
2405
2416
  }
@@ -2407,24 +2418,24 @@ function parseConfigFile(configPath) {
2407
2418
  let startup;
2408
2419
  if (obj.startup !== void 0) {
2409
2420
  if (!obj.startup || typeof obj.startup !== "object" || Array.isArray(obj.startup)) {
2410
- note("startup must be an object");
2421
+ note("startup must be an object", "PILENS_CFG_0005");
2411
2422
  } else {
2412
2423
  const section = obj.startup;
2413
2424
  if (section.mode === "quick" || section.mode === "full" || section.mode === "minimal") {
2414
2425
  startup = { mode: section.mode };
2415
2426
  } else if ("mode" in section) {
2416
- note('startup.mode must be "quick", "full", or "minimal"');
2427
+ note('startup.mode must be "quick", "full", or "minimal"', "PILENS_CFG_0005");
2417
2428
  }
2418
2429
  if (section.scans !== void 0) {
2419
2430
  if (!section.scans || typeof section.scans !== "object" || Array.isArray(section.scans)) {
2420
- note("startup.scans must be an object");
2431
+ note("startup.scans must be an object", "PILENS_CFG_0005");
2421
2432
  } else if (typeof section.scans.enabled === "boolean") {
2422
2433
  startup ??= {};
2423
2434
  startup.scans = {
2424
2435
  enabled: section.scans.enabled
2425
2436
  };
2426
2437
  } else if ("enabled" in section.scans) {
2427
- note("startup.scans.enabled must be a boolean");
2438
+ note("startup.scans.enabled must be a boolean", "PILENS_CFG_0005");
2428
2439
  }
2429
2440
  }
2430
2441
  }
@@ -2447,12 +2458,12 @@ function parseConfigFile(configPath) {
2447
2458
  const globalConfigLabel = homeRelativePath(getPiLensGlobalConfigPath(), os2.homedir());
2448
2459
  const warnUnhonoredKey = (label, globalOnly) => {
2449
2460
  if (!globalOnly) {
2450
- note(`unknown key "${label}" is not a recognized pi-lens setting (check for a typo); ignored`);
2461
+ note(`unknown key "${label}" is not a recognized pi-lens setting (check for a typo); ignored`, "PILENS_CFG_0004");
2451
2462
  return;
2452
2463
  }
2453
2464
  const hasCliFlag = LENS_FLAGS.some(({ configKey }) => configKey === label || configKey.startsWith(`${label}.`));
2454
2465
  const cliClause = hasCliFlag ? " or pass the matching CLI flag" : "";
2455
- note(`"${label}" is a global-only pi-lens setting and is not honored in a project .pi-lens.json (set it in ${globalConfigLabel}${cliClause}); ignored`);
2466
+ note(`"${label}" is a global-only pi-lens setting and is not honored in a project .pi-lens.json (set it in ${globalConfigLabel}${cliClause}); ignored`, "PILENS_CFG_0004");
2456
2467
  };
2457
2468
  for (const key of Object.keys(obj)) {
2458
2469
  if (knownProjectKeys.has(key))
@@ -2,16 +2,20 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
2
2
  import {
3
3
  classifyProbeFailure,
4
4
  installRetryDelayMs
5
- } from "./chunk-JZRP4DGP.js";
5
+ } from "./chunk-NPNFGYLV.js";
6
6
  import {
7
7
  safeSpawnAsync
8
- } from "./chunk-WMDUT4KH.js";
8
+ } from "./chunk-H65TYP6V.js";
9
9
  import {
10
10
  assertInstallAllowed
11
- } from "./chunk-JE6HKLC7.js";
11
+ } from "./chunk-7WJ55KBN.js";
12
12
  import {
13
- logExtension
14
- } from "./chunk-WQV6BI4Q.js";
13
+ logExtension,
14
+ recordDegradationOnce
15
+ } from "./chunk-3FRI5H4T.js";
16
+ import {
17
+ isToolInstallDisabled
18
+ } from "./chunk-VCRVNLE7.js";
15
19
 
16
20
  // dist/clients/dispatch/runners/utils/lazy-installer.js
17
21
  var LAZY_INSTALL_SPECS = {
@@ -42,6 +46,14 @@ function suppressionFor(state) {
42
46
  }
43
47
  var inFlight = /* @__PURE__ */ new Map();
44
48
  async function runLazyInstall(tool, cwd, spec) {
49
+ if (isToolInstallDisabled()) {
50
+ recordDegradationOnce({
51
+ kind: "install-disabled",
52
+ subject: tool,
53
+ reason: "installation disabled by PI_LENS_DISABLE_TOOL_INSTALL=1"
54
+ });
55
+ return false;
56
+ }
45
57
  const k = key(cwd, tool);
46
58
  const running = inFlight.get(k);
47
59
  if (running)
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  withTreeSitterRoot
4
- } from "./chunk-BHWW6FAX.js";
4
+ } from "./chunk-CTB5BAJI.js";
5
5
 
6
6
  // dist/clients/dispatch/facts/tree-sitter-facts.js
7
7
  var withFactTree = withTreeSitterRoot;
@@ -1,13 +1,13 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  getGlobalPiLensDir
4
- } from "./chunk-WMDUT4KH.js";
4
+ } from "./chunk-H65TYP6V.js";
5
5
  import {
6
6
  getTurnId
7
- } from "./chunk-VLQ7UKZH.js";
7
+ } from "./chunk-VCRVNLE7.js";
8
8
  import {
9
9
  BoundedFifoMap
10
- } from "./chunk-GMROJJRN.js";
10
+ } from "./chunk-CB7PEVOJ.js";
11
11
 
12
12
  // dist/clients/custom-rule-locations.js
13
13
  import * as path from "node:path";
@@ -1,10 +1,10 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  isMutatingToolName
4
- } from "./chunk-GIRBSBGL.js";
4
+ } from "./chunk-FCQSZQAT.js";
5
5
  import {
6
6
  normalizeMapKey
7
- } from "./chunk-GMROJJRN.js";
7
+ } from "./chunk-CB7PEVOJ.js";
8
8
 
9
9
  // dist/clients/agent-behavior-client.js
10
10
  var READ_OPS = /* @__PURE__ */ new Set(["read", "bash", "grep", "glob", "find", "rg"]);