@openez-graph/cli 1.0.0 → 1.0.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/README.md +12 -8
- package/dist/CHANGELOG.md +21 -0
- package/dist/cli.cjs +67 -1148
- package/package.json +2 -1
package/dist/cli.cjs
CHANGED
|
@@ -32,7 +32,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
32
32
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
33
33
|
mod
|
|
34
34
|
));
|
|
35
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
36
35
|
|
|
37
36
|
// ../../node_modules/.pnpm/readdirp@4.1.2/node_modules/readdirp/esm/index.js
|
|
38
37
|
function readdirp(root, options = {}) {
|
|
@@ -14282,7 +14281,7 @@ var require_main = __commonJS({
|
|
|
14282
14281
|
var packageJson = require_package();
|
|
14283
14282
|
var version4 = packageJson.version;
|
|
14284
14283
|
var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
|
|
14285
|
-
function
|
|
14284
|
+
function parse4(src) {
|
|
14286
14285
|
const obj = {};
|
|
14287
14286
|
let lines = src.toString();
|
|
14288
14287
|
lines = lines.replace(/\r\n?/mg, "\n");
|
|
@@ -14548,7 +14547,7 @@ var require_main = __commonJS({
|
|
|
14548
14547
|
_parseVault,
|
|
14549
14548
|
config: config2,
|
|
14550
14549
|
decrypt,
|
|
14551
|
-
parse:
|
|
14550
|
+
parse: parse4,
|
|
14552
14551
|
populate
|
|
14553
14552
|
};
|
|
14554
14553
|
module4.exports.configDotenv = DotenvModule.configDotenv;
|
|
@@ -18432,13 +18431,13 @@ var init_types = __esm({
|
|
|
18432
18431
|
ZodReadonly = class extends ZodType {
|
|
18433
18432
|
_parse(input) {
|
|
18434
18433
|
const result = this._def.innerType._parse(input);
|
|
18435
|
-
const
|
|
18434
|
+
const freeze = (data) => {
|
|
18436
18435
|
if (isValid(data)) {
|
|
18437
18436
|
data.value = Object.freeze(data.value);
|
|
18438
18437
|
}
|
|
18439
18438
|
return data;
|
|
18440
18439
|
};
|
|
18441
|
-
return isAsync(result) ? result.then((data) =>
|
|
18440
|
+
return isAsync(result) ? result.then((data) => freeze(data)) : freeze(result);
|
|
18442
18441
|
}
|
|
18443
18442
|
unwrap() {
|
|
18444
18443
|
return this._def.innerType;
|
|
@@ -31294,1091 +31293,11 @@ var init_markdown_parser = __esm({
|
|
|
31294
31293
|
}
|
|
31295
31294
|
});
|
|
31296
31295
|
|
|
31297
|
-
// ../../node_modules/.pnpm/oxc-parser@0.143.0/node_modules/oxc-parser/src-js/bindings.js
|
|
31298
|
-
function requireNative() {
|
|
31299
|
-
if (process.env.NAPI_RS_NATIVE_LIBRARY_PATH) {
|
|
31300
|
-
try {
|
|
31301
|
-
return require2(process.env.NAPI_RS_NATIVE_LIBRARY_PATH);
|
|
31302
|
-
} catch (err) {
|
|
31303
|
-
loadErrors.push(err);
|
|
31304
|
-
}
|
|
31305
|
-
} else if (process.platform === "android") {
|
|
31306
|
-
if (process.arch === "arm64") {
|
|
31307
|
-
try {
|
|
31308
|
-
return require2("./parser.android-arm64.node");
|
|
31309
|
-
} catch (e) {
|
|
31310
|
-
loadErrors.push(e);
|
|
31311
|
-
}
|
|
31312
|
-
try {
|
|
31313
|
-
const binding = require2("@oxc-parser/binding-android-arm64");
|
|
31314
|
-
const bindingPackageVersion = require2("@oxc-parser/binding-android-arm64/package.json").version;
|
|
31315
|
-
if (bindingPackageVersion !== "0.143.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
31316
|
-
throw new Error(`Native binding package version mismatch, expected 0.143.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
31317
|
-
}
|
|
31318
|
-
return binding;
|
|
31319
|
-
} catch (e) {
|
|
31320
|
-
loadErrors.push(e);
|
|
31321
|
-
}
|
|
31322
|
-
} else if (process.arch === "arm") {
|
|
31323
|
-
try {
|
|
31324
|
-
return require2("./parser.android-arm-eabi.node");
|
|
31325
|
-
} catch (e) {
|
|
31326
|
-
loadErrors.push(e);
|
|
31327
|
-
}
|
|
31328
|
-
try {
|
|
31329
|
-
const binding = require2("@oxc-parser/binding-android-arm-eabi");
|
|
31330
|
-
const bindingPackageVersion = require2("@oxc-parser/binding-android-arm-eabi/package.json").version;
|
|
31331
|
-
if (bindingPackageVersion !== "0.143.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
31332
|
-
throw new Error(`Native binding package version mismatch, expected 0.143.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
31333
|
-
}
|
|
31334
|
-
return binding;
|
|
31335
|
-
} catch (e) {
|
|
31336
|
-
loadErrors.push(e);
|
|
31337
|
-
}
|
|
31338
|
-
} else {
|
|
31339
|
-
loadErrors.push(new Error(`Unsupported architecture on Android ${process.arch}`));
|
|
31340
|
-
}
|
|
31341
|
-
} else if (process.platform === "win32") {
|
|
31342
|
-
if (process.arch === "x64") {
|
|
31343
|
-
if (process.config && process.config.variables && process.config.variables.shlib_suffix === "dll.a" || process.config && process.config.variables && process.config.variables.node_target_type === "shared_library") {
|
|
31344
|
-
try {
|
|
31345
|
-
return require2("./parser.win32-x64-gnu.node");
|
|
31346
|
-
} catch (e) {
|
|
31347
|
-
loadErrors.push(e);
|
|
31348
|
-
}
|
|
31349
|
-
try {
|
|
31350
|
-
const binding = require2("@oxc-parser/binding-win32-x64-gnu");
|
|
31351
|
-
const bindingPackageVersion = require2("@oxc-parser/binding-win32-x64-gnu/package.json").version;
|
|
31352
|
-
if (bindingPackageVersion !== "0.143.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
31353
|
-
throw new Error(`Native binding package version mismatch, expected 0.143.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
31354
|
-
}
|
|
31355
|
-
return binding;
|
|
31356
|
-
} catch (e) {
|
|
31357
|
-
loadErrors.push(e);
|
|
31358
|
-
}
|
|
31359
|
-
} else {
|
|
31360
|
-
try {
|
|
31361
|
-
return require2("./parser.win32-x64-msvc.node");
|
|
31362
|
-
} catch (e) {
|
|
31363
|
-
loadErrors.push(e);
|
|
31364
|
-
}
|
|
31365
|
-
try {
|
|
31366
|
-
const binding = require2("@oxc-parser/binding-win32-x64-msvc");
|
|
31367
|
-
const bindingPackageVersion = require2("@oxc-parser/binding-win32-x64-msvc/package.json").version;
|
|
31368
|
-
if (bindingPackageVersion !== "0.143.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
31369
|
-
throw new Error(`Native binding package version mismatch, expected 0.143.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
31370
|
-
}
|
|
31371
|
-
return binding;
|
|
31372
|
-
} catch (e) {
|
|
31373
|
-
loadErrors.push(e);
|
|
31374
|
-
}
|
|
31375
|
-
}
|
|
31376
|
-
} else if (process.arch === "ia32") {
|
|
31377
|
-
try {
|
|
31378
|
-
return require2("./parser.win32-ia32-msvc.node");
|
|
31379
|
-
} catch (e) {
|
|
31380
|
-
loadErrors.push(e);
|
|
31381
|
-
}
|
|
31382
|
-
try {
|
|
31383
|
-
const binding = require2("@oxc-parser/binding-win32-ia32-msvc");
|
|
31384
|
-
const bindingPackageVersion = require2("@oxc-parser/binding-win32-ia32-msvc/package.json").version;
|
|
31385
|
-
if (bindingPackageVersion !== "0.143.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
31386
|
-
throw new Error(`Native binding package version mismatch, expected 0.143.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
31387
|
-
}
|
|
31388
|
-
return binding;
|
|
31389
|
-
} catch (e) {
|
|
31390
|
-
loadErrors.push(e);
|
|
31391
|
-
}
|
|
31392
|
-
} else if (process.arch === "arm64") {
|
|
31393
|
-
try {
|
|
31394
|
-
return require2("./parser.win32-arm64-msvc.node");
|
|
31395
|
-
} catch (e) {
|
|
31396
|
-
loadErrors.push(e);
|
|
31397
|
-
}
|
|
31398
|
-
try {
|
|
31399
|
-
const binding = require2("@oxc-parser/binding-win32-arm64-msvc");
|
|
31400
|
-
const bindingPackageVersion = require2("@oxc-parser/binding-win32-arm64-msvc/package.json").version;
|
|
31401
|
-
if (bindingPackageVersion !== "0.143.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
31402
|
-
throw new Error(`Native binding package version mismatch, expected 0.143.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
31403
|
-
}
|
|
31404
|
-
return binding;
|
|
31405
|
-
} catch (e) {
|
|
31406
|
-
loadErrors.push(e);
|
|
31407
|
-
}
|
|
31408
|
-
} else {
|
|
31409
|
-
loadErrors.push(new Error(`Unsupported architecture on Windows: ${process.arch}`));
|
|
31410
|
-
}
|
|
31411
|
-
} else if (process.platform === "darwin") {
|
|
31412
|
-
try {
|
|
31413
|
-
return require2("./parser.darwin-universal.node");
|
|
31414
|
-
} catch (e) {
|
|
31415
|
-
loadErrors.push(e);
|
|
31416
|
-
}
|
|
31417
|
-
try {
|
|
31418
|
-
const binding = require2("@oxc-parser/binding-darwin-universal");
|
|
31419
|
-
const bindingPackageVersion = require2("@oxc-parser/binding-darwin-universal/package.json").version;
|
|
31420
|
-
if (bindingPackageVersion !== "0.143.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
31421
|
-
throw new Error(`Native binding package version mismatch, expected 0.143.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
31422
|
-
}
|
|
31423
|
-
return binding;
|
|
31424
|
-
} catch (e) {
|
|
31425
|
-
loadErrors.push(e);
|
|
31426
|
-
}
|
|
31427
|
-
if (process.arch === "x64") {
|
|
31428
|
-
try {
|
|
31429
|
-
return require2("./parser.darwin-x64.node");
|
|
31430
|
-
} catch (e) {
|
|
31431
|
-
loadErrors.push(e);
|
|
31432
|
-
}
|
|
31433
|
-
try {
|
|
31434
|
-
const binding = require2("@oxc-parser/binding-darwin-x64");
|
|
31435
|
-
const bindingPackageVersion = require2("@oxc-parser/binding-darwin-x64/package.json").version;
|
|
31436
|
-
if (bindingPackageVersion !== "0.143.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
31437
|
-
throw new Error(`Native binding package version mismatch, expected 0.143.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
31438
|
-
}
|
|
31439
|
-
return binding;
|
|
31440
|
-
} catch (e) {
|
|
31441
|
-
loadErrors.push(e);
|
|
31442
|
-
}
|
|
31443
|
-
} else if (process.arch === "arm64") {
|
|
31444
|
-
try {
|
|
31445
|
-
return require2("./parser.darwin-arm64.node");
|
|
31446
|
-
} catch (e) {
|
|
31447
|
-
loadErrors.push(e);
|
|
31448
|
-
}
|
|
31449
|
-
try {
|
|
31450
|
-
const binding = require2("@oxc-parser/binding-darwin-arm64");
|
|
31451
|
-
const bindingPackageVersion = require2("@oxc-parser/binding-darwin-arm64/package.json").version;
|
|
31452
|
-
if (bindingPackageVersion !== "0.143.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
31453
|
-
throw new Error(`Native binding package version mismatch, expected 0.143.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
31454
|
-
}
|
|
31455
|
-
return binding;
|
|
31456
|
-
} catch (e) {
|
|
31457
|
-
loadErrors.push(e);
|
|
31458
|
-
}
|
|
31459
|
-
} else {
|
|
31460
|
-
loadErrors.push(new Error(`Unsupported architecture on macOS: ${process.arch}`));
|
|
31461
|
-
}
|
|
31462
|
-
} else if (process.platform === "freebsd") {
|
|
31463
|
-
if (process.arch === "x64") {
|
|
31464
|
-
try {
|
|
31465
|
-
return require2("./parser.freebsd-x64.node");
|
|
31466
|
-
} catch (e) {
|
|
31467
|
-
loadErrors.push(e);
|
|
31468
|
-
}
|
|
31469
|
-
try {
|
|
31470
|
-
const binding = require2("@oxc-parser/binding-freebsd-x64");
|
|
31471
|
-
const bindingPackageVersion = require2("@oxc-parser/binding-freebsd-x64/package.json").version;
|
|
31472
|
-
if (bindingPackageVersion !== "0.143.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
31473
|
-
throw new Error(`Native binding package version mismatch, expected 0.143.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
31474
|
-
}
|
|
31475
|
-
return binding;
|
|
31476
|
-
} catch (e) {
|
|
31477
|
-
loadErrors.push(e);
|
|
31478
|
-
}
|
|
31479
|
-
} else if (process.arch === "arm64") {
|
|
31480
|
-
try {
|
|
31481
|
-
return require2("./parser.freebsd-arm64.node");
|
|
31482
|
-
} catch (e) {
|
|
31483
|
-
loadErrors.push(e);
|
|
31484
|
-
}
|
|
31485
|
-
try {
|
|
31486
|
-
const binding = require2("@oxc-parser/binding-freebsd-arm64");
|
|
31487
|
-
const bindingPackageVersion = require2("@oxc-parser/binding-freebsd-arm64/package.json").version;
|
|
31488
|
-
if (bindingPackageVersion !== "0.143.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
31489
|
-
throw new Error(`Native binding package version mismatch, expected 0.143.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
31490
|
-
}
|
|
31491
|
-
return binding;
|
|
31492
|
-
} catch (e) {
|
|
31493
|
-
loadErrors.push(e);
|
|
31494
|
-
}
|
|
31495
|
-
} else {
|
|
31496
|
-
loadErrors.push(new Error(`Unsupported architecture on FreeBSD: ${process.arch}`));
|
|
31497
|
-
}
|
|
31498
|
-
} else if (process.platform === "linux") {
|
|
31499
|
-
if (process.arch === "x64") {
|
|
31500
|
-
if (isMusl()) {
|
|
31501
|
-
try {
|
|
31502
|
-
return require2("./parser.linux-x64-musl.node");
|
|
31503
|
-
} catch (e) {
|
|
31504
|
-
loadErrors.push(e);
|
|
31505
|
-
}
|
|
31506
|
-
try {
|
|
31507
|
-
const binding = require2("@oxc-parser/binding-linux-x64-musl");
|
|
31508
|
-
const bindingPackageVersion = require2("@oxc-parser/binding-linux-x64-musl/package.json").version;
|
|
31509
|
-
if (bindingPackageVersion !== "0.143.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
31510
|
-
throw new Error(`Native binding package version mismatch, expected 0.143.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
31511
|
-
}
|
|
31512
|
-
return binding;
|
|
31513
|
-
} catch (e) {
|
|
31514
|
-
loadErrors.push(e);
|
|
31515
|
-
}
|
|
31516
|
-
} else {
|
|
31517
|
-
try {
|
|
31518
|
-
return require2("./parser.linux-x64-gnu.node");
|
|
31519
|
-
} catch (e) {
|
|
31520
|
-
loadErrors.push(e);
|
|
31521
|
-
}
|
|
31522
|
-
try {
|
|
31523
|
-
const binding = require2("@oxc-parser/binding-linux-x64-gnu");
|
|
31524
|
-
const bindingPackageVersion = require2("@oxc-parser/binding-linux-x64-gnu/package.json").version;
|
|
31525
|
-
if (bindingPackageVersion !== "0.143.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
31526
|
-
throw new Error(`Native binding package version mismatch, expected 0.143.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
31527
|
-
}
|
|
31528
|
-
return binding;
|
|
31529
|
-
} catch (e) {
|
|
31530
|
-
loadErrors.push(e);
|
|
31531
|
-
}
|
|
31532
|
-
}
|
|
31533
|
-
} else if (process.arch === "arm64") {
|
|
31534
|
-
if (isMusl()) {
|
|
31535
|
-
try {
|
|
31536
|
-
return require2("./parser.linux-arm64-musl.node");
|
|
31537
|
-
} catch (e) {
|
|
31538
|
-
loadErrors.push(e);
|
|
31539
|
-
}
|
|
31540
|
-
try {
|
|
31541
|
-
const binding = require2("@oxc-parser/binding-linux-arm64-musl");
|
|
31542
|
-
const bindingPackageVersion = require2("@oxc-parser/binding-linux-arm64-musl/package.json").version;
|
|
31543
|
-
if (bindingPackageVersion !== "0.143.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
31544
|
-
throw new Error(`Native binding package version mismatch, expected 0.143.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
31545
|
-
}
|
|
31546
|
-
return binding;
|
|
31547
|
-
} catch (e) {
|
|
31548
|
-
loadErrors.push(e);
|
|
31549
|
-
}
|
|
31550
|
-
} else {
|
|
31551
|
-
try {
|
|
31552
|
-
return require2("./parser.linux-arm64-gnu.node");
|
|
31553
|
-
} catch (e) {
|
|
31554
|
-
loadErrors.push(e);
|
|
31555
|
-
}
|
|
31556
|
-
try {
|
|
31557
|
-
const binding = require2("@oxc-parser/binding-linux-arm64-gnu");
|
|
31558
|
-
const bindingPackageVersion = require2("@oxc-parser/binding-linux-arm64-gnu/package.json").version;
|
|
31559
|
-
if (bindingPackageVersion !== "0.143.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
31560
|
-
throw new Error(`Native binding package version mismatch, expected 0.143.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
31561
|
-
}
|
|
31562
|
-
return binding;
|
|
31563
|
-
} catch (e) {
|
|
31564
|
-
loadErrors.push(e);
|
|
31565
|
-
}
|
|
31566
|
-
}
|
|
31567
|
-
} else if (process.arch === "arm") {
|
|
31568
|
-
if (isMusl()) {
|
|
31569
|
-
try {
|
|
31570
|
-
return require2("./parser.linux-arm-musleabihf.node");
|
|
31571
|
-
} catch (e) {
|
|
31572
|
-
loadErrors.push(e);
|
|
31573
|
-
}
|
|
31574
|
-
try {
|
|
31575
|
-
const binding = require2("@oxc-parser/binding-linux-arm-musleabihf");
|
|
31576
|
-
const bindingPackageVersion = require2("@oxc-parser/binding-linux-arm-musleabihf/package.json").version;
|
|
31577
|
-
if (bindingPackageVersion !== "0.143.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
31578
|
-
throw new Error(`Native binding package version mismatch, expected 0.143.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
31579
|
-
}
|
|
31580
|
-
return binding;
|
|
31581
|
-
} catch (e) {
|
|
31582
|
-
loadErrors.push(e);
|
|
31583
|
-
}
|
|
31584
|
-
} else {
|
|
31585
|
-
try {
|
|
31586
|
-
return require2("./parser.linux-arm-gnueabihf.node");
|
|
31587
|
-
} catch (e) {
|
|
31588
|
-
loadErrors.push(e);
|
|
31589
|
-
}
|
|
31590
|
-
try {
|
|
31591
|
-
const binding = require2("@oxc-parser/binding-linux-arm-gnueabihf");
|
|
31592
|
-
const bindingPackageVersion = require2("@oxc-parser/binding-linux-arm-gnueabihf/package.json").version;
|
|
31593
|
-
if (bindingPackageVersion !== "0.143.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
31594
|
-
throw new Error(`Native binding package version mismatch, expected 0.143.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
31595
|
-
}
|
|
31596
|
-
return binding;
|
|
31597
|
-
} catch (e) {
|
|
31598
|
-
loadErrors.push(e);
|
|
31599
|
-
}
|
|
31600
|
-
}
|
|
31601
|
-
} else if (process.arch === "loong64") {
|
|
31602
|
-
if (isMusl()) {
|
|
31603
|
-
try {
|
|
31604
|
-
return require2("./parser.linux-loong64-musl.node");
|
|
31605
|
-
} catch (e) {
|
|
31606
|
-
loadErrors.push(e);
|
|
31607
|
-
}
|
|
31608
|
-
try {
|
|
31609
|
-
const binding = require2("@oxc-parser/binding-linux-loong64-musl");
|
|
31610
|
-
const bindingPackageVersion = require2("@oxc-parser/binding-linux-loong64-musl/package.json").version;
|
|
31611
|
-
if (bindingPackageVersion !== "0.143.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
31612
|
-
throw new Error(`Native binding package version mismatch, expected 0.143.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
31613
|
-
}
|
|
31614
|
-
return binding;
|
|
31615
|
-
} catch (e) {
|
|
31616
|
-
loadErrors.push(e);
|
|
31617
|
-
}
|
|
31618
|
-
} else {
|
|
31619
|
-
try {
|
|
31620
|
-
return require2("./parser.linux-loong64-gnu.node");
|
|
31621
|
-
} catch (e) {
|
|
31622
|
-
loadErrors.push(e);
|
|
31623
|
-
}
|
|
31624
|
-
try {
|
|
31625
|
-
const binding = require2("@oxc-parser/binding-linux-loong64-gnu");
|
|
31626
|
-
const bindingPackageVersion = require2("@oxc-parser/binding-linux-loong64-gnu/package.json").version;
|
|
31627
|
-
if (bindingPackageVersion !== "0.143.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
31628
|
-
throw new Error(`Native binding package version mismatch, expected 0.143.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
31629
|
-
}
|
|
31630
|
-
return binding;
|
|
31631
|
-
} catch (e) {
|
|
31632
|
-
loadErrors.push(e);
|
|
31633
|
-
}
|
|
31634
|
-
}
|
|
31635
|
-
} else if (process.arch === "riscv64") {
|
|
31636
|
-
if (isMusl()) {
|
|
31637
|
-
try {
|
|
31638
|
-
return require2("./parser.linux-riscv64-musl.node");
|
|
31639
|
-
} catch (e) {
|
|
31640
|
-
loadErrors.push(e);
|
|
31641
|
-
}
|
|
31642
|
-
try {
|
|
31643
|
-
const binding = require2("@oxc-parser/binding-linux-riscv64-musl");
|
|
31644
|
-
const bindingPackageVersion = require2("@oxc-parser/binding-linux-riscv64-musl/package.json").version;
|
|
31645
|
-
if (bindingPackageVersion !== "0.143.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
31646
|
-
throw new Error(`Native binding package version mismatch, expected 0.143.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
31647
|
-
}
|
|
31648
|
-
return binding;
|
|
31649
|
-
} catch (e) {
|
|
31650
|
-
loadErrors.push(e);
|
|
31651
|
-
}
|
|
31652
|
-
} else {
|
|
31653
|
-
try {
|
|
31654
|
-
return require2("./parser.linux-riscv64-gnu.node");
|
|
31655
|
-
} catch (e) {
|
|
31656
|
-
loadErrors.push(e);
|
|
31657
|
-
}
|
|
31658
|
-
try {
|
|
31659
|
-
const binding = require2("@oxc-parser/binding-linux-riscv64-gnu");
|
|
31660
|
-
const bindingPackageVersion = require2("@oxc-parser/binding-linux-riscv64-gnu/package.json").version;
|
|
31661
|
-
if (bindingPackageVersion !== "0.143.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
31662
|
-
throw new Error(`Native binding package version mismatch, expected 0.143.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
31663
|
-
}
|
|
31664
|
-
return binding;
|
|
31665
|
-
} catch (e) {
|
|
31666
|
-
loadErrors.push(e);
|
|
31667
|
-
}
|
|
31668
|
-
}
|
|
31669
|
-
} else if (process.arch === "ppc64") {
|
|
31670
|
-
try {
|
|
31671
|
-
return require2("./parser.linux-ppc64-gnu.node");
|
|
31672
|
-
} catch (e) {
|
|
31673
|
-
loadErrors.push(e);
|
|
31674
|
-
}
|
|
31675
|
-
try {
|
|
31676
|
-
const binding = require2("@oxc-parser/binding-linux-ppc64-gnu");
|
|
31677
|
-
const bindingPackageVersion = require2("@oxc-parser/binding-linux-ppc64-gnu/package.json").version;
|
|
31678
|
-
if (bindingPackageVersion !== "0.143.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
31679
|
-
throw new Error(`Native binding package version mismatch, expected 0.143.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
31680
|
-
}
|
|
31681
|
-
return binding;
|
|
31682
|
-
} catch (e) {
|
|
31683
|
-
loadErrors.push(e);
|
|
31684
|
-
}
|
|
31685
|
-
} else if (process.arch === "s390x") {
|
|
31686
|
-
try {
|
|
31687
|
-
return require2("./parser.linux-s390x-gnu.node");
|
|
31688
|
-
} catch (e) {
|
|
31689
|
-
loadErrors.push(e);
|
|
31690
|
-
}
|
|
31691
|
-
try {
|
|
31692
|
-
const binding = require2("@oxc-parser/binding-linux-s390x-gnu");
|
|
31693
|
-
const bindingPackageVersion = require2("@oxc-parser/binding-linux-s390x-gnu/package.json").version;
|
|
31694
|
-
if (bindingPackageVersion !== "0.143.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
31695
|
-
throw new Error(`Native binding package version mismatch, expected 0.143.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
31696
|
-
}
|
|
31697
|
-
return binding;
|
|
31698
|
-
} catch (e) {
|
|
31699
|
-
loadErrors.push(e);
|
|
31700
|
-
}
|
|
31701
|
-
} else {
|
|
31702
|
-
loadErrors.push(new Error(`Unsupported architecture on Linux: ${process.arch}`));
|
|
31703
|
-
}
|
|
31704
|
-
} else if (process.platform === "openharmony") {
|
|
31705
|
-
if (process.arch === "arm64") {
|
|
31706
|
-
try {
|
|
31707
|
-
return require2("./parser.openharmony-arm64.node");
|
|
31708
|
-
} catch (e) {
|
|
31709
|
-
loadErrors.push(e);
|
|
31710
|
-
}
|
|
31711
|
-
try {
|
|
31712
|
-
const binding = require2("@oxc-parser/binding-openharmony-arm64");
|
|
31713
|
-
const bindingPackageVersion = require2("@oxc-parser/binding-openharmony-arm64/package.json").version;
|
|
31714
|
-
if (bindingPackageVersion !== "0.143.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
31715
|
-
throw new Error(`Native binding package version mismatch, expected 0.143.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
31716
|
-
}
|
|
31717
|
-
return binding;
|
|
31718
|
-
} catch (e) {
|
|
31719
|
-
loadErrors.push(e);
|
|
31720
|
-
}
|
|
31721
|
-
} else if (process.arch === "x64") {
|
|
31722
|
-
try {
|
|
31723
|
-
return require2("./parser.openharmony-x64.node");
|
|
31724
|
-
} catch (e) {
|
|
31725
|
-
loadErrors.push(e);
|
|
31726
|
-
}
|
|
31727
|
-
try {
|
|
31728
|
-
const binding = require2("@oxc-parser/binding-openharmony-x64");
|
|
31729
|
-
const bindingPackageVersion = require2("@oxc-parser/binding-openharmony-x64/package.json").version;
|
|
31730
|
-
if (bindingPackageVersion !== "0.143.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
31731
|
-
throw new Error(`Native binding package version mismatch, expected 0.143.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
31732
|
-
}
|
|
31733
|
-
return binding;
|
|
31734
|
-
} catch (e) {
|
|
31735
|
-
loadErrors.push(e);
|
|
31736
|
-
}
|
|
31737
|
-
} else if (process.arch === "arm") {
|
|
31738
|
-
try {
|
|
31739
|
-
return require2("./parser.openharmony-arm.node");
|
|
31740
|
-
} catch (e) {
|
|
31741
|
-
loadErrors.push(e);
|
|
31742
|
-
}
|
|
31743
|
-
try {
|
|
31744
|
-
const binding = require2("@oxc-parser/binding-openharmony-arm");
|
|
31745
|
-
const bindingPackageVersion = require2("@oxc-parser/binding-openharmony-arm/package.json").version;
|
|
31746
|
-
if (bindingPackageVersion !== "0.143.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
31747
|
-
throw new Error(`Native binding package version mismatch, expected 0.143.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
31748
|
-
}
|
|
31749
|
-
return binding;
|
|
31750
|
-
} catch (e) {
|
|
31751
|
-
loadErrors.push(e);
|
|
31752
|
-
}
|
|
31753
|
-
} else {
|
|
31754
|
-
loadErrors.push(new Error(`Unsupported architecture on OpenHarmony: ${process.arch}`));
|
|
31755
|
-
}
|
|
31756
|
-
} else {
|
|
31757
|
-
loadErrors.push(new Error(`Unsupported OS: ${process.platform}, architecture: ${process.arch}`));
|
|
31758
|
-
}
|
|
31759
|
-
}
|
|
31760
|
-
function createLoadErrorChain(errors) {
|
|
31761
|
-
return errors.reduce((previous, current) => {
|
|
31762
|
-
let message;
|
|
31763
|
-
try {
|
|
31764
|
-
message = current && typeof current.message === "string" ? current.message : String(current);
|
|
31765
|
-
} catch {
|
|
31766
|
-
message = "Unknown error";
|
|
31767
|
-
}
|
|
31768
|
-
const error2 = new Error(message);
|
|
31769
|
-
error2.cause = previous;
|
|
31770
|
-
return error2;
|
|
31771
|
-
}, null);
|
|
31772
|
-
}
|
|
31773
|
-
var import_module, import_meta3, require2, __dirname2, readFileSync, nativeBinding, loadErrors, isMusl, isFileMusl, isMuslFromFilesystem, isMuslFromReport, isMuslFromChildProcess, __napiWasiFlavors, __napiWasiFlavor, __napiWasiFlavorRequested, forceWasiError, forceWasi, Severity, ParseResult, ExportExportNameKind, ExportImportNameKind, ExportLocalNameKind, ImportNameKind, parse, parseSync, rawTransferSupported, getBufferOffset, parseRaw, parseRawSync;
|
|
31774
|
-
var init_bindings = __esm({
|
|
31775
|
-
"../../node_modules/.pnpm/oxc-parser@0.143.0/node_modules/oxc-parser/src-js/bindings.js"() {
|
|
31776
|
-
"use strict";
|
|
31777
|
-
import_module = require("module");
|
|
31778
|
-
import_meta3 = {};
|
|
31779
|
-
require2 = (0, import_module.createRequire)(import_meta3.url);
|
|
31780
|
-
__dirname2 = new URL(".", import_meta3.url).pathname;
|
|
31781
|
-
({ readFileSync } = require2("fs"));
|
|
31782
|
-
nativeBinding = null;
|
|
31783
|
-
loadErrors = [];
|
|
31784
|
-
isMusl = () => {
|
|
31785
|
-
let musl = false;
|
|
31786
|
-
if (process.platform === "linux") {
|
|
31787
|
-
musl = isMuslFromFilesystem();
|
|
31788
|
-
if (musl === null) {
|
|
31789
|
-
musl = isMuslFromReport();
|
|
31790
|
-
}
|
|
31791
|
-
if (musl === null) {
|
|
31792
|
-
musl = isMuslFromChildProcess();
|
|
31793
|
-
}
|
|
31794
|
-
}
|
|
31795
|
-
return musl;
|
|
31796
|
-
};
|
|
31797
|
-
isFileMusl = (f) => f.includes("libc.musl-") || f.includes("ld-musl-");
|
|
31798
|
-
isMuslFromFilesystem = () => {
|
|
31799
|
-
try {
|
|
31800
|
-
return readFileSync("/usr/bin/ldd", "utf-8").includes("musl");
|
|
31801
|
-
} catch {
|
|
31802
|
-
return null;
|
|
31803
|
-
}
|
|
31804
|
-
};
|
|
31805
|
-
isMuslFromReport = () => {
|
|
31806
|
-
let report = null;
|
|
31807
|
-
if (process.report && typeof process.report.getReport === "function") {
|
|
31808
|
-
process.report.excludeNetwork = true;
|
|
31809
|
-
report = process.report.getReport();
|
|
31810
|
-
}
|
|
31811
|
-
if (!report) {
|
|
31812
|
-
return null;
|
|
31813
|
-
}
|
|
31814
|
-
if (report.header && report.header.glibcVersionRuntime) {
|
|
31815
|
-
return false;
|
|
31816
|
-
}
|
|
31817
|
-
if (Array.isArray(report.sharedObjects)) {
|
|
31818
|
-
if (report.sharedObjects.some(isFileMusl)) {
|
|
31819
|
-
return true;
|
|
31820
|
-
}
|
|
31821
|
-
}
|
|
31822
|
-
return false;
|
|
31823
|
-
};
|
|
31824
|
-
isMuslFromChildProcess = () => {
|
|
31825
|
-
try {
|
|
31826
|
-
return require2("child_process").execSync("ldd --version", { encoding: "utf8" }).includes("musl");
|
|
31827
|
-
} catch (e) {
|
|
31828
|
-
return false;
|
|
31829
|
-
}
|
|
31830
|
-
};
|
|
31831
|
-
__napiWasiFlavors = ["wasm32-wasi"];
|
|
31832
|
-
__napiWasiFlavor = process.env.NAPI_RS_WASI_FLAVOR;
|
|
31833
|
-
__napiWasiFlavorRequested = typeof __napiWasiFlavor === "string" && __napiWasiFlavor.length > 0;
|
|
31834
|
-
if (__napiWasiFlavorRequested && __napiWasiFlavors.indexOf(__napiWasiFlavor) === -1) {
|
|
31835
|
-
throw new Error(
|
|
31836
|
-
'Unsupported WASI flavor "' + __napiWasiFlavor + '". Available flavors: ' + __napiWasiFlavors.join(", ")
|
|
31837
|
-
);
|
|
31838
|
-
}
|
|
31839
|
-
forceWasiError = process.env.NAPI_RS_FORCE_WASI === "error";
|
|
31840
|
-
forceWasi = process.env.NAPI_RS_FORCE_WASI === "true" || forceWasiError || __napiWasiFlavorRequested;
|
|
31841
|
-
if (!forceWasi) {
|
|
31842
|
-
nativeBinding = requireNative();
|
|
31843
|
-
}
|
|
31844
|
-
if (!nativeBinding || forceWasi) {
|
|
31845
|
-
let wasiBinding = null;
|
|
31846
|
-
let wasiBindingLoaded = false;
|
|
31847
|
-
const wasiBindingErrors = [];
|
|
31848
|
-
const __napiWasiResolveCandidate = (specifier, isPackage, localArtifacts) => {
|
|
31849
|
-
try {
|
|
31850
|
-
require2.resolve(specifier);
|
|
31851
|
-
} catch (resolveError) {
|
|
31852
|
-
if (!resolveError || resolveError.code !== "MODULE_NOT_FOUND") {
|
|
31853
|
-
throw resolveError;
|
|
31854
|
-
}
|
|
31855
|
-
if (isPackage) {
|
|
31856
|
-
try {
|
|
31857
|
-
require2.resolve(specifier + "/package.json");
|
|
31858
|
-
} catch (packageError) {
|
|
31859
|
-
if (packageError && packageError.code === "MODULE_NOT_FOUND") {
|
|
31860
|
-
return resolveError;
|
|
31861
|
-
}
|
|
31862
|
-
throw resolveError;
|
|
31863
|
-
}
|
|
31864
|
-
throw resolveError;
|
|
31865
|
-
}
|
|
31866
|
-
return resolveError;
|
|
31867
|
-
}
|
|
31868
|
-
if (localArtifacts) {
|
|
31869
|
-
let artifactError = null;
|
|
31870
|
-
for (let i = 0; i < localArtifacts.length; i++) {
|
|
31871
|
-
try {
|
|
31872
|
-
require2.resolve(localArtifacts[i]);
|
|
31873
|
-
return null;
|
|
31874
|
-
} catch (resolveError) {
|
|
31875
|
-
if (!resolveError || resolveError.code !== "MODULE_NOT_FOUND") {
|
|
31876
|
-
throw resolveError;
|
|
31877
|
-
}
|
|
31878
|
-
artifactError = resolveError;
|
|
31879
|
-
}
|
|
31880
|
-
}
|
|
31881
|
-
return artifactError;
|
|
31882
|
-
}
|
|
31883
|
-
return null;
|
|
31884
|
-
};
|
|
31885
|
-
if (!wasiBindingLoaded && (!__napiWasiFlavorRequested || __napiWasiFlavor === "wasm32-wasi")) {
|
|
31886
|
-
let candidateError = null;
|
|
31887
|
-
let candidateFailed = false;
|
|
31888
|
-
try {
|
|
31889
|
-
candidateError = __napiWasiResolveCandidate("./parser.wasi.cjs", false, ["./parser.wasm32-wasi.debug.wasm", "./parser.wasm32-wasi.wasm"]);
|
|
31890
|
-
candidateFailed = candidateError !== null;
|
|
31891
|
-
if (!candidateFailed) {
|
|
31892
|
-
wasiBinding = require2("./parser.wasi.cjs");
|
|
31893
|
-
nativeBinding = wasiBinding;
|
|
31894
|
-
wasiBindingLoaded = true;
|
|
31895
|
-
}
|
|
31896
|
-
} catch (err) {
|
|
31897
|
-
candidateError = err;
|
|
31898
|
-
candidateFailed = true;
|
|
31899
|
-
}
|
|
31900
|
-
if (candidateFailed) {
|
|
31901
|
-
wasiBindingErrors.push(candidateError);
|
|
31902
|
-
loadErrors.push(candidateError);
|
|
31903
|
-
}
|
|
31904
|
-
}
|
|
31905
|
-
if (!wasiBindingLoaded && (!__napiWasiFlavorRequested || __napiWasiFlavor === "wasm32-wasi")) {
|
|
31906
|
-
let candidateError = null;
|
|
31907
|
-
let candidateFailed = false;
|
|
31908
|
-
try {
|
|
31909
|
-
candidateError = __napiWasiResolveCandidate("@oxc-parser/binding-wasm32-wasi", true, void 0);
|
|
31910
|
-
candidateFailed = candidateError !== null;
|
|
31911
|
-
if (!candidateFailed) {
|
|
31912
|
-
if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
31913
|
-
const bindingPackageVersion = require2("@oxc-parser/binding-wasm32-wasi/package.json").version;
|
|
31914
|
-
if (bindingPackageVersion !== "0.143.0") {
|
|
31915
|
-
throw new Error(`WASI binding package version mismatch, expected 0.143.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
31916
|
-
}
|
|
31917
|
-
}
|
|
31918
|
-
wasiBinding = require2("@oxc-parser/binding-wasm32-wasi");
|
|
31919
|
-
nativeBinding = wasiBinding;
|
|
31920
|
-
wasiBindingLoaded = true;
|
|
31921
|
-
}
|
|
31922
|
-
} catch (err) {
|
|
31923
|
-
candidateError = err;
|
|
31924
|
-
candidateFailed = true;
|
|
31925
|
-
}
|
|
31926
|
-
if (candidateFailed) {
|
|
31927
|
-
wasiBindingErrors.push(candidateError);
|
|
31928
|
-
loadErrors.push(candidateError);
|
|
31929
|
-
}
|
|
31930
|
-
}
|
|
31931
|
-
if (!wasiBindingLoaded && forceWasi && !forceWasiError && !__napiWasiFlavorRequested) {
|
|
31932
|
-
nativeBinding = requireNative();
|
|
31933
|
-
}
|
|
31934
|
-
if ((forceWasiError || __napiWasiFlavorRequested) && !wasiBindingLoaded) {
|
|
31935
|
-
const error2 = new Error(
|
|
31936
|
-
__napiWasiFlavorRequested ? 'WASI binding for flavor "' + __napiWasiFlavor + '" not found' : "WASI binding not found and NAPI_RS_FORCE_WASI is set to error"
|
|
31937
|
-
);
|
|
31938
|
-
error2.cause = createLoadErrorChain(wasiBindingErrors);
|
|
31939
|
-
throw error2;
|
|
31940
|
-
}
|
|
31941
|
-
}
|
|
31942
|
-
if (!nativeBinding && globalThis.process?.versions?.["webcontainer"]) {
|
|
31943
|
-
try {
|
|
31944
|
-
nativeBinding = require2("./webcontainer-fallback.cjs");
|
|
31945
|
-
} catch (err) {
|
|
31946
|
-
loadErrors.push(err);
|
|
31947
|
-
}
|
|
31948
|
-
}
|
|
31949
|
-
if (!nativeBinding) {
|
|
31950
|
-
if (loadErrors.length > 0) {
|
|
31951
|
-
const error2 = new Error(
|
|
31952
|
-
`Cannot find native binding. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try \`npm i\` again after removing both package-lock.json and node_modules directory.`
|
|
31953
|
-
);
|
|
31954
|
-
error2.cause = createLoadErrorChain(loadErrors);
|
|
31955
|
-
throw error2;
|
|
31956
|
-
}
|
|
31957
|
-
throw new Error(`Failed to load native binding`);
|
|
31958
|
-
}
|
|
31959
|
-
({ Severity, ParseResult, ExportExportNameKind, ExportImportNameKind, ExportLocalNameKind, ImportNameKind, parse, parseSync, rawTransferSupported } = nativeBinding);
|
|
31960
|
-
({ getBufferOffset, parseRaw, parseRawSync } = nativeBinding);
|
|
31961
|
-
}
|
|
31962
|
-
});
|
|
31963
|
-
|
|
31964
|
-
// ../../node_modules/.pnpm/oxc-parser@0.143.0/node_modules/oxc-parser/src-js/wrap.js
|
|
31965
|
-
function wrap(result) {
|
|
31966
|
-
let program3, module4, comments, errors;
|
|
31967
|
-
return {
|
|
31968
|
-
get program() {
|
|
31969
|
-
if (!program3) program3 = jsonParseAst(result.program);
|
|
31970
|
-
return program3;
|
|
31971
|
-
},
|
|
31972
|
-
get module() {
|
|
31973
|
-
if (!module4) module4 = result.module;
|
|
31974
|
-
return module4;
|
|
31975
|
-
},
|
|
31976
|
-
get comments() {
|
|
31977
|
-
if (!comments) comments = result.comments;
|
|
31978
|
-
return comments;
|
|
31979
|
-
},
|
|
31980
|
-
get errors() {
|
|
31981
|
-
if (!errors) errors = result.errors;
|
|
31982
|
-
return errors;
|
|
31983
|
-
}
|
|
31984
|
-
};
|
|
31985
|
-
}
|
|
31986
|
-
function jsonParseAst(programJson) {
|
|
31987
|
-
const { node: program3, fixes } = JSON.parse(programJson);
|
|
31988
|
-
for (const fixPath of fixes) {
|
|
31989
|
-
applyFix(program3, fixPath);
|
|
31990
|
-
}
|
|
31991
|
-
return program3;
|
|
31992
|
-
}
|
|
31993
|
-
function applyFix(program3, fixPath) {
|
|
31994
|
-
let node = program3;
|
|
31995
|
-
for (const key of fixPath) {
|
|
31996
|
-
node = node[key];
|
|
31997
|
-
}
|
|
31998
|
-
if (node.bigint) {
|
|
31999
|
-
node.value = BigInt(node.bigint);
|
|
32000
|
-
} else {
|
|
32001
|
-
try {
|
|
32002
|
-
node.value = RegExp(node.regex.pattern, node.regex.flags);
|
|
32003
|
-
} catch {
|
|
32004
|
-
}
|
|
32005
|
-
}
|
|
32006
|
-
}
|
|
32007
|
-
var init_wrap = __esm({
|
|
32008
|
-
"../../node_modules/.pnpm/oxc-parser@0.143.0/node_modules/oxc-parser/src-js/wrap.js"() {
|
|
32009
|
-
"use strict";
|
|
32010
|
-
}
|
|
32011
|
-
});
|
|
32012
|
-
|
|
32013
|
-
// ../../node_modules/.pnpm/oxc-parser@0.143.0/node_modules/oxc-parser/src-js/generated/visit/keys.js
|
|
32014
|
-
var freeze, $EMPTY, DECORATORS__KEY__TYPE_ANNOTATION__VALUE, LEFT__RIGHT, ARGUMENT, BODY, LABEL, CALLEE__TYPE_ARGUMENTS__ARGUMENTS, EXPRESSION, DECORATORS__ID__TYPE_PARAMETERS__SUPER_CLASS__SUPER_TYPE_ARGUMENTS__IMPLEMENTS__BODY, TEST__CONSEQUENT__ALTERNATE, LEFT__RIGHT__BODY, ID__TYPE_PARAMETERS__PARAMS__RETURN_TYPE__BODY, KEY__VALUE, LOCAL, OBJECT__PROPERTY, DECORATORS__KEY__TYPE_ANNOTATION, EXPRESSION__TYPE_ANNOTATION, TYPE_PARAMETERS__PARAMS__RETURN_TYPE, EXPRESSION__TYPE_ARGUMENTS, MEMBERS, ID__BODY, TYPES, TYPE_ANNOTATION, PARAMS, keys_default;
|
|
32015
|
-
var init_keys = __esm({
|
|
32016
|
-
"../../node_modules/.pnpm/oxc-parser@0.143.0/node_modules/oxc-parser/src-js/generated/visit/keys.js"() {
|
|
32017
|
-
"use strict";
|
|
32018
|
-
({ freeze } = Object);
|
|
32019
|
-
$EMPTY = freeze([]);
|
|
32020
|
-
DECORATORS__KEY__TYPE_ANNOTATION__VALUE = freeze([
|
|
32021
|
-
"decorators",
|
|
32022
|
-
"key",
|
|
32023
|
-
"typeAnnotation",
|
|
32024
|
-
"value"
|
|
32025
|
-
]);
|
|
32026
|
-
LEFT__RIGHT = freeze(["left", "right"]);
|
|
32027
|
-
ARGUMENT = freeze(["argument"]);
|
|
32028
|
-
BODY = freeze(["body"]);
|
|
32029
|
-
LABEL = freeze(["label"]);
|
|
32030
|
-
CALLEE__TYPE_ARGUMENTS__ARGUMENTS = freeze(["callee", "typeArguments", "arguments"]);
|
|
32031
|
-
EXPRESSION = freeze(["expression"]);
|
|
32032
|
-
DECORATORS__ID__TYPE_PARAMETERS__SUPER_CLASS__SUPER_TYPE_ARGUMENTS__IMPLEMENTS__BODY = freeze([
|
|
32033
|
-
"decorators",
|
|
32034
|
-
"id",
|
|
32035
|
-
"typeParameters",
|
|
32036
|
-
"superClass",
|
|
32037
|
-
"superTypeArguments",
|
|
32038
|
-
"implements",
|
|
32039
|
-
"body"
|
|
32040
|
-
]);
|
|
32041
|
-
TEST__CONSEQUENT__ALTERNATE = freeze(["test", "consequent", "alternate"]);
|
|
32042
|
-
LEFT__RIGHT__BODY = freeze(["left", "right", "body"]);
|
|
32043
|
-
ID__TYPE_PARAMETERS__PARAMS__RETURN_TYPE__BODY = freeze([
|
|
32044
|
-
"id",
|
|
32045
|
-
"typeParameters",
|
|
32046
|
-
"params",
|
|
32047
|
-
"returnType",
|
|
32048
|
-
"body"
|
|
32049
|
-
]);
|
|
32050
|
-
KEY__VALUE = freeze(["key", "value"]);
|
|
32051
|
-
LOCAL = freeze(["local"]);
|
|
32052
|
-
OBJECT__PROPERTY = freeze(["object", "property"]);
|
|
32053
|
-
DECORATORS__KEY__TYPE_ANNOTATION = freeze(["decorators", "key", "typeAnnotation"]);
|
|
32054
|
-
EXPRESSION__TYPE_ANNOTATION = freeze(["expression", "typeAnnotation"]);
|
|
32055
|
-
TYPE_PARAMETERS__PARAMS__RETURN_TYPE = freeze(["typeParameters", "params", "returnType"]);
|
|
32056
|
-
EXPRESSION__TYPE_ARGUMENTS = freeze(["expression", "typeArguments"]);
|
|
32057
|
-
MEMBERS = freeze(["members"]);
|
|
32058
|
-
ID__BODY = freeze(["id", "body"]);
|
|
32059
|
-
TYPES = freeze(["types"]);
|
|
32060
|
-
TYPE_ANNOTATION = freeze(["typeAnnotation"]);
|
|
32061
|
-
PARAMS = freeze(["params"]);
|
|
32062
|
-
keys_default = freeze({
|
|
32063
|
-
// Leaf nodes
|
|
32064
|
-
DebuggerStatement: $EMPTY,
|
|
32065
|
-
EmptyStatement: $EMPTY,
|
|
32066
|
-
Literal: $EMPTY,
|
|
32067
|
-
PrivateIdentifier: $EMPTY,
|
|
32068
|
-
Super: $EMPTY,
|
|
32069
|
-
TemplateElement: $EMPTY,
|
|
32070
|
-
ThisExpression: $EMPTY,
|
|
32071
|
-
JSXClosingFragment: $EMPTY,
|
|
32072
|
-
JSXEmptyExpression: $EMPTY,
|
|
32073
|
-
JSXIdentifier: $EMPTY,
|
|
32074
|
-
JSXOpeningFragment: $EMPTY,
|
|
32075
|
-
JSXText: $EMPTY,
|
|
32076
|
-
TSAnyKeyword: $EMPTY,
|
|
32077
|
-
TSBigIntKeyword: $EMPTY,
|
|
32078
|
-
TSBooleanKeyword: $EMPTY,
|
|
32079
|
-
TSIntrinsicKeyword: $EMPTY,
|
|
32080
|
-
TSJSDocUnknownType: $EMPTY,
|
|
32081
|
-
TSNeverKeyword: $EMPTY,
|
|
32082
|
-
TSNullKeyword: $EMPTY,
|
|
32083
|
-
TSNumberKeyword: $EMPTY,
|
|
32084
|
-
TSObjectKeyword: $EMPTY,
|
|
32085
|
-
TSStringKeyword: $EMPTY,
|
|
32086
|
-
TSSymbolKeyword: $EMPTY,
|
|
32087
|
-
TSThisType: $EMPTY,
|
|
32088
|
-
TSUndefinedKeyword: $EMPTY,
|
|
32089
|
-
TSUnknownKeyword: $EMPTY,
|
|
32090
|
-
TSVoidKeyword: $EMPTY,
|
|
32091
|
-
// Non-leaf nodes
|
|
32092
|
-
AccessorProperty: DECORATORS__KEY__TYPE_ANNOTATION__VALUE,
|
|
32093
|
-
ArrayExpression: freeze(["elements"]),
|
|
32094
|
-
ArrayPattern: freeze(["decorators", "elements", "typeAnnotation"]),
|
|
32095
|
-
ArrowFunctionExpression: freeze(["typeParameters", "params", "returnType", "body"]),
|
|
32096
|
-
AssignmentExpression: LEFT__RIGHT,
|
|
32097
|
-
AssignmentPattern: freeze(["decorators", "left", "right", "typeAnnotation"]),
|
|
32098
|
-
AwaitExpression: ARGUMENT,
|
|
32099
|
-
BinaryExpression: LEFT__RIGHT,
|
|
32100
|
-
BlockStatement: BODY,
|
|
32101
|
-
BreakStatement: LABEL,
|
|
32102
|
-
CallExpression: CALLEE__TYPE_ARGUMENTS__ARGUMENTS,
|
|
32103
|
-
CatchClause: freeze(["param", "body"]),
|
|
32104
|
-
ChainExpression: EXPRESSION,
|
|
32105
|
-
ClassBody: BODY,
|
|
32106
|
-
ClassDeclaration: DECORATORS__ID__TYPE_PARAMETERS__SUPER_CLASS__SUPER_TYPE_ARGUMENTS__IMPLEMENTS__BODY,
|
|
32107
|
-
ClassExpression: DECORATORS__ID__TYPE_PARAMETERS__SUPER_CLASS__SUPER_TYPE_ARGUMENTS__IMPLEMENTS__BODY,
|
|
32108
|
-
ConditionalExpression: TEST__CONSEQUENT__ALTERNATE,
|
|
32109
|
-
ContinueStatement: LABEL,
|
|
32110
|
-
Decorator: EXPRESSION,
|
|
32111
|
-
DoWhileStatement: freeze(["body", "test"]),
|
|
32112
|
-
ExportAllDeclaration: freeze(["exported", "source", "attributes"]),
|
|
32113
|
-
ExportDefaultDeclaration: freeze(["declaration"]),
|
|
32114
|
-
ExportNamedDeclaration: freeze(["declaration", "specifiers", "source", "attributes"]),
|
|
32115
|
-
ExportSpecifier: freeze(["local", "exported"]),
|
|
32116
|
-
ExpressionStatement: EXPRESSION,
|
|
32117
|
-
ForInStatement: LEFT__RIGHT__BODY,
|
|
32118
|
-
ForOfStatement: LEFT__RIGHT__BODY,
|
|
32119
|
-
ForStatement: freeze(["init", "test", "update", "body"]),
|
|
32120
|
-
FunctionDeclaration: ID__TYPE_PARAMETERS__PARAMS__RETURN_TYPE__BODY,
|
|
32121
|
-
FunctionExpression: ID__TYPE_PARAMETERS__PARAMS__RETURN_TYPE__BODY,
|
|
32122
|
-
Identifier: freeze(["decorators", "typeAnnotation"]),
|
|
32123
|
-
IfStatement: TEST__CONSEQUENT__ALTERNATE,
|
|
32124
|
-
ImportAttribute: KEY__VALUE,
|
|
32125
|
-
ImportDeclaration: freeze(["specifiers", "source", "attributes"]),
|
|
32126
|
-
ImportDefaultSpecifier: LOCAL,
|
|
32127
|
-
ImportExpression: freeze(["source", "options"]),
|
|
32128
|
-
ImportNamespaceSpecifier: LOCAL,
|
|
32129
|
-
ImportSpecifier: freeze(["imported", "local"]),
|
|
32130
|
-
LabeledStatement: freeze(["label", "body"]),
|
|
32131
|
-
LogicalExpression: LEFT__RIGHT,
|
|
32132
|
-
MemberExpression: OBJECT__PROPERTY,
|
|
32133
|
-
MetaProperty: freeze(["meta", "property"]),
|
|
32134
|
-
MethodDefinition: freeze(["decorators", "key", "value"]),
|
|
32135
|
-
NewExpression: CALLEE__TYPE_ARGUMENTS__ARGUMENTS,
|
|
32136
|
-
ObjectExpression: freeze(["properties"]),
|
|
32137
|
-
ObjectPattern: freeze(["decorators", "properties", "typeAnnotation"]),
|
|
32138
|
-
ParenthesizedExpression: EXPRESSION,
|
|
32139
|
-
Program: BODY,
|
|
32140
|
-
Property: KEY__VALUE,
|
|
32141
|
-
PropertyDefinition: DECORATORS__KEY__TYPE_ANNOTATION__VALUE,
|
|
32142
|
-
RestElement: freeze(["decorators", "argument", "typeAnnotation"]),
|
|
32143
|
-
ReturnStatement: ARGUMENT,
|
|
32144
|
-
SequenceExpression: freeze(["expressions"]),
|
|
32145
|
-
SpreadElement: ARGUMENT,
|
|
32146
|
-
StaticBlock: BODY,
|
|
32147
|
-
SwitchCase: freeze(["test", "consequent"]),
|
|
32148
|
-
SwitchStatement: freeze(["discriminant", "cases"]),
|
|
32149
|
-
TaggedTemplateExpression: freeze(["tag", "typeArguments", "quasi"]),
|
|
32150
|
-
TemplateLiteral: freeze(["quasis", "expressions"]),
|
|
32151
|
-
ThrowStatement: ARGUMENT,
|
|
32152
|
-
TryStatement: freeze(["block", "handler", "finalizer"]),
|
|
32153
|
-
UnaryExpression: ARGUMENT,
|
|
32154
|
-
UpdateExpression: ARGUMENT,
|
|
32155
|
-
V8IntrinsicExpression: freeze(["name", "arguments"]),
|
|
32156
|
-
VariableDeclaration: freeze(["declarations"]),
|
|
32157
|
-
VariableDeclarator: freeze(["id", "init"]),
|
|
32158
|
-
WhileStatement: freeze(["test", "body"]),
|
|
32159
|
-
WithStatement: freeze(["object", "body"]),
|
|
32160
|
-
YieldExpression: ARGUMENT,
|
|
32161
|
-
JSXAttribute: freeze(["name", "value"]),
|
|
32162
|
-
JSXClosingElement: freeze(["name"]),
|
|
32163
|
-
JSXElement: freeze(["openingElement", "children", "closingElement"]),
|
|
32164
|
-
JSXExpressionContainer: EXPRESSION,
|
|
32165
|
-
JSXFragment: freeze(["openingFragment", "children", "closingFragment"]),
|
|
32166
|
-
JSXMemberExpression: OBJECT__PROPERTY,
|
|
32167
|
-
JSXNamespacedName: freeze(["namespace", "name"]),
|
|
32168
|
-
JSXOpeningElement: freeze(["name", "typeArguments", "attributes"]),
|
|
32169
|
-
JSXSpreadAttribute: ARGUMENT,
|
|
32170
|
-
JSXSpreadChild: EXPRESSION,
|
|
32171
|
-
TSAbstractAccessorProperty: DECORATORS__KEY__TYPE_ANNOTATION,
|
|
32172
|
-
TSAbstractMethodDefinition: KEY__VALUE,
|
|
32173
|
-
TSAbstractPropertyDefinition: DECORATORS__KEY__TYPE_ANNOTATION,
|
|
32174
|
-
TSArrayType: freeze(["elementType"]),
|
|
32175
|
-
TSAsExpression: EXPRESSION__TYPE_ANNOTATION,
|
|
32176
|
-
TSCallSignatureDeclaration: TYPE_PARAMETERS__PARAMS__RETURN_TYPE,
|
|
32177
|
-
TSClassImplements: EXPRESSION__TYPE_ARGUMENTS,
|
|
32178
|
-
TSConditionalType: freeze(["checkType", "extendsType", "trueType", "falseType"]),
|
|
32179
|
-
TSConstructSignatureDeclaration: TYPE_PARAMETERS__PARAMS__RETURN_TYPE,
|
|
32180
|
-
TSConstructorType: TYPE_PARAMETERS__PARAMS__RETURN_TYPE,
|
|
32181
|
-
TSDeclareFunction: ID__TYPE_PARAMETERS__PARAMS__RETURN_TYPE__BODY,
|
|
32182
|
-
TSEmptyBodyFunctionExpression: freeze(["id", "typeParameters", "params", "returnType"]),
|
|
32183
|
-
TSEnumBody: MEMBERS,
|
|
32184
|
-
TSEnumDeclaration: ID__BODY,
|
|
32185
|
-
TSEnumMember: freeze(["id", "initializer"]),
|
|
32186
|
-
TSExportAssignment: EXPRESSION,
|
|
32187
|
-
TSExternalModuleReference: EXPRESSION,
|
|
32188
|
-
TSFunctionType: TYPE_PARAMETERS__PARAMS__RETURN_TYPE,
|
|
32189
|
-
TSImportEqualsDeclaration: freeze(["id", "moduleReference"]),
|
|
32190
|
-
TSImportType: freeze(["source", "options", "qualifier", "typeArguments"]),
|
|
32191
|
-
TSIndexSignature: freeze(["parameters", "typeAnnotation"]),
|
|
32192
|
-
TSIndexedAccessType: freeze(["objectType", "indexType"]),
|
|
32193
|
-
TSInferType: freeze(["typeParameter"]),
|
|
32194
|
-
TSInstantiationExpression: EXPRESSION__TYPE_ARGUMENTS,
|
|
32195
|
-
TSInterfaceBody: BODY,
|
|
32196
|
-
TSInterfaceDeclaration: freeze(["id", "typeParameters", "extends", "body"]),
|
|
32197
|
-
TSInterfaceHeritage: EXPRESSION__TYPE_ARGUMENTS,
|
|
32198
|
-
TSIntersectionType: TYPES,
|
|
32199
|
-
TSJSDocNonNullableType: TYPE_ANNOTATION,
|
|
32200
|
-
TSJSDocNullableType: TYPE_ANNOTATION,
|
|
32201
|
-
TSLiteralType: freeze(["literal"]),
|
|
32202
|
-
TSMappedType: freeze(["key", "constraint", "nameType", "typeAnnotation"]),
|
|
32203
|
-
TSMethodSignature: freeze(["key", "typeParameters", "params", "returnType"]),
|
|
32204
|
-
TSModuleBlock: BODY,
|
|
32205
|
-
TSModuleDeclaration: ID__BODY,
|
|
32206
|
-
TSNamedTupleMember: freeze(["label", "elementType"]),
|
|
32207
|
-
TSNamespaceExportDeclaration: freeze(["id"]),
|
|
32208
|
-
TSNonNullExpression: EXPRESSION,
|
|
32209
|
-
TSOptionalType: TYPE_ANNOTATION,
|
|
32210
|
-
TSParameterProperty: freeze(["decorators", "parameter"]),
|
|
32211
|
-
TSParenthesizedType: TYPE_ANNOTATION,
|
|
32212
|
-
TSPropertySignature: freeze(["key", "typeAnnotation"]),
|
|
32213
|
-
TSQualifiedName: LEFT__RIGHT,
|
|
32214
|
-
TSRestType: TYPE_ANNOTATION,
|
|
32215
|
-
TSSatisfiesExpression: EXPRESSION__TYPE_ANNOTATION,
|
|
32216
|
-
TSTemplateLiteralType: freeze(["quasis", "types"]),
|
|
32217
|
-
TSTupleType: freeze(["elementTypes"]),
|
|
32218
|
-
TSTypeAliasDeclaration: freeze(["id", "typeParameters", "typeAnnotation"]),
|
|
32219
|
-
TSTypeAnnotation: TYPE_ANNOTATION,
|
|
32220
|
-
TSTypeAssertion: freeze(["typeAnnotation", "expression"]),
|
|
32221
|
-
TSTypeLiteral: MEMBERS,
|
|
32222
|
-
TSTypeOperator: TYPE_ANNOTATION,
|
|
32223
|
-
TSTypeParameter: freeze(["name", "constraint", "default"]),
|
|
32224
|
-
TSTypeParameterDeclaration: PARAMS,
|
|
32225
|
-
TSTypeParameterInstantiation: PARAMS,
|
|
32226
|
-
TSTypePredicate: freeze(["parameterName", "typeAnnotation"]),
|
|
32227
|
-
TSTypeQuery: freeze(["exprName", "typeArguments"]),
|
|
32228
|
-
TSTypeReference: freeze(["typeName", "typeArguments"]),
|
|
32229
|
-
TSUnionType: TYPES
|
|
32230
|
-
});
|
|
32231
|
-
}
|
|
32232
|
-
});
|
|
32233
|
-
|
|
32234
|
-
// ../../node_modules/.pnpm/oxc-parser@0.143.0/node_modules/oxc-parser/src-js/visit/index.js
|
|
32235
|
-
var import_node_module2, import_meta4, walkProgram, addVisitorToCompiled, createCompiledVisitor, finalizeCompiledVisitor, Visitor;
|
|
32236
|
-
var init_visit = __esm({
|
|
32237
|
-
"../../node_modules/.pnpm/oxc-parser@0.143.0/node_modules/oxc-parser/src-js/visit/index.js"() {
|
|
32238
|
-
"use strict";
|
|
32239
|
-
import_node_module2 = require("module");
|
|
32240
|
-
import_meta4 = {};
|
|
32241
|
-
walkProgram = null;
|
|
32242
|
-
Visitor = class {
|
|
32243
|
-
#compiledVisitor = null;
|
|
32244
|
-
constructor(visitor) {
|
|
32245
|
-
if (walkProgram === null) {
|
|
32246
|
-
const require5 = (0, import_node_module2.createRequire)(import_meta4.url);
|
|
32247
|
-
({ walkProgram } = require5("../generated/visit/walk.js"));
|
|
32248
|
-
({
|
|
32249
|
-
addVisitorToCompiled,
|
|
32250
|
-
createCompiledVisitor,
|
|
32251
|
-
finalizeCompiledVisitor
|
|
32252
|
-
} = require5("./visitor.js"));
|
|
32253
|
-
}
|
|
32254
|
-
const compiledVisitor = createCompiledVisitor();
|
|
32255
|
-
addVisitorToCompiled(visitor);
|
|
32256
|
-
const needsVisit = finalizeCompiledVisitor();
|
|
32257
|
-
if (needsVisit) this.#compiledVisitor = compiledVisitor;
|
|
32258
|
-
}
|
|
32259
|
-
/**
|
|
32260
|
-
* Visit AST.
|
|
32261
|
-
* @param program - The AST to visit.
|
|
32262
|
-
* @returns {undefined}
|
|
32263
|
-
*/
|
|
32264
|
-
visit(program3) {
|
|
32265
|
-
const compiledVisitor = this.#compiledVisitor;
|
|
32266
|
-
if (compiledVisitor !== null) walkProgram(program3, compiledVisitor);
|
|
32267
|
-
}
|
|
32268
|
-
};
|
|
32269
|
-
}
|
|
32270
|
-
});
|
|
32271
|
-
|
|
32272
|
-
// ../../node_modules/.pnpm/oxc-parser@0.143.0/node_modules/oxc-parser/src-js/raw-transfer/supported.js
|
|
32273
|
-
function rawTransferSupported2() {
|
|
32274
|
-
if (rawTransferIsSupported === null) {
|
|
32275
|
-
rawTransferIsSupported = rawTransferRuntimeSupported() && rawTransferSupported();
|
|
32276
|
-
}
|
|
32277
|
-
return rawTransferIsSupported;
|
|
32278
|
-
}
|
|
32279
|
-
function rawTransferRuntimeSupported() {
|
|
32280
|
-
let global2;
|
|
32281
|
-
try {
|
|
32282
|
-
global2 = globalThis;
|
|
32283
|
-
} catch {
|
|
32284
|
-
return false;
|
|
32285
|
-
}
|
|
32286
|
-
const isBun = !!global2.Bun || !!global2.process?.versions?.bun;
|
|
32287
|
-
if (isBun) return false;
|
|
32288
|
-
const isDeno = !!global2.Deno;
|
|
32289
|
-
if (isDeno) {
|
|
32290
|
-
const match3 = Deno.version?.deno?.match(/^(\d+)\./);
|
|
32291
|
-
return !!match3 && match3[1] * 1 >= 2;
|
|
32292
|
-
}
|
|
32293
|
-
const isNode = global2.process?.release?.name === "node";
|
|
32294
|
-
if (!isNode) return false;
|
|
32295
|
-
const match2 = process.version?.match(/^v(\d+)\./);
|
|
32296
|
-
return !!match2 && match2[1] * 1 >= 22;
|
|
32297
|
-
}
|
|
32298
|
-
var rawTransferIsSupported;
|
|
32299
|
-
var init_supported = __esm({
|
|
32300
|
-
"../../node_modules/.pnpm/oxc-parser@0.143.0/node_modules/oxc-parser/src-js/raw-transfer/supported.js"() {
|
|
32301
|
-
"use strict";
|
|
32302
|
-
init_bindings();
|
|
32303
|
-
rawTransferIsSupported = null;
|
|
32304
|
-
}
|
|
32305
|
-
});
|
|
32306
|
-
|
|
32307
|
-
// ../../node_modules/.pnpm/oxc-parser@0.143.0/node_modules/oxc-parser/src-js/index.js
|
|
32308
|
-
var src_js_exports = {};
|
|
32309
|
-
__export(src_js_exports, {
|
|
32310
|
-
ExportExportNameKind: () => ExportExportNameKind,
|
|
32311
|
-
ExportImportNameKind: () => ExportImportNameKind,
|
|
32312
|
-
ExportLocalNameKind: () => ExportLocalNameKind,
|
|
32313
|
-
ImportNameKind: () => ImportNameKind,
|
|
32314
|
-
ParseResult: () => ParseResult,
|
|
32315
|
-
Severity: () => Severity,
|
|
32316
|
-
Visitor: () => Visitor,
|
|
32317
|
-
experimentalGetLazyVisitor: () => experimentalGetLazyVisitor,
|
|
32318
|
-
parse: () => parse2,
|
|
32319
|
-
parseSync: () => parseSync2,
|
|
32320
|
-
rawTransferSupported: () => rawTransferSupported2,
|
|
32321
|
-
visitorKeys: () => keys_default
|
|
32322
|
-
});
|
|
32323
|
-
function loadRawTransfer() {
|
|
32324
|
-
if (parseSyncRaw === null) {
|
|
32325
|
-
({ parseSyncRaw, parse: parseRaw2 } = require3("./raw-transfer/eager.js"));
|
|
32326
|
-
}
|
|
32327
|
-
}
|
|
32328
|
-
function loadRawTransferLazy() {
|
|
32329
|
-
if (parseSyncLazy === null) {
|
|
32330
|
-
({ parseSyncLazy, parse: parseLazy, Visitor: LazyVisitor } = require3("./raw-transfer/lazy.js"));
|
|
32331
|
-
}
|
|
32332
|
-
}
|
|
32333
|
-
function parseSync2(filename, sourceText, options) {
|
|
32334
|
-
if (options?.experimentalRawTransfer) {
|
|
32335
|
-
loadRawTransfer();
|
|
32336
|
-
return parseSyncRaw(filename, sourceText, options);
|
|
32337
|
-
}
|
|
32338
|
-
if (options?.experimentalLazy) {
|
|
32339
|
-
loadRawTransferLazy();
|
|
32340
|
-
return parseSyncLazy(filename, sourceText, options);
|
|
32341
|
-
}
|
|
32342
|
-
return wrap(parseSync(filename, sourceText, options));
|
|
32343
|
-
}
|
|
32344
|
-
async function parse2(filename, sourceText, options) {
|
|
32345
|
-
if (options?.experimentalRawTransfer) {
|
|
32346
|
-
loadRawTransfer();
|
|
32347
|
-
return await parseRaw2(filename, sourceText, options);
|
|
32348
|
-
}
|
|
32349
|
-
if (options?.experimentalLazy) {
|
|
32350
|
-
loadRawTransferLazy();
|
|
32351
|
-
return await parseLazy(filename, sourceText, options);
|
|
32352
|
-
}
|
|
32353
|
-
return wrap(await parse(filename, sourceText, options));
|
|
32354
|
-
}
|
|
32355
|
-
function experimentalGetLazyVisitor() {
|
|
32356
|
-
loadRawTransferLazy();
|
|
32357
|
-
return LazyVisitor;
|
|
32358
|
-
}
|
|
32359
|
-
var import_node_module3, import_meta5, require3, parseSyncRaw, parseRaw2, parseSyncLazy, parseLazy, LazyVisitor;
|
|
32360
|
-
var init_src_js = __esm({
|
|
32361
|
-
"../../node_modules/.pnpm/oxc-parser@0.143.0/node_modules/oxc-parser/src-js/index.js"() {
|
|
32362
|
-
"use strict";
|
|
32363
|
-
import_node_module3 = require("module");
|
|
32364
|
-
init_bindings();
|
|
32365
|
-
init_wrap();
|
|
32366
|
-
init_keys();
|
|
32367
|
-
init_visit();
|
|
32368
|
-
init_bindings();
|
|
32369
|
-
init_supported();
|
|
32370
|
-
import_meta5 = {};
|
|
32371
|
-
require3 = (0, import_node_module3.createRequire)(import_meta5.url);
|
|
32372
|
-
parseSyncRaw = null;
|
|
32373
|
-
parseSyncLazy = null;
|
|
32374
|
-
}
|
|
32375
|
-
});
|
|
32376
|
-
|
|
32377
31296
|
// ../../packages/indexer/src/parsers/oxc-parser.ts
|
|
32378
31297
|
function getOxc() {
|
|
32379
31298
|
if (_oxc !== void 0) return _oxc;
|
|
32380
31299
|
try {
|
|
32381
|
-
_oxc = (
|
|
31300
|
+
_oxc = require("oxc-parser");
|
|
32382
31301
|
} catch {
|
|
32383
31302
|
_oxc = null;
|
|
32384
31303
|
}
|
|
@@ -32688,8 +31607,8 @@ var init_oxc_parser = __esm({
|
|
|
32688
31607
|
// ../../packages/indexer/src/tree-sitter/loader.ts
|
|
32689
31608
|
function getRequireUrl2() {
|
|
32690
31609
|
try {
|
|
32691
|
-
if (typeof
|
|
32692
|
-
return
|
|
31610
|
+
if (typeof import_meta3 !== "undefined" && import_meta3.url) {
|
|
31611
|
+
return import_meta3.url;
|
|
32693
31612
|
}
|
|
32694
31613
|
} catch {
|
|
32695
31614
|
}
|
|
@@ -32773,16 +31692,16 @@ async function parseContent(language, content) {
|
|
|
32773
31692
|
parser.delete();
|
|
32774
31693
|
}
|
|
32775
31694
|
}
|
|
32776
|
-
var import_node_fs8,
|
|
31695
|
+
var import_node_fs8, import_node_module2, import_node_path12, import_web_tree_sitter, import_meta3, _require2, initPromise, languageCache, languageLoadPromises;
|
|
32777
31696
|
var init_loader = __esm({
|
|
32778
31697
|
"../../packages/indexer/src/tree-sitter/loader.ts"() {
|
|
32779
31698
|
"use strict";
|
|
32780
31699
|
import_node_fs8 = __toESM(require("fs"), 1);
|
|
32781
|
-
|
|
31700
|
+
import_node_module2 = __toESM(require("module"), 1);
|
|
32782
31701
|
import_node_path12 = __toESM(require("path"), 1);
|
|
32783
31702
|
import_web_tree_sitter = require("web-tree-sitter");
|
|
32784
|
-
|
|
32785
|
-
_require2 = typeof __non_webpack_require__ === "function" ? __non_webpack_require__ :
|
|
31703
|
+
import_meta3 = {};
|
|
31704
|
+
_require2 = typeof __non_webpack_require__ === "function" ? __non_webpack_require__ : import_node_module2.default.createRequire(getRequireUrl2());
|
|
32786
31705
|
initPromise = null;
|
|
32787
31706
|
languageCache = /* @__PURE__ */ new Map();
|
|
32788
31707
|
languageLoadPromises = /* @__PURE__ */ new Map();
|
|
@@ -33910,8 +32829,8 @@ var require_to_regex_range = __commonJS({
|
|
|
33910
32829
|
let relax = String(opts.relaxZeros);
|
|
33911
32830
|
let shorthand = String(opts.shorthand);
|
|
33912
32831
|
let capture = String(opts.capture);
|
|
33913
|
-
let
|
|
33914
|
-
let cacheKey2 = min + ":" + max + "=" + relax + shorthand + capture +
|
|
32832
|
+
let wrap = String(opts.wrap);
|
|
32833
|
+
let cacheKey2 = min + ":" + max + "=" + relax + shorthand + capture + wrap;
|
|
33915
32834
|
if (toRegexRange.cache.hasOwnProperty(cacheKey2)) {
|
|
33916
32835
|
return toRegexRange.cache[cacheKey2].result;
|
|
33917
32836
|
}
|
|
@@ -34181,9 +33100,9 @@ var require_fill_range = __commonJS({
|
|
|
34181
33100
|
};
|
|
34182
33101
|
var toRegex = (start, end, options) => {
|
|
34183
33102
|
if (Array.isArray(start)) {
|
|
34184
|
-
let
|
|
33103
|
+
let wrap = options.wrap === true;
|
|
34185
33104
|
let prefix = options.capture ? "" : "?:";
|
|
34186
|
-
return
|
|
33105
|
+
return wrap ? `(${prefix}${start.join("|")})` : start.join("|");
|
|
34187
33106
|
}
|
|
34188
33107
|
return toRegexRange(start, end, options);
|
|
34189
33108
|
};
|
|
@@ -34574,7 +33493,7 @@ var require_parse = __commonJS({
|
|
|
34574
33493
|
CHAR_NO_BREAK_SPACE,
|
|
34575
33494
|
CHAR_ZERO_WIDTH_NOBREAK_SPACE
|
|
34576
33495
|
} = require_constants3();
|
|
34577
|
-
var
|
|
33496
|
+
var parse4 = (input, options = {}) => {
|
|
34578
33497
|
if (typeof input !== "string") {
|
|
34579
33498
|
throw new TypeError("Expected a string");
|
|
34580
33499
|
}
|
|
@@ -34774,7 +33693,7 @@ var require_parse = __commonJS({
|
|
|
34774
33693
|
push({ type: "eos" });
|
|
34775
33694
|
return ast;
|
|
34776
33695
|
};
|
|
34777
|
-
module4.exports =
|
|
33696
|
+
module4.exports = parse4;
|
|
34778
33697
|
}
|
|
34779
33698
|
});
|
|
34780
33699
|
|
|
@@ -34785,7 +33704,7 @@ var require_braces = __commonJS({
|
|
|
34785
33704
|
var stringify3 = require_stringify();
|
|
34786
33705
|
var compile = require_compile();
|
|
34787
33706
|
var expand = require_expand();
|
|
34788
|
-
var
|
|
33707
|
+
var parse4 = require_parse();
|
|
34789
33708
|
var braces = (input, options = {}) => {
|
|
34790
33709
|
let output = [];
|
|
34791
33710
|
if (Array.isArray(input)) {
|
|
@@ -34805,7 +33724,7 @@ var require_braces = __commonJS({
|
|
|
34805
33724
|
}
|
|
34806
33725
|
return output;
|
|
34807
33726
|
};
|
|
34808
|
-
braces.parse = (input, options = {}) =>
|
|
33727
|
+
braces.parse = (input, options = {}) => parse4(input, options);
|
|
34809
33728
|
braces.stringify = (input, options = {}) => {
|
|
34810
33729
|
if (typeof input === "string") {
|
|
34811
33730
|
return stringify3(braces.parse(input, options), options);
|
|
@@ -35669,7 +34588,7 @@ var require_parse2 = __commonJS({
|
|
|
35669
34588
|
}
|
|
35670
34589
|
return { risky: false };
|
|
35671
34590
|
};
|
|
35672
|
-
var
|
|
34591
|
+
var parse4 = (input, options) => {
|
|
35673
34592
|
if (typeof input !== "string") {
|
|
35674
34593
|
throw new TypeError("Expected a string");
|
|
35675
34594
|
}
|
|
@@ -35840,7 +34759,7 @@ var require_parse2 = __commonJS({
|
|
|
35840
34759
|
output = token.close = `)$))${extglobStar}`;
|
|
35841
34760
|
}
|
|
35842
34761
|
if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
|
|
35843
|
-
const expression =
|
|
34762
|
+
const expression = parse4(rest, { ...options, fastpaths: false }).output;
|
|
35844
34763
|
output = token.close = `)${expression})${extglobStar})`;
|
|
35845
34764
|
}
|
|
35846
34765
|
if (token.prev.type === "bos") {
|
|
@@ -36365,7 +35284,7 @@ var require_parse2 = __commonJS({
|
|
|
36365
35284
|
}
|
|
36366
35285
|
return state;
|
|
36367
35286
|
};
|
|
36368
|
-
|
|
35287
|
+
parse4.fastpaths = (input, options) => {
|
|
36369
35288
|
const opts = { ...options };
|
|
36370
35289
|
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
36371
35290
|
const len = input.length;
|
|
@@ -36431,7 +35350,7 @@ var require_parse2 = __commonJS({
|
|
|
36431
35350
|
}
|
|
36432
35351
|
return source;
|
|
36433
35352
|
};
|
|
36434
|
-
module4.exports =
|
|
35353
|
+
module4.exports = parse4;
|
|
36435
35354
|
}
|
|
36436
35355
|
});
|
|
36437
35356
|
|
|
@@ -36441,7 +35360,7 @@ var require_picomatch = __commonJS({
|
|
|
36441
35360
|
"use strict";
|
|
36442
35361
|
var path24 = require("path");
|
|
36443
35362
|
var scan = require_scan();
|
|
36444
|
-
var
|
|
35363
|
+
var parse4 = require_parse2();
|
|
36445
35364
|
var utils = require_utils2();
|
|
36446
35365
|
var constants2 = require_constants4();
|
|
36447
35366
|
var isObject2 = (val) => val && typeof val === "object" && !Array.isArray(val);
|
|
@@ -36529,7 +35448,7 @@ var require_picomatch = __commonJS({
|
|
|
36529
35448
|
picomatch2.isMatch = (str2, patterns, options) => picomatch2(patterns, options)(str2);
|
|
36530
35449
|
picomatch2.parse = (pattern, options) => {
|
|
36531
35450
|
if (Array.isArray(pattern)) return pattern.map((p) => picomatch2.parse(p, options));
|
|
36532
|
-
return
|
|
35451
|
+
return parse4(pattern, { ...options, fastpaths: false });
|
|
36533
35452
|
};
|
|
36534
35453
|
picomatch2.scan = (input, options) => scan(input, options);
|
|
36535
35454
|
picomatch2.compileRe = (state, options, returnOutput = false, returnState = false) => {
|
|
@@ -36555,10 +35474,10 @@ var require_picomatch = __commonJS({
|
|
|
36555
35474
|
}
|
|
36556
35475
|
let parsed = { negated: false, fastpaths: true };
|
|
36557
35476
|
if (options.fastpaths !== false && (input[0] === "." || input[0] === "*")) {
|
|
36558
|
-
parsed.output =
|
|
35477
|
+
parsed.output = parse4.fastpaths(input, options);
|
|
36559
35478
|
}
|
|
36560
35479
|
if (!parsed.output) {
|
|
36561
|
-
parsed =
|
|
35480
|
+
parsed = parse4(input, options);
|
|
36562
35481
|
}
|
|
36563
35482
|
return picomatch2.compileRe(parsed, options, returnOutput, returnState);
|
|
36564
35483
|
};
|
|
@@ -40060,7 +38979,7 @@ var require_parse3 = __commonJS({
|
|
|
40060
38979
|
}
|
|
40061
38980
|
return { risky: false };
|
|
40062
38981
|
};
|
|
40063
|
-
var
|
|
38982
|
+
var parse4 = (input, options) => {
|
|
40064
38983
|
if (typeof input !== "string") {
|
|
40065
38984
|
throw new TypeError("Expected a string");
|
|
40066
38985
|
}
|
|
@@ -40230,7 +39149,7 @@ var require_parse3 = __commonJS({
|
|
|
40230
39149
|
output = token.close = `)$))${extglobStar}`;
|
|
40231
39150
|
}
|
|
40232
39151
|
if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
|
|
40233
|
-
const expression =
|
|
39152
|
+
const expression = parse4(rest, { ...options, fastpaths: false }).output;
|
|
40234
39153
|
output = token.close = `)${expression})${extglobStar})`;
|
|
40235
39154
|
}
|
|
40236
39155
|
if (token.prev.type === "bos") {
|
|
@@ -40752,7 +39671,7 @@ var require_parse3 = __commonJS({
|
|
|
40752
39671
|
}
|
|
40753
39672
|
return state;
|
|
40754
39673
|
};
|
|
40755
|
-
|
|
39674
|
+
parse4.fastpaths = (input, options) => {
|
|
40756
39675
|
const opts = { ...options };
|
|
40757
39676
|
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
40758
39677
|
const len = input.length;
|
|
@@ -40817,7 +39736,7 @@ var require_parse3 = __commonJS({
|
|
|
40817
39736
|
}
|
|
40818
39737
|
return source;
|
|
40819
39738
|
};
|
|
40820
|
-
module4.exports =
|
|
39739
|
+
module4.exports = parse4;
|
|
40821
39740
|
}
|
|
40822
39741
|
});
|
|
40823
39742
|
|
|
@@ -40826,7 +39745,7 @@ var require_picomatch3 = __commonJS({
|
|
|
40826
39745
|
"../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/picomatch.js"(exports2, module4) {
|
|
40827
39746
|
"use strict";
|
|
40828
39747
|
var scan = require_scan2();
|
|
40829
|
-
var
|
|
39748
|
+
var parse4 = require_parse3();
|
|
40830
39749
|
var utils = require_utils5();
|
|
40831
39750
|
var constants2 = require_constants6();
|
|
40832
39751
|
var isObject2 = (val) => val && typeof val === "object" && !Array.isArray(val);
|
|
@@ -40914,7 +39833,7 @@ var require_picomatch3 = __commonJS({
|
|
|
40914
39833
|
picomatch2.isMatch = (str2, patterns, options) => picomatch2(patterns, options)(str2);
|
|
40915
39834
|
picomatch2.parse = (pattern, options) => {
|
|
40916
39835
|
if (Array.isArray(pattern)) return pattern.map((p) => picomatch2.parse(p, options));
|
|
40917
|
-
return
|
|
39836
|
+
return parse4(pattern, { ...options, fastpaths: false });
|
|
40918
39837
|
};
|
|
40919
39838
|
picomatch2.scan = (input, options) => scan(input, options);
|
|
40920
39839
|
picomatch2.compileRe = (state, options, returnOutput = false, returnState = false) => {
|
|
@@ -40940,10 +39859,10 @@ var require_picomatch3 = __commonJS({
|
|
|
40940
39859
|
}
|
|
40941
39860
|
let parsed = { negated: false, fastpaths: true };
|
|
40942
39861
|
if (options.fastpaths !== false && (input[0] === "." || input[0] === "*")) {
|
|
40943
|
-
parsed.output =
|
|
39862
|
+
parsed.output = parse4.fastpaths(input, options);
|
|
40944
39863
|
}
|
|
40945
39864
|
if (!parsed.output) {
|
|
40946
|
-
parsed =
|
|
39865
|
+
parsed = parse4(input, options);
|
|
40947
39866
|
}
|
|
40948
39867
|
return picomatch2.compileRe(parsed, options, returnOutput, returnState);
|
|
40949
39868
|
};
|
|
@@ -41008,14 +39927,14 @@ async function scanWorkspaceFiles(input) {
|
|
|
41008
39927
|
const includePatterns = input.include ? input.include.split("\n").filter(Boolean).map((p) => p.trim()) : DEFAULT_INCLUDE_PATTERNS;
|
|
41009
39928
|
if (!input.include) {
|
|
41010
39929
|
try {
|
|
41011
|
-
let
|
|
39930
|
+
let nativeBinding = null;
|
|
41012
39931
|
try {
|
|
41013
|
-
|
|
39932
|
+
nativeBinding = require(require("path").join(__dirname, "native", "index.linux-x64-gnu.node"));
|
|
41014
39933
|
} catch {
|
|
41015
|
-
|
|
39934
|
+
nativeBinding = require("@openez-graph/native");
|
|
41016
39935
|
}
|
|
41017
|
-
if (
|
|
41018
|
-
const rawFiles =
|
|
39936
|
+
if (nativeBinding && typeof nativeBinding.scanWorkspaceFast === "function") {
|
|
39937
|
+
const rawFiles = nativeBinding.scanWorkspaceFast(rootPath, ALLOWED_EXTENSIONS);
|
|
41019
39938
|
if (rawFiles && rawFiles.length > 0) {
|
|
41020
39939
|
const isIgnored = (0, import_picomatch.default)(ignorePatterns, { dot: true });
|
|
41021
39940
|
const results2 = [];
|
|
@@ -45684,13 +44603,13 @@ var init_errors5 = __esm({
|
|
|
45684
44603
|
});
|
|
45685
44604
|
|
|
45686
44605
|
// ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/parse.js
|
|
45687
|
-
var
|
|
44606
|
+
var parse2, parseAsync2, safeParse3, safeParseAsync2;
|
|
45688
44607
|
var init_parse5 = __esm({
|
|
45689
44608
|
"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/parse.js"() {
|
|
45690
44609
|
"use strict";
|
|
45691
44610
|
init_core2();
|
|
45692
44611
|
init_errors5();
|
|
45693
|
-
|
|
44612
|
+
parse2 = /* @__PURE__ */ _parse(ZodRealError);
|
|
45694
44613
|
parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
45695
44614
|
safeParse3 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
45696
44615
|
safeParseAsync2 = /* @__PURE__ */ _safeParseAsync(ZodRealError);
|
|
@@ -45921,7 +44840,7 @@ var init_schemas3 = __esm({
|
|
|
45921
44840
|
reg.add(inst, meta);
|
|
45922
44841
|
return inst;
|
|
45923
44842
|
});
|
|
45924
|
-
inst.parse = (data, params) =>
|
|
44843
|
+
inst.parse = (data, params) => parse2(inst, data, params, { callee: inst.parse });
|
|
45925
44844
|
inst.safeParse = (data, params) => safeParse3(inst, data, params);
|
|
45926
44845
|
inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
|
|
45927
44846
|
inst.safeParseAsync = async (data, params) => safeParseAsync2(inst, data, params);
|
|
@@ -52887,21 +51806,21 @@ var require_fast_uri = __commonJS({
|
|
|
52887
51806
|
normalizeString(uri, options);
|
|
52888
51807
|
} else if (typeof uri === "object") {
|
|
52889
51808
|
uri = /** @type {T} */
|
|
52890
|
-
|
|
51809
|
+
parse4(serialize(uri, options), options);
|
|
52891
51810
|
}
|
|
52892
51811
|
return uri;
|
|
52893
51812
|
}
|
|
52894
51813
|
function resolve4(baseURI, relativeURI, options) {
|
|
52895
51814
|
const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" };
|
|
52896
|
-
const resolved = resolveComponent(
|
|
51815
|
+
const resolved = resolveComponent(parse4(baseURI, schemelessOptions), parse4(relativeURI, schemelessOptions), schemelessOptions, true);
|
|
52897
51816
|
schemelessOptions.skipEscape = true;
|
|
52898
51817
|
return serialize(resolved, schemelessOptions);
|
|
52899
51818
|
}
|
|
52900
51819
|
function resolveComponent(base, relative3, options, skipNormalization) {
|
|
52901
51820
|
const target = {};
|
|
52902
51821
|
if (!skipNormalization) {
|
|
52903
|
-
base =
|
|
52904
|
-
relative3 =
|
|
51822
|
+
base = parse4(serialize(base, options), options);
|
|
51823
|
+
relative3 = parse4(serialize(relative3, options), options);
|
|
52905
51824
|
}
|
|
52906
51825
|
options = options || {};
|
|
52907
51826
|
if (!options.tolerant && relative3.scheme) {
|
|
@@ -53130,7 +52049,7 @@ var require_fast_uri = __commonJS({
|
|
|
53130
52049
|
}
|
|
53131
52050
|
return { parsed, malformedAuthorityOrPort };
|
|
53132
52051
|
}
|
|
53133
|
-
function
|
|
52052
|
+
function parse4(uri, opts) {
|
|
53134
52053
|
return parseWithStatus(uri, opts).parsed;
|
|
53135
52054
|
}
|
|
53136
52055
|
function normalizeString(uri, opts) {
|
|
@@ -53159,7 +52078,7 @@ var require_fast_uri = __commonJS({
|
|
|
53159
52078
|
resolveComponent,
|
|
53160
52079
|
equal,
|
|
53161
52080
|
serialize,
|
|
53162
|
-
parse:
|
|
52081
|
+
parse: parse4
|
|
53163
52082
|
};
|
|
53164
52083
|
module4.exports = fastUri;
|
|
53165
52084
|
module4.exports.default = fastUri;
|
|
@@ -57729,7 +56648,7 @@ __export(mcp_bridge_exports, {
|
|
|
57729
56648
|
startMcpServer: () => startMcpServer
|
|
57730
56649
|
});
|
|
57731
56650
|
async function startMcpServer(defaultPath, version4) {
|
|
57732
|
-
await createAndStartMcpServer({ defaultPath, version: version4, build: "
|
|
56651
|
+
await createAndStartMcpServer({ defaultPath, version: version4, build: "897aca9-dirty" });
|
|
57733
56652
|
}
|
|
57734
56653
|
var init_mcp_bridge = __esm({
|
|
57735
56654
|
"src/mcp-bridge.ts"() {
|
|
@@ -61634,8 +60553,8 @@ var init_cors = __esm({
|
|
|
61634
60553
|
// ../web/src/server/sqlite.ts
|
|
61635
60554
|
function getRequireUrl3() {
|
|
61636
60555
|
try {
|
|
61637
|
-
if (typeof
|
|
61638
|
-
return
|
|
60556
|
+
if (typeof import_meta4 !== "undefined" && import_meta4.url) {
|
|
60557
|
+
return import_meta4.url;
|
|
61639
60558
|
}
|
|
61640
60559
|
} catch {
|
|
61641
60560
|
}
|
|
@@ -62230,17 +61149,17 @@ function getWorkspaceGraphOptimized(rootPath, maxNodes, maxEdges) {
|
|
|
62230
61149
|
}))
|
|
62231
61150
|
};
|
|
62232
61151
|
}
|
|
62233
|
-
var import_node_fs12, import_node_os3, import_node_path17,
|
|
61152
|
+
var import_node_fs12, import_node_os3, import_node_path17, import_node_module3, import_meta4, require2, BunDatabase, Database2, registryDb2, workspaceDbs, CURATED_TYPE_ORDER, typeOrderCase;
|
|
62234
61153
|
var init_sqlite2 = __esm({
|
|
62235
61154
|
"../web/src/server/sqlite.ts"() {
|
|
62236
61155
|
"use strict";
|
|
62237
61156
|
import_node_fs12 = __toESM(require("fs"), 1);
|
|
62238
61157
|
import_node_os3 = __toESM(require("os"), 1);
|
|
62239
61158
|
import_node_path17 = __toESM(require("path"), 1);
|
|
62240
|
-
|
|
62241
|
-
|
|
62242
|
-
|
|
62243
|
-
({ Database: BunDatabase } =
|
|
61159
|
+
import_node_module3 = require("module");
|
|
61160
|
+
import_meta4 = {};
|
|
61161
|
+
require2 = (0, import_node_module3.createRequire)(getRequireUrl3());
|
|
61162
|
+
({ Database: BunDatabase } = require2("bun:sqlite"));
|
|
62244
61163
|
Database2 = class extends BunDatabase {
|
|
62245
61164
|
constructor(filename, options) {
|
|
62246
61165
|
super(filename, options);
|
|
@@ -62268,8 +61187,8 @@ var init_sqlite2 = __esm({
|
|
|
62268
61187
|
// ../web/src/server/index.ts
|
|
62269
61188
|
function getDirname() {
|
|
62270
61189
|
try {
|
|
62271
|
-
if (typeof
|
|
62272
|
-
return import_node_path18.default.dirname(new URL(
|
|
61190
|
+
if (typeof import_meta5 !== "undefined" && import_meta5.url) {
|
|
61191
|
+
return import_node_path18.default.dirname(new URL(import_meta5.url).pathname);
|
|
62273
61192
|
}
|
|
62274
61193
|
} catch {
|
|
62275
61194
|
}
|
|
@@ -62362,7 +61281,7 @@ function createWebServer() {
|
|
|
62362
61281
|
}
|
|
62363
61282
|
return app;
|
|
62364
61283
|
}
|
|
62365
|
-
var import_node_fs13, import_node_path18,
|
|
61284
|
+
var import_node_fs13, import_node_path18, import_meta5, serverDir, app, DEFAULT_INCLUDE_GLOBS, DEFAULT_EXCLUDE_GLOBS;
|
|
62366
61285
|
var init_server3 = __esm({
|
|
62367
61286
|
"../web/src/server/index.ts"() {
|
|
62368
61287
|
"use strict";
|
|
@@ -62375,7 +61294,7 @@ var init_server3 = __esm({
|
|
|
62375
61294
|
init_src3();
|
|
62376
61295
|
init_src();
|
|
62377
61296
|
init_src4();
|
|
62378
|
-
|
|
61297
|
+
import_meta5 = {};
|
|
62379
61298
|
serverDir = getDirname();
|
|
62380
61299
|
app = new Hono2();
|
|
62381
61300
|
app.use(
|
|
@@ -62960,8 +61879,8 @@ function getThisDir() {
|
|
|
62960
61879
|
return __dirname;
|
|
62961
61880
|
}
|
|
62962
61881
|
try {
|
|
62963
|
-
if (typeof
|
|
62964
|
-
return
|
|
61882
|
+
if (typeof import_meta6 !== "undefined" && import_meta6.dirname) {
|
|
61883
|
+
return import_meta6.dirname;
|
|
62965
61884
|
}
|
|
62966
61885
|
} catch {
|
|
62967
61886
|
}
|
|
@@ -62995,13 +61914,13 @@ function resolveCliInvocation() {
|
|
|
62995
61914
|
repoRoot
|
|
62996
61915
|
};
|
|
62997
61916
|
}
|
|
62998
|
-
var import_node_fs14, import_node_path19,
|
|
61917
|
+
var import_node_fs14, import_node_path19, import_meta6;
|
|
62999
61918
|
var init_resolve_cli = __esm({
|
|
63000
61919
|
"src/resolve-cli.ts"() {
|
|
63001
61920
|
"use strict";
|
|
63002
61921
|
import_node_fs14 = __toESM(require("fs"), 1);
|
|
63003
61922
|
import_node_path19 = __toESM(require("path"), 1);
|
|
63004
|
-
|
|
61923
|
+
import_meta6 = {};
|
|
63005
61924
|
}
|
|
63006
61925
|
});
|
|
63007
61926
|
|
|
@@ -63676,7 +62595,7 @@ function peekTable(key, table, meta, type) {
|
|
|
63676
62595
|
}
|
|
63677
62596
|
return [k, t, state.c];
|
|
63678
62597
|
}
|
|
63679
|
-
function
|
|
62598
|
+
function parse3(toml, { maxDepth = 1e3, integersAsBigInt } = {}) {
|
|
63680
62599
|
let res = {};
|
|
63681
62600
|
let meta = {};
|
|
63682
62601
|
let tbl = res;
|
|
@@ -63937,7 +62856,7 @@ async function setupCodex(rootPath) {
|
|
|
63937
62856
|
if (import_node_fs15.default.existsSync(configPath)) {
|
|
63938
62857
|
const raw2 = import_node_fs15.default.readFileSync(configPath, "utf-8");
|
|
63939
62858
|
try {
|
|
63940
|
-
config2 =
|
|
62859
|
+
config2 = parse3(raw2);
|
|
63941
62860
|
} catch {
|
|
63942
62861
|
console.error(`Warning: could not parse ${configPath}, overwriting.`);
|
|
63943
62862
|
}
|