pi-lens 4.4.9 → 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 (126) hide show
  1. package/CHANGELOG-USER.md +6 -6
  2. package/CHANGELOG.md +80 -0
  3. package/README.md +2 -0
  4. package/dist/{chunk-CM6BDY4E.js → chunk-2ADRLTM2.js} +2 -2
  5. package/dist/{chunk-XO756WE5.js → chunk-2LVJQU3I.js} +15 -14
  6. package/dist/{chunk-W5E72HJA.js → chunk-3FRI5H4T.js} +13 -1
  7. package/dist/{chunk-N5CEGQPG.js → chunk-3HM4BUHR.js} +11 -11
  8. package/dist/{chunk-UAKO2M6B.js → chunk-3QWVOBZJ.js} +30 -30
  9. package/dist/{chunk-QB7T2PHK.js → chunk-46TQJSUE.js} +3 -1
  10. package/dist/{chunk-ZZN74OGD.js → chunk-4ITEFRDH.js} +3 -2
  11. package/dist/{chunk-C3YRO3EU.js → chunk-4NCDHTFI.js} +6 -6
  12. package/dist/{chunk-G22UNQID.js → chunk-6I44EDNQ.js} +10 -10
  13. package/dist/{chunk-OUYAUXAT.js → chunk-6MDM5MQT.js} +169 -56
  14. package/dist/{chunk-CDFJF5YD.js → chunk-7JX3RNG4.js} +1 -1
  15. package/dist/{chunk-PIIUNJIT.js → chunk-7WJ55KBN.js} +1 -1
  16. package/dist/{chunk-ZMMHHXSW.js → chunk-A5TEJZGJ.js} +1 -0
  17. package/dist/{chunk-HEA3EM23.js → chunk-ALIZWXHZ.js} +8 -8
  18. package/dist/{chunk-MQ4PPCJB.js → chunk-AON2QIJF.js} +32 -36
  19. package/dist/{chunk-DGKFWQK4.js → chunk-B2YUE6YD.js} +7 -7
  20. package/dist/{chunk-GQTQUNCG.js → chunk-B6HXETWY.js} +20 -20
  21. package/dist/{chunk-KR5VGMVT.js → chunk-BDR5MEZY.js} +9 -9
  22. package/dist/{chunk-MRLH4MYU.js → chunk-BGLS5SDN.js} +1 -1
  23. package/dist/{chunk-PRHYIA6X.js → chunk-BRESRQBE.js} +4 -4
  24. package/dist/{chunk-5GEYJJHG.js → chunk-C6AODRNU.js} +7 -7
  25. package/dist/{chunk-ZZSJAR76.js → chunk-CTB5BAJI.js} +24 -11
  26. package/dist/{chunk-IICERRFF.js → chunk-CYUJB552.js} +4 -4
  27. package/dist/{chunk-THYHUIDR.js → chunk-CZAWWXP6.js} +1 -1
  28. package/dist/{chunk-QJJKOHLH.js → chunk-DBS736MA.js} +27 -27
  29. package/dist/{chunk-XLAI7UYY.js → chunk-DOUAWKLO.js} +8 -8
  30. package/dist/{chunk-LAHHGNAY.js → chunk-DVRJBQOJ.js} +12 -12
  31. package/dist/{chunk-KV6GQOGN.js → chunk-E4VXKTBR.js} +28 -28
  32. package/dist/{chunk-XKFO2SZV.js → chunk-F6FT6BVQ.js} +26 -26
  33. package/dist/{chunk-VWLSU3XV.js → chunk-FCQSZQAT.js} +1 -1
  34. package/dist/{chunk-X5BJ3G2P.js → chunk-FOEPIX76.js} +1 -1
  35. package/dist/{chunk-F6BEQWAK.js → chunk-GMC4ZGYR.js} +4 -4
  36. package/dist/{chunk-TOE2RRCS.js → chunk-GTTMQ6XB.js} +1 -1
  37. package/dist/{chunk-5YSEQHJN.js → chunk-GUGKKGG7.js} +1 -1
  38. package/dist/{chunk-OSEKJEUU.js → chunk-GVWIU7M7.js} +1 -1
  39. package/dist/{chunk-TMNUTMT5.js → chunk-H65TYP6V.js} +25 -4
  40. package/dist/{chunk-7R5GZIA6.js → chunk-HILZE4BQ.js} +5 -4
  41. package/dist/{chunk-HYSKJMZK.js → chunk-HSYFLOZY.js} +2 -2
  42. package/dist/{chunk-V2WDBOLZ.js → chunk-I32RSMH6.js} +7 -7
  43. package/dist/chunk-I74RQGKA.js +88 -0
  44. package/dist/{chunk-RNXOWDM6.js → chunk-IDCTDKIA.js} +3 -3
  45. package/dist/{chunk-TYHPVE5H.js → chunk-IK4YS3KC.js} +8 -8
  46. package/dist/{chunk-ZCQBNPRH.js → chunk-IL6PIV33.js} +2 -2
  47. package/dist/{chunk-6GPB3JLL.js → chunk-J6BR5XN2.js} +2 -2
  48. package/dist/{chunk-UC5AXW5Z.js → chunk-JKOZ2Z4U.js} +6 -6
  49. package/dist/{chunk-WSSLVMDA.js → chunk-JZQGRARR.js} +7 -7
  50. package/dist/{chunk-7UTSNTWM.js → chunk-K6WIBVMK.js} +4 -3
  51. package/dist/{chunk-QVBOXT3L.js → chunk-KDCIG23C.js} +6 -6
  52. package/dist/{chunk-NOWH2VA2.js → chunk-KFRDFAOE.js} +4 -4
  53. package/dist/{chunk-NMUSOZ2D.js → chunk-KJ3AHOCK.js} +6 -6
  54. package/dist/{chunk-E65WJVI5.js → chunk-KSTQ4VXT.js} +5 -5
  55. package/dist/{chunk-4ENEJHF4.js → chunk-MAD4QJTP.js} +9 -9
  56. package/dist/{chunk-KXMJLOZF.js → chunk-NBM7PNBP.js} +7 -7
  57. package/dist/{chunk-7YTRG6YW.js → chunk-NE4EFHJX.js} +1 -1
  58. package/dist/{chunk-AACN5GNE.js → chunk-NPNFGYLV.js} +3 -1
  59. package/dist/{chunk-H3BVMK47.js → chunk-OPFNQBS5.js} +5 -5
  60. package/dist/{chunk-WTB4GKMH.js → chunk-OTSTS7L2.js} +11 -2
  61. package/dist/{chunk-JUZ67QZQ.js → chunk-PTSA6QKL.js} +7 -7
  62. package/dist/{chunk-ZPM7ZIFL.js → chunk-Q2VCKC3X.js} +3 -3
  63. package/dist/{chunk-2VZ3VN3N.js → chunk-QHOTTC4A.js} +2 -2
  64. package/dist/{chunk-L7O774U7.js → chunk-QL37SGTS.js} +105 -13
  65. package/dist/{chunk-FRUBVFXV.js → chunk-QMV2APEH.js} +27 -27
  66. package/dist/{chunk-L4Y3ROKQ.js → chunk-QSCZAP24.js} +3 -3
  67. package/dist/{chunk-IILEH3ZC.js → chunk-QUPYLQA4.js} +4 -4
  68. package/dist/{chunk-3NPWO5UO.js → chunk-QUQY3IME.js} +4 -4
  69. package/dist/{chunk-FGNSESAC.js → chunk-QWTHFFU6.js} +8 -8
  70. package/dist/{chunk-EKNYSXFB.js → chunk-RQRKIRFY.js} +5 -5
  71. package/dist/{chunk-NCLO6E6N.js → chunk-S3WFVG5P.js} +14 -21
  72. package/dist/{chunk-RTFMDIKV.js → chunk-SG2JQ2YP.js} +1 -1
  73. package/dist/{chunk-VO4JFPTV.js → chunk-SJQUWQR6.js} +2 -2
  74. package/dist/{chunk-SLSMJPEF.js → chunk-SKVNHCT5.js} +32 -32
  75. package/dist/{chunk-3HTZDY3C.js → chunk-TJQSYX3J.js} +3 -3
  76. package/dist/{chunk-RNJFRXEN.js → chunk-TLWFZ66Y.js} +3 -3
  77. package/dist/{chunk-LWOM6LVS.js → chunk-TN5CWX5D.js} +26 -26
  78. package/dist/{chunk-UTJP6WOS.js → chunk-TQHOKMVZ.js} +11 -11
  79. package/dist/{chunk-N56BNAA6.js → chunk-TYHOEX4V.js} +15 -15
  80. package/dist/{chunk-QP33NKYC.js → chunk-UNBRHPHJ.js} +10 -10
  81. package/dist/{chunk-EY6LY2HO.js → chunk-UOO4D2TK.js} +11 -11
  82. package/dist/{chunk-47UCC4MM.js → chunk-UY745U35.js} +1 -1
  83. package/dist/{chunk-ZDMFGACN.js → chunk-V7F7JHS5.js} +71 -55
  84. package/dist/{chunk-PBZNYHMM.js → chunk-VGTBLTPN.js} +4 -4
  85. package/dist/{chunk-L6WBJGQS.js → chunk-VPFRU5IG.js} +1 -1
  86. package/dist/{chunk-Q6JQKWPK.js → chunk-VS2L7QDI.js} +8 -8
  87. package/dist/{chunk-PXQ45SGD.js → chunk-W4CUK5G6.js} +2 -2
  88. package/dist/{chunk-MKPDIAZH.js → chunk-WAA63ZJV.js} +1 -1
  89. package/dist/{chunk-J3Q2NYJR.js → chunk-WS3UFJOU.js} +1 -1
  90. package/dist/{chunk-T5QSLSMM.js → chunk-XAFZJEXY.js} +16 -16
  91. package/dist/{chunk-YOXCCJDF.js → chunk-XPGH5O74.js} +56 -46
  92. package/dist/{chunk-UXTQ3QPD.js → chunk-Y3EHLUPL.js} +2 -2
  93. package/dist/{chunk-HSOBIN22.js → chunk-YF4G5NN5.js} +2 -2
  94. package/dist/{chunk-SIQHOB6P.js → chunk-YQA34KAF.js} +7 -7
  95. package/dist/{chunk-V67D6TMU.js → chunk-YT2VR4SL.js} +4 -4
  96. package/dist/{chunk-CJS6WE66.js → chunk-ZOPXB2KK.js} +11 -11
  97. package/dist/{chunk-H6FLQ5NW.js → chunk-ZPFLHB3R.js} +11 -11
  98. package/dist/{chunk-ZVCDHYWZ.js → chunk-ZZDVGCGG.js} +6 -6
  99. package/dist/index.js +537 -269
  100. package/dist/mcp/analyze-cli.js +6 -6
  101. package/dist/mcp/cli.js +32 -32
  102. package/dist/mcp/server.js +109 -109
  103. package/dist/mcp/worker.js +49 -49
  104. package/dist/probes/installer.js +13 -13
  105. package/docs/agent-guide.md +2 -1
  106. package/docs/agent-tools.md +13 -2
  107. package/docs/configuration.md +9 -4
  108. package/docs/defect-shapes.md +15 -1
  109. package/docs/features.md +11 -1
  110. package/docs/globalconfig.md +13 -0
  111. package/docs/invariants/language-config.md +9 -1
  112. package/docs/language-coverage.md +66 -0
  113. package/docs/lsp-capability-matrix.md +66 -20
  114. package/docs/lsp-idle-eviction.md +17 -13
  115. package/docs/pi-lens-fixer.md +8 -6
  116. package/docs/pi-lens-merge-policy.md +5 -1
  117. package/docs/pi-lens-release.md +3 -2
  118. package/docs/pi-lens-reviewer.md +52 -11
  119. package/docs/servercapabilities.md +1 -1
  120. package/docs/settings.md +7 -4
  121. package/docs/usage.md +1 -0
  122. package/package.json +2 -2
  123. package/scripts/download-grammars.js +10 -0
  124. package/scripts/grammars.lock.json +7 -0
  125. package/vendor/grammars/tree-sitter-groovy.wasm +0 -0
  126. package/dist/chunk-TGQDAG4B.js +0 -88
