pi-lens 4.4.7 → 4.4.9

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 (186) hide show
  1. package/CHANGELOG-USER.md +31 -0
  2. package/CHANGELOG.md +327 -0
  3. package/README.md +13 -2
  4. package/config/dependency-cruiser-eager-allowlist.json +1 -1
  5. package/config/markdownlint/run-no-fix.mjs +36 -0
  6. package/dist/{chunk-4LM3VAZH.js → chunk-2VZ3VN3N.js} +2 -2
  7. package/dist/{chunk-PUZ3E2J4.js → chunk-3HTZDY3C.js} +8 -6
  8. package/dist/{chunk-RORGS5II.js → chunk-3NPWO5UO.js} +7 -13
  9. package/dist/{chunk-MNJIXFX4.js → chunk-47UCC4MM.js} +1 -1
  10. package/dist/chunk-4ENEJHF4.js +198 -0
  11. package/dist/chunk-5GEYJJHG.js +22 -0
  12. package/dist/{chunk-U6VN4NVL.js → chunk-5YSEQHJN.js} +3 -3
  13. package/dist/{chunk-6IR3ZYIB.js → chunk-6GPB3JLL.js} +3 -3
  14. package/dist/{chunk-MB6PXBUA.js → chunk-7R5GZIA6.js} +7 -15
  15. package/dist/{chunk-DH5JPM3K.js → chunk-7UTSNTWM.js} +10 -9
  16. package/dist/{chunk-24BILSZW.js → chunk-7YTRG6YW.js} +2 -2
  17. package/dist/{chunk-KW5JQPO5.js → chunk-AACN5GNE.js} +2 -2
  18. package/dist/{chunk-PKES3ISE.js → chunk-ACRJ2GZ5.js} +2 -2
  19. package/dist/{chunk-4ZYJHQMB.js → chunk-C3YRO3EU.js} +10 -12
  20. package/dist/{chunk-PQJFG24Z.js → chunk-CB7PEVOJ.js} +1300 -946
  21. package/dist/{chunk-ABPKUVA4.js → chunk-CDFJF5YD.js} +1 -1
  22. package/dist/{chunk-T7A2HK2B.js → chunk-CJS6WE66.js} +17 -18
  23. package/dist/{chunk-3YY7IXIL.js → chunk-CM6BDY4E.js} +14 -60
  24. package/dist/{chunk-RZOXUSPC.js → chunk-CZCAZVTD.js} +16 -2
  25. package/dist/chunk-DGKFWQK4.js +23 -0
  26. package/dist/{chunk-NA7SEXHE.js → chunk-E65WJVI5.js} +7 -9
  27. package/dist/{chunk-2TF6RXWB.js → chunk-EKNYSXFB.js} +8 -10
  28. package/dist/{chunk-RRV3FNNM.js → chunk-EY6LY2HO.js} +27 -30
  29. package/dist/{chunk-LBLBAFG3.js → chunk-F6BEQWAK.js} +17 -5
  30. package/dist/{chunk-4L36HG27.js → chunk-FGNSESAC.js} +12 -14
  31. package/dist/{chunk-3FRLWYBG.js → chunk-FRUBVFXV.js} +39 -42
  32. package/dist/{chunk-FB5SCCPT.js → chunk-G22UNQID.js} +14 -15
  33. package/dist/{chunk-LV4UMYVH.js → chunk-GQTQUNCG.js} +26 -27
  34. package/dist/{chunk-E7HJ56Y7.js → chunk-H3BVMK47.js} +64 -73
  35. package/dist/chunk-H6FLQ5NW.js +28 -0
  36. package/dist/{chunk-QHSNL7B2.js → chunk-HEA3EM23.js} +15 -19
  37. package/dist/{chunk-AWDSEDER.js → chunk-HSOBIN22.js} +2 -2
  38. package/dist/{chunk-EAOK7MIZ.js → chunk-HYSKJMZK.js} +17 -4
  39. package/dist/{chunk-VUZWQ7UG.js → chunk-IICERRFF.js} +46 -72
  40. package/dist/{chunk-OXOI55RU.js → chunk-IILEH3ZC.js} +8 -10
  41. package/dist/{chunk-ZKXQKGWZ.js → chunk-J3Q2NYJR.js} +4 -3
  42. package/dist/{chunk-YHC2O2WO.js → chunk-JUZ67QZQ.js} +20 -9
  43. package/dist/chunk-KR5VGMVT.js +25 -0
  44. package/dist/{chunk-F7K5IBZG.js → chunk-KV6GQOGN.js} +41 -44
  45. package/dist/{chunk-SNDXCFRS.js → chunk-KXMJLOZF.js} +25 -23
  46. package/dist/{chunk-CB4WHS4H.js → chunk-L4Y3ROKQ.js} +3 -3
  47. package/dist/{chunk-3F6BMY53.js → chunk-L6WBJGQS.js} +1 -1
  48. package/dist/{chunk-MPKRJBPK.js → chunk-L7O774U7.js} +30 -32
  49. package/dist/{chunk-URCQWAQ4.js → chunk-LAHHGNAY.js} +21 -21
  50. package/dist/{chunk-V63BC55Q.js → chunk-LT62P654.js} +1 -1
  51. package/dist/{chunk-ZMAUPOMG.js → chunk-LWOM6LVS.js} +34 -34
  52. package/dist/{chunk-HO6LWE2E.js → chunk-MKPDIAZH.js} +21 -1
  53. package/dist/{chunk-2PHMIAKO.js → chunk-MN635QYA.js} +3 -4
  54. package/dist/{chunk-KDX35VXP.js → chunk-MQ4PPCJB.js} +166 -149
  55. package/dist/{chunk-QOE342SU.js → chunk-MRLH4MYU.js} +2 -2
  56. package/dist/{chunk-CE6VMBCB.js → chunk-N56BNAA6.js} +20 -21
  57. package/dist/{chunk-L3CMBQMH.js → chunk-N5CEGQPG.js} +14 -17
  58. package/dist/{chunk-7E2563GA.js → chunk-NCLO6E6N.js} +13 -33
  59. package/dist/{chunk-J6JP25XU.js → chunk-NL5LSKVD.js} +4 -3
  60. package/dist/{chunk-U7BD2QL7.js → chunk-NMUSOZ2D.js} +10 -12
  61. package/dist/{chunk-BZARLRJW.js → chunk-NOWH2VA2.js} +8 -33
  62. package/dist/{chunk-U2SDMG7C.js → chunk-NUSXS6YB.js} +6 -5
  63. package/dist/{chunk-ZJTT47IG.js → chunk-OSEKJEUU.js} +2 -2
  64. package/dist/{chunk-FZKFVUEC.js → chunk-OUYAUXAT.js} +647 -355
  65. package/dist/{chunk-ZE3KXHS7.js → chunk-PBZNYHMM.js} +84 -4
  66. package/dist/{chunk-U5HPROLA.js → chunk-PIIUNJIT.js} +2 -4
  67. package/dist/chunk-PKLB2XJL.js +8 -0
  68. package/dist/{chunk-RC2Z6K47.js → chunk-PRHYIA6X.js} +15 -6
  69. package/dist/{chunk-RQS4QQSD.js → chunk-PXQ45SGD.js} +2 -2
  70. package/dist/chunk-Q6JQKWPK.js +25 -0
  71. package/dist/{chunk-F6X3YJWD.js → chunk-QB7T2PHK.js} +2 -2
  72. package/dist/{chunk-TIQJPRDD.js → chunk-QGITU23N.js} +3 -2
  73. package/dist/chunk-QJJKOHLH.js +57 -0
  74. package/dist/{chunk-4LOE5R5P.js → chunk-QP33NKYC.js} +18 -15
  75. package/dist/{chunk-N5WSK2K7.js → chunk-QVBOXT3L.js} +12 -17
  76. package/dist/{chunk-DPGEAHZT.js → chunk-RNJFRXEN.js} +10 -18
  77. package/dist/{chunk-EKWX4WD3.js → chunk-RNXOWDM6.js} +10 -10
  78. package/dist/{chunk-O4BJFESU.js → chunk-RTFMDIKV.js} +1 -1
  79. package/dist/{chunk-LS3QJRUB.js → chunk-SIQHOB6P.js} +11 -13
  80. package/dist/{chunk-3K2F6UDZ.js → chunk-SLSMJPEF.js} +43 -42
  81. package/dist/chunk-T5QSLSMM.js +50 -0
  82. package/dist/chunk-TGQDAG4B.js +88 -0
  83. package/dist/{chunk-4YHYPW2G.js → chunk-THYHUIDR.js} +44 -13
  84. package/dist/{chunk-YVHBNSME.js → chunk-TMNUTMT5.js} +1099 -1100
  85. package/dist/{chunk-WDBICWH3.js → chunk-TOE2RRCS.js} +1 -1
  86. package/dist/chunk-TYHPVE5H.js +25 -0
  87. package/dist/chunk-UAKO2M6B.js +73 -0
  88. package/dist/chunk-UC5AXW5Z.js +20 -0
  89. package/dist/chunk-UTJP6WOS.js +28 -0
  90. package/dist/{chunk-DQZFQSR5.js → chunk-UXTQ3QPD.js} +4 -4
  91. package/dist/chunk-UYXV5NIS.js +20 -0
  92. package/dist/{chunk-KKCK636N.js → chunk-V2WDBOLZ.js} +10 -12
  93. package/dist/{chunk-PR6PO3ES.js → chunk-V67D6TMU.js} +22 -20
  94. package/dist/{chunk-VSFLRN5Y.js → chunk-VCRVNLE7.js} +135 -2
  95. package/dist/{chunk-CPSR3AVL.js → chunk-VO4JFPTV.js} +2 -2
  96. package/dist/{chunk-XT2HTCJ5.js → chunk-VWLSU3XV.js} +6 -5
  97. package/dist/{chunk-WME2OQST.js → chunk-W5E72HJA.js} +66 -24
  98. package/dist/{chunk-LLS45EWB.js → chunk-W7TY6HYX.js} +6 -8
  99. package/dist/{chunk-CCV2EU7T.js → chunk-WSSLVMDA.js} +12 -13
  100. package/dist/{chunk-YISME6ON.js → chunk-WTB4GKMH.js} +10 -1
  101. package/dist/{chunk-KPPJTH44.js → chunk-X5BJ3G2P.js} +64 -35
  102. package/dist/{chunk-JMEKXFOL.js → chunk-XKFO2SZV.js} +39 -34
  103. package/dist/{chunk-HR3OJ3TH.js → chunk-XLAI7UYY.js} +84 -31
  104. package/dist/{chunk-H7OR7DFZ.js → chunk-XO756WE5.js} +53 -37
  105. package/dist/{chunk-F5Z6URKM.js → chunk-XVB3Q2PG.js} +2 -4
  106. package/dist/{chunk-R5MOQM2H.js → chunk-YOXCCJDF.js} +607 -366
  107. package/dist/{chunk-ZGSJDWQU.js → chunk-ZCQBNPRH.js} +2 -2
  108. package/dist/chunk-ZD4KVFXI.js +234 -0
  109. package/dist/{chunk-WGRJOXED.js → chunk-ZDMFGACN.js} +1295 -966
  110. package/dist/{chunk-OSTKYB55.js → chunk-ZMMHHXSW.js} +1 -1
  111. package/dist/{chunk-75GAYVNO.js → chunk-ZPM7ZIFL.js} +6 -6
  112. package/dist/{chunk-LUBPZN36.js → chunk-ZVCDHYWZ.js} +9 -11
  113. package/dist/{chunk-Y7F7IEE3.js → chunk-ZZN74OGD.js} +102 -7
  114. package/dist/{chunk-L5JYIU47.js → chunk-ZZSJAR76.js} +39 -20
  115. package/dist/index.js +10933 -8644
  116. package/dist/mcp/analyze-cli.js +12 -17
  117. package/dist/mcp/cli.js +43 -42
  118. package/dist/mcp/server.js +3073 -1147
  119. package/dist/mcp/worker.js +61 -61
  120. package/dist/probes/installer.js +18 -19
  121. package/docs/adr/0003-git-guard-latch-writer.md +11 -6
  122. package/docs/agent-tools.md +58 -16
  123. package/docs/alignment-families.md +29 -0
  124. package/docs/analysisall.md +1 -1
  125. package/docs/ast-grep_rules_catalog.md +6 -4
  126. package/docs/ci-bot-pr-checks.md +128 -0
  127. package/docs/configuration.md +150 -12
  128. package/docs/defect-shapes.md +107 -15
  129. package/docs/engineering-principles.md +27 -2
  130. package/docs/environment-variables.md +18 -1
  131. package/docs/features.md +14 -7
  132. package/docs/globalconfig.md +11 -3
  133. package/docs/invariants/git-guard-host.md +7 -3
  134. package/docs/invariants/language-config.md +15 -4
  135. package/docs/invariants/lsp-trust-exec.md +25 -4
  136. package/docs/invariants/paths-os.md +4 -2
  137. package/docs/invariants/session-telemetry.md +2 -2
  138. package/docs/language-coverage.md +1 -0
  139. package/docs/lsp-capability-matrix.md +167 -65
  140. package/docs/lsp-idle-eviction.md +4 -1
  141. package/docs/merge-queue-rollout.md +10 -8
  142. package/docs/module-report-read-symbol.md +34 -23
  143. package/docs/pi-lens-fixer.md +34 -17
  144. package/docs/pi-lens-investigator.md +3 -0
  145. package/docs/pi-lens-merge-policy.md +34 -17
  146. package/docs/pi-lens-monitor.md +9 -0
  147. package/docs/pi-lens-orchestration.md +4 -1
  148. package/docs/pi-lens-reviewer.md +6 -6
  149. package/docs/pi-lens-subagent.md +19 -3
  150. package/docs/public-api-stability.md +57 -7
  151. package/docs/release-qa-baseline.md +7 -4
  152. package/docs/schema/pi-lens-config-v1.json +21 -2
  153. package/docs/servercapabilities.md +3 -1
  154. package/docs/settings.md +11 -7
  155. package/docs/word-index.md +20 -7
  156. package/package.json +11 -4
  157. package/rules/ast-grep-rules/rule-tests/no-accumulating-spread-js-test.yml +37 -0
  158. package/rules/ast-grep-rules/rule-tests/ts-redundant-filter-map-test.yml +12 -1
  159. package/rules/ast-grep-rules/rule-tests-disabled/filter-then-map-js-test.yml +12 -0
  160. package/rules/ast-grep-rules/rule-tests-disabled/filter-then-map-test.yml +25 -0
  161. package/rules/ast-grep-rules/rules/no-accumulating-spread-js.yml +49 -1
  162. package/rules/ast-grep-rules/rules/no-sql-in-code-execute-js.yml +1 -2
  163. package/rules/ast-grep-rules/rules/no-sql-in-code-execute.yml +1 -2
  164. package/rules/ast-grep-rules/rules/ts-redundant-filter-map.yml +9 -1
  165. package/rules/ast-grep-rules/rules-disabled/filter-then-map-js.yml +17 -0
  166. package/rules/ast-grep-rules/rules-disabled/filter-then-map.yml +36 -0
  167. package/rules/ast-grep-rules/self-scan-baseline.json +1 -1
  168. package/scripts/download-grammars.js +3 -2
  169. package/skills/pi-lens-lsp-navigation/SKILL.md +5 -1
  170. package/dist/chunk-46TNM7XZ.js +0 -88
  171. package/dist/chunk-72OKUXSD.js +0 -31
  172. package/dist/chunk-7GLOLOSH.js +0 -57
  173. package/dist/chunk-AKUUMGD5.js +0 -26
  174. package/dist/chunk-ASUXV767.js +0 -22
  175. package/dist/chunk-CTADOKYM.js +0 -25
  176. package/dist/chunk-GNSIWBAT.js +0 -106
  177. package/dist/chunk-HWDAVBFU.js +0 -49
  178. package/dist/chunk-JJ2RRESP.js +0 -58
  179. package/dist/chunk-KXF5R4UN.js +0 -48
  180. package/dist/chunk-LSC3VADM.js +0 -23
  181. package/dist/chunk-OE5ZBP7F.js +0 -443
  182. package/dist/chunk-SHLDT3OI.js +0 -27
  183. package/dist/chunk-UF7RTZSO.js +0 -27
  184. package/dist/chunk-W4WP2ERB.js +0 -30
  185. package/dist/chunk-YES5CACN.js +0 -73
  186. package/dist/chunk-Z2XAOKHK.js +0 -136
