pi-lens 4.4.8 → 4.4.9
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 +178 -0
- package/README.md +2 -1
- package/config/dependency-cruiser-eager-allowlist.json +1 -1
- package/dist/{chunk-3O5EII3W.js → chunk-2VZ3VN3N.js} +2 -2
- package/dist/{chunk-SDFKOLSF.js → chunk-3HTZDY3C.js} +8 -6
- package/dist/{chunk-A5GRLYPZ.js → chunk-3NPWO5UO.js} +7 -13
- package/dist/{chunk-AGGUWKRK.js → chunk-47UCC4MM.js} +1 -1
- package/dist/chunk-4ENEJHF4.js +198 -0
- package/dist/{chunk-WXUDRAG6.js → chunk-5GEYJJHG.js} +10 -12
- package/dist/{chunk-HHR7WGCI.js → chunk-5YSEQHJN.js} +3 -3
- package/dist/{chunk-L3CLUGDY.js → chunk-6GPB3JLL.js} +3 -3
- package/dist/{chunk-5F3XF3SX.js → chunk-7R5GZIA6.js} +6 -6
- package/dist/{chunk-CUDD35TW.js → chunk-7UTSNTWM.js} +4 -4
- package/dist/{chunk-DYRZGUMA.js → chunk-7YTRG6YW.js} +2 -2
- package/dist/{chunk-JZRP4DGP.js → chunk-AACN5GNE.js} +2 -2
- package/dist/{chunk-7ANZ7XDD.js → chunk-ACRJ2GZ5.js} +2 -2
- package/dist/{chunk-6FIRFP6A.js → chunk-C3YRO3EU.js} +10 -12
- package/dist/{chunk-GMROJJRN.js → chunk-CB7PEVOJ.js} +9 -1
- package/dist/{chunk-BBET6HD6.js → chunk-CDFJF5YD.js} +1 -1
- package/dist/{chunk-NSPVR3FN.js → chunk-CJS6WE66.js} +17 -19
- package/dist/{chunk-6YUNI7B5.js → chunk-CM6BDY4E.js} +14 -60
- package/dist/{chunk-G5GV2Q7K.js → chunk-CZCAZVTD.js} +16 -2
- package/dist/chunk-DGKFWQK4.js +23 -0
- package/dist/{chunk-VOP4PJKA.js → chunk-E65WJVI5.js} +7 -9
- package/dist/{chunk-TV6RXRYH.js → chunk-EKNYSXFB.js} +8 -10
- package/dist/{chunk-4LL2VRNY.js → chunk-EY6LY2HO.js} +16 -18
- package/dist/{chunk-MC6VB2E5.js → chunk-F6BEQWAK.js} +17 -5
- package/dist/{chunk-R2QQC33W.js → chunk-FGNSESAC.js} +12 -14
- package/dist/{chunk-OC7VWJBZ.js → chunk-FRUBVFXV.js} +35 -37
- package/dist/{chunk-7CGIDRIK.js → chunk-G22UNQID.js} +14 -16
- package/dist/{chunk-L4NEVZ4T.js → chunk-GQTQUNCG.js} +25 -27
- package/dist/{chunk-ZKLTNLAW.js → chunk-H3BVMK47.js} +6 -6
- package/dist/chunk-H6FLQ5NW.js +28 -0
- package/dist/{chunk-2ZE3AUJQ.js → chunk-HEA3EM23.js} +13 -15
- package/dist/{chunk-CZL44WFN.js → chunk-HSOBIN22.js} +2 -2
- package/dist/{chunk-PKSUMEPT.js → chunk-HYSKJMZK.js} +3 -3
- package/dist/{chunk-VN3L2JWZ.js → chunk-IICERRFF.js} +5 -5
- package/dist/{chunk-O4N5BQ3T.js → chunk-IILEH3ZC.js} +8 -10
- package/dist/{chunk-WC6WRNQT.js → chunk-J3Q2NYJR.js} +2 -2
- package/dist/{chunk-SFLHSL5R.js → chunk-JUZ67QZQ.js} +18 -7
- package/dist/chunk-KR5VGMVT.js +25 -0
- package/dist/{chunk-UHHLR2VY.js → chunk-KV6GQOGN.js} +38 -41
- package/dist/{chunk-HUAM7QG3.js → chunk-KXMJLOZF.js} +25 -23
- package/dist/{chunk-BUZIQDFS.js → chunk-L4Y3ROKQ.js} +3 -3
- package/dist/{chunk-JBP7KESM.js → chunk-L6WBJGQS.js} +1 -1
- package/dist/{chunk-35WKJWO5.js → chunk-L7O774U7.js} +14 -14
- package/dist/{chunk-BOPDQ7AZ.js → chunk-LAHHGNAY.js} +19 -21
- package/dist/{chunk-RGGH6M34.js → chunk-LT62P654.js} +1 -1
- package/dist/{chunk-5T5A6YAJ.js → chunk-LWOM6LVS.js} +33 -34
- package/dist/{chunk-JYLOYTZD.js → chunk-MKPDIAZH.js} +5 -1
- package/dist/{chunk-CM73PPGD.js → chunk-MN635QYA.js} +3 -4
- package/dist/{chunk-BQG2QFVO.js → chunk-MQ4PPCJB.js} +21 -29
- package/dist/{chunk-HXFUTMX2.js → chunk-MRLH4MYU.js} +2 -2
- package/dist/{chunk-XOMGO63G.js → chunk-N56BNAA6.js} +19 -21
- package/dist/{chunk-7MAD5ZAY.js → chunk-N5CEGQPG.js} +14 -16
- package/dist/{chunk-ZFORSIED.js → chunk-NCLO6E6N.js} +13 -33
- package/dist/{chunk-SQC7K3SP.js → chunk-NL5LSKVD.js} +2 -2
- package/dist/{chunk-I22THIHI.js → chunk-NMUSOZ2D.js} +10 -12
- package/dist/{chunk-4NBWFYWW.js → chunk-NOWH2VA2.js} +8 -33
- package/dist/{chunk-NM2NWH55.js → chunk-NUSXS6YB.js} +6 -5
- package/dist/{chunk-OZWXLJMX.js → chunk-OSEKJEUU.js} +2 -2
- package/dist/{chunk-2BKUFQKR.js → chunk-OUYAUXAT.js} +405 -181
- package/dist/{chunk-JPRDTY5S.js → chunk-PBZNYHMM.js} +8 -10
- package/dist/{chunk-JE6HKLC7.js → chunk-PIIUNJIT.js} +2 -4
- package/dist/{chunk-ZZDIOAAJ.js → chunk-PRHYIA6X.js} +6 -6
- package/dist/{chunk-4W52ZKZX.js → chunk-PXQ45SGD.js} +2 -2
- package/dist/chunk-Q6JQKWPK.js +25 -0
- package/dist/{chunk-PIQQM32Y.js → chunk-QB7T2PHK.js} +2 -2
- package/dist/{chunk-HKIL6DCL.js → chunk-QGITU23N.js} +1 -1
- package/dist/chunk-QJJKOHLH.js +57 -0
- package/dist/{chunk-6LJOJ6EO.js → chunk-QP33NKYC.js} +14 -16
- package/dist/{chunk-DIWK3LBC.js → chunk-QVBOXT3L.js} +8 -10
- package/dist/{chunk-IYVYZQRL.js → chunk-RNJFRXEN.js} +5 -7
- package/dist/{chunk-G6JKM4O7.js → chunk-RNXOWDM6.js} +10 -10
- package/dist/{chunk-5RNB4HVK.js → chunk-RTFMDIKV.js} +1 -1
- package/dist/{chunk-XWIME22V.js → chunk-SIQHOB6P.js} +11 -13
- package/dist/{chunk-T2S3FNNJ.js → chunk-SLSMJPEF.js} +41 -42
- package/dist/chunk-T5QSLSMM.js +50 -0
- package/dist/chunk-TGQDAG4B.js +88 -0
- package/dist/{chunk-6GMGEKQN.js → chunk-THYHUIDR.js} +39 -12
- package/dist/{chunk-WMDUT4KH.js → chunk-TMNUTMT5.js} +72 -89
- package/dist/{chunk-7TNILKGY.js → chunk-TOE2RRCS.js} +1 -1
- package/dist/chunk-TYHPVE5H.js +25 -0
- package/dist/chunk-UAKO2M6B.js +73 -0
- package/dist/chunk-UC5AXW5Z.js +20 -0
- package/dist/chunk-UTJP6WOS.js +28 -0
- package/dist/{chunk-FRLAUP2B.js → chunk-UXTQ3QPD.js} +4 -4
- package/dist/{chunk-4QG55RRC.js → chunk-V2WDBOLZ.js} +10 -12
- package/dist/{chunk-FHEV6T4L.js → chunk-V67D6TMU.js} +8 -10
- package/dist/{chunk-VLQ7UKZH.js → chunk-VCRVNLE7.js} +135 -2
- package/dist/{chunk-KZ4ALBCH.js → chunk-VO4JFPTV.js} +2 -2
- package/dist/{chunk-GIRBSBGL.js → chunk-VWLSU3XV.js} +3 -3
- package/dist/{chunk-2453RRJ2.js → chunk-W5E72HJA.js} +59 -22
- package/dist/{chunk-VPLBLWFO.js → chunk-W7TY6HYX.js} +1 -1
- package/dist/{chunk-SP4TFY5F.js → chunk-WSSLVMDA.js} +11 -13
- package/dist/{chunk-PPKECBPP.js → chunk-WTB4GKMH.js} +10 -1
- package/dist/{chunk-X35S7HSB.js → chunk-X5BJ3G2P.js} +41 -30
- package/dist/{chunk-X66YJ2SS.js → chunk-XKFO2SZV.js} +33 -34
- package/dist/{chunk-OWTG6UMO.js → chunk-XLAI7UYY.js} +75 -22
- package/dist/{chunk-4B2YFN4U.js → chunk-XO756WE5.js} +45 -33
- package/dist/{chunk-VOXTCULR.js → chunk-XVB3Q2PG.js} +2 -4
- package/dist/{chunk-XYLC35E4.js → chunk-YOXCCJDF.js} +517 -308
- package/dist/{chunk-O2ARHQKF.js → chunk-ZCQBNPRH.js} +2 -2
- package/dist/chunk-ZD4KVFXI.js +234 -0
- package/dist/{chunk-LSFXZLPW.js → chunk-ZDMFGACN.js} +184 -235
- package/dist/{chunk-4BKU7PV3.js → chunk-ZMMHHXSW.js} +1 -1
- package/dist/{chunk-OY7WZI7Q.js → chunk-ZPM7ZIFL.js} +6 -6
- package/dist/{chunk-R4QWJQ2H.js → chunk-ZVCDHYWZ.js} +9 -11
- package/dist/{chunk-RZG472YW.js → chunk-ZZN74OGD.js} +83 -46
- package/dist/{chunk-BHWW6FAX.js → chunk-ZZSJAR76.js} +37 -19
- package/dist/index.js +4910 -4218
- package/dist/mcp/analyze-cli.js +12 -17
- package/dist/mcp/cli.js +41 -42
- package/dist/mcp/server.js +1451 -648
- package/dist/mcp/worker.js +59 -60
- package/dist/probes/installer.js +17 -19
- package/docs/agent-tools.md +40 -8
- package/docs/analysisall.md +1 -1
- package/docs/ci-bot-pr-checks.md +7 -5
- package/docs/configuration.md +51 -9
- package/docs/defect-shapes.md +52 -3
- package/docs/environment-variables.md +18 -1
- package/docs/features.md +12 -5
- package/docs/globalconfig.md +11 -3
- package/docs/invariants/lsp-trust-exec.md +9 -2
- package/docs/invariants/session-telemetry.md +2 -2
- package/docs/language-coverage.md +1 -0
- package/docs/lsp-capability-matrix.md +57 -35
- package/docs/lsp-idle-eviction.md +4 -1
- package/docs/merge-queue-rollout.md +10 -8
- package/docs/module-report-read-symbol.md +34 -23
- package/docs/pi-lens-fixer.md +11 -1
- package/docs/pi-lens-investigator.md +3 -0
- package/docs/pi-lens-merge-policy.md +15 -7
- package/docs/pi-lens-reviewer.md +1 -1
- 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 +2 -2
- package/docs/word-index.md +3 -2
- package/package.json +8 -3
- 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 +3 -2
- package/skills/pi-lens-lsp-navigation/SKILL.md +5 -1
- 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/dist/mcp/worker.js
CHANGED
|
@@ -2,84 +2,83 @@
|
|
|
2
2
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
analyzeFile
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-ZDMFGACN.js";
|
|
6
|
+
import "../chunk-F6BEQWAK.js";
|
|
7
|
+
import "../chunk-47UCC4MM.js";
|
|
8
|
+
import "../chunk-HYSKJMZK.js";
|
|
9
|
+
import "../chunk-2VZ3VN3N.js";
|
|
10
|
+
import "../chunk-H3BVMK47.js";
|
|
11
|
+
import "../chunk-VO4JFPTV.js";
|
|
12
|
+
import "../chunk-PBZNYHMM.js";
|
|
13
|
+
import "../chunk-ZZN74OGD.js";
|
|
14
|
+
import "../chunk-PXQ45SGD.js";
|
|
15
|
+
import "../chunk-L4Y3ROKQ.js";
|
|
16
|
+
import "../chunk-QVBOXT3L.js";
|
|
17
|
+
import "../chunk-NCLO6E6N.js";
|
|
18
|
+
import "../chunk-7R5GZIA6.js";
|
|
19
|
+
import "../chunk-UXTQ3QPD.js";
|
|
20
|
+
import "../chunk-CM6BDY4E.js";
|
|
21
|
+
import "../chunk-ZD4KVFXI.js";
|
|
22
|
+
import "../chunk-TOE2RRCS.js";
|
|
23
|
+
import "../chunk-XO756WE5.js";
|
|
24
24
|
import "../chunk-3MED75HT.js";
|
|
25
25
|
import "../chunk-PKLB2XJL.js";
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-OUYAUXAT.js";
|
|
27
|
+
import "../chunk-VWLSU3XV.js";
|
|
28
28
|
import "../chunk-XIMYZ3JA.js";
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-YOXCCJDF.js";
|
|
30
|
+
import "../chunk-7YTRG6YW.js";
|
|
31
|
+
import "../chunk-V67D6TMU.js";
|
|
32
|
+
import "../chunk-LT62P654.js";
|
|
33
|
+
import "../chunk-PRHYIA6X.js";
|
|
34
|
+
import "../chunk-XVB3Q2PG.js";
|
|
34
35
|
import "../chunk-5W3R6LFT.js";
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
37
|
-
import "../chunk-
|
|
38
|
-
import "../chunk-
|
|
39
|
-
import "../chunk-
|
|
36
|
+
import "../chunk-L7O774U7.js";
|
|
37
|
+
import "../chunk-7UTSNTWM.js";
|
|
38
|
+
import "../chunk-ACRJ2GZ5.js";
|
|
39
|
+
import "../chunk-J3Q2NYJR.js";
|
|
40
|
+
import "../chunk-ZZSJAR76.js";
|
|
40
41
|
import "../chunk-Z54ZSOBZ.js";
|
|
41
|
-
import "../chunk-
|
|
42
|
-
import "../chunk-
|
|
43
|
-
import "../chunk-
|
|
42
|
+
import "../chunk-5YSEQHJN.js";
|
|
43
|
+
import "../chunk-QGITU23N.js";
|
|
44
|
+
import "../chunk-WTB4GKMH.js";
|
|
44
45
|
import "../chunk-6HWVI6MI.js";
|
|
45
|
-
import "../chunk-
|
|
46
|
+
import "../chunk-RTFMDIKV.js";
|
|
46
47
|
import "../chunk-CKEQFGLT.js";
|
|
47
|
-
import "../chunk-
|
|
48
|
-
import "../chunk-
|
|
49
|
-
import "../chunk-
|
|
50
|
-
import "../chunk-
|
|
51
|
-
import "../chunk-
|
|
48
|
+
import "../chunk-KXMJLOZF.js";
|
|
49
|
+
import "../chunk-MRLH4MYU.js";
|
|
50
|
+
import "../chunk-HSOBIN22.js";
|
|
51
|
+
import "../chunk-W7TY6HYX.js";
|
|
52
|
+
import "../chunk-MKPDIAZH.js";
|
|
52
53
|
import "../chunk-2BEMIWEW.js";
|
|
53
54
|
import "../chunk-IJYGIDF4.js";
|
|
54
|
-
import "../chunk-
|
|
55
|
-
import "../chunk-
|
|
56
|
-
import "../chunk-
|
|
57
|
-
import "../chunk-
|
|
55
|
+
import "../chunk-MQ4PPCJB.js";
|
|
56
|
+
import "../chunk-RNJFRXEN.js";
|
|
57
|
+
import "../chunk-E65WJVI5.js";
|
|
58
|
+
import "../chunk-L6WBJGQS.js";
|
|
58
59
|
import "../chunk-UYXV5NIS.js";
|
|
59
|
-
import "../chunk-
|
|
60
|
-
import "../chunk-
|
|
61
|
-
import "../chunk-
|
|
62
|
-
import "../chunk-
|
|
63
|
-
import "../chunk-
|
|
64
|
-
import "../chunk-
|
|
60
|
+
import "../chunk-AACN5GNE.js";
|
|
61
|
+
import "../chunk-3HTZDY3C.js";
|
|
62
|
+
import "../chunk-CDFJF5YD.js";
|
|
63
|
+
import "../chunk-RNXOWDM6.js";
|
|
64
|
+
import "../chunk-ZCQBNPRH.js";
|
|
65
|
+
import "../chunk-TMNUTMT5.js";
|
|
65
66
|
import "../chunk-AWQWXSW4.js";
|
|
66
67
|
import "../chunk-QYF5S6P6.js";
|
|
67
|
-
import "../chunk-
|
|
68
|
-
import "../chunk-
|
|
69
|
-
import "../chunk-
|
|
68
|
+
import "../chunk-CZCAZVTD.js";
|
|
69
|
+
import "../chunk-X5BJ3G2P.js";
|
|
70
|
+
import "../chunk-NL5LSKVD.js";
|
|
70
71
|
import {
|
|
71
72
|
setProjectTrustState
|
|
72
|
-
} from "../chunk-
|
|
73
|
-
import "../chunk-2453RRJ2.js";
|
|
73
|
+
} from "../chunk-PIIUNJIT.js";
|
|
74
74
|
import {
|
|
75
75
|
logExtension
|
|
76
|
-
} from "../chunk-
|
|
76
|
+
} from "../chunk-W5E72HJA.js";
|
|
77
77
|
import "../chunk-S26LC76R.js";
|
|
78
|
-
import "../chunk-
|
|
79
|
-
import "../chunk-VLQ7UKZH.js";
|
|
78
|
+
import "../chunk-VCRVNLE7.js";
|
|
80
79
|
import "../chunk-LJDODBBZ.js";
|
|
81
|
-
import "../chunk-
|
|
82
|
-
import "../chunk-
|
|
80
|
+
import "../chunk-ZMMHHXSW.js";
|
|
81
|
+
import "../chunk-CB7PEVOJ.js";
|
|
83
82
|
import "../chunk-NXL4FFQQ.js";
|
|
84
83
|
|
|
85
84
|
// dist/mcp/worker.js
|
package/dist/probes/installer.js
CHANGED
|
@@ -53,30 +53,28 @@ import {
|
|
|
53
53
|
verifyNpmPackageEntry,
|
|
54
54
|
verifyToolBinary,
|
|
55
55
|
wasLastResolveTransient
|
|
56
|
-
} from "../chunk-
|
|
57
|
-
import "../chunk-
|
|
58
|
-
import "../chunk-
|
|
59
|
-
import "../chunk-
|
|
56
|
+
} from "../chunk-MQ4PPCJB.js";
|
|
57
|
+
import "../chunk-RNJFRXEN.js";
|
|
58
|
+
import "../chunk-E65WJVI5.js";
|
|
59
|
+
import "../chunk-L6WBJGQS.js";
|
|
60
60
|
import "../chunk-UYXV5NIS.js";
|
|
61
|
-
import "../chunk-
|
|
62
|
-
import "../chunk-
|
|
63
|
-
import "../chunk-
|
|
64
|
-
import "../chunk-
|
|
65
|
-
import "../chunk-
|
|
66
|
-
import "../chunk-
|
|
61
|
+
import "../chunk-AACN5GNE.js";
|
|
62
|
+
import "../chunk-3HTZDY3C.js";
|
|
63
|
+
import "../chunk-CDFJF5YD.js";
|
|
64
|
+
import "../chunk-RNXOWDM6.js";
|
|
65
|
+
import "../chunk-ZCQBNPRH.js";
|
|
66
|
+
import "../chunk-TMNUTMT5.js";
|
|
67
67
|
import "../chunk-AWQWXSW4.js";
|
|
68
68
|
import "../chunk-QYF5S6P6.js";
|
|
69
|
-
import "../chunk-
|
|
70
|
-
import "../chunk-
|
|
71
|
-
import "../chunk-
|
|
72
|
-
import "../chunk-
|
|
73
|
-
import "../chunk-
|
|
74
|
-
import "../chunk-WQV6BI4Q.js";
|
|
69
|
+
import "../chunk-CZCAZVTD.js";
|
|
70
|
+
import "../chunk-X5BJ3G2P.js";
|
|
71
|
+
import "../chunk-NL5LSKVD.js";
|
|
72
|
+
import "../chunk-PIIUNJIT.js";
|
|
73
|
+
import "../chunk-W5E72HJA.js";
|
|
75
74
|
import "../chunk-S26LC76R.js";
|
|
76
|
-
import "../chunk-
|
|
77
|
-
import "../chunk-VLQ7UKZH.js";
|
|
75
|
+
import "../chunk-VCRVNLE7.js";
|
|
78
76
|
import "../chunk-LJDODBBZ.js";
|
|
79
|
-
import "../chunk-
|
|
77
|
+
import "../chunk-CB7PEVOJ.js";
|
|
80
78
|
import "../chunk-NXL4FFQQ.js";
|
|
81
79
|
export {
|
|
82
80
|
GITHUB_TOOLS,
|
package/docs/agent-tools.md
CHANGED
|
@@ -125,8 +125,18 @@ and `[]` mean no arguments.
|
|
|
125
125
|
(`tools/lsp-navigation.ts` operation description). Position-based operations
|
|
126
126
|
accept a `path`/`line`/`character` triple. `documentSymbol` accepts a `kinds`
|
|
127
127
|
filter (e.g. `function`, `class`) and a `maxResults` cap (default 20, max 100)
|
|
128
|
-
to keep large files bounded.
|
|
128
|
+
to keep large files bounded. A request that outlasts its deadline (10 s by
|
|
129
|
+
default for navigation requests) is reported as a timeout, never as a silent
|
|
130
|
+
empty answer, so a slow server is not read as "no references". Depending on
|
|
131
|
+
the operation the timeout arrives as an error result, a note beside the
|
|
132
|
+
answer it does have (a `definition` that the `documentSymbol` fallback
|
|
133
|
+
answered, or a partial `workspaceDiagnostics` pull), or `executed: false`
|
|
134
|
+
with a reason (`executeCommand`). Full per-operation parameter reference:
|
|
129
135
|
[skills/pi-lens-lsp-navigation/SKILL.md](../skills/pi-lens-lsp-navigation/SKILL.md).
|
|
136
|
+
Output is Neovim-style text by default (a `path:line:col` location list,
|
|
137
|
+
`hover` markdown, an indented `start-end kind name` symbol tree,
|
|
138
|
+
`path:line:col: severity: message` diagnostics, the rename summary); pass
|
|
139
|
+
`view: "json"` for the structured envelope (refs #1449).
|
|
130
140
|
- **`ast_grep_search`** — AST-aware structural search across ~40 languages via
|
|
131
141
|
the `sg` CLI. Supports metavariables (`$VAR`, `$$$ARGS`), `strictness`
|
|
132
142
|
modes (`smart`, `relaxed`, `ast`, `cst`, `signature`, `template`), structural
|
|
@@ -188,8 +198,9 @@ and `[]` mean no arguments.
|
|
|
188
198
|
`read_symbol`). Returns ranked hubs (top fan-in files), entry points,
|
|
189
199
|
subsystem cycles and layering violations, risk hotspots, and low-confidence
|
|
190
200
|
dead weight. `limit` scales every section's cap (default 10), `focus` re-ranks
|
|
191
|
-
toward a task hint without widening scope
|
|
192
|
-
|
|
201
|
+
toward a task hint without widening scope. Returns a line-oriented TEXT
|
|
202
|
+
report by default; pass `view: "json"` for the full JSON payload. Read-only:
|
|
203
|
+
a cold cache returns
|
|
193
204
|
`available: false` with a retry hint and starts a non-blocking background
|
|
194
205
|
build. On a project over `maxProjectFiles` that first build records a
|
|
195
206
|
size-skip verdict; later calls name the cap and start no build, so raise it
|
|
@@ -237,11 +248,17 @@ and `[]` mean no arguments.
|
|
|
237
248
|
spawn/move-closure, Swift weak/strong-self capture, C++ by-reference-
|
|
238
249
|
capture, Kotlin coroutine-builder, Java thread/executor/listener, and C#
|
|
239
250
|
Task.Run/event-`+=` slices); named symbols span all tree-sitter
|
|
240
|
-
`SYMBOL_QUERIES` languages.
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
251
|
+
`SYMBOL_QUERIES` languages. `view` selects an output preset, projection ×
|
|
252
|
+
format: `"summary-text"` (default) = metrics off (no `usedBy`, `fanout`,
|
|
253
|
+
`complexity`), text; `"summary-json"` = same fields, JSON; `"full-text"`
|
|
254
|
+
= every field, text; `"full-json"` = every field, JSON. The text cell is
|
|
255
|
+
lossless against its JSON payload (metrics as a `cx:`/`fan:` suffix, each
|
|
256
|
+
flag in its own bracket, `used-by:` continuation lines, plus
|
|
257
|
+
`IMPORTS:`/`CALL GRAPH:`/`BLAST RADIUS:` blocks and a `PROVENANCE:` footer),
|
|
258
|
+
so the default text preset leaves out `usedBy`, `fanout` and `complexity`
|
|
259
|
+
and runs at roughly half the byte
|
|
260
|
+
size of JSON. A `maxRefsPerSymbol` argument promotes the projection to
|
|
261
|
+
`full` and keeps the format. Reports section-level `provenance`
|
|
245
262
|
for syntax, cached-graph, and heuristic sections. Pass `blastRadius: true`
|
|
246
263
|
for cross-file transitive dependents (read-only over the cached graph).
|
|
247
264
|
- **`read_symbol`** — One symbol's verbatim source body, by name or by a
|
|
@@ -267,3 +284,18 @@ and `[]` mean no arguments.
|
|
|
267
284
|
- **`lens_diagnostics mode=full`** — full project-wide review: LSP + the cached
|
|
268
285
|
heavyweight analyzers (jscpd, madge, gitleaks, govulncheck, trivy, dead-code)
|
|
269
286
|
folded in via `refreshRunners`.
|
|
287
|
+
|
|
288
|
+
## Codemode
|
|
289
|
+
|
|
290
|
+
- When lazy tool loading is active (`tools.lazy: true`, the default, or
|
|
291
|
+
`"auto"` on a model that supports mid-conversation system messages), the situational pi-lens tools are not callable from a
|
|
292
|
+
codemode script until `pi_lens_activate_tools` has run. They become
|
|
293
|
+
callable from the next turn.
|
|
294
|
+
- pi's error for such a tool lists the available tools but not
|
|
295
|
+
`pi_lens_activate_tools`.
|
|
296
|
+
- `--no-lazy-tools` (`tools.lazy: false`) makes every enabled pi-lens tool
|
|
297
|
+
callable from the first script. A tool disabled with
|
|
298
|
+
`tools.<name>.enabled: false` or `--no-tool` stays unavailable.
|
|
299
|
+
- Scripts receive each tool's text, including pi-lens notes such as a blocker
|
|
300
|
+
note, never `details`.
|
|
301
|
+
- Nested writes are recorded like top-level ones.
|
package/docs/analysisall.md
CHANGED
|
@@ -142,7 +142,7 @@ The common extraction contract is nodes with `id`, `label`, `source_file`, `sour
|
|
|
142
142
|
| Upstream idea | Existing pi-lens equivalent | Real gap/overlap | Fit and likely seam |
|
|
143
143
|
| --- | --- | --- | --- |
|
|
144
144
|
| Provenance per relationship | Review-graph edge `resolution`, report section provenance, capped-coverage fields | More edge-level evidence/locations could be surfaced consistently | **Adapt** in `clients/review-graph/types.ts`, `module-report.ts`, `project-report.ts`; no new graph |
|
|
145
|
-
| Digest of top architecture | `project_report`
|
|
145
|
+
| Digest of top architecture | `project_report` default text view, word-index ranking, `recommendedReads` | No single persisted digest/tour artifact | **Adapt** as a bounded report/context mode, not a second cache; `clients/project-report.ts` |
|
|
146
146
|
| Guided tours/read order | Entry points, hubs, recommended reads, blast radius | No explicit multi-step tour contract | **Adapt** deterministically first; later optional agent-authored notes in reports/docs, not graph truth |
|
|
147
147
|
| Query-first agent workflow | Pi tools plus MCP mirrored engine; read guard tracks coverage | Could nudge toward `project_report`/`symbol_search` before broad reads | **Adapt** in a skill/docs surface; do not block native reads like Graphify strict mode |
|
|
148
148
|
| FTS/BM25 plus graph centrality | Persisted word index already uses BM25, reverse-dep centrality, graph annotations | Strong overlap; validate ranking quality rather than add embeddings | **Keep/adapt** in `clients/word-index.ts` and `lens-engine.ts` |
|
package/docs/ci-bot-pr-checks.md
CHANGED
|
@@ -35,7 +35,7 @@ came from (#4090), so those rows count.
|
|
|
35
35
|
|
|
36
36
|
On a bot-opened PR the dispatch runs are the PR's whole CI, so `ci-verdict`
|
|
37
37
|
also gates every non-`(advisory)` check from a `workflow_dispatch` run on its
|
|
38
|
-
head, such as `
|
|
38
|
+
head, such as `actionlint & markdownlint` and `Production install build`, exactly
|
|
39
39
|
as it gates a `pull_request` run. It reads the PR author (the `gh` `is_bot`
|
|
40
40
|
flag, an `app/` or `[bot]` login; the REST user type `Bot`). #4090's advisory
|
|
41
41
|
rule stays for dispatch runs on a human PR, for a bare-SHA target (no author to
|
|
@@ -83,9 +83,11 @@ registered in that test as a non-opener with its reason.
|
|
|
83
83
|
- **Dispatch from any ref.** `ci.yml`, `lint.yml` and `hot-path-latency.yml`
|
|
84
84
|
are now dispatchable by anyone with write access on any branch. Their jobs
|
|
85
85
|
hold read scopes only (`hot-path-latency.yml` holds `contents: read` and
|
|
86
|
-
`pull-requests: read` and reads no secret)
|
|
87
|
-
`
|
|
88
|
-
|
|
86
|
+
`pull-requests: read` and reads no secret). A job whose `if` requires a
|
|
87
|
+
`pull_request` event never starts on a dispatch, and
|
|
88
|
+
`scripts/dispatch-safety.mjs` reads that conjunct as a guard (ci.yml's PR-time
|
|
89
|
+
CodeQL job was one until #5275 removed it; CodeQL now runs from `codeql.yml`
|
|
90
|
+
on a schedule).
|
|
89
91
|
- **Step order.** Both dispatch steps close the `tool-smoke-prs` job, so a
|
|
90
92
|
failed `gh workflow run` never skips the auto-merge disarm failsafe or the
|
|
91
93
|
promotion PR (every other step there runs under an implicit `success()`).
|
|
@@ -109,7 +111,7 @@ registered in that test as a non-opener with its reason.
|
|
|
109
111
|
that key.
|
|
110
112
|
- **Not covered.** A dispatched run is not a `pull_request` run: it tests the
|
|
111
113
|
branch head, not the merge with master, and the PR-only advisory jobs (the
|
|
112
|
-
changelog fast-fail, targeted tests,
|
|
114
|
+
changelog fast-fail, targeted tests, the PR body lint) do not run.
|
|
113
115
|
The hot-path run compares the head with its first parent (`HEAD^1`), not with
|
|
114
116
|
the merge ref a `pull_request` run times.
|
|
115
117
|
`ci-infra-kill-rerun.yml` reacts to `pull_request` and `push` runs only, so a
|
package/docs/configuration.md
CHANGED
|
@@ -10,10 +10,26 @@ There are **two** pi-lens config files:
|
|
|
10
10
|
Both files have the same shape, with one exception noted below the example:
|
|
11
11
|
everything LSP-related lives under an `lsp` namespace inside them.
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
LSP fields from a project config are admitted without trust only when they
|
|
14
|
+
are on a short list. On an `lsp.servers.<id>` entry an untrusted project may
|
|
15
|
+
set `name` and nothing else. It may not set `command`, `args`, `extensions`,
|
|
16
|
+
`rootMarkers`, `env`, `initializationOptions`, `covers`, `enabled`, `role`, or
|
|
17
|
+
any field pi-lens does not recognise; on `lsp.serverOverrides.<id>` it may set
|
|
18
|
+
none of `command`, `env`, `initializationOptions`, or any other field. Those
|
|
19
|
+
fields need pi to have marked the project trusted. An untrusted project that
|
|
20
|
+
sets one of them on an `lsp.servers.<id>` entry disables that server for the
|
|
21
|
+
project: pi-lens does not start it, rather than start it on a configuration
|
|
22
|
+
where the project's value replaced one you set in your global config. Under
|
|
23
|
+
`serverOverrides.<id>`, the project's fields are dropped and your global
|
|
24
|
+
override for that built-in applies field by field: a global wrapper `command`
|
|
25
|
+
stays, a global value the project replaced comes back, and a field you did not
|
|
26
|
+
set globally runs on the pi-lens default. The built-in server stays on. Look
|
|
27
|
+
for the `lsp-registry-decision` record: its reason reads "project LSP <field>
|
|
28
|
+
refused for <id>: pi project trust is <state>; the <id> entry is not applied
|
|
29
|
+
for this project" for a server, or "...; the project's <id> override is not
|
|
30
|
+
applied" for an override. An `lsp.servers.<id>` entry with no `extensions`
|
|
31
|
+
list is not registered, since no file can select it. An untrusted or older host
|
|
32
|
+
is fail-closed and emits one bounded notice telling you to mark the project
|
|
17
33
|
trusted in pi or upgrade pi. Global config remains trusted, and a project can
|
|
18
34
|
always disable a server. pi-lens does not maintain a second trust setting.
|
|
19
35
|
|
|
@@ -236,6 +252,14 @@ once no matter which spelling each file uses. Migrating does not change the
|
|
|
236
252
|
answer, staying un-migrated is not a way around the denial, and a half-migrated
|
|
237
253
|
pair of files merges rather than one clobbering the other.
|
|
238
254
|
|
|
255
|
+
An entry must name a server pi-lens knows: a built-in server id or a server
|
|
256
|
+
declared under `lsp.servers`. An entry that names neither is dropped and
|
|
257
|
+
reported with one `PILENS_CFG_0005` notice per distinct id, which quotes the
|
|
258
|
+
entry and says it is not a recognized LSP server id. Without that notice a
|
|
259
|
+
misspelled id would match no server, so the server you meant to turn off would
|
|
260
|
+
keep running. Entries that are not strings are kept as written and match no
|
|
261
|
+
server.
|
|
262
|
+
|
|
239
263
|
Denying a file's **language server** (its primary, such as `json` or
|
|
240
264
|
`typescript`) leaves that file unchecked for the language itself. Every
|
|
241
265
|
diagnostics route then reports a file with no findings as **unconfirmed**, not
|
|
@@ -319,6 +343,24 @@ workspace root's policy still reaches them. Every surface that filters by rule
|
|
|
319
343
|
policy reads it this way: the per-edit dispatch, `lens_diagnostics`,
|
|
320
344
|
`lsp_diagnostics`, and the turn-end advisories.
|
|
321
345
|
|
|
346
|
+
`rules.<id>.disable` is a denial, like `lsp.disabledServers`: it resolves as the
|
|
347
|
+
union of every tier's list. A project or nested file can add rules to what the
|
|
348
|
+
global or root file disabled and can never re-enable one. `select` is an
|
|
349
|
+
allowlist, not a denial: per grouping key, the nearest file that sets it supplies
|
|
350
|
+
the whole list. Lists under different keys are unioned, so a global `k.select:
|
|
351
|
+
[x]` and a nearer file's `k2.select: [y]` keep both `x` and `y`.
|
|
352
|
+
|
|
353
|
+
In both lists a member that is not a string, or a value that is not an array,
|
|
354
|
+
is dropped and the valid members keep their effect. A string member is trimmed
|
|
355
|
+
before it is matched, so `" ra "` names `ra`, and a blank member is dropped. The
|
|
356
|
+
global file reports
|
|
357
|
+
each one with a `PILENS_CFG_0005` notice. A project or nested file reports a
|
|
358
|
+
value that is not an array, or a list whose members are all dropped, with the
|
|
359
|
+
same notice; a non-string member beside a valid string is dropped without one.
|
|
360
|
+
A `select` array whose members are all dropped still sets that key's list: it
|
|
361
|
+
is empty, so it lifts a farther file's allowlist for the key, as `select: []`
|
|
362
|
+
does. A `select` that is not an array is ignored, and the farther list stands.
|
|
363
|
+
|
|
322
364
|
`ignorePaths` entries follow the same gitignore rules as the `ignore` field. Each entry is
|
|
323
365
|
relative to the directory of the file that declares it: a global entry, and an entry in the
|
|
324
366
|
workspace root's own file, match against the workspace root, and an entry in `pkg/.pi-lens.json`
|
|
@@ -379,14 +421,14 @@ canonical key wins, and the keys you have not moved yet keep working.
|
|
|
379
421
|
Only keys pi-lens actually recognizes get "move it to …" advice. A key in a
|
|
380
422
|
legacy file that is not a pi-lens setting at all — a typo, or a leftover from
|
|
381
423
|
another tool — cannot be migrated anywhere, so it gets the ordinary
|
|
382
|
-
unrecognized-key notice (`
|
|
424
|
+
unrecognized-key notice (`PILENS_CFG_0004`) and is counted in ONE whole-file
|
|
383
425
|
`PILENS_CFG_0003` notice for the file rather than being told to move.
|
|
384
426
|
|
|
385
427
|
## When a config is ignored
|
|
386
428
|
|
|
387
|
-
A file that
|
|
388
|
-
pi-lens runs on defaults for it and says so once, with the
|
|
389
|
-
`PILENS_CFG_0001`. A field whose value does not match its declared type is
|
|
429
|
+
A file that is unreadable, unparsable, or not a JSON object is **ignored, never
|
|
430
|
+
partially applied** — pi-lens runs on defaults for it and says so once, with the
|
|
431
|
+
code `PILENS_CFG_0001`. A field whose value does not match its declared type is
|
|
390
432
|
dropped on its own (`PILENS_CFG_0005`), and an unrecognized field is dropped
|
|
391
433
|
with a message naming the key (`PILENS_CFG_0004`). If resolving a file fails
|
|
392
434
|
internally the whole file is ignored and said so under its own code
|
|
@@ -403,7 +445,7 @@ them rather than by what they say — both are about values that were rejected:
|
|
|
403
445
|
deprecation notices (`PILENS_CFG_0002`, `PILENS_CFG_0003`), which share this
|
|
404
446
|
list;
|
|
405
447
|
- what the **loader** reading the file produced on its own — unknown top-level
|
|
406
|
-
keys and
|
|
448
|
+
keys (`PILENS_CFG_0004`) and values it refused (`PILENS_CFG_0005`).
|
|
407
449
|
|
|
408
450
|
Each list is bounded at 20 records: up to 19 notices plus, when the bound bit,
|
|
409
451
|
a single `PILENS_CFG_0007` summary giving the count that was suppressed, so a
|
package/docs/defect-shapes.md
CHANGED
|
@@ -170,6 +170,9 @@ file-scoped worklist and receives no project-wide scanner output.
|
|
|
170
170
|
path discloses its truncation on the rendered surface; a count recorded
|
|
171
171
|
only in `latency.log` is not disclosure (#3166 r2: an 80-finding input
|
|
172
172
|
bound zeroed a neighbour's genuine errors, counted only in the log).
|
|
173
|
+
Removing a false "unavailable" notice never turns the file clean: a file
|
|
174
|
+
no analyzer applies to reads "not analyzed" (#5238 r2 read
|
|
175
|
+
`build.gradle` as "Groovy clean" after its notice was dropped).
|
|
173
176
|
An out-of-session-root project edit records one bounded degradation and
|
|
174
177
|
uses the existing advisory notice seam; intended vendor skips and pi-owned
|
|
175
178
|
OS-temp artifacts stay silent (`clients/runtime-tool-result.ts`,
|
|
@@ -288,7 +291,17 @@ file-scoped worklist and receives no project-wide scanner output.
|
|
|
288
291
|
for). Derive the named set from the registry, never a hand list. Screen:
|
|
289
292
|
render the prose under each posture combination and each host, and assert
|
|
290
293
|
every clause is true (#4293, #4294 enabled axis; #4682 lazy axis and the
|
|
291
|
-
hand list that dropped two tools).
|
|
294
|
+
hand list that dropped two tools). User docs that say which tools a
|
|
295
|
+
script or user can call are in scope too (#5242: "every pi-lens tool"
|
|
296
|
+
under `--no-lazy-tools` missed the enabled axis).
|
|
297
|
+
|
|
298
|
+
90. **Generated proof line for a step that did not run:** a composer that
|
|
299
|
+
writes a PR, issue or report body states what ran. A branch where the step
|
|
300
|
+
failed, was skipped or timed out renders that outcome, never the success
|
|
301
|
+
sentence (#5243 r1: the nightly refresh body said the flips were
|
|
302
|
+
classified against master when the flip check had failed). Screen: for
|
|
303
|
+
each proof sentence a composer emits, which input proves the step ran,
|
|
304
|
+
and does the failed branch render something else?
|
|
292
305
|
|
|
293
306
|
</important>
|
|
294
307
|
|
|
@@ -343,6 +356,24 @@ file-scoped worklist and receives no project-wide scanner output.
|
|
|
343
356
|
try) by `tests/clients/worker-message-boundary-ratchet.test.ts`; screen
|
|
344
357
|
`close` and timer callbacks by hand.
|
|
345
358
|
|
|
359
|
+
89. **Serial await of independent work on a hot path:** a `for` loop or a run
|
|
360
|
+
of `await`s on the edit, write or turn-end path waits for each call before
|
|
361
|
+
starting the next, though no call needs another's result. The cost is the
|
|
362
|
+
sum of the calls instead of the slowest one: LSP servers spawned one after
|
|
363
|
+
another made a cold first edit block ~7 s (#2540), and a serial stat walk
|
|
364
|
+
took 8 s on a slow filesystem (#1409). Overlapping is not always a win:
|
|
365
|
+
some servers answer one request at a time (typescript-language-server
|
|
366
|
+
forwards to one tsserver; #387, #631), and a write-ordered loop
|
|
367
|
+
(`runtime.nextWriteIndex()`, a pipeline claim) must stay serial. Screen: do
|
|
368
|
+
the calls this loop or sequence awaits one at a time need each other's
|
|
369
|
+
results, share a write order, or go to one server that answers one request
|
|
370
|
+
at a time? If none, overlap them through `clients/map-with-concurrency.ts`;
|
|
371
|
+
if one does, a comment at the loop names it. Measure before overlapping
|
|
372
|
+
calls to one server. #5174 is the open instance. Census: not
|
|
373
|
+
countable. Enforcer: none: judgment-only; a scan cannot tell an
|
|
374
|
+
independent await from an ordered one without reading what each call
|
|
375
|
+
feeds. Instances and dates: `HISTORY.md`.
|
|
376
|
+
|
|
346
377
|
60. **Wasm failure outside the #3605 containment:** every failure thrown out
|
|
347
378
|
of web-tree-sitter classifies through `classifyTreeSitterWasmError`, and a
|
|
348
379
|
`catch` inside a `withParsedTree` consumer calls `reportWasmAbort` before it
|
|
@@ -426,6 +457,20 @@ file-scoped worklist and receives no project-wide scanner output.
|
|
|
426
457
|
tell a copied rule from a coincidental literal without reading what the
|
|
427
458
|
value feeds. Instances and dates: `HISTORY.md`.
|
|
428
459
|
|
|
460
|
+
88. **Learned attribution keyed on a name alone:** tier 4 of
|
|
461
|
+
`classifyMutatingTool` admits any tool name that was once seen with a disk
|
|
462
|
+
change in its call window and a `path` field, then classifies every later
|
|
463
|
+
call of that name as an edit. A tool that never wrote (one operation of a
|
|
464
|
+
mixed tool, #4139) and a call whose work already ran (a provider's
|
|
465
|
+
display-only replay, #5160) both reach it on name plus path alone. Tier 4 is
|
|
466
|
+
admit-by-default with enumerated exemptions (the registry names, the
|
|
467
|
+
`cursor-replay-` id prefix); a third carve-out is the trigger to redesign it
|
|
468
|
+
fail-closed, learning only when the call, not the window, owns the change.
|
|
469
|
+
Screen: can a call whose work already ran, or a tool that never wrote, reach
|
|
470
|
+
the learned lookup or the arm gate on name plus path alone? Census: not
|
|
471
|
+
countable. Enforcer: none: judgment-only, the exempt population is whatever
|
|
472
|
+
other providers replay or mix. Instances and dates: `HISTORY.md`.
|
|
473
|
+
|
|
429
474
|
</important>
|
|
430
475
|
|
|
431
476
|
<important if="a test double, ratchet or sweep">
|
|
@@ -470,8 +515,9 @@ file-scoped worklist and receives no project-wide scanner output.
|
|
|
470
515
|
38. **Data-only admission:** a new exemption or baseline row requires a reason
|
|
471
516
|
in a separate checked file and a fixture that crosses the boundary.
|
|
472
517
|
|
|
473
|
-
44. **Portable entry-module check:**
|
|
474
|
-
`
|
|
518
|
+
44. **Portable entry-module check:** decide the entry module only with
|
|
519
|
+
`isMainModule(import.meta.url)` from `scripts/lib/is-main-module.mjs`;
|
|
520
|
+
`scripts/hooks/guard-bash.mjs` is the one standalone gate.
|
|
475
521
|
|
|
476
522
|
45. **Root wrapper drops metadata:** wrappers preserve the complete marker table
|
|
477
523
|
and are checked against direct root resolution.
|
|
@@ -598,6 +644,9 @@ file-scoped worklist and receives no project-wide scanner output.
|
|
|
598
644
|
(`~/.config/.opengrep`, `~/.config/.semgrep`), and a symlinked managed `bin`
|
|
599
645
|
lets an installer write through to the real `~/.pi-lens/bin`. The pin is
|
|
600
646
|
the whole set, assigned once in the worker so every child inherits it.
|
|
647
|
+
npm's cache and log directory (`npm_config_cache`, default `~/.npm`) is
|
|
648
|
+
in the set: two probes on 2026-11-04 (the #5239 fixer, the #5244
|
|
649
|
+
reviewer) wrote `~/.npm/_logs` through `npx`.
|
|
601
650
|
Screen: which directory does the process I run resolve from, and is every
|
|
602
651
|
variable that names it pinned? Enforcer:
|
|
603
652
|
`tests/clients/worker-home-pin-hermeticity.test.ts` (a real child reports
|
|
@@ -173,7 +173,14 @@ Set to `1` to skip auto-installing language servers. Off by default.
|
|
|
173
173
|
### `PI_LENS_DISABLE_TOOL_INSTALL`
|
|
174
174
|
|
|
175
175
|
Set to `1` to skip auto-installing managed tools (formatters, linters,
|
|
176
|
-
scanners). Off by default.
|
|
176
|
+
scanners). Off by default. It stops four things: the managed installer, the
|
|
177
|
+
lazy installer (`gem install rubocop`, `rustup component add clippy|rustfmt`),
|
|
178
|
+
govulncheck's `go install`, and any `npx` package-runner spawn, which runs
|
|
179
|
+
offline (`npm_config_offline=true`): it uses npm's cache or fails, and never
|
|
180
|
+
downloads. A refused lazy or govulncheck install records one `install-disabled`
|
|
181
|
+
degradation row per tool per session. It does not cover `bunx` (which ignores
|
|
182
|
+
that variable; pi-lens never spawns it) or language-server installs (see
|
|
183
|
+
`PI_LENS_DISABLE_LSP_INSTALL`).
|
|
177
184
|
|
|
178
185
|
## Context injection
|
|
179
186
|
|
|
@@ -260,6 +267,16 @@ Explicit path to a Lombok jar for the Java language server, used when
|
|
|
260
267
|
auto-resolution does not find one. The legacy `LOMBOK_JAR` variable is also
|
|
261
268
|
honored.
|
|
262
269
|
|
|
270
|
+
### `GROOVY_LANGUAGE_SERVER_JAR`
|
|
271
|
+
|
|
272
|
+
Path to the `groovy-language-server-all.jar` the built-in Groovy row runs as
|
|
273
|
+
`java -jar <jar>`, when no `groovy-language-server` launcher is on `PATH`.
|
|
274
|
+
groovy-language-server publishes no release: build it with `./gradlew build` in
|
|
275
|
+
a checkout of GroovyLanguageServer/groovy-language-server and point this at
|
|
276
|
+
`build/libs/groovy-language-server-all.jar`. Java 17 or newer is found the same
|
|
277
|
+
way the Java language server finds it. A path that is not a file reads as not
|
|
278
|
+
installed, and the session start log says so.
|
|
279
|
+
|
|
263
280
|
## Project map
|
|
264
281
|
|
|
265
282
|
### `PI_LENS_MAP_MAX_NODES`
|
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
|
|