package/CHANGELOG-USER.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # User changelog
2
2
 
3
+ ## [4.4.10] - 2026-11-06
4
+
5
+ 2 features, 7 fixes, 1 other change.
6
+
7
+ Full notes: https://github.com/apmantza/pi-lens/releases/tag/v4.4.10
8
+
3
9
  ## [4.4.9] - 2026-11-05
4
10
 
5
11
  3 features, 29 fixes, 8 other changes.
@@ -23,9 +29,3 @@ Full notes: https://github.com/apmantza/pi-lens/releases/tag/v4.4.7
23
29
  6 fixes, 2 other changes.
24
30
 
25
31
  Full notes: https://github.com/apmantza/pi-lens/releases/tag/v4.4.6
26
-
27
- ## [4.4.5] - 2026-10-25
28
-
29
- 3 features, 67 fixes, 7 other changes.
30
-
31
- Full notes: https://github.com/apmantza/pi-lens/releases/tag/v4.4.5
package/CHANGELOG.md CHANGED
@@ -16,6 +16,86 @@ All notable changes to pi-lens will be documented in this file.
16
16
 
17
17
  ### Security
18
18
 
19
+ ## [4.4.10] - 2026-11-06
20
+
21
+ ### Added
22
+
23
+ #### Tools and reports
24
+
25
+ - **`module_report` and `read_symbol` now list Groovy classes and methods.** Symbol search, imports and read expansion work for them too, and traits, interfaces, enums and constructors are listed. `.groovy`, `.gvy`, `.gy` and `.gsh` files, plus `Jenkinsfile`, `build.gradle` and `settings.gradle`, parse with a vendored tree-sitter grammar. The grammar is partial: 70% of 1,353 real files parse with no error node. Types nested in a class, command calls with named arguments and the diamond `<>` do not parse, and `module_report` shows its syntax-error warning on a partial parse. Lint and format for Groovy are not part of this change. (refs #5235)
26
+
27
+ #### Configuration and flags
28
+
29
+ - **Read widening can now be turned off without losing the read-before-edit guard.** Pass `--no-read-expansion` or set the global `readGuard.expandReads=false` to keep the requested read ranges while the guard stays active. Read widening stays on by default. (refs #5303)
30
+
31
+ ### Changed
32
+
33
+ #### Language servers
34
+
35
+ - **A large file can now be checked with `lens_diagnostics source=lsp` on one path.** The new user-level key `lsp.queryMaxFileLines` (5000 to 40000, suggested 20000) raises the line limit of that single-file query only; per-edit, dispatch and batch checks keep 5000 lines and 2 MiB. A project `.pi-lens.json` cannot set it, and an out-of-range value is ignored with a warning. An explicit `waitMs` now waits past the server's own wait, up to 30000 ms. A file over the limit or a wait that runs out reads as too large or timed out, never as clean, and a language server whose wait ran out now reads as timed out even while a slower scanner is still running. (refs #5306)
36
+
37
+ ### Fixed
38
+
39
+ #### Language servers
40
+
41
+ - **On Windows, a missing project-local server `.cmd` no longer blocks the PATH server or install.** When a project had no `node_modules/.bin/pyright-langserver.cmd` (or the `.cmd` for the YAML, Bash, Docker, HTML, CSS, PHP, Prisma, Vue, Svelte or Fish server), pi-lens treated the absent file as an installed server and failed with a runtime error. The Python server never reached its PATH server, and the Node-based servers never reached their managed install. An absent local `.cmd` is now skipped like any other missing candidate. Thanks to ProphetOfDoom-PoD for the report and reproduction. (refs #5305)
42
+
43
+ - **An explicit `~/.pi/agent/tsconfig.json` now roots extensions that have no project of their own.** A TypeScript extension under `~/.pi/agent/extensions/` with neither a `package.json` nor a `tsconfig.json` used to get its own directory as the language-server root even when the agent directory carried a `tsconfig.json`; the server now roots at the agent directory so that config's `types` and `paths` apply. An extension-local project still wins, an agent `package.json` alone keeps the per-file root, and only the agent directory itself is read. (refs #5335)
44
+
45
+ #### Rules
46
+
47
+ - **`.mts` and `.cts` files now get the same checks as `.ts`.** Twelve fact rules (`error-swallowing`, `cors-wildcard`, `no-commented-credentials`, `placeholder-comments` and eight more), the comment and try/catch fact providers, the JS/TS autofix and linter policy, and the project scan each left out `.mts` and `.cts`, so those files read as unchecked with no notice. They now share one TypeScript-family check. (refs #4907)
48
+
49
+ - **A nested package's `rules.<id>.threshold` now applies to its own files.** `rules.high-complexity.threshold` and `rules.high-fan-out.threshold` follow the edited file's nearest `.pi-lens.json`, field by field, like `rules.<id>.disable`: with `40` at the workspace root and `5` in `pkg/.pi-lens.json`, a function in `pkg/` is judged by `5`. A threshold in `~/.pi-lens/config.json` now applies to every file no project `.pi-lens.json` sets one for, and a project or nested file still wins over it. (refs #5292)
50
+
51
+ #### Tools and reports
52
+
53
+ - **Read notes now name Kotlin and Swift symbols.** A widened read named the enclosing Kotlin or Swift symbol by its node type (`function_declaration`, `class_declaration`); it now shows the real name (`greet`, `Greeter`) in the note, the read-widening record and the retry hint. Java read notes are unchanged. (refs #5320)
54
+
55
+ #### Install and updates
56
+
57
+ - **The first edit of a session no longer waits on an `npm config get prefix` spawn.** The lookup of the package managers' global bin dirs now starts at session start, so the first dispatch joins it instead of paying about 0.3 s for `which npm` and `npm config get prefix`. `session_start` itself costs no more than before. A tool process that exits before its first resource sample no longer records a false `resource-sampler-query-failed` record. (refs #5261)
58
+
59
+ #### Hosts and integrations
60
+
61
+ - **A resumed session now publishes its restored diagnostics on `pilens:diagnostics`.** An extension that listens on the bus sees the same findings as the widget, instead of nothing until the next write. (refs #5301)
62
+
63
+ ### Internal
64
+
65
+ <details>
66
+ <summary>14 internal changes: tests, CI, tooling, and refactors</summary>
67
+
68
+ - Tier-2 pi sessions start with the orphan-backstop cooldown armed, so a long test file's 30 s sweep cannot SIGKILL a stale host process and red the #2042 kill guard (refs #4909).
69
+
70
+ - Fixed nightly LSP drift notification setup, idle-eviction provisioning, and capability-matrix row coverage (refs #5323).
71
+
72
+ - The type-aware lint lane enables `typescript/switch-exhaustiveness-check`, so a union switch whose `default:` would absorb a new member is flagged; the 11 runtime sites are listed explicitly or carry a reasoned disable (#5331).
73
+
74
+ - The module-level ast-grep availability sweep in `clients/dispatch/runners/utils/runner-helpers.ts` (`isSgAvailableAsync`, `getSgCommand`, the `sg` export and their helpers) is deleted: it had no production caller, carried the B1 cross-session latch write, and production ast-grep runs through `SgRunner` (closes #5345).
75
+
76
+ - The nightly clean-signal probe no longer credits a fixture's row to a different launch: a `typescript7` row that ran the classic server now reads `unknown` instead of `mode=push-only`, the probe rewrites the tracked LSP capability matrix only with `--write-matrix`, and the comments and matrix prose no longer say native TS7 is silent on clean (it is a pull server) (refs #5348).
77
+
78
+ - The nightly `silentOnClean` drift check no longer files `silent-not-marked` for an auxiliary server (fallow, ast-grep, opengrep, zizmor, typos), and the comments and matrix prose no longer say native TS7 publishes on clean (refs #5348). The native TS7 marker stays `false`.
79
+
80
+ - Changelog fragments now carry an `area:` and one fixed headline-and-body shape that `rollup-changelog.mjs --check` enforces, and the release rollup groups each section's entries by area (refs #5351).
81
+
82
+ - **PR body Refs checks now match land-time requirements.** A referenced open issue must have a line-start `Remaining #N:` line, unless GitHub identifies it as a tracking or umbrella issue.
83
+
84
+ - **Fact-store bound test fills the session-fact cap directly** — the large-batch case no longer dispatches 4296 real files to fill the cap, so it stops running at its timeout on CI. The test also pins the dispatcher's own baseline write (refs #5307).
85
+
86
+ - The installer's npm global-bin and pip user-base rungs now verify their candidates through one `firstVerifiedBinary` loop instead of two byte-identical copies of the access, project-trust and verification steps; resolution results are unchanged (refs #4907).
87
+
88
+ - Five hand-written `key === root || key.startsWith(`${root}/`)` containment tests (LSP client-root overlap in two places, the blocker sweep's root test, `findModuleForPath`, the `lens_diagnostics` directory scope) now ask `isWithinForm`, the path owner (refs #4907).
89
+
90
+ - **The dispatcher's code-like diagnostic path check folds backslashes through `toPosix` (refs #4907)** — `looksLikeDiagnosticCodePath` hand-rolled `.replace(/\\/g, "/")`; it now calls the shared seam, and the `path-key-fold-sweep` pin for `clients/dispatch/dispatcher.ts` is gone. Behaviour is unchanged.
91
+
92
+ - Pin five behaviours that survived hand mutation: the single-tag token precedence in `check-action-pins`, the sentence splitter and list-marker strip in `check-prose`, the libc drift predicate in `package-lock-sync`, and the exact root entries in `lint-prose-files` (refs #4907).
93
+
94
+ - Governance now requires every module-level state-helper use to appear in the
95
+ TLA+ coverage map (refs #5330).
96
+
97
+ </details>
98
+
19
99
  ## [4.4.9] - 2026-11-05
20
100
 
21
101
  ### Added
package/README.md CHANGED
@@ -552,6 +552,8 @@ Thanks goes to these wonderful people:
552
552
  <tr>
553
553
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/yxlimo"><img src="https://avatars.githubusercontent.com/u/13878887?v=4" width="100px;" alt=""/><br /><sub><b>ShayLu</b></sub></a><br /><a href="#bug-yxlimo" title="Bug reports">🐛</a></td>
554
554
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/aprudkin"><img src="https://avatars.githubusercontent.com/u/126267327?v=4" width="100px;" alt=""/><br /><sub><b>aprudkin</b></sub></a><br /><a href="#bug-aprudkin" title="Bug reports">🐛</a></td>
555
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/ProphetOfDoom-PoD"><img src="https://avatars.githubusercontent.com/u/260035065?v=4" width="100px;" alt=""/><br /><sub><b>Prophet Of Doom</b></sub></a><br /><a href="#ideas-ProphetOfDoom-PoD" title="Ideas & Planning">🤔</a></td>
556
+ <td align="center" valign="top" width="14.28%"><a href="http://www.apostolapostolov.com/"><img src="https://avatars.githubusercontent.com/u/4083812?v=4" width="100px;" alt=""/><br /><sub><b>Apostol Apostolov</b></sub></a><br /><a href="#bug-apoapostolov" title="Bug reports">🐛</a></td>
555
557
  </tr>
556
558
  </tbody>
557
559
  </table>
@@ -4,14 +4,14 @@ import {
4
4
  } from "./chunk-ZD4KVFXI.js";
5
5
  import {
6
6
  extractFactsFromTree
7
- } from "./chunk-TOE2RRCS.js";
7
+ } from "./chunk-GTTMQ6XB.js";
8
8
  import {
9
9
  findOwnerName
10
10
  } from "./chunk-5W3R6LFT.js";
11
11
  import {
12
12
  firstChildOfType,
13
13
  walk
14
- } from "./chunk-ZZSJAR76.js";
14
+ } from "./chunk-CTB5BAJI.js";
15
15
  import {
16
16
  isJstsFactFile
17
17
  } from "./chunk-CZCAZVTD.js";
@@ -11,11 +11,11 @@ import {
11
11
  getLSPService,
12
12
  isLspRequestTimeoutError,
13
13
  rankFilesByReverseDependencyCentrality
14
- } from "./chunk-OUYAUXAT.js";
14
+ } from "./chunk-6MDM5MQT.js";
15
15
  import {
16
16
  notePersistWorkerMessageFault,
17
17
  readWorkerHeapStatistics
18
- } from "./chunk-PRHYIA6X.js";
18
+ } from "./chunk-BRESRQBE.js";
19
19
  import {
20
20
  buildQualifiedName,
21
21
  findOwnerName
@@ -31,48 +31,48 @@ import {
31
31
  resolveProjectReferenceImport,
32
32
  resolveWorkspacePackageImport,
33
33
  symbolExtractionGrammar
34
- } from "./chunk-L7O774U7.js";
34
+ } from "./chunk-QL37SGTS.js";
35
35
  import {
36
36
  classifyTreeSitterWasmError,
37
37
  getSharedTreeSitterClient,
38
38
  logTreeSitterCacheStats,
39
39
  withTreeSitterRoot
40
- } from "./chunk-ZZSJAR76.js";
40
+ } from "./chunk-CTB5BAJI.js";
41
41
  import {
42
42
  getReviewGraphMaxFilesDerived
43
- } from "./chunk-MRLH4MYU.js";
43
+ } from "./chunk-BGLS5SDN.js";
44
44
  import {
45
45
  withBudget
46
- } from "./chunk-MKPDIAZH.js";
46
+ } from "./chunk-WAA63ZJV.js";
47
47
  import {
48
48
  readGzipStageWorkerResult,
49
49
  reapStageFile
50
50
  } from "./chunk-IJYGIDF4.js";
51
51
  import {
52
52
  collectSourceFilesWithBudgetAsync
53
- } from "./chunk-RNXOWDM6.js";
53
+ } from "./chunk-IDCTDKIA.js";
54
54
  import {
55
55
  collectUntrackedIgnoredIds,
56
56
  createGitIdentityResolver,
57
57
  getProjectDataDir,
58
58
  isStaleStageFile,
59
59
  resolveGitIdentity
60
- } from "./chunk-TMNUTMT5.js";
60
+ } from "./chunk-H65TYP6V.js";
61
61
  import {
62
62
  KIND_EXTENSIONS,
63
63
  detectFileKind
64
64
  } from "./chunk-CZCAZVTD.js";
65
65
  import {
66
66
  detectFileRole
67
- } from "./chunk-X5BJ3G2P.js";
67
+ } from "./chunk-FOEPIX76.js";
68
68
  import {
69
69
  writeFileAtomic
70
- } from "./chunk-PIIUNJIT.js";
70
+ } from "./chunk-7WJ55KBN.js";
71
71
  import {
72
72
  compareOrdinal,
73
73
  escapeRegExp,
74
74
  incrementDegradationCount
75
- } from "./chunk-W5E72HJA.js";
75
+ } from "./chunk-3FRI5H4T.js";
76
76
  import {
77
77
  createNdjsonLogger,
78
78
  getGlobalPiLensLogDir,
@@ -84,7 +84,7 @@ import {
84
84
  } from "./chunk-VCRVNLE7.js";
85
85
  import {
86
86
  FactStore
87
- } from "./chunk-ZMMHHXSW.js";
87
+ } from "./chunk-A5TEJZGJ.js";
88
88
  import {
89
89
  BoundedFifoMap,
90
90
  BoundedLruCache,
@@ -2485,8 +2485,8 @@ async function ensureReviewGraphFacts(filePath, cwd, facts, contentOverride) {
2485
2485
  }
2486
2486
  try {
2487
2487
  const [{ importFactProvider }, { functionFactProvider }] = await Promise.all([
2488
- import("./chunk-H6FLQ5NW.js"),
2489
- import("./chunk-UTJP6WOS.js")
2488
+ import("./chunk-ZPFLHB3R.js"),
2489
+ import("./chunk-TQHOKMVZ.js")
2490
2490
  ]);
2491
2491
  await importFactProvider.run(ctx, facts);
2492
2492
  await functionFactProvider.run(ctx, facts);
@@ -4076,6 +4076,7 @@ function extractSymbolsAndRefsFromGraph(graph) {
4076
4076
  case "property":
4077
4077
  case "function":
4078
4078
  return node.symbolKind;
4079
+ case void 0:
4079
4080
  default:
4080
4081
  return "function";
4081
4082
  }
@@ -545,6 +545,14 @@ var LENS_FLAGS = [
545
545
  default: false,
546
546
  scope: "global"
547
547
  },
548
+ {
549
+ name: "no-read-expansion",
550
+ description: "Disable automatic read widening while keeping the read-before-edit monitor active. Also via readGuard.expandReads=false in ~/.pi-lens/config.json.",
551
+ configKey: "readGuard.expandReads",
552
+ negated: true,
553
+ default: false,
554
+ scope: "global"
555
+ },
548
556
  {
549
557
  name: "no-lens-context",
550
558
  description: "Disable automatic context injection (session-start guidance, turn-end & test findings) while keeping tools, LSP, read-guard, and formatting active. Toggle with /lens-context-toggle. Also via contextInjection.enabled=false in config or PI_LENS_NO_CONTEXT_INJECTION=1.",
@@ -667,7 +675,11 @@ var GLOBAL_NON_FLAG_CONFIG_SECTIONS = [
667
675
  ];
668
676
  var GLOBAL_ONLY_NON_FLAG_KEYS = [
669
677
  "actionableWarnings.autoFix.maxFixes",
670
- "dispatch.runnerTimeoutFloorMs"
678
+ "dispatch.runnerTimeoutFloorMs",
679
+ // #5306: the explicit single-file diagnostics query's line limit. `lsp` is
680
+ // recognized at project scope (the LSP loader's namespace), so a project file
681
+ // carrying this is told it does nothing there.
682
+ "lsp.queryMaxFileLines"
671
683
  ];
672
684
  var PROJECT_NON_FLAG_CONFIG_SECTIONS = [
673
685
  "ignore",
@@ -9,20 +9,20 @@ import {
9
9
  getDeadCodeClients,
10
10
  parseVultureOutput,
11
11
  stableFindingKey
12
- } from "./chunk-HEA3EM23.js";
12
+ } from "./chunk-ALIZWXHZ.js";
13
13
  import "./chunk-7U2IDNXN.js";
14
- import "./chunk-VO4JFPTV.js";
15
- import "./chunk-ZZN74OGD.js";
16
- import "./chunk-J3Q2NYJR.js";
17
- import "./chunk-E65WJVI5.js";
18
- import "./chunk-L6WBJGQS.js";
19
- import "./chunk-AACN5GNE.js";
20
- import "./chunk-TMNUTMT5.js";
14
+ import "./chunk-SJQUWQR6.js";
15
+ import "./chunk-4ITEFRDH.js";
16
+ import "./chunk-WS3UFJOU.js";
17
+ import "./chunk-KSTQ4VXT.js";
18
+ import "./chunk-VPFRU5IG.js";
19
+ import "./chunk-NPNFGYLV.js";
20
+ import "./chunk-H65TYP6V.js";
21
21
  import "./chunk-AWQWXSW4.js";
22
- import "./chunk-X5BJ3G2P.js";
22
+ import "./chunk-FOEPIX76.js";
23
23
  import "./chunk-NL5LSKVD.js";
24
- import "./chunk-PIIUNJIT.js";
25
- import "./chunk-W5E72HJA.js";
24
+ import "./chunk-7WJ55KBN.js";
25
+ import "./chunk-3FRI5H4T.js";
26
26
  import "./chunk-S26LC76R.js";
27
27
  import "./chunk-VCRVNLE7.js";
28
28
  import "./chunk-LJDODBBZ.js";
@@ -9,52 +9,52 @@ import {
9
9
  resetLSPService,
10
10
  resyncGitChangedFiles,
11
11
  runPerServerGroups
12
- } from "./chunk-OUYAUXAT.js";
13
- import "./chunk-VWLSU3XV.js";
12
+ } from "./chunk-6MDM5MQT.js";
13
+ import "./chunk-FCQSZQAT.js";
14
14
  import "./chunk-XIMYZ3JA.js";
15
- import "./chunk-YOXCCJDF.js";
16
- import "./chunk-7YTRG6YW.js";
17
- import "./chunk-V67D6TMU.js";
15
+ import "./chunk-XPGH5O74.js";
16
+ import "./chunk-NE4EFHJX.js";
17
+ import "./chunk-YT2VR4SL.js";
18
18
  import "./chunk-LT62P654.js";
19
- import "./chunk-PRHYIA6X.js";
19
+ import "./chunk-BRESRQBE.js";
20
20
  import "./chunk-XVB3Q2PG.js";
21
- import "./chunk-L7O774U7.js";
22
- import "./chunk-7UTSNTWM.js";
21
+ import "./chunk-QL37SGTS.js";
22
+ import "./chunk-K6WIBVMK.js";
23
23
  import "./chunk-ACRJ2GZ5.js";
24
- import "./chunk-J3Q2NYJR.js";
25
- import "./chunk-ZZSJAR76.js";
24
+ import "./chunk-WS3UFJOU.js";
25
+ import "./chunk-CTB5BAJI.js";
26
26
  import "./chunk-Z54ZSOBZ.js";
27
- import "./chunk-5YSEQHJN.js";
27
+ import "./chunk-GUGKKGG7.js";
28
28
  import "./chunk-QGITU23N.js";
29
- import "./chunk-WTB4GKMH.js";
29
+ import "./chunk-OTSTS7L2.js";
30
30
  import "./chunk-6HWVI6MI.js";
31
- import "./chunk-RTFMDIKV.js";
31
+ import "./chunk-SG2JQ2YP.js";
32
32
  import "./chunk-CKEQFGLT.js";
33
- import "./chunk-KXMJLOZF.js";
34
- import "./chunk-MRLH4MYU.js";
35
- import "./chunk-HSOBIN22.js";
33
+ import "./chunk-NBM7PNBP.js";
34
+ import "./chunk-BGLS5SDN.js";
35
+ import "./chunk-YF4G5NN5.js";
36
36
  import "./chunk-W7TY6HYX.js";
37
- import "./chunk-MKPDIAZH.js";
37
+ import "./chunk-WAA63ZJV.js";
38
38
  import "./chunk-2BEMIWEW.js";
39
39
  import "./chunk-IJYGIDF4.js";
40
- import "./chunk-MQ4PPCJB.js";
41
- import "./chunk-RNJFRXEN.js";
42
- import "./chunk-E65WJVI5.js";
43
- import "./chunk-L6WBJGQS.js";
40
+ import "./chunk-AON2QIJF.js";
41
+ import "./chunk-TLWFZ66Y.js";
42
+ import "./chunk-KSTQ4VXT.js";
43
+ import "./chunk-VPFRU5IG.js";
44
44
  import "./chunk-UYXV5NIS.js";
45
- import "./chunk-AACN5GNE.js";
46
- import "./chunk-3HTZDY3C.js";
47
- import "./chunk-CDFJF5YD.js";
48
- import "./chunk-RNXOWDM6.js";
49
- import "./chunk-ZCQBNPRH.js";
50
- import "./chunk-TMNUTMT5.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
51
  import "./chunk-AWQWXSW4.js";
52
52
  import "./chunk-QYF5S6P6.js";
53
53
  import "./chunk-CZCAZVTD.js";
54
- import "./chunk-X5BJ3G2P.js";
54
+ import "./chunk-FOEPIX76.js";
55
55
  import "./chunk-NL5LSKVD.js";
56
- import "./chunk-PIIUNJIT.js";
57
- import "./chunk-W5E72HJA.js";
56
+ import "./chunk-7WJ55KBN.js";
57
+ import "./chunk-3FRI5H4T.js";
58
58
  import "./chunk-S26LC76R.js";
59
59
  import "./chunk-VCRVNLE7.js";
60
60
  import "./chunk-LJDODBBZ.js";
@@ -1,13 +1,15 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  FactStore,
4
+ MAX_SESSION_FACT_RECORDS,
4
5
  getFactStoreEvictionReporter,
5
6
  setFactStoreEvictionReporter
6
- } from "./chunk-ZMMHHXSW.js";
7
+ } from "./chunk-A5TEJZGJ.js";
7
8
  import "./chunk-CB7PEVOJ.js";
8
9
  import "./chunk-NXL4FFQQ.js";
9
10
  export {
10
11
  FactStore,
12
+ MAX_SESSION_FACT_RECORDS,
11
13
  getFactStoreEvictionReporter,
12
14
  setFactStoreEvictionReporter
13
15
  };
@@ -1,12 +1,12 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  truncatedByOutputCap
4
- } from "./chunk-PIIUNJIT.js";
4
+ } from "./chunk-7WJ55KBN.js";
5
5
  import {
6
6
  LEDGER_FIELD_MAX,
7
7
  incrementDegradationCount,
8
8
  truncateForLedger
9
- } from "./chunk-W5E72HJA.js";
9
+ } from "./chunk-3FRI5H4T.js";
10
10
 