@@ -3,7 +3,7 @@ import {
3
3
  BoundedLruCache,
4
4
  BoundedSet,
5
5
  normalizeMapKey
6
- } from "./chunk-PQJFG24Z.js";
6
+ } from "./chunk-CB7PEVOJ.js";
7
7
 
8
8
  // dist/clients/dispatch/fact-store.js
9
9
  var capacityEvictionReporter;
@@ -1,29 +1,29 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  getStartupScanMaxSourceFilesDerived
4
- } from "./chunk-QOE342SU.js";
4
+ } from "./chunk-MRLH4MYU.js";
5
5
  import {
6
6
  shouldRecurseIntoDir,
7
7
  walkTreeStackAsync,
8
8
  walkTreeStackSync
9
- } from "./chunk-ZGSJDWQU.js";
9
+ } from "./chunk-ZCQBNPRH.js";
10
10
  import {
11
11
  getProjectIgnoreMatcher
12
- } from "./chunk-YVHBNSME.js";
12
+ } from "./chunk-TMNUTMT5.js";
13
13
  import {
14
14
  getDirectoryMarkers,
15
15
  registerWorkspaceTopologyReset
16
- } from "./chunk-J6JP25XU.js";
16
+ } from "./chunk-NL5LSKVD.js";
17
17
  import {
18
18
  lazyEnvNumber
19
- } from "./chunk-VSFLRN5Y.js";
19
+ } from "./chunk-VCRVNLE7.js";
20
20
  import {
21
21
  BoundedLruCache,
22
22
  isAtOrAboveHomeDir,
23
23
  normalizeMapKey,
24
24
  realpathOrResolve,
25
25
  walkUpDirs
26
- } from "./chunk-PQJFG24Z.js";
26
+ } from "./chunk-CB7PEVOJ.js";
27
27
 
