pi-lens 4.5.0 → 4.5.1

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 (140) hide show
  1. package/CHANGELOG-USER.md +6 -6
  2. package/CHANGELOG.md +132 -0
  3. package/README.md +2 -0
  4. package/config/dependency-cruiser-eager-allowlist.json +1 -0
  5. package/dist/{chunk-LGH2HHZG.js → chunk-25CAONWT.js} +36 -25
  6. package/dist/{chunk-ZQSSO7LO.js → chunk-2DWNYVUN.js} +3 -3
  7. package/dist/{chunk-YCR6ZYTE.js → chunk-2RQREVGO.js} +1 -1
  8. package/dist/{chunk-VWEBZ2JV.js → chunk-2XALJI2K.js} +40 -40
  9. package/dist/{chunk-PQXUZYTQ.js → chunk-2YQ5LI7R.js} +4 -4
  10. package/dist/{chunk-VSQT6IHZ.js → chunk-35UJUF27.js} +18 -4
  11. package/dist/{chunk-OLWGYBYT.js → chunk-3IWMNN2S.js} +17 -17
  12. package/dist/chunk-3UTDLQWO.js +88 -0
  13. package/dist/chunk-3Z7Z3B7V.js +27 -0
  14. package/dist/{chunk-UNP6Y4JV.js → chunk-4E4OCW3L.js} +16 -16
  15. package/dist/{chunk-37IDWT6O.js → chunk-4GLSO2EM.js} +13 -11
  16. package/dist/{chunk-QV3JPCMK.js → chunk-5HVDD7IA.js} +1 -1
  17. package/dist/{chunk-ZRQMENT4.js → chunk-62PIU4TO.js} +1 -1
  18. package/dist/{chunk-3TSMQZG6.js → chunk-6MDWNZ7E.js} +2 -2
  19. package/dist/{chunk-WLD6BGON.js → chunk-6MWX2J5H.js} +4 -0
  20. package/dist/{chunk-SCU62JLX.js → chunk-6MZLS6CK.js} +7 -7
  21. package/dist/{chunk-B42AIWPJ.js → chunk-7BWPQZHE.js} +3 -3
  22. package/dist/{chunk-I3NZVAMN.js → chunk-7JMEPY6P.js} +10 -10
  23. package/dist/{chunk-7DPXUPRF.js → chunk-7ORBRDFY.js} +2 -2
  24. package/dist/{chunk-6E5QLMWI.js → chunk-7WAQ3K26.js} +23 -23
  25. package/dist/{chunk-2H5GHZKC.js → chunk-AB26NAHA.js} +7 -7
  26. package/dist/{chunk-BBSDJTOV.js → chunk-AFSG6YUB.js} +13 -13
  27. package/dist/{chunk-XDNWR7SG.js → chunk-ALTHJUZO.js} +2 -2
  28. package/dist/{chunk-UN72ZAJ5.js → chunk-AOEVZXR6.js} +9 -9
  29. package/dist/{chunk-HRLF35WL.js → chunk-ARTCVE6I.js} +9 -9
  30. package/dist/{chunk-LQQNFCQJ.js → chunk-B2QO7GHY.js} +1 -1
  31. package/dist/{chunk-I2FYOZNW.js → chunk-BJGWP4UX.js} +10 -10
  32. package/dist/{chunk-G53LBDNU.js → chunk-BKJ6WZKP.js} +6 -6
  33. package/dist/{chunk-P5MSLVUW.js → chunk-BQ72NQQM.js} +11 -11
  34. package/dist/{chunk-K7O6AHSJ.js → chunk-BWGNVM33.js} +11 -11
  35. package/dist/{chunk-ADYQRETD.js → chunk-BYIEU4E4.js} +2 -2
  36. package/dist/{chunk-7ZVTFLCC.js → chunk-CDAJQBKJ.js} +11 -11
  37. package/dist/{chunk-BKWFDWYM.js → chunk-D3UQWOCB.js} +16 -16
  38. package/dist/{chunk-3PAS2ERX.js → chunk-DHFJS2I4.js} +8 -8
  39. package/dist/{chunk-KNSOA43J.js → chunk-DKXIUGNA.js} +2 -2
  40. package/dist/{chunk-LOEJFTF2.js → chunk-DLGJYQML.js} +2 -2
  41. package/dist/{chunk-VGRGW4UL.js → chunk-DNJJVKJZ.js} +31 -31
  42. package/dist/{chunk-5HBQL7DH.js → chunk-EBXCYEII.js} +3 -3
  43. package/dist/chunk-EH6EHFW2.js +73 -0
  44. package/dist/{chunk-W26QZ3OM.js → chunk-EKQDQPX6.js} +10 -10
  45. package/dist/{chunk-TWEOJE3D.js → chunk-EXHSWN3P.js} +844 -377
  46. package/dist/{chunk-4IZZEN63.js → chunk-F7BFIENK.js} +33 -33
  47. package/dist/{chunk-ZI7YHV6I.js → chunk-FD4LJQ6Y.js} +5 -5
  48. package/dist/{chunk-RIH3UBK4.js → chunk-GFCPPCNR.js} +11 -11
  49. package/dist/{chunk-5JB4WENL.js → chunk-GIK6VUCY.js} +1 -1
  50. package/dist/{chunk-PPQHMSPH.js → chunk-GNK2IHVG.js} +15 -15
  51. package/dist/{chunk-CXQYK4YT.js → chunk-H6DNTQ4V.js} +2 -2
  52. package/dist/{chunk-NGNBJIUO.js → chunk-HERQPNY6.js} +8 -8
  53. package/dist/{chunk-INBK3HIT.js → chunk-HFIFEH46.js} +3 -3
  54. package/dist/{chunk-J2ZB5MDS.js → chunk-HKRESBMC.js} +20 -20
  55. package/dist/{chunk-AZG5UJYY.js → chunk-HMXWZUQW.js} +1 -1
  56. package/dist/{chunk-XSC3BCN3.js → chunk-HOWHAKXO.js} +6 -6
  57. package/dist/{chunk-7CLWC2UH.js → chunk-HUWW77QY.js} +1 -1
  58. package/dist/{chunk-KZ732ZVW.js → chunk-IO6P3NBP.js} +1 -1
  59. package/dist/{chunk-7WKVCZI4.js → chunk-J7VNGHLN.js} +2 -2
  60. package/dist/{chunk-QE7BJQ6K.js → chunk-JGCBMCCS.js} +8 -8
  61. package/dist/{chunk-PFJLYRO3.js → chunk-KIQSNH3F.js} +34 -34
  62. package/dist/{chunk-JGUDT5KD.js → chunk-KSQJBGRO.js} +5 -5
  63. package/dist/{chunk-RJ3APNIP.js → chunk-KXKM2DFP.js} +4 -4
  64. package/dist/chunk-L3Q72QGQ.js +25 -0
  65. package/dist/{chunk-6GLMMGCX.js → chunk-LDPY22FS.js} +2 -2
  66. package/dist/{chunk-3PO4YYOX.js → chunk-M3QGXGY4.js} +3793 -3814
  67. package/dist/{chunk-NNEQOC3U.js → chunk-MET776XM.js} +9 -7
  68. package/dist/{chunk-X33QECRJ.js → chunk-MKQFSW2Q.js} +2 -2
  69. package/dist/{chunk-7U36VQL6.js → chunk-MKW7ZUTT.js} +3 -3
  70. package/dist/{chunk-PQF6YGYB.js → chunk-N2U644ZW.js} +4 -18
  71. package/dist/{chunk-DI4AZZNY.js → chunk-NAACKIKT.js} +2 -2
  72. package/dist/{chunk-O6LCSHHI.js → chunk-NHHS5T52.js} +1 -1
  73. package/dist/{chunk-DCA2MXVQ.js → chunk-NIZKGBOU.js} +51 -27
  74. package/dist/{chunk-PKWEBMCA.js → chunk-NNDZ7DOP.js} +194 -111
  75. package/dist/{chunk-Q7J3JYJ2.js → chunk-NZ7NSKIW.js} +13 -13
  76. package/dist/{chunk-S6MCMD27.js → chunk-OG3UCAHV.js} +3 -3
  77. package/dist/{chunk-3QXFUP6T.js → chunk-OHTHVILU.js} +12 -12
  78. package/dist/{chunk-NHA5K226.js → chunk-P7EV5ISR.js} +17 -2
  79. package/dist/{chunk-L6BDRYUK.js → chunk-PVV27TOX.js} +5 -5
  80. package/dist/{chunk-HIRBC72R.js → chunk-Q32RJDYC.js} +4 -4
  81. package/dist/{chunk-QE5DJ7MX.js → chunk-Q4UQNTLB.js} +4 -4
  82. package/dist/{chunk-SDYLT45T.js → chunk-QQGZY2BR.js} +2 -2
  83. package/dist/{chunk-QMWKSYWB.js → chunk-S247BOH2.js} +4 -4
  84. package/dist/{chunk-ARTYCUGF.js → chunk-S7KUDW73.js} +121 -18
  85. package/dist/{chunk-6CFSDLHE.js → chunk-SJ2SR432.js} +17 -17
  86. package/dist/{chunk-CQY2HEH7.js → chunk-SL4G67AP.js} +2 -2
  87. package/dist/{chunk-LVLPA32Q.js → chunk-T2D2WWP6.js} +48 -11
  88. package/dist/{chunk-HIJ4CHFF.js → chunk-T7KHGEJ5.js} +3 -3
  89. package/dist/{chunk-74AMPWNC.js → chunk-TABDCX35.js} +2 -2
  90. package/dist/chunk-TFSBHRL2.js +25 -0
  91. package/dist/{chunk-KNJH6WJQ.js → chunk-TQKWR5AZ.js} +7 -7
  92. package/dist/chunk-TWAQFMLW.js +110 -0
  93. package/dist/{chunk-TKOFTLGB.js → chunk-UARVPNAU.js} +33 -33
  94. package/dist/chunk-UWBD3JMH.js +56 -0
  95. package/dist/{chunk-K4Z7MK6T.js → chunk-VEF3GFOL.js} +15 -15
  96. package/dist/{chunk-4DAHGU3V.js → chunk-W2JPGW7Q.js} +27 -25
  97. package/dist/{chunk-CZJGAOKL.js → chunk-W2YHHNY3.js} +7 -7
  98. package/dist/{chunk-R4L7KZ7R.js → chunk-WA6U2URH.js} +9 -9
  99. package/dist/{chunk-OZQQ3AIR.js → chunk-WAK2AXQQ.js} +9 -9
  100. package/dist/{chunk-DFKOA74L.js → chunk-WH6O4IFD.js} +10 -10
  101. package/dist/{chunk-27JQHK7Y.js → chunk-WJ7GY5WJ.js} +1 -1
  102. package/dist/{chunk-KXGTLAUW.js → chunk-WWZLT6AM.js} +2 -2
  103. package/dist/{chunk-O2MHF7QM.js → chunk-XRLZ75YY.js} +38 -38
  104. package/dist/chunk-XWWFESYZ.js +27 -0
  105. package/dist/chunk-XZSXSM4K.js +27 -0
  106. package/dist/{chunk-C5PLBTNR.js → chunk-Y2LIOCA7.js} +1 -1
  107. package/dist/{chunk-AXAR5ZW2.js → chunk-YIEHUKX2.js} +84 -169
  108. package/dist/{chunk-B2OXE4AH.js → chunk-YOMLAKU6.js} +182 -180
  109. package/dist/{chunk-MOAVEPC4.js → chunk-YV7XVYSJ.js} +11 -11
  110. package/dist/{chunk-ZULZS2I6.js → chunk-ZVQUYCBU.js} +996 -365
  111. package/dist/index.js +4911 -2376
  112. package/dist/mcp/analyze-cli.js +8 -8
  113. package/dist/mcp/cli.js +40 -40
  114. package/dist/mcp/server.js +321 -234
  115. package/dist/mcp/worker.js +58 -58
  116. package/dist/probes/installer.js +21 -21
  117. package/docs/ci-bot-pr-checks.md +18 -9
  118. package/docs/ci.md +7 -0
  119. package/docs/defect-shapes.md +43 -28
  120. package/docs/globalconfig.md +1 -0
  121. package/docs/invariants/dispatch-runners.md +15 -0
  122. package/docs/lsp-capability-matrix.md +3 -3
  123. package/docs/lsp-idle-eviction.md +3 -2
  124. package/docs/module-report-read-symbol.md +6 -2
  125. package/docs/pi-lens-merge-policy.md +3 -2
  126. package/docs/pi-lens-orchestration.md +2 -1
  127. package/docs/pi-lens-subagent.md +2 -1
  128. package/docs/servercapabilities.md +1 -1
  129. package/docs/settings.md +1 -0
  130. package/docs/usage.md +1 -0
  131. package/package.json +1 -1
  132. package/dist/chunk-2H7NFZ4Q.js +0 -25
  133. package/dist/chunk-5YJXF2IS.js +0 -56
  134. package/dist/chunk-GCSDF5IE.js +0 -27
  135. package/dist/chunk-H5API74E.js +0 -67
  136. package/dist/chunk-HBX55MWO.js +0 -27
  137. package/dist/chunk-JOIKBUQN.js +0 -88
  138. package/dist/chunk-M2YMBT5G.js +0 -73
  139. package/dist/chunk-MJRGPEQ5.js +0 -25
  140. package/dist/chunk-TFKN5EIR.js +0 -27