11
11
  // dist/clients/dispatch/types.js
12
12
  function spanOverlapsModifiedRanges(startLine, endLine, ranges) {
@@ -116,6 +116,7 @@ function reachedNoVerdict(result) {
116
116
  return true;
117
117
  case "skipped":
118
118
  return !isRunnerSkipReason(result.skipReason) || result.skipReason === "not-enabled";
119
+ case "succeeded":
119
120
  default:
120
121
  return false;
121
122
  }
@@ -1,15 +1,15 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  collectSourceFiles
4
- } from "./chunk-RNXOWDM6.js";
5
- import "./chunk-ZCQBNPRH.js";
6
- import "./chunk-TMNUTMT5.js";
4
+ } from "./chunk-IDCTDKIA.js";
5
+ import "./chunk-IL6PIV33.js";
6
+ import "./chunk-H65TYP6V.js";
7
7
  import "./chunk-QYF5S6P6.js";
8
8
  import "./chunk-CZCAZVTD.js";
9
- import "./chunk-X5BJ3G2P.js";
9
+ import "./chunk-FOEPIX76.js";
10
10
  import "./chunk-NL5LSKVD.js";
11
- import "./chunk-PIIUNJIT.js";
12
- import "./chunk-W5E72HJA.js";
11
+ import "./chunk-7WJ55KBN.js";
12
+ import "./chunk-3FRI5H4T.js";
13
13
  import "./chunk-S26LC76R.js";