28
28
  // dist/clients/startup-scan.js
29
29
  import * as os from "node:os";
@@ -1,22 +1,20 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  parseSymbolKey
4
- } from "./chunk-6IR3ZYIB.js";
4
+ } from "./chunk-6GPB3JLL.js";
5
5
  import {
6
6
  isTestRoleCollateral
7
- } from "./chunk-MNJIXFX4.js";
7
+ } from "./chunk-47UCC4MM.js";
8
8
  import "./chunk-3MED75HT.js";
9
- import "./chunk-YVHBNSME.js";
10
- import "./chunk-KPPJTH44.js";
11
- import "./chunk-J6JP25XU.js";
12
- import "./chunk-U5HPROLA.js";
13
- import "./chunk-WME2OQST.js";
14
- import "./chunk-KXF5R4UN.js";
9
+ import "./chunk-TMNUTMT5.js";
10
+ import "./chunk-X5BJ3G2P.js";
11
+ import "./chunk-NL5LSKVD.js";
12
+ import "./chunk-PIIUNJIT.js";
13
+ import "./chunk-W5E72HJA.js";
15
14
  import "./chunk-S26LC76R.js";
16
- import "./chunk-Z2XAOKHK.js";
17
- import "./chunk-VSFLRN5Y.js";
15
+ import "./chunk-VCRVNLE7.js";
18
16
  import "./chunk-LJDODBBZ.js";
