@probelabs/probe 0.6.0-rc260 → 0.6.0-rc262

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/cjs/index.cjs CHANGED
@@ -476,7 +476,7 @@ async function getPackageBinDir() {
476
476
  }
477
477
  async function findPackageRoot() {
478
478
  const debug = process.env.DEBUG === "1" || process.env.VERBOSE === "1";
479
- let currentDir = __dirname;
479
+ let currentDir = __dirname2;
480
480
  const rootDir = import_path.default.parse(currentDir).root;
481
481
  if (debug) {
482
482
  console.log(`DEBUG: Starting package root search from: ${currentDir}`);
@@ -550,7 +550,7 @@ async function canWriteToDirectory(dirPath) {
550
550
  return false;
551
551
  }
552
552
  }
553
- var import_path, import_os, import_fs_extra, import_url, __filename, __dirname;
553
+ var import_path, import_os, import_fs_extra, import_url, __filename, __dirname2;
554
554
  var init_directory_resolver = __esm({
555
555
  "src/directory-resolver.js"() {
556
556
  "use strict";
@@ -559,7 +559,7 @@ var init_directory_resolver = __esm({
559
559
  import_fs_extra = __toESM(require("fs-extra"), 1);
560
560
  import_url = require("url");
561
561
  __filename = (0, import_url.fileURLToPath)("file:///");
562
- __dirname = import_path.default.dirname(__filename);
562
+ __dirname2 = import_path.default.dirname(__filename);
563
563
  }
564
564
  });
565
565
 
@@ -1182,9 +1182,9 @@ async function saveVersionInfo(version2, binDir) {
1182
1182
  async function getPackageVersion() {
1183
1183
  try {
1184
1184
  const possiblePaths = [
1185
- import_path2.default.resolve(__dirname2, "..", "package.json"),
1185
+ import_path2.default.resolve(__dirname3, "..", "package.json"),
1186
1186
  // When installed from npm: src/../package.json
1187
- import_path2.default.resolve(__dirname2, "..", "..", "package.json")
1187
+ import_path2.default.resolve(__dirname3, "..", "..", "package.json")
1188
1188
  // In development: src/../../package.json
1189
1189
  ];
1190
1190
  for (const packageJsonPath of possiblePaths) {
@@ -1321,7 +1321,7 @@ async function downloadProbeBinary(version2) {
1321
1321
  throw sanitizeError(error2);
1322
1322
  }
1323
1323
  }
1324
- var import_axios, import_fs_extra2, import_path2, import_crypto, import_util, import_child_process, import_tar, import_os2, import_url2, exec, REPO_OWNER, REPO_NAME, BINARY_NAME, __filename2, __dirname2, downloadLocks, LOCK_TIMEOUT_MS, LOCK_POLL_INTERVAL_MS, MAX_LOCK_WAIT_MS;
1324
+ var import_axios, import_fs_extra2, import_path2, import_crypto, import_util, import_child_process, import_tar, import_os2, import_url2, exec, REPO_OWNER, REPO_NAME, BINARY_NAME, __filename2, __dirname3, downloadLocks, LOCK_TIMEOUT_MS, LOCK_POLL_INTERVAL_MS, MAX_LOCK_WAIT_MS;
1325
1325
  var init_downloader = __esm({
1326
1326
  "src/downloader.js"() {
1327
1327
  "use strict";
@@ -1342,7 +1342,7 @@ var init_downloader = __esm({
1342
1342
  REPO_NAME = "probe";
1343
1343
  BINARY_NAME = "probe";
1344
1344
  __filename2 = (0, import_url2.fileURLToPath)("file:///");
1345
- __dirname2 = import_path2.default.dirname(__filename2);
1345
+ __dirname3 = import_path2.default.dirname(__filename2);
1346
1346
  downloadLocks = /* @__PURE__ */ new Map();
1347
1347
  LOCK_TIMEOUT_MS = 5 * 60 * 1e3;
1348
1348
  LOCK_POLL_INTERVAL_MS = 1e3;
@@ -1364,7 +1364,7 @@ async function getBinaryPath(options = {}) {
1364
1364
  }
1365
1365
  const isWindows = process.platform === "win32";
1366
1366
  const binaryName = isWindows ? "probe.exe" : "probe-binary";
1367
- const localPackageBin = import_path3.default.resolve(__dirname3, "..", "bin");
1367
+ const localPackageBin = import_path3.default.resolve(__dirname4, "..", "bin");
1368
1368
  const localBinaryPath = import_path3.default.join(localPackageBin, binaryName);
1369
1369
  if (import_fs_extra3.default.existsSync(localBinaryPath) && !forceDownload) {
1370
1370
  probeBinaryPath = localBinaryPath;
@@ -1413,7 +1413,7 @@ function escapeString(str) {
1413
1413
  return `'${str.replace(/'/g, "'\\''")}'`;
1414
1414
  }
1415
1415
  }
1416
- var import_path3, import_fs_extra3, import_url3, __filename3, __dirname3, probeBinaryPath;
1416
+ var import_path3, import_fs_extra3, import_url3, __filename3, __dirname4, probeBinaryPath;
1417
1417
  var init_utils = __esm({
1418
1418
  "src/utils.js"() {
1419
1419
  "use strict";
@@ -1423,7 +1423,7 @@ var init_utils = __esm({
1423
1423
  init_downloader();
1424
1424
  init_directory_resolver();
1425
1425
  __filename3 = (0, import_url3.fileURLToPath)("file:///");
1426
- __dirname3 = import_path3.default.dirname(__filename3);
1426
+ __dirname4 = import_path3.default.dirname(__filename3);
1427
1427
  probeBinaryPath = "";
1428
1428
  }
1429
1429
  });
@@ -19363,7 +19363,7 @@ var require_package2 = __commonJS({
19363
19363
  module2.exports = {
19364
19364
  name: "@aws-sdk/client-bedrock-runtime",
19365
19365
  description: "AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native",
19366
- version: "3.998.0",
19366
+ version: "3.999.0",
19367
19367
  scripts: {
19368
19368
  build: "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
19369
19369
  "build:cjs": "node ../../scripts/compilation/inline client-bedrock-runtime",
@@ -19383,21 +19383,21 @@ var require_package2 = __commonJS({
19383
19383
  dependencies: {
19384
19384
  "@aws-crypto/sha256-browser": "5.2.0",
19385
19385
  "@aws-crypto/sha256-js": "5.2.0",
19386
- "@aws-sdk/core": "^3.973.14",
19387
- "@aws-sdk/credential-provider-node": "^3.972.13",
19388
- "@aws-sdk/eventstream-handler-node": "^3.972.8",
19389
- "@aws-sdk/middleware-eventstream": "^3.972.5",
19390
- "@aws-sdk/middleware-host-header": "^3.972.5",
19391
- "@aws-sdk/middleware-logger": "^3.972.5",
19392
- "@aws-sdk/middleware-recursion-detection": "^3.972.5",
19393
- "@aws-sdk/middleware-user-agent": "^3.972.14",
19394
- "@aws-sdk/middleware-websocket": "^3.972.9",
19395
- "@aws-sdk/region-config-resolver": "^3.972.5",
19396
- "@aws-sdk/token-providers": "3.998.0",
19397
- "@aws-sdk/types": "^3.973.3",
19398
- "@aws-sdk/util-endpoints": "^3.996.2",
19399
- "@aws-sdk/util-user-agent-browser": "^3.972.5",
19400
- "@aws-sdk/util-user-agent-node": "^3.972.13",
19386
+ "@aws-sdk/core": "^3.973.15",
19387
+ "@aws-sdk/credential-provider-node": "^3.972.14",
19388
+ "@aws-sdk/eventstream-handler-node": "^3.972.9",
19389
+ "@aws-sdk/middleware-eventstream": "^3.972.6",
19390
+ "@aws-sdk/middleware-host-header": "^3.972.6",
19391
+ "@aws-sdk/middleware-logger": "^3.972.6",
19392
+ "@aws-sdk/middleware-recursion-detection": "^3.972.6",
19393
+ "@aws-sdk/middleware-user-agent": "^3.972.15",
19394
+ "@aws-sdk/middleware-websocket": "^3.972.10",
19395
+ "@aws-sdk/region-config-resolver": "^3.972.6",
19396
+ "@aws-sdk/token-providers": "3.999.0",
19397
+ "@aws-sdk/types": "^3.973.4",
19398
+ "@aws-sdk/util-endpoints": "^3.996.3",
19399
+ "@aws-sdk/util-user-agent-browser": "^3.972.6",
19400
+ "@aws-sdk/util-user-agent-node": "^3.973.0",
19401
19401
  "@smithy/config-resolver": "^4.4.9",
19402
19402
  "@smithy/core": "^3.23.6",
19403
19403
  "@smithy/eventstream-serde-browser": "^4.2.10",
@@ -19991,7 +19991,7 @@ var require_fromHttp = __commonJS({
19991
19991
  var client_1 = (init_client(), __toCommonJS(client_exports));
19992
19992
  var node_http_handler_1 = require_dist_cjs15();
19993
19993
  var property_provider_1 = require_dist_cjs24();
19994
- var promises_1 = tslib_1.__importDefault(require("fs/promises"));
19994
+ var promises_1 = tslib_1.__importDefault(require("node:fs/promises"));
19995
19995
  var checkUrl_1 = require_checkUrl();
19996
19996
  var requestHelpers_1 = require_requestHelpers();
19997
19997
  var retry_wrapper_1 = require_retry_wrapper();
@@ -20144,7 +20144,7 @@ var init_package = __esm({
20144
20144
  "node_modules/@aws-sdk/nested-clients/package.json"() {
20145
20145
  package_default = {
20146
20146
  name: "@aws-sdk/nested-clients",
20147
- version: "3.996.2",
20147
+ version: "3.996.3",
20148
20148
  description: "Nested clients for AWS SDK packages.",
20149
20149
  main: "./dist-cjs/index.js",
20150
20150
  module: "./dist-es/index.js",
@@ -20173,16 +20173,16 @@ var init_package = __esm({
20173
20173
  dependencies: {
20174
20174
  "@aws-crypto/sha256-browser": "5.2.0",
20175
20175
  "@aws-crypto/sha256-js": "5.2.0",
20176
- "@aws-sdk/core": "^3.973.14",
20177
- "@aws-sdk/middleware-host-header": "^3.972.5",
20178
- "@aws-sdk/middleware-logger": "^3.972.5",
20179
- "@aws-sdk/middleware-recursion-detection": "^3.972.5",
20180
- "@aws-sdk/middleware-user-agent": "^3.972.14",
20181
- "@aws-sdk/region-config-resolver": "^3.972.5",
20182
- "@aws-sdk/types": "^3.973.3",
20183
- "@aws-sdk/util-endpoints": "^3.996.2",
20184
- "@aws-sdk/util-user-agent-browser": "^3.972.5",
20185
- "@aws-sdk/util-user-agent-node": "^3.972.13",
20176
+ "@aws-sdk/core": "^3.973.15",
20177
+ "@aws-sdk/middleware-host-header": "^3.972.6",
20178
+ "@aws-sdk/middleware-logger": "^3.972.6",
20179
+ "@aws-sdk/middleware-recursion-detection": "^3.972.6",
20180
+ "@aws-sdk/middleware-user-agent": "^3.972.15",
20181
+ "@aws-sdk/region-config-resolver": "^3.972.6",
20182
+ "@aws-sdk/types": "^3.973.4",
20183
+ "@aws-sdk/util-endpoints": "^3.996.3",
20184
+ "@aws-sdk/util-user-agent-browser": "^3.972.6",
20185
+ "@aws-sdk/util-user-agent-node": "^3.973.0",
20186
20186
  "@smithy/config-resolver": "^4.4.9",
20187
20187
  "@smithy/core": "^3.23.6",
20188
20188
  "@smithy/fetch-http-handler": "^5.3.11",
@@ -20294,17 +20294,51 @@ var init_package = __esm({
20294
20294
  var require_dist_cjs51 = __commonJS({
20295
20295
  "node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js"(exports2) {
20296
20296
  "use strict";
20297
- var os4 = require("os");
20298
- var process2 = require("process");
20297
+ var node_os = require("node:os");
20298
+ var node_process = require("node:process");
20299
+ var promises = require("node:fs/promises");
20300
+ var node_path = require("node:path");
20299
20301
  var middlewareUserAgent = require_dist_cjs29();
20300
20302
  var getRuntimeUserAgentPair = () => {
20301
20303
  const runtimesToCheck = ["deno", "bun", "llrt"];
20302
20304
  for (const runtime of runtimesToCheck) {
20303
- if (process2.versions[runtime]) {
20304
- return [`md/${runtime}`, process2.versions[runtime]];
20305
+ if (node_process.versions[runtime]) {
20306
+ return [`md/${runtime}`, node_process.versions[runtime]];
20307
+ }
20308
+ }
20309
+ return ["md/nodejs", node_process.versions.node];
20310
+ };
20311
+ var getTypeScriptPackageJsonPath = (dirname6 = "") => {
20312
+ let nodeModulesPath;
20313
+ const normalizedPath = node_path.normalize(dirname6);
20314
+ const parts = normalizedPath.split(node_path.sep);
20315
+ const nodeModulesIndex = parts.indexOf("node_modules");
20316
+ if (nodeModulesIndex !== -1) {
20317
+ nodeModulesPath = parts.slice(0, nodeModulesIndex).join(node_path.sep);
20318
+ } else {
20319
+ nodeModulesPath = dirname6;
20320
+ }
20321
+ return node_path.join(nodeModulesPath, "node_modules", "typescript", "package.json");
20322
+ };
20323
+ var tscVersion;
20324
+ var getTypeScriptUserAgentPair = async () => {
20325
+ if (tscVersion === null) {
20326
+ return void 0;
20327
+ } else if (typeof tscVersion === "string") {
20328
+ return ["md/tsc", tscVersion];
20329
+ }
20330
+ try {
20331
+ const packageJson = await promises.readFile(getTypeScriptPackageJsonPath(__dirname), "utf-8");
20332
+ const { version: version2 } = JSON.parse(packageJson);
20333
+ if (typeof version2 !== "string") {
20334
+ tscVersion = null;
20335
+ return void 0;
20305
20336
  }
20337
+ tscVersion = version2;
20338
+ return ["md/tsc", tscVersion];
20339
+ } catch {
20340
+ tscVersion = null;
20306
20341
  }
20307
- return ["md/nodejs", process2.versions.node];
20308
20342
  };
20309
20343
  var crtAvailability = {
20310
20344
  isCrtAvailable: false
@@ -20321,10 +20355,14 @@ var require_dist_cjs51 = __commonJS({
20321
20355
  const sections = [
20322
20356
  ["aws-sdk-js", clientVersion],
20323
20357
  ["ua", "2.1"],
20324
- [`os/${os4.platform()}`, os4.release()],
20358
+ [`os/${node_os.platform()}`, node_os.release()],
20325
20359
  ["lang/js"],
20326
20360
  runtimeUserAgentPair
20327
20361
  ];
20362
+ const typescriptUserAgentPair = await getTypeScriptUserAgentPair();
20363
+ if (typescriptUserAgentPair) {
20364
+ sections.push(typescriptUserAgentPair);
20365
+ }
20328
20366
  const crtAvailable = isCrtAvailable();
20329
20367
  if (crtAvailable) {
20330
20368
  sections.push(crtAvailable);
@@ -20332,8 +20370,8 @@ var require_dist_cjs51 = __commonJS({
20332
20370
  if (serviceId) {
20333
20371
  sections.push([`api/${serviceId}`, clientVersion]);
20334
20372
  }
20335
- if (process2.env.AWS_EXECUTION_ENV) {
20336
- sections.push([`exec-env/${process2.env.AWS_EXECUTION_ENV}`]);
20373
+ if (node_process.env.AWS_EXECUTION_ENV) {
20374
+ sections.push([`exec-env/${node_process.env.AWS_EXECUTION_ENV}`]);
20337
20375
  }
20338
20376
  const appId = await config?.userAgentAppId?.();
20339
20377
  const resolvedUserAgent = appId ? [...sections, [`app/${appId}`]] : [...sections];
@@ -21407,7 +21445,7 @@ var require_dist_cjs56 = __commonJS({
21407
21445
  var httpAuthSchemes = (init_httpAuthSchemes2(), __toCommonJS(httpAuthSchemes_exports));
21408
21446
  var propertyProvider = require_dist_cjs24();
21409
21447
  var sharedIniFileLoader = require_dist_cjs42();
21410
- var fs10 = require("fs");
21448
+ var node_fs = require("node:fs");
21411
21449
  var fromEnvSigningName = ({ logger: logger2, signingName } = {}) => async () => {
21412
21450
  logger2?.debug?.("@aws-sdk/token-providers - fromEnvSigningName");
21413
21451
  if (!signingName) {
@@ -21453,7 +21491,7 @@ var require_dist_cjs56 = __commonJS({
21453
21491
  throw new propertyProvider.TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`, false);
21454
21492
  }
21455
21493
  };
21456
- var { writeFile: writeFile2 } = fs10.promises;
21494
+ var { writeFile: writeFile2 } = node_fs.promises;
21457
21495
  var writeSSOTokenToFile = (id, ssoToken) => {
21458
21496
  const tokenFilepath = sharedIniFileLoader.getSSOTokenFilepath(id);
21459
21497
  const tokenString = JSON.stringify(ssoToken, null, 2);
@@ -24575,8 +24613,8 @@ var require_dist_cjs59 = __commonJS({
24575
24613
  "use strict";
24576
24614
  var sharedIniFileLoader = require_dist_cjs42();
24577
24615
  var propertyProvider = require_dist_cjs24();
24578
- var child_process = require("child_process");
24579
- var util2 = require("util");
24616
+ var node_child_process = require("node:child_process");
24617
+ var node_util = require("node:util");
24580
24618
  var client = (init_client(), __toCommonJS(client_exports));
24581
24619
  var getValidatedProcessCredentials = (profileName, data3, profiles) => {
24582
24620
  if (data3.Version !== 1) {
@@ -24612,7 +24650,7 @@ var require_dist_cjs59 = __commonJS({
24612
24650
  if (profiles[profileName]) {
24613
24651
  const credentialProcess = profile["credential_process"];
24614
24652
  if (credentialProcess !== void 0) {
24615
- const execPromise = util2.promisify(sharedIniFileLoader.externalDataInterceptor?.getTokenRecord?.().exec ?? child_process.exec);
24653
+ const execPromise = node_util.promisify(sharedIniFileLoader.externalDataInterceptor?.getTokenRecord?.().exec ?? node_child_process.exec);
24616
24654
  try {
24617
24655
  const { stdout } = await execPromise(credentialProcess);
24618
24656
  let data3;
@@ -24726,7 +24764,7 @@ var require_fromTokenFile = __commonJS({
24726
24764
  var client_1 = (init_client(), __toCommonJS(client_exports));
24727
24765
  var property_provider_1 = require_dist_cjs24();
24728
24766
  var shared_ini_file_loader_1 = require_dist_cjs42();
24729
- var fs_1 = require("fs");
24767
+ var node_fs_1 = require("node:fs");
24730
24768
  var fromWebToken_1 = require_fromWebToken();
24731
24769
  var ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE";
24732
24770
  var ENV_ROLE_ARN = "AWS_ROLE_ARN";
@@ -24743,7 +24781,7 @@ var require_fromTokenFile = __commonJS({
24743
24781
  }
24744
24782
  const credentials = await (0, fromWebToken_1.fromWebToken)({
24745
24783
  ...init,
24746
- webIdentityToken: shared_ini_file_loader_1.externalDataInterceptor?.getTokenRecord?.()[webIdentityTokenFile] ?? (0, fs_1.readFileSync)(webIdentityTokenFile, { encoding: "ascii" }),
24784
+ webIdentityToken: shared_ini_file_loader_1.externalDataInterceptor?.getTokenRecord?.()[webIdentityTokenFile] ?? (0, node_fs_1.readFileSync)(webIdentityTokenFile, { encoding: "ascii" }),
24747
24785
  roleArn,
24748
24786
  roleSessionName
24749
24787
  })(awsIdentityProperties);
@@ -37618,13 +37656,13 @@ Capabilities:
37618
37656
  });
37619
37657
 
37620
37658
  // src/agent/xmlParsingUtils.js
37621
- function removeThinkingTags(xmlString) {
37659
+ function removeThinkingTags(xmlString, validTools = DEFAULT_VALID_TOOLS) {
37622
37660
  let result = xmlString;
37623
37661
  result = result.replace(/<thinking>[\s\S]*?<\/thinking>/g, "");
37624
37662
  const thinkingIndex = result.indexOf("<thinking>");
37625
37663
  if (thinkingIndex !== -1) {
37626
37664
  const afterThinking = result.substring(thinkingIndex + "<thinking>".length);
37627
- const toolPattern = buildToolTagPattern(DEFAULT_VALID_TOOLS);
37665
+ const toolPattern = buildToolTagPattern(validTools);
37628
37666
  const toolMatch = afterThinking.match(toolPattern);
37629
37667
  if (toolMatch) {
37630
37668
  const toolStart = thinkingIndex + "<thinking>".length + toolMatch.index;
@@ -37723,7 +37761,7 @@ function hasOtherToolTags(xmlString, validTools = []) {
37723
37761
  }
37724
37762
  function processXmlWithThinkingAndRecovery(xmlString, validTools = []) {
37725
37763
  const thinkingContent = extractThinkingContent(xmlString);
37726
- const cleanedXmlString = removeThinkingTags(xmlString);
37764
+ const cleanedXmlString = removeThinkingTags(xmlString, validTools.length > 0 ? validTools : void 0);
37727
37765
  const recoveryResult = checkAttemptCompleteRecovery(cleanedXmlString, validTools);
37728
37766
  if (process.env.DEBUG === "1" && thinkingContent) {
37729
37767
  console.log(`[DEBUG] AI Thinking Process:
@@ -38673,31 +38711,33 @@ var init_fileTracker = __esm({
38673
38711
  }
38674
38712
  });
38675
38713
 
38676
- // node_modules/balanced-match/dist/esm/index.js
38677
- var balanced, maybeMatch, range2;
38678
- var init_esm = __esm({
38679
- "node_modules/balanced-match/dist/esm/index.js"() {
38680
- balanced = (a5, b5, str) => {
38681
- const ma = a5 instanceof RegExp ? maybeMatch(a5, str) : a5;
38682
- const mb = b5 instanceof RegExp ? maybeMatch(b5, str) : b5;
38683
- const r5 = ma !== null && mb != null && range2(ma, mb, str);
38714
+ // node_modules/balanced-match/index.js
38715
+ var require_balanced_match = __commonJS({
38716
+ "node_modules/balanced-match/index.js"(exports2, module2) {
38717
+ "use strict";
38718
+ module2.exports = balanced;
38719
+ function balanced(a5, b5, str) {
38720
+ if (a5 instanceof RegExp) a5 = maybeMatch(a5, str);
38721
+ if (b5 instanceof RegExp) b5 = maybeMatch(b5, str);
38722
+ var r5 = range2(a5, b5, str);
38684
38723
  return r5 && {
38685
38724
  start: r5[0],
38686
38725
  end: r5[1],
38687
38726
  pre: str.slice(0, r5[0]),
38688
- body: str.slice(r5[0] + ma.length, r5[1]),
38689
- post: str.slice(r5[1] + mb.length)
38727
+ body: str.slice(r5[0] + a5.length, r5[1]),
38728
+ post: str.slice(r5[1] + b5.length)
38690
38729
  };
38691
- };
38692
- maybeMatch = (reg, str) => {
38693
- const m5 = str.match(reg);
38730
+ }
38731
+ function maybeMatch(reg, str) {
38732
+ var m5 = str.match(reg);
38694
38733
  return m5 ? m5[0] : null;
38695
- };
38696
- range2 = (a5, b5, str) => {
38697
- let begs, beg, left, right = void 0, result;
38698
- let ai = str.indexOf(a5);
38699
- let bi = str.indexOf(b5, ai + 1);
38700
- let i5 = ai;
38734
+ }
38735
+ balanced.range = range2;
38736
+ function range2(a5, b5, str) {
38737
+ var begs, beg, left, right, result;
38738
+ var ai = str.indexOf(a5);
38739
+ var bi = str.indexOf(b5, ai + 1);
38740
+ var i5 = ai;
38701
38741
  if (ai >= 0 && bi > 0) {
38702
38742
  if (a5 === b5) {
38703
38743
  return [ai, bi];
@@ -38705,16 +38745,14 @@ var init_esm = __esm({
38705
38745
  begs = [];
38706
38746
  left = str.length;
38707
38747
  while (i5 >= 0 && !result) {
38708
- if (i5 === ai) {
38748
+ if (i5 == ai) {
38709
38749
  begs.push(i5);
38710
38750
  ai = str.indexOf(a5, i5 + 1);
38711
- } else if (begs.length === 1) {
38712
- const r5 = begs.pop();
38713
- if (r5 !== void 0)
38714
- result = [r5, bi];
38751
+ } else if (begs.length == 1) {
38752
+ result = [begs.pop(), bi];
38715
38753
  } else {
38716
38754
  beg = begs.pop();
38717
- if (beg !== void 0 && beg < left) {
38755
+ if (beg < left) {
38718
38756
  left = beg;
38719
38757
  right = bi;
38720
38758
  }
@@ -38722,179 +38760,163 @@ var init_esm = __esm({
38722
38760
  }
38723
38761
  i5 = ai < bi && ai >= 0 ? ai : bi;
38724
38762
  }
38725
- if (begs.length && right !== void 0) {
38763
+ if (begs.length) {
38726
38764
  result = [left, right];
38727
38765
  }
38728
38766
  }
38729
38767
  return result;
38730
- };
38768
+ }
38731
38769
  }
38732
38770
  });
38733
38771
 
38734
- // node_modules/brace-expansion/dist/esm/index.js
38735
- function numeric(str) {
38736
- return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
38737
- }
38738
- function escapeBraces(str) {
38739
- return str.replace(slashPattern, escSlash).replace(openPattern, escOpen).replace(closePattern, escClose).replace(commaPattern, escComma).replace(periodPattern, escPeriod);
38740
- }
38741
- function unescapeBraces(str) {
38742
- return str.replace(escSlashPattern, "\\").replace(escOpenPattern, "{").replace(escClosePattern, "}").replace(escCommaPattern, ",").replace(escPeriodPattern, ".");
38743
- }
38744
- function parseCommaParts(str) {
38745
- if (!str) {
38746
- return [""];
38747
- }
38748
- const parts = [];
38749
- const m5 = balanced("{", "}", str);
38750
- if (!m5) {
38751
- return str.split(",");
38752
- }
38753
- const { pre, body, post } = m5;
38754
- const p5 = pre.split(",");
38755
- p5[p5.length - 1] += "{" + body + "}";
38756
- const postParts = parseCommaParts(post);
38757
- if (post.length) {
38758
- ;
38759
- p5[p5.length - 1] += postParts.shift();
38760
- p5.push.apply(p5, postParts);
38761
- }
38762
- parts.push.apply(parts, p5);
38763
- return parts;
38764
- }
38765
- function expand(str, options = {}) {
38766
- if (!str) {
38767
- return [];
38768
- }
38769
- const { max = EXPANSION_MAX } = options;
38770
- if (str.slice(0, 2) === "{}") {
38771
- str = "\\{\\}" + str.slice(2);
38772
- }
38773
- return expand_(escapeBraces(str), max, true).map(unescapeBraces);
38774
- }
38775
- function embrace(str) {
38776
- return "{" + str + "}";
38777
- }
38778
- function isPadded(el) {
38779
- return /^-?0\d/.test(el);
38780
- }
38781
- function lte(i5, y2) {
38782
- return i5 <= y2;
38783
- }
38784
- function gte(i5, y2) {
38785
- return i5 >= y2;
38786
- }
38787
- function expand_(str, max, isTop) {
38788
- const expansions = [];
38789
- const m5 = balanced("{", "}", str);
38790
- if (!m5)
38791
- return [str];
38792
- const pre = m5.pre;
38793
- const post = m5.post.length ? expand_(m5.post, max, false) : [""];
38794
- if (/\$$/.test(m5.pre)) {
38795
- for (let k5 = 0; k5 < post.length && k5 < max; k5++) {
38796
- const expansion = pre + "{" + m5.body + "}" + post[k5];
38797
- expansions.push(expansion);
38772
+ // node_modules/brace-expansion/index.js
38773
+ var require_brace_expansion = __commonJS({
38774
+ "node_modules/brace-expansion/index.js"(exports2, module2) {
38775
+ var balanced = require_balanced_match();
38776
+ module2.exports = expandTop;
38777
+ var escSlash = "\0SLASH" + Math.random() + "\0";
38778
+ var escOpen = "\0OPEN" + Math.random() + "\0";
38779
+ var escClose = "\0CLOSE" + Math.random() + "\0";
38780
+ var escComma = "\0COMMA" + Math.random() + "\0";
38781
+ var escPeriod = "\0PERIOD" + Math.random() + "\0";
38782
+ function numeric(str) {
38783
+ return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0);
38784
+ }
38785
+ function escapeBraces(str) {
38786
+ return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod);
38787
+ }
38788
+ function unescapeBraces(str) {
38789
+ return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join(".");
38790
+ }
38791
+ function parseCommaParts(str) {
38792
+ if (!str)
38793
+ return [""];
38794
+ var parts = [];
38795
+ var m5 = balanced("{", "}", str);
38796
+ if (!m5)
38797
+ return str.split(",");
38798
+ var pre = m5.pre;
38799
+ var body = m5.body;
38800
+ var post = m5.post;
38801
+ var p5 = pre.split(",");
38802
+ p5[p5.length - 1] += "{" + body + "}";
38803
+ var postParts = parseCommaParts(post);
38804
+ if (post.length) {
38805
+ p5[p5.length - 1] += postParts.shift();
38806
+ p5.push.apply(p5, postParts);
38807
+ }
38808
+ parts.push.apply(parts, p5);
38809
+ return parts;
38810
+ }
38811
+ function expandTop(str) {
38812
+ if (!str)
38813
+ return [];
38814
+ if (str.substr(0, 2) === "{}") {
38815
+ str = "\\{\\}" + str.substr(2);
38816
+ }
38817
+ return expand2(escapeBraces(str), true).map(unescapeBraces);
38798
38818
  }
38799
- } else {
38800
- const isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m5.body);
38801
- const isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m5.body);
38802
- const isSequence = isNumericSequence || isAlphaSequence;
38803
- const isOptions = m5.body.indexOf(",") >= 0;
38804
- if (!isSequence && !isOptions) {
38805
- if (m5.post.match(/,(?!,).*\}/)) {
38806
- str = m5.pre + "{" + m5.body + escClose + m5.post;
38807
- return expand_(str, max, true);
38808
- }
38809
- return [str];
38810
- }
38811
- let n5;
38812
- if (isSequence) {
38813
- n5 = m5.body.split(/\.\./);
38814
- } else {
38815
- n5 = parseCommaParts(m5.body);
38816
- if (n5.length === 1 && n5[0] !== void 0) {
38817
- n5 = expand_(n5[0], max, false).map(embrace);
38818
- if (n5.length === 1) {
38819
- return post.map((p5) => m5.pre + n5[0] + p5);
38820
- }
38821
- }
38822
- }
38823
- let N;
38824
- if (isSequence && n5[0] !== void 0 && n5[1] !== void 0) {
38825
- const x5 = numeric(n5[0]);
38826
- const y2 = numeric(n5[1]);
38827
- const width = Math.max(n5[0].length, n5[1].length);
38828
- let incr = n5.length === 3 && n5[2] !== void 0 ? Math.abs(numeric(n5[2])) : 1;
38829
- let test = lte;
38830
- const reverse = y2 < x5;
38831
- if (reverse) {
38832
- incr *= -1;
38833
- test = gte;
38834
- }
38835
- const pad = n5.some(isPadded);
38836
- N = [];
38837
- for (let i5 = x5; test(i5, y2); i5 += incr) {
38838
- let c5;
38839
- if (isAlphaSequence) {
38840
- c5 = String.fromCharCode(i5);
38841
- if (c5 === "\\") {
38842
- c5 = "";
38843
- }
38819
+ function embrace(str) {
38820
+ return "{" + str + "}";
38821
+ }
38822
+ function isPadded(el) {
38823
+ return /^-?0\d/.test(el);
38824
+ }
38825
+ function lte(i5, y2) {
38826
+ return i5 <= y2;
38827
+ }
38828
+ function gte(i5, y2) {
38829
+ return i5 >= y2;
38830
+ }
38831
+ function expand2(str, isTop) {
38832
+ var expansions = [];
38833
+ var m5 = balanced("{", "}", str);
38834
+ if (!m5) return [str];
38835
+ var pre = m5.pre;
38836
+ var post = m5.post.length ? expand2(m5.post, false) : [""];
38837
+ if (/\$$/.test(m5.pre)) {
38838
+ for (var k5 = 0; k5 < post.length; k5++) {
38839
+ var expansion = pre + "{" + m5.body + "}" + post[k5];
38840
+ expansions.push(expansion);
38841
+ }
38842
+ } else {
38843
+ var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m5.body);
38844
+ var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m5.body);
38845
+ var isSequence = isNumericSequence || isAlphaSequence;
38846
+ var isOptions = m5.body.indexOf(",") >= 0;
38847
+ if (!isSequence && !isOptions) {
38848
+ if (m5.post.match(/,(?!,).*\}/)) {
38849
+ str = m5.pre + "{" + m5.body + escClose + m5.post;
38850
+ return expand2(str);
38851
+ }
38852
+ return [str];
38853
+ }
38854
+ var n5;
38855
+ if (isSequence) {
38856
+ n5 = m5.body.split(/\.\./);
38844
38857
  } else {
38845
- c5 = String(i5);
38846
- if (pad) {
38847
- const need = width - c5.length;
38848
- if (need > 0) {
38849
- const z2 = new Array(need + 1).join("0");
38850
- if (i5 < 0) {
38851
- c5 = "-" + z2 + c5.slice(1);
38852
- } else {
38853
- c5 = z2 + c5;
38858
+ n5 = parseCommaParts(m5.body);
38859
+ if (n5.length === 1) {
38860
+ n5 = expand2(n5[0], false).map(embrace);
38861
+ if (n5.length === 1) {
38862
+ return post.map(function(p5) {
38863
+ return m5.pre + n5[0] + p5;
38864
+ });
38865
+ }
38866
+ }
38867
+ }
38868
+ var N;
38869
+ if (isSequence) {
38870
+ var x5 = numeric(n5[0]);
38871
+ var y2 = numeric(n5[1]);
38872
+ var width = Math.max(n5[0].length, n5[1].length);
38873
+ var incr = n5.length == 3 ? Math.abs(numeric(n5[2])) : 1;
38874
+ var test = lte;
38875
+ var reverse = y2 < x5;
38876
+ if (reverse) {
38877
+ incr *= -1;
38878
+ test = gte;
38879
+ }
38880
+ var pad = n5.some(isPadded);
38881
+ N = [];
38882
+ for (var i5 = x5; test(i5, y2); i5 += incr) {
38883
+ var c5;
38884
+ if (isAlphaSequence) {
38885
+ c5 = String.fromCharCode(i5);
38886
+ if (c5 === "\\")
38887
+ c5 = "";
38888
+ } else {
38889
+ c5 = String(i5);
38890
+ if (pad) {
38891
+ var need = width - c5.length;
38892
+ if (need > 0) {
38893
+ var z2 = new Array(need + 1).join("0");
38894
+ if (i5 < 0)
38895
+ c5 = "-" + z2 + c5.slice(1);
38896
+ else
38897
+ c5 = z2 + c5;
38898
+ }
38854
38899
  }
38855
38900
  }
38901
+ N.push(c5);
38902
+ }
38903
+ } else {
38904
+ N = [];
38905
+ for (var j5 = 0; j5 < n5.length; j5++) {
38906
+ N.push.apply(N, expand2(n5[j5], false));
38856
38907
  }
38857
38908
  }
38858
- N.push(c5);
38859
- }
38860
- } else {
38861
- N = [];
38862
- for (let j5 = 0; j5 < n5.length; j5++) {
38863
- N.push.apply(N, expand_(n5[j5], max, false));
38864
- }
38865
- }
38866
- for (let j5 = 0; j5 < N.length; j5++) {
38867
- for (let k5 = 0; k5 < post.length && expansions.length < max; k5++) {
38868
- const expansion = pre + N[j5] + post[k5];
38869
- if (!isTop || isSequence || expansion) {
38870
- expansions.push(expansion);
38909
+ for (var j5 = 0; j5 < N.length; j5++) {
38910
+ for (var k5 = 0; k5 < post.length; k5++) {
38911
+ var expansion = pre + N[j5] + post[k5];
38912
+ if (!isTop || isSequence || expansion)
38913
+ expansions.push(expansion);
38914
+ }
38871
38915
  }
38872
38916
  }
38917
+ return expansions;
38873
38918
  }
38874
38919
  }
38875
- return expansions;
38876
- }
38877
- var escSlash, escOpen, escClose, escComma, escPeriod, escSlashPattern, escOpenPattern, escClosePattern, escCommaPattern, escPeriodPattern, slashPattern, openPattern, closePattern, commaPattern, periodPattern, EXPANSION_MAX;
38878
- var init_esm2 = __esm({
38879
- "node_modules/brace-expansion/dist/esm/index.js"() {
38880
- init_esm();
38881
- escSlash = "\0SLASH" + Math.random() + "\0";
38882
- escOpen = "\0OPEN" + Math.random() + "\0";
38883
- escClose = "\0CLOSE" + Math.random() + "\0";
38884
- escComma = "\0COMMA" + Math.random() + "\0";
38885
- escPeriod = "\0PERIOD" + Math.random() + "\0";
38886
- escSlashPattern = new RegExp(escSlash, "g");
38887
- escOpenPattern = new RegExp(escOpen, "g");
38888
- escClosePattern = new RegExp(escClose, "g");
38889
- escCommaPattern = new RegExp(escComma, "g");
38890
- escPeriodPattern = new RegExp(escPeriod, "g");
38891
- slashPattern = /\\\\/g;
38892
- openPattern = /\\{/g;
38893
- closePattern = /\\}/g;
38894
- commaPattern = /\\,/g;
38895
- periodPattern = /\\./g;
38896
- EXPANSION_MAX = 1e5;
38897
- }
38898
38920
  });
38899
38921
 
38900
38922
  // node_modules/minimatch/dist/esm/assert-valid-pattern.js
@@ -39666,10 +39688,10 @@ var init_escape = __esm({
39666
39688
  });
39667
39689
 
39668
39690
  // node_modules/minimatch/dist/esm/index.js
39669
- var minimatch, starDotExtRE, starDotExtTest, starDotExtTestDot, starDotExtTestNocase, starDotExtTestNocaseDot, starDotStarRE, starDotStarTest, starDotStarTestDot, dotStarRE, dotStarTest, starRE, starTest, starTestDot, qmarksRE, qmarksTestNocase, qmarksTestNocaseDot, qmarksTestDot, qmarksTest, qmarksTestNoExt, qmarksTestNoExtDot, defaultPlatform, path5, sep2, GLOBSTAR, qmark2, star2, twoStarDot, twoStarNoDot, filter, ext, defaults, braceExpand, makeRe, match, globMagic, regExpEscape2, Minimatch;
39670
- var init_esm3 = __esm({
39691
+ var import_brace_expansion, minimatch, starDotExtRE, starDotExtTest, starDotExtTestDot, starDotExtTestNocase, starDotExtTestNocaseDot, starDotStarRE, starDotStarTest, starDotStarTestDot, dotStarRE, dotStarTest, starRE, starTest, starTestDot, qmarksRE, qmarksTestNocase, qmarksTestNocaseDot, qmarksTestDot, qmarksTest, qmarksTestNoExt, qmarksTestNoExtDot, defaultPlatform, path5, sep2, GLOBSTAR, qmark2, star2, twoStarDot, twoStarNoDot, filter, ext, defaults, braceExpand, makeRe, match, globMagic, regExpEscape2, Minimatch;
39692
+ var init_esm = __esm({
39671
39693
  "node_modules/minimatch/dist/esm/index.js"() {
39672
- init_esm2();
39694
+ import_brace_expansion = __toESM(require_brace_expansion(), 1);
39673
39695
  init_assert_valid_pattern();
39674
39696
  init_ast();
39675
39697
  init_escape();
@@ -39792,7 +39814,7 @@ var init_esm3 = __esm({
39792
39814
  if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
39793
39815
  return [pattern];
39794
39816
  }
39795
- return expand(pattern);
39817
+ return (0, import_brace_expansion.default)(pattern);
39796
39818
  };
39797
39819
  minimatch.braceExpand = braceExpand;
39798
39820
  makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
@@ -40468,7 +40490,7 @@ var init_esm3 = __esm({
40468
40490
 
40469
40491
  // node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js
40470
40492
  var perf, warned, PROCESS, emitWarning, AC, AS, shouldWarn, TYPE, isPosInt, getUintArray, ZeroArray, Stack, LRUCache;
40471
- var init_esm4 = __esm({
40493
+ var init_esm2 = __esm({
40472
40494
  "node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js"() {
40473
40495
  perf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
40474
40496
  warned = /* @__PURE__ */ new Set();
@@ -41842,7 +41864,7 @@ var init_esm4 = __esm({
41842
41864
 
41843
41865
  // node_modules/minipass/dist/esm/index.js
41844
41866
  var import_node_events, import_node_stream, import_node_string_decoder, proc, isStream, isReadable, isWritable, EOF, MAYBE_EMIT_END, EMITTED_END, EMITTING_END, EMITTED_ERROR, CLOSED, READ, FLUSH, FLUSHCHUNK, ENCODING, DECODER, FLOWING, PAUSED, RESUME, BUFFER, PIPES, BUFFERLENGTH, BUFFERPUSH, BUFFERSHIFT, OBJECTMODE, DESTROYED, ERROR, EMITDATA, EMITEND, EMITEND2, ASYNC, ABORT, ABORTED, SIGNAL, DATALISTENERS, DISCARDED, defer, nodefer, isEndish, isArrayBufferLike, isArrayBufferView, Pipe, PipeProxyErrors, isObjectModeOptions, isEncodingOptions, Minipass;
41845
- var init_esm5 = __esm({
41867
+ var init_esm3 = __esm({
41846
41868
  "node_modules/minipass/dist/esm/index.js"() {
41847
41869
  import_node_events = require("node:events");
41848
41870
  import_node_stream = __toESM(require("node:stream"), 1);
@@ -42729,15 +42751,15 @@ var init_esm5 = __esm({
42729
42751
 
42730
42752
  // node_modules/path-scurry/dist/esm/index.js
42731
42753
  var import_node_path, import_node_url, import_fs6, actualFS, import_promises, realpathSync2, defaultFS, fsFromOption, uncDriveRegexp, uncToDrive, eitherSep, UNKNOWN, IFIFO, IFCHR, IFDIR, IFBLK, IFREG, IFLNK, IFSOCK, IFMT, IFMT_UNKNOWN, READDIR_CALLED, LSTAT_CALLED, ENOTDIR, ENOENT, ENOREADLINK, ENOREALPATH, ENOCHILD, TYPEMASK, entToType, normalizeCache, normalize, normalizeNocaseCache, normalizeNocase, ResolveCache, ChildrenCache, setAsCwd, PathBase, PathWin32, PathPosix, PathScurryBase, PathScurryWin32, PathScurryPosix, PathScurryDarwin, Path, PathScurry;
42732
- var init_esm6 = __esm({
42754
+ var init_esm4 = __esm({
42733
42755
  "node_modules/path-scurry/dist/esm/index.js"() {
42734
- init_esm4();
42756
+ init_esm2();
42735
42757
  import_node_path = require("node:path");
42736
42758
  import_node_url = require("node:url");
42737
42759
  import_fs6 = require("fs");
42738
42760
  actualFS = __toESM(require("node:fs"), 1);
42739
42761
  import_promises = require("node:fs/promises");
42740
- init_esm5();
42762
+ init_esm3();
42741
42763
  realpathSync2 = import_fs6.realpathSync.native;
42742
42764
  defaultFS = {
42743
42765
  lstatSync: import_fs6.lstatSync,
@@ -44467,7 +44489,7 @@ var init_esm6 = __esm({
44467
44489
  var isPatternList, isGlobList, Pattern;
44468
44490
  var init_pattern = __esm({
44469
44491
  "node_modules/glob/dist/esm/pattern.js"() {
44470
- init_esm3();
44492
+ init_esm();
44471
44493
  isPatternList = (pl) => pl.length >= 1;
44472
44494
  isGlobList = (gl) => gl.length >= 1;
44473
44495
  Pattern = class _Pattern {
@@ -44638,7 +44660,7 @@ var init_pattern = __esm({
44638
44660
  var defaultPlatform2, Ignore;
44639
44661
  var init_ignore = __esm({
44640
44662
  "node_modules/glob/dist/esm/ignore.js"() {
44641
- init_esm3();
44663
+ init_esm();
44642
44664
  init_pattern();
44643
44665
  defaultPlatform2 = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
44644
44666
  Ignore = class {
@@ -44732,7 +44754,7 @@ var init_ignore = __esm({
44732
44754
  var HasWalkedCache, MatchRecord, SubWalks, Processor;
44733
44755
  var init_processor = __esm({
44734
44756
  "node_modules/glob/dist/esm/processor.js"() {
44735
- init_esm3();
44757
+ init_esm();
44736
44758
  HasWalkedCache = class _HasWalkedCache {
44737
44759
  store;
44738
44760
  constructor(store = /* @__PURE__ */ new Map()) {
@@ -44959,7 +44981,7 @@ var init_processor = __esm({
44959
44981
  var makeIgnore, GlobUtil, GlobWalker, GlobStream;
44960
44982
  var init_walker = __esm({
44961
44983
  "node_modules/glob/dist/esm/walker.js"() {
44962
- init_esm5();
44984
+ init_esm3();
44963
44985
  init_ignore();
44964
44986
  init_processor();
44965
44987
  makeIgnore = (ignore2, opts) => typeof ignore2 === "string" ? new Ignore([ignore2], opts) : Array.isArray(ignore2) ? new Ignore(ignore2, opts) : ignore2;
@@ -45294,9 +45316,9 @@ var init_walker = __esm({
45294
45316
  var import_node_url2, defaultPlatform3, Glob;
45295
45317
  var init_glob = __esm({
45296
45318
  "node_modules/glob/dist/esm/glob.js"() {
45297
- init_esm3();
45319
+ init_esm();
45298
45320
  import_node_url2 = require("node:url");
45299
- init_esm6();
45321
+ init_esm4();
45300
45322
  init_pattern();
45301
45323
  init_walker();
45302
45324
  defaultPlatform3 = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
@@ -45504,7 +45526,7 @@ var init_glob = __esm({
45504
45526
  var hasMagic;
45505
45527
  var init_has_magic = __esm({
45506
45528
  "node_modules/glob/dist/esm/has-magic.js"() {
45507
- init_esm3();
45529
+ init_esm();
45508
45530
  hasMagic = (pattern, options = {}) => {
45509
45531
  if (!Array.isArray(pattern)) {
45510
45532
  pattern = [pattern];
@@ -45538,12 +45560,12 @@ function globIterate(pattern, options = {}) {
45538
45560
  return new Glob(pattern, options).iterate();
45539
45561
  }
45540
45562
  var streamSync, stream, iterateSync, iterate, sync, glob;
45541
- var init_esm7 = __esm({
45563
+ var init_esm5 = __esm({
45542
45564
  "node_modules/glob/dist/esm/index.js"() {
45543
- init_esm3();
45565
+ init_esm();
45544
45566
  init_glob();
45545
45567
  init_has_magic();
45546
- init_esm3();
45568
+ init_esm();
45547
45569
  init_glob();
45548
45570
  init_has_magic();
45549
45571
  init_ignore();
@@ -45692,7 +45714,7 @@ var init_probeTool = __esm({
45692
45714
  import_fs7 = __toESM(require("fs"), 1);
45693
45715
  import_fs8 = require("fs");
45694
45716
  import_path8 = __toESM(require("path"), 1);
45695
- init_esm7();
45717
+ init_esm5();
45696
45718
  init_symlink_utils();
45697
45719
  toolCallEmitter = new import_events.EventEmitter();
45698
45720
  activeToolExecutions = /* @__PURE__ */ new Map();
@@ -51103,23 +51125,23 @@ var init_regexp_parser = __esm({
51103
51125
  return ASSERT_NEVER_REACH_HERE();
51104
51126
  }
51105
51127
  quantifier(isBacktracking = false) {
51106
- let range3 = void 0;
51128
+ let range2 = void 0;
51107
51129
  const begin = this.idx;
51108
51130
  switch (this.popChar()) {
51109
51131
  case "*":
51110
- range3 = {
51132
+ range2 = {
51111
51133
  atLeast: 0,
51112
51134
  atMost: Infinity
51113
51135
  };
51114
51136
  break;
51115
51137
  case "+":
51116
- range3 = {
51138
+ range2 = {
51117
51139
  atLeast: 1,
51118
51140
  atMost: Infinity
51119
51141
  };
51120
51142
  break;
51121
51143
  case "?":
51122
- range3 = {
51144
+ range2 = {
51123
51145
  atLeast: 0,
51124
51146
  atMost: 1
51125
51147
  };
@@ -51128,7 +51150,7 @@ var init_regexp_parser = __esm({
51128
51150
  const atLeast = this.integerIncludingZero();
51129
51151
  switch (this.popChar()) {
51130
51152
  case "}":
51131
- range3 = {
51153
+ range2 = {
51132
51154
  atLeast,
51133
51155
  atMost: atLeast
51134
51156
  };
@@ -51137,12 +51159,12 @@ var init_regexp_parser = __esm({
51137
51159
  let atMost;
51138
51160
  if (this.isDigit()) {
51139
51161
  atMost = this.integerIncludingZero();
51140
- range3 = {
51162
+ range2 = {
51141
51163
  atLeast,
51142
51164
  atMost
51143
51165
  };
51144
51166
  } else {
51145
- range3 = {
51167
+ range2 = {
51146
51168
  atLeast,
51147
51169
  atMost: Infinity
51148
51170
  };
@@ -51150,25 +51172,25 @@ var init_regexp_parser = __esm({
51150
51172
  this.consumeChar("}");
51151
51173
  break;
51152
51174
  }
51153
- if (isBacktracking === true && range3 === void 0) {
51175
+ if (isBacktracking === true && range2 === void 0) {
51154
51176
  return void 0;
51155
51177
  }
51156
- ASSERT_EXISTS(range3);
51178
+ ASSERT_EXISTS(range2);
51157
51179
  break;
51158
51180
  }
51159
- if (isBacktracking === true && range3 === void 0) {
51181
+ if (isBacktracking === true && range2 === void 0) {
51160
51182
  return void 0;
51161
51183
  }
51162
- if (ASSERT_EXISTS(range3)) {
51184
+ if (ASSERT_EXISTS(range2)) {
51163
51185
  if (this.peekChar(0) === "?") {
51164
51186
  this.consumeChar("?");
51165
- range3.greedy = false;
51187
+ range2.greedy = false;
51166
51188
  } else {
51167
- range3.greedy = true;
51189
+ range2.greedy = true;
51168
51190
  }
51169
- range3.type = "Quantifier";
51170
- range3.loc = this.loc(begin);
51171
- return range3;
51191
+ range2.type = "Quantifier";
51192
+ range2.loc = this.loc(begin);
51193
+ return range2;
51172
51194
  }
51173
51195
  }
51174
51196
  atom() {
@@ -51870,18 +51892,18 @@ function firstCharOptimizedIndices(ast, result, ignoreCase) {
51870
51892
  if (typeof code === "number") {
51871
51893
  addOptimizedIdxToResult(code, result, ignoreCase);
51872
51894
  } else {
51873
- const range3 = code;
51895
+ const range2 = code;
51874
51896
  if (ignoreCase === true) {
51875
- for (let rangeCode = range3.from; rangeCode <= range3.to; rangeCode++) {
51897
+ for (let rangeCode = range2.from; rangeCode <= range2.to; rangeCode++) {
51876
51898
  addOptimizedIdxToResult(rangeCode, result, ignoreCase);
51877
51899
  }
51878
51900
  } else {
51879
- for (let rangeCode = range3.from; rangeCode <= range3.to && rangeCode < minOptimizationVal; rangeCode++) {
51901
+ for (let rangeCode = range2.from; rangeCode <= range2.to && rangeCode < minOptimizationVal; rangeCode++) {
51880
51902
  addOptimizedIdxToResult(rangeCode, result, ignoreCase);
51881
51903
  }
51882
- if (range3.to >= minOptimizationVal) {
51883
- const minUnOptVal = range3.from >= minOptimizationVal ? range3.from : minOptimizationVal;
51884
- const maxUnOptVal = range3.to;
51904
+ if (range2.to >= minOptimizationVal) {
51905
+ const minUnOptVal = range2.from >= minOptimizationVal ? range2.from : minOptimizationVal;
51906
+ const maxUnOptVal = range2.to;
51885
51907
  const minOptIdx = charCodeToOptimizedIndex(minUnOptVal);
51886
51908
  const maxOptIdx = charCodeToOptimizedIndex(maxUnOptVal);
51887
51909
  for (let currOptIdx = minOptIdx; currOptIdx <= maxOptIdx; currOptIdx++) {
@@ -51942,8 +51964,8 @@ function findCode(setNode, targetCharCodes) {
51942
51964
  if (typeof codeOrRange === "number") {
51943
51965
  return includes_default(targetCharCodes, codeOrRange);
51944
51966
  } else {
51945
- const range3 = codeOrRange;
51946
- return find_default(targetCharCodes, (targetCode) => range3.from <= targetCode && targetCode <= range3.to) !== void 0;
51967
+ const range2 = codeOrRange;
51968
+ return find_default(targetCharCodes, (targetCode) => range2.from <= targetCode && targetCode <= range2.to) !== void 0;
51947
51969
  }
51948
51970
  });
51949
51971
  }
@@ -69848,8 +69870,8 @@ var require_createRange = __commonJS({
69848
69870
  var require_range = __commonJS({
69849
69871
  "node_modules/lodash/range.js"(exports2, module2) {
69850
69872
  var createRange = require_createRange();
69851
- var range3 = createRange();
69852
- module2.exports = range3;
69873
+ var range2 = createRange();
69874
+ module2.exports = range2;
69853
69875
  }
69854
69876
  });
69855
69877
 
@@ -84702,7 +84724,7 @@ function parseEnabledServers(config) {
84702
84724
  }
84703
84725
  return servers;
84704
84726
  }
84705
- var import_fs9, import_path9, import_os3, import_url4, __filename4, __dirname4, DEFAULT_TIMEOUT, MAX_TIMEOUT, DEFAULT_CONFIG;
84727
+ var import_fs9, import_path9, import_os3, import_url4, __filename4, __dirname5, DEFAULT_TIMEOUT, MAX_TIMEOUT, DEFAULT_CONFIG;
84706
84728
  var init_config = __esm({
84707
84729
  "src/agent/mcp/config.js"() {
84708
84730
  "use strict";
@@ -84711,7 +84733,7 @@ var init_config = __esm({
84711
84733
  import_os3 = require("os");
84712
84734
  import_url4 = require("url");
84713
84735
  __filename4 = (0, import_url4.fileURLToPath)("file:///");
84714
- __dirname4 = (0, import_path9.dirname)(__filename4);
84736
+ __dirname5 = (0, import_path9.dirname)(__filename4);
84715
84737
  DEFAULT_TIMEOUT = 3e4;
84716
84738
  MAX_TIMEOUT = (() => {
84717
84739
  if (process.env.MCP_MAX_TIMEOUT) {
@@ -84725,7 +84747,7 @@ var init_config = __esm({
84725
84747
  // Example probe server configuration
84726
84748
  "probe-local": {
84727
84749
  command: "node",
84728
- args: [(0, import_path9.join)(__dirname4, "../../../examples/chat/mcpServer.js")],
84750
+ args: [(0, import_path9.join)(__dirname5, "../../../examples/chat/mcpServer.js")],
84729
84751
  transport: "stdio",
84730
84752
  enabled: false
84731
84753
  },
@@ -90309,7 +90331,7 @@ var require_compose_scalar = __commonJS({
90309
90331
  var resolveBlockScalar = require_resolve_block_scalar();
90310
90332
  var resolveFlowScalar = require_resolve_flow_scalar();
90311
90333
  function composeScalar(ctx, token, tagToken, onError) {
90312
- const { value, type, comment, range: range3 } = token.type === "block-scalar" ? resolveBlockScalar.resolveBlockScalar(ctx, token, onError) : resolveFlowScalar.resolveFlowScalar(token, ctx.options.strict, onError);
90334
+ const { value, type, comment, range: range2 } = token.type === "block-scalar" ? resolveBlockScalar.resolveBlockScalar(ctx, token, onError) : resolveFlowScalar.resolveFlowScalar(token, ctx.options.strict, onError);
90313
90335
  const tagName = tagToken ? ctx.directives.tagName(tagToken.source, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg)) : null;
90314
90336
  let tag2;
90315
90337
  if (ctx.options.stringKeys && ctx.atKey) {
@@ -90329,7 +90351,7 @@ var require_compose_scalar = __commonJS({
90329
90351
  onError(tagToken ?? token, "TAG_RESOLVE_FAILED", msg);
90330
90352
  scalar = new Scalar.Scalar(value);
90331
90353
  }
90332
- scalar.range = range3;
90354
+ scalar.range = range2;
90333
90355
  scalar.source = value;
90334
90356
  if (type)
90335
90357
  scalar.type = type;
@@ -106583,7 +106605,7 @@ var init_executePlan = __esm({
106583
106605
  init_query();
106584
106606
  init_extract();
106585
106607
  init_delegate();
106586
- init_esm7();
106608
+ init_esm5();
106587
106609
  init_bash();
106588
106610
  RAW_OUTPUT_START = "<<<RAW_OUTPUT>>>";
106589
106611
  RAW_OUTPUT_END = "<<<END_RAW_OUTPUT>>>";