14
14
  import "./chunk-VCRVNLE7.js";
15
15
  import "./chunk-LJDODBBZ.js";
@@ -7,19 +7,19 @@ import {
7
7
  hasGitleaksSignal,
8
8
  parseGitleaksReport,
9
9
  writeScopedGitleaksConfig
10
- } from "./chunk-IICERRFF.js";
11
- import "./chunk-VO4JFPTV.js";
12
- import "./chunk-PBZNYHMM.js";
13
- import "./chunk-ZZN74OGD.js";
10
+ } from "./chunk-CYUJB552.js";
11
+ import "./chunk-SJQUWQR6.js";
12
+ import "./chunk-VGTBLTPN.js";
13
+ import "./chunk-4ITEFRDH.js";
14
14
  import "./chunk-LT62P654.js";
15
- import "./chunk-L6WBJGQS.js";
16
- import "./chunk-AACN5GNE.js";
17
- import "./chunk-TMNUTMT5.js";
15
+ import "./chunk-VPFRU5IG.js";
16
+ import "./chunk-NPNFGYLV.js";
17
+ import "./chunk-H65TYP6V.js";
18
18
  import "./chunk-AWQWXSW4.js";
19
- import "./chunk-X5BJ3G2P.js";
19
+ import "./chunk-FOEPIX76.js";
20
20
  import "./chunk-NL5LSKVD.js";
21
- import "./chunk-PIIUNJIT.js";
22
- import "./chunk-W5E72HJA.js";
21
+ import "./chunk-7WJ55KBN.js";
22
+ import "./chunk-3FRI5H4T.js";
23
23
  import "./chunk-S26LC76R.js";
24
24
  import "./chunk-VCRVNLE7.js";
25
25
  import "./chunk-LJDODBBZ.js";