19
- import "./chunk-PQJFG24Z.js";
17
+ import "./chunk-CB7PEVOJ.js";
20
18
  import "./chunk-NXL4FFQQ.js";
21
19
 
22
20
  // dist/clients/project-diagnostics/runner-adapters/call-graph-impact.js
@@ -1,13 +1,12 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
- classifyRunOutcome,
4
- firstOutputLine,
5
- processCutShort
6
- } from "./chunk-JJ2RRESP.js";
3
+ truncatedByOutputCap
4
+ } from "./chunk-PIIUNJIT.js";
7
5
  import {
6
+ LEDGER_FIELD_MAX,
8
7
  incrementDegradationCount,
9
8
  truncateForLedger
10
- } from "./chunk-WME2OQST.js";
9
+ } from "./chunk-W5E72HJA.js";
11
10
 
12
11
  // dist/clients/dispatch/types.js
13
12
  function spanOverlapsModifiedRanges(startLine, endLine, ranges) {
@@ -15,12 +14,53 @@ function spanOverlapsModifiedRanges(startLine, endLine, ranges) {
15
14
  return true;
16
15
  return ranges.some((r) => startLine <= r.end && endLine >= r.start);
17
16
  }
17
+ var unchecked = (reason, surface = {}) => ({
18
+ checked: false,
19
+ reason,
20
+ ...surface
21
+ });
22
+ var widgetUncheckedReason = (verdict) => verdict.checked || verdict.inapplicable ? void 0 : verdict.reason;
23
+ function checkedVerdict(tier, rows) {
24
+ const [first, ...rest] = rows.filter((row) => row.inconclusive !== true && hasUsableResult(row)).map((row) => row.runnerId);
25
+ if (first === void 0)
26
+ return void 0;
27
+ const completed = [first, ...rest];
28
+ return { checked: true, tier, runnerIds: completed };
29
+ }
30
+ function emptyDispatchResult(verdict) {
31
+ return {
32
+ diagnostics: [],
33
+ blockers: [],
34
+ warnings: [],
35
+ baselineWarningCount: 0,
36
+ fixed: [],
37
+ resolvedCount: 0,
38
+ output: "",
39
+ blockerOutput: "",
40
+ hasBlockers: false,
41
+ verdict
42
+ };
43
+ }
44
+ var IN_FLIGHT_REASON = "the primary check is still running (findings arrive at turn end if it lands)";
45
+ var NO_ANALYZER_REASON = "no analyzer handles this file type";
46
+ var noPrimaryCheckerReason = (lspEnabled) => `no primary checker is enabled for this kind${lspEnabled ? "" : " (--no-lsp turns off its language server)"}`;
18
47
  var RUNNER_SKIP_REASONS = [
19
48
  "no-files-matched",
20
49
  "configured-non-biome-linter",
21
50
  "dialect-unsupported",
22
- "covered-by-primary"
51
+ "covered-by-primary",
52
+ "disabled-by-config",
53
+ "not-enabled"
23
54
  ];
55
+ var NOT_APPLICABLE_SKIP_REASONS = [
56
+ "no-files-matched",
57
+ "configured-non-biome-linter",
58
+ "dialect-unsupported",
59
+ "not-enabled"
60
+ ];
61
+ function isNotApplicableSkipReason(value) {
62
+ return NOT_APPLICABLE_SKIP_REASONS.some((reason) => reason === value);
63
+ }
24
64
  function isRunnerSkipReason(value) {
25
65
  return RUNNER_SKIP_REASONS.some((reason) => reason === value);
26
66
  }
@@ -75,12 +115,56 @@ function reachedNoVerdict(result) {
75
115
  case "deferred":
76
116
  return true;
77
117
  case "skipped":
78
- return !isRunnerSkipReason(result.skipReason);
118
+ return !isRunnerSkipReason(result.skipReason) || result.skipReason === "not-enabled";
79
119
  default:
80
120
  return false;
81
121
  }
82
122
  }
