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
|
@@ -1,38 +1,39 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
scannerReportParentDir
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7FLRUH6B.js";
|
|
5
5
|
import {
|
|
6
6
|
getScratchTreeDirNames
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KPVLQHCZ.js";
|
|
8
8
|
import {
|
|
9
9
|
SecurityScanClient
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QT66NEYN.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveOpengrepConfig
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
} from "./chunk-6XSESGWD.js";
|
|
14
|
+
import {
|
|
15
|
+
stripPackRuleIdPrefix
|
|
16
|
+
} from "./chunk-UL5SXQVX.js";
|
|
17
|
+
import "./chunk-XI34NWDI.js";
|
|
18
|
+
import "./chunk-5LRUKYFA.js";
|
|
17
19
|
import {
|
|
18
20
|
safeSpawnAsync
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-TPYYEDP5.js";
|
|
22
|
+
import "./chunk-AWQWXSW4.js";
|
|
23
|
+
import "./chunk-KJJAVH3X.js";
|
|
24
|
+
import "./chunk-ZSUX7KEM.js";
|
|
25
|
+
import "./chunk-EIKRZ32J.js";
|
|
24
26
|
import {
|
|
25
27
|
recordDegradationOnce
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-FWZRGGGY.js";
|
|
29
|
+
import "./chunk-N3PLNNCW.js";
|
|
30
|
+
import "./chunk-S26LC76R.js";
|
|
31
|
+
import "./chunk-XWFIHYCH.js";
|
|
32
|
+
import "./chunk-TVZRLTG6.js";
|
|
31
33
|
import "./chunk-LJDODBBZ.js";
|
|
32
|
-
import "./chunk-ABBOA7UD.js";
|
|
33
34
|
import {
|
|
34
35
|
realpathOrResolve
|
|
35
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-EWXXLS26.js";
|
|
36
37
|
import "./chunk-NXL4FFQQ.js";
|
|
37
38
|
|
|
38
39
|
// dist/clients/opengrep-client.js
|
|
@@ -65,7 +66,7 @@ var OpengrepClient = class _OpengrepClient extends SecurityScanClient {
|
|
|
65
66
|
return this.ensureViaInstaller(["--version"]);
|
|
66
67
|
}
|
|
67
68
|
/**
|
|
68
|
-
* Scan a directory tree with opengrep's rule set (local config
|
|
69
|
+
* Scan a directory tree with opengrep's rule set (local config, else the refreshed pack, else `auto`).
|
|
69
70
|
* Re-entrancy safe: concurrent calls against the same root share a single
|
|
70
71
|
* opengrep process (mirrors `GitleaksClient`/`JscpdClient`).
|
|
71
72
|
*/
|
|
@@ -86,6 +87,7 @@ var OpengrepClient = class _OpengrepClient extends SecurityScanClient {
|
|
|
86
87
|
const scannedAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
87
88
|
const bin = this.binaryPath ?? "opengrep";
|
|
88
89
|
const resolved = _OpengrepClient.resolveConfig(cwd);
|
|
90
|
+
const packPath = resolved.source === "pack" ? resolved.configArg : void 0;
|
|
89
91
|
const outDir = mkdtempSync(path.join(scannerReportParentDir(), "pi-lens-opengrep-"));
|
|
90
92
|
const reportPath = path.join(outDir, "opengrep-report.json");
|
|
91
93
|
try {
|
|
@@ -177,7 +179,12 @@ var OpengrepClient = class _OpengrepClient extends SecurityScanClient {
|
|
|
177
179
|
...report.partial ? { partial: true } : {},
|
|
178
180
|
...report.partial ? { summary: report.partial.reason } : {},
|
|
179
181
|
...report.partial && report.scanned.length === 0 ? { reason: "partial-no-paths" } : {},
|
|
180
|
-
|
|
182
|
+
// The cached pack is loaded from a path, so Opengrep prefixes its rule
|
|
183
|
+
// ids with it; report the registry-form id instead.
|
|
184
|
+
findings: packPath ? report.findings.map((finding) => ({
|
|
185
|
+
...finding,
|
|
186
|
+
checkId: stripPackRuleIdPrefix(finding.checkId, packPath)
|
|
187
|
+
})) : report.findings,
|
|
181
188
|
scannedAt
|
|
182
189
|
};
|
|
183
190
|
} catch (err) {
|
|
@@ -2,10 +2,10 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
getGlobalPiLensDir,
|
|
4
4
|
safeSpawnAsync
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TPYYEDP5.js";
|
|
6
6
|
import {
|
|
7
7
|
createSingleFlight
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AWQWXSW4.js";
|
|
9
9
|
|
|
10
10
|
// dist/clients/tool-probe.js
|
|
11
11
|
import * as fs from "node:fs";
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
getMaxLogSizeMB,
|
|
6
6
|
getTurnId,
|
|
7
7
|
isTestMode
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TVZRLTG6.js";
|
|
9
9
|
import {
|
|
10
10
|
normalizeLoggedPath
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-EWXXLS26.js";
|
|
12
12
|
|
|
13
13
|
// dist/clients/latency-logger.js
|
|
14
14
|
import * as path from "node:path";
|
|
@@ -33,6 +33,7 @@ var LAST_PHASE_EXCLUDED = /* @__PURE__ */ new Set([
|
|
|
33
33
|
"turn_end_test_selection",
|
|
34
34
|
"lsp_aux_wait_outcome",
|
|
35
35
|
"tool_set_mutation",
|
|
36
|
+
"tool_set_decision",
|
|
36
37
|
"availability_decision",
|
|
37
38
|
"finding_dead_path_drop",
|
|
38
39
|
"finding_stale_line_demote",
|
|
@@ -54,7 +55,9 @@ var LAST_PHASE_EXCLUDED = /* @__PURE__ */ new Set([
|
|
|
54
55
|
"session_handoff_adopt",
|
|
55
56
|
"session_store_action",
|
|
56
57
|
"session_end_fence_rollup",
|
|
57
|
-
"
|
|
58
|
+
"session_handoff_turn_state",
|
|
59
|
+
"format_late_resync_chained",
|
|
60
|
+
"lsp_created_import_scan_rollup"
|
|
58
61
|
]);
|
|
59
62
|
var liveBrackets = /* @__PURE__ */ new Map();
|
|
60
63
|
var closedBrackets = [];
|
|
@@ -102,7 +105,12 @@ function logLatency(entry) {
|
|
|
102
105
|
const ts = (/* @__PURE__ */ new Date()).toISOString();
|
|
103
106
|
if (entry.type === "phase" && entry.phase && !LAST_PHASE_EXCLUDED.has(entry.phase)) {
|
|
104
107
|
recentPhases = [
|
|
105
|
-
{
|
|
108
|
+
{
|
|
109
|
+
phase: entry.phase,
|
|
110
|
+
ts,
|
|
111
|
+
...entry.toolName !== void 0 && { toolName: entry.toolName },
|
|
112
|
+
...entry.metadata !== void 0 && { metadata: entry.metadata }
|
|
113
|
+
},
|
|
106
114
|
...recentPhases
|
|
107
115
|
].slice(0, RECENT_PHASE_CAP);
|
|
108
116
|
}
|
|
@@ -1,20 +1,19 @@
|
|
|
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-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-TPYYEDP5.js";
|
|
5
|
+
import "./chunk-KJJAVH3X.js";
|
|
6
|
+
import "./chunk-ZSUX7KEM.js";
|
|
7
|
+
import "./chunk-EIKRZ32J.js";
|
|
8
|
+
import "./chunk-FWZRGGGY.js";
|
|
9
|
+
import "./chunk-N3PLNNCW.js";
|
|
10
|
+
import "./chunk-S26LC76R.js";
|
|
11
|
+
import "./chunk-XWFIHYCH.js";
|
|
12
12
|
import {
|
|
13
13
|
redactSecrets
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TVZRLTG6.js";
|
|
15
15
|
import "./chunk-LJDODBBZ.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-N2H3ZPZY.js";
|
|
16
|
+
import "./chunk-EWXXLS26.js";
|
|
18
17
|
import "./chunk-NXL4FFQQ.js";
|
|
19
18
|
|
|
20
19
|
// dist/clients/fix-worklog.js
|
|
@@ -1,27 +1,14 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
createToolchainAvailability
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YKVDBNPO.js";
|
|
5
5
|
import {
|
|
6
6
|
createSubsystemLogger
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-N3PLNNCW.js";
|
|
8
8
|
|
|
9
9
|
// dist/clients/rust-client.js
|
|
10
10
|
import * as path from "node:path";
|
|
11
|
-
var CARGO_WINDOWS_PATHS = [
|
|
12
|
-
path.join(process.env.USERPROFILE || "", ".cargo", "bin", "cargo.exe"),
|
|
13
|
-
path.join(process.env.SYSTEMDRIVE || "C:", "\\cargo", "bin", "cargo.exe"),
|
|
14
|
-
"cargo.exe"
|
|
15
|
-
// PATH
|
|
16
|
-
];
|
|
17
11
|
var PROBE_TIMEOUT_MS = 3e3;
|
|
18
|
-
var CARGO_UNIX_PATHS = [
|
|
19
|
-
path.join(process.env.HOME || "", ".cargo", "bin", "cargo"),
|
|
20
|
-
"/usr/local/cargo/bin/cargo",
|
|
21
|
-
"/usr/bin/cargo",
|
|
22
|
-
"cargo"
|
|
23
|
-
// PATH
|
|
24
|
-
];
|
|
25
12
|
var RustClient = class {
|
|
26
13
|
/**
|
|
27
14
|
* Availability lifecycle, behind the shared transient-aware latch (#1476).
|
|
@@ -37,8 +24,21 @@ var RustClient = class {
|
|
|
37
24
|
this.availability = createToolchainAvailability({
|
|
38
25
|
tool: "cargo",
|
|
39
26
|
label: "Cargo",
|
|
40
|
-
|
|
41
|
-
|
|
27
|
+
// Common install paths, read when the client is built rather than at
|
|
28
|
+
// import, so the home they name is the one the client runs under.
|
|
29
|
+
windowsPaths: [
|
|
30
|
+
path.join(process.env.USERPROFILE || "", ".cargo", "bin", "cargo.exe"),
|
|
31
|
+
path.join(process.env.SYSTEMDRIVE || "C:", "\\cargo", "bin", "cargo.exe"),
|
|
32
|
+
"cargo.exe"
|
|
33
|
+
// PATH
|
|
34
|
+
],
|
|
35
|
+
unixPaths: [
|
|
36
|
+
path.join(process.env.HOME || "", ".cargo", "bin", "cargo"),
|
|
37
|
+
"/usr/local/cargo/bin/cargo",
|
|
38
|
+
"/usr/bin/cargo",
|
|
39
|
+
"cargo"
|
|
40
|
+
// PATH
|
|
41
|
+
],
|
|
42
42
|
probeArgs: ["--version"],
|
|
43
43
|
budgetMs: PROBE_TIMEOUT_MS,
|
|
44
44
|
log: (msg) => this.log(msg)
|
|
@@ -2,19 +2,21 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
createAvailabilityProbeFlight,
|
|
4
4
|
probeToolAsync
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-XI34NWDI.js";
|
|
6
6
|
import {
|
|
7
7
|
classifyProbeFailure,
|
|
8
8
|
createAvailabilityLatch,
|
|
9
9
|
logAvailabilityDecision,
|
|
10
10
|
startHostStallSampler
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-5LRUKYFA.js";
|
|
12
12
|
import {
|
|
13
|
-
createGenerationSource
|
|
14
|
-
|
|
13
|
+
createGenerationSource,
|
|
14
|
+
isUntrustedProjectPath,
|
|
15
|
+
recordProjectCommandRefusal
|
|
16
|
+
} from "./chunk-TPYYEDP5.js";
|
|
15
17
|
import {
|
|
16
18
|
createSingleFlight
|
|
17
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-AWQWXSW4.js";
|
|
18
20
|
|
|
19
21
|
// dist/clients/dispatch/runners/utils/candidate-probe.js
|
|
20
22
|
import * as fs from "node:fs";
|
|
@@ -27,6 +29,10 @@ async function probeAvailabilityCandidates(candidates, probeArgs, timeoutMs) {
|
|
|
27
29
|
try {
|
|
28
30
|
if (candidate.includes("\\") || candidate.includes("/")) {
|
|
29
31
|
if (fs.existsSync(candidate)) {
|
|
32
|
+
if (isUntrustedProjectPath(candidate)) {
|
|
33
|
+
recordProjectCommandRefusal(candidate);
|
|
34
|
+
continue;
|
|
35
|
+
}
|
|
30
36
|
return {
|
|
31
37
|
foundPath: candidate,
|
|
32
38
|
sawTransient,
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
findModuleForPath,
|
|
4
4
|
getDownstreamModules,
|
|
5
5
|
getModuleSourceFiles
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CPZ5JJW6.js";
|
|
7
7
|
import {
|
|
8
8
|
detectFileRole
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KJJAVH3X.js";
|
|
10
10
|
import {
|
|
11
11
|
normalizeMapKey
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-EWXXLS26.js";
|
|
13
13
|
|
|
14
14
|
// dist/clients/review-graph/query.js
|
|
15
15
|
function dedupe(items) {
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
DEAD_CODE_DELTA_MAX_SHOWN,
|
|
4
|
+
PythonDeadCodeClient,
|
|
5
|
+
deadCodeIssueCount,
|
|
6
|
+
deadCodeIssueKey,
|
|
7
|
+
deadCodeIssues,
|
|
8
|
+
formatDeadCodeDelta,
|
|
9
|
+
getDeadCodeClients,
|
|
10
|
+
parseVultureOutput,
|
|
11
|
+
stableFindingKey
|
|
12
|
+
} from "./chunk-DS2USX5G.js";
|
|
13
|
+
import "./chunk-7U2IDNXN.js";
|
|
14
|
+
import "./chunk-VIDEKABZ.js";
|
|
15
|
+
import "./chunk-T4NGVFYI.js";
|
|
16
|
+
import "./chunk-KPVLQHCZ.js";
|
|
17
|
+
import "./chunk-KX56K73G.js";
|
|
18
|
+
import "./chunk-K4SZB56V.js";
|
|
19
|
+
import "./chunk-XI34NWDI.js";
|
|
20
|
+
import "./chunk-5LRUKYFA.js";
|
|
21
|
+
import "./chunk-TPYYEDP5.js";
|
|
22
|
+
import "./chunk-AWQWXSW4.js";
|
|
23
|
+
import "./chunk-KJJAVH3X.js";
|
|
24
|
+
import "./chunk-ZSUX7KEM.js";
|
|
25
|
+
import "./chunk-EIKRZ32J.js";
|
|
26
|
+
import "./chunk-FWZRGGGY.js";
|
|
27
|
+
import "./chunk-N3PLNNCW.js";
|
|
28
|
+
import "./chunk-S26LC76R.js";
|
|
29
|
+
import "./chunk-XWFIHYCH.js";
|
|
30
|
+
import "./chunk-TVZRLTG6.js";
|
|
31
|
+
import "./chunk-LJDODBBZ.js";
|
|
32
|
+
import "./chunk-EWXXLS26.js";
|
|
33
|
+
import "./chunk-NXL4FFQQ.js";
|
|
34
|
+
export {
|
|
35
|
+
DEAD_CODE_DELTA_MAX_SHOWN,
|
|
36
|
+
PythonDeadCodeClient,
|
|
37
|
+
deadCodeIssueCount,
|
|
38
|
+
deadCodeIssueKey,
|
|
39
|
+
deadCodeIssues,
|
|
40
|
+
formatDeadCodeDelta,
|
|
41
|
+
getDeadCodeClients,
|
|
42
|
+
parseVultureOutput,
|
|
43
|
+
stableFindingKey
|
|
44
|
+
};
|