package/CHANGELOG-USER.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # User changelog
2
2
 
3
+ ## [4.5.1] - 2026-11-16
4
+
5
+ 1 feature, 26 fixes, 1 other change.
6
+
7
+ Full notes: https://github.com/apmantza/pi-lens/releases/tag/v4.5.1
8
+
3
9
  ## [4.5.0] - 2026-11-14
4
10
 
5
11
  31 fixes, 2 other changes.
@@ -23,9 +29,3 @@ Full notes: https://github.com/apmantza/pi-lens/releases/tag/v4.4.11
23
29
  2 features, 7 fixes, 1 other change.
24
30
 
25
31
  Full notes: https://github.com/apmantza/pi-lens/releases/tag/v4.4.10
26
-
27
- ## [4.4.9] - 2026-11-05
28
-
29
- 3 features, 29 fixes, 8 other changes.
30
-
31
- Full notes: https://github.com/apmantza/pi-lens/releases/tag/v4.4.9
package/CHANGELOG.md CHANGED
@@ -16,6 +16,138 @@ All notable changes to pi-lens will be documented in this file.
16
16
 
17
17
  ### Security
18
18
 
19
+ ## [4.5.1] - 2026-11-16
20
+
21
+ ### Added
22
+
23
+ #### Hosts and integrations
24
+
25
+ - **An opt-in `pi-lens-issues` footer status shows diagnostics counts.** `--lens-issues-status` (or
26
+ `ui.issuesStatus: true`) publishes `●<N>E`, `!<N>W`, both side by side,
27
+ `⚠ <N> unchecked`, or `✓ clean`, drawn from the widget header's own tallies so
28
+ the footer and the widget cannot disagree. Off by default; the footer is
29
+ unchanged when the flag is unset. The text is plain, with no terminal color
30
+ escapes, so a status-rendering host or bridge reads it as written. (refs #5588)
31
+
32
+ ### Changed
33
+
34
+ #### Blockers and sessions
35
+
36
+ - **A `lens_diagnostic_mark` suppress now dispatches the file it wrote.** The files a call wrote through the mutation bridge, such as an `ast_grep_replace` or an `lsp_navigation` rename, reach the dispatcher and the commit gate whatever the tool is named, and under any host call id, including OpenAI Responses ids that contain a pipe or pass 64 characters. (refs #5551)
37
+
38
+ ### Fixed
39
+
40
+ #### Language servers
41
+
42
+ - **Esc now returns an `lsp_navigation` call on a silent language server at once.** A request that times out or is aborted is cancelled on the wire and no longer keeps the server marked busy, so a wedged server is evicted when idle instead of piling up liveness pings. (refs #5097)
43
+
44
+ - **Esc now cancels the diagnostic pull and the clean-confirm ping a cut-off check had started.** A turn-end re-verify or an enrichment pass that hit its bound used to leave `textDocument/diagnostic` running on the language server; it now sends `$/cancelRequest`. A warm-up that Esc cut is no longer remembered as a cold server. (refs #5097)
45
+
46
+ - **A dead or cancelled language server no longer retires a carried code-action warning as clean.** A code-action request that died, was cancelled or came back malformed keeps the warning. A failed capability lookup, a defensive path no real lookup reaches today, now reports the file as unconfirmed. (refs #5258)
47
+
48
+ - **A manifest fixed before pi's first look at a project now reaches its running server.** An MCP hover that started rust-analyzer, then a fixed `Cargo.toml`, used to leave `pilens_diagnostics` reading `workspace failed to load`. The session root and the MCP working directory now forward a manifest fixed after the server started, and still restart no server for an install on that first look. (refs #5501)
49
+
50
+ - **A member crate's `Cargo.toml` or a nested `go.mod` fixed outside pi now reaches the running server.** Both servers read it without a restart. A manifest fixed after a server started, and before pi's first look at a client root other than the session root, now reaches that server. (refs #5501)
51
+
52
+ #### Blockers and sessions
53
+
54
+ - **A Go module CVE is no longer labelled historical on a turn that wrote no file.** The advisory for a vulnerability pinned by a module, with no call site to name, now cites `go.mod` and `go.sum`, so it reads current unless a module file changed after the turn end. (refs #4617)
55
+
56
+ - **The commit gate now refuses a blocker the staged lines add, whoever wrote them.** Under `--lens-guard`, a `debugger;` that a script, a tool that names no path or an external editor adds no longer commits unchecked. The gate dry-runs the command's commit with `git`, after the usual steps before it (`git add`, `git rm`, `git mv`, `cd`, `export`, `make`, `npm test`). It runs the linters, ast-grep and tree-sitter over the committed bytes, not LSP or type checks. It refuses only on a line the commit adds. A linter with no answer, a read past its time, or a step it cannot replay refuses (a script or `git reset` before the commit): run that first, then commit. (refs #5553)
57
+
58
+ - **A commit is no longer refused over a blocker that was already in the file.** `ast_grep_replace`, `sed -i`, an unclassified tool and an LSP rename now take the same pre-edit baseline as a host `edit`, so an unrelated change through them to a file that holds a committed `debugger;` commits. A blocker the writer adds is still refused. (refs #5553)
59
+
60
+ - **A file your script wrote now gets its blockers like an edit does.** When a bash command such as `python3 fix.py` changes a file that was clean before it, and nothing else pi-lens saw wrote that file meanwhile, the blockers show as a STOP and the commit gate holds them. Blockers the file already held at the last commit stay quiet, as they do for an edit, and pi-lens does not reformat or autofix that file. When pi-lens cannot tell (the file was already modified, another write touched it, or the command failed), the line it shows now names each blocker's line and rule, says the file changed during the command, and asks you to fix them if your command wrote it. (refs #5616)
61
+
62
+ - **A seed copy no longer reaches `git add -A`.** For a Python file the earlier bytes reach ruff through its standard input, so no copy exists. Where a linter reads the disk, such as biome on TypeScript, the one-run copy is still written, and its name is first added to the repository's local `.git/info/exclude` (never a tracked `.gitignore`). (refs #5621)
63
+
64
+ - **The commit gate now sees commits that bash runs after escapes or Unicode spaces.** The gate read a no-break space or an escaped quote differently from bash, so a `git commit` written after one went unseen. It now splits words on a space, a tab and a newline only, as bash does. (refs #5649)
65
+
66
+ - **The commit gate now judges the staged bytes of a file rewritten as it was staged.** The gate reads a copy of the index, and the copy's new timestamp hid that git had not yet told such a file apart from its staged blob, so the gate linted the working bytes and could pass a commit that carried other bytes. The copy now keeps the index's timestamp. (refs #5650)
67
+
68
+ - **The commit gate now sees a commit run through a substitution inside `bash -c` or `eval`.** The gate read a `bash -c` or `eval` string as words and never scanned it for `$(...)` or backticks, and it read `#` after a substitution's closing `)` as a comment. A `git commit` written either way went unseen, and so did one nested more than three command strings deep or run through `bash -ce`. (refs #5652)
69
+
70
+ #### Runners and scanners
71
+
72
+ - **A pyright that fails its version check is now skipped, not run.** The runner used to fall back to the first `pyright` on PATH without checking it, so a broken install reported a failed run with a parse error. It now reads the one version check like every other runner and skips with the cause stated. It also finds a `pyright` in the project's own `node_modules/.bin`. On Windows, each project bin dir now supplies its own launcher extension (`.exe` in a venv, `.cmd` in `node_modules/.bin`) to every registry tool. (refs #5410)
73
+
74
+ - **Projects without a Python environment now run tests with the pytest on PATH.** Before, pi-lens ran a bare `python -m pytest`, which failed where `python` is missing or lacks pytest. A project with its own environment still runs that interpreter's `-m pytest`. (refs #5410)
75
+
76
+ - **A project's own `shellcheck` in `node_modules/.bin` is now found.** The shellcheck, shfmt, tflint, terragrunt, cue-vet and spellcheck runners each kept a private tool check. Each looked in the project's venv and nowhere else. They now use the one lookup every other runner uses. In a trusted project, a `node_modules/.bin` copy now wins over PATH. On Windows, `.cmd` and `.exe` resolve per directory. Which tools pi-lens installs on its own does not change. (refs #5410)
77
+
78
+ - **Rubocop runs without bundler, and jdtls starts past a macOS `java` stub.** A Gemfile that names rubocop no longer skips the runner while a working rubocop is on PATH, and a `java` on PATH that cannot run (the macOS stub with no JDK behind it) no longer hides the JDK pi-lens found, so jdtls starts. KtFmt autofix and SpotBugs also find a binary in a project's `node_modules/.bin` now. (refs #5410)
79
+
80
+ - **Vale now reads the `.vale.ini` sections that name your project's files.** The runner handed Vale the absolute path, so a section such as `[docs/*.md]` never matched, and a section naming an ancestor directory (`[**/.claude/**]` in a Claude Code worktree) matched the project's own files and silenced them. Vale now gets the project-relative path, with a `./` prefix for a name that starts like an option. (refs #5556)
81
+
82
+ - **detekt, phpstan and credo no longer read a project under a `.claude/worktrees` checkout as clean.** A project config that ignores `**/.claude/**` matched the checkout's own ancestors, so the tool saw no file and the runner reported none. The runner now gives the tool the project's own config plus a generated overlay in which each ignore entry is anchored at the project root, with the same meaning it had in any other checkout. An entry whose meaning it cannot keep runs as written, and a clean result from that run is reported as inconclusive. (refs #5594)
83
+
84
+ - **Credo findings from every category are now reported.** Credo's 1–127 category bitmask statuses are treated as completed analyses, while 128+ invocation errors remain rejected. (refs #5608)
85
+
86
+ - **oxlint and ESLint now find a root config for files inside a nested package.** The earlier fix did not take effect for an edit in a package, because the config search stopped at the package. It now stops at the project root, so a root config with a cwd-relative path, such as the `better-tailwindcss` `entryPoint`, no longer reports false findings. (refs #5631)
87
+
88
+ #### Tools and reports
89
+
90
+ - **The review graph now marks public Rust, Go, Java, Kotlin and C# symbols as exported.** Editing a `pub fn` now raises the exported symbol changed risk flag, and Rust structs, enums, traits, constants, type aliases and modules now reach the graph. A language whose visibility cannot be read from the declaration, such as Python, reports unknown instead of not exported, and `module_report` lists its symbols under `SYMBOLS (visibility unknown)` with no export count instead of "0 exported". `module_report` now splits Rust files into API and INTERNAL, `mod tests` nests as a class, `read_enclosing` answers struct, enum and mod lines, and on a line shared by an interface and a function the interface now wins. The review graph rebuilds once after upgrade. (refs #5599)
91
+
92
+ #### Install and updates
93
+
94
+ - **Helm now installs on a machine that does not have it.** The helm release on GitHub holds only signature files, so the installer found no archive on any platform and never installed it. It now downloads the archive from get.helm.sh on Linux, macOS and Windows, for x64 and arm64. (refs #5643)
95
+
96
+ - **Opengrep, Hadolint, Vale, shfmt and tflint install again from their current releases.** Opengrep 2.0.0 renamed its release files and ships Windows as a zip with its DLLs, so the managed install found nothing to download. Hadolint's Linux file names and Vale's pinned 3.14.2 had also drifted from the latest releases, and shfmt and tflint looked for Windows arm64 builds that do not exist, so Windows arm64 now gets the x64 build. (refs #5624)
97
+
98
+ - **Global bin lookups no longer write into your project.** For a trusted project, pi-lens asked pnpm, npm and yarn for their global bin folder from the project itself. A relative `PNPM_HOME` then created a `${HOME}` folder in the repository, and a project `.npmrc` could change the answer. The lookup now runs from your home folder whatever the trust. (refs #5632)
99
+
100
+ #### Hosts and integrations
101
+
102
+ - **Bash `rsync -a`, `tar x` and `mv` into a directory are now seen.** When the file keeps an old modification time, a move or copy into a directory names `src/a.ts`, and an `rsync` into a tree or a `tar x` is credited by content in the directory it fills, so the changed file reaches dispatch, the change log and the commit gate like a `cp` does. In a checkout with 512 or more files already modified, none of this applies, because a file the command wrote cannot be told from one you had edited, and the older time rule stays. (refs #5552)
103
+
104
+ ### Internal
105
+
106
+ <details>
107
+ <summary>20 internal changes: tests, CI, tooling, and refactors</summary>
108
+
109
+ - **The Unit tests shard weights come from fifteen master runs.** The old snapshot held one regressed file at 302 s after its fix. The slowest shard ran 62 s p50 over the mean (measured). The refresh models 16 s over the mean with no run noise, and about 32 s p50 with run noise (modelled). The shard count stays at five. The model alone gives the 3, 4 and 6 comparisons; no run measured them. (refs #3801)
110
+
111
+ - Record the rust-analyzer measurement at the neighbour cascade's references loop. Overlapping the calls saves 5 ms warm, 16 ms after a body edit and an unstable 21-77 ms after a structural edit on clap, short of a stable 50 ms, so the loop stays serial. (closes #5174)
112
+
113
+ - **CI flags the tests that already spent most of their timeout.** `scripts/check-test-timeout-headroom.mjs` reads each shard's `vitest-results.json`, folds the effective per-test budget out of the source (the `it`/`test` value, an options object's `timeout`, the enclosing `describe` or `test.each` tail options, a module-scope `vi.setConfig`, `scaledTestTimeout`, or Vitest's default), and annotates every assertion that ran past 60% of it. A cap the fold cannot settle — a `vi.setConfig` inside a hook or test body, an options name re-bound with `=`, an options object with a spread after `timeout`, or options written after the handler, a signature half vitest refuses to collect — is counted in the summary as unresolved and measured against the smallest budget the file declares, so it is visible rather than measured against a default it does not run under. The step is advisory (`continue-on-error`) and a run that could not measure at all emits a `::warning` rather than reddening the shard, `scripts/test-timeout-headroom-baseline.json` carries the current offenders, so the annotation surface is the new ones. (`--fail-on-new` makes the same check block.) A baseline row whose test has been renamed or deleted is printed as `stale` so the ledger cannot quietly stop measuring. The LSP explicit-query test file `tests/tools/lsp-diagnostics-explicit-query-limit-5306.test.ts` now calls `vi.setConfig` at module scope, where vitest reads it, so its real budget widens from 5000 ms to 30000 ms (90000 ms at CI scale 3); the old `beforeAll` call never applied, and its longest test runs 339 ms. (refs #5311)
114
+
115
+ - Let `bounded()` take its work as a thunk, `bounded((signal) => work, opts)`, run inside `spawnAbortScope` so a bound that fires aborts the scope its work runs in: the spawns and the requests that read `getAmbientAbortSignal()` (document symbols, code actions, and since #5097 the diagnostic pull and clean-confirm ping under `touchFile` and `getDiagnostics`) are cancelled instead of abandoned. Eight hook awaits that left work running now use it or carry a named reason in the `work` column of `BOUNDED_CALL_SITES`, and a new `bounded(` without that column reds. (refs #5550)
116
+
117
+ - Remove `withTimeout` and `withinRemaining` from `clients/deadline-utils.ts`. Both only preset `withDeadline`'s options, and none of their 11 callers is a hook await, so each now names the options on `withDeadline`; behaviour is unchanged. Two cases prove that a `bounded()` deadline, not only the turn's abort, cancels the real diagnostic pull under the persistent re-verify touch and the enrichment's `getDiagnostics`. (refs #5550)
118
+
119
+ - Make `scripts/ci-verdict.mjs` print green for a PR only when the PR's own `statusCheckRollup` (the view GitHub's merge gate reads) also carries a concluded success for every required name (each judged by its newest rollup entry, so a superseded cancelled run does not red): a PR whose required rows came from `workflow_dispatch` runs alone, as #5623's did, reads pending with the close/reopen advice instead of exit 0 over a BLOCKED merge, and an unreadable rollup is pending, never green. (refs #5629)
120
+
121
+ - Stopped two required-lane test flakes: the tool-cwd language-root cell now runs under the lane-scaled timeout, and the `lsp_diagnostics` abort cell asserts the abort (not the per-file deadline) released the in-flight file from the outcome's reason instead of a 500 ms elapsed margin. (refs #5645)
122
+
123
+ - Settle the installer's probe-cache writer before the fallow archive test removes its home: the teardown now joins `updateProbeCache` calls that have not marked their change yet, then drains the probe-cache flush, so `probe-cache.json` and its lock no longer re-create the removed root and red the tmp-fixture hygiene owner. (closes #5657)
124
+
125
+ - The shard 5 dead-owner census lists a managed process whose owner tag it could not read and that nothing owns any more, and a real-process witness shows it finds a managed child under a reaped owner (refs #5528).
126
+
127
+ - **A broader shape-86 governance rule ships disabled.** `awaited-loop-wait` admits an awaited test loop only when a real-clock deadline bounds it or it awaits nothing but `waitFor`, and it reports the 29 of the #5618 review's 35 planted equivalents that the active `turn-count-wait` rule misses. On the tree it reports 669 loops, of which at least 17, among the members read, are real-I/O waits, so it sits in `scripts/governance-rules/rules-disabled/`. Its rule tests run through `sgconfig-disabled.yml`. The active rule and its baseline are unchanged. (refs #4865)
128
+
129
+ - **The real-I/O members of the shape-86 census end their waits on the clock.** Thirteen test files and the two test-hook poll loops in `clients/` bounded a wait by an iteration count, so one descheduled sleep shortened the wall clock the wait was giving its producer: the two persist waits in `waitForProjectSnapshotPersistsForTests` and `waitForReviewGraphPersistsForTests`, the rename-echo grace windows, the file-landed and file-removed helpers, the degradation-ledger and session-sidecar pumps, and the two installer negative windows. Each now carries a `Date.now()` ceiling — `waitFor` where the read is synchronous, the same pump under a deadline where it is not — and `warm-attach-socket-error`'s negative case takes the event its 50 turns stood in for: the accepted socket's own `close`. The governance baseline drops the 14 `turn-count-wait` rows these fixes removed, and the flake-shape baseline drops two vanished `raw-timer-wait` rows and tightens two counts. (refs #4865)
130
+
131
+ - Delete the sync `findCommand` from `clients/safe-spawn.ts` and the `isOnPath` wrapper from `clients/lsp/server.ts`. The LSP runtime gate calls `isCommandAvailableAsync` directly, so it asks the same PATH question as before. No observable change. (refs #5410)
132
+
133
+ - The DEFERRED auxiliary-resync drift case no longer shrinks the notify budget: the 50ms value armed a 250ms wedge timer, and a loaded runner that outlived it demoted the auxiliary mid-case and left the sweep with nothing to heal. The case now parks and releases the blocking write itself, and the `never-settling-wait` baseline row for the file is gone. (refs #5555)
134
+
135
+ - **The local PR-body lint self-check keeps its time budget on a loaded runner.** The case that runs the preflight command in five argv forms launched its five `node` children one after another, so a loaded runner pushed it past the 5000 ms test timeout (941 ms idle, 8970 ms on a loaded CI shard). The five forms now run together, so the case costs its slowest single child, and each refusal is pinned by the rule text the child prints, not only by a non-zero exit. (refs #5597)
136
+
137
+ - Pin the slow-filesystem kill switch (`PI_LENS_ALLOW_SLOW_FS_SCAN=1`) for every pi-session test case, so its notification assertions no longer depend on the runner's disk latency. A forced-slow case guards the pin, and the restore runs in `afterAll`. (refs #5602)
138
+
139
+ - Make the Java trust-flip probe case in `session-repository-trust-4530.test.ts` warm its own lazy probe helpers, so it no longer passes only after a sibling case loaded them; it was red under the nightly shuffle seeds 202 and 424. (refs #5607)
140
+
141
+ - The pre-push hook puts this checkout's `node_modules/.bin` first as an absolute path, so a test spawn from another directory finds `ast-grep` instead of failing `ENOENT` (refs #5630).
142
+
143
+ - **The Unit tests shard weights come from the newest ten green master runs.** The old 15-run snapshot priced 10 live test files at the median; the refresh from the shard reports of ten green `ci.yml` push runs prices all 1,882 live files. (refs #3753)
144
+
145
+ - The agent_end drain's format and autofix writes record through the mutation bridge's one body, `recordMutationOutcome`, as a `drain` writer, so its two hand-copied recorders are gone; the direct LSP branch names its change-log row through the same `source` option. (refs #5551)
146
+
147
+ - Add the writer table (`clients/writers.ts`): every route that changes a file, against the consumers each one reaches, with the probe behind each cell. A census test fails on a new file-writing site with no registry row. The LSP edit bookkeeping now records through `recordMutationOutcome`, the one recorder the mutation bridge uses, instead of a hand copy. (refs #5551)
148
+
149
+ </details>
150
+
19
151
  ## [4.5.0] - 2026-11-14
20
152
 
21
153
  ### Changed
package/README.md CHANGED
@@ -441,6 +441,8 @@ Thanks goes to these wonderful people:
441
441
  <tr>
442
442
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/HyeokjaeLee"><img src="https://avatars.githubusercontent.com/u/71566740?v=4" width="100px;" alt=""/><br /><sub><b>HyeokjaeLee</b></sub></a><br /><a href="#code-HyeokjaeLee" title="Code">💻</a> <a href="#bug-HyeokjaeLee" title="Bug reports">🐛</a></td>
443
443
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/dmarchevsky"><img src="https://avatars.githubusercontent.com/u/32597866?v=4" width="100px;" alt=""/><br /><sub><b>Dima Marchevskyi</b></sub></a><br /><a href="#bug-dmarchevsky" title="Bug reports">🐛</a></td>
444
+ <td align="center" valign="top" width="14.28%"><a href="https://jennyleidig.straw.page/"><img src="https://avatars.githubusercontent.com/u/131712584?v=4" width="100px;" alt=""/><br /><sub><b>Jenny Leidig</b></sub></a><br /><a href="#code-jennymaeleidig" title="Code">💻</a> <a href="#ideas-jennymaeleidig" title="Ideas & Planning">🤔</a></td>
445
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/yorch"><img src="https://avatars.githubusercontent.com/u/60499?v=4" width="100px;" alt=""/><br /><sub><b>Jorge Barnaby</b></sub></a><br /><a href="#bug-yorch" title="Bug reports">🐛</a></td>
444
446
  </tr>
445
447
  </tbody>
446
448
  </table>
@@ -37,6 +37,7 @@
37
37
  "./clients/instance-reaper.js",
38
38
  "./clients/instance-registry.js",
39
39
  "./clients/io-bridge.js",
40
+ "./clients/issues-status.js",
40
41
  "./clients/language-profile.js",
41
42
  "./clients/latency-logger.js",
42
43
  "./clients/lens-config.js",
@@ -2,17 +2,17 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
2
2
  import {
3
3
  createAvailabilityProbeFlight,
4
4
  probeToolAsync
5
- } from "./chunk-KXGTLAUW.js";
6
- import {
7
- registerBackgroundWriteDrain
8
- } from "./chunk-UYXV5NIS.js";
5
+ } from "./chunk-WWZLT6AM.js";
9
6
  import {
10
7
  classifyFinderFailure,
11
8
  createAvailabilityLatch,
12
9
  isTransientDecision,
13
10
  logAvailabilityDecision,
14
11
  startHostStallSampler
15
- } from "./chunk-6GLMMGCX.js";
12
+ } from "./chunk-LDPY22FS.js";
13
+ import {
14
+ registerBackgroundWriteDrain
15
+ } from "./chunk-UYXV5NIS.js";
16
16
  import {
17
17
  NODE_MODULES_BIN_DIRS,
18
18
  createGenerationSource,
@@ -20,21 +20,21 @@ import {
20
20
  projectLocalBinDirs,
21
21
  recordProjectCommandRefusal,
22
22
  safeSpawnAsync
23
- } from "./chunk-3PO4YYOX.js";
23
+ } from "./chunk-M3QGXGY4.js";
24
24
  import {
25
25
  getProjectTrustState,
26
26
  withDeadline
27
- } from "./chunk-W26QZ3OM.js";
27
+ } from "./chunk-EKQDQPX6.js";
28
28
  import {
29
29
  logExtension,
30
30
  recordDegradationOnce
31
- } from "./chunk-NHA5K226.js";
31
+ } from "./chunk-P7EV5ISR.js";
32
32
  import {
33
33
  isAtOrAboveHomeDir,
34
34
  isUnderDir,
35
35
  realpathOrResolve,
36
36
  walkUpDirs
37
- } from "./chunk-WLD6BGON.js";
37
+ } from "./chunk-6MWX2J5H.js";
38
38
 
39
39
  // dist/clients/package-manager.js
40
40
  import * as fs from "node:fs";
@@ -206,10 +206,10 @@ async function globalBinDirsFor(pm) {
206
206
  if (cached)
207
207
  return cached;
208
208
  const generation = packageManagerCacheGeneration.capture();
209
- const shared = globalBinDirProbeFlights.run(key, () => probeGlobalBinDirs(pm, key, scoped, generation));
209
+ const shared = globalBinDirProbeFlights.run(key, () => probeGlobalBinDirs(pm, key, generation));
210
210
  return shared.promise;
211
211
  }
212
- async function probeGlobalBinDirs(pm, key, scoped, generation) {
212
+ async function probeGlobalBinDirs(pm, key, generation) {
213
213
  if (pm === "bun") {
214
214
  const base = process.env.BUN_INSTALL || path.join(os.homedir(), ".bun");
215
215
  const dirs2 = [path.join(base, "bin")];
@@ -221,7 +221,7 @@ async function probeGlobalBinDirs(pm, key, scoped, generation) {
221
221
  const query = pm === "npm" ? ["config", "get", "prefix"] : pm === "pnpm" ? ["bin", "-g"] : ["global", "bin"];
222
222
  const res = await safeSpawnAsync(pmBinary(pm), query, {
223
223
  timeout: 5e3,
224
- ...scoped && { cwd: os.homedir() }
224
+ cwd: os.homedir()
225
225
  });
226
226
  if (res.status !== 0 || res.error)
227
227
  return [];
@@ -241,7 +241,7 @@ async function allAvailableGlobalBinDirs(onTransient) {
241
241
  if (!await isAvailable(pm, onTransient))
242
242
  continue;
243
243
  for (const dir of await globalBinDirsFor(pm)) {
244
- const normalized = path.resolve(dir);
244
+ const normalized = path.resolve(os.homedir(), dir);
245
245
  if (seen.has(normalized))
246
246
  continue;
247
247
  seen.add(normalized);
@@ -314,12 +314,23 @@ function commandSearchReachesProject(cwd) {
314
314
  const posix = process.platform !== "win32";
315
315
  return (process.env.PATH ?? "").split(path.delimiter).some((entry) => entry === "" ? posix : !path.isAbsolute(entry) || isUnderDir(entry, cwd) || isProjectLocalBinPath(entry, cwd));
316
316
  }
317
- function expandCandidateNames(tools, windowsExt, isWindows) {
318
- return isWindows && windowsExt !== "" ? tools.flatMap((tool) => [`${tool}${windowsExt}`, tool]) : [...tools];
319
- }
320
- function* matchesInDir(dir, names, binDirs) {
321
- for (const name of names) {
322
- for (const binDir of binDirs) {
317
+ function* matchesInDir(dir, tools, binDirs, windowsExt, binDirWindowsExt, isWindows) {
318
+ const extsByDir = binDirs.map((binDir) => isWindows ? [
319
+ ...new Set([binDirWindowsExt?.[binDir], windowsExt].flatMap((ext) => ext ? [ext] : []))
320
+ ] : []);
321
+ const rounds = Math.max(0, ...extsByDir.map((exts) => exts.length));
322
+ for (const tool of tools) {
323
+ const candidates = [];
324
+ for (let round = 0; round < rounds; round++) {
325
+ for (const [i, binDir] of binDirs.entries()) {
326
+ const ext = extsByDir[i]?.[round];
327
+ if (ext !== void 0)
328
+ candidates.push([binDir, tool + ext]);
329
+ }
330
+ }
331
+ for (const binDir of binDirs)
332
+ candidates.push([binDir, tool]);
333
+ for (const [binDir, name] of candidates) {
323
334
  const full = path.join(dir, binDir, name);
324
335
  if (fs.existsSync(full))
325
336
  yield full;
@@ -327,15 +338,14 @@ function* matchesInDir(dir, names, binDirs) {
327
338
  }
328
339
  }
329
340
  function* localBinMatches(tools, startDir, options) {
330
- const { windowsExt = ".cmd", homeDir = os.homedir(), binDirs = NODE_MODULES_BIN_DIRS, isWindows = onWindows(), ceiling = true } = options;
331
- const names = expandCandidateNames(tools, windowsExt, isWindows);
341
+ const { windowsExt = ".cmd", homeDir = os.homedir(), binDirs = NODE_MODULES_BIN_DIRS, binDirWindowsExt, isWindows = onWindows(), ceiling = true } = options;
332
342
  const home = ceiling ? realpathOrResolve(homeDir) : homeDir;
333
343
  let startIsReal;
334
344
  for (const dir of walkUpDirs(startDir, { spelling: true })) {
335
345
  startIsReal ??= ceiling && realpathOrResolve(dir) === dir;
336
346
  if (ceiling && isAtOrAboveHomeDir(startIsReal ? dir : realpathOrResolve(dir), home))
337
347
  return;
338
- yield* matchesInDir(dir, names, binDirs);
348
+ yield* matchesInDir(dir, tools, binDirs, windowsExt, binDirWindowsExt, isWindows);
339
349
  }
340
350
  }
341
351
  function findLocalBinUpwards(tool, startDir, options = {}) {
@@ -347,9 +357,10 @@ function findLocalBinUpwards(tool, startDir, options = {}) {
347
357
  return match;
348
358
  }
349
359
  function findLocalBinsAt(tools, dir, options = {}) {
350
- const { windowsExt = ".cmd", binDirs = NODE_MODULES_BIN_DIRS, isWindows = onWindows() } = options;
351
- const names = expandCandidateNames(tools, windowsExt, isWindows);
352
- const matches = [...matchesInDir(path.resolve(dir), names, binDirs)];
360
+ const { windowsExt = ".cmd", binDirs = NODE_MODULES_BIN_DIRS, binDirWindowsExt, isWindows = onWindows() } = options;
361
+ const matches = [
362
+ ...matchesInDir(path.resolve(dir), tools, binDirs, windowsExt, binDirWindowsExt, isWindows)
363
+ ];
353
364
  if (matches.length === 0 || getProjectTrustState() === "trusted")
354
365
  return matches;
355
366
  return [refuseLocalBin(tools.join(","), dir)];
@@ -1,15 +1,15 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  getGlobalPiLensDir
4
- } from "./chunk-3PO4YYOX.js";
4
+ } from "./chunk-M3QGXGY4.js";
5
5
  import {
6
6
  getTurnId
7
- } from "./chunk-7CLWC2UH.js";
7
+ } from "./chunk-HUWW77QY.js";
8
8
  import {
9
9
  BoundedFifoMap,
10
10
  realpathOrResolve,
11
11
  walkUpDirs
12
- } from "./chunk-WLD6BGON.js";
12
+ } from "./chunk-6MWX2J5H.js";
13
13
  import {
14
14
  __export
15
15
  } from "./chunk-NXL4FFQQ.js";
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
2
2
  import {
3
3
  detectFileRole
4
- } from "./chunk-PQF6YGYB.js";
4
+ } from "./chunk-N2U644ZW.js";
5
5
 
6
6
  // dist/clients/collateral-test-role.js
7
7
  function isTestRoleCollateral(filePath) {
@@ -58,61 +58,61 @@ import {
58
58
  seqFastpathEnabled,
59
59
  terminateReviewGraphPersistWorkerForTests,
60
60
  waitForReviewGraphPersistsForTests
61
- } from "./chunk-4DAHGU3V.js";
61
+ } from "./chunk-W2JPGW7Q.js";
62
62
  import "./chunk-3MED75HT.js";
63
63
  import "./chunk-PKLB2XJL.js";
64
- import "./chunk-TWEOJE3D.js";
65
- import "./chunk-VSQT6IHZ.js";
64
+ import "./chunk-EXHSWN3P.js";
65
+ import "./chunk-35UJUF27.js";
66
66
  import "./chunk-XIMYZ3JA.js";
67
- import "./chunk-AXAR5ZW2.js";
68
- import "./chunk-7WKVCZI4.js";
69
- import "./chunk-2H5GHZKC.js";
70
- import "./chunk-QV3JPCMK.js";
71
- import "./chunk-NNEQOC3U.js";
72
- import "./chunk-LQQNFCQJ.js";
67
+ import "./chunk-YIEHUKX2.js";
68
+ import "./chunk-J7VNGHLN.js";
69
+ import "./chunk-AB26NAHA.js";
70
+ import "./chunk-5HVDD7IA.js";
71
+ import "./chunk-B2QO7GHY.js";
73
72
  import "./chunk-5W3R6LFT.js";
74
- import "./chunk-ARTYCUGF.js";
75
- import "./chunk-JGUDT5KD.js";
76
- import "./chunk-CXQYK4YT.js";
77
- import "./chunk-37IDWT6O.js";
73
+ import "./chunk-S7KUDW73.js";
74
+ import "./chunk-KSQJBGRO.js";
75
+ import "./chunk-H6DNTQ4V.js";
76
+ import "./chunk-4GLSO2EM.js";
78
77
  import "./chunk-Z54ZSOBZ.js";
79
- import "./chunk-ZQSSO7LO.js";
78
+ import "./chunk-2DWNYVUN.js";
80
79
  import "./chunk-6HWVI6MI.js";
81
- import "./chunk-AZG5UJYY.js";
82
- import "./chunk-P5MSLVUW.js";
83
- import "./chunk-ADYQRETD.js";
84
- import "./chunk-DI4AZZNY.js";
85
- import "./chunk-3TSMQZG6.js";
80
+ import "./chunk-HMXWZUQW.js";
81
+ import "./chunk-MET776XM.js";
82
+ import "./chunk-BQ72NQQM.js";
83
+ import "./chunk-BYIEU4E4.js";
84
+ import "./chunk-NAACKIKT.js";
85
+ import "./chunk-6MDWNZ7E.js";
86
86
  import "./chunk-2APSZHHI.js";
87
- import "./chunk-ZRQMENT4.js";
87
+ import "./chunk-62PIU4TO.js";
88
88
  import "./chunk-2BEMIWEW.js";
89
89
  import "./chunk-IJYGIDF4.js";
90
- import "./chunk-B2OXE4AH.js";
91
- import "./chunk-LVLPA32Q.js";
92
- import "./chunk-LGH2HHZG.js";
93
- import "./chunk-KXGTLAUW.js";
90
+ import "./chunk-YOMLAKU6.js";
91
+ import "./chunk-T2D2WWP6.js";
92
+ import "./chunk-25CAONWT.js";
93
+ import "./chunk-WWZLT6AM.js";
94
+ import "./chunk-DKXIUGNA.js";
95
+ import "./chunk-LDPY22FS.js";
96
+ import "./chunk-HOWHAKXO.js";
97
+ import "./chunk-WJ7GY5WJ.js";
98
+ import "./chunk-WA6U2URH.js";
99
+ import "./chunk-TABDCX35.js";
94
100
  import "./chunk-TQWRH25U.js";
95
101
  import "./chunk-UYXV5NIS.js";
96
- import "./chunk-KNSOA43J.js";
97
- import "./chunk-6GLMMGCX.js";
98
- import "./chunk-XSC3BCN3.js";
99
- import "./chunk-27JQHK7Y.js";
100
- import "./chunk-R4L7KZ7R.js";
101
- import "./chunk-74AMPWNC.js";
102
- import "./chunk-3PO4YYOX.js";
103
- import "./chunk-5JB4WENL.js";
102
+ import "./chunk-M3QGXGY4.js";
103
+ import "./chunk-GIK6VUCY.js";
104
104
  import "./chunk-QYF5S6P6.js";
105
- import "./chunk-CQY2HEH7.js";
106
- import "./chunk-PQF6YGYB.js";
107
- import "./chunk-LOEJFTF2.js";
105
+ import "./chunk-N2U644ZW.js";
106
+ import "./chunk-SL4G67AP.js";
107
+ import "./chunk-DLGJYQML.js";
108
108
  import "./chunk-CIA7X2PZ.js";
109
- import "./chunk-W26QZ3OM.js";
110
- import "./chunk-NHA5K226.js";
109
+ import "./chunk-EKQDQPX6.js";
110
+ import "./chunk-P7EV5ISR.js";
111
111
  import "./chunk-S26LC76R.js";
112
- import "./chunk-7CLWC2UH.js";
112
+ import "./chunk-HUWW77QY.js";
113
113
  import "./chunk-LJDODBBZ.js";
114
- import "./chunk-O6LCSHHI.js";
115
- import "./chunk-WLD6BGON.js";
114
+ import "./chunk-NHHS5T52.js";
115
+ import "./chunk-6MWX2J5H.js";
116
116
  import "./chunk-NXL4FFQQ.js";
117
117
  export {
118
118
  GRAPH_PERSIST_MAX_ELEMENTS_DEFAULT,
@@ -2,20 +2,20 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
2
2
  import {
3
3
  functionName,
4
4
  measureFunction
5
- } from "./chunk-C5PLBTNR.js";
5
+ } from "./chunk-Y2LIOCA7.js";
6
6
  import {
7
7
  extractFactsFromTree
8
- } from "./chunk-KZ732ZVW.js";
8
+ } from "./chunk-IO6P3NBP.js";
9
9
  import {
10
10
  findOwnerName
11
11
  } from "./chunk-5W3R6LFT.js";
12
12
  import {
13
13
  firstChildOfType,
14
14
  walk
15
- } from "./chunk-37IDWT6O.js";
15
+ } from "./chunk-4GLSO2EM.js";
16
16
  import {
17
17
  isJstsFactFile
18
- } from "./chunk-CQY2HEH7.js";
18
+ } from "./chunk-SL4G67AP.js";
19
19
 
20
20
  // dist/clients/dispatch/facts/function-facts.js
21
21
  var BOUNDARY_PREFIXES = [
@@ -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-3PO4YYOX.js";
4
+ } from "./chunk-M3QGXGY4.js";
5
5
  import {
6
6
  createNdjsonLogger,
7
7
  getGlobalPiLensLogDir,
8
8
  getProcessSingleton,
9
9
  getTurnId,
10
10
  isTestMode
11
- } from "./chunk-7CLWC2UH.js";
11
+ } from "./chunk-HUWW77QY.js";
12
12
  import {
13
13
  BoundedFifoMap,
14
14
  normalizeFilePath,
15
15
  normalizeMapKey,
16
16
  toPosix
17
- } from "./chunk-WLD6BGON.js";
17
+ } from "./chunk-6MWX2J5H.js";
18
18
 
19
19
  // dist/clients/hashline-anchor.js
20
20
  var HASHLINE_ANCHOR_LENGTH = 3;
@@ -377,6 +377,19 @@ function isMutatingToolName(toolName) {
377
377
  }
378
378
  var RESOLVED_RANGE_CARRY_LIMIT = 64;
379
379
  var RESOLVED_RANGE_CARRY = new BoundedFifoMap(RESOLVED_RANGE_CARRY_LIMIT);
380
+ function classifyBridgeMutation(entry) {
381
+ const provenance = entry.provenance === "observed" || entry.provenance === "settled-sweep" ? entry.provenance : "bridge";
382
+ return {
383
+ toolName: entry.consumer ?? "unknown",
384
+ path: entry.filePath,
385
+ kind: entry.kind,
386
+ touchedLines: entry.touchedLines,
387
+ editRanges: entry.editRanges,
388
+ authorshipUnknown: entry.authorshipUnknown,
389
+ provenance,
390
+ source: provenance === "bridge" ? "mutation-bridge" : "observed-mutation"
391
+ };
392
+ }
380
393
 
381
394
  export {
382
395
  normalizeMessage,
@@ -394,5 +407,6 @@ export {
394
407
  logReadGuardEvent,
395
408
  primePersistedMutationAttribution,
396
409
  resetMutationAttribution,
397
- isMutatingToolName
410
+ isMutatingToolName,
411
+ classifyBridgeMutation
398
412
  };
@@ -7,29 +7,29 @@ import {
7
7
  extractForwardImportPaths,
8
8
  extractForwardImports,
9
9
  sweepInlineBlockerFreshness
10
- } from "./chunk-ARTYCUGF.js";
11
- import "./chunk-JGUDT5KD.js";
12
- import "./chunk-CXQYK4YT.js";
13
- import "./chunk-37IDWT6O.js";
10
+ } from "./chunk-S7KUDW73.js";
11
+ import "./chunk-KSQJBGRO.js";
12
+ import "./chunk-H6DNTQ4V.js";
13
+ import "./chunk-4GLSO2EM.js";
14
14
  import "./chunk-Z54ZSOBZ.js";
15
- import "./chunk-ZQSSO7LO.js";
16
- import "./chunk-DI4AZZNY.js";
17
- import "./chunk-ZRQMENT4.js";
18
- import "./chunk-KNSOA43J.js";
19
- import "./chunk-6GLMMGCX.js";
20
- import "./chunk-3PO4YYOX.js";
21
- import "./chunk-CQY2HEH7.js";
22
- import "./chunk-PQF6YGYB.js";
23
- import "./chunk-LOEJFTF2.js";
15
+ import "./chunk-2DWNYVUN.js";
16
+ import "./chunk-NAACKIKT.js";
17
+ import "./chunk-62PIU4TO.js";
18
+ import "./chunk-DKXIUGNA.js";
19
+ import "./chunk-LDPY22FS.js";
20
+ import "./chunk-M3QGXGY4.js";
21
+ import "./chunk-N2U644ZW.js";
22
+ import "./chunk-SL4G67AP.js";
23
+ import "./chunk-DLGJYQML.js";
24
24
  import "./chunk-CIA7X2PZ.js";
25
- import "./chunk-W26QZ3OM.js";
26
- import "./chunk-NHA5K226.js";
25
+ import "./chunk-EKQDQPX6.js";
26
+ import "./chunk-P7EV5ISR.js";
27
27
  import {
28
28
  MTIME_DRIFT_TOLERANCE_MS
29
29
  } from "./chunk-S26LC76R.js";
30
- import "./chunk-7CLWC2UH.js";
30
+ import "./chunk-HUWW77QY.js";
31
31
  import "./chunk-LJDODBBZ.js";
32
- import "./chunk-WLD6BGON.js";
32
+ import "./chunk-6MWX2J5H.js";
33
33
  import "./chunk-NXL4FFQQ.js";
34
34
  export {
35
35
  DEPENDENCY_DRIFT_MAX_DELIVERIES,