83
123
 
124
+ // dist/clients/dispatch/runners/utils/spawn-outcome.js
125
+ function firstOutputLine(text, max = LEDGER_FIELD_MAX) {
126
+ for (const line of String(text ?? "").split(/\r?\n/)) {
127
+ const trimmed = line.trim();
128
+ if (!trimmed)
129
+ continue;
130
+ return trimmed.length > max ? `${trimmed.slice(0, max)}\u2026` : trimmed;
131
+ }
132
+ return "";
133
+ }
134
+ function processCutShort(result) {
135
+ return Boolean(result.error || result.signal) || (result.status ?? null) === null;
136
+ }
137
+ function classifyRunOutcome(input) {
138
+ const { result, exitCodes, reportMissing } = input;
139
+ const status = result.status ?? null;
140
+ const signal = result.signal ?? null;
141
+ const output = input.output ?? result.stdout;
142
+ const base = {
143
+ status,
144
+ signal,
145
+ firstOutputLine: firstOutputLine(result.stderr) || firstOutputLine(result.stdout) || firstOutputLine(result.error?.message),
146
+ // Evidence carried alongside the verdict, never part of deciding it — the
147
+ // branches below are byte-for-byte the pre-#2100 rules.
148
+ outputCapped: truncatedByOutputCap(result)
149
+ };
150
+ if (processCutShort(result) || status === null) {
151
+ return { kind: "did-not-run", ...base };
152
+ }
153
+ if (reportMissing) {
154
+ return status === 0 ? { kind: "ran", ...base } : { kind: "report-missing", ...base };
155
+ }
156
+ if (status !== 0 && exitCodes && !exitCodes.ran.includes(status)) {
157
+ return { kind: "rejected-invocation", ...base };
158
+ }
159
+ if (status !== 0 && !output?.trim()) {
160
+ return { kind: "did-not-run", ...base };
161
+ }
162
+ return { kind: "ran", ...base };
163
+ }
164
+ function spawnFailedWithNoOutput(result, output = result.stdout) {
165
+ return classifyRunOutcome({ result, output }).kind !== "ran" && !output?.trim();
166
+ }
167
+
84
168
  // dist/clients/dispatch/runners/utils/tool-failure.js
