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
|
@@ -1280,14 +1280,22 @@ var assertValidPattern = (pattern) => {
|
|
|
1280
1280
|
|
|
1281
1281
|
// node_modules/minimatch/dist/esm/escape.js
|
|
1282
1282
|
var escape = (s, { windowsPathsNoEscape = false, magicalBraces = false } = {}) => {
|
|
1283
|
-
|
|
1284
|
-
|
|
1283
|
+
const e = magicalBraces ? windowsPathsNoEscape ? s.replace(/[?*()[\]{}]/g, "[$&]") : s.replace(/[?*()[\]\\{}]/g, "\\$&") : windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
|
|
1284
|
+
const c = e.charAt(0);
|
|
1285
|
+
if (c === "#") {
|
|
1286
|
+
return (windowsPathsNoEscape ? "[#]" : "\\#") + e.slice(1);
|
|
1287
|
+
}
|
|
1288
|
+
if (c === "!") {
|
|
1289
|
+
return (windowsPathsNoEscape ? "@(!)" : "\\!") + e.slice(1);
|
|
1285
1290
|
}
|
|
1286
|
-
return
|
|
1291
|
+
return e;
|
|
1287
1292
|
};
|
|
1288
1293
|
|
|
1289
1294
|
// node_modules/minimatch/dist/esm/unescape.js
|
|
1290
1295
|
var unescape = (s, { windowsPathsNoEscape = false, magicalBraces = true } = {}) => {
|
|
1296
|
+
if (windowsPathsNoEscape && s.startsWith("@(!)")) {
|
|
1297
|
+
return "!" + unescape(s.slice(4), { windowsPathsNoEscape, magicalBraces });
|
|
1298
|
+
}
|
|
1291
1299
|
if (magicalBraces) {
|
|
1292
1300
|
return windowsPathsNoEscape ? s.replace(/\[([^/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^/\\])\]/g, "$1$2").replace(/\\([^/])/g, "$1");
|
|
1293
1301
|
}
|
|
@@ -1295,27 +1303,131 @@ var unescape = (s, { windowsPathsNoEscape = false, magicalBraces = true } = {})
|
|
|
1295
1303
|
};
|
|
1296
1304
|
|
|
1297
1305
|
// node_modules/minimatch/dist/esm/index.js
|
|
1298
|
-
var
|
|
1306
|
+
var DEFAULT_BRACE_EXPAND_MAX = 1e5;
|
|
1307
|
+
var DEFAULT_GLOB_STAR_RECURSION_MAX = 200;
|
|
1308
|
+
var AWE_KEY = "allowWindowsEscape";
|
|
1309
|
+
var minimatch = (p, pattern, options) => {
|
|
1299
1310
|
assertValidPattern(pattern);
|
|
1300
|
-
if (!options
|
|
1311
|
+
if (!options?.nocomment && pattern.charAt(0) === "#") {
|
|
1301
1312
|
return false;
|
|
1302
1313
|
}
|
|
1303
1314
|
return cachedMinimatch(pattern, options).match(p);
|
|
1304
1315
|
};
|
|
1305
1316
|
var cache = /* @__PURE__ */ new Map();
|
|
1317
|
+
var oldCache = /* @__PURE__ */ new Map();
|
|
1318
|
+
var cacheSize = 0;
|
|
1319
|
+
var cacheTotalWeight = 0;
|
|
1306
1320
|
var cacheMax = 256;
|
|
1307
|
-
var
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1321
|
+
var cacheMaxWeight = 1 << 15;
|
|
1322
|
+
var cacheMaxEntryWeight = 1 << 12;
|
|
1323
|
+
var cacheWeight = (mm) => {
|
|
1324
|
+
let w = mm.pattern.length;
|
|
1325
|
+
for (const s of mm.globSet) {
|
|
1326
|
+
w += s.length + 1;
|
|
1327
|
+
if (w > cacheMaxEntryWeight)
|
|
1328
|
+
break;
|
|
1329
|
+
}
|
|
1330
|
+
return w;
|
|
1331
|
+
};
|
|
1332
|
+
var tri = (v) => v === void 0 ? 0 : v ? 2 : 1;
|
|
1333
|
+
var booleanWeights = new Map(Object.keys({
|
|
1334
|
+
nobrace: 0,
|
|
1335
|
+
nocomment: 0,
|
|
1336
|
+
nonegate: 0,
|
|
1337
|
+
noglobstar: 0,
|
|
1338
|
+
noext: 0,
|
|
1339
|
+
nonull: 0,
|
|
1340
|
+
partial: 0,
|
|
1341
|
+
dot: 0,
|
|
1342
|
+
nocase: 0,
|
|
1343
|
+
nocaseMagicOnly: 0,
|
|
1344
|
+
magicalBraces: 0,
|
|
1345
|
+
matchBase: 0,
|
|
1346
|
+
flipNegate: 0,
|
|
1347
|
+
preserveMultipleSlashes: 0,
|
|
1348
|
+
windowsNoMagicRoot: 0
|
|
1349
|
+
}).map((k, i) => [k, 24 * 3 ** i]));
|
|
1350
|
+
var optionsKey = (o) => {
|
|
1351
|
+
let n = 0;
|
|
1352
|
+
let wpe = false;
|
|
1353
|
+
for (const k in o) {
|
|
1354
|
+
const v = o[k];
|
|
1355
|
+
switch (k) {
|
|
1356
|
+
// the same test as the Minimatch constructor
|
|
1357
|
+
case "windowsPathsNoEscape":
|
|
1358
|
+
if (v)
|
|
1359
|
+
wpe = true;
|
|
1360
|
+
break;
|
|
1361
|
+
case AWE_KEY:
|
|
1362
|
+
if (v === false)
|
|
1363
|
+
wpe = true;
|
|
1364
|
+
break;
|
|
1365
|
+
case "platform": {
|
|
1366
|
+
const p = v || defaultPlatform;
|
|
1367
|
+
if (p === defaultPlatform)
|
|
1368
|
+
break;
|
|
1369
|
+
if (p === "darwin")
|
|
1370
|
+
n += 3;
|
|
1371
|
+
else if (p === "win32")
|
|
1372
|
+
n += 6;
|
|
1373
|
+
else if (p === "linux")
|
|
1374
|
+
n += 9;
|
|
1375
|
+
else
|
|
1376
|
+
return JSON.stringify(o);
|
|
1377
|
+
break;
|
|
1378
|
+
}
|
|
1379
|
+
case "optimizationLevel":
|
|
1380
|
+
if (v === void 0)
|
|
1381
|
+
break;
|
|
1382
|
+
n += v >= 2 ? 1 : v >= 1 ? 0 : 2;
|
|
1383
|
+
break;
|
|
1384
|
+
case "braceExpandMax":
|
|
1385
|
+
if (v !== void 0 && v !== DEFAULT_BRACE_EXPAND_MAX) {
|
|
1386
|
+
return JSON.stringify(o);
|
|
1387
|
+
}
|
|
1388
|
+
break;
|
|
1389
|
+
case "maxGlobstarRecursion":
|
|
1390
|
+
if (v !== void 0 && v !== DEFAULT_GLOB_STAR_RECURSION_MAX) {
|
|
1391
|
+
return JSON.stringify(o);
|
|
1392
|
+
}
|
|
1393
|
+
break;
|
|
1394
|
+
case "normalize":
|
|
1395
|
+
if (v !== void 0)
|
|
1396
|
+
return JSON.stringify(o);
|
|
1397
|
+
break;
|
|
1398
|
+
default:
|
|
1399
|
+
n += (booleanWeights.get(k) ?? 0) * tri(v);
|
|
1316
1400
|
}
|
|
1317
1401
|
}
|
|
1318
|
-
|
|
1402
|
+
return wpe ? n + 12 : n;
|
|
1403
|
+
};
|
|
1404
|
+
var copyOptions = (o) => {
|
|
1405
|
+
const copy = {};
|
|
1406
|
+
for (const k in o)
|
|
1407
|
+
copy[k] = o[k];
|
|
1408
|
+
return copy;
|
|
1409
|
+
};
|
|
1410
|
+
var cachedMinimatch = (pattern, options) => {
|
|
1411
|
+
const key = options ? optionsKey(options) : 0;
|
|
1412
|
+
let mm = cache.get(key)?.get(pattern);
|
|
1413
|
+
if (mm)
|
|
1414
|
+
return mm;
|
|
1415
|
+
mm = oldCache.get(key)?.get(pattern) ?? new Minimatch(pattern, copyOptions(options));
|
|
1416
|
+
const weight = cacheWeight(mm);
|
|
1417
|
+
if (weight > cacheMaxEntryWeight)
|
|
1418
|
+
return mm;
|
|
1419
|
+
if (cacheSize >= cacheMax || cacheTotalWeight + weight > cacheMaxWeight) {
|
|
1420
|
+
oldCache = cache;
|
|
1421
|
+
cache = /* @__PURE__ */ new Map();
|
|
1422
|
+
cacheSize = 0;
|
|
1423
|
+
cacheTotalWeight = 0;
|
|
1424
|
+
}
|
|
1425
|
+
let byPattern = cache.get(key);
|
|
1426
|
+
if (!byPattern)
|
|
1427
|
+
cache.set(key, byPattern = /* @__PURE__ */ new Map());
|
|
1428
|
+
byPattern.set(pattern, mm);
|
|
1429
|
+
cacheSize++;
|
|
1430
|
+
cacheTotalWeight += weight;
|
|
1319
1431
|
return mm;
|
|
1320
1432
|
};
|
|
1321
1433
|
var defaultPlatform = typeof process === "object" && process ? process.env?.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
|
|
@@ -1327,7 +1439,10 @@ var sep = defaultPlatform === "win32" ? path.win32.sep : path.posix.sep;
|
|
|
1327
1439
|
minimatch.sep = sep;
|
|
1328
1440
|
var GLOBSTAR = /* @__PURE__ */ Symbol("globstar **");
|
|
1329
1441
|
minimatch.GLOBSTAR = GLOBSTAR;
|
|
1330
|
-
var filter = (pattern, options
|
|
1442
|
+
var filter = (pattern, options) => {
|
|
1443
|
+
let mm;
|
|
1444
|
+
return (p) => (mm ??= cachedMinimatch(pattern, options)).match(p);
|
|
1445
|
+
};
|
|
1331
1446
|
minimatch.filter = filter;
|
|
1332
1447
|
var ext = (a, b = {}) => Object.assign({}, a, b);
|
|
1333
1448
|
var defaults = (def) => {
|
|
@@ -1361,7 +1476,11 @@ var braceExpand = (pattern, options = {}) => {
|
|
|
1361
1476
|
if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
|
|
1362
1477
|
return [pattern];
|
|
1363
1478
|
}
|
|
1364
|
-
|
|
1479
|
+
let p = pattern.replace(/\\\\/g, "\\\\\\\\");
|
|
1480
|
+
if (options.windowsPathsNoEscape || options[AWE_KEY] === false) {
|
|
1481
|
+
p = p.replace(/\[([{}])\]/g, "[\\$1]");
|
|
1482
|
+
}
|
|
1483
|
+
return expand(p, { max: options.braceExpandMax });
|
|
1365
1484
|
};
|
|
1366
1485
|
minimatch.braceExpand = braceExpand;
|
|
1367
1486
|
var RANGE_MIN = 100;
|
|
@@ -1423,6 +1542,25 @@ var literal = (pattern, noext) => {
|
|
|
1423
1542
|
}
|
|
1424
1543
|
return lit2;
|
|
1425
1544
|
};
|
|
1545
|
+
var MAX_EXTGLOBS = 256;
|
|
1546
|
+
var extglobCount = (pattern) => {
|
|
1547
|
+
let n = 0;
|
|
1548
|
+
for (let i = 0; i < pattern.length - 1; i++) {
|
|
1549
|
+
const c = pattern.charAt(i);
|
|
1550
|
+
if (c === "\\") {
|
|
1551
|
+
i++;
|
|
1552
|
+
} else if ("+@!?*".includes(c) && pattern.charAt(i + 1) === "(") {
|
|
1553
|
+
n++;
|
|
1554
|
+
i++;
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
return n;
|
|
1558
|
+
};
|
|
1559
|
+
var assertValidExtglobs = (pattern) => {
|
|
1560
|
+
if (extglobCount(pattern) > MAX_EXTGLOBS) {
|
|
1561
|
+
throw new TypeError("pattern has too many extglobs");
|
|
1562
|
+
}
|
|
1563
|
+
};
|
|
1426
1564
|
var extSafe = (pattern) => {
|
|
1427
1565
|
if (/^[?*+@]\(\)$/.test(pattern) || pattern.includes("[:"))
|
|
1428
1566
|
return false;
|
|
@@ -1537,12 +1675,11 @@ var Minimatch = class {
|
|
|
1537
1675
|
assertValidPattern(pattern);
|
|
1538
1676
|
options = options || {};
|
|
1539
1677
|
this.options = options;
|
|
1540
|
-
this.maxGlobstarRecursion = options.maxGlobstarRecursion ??
|
|
1678
|
+
this.maxGlobstarRecursion = options.maxGlobstarRecursion ?? DEFAULT_GLOB_STAR_RECURSION_MAX;
|
|
1541
1679
|
this.pattern = pattern;
|
|
1542
1680
|
this.platform = options.platform || defaultPlatform;
|
|
1543
1681
|
this.isWindows = this.platform === "win32";
|
|
1544
|
-
|
|
1545
|
-
this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options[awe] === false;
|
|
1682
|
+
this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options[AWE_KEY] === false;
|
|
1546
1683
|
if (this.windowsPathsNoEscape) {
|
|
1547
1684
|
this.pattern = this.pattern.replace(/\\/g, "/");
|
|
1548
1685
|
}
|
|
@@ -1687,16 +1824,19 @@ var Minimatch = class {
|
|
|
1687
1824
|
let merged = true;
|
|
1688
1825
|
while (merged) {
|
|
1689
1826
|
merged = false;
|
|
1827
|
+
if (this.set.length < 2)
|
|
1828
|
+
return;
|
|
1829
|
+
let keys = this.#mergeKeys();
|
|
1690
1830
|
const len = Math.max(0, ...this.set.map((r) => r.length));
|
|
1691
1831
|
for (let k = 0; k < len; k++) {
|
|
1692
1832
|
const groups = /* @__PURE__ */ new Map();
|
|
1833
|
+
const R = this.set.length + 1;
|
|
1693
1834
|
this.set.forEach((row, i) => {
|
|
1694
1835
|
if (!(row[k] instanceof Matcher || row[k] === PENDING) || !extSafe(this.globParts[i][k])) {
|
|
1695
1836
|
return;
|
|
1696
1837
|
}
|
|
1697
|
-
const
|
|
1698
|
-
|
|
1699
|
-
const key = `${row.length}/${parts.join("/")}`;
|
|
1838
|
+
const { pre, suf } = keys[i];
|
|
1839
|
+
const key = pre[k] * R + suf[k + 1];
|
|
1700
1840
|
const g = groups.get(key);
|
|
1701
1841
|
if (g)
|
|
1702
1842
|
g.push(i);
|
|
@@ -1710,6 +1850,8 @@ var Minimatch = class {
|
|
|
1710
1850
|
const [first, ...rest] = g;
|
|
1711
1851
|
const alts = g.map((i) => this.globParts[i][k]);
|
|
1712
1852
|
const glob = `@(${alts.join("|")})`;
|
|
1853
|
+
if (extglobCount(glob) > MAX_EXTGLOBS)
|
|
1854
|
+
continue;
|
|
1713
1855
|
this.globParts[first][k] = glob;
|
|
1714
1856
|
this.set[first][k] = this.parse(glob);
|
|
1715
1857
|
for (const i of rest)
|
|
@@ -1719,10 +1861,60 @@ var Minimatch = class {
|
|
|
1719
1861
|
merged = true;
|
|
1720
1862
|
this.set = this.set.filter((_, i) => !drop.has(i));
|
|
1721
1863
|
this.globParts = this.globParts.filter((_, i) => !drop.has(i));
|
|
1864
|
+
if (this.set.length < 2)
|
|
1865
|
+
return;
|
|
1866
|
+
keys = this.#mergeKeys();
|
|
1722
1867
|
}
|
|
1723
1868
|
}
|
|
1724
1869
|
}
|
|
1725
1870
|
}
|
|
1871
|
+
// For each row, number ids for its prefixes and suffixes, such that
|
|
1872
|
+
// pre[k] identifies parts[0..k) and suf[k] identifies parts[k..n).
|
|
1873
|
+
// Two rows are the same other than at portion k exactly when they
|
|
1874
|
+
// have the same pre[k] and suf[k + 1]. This is linear in the size of
|
|
1875
|
+
// the rows, where joining the whole row for every k was quadratic.
|
|
1876
|
+
#mergeKeys() {
|
|
1877
|
+
const partIds = /* @__PURE__ */ new Map();
|
|
1878
|
+
const ids = this.globParts.map((parts) => parts.map((s) => {
|
|
1879
|
+
let id = partIds.get(s);
|
|
1880
|
+
if (id === void 0)
|
|
1881
|
+
partIds.set(s, id = partIds.size);
|
|
1882
|
+
return id;
|
|
1883
|
+
}));
|
|
1884
|
+
const P = partIds.size;
|
|
1885
|
+
const len = Math.max(0, ...ids.map((r) => r.length));
|
|
1886
|
+
const keys = ids.map((r) => ({
|
|
1887
|
+
pre: [0],
|
|
1888
|
+
suf: new Array(r.length + 1).fill(0)
|
|
1889
|
+
}));
|
|
1890
|
+
for (let k = 0; k < len; k++) {
|
|
1891
|
+
const m = /* @__PURE__ */ new Map();
|
|
1892
|
+
ids.forEach((r, i) => {
|
|
1893
|
+
if (k >= r.length)
|
|
1894
|
+
return;
|
|
1895
|
+
const { pre } = keys[i];
|
|
1896
|
+
const key = pre[k] * P + r[k];
|
|
1897
|
+
let id = m.get(key);
|
|
1898
|
+
if (id === void 0)
|
|
1899
|
+
m.set(key, id = m.size + 1);
|
|
1900
|
+
pre.push(id);
|
|
1901
|
+
});
|
|
1902
|
+
}
|
|
1903
|
+
for (let k = len - 1; k >= 0; k--) {
|
|
1904
|
+
const m = /* @__PURE__ */ new Map();
|
|
1905
|
+
ids.forEach((r, i) => {
|
|
1906
|
+
if (k >= r.length)
|
|
1907
|
+
return;
|
|
1908
|
+
const { suf } = keys[i];
|
|
1909
|
+
const key = suf[k + 1] * P + r[k];
|
|
1910
|
+
let id = m.get(key);
|
|
1911
|
+
if (id === void 0)
|
|
1912
|
+
m.set(key, id = m.size + 1);
|
|
1913
|
+
suf[k] = id;
|
|
1914
|
+
});
|
|
1915
|
+
}
|
|
1916
|
+
return keys;
|
|
1917
|
+
}
|
|
1726
1918
|
// various transforms to equivalent pattern sets that are
|
|
1727
1919
|
// faster to process in a filesystem walk. The goal is to
|
|
1728
1920
|
// eliminate what we can, and push all ** patterns as far
|
|
@@ -2019,7 +2211,7 @@ var Minimatch = class {
|
|
|
2019
2211
|
// **/*/<rest> -> */**/<rest> <== not valid because ** doesn't follow
|
|
2020
2212
|
// this WOULD be allowed if ** did follow symlinks, or * didn't
|
|
2021
2213
|
firstPhasePreProcess(globParts) {
|
|
2022
|
-
const { braceExpandMax =
|
|
2214
|
+
const { braceExpandMax = DEFAULT_BRACE_EXPAND_MAX } = this.options;
|
|
2023
2215
|
let splitCells = 0;
|
|
2024
2216
|
const maxSplitCells = 1e6;
|
|
2025
2217
|
let didSomething = false;
|
|
@@ -2401,6 +2593,8 @@ var Minimatch = class {
|
|
|
2401
2593
|
return PENDING;
|
|
2402
2594
|
let m = this.#matchers.get(pattern);
|
|
2403
2595
|
if (!m) {
|
|
2596
|
+
if (!noext)
|
|
2597
|
+
assertValidExtglobs(pattern);
|
|
2404
2598
|
m = new Matcher(pattern, {
|
|
2405
2599
|
nocase,
|
|
2406
2600
|
noext,
|
|
@@ -2865,19 +3059,31 @@ function homeRelativePath(filePath, homeDir = os.homedir()) {
|
|
|
2865
3059
|
return `~${candidate.slice(home.length)}`;
|
|
2866
3060
|
}
|
|
2867
3061
|
function isUnderDir(child, parent) {
|
|
3062
|
+
if (backslashIsNameChar(child, parent)) {
|
|
3063
|
+
return isWithinForm(path2.resolve(child), path2.resolve(parent)) || isWithinIdentity(child, parent);
|
|
3064
|
+
}
|
|
2868
3065
|
if (isWithinForm(normalizePathSpelling(child), normalizePathSpelling(parent)))
|
|
2869
3066
|
return true;
|
|
2870
3067
|
if (process.platform === "win32")
|
|
2871
3068
|
return false;
|
|
2872
3069
|
return isWithinIdentity(child, parent);
|
|
2873
3070
|
}
|
|
3071
|
+
function backslashIsNameChar(child, parent) {
|
|
3072
|
+
return process.platform !== "win32" && (child.includes("\\") || parent.includes("\\")) && !isWindowsPath(child) && !isWindowsPath(parent);
|
|
3073
|
+
}
|
|
2874
3074
|
function isWithinIdentity(child, parent) {
|
|
3075
|
+
if (backslashIsNameChar(child, parent)) {
|
|
3076
|
+
return isWithinForm(realpathOrResolve(child), realpathOrResolve(parent));
|
|
3077
|
+
}
|
|
2875
3078
|
return isWithinForm(normalizeFilePath(child), normalizeFilePath(parent));
|
|
2876
3079
|
}
|
|
2877
3080
|
function isWithinForm(child, parent) {
|
|
2878
3081
|
const parentPrefix = parent.endsWith("/") ? parent : `${parent}/`;
|
|
2879
3082
|
return child === parent || child.startsWith(parentPrefix);
|
|
2880
3083
|
}
|
|
3084
|
+
function rootsOverlap(a, b) {
|
|
3085
|
+
return isWithinForm(a, b) || isWithinForm(b, a);
|
|
3086
|
+
}
|
|
2881
3087
|
function isOutsideProjectRoot(filePath, projectRoot) {
|
|
2882
3088
|
return !isUnderDir(filePath, projectRoot);
|
|
2883
3089
|
}
|
|
@@ -3134,6 +3340,7 @@ export {
|
|
|
3134
3340
|
isUnderDir,
|
|
3135
3341
|
isWithinIdentity,
|
|
3136
3342
|
isWithinForm,
|
|
3343
|
+
rootsOverlap,
|
|
3137
3344
|
isVendorPath,
|
|
3138
3345
|
isExternalOrVendorFile,
|
|
3139
3346
|
nameMatchesMarkerGlob,
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
} from "./chunk-2APSZHHI.js";
|
|
7
7
|
import {
|
|
8
8
|
truncatedByOutputCap
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-463WN3VP.js";
|
|
10
10
|
import {
|
|
11
11
|
LEDGER_FIELD_MAX,
|
|
12
12
|
incrementDegradationCount,
|
|
13
13
|
truncateForLedger
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-CQNXALZJ.js";
|
|
15
15
|
|
|
16
16
|
// dist/clients/dispatch/runners/utils/spawn-outcome.js
|
|
17
17
|
function firstOutputLine(text, max = LEDGER_FIELD_MAX) {
|