pi-lens 4.4.4 → 4.4.6
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.md +477 -0
- package/README.md +45 -3
- package/config/biome/core.jsonc +3 -3
- package/config/dependency-cruiser-eager-allowlist.json +1 -0
- package/dist/{chunk-UBOQLVT2.js → chunk-2DDDCJDL.js} +4 -4
- package/dist/{chunk-RKKOYPRA.js → chunk-2DMLM3ZO.js} +13 -15
- package/dist/chunk-2F47TQOA.js +73 -0
- package/dist/{chunk-O4NWQT6I.js → chunk-2PHMIAKO.js} +4 -4
- package/dist/{chunk-DGUKIYSI.js → chunk-2RLWJO5K.js} +8 -10
- package/dist/{chunk-S67KYG37.js → chunk-2X4VLOCC.js} +2 -2
- package/dist/{chunk-TIQ2PKDW.js → chunk-3MYEA7QD.js} +4 -4
- package/dist/{chunk-3DA2JDOL.js → chunk-3WEPUD2V.js} +551 -203
- package/dist/{chunk-AMERCH6V.js → chunk-4AVZ3TG7.js} +15 -16
- package/dist/{chunk-IYNJ6YPZ.js → chunk-4PCQCU47.js} +4 -4
- package/dist/chunk-4WX4CTUE.js +57 -0
- package/dist/{chunk-P63GXC37.js → chunk-5APMQ2IJ.js} +31 -4
- package/dist/{chunk-ZIVJBOO3.js → chunk-5CV5ITZF.js} +2 -2
- package/dist/{chunk-6DLWKFEX.js → chunk-5ZR3APIM.js} +41 -42
- package/dist/{chunk-XTBDCR27.js → chunk-63RIVFQI.js} +4 -4
- package/dist/{chunk-GSLNCYGG.js → chunk-75SY4F24.js} +13 -14
- package/dist/{chunk-U44DJXQP.js → chunk-7RQXA5GG.js} +15 -18
- package/dist/chunk-A3YNG5KP.js +45 -0
- package/dist/{chunk-5OFV52AM.js → chunk-AE37FEGH.js} +1 -1
- package/dist/{chunk-BWD5EPKO.js → chunk-AMXIUN2R.js} +4 -6
- package/dist/{chunk-3KAZU3VR.js → chunk-ARD426WI.js} +2 -2
- package/dist/{chunk-BW5KFIQC.js → chunk-AWQWXSW4.js} +1 -0
- package/dist/{chunk-YH5MVY2U.js → chunk-BHUWL2Y3.js} +7 -7
- package/dist/{chunk-CT4MN5IU.js → chunk-BI5LAQ3Y.js} +353 -359
- package/dist/{chunk-KAPJINKN.js → chunk-BM5GS6ZH.js} +2 -2
- package/dist/{chunk-TLX72JTG.js → chunk-BWYQUPOS.js} +1 -1
- package/dist/chunk-CFRQMBGP.js +49 -0
- package/dist/{chunk-RMLC67LF.js → chunk-CJYKEW2L.js} +2 -30
- package/dist/chunk-CKEQFGLT.js +32 -0
- package/dist/{chunk-IWDLU6K3.js → chunk-DC4CFXM5.js} +4 -6
- package/dist/{chunk-ZVUL7QYY.js → chunk-DMSLNKF7.js} +29 -32
- package/dist/{chunk-KN35K52N.js → chunk-DQXSPYRI.js} +3 -3
- package/dist/{chunk-HYGZEMX6.js → chunk-EVDGNG4F.js} +11 -5
- package/dist/{chunk-SRYEJNES.js → chunk-F5Z6URKM.js} +2 -2
- package/dist/{chunk-UMS2MFPZ.js → chunk-F6X3YJWD.js} +2 -3
- package/dist/{chunk-XYURS6EN.js → chunk-FA5LDARD.js} +15 -17
- package/dist/{chunk-24AKHFGP.js → chunk-FFL3A2VP.js} +6 -6
- package/dist/chunk-FJIVKLPH.js +31 -0
- package/dist/chunk-G2B7F6ZU.js +88 -0
- package/dist/{chunk-US7ECLD7.js → chunk-GAACZY6R.js} +131 -41
- package/dist/{chunk-MZGQNL3Y.js → chunk-GMTFDAOK.js} +12 -13
- package/dist/{chunk-VOOAPROD.js → chunk-GNSIWBAT.js} +3 -3
- package/dist/chunk-GTAI2J6U.js +27 -0
- package/dist/{chunk-RVK72CZX.js → chunk-GZE7WOI4.js} +1362 -459
- package/dist/{chunk-IUE7SSKV.js → chunk-H7HTEQUZ.js} +13 -7
- package/dist/{chunk-EUXZEFTV.js → chunk-HK6JVFZC.js} +3 -3
- package/dist/chunk-IPDG45G5.js +26 -0
- package/dist/{chunk-5HSRT26B.js → chunk-J6JP25XU.js} +16 -15
- package/dist/{chunk-HWCCCQNX.js → chunk-JL6CXUMW.js} +13 -6
- package/dist/{chunk-EBC36LNN.js → chunk-K2YGBXOA.js} +17 -17
- package/dist/{chunk-WMYE35PX.js → chunk-KLQVC3XC.js} +7 -5
- package/dist/{chunk-ATKJFDQN.js → chunk-KSR7RGQY.js} +12 -14
- package/dist/{chunk-POMLXPMY.js → chunk-KXF5R4UN.js} +1 -1
- package/dist/{chunk-LLJNQKQW.js → chunk-LEJOJDXL.js} +20 -13
- package/dist/{chunk-JUKMK5Y4.js → chunk-MA77RSFN.js} +10 -11
- package/dist/{chunk-GAQ7OQG6.js → chunk-MKVZQUEG.js} +85 -96
- package/dist/{chunk-2EECBNC5.js → chunk-MN7MHUXQ.js} +75 -0
- package/dist/{chunk-DEL2U6CM.js → chunk-MT6BVNFW.js} +16 -14
- package/dist/chunk-NDMCVUYK.js +507 -0
- package/dist/{chunk-HRNHZA3N.js → chunk-NIU2IPC5.js} +12 -16
- package/dist/{chunk-AGSS7277.js → chunk-NNKXDXXS.js} +7 -24
- package/dist/{chunk-V35JG4JB.js → chunk-OJLTLYHB.js} +152 -334
- package/dist/{chunk-J6MPGQTS.js → chunk-OLAWH5UQ.js} +81 -15
- package/dist/{chunk-T57LYLZT.js → chunk-OOU2WZZE.js} +1 -1
- package/dist/{chunk-CYRKQRPM.js → chunk-OSTKYB55.js} +2 -4
- package/dist/chunk-P4QNXS6I.js +27 -0
- package/dist/chunk-PKES3ISE.js +297 -0
- package/dist/{chunk-ROYSX2S5.js → chunk-PO45POGF.js} +2 -2
- package/dist/{chunk-T7FEBKXN.js → chunk-PPIBVH4R.js} +7 -9
- package/dist/{chunk-3RKP3FMS.js → chunk-PQJFG24Z.js} +295 -23
- package/dist/{chunk-KUA4OJ5Y.js → chunk-Q3UZHW6N.js} +846 -350
- package/dist/{chunk-N5FLEO7W.js → chunk-Q4EMRFNA.js} +37 -37
- package/dist/{chunk-5IUSNGOC.js → chunk-Q4FCYCRE.js} +28 -21
- package/dist/chunk-Q6D6VMI4.js +22 -0
- package/dist/{chunk-UZ2XCLYS.js → chunk-QGSTQH4D.js} +8 -8
- package/dist/{chunk-DUO2TU77.js → chunk-RZOXUSPC.js} +10 -4
- package/dist/{chunk-JMYYOTQG.js → chunk-S26LC76R.js} +13 -1
- package/dist/{chunk-GMX5OS7B.js → chunk-S67UJDGQ.js} +11 -12
- package/dist/chunk-SCIUNBPF.js +44 -0
- package/dist/{chunk-RKBXZN3A.js → chunk-SJJYRZB4.js} +2 -2
- package/dist/chunk-SXGD4ANG.js +25 -0
- package/dist/{chunk-YCWYO6TQ.js → chunk-T7FTXGS3.js} +48 -45
- package/dist/{chunk-FM4RDMKT.js → chunk-TIQJPRDD.js} +115 -61
- package/dist/{chunk-XHJBS436.js → chunk-TIYGSODX.js} +25 -25
- package/dist/{chunk-S2HEXIWI.js → chunk-U2SDMG7C.js} +10 -6
- package/dist/{chunk-2KXTHF3M.js → chunk-U6OC3QEM.js} +253 -33
- package/dist/{chunk-AWSCPCN2.js → chunk-UCGQT677.js} +19 -19
- package/dist/chunk-UHGF5UT5.js +32 -0
- package/dist/{chunk-JW3YWBVB.js → chunk-UN4TEBWN.js} +17 -19
- package/dist/{chunk-ZHH37KZL.js → chunk-V3APN3DY.js} +17 -17
- package/dist/{chunk-ED36RF6Y.js → chunk-V63BC55Q.js} +1 -1
- package/dist/{chunk-XBJVAEEO.js → chunk-VG5JS5SW.js} +3 -2
- package/dist/{chunk-W66O5E25.js → chunk-VPBIMOAQ.js} +13 -15
- package/dist/chunk-VQH24FIP.js +37 -0
- package/dist/{chunk-YNE3RP52.js → chunk-VSFLRN5Y.js} +8 -1
- package/dist/{chunk-7D6L4MTX.js → chunk-W2V54OCL.js} +3 -3
- package/dist/{chunk-2FN63LPV.js → chunk-W5LGKNET.js} +13 -14
- package/dist/{chunk-IQWN5JCP.js → chunk-W5R5SABV.js} +13 -14
- package/dist/{chunk-R3T7CLQ2.js → chunk-WIZWZR4C.js} +41 -41
- package/dist/{chunk-TOY6QKOH.js → chunk-WQOIR3QY.js} +17 -17
- package/dist/{chunk-Y6GZHWSJ.js → chunk-XAIT2YGS.js} +6 -6
- package/dist/chunk-XCUHKYCQ.js +23 -0
- package/dist/{chunk-GSM5UU7A.js → chunk-XQCSWV2G.js} +44 -35
- package/dist/{chunk-OHKJ7PQF.js → chunk-YBSONGSZ.js} +43 -39
- package/dist/{chunk-GXFV6MYU.js → chunk-YISME6ON.js} +72 -39
- package/dist/chunk-YRD4ISED.js +30 -0
- package/dist/{chunk-SD4I7ZO4.js → chunk-YSBHPOY6.js} +43 -53
- package/dist/{chunk-QBFBRV2B.js → chunk-Z2XAOKHK.js} +4 -2
- package/dist/{chunk-5VSF4UUQ.js → chunk-Z7IGUAXL.js} +34 -39
- package/dist/{chunk-MPNJLASA.js → chunk-ZKXQKGWZ.js} +10 -13
- package/dist/{chunk-J64T55EI.js → chunk-ZQ6NZZTB.js} +75 -9
- package/dist/chunk-ZUUI3ZSA.js +38 -0
- package/dist/{chunk-7HXE67BN.js → chunk-ZYNI26MI.js} +2 -2
- package/dist/index.js +32674 -27567
- package/dist/mcp/analyze-cli.js +11 -12
- package/dist/mcp/cli.js +46 -45
- package/dist/mcp/server.js +1210 -574
- package/dist/mcp/worker.js +65 -65
- package/dist/probes/installer.js +21 -23
- package/docs/adr/0010-trace-validation-session-lifecycle.md +390 -0
- package/docs/adr/README.md +1 -0
- package/docs/agent-tools.md +28 -7
- package/docs/ast-grep_rules_catalog.md +5 -3
- package/docs/configuration.md +12 -1
- package/docs/defect-shapes.md +738 -0
- package/docs/engineering-principles.md +12 -0
- package/docs/environment-variables.md +20 -0
- package/docs/features.md +16 -1
- package/docs/globalconfig.md +37 -8
- package/docs/invariants/caches-stores.md +30 -0
- package/docs/invariants/dispatch-runners.md +164 -0
- package/docs/invariants/git-guard-host.md +53 -0
- package/docs/invariants/language-config.md +31 -0
- package/docs/invariants/lsp-trust-exec.md +286 -0
- package/docs/invariants/paths-os.md +59 -0
- package/docs/invariants/session-telemetry.md +74 -0
- package/docs/lsp-capability-matrix.md +105 -12
- package/docs/lsp-idle-eviction.md +37 -18
- package/docs/pi-lens-fixer.md +24 -2
- package/docs/pi-lens-investigator.md +14 -0
- package/docs/pi-lens-merge-policy.md +32 -17
- package/docs/pi-lens-monitor.md +66 -10
- package/docs/pi-lens-orchestration.md +41 -0
- package/docs/pi-lens-release.md +20 -0
- package/docs/pi-lens-retro.md +5 -4
- package/docs/pi-lens-reviewer.md +54 -7
- package/docs/pi-lens-subagent.md +10 -3
- package/docs/release-qa-baseline.md +19 -7
- package/docs/servercapabilities.md +47 -47
- package/docs/settings.md +9 -5
- package/docs/subagent-compat.md +1 -1
- package/docs/usage.md +1 -0
- package/package.json +8 -5
- package/rules/ast-grep-rules/rule-tests/no-return-value-in-generator-test.yml +17 -0
- package/rules/ast-grep-rules/rule-tests/no-sql-in-code-execute-js-test.yml +86 -0
- package/rules/ast-grep-rules/rule-tests/no-sql-in-code-execute-test.yml +86 -0
- package/rules/ast-grep-rules/rule-tests/unchecked-numeric-parse-python-test.yml +15 -0
- package/rules/ast-grep-rules/rules/no-return-value-in-generator.yml +9 -4
- package/rules/ast-grep-rules/rules/no-sql-in-code-execute-js.yml +119 -0
- package/rules/ast-grep-rules/rules/no-sql-in-code-execute.yml +119 -0
- package/rules/ast-grep-rules/rules/unchecked-numeric-parse-python.yml +13 -2
- package/rules/rule-catalog.json +25 -1
- package/scripts/analyze-pi-lens-logs.mjs +15 -5
- package/scripts/lib/is-main-module.mjs +27 -0
- package/scripts/lib/scratch-home-env.mjs +21 -0
- package/scripts/rpc-load-check.mjs +4 -6
- package/scripts/warm-loader-cache.mjs +2 -5
- package/dist/chunk-3PTHXJXR.js +0 -28
- package/dist/chunk-3QED2P4V.js +0 -31
- package/dist/chunk-5WRPDP2A.js +0 -47
- package/dist/chunk-ABBOA7UD.js +0 -157
- package/dist/chunk-CUHSHSB6.js +0 -273
- package/dist/chunk-GL5LUMZE.js +0 -51
- package/dist/chunk-HAD7QRQI.js +0 -30
- package/dist/chunk-JORED7EX.js +0 -44
- package/dist/chunk-KYUB6QDC.js +0 -72
- package/dist/chunk-LZSEQW6A.js +0 -57
- package/dist/chunk-M2IFVFWU.js +0 -79
- package/dist/chunk-M2UD3LPU.js +0 -88
- package/dist/chunk-MBKQHGA7.js +0 -39
- package/dist/chunk-R7YOCSNV.js +0 -23
- package/dist/chunk-SKAMFC7A.js +0 -28
- package/dist/chunk-SYE6T2EB.js +0 -28
- package/dist/chunk-TRETHTQO.js +0 -26
- package/dist/chunk-UA7ZXYDR.js +0 -184
- package/dist/chunk-XTFDJI3T.js +0 -24
- package/dist/chunk-Z3CCVDUB.js +0 -76
package/docs/agent-tools.md
CHANGED
|
@@ -13,12 +13,14 @@ logging one `lsp-diagnostics-compatibility` degradation per session. Callers
|
|
|
13
13
|
should move to `pilens_diagnostics`.
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
**Dynamic tooling.**
|
|
17
|
-
|
|
18
|
-
`
|
|
16
|
+
**Dynamic tooling.** Seven tools stay always-active on pi unless
|
|
17
|
+
`tools.<name>.enabled: false` turns one off: `lens_diagnostics`,
|
|
18
|
+
`module_report`, `project_report`, `read_symbol`, `read_enclosing`,
|
|
19
|
+
`symbol_search`, `effective_config`. Five situational tools — `ast_grep_search`, `ast_grep_replace`,
|
|
19
20
|
`ast_grep_outline`, `lsp_navigation`, `lens_diagnostic_mark` —
|
|
20
21
|
are registered but
|
|
21
|
-
inactive by default
|
|
22
|
+
inactive by default under pi's lazy posture (`tools.lazy: false`, or a host
|
|
23
|
+
without the dynamic-tool API, keeps them active); the model activates the ones it needs via the always-active
|
|
22
24
|
loader tool `pi_lens_activate_tools`, per pi's dynamic-tool-loading API
|
|
23
25
|
(`pi.setActiveTools`/`pi.getActiveTools`). The loader explicitly reports
|
|
24
26
|
"Available starting next turn"; do not retry the tool in the same turn.
|
|
@@ -171,6 +173,24 @@ and `[]` mean no arguments.
|
|
|
171
173
|
self-builds in the background and never blocks the call. See
|
|
172
174
|
[docs/word-index.md](word-index.md) for how the index is built and kept
|
|
173
175
|
warm.
|
|
176
|
+
- **`project_report`** — Project orientation from the cached review graph, the
|
|
177
|
+
top of the discovery funnel (`project_report` → `module_report` →
|
|
178
|
+
`read_symbol`). Returns ranked hubs (top fan-in files), entry points,
|
|
179
|
+
subsystem cycles and layering violations, risk hotspots, and low-confidence
|
|
180
|
+
dead weight. `limit` scales every section's cap (default 10), `focus` re-ranks
|
|
181
|
+
toward a task hint without widening scope, and `view: "compact"` returns a
|
|
182
|
+
line-oriented text rendering instead of JSON. Read-only: a cold cache returns
|
|
183
|
+
`available: false` with a retry hint and starts a non-blocking background
|
|
184
|
+
build. On a project over `maxProjectFiles` that first build records a
|
|
185
|
+
size-skip verdict; later calls name the cap and start no build, so raise it
|
|
186
|
+
in `.pi-lens.json` instead of retrying.
|
|
187
|
+
- **`effective_config`** — Explains the resolved configuration and its
|
|
188
|
+
provenance. Pass `file` to add that file's language and the per-server and
|
|
189
|
+
per-runner selection decisions. The result holds no environment values and
|
|
190
|
+
no command arguments beyond the binary, and it shows paths under the home
|
|
191
|
+
folder home-relative (a path outside it stays absolute). `file` must resolve
|
|
192
|
+
inside `cwd`. See
|
|
193
|
+
[configuration.md](configuration.md#asking-what-is-actually-in-effect).
|
|
174
194
|
- **`module_report`** — Navigable outline of a file: every symbol's name/kind/
|
|
175
195
|
startLine/endLine/signature, exported vs internal split, class/interface
|
|
176
196
|
member nesting, who-uses-this, fanout/complexity risk flags, and a
|
|
@@ -222,9 +242,10 @@ and `[]` mean no arguments.
|
|
|
222
242
|
|
|
223
243
|
## Session
|
|
224
244
|
|
|
225
|
-
-
|
|
226
|
-
|
|
227
|
-
|
|
245
|
+
- **Health, latency and the cheap project scan are not pi tools.** pi has the
|
|
246
|
+
`/lens-health` slash command ([tools.md](tools.md)); the MCP mirror alone
|
|
247
|
+
exposes `pilens_health`, `pilens_latency` and `pilens_project_scan`
|
|
248
|
+
([mcp.md](mcp.md)).
|
|
228
249
|
- **`lens_diagnostics mode=full`** — full project-wide review: LSP + the cached
|
|
229
250
|
heavyweight analyzers (jscpd, madge, gitleaks, govulncheck, trivy, dead-code)
|
|
230
251
|
folded in via `refreshRunners`.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
<!-- GENERATED by scripts/gen-rule-catalogs.mjs — do not edit by hand. Run `npm run docs:rule-catalogs` after changing rules. -->
|
|
4
4
|
|
|
5
|
-
pi-lens bundles **
|
|
5
|
+
pi-lens bundles **485 enabled** ast-grep rules (301 pi-lens-authored + 184 vendored from CodeRabbit) across **17 languages**, plus 16 disabled.
|
|
6
6
|
|
|
7
7
|
See [`docs/custom-rules.md`](custom-rules.md) to add your own. Rule sources: `rules/ast-grep-rules/rules/` (pi-lens), `rules/ast-grep-rules/coderabbit/rules/` (vendored).
|
|
8
8
|
|
|
@@ -151,7 +151,7 @@ See [`docs/custom-rules.md`](custom-rules.md) to add your own. Rule sources: `ru
|
|
|
151
151
|
| `use-of-sha1-java` | warning | no | CodeRabbit | Detected SHA1 hash algorithm which is considered insecure. SHA1 is not collision resistant and is therefore not suitable as a cryptographic… |
|
|
152
152
|
| `weak-ssl-context-java` | warning | no | CodeRabbit | 'An insecure SSL context was detected. TLS versions 1.0, 1.1, and all SSL versions are considered weak encryption and are deprecated. Use S… |
|
|
153
153
|
|
|
154
|
-
### JavaScript (
|
|
154
|
+
### JavaScript (80)
|
|
155
155
|
|
|
156
156
|
| Rule | Severity | Fixable | Source | Description |
|
|
157
157
|
|---|---|---|---|---|
|
|
@@ -202,6 +202,7 @@ See [`docs/custom-rules.md`](custom-rules.md) to add your own. Rule sources: `ru
|
|
|
202
202
|
| `no-reflect-apply-js` | error | no | pi-lens | Reflect.apply() — use a typed call (fn.apply(...) or fn(...args)) instead |
|
|
203
203
|
| `no-reflect-get-js` | error | yes | pi-lens | Reflect.get(obj, key) — use a typed property access (obj.prop or obj[key]) instead |
|
|
204
204
|
| `no-single-promise-in-promise-methods-js` | warning | no | pi-lens | Promise.all/race with a single promise is unnecessary — await it directly |
|
|
205
|
+
| `no-sql-in-code-execute-js` | warning | no | pi-lens | Raw SQL string in code — use query builder or ORM |
|
|
205
206
|
| `no-sql-in-code-js` | error | no | pi-lens | Raw SQL string in code — use query builder or ORM |
|
|
206
207
|
| `no-throw-string-js` | error | no | pi-lens | Throw Error objects, not strings |
|
|
207
208
|
| `no-typeof-undefined-js` | hint | no | pi-lens | Use === undefined instead of typeof x === 'undefined' |
|
|
@@ -436,7 +437,7 @@ See [`docs/custom-rules.md`](custom-rules.md) to add your own. Rule sources: `ru
|
|
|
436
437
|
| `redundant-usestate-type` | info | yes | pi-lens | `useState<TYPE>(...)` where TYPE is a primitive redundant — TS can infer it from the initial value |
|
|
437
438
|
| `unnecessary-react-hook` | warning | no | pi-lens | Function with a `use*` name does not call any other React hook — rename to a plain function |
|
|
438
439
|
|
|
439
|
-
### TypeScript (
|
|
440
|
+
### TypeScript (136)
|
|
440
441
|
|
|
441
442
|
| Rule | Severity | Fixable | Source | Description |
|
|
442
443
|
|---|---|---|---|---|
|
|
@@ -507,6 +508,7 @@ See [`docs/custom-rules.md`](custom-rules.md) to add your own. Rule sources: `ru
|
|
|
507
508
|
| `no-single-promise-in-promise-methods` | warning | no | pi-lens | Promise.all/race with a single promise is unnecessary — await it directly |
|
|
508
509
|
| `no-sort-without-comparator` | warning | no | pi-lens | .sort()/.toSorted() without a compare function sorts by string order — numbers sort wrong (e.g. [10,9,1] becomes [1,10,9]) |
|
|
509
510
|
| `no-sql-in-code` | error | no | pi-lens | Raw SQL string in code — use query builder or ORM |
|
|
511
|
+
| `no-sql-in-code-execute` | warning | no | pi-lens | Raw SQL string in code — use query builder or ORM |
|
|
510
512
|
| `no-throw-string` | error | no | pi-lens | Throw Error objects, not strings |
|
|
511
513
|
| `no-typeof-undefined` | hint | no | pi-lens | Use === undefined instead of typeof x === 'undefined' |
|
|
512
514
|
| `no-unimplemented-stub` | warning | no | pi-lens | Unimplemented stub — function was scaffolded but never completed |
|
package/docs/configuration.md
CHANGED
|
@@ -51,6 +51,14 @@ schema slice does not change server launch behavior.
|
|
|
51
51
|
}
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
+
`initializationOptions` take the shape the server itself reads. rust-analyzer
|
|
55
|
+
reads them flat (`check`, `cargo`), as above. pyright and basedpyright read
|
|
56
|
+
only their pulled settings, so nest the override under the section they ask
|
|
57
|
+
for: `{ "python": { "analysis": { "typeCheckingMode": "strict" } } }`. pi-lens
|
|
58
|
+
answers each
|
|
59
|
+
`workspace/configuration` request from that section of the merged options and
|
|
60
|
+
returns `{}` for a section the options do not carry.
|
|
61
|
+
|
|
54
62
|
An override may also provide an experimental launcher `command` and `env`.
|
|
55
63
|
The built-in server ID and strategy remain in force; only the launcher is
|
|
56
64
|
replaced, and project-sourced launcher fields follow the same pi trust gate.
|
|
@@ -62,7 +70,9 @@ names include `ast_grep_search`, `ast_grep_replace`, `ast_grep_outline`,
|
|
|
62
70
|
`read_symbol`, `read_enclosing`, `effective_config`, `analyze`, `health`,
|
|
63
71
|
`latency`, `project_scan`, and `rebuild`. The activation loader and MCP
|
|
64
72
|
lifecycle tools `session_start`, `turn_end`, and `session_end` remain enabled
|
|
65
|
-
because their host protocols require them.
|
|
73
|
+
because their host protocols require them. A `tools.<name>` key that
|
|
74
|
+
names no tool (`tools.lazy` aside), or names a required one, is dropped with
|
|
75
|
+
`PILENS_CFG_0009`.
|
|
66
76
|
|
|
67
77
|
To see the resolved tool surface, use `/lens-health`; the `effective_config`
|
|
68
78
|
tool provides the full configuration provenance. Bundled skills are managed by
|
|
@@ -347,5 +357,6 @@ produced — so a session's config posture is visible without the detail.
|
|
|
347
357
|
- `docs/globalconfig.md` — every key of `~/.pi-lens/config.json`, in detail.
|
|
348
358
|
- `docs/settings.md` — the CLI flags and what they map to.
|
|
349
359
|
- `docs/environment-variables.md` — the `PI_LENS_*` tier.
|
|
360
|
+
- `docs/features.md` — the Python interpreter and syntax-level declarations pi-lens reads from a project (`VIRTUAL_ENV`, `requires-python`, `target-version`, `.python-version`).
|
|
350
361
|
- `docs/public-api-stability.md` — what `x-stability`, the `PILENS_CFG_*` codes,
|
|
351
362
|
and the deprecation windows commit pi-lens to.
|