85
169
  function describeEnding(input) {
86
170
  if (input.outputCapped)
@@ -205,6 +289,14 @@ function finishParsedRun(input) {
205
289
 
206
290
  export {
207
291
  spanOverlapsModifiedRanges,
292
+ unchecked,
293
+ widgetUncheckedReason,
294
+ checkedVerdict,
295
+ emptyDispatchResult,
296
+ IN_FLIGHT_REASON,
297
+ NO_ANALYZER_REASON,
298
+ noPrimaryCheckerReason,
299
+ isNotApplicableSkipReason,
208
300
  isRunnerSkipReason,
209
301
  isRunnerClaimSource,
210
302
  findingsResult,
@@ -212,6 +304,9 @@ export {
212
304
  faultSkip,
213
305
  hasUsableResult,
214
306
  reachedNoVerdict,
307
+ firstOutputLine,
308
+ processCutShort,
309
+ spawnFailedWithNoOutput,
215
310
  formatToolFailure,
216
311
  skipUnlessToolRan,
217
312
  faultIfCutShort,
@@ -5,33 +5,33 @@ import {
5
5
  import {
6
6
  getUserRuleRoot,
7
7
  ruleCorpusFingerprintForCycle
8
- } from "./chunk-U6VN4NVL.js";
8
+ } from "./chunk-5YSEQHJN.js";
9
9
  import {
10
10
  getPackageRoot,
11
11
  js_yaml_default,
12
12
  resolvePackagePath
13
- } from "./chunk-TIQJPRDD.js";
13
+ } from "./chunk-QGITU23N.js";
14
14
  import {
15
15
  EXTENSION_TO_GRAMMAR
16
- } from "./chunk-YISME6ON.js";
16
+ } from "./chunk-WTB4GKMH.js";
17
17
  import {
18
18
  withTimeout
19
- } from "./chunk-HO6LWE2E.js";
19
+ } from "./chunk-MKPDIAZH.js";
20
20
  import {
21
21
  transientRetryDelayMs
22
- } from "./chunk-KW5JQPO5.js";
22
+ } from "./chunk-AACN5GNE.js";
23
23
  import {
24
24
  getProjectIgnoreMatcher,
25
25
  isExcludedDirName
26
- } from "./chunk-YVHBNSME.js";
26
+ } from "./chunk-TMNUTMT5.js";
27
27
  import {
28
28
  notifyUserDegradation
29
- } from "./chunk-KPPJTH44.js";
29
+ } from "./chunk-X5BJ3G2P.js";
30
30
  import {
31
31
  assertInstallAllowed,
32
32
  getProjectTrustGeneration,
33
33
  writeFileAtomic
34
- } from "./chunk-U5HPROLA.js";
34
+ } from "./chunk-PIIUNJIT.js";
35
35
  import {
36
36
  compareOrdinal,
37
37
  escapeRegExp,
@@ -39,22 +39,21 @@ import {
39
39
  incrementDegradationCount,
40
40
  recordDegradation,
41
41
  recordDegradationOnce
42
- } from "./chunk-WME2OQST.js";
43
- import {
44
- logLatency
45
- } from "./chunk-Z2XAOKHK.js";
42
+ } from "./chunk-W5E72HJA.js";
46
43
  import {
47
44
  createNdjsonLogger,
48
45
  getGlobalPiLensLogDir,
49
46
  getMaxLogSizeMB,
50
- isTestMode
51
- } from "./chunk-VSFLRN5Y.js";
47
+ isTestMode,
48
+ logLatency
49
+ } from "./chunk-VCRVNLE7.js";
52
50
  import {
53
51
  BoundedFifoMap,
54
52
  normalizeFilePath,
55
53
  normalizeLoggedPath,
54
+ toPosix,
56
55
  walkUpDirs
57
- } from "./chunk-PQJFG24Z.js";
56
+ } from "./chunk-CB7PEVOJ.js";
58
57
 
