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
|
@@ -84,7 +84,7 @@ PR's packed tarball (#2700, the check #2587 was missing). `attw`
|
|
|
84
84
|
| mcp-diagnostics-full | `lens_diagnostics` full mode answers on a fixture repo | mcp-stdio | `tools/call` `pilens_diagnostics` with `mode` `full` and `refreshRunners` `cheap`, POLLED | text carries a `Summary (N files diagnosed this session)` line with N at least 1 | tool result text | new — `tests/clients` covers the handler, nothing covers it through a packaged install | — |
|
|
85
85
|
| mcp-turn-end | the turn-end pipeline runs over the turn's files and returns an advisory | mcp-stdio | `tools/call` `pilens_turn_end` with the fixture file | text carries `Turn-end over N file(s).` with N at least 1 | tool result text | new — `scripts/smoke-availability-lifecycle.mjs` covers lifecycle availability, not the packaged turn-end path | #1605 lane 2 (availability-lifecycle): overlaps the turn-end half; #1605 asserts latch recovery, this row asserts the packaged turn-end path answers at all |
|
|
86
86
|
| mcp-lsp-navigation | LSP navigation answers on a fixture | mcp-stdio | `tools/call` `pilens_lsp_navigation` with operation `documentSymbol` and the fixture path | result is not an error and names the fixture's exported `releaseQaFixtureSymbol` | tool result text | `scripts/smoke-tools.mjs --lsp` is the per-server sibling; this row is the packaged-path variant | #1829 lane 2/3 (gated real-binary + the rotating install lane): #1829 pins each tool's own contract, this row pins that the packaged LSP path answers |
|
|
87
|
-
| config-provenance | a project config is LOADED and its provenance is reportable | mcp-stdio | `tools/call` `pilens_effective_config` with the fixture file | result names the fixture's `.pi-lens.json` as a contributing document | tool result text |
|
|
87
|
+
| config-provenance | a project config is LOADED and its provenance is reportable | mcp-stdio | `tools/call` `pilens_effective_config` with the fixture file | result names the fixture's `.pi-lens.json` as a contributing document | tool result text | `tests/clients/lsp/resolved-config.test.ts` compares the published schema with `PI_LENS_CONFIG_SCHEMA`, and `tests/clients/public-surface-drift.test.ts` reads it; no test covers the packaged config load | — |
|
|
88
88
|
| degradation-visible | a silently-ignored input is RECORDED as a degradation instead of vanishing | mcp-stdio | `tools/call` `pilens_health` with the fixture's project-tier `lsp.enabled` (a global-only setting) loaded | health text carries a `config-ignored` degradation line naming the fixture's `.pi-lens.json` | health tool result text | `clients/degradation-ledger.ts` is the reused machinery; no smoke asserts it end to end | #1605 lane 2 (availability-lifecycle): the degradation-recorded half; #1605 additionally asserts RECOVERY, which this row does not |
|
|
89
89
|
| global-config-location | the agent-dir global config file supplies the global tier when it exists and the legacy default does not | mcp-stdio | `tools/call` `pilens_effective_config` on a real pi-lens MCP server whose env sets `PI_CODING_AGENT_DIR` at a scratch dir holding `extensions/pi-lens.json` | the tool result NAMES the agent-dir file as a contributing config document (the `pi-coding-agent-dir` winner) | tool result text | `tests/clients/global-config-location.test.ts` covers the resolution in-process; no smoke drives the packaged MCP path with the env set | — |
|
|
90
90
|
| config-shadow-record | a lower-precedence global config file beside the winner is recorded once per session | mcp-stdio | `tools/call` `pilens_effective_config` then `pilens_health` twice, on a real MCP server whose env has BOTH `~/.pi-lens/config.json` and `PI_CODING_AGENT_DIR/extensions/pi-lens.json` present | health carries a `config-location-shadowed: 1` line naming the shadowed agent-dir file, and the count stays 1 on a second health read after a further config load | the two health tool result texts | `clients/degradation-ledger.ts` `recordDegradationOnce` and `tests/clients/global-config-location.test.ts`; no smoke asserts the record end to end | #1605 lane 2 (availability-lifecycle): the degradation-recorded half, as `degradation-visible`; this row additionally pins the once-per-session count across two loads |
|
|
@@ -155,7 +155,7 @@ newest-in-range lane reads it, bounded above so `"*"` can never mean
|
|
|
155
155
|
matrix has passed on. A newer host enters the window in ONE change: run this
|
|
156
156
|
matrix on it, add it to that test's verified list, and move the workflow's
|
|
157
157
|
ceiling together. P1 is one verified host per minor line from 0.86 onward;
|
|
158
|
-
0.86–1.
|
|
158
|
+
0.86–1.5 are in-window, and every minor line below 0.86 falls outside the
|
|
159
159
|
window entirely, so none needs a dedicated host. A ceiling past an unrun
|
|
160
160
|
minor still claims that minor, so the verified-minor ratchet names the admitted
|
|
161
161
|
lines explicitly.
|
|
@@ -171,9 +171,11 @@ the old hosts; a real 0.80.10 session delivered the staged guidance at
|
|
|
171
171
|
|
|
172
172
|
### Verified hosts
|
|
173
173
|
|
|
174
|
-
The certified policy is `>=0.86.1 <1.
|
|
174
|
+
The certified policy is `>=0.86.1 <1.6.0`, and this table is the whole verified
|
|
175
175
|
set: `tests/packaging.test.ts` fails when it and `PI_HOST_SUPPORTED_RANGE`
|
|
176
|
-
disagree. Each listed minor line has a release-QA witness;
|
|
176
|
+
disagree. Each listed minor line through 1.4 has a release-QA witness; 1.5 was
|
|
177
|
+
certified by maintainer decision on 2026-11-02, with its witness blocked by
|
|
178
|
+
the lane npm guard. The workflow ceiling
|
|
177
179
|
and `tests/packaging.test.ts` list are updated together.
|
|
178
180
|
|
|
179
181
|
| host | date | pi-lens commit | result |
|
|
@@ -186,6 +188,7 @@ and `tests/packaging.test.ts` list are updated together.
|
|
|
186
188
|
| 1.2.0 | 2026-10-16 | 9400454891d5a1beb0a4d2d9452dece276e22e71 | 15 pass / 1 skipped (git-install-loads) |
|
|
187
189
|
| 1.3.0 | 2026-10-16 | 9400454891d5a1beb0a4d2d9452dece276e22e71 | 15 pass / 1 skipped (git-install-loads) |
|
|
188
190
|
| 1.4.0 | 2026-10-22 | 75a1a3c893ed0ac44a3081dd3d475c1e72349099 | 15 pass / 1 skipped (git-install-loads) |
|
|
191
|
+
| 1.5.0 | 2026-11-02 | e5017388815d476e783fc850b3d05c6ce98bd85e | Maintainer certification; release QA blocked by npm guard (17 untested) |
|
|
189
192
|
|
|
190
193
|
Re-run any row with `node scripts/release-qa.mjs --pi <host>` at the listed commit.
|
|
191
194
|
|
|
@@ -556,8 +556,17 @@
|
|
|
556
556
|
"additionalProperties": true,
|
|
557
557
|
"properties": {
|
|
558
558
|
"threshold": { "type": "number", "x-stability": "experimental" },
|
|
559
|
-
"disable": {
|
|
560
|
-
|
|
559
|
+
"disable": {
|
|
560
|
+
"type": "array",
|
|
561
|
+
"items": { "type": "string", "x-stability": "experimental" },
|
|
562
|
+
"x-deny": "array-union",
|
|
563
|
+
"x-stability": "experimental"
|
|
564
|
+
},
|
|
565
|
+
"select": {
|
|
566
|
+
"type": "array",
|
|
567
|
+
"items": { "type": "string", "x-stability": "experimental" },
|
|
568
|
+
"x-stability": "experimental"
|
|
569
|
+
},
|
|
561
570
|
"ignorePaths": {
|
|
562
571
|
"type": "array",
|
|
563
572
|
"items": { "type": "string", "minLength": 1, "x-stability": "experimental" },
|
|
@@ -6,7 +6,7 @@ server's `initialize` handshake. Generated by `node scripts/server-capabilities.
|
|
|
6
6
|
absent on the generating host are listed under *Unavailable* — run in a
|
|
7
7
|
provisioned environment (the nightly) to capture those rows.
|
|
8
8
|
|
|
9
|
-
_Last generated: 2026-
|
|
9
|
+
_Last generated: 2026-11-06 on linux; 42 servers captured, 9 unavailable._
|
|
10
10
|
|
|
11
11
|
## Diagnostic mode + navigation/edit operations
|
|
12
12
|
|
|
@@ -28,6 +28,7 @@ Legend: ✓ advertised, · not. **mode** = document diagnostics (`pull` = `textD
|
|
|
28
28
|
| docker-official | push-only | · | · | ✓ | · | · | · | ✓ | · | ✓ | · | ✓ | ✓ | · | · | · | 1 |
|
|
29
29
|
| emmylua | pull | · | · | ✓ | · | · | ✓ | ✓ | · | ✓ | ✓ | ✓ | · | · | · | · | 4 |
|
|
30
30
|
| expert | push-only | · | save | ✓ | · | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | · | ✓ | ✓ | · | 2 |
|
|
31
|
+
| fallow | push-only | · | · | · | · | · | · | ✓ | · | · | · | ✓ | · | · | · | · | 0 |
|
|
31
32
|
| fish | push-only | · | save+text | ✓ | · | · | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | · | · | 23 |
|
|
32
33
|
| fsharp | push-only | · | save+text | ✓ | ✓ | · | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | · | 0 |
|
|
33
34
|
| gleam | push-only | · | save | ✓ | ✓ | · | ✓ | ✓ | ✓ | ✓ | · | ✓ | ✓ | · | · | · | 0 |
|
|
@@ -75,6 +76,7 @@ surface, including providers pi-lens does not yet consume.
|
|
|
75
76
|
- **docker-official**: codeActionProvider, completionProvider, definitionProvider, documentFormattingProvider, documentHighlightProvider, documentLinkProvider, documentSymbolProvider, executeCommandProvider, hoverProvider, inlayHintProvider, inlineCompletionProvider, renameProvider, semanticTokensProvider, textDocumentSync
|
|
76
77
|
- **emmylua**: codeActionProvider, definitionProvider, diagnosticProvider, documentSymbolProvider, executeCommandProvider, hoverProvider, referencesProvider, textDocumentSync, workspaceSymbolProvider
|
|
77
78
|
- **expert**: callHierarchyProvider, codeActionProvider, codeLensProvider, completionProvider, declarationProvider, definitionProvider, documentFormattingProvider, documentSymbolProvider, executeCommandProvider, experimental, foldingRangeProvider, hoverProvider, implementationProvider, referencesProvider, selectionRangeProvider, signatureHelpProvider, textDocumentSync, workspace, workspaceSymbolProvider
|
|
79
|
+
- **fallow**: codeActionProvider, codeLensProvider, hoverProvider, positionEncoding, textDocumentSync
|
|
78
80
|
- **fish**: codeActionProvider, completionProvider, definitionProvider, documentFormattingProvider, documentHighlightProvider, documentOnTypeFormattingProvider, documentRangeFormattingProvider, documentSymbolProvider, executeCommandProvider, foldingRangeProvider, hoverProvider, implementationProvider, inlayHintProvider, referencesProvider, renameProvider, selectionRangeProvider, semanticTokensProvider, signatureHelpProvider, textDocumentSync, workspace, workspaceSymbolProvider
|
|
79
81
|
- **fsharp**: callHierarchyProvider, codeActionProvider, codeLensProvider, completionProvider, definitionProvider, documentFormattingProvider, documentHighlightProvider, documentRangeFormattingProvider, documentSymbolProvider, foldingRangeProvider, hoverProvider, implementationProvider, inlayHintProvider, referencesProvider, renameProvider, selectionRangeProvider, semanticTokensProvider, signatureHelpProvider, textDocumentSync, typeDefinitionProvider, workspaceSymbolProvider
|
|
80
82
|
- **gleam**: codeActionProvider, completionProvider, definitionProvider, documentFormattingProvider, documentHighlightProvider, documentSymbolProvider, foldingRangeProvider, hoverProvider, referencesProvider, renameProvider, signatureHelpProvider, textDocumentSync, typeDefinitionProvider, workspace
|
package/docs/settings.md
CHANGED
|
@@ -82,6 +82,7 @@ column is the effective behavior when nothing is set.
|
|
|
82
82
|
| `--no-typos` | `typos.enabled` | global | typos auxiliary server **on** |
|
|
83
83
|
| `--lens-spotbugs` | `spotbugs.enabled` | global | SpotBugs **off** |
|
|
84
84
|
| `--no-read-guard` | `readGuard.enabled` | global | read-before-edit monitor **on** |
|
|
85
|
+
| `--no-read-expansion` | `readGuard.expandReads` | global | read widening **on** (guard stays active when disabled) |
|
|
85
86
|
| `--no-lens-context` | `contextInjection.enabled` | global | context injection **on** |
|
|
86
87
|
| `--lens-retain-injections` | `contextInjection.retain` | global | **off** |
|
|
87
88
|
| `--lens-turn-summary` | `turnSummary.enabled` | global | **off** |
|
|
@@ -150,13 +151,14 @@ field docs.
|
|
|
150
151
|
| `ignore` | global + project | `[]` | Gitignore-style globs excluded from every scan |
|
|
151
152
|
| `widget.visible` | global | `true` | Whether the diagnostics widget shows at session start |
|
|
152
153
|
| `dispatch.runnerTimeoutFloorMs` | global | none (no floor) | Minimum wall-clock budget per dispatch runner |
|
|
154
|
+
| `lsp.queryMaxFileLines` | global | `5000` | Line limit of the explicit single-file `lens_diagnostics source=lsp` query only; a whole number from `5000` to `40000` (suggested `20000`). See [globalconfig](globalconfig.md#explicit-diagnostics-query-line-limit) |
|
|
153
155
|
| `dispatch.disabledRunners` | global + project | `[]` | Dispatch runner ids that never run (for example `["dotnet-build"]`). A denial: the union of every tier, so a project can add but never re-enable. Unknown ids are dropped with a warning. See [configuration](configuration.md#dispatchdisabledrunners--turning-a-dispatch-runner-off) |
|
|
154
156
|
| `format.mode` | global | `"deferred"` | `"deferred"` (at `agent_end`) or `"immediate"` |
|
|
155
157
|
| `actionableWarnings.autoFix.maxFixes` | global | `5` | Cap on quickfixes applied per turn (`0` = report only) |
|
|
156
|
-
| `rules.high-complexity.threshold` | project | `15` | Cyclomatic-complexity threshold |
|
|
157
|
-
| `rules.high-fan-out.threshold` | project | `20` | Distinct-function-call threshold |
|
|
158
|
-
| `rules.<id>.disable` | global + project | absent | Disable diagnostics for a rule (output-only filter, project-wide; same normalization as `pi-lens-ignore`). Read per file from its nearest `.pi-lens.json`, so a nested file governs the files under it. See [configuration](configuration.md#rulesid--read-from-each-files-own-config) |
|
|
159
|
-
| `rules.<id>.select` | project | absent | Allowlist of rule ids (output-only filter, project-wide across every key; disable wins over select) |
|
|
158
|
+
| `rules.high-complexity.threshold` | global + project | `15` | Cyclomatic-complexity threshold. Read per file from its nearest `.pi-lens.json` field by field, like `rules.<id>.disable`, so a nested file governs the files under it and a global file applies where no project file sets one. See [configuration](configuration.md#rulesid--read-from-each-files-own-config) |
|
|
159
|
+
| `rules.high-fan-out.threshold` | global + project | `20` | Distinct-function-call threshold. Read per file from its nearest `.pi-lens.json` field by field, like `rules.<id>.disable`, so a nested file governs the files under it and a global file applies where no project file sets one |
|
|
160
|
+
| `rules.<id>.disable` | global + project | absent | Disable diagnostics for a rule (output-only filter, project-wide; same normalization as `pi-lens-ignore`). Read per file from its nearest `.pi-lens.json`, so a nested file governs the files under it. A denial: the union of every tier (global, root and nested files), so a nearer file can add rules but never re-enable one. See [configuration](configuration.md#rulesid--read-from-each-files-own-config) |
|
|
161
|
+
| `rules.<id>.select` | global + project | absent | Allowlist of rule ids (output-only filter, project-wide across every key; disable wins over select). Not a denial: per grouping key, the nearest file that sets it supplies the whole list, and a global `select` applies to a key no nearer file sets. Lists under different keys are unioned |
|
|
160
162
|
| `rules.<id>.ignorePaths` | global + project | `[]` | Experimental rule-scoped path entries matched like the `ignore` field: gitignore rules, relative to the directory of the file that declares them (the project root for a global entry). A later entry beats an earlier one, `!` re-includes, a leading `/` roots the entry at that directory, a trailing `/` names a directory, and an entry with no slash matches at any depth below it. Matching files skip that rule's scan and output. Entries are monotonic across files: a `!` re-includes only against the entries of its own file, and a nearer file never lifts another file's carve-out. Changed from earlier releases, which matched each entry as a plain glob: a `!` entry used to hide every path its glob did not name, and a leading `/` or trailing `/` matched nothing; they now follow gitignore. An entry with a slash keeps its meaning, and a slashless entry such as `*.gen.ts` now also matches below the root. See the [configuration reference](./configuration.md#rulesid--read-from-each-files-own-config). |
|
|
161
163
|
| `maxProjectFiles` | project | `2000` | Base scale knob; derives five subsystem size budgets |
|
|
162
164
|
| `reviewGraph.maxFiles` | project | derived (clamped `100`–`20000`) | Explicit review-graph file budget |
|
|
@@ -171,7 +173,7 @@ User-level. The file is selected by the [global-location table](configuration.md
|
|
|
171
173
|
and applies to **every** project. It honors **all** flag keys from the
|
|
172
174
|
table above plus the non-flag global knobs (`ignore`, `widget.visible`,
|
|
173
175
|
`dispatch.runnerTimeoutFloorMs`, `dispatch.disabledRunners`, `format.mode`,
|
|
174
|
-
`actionableWarnings.autoFix.maxFixes`). On Windows the path is
|
|
176
|
+
`actionableWarnings.autoFix.maxFixes`, `lsp.queryMaxFileLines`). On Windows the path is
|
|
175
177
|
`%USERPROFILE%\.pi-lens\config.json`.
|
|
176
178
|
|
|
177
179
|
```json
|
|
@@ -222,7 +224,8 @@ scope — pi-lens logs a one-time warning saying so (rather than silently doing
|
|
|
222
224
|
nothing) and you should set it in `~/.pi-lens/config.json` or pass the CLI flag
|
|
223
225
|
instead. `dispatch` is mixed-scope: `dispatch.disabledRunners` is honored in a
|
|
224
226
|
project file, while `dispatch.runnerTimeoutFloorMs` stays global-only and is
|
|
225
|
-
reported as such.
|
|
227
|
+
reported as such. `lsp` is mixed-scope the same way: the LSP server keys are
|
|
228
|
+
honored, while `lsp.enabled` and `lsp.queryMaxFileLines` stay global-only. Foreign LSP-loader namespaces that a shared file legitimately
|
|
226
229
|
carries (`servers`, `serverOverrides`, `disabledServers`, `warmFiles`) and
|
|
227
230
|
`$schema` are tolerated without warning; anything else is logged once as a
|
|
228
231
|
likely typo.
|
package/docs/usage.md
CHANGED
|
@@ -114,6 +114,7 @@ pi --no-zizmor # Disable the zizmor auxiliary LSP server (default-on)
|
|
|
114
114
|
pi --no-typos # Disable the typos auxiliary LSP server (default-on)
|
|
115
115
|
pi --lens-spotbugs # Run SpotBugs on Java and Kotlin files (opt-in; needs a Java build descriptor and compiled classes)
|
|
116
116
|
pi --no-read-guard # Disable the read-before-edit behavior monitor
|
|
117
|
+
pi --no-read-expansion # Keep exact read ranges without disabling the read guard
|
|
117
118
|
pi --lens-retain-injections # Re-send injected findings unchanged in later requests, for exact-prefix (local) prompt caches
|
|
118
119
|
pi --lens-turn-summary # Persist a per-turn summary of diagnostics, autofixes, and autoformats
|
|
119
120
|
pi --lens-compact-tool-line # Render tool results as one compact, theme-aware line (closes #1327)
|
package/docs/word-index.md
CHANGED
|
@@ -53,8 +53,9 @@ parsed by `parseWordIndexQuery` (`clients/word-index.ts`) before tokenization:
|
|
|
53
53
|
- `file:<substr>` — path substring match against the index's own stored path,
|
|
54
54
|
normalized through `wordIndexKey` (case-folded on win32 only, matching how
|
|
55
55
|
the index's own path-keyed maps already fold win32 paths, #1025).
|
|
56
|
-
- `ext:<ext>` —
|
|
57
|
-
equivalent
|
|
56
|
+
- `ext:<ext>` — path-suffix match on the index's display path, case-insensitive,
|
|
57
|
+
leading dot optional (`ext:ts` and `ext:.ts` are equivalent; `ext:test.ts`
|
|
58
|
+
matches `foo.test.ts`; `ext:ts` does not match `foo.tsx`).
|
|
58
59
|
- Any filter may be negated with a leading `-` (`-file:test`).
|
|
59
60
|
|
|
60
61
|
Example: `lang:jsts file:clients/ -file:test rank`. Multiple positive filters
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-lens",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Real-time code feedback for pi — LSP, linters, formatters, type-checking, structural analysis & booboo",
|
|
6
6
|
"repository": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"lint:js": "oxlint --deny-warnings --import-plugin --promise-plugin -D block-scoped-var -D import/default -D import/namespace -D import/no-absolute-path -D import/no-empty-named-blocks -D import/no-named-as-default -D import/no-self-import -D no-extend-native -D no-extra-bind -D no-implied-eval -D no-new -D no-unexpected-multiline -D no-useless-constructor -D oxc/approx-constant -D oxc/misrefactored-assign-op -D oxc/no-accumulating-spread -D oxc/no-async-endpoint-handlers -D oxc/no-this-in-exported-function -D promise/no-callback-in-promise -D promise/no-multiple-resolved -D promise/no-new-statics -D promise/valid-params -D typescript/no-confusing-non-null-assertion -D typescript/no-extraneous-class -D typescript/no-unnecessary-type-constraint -D typescript/no-unsafe-enum-comparison -D unicorn/no-accessor-recursion -D unicorn/no-array-fill-with-reference-type -D unicorn/no-confusing-array-with -D unicorn/no-instanceof-builtins -D unicorn/prefer-array-flat-map -D unicorn/require-module-specifiers --ignore-pattern \"tests/**/*.ts\" --ignore-pattern \"tests/**/*.tsx\" --ignore-pattern \"**/*.d.mts\" --ignore-pattern \"tests/fixtures/autofix-smoke/**\" --ignore-pattern \"tests/fixtures/format-smoke/**\" --ignore-pattern \"tests/fixtures/tool-smoke/**\" --ignore-pattern \"tests/fixtures/call-graph/javascript/**\" --ignore-pattern \"tests/fixtures/function-facts/javascript-parameter.js\" .",
|
|
25
25
|
"lint:js:advisory": "node scripts/lint-js-advisory.mjs --deny-warnings --format unix -D correctness -D suspicious -D perf --import-plugin --promise-plugin --type-aware -A no-underscore-dangle -A no-await-in-loop -A unicorn/no-array-sort -A unicorn/consistent-function-scoping -A promise/no-promise-in-callback -A no-useless-call -A import/no-unassigned-import -A no-unmodified-loop-condition --ignore-pattern \"**/*.d.mts\" --ignore-pattern \"tests/fixtures/autofix-smoke/**\" --ignore-pattern \"tests/fixtures/format-smoke/**\" --ignore-pattern \"tests/fixtures/tool-smoke/**\" --ignore-pattern \"tests/fixtures/call-graph/javascript/**\" --ignore-pattern \"tests/fixtures/function-facts/javascript-parameter.js\" .",
|
|
26
26
|
"lint:js:tests": "node scripts/lint-js-advisory.mjs --deny-warnings --format unix --type-aware -A correctness -A suspicious -A perf --ignore-pattern \"tests/fixtures/**\" tests",
|
|
27
|
-
"lint:js:promises": "node scripts/lint-js-advisory.mjs --deny-warnings --format unix --type-aware -A all -D typescript/await-thenable -D typescript/no-floating-promises -D typescript/no-misused-promises clients mcp tools index.ts",
|
|
27
|
+
"lint:js:promises": "node scripts/lint-js-advisory.mjs --deny-warnings --format unix --type-aware -A all -D typescript/await-thenable -D typescript/no-floating-promises -D typescript/no-misused-promises -D typescript/switch-exhaustiveness-check clients mcp tools index.ts",
|
|
28
28
|
"depcruise:check": "depcruise --validate --config .dependency-cruiser.cjs --ignore-known .dependency-cruiser-known-violations.json --output-type err index.ts \"clients/**/*.ts\"",
|
|
29
29
|
"fmt": "oxfmt",
|
|
30
30
|
"fmt:check": "oxfmt --check",
|
|
@@ -126,6 +126,7 @@
|
|
|
126
126
|
"scripts/rpc-load-check.mjs",
|
|
127
127
|
"README.md",
|
|
128
128
|
"CHANGELOG.md",
|
|
129
|
+
"CHANGELOG-USER.md",
|
|
129
130
|
"banner.svg",
|
|
130
131
|
"banner.png"
|
|
131
132
|
],
|
|
@@ -133,9 +134,9 @@
|
|
|
133
134
|
"@ast-grep/cli": "0.51.0",
|
|
134
135
|
"@ast-grep/napi": "^0.51.0",
|
|
135
136
|
"js-yaml": "^5.2.2",
|
|
136
|
-
"minimatch": "^11.0.
|
|
137
|
+
"minimatch": "^11.0.4",
|
|
137
138
|
"pidusage": "^4.0.1",
|
|
138
|
-
"vscode-jsonrpc": "^
|
|
139
|
+
"vscode-jsonrpc": "^10.0.0"
|
|
139
140
|
},
|
|
140
141
|
"peerDependencies": {
|
|
141
142
|
"@earendil-works/pi-coding-agent": "*",
|
|
@@ -158,6 +159,7 @@
|
|
|
158
159
|
"web-tree-sitter": "0.25.10"
|
|
159
160
|
},
|
|
160
161
|
"pi": {
|
|
162
|
+
"changelogPath": "CHANGELOG-USER.md",
|
|
161
163
|
"extensions": [
|
|
162
164
|
"./dist/index.js"
|
|
163
165
|
],
|
|
@@ -173,6 +175,9 @@
|
|
|
173
175
|
"protobufjs@7.6.6": true
|
|
174
176
|
},
|
|
175
177
|
"overrides": {
|
|
178
|
+
"@stryker-mutator/core": {
|
|
179
|
+
"minimatch": "$minimatch"
|
|
180
|
+
},
|
|
176
181
|
"qs": "^6.15.4",
|
|
177
182
|
"undici": "^8.12.2"
|
|
178
183
|
}
|
|
@@ -59,8 +59,7 @@ note: |
|
|
|
59
59
|
`SELECT` and `WITH` arms carry no word boundary, so
|
|
60
60
|
`job.execute("selected from " + source)` still flags there, and its
|
|
61
61
|
skip accepts real whitespace only, so an escaped `"\nSELECT ..."` is a
|
|
62
|
-
miss there.
|
|
63
|
-
the rest of the alternation byte-identical to the sibling's copy.
|
|
62
|
+
miss there.
|
|
64
63
|
|
|
65
64
|
Cost (#4804 review, measured on this head for the shared statement
|
|
66
65
|
test): 2.2 to 23.7 ms per scanned file, 231 to 468 of 2,687 JS/TS files
|
|
@@ -59,8 +59,7 @@ note: |
|
|
|
59
59
|
`SELECT` and `WITH` arms carry no word boundary, so
|
|
60
60
|
`job.execute("selected from " + source)` still flags there, and its
|
|
61
61
|
skip accepts real whitespace only, so an escaped `"\nSELECT ..."` is a
|
|
62
|
-
miss there.
|
|
63
|
-
the rest of the alternation byte-identical to the sibling's copy.
|
|
62
|
+
miss there.
|
|
64
63
|
|
|
65
64
|
Cost (#4804 review, measured on this head for the shared statement
|
|
66
65
|
test): 2.2 to 23.7 ms per scanned file, 231 to 468 of 2,687 JS/TS files
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
import { createHash } from "node:crypto";
|
|
21
21
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
22
22
|
import { dirname, join } from "node:path";
|
|
23
|
-
import { fileURLToPath
|
|
23
|
+
import { fileURLToPath } from "node:url";
|
|
24
|
+
import { isMainModule } from "./lib/is-main-module.mjs";
|
|
24
25
|
// The pinned tree-sitter-wasms release. Bump this, run `--write-manifest`, and
|
|
25
26
|
// commit the regenerated grammars.lock.json to move to a new grammar set.
|
|
26
27
|
const TREE_SITTER_WASMS_VERSION = "0.1.13";
|
|
@@ -50,6 +51,9 @@ export const SOURCE_OVERRIDES = {
|
|
|
50
51
|
* tree-sitter-cue: no published wasm exists — npm's `tree-sitter-cue` is a
|
|
51
52
|
* native binding, the `tree-sitter-wasms` aggregator has no CUE, and upstream
|
|
52
53
|
* cuts no releases — so we build it from a pinned commit (#1522).
|
|
54
|
+
*
|
|
55
|
+
* tree-sitter-groovy: no publisher ships a wasm, so dekobon v0.3.0 is built at
|
|
56
|
+
* its tagged commit with the pinned CLI, unpatched (#5235).
|
|
53
57
|
*/
|
|
54
58
|
export const VENDORED_GRAMMARS = {
|
|
55
59
|
"tree-sitter-cue.wasm": {
|
|
@@ -59,6 +63,13 @@ export const VENDORED_GRAMMARS = {
|
|
|
59
63
|
buildCommand: "npx tree-sitter-cli build --wasm",
|
|
60
64
|
sha256: "sha256:751f8cc8ccf72da760133e3d365562ff7bbf5b951e0b73568576fd159db7d601",
|
|
61
65
|
},
|
|
66
|
+
"tree-sitter-groovy.wasm": {
|
|
67
|
+
repo: "https://github.com/dekobon/tree-sitter-groovy",
|
|
68
|
+
commit: "654e4c2d736571dbc512043a1dc26017c7aedc85",
|
|
69
|
+
license: "MIT OR Apache-2.0",
|
|
70
|
+
buildCommand: "npx tree-sitter-cli@0.25.10 build --wasm",
|
|
71
|
+
sha256: "sha256:d03e2a88789bcf02a3f6976531eadbe3f8e0328935d1c353f8a98a0813e5e9d9",
|
|
72
|
+
},
|
|
62
73
|
};
|
|
63
74
|
/** Directory the committed grammars live in, relative to the package root. */
|
|
64
75
|
export const VENDORED_DIR = "vendor/grammars";
|
|
@@ -312,7 +323,7 @@ async function main() {
|
|
|
312
323
|
}
|
|
313
324
|
// Only run when invoked directly (not when imported by the provenance check or
|
|
314
325
|
// tests) — the import guard keeps the exported helpers side-effect-free.
|
|
315
|
-
if (import.meta.url
|
|
326
|
+
if (isMainModule(import.meta.url)) {
|
|
316
327
|
main().catch((err) => {
|
|
317
328
|
// Never fail the install — tree-sitter is optional.
|
|
318
329
|
console.warn("Warning: grammar download failed:", err.message);
|
|
@@ -53,6 +53,13 @@
|
|
|
53
53
|
"license": "MIT",
|
|
54
54
|
"buildCommand": "npx tree-sitter-cli build --wasm",
|
|
55
55
|
"sha256": "sha256:751f8cc8ccf72da760133e3d365562ff7bbf5b951e0b73568576fd159db7d601"
|
|
56
|
+
},
|
|
57
|
+
"tree-sitter-groovy.wasm": {
|
|
58
|
+
"repo": "https://github.com/dekobon/tree-sitter-groovy",
|
|
59
|
+
"commit": "654e4c2d736571dbc512043a1dc26017c7aedc85",
|
|
60
|
+
"license": "MIT OR Apache-2.0",
|
|
61
|
+
"buildCommand": "npx tree-sitter-cli@0.25.10 build --wasm",
|
|
62
|
+
"sha256": "sha256:d03e2a88789bcf02a3f6976531eadbe3f8e0328935d1c353f8a98a0813e5e9d9"
|
|
56
63
|
}
|
|
57
64
|
}
|
|
58
65
|
}
|
|
@@ -58,12 +58,16 @@ The `operation` values are `definition`, `typeDefinition`, `declaration`, `refer
|
|
|
58
58
|
|
|
59
59
|
For `findSymbol`, pass `query`; optionally narrow with `kinds`, `exactMatch`, `topLevelOnly`, and `maxResults`. `rename_file` uses `newFilePath`. `symbol` resolves a character automatically; `character: -1` requests automatic resolution, and `symbol#N` selects a numbered symbol when the result lists one. `callHierarchyItem` is the object returned by `prepareCallHierarchy` and is required by the incoming/outgoing follow-up calls.
|
|
60
60
|
|
|
61
|
+
**Output is text by default**, the shape a Neovim LSP user sees: a `path:line:col` location list for `definition`, `references`, `implementation` and call hierarchy; `hover`'s markdown (a language-bearing snippet as a fenced code block); an indented `start-end kind name` symbol tree for `documentSymbol` and `findSymbol`; `path:line:col: severity: message` rows for `workspaceDiagnostics`, under a `path (scanned 5m ago)` header per file when the snapshot stamped its age; and the rename summary, or the completed edit list after applying (with a warning when the server dropped a conflicting edit). A call-hierarchy entry prints its call sites on indented `path:line:col` lines under the symbol, and `prepareCallHierarchy` adds a `callHierarchyItem: <json>` line carrying the item verbatim. Pass `view: "json"` only when you need the structured envelope (the pre-text default, byte-identical), for example to parse `locations` or `metadata.searchReads`.
|
|
62
|
+
|
|
63
|
+
An executed `executeCommand` value is the one exception: its payload is the server's arbitrary JSON, so it prints as compact single-line JSON with no line shape of its own. A command the client refused or timed out prints `Not executed: <reason>`, plus a warning that a timed-out command may still be changing files.
|
|
64
|
+
|
|
61
65
|
## Call Hierarchy Pattern
|
|
62
66
|
|
|
63
67
|
```
|
|
64
68
|
// Step 1
|
|
65
69
|
lsp_navigation(operation="prepareCallHierarchy", path="src/api.ts", line=42, character=10)
|
|
66
|
-
// →
|
|
70
|
+
// → symbol line, then `callHierarchyItem: <json>`: pass that JSON back verbatim
|
|
67
71
|
|
|
68
72
|
// Step 2
|
|
69
73
|
lsp_navigation(operation="incomingCalls", callHierarchyItem=<item from step 1>)
|
|
Binary file
|
package/dist/chunk-2TS4GLOJ.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
calcCyclomaticComplexity,
|
|
4
|
-
functionFactProvider
|
|
5
|
-
} from "./chunk-6YUNI7B5.js";
|
|
6
|
-
import "./chunk-7TNILKGY.js";
|
|
7
|
-
import "./chunk-5W3R6LFT.js";
|
|
8
|
-
import "./chunk-BHWW6FAX.js";
|
|
9
|
-
import "./chunk-Z54ZSOBZ.js";
|
|
10
|
-
import "./chunk-HHR7WGCI.js";
|
|
11
|
-
import "./chunk-HKIL6DCL.js";
|
|
12
|
-
import "./chunk-PPKECBPP.js";
|
|
13
|
-
import "./chunk-JYLOYTZD.js";
|
|
14
|
-
import "./chunk-JZRP4DGP.js";
|
|
15
|
-
import "./chunk-WMDUT4KH.js";
|
|
16
|
-
import "./chunk-G5GV2Q7K.js";
|
|
17
|
-
import "./chunk-X35S7HSB.js";
|
|
18
|
-
import "./chunk-SQC7K3SP.js";
|
|
19
|
-
import "./chunk-JE6HKLC7.js";
|
|
20
|
-
import "./chunk-2453RRJ2.js";
|
|
21
|
-
import "./chunk-WQV6BI4Q.js";
|
|
22
|
-
import "./chunk-S26LC76R.js";
|
|
23
|
-
import "./chunk-565VRUP4.js";
|
|
24
|
-
import "./chunk-VLQ7UKZH.js";
|
|
25
|
-
import "./chunk-LJDODBBZ.js";
|
|
26
|
-
import "./chunk-GMROJJRN.js";
|
|
27
|
-
import "./chunk-NXL4FFQQ.js";
|
|
28
|
-
export {
|
|
29
|
-
calcCyclomaticComplexity,
|
|
30
|
-
functionFactProvider
|
|
31
|
-
};
|
package/dist/chunk-3JAHQBSY.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
RustClient,
|
|
4
|
-
resetRustAvailability,
|
|
5
|
-
rustClient
|
|
6
|
-
} from "./chunk-4W52ZKZX.js";
|
|
7
|
-
import "./chunk-BUZIQDFS.js";
|
|
8
|
-
import "./chunk-JBP7KESM.js";
|
|
9
|
-
import "./chunk-JZRP4DGP.js";
|
|
10
|
-
import "./chunk-WMDUT4KH.js";
|
|
11
|
-
import "./chunk-AWQWXSW4.js";
|
|
12
|
-
import "./chunk-X35S7HSB.js";
|
|
13
|
-
import "./chunk-SQC7K3SP.js";
|
|
14
|
-
import "./chunk-JE6HKLC7.js";
|
|
15
|
-
import "./chunk-2453RRJ2.js";
|
|
16
|
-
import "./chunk-WQV6BI4Q.js";
|
|
17
|
-
import "./chunk-S26LC76R.js";
|
|
18
|
-
import "./chunk-565VRUP4.js";
|
|
19
|
-
import "./chunk-VLQ7UKZH.js";
|
|
20
|
-
import "./chunk-LJDODBBZ.js";
|
|
21
|
-
import "./chunk-GMROJJRN.js";
|
|
22
|
-
import "./chunk-NXL4FFQQ.js";
|
|
23
|
-
export {
|
|
24
|
-
RustClient,
|
|
25
|
-
resetRustAvailability,
|
|
26
|
-
rustClient
|
|
27
|
-
};
|
package/dist/chunk-447YZL4S.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
getSourceFiles,
|
|
4
|
-
getSourceFilesAsync
|
|
5
|
-
} from "./chunk-BBET6HD6.js";
|
|
6
|
-
import "./chunk-G6JKM4O7.js";
|
|
7
|
-
import "./chunk-O2ARHQKF.js";
|
|
8
|
-
import "./chunk-WMDUT4KH.js";
|
|
9
|
-
import "./chunk-QYF5S6P6.js";
|
|
10
|
-
import "./chunk-G5GV2Q7K.js";
|
|
11
|
-
import "./chunk-X35S7HSB.js";
|
|
12
|
-
import "./chunk-SQC7K3SP.js";
|
|
13
|
-
import "./chunk-JE6HKLC7.js";
|
|
14
|
-
import "./chunk-2453RRJ2.js";
|
|
15
|
-
import "./chunk-WQV6BI4Q.js";
|
|
16
|
-
import "./chunk-S26LC76R.js";
|
|
17
|
-
import "./chunk-565VRUP4.js";
|
|
18
|
-
import "./chunk-VLQ7UKZH.js";
|
|
19
|
-
import "./chunk-LJDODBBZ.js";
|
|
20
|
-
import "./chunk-GMROJJRN.js";
|
|
21
|
-
import "./chunk-NXL4FFQQ.js";
|
|
22
|
-
export {
|
|
23
|
-
getSourceFiles,
|
|
24
|
-
getSourceFilesAsync
|
|
25
|
-
};
|
package/dist/chunk-565VRUP4.js
DELETED
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
createNdjsonLogger,
|
|
4
|
-
getGlobalPiLensLogDir,
|
|
5
|
-
getMaxLogSizeMB,
|
|
6
|
-
getTurnId,
|
|
7
|
-
isTestMode
|
|
8
|
-
} from "./chunk-VLQ7UKZH.js";
|
|
9
|
-
import {
|
|
10
|
-
normalizeLoggedPath
|
|
11
|
-
} from "./chunk-GMROJJRN.js";
|
|
12
|
-
|
|
13
|
-
// dist/clients/latency-logger.js
|
|
14
|
-
import * as path from "node:path";
|
|
15
|
-
var LATENCY_LOG_DIR = getGlobalPiLensLogDir();
|
|
16
|
-
var LATENCY_LOG_FILE = path.join(LATENCY_LOG_DIR, "latency.log");
|
|
17
|
-
var writer = createNdjsonLogger({
|
|
18
|
-
filePath: LATENCY_LOG_FILE,
|
|
19
|
-
maxBytes: getMaxLogSizeMB() * 1024 * 1024
|
|
20
|
-
});
|
|
21
|
-
var RECENT_PHASE_CAP = 5;
|
|
22
|
-
var recentPhases = [];
|
|
23
|
-
var LAST_PHASE_EXCLUDED = /* @__PURE__ */ new Set([
|
|
24
|
-
"loop_block",
|
|
25
|
-
"lsp_typescript_project_identity",
|
|
26
|
-
"advisory_provenance_decision",
|
|
27
|
-
"authoritative_content_attachment_decision",
|
|
28
|
-
"agent_end_deferred_mutation_drain",
|
|
29
|
-
"agent_end_deferred_mutation_requeue",
|
|
30
|
-
"session_end_bus_rollup",
|
|
31
|
-
"cache_usage_summary",
|
|
32
|
-
"test_runner_failed_target_state",
|
|
33
|
-
"turn_end_test_selection",
|
|
34
|
-
"lsp_aux_wait_outcome",
|
|
35
|
-
"tool_set_mutation",
|
|
36
|
-
"tool_set_decision",
|
|
37
|
-
"availability_decision",
|
|
38
|
-
"finding_dead_path_drop",
|
|
39
|
-
"finding_stale_line_demote",
|
|
40
|
-
"finding_path_stat_budget_exhausted",
|
|
41
|
-
"lsp_scanner_coverage_gap",
|
|
42
|
-
"lsp_notify_resync_deferred",
|
|
43
|
-
"lsp_notify_write_late_landed",
|
|
44
|
-
"lsp_notify_stall_cpu_busy",
|
|
45
|
-
"degradation_ledger",
|
|
46
|
-
"path_attribution_verified_rollup",
|
|
47
|
-
"concurrent_session_bind_rollup",
|
|
48
|
-
"auxiliary_readiness",
|
|
49
|
-
"lsp_empty_first_publish_held",
|
|
50
|
-
"lsp_diagnostics_fence",
|
|
51
|
-
"lsp_rules_refreshed",
|
|
52
|
-
"read_guard_conversation_read",
|
|
53
|
-
"read_widening_note",
|
|
54
|
-
"session_handoff_slot",
|
|
55
|
-
"session_handoff_adopt",
|
|
56
|
-
"session_store_action",
|
|
57
|
-
"session_end_fence_rollup",
|
|
58
|
-
"session_handoff_turn_state",
|
|
59
|
-
"format_late_resync_chained",
|
|
60
|
-
"lsp_created_import_scan_rollup"
|
|
61
|
-
]);
|
|
62
|
-
var liveBrackets = /* @__PURE__ */ new Map();
|
|
63
|
-
var closedBrackets = [];
|
|
64
|
-
function phaseStarted(phase) {
|
|
65
|
-
const token = { phase, startedAt: (/* @__PURE__ */ new Date()).toISOString() };
|
|
66
|
-
liveBrackets.set(token, true);
|
|
67
|
-
return token;
|
|
68
|
-
}
|
|
69
|
-
function phaseFinished(token) {
|
|
70
|
-
if (!liveBrackets.delete(token))
|
|
71
|
-
return;
|
|
72
|
-
closedBrackets = [
|
|
73
|
-
{
|
|
74
|
-
phase: token.phase,
|
|
75
|
-
startedAt: token.startedAt,
|
|
76
|
-
closedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
77
|
-
},
|
|
78
|
-
...closedBrackets
|
|
79
|
-
].slice(0, RECENT_PHASE_CAP);
|
|
80
|
-
}
|
|
81
|
-
var oncePerSessionPhases = /* @__PURE__ */ new Set();
|
|
82
|
-
var sessionRecordSeq = 0;
|
|
83
|
-
function mintSessionRecordId() {
|
|
84
|
-
sessionRecordSeq += 1;
|
|
85
|
-
return `${process.pid.toString(36)}-${Date.now().toString(36)}-${sessionRecordSeq.toString(36)}`;
|
|
86
|
-
}
|
|
87
|
-
var sessionRecordId = mintSessionRecordId();
|
|
88
|
-
function currentSessionRecordId() {
|
|
89
|
-
return sessionRecordId;
|
|
90
|
-
}
|
|
91
|
-
function claimKey(phase, scope) {
|
|
92
|
-
return `${phase}\0${scope}`;
|
|
93
|
-
}
|
|
94
|
-
function claimPhaseOncePerSession(phase, scope) {
|
|
95
|
-
const key = claimKey(phase, scope);
|
|
96
|
-
if (oncePerSessionPhases.has(key))
|
|
97
|
-
return false;
|
|
98
|
-
oncePerSessionPhases.add(key);
|
|
99
|
-
return true;
|
|
100
|
-
}
|
|
101
|
-
function releasePhaseClaim(phase, scope) {
|
|
102
|
-
oncePerSessionPhases.delete(claimKey(phase, scope));
|
|
103
|
-
}
|
|
104
|
-
function logLatency(entry) {
|
|
105
|
-
const ts = (/* @__PURE__ */ new Date()).toISOString();
|
|
106
|
-
if (entry.type === "phase" && entry.phase && !LAST_PHASE_EXCLUDED.has(entry.phase)) {
|
|
107
|
-
recentPhases = [
|
|
108
|
-
{
|
|
109
|
-
phase: entry.phase,
|
|
110
|
-
ts,
|
|
111
|
-
...entry.toolName !== void 0 && { toolName: entry.toolName },
|
|
112
|
-
...entry.metadata !== void 0 && { metadata: entry.metadata }
|
|
113
|
-
},
|
|
114
|
-
...recentPhases
|
|
115
|
-
].slice(0, RECENT_PHASE_CAP);
|
|
116
|
-
}
|
|
117
|
-
if (isTestMode()) {
|
|
118
|
-
return;
|
|
119
|
-
}
|
|
120
|
-
writer.log({
|
|
121
|
-
...entry,
|
|
122
|
-
ts,
|
|
123
|
-
pid: process.pid,
|
|
124
|
-
turnId: entry.turnId ?? getTurnId(),
|
|
125
|
-
filePath: normalizeLoggedPath(entry.filePath)
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export {
|
|
130
|
-
phaseStarted,
|
|
131
|
-
phaseFinished,
|
|
132
|
-
currentSessionRecordId,
|
|
133
|
-
claimPhaseOncePerSession,
|
|
134
|
-
releasePhaseClaim,
|
|
135
|
-
logLatency
|
|
136
|
-
};
|
package/dist/chunk-57X2CDRX.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
MAX_CANONICAL_ROOT_MEMO_ENTRIES,
|
|
4
|
-
RUNNERS,
|
|
5
|
-
SOURCE_TO_TEST_PATTERNS,
|
|
6
|
-
TURN_END_EXCLUDED_TEST_GLOBS,
|
|
7
|
-
TestRunnerClient,
|
|
8
|
-
isExcludedTestTarget,
|
|
9
|
-
isRunnerErrorResult,
|
|
10
|
-
stripWrapperArgs
|
|
11
|
-
} from "./chunk-OWTG6UMO.js";
|
|
12
|
-
import "./chunk-FHEV6T4L.js";
|
|
13
|
-
import "./chunk-7ANZ7XDD.js";
|
|
14
|
-
import "./chunk-WC6WRNQT.js";
|
|
15
|
-
import "./chunk-PPKECBPP.js";
|
|
16
|
-
import "./chunk-6HWVI6MI.js";
|
|
17
|
-
import "./chunk-IYVYZQRL.js";
|
|
18
|
-
import "./chunk-VOP4PJKA.js";
|
|
19
|
-
import "./chunk-JBP7KESM.js";
|
|
20
|
-
import "./chunk-JZRP4DGP.js";
|
|
21
|
-
import "./chunk-SDFKOLSF.js";
|
|
22
|
-
import "./chunk-BBET6HD6.js";
|
|
23
|
-
import "./chunk-G6JKM4O7.js";
|
|
24
|
-
import "./chunk-O2ARHQKF.js";
|
|
25
|
-
import "./chunk-WMDUT4KH.js";
|
|
26
|
-
import "./chunk-AWQWXSW4.js";
|
|
27
|
-
import "./chunk-QYF5S6P6.js";
|
|
28
|
-
import "./chunk-G5GV2Q7K.js";
|
|
29
|
-
import "./chunk-X35S7HSB.js";
|
|
30
|
-
import "./chunk-SQC7K3SP.js";
|
|
31
|
-
import "./chunk-JE6HKLC7.js";
|
|
32
|
-
import "./chunk-2453RRJ2.js";
|
|
33
|
-
import "./chunk-WQV6BI4Q.js";
|
|
34
|
-
import "./chunk-S26LC76R.js";
|
|
35
|
-
import "./chunk-565VRUP4.js";
|
|
36
|
-
import "./chunk-VLQ7UKZH.js";
|
|
37
|
-
import "./chunk-LJDODBBZ.js";
|
|
38
|
-
import "./chunk-GMROJJRN.js";
|
|
39
|
-
import "./chunk-NXL4FFQQ.js";
|
|
40
|
-
export {
|
|
41
|
-
MAX_CANONICAL_ROOT_MEMO_ENTRIES,
|
|
42
|
-
RUNNERS,
|
|
43
|
-
SOURCE_TO_TEST_PATTERNS,
|
|
44
|
-
TURN_END_EXCLUDED_TEST_GLOBS,
|
|
45
|
-
TestRunnerClient,
|
|
46
|
-
isExcludedTestTarget,
|
|
47
|
-
isRunnerErrorResult,
|
|
48
|
-
stripWrapperArgs
|
|
49
|
-
};
|
package/dist/chunk-GGYOZWHW.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
GoClient,
|
|
4
|
-
goClient,
|
|
5
|
-
resetGoAvailability
|
|
6
|
-
} from "./chunk-3O5EII3W.js";
|
|
7
|
-
import "./chunk-BUZIQDFS.js";
|
|
8
|
-
import "./chunk-JBP7KESM.js";
|
|
9
|
-
import "./chunk-JZRP4DGP.js";
|
|
10
|
-
import "./chunk-WMDUT4KH.js";
|
|
11
|
-
import "./chunk-AWQWXSW4.js";
|
|
12
|
-
import "./chunk-X35S7HSB.js";
|
|
13
|
-
import "./chunk-SQC7K3SP.js";
|
|
14
|
-
import "./chunk-JE6HKLC7.js";
|
|
15
|
-
import "./chunk-2453RRJ2.js";
|
|
16
|
-
import "./chunk-WQV6BI4Q.js";
|
|
17
|
-
import "./chunk-S26LC76R.js";
|
|
18
|
-
import "./chunk-565VRUP4.js";
|
|
19
|
-
import "./chunk-VLQ7UKZH.js";
|
|
20
|
-
import "./chunk-LJDODBBZ.js";
|
|
21
|
-
import "./chunk-GMROJJRN.js";
|
|
22
|
-
import "./chunk-NXL4FFQQ.js";
|
|
23
|
-
export {
|
|
24
|
-
GoClient,
|
|
25
|
-
goClient,
|
|
26
|
-
resetGoAvailability
|
|
27
|
-
};
|