pi-lens 4.5.0 → 4.5.2
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 +12 -12
- package/CHANGELOG.md +253 -0
- package/README.md +11 -2
- package/config/dependency-cruiser-eager-allowlist.json +1 -0
- package/dist/{chunk-ZULZS2I6.js → chunk-2ERVW2UF.js} +1115 -423
- package/dist/{chunk-BBSDJTOV.js → chunk-2K7BUOKS.js} +13 -13
- package/dist/{chunk-I2FYOZNW.js → chunk-3JJ4OAJI.js} +10 -10
- package/dist/{chunk-5JB4WENL.js → chunk-3UHGSUVL.js} +1 -1
- package/dist/{chunk-W26QZ3OM.js → chunk-463WN3VP.js} +10 -10
- package/dist/{chunk-4IZZEN63.js → chunk-4X3ML2UQ.js} +31 -34
- package/dist/{chunk-I3NZVAMN.js → chunk-5BI5YP57.js} +10 -10
- package/dist/{chunk-7U36VQL6.js → chunk-5Z4XLUFF.js} +3 -3
- package/dist/{chunk-DCA2MXVQ.js → chunk-62AJH3IN.js} +51 -29
- package/dist/{chunk-37IDWT6O.js → chunk-6F34GMP7.js} +16 -14
- package/dist/{chunk-VSQT6IHZ.js → chunk-6LIUVGOR.js} +28 -4
- package/dist/{chunk-27JQHK7Y.js → chunk-6REF4GCO.js} +1 -1
- package/dist/{chunk-INBK3HIT.js → chunk-7KRR24GO.js} +3 -3
- package/dist/{chunk-OZQQ3AIR.js → chunk-7OMOMBEQ.js} +9 -9
- package/dist/{chunk-ARTYCUGF.js → chunk-7ZFXICNN.js} +123 -20
- package/dist/{chunk-K4Z7MK6T.js → chunk-ABKRQVOY.js} +28 -52
- package/dist/{chunk-C5PLBTNR.js → chunk-ANSLRJBG.js} +1 -1
- package/dist/{chunk-HRLF35WL.js → chunk-AWMFBPGJ.js} +9 -9
- package/dist/{chunk-CXQYK4YT.js → chunk-BG7KHGNX.js} +2 -2
- package/dist/{chunk-ZI7YHV6I.js → chunk-BK2R2223.js} +10 -8
- package/dist/chunk-BXXC6KRR.js +107 -0
- package/dist/{chunk-QMWKSYWB.js → chunk-CKJS2AUI.js} +4 -4
- package/dist/{chunk-PPQHMSPH.js → chunk-COGU5KQJ.js} +15 -15
- package/dist/{chunk-NHA5K226.js → chunk-CQNXALZJ.js} +27 -6
- package/dist/{chunk-KZ732ZVW.js → chunk-CSZESDPP.js} +1 -1
- package/dist/chunk-CZ5TCJPB.js +98 -0
- package/dist/{chunk-LOEJFTF2.js → chunk-D2LFEA5U.js} +9 -2
- package/dist/chunk-D3KLF5CD.js +50 -0
- package/dist/{chunk-4DAHGU3V.js → chunk-ENJ2M76Y.js} +31 -29
- package/dist/{chunk-ZQSSO7LO.js → chunk-EQKF6BAK.js} +3 -3
- package/dist/{chunk-PFJLYRO3.js → chunk-F2SAP2FM.js} +40 -47
- package/dist/{chunk-ADYQRETD.js → chunk-F6QAJXQV.js} +2 -2
- package/dist/chunk-GR2QDWH5.js +25 -0
- package/dist/{chunk-LVLPA32Q.js → chunk-GVE5VZYQ.js} +48 -11
- package/dist/{chunk-AZG5UJYY.js → chunk-GWZZOJD2.js} +1 -1
- package/dist/chunk-GZS6VPIE.js +27 -0
- package/dist/chunk-H4B4SC7I.js +71 -0
- package/dist/{chunk-YCR6ZYTE.js → chunk-HA6TUJOE.js} +1 -1
- package/dist/{chunk-DI4AZZNY.js → chunk-HKPJTI47.js} +2 -2
- package/dist/{chunk-O6LCSHHI.js → chunk-HPKC55MA.js} +1 -1
- package/dist/{chunk-LQQNFCQJ.js → chunk-I65CQLCG.js} +1 -1
- package/dist/{chunk-P5MSLVUW.js → chunk-IDKLWVKY.js} +11 -11
- package/dist/chunk-IUM2Q7NF.js +25 -0
- package/dist/{chunk-L6BDRYUK.js → chunk-J24IS3KZ.js} +5 -5
- package/dist/{chunk-KNSOA43J.js → chunk-J2DAHH4T.js} +2 -2
- package/dist/{chunk-7ZVTFLCC.js → chunk-JBDZVOFL.js} +11 -11
- package/dist/{chunk-HIJ4CHFF.js → chunk-JC6NFC57.js} +3 -3
- package/dist/{chunk-K7O6AHSJ.js → chunk-JTHEUTW7.js} +11 -11
- package/dist/{chunk-KXGTLAUW.js → chunk-JWW3ODBN.js} +2 -2
- package/dist/{chunk-HIRBC72R.js → chunk-K3ZIYLHT.js} +4 -4
- package/dist/{chunk-6GLMMGCX.js → chunk-KDPZA2UE.js} +2 -3
- package/dist/{chunk-AXAR5ZW2.js → chunk-KMY2OU4T.js} +553 -434
- package/dist/{chunk-DFKOA74L.js → chunk-KQF7VT26.js} +10 -10
- package/dist/{chunk-S6MCMD27.js → chunk-KVGA7X76.js} +3 -3
- package/dist/{chunk-74AMPWNC.js → chunk-KW7O72AK.js} +2 -2
- package/dist/{chunk-UN72ZAJ5.js → chunk-LEQTVRSV.js} +9 -9
- package/dist/{chunk-B42AIWPJ.js → chunk-LKPSBM6S.js} +3 -3
- package/dist/{chunk-R4L7KZ7R.js → chunk-LKW2HFSZ.js} +9 -9
- package/dist/{chunk-3PO4YYOX.js → chunk-LURFD4HD.js} +4240 -3734
- package/dist/{chunk-PQXUZYTQ.js → chunk-M6ELTECW.js} +4 -4
- package/dist/{chunk-3QXFUP6T.js → chunk-MGVVYYKW.js} +12 -12
- package/dist/{chunk-CZJGAOKL.js → chunk-MQBKGRSB.js} +7 -7
- package/dist/{chunk-NNEQOC3U.js → chunk-MVG2ZEAO.js} +9 -7
- package/dist/{chunk-VWEBZ2JV.js → chunk-MY4XNNTX.js} +39 -41
- package/dist/{chunk-RIH3UBK4.js → chunk-N4AJVFRF.js} +11 -11
- package/dist/{chunk-TKOFTLGB.js → chunk-OFKKMXWM.js} +31 -36
- package/dist/{chunk-3PAS2ERX.js → chunk-OFZE4ANN.js} +8 -8
- package/dist/chunk-OLXBUTJR.js +61 -0
- package/dist/{chunk-6CFSDLHE.js → chunk-OZGEHOSG.js} +38 -17
- package/dist/{chunk-3TSMQZG6.js → chunk-PKGOROPQ.js} +40 -2
- package/dist/{chunk-OLWGYBYT.js → chunk-Q6D5QKRG.js} +17 -17
- package/dist/{chunk-QE7BJQ6K.js → chunk-QECLJFHI.js} +12 -17
- package/dist/{chunk-RJ3APNIP.js → chunk-QJA33VD5.js} +4 -4
- package/dist/{chunk-MOAVEPC4.js → chunk-R5XVJ6AN.js} +11 -11
- package/dist/{chunk-ZRQMENT4.js → chunk-REZL4OM4.js} +1 -1
- package/dist/{chunk-PKWEBMCA.js → chunk-RK5RBREN.js} +251 -201
- package/dist/chunk-RP5ZQTHO.js +86 -0
- package/dist/{chunk-J2ZB5MDS.js → chunk-RURPX2YV.js} +23 -23
- package/dist/chunk-TB5MGZLS.js +53 -0
- package/dist/chunk-TC63XRYP.js +27 -0
- package/dist/chunk-TJOYHAXJ.js +69 -0
- package/dist/{chunk-Q7J3JYJ2.js → chunk-TRXKDCBP.js} +13 -13
- package/dist/{chunk-6E5QLMWI.js → chunk-TTK37D7R.js} +22 -23
- package/dist/{chunk-XDNWR7SG.js → chunk-UH3QHLR5.js} +2 -2
- package/dist/{chunk-SCU62JLX.js → chunk-UNTJJ7GN.js} +7 -7
- package/dist/{chunk-O2MHF7QM.js → chunk-UPAFSETJ.js} +58 -63
- package/dist/{chunk-PQF6YGYB.js → chunk-UX75PTQW.js} +50 -31
- package/dist/{chunk-TWEOJE3D.js → chunk-V353PYMK.js} +1233 -576
- package/dist/{chunk-CQY2HEH7.js → chunk-V4TFQY5G.js} +2 -2
- package/dist/{chunk-B2OXE4AH.js → chunk-VC3W54G3.js} +446 -293
- package/dist/{chunk-JGUDT5KD.js → chunk-VSBCJVPC.js} +5 -5
- package/dist/{chunk-5HBQL7DH.js → chunk-WAQQGXVV.js} +3 -3
- package/dist/{chunk-7DPXUPRF.js → chunk-WLEVWR7Y.js} +2 -2
- package/dist/{chunk-QE5DJ7MX.js → chunk-WPMPVP5I.js} +4 -4
- package/dist/{chunk-KNJH6WJQ.js → chunk-WXNLFOC2.js} +7 -7
- package/dist/{chunk-XSC3BCN3.js → chunk-Y3ZNOZZS.js} +6 -6
- package/dist/{chunk-VGRGW4UL.js → chunk-YL6JQTWC.js} +29 -32
- package/dist/{chunk-7CLWC2UH.js → chunk-YVE5Q2UU.js} +86 -217
- package/dist/{chunk-LGH2HHZG.js → chunk-YZNARDMM.js} +42 -28
- package/dist/{chunk-NGNBJIUO.js → chunk-ZDWNFZJ2.js} +8 -8
- package/dist/{chunk-X33QECRJ.js → chunk-ZEUF7BIN.js} +2 -2
- package/dist/{chunk-2H5GHZKC.js → chunk-ZIF4WLWR.js} +45 -25
- package/dist/{chunk-WLD6BGON.js → chunk-ZSPVF7KI.js} +231 -24
- package/dist/{chunk-SDYLT45T.js → chunk-ZX6OKBVO.js} +2 -2
- package/dist/index.js +10566 -6819
- package/dist/mcp/analyze-cli.js +8 -8
- package/dist/mcp/cli.js +39 -41
- package/dist/mcp/server.js +1083 -685
- package/dist/mcp/worker.js +68 -59
- package/dist/probes/installer.js +21 -22
- package/docs/ci-bot-pr-checks.md +18 -9
- package/docs/ci.md +7 -0
- package/docs/configuration.md +24 -10
- package/docs/defect-shapes.md +61 -30
- package/docs/environment-variables.md +18 -9
- package/docs/globalconfig.md +17 -0
- package/docs/invariants/dispatch-runners.md +22 -0
- package/docs/invariants/lsp-trust-exec.md +33 -3
- package/docs/lsp-capability-matrix.md +23 -10
- package/docs/lsp-idle-eviction.md +7 -1
- package/docs/module-report-read-symbol.md +6 -2
- package/docs/pi-lens-merge-policy.md +3 -2
- package/docs/pi-lens-orchestration.md +2 -1
- package/docs/pi-lens-subagent.md +2 -1
- package/docs/release-qa-baseline.md +22 -17
- package/docs/servercapabilities.md +1 -1
- package/docs/settings.md +10 -2
- package/docs/tools.md +1 -1
- package/docs/usage.md +1 -0
- package/package.json +3 -3
- package/dist/chunk-2H7NFZ4Q.js +0 -25
- package/dist/chunk-5YJXF2IS.js +0 -56
- package/dist/chunk-7WKVCZI4.js +0 -69
- package/dist/chunk-BKWFDWYM.js +0 -46
- package/dist/chunk-G53LBDNU.js +0 -255
- package/dist/chunk-GCSDF5IE.js +0 -27
- package/dist/chunk-H5API74E.js +0 -67
- package/dist/chunk-HBX55MWO.js +0 -27
- package/dist/chunk-JOIKBUQN.js +0 -88
- package/dist/chunk-M2YMBT5G.js +0 -73
- package/dist/chunk-MJRGPEQ5.js +0 -25
- package/dist/chunk-QV3JPCMK.js +0 -17
- package/dist/chunk-TFKN5EIR.js +0 -27
- package/dist/chunk-UNP6Y4JV.js +0 -38
|
@@ -2,7 +2,7 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
MAX_MEASURED_BYTES,
|
|
4
4
|
measureFile
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ANSLRJBG.js";
|
|
6
6
|
import "./chunk-5W3R6LFT.js";
|
|
7
7
|
import {
|
|
8
8
|
isComplexityLanguageId,
|
|
@@ -10,24 +10,24 @@ import {
|
|
|
10
10
|
resolveTreeSitterLanguage,
|
|
11
11
|
walk,
|
|
12
12
|
withTreeSitterRoot
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6F34GMP7.js";
|
|
14
14
|
import "./chunk-Z54ZSOBZ.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-6GLMMGCX.js";
|
|
18
|
-
import "./chunk-3PO4YYOX.js";
|
|
19
|
-
import "./chunk-CQY2HEH7.js";
|
|
20
|
-
import "./chunk-PQF6YGYB.js";
|
|
21
|
-
import "./chunk-LOEJFTF2.js";
|
|
15
|
+
import "./chunk-EQKF6BAK.js";
|
|
16
|
+
import "./chunk-HKPJTI47.js";
|
|
22
17
|
import "./chunk-CIA7X2PZ.js";
|
|
23
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-KDPZA2UE.js";
|
|
19
|
+
import "./chunk-LURFD4HD.js";
|
|
20
|
+
import "./chunk-UX75PTQW.js";
|
|
21
|
+
import "./chunk-V4TFQY5G.js";
|
|
22
|
+
import "./chunk-D2LFEA5U.js";
|
|
23
|
+
import "./chunk-463WN3VP.js";
|
|
24
24
|
import {
|
|
25
25
|
createSubsystemLogger
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-CQNXALZJ.js";
|
|
27
27
|
import "./chunk-S26LC76R.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-YVE5Q2UU.js";
|
|
29
29
|
import "./chunk-LJDODBBZ.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-ZSPVF7KI.js";
|
|
31
31
|
import "./chunk-NXL4FFQQ.js";
|
|
32
32
|
|
|
33
33
|
// dist/clients/complexity-client.js
|
|
@@ -38,18 +38,18 @@ import {
|
|
|
38
38
|
wordIndexKey,
|
|
39
39
|
wordIndexPersistDebounceMs,
|
|
40
40
|
wordIndexPostingHits
|
|
41
|
-
} from "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
41
|
+
} from "./chunk-IDKLWVKY.js";
|
|
42
|
+
import "./chunk-F6QAJXQV.js";
|
|
43
|
+
import "./chunk-HKPJTI47.js";
|
|
44
|
+
import "./chunk-3UHGSUVL.js";
|
|
45
45
|
import "./chunk-QYF5S6P6.js";
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-UX75PTQW.js";
|
|
47
|
+
import "./chunk-V4TFQY5G.js";
|
|
48
|
+
import "./chunk-D2LFEA5U.js";
|
|
49
|
+
import "./chunk-CQNXALZJ.js";
|
|
50
50
|
import "./chunk-S26LC76R.js";
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-YVE5Q2UU.js";
|
|
52
|
+
import "./chunk-ZSPVF7KI.js";
|
|
53
53
|
import "./chunk-NXL4FFQQ.js";
|
|
54
54
|
export {
|
|
55
55
|
WORD_INDEX_FORMAT_VERSION,
|
|
@@ -2,7 +2,7 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
spawnAbortScope,
|
|
4
4
|
spawnCooldownScope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-CQNXALZJ.js";
|
|
6
6
|
|
|
7
7
|
// dist/clients/single-flight.js
|
|
8
8
|
function createSingleFlight(options = {}) {
|
|
@@ -2,8 +2,9 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
logExtension,
|
|
4
4
|
recordDegradation,
|
|
5
|
-
recordDegradationOnce
|
|
6
|
-
|
|
5
|
+
recordDegradationOnce,
|
|
6
|
+
spawnAbortScope
|
|
7
|
+
} from "./chunk-CQNXALZJ.js";
|
|
7
8
|
import {
|
|
8
9
|
stagePathFor
|
|
9
10
|
} from "./chunk-LJDODBBZ.js";
|
|
@@ -69,28 +70,24 @@ function withDeadline(promise, options) {
|
|
|
69
70
|
clearTimeout(timer);
|
|
70
71
|
});
|
|
71
72
|
}
|
|
72
|
-
function withTimeout(promise, timeoutMs) {
|
|
73
|
-
return withDeadline(promise, { ms: timeoutMs });
|
|
74
|
-
}
|
|
75
73
|
function withBudget(promise, budgetMs) {
|
|
76
74
|
return withDeadline(promise, { ms: budgetMs, onTimeout: "undefined" });
|
|
77
75
|
}
|
|
78
76
|
var BOUND_ABORTED = /* @__PURE__ */ Symbol("pi-lens/bounded/aborted");
|
|
79
|
-
async function bounded(
|
|
77
|
+
async function bounded(work, options) {
|
|
80
78
|
const { signal, shutdownSignal, hook, label } = options;
|
|
81
79
|
const ms = Number.isFinite(options.ms) ? Math.max(0, options.ms) : 0;
|
|
82
80
|
const startedAt = Date.now();
|
|
83
|
-
const boxed = promise.then((value) => ({ value }));
|
|
84
|
-
void boxed.catch(() => {
|
|
85
|
-
});
|
|
86
81
|
let cause;
|
|
87
82
|
let timer;
|
|
88
83
|
let onCallerAbort;
|
|
89
84
|
let onShutdownAbort;
|
|
85
|
+
const workController = typeof work === "function" ? new AbortController() : void 0;
|
|
90
86
|
const abandoned = new Promise((resolve) => {
|
|
91
87
|
const fire = (reason) => {
|
|
92
88
|
cause ??= reason;
|
|
93
89
|
resolve(BOUND_ABORTED);
|
|
90
|
+
workController?.abort();
|
|
94
91
|
};
|
|
95
92
|
if (signal?.aborted)
|
|
96
93
|
return fire("caller-abort");
|
|
@@ -109,6 +106,10 @@ async function bounded(promise, options) {
|
|
|
109
106
|
});
|
|
110
107
|
}
|
|
111
108
|
});
|
|
109
|
+
const promise = typeof work === "function" && workController ? spawnAbortScope.run(workController.signal, async () => work(workController.signal)) : work;
|
|
110
|
+
const boxed = promise.then((value) => ({ value }));
|
|
111
|
+
void boxed.catch(() => {
|
|
112
|
+
});
|
|
112
113
|
try {
|
|
113
114
|
const settled = await Promise.race([boxed, abandoned]);
|
|
114
115
|
if (settled !== BOUND_ABORTED)
|
|
@@ -334,7 +335,6 @@ export {
|
|
|
334
335
|
combineAbortSignals,
|
|
335
336
|
untilAborted,
|
|
336
337
|
withDeadline,
|
|
337
|
-
withTimeout,
|
|
338
338
|
withBudget,
|
|
339
339
|
bounded,
|
|
340
340
|
HOOK_WALL_BUDGET_MS,
|
|
@@ -2,70 +2,67 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
biomeConfigArgs,
|
|
4
4
|
resolveManagedToolClient
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-ADYQRETD.js";
|
|
16
|
-
import "./chunk-DI4AZZNY.js";
|
|
5
|
+
} from "./chunk-RK5RBREN.js";
|
|
6
|
+
import "./chunk-KMY2OU4T.js";
|
|
7
|
+
import "./chunk-ZIF4WLWR.js";
|
|
8
|
+
import "./chunk-BG7KHGNX.js";
|
|
9
|
+
import "./chunk-EQKF6BAK.js";
|
|
10
|
+
import "./chunk-GWZZOJD2.js";
|
|
11
|
+
import "./chunk-MVG2ZEAO.js";
|
|
12
|
+
import "./chunk-IDKLWVKY.js";
|
|
13
|
+
import "./chunk-F6QAJXQV.js";
|
|
14
|
+
import "./chunk-HKPJTI47.js";
|
|
17
15
|
import "./chunk-2APSZHHI.js";
|
|
18
16
|
import "./chunk-2BEMIWEW.js";
|
|
19
17
|
import "./chunk-IJYGIDF4.js";
|
|
20
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-VC3W54G3.js";
|
|
21
19
|
import {
|
|
22
20
|
resolveToolCwd
|
|
23
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-GVE5VZYQ.js";
|
|
24
22
|
import {
|
|
25
23
|
findGlobalBinary,
|
|
26
24
|
findLocalBinAt,
|
|
27
25
|
localBinPath
|
|
28
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-YZNARDMM.js";
|
|
29
27
|
import {
|
|
30
28
|
getIsolatedNpxSpawnOptions,
|
|
31
29
|
probeToolAsync
|
|
32
|
-
} from "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-UYXV5NIS.js";
|
|
35
|
-
import "./chunk-KNSOA43J.js";
|
|
30
|
+
} from "./chunk-JWW3ODBN.js";
|
|
31
|
+
import "./chunk-J2DAHH4T.js";
|
|
36
32
|
import {
|
|
37
33
|
classifyProbeFailure,
|
|
38
34
|
createAvailabilityLatch,
|
|
39
35
|
describeInstallAttempt,
|
|
40
36
|
logAvailabilityDecision,
|
|
41
37
|
startHostStallSampler
|
|
42
|
-
} from "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
38
|
+
} from "./chunk-KDPZA2UE.js";
|
|
39
|
+
import "./chunk-Y3ZNOZZS.js";
|
|
40
|
+
import "./chunk-6REF4GCO.js";
|
|
41
|
+
import "./chunk-LKW2HFSZ.js";
|
|
42
|
+
import "./chunk-KW7O72AK.js";
|
|
43
|
+
import "./chunk-TQWRH25U.js";
|
|
44
|
+
import "./chunk-UYXV5NIS.js";
|
|
47
45
|
import {
|
|
48
46
|
getGlobalPiLensDir,
|
|
49
47
|
safeSpawnAsync
|
|
50
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-LURFD4HD.js";
|
|
51
49
|
import {
|
|
52
50
|
createSingleFlight
|
|
53
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-3UHGSUVL.js";
|
|
54
52
|
import "./chunk-QYF5S6P6.js";
|
|
53
|
+
import "./chunk-UX75PTQW.js";
|
|
55
54
|
import {
|
|
56
55
|
isFileKind
|
|
57
|
-
} from "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-CIA7X2PZ.js";
|
|
61
|
-
import "./chunk-W26QZ3OM.js";
|
|
56
|
+
} from "./chunk-V4TFQY5G.js";
|
|
57
|
+
import "./chunk-D2LFEA5U.js";
|
|
58
|
+
import "./chunk-463WN3VP.js";
|
|
62
59
|
import {
|
|
63
60
|
createSubsystemLogger
|
|
64
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-CQNXALZJ.js";
|
|
65
62
|
import "./chunk-S26LC76R.js";
|
|
66
|
-
import "./chunk-
|
|
63
|
+
import "./chunk-YVE5Q2UU.js";
|
|
67
64
|
import "./chunk-LJDODBBZ.js";
|
|
68
|
-
import "./chunk-
|
|
65
|
+
import "./chunk-ZSPVF7KI.js";
|
|
69
66
|
import "./chunk-NXL4FFQQ.js";
|
|
70
67
|
|
|
71
68
|
// dist/clients/biome-client.js
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
collectSourceFiles
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-LKW2HFSZ.js";
|
|
5
|
+
import "./chunk-KW7O72AK.js";
|
|
6
|
+
import "./chunk-LURFD4HD.js";
|
|
7
7
|
import "./chunk-QYF5S6P6.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-UX75PTQW.js";
|
|
9
|
+
import "./chunk-V4TFQY5G.js";
|
|
10
|
+
import "./chunk-D2LFEA5U.js";
|
|
11
|
+
import "./chunk-463WN3VP.js";
|
|
12
|
+
import "./chunk-CQNXALZJ.js";
|
|
13
13
|
import "./chunk-S26LC76R.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-YVE5Q2UU.js";
|
|
15
15
|
import "./chunk-LJDODBBZ.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-ZSPVF7KI.js";
|
|
17
17
|
import "./chunk-NXL4FFQQ.js";
|
|
18
18
|
|
|
19
19
|
// dist/clients/todo-scanner.js
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
} from "./chunk-3MED75HT.js";
|
|
5
5
|
import {
|
|
6
6
|
getProjectDataDir
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LURFD4HD.js";
|
|
8
8
|
import {
|
|
9
9
|
writeFileAtomic
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-463WN3VP.js";
|
|
11
11
|
import {
|
|
12
12
|
normalizeMapKey,
|
|
13
13
|
toProjectRelativePath
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ZSPVF7KI.js";
|
|
15
15
|
|
|
16
16
|
// dist/clients/call-graph.js
|
|
17
17
|
import * as fs from "node:fs";
|
|
@@ -2,49 +2,47 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
augmentPythonEnvironment,
|
|
4
4
|
detectPythonEnvironment,
|
|
5
|
-
emitBounded
|
|
6
|
-
} from "./chunk-2H5GHZKC.js";
|
|
7
|
-
import {
|
|
5
|
+
emitBounded,
|
|
8
6
|
scannerReportParentDir
|
|
9
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZIF4WLWR.js";
|
|
10
8
|
import {
|
|
11
9
|
stripAnsi
|
|
12
10
|
} from "./chunk-6HWVI6MI.js";
|
|
13
11
|
import {
|
|
12
|
+
findCommandOnPath,
|
|
14
13
|
resolveToolCwd
|
|
15
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GVE5VZYQ.js";
|
|
16
15
|
import {
|
|
17
16
|
findGlobalBinary,
|
|
18
17
|
findLocalBinAt,
|
|
19
18
|
localBinPath
|
|
20
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-YZNARDMM.js";
|
|
21
20
|
import {
|
|
22
21
|
getIsolatedNpxSpawnOptions
|
|
23
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-JWW3ODBN.js";
|
|
24
23
|
import {
|
|
25
24
|
resolveLanguageRootForFile
|
|
26
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-Y3ZNOZZS.js";
|
|
27
26
|
import {
|
|
28
27
|
resolveGitCheckout,
|
|
29
|
-
safeSpawn,
|
|
30
28
|
safeSpawnAsync
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import {
|
|
33
|
-
DOTNET_CSHARP_ROOT_MARKERS,
|
|
34
|
-
detectFileKind
|
|
35
|
-
} from "./chunk-CQY2HEH7.js";
|
|
29
|
+
} from "./chunk-LURFD4HD.js";
|
|
36
30
|
import {
|
|
37
31
|
PathKeyedMap,
|
|
38
32
|
detectFileRole
|
|
39
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-UX75PTQW.js";
|
|
34
|
+
import {
|
|
35
|
+
DOTNET_CSHARP_ROOT_MARKERS,
|
|
36
|
+
detectFileKind
|
|
37
|
+
} from "./chunk-V4TFQY5G.js";
|
|
40
38
|
import {
|
|
41
39
|
findNearestDirWithAnyBasename
|
|
42
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-D2LFEA5U.js";
|
|
43
41
|
import {
|
|
44
42
|
LEDGER_FIELD_MAX,
|
|
45
43
|
createSubsystemLogger,
|
|
46
44
|
recordDegradationOnce
|
|
47
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-CQNXALZJ.js";
|
|
48
46
|
import {
|
|
49
47
|
BoundedFifoMap,
|
|
50
48
|
direntsHaveMarkerGlobMatch,
|
|
@@ -60,7 +58,7 @@ import {
|
|
|
60
58
|
relativeInside,
|
|
61
59
|
toPosix,
|
|
62
60
|
toProjectRelativePath
|
|
63
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-ZSPVF7KI.js";
|
|
64
62
|
|
|
65
63
|
// dist/clients/test-runner-client.js
|
|
66
64
|
import { createHash } from "node:crypto";
|
|
@@ -399,6 +397,25 @@ var RUNNERS = {
|
|
|
399
397
|
// mix test's default output is text-based
|
|
400
398
|
}
|
|
401
399
|
};
|
|
400
|
+
function findPathPytest() {
|
|
401
|
+
const isWindows = process.platform === "win32";
|
|
402
|
+
const found = findCommandOnPath("pytest", isWindows);
|
|
403
|
+
if (!found)
|
|
404
|
+
return null;
|
|
405
|
+
if (!isWindows) {
|
|
406
|
+
try {
|
|
407
|
+
fs.accessSync(found, fs.constants.X_OK);
|
|
408
|
+
} catch {
|
|
409
|
+
recordDegradationOnce({
|
|
410
|
+
kind: "test-runner-pytest-not-executable",
|
|
411
|
+
subject: found,
|
|
412
|
+
reason: "the pytest found on PATH lacks the execute bit"
|
|
413
|
+
});
|
|
414
|
+
return null;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
return isAbsoluteFilePath(found) ? found : `${process.cwd()}${path.sep}${found}`;
|
|
418
|
+
}
|
|
402
419
|
function stripWrapperArgs(binName, args) {
|
|
403
420
|
if (args[0] === binName)
|
|
404
421
|
return args.slice(1);
|
|
@@ -603,17 +620,9 @@ var TestRunnerClient = class {
|
|
|
603
620
|
const isPythonSource = typeof sourceFilePath === "string" && sourceFilePath.endsWith(".py");
|
|
604
621
|
if (!isPythonSource)
|
|
605
622
|
return null;
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
timeout: 2e3
|
|
610
|
-
});
|
|
611
|
-
if (result.status === 0) {
|
|
612
|
-
this.log("Detected pytest globally");
|
|
613
|
-
return { runner: "pytest", config: RUNNERS.pytest };
|
|
614
|
-
}
|
|
615
|
-
} catch (err) {
|
|
616
|
-
void err;
|
|
623
|
+
if (findPathPytest()) {
|
|
624
|
+
this.log("Detected pytest on PATH");
|
|
625
|
+
return { runner: "pytest", config: RUNNERS.pytest };
|
|
617
626
|
}
|
|
618
627
|
return null;
|
|
619
628
|
}
|
|
@@ -2180,6 +2189,19 @@ ${stderr}`;
|
|
|
2180
2189
|
ownInstall: true
|
|
2181
2190
|
};
|
|
2182
2191
|
}
|
|
2192
|
+
const pathPytest = findPathPytest();
|
|
2193
|
+
if (pathPytest) {
|
|
2194
|
+
const pythonPath = process.env.PYTHONPATH;
|
|
2195
|
+
return {
|
|
2196
|
+
command: pathPytest,
|
|
2197
|
+
args: stripWrapperArgs("pytest", config.args(testFile, spawnCwd)),
|
|
2198
|
+
env: {
|
|
2199
|
+
...process.env,
|
|
2200
|
+
PYTHONPATH: pythonPath ? `${spawnCwd}${path.delimiter}${pythonPath}` : spawnCwd
|
|
2201
|
+
},
|
|
2202
|
+
ownInstall: false
|
|
2203
|
+
};
|
|
2204
|
+
}
|
|
2183
2205
|
}
|
|
2184
2206
|
if (runner === "phpunit") {
|
|
2185
2207
|
const suffix2 = process.platform === "win32" ? ".bat" : "";
|
|
@@ -8,29 +8,29 @@ import {
|
|
|
8
8
|
js_yaml_default,
|
|
9
9
|
resolvePackagePath,
|
|
10
10
|
ruleCorpusFingerprintForCycle
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-EQKF6BAK.js";
|
|
12
12
|
import {
|
|
13
13
|
EXTENSION_TO_GRAMMAR
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HKPJTI47.js";
|
|
15
|
+
import {
|
|
16
|
+
hashContentBytes
|
|
17
|
+
} from "./chunk-CIA7X2PZ.js";
|
|
15
18
|
import {
|
|
16
19
|
transientRetryDelayMs
|
|
17
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-KDPZA2UE.js";
|
|
18
21
|
import {
|
|
19
22
|
getProjectIgnoreMatcher,
|
|
20
23
|
isExcludedDirName
|
|
21
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-LURFD4HD.js";
|
|
22
25
|
import {
|
|
23
26
|
notifyUserDegradation
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import {
|
|
26
|
-
hashContentBytes
|
|
27
|
-
} from "./chunk-CIA7X2PZ.js";
|
|
27
|
+
} from "./chunk-UX75PTQW.js";
|
|
28
28
|
import {
|
|
29
29
|
assertInstallAllowed,
|
|
30
30
|
getProjectTrustGeneration,
|
|
31
|
-
|
|
31
|
+
withDeadline,
|
|
32
32
|
writeFileAtomic
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-463WN3VP.js";
|
|
34
34
|
import {
|
|
35
35
|
compareOrdinal,
|
|
36
36
|
escapeRegExp,
|
|
@@ -38,14 +38,14 @@ import {
|
|
|
38
38
|
incrementDegradationCount,
|
|
39
39
|
recordDegradation,
|
|
40
40
|
recordDegradationOnce
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-CQNXALZJ.js";
|
|
42
42
|
import {
|
|
43
43
|
createNdjsonLogger,
|
|
44
44
|
getGlobalPiLensLogDir,
|
|
45
45
|
getMaxLogSizeMB,
|
|
46
46
|
isTestMode,
|
|
47
47
|
logLatency
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-YVE5Q2UU.js";
|
|
49
49
|
import {
|
|
50
50
|
BoundedFifoMap,
|
|
51
51
|
normalizeFilePath,
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
relativeInside,
|
|
54
54
|
toPosix,
|
|
55
55
|
walkUpDirs
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-ZSPVF7KI.js";
|
|
57
57
|
|
|
58
58
|
// dist/clients/tree-sitter-logger.js
|
|
59
59
|
import * as path from "node:path";
|
|
@@ -3338,7 +3338,9 @@ var TreeSitterClient = class _TreeSitterClient {
|
|
|
3338
3338
|
this.dbg(`Calling Language.load...`);
|
|
3339
3339
|
const started = this.LanguageLoader.load(grammarPath);
|
|
3340
3340
|
loading = started;
|
|
3341
|
-
const language = await
|
|
3341
|
+
const language = await withDeadline(started, {
|
|
3342
|
+
ms: GRAMMAR_LOAD_TIMEOUT_MS
|
|
3343
|
+
});
|
|
3342
3344
|
this.dbg(`Language loaded: ${language?.name || "unknown"}`);
|
|
3343
3345
|
if (language) {
|
|
3344
3346
|
this.languages.set(languageId, language);
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
getProjectDataDir
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LURFD4HD.js";
|
|
5
5
|
import {
|
|
6
6
|
createNdjsonLogger,
|
|
7
7
|
getGlobalPiLensLogDir,
|
|
8
8
|
getProcessSingleton,
|
|
9
9
|
getTurnId,
|
|
10
10
|
isTestMode
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YVE5Q2UU.js";
|
|
12
12
|
import {
|
|
13
13
|
BoundedFifoMap,
|
|
14
14
|
normalizeFilePath,
|
|
15
15
|
normalizeMapKey,
|
|
16
16
|
toPosix
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ZSPVF7KI.js";
|
|
18
18
|
|
|
19
19
|
// dist/clients/hashline-anchor.js
|
|
20
20
|
var HASHLINE_ANCHOR_LENGTH = 3;
|
|
@@ -105,6 +105,15 @@ function displayedMessage(message) {
|
|
|
105
105
|
function messageIsCutWhenDisplayed(message) {
|
|
106
106
|
return message.length > DISPLAYED_MESSAGE_MAX_CHARS || message.includes("\n");
|
|
107
107
|
}
|
|
108
|
+
function messageWithoutRulePrefix(message, rule) {
|
|
109
|
+
if (!rule)
|
|
110
|
+
return void 0;
|
|
111
|
+
const prefix = `[${rule}]`;
|
|
112
|
+
if (!message.startsWith(prefix))
|
|
113
|
+
return void 0;
|
|
114
|
+
const rest = message.slice(prefix.length).trim();
|
|
115
|
+
return rest.length > 0 ? rest : void 0;
|
|
116
|
+
}
|
|
108
117
|
function findingIdentity(d) {
|
|
109
118
|
return JSON.stringify([
|
|
110
119
|
d.tool ?? "",
|
|
@@ -377,11 +386,25 @@ function isMutatingToolName(toolName) {
|
|
|
377
386
|
}
|
|
378
387
|
var RESOLVED_RANGE_CARRY_LIMIT = 64;
|
|
379
388
|
var RESOLVED_RANGE_CARRY = new BoundedFifoMap(RESOLVED_RANGE_CARRY_LIMIT);
|
|
389
|
+
function classifyBridgeMutation(entry) {
|
|
390
|
+
const provenance = entry.provenance === "observed" || entry.provenance === "settled-sweep" ? entry.provenance : "bridge";
|
|
391
|
+
return {
|
|
392
|
+
toolName: entry.consumer ?? "unknown",
|
|
393
|
+
path: entry.filePath,
|
|
394
|
+
kind: entry.kind,
|
|
395
|
+
touchedLines: entry.touchedLines,
|
|
396
|
+
editRanges: entry.editRanges,
|
|
397
|
+
authorshipUnknown: entry.authorshipUnknown,
|
|
398
|
+
provenance,
|
|
399
|
+
source: provenance === "bridge" ? "mutation-bridge" : "observed-mutation"
|
|
400
|
+
};
|
|
401
|
+
}
|
|
380
402
|
|
|
381
403
|
export {
|
|
382
404
|
normalizeMessage,
|
|
383
405
|
displayedMessage,
|
|
384
406
|
messageIsCutWhenDisplayed,
|
|
407
|
+
messageWithoutRulePrefix,
|
|
385
408
|
findingIdentity,
|
|
386
409
|
foldedFindingIdentity,
|
|
387
410
|
ANY_POSITION,
|
|
@@ -394,5 +417,6 @@ export {
|
|
|
394
417
|
logReadGuardEvent,
|
|
395
418
|
primePersistedMutationAttribution,
|
|
396
419
|
resetMutationAttribution,
|
|
397
|
-
isMutatingToolName
|
|
420
|
+
isMutatingToolName,
|
|
421
|
+
classifyBridgeMutation
|
|
398
422
|
};
|
|
@@ -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-LKW2HFSZ.js";
|
|
6
6
|
|
|
7
7
|
// dist/clients/scan-utils.js
|
|
8
8
|
function getSourceFiles(dir, _isTsProject) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
formatToolFailure
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZX6OKBVO.js";
|
|
5
5
|
import {
|
|
6
6
|
scannerReportParentDir
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZIF4WLWR.js";
|
|
8
8
|
import {
|
|
9
9
|
LEDGER_FIELD_MAX
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CQNXALZJ.js";
|
|
11
11
|
|
|
12
12
|
// dist/clients/report-scan.js
|
|
13
13
|
import * as fs from "node:fs";
|
|
@@ -5,40 +5,40 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
escapeFnmatchLiteral,
|
|
7
7
|
getScratchTreeFnmatchPatterns
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KVGA7X76.js";
|
|
9
9
|
import {
|
|
10
10
|
firstOutputLine,
|
|
11
11
|
formatToolFailure,
|
|
12
12
|
spawnFailedWithNoOutput
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZX6OKBVO.js";
|
|
14
14
|
import {
|
|
15
15
|
findLocalBinsAt
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-YZNARDMM.js";
|
|
17
17
|
import {
|
|
18
18
|
probeToolAsync
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-JWW3ODBN.js";
|
|
20
20
|
import {
|
|
21
21
|
extractTomlTableSection,
|
|
22
22
|
parseTomlStringArray
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-J2DAHH4T.js";
|
|
24
24
|
import {
|
|
25
25
|
classifyProbeFailure,
|
|
26
26
|
createAvailabilityLatch,
|
|
27
27
|
logAvailabilityDecision,
|
|
28
28
|
startHostStallSampler
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-KDPZA2UE.js";
|
|
30
30
|
import {
|
|
31
31
|
VENV_BIN_DIRS,
|
|
32
32
|
listNestedLinkedWorktreeRoots,
|
|
33
33
|
safeSpawnAsync
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-LURFD4HD.js";
|
|
35
35
|
import {
|
|
36
36
|
createSubsystemLogger,
|
|
37
37
|
incrementDegradationCount
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-CQNXALZJ.js";
|
|
39
39
|
import {
|
|
40
40
|
findNearestMarkerRoot
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-ZSPVF7KI.js";
|
|
42
42
|
|
|
43
43
|
// dist/clients/dead-code-client.js
|
|
44
44
|
import * as fs from "node:fs";
|