59
58
  // dist/clients/tree-sitter-logger.js
60
59
  import * as path from "node:path";
@@ -1645,7 +1644,7 @@ function str(value) {
1645
1644
  return typeof value === "string" || typeof value === "number" || typeof value === "boolean" ? String(value) : void 0;
1646
1645
  }
1647
1646
  function isDisabledQueryFilePath(filePath) {
1648
- const normalized = filePath.replaceAll("\\", "/");
1647
+ const normalized = toPosix(filePath);
1649
1648
  const parts = normalized.split("/").filter(Boolean);
1650
1649
  const parent = parts.length >= 2 ? parts[parts.length - 2] : "";
1651
1650
  return isDisabledQueryDirectoryName(parent);
@@ -2008,6 +2007,28 @@ var queryLoader = new TreeSitterQueryLoader();
2008
2007
  var _require2 = createRequire2(import.meta.url);
2009
2008
  var TREE_SITTER_MAX_SCAN_FILES = 2e4;
2010
2009
  var QUERY_BATCH_MAX_LOAD_FAILURES = 3;
2010
+ var BATCH_IDENTITY_IGNORED_FIELDS = /* @__PURE__ */ new Set([
2011
+ "category",
2012
+ "description",
2013
+ "tags",
2014
+ "cwe",
2015
+ "owasp",
2016
+ "confidence",
2017
+ "predicates"
2018
+ ]);
2019
+ function queryBatchIdentity(queryDefs) {
2020
+ const canonical = queryDefs.map((queryDef) => {
2021
+ const fields = [];
2022
+ for (const [field, value] of Object.entries(queryDef)) {
2023
+ if (value === void 0 || BATCH_IDENTITY_IGNORED_FIELDS.has(field)) {
2024
+ continue;
2025
+ }
2026
+ fields.push([field, value]);
2027
+ }
2028
+ return fields.sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0);
2029
+ });
2030
+ return crypto3.createHash("sha256").update(JSON.stringify(canonical)).digest("hex");
2031
+ }
2011
2032
  var NO_NESTED_ANCHOR_VISIT_CAP = 1e4;
