pi-lens 4.4.8 → 4.4.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG-USER.md +31 -0
- package/CHANGELOG.md +258 -0
- package/README.md +4 -1
- package/config/dependency-cruiser-eager-allowlist.json +1 -1
- package/dist/{chunk-6YUNI7B5.js → chunk-2ADRLTM2.js} +14 -60
- package/dist/{chunk-4B2YFN4U.js → chunk-2LVJQU3I.js} +46 -33
- package/dist/{chunk-2453RRJ2.js → chunk-3FRI5H4T.js} +72 -23
- package/dist/{chunk-7MAD5ZAY.js → chunk-3HM4BUHR.js} +14 -16
- package/dist/chunk-3QWVOBZJ.js +73 -0
- package/dist/{chunk-PIQQM32Y.js → chunk-46TQJSUE.js} +4 -2
- package/dist/{chunk-RZG472YW.js → chunk-4ITEFRDH.js} +84 -46
- package/dist/{chunk-6FIRFP6A.js → chunk-4NCDHTFI.js} +10 -12
- package/dist/{chunk-7CGIDRIK.js → chunk-6I44EDNQ.js} +14 -16
- package/dist/{chunk-2BKUFQKR.js → chunk-6MDM5MQT.js} +554 -217
- package/dist/{chunk-BBET6HD6.js → chunk-7JX3RNG4.js} +1 -1
- package/dist/{chunk-JE6HKLC7.js → chunk-7WJ55KBN.js} +2 -4
- package/dist/{chunk-4BKU7PV3.js → chunk-A5TEJZGJ.js} +2 -1
- package/dist/{chunk-7ANZ7XDD.js → chunk-ACRJ2GZ5.js} +2 -2
- package/dist/{chunk-2ZE3AUJQ.js → chunk-ALIZWXHZ.js} +13 -15
- package/dist/{chunk-BQG2QFVO.js → chunk-AON2QIJF.js} +43 -55
- package/dist/chunk-B2YUE6YD.js +23 -0
- package/dist/{chunk-L4NEVZ4T.js → chunk-B6HXETWY.js} +25 -27
- package/dist/chunk-BDR5MEZY.js +25 -0
- package/dist/{chunk-HXFUTMX2.js → chunk-BGLS5SDN.js} +2 -2
- package/dist/{chunk-ZZDIOAAJ.js → chunk-BRESRQBE.js} +6 -6
- package/dist/{chunk-WXUDRAG6.js → chunk-C6AODRNU.js} +10 -12
- package/dist/{chunk-GMROJJRN.js → chunk-CB7PEVOJ.js} +9 -1
- package/dist/{chunk-BHWW6FAX.js → chunk-CTB5BAJI.js} +53 -22
- package/dist/{chunk-VN3L2JWZ.js → chunk-CYUJB552.js} +5 -5
- package/dist/{chunk-6GMGEKQN.js → chunk-CZAWWXP6.js} +39 -12
- package/dist/{chunk-G5GV2Q7K.js → chunk-CZCAZVTD.js} +16 -2
- package/dist/chunk-DBS736MA.js +57 -0
- package/dist/{chunk-OWTG6UMO.js → chunk-DOUAWKLO.js} +75 -22
- package/dist/{chunk-BOPDQ7AZ.js → chunk-DVRJBQOJ.js} +19 -21
- package/dist/{chunk-UHHLR2VY.js → chunk-E4VXKTBR.js} +38 -41
- package/dist/{chunk-X66YJ2SS.js → chunk-F6FT6BVQ.js} +33 -34
- package/dist/{chunk-GIRBSBGL.js → chunk-FCQSZQAT.js} +3 -3
- package/dist/{chunk-X35S7HSB.js → chunk-FOEPIX76.js} +41 -30
- package/dist/{chunk-MC6VB2E5.js → chunk-GMC4ZGYR.js} +17 -5
- package/dist/{chunk-7TNILKGY.js → chunk-GTTMQ6XB.js} +1 -1
- package/dist/{chunk-HHR7WGCI.js → chunk-GUGKKGG7.js} +3 -3
- package/dist/{chunk-OZWXLJMX.js → chunk-GVWIU7M7.js} +2 -2
- package/dist/{chunk-WMDUT4KH.js → chunk-H65TYP6V.js} +94 -90
- package/dist/{chunk-5F3XF3SX.js → chunk-HILZE4BQ.js} +9 -8
- package/dist/{chunk-PKSUMEPT.js → chunk-HSYFLOZY.js} +3 -3
- package/dist/{chunk-4QG55RRC.js → chunk-I32RSMH6.js} +10 -12
- package/dist/chunk-I74RQGKA.js +88 -0
- package/dist/{chunk-G6JKM4O7.js → chunk-IDCTDKIA.js} +10 -10
- package/dist/chunk-IK4YS3KC.js +25 -0
- package/dist/{chunk-O2ARHQKF.js → chunk-IL6PIV33.js} +2 -2
- package/dist/{chunk-L3CLUGDY.js → chunk-J6BR5XN2.js} +3 -3
- package/dist/chunk-JKOZ2Z4U.js +20 -0
- package/dist/{chunk-SP4TFY5F.js → chunk-JZQGRARR.js} +11 -13
- package/dist/{chunk-CUDD35TW.js → chunk-K6WIBVMK.js} +6 -5
- package/dist/{chunk-DIWK3LBC.js → chunk-KDCIG23C.js} +8 -10
- package/dist/{chunk-4NBWFYWW.js → chunk-KFRDFAOE.js} +8 -33
- package/dist/{chunk-I22THIHI.js → chunk-KJ3AHOCK.js} +10 -12
- package/dist/{chunk-VOP4PJKA.js → chunk-KSTQ4VXT.js} +7 -9
- package/dist/{chunk-RGGH6M34.js → chunk-LT62P654.js} +1 -1
- package/dist/chunk-MAD4QJTP.js +198 -0
- package/dist/{chunk-CM73PPGD.js → chunk-MN635QYA.js} +3 -4
- package/dist/{chunk-HUAM7QG3.js → chunk-NBM7PNBP.js} +25 -23
- package/dist/{chunk-DYRZGUMA.js → chunk-NE4EFHJX.js} +2 -2
- package/dist/{chunk-SQC7K3SP.js → chunk-NL5LSKVD.js} +2 -2
- package/dist/{chunk-JZRP4DGP.js → chunk-NPNFGYLV.js} +4 -2
- package/dist/{chunk-NM2NWH55.js → chunk-NUSXS6YB.js} +6 -5
- package/dist/{chunk-ZKLTNLAW.js → chunk-OPFNQBS5.js} +6 -6
- package/dist/{chunk-PPKECBPP.js → chunk-OTSTS7L2.js} +19 -1
- package/dist/{chunk-SFLHSL5R.js → chunk-PTSA6QKL.js} +18 -7
- package/dist/{chunk-OY7WZI7Q.js → chunk-Q2VCKC3X.js} +6 -6
- package/dist/{chunk-HKIL6DCL.js → chunk-QGITU23N.js} +1 -1
- package/dist/{chunk-3O5EII3W.js → chunk-QHOTTC4A.js} +2 -2
- package/dist/{chunk-35WKJWO5.js → chunk-QL37SGTS.js} +112 -20
- package/dist/{chunk-OC7VWJBZ.js → chunk-QMV2APEH.js} +35 -37
- package/dist/{chunk-BUZIQDFS.js → chunk-QSCZAP24.js} +3 -3
- package/dist/{chunk-O4N5BQ3T.js → chunk-QUPYLQA4.js} +8 -10
- package/dist/{chunk-A5GRLYPZ.js → chunk-QUQY3IME.js} +7 -13
- package/dist/{chunk-R2QQC33W.js → chunk-QWTHFFU6.js} +12 -14
- package/dist/{chunk-TV6RXRYH.js → chunk-RQRKIRFY.js} +8 -10
- package/dist/{chunk-ZFORSIED.js → chunk-S3WFVG5P.js} +15 -42
- package/dist/{chunk-5RNB4HVK.js → chunk-SG2JQ2YP.js} +1 -1
- package/dist/{chunk-KZ4ALBCH.js → chunk-SJQUWQR6.js} +2 -2
- package/dist/{chunk-T2S3FNNJ.js → chunk-SKVNHCT5.js} +41 -42
- package/dist/{chunk-SDFKOLSF.js → chunk-TJQSYX3J.js} +8 -6
- package/dist/{chunk-IYVYZQRL.js → chunk-TLWFZ66Y.js} +5 -7
- package/dist/{chunk-5T5A6YAJ.js → chunk-TN5CWX5D.js} +33 -34
- package/dist/chunk-TQHOKMVZ.js +28 -0
- package/dist/{chunk-XOMGO63G.js → chunk-TYHOEX4V.js} +19 -21
- package/dist/{chunk-6LJOJ6EO.js → chunk-UNBRHPHJ.js} +14 -16
- package/dist/{chunk-4LL2VRNY.js → chunk-UOO4D2TK.js} +16 -18
- package/dist/{chunk-AGGUWKRK.js → chunk-UY745U35.js} +1 -1
- package/dist/{chunk-LSFXZLPW.js → chunk-V7F7JHS5.js} +218 -253
- package/dist/{chunk-VLQ7UKZH.js → chunk-VCRVNLE7.js} +135 -2
- package/dist/{chunk-JPRDTY5S.js → chunk-VGTBLTPN.js} +8 -10
- package/dist/{chunk-JBP7KESM.js → chunk-VPFRU5IG.js} +1 -1
- package/dist/chunk-VS2L7QDI.js +25 -0
- package/dist/{chunk-4W52ZKZX.js → chunk-W4CUK5G6.js} +2 -2
- package/dist/{chunk-VPLBLWFO.js → chunk-W7TY6HYX.js} +1 -1
- package/dist/{chunk-JYLOYTZD.js → chunk-WAA63ZJV.js} +5 -1
- package/dist/{chunk-WC6WRNQT.js → chunk-WS3UFJOU.js} +2 -2
- package/dist/chunk-XAFZJEXY.js +50 -0
- package/dist/{chunk-XYLC35E4.js → chunk-XPGH5O74.js} +555 -336
- package/dist/{chunk-VOXTCULR.js → chunk-XVB3Q2PG.js} +2 -4
- package/dist/{chunk-FRLAUP2B.js → chunk-Y3EHLUPL.js} +4 -4
- package/dist/{chunk-CZL44WFN.js → chunk-YF4G5NN5.js} +2 -2
- package/dist/{chunk-XWIME22V.js → chunk-YQA34KAF.js} +11 -13
- package/dist/{chunk-FHEV6T4L.js → chunk-YT2VR4SL.js} +8 -10
- package/dist/chunk-ZD4KVFXI.js +234 -0
- package/dist/{chunk-NSPVR3FN.js → chunk-ZOPXB2KK.js} +17 -19
- package/dist/chunk-ZPFLHB3R.js +28 -0
- package/dist/{chunk-R4QWJQ2H.js → chunk-ZZDVGCGG.js} +9 -11
- package/dist/index.js +5398 -4438
- package/dist/mcp/analyze-cli.js +12 -17
- package/dist/mcp/cli.js +41 -42
- package/dist/mcp/server.js +1466 -663
- package/dist/mcp/worker.js +59 -60
- package/dist/probes/installer.js +17 -19
- package/docs/agent-guide.md +2 -1
- package/docs/agent-tools.md +53 -10
- package/docs/analysisall.md +1 -1
- package/docs/ci-bot-pr-checks.md +7 -5
- package/docs/configuration.md +60 -13
- package/docs/defect-shapes.md +67 -4
- package/docs/environment-variables.md +18 -1
- package/docs/features.md +23 -6
- package/docs/globalconfig.md +24 -3
- package/docs/invariants/language-config.md +9 -1
- package/docs/invariants/lsp-trust-exec.md +9 -2
- package/docs/invariants/session-telemetry.md +2 -2
- package/docs/language-coverage.md +67 -0
- package/docs/lsp-capability-matrix.md +121 -53
- package/docs/lsp-idle-eviction.md +20 -13
- package/docs/merge-queue-rollout.md +10 -8
- package/docs/module-report-read-symbol.md +34 -23
- package/docs/pi-lens-fixer.md +19 -7
- package/docs/pi-lens-investigator.md +3 -0
- package/docs/pi-lens-merge-policy.md +20 -8
- package/docs/pi-lens-release.md +3 -2
- package/docs/pi-lens-reviewer.md +53 -12
- package/docs/pi-lens-subagent.md +13 -0
- package/docs/public-api-stability.md +39 -5
- package/docs/release-qa-baseline.md +7 -4
- package/docs/schema/pi-lens-config-v1.json +11 -2
- package/docs/servercapabilities.md +3 -1
- package/docs/settings.md +9 -6
- package/docs/usage.md +1 -0
- package/docs/word-index.md +3 -2
- package/package.json +9 -4
- package/rules/ast-grep-rules/rules/no-sql-in-code-execute-js.yml +1 -2
- package/rules/ast-grep-rules/rules/no-sql-in-code-execute.yml +1 -2
- package/scripts/download-grammars.js +13 -2
- package/scripts/grammars.lock.json +7 -0
- package/skills/pi-lens-lsp-navigation/SKILL.md +5 -1
- package/vendor/grammars/tree-sitter-groovy.wasm +0 -0
- package/dist/chunk-2TS4GLOJ.js +0 -31
- package/dist/chunk-3JAHQBSY.js +0 -27
- package/dist/chunk-447YZL4S.js +0 -25
- package/dist/chunk-565VRUP4.js +0 -136
- package/dist/chunk-57X2CDRX.js +0 -49
- package/dist/chunk-GGYOZWHW.js +0 -27
- package/dist/chunk-IE5D3RA5.js +0 -58
- package/dist/chunk-LPYTPNOJ.js +0 -22
- package/dist/chunk-OFNMHPBT.js +0 -89
- package/dist/chunk-U3AS2FR6.js +0 -106
- package/dist/chunk-W3BGKBBK.js +0 -27
- package/dist/chunk-WQV6BI4Q.js +0 -48
- package/dist/chunk-YHGYAEFH.js +0 -443
- package/dist/chunk-ZONZ6YY3.js +0 -74
- package/dist/chunk-ZSM35JF4.js +0 -30
package/docs/features.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
### LSP Support
|
|
4
4
|
|
|
5
|
-
pi-lens includes **
|
|
5
|
+
pi-lens includes **51 language server definitions** (including four cross-cutting *auxiliary* scanners that attach alongside the file's language server — Opengrep, ast-grep, zizmor, and typos — and one opt-in, JS/TS-only auxiliary, fallow, off unless `fallow.enabled` is set; see below). LSP is **enabled by default**; use `--no-lsp` to disable it for a session. Servers are auto-discovered from PATH, project `node_modules`, and managed installs. When a server with a managed installer is not installed, pi-lens offers an interactive install prompt; toolchain-bundled servers, such as Lean's `lake`, are PATH-only, and pi-lens never installs or manages them.
|
|
6
6
|
|
|
7
7
|
**LSP Idle Management:** LSP servers shut down after 240 seconds of inactivity (no files modified) to free resources. The timer resets when you resume editing, preventing cold-start penalties during active development.
|
|
8
8
|
|
|
@@ -19,7 +19,9 @@ pi-lens includes **50 language server definitions** (including four cross-cuttin
|
|
|
19
19
|
- **`capabilities`** — shows which operations are supported by the active LSP server(s) for a file, read directly from the cached `initialize` response (no round-trip).
|
|
20
20
|
- **Symbol column resolution** — passing `symbol: "myFunc"` instead of an exact `character` position resolves the correct column automatically. Use `symbol: "foo#2"` for the second occurrence of `foo` on the line.
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
`lsp_navigation` answers with Neovim-style text by default: a `path:line:col` location list, `hover` markdown, an indented `start-end kind name` symbol tree, and `path:line:col: severity: message` diagnostic rows. Pass `view: "json"` for the structured envelope the pre-text default returned (refs #1449).
|
|
23
|
+
|
|
24
|
+
LSP servers for: TypeScript, Deno, Python (pyright/basedpyright + jedi), Go, Rust, Ruby (ruby-lsp + solargraph), PHP, PowerShell, C# (omnisharp), F#, Java (JDT LS, with Lombok javaagent support when a Lombok jar is available), Kotlin, Groovy (groovy-language-server, from PATH or `GROOVY_LANGUAGE_SERVER_JAR`), Lean, Swift, Dart, Lua, C/C++, Zig, Haskell, Elixir, Gleam, Typst (tinymist), Markdown (marksman), OCaml, Clojure, CUE (syntax and parse diagnostics; evaluation errors via the cue-vet auxiliary runner), Terraform, Nix, Bash, Shuck (zsh-aware shell language server), Fish, CMake, Docker, YAML, JSON, HTML, TOML, Prisma, Vue, Svelte, CSS.
|
|
23
25
|
|
|
24
26
|
|
|
25
27
|
### TypeScript and JavaScript server
|
|
@@ -149,6 +151,8 @@ pi-lens enforces a **read-before-edit** policy on all file writes and edits. Bef
|
|
|
149
151
|
|
|
150
152
|
Coverage is tracked across multiple reads: two reads of lines 1–100 and 101–200 together satisfy a full-file write. Symbol-expanded reads (small reads widened to the enclosing symbol via tree-sitter, labelled with a leading note) count toward coverage at the symbol level. Markdown files generate a warning instead of blocking (edits outside the section-expanded read range are warned, not silently passed). Plain-text (`.txt`) and log (`.log`) files remain fully exempt.
|
|
151
153
|
|
|
154
|
+
A provider extension's display-only replay of work that already ran is not guarded. pi-cursor-sdk replays Cursor's native edits as tool calls whose ids start with `cursor-replay-`; the files were written before the replay arrived, so an "Edit without read" refusal would protect nothing and only turn the replayed card into an error. Such a call is never checked by the read guard and never taught to pi-lens as a mutating tool name. A real `edit` or `write` call and Cursor's real bridged executions (`cursor-pi-bridge-*`) are checked as usual.
|
|
155
|
+
|
|
152
156
|
Override for a single edit: `/lens-allow-edit <path>`
|
|
153
157
|
|
|
154
158
|
Configure behavior with `--no-read-guard` to disable it entirely, or use the
|
|
@@ -178,9 +182,12 @@ path since they point at a different file. Pass `blastRadius: true` to also get
|
|
|
178
182
|
the cross-file **blast radius** — transitive dependents aggregated to ranked
|
|
179
183
|
file `read` args ("if you change this, verify these files"); read-only over
|
|
180
184
|
the cached graph, omitted when cold (this replaced the standalone
|
|
181
|
-
`pilens_impact` tool). `view
|
|
182
|
-
|
|
183
|
-
|
|
185
|
+
`pilens_impact` tool). `view` selects an output preset, projection × format
|
|
186
|
+
(`"summary-text"` default = metrics off, text; `"summary-json"`; `"full-text"`;
|
|
187
|
+
`"full-json"` = every field, JSON) — the text cell is lossless against the
|
|
188
|
+
JSON payload; the default leaves out `usedBy`, `fanout` and `complexity`, at
|
|
189
|
+
roughly half the byte
|
|
190
|
+
size. Tree-sitter extract + cached review-graph
|
|
184
191
|
lookup; never builds the graph, never calls LSP on this path.
|
|
185
192
|
`semantic.source` reports what backed the data (`review-graph` | `none`).
|
|
186
193
|
|
|
@@ -201,6 +208,16 @@ that symbol's range passes the read-before-edit check (an outline from
|
|
|
201
208
|
- **Looking for a textual pattern across files** → use `grep` (not `module_report`).
|
|
202
209
|
- **Need exact LSP cross-file resolution** → use `lsp_navigation({operation: "definition"})`.
|
|
203
210
|
|
|
211
|
+
**Groovy** (`.groovy`, `.gvy`, `.gy`, `.gsh`, `Jenkinsfile`, `build.gradle`,
|
|
212
|
+
`settings.gradle`) is outlined through a vendored tree-sitter grammar that is
|
|
213
|
+
partial: about 70% of 1,353 real files parse with no ERROR node (`build.gradle`
|
|
214
|
+
95%, Spock 64%, Grails 56%, Jenkins pipelines 73%, `Jenkinsfile`-named files
|
|
215
|
+
50% of 4). Types nested in a class, command calls with named arguments (`mail to: x, subject: y`, `@Library('x') _`),
|
|
216
|
+
a field with modifiers and no type (`static x = {`) and the diamond `<>` do not
|
|
217
|
+
parse. On a partial parse `module_report` shows its syntax-error warning, and
|
|
218
|
+
the symbol list may be incomplete. The measured numbers and the full list of
|
|
219
|
+
limits are in [`language-coverage.md`](language-coverage.md#groovy-tree-sitter-grammar).
|
|
220
|
+
|
|
204
221
|
**MCP mirror:** `pilens_module_report` and `pilens_read_symbol` in the
|
|
205
222
|
pi-lens MCP server expose the same shape to Claude Code / any MCP client.
|
|
206
223
|
|
|
@@ -359,7 +376,7 @@ Late-joiners are a non-problem in-process — extensions activate at `session_st
|
|
|
359
376
|
|
|
360
377
|
### Opportunistic Read Expansion
|
|
361
378
|
|
|
362
|
-
When the agent reads a small slice of a file (≤ 100 lines), pi-lens expands the read to the full enclosing symbol (function, method, or class) using the tree-sitter AST, or to the enclosing heading section of a Markdown file. The result starts with a `[pi-lens: read widened ...]` note naming the requested and the returned lines; a `limit` above 100 reads the exact range. Expansion is off with the read guard (`--no-read-guard` or `readGuard.enabled=false`). The agent receives the full symbol as context, and the read guard records symbol-level coverage so edits anywhere within that symbol pass without requiring the agent to have read every line individually. Expansion runs within a 200 ms budget and falls back silently on unsupported file types or parse failures.
|
|
379
|
+
When the agent reads a small slice of a file (≤ 100 lines), pi-lens expands the read to the full enclosing symbol (function, method, or class) using the tree-sitter AST, or to the enclosing heading section of a Markdown file. The result starts with a `[pi-lens: read widened ...]` note naming the requested and the returned lines; a `limit` above 100 reads the exact range. To keep exact read ranges with the guard active, use `--no-read-expansion` or global `readGuard.expandReads=false`. Expansion is also off with the read guard (`--no-read-guard` or `readGuard.enabled=false`). The agent receives the full symbol as context, and the read guard records symbol-level coverage so edits anywhere within that symbol pass without requiring the agent to have read every line individually. Expansion runs within a 200 ms budget and falls back silently on unsupported file types or parse failures.
|
|
363
380
|
|
|
364
381
|
Supported: TypeScript, TSX, JavaScript, JSX, Python, Go, Rust, Ruby, Java, Kotlin, Dart, Elixir, C, C++, C#, PHP, Swift, Lua, OCaml, Zig, Bash.
|
|
365
382
|
|
package/docs/globalconfig.md
CHANGED
|
@@ -23,6 +23,7 @@ Each runtime toggle is settable from the CLI *and* from `config.json`. The two a
|
|
|
23
23
|
| `--no-typos` | `typos.enabled` | `true` |
|
|
24
24
|
| `--lens-spotbugs` | `spotbugs.enabled` | `false` |
|
|
25
25
|
| `--no-read-guard` | `readGuard.enabled` | `true` |
|
|
26
|
+
| `--no-read-expansion` | `readGuard.expandReads` | `true` |
|
|
26
27
|
| `--no-autoformat` | `format.enabled` | `true` |
|
|
27
28
|
| `--no-autofix` | `autofix.enabled` | `true` |
|
|
28
29
|
| `--no-lens-context` | `contextInjection.enabled` | `true` |
|
|
@@ -144,12 +145,26 @@ Hide the diagnostics widget by default, run formatting immediately after write/e
|
|
|
144
145
|
|
|
145
146
|
`contextInjection.enabled` (default `true`) controls whether pi-lens prepends automatic findings — session-start guidance, turn-end findings, and test findings — into the next model turn. Set it to `false` (or use `--no-lens-context` / `PI_LENS_NO_CONTEXT_INJECTION=1` / `/lens-context-toggle`) to keep tools, LSP, read-guard, and formatting running while avoiding the prompt-cache invalidation that injected messages cause in long, cache-sensitive sessions. Findings are still cached, so `lens_diagnostics` and `/lens-health` keep working.
|
|
146
147
|
|
|
147
|
-
|
|
148
|
+
While a 🔴 blocker the model was told about stays unresolved, the first request of each later prompt repeats it once, headed "Still unresolved (already reported on an earlier turn, not new)" and ending with a `lens_diagnostics` call that lists every blocker, because pi rebuilds that request from its transcript and a blocker from a nested write (a codemode script that drops the STOP note) is not in it. Requests inside one prompt, blockers the session has fixed or marked (whatever another session still holds), and the MCP host repeat nothing; `contextInjection.enabled: false` repeats nothing either.
|
|
149
|
+
|
|
150
|
+
`contextInjection.retain` (default `false`, or `--lens-retain-injections`) keeps injection on and makes it cache-stable instead. An injection normally rides one provider request: pi rebuilds the next request from its own transcript, so that request no longer carries it, and an engine that caches by exact prefix (a local llama.cpp or Qwen server) re-processes everything after the point where it sat. With `retain` on, pi-lens re-sends each injection's bytes unchanged, at the same place, in every later request of the session, so each request is the previous one plus new content. Findings are still delivered once, and a repeat of a blocker a retained block already carries is skipped, so it spends none of the cap; each retained block ends with a snapshot label naming `lens_diagnostics` for the current state. A compaction, a `/tree` move, or a new, resumed, forked or reloaded session drops what was retained. A session holds at most 64 retained injections and 256 KiB; past either, a new injection reaches its one request only and one `context-injection-retain-declined` degradation row is recorded.
|
|
148
151
|
|
|
149
152
|
`contextInjection.requirePreExistingFixes` (default `true`) controls whether the session-start orientation tells the agent to fix pre-existing blocking errors; set `false` to scope that demand to errors its own edits introduce.
|
|
150
153
|
|
|
151
154
|
`actionableWarnings.enabled` gates the turn_end report. `includeLspCodeActions` fetches LSP code actions for each warning (requires an active language server). `deltaOnly` (default `true`) limits the report to lines touched in the current turn. `autoFix.enabled` applies conservative LSP quickfixes at `agent_end`; `autoFix.maxFixes` caps the number applied per turn (default `5`, must be a non-negative whole number). `maxFixes: 0` keeps the report and applies nothing, which is a useful halfway step before enabling `autoFix` for real. Unlike the toggles in the table above there is no CLI counterpart, since it takes a number rather than being on or off.
|
|
152
155
|
|
|
156
|
+
### Explicit diagnostics query line limit
|
|
157
|
+
|
|
158
|
+
`lsp.queryMaxFileLines` (default `5000`, a whole number from `5000` to `40000`) sets the line limit of the explicit single-file `lens_diagnostics source=lsp` query, and of nothing else. Per-edit sync, the dispatch LSP runner, and batch (`paths`) and directory queries keep the shared bound of 5000 lines and 2 MiB, which this key does not move (measured cost is the language server's: clangd needs ~2.3 s and ~+270 MB resident per 5000-line file, and an opened document stays resident). A batch's 20 s pre-sweep warm-up still opens a file past that bound, and the session-start, cascade, head-move and workspace-sweep writers never check it; the key changes neither, and both are named residuals (#5306). The 2 MiB byte bound is not configurable.
|
|
159
|
+
|
|
160
|
+
The key is read from the user-level config only. A project `.pi-lens.json` that sets it is ignored and reported once per session as global-only, and no tool argument can raise it, so a repository or an agent cannot lift your resource policy on that query. A value that is not a whole number in range is ignored with a warning, never clamped to a nearby value.
|
|
161
|
+
|
|
162
|
+
Suggested value `20000`, which covers files of about 10,000 lines with 2x headroom. Measured on one host with synthetic C++ (investigation #5306): clangd publishes after ~11 s and holds ~+0.95 GB at 20,000 lines; 40,000 lines is 28 to 50 s and ~+1.9 GB, which is why `40000` is the ceiling. Pair it with an explicit `waitMs` on the query: the wait is the larger of `waitMs` and the server's usual wait, up to a hard 30000 ms cap, so a shorter `waitMs` never shortens it (batch and directory queries keep their own per-server budgets). A file over the limit answers `file too large for LSP diagnostics`, and a wait that runs out answers `check timed out`; neither is a clean result.
|
|
163
|
+
|
|
164
|
+
```json
|
|
165
|
+
{ "lsp": { "queryMaxFileLines": 20000 } }
|
|
166
|
+
```
|
|
167
|
+
|
|
153
168
|
`turnEnd.madge.enabled` (default `false`) runs the per-turn-end madge circular-dependency check on import-changed files. It is off by default because that pass only writes debug output — user-facing madge diagnostics come from the session-start scan cache and the `lens_diagnostics` extractor — and its subprocess spawns dominated the turn-end latency tail (#766). Enable it with `--lens-turn-end-madge` or `turnEnd.madge.enabled: true` if you want the per-edit circular-dependency note.
|
|
154
169
|
|
|
155
170
|
`fallow.enabled` (default `false`, or `--lens-fallow`) runs [fallow](https://github.com/fallow-rs/fallow)'s `fallow-lsp` beside the TypeScript server on JS/TS files (`.ts .tsx .js .jsx .mjs .cjs .mts .cts`; no other file ever attaches it). It reports unused files, exports and dependencies, duplication and cycles as advisory warnings and never blocks. It overlaps knip, jscpd and madge, which keep running either way. Only the exact value `true` turns it on: an absent, misspelled or non-boolean value leaves it off, and pi-lens installs and launches nothing. On first use pi-lens downloads the pinned fallow release into `~/.pi-lens/tools/fallow-lsp` (a `fallow-lsp` already on `PATH` wins); the install is refused on a checksum mismatch. The per-edit diagnostics path runs it; the aggregate all-server checks (`lens_diagnostics source=lsp`, workspace sweeps) do not start it.
|
|
@@ -265,10 +280,16 @@ Per-rule threshold overrides and policy filters. Currently honored:
|
|
|
265
280
|
`no-eval` once and the filter covers `no-eval`, `ast-grep:no-eval`, and
|
|
266
281
|
`no-eval-js`. Side effect: a rule whose real name genuinely ends in `-js`
|
|
267
282
|
(e.g. `prefer-js`) is conflated with its stem (`prefer`) — disabling or
|
|
268
|
-
selecting one also disables or selects the other.
|
|
283
|
+
selecting one also disables or selects the other. The list is a denial: the
|
|
284
|
+
union of the global, project and nested files' lists, so a nearer file adds
|
|
285
|
+
rules and never re-enables one.
|
|
269
286
|
- `<id>.select` — allowlist of rule ids; only the listed rule ids survive
|
|
270
287
|
filtering. Disable wins over select project-wide, even when the two lists
|
|
271
|
-
are configured under different keys.
|
|
288
|
+
are configured under different keys. Unlike `disable`, the nearest file that
|
|
289
|
+
sets `select` supplies the whole list per grouping key; a global `select`
|
|
290
|
+
applies to a key no nearer file sets. Lists under different keys are unioned,
|
|
291
|
+
so a global `k.select: [x]` and a nearer `k2.select: [y]` keep both `x` and
|
|
292
|
+
`y`.
|
|
272
293
|
|
|
273
294
|
The `<id>` key is a grouping label only — it does not scope which rules the
|
|
274
295
|
`disable`/`select` list underneath it can match. Matching is **project-wide**:
|
|
@@ -4,7 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
- `clients/language-registry.ts` is the identity source for language ids,
|
|
6
6
|
extensions, filenames, file kinds, LSP ids, and grammars. Consumers project
|
|
7
|
-
from it; they do not maintain parallel language tables.
|
|
7
|
+
from it; they do not maintain parallel language tables. Known unfolded
|
|
8
|
+
sibling: `getExtensionsForLanguage` in `clients/tree-sitter-client.ts`, the
|
|
9
|
+
structural-search walk's hand-kept extension map (14 rows, Groovy included
|
|
10
|
+
per #5235). It is not pinned to the registry: ten rows match
|
|
11
|
+
`extensionsForLanguage` and four do not (`cpp` lists 4 of the registry's 22
|
|
12
|
+
extensions, `python` omits `.pyi`, `ruby` omits `.rake`, `.gemspec` and
|
|
13
|
+
`.ru`, and `tsx` is a grammar name the registry does not know). Folding it
|
|
14
|
+
onto `extensionsForLanguage` changes output for those four, so it is its own
|
|
15
|
+
slice.
|
|
8
16
|
- Agent-facing advisory text resolves names through `resolveLensToolName` with
|
|
9
17
|
the delivery host: pi uses `piName`, and MCP uses `mcpName` from
|
|
10
18
|
`TOOL_REGISTRY`. Known tools without a host mapping resolve to `undefined`,
|
|
@@ -32,8 +32,15 @@
|
|
|
32
32
|
- Under pi, project trust is consumed through `isProjectTrusted`; pi-lens never
|
|
33
33
|
registers the host's trust-answer handler. `compileLspRegistry` is the one admission
|
|
34
34
|
seam for LSP executable fields: global config and built-ins remain allowed,
|
|
35
|
-
while project
|
|
36
|
-
`
|
|
35
|
+
while a project field requires pi's `trusted` answer unless
|
|
36
|
+
`REPO_TIER_SERVER_FIELDS` (`name`) admits it; a field no table names is
|
|
37
|
+
refused (`REPO_TIER_OVERRIDE_FIELDS` admits none, #5147). A refused field
|
|
38
|
+
may have shadowed the user's own value, so a refused `lsp.servers.<id>` field
|
|
39
|
+
leaves that server unregistered for the project. A refused
|
|
40
|
+
`lsp.serverOverrides.<id>` field drops the repo tier's contribution only: the
|
|
41
|
+
global tier, resolved on its own, supplies that id's override field by field,
|
|
42
|
+
and a field it does not set runs on the catalog default; the built-in is never
|
|
43
|
+
disabled for a repo field (#5147). Missing trust APIs are
|
|
37
44
|
fail-closed for those project fields with one bounded notice; installs keep
|
|
38
45
|
their existing compatibility policy. `tests/clients/lsp/lsp-registry-trust.test.ts`
|
|
39
46
|
and the LSP config/service suites pin the boundary.
|
|
@@ -105,8 +105,8 @@
|
|
|
105
105
|
- `pilens:files:touched` publishers are `clients/pipeline.ts` and
|
|
106
106
|
`clients/runtime-agent-end.ts`; `clients/agent-nudge.ts` is the subscriber.
|
|
107
107
|
`clients/lsp-mutation.ts` has an optional callback but is not a publisher until
|
|
108
|
-
it is wired. Update
|
|
109
|
-
|
|
108
|
+
it is wired. Update this bullet for any publisher or subscriber change; no
|
|
109
|
+
test enforces the list.
|
|
110
110
|
- Deferred work has a bounded queue, wall budget, abort path, carry-forward
|
|
111
111
|
identity, and honest partial/deferred delivery. It never publishes a false
|
|
112
112
|
clean result after cutting work.
|
|
@@ -33,6 +33,7 @@ Dispatch is diagnostics-oriented: automatic formatting and safe autofix happen i
|
|
|
33
33
|
| Java | ✓ | lsp, javac | google-java-format |
|
|
34
34
|
| Java + Lombok | ✓ | JDT LS launched with `-javaagent:<lombok.jar>` when Lombok is detected and a jar is found (`PI_LENS_LOMBOK_JAR` / `LOMBOK_JAR`, project `.lombok/lombok.jar`, or Maven/Gradle cache) | google-java-format |
|
|
35
35
|
| Kotlin | ✓ | lsp, ktlint, detekt | ktlint |
|
|
36
|
+
| Groovy | ✓ (groovy-language-server; explicit `lens_diagnostics source=lsp` and `lsp_navigation` only) | — | — |
|
|
36
37
|
| Lean 4 | ✓ (Lake `serve`) | lsp; uses each project's Lake toolchain and environment | — |
|
|
37
38
|
| Swift | ✓ | lsp, swiftlint | swiftformat |
|
|
38
39
|
| Dart | ✓ | lsp, dart-analyze | dart format |
|
|
@@ -82,6 +83,72 @@ Both are upstream grammar limitations (tracked among
|
|
|
82
83
|
[eonpatapon/tree-sitter-cue](https://github.com/eonpatapon/tree-sitter-cue)'s
|
|
83
84
|
open issues), not something a query change here can fix.
|
|
84
85
|
|
|
86
|
+
### Groovy tree-sitter grammar
|
|
87
|
+
|
|
88
|
+
`.groovy`, `.gvy`, `.gy` and `.gsh` files, plus `Jenkinsfile`, `build.gradle`
|
|
89
|
+
and `settings.gradle`, parse under tree-sitter, so `module_report`,
|
|
90
|
+
`read_symbol`, symbol search, import extraction and the call-graph refs all
|
|
91
|
+
support Groovy (#5235). Symbol extraction lists classes, traits, interfaces,
|
|
92
|
+
enums, records, constructors, methods, and named closures held by a class
|
|
93
|
+
field or a top-level script variable; import extraction reads qualified
|
|
94
|
+
import names, and the call-graph refs cover calls, constructions and type
|
|
95
|
+
names.
|
|
96
|
+
The grammar is [dekobon/tree-sitter-groovy](https://github.com/dekobon/tree-sitter-groovy)
|
|
97
|
+
v0.3.0, built to wasm at its tagged commit with `tree-sitter-cli@0.25.10` and
|
|
98
|
+
committed to `vendor/grammars/` **as is, with no fork and no patch**. It is a
|
|
99
|
+
young grammar and it is partial. Measured on 2026-11-05 over 1,353 real files
|
|
100
|
+
from five public repositories (Spock, jenkinsci/pipeline-examples,
|
|
101
|
+
apache/groovy, Gradle, grails-core), **70% parse with no ERROR node** and 8.1%
|
|
102
|
+
of lines sit inside an error:
|
|
103
|
+
|
|
104
|
+
| Sample | Files parsed with no ERROR node |
|
|
105
|
+
| ------------------------------ | ------------------------------- |
|
|
106
|
+
| `build.gradle` (Gradle, 250) | 95% |
|
|
107
|
+
| Jenkins pipeline-examples (53) | 73% |
|
|
108
|
+
| `Jenkinsfile`-named files (4) | 50% |
|
|
109
|
+
| Spock (400) | 64% |
|
|
110
|
+
| Grails (250) | 56% |
|
|
111
|
+
| apache/groovy (400) | 69% |
|
|
112
|
+
|
|
113
|
+
The Spock and apache/groovy samples are weighted toward language-stress tests,
|
|
114
|
+
so they are harder than typical project code. "No ERROR node" is a parse
|
|
115
|
+
measure, not a claim that the outline is right. Known gaps, all in the
|
|
116
|
+
upstream grammar rather than in this repo's queries:
|
|
117
|
+
|
|
118
|
+
- **Types nested in a class body.** A `class`, `interface`, `enum` or `trait`
|
|
119
|
+
declared inside another class produces an ERROR node and often a stray `}`
|
|
120
|
+
after it.
|
|
121
|
+
- **Command calls with named arguments.** `mail to: x, subject: y`,
|
|
122
|
+
`slackSend channel: x, message: y` and `@Library('x') _` do not parse. These
|
|
123
|
+
are common in Jenkins pipelines and in Gradle dependency blocks.
|
|
124
|
+
- **A field with modifiers and no type or `def`.** `static x = {` and
|
|
125
|
+
`static final X = 1` do not parse.
|
|
126
|
+
- **The diamond.** `new HashMap<>()` leaves a MISSING type node.
|
|
127
|
+
|
|
128
|
+
Consequences:
|
|
129
|
+
|
|
130
|
+
- A file with an ERROR node still yields the declarations the parser recovered
|
|
131
|
+
around it, but may miss the ones it could not. `module_report` and the read
|
|
132
|
+
tools carry a syntax-error warning ("tree-sitter could not parse part of this
|
|
133
|
+
file; the symbol list may be incomplete"): `module_report` on every such
|
|
134
|
+
partial parse, `read_symbol` only when the name is not found. An absent
|
|
135
|
+
symbol is not proof of absence.
|
|
136
|
+
- Named closures (`def handler = { ... }`) are listed only when held by a class
|
|
137
|
+
field or a top-level script variable. A method-local closure is not listed.
|
|
138
|
+
- Calls that take a trailing closure (`list.each { ... }`, DSL blocks) parse as
|
|
139
|
+
sibling statements, not as invocations, so they add no call-graph edge. Only
|
|
140
|
+
`foo(1)`, `a.b(2)` and `new X()` do.
|
|
141
|
+
- A Spock feature method (`def "adds two numbers"() { ... }`) is listed under
|
|
142
|
+
its quoted name.
|
|
143
|
+
- `Jenkinsfile`, `build.gradle` and `settings.gradle` reach the grammar by file
|
|
144
|
+
kind, which covers `module_report` and the symbol index. Read expansion, the
|
|
145
|
+
project scanner and the directory-wide tree-sitter search key on the file
|
|
146
|
+
extension, so they see `.groovy`, `.gvy`, `.gy` and `.gsh` only; other
|
|
147
|
+
`.gradle` files are not claimed.
|
|
148
|
+
- Groovy has no tuned callback rules, so `module_report` reports its
|
|
149
|
+
callbacks as `generic`, and Groovy is not in the review graph's main kinds.
|
|
150
|
+
- Lint and format (npm-groovy-lint) are not part of this slice (#5235).
|
|
151
|
+
|
|
85
152
|
## Non-core grammars
|
|
86
153
|
|
|
87
154
|
The `tree-sitter` runner and `symbol_search`/`module_report` structural
|
|
@@ -25,9 +25,10 @@ classify each server and pick a per-server strategy. (Background: #240; mechanis
|
|
|
25
25
|
confirmed against Neovim's LSP client, which sidesteps this entirely by being async.)
|
|
26
26
|
|
|
27
27
|
Generate/refresh this matrix with `node scripts/characterize-lsp.mjs [--install]`
|
|
28
|
-
(the `mode` column) and `node scripts/probe-clean-signal.mjs [--install]
|
|
29
|
-
`clean-behavior` column — 4-way: 2 / 2* / 3 / unknown — and
|
|
30
|
-
column, #3310
|
|
28
|
+
(the `mode` column) and `node scripts/probe-clean-signal.mjs [--install]
|
|
29
|
+
--write-matrix` (the `clean-behavior` column — 4-way: 2 / 2* / 3 / unknown — and
|
|
30
|
+
the `first-publish` column, #3310; without `--write-matrix` the probe leaves
|
|
31
|
+
this tracked file alone, #5348). Both **merge** in place: a server the
|
|
31
32
|
running host couldn't spawn keeps its prior row, so an ubuntu-poor run can't
|
|
32
33
|
regress a richer one (#390). The nightly **tool-smoke** workflow runs both (plus
|
|
33
34
|
`server-capabilities.mjs`) and opens/updates a single auto-PR
|
|
@@ -42,8 +43,25 @@ gate — because the probe is a timing-based negative observation; a mismatch
|
|
|
42
43
|
just tells a human the marker may need updating. `unknown` observations are
|
|
43
44
|
never compared in either direction (a slow/absent server isn't evidence of
|
|
44
45
|
anything). The native TS7 launch variant (`typescript7`/`typescript7-clean`,
|
|
45
|
-
#524/#526) is
|
|
46
|
-
they share a server id
|
|
46
|
+
#524/#526) is compared against an explicit `false` expectation, not classic's
|
|
47
|
+
marker (#558): they share a server id, and the marker is measured on classic
|
|
48
|
+
only. Those fixtures carry `expectLaunchVariant: "native-ts7"`, and the probe
|
|
49
|
+
measures a row only when that launch answered it. The probe never runs a
|
|
50
|
+
fixture's `setup` (`npm install typescript@7`), so before #5348 the registry
|
|
51
|
+
fell back to the classic launch and the nightly's `typescript7` rows
|
|
52
|
+
(`mode=push-only`, `silent`) were classic's data. A row from the wrong launch
|
|
53
|
+
now reads `unknown`. Native TS7 7.0.2 is a pull server (`diagnosticProvider`
|
|
54
|
+
advertised, `mode=pull`, `clean-behavior=n/a (pull)`), and so is `effect-tsgo`
|
|
55
|
+
0.62.0; neither pushes diagnostics for an edited file, so `silentOnClean` does
|
|
56
|
+
not apply to them. The marker stays `false` (it lets the silent-confirm gate
|
|
57
|
+
read a lapsed wait as clean). The nightly never runs `setup`, so it never
|
|
58
|
+
launches native TS7: `typescript7`, `typescript7-clean` and `effect-tsgo` read
|
|
59
|
+
`unknown` there and nothing compares them. A push-only, silent TS7 build
|
|
60
|
+
could surface as `silent-not-marked` only from a run that does the fixture's
|
|
61
|
+
`setup` first (#5348). Auxiliary servers (ast-grep, opengrep, zizmor, typos,
|
|
62
|
+
fallow) are never compared: `silentOnClean` is read in primary-scoped gates,
|
|
63
|
+
and in the warm-up gate only for a server with `workspaceIndexing`, which no
|
|
64
|
+
auxiliary sets.
|
|
47
65
|
|
|
48
66
|
The `typescript` row has three launch variants, chosen in
|
|
49
67
|
`TypeScriptServer.spawn` (`clients/lsp/server.ts`). The project's own
|
|
@@ -130,6 +148,7 @@ belonged to another live client of the same server id became `typescript`'s
|
|
|
130
148
|
| **2\* — push, publishes-unversioned** | re-publishes on a clean scan but **version-less** — the wait still early-returns (the client accepts a version-less publish as fresh: it can't be proven stale), but currency is only *temporally correlated*, not proven. Since #3484 the client fences a server measured to answer a `documentSymbol` fence before it publishes (`diagnosticsFence: "reply-first"`: yaml, intelephense): a pre-edit publish is dropped until the fence's reply. Every other 2\* server (docker publishes before answering; prisma, taplo, zls, dart, gleam, clojure unmarked) keeps this behaviour | YES at runtime, with a staleness-risk caveat (not a latency cost) | opengrep |
|
|
131
149
|
| **3 — push, silent on clean** | server publishes nothing when nothing changed | **NO** — budget-wait floor (safe; a timeout is *not* a false clean). **This tier is #458's learned-deadline target set.** | typescript-language-server |
|
|
132
150
|
| **Unconfirmed — custom, no evidence** | custom `lsp.servers.*` entry has no pull provider and has not published in this session | **NO** — diagnostics are unconfirmed (reported `inconclusive`, never `unsupported`); skip the wait until the server publishes | Dexter, groovy-language-server |
|
|
151
|
+
| **Unmarked push — built-in, unmeasured** | built-in push-only row with no `silentOnClean` marker and no measured row | **NO** — the full push budget runs on every touch; a timeout with no publish is `inconclusive`, never clean | groovy-language-server (built-in `groovy` row) |
|
|
133
152
|
|
|
134
153
|
Detection is **cached** at `initialize` (`detectWorkspaceDiagnosticsSupport` →
|
|
135
154
|
`state.workspaceDiagnosticsSupport.mode`, upgraded on `client/registerCapability`),
|
|
@@ -149,6 +168,25 @@ compiles) therefore reads unconfirmed on clean files, and its findings arrive as
|
|
|
149
168
|
soon as it publishes them. A publish that lands while the first-contact wait is
|
|
150
169
|
still in flight prevents the latch.
|
|
151
170
|
|
|
171
|
+
The built-in `groovy` row (#5123) takes the other branch. It has no
|
|
172
|
+
`silentOnClean` marker, because nothing has measured the real server (it
|
|
173
|
+
publishes no release, so no nightly job can install it), and the marker would
|
|
174
|
+
make a quiet touch count as clean. It therefore pays the full push budget on
|
|
175
|
+
every touch of a file it stays silent for, and that file reads `inconclusive`
|
|
176
|
+
by the timeout, where a custom entry skips the wait after its first-contact
|
|
177
|
+
latch. Two of the custom behaviours are declared on the row instead of read
|
|
178
|
+
from `custom`: `echoesOwnNotice: true` holds the empty publish the server
|
|
179
|
+
sends after pi-lens's own first-open watched-files notice (#5131), so an
|
|
180
|
+
`unable to resolve class` error is not erased 5 ms after it is published. The
|
|
181
|
+
row's hand-added line in the matrix below stays `unknown` until a run observes
|
|
182
|
+
the server. It launches a `groovy-language-server` on PATH, else
|
|
183
|
+
`java -jar $GROOVY_LANGUAGE_SERVER_JAR`, on a JDK 17+ found the way jdtls finds
|
|
184
|
+
one; `.groovy`, `.gvy`, `.gy` and `.gsh` only (add `.gradle` or `Jenkinsfile`
|
|
185
|
+
through `lsp.servers` if the build classpath is worth the unresolved-class
|
|
186
|
+
noise). The row has no file kind, so only the explicit probes reach it
|
|
187
|
+
(`lens_diagnostics` with `source: "lsp"`, `lsp_navigation`), not the write-time
|
|
188
|
+
dispatch.
|
|
189
|
+
|
|
152
190
|
The first-contact budget on the per-edit path is the strategy's
|
|
153
191
|
`aggregateWaitMs` (1500 ms). It is a cost, not a verdict: the latch is
|
|
154
192
|
recoverable, so a server slower than the budget pays 1.5 s once and reads
|
|
@@ -156,7 +194,7 @@ unconfirmed until its first publish, instead of being lost for the session.
|
|
|
156
194
|
Raising it would charge up to the larger budget on the first edit of every
|
|
157
195
|
custom server that never publishes for a clean file.
|
|
158
196
|
|
|
159
|
-
## Matrix (dev box + CI nightly;
|
|
197
|
+
## Matrix (dev box + CI nightly; regenerated by the tool-smoke workflow — #460)
|
|
160
198
|
|
|
161
199
|
`mode` from cached capabilities; `clean-behavior` from the phase-aware publish-trace
|
|
162
200
|
probe. The probe attributes publishes to two phases — the **dirty touch** (proves the
|
|
@@ -228,43 +266,72 @@ carries the named admission until then.
|
|
|
228
266
|
|
|
229
267
|
| lang | server | mode | clean-behavior | first-publish | tier | src | version | install | stale |
|
|
230
268
|
|---|---|---|---|---|---|---|---|---|---|
|
|
231
|
-
| json | vscode-json-language-server | pull | — | n/a (pull) | 1 | dev+ci | — |
|
|
232
|
-
| css | vscode-css-language-server | pull | — | n/a (pull) | 1 | dev+ci | — |
|
|
233
|
-
| html | vscode-html-language-server | pull | — | n/a (pull) | 1 | dev+ci | — |
|
|
234
|
-
| rust | rust-analyzer | pull | — | n/a (pull) | 1 | dev+ci |
|
|
235
|
-
| svelte | svelte-language-server | pull | — | n/a (pull) | 1 | dev+ci | — |
|
|
236
|
-
| deno | deno (alt of typescript) | pull | — | n/a (pull) | 1 | dev+ci |
|
|
269
|
+
| json | vscode-json-language-server | pull | — | n/a (pull) | 1 | dev+ci | — | pi-lens-auto | — |
|
|
270
|
+
| css | vscode-css-language-server | pull | — | n/a (pull) | 1 | dev+ci | — | pi-lens-auto | — |
|
|
271
|
+
| html | vscode-html-language-server | pull | — | n/a (pull) | 1 | dev+ci | — | pi-lens-auto | — |
|
|
272
|
+
| rust | rust-analyzer | pull | — | n/a (pull) | 1 | dev+ci | 0.3.3105-standalone | global-path | — |
|
|
273
|
+
| svelte | svelte-language-server | pull | — | n/a (pull) | 1 | dev+ci | — | pi-lens-auto | — |
|
|
274
|
+
| deno | deno (alt of typescript) | pull | — | n/a (pull) | 1 | dev+ci | 2.9.8 | global-path | — |
|
|
237
275
|
| ruby | ruby-lsp | pull | — | n/a (pull) | 1 | ci | — | — | — |
|
|
238
276
|
| csharp | csharp-ls | pull | — | n/a (pull) | 1 | ci | — | — | — |
|
|
239
|
-
| typescript | typescript-language-server | push-only | silent | direct | 3 | dev+ci |
|
|
240
|
-
| markdown | marksman | push-only | silent | direct | 3 | ci | — |
|
|
241
|
-
| lua | lua-language-server | push-only | silent | direct | 3 | dev+ci | — |
|
|
242
|
-
| python | pyright | push-only | publishes-versioned | direct | 2 | dev+ci |
|
|
243
|
-
| jedi | jedi-language-server (alt of python) | push-only | publishes-versioned | direct | 2 | ci |
|
|
244
|
-
| yaml | yaml-language-server | push-only | publishes-unversioned | direct | 2* | dev+ci |
|
|
245
|
-
| shell | bash-language-server | push-only | publishes-versioned | direct | 2 | dev+ci |
|
|
246
|
-
| dockerfile | docker-langserver | push-only | publishes-unversioned | direct | 2* | dev+ci | — |
|
|
277
|
+
| typescript | typescript-language-server | push-only | silent | direct | 3 | dev+ci | 5.3.0 | pi-lens-auto | — |
|
|
278
|
+
| markdown | marksman | push-only | silent | direct | 3 | ci | — | global-path | — |
|
|
279
|
+
| lua | lua-language-server | push-only | silent | direct | 3 | dev+ci | — | archive-dist | — |
|
|
280
|
+
| python | pyright | push-only | publishes-versioned | direct | 2 | dev+ci | 1.1.414 | pi-lens-auto | — |
|
|
281
|
+
| jedi | jedi-language-server (alt of python) | push-only | publishes-versioned | direct | 2 | ci | 0.47.0 | global-path | — |
|
|
282
|
+
| yaml | yaml-language-server | push-only | publishes-unversioned | direct | 2* | dev+ci | 2.0.0 | pi-lens-auto | — |
|
|
283
|
+
| shell | bash-language-server | push-only | publishes-versioned | direct | 2 | dev+ci | 5.8.1 | pi-lens-auto | — |
|
|
284
|
+
| dockerfile | docker-langserver | push-only | publishes-unversioned | direct | 2* | dev+ci | — | pi-lens-auto | — |
|
|
247
285
|
| dockerfile-official | docker-language-server (official) | push-only | publishes-versioned | direct | 2 | dev+ci | — | — | — |
|
|
248
|
-
| toml | taplo | push-only | publishes-unversioned | direct | 2* | dev+ci |
|
|
249
|
-
| terraform | terraform-ls | push-only | publishes-unversioned | direct | 2* | dev+ci |
|
|
250
|
-
| prisma | @prisma/language-server | push-only | publishes-unversioned | direct | 2* | dev+ci | — |
|
|
251
|
-
| php | intelephense | push-only | publishes-unversioned | empty-first | 2* | dev+ci | — |
|
|
252
|
-
| zig | zls | push-only | publishes-unversioned | direct | 2* | dev+ci |
|
|
253
|
-
| vue | @vue/language-server | push-only | unknown | unknown | 2/3? | dev+ci |
|
|
286
|
+
| toml | taplo | push-only | publishes-unversioned | direct | 2* | dev+ci | 0.10.0 | global-path | — |
|
|
287
|
+
| terraform | terraform-ls | push-only | publishes-unversioned | direct | 2* | dev+ci | 0.39.1 | global-path | — |
|
|
288
|
+
| prisma | @prisma/language-server | push-only | publishes-unversioned | direct | 2* | dev+ci | — | pi-lens-auto | — |
|
|
289
|
+
| php | intelephense | push-only | publishes-unversioned | empty-first | 2* | dev+ci | — | pi-lens-auto | — |
|
|
290
|
+
| zig | zls | push-only | publishes-unversioned | direct | 2* | dev+ci | 0.17.0 | global-path | — |
|
|
291
|
+
| vue | @vue/language-server | push-only | unknown | unknown | 2/3? | dev+ci | 3.3.14 | pi-lens-auto | — |
|
|
292
|
+
| groovy | groovy-language-server (built-in, no fixture) | push-only | unknown | unknown | 3? | — | — | — | — |
|
|
254
293
|
| dart | dart language-server | push-only | publishes-unversioned | direct | 2* | ci | — | — | — |
|
|
255
|
-
| gleam | gleam lsp | push-only | publishes-unversioned | direct | 2* | ci |
|
|
256
|
-
| clojure | clojure-lsp | push-only | publishes-unversioned | direct | 2* | ci |
|
|
257
|
-
| opengrep | opengrep (aux) | push-only | publishes-unversioned | direct | 2* | dev+ci | — |
|
|
294
|
+
| gleam | gleam lsp | push-only | publishes-unversioned | direct | 2* | ci | 1.19.2 | global-path | — |
|
|
295
|
+
| clojure | clojure-lsp | push-only | publishes-unversioned | direct | 2* | ci | 2026.10.15-11.42.38 | global-path | — |
|
|
296
|
+
| opengrep | opengrep (aux) | push-only | publishes-unversioned | direct | 2* | dev+ci | — | global-path | — |
|
|
258
297
|
| ast-grep | ast-grep (aux) | push-only | publishes-versioned | direct | 2 | dev+ci | — | — | — |
|
|
259
|
-
| cue | CUE Language Server (cue lsp serve) | push-only | publishes-versioned | direct | 2 | dev+ci |
|
|
260
|
-
|
|
261
|
-
**
|
|
262
|
-
(
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
298
|
+
| cue | CUE Language Server (cue lsp serve) | push-only | publishes-versioned | direct | 2 | dev+ci | 0.17.1 | global-path | — |
|
|
299
|
+
|
|
300
|
+
**Servers without a row.** A server gets a row the first night characterize-lsp
|
|
301
|
+
measures its mode (`pull` or `push-only`); a server it has never measured has
|
|
302
|
+
none. A new pull server joins this table. A new push server waits in the generated
|
|
303
|
+
table below until probe-clean-signal commits its `clean-behavior` over two agreeing
|
|
304
|
+
nights and that value agrees with the server's `silentOnClean` marker in
|
|
305
|
+
`clients/lsp/wait-policy/strategies.ts`; then it moves here, where the
|
|
306
|
+
clean-behavior census judges it. A row whose marker disagrees stays below until
|
|
307
|
+
someone decides the marker. Only the
|
|
308
|
+
fixture `probePopulation` (`scripts/lib/lsp-idle-eviction-probe.mjs`) picks for a
|
|
309
|
+
registry server can create a row; a variant fixture (a clean file, nested roots, a
|
|
310
|
+
baseline, a custom server) never does.
|
|
311
|
+
|
|
312
|
+
## Measured, not yet characterized (nightly-generated)
|
|
313
|
+
|
|
314
|
+
Generated by the nightly; not part of the clean-behavior census. A push
|
|
315
|
+
server the curated matrix has no row for waits here until
|
|
316
|
+
probe-clean-signal commits its `clean-behavior` (two agreeing nights, as for
|
|
317
|
+
a curated cell) and it agrees with the server's `silentOnClean` marker; that
|
|
318
|
+
night it moves to the matrix above. `stale` is the
|
|
319
|
+
first night characterize-lsp did not measure the server, kept until it does.
|
|
320
|
+
|
|
321
|
+
| lang | mode | server | src | version | install | stale |
|
|
322
|
+
|---|---|---|---|---|---|---|
|
|
323
|
+
| powershell | push-only | PowerShell Editor Services (pwsh Start-EditorServices.ps1 -Stdio) | ci | — | archive-dist | — |
|
|
324
|
+
| go | push-only | gopls | ci | — | — | — |
|
|
325
|
+
| fsharp | push-only | fsautocomplete | ci | — | — | — |
|
|
326
|
+
| kotlin | push-only | kotlin-language-server | ci | — | global-path | — |
|
|
327
|
+
| cpp | push-only | clangd | ci | — | archive-dist | — |
|
|
328
|
+
| expert | push-only | Expert (alternate of ElixirLS) | ci | 17.0.1 | global-path | — |
|
|
329
|
+
| typst | push-only | tinymist | ci | 51.256320801 | global-path | — |
|
|
330
|
+
| fish | push-only | fish-lsp | ci | 1.1.5 | pi-lens-auto | — |
|
|
331
|
+
| cmake | push-only | cmake-language-server | ci | 0.1.11 | global-path | — |
|
|
332
|
+
| zizmor | push-only | zizmor (auxiliary) | ci | 1.32.0 | global-path | — |
|
|
333
|
+
| typos | push-only | typos (auxiliary) | ci | — | global-path | — |
|
|
334
|
+
| fallow | push-only | fallow-lsp (auxiliary) | ci | — | archive-dist | — |
|
|
268
335
|
|
|
269
336
|
## Key findings
|
|
270
337
|
- **Mode ≠ tier, and the split needs BOTH axes.** Push-only further splits along
|
|
@@ -409,22 +476,22 @@ dispatched nightly replaces it on the first night that reaches the server.
|
|
|
409
476
|
| cpp | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: silent (6000 ms). Gated. | `node scripts/probe-save-verdict.mjs` (fixture cpp) |
|
|
410
477
|
| lua | `save` | no | Measured: answers without a save (2 publish events on didOpen); a later save alone: silent (6000 ms). Gated. | `node scripts/probe-save-verdict.mjs` (fixture lua) |
|
|
411
478
|
| python-jedi | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: silent (6000 ms). Gated. | `node scripts/probe-save-verdict.mjs` (fixture jedi) |
|
|
412
|
-
| opengrep | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone:
|
|
479
|
+
| opengrep | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: 2 publish events. Auxiliary, not gated. | `node scripts/probe-save-verdict.mjs` (fixture opengrep) |
|
|
413
480
|
| gleam | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: silent (6000 ms). Gated. | `node scripts/probe-save-verdict.mjs` (fixture gleam) |
|
|
414
|
-
| go | `save` | no |
|
|
415
|
-
| zig | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone:
|
|
416
|
-
| rust | `save` | inconclusive | Measured: inconclusive — pull mode: every arm is a textDocument/diagnostic request, so no arm has the save as its only new input (arms: no-save silent (6000 ms), save alone
|
|
417
|
-
| terraform | `save` | no | Measured: answers without a save (
|
|
481
|
+
| go | `save` | no | Measured: answers without a save (2 publish events on didOpen); a later save alone: silent (6000 ms). Gated. | `node scripts/probe-save-verdict.mjs` (fixture go) |
|
|
482
|
+
| zig | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: 1 publish event. Gated. | `node scripts/probe-save-verdict.mjs` (fixture zig) |
|
|
483
|
+
| rust | `save` | inconclusive | Measured: inconclusive — pull mode: every arm is a textDocument/diagnostic request, so no arm has the save as its only new input (arms: no-save silent (6000 ms), save alone 1 diagnostic, saved write silent (6000 ms)). Exempt from the clean gate. | `node scripts/probe-save-verdict.mjs` (fixture rust) |
|
|
484
|
+
| terraform | `save` | no | Measured: answers without a save (2 publish events on didOpen); a later save alone: 1 publish event. Gated. | `node scripts/probe-save-verdict.mjs` (fixture terraform) |
|
|
418
485
|
| fsharp | `save+text` | no | Source: a save holds the source and refreshes code lenses; diagnostics come from open and change checks. Exempt: 0 findings in every run. | ionide/FsAutoComplete `8f011f1395a4`, `src/FsAutoComplete/LspServers/AdaptiveFSharpLspServer.fs` (`TextDocumentDidSave`); nightly run 39845687189 |
|
|
419
486
|
| zizmor | · (registered dynamically) | no | Source: `didSave` is registered dynamically and pi-lens does not map that registration, so no save is sent. Auxiliary, not gated. | zizmor `crates/zizmor/src/lsp.rs` (`initialized`); `clients/lsp/wait-policy/strategies.ts:400-410` (#3548) |
|
|
420
|
-
| clojure | `save+text` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone:
|
|
421
|
-
| fish | `save+text` |
|
|
487
|
+
| clojure | `save+text` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: 2 publish events. Gated. | `node scripts/probe-save-verdict.mjs` (fixture clojure) |
|
|
488
|
+
| fish | `save+text` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: silent (6000 ms). Gated. | `node scripts/probe-save-verdict.mjs` (fixture fish) |
|
|
422
489
|
| tinymist | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: 1 publish event. Gated. | `node scripts/probe-save-verdict.mjs` (fixture typst) |
|
|
423
|
-
| cue | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone:
|
|
424
|
-
| csharp | `save+text` |
|
|
490
|
+
| cue | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: 1 publish event. Gated. | `node scripts/probe-save-verdict.mjs` (fixture cue) |
|
|
491
|
+
| csharp | `save+text` | no (pull) | Measured: pull mode — no save needed; a later save+request answered: 1 diagnostic. Gated. | `node scripts/probe-save-verdict.mjs` (fixture csharp) |
|
|
425
492
|
| deno | `save` | no (pull) | Measured: pull mode — no save needed; a later save+request answered: 1 diagnostic. Gated. | `node scripts/probe-save-verdict.mjs` (fixture deno) |
|
|
426
493
|
| svelte | `save` | no (pull) | Measured: pull mode — no save needed; a later save+request answered: 2 diagnostics. Gated. | `node scripts/probe-save-verdict.mjs` (fixture svelte) |
|
|
427
|
-
| powershell | `save+text` |
|
|
494
|
+
| powershell | `save+text` | yes (saved write) | Measured: only a saved write published — silent on didOpen and on the save alone, then 1 publish event on a diagnostic-neutral edit plus a save. Exempt from the clean gate. | `node scripts/probe-save-verdict.mjs` (fixture powershell) |
|
|
428
495
|
| cmake | `save` | inconclusive | Measured: inconclusive — no arm published, so this fixture does not distinguish a save-triggered server from one that never diagnoses it (arms: no-save silent (6000 ms), save alone silent (6000 ms), saved write silent (6000 ms)). Exempt from the clean gate. | `node scripts/probe-save-verdict.mjs` (fixture cmake) |
|
|
429
496
|
|
|
430
497
|
Notes.
|
|
@@ -472,10 +539,10 @@ then opens/updates an auto-PR with the regenerated docs (#390) — so both the `
|
|
|
472
539
|
and `clean-behavior` columns self-populate in CI without manual copy-paste. They fill
|
|
473
540
|
for servers that either auto-install (npm/pip/github — including clojure-lsp and gleam,
|
|
474
541
|
both github-strategy as of f263cf3) or whose toolchain the workflow provisions
|
|
475
|
-
(Ruby/Dart/Zig + .NET→csharp).
|
|
476
|
-
family
|
|
477
|
-
|
|
478
|
-
server never blanks its dev-measured row.
|
|
542
|
+
(Ruby/Dart/Zig + .NET→csharp). A server whose toolchain the runner lacks (the
|
|
543
|
+
toolchain-gated family, #241: `runtimeInstall` + canonical-bin discovery) is not
|
|
544
|
+
measured, so it has no row until a run reaches it. The **merge guard** means a CI run
|
|
545
|
+
that can't reach a server never blanks its dev-measured row.
|
|
479
546
|
|
|
480
547
|
The `clean-behavior` split (4-way: 2 publishes-versioned / 2\* publishes-unversioned /
|
|
481
548
|
3 silent / unknown) is now measured per-server by `probe-clean-signal.mjs`, no longer a
|
|
@@ -491,6 +558,7 @@ marker; a mismatch means the marker may need a human update (#529). `unknown`
|
|
|
491
558
|
observations are never compared (a slow/absent server is not evidence either way).
|
|
492
559
|
|
|
493
560
|
- **[silent-not-marked]** observed silent on clean transitions but wait-policy/strategies.ts has no silentOnClean marker for "typescript7" — cascade is burning the full in-lane wait it could skip (the pre-#458 situation)
|
|
561
|
+
- **[silent-not-marked]** observed silent on clean transitions but wait-policy/strategies.ts has no silentOnClean marker for "fallow" — cascade is burning the full in-lane wait it could skip (the pre-#458 situation)
|
|
494
562
|
|
|
495
563
|
## Capability matrix refresh state (nightly-generated)
|
|
496
564
|
|
|
@@ -500,5 +568,5 @@ streaks behind the `stale` column (#4512) and consecutive-night
|
|
|
500
568
|
`idle-eviction` counts (#3989). Regenerated every run; never a measurement.
|
|
501
569
|
|
|
502
570
|
```json
|
|
503
|
-
{"idle-eviction":{"powershell":{"nights":[{"day":"2026-
|
|
571
|
+
{"clean-behavior":{"cpp":{"pendingBehavior":"publishes-versioned","pendingTier":"2","runs":1},"expert":{"pendingBehavior":"publishes-unversioned","pendingTier":"2*","runs":1},"fallow":{"pendingBehavior":"silent","pendingTier":"3","runs":1},"fish":{"pendingBehavior":"publishes-unversioned","pendingTier":"2*","runs":1},"go":{"pendingBehavior":"publishes-versioned","pendingTier":"2","runs":1},"kotlin":{"pendingBehavior":"publishes-unversioned","pendingTier":"2*","runs":1},"powershell":{"pendingBehavior":"publishes-unversioned","pendingTier":"2*","runs":1},"typos":{"pendingBehavior":"publishes-versioned","pendingTier":"2","runs":1},"typst":{"pendingBehavior":"publishes-unversioned","pendingTier":"2*","runs":1},"zizmor":{"pendingBehavior":"publishes-versioned","pendingTier":"2","runs":1}},"first-publish":{"cpp":{"pendingFirstPublish":"direct","runs":1},"expert":{"pendingFirstPublish":"direct","runs":1},"fallow":{"pendingFirstPublish":"direct","runs":1},"fish":{"pendingFirstPublish":"direct","runs":1},"go":{"pendingFirstPublish":"direct","runs":1},"kotlin":{"pendingFirstPublish":"direct","runs":1},"powershell":{"pendingFirstPublish":"direct","runs":1},"typos":{"pendingFirstPublish":"direct","runs":1},"typst":{"pendingFirstPublish":"direct","runs":1},"zizmor":{"pendingFirstPublish":"direct","runs":1}},"idle-eviction":{"csharp":{"nights":[{"day":"2026-11-06","rssMb":205,"coldMs":2657}]},"dart":{"nights":[{"day":"2026-11-06","rssMb":75,"coldMs":511}]},"expert":{"nights":[{"day":"2026-11-06","rssMb":348,"coldMs":2815}]},"go":{"nights":[{"day":"2026-11-06","rssMb":89,"coldMs":567}]},"kotlin":{"nights":[{"day":"2026-11-05","rssMb":283,"coldMs":2269},{"day":"2026-11-06","rssMb":264,"coldMs":2100}]},"powershell":{"nights":[{"day":"2026-11-06","rssMb":166,"coldMs":2749}]},"rust":{"nights":[{"day":"2026-11-05","rssMb":678,"coldMs":2486},{"day":"2026-11-06","rssMb":614,"coldMs":2471}]},"svelte":{"nights":[{"day":"2026-11-03","rssMb":233,"coldMs":2987},{"day":"2026-11-04","rssMb":233,"coldMs":2944}]}}}
|
|
504
572
|
```
|