pi-lens 4.4.6 → 4.4.7
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 +83 -0
- package/README.md +5 -1
- package/dist/{chunk-JL6CXUMW.js → chunk-24BILSZW.js} +1 -1
- package/dist/{chunk-S67UJDGQ.js → chunk-2TF6RXWB.js} +5 -5
- package/dist/{chunk-ARD426WI.js → chunk-3F6BMY53.js} +1 -1
- package/dist/{chunk-5ZR3APIM.js → chunk-3FRLWYBG.js} +26 -26
- package/dist/{chunk-T7FTXGS3.js → chunk-3K2F6UDZ.js} +30 -30
- package/dist/{chunk-HK6JVFZC.js → chunk-3YY7IXIL.js} +2 -2
- package/dist/chunk-46TNM7XZ.js +88 -0
- package/dist/{chunk-4AVZ3TG7.js → chunk-4L36HG27.js} +8 -8
- package/dist/{chunk-PO45POGF.js → chunk-4LM3VAZH.js} +1 -1
- package/dist/{chunk-UN4TEBWN.js → chunk-4LOE5R5P.js} +9 -9
- package/dist/{chunk-KLQVC3XC.js → chunk-4YHYPW2G.js} +30 -7
- package/dist/{chunk-W5LGKNET.js → chunk-4ZYJHQMB.js} +6 -6
- package/dist/{chunk-W2V54OCL.js → chunk-6IR3ZYIB.js} +2 -2
- package/dist/{chunk-FJIVKLPH.js → chunk-72OKUXSD.js} +10 -10
- package/dist/{chunk-7RQXA5GG.js → chunk-75GAYVNO.js} +10 -9
- package/dist/{chunk-V3APN3DY.js → chunk-7E2563GA.js} +12 -12
- package/dist/{chunk-4WX4CTUE.js → chunk-7GLOLOSH.js} +25 -25
- package/dist/{chunk-BWYQUPOS.js → chunk-ABPKUVA4.js} +1 -1
- package/dist/{chunk-IPDG45G5.js → chunk-AKUUMGD5.js} +9 -9
- package/dist/{chunk-Q6D6VMI4.js → chunk-ASUXV767.js} +6 -6
- package/dist/{chunk-BM5GS6ZH.js → chunk-AWDSEDER.js} +2 -2
- package/dist/{chunk-MA77RSFN.js → chunk-BZARLRJW.js} +4 -4
- package/dist/{chunk-EVDGNG4F.js → chunk-CB4WHS4H.js} +3 -3
- package/dist/{chunk-FA5LDARD.js → chunk-CCV2EU7T.js} +7 -7
- package/dist/{chunk-U6OC3QEM.js → chunk-CE6VMBCB.js} +15 -15
- package/dist/{chunk-AMXIUN2R.js → chunk-CPSR3AVL.js} +2 -2
- package/dist/{chunk-SXGD4ANG.js → chunk-CTADOKYM.js} +7 -7
- package/dist/{chunk-63RIVFQI.js → chunk-DH5JPM3K.js} +1 -1
- package/dist/{chunk-MT6BVNFW.js → chunk-DPGEAHZT.js} +3 -3
- package/dist/{chunk-4PCQCU47.js → chunk-DQZFQSR5.js} +2 -2
- package/dist/{chunk-BHUWL2Y3.js → chunk-E7HJ56Y7.js} +5 -5
- package/dist/{chunk-DQXSPYRI.js → chunk-EAOK7MIZ.js} +2 -2
- package/dist/{chunk-2RLWJO5K.js → chunk-EKWX4WD3.js} +3 -3
- package/dist/{chunk-WIZWZR4C.js → chunk-F7K5IBZG.js} +30 -28
- package/dist/{chunk-VQH24FIP.js → chunk-FB5SCCPT.js} +9 -9
- package/dist/{chunk-GZE7WOI4.js → chunk-FZKFVUEC.js} +438 -140
- package/dist/{chunk-TIYGSODX.js → chunk-H7OR7DFZ.js} +15 -13
- package/dist/{chunk-CJYKEW2L.js → chunk-HO6LWE2E.js} +1 -1
- package/dist/{chunk-YSBHPOY6.js → chunk-HR3OJ3TH.js} +8 -8
- package/dist/{chunk-CFRQMBGP.js → chunk-HWDAVBFU.js} +14 -14
- package/dist/{chunk-2X4VLOCC.js → chunk-JJ2RRESP.js} +8 -5
- package/dist/{chunk-YBSONGSZ.js → chunk-JMEKXFOL.js} +24 -24
- package/dist/{chunk-MKVZQUEG.js → chunk-KDX35VXP.js} +69 -13
- package/dist/{chunk-75SY4F24.js → chunk-KKCK636N.js} +7 -7
- package/dist/{chunk-OLAWH5UQ.js → chunk-KPPJTH44.js} +2 -1
- package/dist/{chunk-5APMQ2IJ.js → chunk-KW5JQPO5.js} +1 -1
- package/dist/{chunk-SCIUNBPF.js → chunk-L3CMBQMH.js} +11 -11
- package/dist/{chunk-GAACZY6R.js → chunk-L5JYIU47.js} +7 -7
- package/dist/{chunk-2DDDCJDL.js → chunk-LBLBAFG3.js} +3 -3
- package/dist/{chunk-NNKXDXXS.js → chunk-LLS45EWB.js} +8 -0
- package/dist/{chunk-WQOIR3QY.js → chunk-LS3QJRUB.js} +7 -7
- package/dist/{chunk-XCUHKYCQ.js → chunk-LSC3VADM.js} +6 -6
- package/dist/{chunk-GMTFDAOK.js → chunk-LUBPZN36.js} +6 -6
- package/dist/{chunk-DMSLNKF7.js → chunk-LV4UMYVH.js} +19 -19
- package/dist/{chunk-XAIT2YGS.js → chunk-MB6PXBUA.js} +2 -2
- package/dist/{chunk-AE37FEGH.js → chunk-MNJIXFX4.js} +1 -1
- package/dist/{chunk-OJLTLYHB.js → chunk-MPKRJBPK.js} +30 -10
- package/dist/{chunk-QGSTQH4D.js → chunk-N5WSK2K7.js} +6 -6
- package/dist/{chunk-Z7IGUAXL.js → chunk-NA7SEXHE.js} +10 -6
- package/dist/{chunk-UHGF5UT5.js → chunk-O4BJFESU.js} +1 -1
- package/dist/{chunk-UCGQT677.js → chunk-OE5ZBP7F.js} +10 -10
- package/dist/{chunk-KSR7RGQY.js → chunk-OXOI55RU.js} +4 -4
- package/dist/{chunk-NDMCVUYK.js → chunk-PR6PO3ES.js} +2 -2
- package/dist/{chunk-NIU2IPC5.js → chunk-PUZ3E2J4.js} +3 -3
- package/dist/{chunk-2DMLM3ZO.js → chunk-QHSNL7B2.js} +8 -8
- package/dist/{chunk-ZYNI26MI.js → chunk-QOE342SU.js} +1 -1
- package/dist/{chunk-3WEPUD2V.js → chunk-R5MOQM2H.js} +98 -31
- package/dist/{chunk-PPIBVH4R.js → chunk-RC2Z6K47.js} +4 -4
- package/dist/{chunk-LEJOJDXL.js → chunk-RORGS5II.js} +4 -4
- package/dist/{chunk-K2YGBXOA.js → chunk-RQS4QQSD.js} +1 -1
- package/dist/{chunk-XQCSWV2G.js → chunk-RRV3FNNM.js} +10 -10
- package/dist/{chunk-GTAI2J6U.js → chunk-SHLDT3OI.js} +8 -8
- package/dist/{chunk-VPBIMOAQ.js → chunk-SNDXCFRS.js} +11 -9
- package/dist/{chunk-Q4FCYCRE.js → chunk-T7A2HK2B.js} +10 -10
- package/dist/{chunk-MN7MHUXQ.js → chunk-U5HPROLA.js} +1 -1
- package/dist/{chunk-ZUUI3ZSA.js → chunk-U6VN4NVL.js} +1 -1
- package/dist/{chunk-W5R5SABV.js → chunk-U7BD2QL7.js} +6 -6
- package/dist/{chunk-P4QNXS6I.js → chunk-UF7RTZSO.js} +8 -8
- package/dist/{chunk-A3YNG5KP.js → chunk-URCQWAQ4.js} +11 -11
- package/dist/{chunk-FFL3A2VP.js → chunk-VUZWQ7UG.js} +4 -4
- package/dist/{chunk-YRD4ISED.js → chunk-W4WP2ERB.js} +10 -10
- package/dist/{chunk-OOU2WZZE.js → chunk-WDBICWH3.js} +1 -1
- package/dist/{chunk-BI5LAQ3Y.js → chunk-WGRJOXED.js} +114 -148
- package/dist/{chunk-ZQ6NZZTB.js → chunk-WME2OQST.js} +33 -0
- package/dist/{chunk-DC4CFXM5.js → chunk-XT2HTCJ5.js} +1 -1
- package/dist/{chunk-SJJYRZB4.js → chunk-Y7F7IEE3.js} +55 -23
- package/dist/{chunk-2F47TQOA.js → chunk-YES5CACN.js} +29 -29
- package/dist/{chunk-H7HTEQUZ.js → chunk-YHC2O2WO.js} +7 -7
- package/dist/{chunk-Q3UZHW6N.js → chunk-YVHBNSME.js} +6 -10
- package/dist/{chunk-3MYEA7QD.js → chunk-ZE3KXHS7.js} +2 -2
- package/dist/{chunk-VG5JS5SW.js → chunk-ZGSJDWQU.js} +2 -2
- package/dist/{chunk-5CV5ITZF.js → chunk-ZJTT47IG.js} +1 -1
- package/dist/{chunk-Q4EMRFNA.js → chunk-ZMAUPOMG.js} +24 -24
- package/dist/index.js +1925 -944
- package/dist/mcp/analyze-cli.js +6 -6
- package/dist/mcp/cli.js +30 -30
- package/dist/mcp/server.js +707 -455
- package/dist/mcp/worker.js +48 -48
- package/dist/probes/installer.js +13 -13
- package/docs/agent-tools.md +11 -3
- package/docs/defect-shapes.md +15 -1
- package/docs/dependencies.md +1 -0
- package/docs/environment-variables.md +14 -0
- package/docs/features.md +11 -1
- package/docs/globalconfig.md +12 -1
- package/docs/invariants/git-guard-host.md +34 -0
- package/docs/invariants/lsp-trust-exec.md +6 -0
- package/docs/invariants/session-telemetry.md +42 -2
- package/docs/lsp-capability-matrix.md +89 -45
- package/docs/lsp-idle-eviction.md +3 -5
- package/docs/pi-lens-fixer.md +8 -1
- package/docs/pi-lens-merge-policy.md +7 -4
- package/docs/pi-lens-subagent.md +7 -4
- package/docs/schema/pi-lens-config-v1.json +23 -0
- package/docs/servercapabilities.md +1 -1
- package/docs/settings.md +5 -0
- package/docs/usage.md +5 -0
- package/package.json +1 -1
- package/dist/chunk-G2B7F6ZU.js +0 -88
|
@@ -6,25 +6,25 @@ import {
|
|
|
6
6
|
extractForwardImportPaths,
|
|
7
7
|
extractForwardImports,
|
|
8
8
|
sweepInlineBlockerFreshness
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-MPKRJBPK.js";
|
|
10
|
+
import "./chunk-DH5JPM3K.js";
|
|
11
11
|
import "./chunk-PKES3ISE.js";
|
|
12
12
|
import "./chunk-ZKXQKGWZ.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-L5JYIU47.js";
|
|
14
14
|
import "./chunk-Z54ZSOBZ.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-U6VN4NVL.js";
|
|
16
16
|
import "./chunk-TIQJPRDD.js";
|
|
17
17
|
import "./chunk-YISME6ON.js";
|
|
18
18
|
import "./chunk-CKEQFGLT.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-HO6LWE2E.js";
|
|
20
|
+
import "./chunk-LLS45EWB.js";
|
|
21
|
+
import "./chunk-KW5JQPO5.js";
|
|
22
|
+
import "./chunk-YVHBNSME.js";
|
|
23
23
|
import "./chunk-RZOXUSPC.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-KPPJTH44.js";
|
|
25
25
|
import "./chunk-J6JP25XU.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-U5HPROLA.js";
|
|
27
|
+
import "./chunk-WME2OQST.js";
|
|
28
28
|
import "./chunk-KXF5R4UN.js";
|
|
29
29
|
import {
|
|
30
30
|
MTIME_DRIFT_TOLERANCE_MS
|
|
@@ -6,18 +6,18 @@ import {
|
|
|
6
6
|
getSecretsLaneAllowlistPaths,
|
|
7
7
|
isUnderSecretsLaneScratchTree,
|
|
8
8
|
nestedWorktreeOffsets
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CPSR3AVL.js";
|
|
10
10
|
import {
|
|
11
11
|
SecurityScanClient
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZE3KXHS7.js";
|
|
13
13
|
import {
|
|
14
14
|
collectTrackedFiles,
|
|
15
15
|
collectUntrackedIgnoredIds,
|
|
16
16
|
safeSpawnAsync
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YVHBNSME.js";
|
|
18
18
|
import {
|
|
19
19
|
escapeRegExp
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-WME2OQST.js";
|
|
21
21
|
import {
|
|
22
22
|
normalizeEphemeralMapKey,
|
|
23
23
|
normalizeMapKey
|
|
@@ -2,21 +2,21 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
importFactProvider,
|
|
4
4
|
importFactsApplyTo
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-DQZFQSR5.js";
|
|
6
|
+
import "./chunk-WDBICWH3.js";
|
|
7
|
+
import "./chunk-L5JYIU47.js";
|
|
8
8
|
import "./chunk-Z54ZSOBZ.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-U6VN4NVL.js";
|
|
10
10
|
import "./chunk-TIQJPRDD.js";
|
|
11
11
|
import "./chunk-YISME6ON.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-HO6LWE2E.js";
|
|
13
|
+
import "./chunk-KW5JQPO5.js";
|
|
14
|
+
import "./chunk-YVHBNSME.js";
|
|
15
15
|
import "./chunk-RZOXUSPC.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-KPPJTH44.js";
|
|
17
17
|
import "./chunk-J6JP25XU.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-U5HPROLA.js";
|
|
19
|
+
import "./chunk-WME2OQST.js";
|
|
20
20
|
import "./chunk-KXF5R4UN.js";
|
|
21
21
|
import "./chunk-S26LC76R.js";
|
|
22
22
|
import "./chunk-Z2XAOKHK.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
withTreeSitterRoot
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-L5JYIU47.js";
|
|
5
5
|
|
|
6
6
|
// dist/clients/dispatch/facts/tree-sitter-facts.js
|
|
7
7
|
var withFactTree = withTreeSitterRoot;
|
|
@@ -2,8 +2,11 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
getLazyInstallAttempt,
|
|
4
4
|
tryLazyInstall
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LBLBAFG3.js";
|
|
6
6
|
import {
|
|
7
|
+
faultIfCutShort,
|
|
8
|
+
faultResult,
|
|
9
|
+
faultSkip,
|
|
7
10
|
findingsResult,
|
|
8
11
|
finishParsedRun,
|
|
9
12
|
formatToolFailure,
|
|
@@ -14,23 +17,24 @@ import {
|
|
|
14
17
|
reachedNoVerdict,
|
|
15
18
|
skipUnlessToolRan,
|
|
16
19
|
spanOverlapsModifiedRanges
|
|
17
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-Y7F7IEE3.js";
|
|
18
21
|
import {
|
|
22
|
+
processCutShort,
|
|
19
23
|
spawnFailedWithNoOutput
|
|
20
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-JJ2RRESP.js";
|
|
21
25
|
import {
|
|
22
26
|
computeImpactCascade
|
|
23
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-EAOK7MIZ.js";
|
|
24
28
|
import {
|
|
25
29
|
goClient
|
|
26
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-4LM3VAZH.js";
|
|
27
31
|
import {
|
|
28
32
|
isTrivyEnabled,
|
|
29
33
|
resolveSeverityFloor
|
|
30
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-E7HJ56Y7.js";
|
|
31
35
|
import {
|
|
32
36
|
rustClient
|
|
33
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-RQS4QQSD.js";
|
|
34
38
|
import {
|
|
35
39
|
coveringLaneAvailable,
|
|
36
40
|
createAvailabilityChecker,
|
|
@@ -46,7 +50,7 @@ import {
|
|
|
46
50
|
resolveToolCommand,
|
|
47
51
|
resolveToolCommandWithInstallFallback,
|
|
48
52
|
resolveVendorToolCommand
|
|
49
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-7E2563GA.js";
|
|
50
54
|
import {
|
|
51
55
|
biomeConfigArgs,
|
|
52
56
|
findCompiledClassesDir,
|
|
@@ -65,21 +69,21 @@ import {
|
|
|
65
69
|
hasYamllintConfig,
|
|
66
70
|
markdownlintConfigArgs,
|
|
67
71
|
ruffConfigArgs
|
|
68
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-MB6PXBUA.js";
|
|
69
73
|
import {
|
|
70
74
|
importFactProvider
|
|
71
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-DQZFQSR5.js";
|
|
72
76
|
import {
|
|
73
77
|
functionFactProvider
|
|
74
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-3YY7IXIL.js";
|
|
75
79
|
import {
|
|
76
80
|
extractFactsFromTree
|
|
77
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-WDBICWH3.js";
|
|
78
82
|
import {
|
|
79
83
|
buildOrUpdateGraph,
|
|
80
84
|
clearReviewGraphWorkspaceCache,
|
|
81
85
|
fileContentProvider
|
|
82
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-H7OR7DFZ.js";
|
|
83
87
|
import {
|
|
84
88
|
MAX_BLOCKING_RULE_COMPLEXITY,
|
|
85
89
|
PRIMARY_UNAVAILABLE_CAUSE,
|
|
@@ -92,7 +96,9 @@ import {
|
|
|
92
96
|
classifyDiagnosticTier,
|
|
93
97
|
clearPendingAuxiliaryCoverage,
|
|
94
98
|
combinePrimaryUnavailableCauses,
|
|
99
|
+
configDisabledAuxiliaryLspServerIds,
|
|
95
100
|
demoteLanguageServerRows,
|
|
101
|
+
dropExcludedServers,
|
|
96
102
|
enabledAuxiliaryLspServerIds,
|
|
97
103
|
getLSPService,
|
|
98
104
|
hasAnyDispositionMarks,
|
|
@@ -110,11 +116,11 @@ import {
|
|
|
110
116
|
touchCoverageGap,
|
|
111
117
|
tryWarmAttachedCodeActions,
|
|
112
118
|
tryWarmAttachedDiagnostics
|
|
113
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-FZKFVUEC.js";
|
|
114
120
|
import {
|
|
115
121
|
ANY_POSITION,
|
|
116
122
|
retainRecordedFindings
|
|
117
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-XT2HTCJ5.js";
|
|
118
124
|
import {
|
|
119
125
|
mapWithConcurrency
|
|
120
126
|
} from "./chunk-XIMYZ3JA.js";
|
|
@@ -125,7 +131,7 @@ import {
|
|
|
125
131
|
getAstGrepRuleSources,
|
|
126
132
|
registerRunnerId,
|
|
127
133
|
resolveAnalysisRoot
|
|
128
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-R5MOQM2H.js";
|
|
129
135
|
import {
|
|
130
136
|
augmentPythonEnvironment,
|
|
131
137
|
describePythonCompileWithheld,
|
|
@@ -134,22 +140,22 @@ import {
|
|
|
134
140
|
emitBounded,
|
|
135
141
|
partitionOutrankedPythonCompileVerdicts,
|
|
136
142
|
recordPythonCompileVerdictDrop
|
|
137
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-PR6PO3ES.js";
|
|
138
144
|
import {
|
|
139
145
|
loadProjectSnapshot,
|
|
140
146
|
readJsonCache,
|
|
141
147
|
readJsonCacheAsync
|
|
142
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-RC2Z6K47.js";
|
|
143
149
|
import {
|
|
144
150
|
RUNTIME_CONFIG,
|
|
145
151
|
exceedsLspSyncLimits,
|
|
146
152
|
getRunnerTimeoutFloorMs,
|
|
147
153
|
loadAstGrepNapi
|
|
148
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-MPKRJBPK.js";
|
|
149
155
|
import {
|
|
150
156
|
buildModuleGraph,
|
|
151
157
|
clearModuleGraphCache
|
|
152
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-DH5JPM3K.js";
|
|
153
159
|
import {
|
|
154
160
|
BUNDLED_QUERIES_ROOT,
|
|
155
161
|
classifyTreeSitterWasmError,
|
|
@@ -169,7 +175,7 @@ import {
|
|
|
169
175
|
ruleFilesForLanguage,
|
|
170
176
|
ruleSourceLanguages,
|
|
171
177
|
walk
|
|
172
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-L5JYIU47.js";
|
|
173
179
|
import {
|
|
174
180
|
stripAnsi
|
|
175
181
|
} from "./chunk-6HWVI6MI.js";
|
|
@@ -181,32 +187,32 @@ import {
|
|
|
181
187
|
scheduleWordIndexPersist,
|
|
182
188
|
setWordIndexPublishedListener,
|
|
183
189
|
updateWordIndexDocumentForEdit
|
|
184
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-SNDXCFRS.js";
|
|
185
191
|
import {
|
|
186
192
|
WARM_CODE_ACTION_LOOKUP_LIMIT,
|
|
187
193
|
contentHash
|
|
188
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-AWDSEDER.js";
|
|
189
195
|
import {
|
|
190
196
|
resolveRunnerPath,
|
|
191
197
|
toRunnerDisplayPath
|
|
192
|
-
} from "./chunk-
|
|
198
|
+
} from "./chunk-LLS45EWB.js";
|
|
193
199
|
import {
|
|
194
200
|
isSpawnableCommand
|
|
195
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-KDX35VXP.js";
|
|
196
202
|
import {
|
|
197
203
|
logRunnerAdvisoryOnce,
|
|
198
204
|
resolveRunnerCwd,
|
|
199
205
|
resolveRunnerCwdWithReason
|
|
200
|
-
} from "./chunk-
|
|
206
|
+
} from "./chunk-DPGEAHZT.js";
|
|
201
207
|
import {
|
|
202
208
|
findLocalBinUpwards,
|
|
203
209
|
localBinPath
|
|
204
|
-
} from "./chunk-
|
|
210
|
+
} from "./chunk-NA7SEXHE.js";
|
|
205
211
|
import {
|
|
206
212
|
createAvailabilityProbeFlight,
|
|
207
213
|
getIsolatedNpxSpawnOptions,
|
|
208
214
|
probeToolAsync
|
|
209
|
-
} from "./chunk-
|
|
215
|
+
} from "./chunk-3F6BMY53.js";
|
|
210
216
|
import {
|
|
211
217
|
classifyProbeFailure,
|
|
212
218
|
createAvailabilityLatch,
|
|
@@ -216,12 +222,12 @@ import {
|
|
|
216
222
|
logAvailabilityDecision,
|
|
217
223
|
startHostStallSampler,
|
|
218
224
|
transientRetryDelayMs
|
|
219
|
-
} from "./chunk-
|
|
225
|
+
} from "./chunk-KW5JQPO5.js";
|
|
220
226
|
import {
|
|
221
227
|
getLspCapableKinds,
|
|
222
228
|
getPrimaryDispatchGroup,
|
|
223
229
|
resolveLanguageRootForFile
|
|
224
|
-
} from "./chunk-
|
|
230
|
+
} from "./chunk-PUZ3E2J4.js";
|
|
225
231
|
import {
|
|
226
232
|
getGlobalPiLensDir,
|
|
227
233
|
getProjectDataDir,
|
|
@@ -231,7 +237,7 @@ import {
|
|
|
231
237
|
noteSpawnTimeout,
|
|
232
238
|
resolvePiLensFlag,
|
|
233
239
|
safeSpawnAsync
|
|
234
|
-
} from "./chunk-
|
|
240
|
+
} from "./chunk-YVHBNSME.js";
|
|
235
241
|
import {
|
|
236
242
|
DOTNET_CSHARP_PROJECT_MARKERS,
|
|
237
243
|
DOTNET_CSHARP_SOLUTION_MARKERS,
|
|
@@ -243,7 +249,7 @@ import {
|
|
|
243
249
|
detectFileRole,
|
|
244
250
|
loadPiLensProjectConfig,
|
|
245
251
|
resolvePiLensConfig
|
|
246
|
-
} from "./chunk-
|
|
252
|
+
} from "./chunk-KPPJTH44.js";
|
|
247
253
|
import {
|
|
248
254
|
findNearestDirWithAnyBasename,
|
|
249
255
|
findNearestDirWithMarker,
|
|
@@ -255,11 +261,11 @@ import {
|
|
|
255
261
|
projectTrustDenialReason,
|
|
256
262
|
truncatedByOutputCap,
|
|
257
263
|
writeFileAtomic
|
|
258
|
-
} from "./chunk-
|
|
264
|
+
} from "./chunk-U5HPROLA.js";
|
|
259
265
|
import {
|
|
260
266
|
incrementDegradationCount,
|
|
261
267
|
recordDegradationOnce
|
|
262
|
-
} from "./chunk-
|
|
268
|
+
} from "./chunk-WME2OQST.js";
|
|
263
269
|
import {
|
|
264
270
|
createSubsystemLogger,
|
|
265
271
|
logExtension
|
|
@@ -2146,6 +2152,8 @@ function isUnusedValueDiagnostic(d) {
|
|
|
2146
2152
|
}
|
|
2147
2153
|
function promoteDeltaUnusedToBlockers(diagnostics) {
|
|
2148
2154
|
return diagnostics.map((d) => {
|
|
2155
|
+
if (d.runnerFault === true)
|
|
2156
|
+
return d;
|
|
2149
2157
|
if (!isUnusedValueDiagnostic(d))
|
|
2150
2158
|
return d;
|
|
2151
2159
|
if (d.semantic === "blocking" || d.severity === "error")
|
|
@@ -2807,14 +2815,14 @@ async function dispatchForFile(ctx, groups, registry, onRunnerResult, options) {
|
|
|
2807
2815
|
provider: ctx.telemetryProvider
|
|
2808
2816
|
};
|
|
2809
2817
|
if (fixedItems.length > 0) {
|
|
2810
|
-
import("./chunk-
|
|
2818
|
+
import("./chunk-BZARLRJW.js").then(({ appendToWorklog }) => {
|
|
2811
2819
|
appendToWorklog(ctx.cwd, fixedItems, true, worklogIdentity);
|
|
2812
2820
|
}).catch(() => {
|
|
2813
2821
|
});
|
|
2814
2822
|
}
|
|
2815
2823
|
const fixableWarnings = warnings.filter((d) => d.fixable);
|
|
2816
2824
|
if (fixableWarnings.length > 0) {
|
|
2817
|
-
import("./chunk-
|
|
2825
|
+
import("./chunk-BZARLRJW.js").then(({ appendToWorklog }) => {
|
|
2818
2826
|
appendToWorklog(ctx.cwd, fixableWarnings, false, worklogIdentity);
|
|
2819
2827
|
}).catch(() => {
|
|
2820
2828
|
});
|
|
@@ -5243,7 +5251,7 @@ var biomeCheckJsonRunner = {
|
|
|
5243
5251
|
ctx.filePath
|
|
5244
5252
|
], { timeout: 3e4, cwd });
|
|
5245
5253
|
if (checkResult.error) {
|
|
5246
|
-
return
|
|
5254
|
+
return faultSkip("did-not-run");
|
|
5247
5255
|
}
|
|
5248
5256
|
let fixKindByRule;
|
|
5249
5257
|
if (checkResult.status === 0 || checkResult.status === 1) {
|
|
@@ -5261,24 +5269,14 @@ var biomeCheckJsonRunner = {
|
|
|
5261
5269
|
const raw = checkResult.stdout || checkResult.stderr || "";
|
|
5262
5270
|
const preview = raw.replace(/\s+/g, " ").slice(0, 160);
|
|
5263
5271
|
const message = "Biome JSON parse failed: " + parsed.parseError + (preview ? " (output preview: " + preview + ")" : "");
|
|
5264
|
-
return {
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
column: 1,
|
|
5273
|
-
severity: "warning",
|
|
5274
|
-
semantic: "warning",
|
|
5275
|
-
tool: "biome"
|
|
5276
|
-
}
|
|
5277
|
-
],
|
|
5278
|
-
semantic: "warning",
|
|
5279
|
-
failureKind: "parser_error",
|
|
5280
|
-
failureMessage: message.slice(0, 200)
|
|
5281
|
-
};
|
|
5272
|
+
return faultResult({ kind: "parser_error", failureMessage: message }, {
|
|
5273
|
+
id: "biome:parse-error:1",
|
|
5274
|
+
message,
|
|
5275
|
+
filePath: ctx.filePath,
|
|
5276
|
+
line: 1,
|
|
5277
|
+
column: 1,
|
|
5278
|
+
tool: "biome"
|
|
5279
|
+
});
|
|
5282
5280
|
}
|
|
5283
5281
|
return finishParsedRun({
|
|
5284
5282
|
tool: "biome",
|
|
@@ -5673,7 +5671,7 @@ var cueVetRunner = {
|
|
|
5673
5671
|
}
|
|
5674
5672
|
}
|
|
5675
5673
|
if (spawnFailedWithNoOutput(result, `${result.stdout}${result.stderr}`)) {
|
|
5676
|
-
return
|
|
5674
|
+
return faultSkip("did-not-run");
|
|
5677
5675
|
}
|
|
5678
5676
|
if (result.status === 0) {
|
|
5679
5677
|
return { status: "succeeded", diagnostics: [], semantic: "none" };
|
|
@@ -5682,28 +5680,21 @@ var cueVetRunner = {
|
|
|
5682
5680
|
${result.stderr || ""}`.trim();
|
|
5683
5681
|
const errors = parseCueVetOutput(raw);
|
|
5684
5682
|
const filtered = filterToTouchedFile(errors, fileName, fileDir);
|
|
5683
|
+
const cutShort = faultIfCutShort(result, filtered ?? []);
|
|
5684
|
+
if (cutShort)
|
|
5685
|
+
return cutShort;
|
|
5685
5686
|
if (filtered === void 0) {
|
|
5686
5687
|
const message = raw.slice(0, 300) || "cue vet exited non-zero";
|
|
5687
|
-
return {
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
semantic: "blocking",
|
|
5698
|
-
tool: "cue-vet",
|
|
5699
|
-
rule: "vet",
|
|
5700
|
-
fixable: false
|
|
5701
|
-
}
|
|
5702
|
-
],
|
|
5703
|
-
semantic: "blocking",
|
|
5704
|
-
failureKind: "unconfirmed_output",
|
|
5705
|
-
failureMessage: message.slice(0, 200)
|
|
5706
|
-
};
|
|
5688
|
+
return faultResult({ kind: "unconfirmed_output", failureMessage: message }, {
|
|
5689
|
+
id: "cue-vet-unparsed",
|
|
5690
|
+
message,
|
|
5691
|
+
filePath: ctx.filePath,
|
|
5692
|
+
line: 1,
|
|
5693
|
+
column: 1,
|
|
5694
|
+
tool: "cue-vet",
|
|
5695
|
+
rule: "vet",
|
|
5696
|
+
fixable: false
|
|
5697
|
+
});
|
|
5707
5698
|
}
|
|
5708
5699
|
if (filtered.length === 0) {
|
|
5709
5700
|
return { status: "succeeded", diagnostics: [], semantic: "none" };
|
|
@@ -6538,32 +6529,22 @@ var gleamCheckRunner = {
|
|
|
6538
6529
|
cwd,
|
|
6539
6530
|
timeout: 3e4
|
|
6540
6531
|
});
|
|
6541
|
-
if (result.error && !result.stdout && !result.stderr) {
|
|
6542
|
-
return { status: "skipped", diagnostics: [], semantic: "none" };
|
|
6543
|
-
}
|
|
6544
6532
|
const diagnostics = parseGleamOutput(`${result.stderr || ""}
|
|
6545
6533
|
${result.stdout || ""}`, ctx.filePath, cwd);
|
|
6534
|
+
const cutShort = faultIfCutShort(result, diagnostics);
|
|
6535
|
+
if (cutShort)
|
|
6536
|
+
return cutShort;
|
|
6546
6537
|
if (diagnostics.length === 0) {
|
|
6547
6538
|
if (result.status && result.status !== 0) {
|
|
6548
6539
|
const message = firstOutputLine(result) || "gleam check exited non-zero without structured diagnostics";
|
|
6549
|
-
return {
|
|
6550
|
-
|
|
6551
|
-
|
|
6552
|
-
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
|
|
6556
|
-
|
|
6557
|
-
semantic: "blocking",
|
|
6558
|
-
tool: "gleam",
|
|
6559
|
-
rule: "gleam-check",
|
|
6560
|
-
fixable: false
|
|
6561
|
-
}
|
|
6562
|
-
],
|
|
6563
|
-
semantic: "blocking",
|
|
6564
|
-
failureKind: "unconfirmed_output",
|
|
6565
|
-
failureMessage: message.slice(0, 200)
|
|
6566
|
-
};
|
|
6540
|
+
return faultResult({ kind: "unconfirmed_output", failureMessage: message }, {
|
|
6541
|
+
id: "gleam-check-nonzero-no-diagnostics",
|
|
6542
|
+
message,
|
|
6543
|
+
filePath: ctx.filePath,
|
|
6544
|
+
tool: "gleam",
|
|
6545
|
+
rule: "gleam-check",
|
|
6546
|
+
fixable: false
|
|
6547
|
+
});
|
|
6567
6548
|
}
|
|
6568
6549
|
return { status: "succeeded", diagnostics: [], semantic: "none" };
|
|
6569
6550
|
}
|
|
@@ -7956,10 +7937,11 @@ var lspRunner = {
|
|
|
7956
7937
|
if (attached?.available) {
|
|
7957
7938
|
incumbentProjectIdentity = attached.response.projectIdentity;
|
|
7958
7939
|
}
|
|
7959
|
-
const
|
|
7960
|
-
|
|
7961
|
-
|
|
7962
|
-
|
|
7940
|
+
const answer = attached?.available ? dropExcludedServers(attached.response, configDisabledAuxiliaryLspServerIds((f) => ctx.pi.getFlag(f))) : void 0;
|
|
7941
|
+
const touched = answer ? {
|
|
7942
|
+
diags: answer.diagnostics,
|
|
7943
|
+
...answer.unconfirmedServerIds !== void 0 && {
|
|
7944
|
+
unconfirmedServerIds: answer.unconfirmedServerIds
|
|
7963
7945
|
}
|
|
7964
7946
|
} : await lspService.touchFile(ctx.filePath, content, {
|
|
7965
7947
|
diagnostics: "document",
|
|
@@ -8026,25 +8008,14 @@ var lspRunner = {
|
|
|
8026
8008
|
}
|
|
8027
8009
|
}
|
|
8028
8010
|
if (serverFailed) {
|
|
8029
|
-
return {
|
|
8030
|
-
|
|
8031
|
-
|
|
8032
|
-
|
|
8033
|
-
|
|
8034
|
-
|
|
8035
|
-
|
|
8036
|
-
|
|
8037
|
-
filePath: diagnosticPath,
|
|
8038
|
-
line: 1,
|
|
8039
|
-
column: 1,
|
|
8040
|
-
severity: "error",
|
|
8041
|
-
semantic: "warning",
|
|
8042
|
-
// Don't block - fallback to other runners
|
|
8043
|
-
tool: "lsp"
|
|
8044
|
-
}
|
|
8045
|
-
],
|
|
8046
|
-
semantic: "warning"
|
|
8047
|
-
};
|
|
8011
|
+
return faultResult({ kind: "server_error", failureMessage: failureReason }, {
|
|
8012
|
+
id: `lsp:server-error:0`,
|
|
8013
|
+
message: `LSP server failed: ${failureReason}`,
|
|
8014
|
+
filePath: diagnosticPath,
|
|
8015
|
+
line: 1,
|
|
8016
|
+
column: 1,
|
|
8017
|
+
tool: "lsp"
|
|
8018
|
+
});
|
|
8048
8019
|
}
|
|
8049
8020
|
if (!lspClientReady) {
|
|
8050
8021
|
return {
|
|
@@ -8438,24 +8409,14 @@ var oxlintRunner = {
|
|
|
8438
8409
|
}
|
|
8439
8410
|
if (parsedRun.diagnostics.includes(OXLINT_NO_FILES_UNCONFIRMED)) {
|
|
8440
8411
|
const reason = noFilesDecision.kind === "unconfirmed-no-files" ? noFilesDecision.reason : "status-zero";
|
|
8441
|
-
return {
|
|
8442
|
-
|
|
8443
|
-
|
|
8444
|
-
|
|
8445
|
-
|
|
8446
|
-
|
|
8447
|
-
|
|
8448
|
-
|
|
8449
|
-
column: 1,
|
|
8450
|
-
severity: "warning",
|
|
8451
|
-
semantic: "warning",
|
|
8452
|
-
tool: "oxlint"
|
|
8453
|
-
}
|
|
8454
|
-
],
|
|
8455
|
-
semantic: "warning",
|
|
8456
|
-
failureKind: "unconfirmed_output",
|
|
8457
|
-
failureMessage: `no-files-${reason}`
|
|
8458
|
-
};
|
|
8412
|
+
return faultResult({ kind: "unconfirmed_output", failureMessage: `no-files-${reason}` }, {
|
|
8413
|
+
id: `oxlint:no-files-unconfirmed:${reason}`,
|
|
8414
|
+
message: `oxlint no-files report was not canonical (${reason})`,
|
|
8415
|
+
filePath: ctx.filePath,
|
|
8416
|
+
line: 1,
|
|
8417
|
+
column: 1,
|
|
8418
|
+
tool: "oxlint"
|
|
8419
|
+
});
|
|
8459
8420
|
}
|
|
8460
8421
|
const diagnostics = parsedRun.diagnostics.filter((diagnostic) => diagnostic !== OXLINT_NO_FILES && diagnostic !== OXLINT_NO_FILES_UNCONFIRMED);
|
|
8461
8422
|
return finishParsedRun({
|
|
@@ -8836,15 +8797,16 @@ var prismaValidateRunner = {
|
|
|
8836
8797
|
cwd,
|
|
8837
8798
|
...resolved.cmd === "npx" ? getIsolatedNpxSpawnOptions() : {}
|
|
8838
8799
|
});
|
|
8839
|
-
if (result.error && !result.stdout && !result.stderr) {
|
|
8840
|
-
return { status: "skipped", diagnostics: [], semantic: "none" };
|
|
8841
|
-
}
|
|
8842
8800
|
if (result.status === 0) {
|
|
8843
8801
|
return { status: "succeeded", diagnostics: [], semantic: "none" };
|
|
8844
8802
|
}
|
|
8845
8803
|
const output = `${result.stdout ?? ""}
|
|
8846
8804
|
${result.stderr ?? ""}`;
|
|
8847
8805
|
const diagnostics = parsePrismaValidateOutput(output, ctx.filePath);
|
|
8806
|
+
const findings = PRISMA_VALIDATION_REPORT.test(output) ? diagnostics : [];
|
|
8807
|
+
const cutShort = faultIfCutShort(result, findings);
|
|
8808
|
+
if (cutShort)
|
|
8809
|
+
return cutShort;
|
|
8848
8810
|
if (diagnostics.length === 0) {
|
|
8849
8811
|
return { status: "skipped", diagnostics: [], semantic: "none" };
|
|
8850
8812
|
}
|
|
@@ -8856,7 +8818,7 @@ ${result.stderr ?? ""}`;
|
|
|
8856
8818
|
// nonzero output (npm's E404 when `npx --no prisma` has nothing to
|
|
8857
8819
|
// run) is a tool that never validated, and goes to the shared
|
|
8858
8820
|
// parse-error arm instead of becoming a blocking "schema" finding.
|
|
8859
|
-
diagnostics:
|
|
8821
|
+
diagnostics: findings,
|
|
8860
8822
|
classify: () => ({ status: "failed", semantic: "blocking" })
|
|
8861
8823
|
});
|
|
8862
8824
|
}
|
|
@@ -9190,7 +9152,7 @@ var pyrightRunner = {
|
|
|
9190
9152
|
cmd = installedPath;
|
|
9191
9153
|
}
|
|
9192
9154
|
if (!cmd) {
|
|
9193
|
-
const { findCommandAsync } = await import("./chunk-
|
|
9155
|
+
const { findCommandAsync } = await import("./chunk-RORGS5II.js");
|
|
9194
9156
|
const foundCmd = await findCommandAsync("pyright");
|
|
9195
9157
|
if (foundCmd)
|
|
9196
9158
|
cmd = foundCmd;
|
|
@@ -9206,7 +9168,7 @@ var pyrightRunner = {
|
|
|
9206
9168
|
env
|
|
9207
9169
|
});
|
|
9208
9170
|
if (result.error) {
|
|
9209
|
-
return
|
|
9171
|
+
return faultSkip("did-not-run");
|
|
9210
9172
|
}
|
|
9211
9173
|
const output = (result.stdout || "").trim();
|
|
9212
9174
|
if (!output) {
|
|
@@ -9585,6 +9547,7 @@ function parseClippyOutput(raw, fallbackPath, cargoDir) {
|
|
|
9585
9547
|
var rust_clippy_default = rustClippyRunner;
|
|
9586
9548
|
|
|
9587
9549
|
// dist/clients/dispatch/runners/spotbugs.js
|
|
9550
|
+
import { randomUUID } from "node:crypto";
|
|
9588
9551
|
import * as fs14 from "node:fs";
|
|
9589
9552
|
import * as os3 from "node:os";
|
|
9590
9553
|
import * as path34 from "node:path";
|
|
@@ -9749,7 +9712,7 @@ var spotbugsRunner = {
|
|
|
9749
9712
|
const cmd = await resolveAvailableOrInstall(spotbugs, "spotbugs", cwd);
|
|
9750
9713
|
if (!cmd)
|
|
9751
9714
|
return { status: "skipped", diagnostics: [], semantic: "none" };
|
|
9752
|
-
const tmpXml = path34.join(os3.tmpdir(), `pi-lens-spotbugs-${process.pid}-${
|
|
9715
|
+
const tmpXml = path34.join(os3.tmpdir(), `pi-lens-spotbugs-${process.pid}-${randomUUID()}.xml`);
|
|
9753
9716
|
const result = await safeSpawnAsync(cmd, [
|
|
9754
9717
|
"-textui",
|
|
9755
9718
|
"-xml:withMessages",
|
|
@@ -10802,8 +10765,11 @@ var terragruntRunner = {
|
|
|
10802
10765
|
const fileDir = path41.dirname(absPath);
|
|
10803
10766
|
const result = await safeSpawnAsync(cmd, ["hcl", "validate", "--json", "--non-interactive"], { cwd: fileDir, timeout: 3e4 });
|
|
10804
10767
|
if (spawnFailedWithNoOutput(result))
|
|
10805
|
-
return
|
|
10768
|
+
return faultSkip("did-not-run");
|
|
10806
10769
|
const diagnostics = parseTerragruntOutput(result.stdout || "", ctx.filePath, absPath);
|
|
10770
|
+
const cutShort = faultIfCutShort(result, diagnostics);
|
|
10771
|
+
if (cutShort)
|
|
10772
|
+
return cutShort;
|
|
10807
10773
|
return finishParsedRun({
|
|
10808
10774
|
tool: "terragrunt",
|
|
10809
10775
|
ctx,
|
|
@@ -11063,7 +11029,7 @@ var trivyConfigRunner = {
|
|
|
11063
11029
|
stdout: result.stdout
|
|
11064
11030
|
})
|
|
11065
11031
|
});
|
|
11066
|
-
return
|
|
11032
|
+
return faultSkip(processCutShort(result) ? "did-not-run" : "rejected-invocation");
|
|
11067
11033
|
}
|
|
11068
11034
|
const diagnostics = parseTrivyConfigOutput(result.stdout || "", ctx.filePath, cwd);
|
|
11069
11035
|
if (diagnostics.length === 0) {
|
|
@@ -11919,7 +11885,7 @@ var zigCheckRunner = {
|
|
|
11919
11885
|
const absPath = path48.resolve(cwd, ctx.filePath);
|
|
11920
11886
|
const result = await safeSpawnAsync(cmd, ["build-exe", absPath, "-fno-emit-bin"], { cwd, timeout: 3e4 });
|
|
11921
11887
|
if (result.error && !result.stdout && !result.stderr) {
|
|
11922
|
-
return
|
|
11888
|
+
return faultSkip("did-not-run");
|
|
11923
11889
|
}
|
|
11924
11890
|
const raw = `${result.stdout || ""}
|
|
11925
11891
|
${result.stderr || ""}`;
|