2012
2033
  var PYTHON_SQL_SINK_METHODS = /* @__PURE__ */ new Set([
2013
2034
  "execute",
@@ -3638,8 +3659,7 @@ var TreeSitterClient = class _TreeSitterClient {
3638
3659
  * pattern-index → rule map. Cached per language + rule-set identity.
3639
3660
  */
3640
3661
  async compileQueryBatch(queryDefs, languageId, retain = false) {
3641
- const identity = crypto3.createHash("sha256").update(JSON.stringify(queryDefs)).digest("hex");
3642
- const cacheKey = this.getQueryCacheKey(`batch:${identity}`, languageId);
3662
+ const cacheKey = this.getQueryCacheKey(`batch:${queryBatchIdentity(queryDefs)}`, languageId);
3643
3663
  const cached = this.queryBatchCache.get(cacheKey);
3644
3664
  if (cached !== void 0) {
3645
3665
  this.queryBatchCache.delete(cacheKey);
@@ -3672,8 +3692,7 @@ var TreeSitterClient = class _TreeSitterClient {
3672
3692
  }
3673
3693
  }
3674
3694
  async compileQueryBatchOnce(queryDefs, languageId, lease) {
3675
- const identity = crypto3.createHash("sha256").update(JSON.stringify(queryDefs)).digest("hex");
3676
- const cacheKey = this.getQueryCacheKey(`batch:${identity}`, languageId);
3695
+ const cacheKey = this.getQueryCacheKey(`batch:${queryBatchIdentity(queryDefs)}`, languageId);
3677
3696
  const inputKeys = [
3678
3697
  cacheKey,
3679
3698
  ...queryDefs.map((queryDef) => this.getQueryCacheKey(`raw:${queryDef.id}:${queryDef.query}`, languageId))