pi-lens 4.4.8 → 4.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG-USER.md +31 -0
- package/CHANGELOG.md +178 -0
- package/README.md +2 -1
- package/config/dependency-cruiser-eager-allowlist.json +1 -1
- package/dist/{chunk-3O5EII3W.js → chunk-2VZ3VN3N.js} +2 -2
- package/dist/{chunk-SDFKOLSF.js → chunk-3HTZDY3C.js} +8 -6
- package/dist/{chunk-A5GRLYPZ.js → chunk-3NPWO5UO.js} +7 -13
- package/dist/{chunk-AGGUWKRK.js → chunk-47UCC4MM.js} +1 -1
- package/dist/chunk-4ENEJHF4.js +198 -0
- package/dist/{chunk-WXUDRAG6.js → chunk-5GEYJJHG.js} +10 -12
- package/dist/{chunk-HHR7WGCI.js → chunk-5YSEQHJN.js} +3 -3
- package/dist/{chunk-L3CLUGDY.js → chunk-6GPB3JLL.js} +3 -3
- package/dist/{chunk-5F3XF3SX.js → chunk-7R5GZIA6.js} +6 -6
- package/dist/{chunk-CUDD35TW.js → chunk-7UTSNTWM.js} +4 -4
- package/dist/{chunk-DYRZGUMA.js → chunk-7YTRG6YW.js} +2 -2
- package/dist/{chunk-JZRP4DGP.js → chunk-AACN5GNE.js} +2 -2
- package/dist/{chunk-7ANZ7XDD.js → chunk-ACRJ2GZ5.js} +2 -2
- package/dist/{chunk-6FIRFP6A.js → chunk-C3YRO3EU.js} +10 -12
- package/dist/{chunk-GMROJJRN.js → chunk-CB7PEVOJ.js} +9 -1
- package/dist/{chunk-BBET6HD6.js → chunk-CDFJF5YD.js} +1 -1
- package/dist/{chunk-NSPVR3FN.js → chunk-CJS6WE66.js} +17 -19
- package/dist/{chunk-6YUNI7B5.js → chunk-CM6BDY4E.js} +14 -60
- package/dist/{chunk-G5GV2Q7K.js → chunk-CZCAZVTD.js} +16 -2
- package/dist/chunk-DGKFWQK4.js +23 -0
- package/dist/{chunk-VOP4PJKA.js → chunk-E65WJVI5.js} +7 -9
- package/dist/{chunk-TV6RXRYH.js → chunk-EKNYSXFB.js} +8 -10
- package/dist/{chunk-4LL2VRNY.js → chunk-EY6LY2HO.js} +16 -18
- package/dist/{chunk-MC6VB2E5.js → chunk-F6BEQWAK.js} +17 -5
- package/dist/{chunk-R2QQC33W.js → chunk-FGNSESAC.js} +12 -14
- package/dist/{chunk-OC7VWJBZ.js → chunk-FRUBVFXV.js} +35 -37
- package/dist/{chunk-7CGIDRIK.js → chunk-G22UNQID.js} +14 -16
- package/dist/{chunk-L4NEVZ4T.js → chunk-GQTQUNCG.js} +25 -27
- package/dist/{chunk-ZKLTNLAW.js → chunk-H3BVMK47.js} +6 -6
- package/dist/chunk-H6FLQ5NW.js +28 -0
- package/dist/{chunk-2ZE3AUJQ.js → chunk-HEA3EM23.js} +13 -15
- package/dist/{chunk-CZL44WFN.js → chunk-HSOBIN22.js} +2 -2
- package/dist/{chunk-PKSUMEPT.js → chunk-HYSKJMZK.js} +3 -3
- package/dist/{chunk-VN3L2JWZ.js → chunk-IICERRFF.js} +5 -5
- package/dist/{chunk-O4N5BQ3T.js → chunk-IILEH3ZC.js} +8 -10
- package/dist/{chunk-WC6WRNQT.js → chunk-J3Q2NYJR.js} +2 -2
- package/dist/{chunk-SFLHSL5R.js → chunk-JUZ67QZQ.js} +18 -7
- package/dist/chunk-KR5VGMVT.js +25 -0
- package/dist/{chunk-UHHLR2VY.js → chunk-KV6GQOGN.js} +38 -41
- package/dist/{chunk-HUAM7QG3.js → chunk-KXMJLOZF.js} +25 -23
- package/dist/{chunk-BUZIQDFS.js → chunk-L4Y3ROKQ.js} +3 -3
- package/dist/{chunk-JBP7KESM.js → chunk-L6WBJGQS.js} +1 -1
- package/dist/{chunk-35WKJWO5.js → chunk-L7O774U7.js} +14 -14
- package/dist/{chunk-BOPDQ7AZ.js → chunk-LAHHGNAY.js} +19 -21
- package/dist/{chunk-RGGH6M34.js → chunk-LT62P654.js} +1 -1
- package/dist/{chunk-5T5A6YAJ.js → chunk-LWOM6LVS.js} +33 -34
- package/dist/{chunk-JYLOYTZD.js → chunk-MKPDIAZH.js} +5 -1
- package/dist/{chunk-CM73PPGD.js → chunk-MN635QYA.js} +3 -4
- package/dist/{chunk-BQG2QFVO.js → chunk-MQ4PPCJB.js} +21 -29
- package/dist/{chunk-HXFUTMX2.js → chunk-MRLH4MYU.js} +2 -2
- package/dist/{chunk-XOMGO63G.js → chunk-N56BNAA6.js} +19 -21
- package/dist/{chunk-7MAD5ZAY.js → chunk-N5CEGQPG.js} +14 -16
- package/dist/{chunk-ZFORSIED.js → chunk-NCLO6E6N.js} +13 -33
- package/dist/{chunk-SQC7K3SP.js → chunk-NL5LSKVD.js} +2 -2
- package/dist/{chunk-I22THIHI.js → chunk-NMUSOZ2D.js} +10 -12
- package/dist/{chunk-4NBWFYWW.js → chunk-NOWH2VA2.js} +8 -33
- package/dist/{chunk-NM2NWH55.js → chunk-NUSXS6YB.js} +6 -5
- package/dist/{chunk-OZWXLJMX.js → chunk-OSEKJEUU.js} +2 -2
- package/dist/{chunk-2BKUFQKR.js → chunk-OUYAUXAT.js} +405 -181
- package/dist/{chunk-JPRDTY5S.js → chunk-PBZNYHMM.js} +8 -10
- package/dist/{chunk-JE6HKLC7.js → chunk-PIIUNJIT.js} +2 -4
- package/dist/{chunk-ZZDIOAAJ.js → chunk-PRHYIA6X.js} +6 -6
- package/dist/{chunk-4W52ZKZX.js → chunk-PXQ45SGD.js} +2 -2
- package/dist/chunk-Q6JQKWPK.js +25 -0
- package/dist/{chunk-PIQQM32Y.js → chunk-QB7T2PHK.js} +2 -2
- package/dist/{chunk-HKIL6DCL.js → chunk-QGITU23N.js} +1 -1
- package/dist/chunk-QJJKOHLH.js +57 -0
- package/dist/{chunk-6LJOJ6EO.js → chunk-QP33NKYC.js} +14 -16
- package/dist/{chunk-DIWK3LBC.js → chunk-QVBOXT3L.js} +8 -10
- package/dist/{chunk-IYVYZQRL.js → chunk-RNJFRXEN.js} +5 -7
- package/dist/{chunk-G6JKM4O7.js → chunk-RNXOWDM6.js} +10 -10
- package/dist/{chunk-5RNB4HVK.js → chunk-RTFMDIKV.js} +1 -1
- package/dist/{chunk-XWIME22V.js → chunk-SIQHOB6P.js} +11 -13
- package/dist/{chunk-T2S3FNNJ.js → chunk-SLSMJPEF.js} +41 -42
- package/dist/chunk-T5QSLSMM.js +50 -0
- package/dist/chunk-TGQDAG4B.js +88 -0
- package/dist/{chunk-6GMGEKQN.js → chunk-THYHUIDR.js} +39 -12
- package/dist/{chunk-WMDUT4KH.js → chunk-TMNUTMT5.js} +72 -89
- package/dist/{chunk-7TNILKGY.js → chunk-TOE2RRCS.js} +1 -1
- package/dist/chunk-TYHPVE5H.js +25 -0
- package/dist/chunk-UAKO2M6B.js +73 -0
- package/dist/chunk-UC5AXW5Z.js +20 -0
- package/dist/chunk-UTJP6WOS.js +28 -0
- package/dist/{chunk-FRLAUP2B.js → chunk-UXTQ3QPD.js} +4 -4
- package/dist/{chunk-4QG55RRC.js → chunk-V2WDBOLZ.js} +10 -12
- package/dist/{chunk-FHEV6T4L.js → chunk-V67D6TMU.js} +8 -10
- package/dist/{chunk-VLQ7UKZH.js → chunk-VCRVNLE7.js} +135 -2
- package/dist/{chunk-KZ4ALBCH.js → chunk-VO4JFPTV.js} +2 -2
- package/dist/{chunk-GIRBSBGL.js → chunk-VWLSU3XV.js} +3 -3
- package/dist/{chunk-2453RRJ2.js → chunk-W5E72HJA.js} +59 -22
- package/dist/{chunk-VPLBLWFO.js → chunk-W7TY6HYX.js} +1 -1
- package/dist/{chunk-SP4TFY5F.js → chunk-WSSLVMDA.js} +11 -13
- package/dist/{chunk-PPKECBPP.js → chunk-WTB4GKMH.js} +10 -1
- package/dist/{chunk-X35S7HSB.js → chunk-X5BJ3G2P.js} +41 -30
- package/dist/{chunk-X66YJ2SS.js → chunk-XKFO2SZV.js} +33 -34
- package/dist/{chunk-OWTG6UMO.js → chunk-XLAI7UYY.js} +75 -22
- package/dist/{chunk-4B2YFN4U.js → chunk-XO756WE5.js} +45 -33
- package/dist/{chunk-VOXTCULR.js → chunk-XVB3Q2PG.js} +2 -4
- package/dist/{chunk-XYLC35E4.js → chunk-YOXCCJDF.js} +517 -308
- package/dist/{chunk-O2ARHQKF.js → chunk-ZCQBNPRH.js} +2 -2
- package/dist/chunk-ZD4KVFXI.js +234 -0
- package/dist/{chunk-LSFXZLPW.js → chunk-ZDMFGACN.js} +184 -235
- package/dist/{chunk-4BKU7PV3.js → chunk-ZMMHHXSW.js} +1 -1
- package/dist/{chunk-OY7WZI7Q.js → chunk-ZPM7ZIFL.js} +6 -6
- package/dist/{chunk-R4QWJQ2H.js → chunk-ZVCDHYWZ.js} +9 -11
- package/dist/{chunk-RZG472YW.js → chunk-ZZN74OGD.js} +83 -46
- package/dist/{chunk-BHWW6FAX.js → chunk-ZZSJAR76.js} +37 -19
- package/dist/index.js +4910 -4218
- package/dist/mcp/analyze-cli.js +12 -17
- package/dist/mcp/cli.js +41 -42
- package/dist/mcp/server.js +1451 -648
- package/dist/mcp/worker.js +59 -60
- package/dist/probes/installer.js +17 -19
- package/docs/agent-tools.md +40 -8
- package/docs/analysisall.md +1 -1
- package/docs/ci-bot-pr-checks.md +7 -5
- package/docs/configuration.md +51 -9
- package/docs/defect-shapes.md +52 -3
- package/docs/environment-variables.md +18 -1
- package/docs/features.md +12 -5
- package/docs/globalconfig.md +11 -3
- package/docs/invariants/lsp-trust-exec.md +9 -2
- package/docs/invariants/session-telemetry.md +2 -2
- package/docs/language-coverage.md +1 -0
- package/docs/lsp-capability-matrix.md +57 -35
- package/docs/lsp-idle-eviction.md +4 -1
- package/docs/merge-queue-rollout.md +10 -8
- package/docs/module-report-read-symbol.md +34 -23
- package/docs/pi-lens-fixer.md +11 -1
- package/docs/pi-lens-investigator.md +3 -0
- package/docs/pi-lens-merge-policy.md +15 -7
- package/docs/pi-lens-reviewer.md +1 -1
- package/docs/pi-lens-subagent.md +13 -0
- package/docs/public-api-stability.md +39 -5
- package/docs/release-qa-baseline.md +7 -4
- package/docs/schema/pi-lens-config-v1.json +11 -2
- package/docs/servercapabilities.md +3 -1
- package/docs/settings.md +2 -2
- package/docs/word-index.md +3 -2
- package/package.json +8 -3
- package/rules/ast-grep-rules/rules/no-sql-in-code-execute-js.yml +1 -2
- package/rules/ast-grep-rules/rules/no-sql-in-code-execute.yml +1 -2
- package/scripts/download-grammars.js +3 -2
- package/skills/pi-lens-lsp-navigation/SKILL.md +5 -1
- package/dist/chunk-2TS4GLOJ.js +0 -31
- package/dist/chunk-3JAHQBSY.js +0 -27
- package/dist/chunk-447YZL4S.js +0 -25
- package/dist/chunk-565VRUP4.js +0 -136
- package/dist/chunk-57X2CDRX.js +0 -49
- package/dist/chunk-GGYOZWHW.js +0 -27
- package/dist/chunk-IE5D3RA5.js +0 -58
- package/dist/chunk-LPYTPNOJ.js +0 -22
- package/dist/chunk-OFNMHPBT.js +0 -89
- package/dist/chunk-U3AS2FR6.js +0 -106
- package/dist/chunk-W3BGKBBK.js +0 -27
- package/dist/chunk-WQV6BI4Q.js +0 -48
- package/dist/chunk-YHGYAEFH.js +0 -443
- package/dist/chunk-ZONZ6YY3.js +0 -74
- package/dist/chunk-ZSM35JF4.js +0 -30
|
@@ -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-RNJFRXEN.js";
|
|
5
5
|
import {
|
|
6
6
|
allAvailableGlobalBinDirs,
|
|
7
7
|
installArgs,
|
|
8
8
|
pmBinary,
|
|
9
9
|
resolveNodePackageManager
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-E65WJVI5.js";
|
|
11
11
|
import {
|
|
12
12
|
probeToolAsync
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-L6WBJGQS.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-AACN5GNE.js";
|
|
24
24
|
import {
|
|
25
25
|
acquireBoundedPidFileLock,
|
|
26
26
|
acquireQuarantinePidFileLock,
|
|
@@ -30,6 +30,7 @@ import {
|
|
|
30
30
|
isLockContention,
|
|
31
31
|
isUntrustedProjectPath,
|
|
32
32
|
ownsTopGeneration,
|
|
33
|
+
realIsPidAlive,
|
|
33
34
|
recordGenerationTakeover,
|
|
34
35
|
recordLegacyLockHeld,
|
|
35
36
|
recordProjectCommandRefusal,
|
|
@@ -39,28 +40,27 @@ import {
|
|
|
39
40
|
startGenerationHeartbeat,
|
|
40
41
|
tryAcquireGeneration,
|
|
41
42
|
windowsExe
|
|
42
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-TMNUTMT5.js";
|
|
43
44
|
import {
|
|
44
45
|
assertInstallAllowed,
|
|
45
46
|
getProjectTrustGeneration,
|
|
46
47
|
projectTrustDenialReason,
|
|
47
48
|
writeFileAtomic,
|
|
48
49
|
writeFileAtomicAsync
|
|
49
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-PIIUNJIT.js";
|
|
50
51
|
import {
|
|
51
52
|
getDegradationLedgerGeneration,
|
|
52
53
|
incrementDegradationCount,
|
|
54
|
+
logExtension,
|
|
53
55
|
recordDegradationOnce
|
|
54
|
-
} from "./chunk-
|
|
55
|
-
import {
|
|
56
|
-
logExtension
|
|
57
|
-
} from "./chunk-WQV6BI4Q.js";
|
|
56
|
+
} from "./chunk-W5E72HJA.js";
|
|
58
57
|
import {
|
|
59
58
|
createNdjsonLogger,
|
|
60
59
|
getGlobalPiLensLogDir,
|
|
61
60
|
getMaxLogSizeMB,
|
|
62
|
-
isTestMode
|
|
63
|
-
|
|
61
|
+
isTestMode,
|
|
62
|
+
isToolInstallDisabled
|
|
63
|
+
} from "./chunk-VCRVNLE7.js";
|
|
64
64
|
import {
|
|
65
65
|
BoundedLruCache,
|
|
66
66
|
findLocalToolConfig,
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
isUnderDir,
|
|
69
69
|
realpathOrResolve,
|
|
70
70
|
toPosix
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-CB7PEVOJ.js";
|
|
72
72
|
import {
|
|
73
73
|
__require
|
|
74
74
|
} from "./chunk-NXL4FFQQ.js";
|
|
@@ -373,14 +373,6 @@ var installLockExitCleanupRegistered = false;
|
|
|
373
373
|
function getManagedToolsDir() {
|
|
374
374
|
return TOOLS_DIR;
|
|
375
375
|
}
|
|
376
|
-
function isProcessAlive(pid) {
|
|
377
|
-
try {
|
|
378
|
-
process.kill(pid, 0);
|
|
379
|
-
return true;
|
|
380
|
-
} catch (error) {
|
|
381
|
-
return error.code === "EPERM";
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
376
|
function installLockMaxAgeMs() {
|
|
385
377
|
return (Number(process.env.PI_LENS_INSTALL_TIMEOUT_MS) || 12e4) + 6e4;
|
|
386
378
|
}
|
|
@@ -388,7 +380,7 @@ function legacyInstallLockIsStale(maxAgeMs) {
|
|
|
388
380
|
try {
|
|
389
381
|
const owner = JSON.parse(readFileSync2(INSTALL_LOCK_PATH, "utf8"));
|
|
390
382
|
const expired = Number.isFinite(owner.createdAt) && Date.now() - owner.createdAt > maxAgeMs;
|
|
391
|
-
return expired || Number.isInteger(owner.pid) && owner.pid > 0 && !
|
|
383
|
+
return expired || Number.isInteger(owner.pid) && owner.pid > 0 && !realIsPidAlive(owner.pid);
|
|
392
384
|
} catch {
|
|
393
385
|
try {
|
|
394
386
|
return Date.now() - statSync2(INSTALL_LOCK_PATH).mtimeMs > maxAgeMs;
|
|
@@ -3216,7 +3208,7 @@ ${result.stderr}`);
|
|
|
3216
3208
|
}
|
|
3217
3209
|
}
|
|
3218
3210
|
async function acquireManagedInstallGate(context) {
|
|
3219
|
-
if (
|
|
3211
|
+
if (isToolInstallDisabled()) {
|
|
3220
3212
|
return {
|
|
3221
3213
|
ok: false,
|
|
3222
3214
|
reason: "installation disabled by PI_LENS_DISABLE_TOOL_INSTALL=1"
|
|
@@ -4129,7 +4121,7 @@ async function stampInstallResolution(toolId) {
|
|
|
4129
4121
|
return;
|
|
4130
4122
|
try {
|
|
4131
4123
|
const resolutionId = lastInstallResolutionId.get(toolId);
|
|
4132
|
-
const refresh = await import("./chunk-
|
|
4124
|
+
const refresh = await import("./chunk-N56BNAA6.js");
|
|
4133
4125
|
await refresh.stampManagedToolInstall(toolId, resolutionId);
|
|
4134
4126
|
} catch {
|
|
4135
4127
|
}
|
|
@@ -4142,7 +4134,7 @@ async function finishInstallAttempt(toolId, ok, startedAt) {
|
|
|
4142
4134
|
if (ok) {
|
|
4143
4135
|
resetSafeSpawnWindowsCommandCache();
|
|
4144
4136
|
try {
|
|
4145
|
-
const { resetMadgeManagedPathMemo } = await import("./chunk-
|
|
4137
|
+
const { resetMadgeManagedPathMemo } = await import("./chunk-QJJKOHLH.js");
|
|
4146
4138
|
resetMadgeManagedPathMemo();
|
|
4147
4139
|
} catch (err) {
|
|
4148
4140
|
logSessionStart(`auto-install ${toolId}: madge memo reset failed: ${err.message}`);
|
|
@@ -4151,7 +4143,7 @@ async function finishInstallAttempt(toolId, ok, startedAt) {
|
|
|
4151
4143
|
return ok;
|
|
4152
4144
|
}
|
|
4153
4145
|
async function installTool(toolId, ownsLock) {
|
|
4154
|
-
if (
|
|
4146
|
+
if (isToolInstallDisabled()) {
|
|
4155
4147
|
installFailureReasons.set(toolId, "installation disabled by PI_LENS_DISABLE_TOOL_INSTALL=1");
|
|
4156
4148
|
noteInstallAttempt(toolId, "declined", "installation disabled by PI_LENS_DISABLE_TOOL_INSTALL=1");
|
|
4157
4149
|
logSessionStart(`auto-install ${toolId}: refused \u2014 PI_LENS_DISABLE_TOOL_INSTALL=1`);
|
|
@@ -4172,7 +4164,7 @@ async function installTool(toolId, ownsLock) {
|
|
|
4172
4164
|
return false;
|
|
4173
4165
|
const npmPath = await installNpmTool(tool.id, tool.packageName, tool.binaryName, tool.checkArgs, getToolVerificationTimeout(tool), packageEntryVerification(tool), ownsLock);
|
|
4174
4166
|
if (npmPath !== void 0) {
|
|
4175
|
-
await import("./chunk-
|
|
4167
|
+
await import("./chunk-N56BNAA6.js").then((m) => m.stampManagedToolInstalled(tool.id, tool.packageName)).catch(() => {
|
|
4176
4168
|
});
|
|
4177
4169
|
}
|
|
4178
4170
|
return finishInstallAttempt(tool.id, npmPath !== void 0, startedAt);
|
|
@@ -4275,7 +4267,7 @@ async function ensureToolResolved(toolId, opts) {
|
|
|
4275
4267
|
logSessionStart(`auto-install ensure ${toolId}: force reinstall blocked \u2014 install disabled, discovery only (${Date.now() - ensureStartMs2}ms)`);
|
|
4276
4268
|
return cacheResolvedPath(await getToolPath(toolId));
|
|
4277
4269
|
}
|
|
4278
|
-
if (
|
|
4270
|
+
if (isToolInstallDisabled()) {
|
|
4279
4271
|
installFailureReasons.set(toolId, "installation disabled by PI_LENS_DISABLE_TOOL_INSTALL=1");
|
|
4280
4272
|
noteInstallAttempt(toolId, "declined", "installation disabled by PI_LENS_DISABLE_TOOL_INSTALL=1");
|
|
4281
4273
|
logSessionStart(`auto-install ensure ${toolId}: refused \u2014 PI_LENS_DISABLE_TOOL_INSTALL=1`);
|
|
@@ -4364,7 +4356,7 @@ async function ensureToolResolved(toolId, opts) {
|
|
|
4364
4356
|
logSessionStart(`auto-install ensure ${toolId}: install disabled \u2014 discovery only, not found (${Date.now() - ensureStartMs}ms)`);
|
|
4365
4357
|
return void 0;
|
|
4366
4358
|
}
|
|
4367
|
-
if (
|
|
4359
|
+
if (isToolInstallDisabled()) {
|
|
4368
4360
|
installFailureReasons.set(toolId, "installation disabled by PI_LENS_DISABLE_TOOL_INSTALL=1");
|
|
4369
4361
|
noteInstallAttempt(toolId, "declined", "installation disabled by PI_LENS_DISABLE_TOOL_INSTALL=1");
|
|
4370
4362
|
logSessionStart(`auto-install ensure ${toolId}: refused \u2014 PI_LENS_DISABLE_TOOL_INSTALL=1 (${Date.now() - ensureStartMs}ms)`);
|
|
@@ -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-X5BJ3G2P.js";
|
|
5
5
|
import {
|
|
6
6
|
lazyEnvNumber,
|
|
7
7
|
toPositiveFinite
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VCRVNLE7.js";
|
|
9
9
|
|
|
10
10
|
// dist/clients/project-scale.js
|
|
11
11
|
var DEFAULT_PROJECT_SCALE_BASE = 2e3;
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
OPENGREP_REGISTRY_PACK_URL,
|
|
11
11
|
cachedOpengrepPackPath
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-RTFMDIKV.js";
|
|
13
13
|
import {
|
|
14
14
|
HOOK_WALL_BUDGET_MS
|
|
15
15
|
} from "./chunk-CKEQFGLT.js";
|
|
16
16
|
import {
|
|
17
17
|
bounded
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-MKPDIAZH.js";
|
|
19
19
|
import {
|
|
20
20
|
acquireManagedInstallGate,
|
|
21
21
|
commitDurableStoreAsync,
|
|
@@ -29,42 +29,40 @@ import {
|
|
|
29
29
|
refreshManagedTool,
|
|
30
30
|
resolveManagedNpmBinPath,
|
|
31
31
|
verifyToolBinary
|
|
32
|
-
} from "./chunk-
|
|
33
|
-
import "./chunk-
|
|
32
|
+
} from "./chunk-MQ4PPCJB.js";
|
|
33
|
+
import "./chunk-RNJFRXEN.js";
|
|
34
34
|
import {
|
|
35
35
|
pmBinary,
|
|
36
36
|
resolveNodePackageManager,
|
|
37
37
|
updateArgs
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import "./chunk-
|
|
38
|
+
} from "./chunk-E65WJVI5.js";
|
|
39
|
+
import "./chunk-L6WBJGQS.js";
|
|
40
40
|
import "./chunk-UYXV5NIS.js";
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-AACN5GNE.js";
|
|
42
|
+
import "./chunk-3HTZDY3C.js";
|
|
43
|
+
import "./chunk-CDFJF5YD.js";
|
|
44
|
+
import "./chunk-RNXOWDM6.js";
|
|
45
|
+
import "./chunk-ZCQBNPRH.js";
|
|
46
46
|
import {
|
|
47
47
|
safeSpawnAsync
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-TMNUTMT5.js";
|
|
49
49
|
import "./chunk-AWQWXSW4.js";
|
|
50
50
|
import "./chunk-QYF5S6P6.js";
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-CZCAZVTD.js";
|
|
52
|
+
import "./chunk-X5BJ3G2P.js";
|
|
53
|
+
import "./chunk-NL5LSKVD.js";
|
|
54
54
|
import {
|
|
55
55
|
writeFileAtomicAsync
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-PIIUNJIT.js";
|
|
57
57
|
import {
|
|
58
58
|
recordDegradationOnce
|
|
59
|
-
} from "./chunk-
|
|
60
|
-
import "./chunk-WQV6BI4Q.js";
|
|
59
|
+
} from "./chunk-W5E72HJA.js";
|
|
61
60
|
import "./chunk-S26LC76R.js";
|
|
62
|
-
import "./chunk-565VRUP4.js";
|
|
63
61
|
import {
|
|
64
62
|
isTestMode
|
|
65
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-VCRVNLE7.js";
|
|
66
64
|
import "./chunk-LJDODBBZ.js";
|
|
67
|
-
import "./chunk-
|
|
65
|
+
import "./chunk-CB7PEVOJ.js";
|
|
68
66
|
import "./chunk-NXL4FFQQ.js";
|
|
69
67
|
|
|
70
68
|
// dist/clients/installer/managed-tool-refresh.js
|
|
@@ -9,26 +9,24 @@ import {
|
|
|
9
9
|
getDeadCodeClients,
|
|
10
10
|
parseVultureOutput,
|
|
11
11
|
stableFindingKey
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HEA3EM23.js";
|
|
13
13
|
import "./chunk-7U2IDNXN.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-VO4JFPTV.js";
|
|
15
|
+
import "./chunk-ZZN74OGD.js";
|
|
16
|
+
import "./chunk-J3Q2NYJR.js";
|
|
17
|
+
import "./chunk-E65WJVI5.js";
|
|
18
|
+
import "./chunk-L6WBJGQS.js";
|
|
19
|
+
import "./chunk-AACN5GNE.js";
|
|
20
|
+
import "./chunk-TMNUTMT5.js";
|
|
21
21
|
import "./chunk-AWQWXSW4.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-WQV6BI4Q.js";
|
|
22
|
+
import "./chunk-X5BJ3G2P.js";
|
|
23
|
+
import "./chunk-NL5LSKVD.js";
|
|
24
|
+
import "./chunk-PIIUNJIT.js";
|
|
25
|
+
import "./chunk-W5E72HJA.js";
|
|
27
26
|
import "./chunk-S26LC76R.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-VLQ7UKZH.js";
|
|
27
|
+
import "./chunk-VCRVNLE7.js";
|
|
30
28
|
import "./chunk-LJDODBBZ.js";
|
|
31
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-CB7PEVOJ.js";
|
|
32
30
|
import "./chunk-NXL4FFQQ.js";
|
|
33
31
|
export {
|
|
34
32
|
DEAD_CODE_DELTA_MAX_SHOWN,
|
|
@@ -2,16 +2,16 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
getToolCommandSpec,
|
|
4
4
|
shouldAutoInstallTool
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7R5GZIA6.js";
|
|
6
6
|
import {
|
|
7
7
|
BUILTIN_SERVER_RUNNER_COVERS,
|
|
8
8
|
getServersForFileWithConfig,
|
|
9
9
|
isAuxiliary,
|
|
10
10
|
resolveAnalysisRootPath
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YOXCCJDF.js";
|
|
12
12
|
import {
|
|
13
13
|
emitBounded
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-V67D6TMU.js";
|
|
15
15
|
import {
|
|
16
16
|
ensureTool,
|
|
17
17
|
findManagedToolBinary,
|
|
@@ -21,20 +21,20 @@ import {
|
|
|
21
21
|
isSpawnableCommand,
|
|
22
22
|
logSessionStart,
|
|
23
23
|
resetPathWalkMemo
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-MQ4PPCJB.js";
|
|
25
25
|
import {
|
|
26
26
|
resolveToolCwd
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-RNJFRXEN.js";
|
|
28
28
|
import {
|
|
29
29
|
findGlobalBinary,
|
|
30
30
|
findLocalBinAt,
|
|
31
31
|
findLocalBinUpwards,
|
|
32
32
|
localBinPath
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-E65WJVI5.js";
|
|
34
34
|
import {
|
|
35
35
|
createAvailabilityProbeFlight,
|
|
36
36
|
probeToolAsync
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-L6WBJGQS.js";
|
|
38
38
|
import {
|
|
39
39
|
classifyProbeFailure,
|
|
40
40
|
createAvailabilityLatch,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
logAvailabilityDecision,
|
|
45
45
|
startHostStallSampler,
|
|
46
46
|
transientRetryDelayMs
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-AACN5GNE.js";
|
|
48
48
|
import {
|
|
49
49
|
VENDOR_BIN_DIRS,
|
|
50
50
|
VENV_BIN_DIRS,
|
|
@@ -53,22 +53,22 @@ import {
|
|
|
53
53
|
isInSpawnTimeoutCooldown,
|
|
54
54
|
resolveWindowsCommandForEnvironment,
|
|
55
55
|
safeSpawnAsync
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-TMNUTMT5.js";
|
|
57
57
|
import {
|
|
58
58
|
PathKeyedMap
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-X5BJ3G2P.js";
|
|
60
60
|
import {
|
|
61
61
|
getProjectTrustState
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-PIIUNJIT.js";
|
|
63
63
|
import {
|
|
64
64
|
compareOrdinal,
|
|
65
65
|
incrementDegradationCount
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-W5E72HJA.js";
|
|
67
67
|
import {
|
|
68
68
|
isUnderDir,
|
|
69
69
|
normalizeEphemeralMapKey,
|
|
70
70
|
normalizeMapKey
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-CB7PEVOJ.js";
|
|
72
72
|
|
|
73
73
|
// dist/clients/dispatch/runners/utils/runner-helpers.js
|
|
74
74
|
import * as fs from "node:fs";
|
|
@@ -987,26 +987,7 @@ function resolveAvailableOrInstall(checker, toolId, cwd) {
|
|
|
987
987
|
return promise;
|
|
988
988
|
}
|
|
989
989
|
var sgLatch = createAvailabilityLatch();
|
|
990
|
-
var sgCmd = null;
|
|
991
|
-
var sgCmdArgs = [];
|
|
992
|
-
var sgAvailableInFlight = null;
|
|
993
990
|
var sgAvailabilityGeneration = availabilityGeneration.current();
|
|
994
|
-
function ensureCurrentSgGeneration() {
|
|
995
|
-
if (sgAvailabilityGeneration === availabilityGeneration.current())
|
|
996
|
-
return;
|
|
997
|
-
sgLatch.reset();
|
|
998
|
-
sgCmd = null;
|
|
999
|
-
sgCmdArgs = [];
|
|
1000
|
-
sgAvailableInFlight = null;
|
|
1001
|
-
sgAvailabilityGeneration = availabilityGeneration.current();
|
|
1002
|
-
}
|
|
1003
|
-
function getSgCommand() {
|
|
1004
|
-
ensureCurrentSgGeneration();
|
|
1005
|
-
return {
|
|
1006
|
-
cmd: sgCmd ?? "npx",
|
|
1007
|
-
args: sgCmdArgs.length ? sgCmdArgs : ["--no", "--package", "@ast-grep/cli", "--", "ast-grep"]
|
|
1008
|
-
};
|
|
1009
|
-
}
|
|
1010
991
|
async function resolveLocalFirstAsync(toolName, cwd, windowsExt = ".cmd") {
|
|
1011
992
|
const local = localBinPath(findLocalBinAt(toolName, cwd, { windowsExt }));
|
|
1012
993
|
if (local)
|
|
@@ -1047,7 +1028,6 @@ export {
|
|
|
1047
1028
|
resolveToolCommandWithInstallFallback,
|
|
1048
1029
|
resolveCommandArgsWithInstallFallback,
|
|
1049
1030
|
resolveAvailableOrInstall,
|
|
1050
|
-
getSgCommand,
|
|
1051
1031
|
resolveLocalFirstAsync,
|
|
1052
1032
|
resolveRunnerCwd
|
|
1053
1033
|
};
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-S26LC76R.js";
|
|
7
7
|
import {
|
|
8
8
|
logLatency
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VCRVNLE7.js";
|
|
10
10
|
import {
|
|
11
11
|
isWindowsPath,
|
|
12
12
|
nameMatchesMarkerGlob,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
realpathOrResolve,
|
|
15
15
|
toPosix,
|
|
16
16
|
walkUpDirs
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-CB7PEVOJ.js";
|
|
18
18
|
|
|
19
19
|
// dist/clients/workspace-topology.js
|
|
20
20
|
import * as fs2 from "node:fs";
|
|
@@ -15,21 +15,19 @@ import {
|
|
|
15
15
|
getFilterStats,
|
|
16
16
|
isBuildArtifact,
|
|
17
17
|
sourceTwinCandidates
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-RNXOWDM6.js";
|
|
19
|
+
import "./chunk-ZCQBNPRH.js";
|
|
20
|
+
import "./chunk-TMNUTMT5.js";
|
|
21
21
|
import "./chunk-QYF5S6P6.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-WQV6BI4Q.js";
|
|
22
|
+
import "./chunk-CZCAZVTD.js";
|
|
23
|
+
import "./chunk-X5BJ3G2P.js";
|
|
24
|
+
import "./chunk-NL5LSKVD.js";
|
|
25
|
+
import "./chunk-PIIUNJIT.js";
|
|
26
|
+
import "./chunk-W5E72HJA.js";
|
|
28
27
|
import "./chunk-S26LC76R.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-VLQ7UKZH.js";
|
|
28
|
+
import "./chunk-VCRVNLE7.js";
|
|
31
29
|
import "./chunk-LJDODBBZ.js";
|
|
32
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-CB7PEVOJ.js";
|
|
33
31
|
import "./chunk-NXL4FFQQ.js";
|
|
34
32
|
export {
|
|
35
33
|
ALL_SCANNABLE_EXTENSIONS,
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
getProjectDataDir
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-WQV6BI4Q.js";
|
|
4
|
+
} from "./chunk-TMNUTMT5.js";
|
|
5
|
+
import "./chunk-X5BJ3G2P.js";
|
|
6
|
+
import "./chunk-NL5LSKVD.js";
|
|
7
|
+
import "./chunk-PIIUNJIT.js";
|
|
8
|
+
import "./chunk-W5E72HJA.js";
|
|
10
9
|
import "./chunk-S26LC76R.js";
|
|
11
|
-
import "./chunk-565VRUP4.js";
|
|
12
10
|
import {
|
|
13
11
|
redactSecrets
|
|
14
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VCRVNLE7.js";
|
|
15
13
|
import "./chunk-LJDODBBZ.js";
|
|
16
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-CB7PEVOJ.js";
|
|
17
15
|
import "./chunk-NXL4FFQQ.js";
|
|
18
16
|
|
|
19
17
|
// dist/clients/fix-worklog.js
|
|
@@ -67,31 +65,8 @@ function readWorklog(cwd) {
|
|
|
67
65
|
return [];
|
|
68
66
|
}
|
|
69
67
|
}
|
|
70
|
-
function summarizeWorklog(cwd) {
|
|
71
|
-
const entries = readWorklog(cwd);
|
|
72
|
-
const byRule = /* @__PURE__ */ new Map();
|
|
73
|
-
let totalAutoFixed = 0;
|
|
74
|
-
let totalFixable = 0;
|
|
75
|
-
for (const e of entries) {
|
|
76
|
-
const r = byRule.get(e.rule) ?? { count: 0, autoFixed: 0 };
|
|
77
|
-
r.count++;
|
|
78
|
-
if (e.autoFixed) {
|
|
79
|
-
r.autoFixed++;
|
|
80
|
-
totalAutoFixed++;
|
|
81
|
-
}
|
|
82
|
-
if (e.fixable)
|
|
83
|
-
totalFixable++;
|
|
84
|
-
byRule.set(e.rule, r);
|
|
85
|
-
}
|
|
86
|
-
return {
|
|
87
|
-
totalAutoFixed,
|
|
88
|
-
totalFixable,
|
|
89
|
-
byRule: [...byRule.entries()].map(([rule, v]) => ({ rule, ...v })).sort((a, b) => b.count - a.count)
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
68
|
export {
|
|
93
69
|
appendToWorklog,
|
|
94
70
|
getWorklogPath,
|
|
95
|
-
readWorklog
|
|
96
|
-
summarizeWorklog
|
|
71
|
+
readWorklog
|
|
97
72
|
};
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
DOTNET_CSHARP_ROOT_MARKERS,
|
|
6
6
|
DOTNET_CSHARP_SOLUTION_MARKERS,
|
|
7
7
|
DOTNET_FSHARP_ROOT_MARKERS,
|
|
8
|
+
GROOVY_FILENAMES,
|
|
8
9
|
KIND_EXTENSIONS,
|
|
9
10
|
LEAN_ROOT_MARKERS,
|
|
10
11
|
NON_CODE_KINDS,
|
|
@@ -19,12 +20,11 @@ import {
|
|
|
19
20
|
isHelmYamlTemplatePath,
|
|
20
21
|
isJstsFactFile,
|
|
21
22
|
isReadableSourceFile
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-CZCAZVTD.js";
|
|
24
|
+
import "./chunk-NL5LSKVD.js";
|
|
24
25
|
import "./chunk-S26LC76R.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-GMROJJRN.js";
|
|
26
|
+
import "./chunk-VCRVNLE7.js";
|
|
27
|
+
import "./chunk-CB7PEVOJ.js";
|
|
28
28
|
import "./chunk-NXL4FFQQ.js";
|
|
29
29
|
export {
|
|
30
30
|
CODE_KINDS,
|
|
@@ -32,6 +32,7 @@ export {
|
|
|
32
32
|
DOTNET_CSHARP_ROOT_MARKERS,
|
|
33
33
|
DOTNET_CSHARP_SOLUTION_MARKERS,
|
|
34
34
|
DOTNET_FSHARP_ROOT_MARKERS,
|
|
35
|
+
GROOVY_FILENAMES,
|
|
35
36
|
KIND_EXTENSIONS,
|
|
36
37
|
LEAN_ROOT_MARKERS,
|
|
37
38
|
NON_CODE_KINDS,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
isMutatingToolName
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VWLSU3XV.js";
|
|
5
5
|
import {
|
|
6
6
|
normalizeMapKey
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CB7PEVOJ.js";
|
|
8
8
|
|
|
9
9
|
// dist/clients/agent-behavior-client.js
|
|
10
10
|
var READ_OPS = /* @__PURE__ */ new Set(["read", "bash", "grep", "glob", "find", "rg"]);
|