pi-lens 4.4.9 → 4.4.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG-USER.md +6 -6
- package/CHANGELOG.md +80 -0
- package/README.md +2 -0
- package/dist/{chunk-CM6BDY4E.js → chunk-2ADRLTM2.js} +2 -2
- package/dist/{chunk-XO756WE5.js → chunk-2LVJQU3I.js} +15 -14
- package/dist/{chunk-W5E72HJA.js → chunk-3FRI5H4T.js} +13 -1
- package/dist/{chunk-N5CEGQPG.js → chunk-3HM4BUHR.js} +11 -11
- package/dist/{chunk-UAKO2M6B.js → chunk-3QWVOBZJ.js} +30 -30
- package/dist/{chunk-QB7T2PHK.js → chunk-46TQJSUE.js} +3 -1
- package/dist/{chunk-ZZN74OGD.js → chunk-4ITEFRDH.js} +3 -2
- package/dist/{chunk-C3YRO3EU.js → chunk-4NCDHTFI.js} +6 -6
- package/dist/{chunk-G22UNQID.js → chunk-6I44EDNQ.js} +10 -10
- package/dist/{chunk-OUYAUXAT.js → chunk-6MDM5MQT.js} +169 -56
- package/dist/{chunk-CDFJF5YD.js → chunk-7JX3RNG4.js} +1 -1
- package/dist/{chunk-PIIUNJIT.js → chunk-7WJ55KBN.js} +1 -1
- package/dist/{chunk-ZMMHHXSW.js → chunk-A5TEJZGJ.js} +1 -0
- package/dist/{chunk-HEA3EM23.js → chunk-ALIZWXHZ.js} +8 -8
- package/dist/{chunk-MQ4PPCJB.js → chunk-AON2QIJF.js} +32 -36
- package/dist/{chunk-DGKFWQK4.js → chunk-B2YUE6YD.js} +7 -7
- package/dist/{chunk-GQTQUNCG.js → chunk-B6HXETWY.js} +20 -20
- package/dist/{chunk-KR5VGMVT.js → chunk-BDR5MEZY.js} +9 -9
- package/dist/{chunk-MRLH4MYU.js → chunk-BGLS5SDN.js} +1 -1
- package/dist/{chunk-PRHYIA6X.js → chunk-BRESRQBE.js} +4 -4
- package/dist/{chunk-5GEYJJHG.js → chunk-C6AODRNU.js} +7 -7
- package/dist/{chunk-ZZSJAR76.js → chunk-CTB5BAJI.js} +24 -11
- package/dist/{chunk-IICERRFF.js → chunk-CYUJB552.js} +4 -4
- package/dist/{chunk-THYHUIDR.js → chunk-CZAWWXP6.js} +1 -1
- package/dist/{chunk-QJJKOHLH.js → chunk-DBS736MA.js} +27 -27
- package/dist/{chunk-XLAI7UYY.js → chunk-DOUAWKLO.js} +8 -8
- package/dist/{chunk-LAHHGNAY.js → chunk-DVRJBQOJ.js} +12 -12
- package/dist/{chunk-KV6GQOGN.js → chunk-E4VXKTBR.js} +28 -28
- package/dist/{chunk-XKFO2SZV.js → chunk-F6FT6BVQ.js} +26 -26
- package/dist/{chunk-VWLSU3XV.js → chunk-FCQSZQAT.js} +1 -1
- package/dist/{chunk-X5BJ3G2P.js → chunk-FOEPIX76.js} +1 -1
- package/dist/{chunk-F6BEQWAK.js → chunk-GMC4ZGYR.js} +4 -4
- package/dist/{chunk-TOE2RRCS.js → chunk-GTTMQ6XB.js} +1 -1
- package/dist/{chunk-5YSEQHJN.js → chunk-GUGKKGG7.js} +1 -1
- package/dist/{chunk-OSEKJEUU.js → chunk-GVWIU7M7.js} +1 -1
- package/dist/{chunk-TMNUTMT5.js → chunk-H65TYP6V.js} +25 -4
- package/dist/{chunk-7R5GZIA6.js → chunk-HILZE4BQ.js} +5 -4
- package/dist/{chunk-HYSKJMZK.js → chunk-HSYFLOZY.js} +2 -2
- package/dist/{chunk-V2WDBOLZ.js → chunk-I32RSMH6.js} +7 -7
- package/dist/chunk-I74RQGKA.js +88 -0
- package/dist/{chunk-RNXOWDM6.js → chunk-IDCTDKIA.js} +3 -3
- package/dist/{chunk-TYHPVE5H.js → chunk-IK4YS3KC.js} +8 -8
- package/dist/{chunk-ZCQBNPRH.js → chunk-IL6PIV33.js} +2 -2
- package/dist/{chunk-6GPB3JLL.js → chunk-J6BR5XN2.js} +2 -2
- package/dist/{chunk-UC5AXW5Z.js → chunk-JKOZ2Z4U.js} +6 -6
- package/dist/{chunk-WSSLVMDA.js → chunk-JZQGRARR.js} +7 -7
- package/dist/{chunk-7UTSNTWM.js → chunk-K6WIBVMK.js} +4 -3
- package/dist/{chunk-QVBOXT3L.js → chunk-KDCIG23C.js} +6 -6
- package/dist/{chunk-NOWH2VA2.js → chunk-KFRDFAOE.js} +4 -4
- package/dist/{chunk-NMUSOZ2D.js → chunk-KJ3AHOCK.js} +6 -6
- package/dist/{chunk-E65WJVI5.js → chunk-KSTQ4VXT.js} +5 -5
- package/dist/{chunk-4ENEJHF4.js → chunk-MAD4QJTP.js} +9 -9
- package/dist/{chunk-KXMJLOZF.js → chunk-NBM7PNBP.js} +7 -7
- package/dist/{chunk-7YTRG6YW.js → chunk-NE4EFHJX.js} +1 -1
- package/dist/{chunk-AACN5GNE.js → chunk-NPNFGYLV.js} +3 -1
- package/dist/{chunk-H3BVMK47.js → chunk-OPFNQBS5.js} +5 -5
- package/dist/{chunk-WTB4GKMH.js → chunk-OTSTS7L2.js} +11 -2
- package/dist/{chunk-JUZ67QZQ.js → chunk-PTSA6QKL.js} +7 -7
- package/dist/{chunk-ZPM7ZIFL.js → chunk-Q2VCKC3X.js} +3 -3
- package/dist/{chunk-2VZ3VN3N.js → chunk-QHOTTC4A.js} +2 -2
- package/dist/{chunk-L7O774U7.js → chunk-QL37SGTS.js} +105 -13
- package/dist/{chunk-FRUBVFXV.js → chunk-QMV2APEH.js} +27 -27
- package/dist/{chunk-L4Y3ROKQ.js → chunk-QSCZAP24.js} +3 -3
- package/dist/{chunk-IILEH3ZC.js → chunk-QUPYLQA4.js} +4 -4
- package/dist/{chunk-3NPWO5UO.js → chunk-QUQY3IME.js} +4 -4
- package/dist/{chunk-FGNSESAC.js → chunk-QWTHFFU6.js} +8 -8
- package/dist/{chunk-EKNYSXFB.js → chunk-RQRKIRFY.js} +5 -5
- package/dist/{chunk-NCLO6E6N.js → chunk-S3WFVG5P.js} +14 -21
- package/dist/{chunk-RTFMDIKV.js → chunk-SG2JQ2YP.js} +1 -1
- package/dist/{chunk-VO4JFPTV.js → chunk-SJQUWQR6.js} +2 -2
- package/dist/{chunk-SLSMJPEF.js → chunk-SKVNHCT5.js} +32 -32
- package/dist/{chunk-3HTZDY3C.js → chunk-TJQSYX3J.js} +3 -3
- package/dist/{chunk-RNJFRXEN.js → chunk-TLWFZ66Y.js} +3 -3
- package/dist/{chunk-LWOM6LVS.js → chunk-TN5CWX5D.js} +26 -26
- package/dist/{chunk-UTJP6WOS.js → chunk-TQHOKMVZ.js} +11 -11
- package/dist/{chunk-N56BNAA6.js → chunk-TYHOEX4V.js} +15 -15
- package/dist/{chunk-QP33NKYC.js → chunk-UNBRHPHJ.js} +10 -10
- package/dist/{chunk-EY6LY2HO.js → chunk-UOO4D2TK.js} +11 -11
- package/dist/{chunk-47UCC4MM.js → chunk-UY745U35.js} +1 -1
- package/dist/{chunk-ZDMFGACN.js → chunk-V7F7JHS5.js} +71 -55
- package/dist/{chunk-PBZNYHMM.js → chunk-VGTBLTPN.js} +4 -4
- package/dist/{chunk-L6WBJGQS.js → chunk-VPFRU5IG.js} +1 -1
- package/dist/{chunk-Q6JQKWPK.js → chunk-VS2L7QDI.js} +8 -8
- package/dist/{chunk-PXQ45SGD.js → chunk-W4CUK5G6.js} +2 -2
- package/dist/{chunk-MKPDIAZH.js → chunk-WAA63ZJV.js} +1 -1
- package/dist/{chunk-J3Q2NYJR.js → chunk-WS3UFJOU.js} +1 -1
- package/dist/{chunk-T5QSLSMM.js → chunk-XAFZJEXY.js} +16 -16
- package/dist/{chunk-YOXCCJDF.js → chunk-XPGH5O74.js} +56 -46
- package/dist/{chunk-UXTQ3QPD.js → chunk-Y3EHLUPL.js} +2 -2
- package/dist/{chunk-HSOBIN22.js → chunk-YF4G5NN5.js} +2 -2
- package/dist/{chunk-SIQHOB6P.js → chunk-YQA34KAF.js} +7 -7
- package/dist/{chunk-V67D6TMU.js → chunk-YT2VR4SL.js} +4 -4
- package/dist/{chunk-CJS6WE66.js → chunk-ZOPXB2KK.js} +11 -11
- package/dist/{chunk-H6FLQ5NW.js → chunk-ZPFLHB3R.js} +11 -11
- package/dist/{chunk-ZVCDHYWZ.js → chunk-ZZDVGCGG.js} +6 -6
- package/dist/index.js +537 -269
- package/dist/mcp/analyze-cli.js +6 -6
- package/dist/mcp/cli.js +32 -32
- package/dist/mcp/server.js +109 -109
- package/dist/mcp/worker.js +49 -49
- package/dist/probes/installer.js +13 -13
- package/docs/agent-guide.md +2 -1
- package/docs/agent-tools.md +13 -2
- package/docs/configuration.md +9 -4
- package/docs/defect-shapes.md +15 -1
- package/docs/features.md +11 -1
- package/docs/globalconfig.md +13 -0
- package/docs/invariants/language-config.md +9 -1
- package/docs/language-coverage.md +66 -0
- package/docs/lsp-capability-matrix.md +66 -20
- package/docs/lsp-idle-eviction.md +17 -13
- package/docs/pi-lens-fixer.md +8 -6
- package/docs/pi-lens-merge-policy.md +5 -1
- package/docs/pi-lens-release.md +3 -2
- package/docs/pi-lens-reviewer.md +52 -11
- package/docs/servercapabilities.md +1 -1
- package/docs/settings.md +7 -4
- package/docs/usage.md +1 -0
- package/package.json +2 -2
- package/scripts/download-grammars.js +10 -0
- package/scripts/grammars.lock.json +7 -0
- package/vendor/grammars/tree-sitter-groovy.wasm +0 -0
- package/dist/chunk-TGQDAG4B.js +0 -88
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
normalizeMessage,
|
|
8
8
|
sanitizeCorrelationId,
|
|
9
9
|
stableFindingId
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FCQSZQAT.js";
|
|
11
11
|
import {
|
|
12
12
|
mapWithConcurrency
|
|
13
13
|
} from "./chunk-XIMYZ3JA.js";
|
|
@@ -38,17 +38,17 @@ import {
|
|
|
38
38
|
resolveLspServerCwd,
|
|
39
39
|
serverTraits,
|
|
40
40
|
withLspProjectCodePermission
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-XPGH5O74.js";
|
|
42
42
|
import {
|
|
43
43
|
findLocalOpengrepConfig
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-NE4EFHJX.js";
|
|
45
45
|
import {
|
|
46
46
|
emitBounded
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-YT2VR4SL.js";
|
|
48
48
|
import {
|
|
49
49
|
loadProjectSnapshot,
|
|
50
50
|
readJsonCache
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-BRESRQBE.js";
|
|
52
52
|
import {
|
|
53
53
|
acquireWorkspaceSweepHold,
|
|
54
54
|
configureLspServiceLifecycle,
|
|
@@ -57,6 +57,7 @@ import {
|
|
|
57
57
|
resetOwnedLspService
|
|
58
58
|
} from "./chunk-XVB3Q2PG.js";
|
|
59
59
|
import {
|
|
60
|
+
RUNTIME_CONFIG,
|
|
60
61
|
collectForwardImportMtimes,
|
|
61
62
|
exceedsLspSyncLimits,
|
|
62
63
|
feedsJsTsGlobalScope,
|
|
@@ -69,7 +70,7 @@ import {
|
|
|
69
70
|
lineTextAt,
|
|
70
71
|
pathBirthtimeMs,
|
|
71
72
|
scanDocumentContent
|
|
72
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-QL37SGTS.js";
|
|
73
74
|
import {
|
|
74
75
|
js_yaml_default
|
|
75
76
|
} from "./chunk-QGITU23N.js";
|
|
@@ -77,7 +78,7 @@ import {
|
|
|
77
78
|
EXTENSION_TO_LSP_ID,
|
|
78
79
|
lspLanguageId,
|
|
79
80
|
resolveFilenameLanguage
|
|
80
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-OTSTS7L2.js";
|
|
81
82
|
import {
|
|
82
83
|
HOOK_WALL_BUDGET_MS
|
|
83
84
|
} from "./chunk-CKEQFGLT.js";
|
|
@@ -85,7 +86,7 @@ import {
|
|
|
85
86
|
diagnosticsIpcPathForCwd,
|
|
86
87
|
requestWarmCodeActions,
|
|
87
88
|
requestWarmDiagnostics
|
|
88
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-YF4G5NN5.js";
|
|
89
90
|
import {
|
|
90
91
|
CONTENT_HASH_MAX_BYTES,
|
|
91
92
|
hashContentBytes,
|
|
@@ -97,18 +98,18 @@ import {
|
|
|
97
98
|
untilAborted,
|
|
98
99
|
withDeadline,
|
|
99
100
|
withTimeout
|
|
100
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-WAA63ZJV.js";
|
|
101
102
|
import {
|
|
102
103
|
findLocalZizmorConfig,
|
|
103
104
|
logSessionStart
|
|
104
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-AON2QIJF.js";
|
|
105
106
|
import {
|
|
106
107
|
findLocalBinUpwards,
|
|
107
108
|
isProjectLocalBinPath
|
|
108
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-KSTQ4VXT.js";
|
|
109
110
|
import {
|
|
110
111
|
getLspCapableKinds
|
|
111
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-TJQSYX3J.js";
|
|
112
113
|
import {
|
|
113
114
|
createGenerationMap,
|
|
114
115
|
createGenerationSource,
|
|
@@ -127,24 +128,25 @@ import {
|
|
|
127
128
|
sampleProcessTreeCpuPercent,
|
|
128
129
|
selectLivePeerInstances,
|
|
129
130
|
windowsExe
|
|
130
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-H65TYP6V.js";
|
|
131
132
|
import {
|
|
132
133
|
createSingleFlight
|
|
133
134
|
} from "./chunk-AWQWXSW4.js";
|
|
134
135
|
import {
|
|
135
136
|
SPECIAL_FILENAMES,
|
|
136
|
-
getLanguageId
|
|
137
|
+
getLanguageId,
|
|
138
|
+
isJstsFactFile
|
|
137
139
|
} from "./chunk-CZCAZVTD.js";
|
|
138
140
|
import {
|
|
139
141
|
PathKeyedMap,
|
|
140
142
|
detectFileRole
|
|
141
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-FOEPIX76.js";
|
|
142
144
|
import {
|
|
143
145
|
assertInstallAllowed,
|
|
144
146
|
isLspSpawnAllowedByTrust,
|
|
145
147
|
projectTrustDenialReason,
|
|
146
148
|
writeFileAtomic
|
|
147
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-7WJ55KBN.js";
|
|
148
150
|
import {
|
|
149
151
|
compareOrdinal,
|
|
150
152
|
incrementDegradationCount,
|
|
@@ -152,7 +154,7 @@ import {
|
|
|
152
154
|
recordDegradation,
|
|
153
155
|
recordDegradationOnce,
|
|
154
156
|
truncateForLedger
|
|
155
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-3FRI5H4T.js";
|
|
156
158
|
import {
|
|
157
159
|
freshnessFromMtime
|
|
158
160
|
} from "./chunk-S26LC76R.js";
|
|
@@ -4050,7 +4052,7 @@ async function importTargetsToAnnounce(cwd, importers, onScope) {
|
|
|
4050
4052
|
reason: `resolved the imports of ${CREATED_IMPORT_SCAN_MAX_FILES} of ${importers.length} files in one diagnostics call`
|
|
4051
4053
|
});
|
|
4052
4054
|
}
|
|
4053
|
-
const { extractForwardImports } = await import("./chunk-
|
|
4055
|
+
const { extractForwardImports } = await import("./chunk-DVRJBQOJ.js");
|
|
4054
4056
|
const targets = /* @__PURE__ */ new Set();
|
|
4055
4057
|
const reexports = /* @__PURE__ */ new Map();
|
|
4056
4058
|
let resolved2 = 0;
|
|
@@ -7836,8 +7838,8 @@ function createLiveBusEmitter() {
|
|
|
7836
7838
|
}
|
|
7837
7839
|
};
|
|
7838
7840
|
}
|
|
7839
|
-
function resolveLiveBusEmitter(
|
|
7840
|
-
const resolution =
|
|
7841
|
+
function resolveLiveBusEmitter(liveEmitter5, entry) {
|
|
7842
|
+
const resolution = liveEmitter5.resolve();
|
|
7841
7843
|
if (resolution.outcome === "stale-session") {
|
|
7842
7844
|
logBusEvent({
|
|
7843
7845
|
...entry(),
|
|
@@ -7848,7 +7850,7 @@ function resolveLiveBusEmitter(liveEmitter4, entry) {
|
|
|
7848
7850
|
}
|
|
7849
7851
|
return resolution;
|
|
7850
7852
|
}
|
|
7851
|
-
function createBusPublisher(
|
|
7853
|
+
function createBusPublisher(liveEmitter5, options) {
|
|
7852
7854
|
let failureLogged = false;
|
|
7853
7855
|
let unwiredLogged = false;
|
|
7854
7856
|
let disabledLogged = false;
|
|
@@ -7874,7 +7876,7 @@ function createBusPublisher(liveEmitter4, options) {
|
|
|
7874
7876
|
return;
|
|
7875
7877
|
}
|
|
7876
7878
|
call.whenEnabled?.();
|
|
7877
|
-
const resolution = resolveLiveBusEmitter(
|
|
7879
|
+
const resolution = resolveLiveBusEmitter(liveEmitter5, () => ({
|
|
7878
7880
|
event,
|
|
7879
7881
|
cwd: cwd(),
|
|
7880
7882
|
...extra
|
|
@@ -7937,6 +7939,13 @@ var liveEmitter = createLiveBusEmitter();
|
|
|
7937
7939
|
var publisher = createBusPublisher(liveEmitter, {
|
|
7938
7940
|
module: "bus-publish"
|
|
7939
7941
|
});
|
|
7942
|
+
var _envCache;
|
|
7943
|
+
function isBusPublishEnabled() {
|
|
7944
|
+
if (_envCache === void 0) {
|
|
7945
|
+
_envCache = process.env.PI_LENS_BUS_PUBLISH !== "0";
|
|
7946
|
+
}
|
|
7947
|
+
return _envCache;
|
|
7948
|
+
}
|
|
7940
7949
|
|
|
7941
7950
|
// dist/clients/format-events-publish.js
|
|
7942
7951
|
var liveEmitter2 = createLiveBusEmitter();
|
|
@@ -8971,6 +8980,83 @@ async function dropStaleFiles(widget, savedAt) {
|
|
|
8971
8980
|
};
|
|
8972
8981
|
}
|
|
8973
8982
|
|
|
8983
|
+
// dist/clients/diagnostics-publish.js
|
|
8984
|
+
var BUS_DIAGNOSTICS_EVENT = "pilens:diagnostics";
|
|
8985
|
+
var BUS_DIAGNOSTICS_VERSION = 1;
|
|
8986
|
+
var MAX_DIAGNOSTICS_PER_FILE_EVENT = 12;
|
|
8987
|
+
var liveEmitter4 = createLiveBusEmitter();
|
|
8988
|
+
var publisher3 = createBusPublisher(liveEmitter4, {
|
|
8989
|
+
module: "diagnostics-publish"
|
|
8990
|
+
});
|
|
8991
|
+
var seqCounter = 0;
|
|
8992
|
+
var reportedDirtyPaths = /* @__PURE__ */ new Set();
|
|
8993
|
+
function capDiagnostics(diagnostics) {
|
|
8994
|
+
if (diagnostics.length <= MAX_DIAGNOSTICS_PER_FILE_EVENT) {
|
|
8995
|
+
return { capped: diagnostics, truncated: false };
|
|
8996
|
+
}
|
|
8997
|
+
const errors = diagnostics.filter((d) => d.severity === "error");
|
|
8998
|
+
const rest = diagnostics.filter((d) => d.severity !== "error");
|
|
8999
|
+
if (errors.length >= MAX_DIAGNOSTICS_PER_FILE_EVENT) {
|
|
9000
|
+
return {
|
|
9001
|
+
capped: errors.slice(0, MAX_DIAGNOSTICS_PER_FILE_EVENT),
|
|
9002
|
+
truncated: true
|
|
9003
|
+
};
|
|
9004
|
+
}
|
|
9005
|
+
return {
|
|
9006
|
+
capped: [
|
|
9007
|
+
...errors,
|
|
9008
|
+
...rest.slice(0, MAX_DIAGNOSTICS_PER_FILE_EVENT - errors.length)
|
|
9009
|
+
],
|
|
9010
|
+
truncated: true
|
|
9011
|
+
};
|
|
9012
|
+
}
|
|
9013
|
+
function publishDiagnostics(args) {
|
|
9014
|
+
if (args.origin === "bus")
|
|
9015
|
+
return;
|
|
9016
|
+
if (args.files.length === 0)
|
|
9017
|
+
return;
|
|
9018
|
+
publisher3.publish({
|
|
9019
|
+
event: BUS_DIAGNOSTICS_EVENT,
|
|
9020
|
+
enabled: isBusPublishEnabled(),
|
|
9021
|
+
cwd: args.cwd,
|
|
9022
|
+
build: (cwd) => {
|
|
9023
|
+
const fileEntries = args.files.map((f) => {
|
|
9024
|
+
const normPath = normalizeFilePath(f.path);
|
|
9025
|
+
const { capped, truncated } = capDiagnostics(f.diagnostics);
|
|
9026
|
+
if (capped.length > 0) {
|
|
9027
|
+
reportedDirtyPaths.add(normPath);
|
|
9028
|
+
} else {
|
|
9029
|
+
reportedDirtyPaths.delete(normPath);
|
|
9030
|
+
}
|
|
9031
|
+
const entry = {
|
|
9032
|
+
path: normPath,
|
|
9033
|
+
diagnostics: capped
|
|
9034
|
+
};
|
|
9035
|
+
if (truncated)
|
|
9036
|
+
entry.truncated = true;
|
|
9037
|
+
return entry;
|
|
9038
|
+
});
|
|
9039
|
+
seqCounter += 1;
|
|
9040
|
+
return {
|
|
9041
|
+
v: BUS_DIAGNOSTICS_VERSION,
|
|
9042
|
+
source: "pi-lens",
|
|
9043
|
+
cwd,
|
|
9044
|
+
seq: seqCounter,
|
|
9045
|
+
ts: Date.now(),
|
|
9046
|
+
files: fileEntries
|
|
9047
|
+
};
|
|
9048
|
+
},
|
|
9049
|
+
emittedFields: (payload) => ({
|
|
9050
|
+
fileCount: payload.files.length,
|
|
9051
|
+
seq: payload.seq
|
|
9052
|
+
}),
|
|
9053
|
+
dbg: args.dbg
|
|
9054
|
+
});
|
|
9055
|
+
}
|
|
9056
|
+
function wasPreviouslyReportedDirty(path18) {
|
|
9057
|
+
return reportedDirtyPaths.has(normalizeFilePath(path18));
|
|
9058
|
+
}
|
|
9059
|
+
|
|
8974
9060
|
// dist/clients/widget-state.js
|
|
8975
9061
|
function fileMapKey(filePath) {
|
|
8976
9062
|
return normalizeEphemeralMapKey(filePath);
|
|
@@ -9172,7 +9258,31 @@ var widgetStore = defineSessionStore({
|
|
|
9172
9258
|
if (!state4?.files)
|
|
9173
9259
|
return { itemsIn: 0, itemsKept: 0 };
|
|
9174
9260
|
const fresh = await dropStaleFiles(state4, ctx.savedAt);
|
|
9261
|
+
if (!_scope.isLive())
|
|
9262
|
+
return { itemsIn: state4.files.length, itemsKept: 0 };
|
|
9175
9263
|
importWidgetState(fresh);
|
|
9264
|
+
const files2 = getFileDiagnosticSummaries().map((f) => ({
|
|
9265
|
+
filePath: f.filePath,
|
|
9266
|
+
diagnostics: f.diagnostics.flatMap((d) => {
|
|
9267
|
+
const tier = classifyDiagnosticTier(d);
|
|
9268
|
+
if (d.stale === true || tier === void 0)
|
|
9269
|
+
return [];
|
|
9270
|
+
return [
|
|
9271
|
+
{
|
|
9272
|
+
severity: tier === "advisory" ? d.severity === "info" ? "info" : "hint" : tier,
|
|
9273
|
+
message: d.message,
|
|
9274
|
+
tool: d.tool ?? "unknown",
|
|
9275
|
+
...d.rule !== void 0 && { ruleId: d.rule },
|
|
9276
|
+
...d.line !== void 0 && { line: d.line },
|
|
9277
|
+
...d.col !== void 0 && { col: d.col }
|
|
9278
|
+
}
|
|
9279
|
+
];
|
|
9280
|
+
})
|
|
9281
|
+
}));
|
|
9282
|
+
publishDiagnostics({
|
|
9283
|
+
cwd: ctx.cwd,
|
|
9284
|
+
files: files2.filter((f) => f.diagnostics.length > 0 || wasPreviouslyReportedDirty(f.filePath)).map((f) => ({ path: f.filePath, diagnostics: f.diagnostics }))
|
|
9285
|
+
});
|
|
9176
9286
|
return { itemsIn: state4.files.length, itemsKept: fresh.files.length };
|
|
9177
9287
|
},
|
|
9178
9288
|
reset: () => clearWidgetState(),
|
|
@@ -15356,7 +15466,7 @@ var ClientRegistry = class {
|
|
|
15356
15466
|
*/
|
|
15357
15467
|
async restartPrimaryClientsUnder(root) {
|
|
15358
15468
|
const rootKey = normalizeMapKey(root);
|
|
15359
|
-
const overlaps = (clientRoot) => clientRoot
|
|
15469
|
+
const overlaps = (clientRoot) => isWithinForm(clientRoot, rootKey) || isWithinForm(rootKey, clientRoot);
|
|
15360
15470
|
return this.withClientSpawnGate(async () => {
|
|
15361
15471
|
if (this.isDestroyed)
|
|
15362
15472
|
return [];
|
|
@@ -16241,18 +16351,8 @@ function demoteEnvironmentGapDiagnostics(diagnostics, options) {
|
|
|
16241
16351
|
|
|
16242
16352
|
// dist/clients/lsp/inferred-project.js
|
|
16243
16353
|
var INFERRED_PROJECT_MARKER = "not in any tsconfig project \u2014 checked with inferred settings";
|
|
16244
|
-
var TS_PROJECT_EXTENSIONS = /* @__PURE__ */ new Set([
|
|
16245
|
-
".ts",
|
|
16246
|
-
".tsx",
|
|
16247
|
-
".mts",
|
|
16248
|
-
".cts",
|
|
16249
|
-
".js",
|
|
16250
|
-
".jsx",
|
|
16251
|
-
".mjs",
|
|
16252
|
-
".cjs"
|
|
16253
|
-
]);
|
|
16254
16354
|
function isTsProjectFile(filePath) {
|
|
16255
|
-
return
|
|
16355
|
+
return isJstsFactFile(filePath);
|
|
16256
16356
|
}
|
|
16257
16357
|
function suggestTsconfigInclude(filePath, cwd) {
|
|
16258
16358
|
const relative2 = toProjectRelativePath(filePath, cwd);
|
|
@@ -16393,7 +16493,7 @@ function createLazyImport(load) {
|
|
|
16393
16493
|
}
|
|
16394
16494
|
|
|
16395
16495
|
// dist/clients/lsp-lazy.js
|
|
16396
|
-
var lazyLsp = createLazyImport(() => import("./chunk-
|
|
16496
|
+
var lazyLsp = createLazyImport(() => import("./chunk-3QWVOBZJ.js"));
|
|
16397
16497
|
function warmLspService() {
|
|
16398
16498
|
return lazyLsp.get();
|
|
16399
16499
|
}
|
|
@@ -17892,7 +17992,7 @@ var LSPService = class _LSPService {
|
|
|
17892
17992
|
const separator = key.indexOf(":");
|
|
17893
17993
|
const serverId = separator >= 0 ? key.slice(0, separator) : key;
|
|
17894
17994
|
const root = normalizeMapKey(client.root);
|
|
17895
|
-
const sameOrNested = root
|
|
17995
|
+
const sameOrNested = isWithinForm(root, normalizedCwd) || isWithinForm(normalizedCwd, root);
|
|
17896
17996
|
if (!sameOrNested)
|
|
17897
17997
|
continue;
|
|
17898
17998
|
entries.push({ clientKey: key, serverId, client });
|
|
@@ -19231,29 +19331,33 @@ var LSPService = class _LSPService {
|
|
|
19231
19331
|
}
|
|
19232
19332
|
}
|
|
19233
19333
|
}
|
|
19334
|
+
const isSilentOnCleanServer = (entry) => {
|
|
19335
|
+
try {
|
|
19336
|
+
const snapshot = {
|
|
19337
|
+
serverId: entry.client.serverId,
|
|
19338
|
+
root: entry.client.root,
|
|
19339
|
+
operationSupport: entry.client.getOperationSupport(),
|
|
19340
|
+
workspaceDiagnosticsSupport: entry.client.getWorkspaceDiagnosticsSupport(),
|
|
19341
|
+
customServer: entry.info.custom,
|
|
19342
|
+
diagnosticsPublished: this.state.diagnosticsPublished.has(entry.info.id),
|
|
19343
|
+
diagnosticsUnsupported: this.state.diagnosticsUnsupported.has(entry.info.id),
|
|
19344
|
+
advertisedCommands: entry.client.getAdvertisedCommands(),
|
|
19345
|
+
rawCapabilityKeys: entry.client.getRawCapabilityKeys?.() ?? [],
|
|
19346
|
+
launchVariant: entry.client.getLaunchVariant?.()
|
|
19347
|
+
};
|
|
19348
|
+
return classifyServerWaitTier(entry.client.serverId, snapshot) === "tier3-silent";
|
|
19349
|
+
} catch {
|
|
19350
|
+
return false;
|
|
19351
|
+
}
|
|
19352
|
+
};
|
|
19234
19353
|
const silentCleanWarmupServers = /* @__PURE__ */ new Set();
|
|
19235
19354
|
if (options.warmupOverride && (options.warmupAttempt ?? 1) <= 1) {
|
|
19236
19355
|
for (const entry of spawned) {
|
|
19237
19356
|
const strategy = getStrategy(entry.client.serverId, entry.client.getLaunchVariant?.());
|
|
19238
19357
|
if (strategy.workspaceIndexing !== true)
|
|
19239
19358
|
continue;
|
|
19240
|
-
|
|
19241
|
-
|
|
19242
|
-
serverId: entry.client.serverId,
|
|
19243
|
-
root: entry.client.root,
|
|
19244
|
-
operationSupport: entry.client.getOperationSupport(),
|
|
19245
|
-
workspaceDiagnosticsSupport: entry.client.getWorkspaceDiagnosticsSupport(),
|
|
19246
|
-
customServer: entry.info.custom,
|
|
19247
|
-
diagnosticsPublished: this.state.diagnosticsPublished.has(entry.info.id),
|
|
19248
|
-
diagnosticsUnsupported: this.state.diagnosticsUnsupported.has(entry.info.id),
|
|
19249
|
-
advertisedCommands: entry.client.getAdvertisedCommands(),
|
|
19250
|
-
rawCapabilityKeys: entry.client.getRawCapabilityKeys?.() ?? [],
|
|
19251
|
-
launchVariant: entry.client.getLaunchVariant?.()
|
|
19252
|
-
};
|
|
19253
|
-
if (classifyServerWaitTier(entry.client.serverId, snapshot) === "tier3-silent") {
|
|
19254
|
-
silentCleanWarmupServers.add(entry.client.serverId);
|
|
19255
|
-
}
|
|
19256
|
-
} catch {
|
|
19359
|
+
if (isSilentOnCleanServer(entry)) {
|
|
19360
|
+
silentCleanWarmupServers.add(entry.client.serverId);
|
|
19257
19361
|
}
|
|
19258
19362
|
}
|
|
19259
19363
|
}
|
|
@@ -19266,6 +19370,9 @@ var LSPService = class _LSPService {
|
|
|
19266
19370
|
strategyWait = strategy.workspaceIndexingWarmWaitMs ?? Math.min(300, strategyWait);
|
|
19267
19371
|
}
|
|
19268
19372
|
if (callerCap !== void 0) {
|
|
19373
|
+
if (options.explicitQuery) {
|
|
19374
|
+
return Math.min(Math.max(callerCap, strategyWait > 0 ? strategyWait : 0), RUNTIME_CONFIG.pipeline.lspExplicitQueryMaxWaitMs);
|
|
19375
|
+
}
|
|
19269
19376
|
if (options.warmupOverride) {
|
|
19270
19377
|
if (silentCleanWarmupServers.has(serverId)) {
|
|
19271
19378
|
return Math.min(callerCap, strategyWait > 0 ? strategyWait : callerCap);
|
|
@@ -19330,6 +19437,7 @@ var LSPService = class _LSPService {
|
|
|
19330
19437
|
});
|
|
19331
19438
|
const firstContactCutOffServerIds = /* @__PURE__ */ new Set();
|
|
19332
19439
|
const firstContactErroredServerIds = /* @__PURE__ */ new Set();
|
|
19440
|
+
const expiredWaitServerIds = /* @__PURE__ */ new Set();
|
|
19333
19441
|
const answeredForThisTouch = (entry) => {
|
|
19334
19442
|
const baseline = diagnosticBaselines.get(entry.client);
|
|
19335
19443
|
const currentPathVersion = readPathVersion(entry.client);
|
|
@@ -19362,7 +19470,7 @@ var LSPService = class _LSPService {
|
|
|
19362
19470
|
const serverTimeout = perServerWaitTimeouts[entryIndex];
|
|
19363
19471
|
const baseline = diagnosticBaselines.get(entry.client);
|
|
19364
19472
|
const pullOnly = classifyServerWaitTier(entry.client.serverId, pressureSnapshots.find((snapshot) => snapshot.serverId === entry.client.serverId)) === "pull-capable";
|
|
19365
|
-
const waitForDiagnostics = () => !notifySkippedServerIds.has(entry.info.id) && Number.isFinite(baseline) ? entry.client.waitForDiagnostics(filePath, serverTimeout, {
|
|
19473
|
+
const waitForDiagnostics = () => (!notifySkippedServerIds.has(entry.info.id) && Number.isFinite(baseline) ? entry.client.waitForDiagnostics(filePath, serverTimeout, {
|
|
19366
19474
|
minVersion: baseline,
|
|
19367
19475
|
...pullOnly && { pullOnly: true },
|
|
19368
19476
|
...isWarmupTouch && { pullSettleSource: "pull-warmup" }
|
|
@@ -19371,7 +19479,12 @@ var LSPService = class _LSPService {
|
|
|
19371
19479
|
...isWarmupTouch && { pullSettleSource: "pull-warmup" }
|
|
19372
19480
|
}) : isWarmupTouch ? entry.client.waitForDiagnostics(filePath, serverTimeout, {
|
|
19373
19481
|
pullSettleSource: "pull-warmup"
|
|
19374
|
-
}) : entry.client.waitForDiagnostics(filePath, serverTimeout)
|
|
19482
|
+
}) : entry.client.waitForDiagnostics(filePath, serverTimeout)).then((outcome) => {
|
|
19483
|
+
if (outcome === "deadline-expired" && !isAuxiliary(entry.info) && !isSilentOnCleanServer(entry)) {
|
|
19484
|
+
expiredWaitServerIds.add(entry.info.id);
|
|
19485
|
+
}
|
|
19486
|
+
return outcome;
|
|
19487
|
+
});
|
|
19375
19488
|
const firstContact = entry.info.custom === true && !this.state.diagnosticsPublished.has(entry.info.id) && !this.state.diagnosticsUnsupported.has(entry.info.id) && entry.client.getWorkspaceDiagnosticsSupport().mode !== "pull";
|
|
19376
19489
|
if (!firstContact)
|
|
19377
19490
|
return waitForDiagnostics().catch(() => void 0);
|
|
@@ -19643,7 +19756,7 @@ var LSPService = class _LSPService {
|
|
|
19643
19756
|
savedVsBudgetMs: Math.max(0, timeoutMs - waitedMs)
|
|
19644
19757
|
}
|
|
19645
19758
|
});
|
|
19646
|
-
} else if (waitedMs + 20 >= timeoutMs || firstContactErroredServerIds.size > 0) {
|
|
19759
|
+
} else if (waitedMs + 20 >= timeoutMs || firstContactErroredServerIds.size > 0 || expiredWaitServerIds.size > 0) {
|
|
19647
19760
|
const waited = spawned.filter((entry) => !deferredResyncServerIds.has(entry.info.id) && !diagnosticsUnsupportedServerIds.includes(entry.info.id));
|
|
19648
19761
|
const unanswered2 = waited.filter((entry) => !answeredForThisTouch(entry));
|
|
19649
19762
|
diagnosticsUnansweredServerIds = unanswered2.map((e) => e.info.id);
|
|
@@ -2,7 +2,7 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
collectSourceFiles,
|
|
4
4
|
collectSourceFilesAsync
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IDCTDKIA.js";
|
|
6
6
|
|
|
7
7
|
// dist/clients/scan-utils.js
|
|
8
8
|
function getSourceFiles(dir, _isTsProject) {
|
|
@@ -4,37 +4,37 @@ import {
|
|
|
4
4
|
} from "./chunk-7U2IDNXN.js";
|
|
5
5
|
import {
|
|
6
6
|
getScratchTreeFnmatchPatterns
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SJQUWQR6.js";
|
|
8
8
|
import {
|
|
9
9
|
firstOutputLine,
|
|
10
10
|
formatToolFailure,
|
|
11
11
|
spawnFailedWithNoOutput
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-4ITEFRDH.js";
|
|
13
13
|
import {
|
|
14
14
|
extractTomlTableSection,
|
|
15
15
|
parseTomlStringArray
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WS3UFJOU.js";
|
|
17
17
|
import {
|
|
18
18
|
findLocalBinsAt
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-KSTQ4VXT.js";
|
|
20
20
|
import {
|
|
21
21
|
probeToolAsync
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-VPFRU5IG.js";
|
|
23
23
|
import {
|
|
24
24
|
classifyProbeFailure,
|
|
25
25
|
createAvailabilityLatch,
|
|
26
26
|
logAvailabilityDecision,
|
|
27
27
|
startHostStallSampler
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-NPNFGYLV.js";
|
|
29
29
|
import {
|
|
30
30
|
VENV_BIN_DIRS,
|
|
31
31
|
listNestedLinkedWorktreeRoots,
|
|
32
32
|
safeSpawnAsync
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-H65TYP6V.js";
|
|
34
34
|
import {
|
|
35
35
|
createSubsystemLogger,
|
|
36
36
|
incrementDegradationCount
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-3FRI5H4T.js";
|
|
38
38
|
import {
|
|
39
39
|
findNearestMarkerRoot
|
|
40
40
|
} from "./chunk-CB7PEVOJ.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
resolveToolCwd
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TLWFZ66Y.js";
|
|
5
5
|
import {
|
|
6
6
|
allAvailableGlobalBinDirs,
|
|
7
7
|
installArgs,
|
|
8
8
|
pmBinary,
|
|
9
9
|
resolveNodePackageManager
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KSTQ4VXT.js";
|
|
11
11
|
import {
|
|
12
12
|
probeToolAsync
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VPFRU5IG.js";
|
|
14
14
|
import {
|
|
15
15
|
registerBackgroundWriteDrain
|
|
16
16
|
} from "./chunk-UYXV5NIS.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
createAvailabilityLatch,
|
|
21
21
|
logAvailabilityDecision,
|
|
22
22
|
startHostStallSampler
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-NPNFGYLV.js";
|
|
24
24
|
import {
|
|
25
25
|
acquireBoundedPidFileLock,
|
|
26
26
|
acquireQuarantinePidFileLock,
|
|
@@ -40,20 +40,20 @@ import {
|
|
|
40
40
|
startGenerationHeartbeat,
|
|
41
41
|
tryAcquireGeneration,
|
|
42
42
|
windowsExe
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-H65TYP6V.js";
|
|
44
44
|
import {
|
|
45
45
|
assertInstallAllowed,
|
|
46
46
|
getProjectTrustGeneration,
|
|
47
47
|
projectTrustDenialReason,
|
|
48
48
|
writeFileAtomic,
|
|
49
49
|
writeFileAtomicAsync
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-7WJ55KBN.js";
|
|
51
51
|
import {
|
|
52
52
|
getDegradationLedgerGeneration,
|
|
53
53
|
incrementDegradationCount,
|
|
54
54
|
logExtension,
|
|
55
55
|
recordDegradationOnce
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-3FRI5H4T.js";
|
|
57
57
|
import {
|
|
58
58
|
createNdjsonLogger,
|
|
59
59
|
getGlobalPiLensLogDir,
|
|
@@ -2636,6 +2636,22 @@ function getArchiveBinaryCandidates(binaryName, platform, assetName) {
|
|
|
2636
2636
|
candidates.add(`${binaryName}.cmd`);
|
|
2637
2637
|
return [...candidates];
|
|
2638
2638
|
}
|
|
2639
|
+
async function firstVerifiedBinary(candidates, onTransient, verificationArgs, verificationTimeoutMs) {
|
|
2640
|
+
for (const candidate of candidates) {
|
|
2641
|
+
try {
|
|
2642
|
+
await fs2.access(candidate);
|
|
2643
|
+
if (isUntrustedProjectPath(candidate)) {
|
|
2644
|
+
recordProjectCommandRefusal(candidate);
|
|
2645
|
+
continue;
|
|
2646
|
+
}
|
|
2647
|
+
if (await verifyToolBinary(candidate, void 0, onTransient, verificationTimeoutMs, verificationArgs)) {
|
|
2648
|
+
return candidate;
|
|
2649
|
+
}
|
|
2650
|
+
} catch {
|
|
2651
|
+
}
|
|
2652
|
+
}
|
|
2653
|
+
return void 0;
|
|
2654
|
+
}
|
|
2639
2655
|
async function findNpmGlobalToolPath(binaryName, onTransient, verificationArgs = ["--version"], verificationTimeoutMs = 1e4) {
|
|
2640
2656
|
const isWindows = process.platform === "win32";
|
|
2641
2657
|
const binDirs = await getNpmGlobalBinCandidates(onTransient);
|
|
@@ -2644,19 +2660,9 @@ async function findNpmGlobalToolPath(binaryName, onTransient, verificationArgs =
|
|
|
2644
2660
|
path4.join(dir, `${binaryName}.cmd`),
|
|
2645
2661
|
path4.join(dir, `${binaryName}.exe`)
|
|
2646
2662
|
] : [path4.join(dir, binaryName)];
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
if (isUntrustedProjectPath(candidate)) {
|
|
2651
|
-
recordProjectCommandRefusal(candidate);
|
|
2652
|
-
continue;
|
|
2653
|
-
}
|
|
2654
|
-
if (await verifyToolBinary(candidate, void 0, onTransient, verificationTimeoutMs, verificationArgs)) {
|
|
2655
|
-
return candidate;
|
|
2656
|
-
}
|
|
2657
|
-
} catch {
|
|
2658
|
-
}
|
|
2659
|
-
}
|
|
2663
|
+
const verified = await firstVerifiedBinary(candidates, onTransient, verificationArgs, verificationTimeoutMs);
|
|
2664
|
+
if (verified)
|
|
2665
|
+
return verified;
|
|
2660
2666
|
}
|
|
2661
2667
|
return void 0;
|
|
2662
2668
|
}
|
|
@@ -2712,19 +2718,9 @@ async function findPipUserToolPath(binaryName, onTransient, verificationArgs = [
|
|
|
2712
2718
|
path4.join(dir, `${binaryName}.cmd`),
|
|
2713
2719
|
path4.join(dir, binaryName)
|
|
2714
2720
|
] : [path4.join(dir, binaryName)];
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
if (isUntrustedProjectPath(candidate)) {
|
|
2719
|
-
recordProjectCommandRefusal(candidate);
|
|
2720
|
-
continue;
|
|
2721
|
-
}
|
|
2722
|
-
if (await verifyToolBinary(candidate, void 0, onTransient, verificationTimeoutMs, verificationArgs)) {
|
|
2723
|
-
return candidate;
|
|
2724
|
-
}
|
|
2725
|
-
} catch {
|
|
2726
|
-
}
|
|
2727
|
-
}
|
|
2721
|
+
const verified = await firstVerifiedBinary(candidates, onTransient, verificationArgs, verificationTimeoutMs);
|
|
2722
|
+
if (verified)
|
|
2723
|
+
return verified;
|
|
2728
2724
|
}
|
|
2729
2725
|
}
|
|
2730
2726
|
return void 0;
|
|
@@ -4121,7 +4117,7 @@ async function stampInstallResolution(toolId) {
|
|
|
4121
4117
|
return;
|
|
4122
4118
|
try {
|
|
4123
4119
|
const resolutionId = lastInstallResolutionId.get(toolId);
|
|
4124
|
-
const refresh = await import("./chunk-
|
|
4120
|
+
const refresh = await import("./chunk-TYHOEX4V.js");
|
|
4125
4121
|
await refresh.stampManagedToolInstall(toolId, resolutionId);
|
|
4126
4122
|
} catch {
|
|
4127
4123
|
}
|
|
@@ -4134,7 +4130,7 @@ async function finishInstallAttempt(toolId, ok, startedAt) {
|
|
|
4134
4130
|
if (ok) {
|
|
4135
4131
|
resetSafeSpawnWindowsCommandCache();
|
|
4136
4132
|
try {
|
|
4137
|
-
const { resetMadgeManagedPathMemo } = await import("./chunk-
|
|
4133
|
+
const { resetMadgeManagedPathMemo } = await import("./chunk-DBS736MA.js");
|
|
4138
4134
|
resetMadgeManagedPathMemo();
|
|
4139
4135
|
} catch (err) {
|
|
4140
4136
|
logSessionStart(`auto-install ${toolId}: madge memo reset failed: ${err.message}`);
|
|
@@ -4164,7 +4160,7 @@ async function installTool(toolId, ownsLock) {
|
|
|
4164
4160
|
return false;
|
|
4165
4161
|
const npmPath = await installNpmTool(tool.id, tool.packageName, tool.binaryName, tool.checkArgs, getToolVerificationTimeout(tool), packageEntryVerification(tool), ownsLock);
|
|
4166
4162
|
if (npmPath !== void 0) {
|
|
4167
|
-
await import("./chunk-
|
|
4163
|
+
await import("./chunk-TYHOEX4V.js").then((m) => m.stampManagedToolInstalled(tool.id, tool.packageName)).catch(() => {
|
|
4168
4164
|
});
|
|
4169
4165
|
}
|
|
4170
4166
|
return finishInstallAttempt(tool.id, npmPath !== void 0, startedAt);
|
|
@@ -2,16 +2,16 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
getSourceFiles,
|
|
4
4
|
getSourceFilesAsync
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-7JX3RNG4.js";
|
|
6
|
+
import "./chunk-IDCTDKIA.js";
|
|
7
|
+
import "./chunk-IL6PIV33.js";
|
|
8
|
+
import "./chunk-H65TYP6V.js";
|
|
9
9
|
import "./chunk-QYF5S6P6.js";
|
|
10
10
|
import "./chunk-CZCAZVTD.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-FOEPIX76.js";
|
|
12
12
|
import "./chunk-NL5LSKVD.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-7WJ55KBN.js";
|
|
14
|
+
import "./chunk-3FRI5H4T.js";
|
|
15
15
|
import "./chunk-S26LC76R.js";
|
|
16
16
|
import "./chunk-VCRVNLE7.js";
|
|
17
17
|
import "./chunk-LJDODBBZ.js";
|