pi-lens 4.4.6 → 4.4.8
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 +232 -0
- package/README.md +17 -3
- package/config/markdownlint/run-no-fix.mjs +36 -0
- package/dist/{chunk-ZQ6NZZTB.js → chunk-2453RRJ2.js} +44 -6
- package/dist/{chunk-GZE7WOI4.js → chunk-2BKUFQKR.js} +696 -330
- package/dist/chunk-2TS4GLOJ.js +31 -0
- package/dist/{chunk-2DMLM3ZO.js → chunk-2ZE3AUJQ.js} +12 -14
- package/dist/{chunk-OJLTLYHB.js → chunk-35WKJWO5.js} +51 -33
- package/dist/chunk-3JAHQBSY.js +27 -0
- package/dist/{chunk-PO45POGF.js → chunk-3O5EII3W.js} +2 -2
- package/dist/chunk-447YZL4S.js +25 -0
- package/dist/{chunk-TIYGSODX.js → chunk-4B2YFN4U.js} +28 -22
- package/dist/{chunk-OSTKYB55.js → chunk-4BKU7PV3.js} +1 -1
- package/dist/{chunk-XQCSWV2G.js → chunk-4LL2VRNY.js} +27 -28
- package/dist/{chunk-MA77RSFN.js → chunk-4NBWFYWW.js} +9 -9
- package/dist/{chunk-75SY4F24.js → chunk-4QG55RRC.js} +12 -12
- package/dist/{chunk-K2YGBXOA.js → chunk-4W52ZKZX.js} +2 -2
- package/dist/{chunk-Z2XAOKHK.js → chunk-565VRUP4.js} +2 -2
- package/dist/{chunk-CFRQMBGP.js → chunk-57X2CDRX.js} +23 -23
- package/dist/{chunk-XAIT2YGS.js → chunk-5F3XF3SX.js} +7 -15
- package/dist/{chunk-UHGF5UT5.js → chunk-5RNB4HVK.js} +1 -1
- package/dist/{chunk-Q4EMRFNA.js → chunk-5T5A6YAJ.js} +35 -34
- package/dist/{chunk-W5LGKNET.js → chunk-6FIRFP6A.js} +12 -12
- package/dist/{chunk-KLQVC3XC.js → chunk-6GMGEKQN.js} +36 -9
- package/dist/{chunk-UN4TEBWN.js → chunk-6LJOJ6EO.js} +20 -15
- package/dist/{chunk-HK6JVFZC.js → chunk-6YUNI7B5.js} +3 -3
- package/dist/{chunk-PKES3ISE.js → chunk-7ANZ7XDD.js} +2 -2
- package/dist/{chunk-VQH24FIP.js → chunk-7CGIDRIK.js} +16 -15
- package/dist/{chunk-SCIUNBPF.js → chunk-7MAD5ZAY.js} +16 -17
- package/dist/{chunk-OOU2WZZE.js → chunk-7TNILKGY.js} +1 -1
- package/dist/{chunk-LEJOJDXL.js → chunk-A5GRLYPZ.js} +9 -9
- package/dist/{chunk-AE37FEGH.js → chunk-AGGUWKRK.js} +1 -1
- package/dist/{chunk-BWYQUPOS.js → chunk-BBET6HD6.js} +1 -1
- package/dist/{chunk-GAACZY6R.js → chunk-BHWW6FAX.js} +14 -13
- package/dist/{chunk-A3YNG5KP.js → chunk-BOPDQ7AZ.js} +23 -21
- package/dist/{chunk-MKVZQUEG.js → chunk-BQG2QFVO.js} +215 -134
- package/dist/{chunk-EVDGNG4F.js → chunk-BUZIQDFS.js} +3 -3
- package/dist/{chunk-2PHMIAKO.js → chunk-CM73PPGD.js} +4 -4
- package/dist/{chunk-63RIVFQI.js → chunk-CUDD35TW.js} +10 -9
- package/dist/{chunk-BM5GS6ZH.js → chunk-CZL44WFN.js} +2 -2
- package/dist/{chunk-QGSTQH4D.js → chunk-DIWK3LBC.js} +12 -15
- package/dist/{chunk-JL6CXUMW.js → chunk-DYRZGUMA.js} +2 -2
- package/dist/{chunk-NDMCVUYK.js → chunk-FHEV6T4L.js} +22 -18
- package/dist/{chunk-4PCQCU47.js → chunk-FRLAUP2B.js} +4 -4
- package/dist/{chunk-RZOXUSPC.js → chunk-G5GV2Q7K.js} +2 -2
- package/dist/{chunk-2RLWJO5K.js → chunk-G6JKM4O7.js} +7 -7
- package/dist/chunk-GGYOZWHW.js +27 -0
- package/dist/{chunk-DC4CFXM5.js → chunk-GIRBSBGL.js} +6 -5
- package/dist/{chunk-PQJFG24Z.js → chunk-GMROJJRN.js} +1292 -946
- package/dist/{chunk-ZUUI3ZSA.js → chunk-HHR7WGCI.js} +3 -3
- package/dist/{chunk-TIQJPRDD.js → chunk-HKIL6DCL.js} +3 -2
- package/dist/{chunk-VPBIMOAQ.js → chunk-HUAM7QG3.js} +15 -13
- package/dist/{chunk-ZYNI26MI.js → chunk-HXFUTMX2.js} +2 -2
- package/dist/{chunk-W5R5SABV.js → chunk-I22THIHI.js} +12 -12
- package/dist/chunk-IE5D3RA5.js +58 -0
- package/dist/{chunk-MT6BVNFW.js → chunk-IYVYZQRL.js} +10 -16
- package/dist/{chunk-ARD426WI.js → chunk-JBP7KESM.js} +1 -1
- package/dist/{chunk-MN7MHUXQ.js → chunk-JE6HKLC7.js} +2 -2
- package/dist/{chunk-3MYEA7QD.js → chunk-JPRDTY5S.js} +85 -3
- package/dist/{chunk-CJYKEW2L.js → chunk-JYLOYTZD.js} +17 -1
- package/dist/{chunk-5APMQ2IJ.js → chunk-JZRP4DGP.js} +2 -2
- package/dist/{chunk-AMXIUN2R.js → chunk-KZ4ALBCH.js} +2 -2
- package/dist/{chunk-W2V54OCL.js → chunk-L3CLUGDY.js} +3 -3
- package/dist/{chunk-DMSLNKF7.js → chunk-L4NEVZ4T.js} +28 -27
- package/dist/chunk-LPYTPNOJ.js +22 -0
- package/dist/{chunk-BI5LAQ3Y.js → chunk-LSFXZLPW.js} +2071 -1725
- package/dist/{chunk-2DDDCJDL.js → chunk-MC6VB2E5.js} +4 -4
- package/dist/{chunk-U2SDMG7C.js → chunk-NM2NWH55.js} +5 -5
- package/dist/{chunk-Q4FCYCRE.js → chunk-NSPVR3FN.js} +19 -18
- package/dist/{chunk-VG5JS5SW.js → chunk-O2ARHQKF.js} +2 -2
- package/dist/{chunk-KSR7RGQY.js → chunk-O4N5BQ3T.js} +10 -10
- package/dist/{chunk-5ZR3APIM.js → chunk-OC7VWJBZ.js} +39 -40
- package/dist/chunk-OFNMHPBT.js +89 -0
- package/dist/{chunk-YSBHPOY6.js → chunk-OWTG6UMO.js} +21 -21
- package/dist/{chunk-7RQXA5GG.js → chunk-OY7WZI7Q.js} +13 -12
- package/dist/{chunk-5CV5ITZF.js → chunk-OZWXLJMX.js} +2 -2
- package/dist/{chunk-F6X3YJWD.js → chunk-PIQQM32Y.js} +2 -2
- package/dist/chunk-PKLB2XJL.js +8 -0
- package/dist/{chunk-DQXSPYRI.js → chunk-PKSUMEPT.js} +17 -4
- package/dist/{chunk-YISME6ON.js → chunk-PPKECBPP.js} +1 -1
- package/dist/{chunk-4AVZ3TG7.js → chunk-R2QQC33W.js} +14 -14
- package/dist/{chunk-GMTFDAOK.js → chunk-R4QWJQ2H.js} +11 -11
- package/dist/{chunk-V63BC55Q.js → chunk-RGGH6M34.js} +1 -1
- package/dist/{chunk-SJJYRZB4.js → chunk-RZG472YW.js} +116 -26
- package/dist/{chunk-NIU2IPC5.js → chunk-SDFKOLSF.js} +6 -6
- package/dist/{chunk-H7HTEQUZ.js → chunk-SFLHSL5R.js} +9 -9
- package/dist/{chunk-FA5LDARD.js → chunk-SP4TFY5F.js} +14 -13
- package/dist/{chunk-J6JP25XU.js → chunk-SQC7K3SP.js} +4 -3
- package/dist/{chunk-T7FTXGS3.js → chunk-T2S3FNNJ.js} +44 -42
- package/dist/{chunk-S67UJDGQ.js → chunk-TV6RXRYH.js} +10 -10
- package/dist/{chunk-GNSIWBAT.js → chunk-U3AS2FR6.js} +3 -3
- package/dist/{chunk-WIZWZR4C.js → chunk-UHHLR2VY.js} +43 -41
- package/dist/chunk-UYXV5NIS.js +20 -0
- package/dist/{chunk-VSFLRN5Y.js → chunk-VLQ7UKZH.js} +1 -1
- package/dist/{chunk-FFL3A2VP.js → chunk-VN3L2JWZ.js} +46 -72
- package/dist/{chunk-Z7IGUAXL.js → chunk-VOP4PJKA.js} +12 -8
- package/dist/{chunk-F5Z6URKM.js → chunk-VOXTCULR.js} +2 -2
- package/dist/{chunk-NNKXDXXS.js → chunk-VPLBLWFO.js} +14 -8
- package/dist/chunk-W3BGKBBK.js +27 -0
- package/dist/{chunk-ZKXQKGWZ.js → chunk-WC6WRNQT.js} +4 -3
- package/dist/{chunk-Q3UZHW6N.js → chunk-WMDUT4KH.js} +1150 -1138
- package/dist/{chunk-KXF5R4UN.js → chunk-WQV6BI4Q.js} +1 -1
- package/dist/chunk-WXUDRAG6.js +24 -0
- package/dist/{chunk-OLAWH5UQ.js → chunk-X35S7HSB.js} +29 -10
- package/dist/{chunk-YBSONGSZ.js → chunk-X66YJ2SS.js} +40 -34
- package/dist/{chunk-U6OC3QEM.js → chunk-XOMGO63G.js} +22 -21
- package/dist/{chunk-WQOIR3QY.js → chunk-XWIME22V.js} +13 -13
- package/dist/{chunk-3WEPUD2V.js → chunk-XYLC35E4.js} +202 -103
- package/dist/{chunk-UCGQT677.js → chunk-YHGYAEFH.js} +18 -18
- package/dist/{chunk-V3APN3DY.js → chunk-ZFORSIED.js} +13 -13
- package/dist/{chunk-BHUWL2Y3.js → chunk-ZKLTNLAW.js} +64 -73
- package/dist/chunk-ZONZ6YY3.js +74 -0
- package/dist/chunk-ZSM35JF4.js +30 -0
- package/dist/{chunk-PPIBVH4R.js → chunk-ZZDIOAAJ.js} +15 -6
- package/dist/index.js +8817 -6239
- package/dist/mcp/analyze-cli.js +10 -10
- package/dist/mcp/cli.js +44 -42
- package/dist/mcp/server.js +2236 -861
- package/dist/mcp/worker.js +62 -61
- package/dist/probes/installer.js +20 -19
- package/docs/adr/0003-git-guard-latch-writer.md +11 -6
- package/docs/agent-tools.md +29 -11
- package/docs/alignment-families.md +29 -0
- package/docs/ast-grep_rules_catalog.md +6 -4
- package/docs/ci-bot-pr-checks.md +126 -0
- package/docs/configuration.md +99 -3
- package/docs/defect-shapes.md +68 -11
- package/docs/dependencies.md +1 -0
- package/docs/engineering-principles.md +27 -2
- package/docs/environment-variables.md +14 -0
- package/docs/features.md +13 -3
- package/docs/globalconfig.md +12 -1
- package/docs/invariants/git-guard-host.md +38 -0
- package/docs/invariants/language-config.md +15 -4
- package/docs/invariants/lsp-trust-exec.md +22 -2
- package/docs/invariants/paths-os.md +4 -2
- package/docs/invariants/session-telemetry.md +42 -2
- package/docs/lsp-capability-matrix.md +208 -84
- package/docs/lsp-idle-eviction.md +3 -5
- package/docs/merge-queue-rollout.md +1 -1
- package/docs/pi-lens-fixer.md +31 -17
- package/docs/pi-lens-merge-policy.md +27 -15
- package/docs/pi-lens-monitor.md +9 -0
- package/docs/pi-lens-orchestration.md +4 -1
- package/docs/pi-lens-reviewer.md +5 -5
- package/docs/pi-lens-subagent.md +13 -7
- package/docs/public-api-stability.md +18 -2
- package/docs/schema/pi-lens-config-v1.json +33 -0
- package/docs/servercapabilities.md +1 -1
- package/docs/settings.md +15 -6
- package/docs/usage.md +5 -0
- package/docs/word-index.md +17 -5
- package/package.json +5 -3
- package/rules/ast-grep-rules/rule-tests/no-accumulating-spread-js-test.yml +37 -0
- package/rules/ast-grep-rules/rule-tests/ts-redundant-filter-map-test.yml +12 -1
- package/rules/ast-grep-rules/rule-tests-disabled/filter-then-map-js-test.yml +12 -0
- package/rules/ast-grep-rules/rule-tests-disabled/filter-then-map-test.yml +25 -0
- package/rules/ast-grep-rules/rules/no-accumulating-spread-js.yml +49 -1
- package/rules/ast-grep-rules/rules/ts-redundant-filter-map.yml +9 -1
- package/rules/ast-grep-rules/rules-disabled/filter-then-map-js.yml +17 -0
- package/rules/ast-grep-rules/rules-disabled/filter-then-map.yml +36 -0
- package/rules/ast-grep-rules/self-scan-baseline.json +1 -1
- package/dist/chunk-2F47TQOA.js +0 -73
- package/dist/chunk-2X4VLOCC.js +0 -55
- package/dist/chunk-4WX4CTUE.js +0 -57
- package/dist/chunk-FJIVKLPH.js +0 -31
- package/dist/chunk-G2B7F6ZU.js +0 -88
- package/dist/chunk-GTAI2J6U.js +0 -27
- package/dist/chunk-IPDG45G5.js +0 -26
- package/dist/chunk-P4QNXS6I.js +0 -27
- package/dist/chunk-Q6D6VMI4.js +0 -22
- package/dist/chunk-SXGD4ANG.js +0 -25
- package/dist/chunk-XCUHKYCQ.js +0 -23
- package/dist/chunk-YRD4ISED.js +0 -30
|
@@ -2,18 +2,18 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
createAvailabilityProbeFlight,
|
|
4
4
|
probeToolAsync
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JBP7KESM.js";
|
|
6
6
|
import {
|
|
7
7
|
classifyProbeFailure,
|
|
8
8
|
createAvailabilityLatch,
|
|
9
9
|
logAvailabilityDecision,
|
|
10
10
|
startHostStallSampler
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JZRP4DGP.js";
|
|
12
12
|
import {
|
|
13
13
|
createGenerationSource,
|
|
14
14
|
isUntrustedProjectPath,
|
|
15
15
|
recordProjectCommandRefusal
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WMDUT4KH.js";
|
|
17
17
|
import {
|
|
18
18
|
createSingleFlight
|
|
19
19
|
} from "./chunk-AWQWXSW4.js";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
getOwnedLspService,
|
|
5
5
|
peekOwnedLspService,
|
|
6
6
|
resetOwnedLspService
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-VOXTCULR.js";
|
|
8
|
+
import "./chunk-565VRUP4.js";
|
|
9
|
+
import "./chunk-VLQ7UKZH.js";
|
|
10
|
+
import "./chunk-GMROJJRN.js";
|
|
11
11
|
import "./chunk-NXL4FFQQ.js";
|
|
12
12
|
export {
|
|
13
13
|
configureLspServiceLifecycle,
|
|
@@ -4,17 +4,18 @@ import {
|
|
|
4
4
|
readCargoDependencyNames,
|
|
5
5
|
readCargoPackageName,
|
|
6
6
|
readCargoWorkspaceMembers
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WC6WRNQT.js";
|
|
8
8
|
import {
|
|
9
9
|
getProjectIgnoreMatcher,
|
|
10
10
|
isExcludedDirName
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-WMDUT4KH.js";
|
|
12
12
|
import {
|
|
13
13
|
getWorkspaceManifestMarkers
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SQC7K3SP.js";
|
|
15
15
|
import {
|
|
16
|
-
normalizeMapKey
|
|
17
|
-
|
|
16
|
+
normalizeMapKey,
|
|
17
|
+
toPosix
|
|
18
|
+
} from "./chunk-GMROJJRN.js";
|
|
18
19
|
|
|
19
20
|
// dist/clients/review-graph/workspace-modules.js
|
|
20
21
|
import * as fs from "node:fs";
|
|
@@ -77,7 +78,7 @@ function normalizeWorkspacePatterns(value) {
|
|
|
77
78
|
return [];
|
|
78
79
|
}
|
|
79
80
|
function expandWorkspacePattern(cwd, pattern) {
|
|
80
|
-
const normalized = stripQuotes(pattern.trim())
|
|
81
|
+
const normalized = toPosix(stripQuotes(pattern.trim()));
|
|
81
82
|
if (!normalized || normalized.startsWith("!"))
|
|
82
83
|
return [];
|
|
83
84
|
const starIndex = normalized.indexOf("*");
|
|
@@ -136,7 +137,7 @@ function moduleFromPackageJson(cwd, pkgRoot) {
|
|
|
136
137
|
return {
|
|
137
138
|
name: pkgJson.name,
|
|
138
139
|
root: normalizeMapKey(pkgRoot),
|
|
139
|
-
relativePath: path.relative(cwd, pkgRoot)
|
|
140
|
+
relativePath: toPosix(path.relative(cwd, pkgRoot)),
|
|
140
141
|
entrypoints: pkgJson.main ? [pkgJson.main] : ["index.js"],
|
|
141
142
|
internalDeps: [],
|
|
142
143
|
externalDeps: depsFromPackageJson(pkgJson)
|
|
@@ -183,7 +184,7 @@ function scanCargoModules(cwd) {
|
|
|
183
184
|
modules.push({
|
|
184
185
|
name,
|
|
185
186
|
root: normalizeMapKey(pkgRoot),
|
|
186
|
-
relativePath: path.relative(cwd, pkgRoot)
|
|
187
|
+
relativePath: toPosix(path.relative(cwd, pkgRoot)),
|
|
187
188
|
entrypoints: ["src/lib.rs", "src/main.rs"],
|
|
188
189
|
internalDeps: [],
|
|
189
190
|
externalDeps: deps
|
|
@@ -216,7 +217,7 @@ function scanGoModules(cwd) {
|
|
|
216
217
|
modules.push({
|
|
217
218
|
name,
|
|
218
219
|
root: normalizeMapKey(pkgRoot),
|
|
219
|
-
relativePath: path.relative(cwd, pkgRoot)
|
|
220
|
+
relativePath: toPosix(path.relative(cwd, pkgRoot)),
|
|
220
221
|
entrypoints: ["."],
|
|
221
222
|
internalDeps: [],
|
|
222
223
|
externalDeps: []
|
|
@@ -2,10 +2,10 @@ import { createRequire as __pilensCreateRequire } from "node:module"; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
DEFAULT_MAX_OUTPUT_BYTES,
|
|
4
4
|
writeFileAtomic
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JE6HKLC7.js";
|
|
6
6
|
import {
|
|
7
7
|
incrementDegradationCount
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2453RRJ2.js";
|
|
9
9
|
|
|
10
10
|
// dist/clients/mcp/ipc.js
|
|
11
11
|
import * as crypto from "node:crypto";
|
|
@@ -4,32 +4,33 @@ import {
|
|
|
4
4
|
discoverManagedTool,
|
|
5
5
|
getManagedToolEnvironment,
|
|
6
6
|
resolveAvailableOrInstall
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZFORSIED.js";
|
|
8
8
|
import {
|
|
9
9
|
mapWithConcurrency
|
|
10
10
|
} from "./chunk-XIMYZ3JA.js";
|
|
11
11
|
import {
|
|
12
12
|
findNodeToolBinary
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VOP4PJKA.js";
|
|
14
14
|
import {
|
|
15
15
|
getIsolatedNpxSpawnOptions
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JBP7KESM.js";
|
|
17
17
|
import {
|
|
18
18
|
createAvailabilityLatch
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-JZRP4DGP.js";
|
|
20
20
|
import {
|
|
21
21
|
safeSpawnAsync
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-WMDUT4KH.js";
|
|
23
23
|
import {
|
|
24
24
|
compareOrdinal,
|
|
25
25
|
recordDegradationOnce
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-2453RRJ2.js";
|
|
27
27
|
import {
|
|
28
28
|
createSubsystemLogger
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-WQV6BI4Q.js";
|
|
30
30
|
import {
|
|
31
|
-
isFullyQualified
|
|
32
|
-
|
|
31
|
+
isFullyQualified,
|
|
32
|
+
isUnderDir
|
|
33
|
+
} from "./chunk-GMROJJRN.js";
|
|
33
34
|
|
|
34
35
|
// dist/clients/dependency-checker.js
|
|
35
36
|
import * as fs from "node:fs";
|
|
@@ -73,16 +74,12 @@ function parseMadgeCycles(stdout, baseDir, projectRoot) {
|
|
|
73
74
|
var MADGE_BATCH_CONCURRENCY = 6;
|
|
74
75
|
var MADGE_STATS_TARGET_CAP = 12;
|
|
75
76
|
var MADGE_STATS_TARGET_MIN_DURATION_MS = 100;
|
|
76
|
-
function isWithin(dir, target) {
|
|
77
|
-
const rel = path.relative(dir, target);
|
|
78
|
-
return rel !== "" && !rel.startsWith("..") && !path.isAbsolute(rel);
|
|
79
|
-
}
|
|
80
77
|
function classifyMadgeKind(resolved, managedToolsDir, projectRoot) {
|
|
81
78
|
if (!isFullyQualified(resolved))
|
|
82
79
|
return "path";
|
|
83
|
-
if (
|
|
80
|
+
if (isUnderDir(resolved, managedToolsDir))
|
|
84
81
|
return "managed";
|
|
85
|
-
if (
|
|
82
|
+
if (isUnderDir(resolved, projectRoot))
|
|
86
83
|
return "local";
|
|
87
84
|
return "global";
|
|
88
85
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
resolveOpengrepRulePack
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5RNB4HVK.js";
|
|
5
5
|
import {
|
|
6
6
|
findLocalToolConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GMROJJRN.js";
|
|
8
8
|
|
|
9
9
|
// dist/clients/opengrep-config.js
|
|
10
10
|
import * as path from "node:path";
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
parseJsonc
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7ANZ7XDD.js";
|
|
5
5
|
import {
|
|
6
6
|
extractTomlTableSection,
|
|
7
7
|
hasTomlTable,
|
|
8
8
|
parseTomlScalarString,
|
|
9
9
|
parseTomlStringArray
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WC6WRNQT.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveLanguage
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PPKECBPP.js";
|
|
14
14
|
import {
|
|
15
15
|
getProjectTrustState
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JE6HKLC7.js";
|
|
17
17
|
import {
|
|
18
18
|
incrementDegradationCount,
|
|
19
19
|
recordDegradationOnce
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-2453RRJ2.js";
|
|
21
21
|
import {
|
|
22
22
|
logExtension
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-WQV6BI4Q.js";
|
|
24
24
|
import {
|
|
25
25
|
logLatency
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-565VRUP4.js";
|
|
27
27
|
import {
|
|
28
28
|
UV_WORKSPACE_EXCLUDE_DIALECT,
|
|
29
29
|
UV_WORKSPACE_MEMBERS_DIALECT,
|
|
30
30
|
matchesWorkspaceMemberPattern,
|
|
31
31
|
realpathOrResolve,
|
|
32
|
-
|
|
32
|
+
relativeInside,
|
|
33
33
|
walkUpDirs
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-GMROJJRN.js";
|
|
35
35
|
|
|
36
36
|
// dist/clients/bounded-telemetry.js
|
|
37
37
|
var MAX_TRACKED_TURN_CAPS = 64;
|
|
@@ -145,10 +145,9 @@ async function findUvWorkspace(startDir, homeDir) {
|
|
|
145
145
|
} : void 0;
|
|
146
146
|
}
|
|
147
147
|
function isUvWorkspaceMember(workspace, projectRoot) {
|
|
148
|
-
const relative =
|
|
149
|
-
if (relative
|
|
148
|
+
const relative = relativeInside(workspace.root, projectRoot);
|
|
149
|
+
if (!relative)
|
|
150
150
|
return false;
|
|
151
|
-
}
|
|
152
151
|
const matches = (dialect) => (pattern) => matchesWorkspaceMemberPattern(pattern, relative, dialect, () => recordDegradationOnce({
|
|
153
152
|
kind: "workspace-glob-cap",
|
|
154
153
|
subject: String(pattern.length),
|
|
@@ -161,6 +160,11 @@ var PROJECT_SOURCED_PYTHON_SOURCES = /* @__PURE__ */ new Set([
|
|
|
161
160
|
"project-venv",
|
|
162
161
|
"uv-workspace"
|
|
163
162
|
]);
|
|
163
|
+
var PROJECT_VENV_DIRS = [
|
|
164
|
+
{ dir: ".venv", source: "project-dot-venv" },
|
|
165
|
+
{ dir: "venv", source: "project-venv" }
|
|
166
|
+
];
|
|
167
|
+
var PROJECT_VENV_DIR_NAMES = PROJECT_VENV_DIRS.map((venv) => venv.dir);
|
|
164
168
|
var AMBIENT_ENVIRONMENT_VARIABLES = {
|
|
165
169
|
"uv-project-environment": "UV_PROJECT_ENVIRONMENT",
|
|
166
170
|
"virtual-env": "VIRTUAL_ENV",
|
|
@@ -178,10 +182,7 @@ async function detectPythonEnvironment(projectRoot, homeDir = os.homedir(), opti
|
|
|
178
182
|
const uvProjectEnvironment = process.env.UV_PROJECT_ENVIRONMENT;
|
|
179
183
|
const allowAmbient = options.allowAmbient ?? true;
|
|
180
184
|
const isWithinProjectRoot = (candidateRoot) => {
|
|
181
|
-
|
|
182
|
-
return relative !== ".." && !relative.startsWith(`..${path.sep}`) && // #3871 V1: another Windows drive has no relative path, so
|
|
183
|
-
// `path.relative` returns the absolute target: no `..`, not inside.
|
|
184
|
-
!path.isAbsolute(relative);
|
|
185
|
+
return relativeInside(root, realpathOrResolve(candidateRoot)) !== void 0;
|
|
185
186
|
};
|
|
186
187
|
const candidates = [
|
|
187
188
|
...uvEnvironmentRoot !== void 0 && uvProjectEnvironment ? [
|
|
@@ -200,8 +201,10 @@ async function detectPythonEnvironment(projectRoot, homeDir = os.homedir(), opti
|
|
|
200
201
|
] : [],
|
|
201
202
|
{ root: process.env.VIRTUAL_ENV, source: "virtual-env" },
|
|
202
203
|
{ root: process.env.CONDA_PREFIX, source: "conda" },
|
|
203
|
-
|
|
204
|
-
|
|
204
|
+
...PROJECT_VENV_DIRS.map((venv) => ({
|
|
205
|
+
root: path.join(root, venv.dir),
|
|
206
|
+
source: venv.source
|
|
207
|
+
}))
|
|
205
208
|
];
|
|
206
209
|
for (const candidate of candidates) {
|
|
207
210
|
if (!candidate.root)
|
|
@@ -493,6 +496,7 @@ async function detectPythonTargetVersion(filePath, homeDir = os.homedir()) {
|
|
|
493
496
|
export {
|
|
494
497
|
emitBounded,
|
|
495
498
|
resetBoundedTelemetry,
|
|
499
|
+
PROJECT_VENV_DIR_NAMES,
|
|
496
500
|
hasAmbientPythonEnvironment,
|
|
497
501
|
detectPythonEnvironment,
|
|
498
502
|
augmentPythonEnvironment,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
withFactTree
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7TNILKGY.js";
|
|
5
5
|
import {
|
|
6
6
|
childrenOfType,
|
|
7
7
|
firstChildOfType,
|
|
8
8
|
walk
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BHWW6FAX.js";
|
|
10
10
|
import {
|
|
11
11
|
isJstsFactFile
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-G5GV2Q7K.js";
|
|
13
13
|
import {
|
|
14
14
|
logLatency
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-565VRUP4.js";
|
|
16
16
|
|
|
17
17
|
// dist/clients/dispatch/facts/import-facts.js
|
|
18
18
|
function importFactsApplyTo(filePath) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
findNearestDirWithMarker
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SQC7K3SP.js";
|
|
5
5
|
import {
|
|
6
6
|
isWindowsPath
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GMROJJRN.js";
|
|
8
8
|
|
|
9
9
|
// dist/clients/file-kinds.js
|
|
10
10
|
import { basename, extname, win32 } from "node:path";
|
|
@@ -3,29 +3,29 @@ import {
|
|
|
3
3
|
shouldRecurseIntoDir,
|
|
4
4
|
walkTreeRecursiveSync,
|
|
5
5
|
walkTreeStackAsync
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-O2ARHQKF.js";
|
|
7
7
|
import {
|
|
8
8
|
getProjectIgnoreMatcher
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WMDUT4KH.js";
|
|
10
10
|
import {
|
|
11
11
|
KIND_EXTENSIONS,
|
|
12
12
|
isCodeKindFile
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-G5GV2Q7K.js";
|
|
14
14
|
import {
|
|
15
15
|
classifyGeneratedOrArtifactDetailed,
|
|
16
16
|
isDeclarationFile
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-X35S7HSB.js";
|
|
18
18
|
import {
|
|
19
19
|
logLatency
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-565VRUP4.js";
|
|
21
21
|
import {
|
|
22
22
|
toPositiveFinite
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-VLQ7UKZH.js";
|
|
24
24
|
import {
|
|
25
25
|
BoundedLruCache,
|
|
26
26
|
normalizeEphemeralMapKey,
|
|
27
27
|
normalizeFilePath
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-GMROJJRN.js";
|
|
29
29
|
|
|
30
30
|
// dist/clients/source-filter.js
|
|
31
31
|
import * as fs2 from "node:fs";
|
|
@@ -0,0 +1,27 @@
|
|
|
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-3O5EII3W.js";
|
|
7
|
+
import "./chunk-BUZIQDFS.js";
|
|
8
|
+
import "./chunk-JBP7KESM.js";
|
|
9
|
+
import "./chunk-JZRP4DGP.js";
|
|
10
|
+
import "./chunk-WMDUT4KH.js";
|
|
11
|
+
import "./chunk-AWQWXSW4.js";
|
|
12
|
+
import "./chunk-X35S7HSB.js";
|
|
13
|
+
import "./chunk-SQC7K3SP.js";
|
|
14
|
+
import "./chunk-JE6HKLC7.js";
|
|
15
|
+
import "./chunk-2453RRJ2.js";
|
|
16
|
+
import "./chunk-WQV6BI4Q.js";
|
|
17
|
+
import "./chunk-S26LC76R.js";
|
|
18
|
+
import "./chunk-565VRUP4.js";
|
|
19
|
+
import "./chunk-VLQ7UKZH.js";
|
|
20
|
+
import "./chunk-LJDODBBZ.js";
|
|
21
|
+
import "./chunk-GMROJJRN.js";
|
|
22
|
+
import "./chunk-NXL4FFQQ.js";
|
|
23
|
+
export {
|
|
24
|
+
GoClient,
|
|
25
|
+
goClient,
|
|
26
|
+
resetGoAvailability
|
|
27
|
+
};
|
|
@@ -1,19 +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-WMDUT4KH.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-VLQ7UKZH.js";
|
|
12
12
|
import {
|
|
13
13
|
BoundedFifoMap,
|
|
14
14
|
normalizeFilePath,
|
|
15
|
-
normalizeMapKey
|
|
16
|
-
|
|
15
|
+
normalizeMapKey,
|
|
16
|
+
toPosix
|
|
17
|
+
} from "./chunk-GMROJJRN.js";
|
|
17
18
|
|
|
18
19
|
// dist/clients/hashline-anchor.js
|
|
19
20
|
var HASHLINE_ANCHOR_LENGTH = 3;
|
|
@@ -158,7 +159,7 @@ function hashText(value, length = FINDING_ID_HASH_LENGTH) {
|
|
|
158
159
|
function relativeFile(filePath, cwd) {
|
|
159
160
|
const canonicalCwd = normalizeMapKey(cwd);
|
|
160
161
|
const canonicalFile = normalizeMapKey(filePath);
|
|
161
|
-
const rel = path2.relative(canonicalCwd, canonicalFile)
|
|
162
|
+
const rel = toPosix(path2.relative(canonicalCwd, canonicalFile));
|
|
162
163
|
return rel && !rel.startsWith("..") ? rel : canonicalFile;
|
|
163
164
|
}
|
|
164
165
|
function stableFindingId(prefix, args) {
|