pi-lens 4.4.5 → 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 +120 -0
- package/README.md +37 -1
- package/config/biome/core.jsonc +3 -3
- package/dist/{chunk-6XSESGWD.js → chunk-24BILSZW.js} +2 -2
- package/dist/{chunk-YXDCRUKQ.js → chunk-2PHMIAKO.js} +4 -4
- package/dist/{chunk-EN5AM7PX.js → chunk-2TF6RXWB.js} +10 -10
- package/dist/{chunk-XI34NWDI.js → chunk-3F6BMY53.js} +1 -1
- package/dist/{chunk-VUAVE3QC.js → chunk-3FRLWYBG.js} +36 -36
- package/dist/{chunk-THEXI2QO.js → chunk-3K2F6UDZ.js} +42 -42
- package/dist/{chunk-ZPJM7DID.js → chunk-3YY7IXIL.js} +3 -3
- package/dist/chunk-46TNM7XZ.js +88 -0
- package/dist/{chunk-TL2TCJYL.js → chunk-4L36HG27.js} +14 -14
- package/dist/{chunk-UCVMSOXF.js → chunk-4LM3VAZH.js} +2 -2
- package/dist/{chunk-AI3GP74G.js → chunk-4LOE5R5P.js} +15 -15
- package/dist/{chunk-AHWA4AKM.js → chunk-4YHYPW2G.js} +32 -9
- package/dist/{chunk-VITFDI3O.js → chunk-4ZYJHQMB.js} +12 -12
- package/dist/{chunk-KCBRHV5E.js → chunk-6IR3ZYIB.js} +3 -3
- package/dist/chunk-72OKUXSD.js +31 -0
- package/dist/{chunk-RCHO5W7M.js → chunk-75GAYVNO.js} +13 -12
- package/dist/{chunk-2SDHYHHO.js → chunk-7E2563GA.js} +13 -13
- package/dist/chunk-7GLOLOSH.js +57 -0
- package/dist/{chunk-CG5V25HX.js → chunk-ABPKUVA4.js} +1 -1
- package/dist/chunk-AKUUMGD5.js +26 -0
- package/dist/chunk-ASUXV767.js +22 -0
- package/dist/{chunk-Q42LJANT.js → chunk-AWDSEDER.js} +2 -2
- package/dist/{chunk-Y2TPADJR.js → chunk-BZARLRJW.js} +9 -9
- package/dist/{chunk-YKVDBNPO.js → chunk-CB4WHS4H.js} +3 -3
- package/dist/{chunk-YXGRRORB.js → chunk-CCV2EU7T.js} +13 -13
- package/dist/{chunk-PJXNTPB2.js → chunk-CE6VMBCB.js} +21 -21
- package/dist/{chunk-KPVLQHCZ.js → chunk-CPSR3AVL.js} +2 -2
- package/dist/chunk-CTADOKYM.js +25 -0
- package/dist/{chunk-CPZ5JJW6.js → chunk-DH5JPM3K.js} +4 -4
- package/dist/{chunk-4FHUGDKU.js → chunk-DPGEAHZT.js} +5 -5
- package/dist/{chunk-SNEUMLM7.js → chunk-DQZFQSR5.js} +4 -4
- package/dist/{chunk-RG3MXTRI.js → chunk-E7HJ56Y7.js} +7 -7
- package/dist/{chunk-YSDPVDFC.js → chunk-EAOK7MIZ.js} +3 -3
- package/dist/{chunk-PP2A5V2T.js → chunk-EKWX4WD3.js} +7 -7
- package/dist/{chunk-2LDMXL2M.js → chunk-F5Z6URKM.js} +2 -2
- package/dist/{chunk-72J27ICO.js → chunk-F6X3YJWD.js} +2 -2
- package/dist/{chunk-ELZRSR5N.js → chunk-F7K5IBZG.js} +41 -39
- package/dist/{chunk-EX4EXBW7.js → chunk-FB5SCCPT.js} +15 -15
- package/dist/{chunk-SJHC3BCZ.js → chunk-FZKFVUEC.js} +518 -233
- package/dist/{chunk-UVY4TOJH.js → chunk-GNSIWBAT.js} +3 -3
- package/dist/{chunk-EXVXBSGN.js → chunk-H7OR7DFZ.js} +20 -18
- package/dist/{chunk-NLIVE7L6.js → chunk-HO6LWE2E.js} +1 -1
- package/dist/{chunk-X3UTCXAA.js → chunk-HR3OJ3TH.js} +12 -12
- package/dist/{chunk-HYVXA3BB.js → chunk-HWDAVBFU.js} +23 -23
- package/dist/{chunk-ZSUX7KEM.js → chunk-J6JP25XU.js} +2 -2
- package/dist/{chunk-T4NGVFYI.js → chunk-JJ2RRESP.js} +8 -5
- package/dist/{chunk-RU34BA4D.js → chunk-JMEKXFOL.js} +34 -34
- package/dist/{chunk-IL7K66ZQ.js → chunk-KDX35VXP.js} +74 -18
- package/dist/{chunk-EDMLIW6W.js → chunk-KKCK636N.js} +12 -12
- package/dist/{chunk-KJJAVH3X.js → chunk-KPPJTH44.js} +6 -5
- package/dist/{chunk-5LRUKYFA.js → chunk-KW5JQPO5.js} +2 -2
- package/dist/{chunk-N3PLNNCW.js → chunk-KXF5R4UN.js} +1 -1
- package/dist/{chunk-YWNO5Q4R.js → chunk-L3CMBQMH.js} +17 -17
- package/dist/{chunk-YWWG4AQA.js → chunk-L5JYIU47.js} +24 -25
- package/dist/{chunk-K2GUZ4DN.js → chunk-LBLBAFG3.js} +4 -4
- package/dist/{chunk-APFJKOP6.js → chunk-LLS45EWB.js} +10 -2
- package/dist/{chunk-MKPCELNI.js → chunk-LS3QJRUB.js} +13 -13
- package/dist/chunk-LSC3VADM.js +23 -0
- package/dist/{chunk-F7BO6FWH.js → chunk-LUBPZN36.js} +11 -11
- package/dist/{chunk-ASRAO7KG.js → chunk-LV4UMYVH.js} +27 -27
- package/dist/{chunk-COOUUC5W.js → chunk-MB6PXBUA.js} +6 -6
- package/dist/{chunk-3WCEHYOI.js → chunk-MNJIXFX4.js} +1 -1
- package/dist/{chunk-FEDWAYDS.js → chunk-MPKRJBPK.js} +35 -15
- package/dist/{chunk-Q4BKKOVC.js → chunk-N5WSK2K7.js} +8 -8
- package/dist/{chunk-K4SZB56V.js → chunk-NA7SEXHE.js} +12 -8
- package/dist/{chunk-UL5SXQVX.js → chunk-O4BJFESU.js} +1 -1
- package/dist/{chunk-LMCTHJ2H.js → chunk-OE5ZBP7F.js} +18 -18
- package/dist/{chunk-NFNVDDGB.js → chunk-OSTKYB55.js} +1 -1
- package/dist/{chunk-27VWVB23.js → chunk-OXOI55RU.js} +10 -10
- package/dist/{chunk-7IYC4ENJ.js → chunk-PKES3ISE.js} +2 -2
- package/dist/{chunk-EWXXLS26.js → chunk-PQJFG24Z.js} +82 -12
- package/dist/{chunk-3SNDVPOR.js → chunk-PR6PO3ES.js} +8 -8
- package/dist/{chunk-63NMUNYP.js → chunk-PUZ3E2J4.js} +6 -6
- package/dist/{chunk-DS2USX5G.js → chunk-QHSNL7B2.js} +11 -11
- package/dist/{chunk-UO66IMVP.js → chunk-QOE342SU.js} +2 -2
- package/dist/{chunk-7ZS7MC24.js → chunk-R5MOQM2H.js} +107 -40
- package/dist/{chunk-JWOVP5BL.js → chunk-RC2Z6K47.js} +6 -6
- package/dist/{chunk-GLW3YDZZ.js → chunk-RORGS5II.js} +9 -9
- package/dist/{chunk-Y5KTA2OB.js → chunk-RQS4QQSD.js} +2 -2
- package/dist/{chunk-KFXCL4OV.js → chunk-RRV3FNNM.js} +22 -23
- package/dist/{chunk-GYRZ72R4.js → chunk-RZOXUSPC.js} +2 -2
- package/dist/chunk-SHLDT3OI.js +27 -0
- package/dist/{chunk-IEBJF3PN.js → chunk-SNDXCFRS.js} +15 -13
- package/dist/{chunk-XHLK33VM.js → chunk-T7A2HK2B.js} +16 -16
- package/dist/{chunk-WUY4BZEP.js → chunk-TIQJPRDD.js} +106 -50
- package/dist/{chunk-2FYKETQJ.js → chunk-U2SDMG7C.js} +5 -5
- package/dist/{chunk-EIKRZ32J.js → chunk-U5HPROLA.js} +2 -2
- package/dist/{chunk-2Y6OJRSI.js → chunk-U6VN4NVL.js} +3 -3
- package/dist/{chunk-OZNCKLOX.js → chunk-U7BD2QL7.js} +12 -12
- package/dist/chunk-UF7RTZSO.js +27 -0
- package/dist/{chunk-XHDBJODR.js → chunk-URCQWAQ4.js} +21 -21
- package/dist/{chunk-7FLRUH6B.js → chunk-V63BC55Q.js} +1 -1
- package/dist/{chunk-TVZRLTG6.js → chunk-VSFLRN5Y.js} +1 -1
- package/dist/{chunk-OMJ3OFBJ.js → chunk-VUZWQ7UG.js} +6 -6
- package/dist/chunk-W4WP2ERB.js +30 -0
- package/dist/{chunk-G224FADB.js → chunk-WDBICWH3.js} +1 -1
- package/dist/{chunk-4ODSZ35Z.js → chunk-WGRJOXED.js} +121 -155
- package/dist/{chunk-FWZRGGGY.js → chunk-WME2OQST.js} +39 -4
- package/dist/{chunk-MEFLGBCS.js → chunk-XT2HTCJ5.js} +3 -3
- package/dist/{chunk-VIDEKABZ.js → chunk-Y7F7IEE3.js} +55 -23
- package/dist/chunk-YES5CACN.js +73 -0
- package/dist/{chunk-ZAPSUBLU.js → chunk-YHC2O2WO.js} +7 -7
- package/dist/{chunk-GTDSYEA2.js → chunk-YISME6ON.js} +1 -1
- package/dist/{chunk-TPYYEDP5.js → chunk-YVHBNSME.js} +48 -29
- package/dist/{chunk-XWFIHYCH.js → chunk-Z2XAOKHK.js} +2 -2
- package/dist/{chunk-QT66NEYN.js → chunk-ZE3KXHS7.js} +3 -3
- package/dist/{chunk-S55TEC7I.js → chunk-ZGSJDWQU.js} +2 -2
- package/dist/{chunk-4U7GDSZQ.js → chunk-ZJTT47IG.js} +2 -2
- package/dist/{chunk-KX56K73G.js → chunk-ZKXQKGWZ.js} +2 -2
- package/dist/{chunk-5DKE4HGX.js → chunk-ZMAUPOMG.js} +34 -34
- package/dist/index.js +2446 -1303
- package/dist/mcp/analyze-cli.js +10 -10
- package/dist/mcp/cli.js +42 -42
- package/dist/mcp/server.js +724 -472
- package/dist/mcp/worker.js +61 -61
- package/dist/probes/installer.js +19 -19
- package/docs/agent-tools.md +39 -10
- package/docs/configuration.md +3 -1
- package/docs/defect-shapes.md +752 -0
- 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/caches-stores.md +30 -0
- package/docs/invariants/dispatch-runners.md +164 -0
- package/docs/invariants/git-guard-host.md +87 -0
- package/docs/invariants/language-config.md +31 -0
- package/docs/invariants/lsp-trust-exec.md +292 -0
- package/docs/invariants/paths-os.md +59 -0
- package/docs/invariants/session-telemetry.md +114 -0
- package/docs/lsp-capability-matrix.md +89 -45
- package/docs/lsp-idle-eviction.md +3 -5
- package/docs/pi-lens-fixer.md +10 -2
- package/docs/pi-lens-merge-policy.md +17 -12
- package/docs/pi-lens-monitor.md +2 -2
- package/docs/pi-lens-orchestration.md +41 -0
- package/docs/pi-lens-release.md +20 -0
- package/docs/pi-lens-retro.md +3 -2
- package/docs/pi-lens-reviewer.md +6 -6
- package/docs/pi-lens-subagent.md +9 -6
- 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 +3 -2
- package/dist/chunk-22Y2BM7H.js +0 -23
- package/dist/chunk-44X7VIKR.js +0 -73
- package/dist/chunk-54NIOJJZ.js +0 -25
- package/dist/chunk-7WWQAW5P.js +0 -30
- package/dist/chunk-EA2ZRG44.js +0 -27
- package/dist/chunk-EKNWOL2I.js +0 -27
- package/dist/chunk-G5UCJFT7.js +0 -26
- package/dist/chunk-N5FBM25N.js +0 -22
- package/dist/chunk-P5XUGPIX.js +0 -31
- package/dist/chunk-PKOXJIVT.js +0 -88
- package/dist/chunk-RG7OODGM.js +0 -57
|
@@ -2,14 +2,14 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
createAvailabilityProbeFlight,
|
|
4
4
|
probeToolAsync
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3F6BMY53.js";
|
|
6
6
|
import {
|
|
7
7
|
classifyProbeFailure,
|
|
8
8
|
createAvailabilityLatch,
|
|
9
9
|
isTransientDecision,
|
|
10
10
|
logAvailabilityDecision,
|
|
11
11
|
startHostStallSampler
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KW5JQPO5.js";
|
|
13
13
|
import {
|
|
14
14
|
NODE_MODULES_BIN_DIRS,
|
|
15
15
|
createGenerationSource,
|
|
@@ -17,21 +17,22 @@ import {
|
|
|
17
17
|
projectLocalBinDirs,
|
|
18
18
|
recordProjectCommandRefusal,
|
|
19
19
|
safeSpawnAsync
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-YVHBNSME.js";
|
|
21
21
|
import {
|
|
22
22
|
getProjectTrustState
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-U5HPROLA.js";
|
|
24
24
|
import {
|
|
25
25
|
recordDegradationOnce
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-WME2OQST.js";
|
|
27
27
|
import {
|
|
28
28
|
logExtension
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-KXF5R4UN.js";
|
|
30
30
|
import {
|
|
31
31
|
isAtOrAboveHomeDir,
|
|
32
32
|
isUnderDir,
|
|
33
|
+
realpathOrResolve,
|
|
33
34
|
walkUpDirs
|
|
34
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-PQJFG24Z.js";
|
|
35
36
|
|
|
36
37
|
// dist/clients/package-manager.js
|
|
37
38
|
import * as fs from "node:fs";
|
|
@@ -316,8 +317,11 @@ function* matchesInDir(dir, names, binDirs) {
|
|
|
316
317
|
function* localBinMatches(tools, startDir, options) {
|
|
317
318
|
const { windowsExt = ".cmd", homeDir = os.homedir(), binDirs = NODE_MODULES_BIN_DIRS, isWindows = onWindows(), ceiling = true } = options;
|
|
318
319
|
const names = expandCandidateNames(tools, windowsExt, isWindows);
|
|
320
|
+
const home = ceiling ? realpathOrResolve(homeDir) : homeDir;
|
|
321
|
+
let startIsReal;
|
|
319
322
|
for (const dir of walkUpDirs(startDir, { spelling: true })) {
|
|
320
|
-
|
|
323
|
+
startIsReal ??= ceiling && realpathOrResolve(dir) === dir;
|
|
324
|
+
if (ceiling && isAtOrAboveHomeDir(startIsReal ? dir : realpathOrResolve(dir), home))
|
|
321
325
|
return;
|
|
322
326
|
yield* matchesInDir(dir, names, binDirs);
|
|
323
327
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
getGlobalPiLensDir
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YVHBNSME.js";
|
|
5
5
|
|
|
6
6
|
// dist/clients/opengrep-rule-pack.js
|
|
7
7
|
import * as fs from "node:fs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
calcCyclomaticComplexity
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-3YY7IXIL.js";
|
|
5
|
+
import "./chunk-WDBICWH3.js";
|
|
6
6
|
import "./chunk-5W3R6LFT.js";
|
|
7
7
|
import {
|
|
8
8
|
firstChildOfType,
|
|
@@ -11,27 +11,27 @@ import {
|
|
|
11
11
|
resolveTreeSitterLanguage,
|
|
12
12
|
walk,
|
|
13
13
|
withTreeSitterRoot
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-L5JYIU47.js";
|
|
15
15
|
import "./chunk-Z54ZSOBZ.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-U6VN4NVL.js";
|
|
17
|
+
import "./chunk-TIQJPRDD.js";
|
|
18
|
+
import "./chunk-YISME6ON.js";
|
|
19
|
+
import "./chunk-HO6LWE2E.js";
|
|
20
|
+
import "./chunk-KW5JQPO5.js";
|
|
21
|
+
import "./chunk-YVHBNSME.js";
|
|
22
|
+
import "./chunk-RZOXUSPC.js";
|
|
23
|
+
import "./chunk-KPPJTH44.js";
|
|
24
|
+
import "./chunk-J6JP25XU.js";
|
|
25
|
+
import "./chunk-U5HPROLA.js";
|
|
26
|
+
import "./chunk-WME2OQST.js";
|
|
27
27
|
import {
|
|
28
28
|
createSubsystemLogger
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-KXF5R4UN.js";
|
|
30
30
|
import "./chunk-S26LC76R.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-Z2XAOKHK.js";
|
|
32
|
+
import "./chunk-VSFLRN5Y.js";
|
|
33
33
|
import "./chunk-LJDODBBZ.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-PQJFG24Z.js";
|
|
35
35
|
import "./chunk-NXL4FFQQ.js";
|
|
36
36
|
|
|
37
37
|
// dist/clients/complexity-client.js
|
|
@@ -36,19 +36,19 @@ import {
|
|
|
36
36
|
updateWordIndexDocumentForEdit,
|
|
37
37
|
wordIndexKey,
|
|
38
38
|
wordIndexPostingHits
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-SNDXCFRS.js";
|
|
40
|
+
import "./chunk-QOE342SU.js";
|
|
41
41
|
import "./chunk-AWQWXSW4.js";
|
|
42
42
|
import "./chunk-QYF5S6P6.js";
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-RZOXUSPC.js";
|
|
44
|
+
import "./chunk-KPPJTH44.js";
|
|
45
|
+
import "./chunk-J6JP25XU.js";
|
|
46
|
+
import "./chunk-WME2OQST.js";
|
|
47
|
+
import "./chunk-KXF5R4UN.js";
|
|
48
48
|
import "./chunk-S26LC76R.js";
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-Z2XAOKHK.js";
|
|
50
|
+
import "./chunk-VSFLRN5Y.js";
|
|
51
|
+
import "./chunk-PQJFG24Z.js";
|
|
52
52
|
import "./chunk-NXL4FFQQ.js";
|
|
53
53
|
export {
|
|
54
54
|
WORD_INDEX_FORMAT_VERSION,
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
findGoverningTsconfigDir,
|
|
4
4
|
getDirectoryMarkers,
|
|
5
5
|
registerWorkspaceTopologyReset
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-J6JP25XU.js";
|
|
7
7
|
import {
|
|
8
8
|
BoundedLruCache
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PQJFG24Z.js";
|
|
10
10
|
|
|
11
11
|
// dist/clients/review-graph/tsconfig-paths.js
|
|
12
12
|
import * as fs from "node:fs";
|
|
@@ -2022,6 +2022,7 @@ minimatch.unescape = unescape;
|
|
|
2022
2022
|
|
|
2023
2023
|
// dist/clients/path-utils.js
|
|
2024
2024
|
import { existsSync, readFileSync, realpathSync, statSync } from "node:fs";
|
|
2025
|
+
import { lstat as lstatAsync, realpath as realpathNativeAsync } from "node:fs/promises";
|
|
2025
2026
|
import * as os from "node:os";
|
|
2026
2027
|
import * as path2 from "node:path";
|
|
2027
2028
|
import { win32 } from "node:path";
|
|
@@ -2123,24 +2124,54 @@ function getPathIdentityFallbacks() {
|
|
|
2123
2124
|
function resetPathIdentityFallbacks() {
|
|
2124
2125
|
pathIdentityFallbacks.clear();
|
|
2125
2126
|
}
|
|
2126
|
-
function
|
|
2127
|
+
function* identityCandidates(spelled, p) {
|
|
2127
2128
|
let current = spelled;
|
|
2128
|
-
const
|
|
2129
|
+
const missing = [];
|
|
2129
2130
|
for (; ; ) {
|
|
2131
|
+
yield { candidate: current, missing };
|
|
2132
|
+
const parent = p.dirname(current);
|
|
2133
|
+
if (parent === current)
|
|
2134
|
+
return;
|
|
2135
|
+
missing.push(p.basename(current));
|
|
2136
|
+
current = parent;
|
|
2137
|
+
}
|
|
2138
|
+
}
|
|
2139
|
+
function recordIdentityRefusal(refusal, candidate) {
|
|
2140
|
+
if (isAbsenceRefusal(refusal))
|
|
2141
|
+
return;
|
|
2142
|
+
recordPathIdentityFallback(refusal?.code ?? "unknown", candidate);
|
|
2143
|
+
}
|
|
2144
|
+
function isAbsenceRefusal(refusal) {
|
|
2145
|
+
const code = refusal?.code;
|
|
2146
|
+
return code === "ENOENT" || code === "ENOTDIR";
|
|
2147
|
+
}
|
|
2148
|
+
function foldMissingTail(real, missing, p) {
|
|
2149
|
+
return missing.length === 0 ? real : p.join(real, ...missing.reverse());
|
|
2150
|
+
}
|
|
2151
|
+
function tailHasDotSegment(missing) {
|
|
2152
|
+
return missing.some((segment) => segment === "." || segment === "..");
|
|
2153
|
+
}
|
|
2154
|
+
function kernelAttempt(spelled, p) {
|
|
2155
|
+
for (const { candidate, missing } of identityCandidates(spelled, p)) {
|
|
2130
2156
|
try {
|
|
2131
|
-
const real = realpathSync.native(
|
|
2132
|
-
return
|
|
2157
|
+
const real = realpathSync.native(candidate);
|
|
2158
|
+
return {
|
|
2159
|
+
answer: foldMissingTail(real, missing, p),
|
|
2160
|
+
foldedTail: tailHasDotSegment(missing)
|
|
2161
|
+
};
|
|
2133
2162
|
} catch (refusal) {
|
|
2134
|
-
|
|
2135
|
-
if (code !== "ENOENT" && code !== "ENOTDIR")
|
|
2136
|
-
recordPathIdentityFallback(code ?? "unknown", current);
|
|
2137
|
-
const parent = p.dirname(current);
|
|
2138
|
-
if (parent === current)
|
|
2139
|
-
return void 0;
|
|
2140
|
-
tail.push(p.basename(current));
|
|
2141
|
-
current = parent;
|
|
2163
|
+
recordIdentityRefusal(refusal, candidate);
|
|
2142
2164
|
}
|
|
2143
2165
|
}
|
|
2166
|
+
return void 0;
|
|
2167
|
+
}
|
|
2168
|
+
function kernelRealPath(spelled, p) {
|
|
2169
|
+
const first = kernelAttempt(spelled, p);
|
|
2170
|
+
if (!first)
|
|
2171
|
+
return void 0;
|
|
2172
|
+
if (!first.foldedTail)
|
|
2173
|
+
return first.answer;
|
|
2174
|
+
return kernelAttempt(first.answer, p)?.answer ?? first.answer;
|
|
2144
2175
|
}
|
|
2145
2176
|
function posixPathIdentity(spelled) {
|
|
2146
2177
|
return kernelRealPath(spelled, path2.posix) ?? path2.posix.normalize(spelled);
|
|
@@ -2148,6 +2179,43 @@ function posixPathIdentity(spelled) {
|
|
|
2148
2179
|
function realpathOrResolve(filePath) {
|
|
2149
2180
|
return kernelRealPath(filePath, path2) ?? path2.resolve(filePath);
|
|
2150
2181
|
}
|
|
2182
|
+
async function realpathOrResolveAsync(filePath) {
|
|
2183
|
+
return (await kernelPathIdentityAsync(filePath))?.identity ?? path2.resolve(filePath);
|
|
2184
|
+
}
|
|
2185
|
+
async function kernelAttemptAsync(spelled) {
|
|
2186
|
+
let kernelConfirmed = true;
|
|
2187
|
+
for (const { candidate, missing } of identityCandidates(spelled, path2)) {
|
|
2188
|
+
try {
|
|
2189
|
+
const real = await realpathNativeAsync(candidate);
|
|
2190
|
+
return {
|
|
2191
|
+
answer: foldMissingTail(real, missing, path2),
|
|
2192
|
+
foldedTail: tailHasDotSegment(missing),
|
|
2193
|
+
kernelConfirmed
|
|
2194
|
+
};
|
|
2195
|
+
} catch (refusal) {
|
|
2196
|
+
recordIdentityRefusal(refusal, candidate);
|
|
2197
|
+
if (!isAbsenceRefusal(refusal))
|
|
2198
|
+
kernelConfirmed = false;
|
|
2199
|
+
else if (!await lstatAsync(candidate).then(() => false, (lstatRefusal) => {
|
|
2200
|
+
return isAbsenceRefusal(lstatRefusal);
|
|
2201
|
+
})) {
|
|
2202
|
+
recordPathIdentityFallback("ENOENT-DANGLING", candidate);
|
|
2203
|
+
kernelConfirmed = false;
|
|
2204
|
+
}
|
|
2205
|
+
}
|
|
2206
|
+
}
|
|
2207
|
+
return void 0;
|
|
2208
|
+
}
|
|
2209
|
+
async function kernelPathIdentityAsync(filePath) {
|
|
2210
|
+
const first = await kernelAttemptAsync(filePath);
|
|
2211
|
+
if (!first)
|
|
2212
|
+
return void 0;
|
|
2213
|
+
const settled = first.foldedTail ? await kernelAttemptAsync(first.answer) : void 0;
|
|
2214
|
+
return {
|
|
2215
|
+
identity: settled?.answer ?? first.answer,
|
|
2216
|
+
kernelConfirmed: first.kernelConfirmed && (settled?.kernelConfirmed ?? true)
|
|
2217
|
+
};
|
|
2218
|
+
}
|
|
2151
2219
|
function normalizeLoggedPath(value) {
|
|
2152
2220
|
return isFullyQualifiedWin32(value) || isFullyQualifiedPosix(value) ? normalizeFilePath(value) : value;
|
|
2153
2221
|
}
|
|
@@ -2577,6 +2645,8 @@ export {
|
|
|
2577
2645
|
getPathIdentityFallbacks,
|
|
2578
2646
|
resetPathIdentityFallbacks,
|
|
2579
2647
|
realpathOrResolve,
|
|
2648
|
+
realpathOrResolveAsync,
|
|
2649
|
+
kernelPathIdentityAsync,
|
|
2580
2650
|
normalizeLoggedPath,
|
|
2581
2651
|
uriToPath,
|
|
2582
2652
|
uriToDiskPath,
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
parseJsonc
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PKES3ISE.js";
|
|
5
5
|
import {
|
|
6
6
|
extractTomlTableSection,
|
|
7
7
|
hasTomlTable,
|
|
8
8
|
parseTomlScalarString,
|
|
9
9
|
parseTomlStringArray
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZKXQKGWZ.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveLanguage
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-YISME6ON.js";
|
|
14
14
|
import {
|
|
15
15
|
getProjectTrustState
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-U5HPROLA.js";
|
|
17
17
|
import {
|
|
18
18
|
incrementDegradationCount,
|
|
19
19
|
recordDegradationOnce
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-WME2OQST.js";
|
|
21
21
|
import {
|
|
22
22
|
logExtension
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-KXF5R4UN.js";
|
|
24
24
|
import {
|
|
25
25
|
logLatency
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-Z2XAOKHK.js";
|
|
27
27
|
import {
|
|
28
28
|
UV_WORKSPACE_EXCLUDE_DIALECT,
|
|
29
29
|
UV_WORKSPACE_MEMBERS_DIALECT,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
realpathOrResolve,
|
|
32
32
|
toPosix,
|
|
33
33
|
walkUpDirs
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-PQJFG24Z.js";
|
|
35
35
|
|
|
36
36
|
// dist/clients/bounded-telemetry.js
|
|
37
37
|
var MAX_TRACKED_TURN_CAPS = 64;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
getSourceFiles
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ABPKUVA4.js";
|
|
5
5
|
import {
|
|
6
6
|
readDirEntriesSafe,
|
|
7
7
|
shouldRecurseIntoDir
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZGSJDWQU.js";
|
|
9
9
|
import {
|
|
10
10
|
getProjectIgnoreMatcher
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YVHBNSME.js";
|
|
12
12
|
import {
|
|
13
13
|
CODE_KINDS,
|
|
14
14
|
DOTNET_CSHARP_ROOT_MARKERS,
|
|
@@ -17,18 +17,18 @@ import {
|
|
|
17
17
|
LEAN_ROOT_MARKERS,
|
|
18
18
|
TERRAGRUNT_FILENAMES,
|
|
19
19
|
detectFileKind
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-RZOXUSPC.js";
|
|
21
21
|
import {
|
|
22
22
|
findNearestDirWithAnyBasename,
|
|
23
23
|
registerWorkspaceTopologyReset
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-J6JP25XU.js";
|
|
25
25
|
import {
|
|
26
26
|
BoundedLruCache,
|
|
27
27
|
direntsHaveMarkerGlobMatch,
|
|
28
28
|
isUnderDir,
|
|
29
29
|
normalizeMapKey,
|
|
30
30
|
realpathOrResolve
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-PQJFG24Z.js";
|
|
32
32
|
|
|
33
33
|
// dist/clients/language-profile.js
|
|
34
34
|
import * as fs from "node:fs";
|
|
@@ -4,44 +4,44 @@ import {
|
|
|
4
4
|
} from "./chunk-7U2IDNXN.js";
|
|
5
5
|
import {
|
|
6
6
|
formatToolFailure
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Y7F7IEE3.js";
|
|
8
8
|
import {
|
|
9
9
|
firstOutputLine,
|
|
10
10
|
spawnFailedWithNoOutput
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JJ2RRESP.js";
|
|
12
12
|
import {
|
|
13
13
|
getScratchTreeFnmatchPatterns
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-CPSR3AVL.js";
|
|
15
15
|
import {
|
|
16
16
|
extractTomlTableSection,
|
|
17
17
|
parseTomlStringArray
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ZKXQKGWZ.js";
|
|
19
19
|
import {
|
|
20
20
|
findLocalBinsAt
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-NA7SEXHE.js";
|
|
22
22
|
import {
|
|
23
23
|
probeToolAsync
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-3F6BMY53.js";
|
|
25
25
|
import {
|
|
26
26
|
classifyProbeFailure,
|
|
27
27
|
createAvailabilityLatch,
|
|
28
28
|
logAvailabilityDecision,
|
|
29
29
|
startHostStallSampler
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-KW5JQPO5.js";
|
|
31
31
|
import {
|
|
32
32
|
VENV_BIN_DIRS,
|
|
33
33
|
listNestedLinkedWorktreeRoots,
|
|
34
34
|
safeSpawnAsync
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-YVHBNSME.js";
|
|
36
36
|
import {
|
|
37
37
|
incrementDegradationCount
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-WME2OQST.js";
|
|
39
39
|
import {
|
|
40
40
|
createSubsystemLogger
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-KXF5R4UN.js";
|
|
42
42
|
import {
|
|
43
43
|
findNearestMarkerRoot
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-PQJFG24Z.js";
|
|
45
45
|
|
|
46
46
|
// dist/clients/dead-code-client.js
|
|
47
47
|
import * as fs from "node:fs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
loadPiLensProjectConfig
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KPPJTH44.js";
|
|
5
5
|
import {
|
|
6
6
|
lazyEnvNumber,
|
|
7
7
|
toPositiveFinite
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VSFLRN5Y.js";
|
|
9
9
|
|
|
10
10
|
// dist/clients/project-scale.js
|
|
11
11
|
var DEFAULT_PROJECT_SCALE_BASE = 2e3;
|