pi-lens 4.4.3 → 4.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +721 -0
- package/README.md +25 -3
- package/config/dependency-cruiser-eager-allowlist.json +1 -0
- package/dist/chunk-22Y2BM7H.js +23 -0
- package/dist/{chunk-WU567RSC.js → chunk-27VWVB23.js} +16 -14
- package/dist/{chunk-FLKWCIZH.js → chunk-2FYKETQJ.js} +10 -6
- package/dist/{chunk-MQLUAEOC.js → chunk-2LDMXL2M.js} +2 -2
- package/dist/{chunk-YSZNHOBY.js → chunk-2SDHYHHO.js} +17 -17
- package/dist/chunk-2Y6OJRSI.js +38 -0
- package/dist/chunk-3SNDVPOR.js +507 -0
- package/dist/{chunk-EJIUXPBX.js → chunk-3WCEHYOI.js} +1 -1
- package/dist/chunk-44X7VIKR.js +73 -0
- package/dist/{chunk-Q7DUK4LX.js → chunk-4FHUGDKU.js} +16 -14
- package/dist/{chunk-H6MF6EVN.js → chunk-4ODSZ35Z.js} +1498 -534
- package/dist/{chunk-ZGDGW2V3.js → chunk-4U7GDSZQ.js} +2 -2
- package/dist/chunk-54NIOJJZ.js +25 -0
- package/dist/{chunk-ZWFS3OEF.js → chunk-5DKE4HGX.js} +38 -37
- package/dist/{chunk-VRZP76YM.js → chunk-5LRUKYFA.js} +34 -4
- package/dist/{chunk-QOBUHWHX.js → chunk-63NMUNYP.js} +12 -16
- package/dist/{chunk-VWCXW2E7.js → chunk-6XSESGWD.js} +13 -6
- package/dist/{chunk-QGQ5CCCG.js → chunk-72J27ICO.js} +2 -3
- package/dist/{chunk-CSHFH5IN.js → chunk-7FLRUH6B.js} +1 -1
- package/dist/chunk-7IYC4ENJ.js +297 -0
- package/dist/chunk-7WWQAW5P.js +30 -0
- package/dist/{chunk-EU63SDCG.js → chunk-7ZS7MC24.js} +885 -451
- package/dist/{chunk-KBG47GHP.js → chunk-AHWA4AKM.js} +18 -12
- package/dist/{chunk-FMSO6RDZ.js → chunk-AI3GP74G.js} +17 -19
- package/dist/chunk-APFJKOP6.js +67 -0
- package/dist/{chunk-RXCOMYPY.js → chunk-ASRAO7KG.js} +31 -33
- package/dist/{chunk-BW5KFIQC.js → chunk-AWQWXSW4.js} +1 -0
- package/dist/{chunk-QILIYSJF.js → chunk-CG5V25HX.js} +1 -1
- package/dist/chunk-CKEQFGLT.js +32 -0
- package/dist/{chunk-RPLINGVB.js → chunk-COOUUC5W.js} +6 -6
- package/dist/{chunk-GBPP5P7X.js → chunk-CPZ5JJW6.js} +4 -4
- package/dist/{chunk-OCAGUNBC.js → chunk-DS2USX5G.js} +13 -15
- package/dist/chunk-EA2ZRG44.js +27 -0
- package/dist/{chunk-ZHFZWTZV.js → chunk-EDMLIW6W.js} +13 -14
- package/dist/{chunk-2EECBNC5.js → chunk-EIKRZ32J.js} +75 -0
- package/dist/chunk-EKNWOL2I.js +27 -0
- package/dist/{chunk-CMMHNUZ2.js → chunk-ELZRSR5N.js} +65 -43
- package/dist/{chunk-BKE7E7TC.js → chunk-EN5AM7PX.js} +11 -12
- package/dist/{chunk-N2H3ZPZY.js → chunk-EWXXLS26.js} +227 -24
- package/dist/chunk-EX4EXBW7.js +37 -0
- package/dist/{chunk-YYOIQFRS.js → chunk-EXVXBSGN.js} +130 -52
- package/dist/{chunk-6GFRNVYR.js → chunk-F7BO6FWH.js} +12 -13
- package/dist/chunk-FEDWAYDS.js +2485 -0
- package/dist/{chunk-JAU72XNY.js → chunk-FWZRGGGY.js} +73 -9
- package/dist/{chunk-GXW6K4YJ.js → chunk-G224FADB.js} +1 -1
- package/dist/chunk-G5UCJFT7.js +26 -0
- package/dist/{chunk-67WMNWEE.js → chunk-GLW3YDZZ.js} +22 -13
- package/dist/{chunk-724UL2TJ.js → chunk-GTDSYEA2.js} +72 -39
- package/dist/{chunk-PHDMFAKM.js → chunk-GYRZ72R4.js} +10 -4
- package/dist/chunk-HYVXA3BB.js +49 -0
- package/dist/{chunk-SAEFPSB6.js → chunk-IEBJF3PN.js} +23 -15
- package/dist/chunk-IJYGIDF4.js +186 -0
- package/dist/{chunk-ACXEQZOU.js → chunk-IL7K66ZQ.js} +101 -109
- package/dist/{chunk-ZXYDQ3TZ.js → chunk-JWOVP5BL.js} +50 -19
- package/dist/{chunk-OXXKQCSV.js → chunk-K2GUZ4DN.js} +4 -4
- package/dist/{chunk-AW7R2GWG.js → chunk-K4SZB56V.js} +39 -39
- package/dist/{chunk-WOA4LN2R.js → chunk-KCBRHV5E.js} +3 -3
- package/dist/{chunk-3W7IEVVL.js → chunk-KFXCL4OV.js} +47 -45
- package/dist/{chunk-2BBLFX75.js → chunk-KJJAVH3X.js} +81 -15
- package/dist/{chunk-VCHXCQFG.js → chunk-KPVLQHCZ.js} +4 -6
- package/dist/{chunk-P7266HLM.js → chunk-KX56K73G.js} +10 -13
- package/dist/{chunk-VSSBEUFT.js → chunk-LMCTHJ2H.js} +19 -19
- package/dist/{chunk-IBGIOBEE.js → chunk-MEFLGBCS.js} +69 -8
- package/dist/{chunk-TYM6OUIT.js → chunk-MKPCELNI.js} +17 -17
- package/dist/{chunk-XTMJ7XDT.js → chunk-N3PLNNCW.js} +1 -1
- package/dist/chunk-N5FBM25N.js +22 -0
- package/dist/{chunk-CHOW74WE.js → chunk-NFNVDDGB.js} +7 -12
- package/dist/{chunk-52FUZI6K.js → chunk-NLIVE7L6.js} +2 -30
- package/dist/{chunk-SS36ZX4J.js → chunk-OMJ3OFBJ.js} +6 -6
- package/dist/{chunk-4W4VLAPJ.js → chunk-OZNCKLOX.js} +13 -14
- package/dist/chunk-P5XUGPIX.js +31 -0
- package/dist/{chunk-5UCAH366.js → chunk-PJXNTPB2.js} +253 -33
- package/dist/chunk-PKOXJIVT.js +88 -0
- package/dist/{chunk-6C7JWPCP.js → chunk-PP2A5V2T.js} +27 -26
- package/dist/{chunk-L3BLXZG7.js → chunk-Q42LJANT.js} +31 -70
- package/dist/{chunk-AB3YYG6N.js → chunk-Q4BKKOVC.js} +8 -8
- package/dist/{chunk-3EFKIGZN.js → chunk-QT66NEYN.js} +4 -4
- package/dist/{chunk-3VPVG5SU.js → chunk-RCHO5W7M.js} +19 -18
- package/dist/{chunk-77M37OKR.js → chunk-RG3MXTRI.js} +7 -7
- package/dist/chunk-RG7OODGM.js +57 -0
- package/dist/{chunk-T6CPIZNT.js → chunk-RU34BA4D.js} +44 -39
- package/dist/{chunk-JMYYOTQG.js → chunk-S26LC76R.js} +13 -1
- package/dist/{chunk-5NGR67U5.js → chunk-S55TEC7I.js} +33 -5
- package/dist/{chunk-M6HSLBWY.js → chunk-SJHC3BCZ.js} +7956 -8047
- package/dist/{chunk-XCJN5IJU.js → chunk-SNEUMLM7.js} +4 -4
- package/dist/{chunk-UZ3TUTRV.js → chunk-T4NGVFYI.js} +2 -2
- package/dist/{chunk-2VUQMUMT.js → chunk-THEXI2QO.js} +49 -43
- package/dist/{chunk-R3PCY3YS.js → chunk-TL2TCJYL.js} +15 -16
- package/dist/{chunk-C34ZXZ7O.js → chunk-TPYYEDP5.js} +838 -352
- package/dist/{chunk-AOHZU2BM.js → chunk-TVZRLTG6.js} +8 -1
- package/dist/{chunk-XMSXXAHW.js → chunk-UCVMSOXF.js} +2 -2
- package/dist/chunk-UL5SXQVX.js +32 -0
- package/dist/{chunk-GAEGEPOC.js → chunk-UO66IMVP.js} +2 -2
- package/dist/{chunk-N3X6Q4YT.js → chunk-UVY4TOJH.js} +3 -3
- package/dist/{chunk-2CD5RS6M.js → chunk-VIDEKABZ.js} +23 -2
- package/dist/{chunk-JSQFTSC6.js → chunk-VITFDI3O.js} +13 -14
- package/dist/{chunk-YIUAVF7E.js → chunk-VUAVE3QC.js} +42 -42
- package/dist/{chunk-QOZXJ4NA.js → chunk-WUY4BZEP.js} +21 -20
- package/dist/{chunk-VCO24T4L.js → chunk-X3UTCXAA.js} +43 -53
- package/dist/chunk-XHDBJODR.js +45 -0
- package/dist/{chunk-MXGY6KPT.js → chunk-XHLK33VM.js} +28 -21
- package/dist/{chunk-RWWYJ623.js → chunk-XI34NWDI.js} +2 -2
- package/dist/{chunk-QQNQ7SJW.js → chunk-XWFIHYCH.js} +12 -4
- package/dist/{chunk-6SDEP3AJ.js → chunk-Y2TPADJR.js} +10 -11
- package/dist/{chunk-MRXKYPCS.js → chunk-Y5KTA2OB.js} +17 -17
- package/dist/{chunk-7DYBLXYA.js → chunk-YKVDBNPO.js} +11 -5
- package/dist/{chunk-2B73ZPOK.js → chunk-YSDPVDFC.js} +3 -3
- package/dist/chunk-YWNO5Q4R.js +44 -0
- package/dist/{chunk-QHJ6DQ2R.js → chunk-YWWG4AQA.js} +165 -32
- package/dist/{chunk-3JNKMP3B.js → chunk-YXDCRUKQ.js} +4 -4
- package/dist/{chunk-UXGETRP4.js → chunk-YXGRRORB.js} +16 -17
- package/dist/{chunk-SQ4TVJBR.js → chunk-ZAPSUBLU.js} +13 -7
- package/dist/{chunk-76MWC2K6.js → chunk-ZPJM7DID.js} +90 -97
- package/dist/{chunk-XVF2VVXP.js → chunk-ZSUX7KEM.js} +16 -15
- package/dist/index.js +31038 -20893
- package/dist/mcp/analyze-cli.js +11 -11
- package/dist/mcp/cli.js +47 -43
- package/dist/mcp/server.js +2188 -906
- package/dist/mcp/worker.js +66 -63
- package/dist/probes/installer.js +21 -23
- package/dist/workers/project-snapshot-persist-worker.js +28 -9
- package/dist/workers/review-graph-persist-worker.js +1 -1
- package/docs/adr/0010-trace-validation-session-lifecycle.md +390 -0
- package/docs/adr/README.md +1 -0
- package/docs/ast-grep_rules_catalog.md +5 -3
- package/docs/configuration.md +20 -0
- package/docs/engineering-principles.md +44 -0
- package/docs/environment-variables.md +20 -0
- package/docs/features.md +16 -1
- package/docs/globalconfig.md +37 -8
- package/docs/lsp-capability-matrix.md +105 -12
- package/docs/lsp-idle-eviction.md +44 -36
- package/docs/pi-lens-fixer.md +139 -14
- package/docs/pi-lens-investigator.md +14 -0
- package/docs/pi-lens-merge-policy.md +120 -17
- package/docs/pi-lens-monitor.md +71 -9
- package/docs/pi-lens-retro.md +6 -3
- package/docs/pi-lens-reviewer.md +160 -5
- package/docs/pi-lens-subagent.md +29 -14
- package/docs/release-qa-baseline.md +21 -7
- package/docs/servercapabilities.md +53 -63
- package/docs/settings.md +9 -5
- package/docs/subagent-compat.md +1 -1
- package/docs/usage.md +1 -0
- package/package.json +9 -5
- package/rules/ast-grep-rules/rule-tests/no-return-value-in-generator-test.yml +17 -0
- package/rules/ast-grep-rules/rule-tests/no-sql-in-code-execute-js-test.yml +86 -0
- package/rules/ast-grep-rules/rule-tests/no-sql-in-code-execute-test.yml +86 -0
- package/rules/ast-grep-rules/rule-tests/unchecked-numeric-parse-python-test.yml +15 -0
- package/rules/ast-grep-rules/rules/no-return-value-in-generator.yml +9 -4
- package/rules/ast-grep-rules/rules/no-sql-in-code-execute-js.yml +119 -0
- package/rules/ast-grep-rules/rules/no-sql-in-code-execute.yml +119 -0
- package/rules/ast-grep-rules/rules/unchecked-numeric-parse-python.yml +13 -2
- package/rules/rule-catalog.json +25 -1
- package/scripts/analyze-pi-lens-logs.mjs +15 -5
- package/scripts/download-grammars.js +40 -7
- package/scripts/lib/is-main-module.mjs +27 -0
- package/scripts/lib/latency-log-phases.mjs +95 -0
- package/scripts/lib/scratch-home-env.mjs +21 -0
- package/scripts/rpc-load-check.mjs +568 -81
- package/scripts/warm-loader-cache.mjs +2 -5
- package/dist/chunk-23WOO7TX.js +0 -23
- package/dist/chunk-3YN6V5TV.js +0 -85
- package/dist/chunk-466Z26MG.js +0 -30
- package/dist/chunk-4UNXBNE2.js +0 -24
- package/dist/chunk-6STA6Z7I.js +0 -47
- package/dist/chunk-ABBOA7UD.js +0 -157
- package/dist/chunk-BRGDSBJE.js +0 -28
- package/dist/chunk-EC47DWFA.js +0 -56
- package/dist/chunk-FCSOVF55.js +0 -273
- package/dist/chunk-IZSHAIJ7.js +0 -26
- package/dist/chunk-KDERNTCQ.js +0 -28
- package/dist/chunk-KSX3TXSZ.js +0 -69
- package/dist/chunk-LOP6GRPH.js +0 -31
- package/dist/chunk-PNQDPDRC.js +0 -184
- package/dist/chunk-UOPVJQ4N.js +0 -103
- package/dist/chunk-XAGLWMJ4.js +0 -51
- package/dist/chunk-XIJZVPD5.js +0 -39
- package/dist/chunk-Z3CCVDUB.js +0 -76
- package/dist/chunk-Z527N6YQ.js +0 -28
- package/dist/chunk-ZANLILYD.js +0 -79
- /package/dist/{chunk-FC4RP4I2.js → chunk-6HWVI6MI.js} +0 -0
package/dist/chunk-UOPVJQ4N.js
DELETED
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
stagePathFor
|
|
4
|
-
} from "./chunk-LJDODBBZ.js";
|
|
5
|
-
|
|
6
|
-
// dist/clients/gzip-stage-write.js
|
|
7
|
-
import * as fs from "node:fs";
|
|
8
|
-
import * as path from "node:path";
|
|
9
|
-
import { Readable } from "node:stream";
|
|
10
|
-
import { pipeline } from "node:stream/promises";
|
|
11
|
-
import { parentPort } from "node:worker_threads";
|
|
12
|
-
import { createGzip } from "node:zlib";
|
|
13
|
-
async function writeGzipStageFile(data, stagePath, testDelayMs, options) {
|
|
14
|
-
const startedAt = performance.now();
|
|
15
|
-
const tmpPath = stagePathFor(stagePath);
|
|
16
|
-
try {
|
|
17
|
-
if (testDelayMs) {
|
|
18
|
-
await new Promise((resolve) => setTimeout(resolve, testDelayMs));
|
|
19
|
-
}
|
|
20
|
-
const serializeStarted = performance.now();
|
|
21
|
-
const body = data instanceof Uint8Array ? data : JSON.stringify(data);
|
|
22
|
-
const serializeMs = performance.now() - serializeStarted;
|
|
23
|
-
const rawBytes = Buffer.byteLength(body);
|
|
24
|
-
const semanticFingerprint = options?.semanticFingerprint?.(body);
|
|
25
|
-
if (semanticFingerprint !== void 0 && options?.skipIfFingerprints?.includes(semanticFingerprint)) {
|
|
26
|
-
return {
|
|
27
|
-
rawBytes,
|
|
28
|
-
gzBytes: 0,
|
|
29
|
-
serializeMs,
|
|
30
|
-
writeMs: 0,
|
|
31
|
-
durationMs: performance.now() - startedAt,
|
|
32
|
-
semanticFingerprint,
|
|
33
|
-
skippedUnchanged: true
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
const writeStarted = performance.now();
|
|
37
|
-
await fs.promises.mkdir(path.dirname(stagePath), { recursive: true });
|
|
38
|
-
const chunks = function* () {
|
|
39
|
-
const chunkSize = 256 * 1024;
|
|
40
|
-
let offset = 0;
|
|
41
|
-
while (offset < body.length) {
|
|
42
|
-
let end = Math.min(offset + chunkSize, body.length);
|
|
43
|
-
if (typeof body === "string" && end < body.length) {
|
|
44
|
-
const last = body.charCodeAt(end - 1);
|
|
45
|
-
if (last >= 55296 && last <= 56319)
|
|
46
|
-
end--;
|
|
47
|
-
}
|
|
48
|
-
yield typeof body === "string" ? body.slice(offset, end) : body.subarray(offset, end);
|
|
49
|
-
offset = end;
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
await pipeline(Readable.from(chunks()), createGzip(), fs.createWriteStream(tmpPath));
|
|
53
|
-
await fs.promises.rename(tmpPath, stagePath);
|
|
54
|
-
const writeMs = performance.now() - writeStarted;
|
|
55
|
-
const gzBytes = (await fs.promises.stat(stagePath)).size;
|
|
56
|
-
return {
|
|
57
|
-
rawBytes,
|
|
58
|
-
gzBytes,
|
|
59
|
-
serializeMs,
|
|
60
|
-
writeMs,
|
|
61
|
-
durationMs: performance.now() - startedAt,
|
|
62
|
-
semanticFingerprint
|
|
63
|
-
};
|
|
64
|
-
} catch (err) {
|
|
65
|
-
await fs.promises.rm(tmpPath, { force: true }).catch(() => {
|
|
66
|
-
});
|
|
67
|
-
throw err;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
function serveGzipStageWorker(buildBaseResult, options) {
|
|
71
|
-
const port = parentPort;
|
|
72
|
-
if (!port) {
|
|
73
|
-
throw new Error("gzip stage persist worker requires a parent port");
|
|
74
|
-
}
|
|
75
|
-
port.on("message", (request) => {
|
|
76
|
-
void (async () => {
|
|
77
|
-
const result = {
|
|
78
|
-
...buildBaseResult(request)
|
|
79
|
-
};
|
|
80
|
-
try {
|
|
81
|
-
const fingerprint = options?.semanticFingerprint;
|
|
82
|
-
const metrics = await writeGzipStageFile(request.data, request.stagePath, request.testDelayMs, {
|
|
83
|
-
semanticFingerprint: fingerprint ? (body) => fingerprint(request, body) : void 0,
|
|
84
|
-
skipIfFingerprints: options?.skipIfFingerprints?.(request)
|
|
85
|
-
});
|
|
86
|
-
result.rawBytes = metrics.rawBytes;
|
|
87
|
-
result.gzBytes = metrics.gzBytes;
|
|
88
|
-
result.serializeMs = metrics.serializeMs;
|
|
89
|
-
result.writeMs = metrics.writeMs;
|
|
90
|
-
result.durationMs = metrics.durationMs;
|
|
91
|
-
result.semanticFingerprint = metrics.semanticFingerprint;
|
|
92
|
-
result.skippedUnchanged = metrics.skippedUnchanged;
|
|
93
|
-
} catch (err) {
|
|
94
|
-
result.error = err instanceof Error ? err.message : String(err);
|
|
95
|
-
}
|
|
96
|
-
port.postMessage(result);
|
|
97
|
-
})();
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export {
|
|
102
|
-
serveGzipStageWorker
|
|
103
|
-
};
|
package/dist/chunk-XAGLWMJ4.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
MAX_CANONICAL_ROOT_MEMO_ENTRIES,
|
|
4
|
-
RUNNERS,
|
|
5
|
-
SOURCE_TO_TEST_PATTERNS,
|
|
6
|
-
TURN_END_EXCLUDED_TEST_GLOBS,
|
|
7
|
-
TestRunnerClient,
|
|
8
|
-
isExcludedTestTarget,
|
|
9
|
-
isRunnerErrorResult,
|
|
10
|
-
stripWrapperArgs
|
|
11
|
-
} from "./chunk-VCO24T4L.js";
|
|
12
|
-
import "./chunk-FC4RP4I2.js";
|
|
13
|
-
import "./chunk-FCSOVF55.js";
|
|
14
|
-
import "./chunk-PNQDPDRC.js";
|
|
15
|
-
import "./chunk-P7266HLM.js";
|
|
16
|
-
import "./chunk-Z3CCVDUB.js";
|
|
17
|
-
import "./chunk-Q7DUK4LX.js";
|
|
18
|
-
import "./chunk-AW7R2GWG.js";
|
|
19
|
-
import "./chunk-RWWYJ623.js";
|
|
20
|
-
import "./chunk-VRZP76YM.js";
|
|
21
|
-
import "./chunk-QOBUHWHX.js";
|
|
22
|
-
import "./chunk-QILIYSJF.js";
|
|
23
|
-
import "./chunk-6C7JWPCP.js";
|
|
24
|
-
import "./chunk-5NGR67U5.js";
|
|
25
|
-
import "./chunk-C34ZXZ7O.js";
|
|
26
|
-
import "./chunk-BW5KFIQC.js";
|
|
27
|
-
import "./chunk-QYF5S6P6.js";
|
|
28
|
-
import "./chunk-PHDMFAKM.js";
|
|
29
|
-
import "./chunk-2BBLFX75.js";
|
|
30
|
-
import "./chunk-XVF2VVXP.js";
|
|
31
|
-
import "./chunk-ZANLILYD.js";
|
|
32
|
-
import "./chunk-2EECBNC5.js";
|
|
33
|
-
import "./chunk-JAU72XNY.js";
|
|
34
|
-
import "./chunk-XTMJ7XDT.js";
|
|
35
|
-
import "./chunk-JMYYOTQG.js";
|
|
36
|
-
import "./chunk-QQNQ7SJW.js";
|
|
37
|
-
import "./chunk-AOHZU2BM.js";
|
|
38
|
-
import "./chunk-LJDODBBZ.js";
|
|
39
|
-
import "./chunk-ABBOA7UD.js";
|
|
40
|
-
import "./chunk-N2H3ZPZY.js";
|
|
41
|
-
import "./chunk-NXL4FFQQ.js";
|
|
42
|
-
export {
|
|
43
|
-
MAX_CANONICAL_ROOT_MEMO_ENTRIES,
|
|
44
|
-
RUNNERS,
|
|
45
|
-
SOURCE_TO_TEST_PATTERNS,
|
|
46
|
-
TURN_END_EXCLUDED_TEST_GLOBS,
|
|
47
|
-
TestRunnerClient,
|
|
48
|
-
isExcludedTestTarget,
|
|
49
|
-
isRunnerErrorResult,
|
|
50
|
-
stripWrapperArgs
|
|
51
|
-
};
|
package/dist/chunk-XIJZVPD5.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
GitleaksClient,
|
|
4
|
-
PLACEHOLDER_SECRET_REGEXES,
|
|
5
|
-
classifyAndFilterFindings,
|
|
6
|
-
hasGitRepo,
|
|
7
|
-
hasGitleaksSignal,
|
|
8
|
-
parseGitleaksReport,
|
|
9
|
-
writeScopedGitleaksConfig
|
|
10
|
-
} from "./chunk-SS36ZX4J.js";
|
|
11
|
-
import "./chunk-CSHFH5IN.js";
|
|
12
|
-
import "./chunk-VCHXCQFG.js";
|
|
13
|
-
import "./chunk-3EFKIGZN.js";
|
|
14
|
-
import "./chunk-PNQDPDRC.js";
|
|
15
|
-
import "./chunk-RWWYJ623.js";
|
|
16
|
-
import "./chunk-VRZP76YM.js";
|
|
17
|
-
import "./chunk-C34ZXZ7O.js";
|
|
18
|
-
import "./chunk-BW5KFIQC.js";
|
|
19
|
-
import "./chunk-2BBLFX75.js";
|
|
20
|
-
import "./chunk-XVF2VVXP.js";
|
|
21
|
-
import "./chunk-2EECBNC5.js";
|
|
22
|
-
import "./chunk-JAU72XNY.js";
|
|
23
|
-
import "./chunk-XTMJ7XDT.js";
|
|
24
|
-
import "./chunk-JMYYOTQG.js";
|
|
25
|
-
import "./chunk-QQNQ7SJW.js";
|
|
26
|
-
import "./chunk-AOHZU2BM.js";
|
|
27
|
-
import "./chunk-LJDODBBZ.js";
|
|
28
|
-
import "./chunk-ABBOA7UD.js";
|
|
29
|
-
import "./chunk-N2H3ZPZY.js";
|
|
30
|
-
import "./chunk-NXL4FFQQ.js";
|
|
31
|
-
export {
|
|
32
|
-
GitleaksClient,
|
|
33
|
-
PLACEHOLDER_SECRET_REGEXES,
|
|
34
|
-
classifyAndFilterFindings,
|
|
35
|
-
hasGitRepo,
|
|
36
|
-
hasGitleaksSignal,
|
|
37
|
-
parseGitleaksReport,
|
|
38
|
-
writeScopedGitleaksConfig
|
|
39
|
-
};
|
package/dist/chunk-Z3CCVDUB.js
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
BoundedFifoMap
|
|
4
|
-
} from "./chunk-ABBOA7UD.js";
|
|
5
|
-
|
|
6
|
-
// dist/clients/path-keyed-map.js
|
|
7
|
-
var PathKeyedMap = class {
|
|
8
|
-
normalize;
|
|
9
|
-
store;
|
|
10
|
-
/**
|
|
11
|
-
* `maxEntries` bounds the map with insertion-order (FIFO) eviction, on
|
|
12
|
-
* `BoundedFifoMap` — the repo's one eviction implementation (#2442). Omit
|
|
13
|
-
* it for an unbounded map. A path-keyed map that needs a bound gets it
|
|
14
|
-
* here rather than hand-rolling `keys().next().value` at the call site,
|
|
15
|
-
* which is what `PartialApplyRecordStore` did before #2442's review round.
|
|
16
|
-
*
|
|
17
|
-
* FIFO, not LRU, and evicting AFTER the write, not before: a `set` of an
|
|
18
|
-
* already-resident path is an update, and must not drop an unrelated file
|
|
19
|
-
* to make room for a key that needs none.
|
|
20
|
-
*/
|
|
21
|
-
constructor(normalize, maxEntries) {
|
|
22
|
-
this.normalize = normalize;
|
|
23
|
-
this.store = maxEntries === void 0 ? /* @__PURE__ */ new Map() : new BoundedFifoMap(maxEntries);
|
|
24
|
-
}
|
|
25
|
-
get size() {
|
|
26
|
-
return this.store.size;
|
|
27
|
-
}
|
|
28
|
-
get(path) {
|
|
29
|
-
return this.store.get(this.normalize(path))?.value;
|
|
30
|
-
}
|
|
31
|
-
has(path) {
|
|
32
|
-
return this.store.has(this.normalize(path));
|
|
33
|
-
}
|
|
34
|
-
set(path, value) {
|
|
35
|
-
this.store.set(this.normalize(path), { displayPath: path, value });
|
|
36
|
-
return this;
|
|
37
|
-
}
|
|
38
|
-
delete(path) {
|
|
39
|
-
if (this.store.delete(this.normalize(path)))
|
|
40
|
-
return true;
|
|
41
|
-
for (const [key, entry] of this.store) {
|
|
42
|
-
if (entry.displayPath !== path)
|
|
43
|
-
continue;
|
|
44
|
-
this.store.delete(key);
|
|
45
|
-
return true;
|
|
46
|
-
}
|
|
47
|
-
return false;
|
|
48
|
-
}
|
|
49
|
-
clear() {
|
|
50
|
-
this.store.clear();
|
|
51
|
-
}
|
|
52
|
-
*keys() {
|
|
53
|
-
for (const entry of this.store.values())
|
|
54
|
-
yield entry.displayPath;
|
|
55
|
-
}
|
|
56
|
-
*values() {
|
|
57
|
-
for (const entry of this.store.values())
|
|
58
|
-
yield entry.value;
|
|
59
|
-
}
|
|
60
|
-
*entries() {
|
|
61
|
-
for (const entry of this.store.values())
|
|
62
|
-
yield [entry.displayPath, entry.value];
|
|
63
|
-
}
|
|
64
|
-
forEach(callback) {
|
|
65
|
-
for (const entry of this.store.values()) {
|
|
66
|
-
callback(entry.value, entry.displayPath, this);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
[Symbol.iterator]() {
|
|
70
|
-
return this.entries();
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
export {
|
|
75
|
-
PathKeyedMap
|
|
76
|
-
};
|
package/dist/chunk-Z527N6YQ.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
GoClient,
|
|
4
|
-
goClient,
|
|
5
|
-
resetGoAvailability
|
|
6
|
-
} from "./chunk-XMSXXAHW.js";
|
|
7
|
-
import "./chunk-7DYBLXYA.js";
|
|
8
|
-
import "./chunk-RWWYJ623.js";
|
|
9
|
-
import "./chunk-VRZP76YM.js";
|
|
10
|
-
import "./chunk-C34ZXZ7O.js";
|
|
11
|
-
import "./chunk-BW5KFIQC.js";
|
|
12
|
-
import "./chunk-2BBLFX75.js";
|
|
13
|
-
import "./chunk-XVF2VVXP.js";
|
|
14
|
-
import "./chunk-2EECBNC5.js";
|
|
15
|
-
import "./chunk-JAU72XNY.js";
|
|
16
|
-
import "./chunk-XTMJ7XDT.js";
|
|
17
|
-
import "./chunk-JMYYOTQG.js";
|
|
18
|
-
import "./chunk-QQNQ7SJW.js";
|
|
19
|
-
import "./chunk-AOHZU2BM.js";
|
|
20
|
-
import "./chunk-LJDODBBZ.js";
|
|
21
|
-
import "./chunk-ABBOA7UD.js";
|
|
22
|
-
import "./chunk-N2H3ZPZY.js";
|
|
23
|
-
import "./chunk-NXL4FFQQ.js";
|
|
24
|
-
export {
|
|
25
|
-
GoClient,
|
|
26
|
-
goClient,
|
|
27
|
-
resetGoAvailability
|
|
28
|
-
};
|
package/dist/chunk-ZANLILYD.js
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
recordDegradation
|
|
4
|
-
} from "./chunk-JAU72XNY.js";
|
|
5
|
-
import {
|
|
6
|
-
logExtension
|
|
7
|
-
} from "./chunk-XTMJ7XDT.js";
|
|
8
|
-
|
|
9
|
-
// dist/clients/project-trust.js
|
|
10
|
-
var trustState = "unknown";
|
|
11
|
-
var installRefusalWarnings = /* @__PURE__ */ new Set();
|
|
12
|
-
var INSTALL_REFUSAL_WARNING_CAP = 200;
|
|
13
|
-
var trustGeneration = 0;
|
|
14
|
-
function getProjectTrustGeneration() {
|
|
15
|
-
return trustGeneration;
|
|
16
|
-
}
|
|
17
|
-
function latchProjectTrustState(next) {
|
|
18
|
-
if (next === trustState)
|
|
19
|
-
return;
|
|
20
|
-
trustState = next;
|
|
21
|
-
installRefusalWarnings.clear();
|
|
22
|
-
trustGeneration += 1;
|
|
23
|
-
}
|
|
24
|
-
function setProjectTrustState(next) {
|
|
25
|
-
const previous = trustState;
|
|
26
|
-
latchProjectTrustState(next);
|
|
27
|
-
if (previous !== next) {
|
|
28
|
-
logExtension({
|
|
29
|
-
subsystem: "project-trust",
|
|
30
|
-
level: "debug",
|
|
31
|
-
message: `project trust state transitioned: ${previous} -> ${next}`,
|
|
32
|
-
metadata: { previous, next }
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
function getProjectTrustState() {
|
|
37
|
-
return trustState;
|
|
38
|
-
}
|
|
39
|
-
function isToolInstallAllowedByTrust() {
|
|
40
|
-
return trustState !== "untrusted";
|
|
41
|
-
}
|
|
42
|
-
function assertInstallAllowed(context) {
|
|
43
|
-
if (isToolInstallAllowedByTrust())
|
|
44
|
-
return true;
|
|
45
|
-
recordDegradation({
|
|
46
|
-
kind: "trust-refusal",
|
|
47
|
-
subject: context,
|
|
48
|
-
reason: projectTrustDenialReason() ?? "project trust denied"
|
|
49
|
-
});
|
|
50
|
-
if (!installRefusalWarnings.has(context)) {
|
|
51
|
-
if (installRefusalWarnings.size >= INSTALL_REFUSAL_WARNING_CAP) {
|
|
52
|
-
installRefusalWarnings.clear();
|
|
53
|
-
}
|
|
54
|
-
installRefusalWarnings.add(context);
|
|
55
|
-
logExtension({
|
|
56
|
-
subsystem: "project-trust",
|
|
57
|
-
level: "warn",
|
|
58
|
-
message: `install/materialization blocked: ${context}`,
|
|
59
|
-
metadata: { context, trustState }
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
return false;
|
|
63
|
-
}
|
|
64
|
-
function isLspSpawnAllowedByTrust() {
|
|
65
|
-
return trustState !== "untrusted";
|
|
66
|
-
}
|
|
67
|
-
function projectTrustDenialReason() {
|
|
68
|
-
return trustState === "untrusted" ? "project is not trusted (host isProjectTrusted() === false)" : void 0;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export {
|
|
72
|
-
getProjectTrustGeneration,
|
|
73
|
-
setProjectTrustState,
|
|
74
|
-
getProjectTrustState,
|
|
75
|
-
isToolInstallAllowedByTrust,
|
|
76
|
-
assertInstallAllowed,
|
|
77
|
-
isLspSpawnAllowedByTrust,
|
|
78
|
-
projectTrustDenialReason
|
|
79
|
-
};
|
|
File without changes
|