@sentry/craft 2.21.4 → 2.21.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/craft +793 -720
  2. package/package.json +1 -1
package/dist/craft CHANGED
@@ -7034,19 +7034,19 @@ var require_module_details_from_path = __commonJS({
7034
7034
  basedir += segments[i4] + sep5;
7035
7035
  }
7036
7036
  }
7037
- var path26 = "";
7037
+ var path27 = "";
7038
7038
  var lastSegmentIndex = segments.length - 1;
7039
7039
  for (var i22 = index + offset; i22 <= lastSegmentIndex; i22++) {
7040
7040
  if (i22 === lastSegmentIndex) {
7041
- path26 += segments[i22];
7041
+ path27 += segments[i22];
7042
7042
  } else {
7043
- path26 += segments[i22] + sep5;
7043
+ path27 += segments[i22] + sep5;
7044
7044
  }
7045
7045
  }
7046
7046
  return {
7047
7047
  name: name2,
7048
7048
  basedir,
7049
- path: path26
7049
+ path: path27
7050
7050
  };
7051
7051
  };
7052
7052
  }
@@ -7057,7 +7057,7 @@ var require_require_in_the_middle = __commonJS({
7057
7057
  "node_modules/.pnpm/require-in-the-middle@8.0.1/node_modules/require-in-the-middle/index.js"(exports2, module2) {
7058
7058
  "use strict";
7059
7059
  init_import_meta_url();
7060
- var path26 = require("path");
7060
+ var path27 = require("path");
7061
7061
  var Module = require("module");
7062
7062
  var debug3 = require_src3()("require-in-the-middle");
7063
7063
  var moduleDetailsFromPath = require_module_details_from_path();
@@ -7202,7 +7202,7 @@ var require_require_in_the_middle = __commonJS({
7202
7202
  }
7203
7203
  moduleName = filename;
7204
7204
  } else if (hasWhitelist === true && modules.includes(filename)) {
7205
- const parsedPath = path26.parse(filename);
7205
+ const parsedPath = path27.parse(filename);
7206
7206
  moduleName = parsedPath.name;
7207
7207
  basedir = parsedPath.dir;
7208
7208
  } else {
@@ -7240,7 +7240,7 @@ var require_require_in_the_middle = __commonJS({
7240
7240
  }
7241
7241
  if (res !== filename) {
7242
7242
  if (internals === true) {
7243
- moduleName = moduleName + path26.sep + path26.relative(basedir, filename);
7243
+ moduleName = moduleName + path27.sep + path27.relative(basedir, filename);
7244
7244
  debug3("preparing to process require of internal file: %s", moduleName);
7245
7245
  } else {
7246
7246
  debug3("ignoring require of non-main module file: %s", res);
@@ -7276,8 +7276,8 @@ var require_require_in_the_middle = __commonJS({
7276
7276
  }
7277
7277
  };
7278
7278
  function resolveModuleName(stat) {
7279
- const normalizedPath = path26.sep !== "/" ? stat.path.split(path26.sep).join("/") : stat.path;
7280
- return path26.posix.join(stat.name, normalizedPath).replace(normalize6, "");
7279
+ const normalizedPath = path27.sep !== "/" ? stat.path.split(path27.sep).join("/") : stat.path;
7280
+ return path27.posix.join(stat.name, normalizedPath).replace(normalize6, "");
7281
7281
  }
7282
7282
  }
7283
7283
  });
@@ -7364,7 +7364,7 @@ var require_RequireInTheMiddleSingleton = __commonJS({
7364
7364
  Object.defineProperty(exports2, "__esModule", { value: true });
7365
7365
  exports2.RequireInTheMiddleSingleton = void 0;
7366
7366
  var require_in_the_middle_1 = require_require_in_the_middle();
7367
- var path26 = require("path");
7367
+ var path27 = require("path");
7368
7368
  var ModuleNameTrie_1 = require_ModuleNameTrie();
7369
7369
  var isMocha = [
7370
7370
  "afterEach",
@@ -7428,7 +7428,7 @@ var require_RequireInTheMiddleSingleton = __commonJS({
7428
7428
  };
7429
7429
  exports2.RequireInTheMiddleSingleton = RequireInTheMiddleSingleton;
7430
7430
  function normalizePathSeparators(moduleNameOrPath) {
7431
- return path26.sep !== ModuleNameTrie_1.ModuleNameSeparator ? moduleNameOrPath.split(path26.sep).join(ModuleNameTrie_1.ModuleNameSeparator) : moduleNameOrPath;
7431
+ return path27.sep !== ModuleNameTrie_1.ModuleNameSeparator ? moduleNameOrPath.split(path27.sep).join(ModuleNameTrie_1.ModuleNameSeparator) : moduleNameOrPath;
7432
7432
  }
7433
7433
  }
7434
7434
  });
@@ -7490,7 +7490,7 @@ var require_register = __commonJS({
7490
7490
  var require_import_in_the_middle = __commonJS({
7491
7491
  "node_modules/.pnpm/import-in-the-middle@2.0.0/node_modules/import-in-the-middle/index.js"(exports2, module2) {
7492
7492
  init_import_meta_url();
7493
- var path26 = require("path");
7493
+ var path27 = require("path");
7494
7494
  var parse8 = require_module_details_from_path();
7495
7495
  var { fileURLToPath: fileURLToPath4 } = require("url");
7496
7496
  var { MessageChannel } = require("worker_threads");
@@ -7586,7 +7586,7 @@ var require_import_in_the_middle = __commonJS({
7586
7586
  if (moduleName === name2) {
7587
7587
  if (baseDir) {
7588
7588
  if (internals) {
7589
- name2 = name2 + path26.sep + path26.relative(baseDir, fileURLToPath4(filename));
7589
+ name2 = name2 + path27.sep + path27.relative(baseDir, fileURLToPath4(filename));
7590
7590
  } else {
7591
7591
  if (!getExperimentalPatchInternals() && !baseDir.endsWith(specifiers.get(filename))) continue;
7592
7592
  }
@@ -7664,7 +7664,7 @@ var require_instrumentation2 = __commonJS({
7664
7664
  init_import_meta_url();
7665
7665
  Object.defineProperty(exports2, "__esModule", { value: true });
7666
7666
  exports2.InstrumentationBase = void 0;
7667
- var path26 = require("path");
7667
+ var path27 = require("path");
7668
7668
  var util_1 = require("util");
7669
7669
  var semver_1 = require_semver();
7670
7670
  var shimmer_1 = require_shimmer();
@@ -7762,7 +7762,7 @@ var require_instrumentation2 = __commonJS({
7762
7762
  }
7763
7763
  _extractPackageVersion(baseDir) {
7764
7764
  try {
7765
- const json2 = (0, fs_1.readFileSync)(path26.join(baseDir, "package.json"), {
7765
+ const json2 = (0, fs_1.readFileSync)(path27.join(baseDir, "package.json"), {
7766
7766
  encoding: "utf8"
7767
7767
  });
7768
7768
  const version2 = JSON.parse(json2).version;
@@ -7804,7 +7804,7 @@ var require_instrumentation2 = __commonJS({
7804
7804
  return exports3;
7805
7805
  }
7806
7806
  const files = module3.files ?? [];
7807
- const normalizedName = path26.normalize(name2);
7807
+ const normalizedName = path27.normalize(name2);
7808
7808
  const supportedFileInstrumentations = files.filter((f4) => f4.name === normalizedName).filter((f4) => isSupported(f4.supportedVersions, version2, module3.includePrerelease));
7809
7809
  return supportedFileInstrumentations.reduce((patchedExports, file) => {
7810
7810
  file.moduleExports = patchedExports;
@@ -7850,8 +7850,8 @@ var require_instrumentation2 = __commonJS({
7850
7850
  this._warnOnPreloadedModules();
7851
7851
  for (const module3 of this._modules) {
7852
7852
  const hookFn = (exports3, name2, baseDir) => {
7853
- if (!baseDir && path26.isAbsolute(name2)) {
7854
- const parsedPath = path26.parse(name2);
7853
+ if (!baseDir && path27.isAbsolute(name2)) {
7854
+ const parsedPath = path27.parse(name2);
7855
7855
  name2 = parsedPath.name;
7856
7856
  baseDir = parsedPath.dir;
7857
7857
  }
@@ -7860,7 +7860,7 @@ var require_instrumentation2 = __commonJS({
7860
7860
  const onRequire = (exports3, name2, baseDir) => {
7861
7861
  return this._onRequire(module3, exports3, name2, baseDir);
7862
7862
  };
7863
- const hook2 = path26.isAbsolute(module3.name) ? new require_in_the_middle_1.Hook([module3.name], { internals: true }, onRequire) : this._requireInTheMiddleSingleton.register(module3.name, onRequire);
7863
+ const hook2 = path27.isAbsolute(module3.name) ? new require_in_the_middle_1.Hook([module3.name], { internals: true }, onRequire) : this._requireInTheMiddleSingleton.register(module3.name, onRequire);
7864
7864
  this._hooks.push(hook2);
7865
7865
  const esmHook = new import_in_the_middle_1.Hook([module3.name], { internals: false }, hookFn);
7866
7866
  this._hooks.push(esmHook);
@@ -8327,13 +8327,13 @@ var require_utils3 = __commonJS({
8327
8327
  const reqUrlObject = requestUrl || {};
8328
8328
  const protocol = reqUrlObject.protocol || fallbackProtocol;
8329
8329
  const port = (reqUrlObject.port || "").toString();
8330
- let path26 = reqUrlObject.path || "/";
8330
+ let path27 = reqUrlObject.path || "/";
8331
8331
  let host = reqUrlObject.host || reqUrlObject.hostname || headers.host || "localhost";
8332
8332
  if (host.indexOf(":") === -1 && port && port !== "80" && port !== "443") {
8333
8333
  host += `:${port}`;
8334
8334
  }
8335
- if (path26.includes("?")) {
8336
- const parsedUrl = url2.parse(path26);
8335
+ if (path27.includes("?")) {
8336
+ const parsedUrl = url2.parse(path27);
8337
8337
  const pathname = parsedUrl.pathname || "";
8338
8338
  const query = parsedUrl.query || "";
8339
8339
  const searchParams = new URLSearchParams(query);
@@ -8344,10 +8344,10 @@ var require_utils3 = __commonJS({
8344
8344
  }
8345
8345
  }
8346
8346
  const redactedQuery = searchParams.toString();
8347
- path26 = `${pathname}?${redactedQuery}`;
8347
+ path27 = `${pathname}?${redactedQuery}`;
8348
8348
  }
8349
8349
  const authPart = reqUrlObject.auth ? `${internal_types_2.STR_REDACTED}:${internal_types_2.STR_REDACTED}@` : "";
8350
- return `${protocol}//${authPart}${host}${path26}`;
8350
+ return `${protocol}//${authPart}${host}${path27}`;
8351
8351
  };
8352
8352
  exports2.getAbsoluteUrl = getAbsoluteUrl4;
8353
8353
  var parseResponseStatus = (kind, statusCode) => {
@@ -11478,8 +11478,8 @@ function isValidProtocol(protocol) {
11478
11478
  return protocol === "http" || protocol === "https";
11479
11479
  }
11480
11480
  function dsnToString(dsn, withPassword = false) {
11481
- const { host, path: path26, pass, port, projectId, protocol, publicKey } = dsn;
11482
- return `${protocol}://${publicKey}${withPassword && pass ? `:${pass}` : ""}@${host}${port ? `:${port}` : ""}/${path26 ? `${path26}/` : path26}${projectId}`;
11481
+ const { host, path: path27, pass, port, projectId, protocol, publicKey } = dsn;
11482
+ return `${protocol}://${publicKey}${withPassword && pass ? `:${pass}` : ""}@${host}${port ? `:${port}` : ""}/${path27 ? `${path27}/` : path27}${projectId}`;
11483
11483
  }
11484
11484
  function dsnFromString(str2) {
11485
11485
  const match3 = DSN_REGEX.exec(str2);
@@ -11490,11 +11490,11 @@ function dsnFromString(str2) {
11490
11490
  return void 0;
11491
11491
  }
11492
11492
  const [protocol, publicKey, pass = "", host = "", port = "", lastPath = ""] = match3.slice(1);
11493
- let path26 = "";
11493
+ let path27 = "";
11494
11494
  let projectId = lastPath;
11495
11495
  const split2 = projectId.split("/");
11496
11496
  if (split2.length > 1) {
11497
- path26 = split2.slice(0, -1).join("/");
11497
+ path27 = split2.slice(0, -1).join("/");
11498
11498
  projectId = split2.pop();
11499
11499
  }
11500
11500
  if (projectId) {
@@ -11503,7 +11503,7 @@ function dsnFromString(str2) {
11503
11503
  projectId = projectMatch[0];
11504
11504
  }
11505
11505
  }
11506
- return dsnFromComponents({ host, pass, path: path26, projectId, port, protocol, publicKey });
11506
+ return dsnFromComponents({ host, pass, path: path27, projectId, port, protocol, publicKey });
11507
11507
  }
11508
11508
  function dsnFromComponents(components) {
11509
11509
  return {
@@ -15668,9 +15668,9 @@ function stripUrlQueryAndFragment(urlPath) {
15668
15668
  return urlPath.split(/[?#]/, 1)[0];
15669
15669
  }
15670
15670
  function getSanitizedUrlString(url2) {
15671
- const { protocol, host, path: path26 } = url2;
15671
+ const { protocol, host, path: path27 } = url2;
15672
15672
  const filteredHost = host?.replace(/^.*@/, "[filtered]:[filtered]@").replace(/(:80)$/, "").replace(/(:443)$/, "") || "";
15673
- return `${protocol ? `${protocol}://` : ""}${filteredHost}${path26}`;
15673
+ return `${protocol ? `${protocol}://` : ""}${filteredHost}${path27}`;
15674
15674
  }
15675
15675
  var DEFAULT_BASE_URL;
15676
15676
  var init_url = __esm({
@@ -16484,8 +16484,8 @@ function splitPath(filename) {
16484
16484
  const parts = splitPathRe.exec(truncated);
16485
16485
  return parts ? parts.slice(1) : [];
16486
16486
  }
16487
- function dirname(path26) {
16488
- const result = splitPath(path26);
16487
+ function dirname(path27) {
16488
+ const result = splitPath(path27);
16489
16489
  const root = result[0] || "";
16490
16490
  let dir = result[1];
16491
16491
  if (!root && !dir) {
@@ -19879,11 +19879,11 @@ function isKnownPrefetchRequest(req) {
19879
19879
  return req.headers["next-router-prefetch"] === "1";
19880
19880
  }
19881
19881
  function isStaticAssetRequest(urlPath) {
19882
- const path26 = stripUrlQueryAndFragment(urlPath);
19883
- if (path26.match(/\.(ico|png|jpg|jpeg|gif|svg|css|js|woff|woff2|ttf|eot|webp|avif)$/)) {
19882
+ const path27 = stripUrlQueryAndFragment(urlPath);
19883
+ if (path27.match(/\.(ico|png|jpg|jpeg|gif|svg|css|js|woff|woff2|ttf|eot|webp|avif)$/)) {
19884
19884
  return true;
19885
19885
  }
19886
- if (path26.match(/^\/(robots\.txt|sitemap\.xml|manifest\.json|browserconfig\.xml)$/)) {
19886
+ if (path27.match(/^\/(robots\.txt|sitemap\.xml|manifest\.json|browserconfig\.xml)$/)) {
19887
19887
  return true;
19888
19888
  }
19889
19889
  return false;
@@ -20121,8 +20121,8 @@ function getRequestUrl(requestOptions) {
20121
20121
  const protocol = requestOptions.protocol || "";
20122
20122
  const hostname3 = requestOptions.hostname || requestOptions.host || "";
20123
20123
  const port = !requestOptions.port || requestOptions.port === 80 || requestOptions.port === 443 || /^(.*):(\d+)$/.test(hostname3) ? "" : `:${requestOptions.port}`;
20124
- const path26 = requestOptions.path ? requestOptions.path : "/";
20125
- return `${protocol}//${hostname3}${port}${path26}`;
20124
+ const path27 = requestOptions.path ? requestOptions.path : "/";
20125
+ return `${protocol}//${hostname3}${port}${path27}`;
20126
20126
  }
20127
20127
  var init_getRequestUrl = __esm({
20128
20128
  "node_modules/.pnpm/@sentry+node-core@10.27.0_@opentelemetry+api@1.9.0_@opentelemetry+context-async-hooks@2_62248f89c2d022bbab885c4a52bb757f/node_modules/@sentry/node-core/build/esm/utils/getRequestUrl.js"() {
@@ -20574,9 +20574,9 @@ var require_getMachineId_linux = __commonJS({
20574
20574
  var api_1 = (init_esm(), __toCommonJS(esm_exports));
20575
20575
  async function getMachineId() {
20576
20576
  const paths = ["/etc/machine-id", "/var/lib/dbus/machine-id"];
20577
- for (const path26 of paths) {
20577
+ for (const path27 of paths) {
20578
20578
  try {
20579
- const result = await fs_1.promises.readFile(path26, { encoding: "utf8" });
20579
+ const result = await fs_1.promises.readFile(path27, { encoding: "utf8" });
20580
20580
  return result.trim();
20581
20581
  } catch (e4) {
20582
20582
  api_1.diag.debug(`error reading machine id: ${e4}`);
@@ -23813,8 +23813,8 @@ function getRequestOptions(request3) {
23813
23813
  function getRequestUrl2(request3) {
23814
23814
  const hostname3 = request3.getHeader("host") || request3.host;
23815
23815
  const protocol = request3.protocol;
23816
- const path26 = request3.path;
23817
- return `${protocol}//${hostname3}${path26}`;
23816
+ const path27 = request3.path;
23817
+ return `${protocol}//${hostname3}${path27}`;
23818
23818
  }
23819
23819
  var init_outgoing_requests = __esm({
23820
23820
  "node_modules/.pnpm/@sentry+node-core@10.27.0_@opentelemetry+api@1.9.0_@opentelemetry+context-async-hooks@2_62248f89c2d022bbab885c4a52bb757f/node_modules/@sentry/node-core/build/esm/integrations/http/outgoing-requests.js"() {
@@ -24040,19 +24040,19 @@ function getBreadcrumbData2(request3) {
24040
24040
  return {};
24041
24041
  }
24042
24042
  }
24043
- function getAbsoluteUrl2(origin, path26 = "/") {
24043
+ function getAbsoluteUrl2(origin, path27 = "/") {
24044
24044
  try {
24045
- const url2 = new URL(path26, origin);
24045
+ const url2 = new URL(path27, origin);
24046
24046
  return url2.toString();
24047
24047
  } catch {
24048
24048
  const url2 = `${origin}`;
24049
- if (url2.endsWith("/") && path26.startsWith("/")) {
24050
- return `${url2}${path26.slice(1)}`;
24049
+ if (url2.endsWith("/") && path27.startsWith("/")) {
24050
+ return `${url2}${path27.slice(1)}`;
24051
24051
  }
24052
- if (!url2.endsWith("/") && !path26.startsWith("/")) {
24053
- return `${url2}/${path26.slice(1)}`;
24052
+ if (!url2.endsWith("/") && !path27.startsWith("/")) {
24053
+ return `${url2}/${path27.slice(1)}`;
24054
24054
  }
24055
- return `${url2}${path26}`;
24055
+ return `${url2}${path27}`;
24056
24056
  }
24057
24057
  }
24058
24058
  var import_core12, import_instrumentation3, diagch, SENTRY_TRACE_HEADER2, SENTRY_BAGGAGE_HEADER2, BAGGAGE_HEADER_REGEX, SentryNodeFetchInstrumentation;
@@ -24539,12 +24539,12 @@ function emplace(map3, key, contents) {
24539
24539
  }
24540
24540
  return value;
24541
24541
  }
24542
- function shouldSkipContextLinesForFile(path26) {
24543
- if (path26.startsWith("node:")) return true;
24544
- if (path26.endsWith(".min.js")) return true;
24545
- if (path26.endsWith(".min.cjs")) return true;
24546
- if (path26.endsWith(".min.mjs")) return true;
24547
- if (path26.startsWith("data:")) return true;
24542
+ function shouldSkipContextLinesForFile(path27) {
24543
+ if (path27.startsWith("node:")) return true;
24544
+ if (path27.endsWith(".min.js")) return true;
24545
+ if (path27.endsWith(".min.cjs")) return true;
24546
+ if (path27.endsWith(".min.mjs")) return true;
24547
+ if (path27.startsWith("data:")) return true;
24548
24548
  return false;
24549
24549
  }
24550
24550
  function shouldSkipContextLinesForFrame(frame) {
@@ -24592,9 +24592,9 @@ function makeLineReaderRanges(lines, linecontext) {
24592
24592
  }
24593
24593
  return out;
24594
24594
  }
24595
- function getContextLinesFromFile(path26, ranges, output) {
24595
+ function getContextLinesFromFile(path27, ranges, output) {
24596
24596
  return new Promise((resolve7, _reject) => {
24597
- const stream2 = (0, import_node_fs2.createReadStream)(path26);
24597
+ const stream2 = (0, import_node_fs2.createReadStream)(path27);
24598
24598
  const lineReaded = (0, import_node_readline.createInterface)({
24599
24599
  input: stream2
24600
24600
  });
@@ -24612,8 +24612,8 @@ function getContextLinesFromFile(path26, ranges, output) {
24612
24612
  let rangeStart = range3[0];
24613
24613
  let rangeEnd = range3[1];
24614
24614
  function onStreamError(e4) {
24615
- LRU_FILE_CONTENTS_FS_READ_FAILED.set(path26, 1);
24616
- DEBUG_BUILD2 && debug.error(`Failed to read file: ${path26}. Error: ${e4}`);
24615
+ LRU_FILE_CONTENTS_FS_READ_FAILED.set(path27, 1);
24616
+ DEBUG_BUILD2 && debug.error(`Failed to read file: ${path27}. Error: ${e4}`);
24617
24617
  lineReaded.close();
24618
24618
  lineReaded.removeAllListeners();
24619
24619
  destroyStreamAndResolve();
@@ -25304,8 +25304,8 @@ function collectRequireModules() {
25304
25304
  const paths = getRequireCachePaths();
25305
25305
  const infos = {};
25306
25306
  const seen = /* @__PURE__ */ new Set();
25307
- paths.forEach((path26) => {
25308
- let dir = path26;
25307
+ paths.forEach((path27) => {
25308
+ let dir = path27;
25309
25309
  const updir = () => {
25310
25310
  const orig = dir;
25311
25311
  dir = (0, import_node_path2.dirname)(orig);
@@ -26575,8 +26575,8 @@ var init_envToBool = __esm({
26575
26575
  });
26576
26576
 
26577
26577
  // node_modules/.pnpm/@sentry+node-core@10.27.0_@opentelemetry+api@1.9.0_@opentelemetry+context-async-hooks@2_62248f89c2d022bbab885c4a52bb757f/node_modules/@sentry/node-core/build/esm/utils/module.js
26578
- function normalizeWindowsPath(path26) {
26579
- return path26.replace(/^[A-Z]:/, "").replace(/\\/g, "/");
26578
+ function normalizeWindowsPath(path27) {
26579
+ return path27.replace(/^[A-Z]:/, "").replace(/\\/g, "/");
26580
26580
  }
26581
26581
  function createGetModuleFromFilename(basePath = process.argv[1] ? dirname(process.argv[1]) : process.cwd(), isWindows4 = import_node_path3.sep === "\\") {
26582
26582
  const normalizedBase = isWindows4 ? normalizeWindowsPath(basePath) : basePath;
@@ -27515,15 +27515,15 @@ var require_src9 = __commonJS({
27515
27515
  });
27516
27516
 
27517
27517
  // node_modules/.pnpm/@sentry+node@10.27.0/node_modules/@sentry/node/build/esm/integrations/node-fetch.js
27518
- function getAbsoluteUrl3(origin, path26 = "/") {
27518
+ function getAbsoluteUrl3(origin, path27 = "/") {
27519
27519
  const url2 = `${origin}`;
27520
- if (url2.endsWith("/") && path26.startsWith("/")) {
27521
- return `${url2}${path26.slice(1)}`;
27520
+ if (url2.endsWith("/") && path27.startsWith("/")) {
27521
+ return `${url2}${path27.slice(1)}`;
27522
27522
  }
27523
- if (!url2.endsWith("/") && !path26.startsWith("/")) {
27524
- return `${url2}/${path26.slice(1)}`;
27523
+ if (!url2.endsWith("/") && !path27.startsWith("/")) {
27524
+ return `${url2}/${path27.slice(1)}`;
27525
27525
  }
27526
- return `${url2}${path26}`;
27526
+ return `${url2}${path27}`;
27527
27527
  }
27528
27528
  function _shouldInstrumentSpans(options, clientOptions = {}) {
27529
27529
  return typeof options.spans === "boolean" ? options.spans : !clientOptions.skipOpenTelemetrySetup && hasSpansEnabled(clientOptions);
@@ -27651,15 +27651,15 @@ var require_utils6 = __commonJS({
27651
27651
  return { isLayerPathStored: true };
27652
27652
  };
27653
27653
  exports2.storeLayerPath = storeLayerPath;
27654
- var getRouterPath = (path26, layer) => {
27654
+ var getRouterPath = (path27, layer) => {
27655
27655
  const stackLayer = layer.handle?.stack?.[0];
27656
27656
  if (stackLayer?.route?.path) {
27657
- return `${path26}${stackLayer.route.path}`;
27657
+ return `${path27}${stackLayer.route.path}`;
27658
27658
  }
27659
27659
  if (stackLayer?.handle?.stack) {
27660
- return (0, exports2.getRouterPath)(path26, stackLayer);
27660
+ return (0, exports2.getRouterPath)(path27, stackLayer);
27661
27661
  }
27662
- return path26;
27662
+ return path27;
27663
27663
  };
27664
27664
  exports2.getRouterPath = getRouterPath;
27665
27665
  var getLayerMetadata = (route, layer, layerPath) => {
@@ -27741,7 +27741,7 @@ var require_utils6 = __commonJS({
27741
27741
  };
27742
27742
  function getConstructedRoute(req) {
27743
27743
  const layersStore = Array.isArray(req[internal_types_1._LAYERS_STORE_PROPERTY]) ? req[internal_types_1._LAYERS_STORE_PROPERTY] : [];
27744
- const meaningfulPaths = layersStore.filter((path26) => path26 !== "/" && path26 !== "/*");
27744
+ const meaningfulPaths = layersStore.filter((path27) => path27 !== "/" && path27 !== "/*");
27745
27745
  if (meaningfulPaths.length === 1 && meaningfulPaths[0] === "*") {
27746
27746
  return "*";
27747
27747
  }
@@ -27753,7 +27753,7 @@ var require_utils6 = __commonJS({
27753
27753
  if (layersStore.length === 0) {
27754
27754
  return void 0;
27755
27755
  }
27756
- if (layersStore.every((path26) => path26 === "/")) {
27756
+ if (layersStore.every((path27) => path27 === "/")) {
27757
27757
  return req.originalUrl === "/" ? "/" : void 0;
27758
27758
  }
27759
27759
  const constructedRoute = getConstructedRoute(req);
@@ -30648,23 +30648,23 @@ var require_utils7 = __commonJS({
30648
30648
  span.setAttribute(AttributeNames_1.AttributeNames.SOURCE, source);
30649
30649
  }
30650
30650
  exports2.addSpanSource = addSpanSource;
30651
- function createFieldIfNotExists(tracer, getConfig, contextValue, info, path26) {
30652
- let field = getField(contextValue, path26);
30651
+ function createFieldIfNotExists(tracer, getConfig, contextValue, info, path27) {
30652
+ let field = getField(contextValue, path27);
30653
30653
  if (field) {
30654
30654
  return { field, spanAdded: false };
30655
30655
  }
30656
30656
  const config3 = getConfig();
30657
- const parentSpan = config3.flatResolveSpans ? getRootSpan2(contextValue) : getParentFieldSpan(contextValue, path26);
30657
+ const parentSpan = config3.flatResolveSpans ? getRootSpan2(contextValue) : getParentFieldSpan(contextValue, path27);
30658
30658
  field = {
30659
- span: createResolverSpan(tracer, getConfig, contextValue, info, path26, parentSpan)
30659
+ span: createResolverSpan(tracer, getConfig, contextValue, info, path27, parentSpan)
30660
30660
  };
30661
- addField(contextValue, path26, field);
30661
+ addField(contextValue, path27, field);
30662
30662
  return { field, spanAdded: true };
30663
30663
  }
30664
- function createResolverSpan(tracer, getConfig, contextValue, info, path26, parentSpan) {
30664
+ function createResolverSpan(tracer, getConfig, contextValue, info, path27, parentSpan) {
30665
30665
  const attributes = {
30666
30666
  [AttributeNames_1.AttributeNames.FIELD_NAME]: info.fieldName,
30667
- [AttributeNames_1.AttributeNames.FIELD_PATH]: path26.join("."),
30667
+ [AttributeNames_1.AttributeNames.FIELD_PATH]: path27.join("."),
30668
30668
  [AttributeNames_1.AttributeNames.FIELD_TYPE]: info.returnType.toString()
30669
30669
  };
30670
30670
  const span = tracer.startSpan(`${enum_1.SpanNames.RESOLVE} ${attributes[AttributeNames_1.AttributeNames.FIELD_PATH]}`, {
@@ -30695,15 +30695,15 @@ var require_utils7 = __commonJS({
30695
30695
  }
30696
30696
  }
30697
30697
  exports2.getOperation = getOperation;
30698
- function addField(contextValue, path26, field) {
30699
- return contextValue[symbols_1.OTEL_GRAPHQL_DATA_SYMBOL].fields[path26.join(".")] = field;
30698
+ function addField(contextValue, path27, field) {
30699
+ return contextValue[symbols_1.OTEL_GRAPHQL_DATA_SYMBOL].fields[path27.join(".")] = field;
30700
30700
  }
30701
- function getField(contextValue, path26) {
30702
- return contextValue[symbols_1.OTEL_GRAPHQL_DATA_SYMBOL].fields[path26.join(".")];
30701
+ function getField(contextValue, path27) {
30702
+ return contextValue[symbols_1.OTEL_GRAPHQL_DATA_SYMBOL].fields[path27.join(".")];
30703
30703
  }
30704
- function getParentFieldSpan(contextValue, path26) {
30705
- for (let i4 = path26.length - 1; i4 > 0; i4--) {
30706
- const field = getField(contextValue, path26.slice(0, i4));
30704
+ function getParentFieldSpan(contextValue, path27) {
30705
+ for (let i4 = path27.length - 1; i4 > 0; i4--) {
30706
+ const field = getField(contextValue, path27.slice(0, i4));
30707
30707
  if (field) {
30708
30708
  return field.span;
30709
30709
  }
@@ -30713,9 +30713,9 @@ var require_utils7 = __commonJS({
30713
30713
  function getRootSpan2(contextValue) {
30714
30714
  return contextValue[symbols_1.OTEL_GRAPHQL_DATA_SYMBOL].span;
30715
30715
  }
30716
- function pathToArray(mergeItems, path26) {
30716
+ function pathToArray(mergeItems, path27) {
30717
30717
  const flattened = [];
30718
- let curr = path26;
30718
+ let curr = path27;
30719
30719
  while (curr) {
30720
30720
  let key = curr.key;
30721
30721
  if (mergeItems && typeof key === "number") {
@@ -30868,14 +30868,14 @@ var require_utils7 = __commonJS({
30868
30868
  if (!contextValue[symbols_1.OTEL_GRAPHQL_DATA_SYMBOL]) {
30869
30869
  return fieldResolver.call(this, source, args, contextValue, info);
30870
30870
  }
30871
- const path26 = pathToArray(config3.mergeItems, info && info.path);
30872
- const depth = path26.filter((item) => typeof item === "string").length;
30871
+ const path27 = pathToArray(config3.mergeItems, info && info.path);
30872
+ const depth = path27.filter((item) => typeof item === "string").length;
30873
30873
  let span;
30874
30874
  let shouldEndSpan = false;
30875
30875
  if (config3.depth >= 0 && config3.depth < depth) {
30876
- span = getParentFieldSpan(contextValue, path26);
30876
+ span = getParentFieldSpan(contextValue, path27);
30877
30877
  } else {
30878
- const { field, spanAdded } = createFieldIfNotExists(tracer, getConfig, contextValue, info, path26);
30878
+ const { field, spanAdded } = createFieldIfNotExists(tracer, getConfig, contextValue, info, path27);
30879
30879
  span = field.span;
30880
30880
  shouldEndSpan = spanAdded;
30881
30881
  }
@@ -35792,10 +35792,10 @@ var init_postgresjs = __esm({
35792
35792
  */
35793
35793
  init() {
35794
35794
  const instrumentationModule = new import_instrumentation8.InstrumentationNodeModuleDefinition("postgres", SUPPORTED_VERSIONS2);
35795
- ["src", "cf/src", "cjs/src"].forEach((path26) => {
35795
+ ["src", "cf/src", "cjs/src"].forEach((path27) => {
35796
35796
  instrumentationModule.files.push(
35797
35797
  new import_instrumentation8.InstrumentationNodeModuleFile(
35798
- `postgres/${path26}/connection.js`,
35798
+ `postgres/${path27}/connection.js`,
35799
35799
  ["*"],
35800
35800
  this._patchConnection.bind(this),
35801
35801
  this._unwrap.bind(this)
@@ -35803,7 +35803,7 @@ var init_postgresjs = __esm({
35803
35803
  );
35804
35804
  instrumentationModule.files.push(
35805
35805
  new import_instrumentation8.InstrumentationNodeModuleFile(
35806
- `postgres/${path26}/query.js`,
35806
+ `postgres/${path27}/query.js`,
35807
35807
  SUPPORTED_VERSIONS2,
35808
35808
  this._patchQuery.bind(this),
35809
35809
  this._unwrap.bind(this)
@@ -36851,13 +36851,13 @@ var init_instrumentation2 = __esm({
36851
36851
  return function(original) {
36852
36852
  return function wrappedHandler(...args) {
36853
36853
  if (typeof args[0] === "string") {
36854
- const path26 = args[0];
36854
+ const path27 = args[0];
36855
36855
  if (args.length === 1) {
36856
- return original.apply(this, [path26]);
36856
+ return original.apply(this, [path27]);
36857
36857
  }
36858
36858
  const handlers2 = args.slice(1);
36859
36859
  return original.apply(this, [
36860
- path26,
36860
+ path27,
36861
36861
  ...handlers2.map((handler10) => instrumentation._wrapHandler(handler10))
36862
36862
  ]);
36863
36863
  }
@@ -36891,13 +36891,13 @@ var init_instrumentation2 = __esm({
36891
36891
  return function(original) {
36892
36892
  return function wrappedHandler(...args) {
36893
36893
  if (typeof args[0] === "string") {
36894
- const path26 = args[0];
36894
+ const path27 = args[0];
36895
36895
  if (args.length === 1) {
36896
- return original.apply(this, [path26]);
36896
+ return original.apply(this, [path27]);
36897
36897
  }
36898
36898
  const handlers2 = args.slice(1);
36899
36899
  return original.apply(this, [
36900
- path26,
36900
+ path27,
36901
36901
  ...handlers2.map((handler10) => instrumentation._wrapHandler(handler10))
36902
36902
  ]);
36903
36903
  }
@@ -36917,8 +36917,8 @@ var init_instrumentation2 = __esm({
36917
36917
  if (!instrumentation.isEnabled()) {
36918
36918
  return handler10.apply(this, [c4, next]);
36919
36919
  }
36920
- const path26 = c4.req.path;
36921
- const span = instrumentation.tracer.startSpan(path26);
36920
+ const path27 = c4.req.path;
36921
+ const span = instrumentation.tracer.startSpan(path27);
36922
36922
  return context.with(trace.setSpan(context.active(), span), () => {
36923
36923
  return instrumentation._safeExecute(
36924
36924
  () => {
@@ -36928,7 +36928,7 @@ var init_instrumentation2 = __esm({
36928
36928
  const type2 = instrumentation._determineHandlerType(result2);
36929
36929
  span.setAttributes({
36930
36930
  [AttributeNames2.HONO_TYPE]: type2,
36931
- [AttributeNames2.HONO_NAME]: type2 === HonoTypes.REQUEST_HANDLER ? path26 : handler10.name || "anonymous"
36931
+ [AttributeNames2.HONO_NAME]: type2 === HonoTypes.REQUEST_HANDLER ? path27 : handler10.name || "anonymous"
36932
36932
  });
36933
36933
  instrumentation.getConfig().responseHook?.(span);
36934
36934
  return result2;
@@ -36937,7 +36937,7 @@ var init_instrumentation2 = __esm({
36937
36937
  const type2 = instrumentation._determineHandlerType(result);
36938
36938
  span.setAttributes({
36939
36939
  [AttributeNames2.HONO_TYPE]: type2,
36940
- [AttributeNames2.HONO_NAME]: type2 === HonoTypes.REQUEST_HANDLER ? path26 : handler10.name || "anonymous"
36940
+ [AttributeNames2.HONO_NAME]: type2 === HonoTypes.REQUEST_HANDLER ? path27 : handler10.name || "anonymous"
36941
36941
  });
36942
36942
  instrumentation.getConfig().responseHook?.(span);
36943
36943
  return result;
@@ -37209,11 +37209,11 @@ var require_instrumentation15 = __commonJS({
37209
37209
  const router = dispatchLayer.router;
37210
37210
  const routesStack = router?.stack ?? [];
37211
37211
  for (const pathLayer of routesStack) {
37212
- const path26 = pathLayer.path;
37212
+ const path27 = pathLayer.path;
37213
37213
  const pathStack = pathLayer.stack;
37214
37214
  for (let j5 = 0; j5 < pathStack.length; j5++) {
37215
37215
  const routedMiddleware = pathStack[j5];
37216
- pathStack[j5] = this._patchLayer(routedMiddleware, true, path26);
37216
+ pathStack[j5] = this._patchLayer(routedMiddleware, true, path27);
37217
37217
  }
37218
37218
  }
37219
37219
  return dispatchLayer;
@@ -43677,10 +43677,10 @@ var require_src29 = __commonJS({
43677
43677
  var fs_1 = require("fs");
43678
43678
  var debug_1 = __importDefault2(require_src3());
43679
43679
  var log3 = debug_1.default("@kwsites/file-exists");
43680
- function check(path26, isFile2, isDirectory) {
43681
- log3(`checking %s`, path26);
43680
+ function check(path27, isFile2, isDirectory) {
43681
+ log3(`checking %s`, path27);
43682
43682
  try {
43683
- const stat = fs_1.statSync(path26);
43683
+ const stat = fs_1.statSync(path27);
43684
43684
  if (stat.isFile() && isFile2) {
43685
43685
  log3(`[OK] path represents a file`);
43686
43686
  return true;
@@ -43700,8 +43700,8 @@ var require_src29 = __commonJS({
43700
43700
  throw e4;
43701
43701
  }
43702
43702
  }
43703
- function exists2(path26, type2 = exports2.READABLE) {
43704
- return check(path26, (type2 & exports2.FILE) > 0, (type2 & exports2.FOLDER) > 0);
43703
+ function exists2(path27, type2 = exports2.READABLE) {
43704
+ return check(path27, (type2 & exports2.FILE) > 0, (type2 & exports2.FOLDER) > 0);
43705
43705
  }
43706
43706
  exports2.exists = exists2;
43707
43707
  exports2.FILE = 1;
@@ -43772,8 +43772,8 @@ function pathspec(...paths) {
43772
43772
  cache.set(key, paths);
43773
43773
  return key;
43774
43774
  }
43775
- function isPathSpec(path26) {
43776
- return path26 instanceof String && cache.has(path26);
43775
+ function isPathSpec(path27) {
43776
+ return path27 instanceof String && cache.has(path27);
43777
43777
  }
43778
43778
  function toPaths(pathSpec) {
43779
43779
  return cache.get(pathSpec) || [];
@@ -43817,8 +43817,8 @@ function toLinesWithContent(input = "", trimmed2 = true, separator = "\n") {
43817
43817
  function forEachLineWithContent(input, callback) {
43818
43818
  return toLinesWithContent(input, true).map((line) => callback(line));
43819
43819
  }
43820
- function folderExists(path26) {
43821
- return (0, import_file_exists.exists)(path26, import_file_exists.FOLDER);
43820
+ function folderExists(path27) {
43821
+ return (0, import_file_exists.exists)(path27, import_file_exists.FOLDER);
43822
43822
  }
43823
43823
  function append(target, item) {
43824
43824
  if (Array.isArray(target)) {
@@ -44009,8 +44009,8 @@ function checkIsRepoRootTask() {
44009
44009
  commands: commands4,
44010
44010
  format: "utf-8",
44011
44011
  onError,
44012
- parser(path26) {
44013
- return /^\.(git)?$/.test(path26.trim());
44012
+ parser(path27) {
44013
+ return /^\.(git)?$/.test(path27.trim());
44014
44014
  }
44015
44015
  };
44016
44016
  }
@@ -44266,11 +44266,11 @@ function parseGrep(grep) {
44266
44266
  const paths = /* @__PURE__ */ new Set();
44267
44267
  const results = {};
44268
44268
  forEachLineWithContent(grep, (input) => {
44269
- const [path26, line, preview] = input.split(NULL);
44270
- paths.add(path26);
44271
- (results[path26] = results[path26] || []).push({
44269
+ const [path27, line, preview] = input.split(NULL);
44270
+ paths.add(path27);
44271
+ (results[path27] = results[path27] || []).push({
44272
44272
  line: asNumber(line),
44273
- path: path26,
44273
+ path: path27,
44274
44274
  preview
44275
44275
  });
44276
44276
  });
@@ -44567,14 +44567,14 @@ function hashObjectTask(filePath, write) {
44567
44567
  }
44568
44568
  return straightThroughStringTask(commands4, true);
44569
44569
  }
44570
- function parseInit(bare, path26, text) {
44570
+ function parseInit(bare, path27, text) {
44571
44571
  const response = String(text).trim();
44572
44572
  let result;
44573
44573
  if (result = initResponseRegex.exec(response)) {
44574
- return new InitSummary(bare, path26, false, result[1]);
44574
+ return new InitSummary(bare, path27, false, result[1]);
44575
44575
  }
44576
44576
  if (result = reInitResponseRegex.exec(response)) {
44577
- return new InitSummary(bare, path26, true, result[1]);
44577
+ return new InitSummary(bare, path27, true, result[1]);
44578
44578
  }
44579
44579
  let gitDir = "";
44580
44580
  const tokens = response.split(" ");
@@ -44585,12 +44585,12 @@ function parseInit(bare, path26, text) {
44585
44585
  break;
44586
44586
  }
44587
44587
  }
44588
- return new InitSummary(bare, path26, /^re/i.test(response), gitDir);
44588
+ return new InitSummary(bare, path27, /^re/i.test(response), gitDir);
44589
44589
  }
44590
44590
  function hasBareCommand(command10) {
44591
44591
  return command10.includes(bareCommand);
44592
44592
  }
44593
- function initTask(bare = false, path26, customArgs) {
44593
+ function initTask(bare = false, path27, customArgs) {
44594
44594
  const commands4 = ["init", ...customArgs];
44595
44595
  if (bare && !hasBareCommand(commands4)) {
44596
44596
  commands4.splice(1, 0, bareCommand);
@@ -44599,7 +44599,7 @@ function initTask(bare = false, path26, customArgs) {
44599
44599
  commands: commands4,
44600
44600
  format: "utf-8",
44601
44601
  parser(text) {
44602
- return parseInit(commands4.includes("--bare"), path26, text);
44602
+ return parseInit(commands4.includes("--bare"), path27, text);
44603
44603
  }
44604
44604
  };
44605
44605
  }
@@ -44878,14 +44878,14 @@ function splitLine(result, lineStr) {
44878
44878
  default:
44879
44879
  return;
44880
44880
  }
44881
- function data2(index, workingDir, path26) {
44881
+ function data2(index, workingDir, path27) {
44882
44882
  const raw2 = `${index}${workingDir}`;
44883
44883
  const handler10 = parsers6.get(raw2);
44884
44884
  if (handler10) {
44885
- handler10(result, path26);
44885
+ handler10(result, path27);
44886
44886
  }
44887
44887
  if (raw2 !== "##" && raw2 !== "!!") {
44888
- result.files.push(new FileStatusSummary(path26, index, workingDir));
44888
+ result.files.push(new FileStatusSummary(path27, index, workingDir));
44889
44889
  }
44890
44890
  }
44891
44891
  }
@@ -45050,8 +45050,8 @@ function deleteBranchTask(branch, forceDelete = false) {
45050
45050
  return task;
45051
45051
  }
45052
45052
  function toPath(input) {
45053
- const path26 = input.trim().replace(/^["']|["']$/g, "");
45054
- return path26 && (0, import_node_path4.normalize)(path26);
45053
+ const path27 = input.trim().replace(/^["']|["']$/g, "");
45054
+ return path27 && (0, import_node_path4.normalize)(path27);
45055
45055
  }
45056
45056
  function checkIgnoreTask(paths) {
45057
45057
  return {
@@ -45207,8 +45207,8 @@ function stashListTask(opt = {}, customArgs) {
45207
45207
  parser: parser42
45208
45208
  };
45209
45209
  }
45210
- function addSubModuleTask(repo, path26) {
45211
- return subModuleTask(["add", repo, path26]);
45210
+ function addSubModuleTask(repo, path27) {
45211
+ return subModuleTask(["add", repo, path27]);
45212
45212
  }
45213
45213
  function initSubModuleTask(customArgs) {
45214
45214
  return subModuleTask(["init", ...customArgs]);
@@ -46519,9 +46519,9 @@ var init_esm8 = __esm({
46519
46519
  "src/lib/responses/InitSummary.ts"() {
46520
46520
  "use strict";
46521
46521
  InitSummary = class {
46522
- constructor(bare, path26, existing, gitDir) {
46522
+ constructor(bare, path27, existing, gitDir) {
46523
46523
  this.bare = bare;
46524
- this.path = path26;
46524
+ this.path = path27;
46525
46525
  this.existing = existing;
46526
46526
  this.gitDir = gitDir;
46527
46527
  }
@@ -47055,12 +47055,12 @@ var init_esm8 = __esm({
47055
47055
  "use strict";
47056
47056
  fromPathRegex = /^(.+)\0(.+)$/;
47057
47057
  FileStatusSummary = class {
47058
- constructor(path26, index, working_dir) {
47059
- this.path = path26;
47058
+ constructor(path27, index, working_dir) {
47059
+ this.path = path27;
47060
47060
  this.index = index;
47061
47061
  this.working_dir = working_dir;
47062
47062
  if (index === "R" || working_dir === "R") {
47063
- const detail = fromPathRegex.exec(path26) || [null, path26, path26];
47063
+ const detail = fromPathRegex.exec(path27) || [null, path27, path27];
47064
47064
  this.from = detail[2] || "";
47065
47065
  this.path = detail[1] || "";
47066
47066
  }
@@ -47308,9 +47308,9 @@ var init_esm8 = __esm({
47308
47308
  next
47309
47309
  );
47310
47310
  }
47311
- hashObject(path26, write) {
47311
+ hashObject(path27, write) {
47312
47312
  return this._runTask(
47313
- hashObjectTask(path26, write === true),
47313
+ hashObjectTask(path27, write === true),
47314
47314
  trailingFunctionArgument(arguments)
47315
47315
  );
47316
47316
  }
@@ -47974,8 +47974,8 @@ var init_esm8 = __esm({
47974
47974
  }
47975
47975
  return this._runTask(straightThroughStringTask2(command10, this._trimmed), next);
47976
47976
  };
47977
- Git2.prototype.submoduleAdd = function(repo, path26, then) {
47978
- return this._runTask(addSubModuleTask2(repo, path26), trailingFunctionArgument2(arguments));
47977
+ Git2.prototype.submoduleAdd = function(repo, path27, then) {
47978
+ return this._runTask(addSubModuleTask2(repo, path27), trailingFunctionArgument2(arguments));
47979
47979
  };
47980
47980
  Git2.prototype.submoduleUpdate = function(args, then) {
47981
47981
  return this._runTask(
@@ -55102,13 +55102,43 @@ ${delimiter2}
55102
55102
  `);
55103
55103
  }
55104
55104
  }
55105
- var import_fs, import_prompts, FALSY_ENV_VALUES2, GLOBAL_FLAGS;
55105
+ function writeGitHubActionsFile(name2, content) {
55106
+ const runnerTemp = process.env.RUNNER_TEMP;
55107
+ if (!runnerTemp) {
55108
+ return void 0;
55109
+ }
55110
+ const dir = import_path2.default.join(runnerTemp, "craft");
55111
+ (0, import_fs.mkdirSync)(dir, { recursive: true });
55112
+ const filePath = import_path2.default.join(dir, `${name2}.md`);
55113
+ (0, import_fs.writeFileSync)(filePath, content, "utf-8");
55114
+ setGitHubActionsOutput(`${name2}_file`, filePath);
55115
+ return filePath;
55116
+ }
55117
+ function truncateForOutput(value, changelogUrl) {
55118
+ const notice = changelogUrl ? `
55119
+
55120
+ ---
55121
+ *Changelog truncated. [View full changelog](${changelogUrl}).*` : "\n\n---\n*Changelog truncated.*";
55122
+ const noticeBytes = Buffer.byteLength(notice, "utf-8");
55123
+ const contentBudget = MAX_STEP_OUTPUT_BYTES - noticeBytes;
55124
+ if (Buffer.byteLength(value, "utf-8") <= MAX_STEP_OUTPUT_BYTES) {
55125
+ return value;
55126
+ }
55127
+ let truncated = Buffer.from(value, "utf-8").subarray(0, contentBudget).toString("utf-8");
55128
+ if (truncated.length > 0 && truncated[truncated.length - 1] === "\uFFFD") {
55129
+ truncated = truncated.slice(0, -1);
55130
+ }
55131
+ return truncated + notice;
55132
+ }
55133
+ var import_fs, import_path2, import_prompts, MAX_STEP_OUTPUT_BYTES, FALSY_ENV_VALUES2, GLOBAL_FLAGS;
55106
55134
  var init_helpers = __esm({
55107
55135
  "src/utils/helpers.ts"() {
55108
55136
  init_import_meta_url();
55109
55137
  import_fs = require("fs");
55138
+ import_path2 = __toESM(require("path"));
55110
55139
  import_prompts = __toESM(require_prompts3());
55111
55140
  init_logger2();
55141
+ MAX_STEP_OUTPUT_BYTES = 64 * 1024;
55112
55142
  FALSY_ENV_VALUES2 = /* @__PURE__ */ new Set(["", "undefined", "null", "0", "false", "no"]);
55113
55143
  GLOBAL_FLAGS = {
55114
55144
  "dry-run": false,
@@ -55207,8 +55237,8 @@ function unregisterCleanupHandlers() {
55207
55237
  }
55208
55238
  function symlinkDependencyDirs(originalCwd, worktreePath) {
55209
55239
  for (const dir of SYMLINK_DIRS) {
55210
- const srcPath = (0, import_path2.join)(originalCwd, dir);
55211
- const destPath = (0, import_path2.join)(worktreePath, dir);
55240
+ const srcPath = (0, import_path3.join)(originalCwd, dir);
55241
+ const destPath = (0, import_path3.join)(worktreePath, dir);
55212
55242
  if ((0, import_fs2.existsSync)(srcPath) && (0, import_fs2.lstatSync)(srcPath).isDirectory()) {
55213
55243
  try {
55214
55244
  (0, import_fs2.symlinkSync)(srcPath, destPath);
@@ -55240,7 +55270,7 @@ async function createDryRunIsolation(git, rev) {
55240
55270
  const originalHead = (await git.revparse(["HEAD"])).trim();
55241
55271
  const revision = rev || originalHead;
55242
55272
  const randomSuffix = (0, import_crypto.randomBytes)(8).toString("hex");
55243
- const worktreePath = (0, import_path2.join)((0, import_os.tmpdir)(), `craft-dry-run-${randomSuffix}`);
55273
+ const worktreePath = (0, import_path3.join)((0, import_os.tmpdir)(), `craft-dry-run-${randomSuffix}`);
55244
55274
  logger.info(`[dry-run] Creating temporary worktree at ${worktreePath}`);
55245
55275
  const rawGit = esm_default2(originalCwd);
55246
55276
  await rawGit.raw(["worktree", "add", "--detach", worktreePath, revision]);
@@ -55370,14 +55400,14 @@ function isGitHubMutatingMethod(methodName) {
55370
55400
  (prefix) => methodName.toLowerCase().startsWith(prefix.toLowerCase())
55371
55401
  );
55372
55402
  }
55373
- function createGitHubNamespaceProxy(target, path26 = []) {
55403
+ function createGitHubNamespaceProxy(target, path27 = []) {
55374
55404
  return new Proxy(target, {
55375
55405
  get(obj, prop) {
55376
55406
  const value = obj[prop];
55377
55407
  if (value === void 0 || typeof prop === "symbol") {
55378
55408
  return value;
55379
55409
  }
55380
- const currentPath = [...path26, prop];
55410
+ const currentPath = [...path27, prop];
55381
55411
  if (typeof value === "function") {
55382
55412
  return function(...args) {
55383
55413
  if (isDryRun() && isGitHubMutatingMethod(prop)) {
@@ -55432,14 +55462,14 @@ async function safeExec(action, description9) {
55432
55462
  }
55433
55463
  return action();
55434
55464
  }
55435
- var fs, fsPromises, import_os, import_path2, import_crypto, import_fs2, import_promises, _inWorktreeMode, _activeWorktreeCleanup, _sigintHandler, _sigtermHandler, SYMLINK_DIRS, GIT_REMOTE_METHODS, GIT_LOCAL_METHODS, GIT_RAW_REMOTE_COMMANDS, GIT_RAW_LOCAL_COMMANDS, gitProxyCache, GIT_MOCK_RESULTS, GITHUB_MUTATING_PREFIXES, FS_MUTATING_METHODS, safeFsPromises, safeFsSync, safeFs;
55465
+ var fs, fsPromises, import_os, import_path3, import_crypto, import_fs2, import_promises, _inWorktreeMode, _activeWorktreeCleanup, _sigintHandler, _sigtermHandler, SYMLINK_DIRS, GIT_REMOTE_METHODS, GIT_LOCAL_METHODS, GIT_RAW_REMOTE_COMMANDS, GIT_RAW_LOCAL_COMMANDS, gitProxyCache, GIT_MOCK_RESULTS, GITHUB_MUTATING_PREFIXES, FS_MUTATING_METHODS, safeFsPromises, safeFsSync, safeFs;
55436
55466
  var init_dryRun = __esm({
55437
55467
  "src/utils/dryRun.ts"() {
55438
55468
  init_import_meta_url();
55439
55469
  fs = __toESM(require("fs"));
55440
55470
  fsPromises = __toESM(require("fs/promises"));
55441
55471
  import_os = require("os");
55442
- import_path2 = require("path");
55472
+ import_path3 = require("path");
55443
55473
  import_crypto = require("crypto");
55444
55474
  import_fs2 = require("fs");
55445
55475
  import_promises = require("fs/promises");
@@ -56263,8 +56293,8 @@ var init_parseUtil = __esm({
56263
56293
  init_errors3();
56264
56294
  init_en();
56265
56295
  makeIssue = (params) => {
56266
- const { data: data2, path: path26, errorMaps, issueData } = params;
56267
- const fullPath = [...path26, ...issueData.path || []];
56296
+ const { data: data2, path: path27, errorMaps, issueData } = params;
56297
+ const fullPath = [...path27, ...issueData.path || []];
56268
56298
  const fullIssue = {
56269
56299
  ...issueData,
56270
56300
  path: fullPath
@@ -56575,11 +56605,11 @@ var init_types2 = __esm({
56575
56605
  init_parseUtil();
56576
56606
  init_util2();
56577
56607
  ParseInputLazyPath = class {
56578
- constructor(parent, value, path26, key) {
56608
+ constructor(parent, value, path27, key) {
56579
56609
  this._cachedPath = [];
56580
56610
  this.parent = parent;
56581
56611
  this.data = value;
56582
- this._path = path26;
56612
+ this._path = path27;
56583
56613
  this._key = key;
56584
56614
  }
56585
56615
  get path() {
@@ -60042,7 +60072,7 @@ var init_project_config = __esm({
60042
60072
 
60043
60073
  // src/utils/detection.ts
60044
60074
  function readTextFile(rootDir, ...pathSegments) {
60045
- const filePath = import_path3.default.join(rootDir, ...pathSegments);
60075
+ const filePath = import_path4.default.join(rootDir, ...pathSegments);
60046
60076
  if (!(0, import_fs3.existsSync)(filePath)) {
60047
60077
  return null;
60048
60078
  }
@@ -60073,12 +60103,12 @@ function isCompiledGitHubAction(rootDir) {
60073
60103
  return false;
60074
60104
  }
60075
60105
  }
60076
- var import_fs3, import_path3;
60106
+ var import_fs3, import_path4;
60077
60107
  var init_detection2 = __esm({
60078
60108
  "src/utils/detection.ts"() {
60079
60109
  init_import_meta_url();
60080
60110
  import_fs3 = require("fs");
60081
- import_path3 = __toESM(require("path"));
60111
+ import_path4 = __toESM(require("path"));
60082
60112
  init_js_yaml();
60083
60113
  }
60084
60114
  });
@@ -60819,14 +60849,14 @@ var require_url_state_machine = __commonJS({
60819
60849
  return url2.replace(/\u0009|\u000A|\u000D/g, "");
60820
60850
  }
60821
60851
  function shortenPath(url2) {
60822
- const path26 = url2.path;
60823
- if (path26.length === 0) {
60852
+ const path27 = url2.path;
60853
+ if (path27.length === 0) {
60824
60854
  return;
60825
60855
  }
60826
- if (url2.scheme === "file" && path26.length === 1 && isNormalizedWindowsDriveLetter(path26[0])) {
60856
+ if (url2.scheme === "file" && path27.length === 1 && isNormalizedWindowsDriveLetter(path27[0])) {
60827
60857
  return;
60828
60858
  }
60829
- path26.pop();
60859
+ path27.pop();
60830
60860
  }
60831
60861
  function includesCredentials(url2) {
60832
60862
  return url2.username !== "" || url2.password !== "";
@@ -64322,17 +64352,17 @@ var init_esm10 = __esm({
64322
64352
  [_size];
64323
64353
  [_remain];
64324
64354
  [_autoClose];
64325
- constructor(path26, opt) {
64355
+ constructor(path27, opt) {
64326
64356
  opt = opt || {};
64327
64357
  super(opt);
64328
64358
  this.readable = true;
64329
64359
  this.writable = false;
64330
- if (typeof path26 !== "string") {
64360
+ if (typeof path27 !== "string") {
64331
64361
  throw new TypeError("path must be a string");
64332
64362
  }
64333
64363
  this[_errored] = false;
64334
64364
  this[_fd] = typeof opt.fd === "number" ? opt.fd : void 0;
64335
- this[_path] = path26;
64365
+ this[_path] = path27;
64336
64366
  this[_readSize] = opt.readSize || 16 * 1024 * 1024;
64337
64367
  this[_reading] = false;
64338
64368
  this[_size] = typeof opt.size === "number" ? opt.size : Infinity;
@@ -64495,10 +64525,10 @@ var init_esm10 = __esm({
64495
64525
  [_flags];
64496
64526
  [_finished] = false;
64497
64527
  [_pos];
64498
- constructor(path26, opt) {
64528
+ constructor(path27, opt) {
64499
64529
  opt = opt || {};
64500
64530
  super(opt);
64501
- this[_path] = path26;
64531
+ this[_path] = path27;
64502
64532
  this[_fd] = typeof opt.fd === "number" ? opt.fd : void 0;
64503
64533
  this[_mode] = opt.mode === void 0 ? 438 : opt.mode;
64504
64534
  this[_pos] = typeof opt.start === "number" ? opt.start : void 0;
@@ -65425,10 +65455,10 @@ var init_header = __esm({
65425
65455
  }
65426
65456
  const prefixSize = this.ctime || this.atime ? 130 : 155;
65427
65457
  const split2 = splitPrefix(this.path || "", prefixSize);
65428
- const path26 = split2[0];
65458
+ const path27 = split2[0];
65429
65459
  const prefix = split2[1];
65430
65460
  this.needPax = !!split2[2];
65431
- this.needPax = encString(buf, off, 100, path26) || this.needPax;
65461
+ this.needPax = encString(buf, off, 100, path27) || this.needPax;
65432
65462
  this.needPax = encNumber(buf, off + 100, 8, this.mode) || this.needPax;
65433
65463
  this.needPax = encNumber(buf, off + 108, 8, this.uid) || this.needPax;
65434
65464
  this.needPax = encNumber(buf, off + 116, 8, this.gid) || this.needPax;
@@ -66331,13 +66361,13 @@ var init_strip_trailing_slashes = __esm({
66331
66361
  });
66332
66362
 
66333
66363
  // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/list.js
66334
- var import_node_fs4, import_path4, onReadEntryFunction, filesFilter, listFileSync, listFile, list;
66364
+ var import_node_fs4, import_path5, onReadEntryFunction, filesFilter, listFileSync, listFile, list;
66335
66365
  var init_list = __esm({
66336
66366
  "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/list.js"() {
66337
66367
  init_import_meta_url();
66338
66368
  init_esm10();
66339
66369
  import_node_fs4 = __toESM(require("node:fs"), 1);
66340
- import_path4 = require("path");
66370
+ import_path5 = require("path");
66341
66371
  init_make_command();
66342
66372
  init_parse();
66343
66373
  init_strip_trailing_slashes();
@@ -66352,7 +66382,7 @@ var init_list = __esm({
66352
66382
  const map3 = new Map(files.map((f4) => [stripTrailingSlashes(f4), true]));
66353
66383
  const filter3 = opt.filter;
66354
66384
  const mapHas = (file, r4 = "") => {
66355
- const root = r4 || (0, import_path4.parse)(file).root || ".";
66385
+ const root = r4 || (0, import_path5.parse)(file).root || ".";
66356
66386
  let ret;
66357
66387
  if (file === root)
66358
66388
  ret = false;
@@ -66361,7 +66391,7 @@ var init_list = __esm({
66361
66391
  if (m5 !== void 0) {
66362
66392
  ret = m5;
66363
66393
  } else {
66364
- ret = mapHas((0, import_path4.dirname)(file), root);
66394
+ ret = mapHas((0, import_path5.dirname)(file), root);
66365
66395
  }
66366
66396
  }
66367
66397
  map3.set(file, ret);
@@ -66466,16 +66496,16 @@ var init_strip_absolute_path = __esm({
66466
66496
  init_import_meta_url();
66467
66497
  import_node_path7 = require("node:path");
66468
66498
  ({ isAbsolute: isAbsolute2, parse: parse3 } = import_node_path7.win32);
66469
- stripAbsolutePath = (path26) => {
66499
+ stripAbsolutePath = (path27) => {
66470
66500
  let r4 = "";
66471
- let parsed = parse3(path26);
66472
- while (isAbsolute2(path26) || parsed.root) {
66473
- const root = path26.charAt(0) === "/" && path26.slice(0, 4) !== "//?/" ? "/" : parsed.root;
66474
- path26 = path26.slice(root.length);
66501
+ let parsed = parse3(path27);
66502
+ while (isAbsolute2(path27) || parsed.root) {
66503
+ const root = path27.charAt(0) === "/" && path27.slice(0, 4) !== "//?/" ? "/" : parsed.root;
66504
+ path27 = path27.slice(root.length);
66475
66505
  r4 += root;
66476
- parsed = parse3(path26);
66506
+ parsed = parse3(path27);
66477
66507
  }
66478
- return [r4, path26];
66508
+ return [r4, path27];
66479
66509
  };
66480
66510
  }
66481
66511
  });
@@ -66495,13 +66525,13 @@ var init_winchars = __esm({
66495
66525
  });
66496
66526
 
66497
66527
  // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/write-entry.js
66498
- var import_fs5, import_path5, prefixPath, maxReadSize, PROCESS, FILE, DIRECTORY, SYMLINK, HARDLINK, HEADER, READ2, LSTAT, ONLSTAT, ONREAD, ONREADLINK, OPENFILE, ONOPENFILE, CLOSE, MODE, AWAITDRAIN, ONDRAIN, PREFIX2, WriteEntry, WriteEntrySync, WriteEntryTar, getType;
66528
+ var import_fs5, import_path6, prefixPath, maxReadSize, PROCESS, FILE, DIRECTORY, SYMLINK, HARDLINK, HEADER, READ2, LSTAT, ONLSTAT, ONREAD, ONREADLINK, OPENFILE, ONOPENFILE, CLOSE, MODE, AWAITDRAIN, ONDRAIN, PREFIX2, WriteEntry, WriteEntrySync, WriteEntryTar, getType;
66499
66529
  var init_write_entry = __esm({
66500
66530
  "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/write-entry.js"() {
66501
66531
  init_import_meta_url();
66502
66532
  import_fs5 = __toESM(require("fs"), 1);
66503
66533
  init_esm9();
66504
- import_path5 = __toESM(require("path"), 1);
66534
+ import_path6 = __toESM(require("path"), 1);
66505
66535
  init_header();
66506
66536
  init_mode_fix();
66507
66537
  init_normalize_windows_path();
@@ -66511,12 +66541,12 @@ var init_write_entry = __esm({
66511
66541
  init_strip_trailing_slashes();
66512
66542
  init_warn_method();
66513
66543
  init_winchars();
66514
- prefixPath = (path26, prefix) => {
66544
+ prefixPath = (path27, prefix) => {
66515
66545
  if (!prefix) {
66516
- return normalizeWindowsPath2(path26);
66546
+ return normalizeWindowsPath2(path27);
66517
66547
  }
66518
- path26 = normalizeWindowsPath2(path26).replace(/^\.(\/|$)/, "");
66519
- return stripTrailingSlashes(prefix) + "/" + path26;
66548
+ path27 = normalizeWindowsPath2(path27).replace(/^\.(\/|$)/, "");
66549
+ return stripTrailingSlashes(prefix) + "/" + path27;
66520
66550
  };
66521
66551
  maxReadSize = 16 * 1024 * 1024;
66522
66552
  PROCESS = Symbol("process");
@@ -66601,7 +66631,7 @@ var init_write_entry = __esm({
66601
66631
  this.path = decode(this.path.replace(/\\/g, "/"));
66602
66632
  p4 = p4.replace(/\\/g, "/");
66603
66633
  }
66604
- this.absolute = normalizeWindowsPath2(opt.absolute || import_path5.default.resolve(this.cwd, p4));
66634
+ this.absolute = normalizeWindowsPath2(opt.absolute || import_path6.default.resolve(this.cwd, p4));
66605
66635
  if (this.path === "") {
66606
66636
  this.path = "./";
66607
66637
  }
@@ -66661,8 +66691,8 @@ var init_write_entry = __esm({
66661
66691
  [MODE](mode) {
66662
66692
  return modeFix(mode, this.type === "Directory", this.portable);
66663
66693
  }
66664
- [PREFIX2](path26) {
66665
- return prefixPath(path26, this.prefix);
66694
+ [PREFIX2](path27) {
66695
+ return prefixPath(path27, this.prefix);
66666
66696
  }
66667
66697
  [HEADER]() {
66668
66698
  if (!this.stat) {
@@ -66740,7 +66770,7 @@ var init_write_entry = __esm({
66740
66770
  throw new Error("cannot create link entry without stat");
66741
66771
  }
66742
66772
  this.type = "Link";
66743
- this.linkpath = normalizeWindowsPath2(import_path5.default.relative(this.cwd, linkpath));
66773
+ this.linkpath = normalizeWindowsPath2(import_path6.default.relative(this.cwd, linkpath));
66744
66774
  this.stat.size = 0;
66745
66775
  this[HEADER]();
66746
66776
  this.end();
@@ -67043,8 +67073,8 @@ var init_write_entry = __esm({
67043
67073
  super.write(b5);
67044
67074
  readEntry.pipe(this);
67045
67075
  }
67046
- [PREFIX2](path26) {
67047
- return prefixPath(path26, this.prefix);
67076
+ [PREFIX2](path27) {
67077
+ return prefixPath(path27, this.prefix);
67048
67078
  }
67049
67079
  [MODE](mode) {
67050
67080
  return modeFix(mode, this.type === "Directory", this.portable);
@@ -67466,7 +67496,7 @@ var init_esm12 = __esm({
67466
67496
  });
67467
67497
 
67468
67498
  // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/pack.js
67469
- var import_fs6, import_path6, PackJob, EOF2, ONSTAT, ENDED2, QUEUE2, CURRENT, PROCESS2, PROCESSING, PROCESSJOB, JOBS, JOBDONE, ADDFSENTRY, ADDTARENTRY, STAT, READDIR, ONREADDIR, PIPE, ENTRY, ENTRYOPT, WRITEENTRYCLASS, WRITE, ONDRAIN2, Pack, PackSync;
67499
+ var import_fs6, import_path7, PackJob, EOF2, ONSTAT, ENDED2, QUEUE2, CURRENT, PROCESS2, PROCESSING, PROCESSJOB, JOBS, JOBDONE, ADDFSENTRY, ADDTARENTRY, STAT, READDIR, ONREADDIR, PIPE, ENTRY, ENTRYOPT, WRITEENTRYCLASS, WRITE, ONDRAIN2, Pack, PackSync;
67470
67500
  var init_pack = __esm({
67471
67501
  "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/pack.js"() {
67472
67502
  init_import_meta_url();
@@ -67477,7 +67507,7 @@ var init_pack = __esm({
67477
67507
  init_esm12();
67478
67508
  init_read_entry();
67479
67509
  init_warn_method();
67480
- import_path6 = __toESM(require("path"), 1);
67510
+ import_path7 = __toESM(require("path"), 1);
67481
67511
  init_normalize_windows_path();
67482
67512
  PackJob = class {
67483
67513
  path;
@@ -67488,8 +67518,8 @@ var init_pack = __esm({
67488
67518
  pending = false;
67489
67519
  ignore = false;
67490
67520
  piped = false;
67491
- constructor(path26, absolute) {
67492
- this.path = path26 || "./";
67521
+ constructor(path27, absolute) {
67522
+ this.path = path27 || "./";
67493
67523
  this.absolute = absolute;
67494
67524
  }
67495
67525
  };
@@ -67618,21 +67648,21 @@ var init_pack = __esm({
67618
67648
  [WRITE](chunk) {
67619
67649
  return super.write(chunk);
67620
67650
  }
67621
- add(path26) {
67622
- this.write(path26);
67651
+ add(path27) {
67652
+ this.write(path27);
67623
67653
  return this;
67624
67654
  }
67625
- end(path26, encoding, cb) {
67626
- if (typeof path26 === "function") {
67627
- cb = path26;
67628
- path26 = void 0;
67655
+ end(path27, encoding, cb) {
67656
+ if (typeof path27 === "function") {
67657
+ cb = path27;
67658
+ path27 = void 0;
67629
67659
  }
67630
67660
  if (typeof encoding === "function") {
67631
67661
  cb = encoding;
67632
67662
  encoding = void 0;
67633
67663
  }
67634
- if (path26) {
67635
- this.add(path26);
67664
+ if (path27) {
67665
+ this.add(path27);
67636
67666
  }
67637
67667
  this[ENDED2] = true;
67638
67668
  this[PROCESS2]();
@@ -67640,19 +67670,19 @@ var init_pack = __esm({
67640
67670
  cb();
67641
67671
  return this;
67642
67672
  }
67643
- write(path26) {
67673
+ write(path27) {
67644
67674
  if (this[ENDED2]) {
67645
67675
  throw new Error("write after end");
67646
67676
  }
67647
- if (path26 instanceof ReadEntry) {
67648
- this[ADDTARENTRY](path26);
67677
+ if (path27 instanceof ReadEntry) {
67678
+ this[ADDTARENTRY](path27);
67649
67679
  } else {
67650
- this[ADDFSENTRY](path26);
67680
+ this[ADDFSENTRY](path27);
67651
67681
  }
67652
67682
  return this.flowing;
67653
67683
  }
67654
67684
  [ADDTARENTRY](p4) {
67655
- const absolute = normalizeWindowsPath2(import_path6.default.resolve(this.cwd, p4.path));
67685
+ const absolute = normalizeWindowsPath2(import_path7.default.resolve(this.cwd, p4.path));
67656
67686
  if (!this.filter(p4.path, p4)) {
67657
67687
  p4.resume();
67658
67688
  } else {
@@ -67665,7 +67695,7 @@ var init_pack = __esm({
67665
67695
  this[PROCESS2]();
67666
67696
  }
67667
67697
  [ADDFSENTRY](p4) {
67668
- const absolute = normalizeWindowsPath2(import_path6.default.resolve(this.cwd, p4));
67698
+ const absolute = normalizeWindowsPath2(import_path7.default.resolve(this.cwd, p4));
67669
67699
  this[QUEUE2].push(new PackJob(p4, absolute));
67670
67700
  this[PROCESS2]();
67671
67701
  }
@@ -68006,9 +68036,9 @@ var init_esm13 = __esm({
68006
68036
  init_import_meta_url();
68007
68037
  import_node_fs5 = __toESM(require("node:fs"), 1);
68008
68038
  import_node_path9 = __toESM(require("node:path"), 1);
68009
- lchownSync = (path26, uid, gid) => {
68039
+ lchownSync = (path27, uid, gid) => {
68010
68040
  try {
68011
- return import_node_fs5.default.lchownSync(path26, uid, gid);
68041
+ return import_node_fs5.default.lchownSync(path27, uid, gid);
68012
68042
  } catch (er) {
68013
68043
  if (er?.code !== "ENOENT")
68014
68044
  throw er;
@@ -68092,9 +68122,9 @@ var init_cwd_error = __esm({
68092
68122
  path;
68093
68123
  code;
68094
68124
  syscall = "chdir";
68095
- constructor(path26, code2) {
68096
- super(`${code2}: Cannot cd into '${path26}'`);
68097
- this.path = path26;
68125
+ constructor(path27, code2) {
68126
+ super(`${code2}: Cannot cd into '${path27}'`);
68127
+ this.path = path27;
68098
68128
  this.code = code2;
68099
68129
  }
68100
68130
  get name() {
@@ -68114,10 +68144,10 @@ var init_symlink_error = __esm({
68114
68144
  symlink;
68115
68145
  syscall = "symlink";
68116
68146
  code = "TAR_SYMLINK_ERROR";
68117
- constructor(symlink, path26) {
68147
+ constructor(symlink, path27) {
68118
68148
  super("TAR_SYMLINK_ERROR: Cannot extract through symbolic link");
68119
68149
  this.symlink = symlink;
68120
- this.path = path26;
68150
+ this.path = path27;
68121
68151
  }
68122
68152
  get name() {
68123
68153
  return "SymlinkError";
@@ -68127,7 +68157,7 @@ var init_symlink_error = __esm({
68127
68157
  });
68128
68158
 
68129
68159
  // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/mkdir.js
68130
- var import_node_fs6, import_promises2, import_node_path10, checkCwd, mkdir, mkdir_, onmkdir, checkCwdSync, mkdirSync;
68160
+ var import_node_fs6, import_promises2, import_node_path10, checkCwd, mkdir, mkdir_, onmkdir, checkCwdSync, mkdirSync2;
68131
68161
  var init_mkdir = __esm({
68132
68162
  "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/mkdir.js"() {
68133
68163
  init_import_meta_url();
@@ -68231,7 +68261,7 @@ var init_mkdir = __esm({
68231
68261
  }
68232
68262
  }
68233
68263
  };
68234
- mkdirSync = (dir, opt) => {
68264
+ mkdirSync2 = (dir, opt) => {
68235
68265
  dir = normalizeWindowsPath2(dir);
68236
68266
  const umask = opt.umask ?? 18;
68237
68267
  const mode = opt.mode | 448;
@@ -68324,13 +68354,13 @@ var init_path_reservations = __esm({
68324
68354
  init_strip_trailing_slashes();
68325
68355
  platform4 = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
68326
68356
  isWindows2 = platform4 === "win32";
68327
- getDirs = (path26) => {
68328
- const dirs = path26.split("/").slice(0, -1).reduce((set2, path27) => {
68357
+ getDirs = (path27) => {
68358
+ const dirs = path27.split("/").slice(0, -1).reduce((set2, path28) => {
68329
68359
  const s4 = set2[set2.length - 1];
68330
68360
  if (s4 !== void 0) {
68331
- path27 = (0, import_node_path11.join)(s4, path27);
68361
+ path28 = (0, import_node_path11.join)(s4, path28);
68332
68362
  }
68333
- set2.push(path27 || "/");
68363
+ set2.push(path28 || "/");
68334
68364
  return set2;
68335
68365
  }, []);
68336
68366
  return dirs;
@@ -68348,7 +68378,7 @@ var init_path_reservations = __esm({
68348
68378
  paths = isWindows2 ? ["win32 parallelization disabled"] : paths.map((p4) => {
68349
68379
  return stripTrailingSlashes((0, import_node_path11.join)(normalizeUnicode(p4)));
68350
68380
  });
68351
- const dirs = new Set(paths.map((path26) => getDirs(path26)).reduce((a4, b5) => a4.concat(b5)));
68381
+ const dirs = new Set(paths.map((path27) => getDirs(path27)).reduce((a4, b5) => a4.concat(b5)));
68352
68382
  this.#reservations.set(fn, { dirs, paths });
68353
68383
  for (const p4 of paths) {
68354
68384
  const q5 = this.#queues.get(p4);
@@ -68381,8 +68411,8 @@ var init_path_reservations = __esm({
68381
68411
  throw new Error("function does not have any path reservations");
68382
68412
  }
68383
68413
  return {
68384
- paths: res.paths.map((path26) => this.#queues.get(path26)),
68385
- dirs: [...res.dirs].map((path26) => this.#queues.get(path26))
68414
+ paths: res.paths.map((path27) => this.#queues.get(path27)),
68415
+ dirs: [...res.dirs].map((path27) => this.#queues.get(path27))
68386
68416
  };
68387
68417
  }
68388
68418
  // check if fn is first in line for all its paths, and is
@@ -68410,14 +68440,14 @@ var init_path_reservations = __esm({
68410
68440
  }
68411
68441
  const { paths, dirs } = res;
68412
68442
  const next = /* @__PURE__ */ new Set();
68413
- for (const path26 of paths) {
68414
- const q5 = this.#queues.get(path26);
68443
+ for (const path27 of paths) {
68444
+ const q5 = this.#queues.get(path27);
68415
68445
  if (!q5 || q5?.[0] !== fn) {
68416
68446
  continue;
68417
68447
  }
68418
68448
  const q0 = q5[1];
68419
68449
  if (!q0) {
68420
- this.#queues.delete(path26);
68450
+ this.#queues.delete(path27);
68421
68451
  continue;
68422
68452
  }
68423
68453
  q5.shift();
@@ -68500,24 +68530,24 @@ var init_unpack = __esm({
68500
68530
  platform5 = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
68501
68531
  isWindows3 = platform5 === "win32";
68502
68532
  DEFAULT_MAX_DEPTH = 1024;
68503
- unlinkFile = (path26, cb) => {
68533
+ unlinkFile = (path27, cb) => {
68504
68534
  if (!isWindows3) {
68505
- return import_node_fs7.default.unlink(path26, cb);
68535
+ return import_node_fs7.default.unlink(path27, cb);
68506
68536
  }
68507
- const name2 = path26 + ".DELETE." + (0, import_node_crypto.randomBytes)(16).toString("hex");
68508
- import_node_fs7.default.rename(path26, name2, (er) => {
68537
+ const name2 = path27 + ".DELETE." + (0, import_node_crypto.randomBytes)(16).toString("hex");
68538
+ import_node_fs7.default.rename(path27, name2, (er) => {
68509
68539
  if (er) {
68510
68540
  return cb(er);
68511
68541
  }
68512
68542
  import_node_fs7.default.unlink(name2, cb);
68513
68543
  });
68514
68544
  };
68515
- unlinkFileSync = (path26) => {
68545
+ unlinkFileSync = (path27) => {
68516
68546
  if (!isWindows3) {
68517
- return import_node_fs7.default.unlinkSync(path26);
68547
+ return import_node_fs7.default.unlinkSync(path27);
68518
68548
  }
68519
- const name2 = path26 + ".DELETE." + (0, import_node_crypto.randomBytes)(16).toString("hex");
68520
- import_node_fs7.default.renameSync(path26, name2);
68549
+ const name2 = path27 + ".DELETE." + (0, import_node_crypto.randomBytes)(16).toString("hex");
68550
+ import_node_fs7.default.renameSync(path27, name2);
68521
68551
  import_node_fs7.default.unlinkSync(name2);
68522
68552
  };
68523
68553
  uint32 = (a4, b5, c4) => a4 !== void 0 && a4 === a4 >>> 0 ? a4 : b5 !== void 0 && b5 === b5 >>> 0 ? b5 : c4;
@@ -69135,7 +69165,7 @@ var init_unpack = __esm({
69135
69165
  }
69136
69166
  [MKDIR](dir, mode) {
69137
69167
  try {
69138
- return mkdirSync(normalizeWindowsPath2(dir), {
69168
+ return mkdirSync2(normalizeWindowsPath2(dir), {
69139
69169
  uid: this.uid,
69140
69170
  gid: this.gid,
69141
69171
  processUid: this.processUid,
@@ -69443,9 +69473,9 @@ var init_update = __esm({
69443
69473
  if (!opt.mtimeCache) {
69444
69474
  opt.mtimeCache = /* @__PURE__ */ new Map();
69445
69475
  }
69446
- opt.filter = filter3 ? (path26, stat) => filter3(path26, stat) && !/* c8 ignore start */
69447
- ((opt.mtimeCache?.get(path26) ?? stat.mtime ?? 0) > (stat.mtime ?? 0)) : (path26, stat) => !/* c8 ignore start */
69448
- ((opt.mtimeCache?.get(path26) ?? stat.mtime ?? 0) > (stat.mtime ?? 0));
69476
+ opt.filter = filter3 ? (path27, stat) => filter3(path27, stat) && !/* c8 ignore start */
69477
+ ((opt.mtimeCache?.get(path27) ?? stat.mtime ?? 0) > (stat.mtime ?? 0)) : (path27, stat) => !/* c8 ignore start */
69478
+ ((opt.mtimeCache?.get(path27) ?? stat.mtime ?? 0) > (stat.mtime ?? 0));
69449
69479
  };
69450
69480
  }
69451
69481
  });
@@ -70457,7 +70487,7 @@ var require_yauzl = __commonJS({
70457
70487
  exports2.ZipFile = ZipFile;
70458
70488
  exports2.Entry = Entry;
70459
70489
  exports2.RandomAccessReader = RandomAccessReader;
70460
- function open(path26, options, callback) {
70490
+ function open(path27, options, callback) {
70461
70491
  if (typeof options === "function") {
70462
70492
  callback = options;
70463
70493
  options = null;
@@ -70469,7 +70499,7 @@ var require_yauzl = __commonJS({
70469
70499
  if (options.validateEntrySizes == null) options.validateEntrySizes = true;
70470
70500
  if (options.strictFileNames == null) options.strictFileNames = false;
70471
70501
  if (callback == null) callback = defaultCallback;
70472
- fs24.open(path26, "r", function(err, fd) {
70502
+ fs24.open(path27, "r", function(err, fd) {
70473
70503
  if (err) return callback(err);
70474
70504
  fromFd(fd, options, function(err2, zipfile) {
70475
70505
  if (err2) fs24.close(fd, defaultCallback);
@@ -71072,7 +71102,7 @@ var require_extract_zip = __commonJS({
71072
71102
  var debug3 = require_src3()("extract-zip");
71073
71103
  var { createWriteStream: createWriteStream3, promises: fs24 } = require("fs");
71074
71104
  var getStream = require_get_stream();
71075
- var path26 = require("path");
71105
+ var path27 = require("path");
71076
71106
  var { promisify: promisify5 } = require("util");
71077
71107
  var stream2 = require("stream");
71078
71108
  var yauzl = require_yauzl();
@@ -71109,12 +71139,12 @@ var require_extract_zip = __commonJS({
71109
71139
  this.zipfile.readEntry();
71110
71140
  return;
71111
71141
  }
71112
- const destDir = path26.dirname(path26.join(this.opts.dir, entry.fileName));
71142
+ const destDir = path27.dirname(path27.join(this.opts.dir, entry.fileName));
71113
71143
  try {
71114
71144
  await fs24.mkdir(destDir, { recursive: true });
71115
71145
  const canonicalDestDir = await fs24.realpath(destDir);
71116
- const relativeDestDir = path26.relative(this.opts.dir, canonicalDestDir);
71117
- if (relativeDestDir.split(path26.sep).includes("..")) {
71146
+ const relativeDestDir = path27.relative(this.opts.dir, canonicalDestDir);
71147
+ if (relativeDestDir.split(path27.sep).includes("..")) {
71118
71148
  throw new Error(`Out of bound path "${canonicalDestDir}" found while processing file ${entry.fileName}`);
71119
71149
  }
71120
71150
  await this.extractEntry(entry);
@@ -71136,7 +71166,7 @@ var require_extract_zip = __commonJS({
71136
71166
  if (this.opts.onEntry) {
71137
71167
  this.opts.onEntry(entry, this.zipfile);
71138
71168
  }
71139
- const dest = path26.join(this.opts.dir, entry.fileName);
71169
+ const dest = path27.join(this.opts.dir, entry.fileName);
71140
71170
  const mode = entry.externalFileAttributes >> 16 & 65535;
71141
71171
  const IFMT2 = 61440;
71142
71172
  const IFDIR2 = 16384;
@@ -71150,7 +71180,7 @@ var require_extract_zip = __commonJS({
71150
71180
  if (!isDir) isDir = madeBy === 0 && entry.externalFileAttributes === 16;
71151
71181
  debug3("extracting entry", { filename: entry.fileName, isDir, isSymlink: symlink });
71152
71182
  const procMode = this.getExtractedMode(mode, isDir) & 511;
71153
- const destDir = isDir ? dest : path26.dirname(dest);
71183
+ const destDir = isDir ? dest : path27.dirname(dest);
71154
71184
  const mkdirOptions = { recursive: true };
71155
71185
  if (isDir) {
71156
71186
  mkdirOptions.mode = procMode;
@@ -71192,7 +71222,7 @@ var require_extract_zip = __commonJS({
71192
71222
  };
71193
71223
  module2.exports = async function(zipPath, opts) {
71194
71224
  debug3("creating target directory", opts.dir);
71195
- if (!path26.isAbsolute(opts.dir)) {
71225
+ if (!path27.isAbsolute(opts.dir)) {
71196
71226
  throw new Error("Target directory is expected to be absolute");
71197
71227
  }
71198
71228
  await fs24.mkdir(opts.dir, { recursive: true });
@@ -71315,8 +71345,8 @@ function formatDigest(hash, format5) {
71315
71345
  function getPotentialPaths(fileName) {
71316
71346
  const envPath = process.env.PATH || "";
71317
71347
  const envExt = process.env.PATHEXT || "";
71318
- return envPath.replace(/"/g, "").split(path10.delimiter).map(
71319
- (chunk) => envExt.split(path10.delimiter).map((ext3) => path10.join(chunk, fileName + ext3))
71348
+ return envPath.replace(/"/g, "").split(path11.delimiter).map(
71349
+ (chunk) => envExt.split(path11.delimiter).map((ext3) => path11.join(chunk, fileName + ext3))
71320
71350
  ).reduce((a4, b5) => a4.concat(b5));
71321
71351
  }
71322
71352
  function isExecutable(filePath) {
@@ -71416,14 +71446,14 @@ function catchKeyboardInterrupt(maxTimeDiff = 1e3) {
71416
71446
  }
71417
71447
  });
71418
71448
  }
71419
- var import_child_process2, import_crypto2, fs12, path10, import_split, import_extract_zip, HashAlgorithm, HashOutputFormat;
71449
+ var import_child_process2, import_crypto2, fs12, path11, import_split, import_extract_zip, HashAlgorithm, HashOutputFormat;
71420
71450
  var init_system = __esm({
71421
71451
  "src/utils/system.ts"() {
71422
71452
  init_import_meta_url();
71423
71453
  import_child_process2 = require("child_process");
71424
71454
  import_crypto2 = require("crypto");
71425
71455
  fs12 = __toESM(require("fs"));
71426
- path10 = __toESM(require("path"));
71456
+ path11 = __toESM(require("path"));
71427
71457
  import_split = __toESM(require_split());
71428
71458
  init_esm14();
71429
71459
  import_extract_zip = __toESM(require_extract_zip());
@@ -72835,17 +72865,17 @@ function requestLog(octokit) {
72835
72865
  octokit.log.debug("request", options);
72836
72866
  const start = Date.now();
72837
72867
  const requestOptions = octokit.request.endpoint.parse(options);
72838
- const path26 = requestOptions.url.replace(options.baseUrl, "");
72868
+ const path27 = requestOptions.url.replace(options.baseUrl, "");
72839
72869
  return request3(options).then((response) => {
72840
72870
  const requestId = response.headers["x-github-request-id"];
72841
72871
  octokit.log.info(
72842
- `${requestOptions.method} ${path26} - ${response.status} with id ${requestId} in ${Date.now() - start}ms`
72872
+ `${requestOptions.method} ${path27} - ${response.status} with id ${requestId} in ${Date.now() - start}ms`
72843
72873
  );
72844
72874
  return response;
72845
72875
  }).catch((error3) => {
72846
72876
  const requestId = error3.response?.headers["x-github-request-id"] || "UNKNOWN";
72847
72877
  octokit.log.error(
72848
- `${requestOptions.method} ${path26} - ${error3.status} with id ${requestId} in ${Date.now() - start}ms`
72878
+ `${requestOptions.method} ${path27} - ${error3.status} with id ${requestId} in ${Date.now() - start}ms`
72849
72879
  );
72850
72880
  throw error3;
72851
72881
  });
@@ -76941,13 +76971,13 @@ function getGitHubClient(token = "") {
76941
76971
  }
76942
76972
  return _GitHubClientCache[githubApiToken];
76943
76973
  }
76944
- async function getFile(github, owner, repo, path26, ref) {
76974
+ async function getFile(github, owner, repo, path27, ref) {
76945
76975
  return withTracing(
76946
76976
  async () => {
76947
76977
  try {
76948
76978
  const response = await github.repos.getContent({
76949
76979
  owner,
76950
- path: path26,
76980
+ path: path27,
76951
76981
  ref,
76952
76982
  repo
76953
76983
  });
@@ -76968,7 +76998,7 @@ async function getFile(github, owner, repo, path26, ref) {
76968
76998
  attributes: {
76969
76999
  "github.owner": owner,
76970
77000
  "github.repo": repo,
76971
- "github.path": path26,
77001
+ "github.path": path27,
76972
77002
  "github.ref": ref
76973
77003
  }
76974
77004
  }
@@ -77336,7 +77366,7 @@ var require_ignore = __commonJS({
77336
77366
  // path matching.
77337
77367
  // - check `string` either `MODE_IGNORE` or `MODE_CHECK_IGNORE`
77338
77368
  // @returns {TestResult} true if a file is ignored
77339
- test(path26, checkUnignored, mode) {
77369
+ test(path27, checkUnignored, mode) {
77340
77370
  let ignored = false;
77341
77371
  let unignored = false;
77342
77372
  let matchedRule;
@@ -77345,7 +77375,7 @@ var require_ignore = __commonJS({
77345
77375
  if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) {
77346
77376
  return;
77347
77377
  }
77348
- const matched = rule[mode].test(path26);
77378
+ const matched = rule[mode].test(path27);
77349
77379
  if (!matched) {
77350
77380
  return;
77351
77381
  }
@@ -77366,17 +77396,17 @@ var require_ignore = __commonJS({
77366
77396
  var throwError2 = (message, Ctor) => {
77367
77397
  throw new Ctor(message);
77368
77398
  };
77369
- var checkPath = (path26, originalPath, doThrow) => {
77370
- if (!isString2(path26)) {
77399
+ var checkPath = (path27, originalPath, doThrow) => {
77400
+ if (!isString2(path27)) {
77371
77401
  return doThrow(
77372
77402
  `path must be a string, but got \`${originalPath}\``,
77373
77403
  TypeError
77374
77404
  );
77375
77405
  }
77376
- if (!path26) {
77406
+ if (!path27) {
77377
77407
  return doThrow(`path must not be empty`, TypeError);
77378
77408
  }
77379
- if (checkPath.isNotRelative(path26)) {
77409
+ if (checkPath.isNotRelative(path27)) {
77380
77410
  const r4 = "`path.relative()`d";
77381
77411
  return doThrow(
77382
77412
  `path should be a ${r4} string, but got "${originalPath}"`,
@@ -77385,7 +77415,7 @@ var require_ignore = __commonJS({
77385
77415
  }
77386
77416
  return true;
77387
77417
  };
77388
- var isNotRelative = (path26) => REGEX_TEST_INVALID_PATH.test(path26);
77418
+ var isNotRelative = (path27) => REGEX_TEST_INVALID_PATH.test(path27);
77389
77419
  checkPath.isNotRelative = isNotRelative;
77390
77420
  checkPath.convert = (p4) => p4;
77391
77421
  var Ignore3 = class {
@@ -77415,19 +77445,19 @@ var require_ignore = __commonJS({
77415
77445
  }
77416
77446
  // @returns {TestResult}
77417
77447
  _test(originalPath, cache6, checkUnignored, slices) {
77418
- const path26 = originalPath && checkPath.convert(originalPath);
77448
+ const path27 = originalPath && checkPath.convert(originalPath);
77419
77449
  checkPath(
77420
- path26,
77450
+ path27,
77421
77451
  originalPath,
77422
77452
  this._strictPathCheck ? throwError2 : RETURN_FALSE
77423
77453
  );
77424
- return this._t(path26, cache6, checkUnignored, slices);
77454
+ return this._t(path27, cache6, checkUnignored, slices);
77425
77455
  }
77426
- checkIgnore(path26) {
77427
- if (!REGEX_TEST_TRAILING_SLASH.test(path26)) {
77428
- return this.test(path26);
77456
+ checkIgnore(path27) {
77457
+ if (!REGEX_TEST_TRAILING_SLASH.test(path27)) {
77458
+ return this.test(path27);
77429
77459
  }
77430
- const slices = path26.split(SLASH).filter(Boolean);
77460
+ const slices = path27.split(SLASH).filter(Boolean);
77431
77461
  slices.pop();
77432
77462
  if (slices.length) {
77433
77463
  const parent = this._t(
@@ -77440,18 +77470,18 @@ var require_ignore = __commonJS({
77440
77470
  return parent;
77441
77471
  }
77442
77472
  }
77443
- return this._rules.test(path26, false, MODE_CHECK_IGNORE);
77473
+ return this._rules.test(path27, false, MODE_CHECK_IGNORE);
77444
77474
  }
77445
- _t(path26, cache6, checkUnignored, slices) {
77446
- if (path26 in cache6) {
77447
- return cache6[path26];
77475
+ _t(path27, cache6, checkUnignored, slices) {
77476
+ if (path27 in cache6) {
77477
+ return cache6[path27];
77448
77478
  }
77449
77479
  if (!slices) {
77450
- slices = path26.split(SLASH).filter(Boolean);
77480
+ slices = path27.split(SLASH).filter(Boolean);
77451
77481
  }
77452
77482
  slices.pop();
77453
77483
  if (!slices.length) {
77454
- return cache6[path26] = this._rules.test(path26, checkUnignored, MODE_IGNORE);
77484
+ return cache6[path27] = this._rules.test(path27, checkUnignored, MODE_IGNORE);
77455
77485
  }
77456
77486
  const parent = this._t(
77457
77487
  slices.join(SLASH) + SLASH,
@@ -77459,29 +77489,29 @@ var require_ignore = __commonJS({
77459
77489
  checkUnignored,
77460
77490
  slices
77461
77491
  );
77462
- return cache6[path26] = parent.ignored ? parent : this._rules.test(path26, checkUnignored, MODE_IGNORE);
77492
+ return cache6[path27] = parent.ignored ? parent : this._rules.test(path27, checkUnignored, MODE_IGNORE);
77463
77493
  }
77464
- ignores(path26) {
77465
- return this._test(path26, this._ignoreCache, false).ignored;
77494
+ ignores(path27) {
77495
+ return this._test(path27, this._ignoreCache, false).ignored;
77466
77496
  }
77467
77497
  createFilter() {
77468
- return (path26) => !this.ignores(path26);
77498
+ return (path27) => !this.ignores(path27);
77469
77499
  }
77470
77500
  filter(paths) {
77471
77501
  return makeArray(paths).filter(this.createFilter());
77472
77502
  }
77473
77503
  // @returns {TestResult}
77474
- test(path26) {
77475
- return this._test(path26, this._testCache, true);
77504
+ test(path27) {
77505
+ return this._test(path27, this._testCache, true);
77476
77506
  }
77477
77507
  };
77478
77508
  var factory = (options) => new Ignore3(options);
77479
- var isPathValid = (path26) => checkPath(path26 && checkPath.convert(path26), path26, RETURN_FALSE);
77509
+ var isPathValid = (path27) => checkPath(path27 && checkPath.convert(path27), path27, RETURN_FALSE);
77480
77510
  var setupWindows = () => {
77481
77511
  const makePosix = (str2) => /^\\\\\?\\/.test(str2) || /["<>|\u0000-\u001F]+/u.test(str2) ? str2 : str2.replace(/\\/g, "/");
77482
77512
  checkPath.convert = makePosix;
77483
77513
  const REGEX_TEST_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
77484
- checkPath.isNotRelative = (path26) => REGEX_TEST_WINDOWS_PATH_ABSOLUTE.test(path26) || isNotRelative(path26);
77514
+ checkPath.isNotRelative = (path27) => REGEX_TEST_WINDOWS_PATH_ABSOLUTE.test(path27) || isNotRelative(path27);
77485
77515
  };
77486
77516
  if (
77487
77517
  // Detect `process` so that it can run in browsers.
@@ -77927,7 +77957,7 @@ var require_minimatch = __commonJS({
77927
77957
  init_import_meta_url();
77928
77958
  module2.exports = minimatch3;
77929
77959
  minimatch3.Minimatch = Minimatch3;
77930
- var path26 = (function() {
77960
+ var path27 = (function() {
77931
77961
  try {
77932
77962
  return require("path");
77933
77963
  } catch (e4) {
@@ -77935,7 +77965,7 @@ var require_minimatch = __commonJS({
77935
77965
  })() || {
77936
77966
  sep: "/"
77937
77967
  };
77938
- minimatch3.sep = path26.sep;
77968
+ minimatch3.sep = path27.sep;
77939
77969
  var GLOBSTAR3 = minimatch3.GLOBSTAR = Minimatch3.GLOBSTAR = {};
77940
77970
  var expand4 = require_brace_expansion2();
77941
77971
  var plTypes = {
@@ -78024,8 +78054,8 @@ var require_minimatch = __commonJS({
78024
78054
  assertValidPattern3(pattern);
78025
78055
  if (!options) options = {};
78026
78056
  pattern = pattern.trim();
78027
- if (!options.allowWindowsEscape && path26.sep !== "/") {
78028
- pattern = pattern.split(path26.sep).join("/");
78057
+ if (!options.allowWindowsEscape && path27.sep !== "/") {
78058
+ pattern = pattern.split(path27.sep).join("/");
78029
78059
  }
78030
78060
  this.options = options;
78031
78061
  this.set = [];
@@ -78394,8 +78424,8 @@ var require_minimatch = __commonJS({
78394
78424
  if (this.empty) return f4 === "";
78395
78425
  if (f4 === "/" && partial) return true;
78396
78426
  var options = this.options;
78397
- if (path26.sep !== "/") {
78398
- f4 = f4.split(path26.sep).join("/");
78427
+ if (path27.sep !== "/") {
78428
+ f4 = f4.split(path27.sep).join("/");
78399
78429
  }
78400
78430
  f4 = f4.split(slashSplit);
78401
78431
  this.debug(this.pattern, "split", f4);
@@ -78548,12 +78578,12 @@ var require_path_is_absolute = __commonJS({
78548
78578
  "node_modules/.pnpm/path-is-absolute@1.0.1/node_modules/path-is-absolute/index.js"(exports2, module2) {
78549
78579
  "use strict";
78550
78580
  init_import_meta_url();
78551
- function posix5(path26) {
78552
- return path26.charAt(0) === "/";
78581
+ function posix5(path27) {
78582
+ return path27.charAt(0) === "/";
78553
78583
  }
78554
- function win323(path26) {
78584
+ function win323(path27) {
78555
78585
  var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;
78556
- var result = splitDeviceRe.exec(path26);
78586
+ var result = splitDeviceRe.exec(path27);
78557
78587
  var device = result[1] || "";
78558
78588
  var isUnc = Boolean(device && device.charAt(1) !== ":");
78559
78589
  return Boolean(result[2] || isUnc);
@@ -78579,7 +78609,7 @@ var require_common2 = __commonJS({
78579
78609
  return Object.prototype.hasOwnProperty.call(obj, field);
78580
78610
  }
78581
78611
  var fs24 = require("fs");
78582
- var path26 = require("path");
78612
+ var path27 = require("path");
78583
78613
  var minimatch3 = require_minimatch();
78584
78614
  var isAbsolute3 = require_path_is_absolute();
78585
78615
  var Minimatch3 = minimatch3.Minimatch;
@@ -78644,11 +78674,11 @@ var require_common2 = __commonJS({
78644
78674
  if (!ownProp(options, "cwd"))
78645
78675
  self2.cwd = cwd;
78646
78676
  else {
78647
- self2.cwd = path26.resolve(options.cwd);
78677
+ self2.cwd = path27.resolve(options.cwd);
78648
78678
  self2.changedCwd = self2.cwd !== cwd;
78649
78679
  }
78650
- self2.root = options.root || path26.resolve(self2.cwd, "/");
78651
- self2.root = path26.resolve(self2.root);
78680
+ self2.root = options.root || path27.resolve(self2.cwd, "/");
78681
+ self2.root = path27.resolve(self2.root);
78652
78682
  if (process.platform === "win32")
78653
78683
  self2.root = self2.root.replace(/\\/g, "/");
78654
78684
  self2.cwdAbs = isAbsolute3(self2.cwd) ? self2.cwd : makeAbs(self2, self2.cwd);
@@ -78730,30 +78760,30 @@ var require_common2 = __commonJS({
78730
78760
  function makeAbs(self2, f4) {
78731
78761
  var abs = f4;
78732
78762
  if (f4.charAt(0) === "/") {
78733
- abs = path26.join(self2.root, f4);
78763
+ abs = path27.join(self2.root, f4);
78734
78764
  } else if (isAbsolute3(f4) || f4 === "") {
78735
78765
  abs = f4;
78736
78766
  } else if (self2.changedCwd) {
78737
- abs = path26.resolve(self2.cwd, f4);
78767
+ abs = path27.resolve(self2.cwd, f4);
78738
78768
  } else {
78739
- abs = path26.resolve(f4);
78769
+ abs = path27.resolve(f4);
78740
78770
  }
78741
78771
  if (process.platform === "win32")
78742
78772
  abs = abs.replace(/\\/g, "/");
78743
78773
  return abs;
78744
78774
  }
78745
- function isIgnored(self2, path27) {
78775
+ function isIgnored(self2, path28) {
78746
78776
  if (!self2.ignore.length)
78747
78777
  return false;
78748
78778
  return self2.ignore.some(function(item) {
78749
- return item.matcher.match(path27) || !!(item.gmatcher && item.gmatcher.match(path27));
78779
+ return item.matcher.match(path28) || !!(item.gmatcher && item.gmatcher.match(path28));
78750
78780
  });
78751
78781
  }
78752
- function childrenIgnored(self2, path27) {
78782
+ function childrenIgnored(self2, path28) {
78753
78783
  if (!self2.ignore.length)
78754
78784
  return false;
78755
78785
  return self2.ignore.some(function(item) {
78756
- return !!(item.gmatcher && item.gmatcher.match(path27));
78786
+ return !!(item.gmatcher && item.gmatcher.match(path28));
78757
78787
  });
78758
78788
  }
78759
78789
  }
@@ -78770,7 +78800,7 @@ var require_sync = __commonJS({
78770
78800
  var Minimatch3 = minimatch3.Minimatch;
78771
78801
  var Glob2 = require_glob().Glob;
78772
78802
  var util6 = require("util");
78773
- var path26 = require("path");
78803
+ var path27 = require("path");
78774
78804
  var assert3 = require("assert");
78775
78805
  var isAbsolute3 = require_path_is_absolute();
78776
78806
  var common2 = require_common2();
@@ -78899,7 +78929,7 @@ var require_sync = __commonJS({
78899
78929
  e4 = prefix + e4;
78900
78930
  }
78901
78931
  if (e4.charAt(0) === "/" && !this.nomount) {
78902
- e4 = path26.join(this.root, e4);
78932
+ e4 = path27.join(this.root, e4);
78903
78933
  }
78904
78934
  this._emitMatch(index, e4);
78905
78935
  }
@@ -79050,9 +79080,9 @@ var require_sync = __commonJS({
79050
79080
  if (prefix && isAbsolute3(prefix) && !this.nomount) {
79051
79081
  var trail = /[\/\\]$/.test(prefix);
79052
79082
  if (prefix.charAt(0) === "/") {
79053
- prefix = path26.join(this.root, prefix);
79083
+ prefix = path27.join(this.root, prefix);
79054
79084
  } else {
79055
- prefix = path26.resolve(this.root, prefix);
79085
+ prefix = path27.resolve(this.root, prefix);
79056
79086
  if (trail)
79057
79087
  prefix += "/";
79058
79088
  }
@@ -79172,7 +79202,7 @@ var require_glob = __commonJS({
79172
79202
  var Minimatch3 = minimatch3.Minimatch;
79173
79203
  var inherits = require_inherits();
79174
79204
  var EE3 = require("events").EventEmitter;
79175
- var path26 = require("path");
79205
+ var path27 = require("path");
79176
79206
  var assert3 = require("assert");
79177
79207
  var isAbsolute3 = require_path_is_absolute();
79178
79208
  var globSync2 = require_sync();
@@ -79454,7 +79484,7 @@ var require_glob = __commonJS({
79454
79484
  e4 = prefix + e4;
79455
79485
  }
79456
79486
  if (e4.charAt(0) === "/" && !this.nomount) {
79457
- e4 = path26.join(this.root, e4);
79487
+ e4 = path27.join(this.root, e4);
79458
79488
  }
79459
79489
  this._emitMatch(index, e4);
79460
79490
  }
@@ -79643,9 +79673,9 @@ var require_glob = __commonJS({
79643
79673
  if (prefix && isAbsolute3(prefix) && !this.nomount) {
79644
79674
  var trail = /[\/\\]$/.test(prefix);
79645
79675
  if (prefix.charAt(0) === "/") {
79646
- prefix = path26.join(this.root, prefix);
79676
+ prefix = path27.join(this.root, prefix);
79647
79677
  } else {
79648
- prefix = path26.resolve(this.root, prefix);
79678
+ prefix = path27.resolve(this.root, prefix);
79649
79679
  if (trail)
79650
79680
  prefix += "/";
79651
79681
  }
@@ -79726,7 +79756,7 @@ var require_rimraf = __commonJS({
79726
79756
  module2.exports = rimraf2;
79727
79757
  rimraf2.sync = rimrafSync;
79728
79758
  var assert3 = require("assert");
79729
- var path26 = require("path");
79759
+ var path27 = require("path");
79730
79760
  var fs24 = require("fs");
79731
79761
  var glob2 = void 0;
79732
79762
  try {
@@ -79917,7 +79947,7 @@ var require_rimraf = __commonJS({
79917
79947
  return options.rmdir(p4, cb);
79918
79948
  var errState;
79919
79949
  files.forEach(function(f4) {
79920
- rimraf2(path26.join(p4, f4), options, function(er2) {
79950
+ rimraf2(path27.join(p4, f4), options, function(er2) {
79921
79951
  if (errState)
79922
79952
  return;
79923
79953
  if (er2)
@@ -79994,7 +80024,7 @@ var require_rimraf = __commonJS({
79994
80024
  assert3(p4);
79995
80025
  assert3(options);
79996
80026
  options.readdirSync(p4).forEach(function(f4) {
79997
- rimrafSync(path26.join(p4, f4), options);
80027
+ rimrafSync(path27.join(p4, f4), options);
79998
80028
  });
79999
80029
  var retries = isWindows4 ? 100 : 1;
80000
80030
  var i4 = 0;
@@ -80019,7 +80049,7 @@ var require_tmp = __commonJS({
80019
80049
  init_import_meta_url();
80020
80050
  var fs24 = require("fs");
80021
80051
  var os5 = require("os");
80022
- var path26 = require("path");
80052
+ var path27 = require("path");
80023
80053
  var crypto9 = require("crypto");
80024
80054
  var _c5 = { fs: fs24.constants, os: os5.constants };
80025
80055
  var RANDOM_CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
@@ -80226,35 +80256,35 @@ var require_tmp = __commonJS({
80226
80256
  return [actualOptions, callback];
80227
80257
  }
80228
80258
  function _resolvePath(name2, tmpDir, cb) {
80229
- const pathToResolve = path26.isAbsolute(name2) ? name2 : path26.join(tmpDir, name2);
80259
+ const pathToResolve = path27.isAbsolute(name2) ? name2 : path27.join(tmpDir, name2);
80230
80260
  fs24.stat(pathToResolve, function(err) {
80231
80261
  if (err) {
80232
- fs24.realpath(path26.dirname(pathToResolve), function(err2, parentDir) {
80262
+ fs24.realpath(path27.dirname(pathToResolve), function(err2, parentDir) {
80233
80263
  if (err2) return cb(err2);
80234
- cb(null, path26.join(parentDir, path26.basename(pathToResolve)));
80264
+ cb(null, path27.join(parentDir, path27.basename(pathToResolve)));
80235
80265
  });
80236
80266
  } else {
80237
- fs24.realpath(path26, cb);
80267
+ fs24.realpath(path27, cb);
80238
80268
  }
80239
80269
  });
80240
80270
  }
80241
80271
  function _resolvePathSync(name2, tmpDir) {
80242
- const pathToResolve = path26.isAbsolute(name2) ? name2 : path26.join(tmpDir, name2);
80272
+ const pathToResolve = path27.isAbsolute(name2) ? name2 : path27.join(tmpDir, name2);
80243
80273
  try {
80244
80274
  fs24.statSync(pathToResolve);
80245
80275
  return fs24.realpathSync(pathToResolve);
80246
80276
  } catch (_err) {
80247
- const parentDir = fs24.realpathSync(path26.dirname(pathToResolve));
80248
- return path26.join(parentDir, path26.basename(pathToResolve));
80277
+ const parentDir = fs24.realpathSync(path27.dirname(pathToResolve));
80278
+ return path27.join(parentDir, path27.basename(pathToResolve));
80249
80279
  }
80250
80280
  }
80251
80281
  function _generateTmpName(opts) {
80252
80282
  const tmpDir = opts.tmpdir;
80253
80283
  if (!_isUndefined(opts.name)) {
80254
- return path26.join(tmpDir, opts.dir, opts.name);
80284
+ return path27.join(tmpDir, opts.dir, opts.name);
80255
80285
  }
80256
80286
  if (!_isUndefined(opts.template)) {
80257
- return path26.join(tmpDir, opts.dir, opts.template).replace(TEMPLATE_PATTERN, _randomChars(6));
80287
+ return path27.join(tmpDir, opts.dir, opts.template).replace(TEMPLATE_PATTERN, _randomChars(6));
80258
80288
  }
80259
80289
  const name2 = [
80260
80290
  opts.prefix ? opts.prefix : "tmp",
@@ -80264,13 +80294,13 @@ var require_tmp = __commonJS({
80264
80294
  _randomChars(12),
80265
80295
  opts.postfix ? "-" + opts.postfix : ""
80266
80296
  ].join("");
80267
- return path26.join(tmpDir, opts.dir, name2);
80297
+ return path27.join(tmpDir, opts.dir, name2);
80268
80298
  }
80269
80299
  function _assertOptionsBase(options) {
80270
80300
  if (!_isUndefined(options.name)) {
80271
80301
  const name2 = options.name;
80272
- if (path26.isAbsolute(name2)) throw new Error(`name option must not contain an absolute path, found "${name2}".`);
80273
- const basename11 = path26.basename(name2);
80302
+ if (path27.isAbsolute(name2)) throw new Error(`name option must not contain an absolute path, found "${name2}".`);
80303
+ const basename11 = path27.basename(name2);
80274
80304
  if (basename11 === ".." || basename11 === "." || basename11 !== name2)
80275
80305
  throw new Error(`name option must not contain a path, found "${name2}".`);
80276
80306
  }
@@ -80292,7 +80322,7 @@ var require_tmp = __commonJS({
80292
80322
  if (_isUndefined(name2)) return cb(null);
80293
80323
  _resolvePath(name2, tmpDir, function(err, resolvedPath2) {
80294
80324
  if (err) return cb(err);
80295
- const relativePath = path26.relative(tmpDir, resolvedPath2);
80325
+ const relativePath = path27.relative(tmpDir, resolvedPath2);
80296
80326
  if (!resolvedPath2.startsWith(tmpDir)) {
80297
80327
  return cb(new Error(`${option} option must be relative to "${tmpDir}", found "${relativePath}".`));
80298
80328
  }
@@ -80302,7 +80332,7 @@ var require_tmp = __commonJS({
80302
80332
  function _getRelativePathSync(option, name2, tmpDir) {
80303
80333
  if (_isUndefined(name2)) return;
80304
80334
  const resolvedPath2 = _resolvePathSync(name2, tmpDir);
80305
- const relativePath = path26.relative(tmpDir, resolvedPath2);
80335
+ const relativePath = path27.relative(tmpDir, resolvedPath2);
80306
80336
  if (!resolvedPath2.startsWith(tmpDir)) {
80307
80337
  throw new Error(`${option} option must be relative to "${tmpDir}", found "${relativePath}".`);
80308
80338
  }
@@ -80476,7 +80506,7 @@ var init_async = __esm({
80476
80506
  async function scan(directory, results = []) {
80477
80507
  const files = await readdirp(directory);
80478
80508
  for (const f4 of files) {
80479
- const fullPath = path11.join(directory, f4);
80509
+ const fullPath = path12.join(directory, f4);
80480
80510
  const stat = await lstat2(fullPath);
80481
80511
  if (stat.isDirectory()) {
80482
80512
  await scan(fullPath, results);
@@ -80487,7 +80517,7 @@ async function scan(directory, results = []) {
80487
80517
  return results;
80488
80518
  }
80489
80519
  async function withTempDir(callback, cleanup = true, prefix = "craft-") {
80490
- const directory = await mkdtemp2(path11.join(os3.tmpdir(), prefix));
80520
+ const directory = await mkdtemp2(path12.join(os3.tmpdir(), prefix));
80491
80521
  try {
80492
80522
  return await callback(directory);
80493
80523
  } finally {
@@ -80527,7 +80557,7 @@ function detectContentType(artifactName) {
80527
80557
  async function loadGitignore(rootDir) {
80528
80558
  const ig = (0, import_ignore.default)();
80529
80559
  try {
80530
- const content = await (0, import_promises3.readFile)(path11.join(rootDir, ".gitignore"), "utf-8");
80560
+ const content = await (0, import_promises3.readFile)(path12.join(rootDir, ".gitignore"), "utf-8");
80531
80561
  ig.add(content);
80532
80562
  } catch {
80533
80563
  }
@@ -80544,8 +80574,8 @@ async function walkDirectory(rootDir, currentDir, ig, options, depth) {
80544
80574
  return results;
80545
80575
  }
80546
80576
  for await (const entry of dir) {
80547
- const fullPath = path11.join(currentDir, entry.name);
80548
- const relativePath = path11.relative(rootDir, fullPath);
80577
+ const fullPath = path12.join(currentDir, entry.name);
80578
+ const relativePath = path12.relative(rootDir, fullPath);
80549
80579
  if (ig.ignores(relativePath)) {
80550
80580
  continue;
80551
80581
  }
@@ -80570,7 +80600,7 @@ async function findFiles(rootDir, options = {}) {
80570
80600
  const ig = await loadGitignore(rootDir);
80571
80601
  return walkDirectory(rootDir, rootDir, ig, options, 0);
80572
80602
  }
80573
- var fs13, import_promises3, import_ignore, os3, path11, import_rimraf, tmp, util3, lstat2, readdirp, mkdtemp2, readdir3;
80603
+ var fs13, import_promises3, import_ignore, os3, path12, import_rimraf, tmp, util3, lstat2, readdirp, mkdtemp2, readdir3;
80574
80604
  var init_files = __esm({
80575
80605
  "src/utils/files.ts"() {
80576
80606
  init_import_meta_url();
@@ -80578,7 +80608,7 @@ var init_files = __esm({
80578
80608
  import_promises3 = require("fs/promises");
80579
80609
  import_ignore = __toESM(require_ignore());
80580
80610
  os3 = __toESM(require("os"));
80581
- path11 = __toESM(require("path"));
80611
+ path12 = __toESM(require("path"));
80582
80612
  import_rimraf = __toESM(require_rimraf());
80583
80613
  tmp = __toESM(require_tmp());
80584
80614
  util3 = __toESM(require("util"));
@@ -81112,13 +81142,13 @@ function lazyRequest(cb) {
81112
81142
  return data2;
81113
81143
  };
81114
81144
  }
81115
- var fs14, import_node_fetch3, path12, MAX_TRIES, MILLISECONDS, ARTIFACTS_POLLING_INTERVAL, DOWNLOAD_CONCURRENCY, GitHubArtifactProvider;
81145
+ var fs14, import_node_fetch3, path13, MAX_TRIES, MILLISECONDS, ARTIFACTS_POLLING_INTERVAL, DOWNLOAD_CONCURRENCY, GitHubArtifactProvider;
81116
81146
  var init_github = __esm({
81117
81147
  "src/artifact_providers/github.ts"() {
81118
81148
  init_import_meta_url();
81119
81149
  fs14 = __toESM(require("fs"));
81120
81150
  import_node_fetch3 = __toESM(require_lib9());
81121
- path12 = __toESM(require("path"));
81151
+ path13 = __toESM(require("path"));
81122
81152
  init_p_limit();
81123
81153
  init_base3();
81124
81154
  init_githubApi();
@@ -81142,7 +81172,7 @@ var init_github = __esm({
81142
81172
  * @inheritDoc
81143
81173
  */
81144
81174
  async doDownloadArtifact(artifact, downloadDirectory) {
81145
- const destination = path12.join(downloadDirectory, artifact.filename);
81175
+ const destination = path13.join(downloadDirectory, artifact.filename);
81146
81176
  this.logger.debug(
81147
81177
  `rename ${artifact.storedFile.downloadFilepath} to ${destination}`
81148
81178
  );
@@ -81393,11 +81423,11 @@ var init_github = __esm({
81393
81423
  await extractZipArchive(tempFilepath, tmpDir);
81394
81424
  (await scan(tmpDir)).forEach((file) => {
81395
81425
  artifacts.push({
81396
- filename: path12.basename(file),
81426
+ filename: path13.basename(file),
81397
81427
  mimeType: detectContentType(file),
81398
81428
  storedFile: {
81399
81429
  downloadFilepath: file,
81400
- filename: path12.basename(file),
81430
+ filename: path13.basename(file),
81401
81431
  size: fs14.lstatSync(file).size
81402
81432
  }
81403
81433
  });
@@ -88260,7 +88290,7 @@ var require_src34 = __commonJS({
88260
88290
  var fs24 = require("fs");
88261
88291
  var gaxios_1 = require_src31();
88262
88292
  var jws = require_jws();
88263
- var path26 = require("path");
88293
+ var path27 = require("path");
88264
88294
  var util_1 = require("util");
88265
88295
  var readFile4 = fs24.readFile ? (0, util_1.promisify)(fs24.readFile) : async () => {
88266
88296
  throw new ErrorWithCode("use key rather than keyFile.", "MISSING_CREDENTIALS");
@@ -88348,7 +88378,7 @@ var require_src34 = __commonJS({
88348
88378
  * @returns an object with privateKey and clientEmail properties
88349
88379
  */
88350
88380
  async getCredentials(keyFile) {
88351
- const ext3 = path26.extname(keyFile);
88381
+ const ext3 = path27.extname(keyFile);
88352
88382
  switch (ext3) {
88353
88383
  case ".json": {
88354
88384
  const key = await readFile4(keyFile, "utf8");
@@ -91062,7 +91092,7 @@ var require_googleauth = __commonJS({
91062
91092
  var fs24 = require("fs");
91063
91093
  var gcpMetadata = require_src33();
91064
91094
  var os5 = require("os");
91065
- var path26 = require("path");
91095
+ var path27 = require("path");
91066
91096
  var crypto_1 = require_crypto3();
91067
91097
  var transporters_1 = require_transporters();
91068
91098
  var computeclient_1 = require_computeclient();
@@ -91323,11 +91353,11 @@ var require_googleauth = __commonJS({
91323
91353
  } else {
91324
91354
  const home = process.env["HOME"];
91325
91355
  if (home) {
91326
- location = path26.join(home, ".config");
91356
+ location = path27.join(home, ".config");
91327
91357
  }
91328
91358
  }
91329
91359
  if (location) {
91330
- location = path26.join(location, "gcloud", "application_default_credentials.json");
91360
+ location = path27.join(location, "gcloud", "application_default_credentials.json");
91331
91361
  if (!fs24.existsSync(location)) {
91332
91362
  location = null;
91333
91363
  }
@@ -91745,7 +91775,7 @@ var require_googleauth = __commonJS({
91745
91775
  if (this.jsonContent) {
91746
91776
  return this._cacheClientFromJSON(this.jsonContent, this.clientOptions);
91747
91777
  } else if (this.keyFilename) {
91748
- const filePath = path26.resolve(this.keyFilename);
91778
+ const filePath = path27.resolve(this.keyFilename);
91749
91779
  const stream2 = fs24.createReadStream(filePath);
91750
91780
  return await this.fromStreamAsync(stream2, this.clientOptions);
91751
91781
  } else if (this.apiKey) {
@@ -98261,11 +98291,11 @@ var require_Mime = __commonJS({
98261
98291
  }
98262
98292
  }
98263
98293
  };
98264
- Mime.prototype.getType = function(path26) {
98265
- path26 = String(path26);
98266
- let last2 = path26.replace(/^.*[/\\]/, "").toLowerCase();
98294
+ Mime.prototype.getType = function(path27) {
98295
+ path27 = String(path27);
98296
+ let last2 = path27.replace(/^.*[/\\]/, "").toLowerCase();
98267
98297
  let ext3 = last2.replace(/^.*\./, "").toLowerCase();
98268
- let hasPath = last2.length < path26.length;
98298
+ let hasPath = last2.length < path27.length;
98269
98299
  let hasDot = ext3.length < last2.length - 1;
98270
98300
  return (hasDot || !hasPath) && this._types[ext3] || null;
98271
98301
  };
@@ -99039,10 +99069,10 @@ var init_acl = __esm({
99039
99069
  get(optionsOrCallback, cb) {
99040
99070
  const options = typeof optionsOrCallback === "object" ? optionsOrCallback : null;
99041
99071
  const callback = typeof optionsOrCallback === "function" ? optionsOrCallback : cb;
99042
- let path26 = "";
99072
+ let path27 = "";
99043
99073
  const query = {};
99044
99074
  if (options) {
99045
- path26 = "/" + encodeURIComponent(options.entity);
99075
+ path27 = "/" + encodeURIComponent(options.entity);
99046
99076
  if (options.generation) {
99047
99077
  query.generation = options.generation;
99048
99078
  }
@@ -99051,7 +99081,7 @@ var init_acl = __esm({
99051
99081
  }
99052
99082
  }
99053
99083
  this.request({
99054
- uri: path26,
99084
+ uri: path27,
99055
99085
  qs: query
99056
99086
  }, (err, resp) => {
99057
99087
  if (err) {
@@ -100751,10 +100781,10 @@ var init_signer = __esm({
100751
100781
  `;
100752
100782
  }).join("");
100753
100783
  }
100754
- getCanonicalRequest(method, path26, query, headers, signedHeaders, contentSha256) {
100784
+ getCanonicalRequest(method, path27, query, headers, signedHeaders, contentSha256) {
100755
100785
  return [
100756
100786
  method,
100757
- path26,
100787
+ path27,
100758
100788
  query,
100759
100789
  headers,
100760
100790
  signedHeaders,
@@ -105151,7 +105181,7 @@ var init_notification = __esm({
105151
105181
  });
105152
105182
 
105153
105183
  // node_modules/.pnpm/@google-cloud+storage@7.18.0/node_modules/@google-cloud/storage/build/esm/src/bucket.js
105154
- var import_paginator, import_promisify6, fs16, import_mime2, path13, import_p_limit2, import_util15, import_async_retry3, import_stream6, import_url2, BucketActionToHTTPMethod, AvailableServiceObjectMethods, BucketExceptionMessages, Bucket;
105184
+ var import_paginator, import_promisify6, fs16, import_mime2, path14, import_p_limit2, import_util15, import_async_retry3, import_stream6, import_url2, BucketActionToHTTPMethod, AvailableServiceObjectMethods, BucketExceptionMessages, Bucket;
105155
105185
  var init_bucket = __esm({
105156
105186
  "node_modules/.pnpm/@google-cloud+storage@7.18.0/node_modules/@google-cloud/storage/build/esm/src/bucket.js"() {
105157
105187
  init_import_meta_url();
@@ -105160,7 +105190,7 @@ var init_bucket = __esm({
105160
105190
  import_promisify6 = __toESM(require_src39(), 1);
105161
105191
  fs16 = __toESM(require("fs"), 1);
105162
105192
  import_mime2 = __toESM(require_mime(), 1);
105163
- path13 = __toESM(require("path"), 1);
105193
+ path14 = __toESM(require("path"), 1);
105164
105194
  import_p_limit2 = __toESM(require_p_limit(), 1);
105165
105195
  import_util15 = require("util");
105166
105196
  import_async_retry3 = __toESM(require_lib10(), 1);
@@ -108166,7 +108196,7 @@ var init_bucket = __esm({
108166
108196
  preconditionOpts: this.instancePreconditionOpts
108167
108197
  });
108168
108198
  } else {
108169
- const destination = path13.basename(pathString);
108199
+ const destination = path14.basename(pathString);
108170
108200
  newFile = this.file(destination, {
108171
108201
  encryptionKey: options.encryptionKey,
108172
108202
  kmsKeyName: options.kmsKeyName,
@@ -111197,12 +111227,12 @@ function getGCSCredsFromEnv(jsonVar, filepathVar) {
111197
111227
  credentials: { client_email, private_key }
111198
111228
  };
111199
111229
  }
111200
- var fs17, path14, DEFAULT_MAX_RETRIES, DEFAULT_UPLOAD_METADATA, CraftGCSClient;
111230
+ var fs17, path15, DEFAULT_MAX_RETRIES, DEFAULT_UPLOAD_METADATA, CraftGCSClient;
111201
111231
  var init_gcsApi = __esm({
111202
111232
  "src/utils/gcsApi.ts"() {
111203
111233
  init_import_meta_url();
111204
111234
  fs17 = __toESM(require("fs"));
111205
- path14 = __toESM(require("path"));
111235
+ path15 = __toESM(require("path"));
111206
111236
  init_src();
111207
111237
  init_logger2();
111208
111238
  init_errors2();
@@ -111241,7 +111271,7 @@ var init_gcsApi = __esm({
111241
111271
  * @param bucketPath Destination path with associated metadata
111242
111272
  */
111243
111273
  async uploadArtifact(artifactLocalPath, bucketPath) {
111244
- const filename = path14.basename(artifactLocalPath);
111274
+ const filename = path15.basename(artifactLocalPath);
111245
111275
  let pathInBucket = bucketPath.path;
111246
111276
  if (pathInBucket[0] === "/") {
111247
111277
  pathInBucket = pathInBucket.substring(1);
@@ -111262,7 +111292,7 @@ var init_gcsApi = __esm({
111262
111292
  ...contentType && { contentType }
111263
111293
  };
111264
111294
  const uploadConfig = {
111265
- destination: path14.posix.join(pathInBucket, filename),
111295
+ destination: path15.posix.join(pathInBucket, filename),
111266
111296
  gzip: true,
111267
111297
  metadata,
111268
111298
  resumable: !process.env.CI
@@ -111270,7 +111300,7 @@ var init_gcsApi = __esm({
111270
111300
  logger.trace(
111271
111301
  `File \`${filename}\`, upload options: ${formatJson(uploadConfig)}`
111272
111302
  );
111273
- const destination = path14.posix.join(this.bucketName, pathInBucket);
111303
+ const destination = path15.posix.join(this.bucketName, pathInBucket);
111274
111304
  await safeExec(async () => {
111275
111305
  logger.debug(
111276
111306
  `Attempting to upload \`${filename}\` to \`${destination}\`.`
@@ -111282,7 +111312,7 @@ var init_gcsApi = __esm({
111282
111312
  ${formatJson(err)}`);
111283
111313
  }
111284
111314
  logger.debug(
111285
- `Successfully uploaded \`${filename}\`. It can be downloaded by running \`gsutil cp ${path14.posix.join(
111315
+ `Successfully uploaded \`${filename}\`. It can be downloaded by running \`gsutil cp ${path15.posix.join(
111286
111316
  "gs://",
111287
111317
  this.bucketName,
111288
111318
  pathInBucket,
@@ -111302,13 +111332,13 @@ var init_gcsApi = __esm({
111302
111332
  * name on the artifact provider
111303
111333
  * @returns Path to the downloaded file, or `null` in dry-run mode (file won't exist)
111304
111334
  */
111305
- async downloadArtifact(downloadFilepath, destinationDirectory, destinationFilename = path14.basename(downloadFilepath)) {
111335
+ async downloadArtifact(downloadFilepath, destinationDirectory, destinationFilename = path15.basename(downloadFilepath)) {
111306
111336
  if (!fs17.existsSync(destinationDirectory)) {
111307
111337
  reportError(
111308
111338
  `Unable to download \`${destinationFilename}\` to \`${destinationDirectory}\` - directory does not exist!`
111309
111339
  );
111310
111340
  }
111311
- const localPath = path14.join(destinationDirectory, destinationFilename);
111341
+ const localPath = path15.join(destinationDirectory, destinationFilename);
111312
111342
  const result = await safeExec(async () => {
111313
111343
  logger.debug(
111314
111344
  `Attempting to download \`${destinationFilename}\` to \`${destinationDirectory}\`.`
@@ -111335,7 +111365,7 @@ var init_gcsApi = __esm({
111335
111365
  */
111336
111366
  convertToRemoteArtifact(gcsFile) {
111337
111367
  const { name: name2 } = gcsFile;
111338
- const filename = path14.basename(name2);
111368
+ const filename = path15.basename(name2);
111339
111369
  const {
111340
111370
  size,
111341
111371
  updated: lastUpdated,
@@ -111363,7 +111393,7 @@ var init_gcsApi = __esm({
111363
111393
  */
111364
111394
  async listArtifactsForRevision(repoOwner, repoName, revision) {
111365
111395
  let files = [];
111366
- const prefix = path14.posix.join(repoOwner, repoName, revision);
111396
+ const prefix = path15.posix.join(repoOwner, repoName, revision);
111367
111397
  logger.debug(`Looking for files starting with '${prefix}'`);
111368
111398
  try {
111369
111399
  [files] = await this.bucket.getFiles({ prefix });
@@ -112311,15 +112341,15 @@ var require_route = __commonJS({
112311
112341
  };
112312
112342
  }
112313
112343
  function wrapConversion(toModel, graph) {
112314
- const path26 = [graph[toModel].parent, toModel];
112344
+ const path27 = [graph[toModel].parent, toModel];
112315
112345
  let fn = conversions[graph[toModel].parent][toModel];
112316
112346
  let cur = graph[toModel].parent;
112317
112347
  while (graph[cur].parent) {
112318
- path26.unshift(graph[cur].parent);
112348
+ path27.unshift(graph[cur].parent);
112319
112349
  fn = link(conversions[graph[cur].parent][cur], fn);
112320
112350
  cur = graph[cur].parent;
112321
112351
  }
112322
- fn.conversion = path26;
112352
+ fn.conversion = path27;
112323
112353
  return fn;
112324
112354
  }
112325
112355
  module2.exports = function(fromModel) {
@@ -118261,10 +118291,10 @@ var init_brew = __esm({
118261
118291
  'Please specify Formula template in the "brew" target configuration.'
118262
118292
  );
118263
118293
  }
118264
- const { formula, path: path26 } = config3;
118294
+ const { formula, path: path27 } = config3;
118265
118295
  return {
118266
118296
  formula,
118267
- path: path26,
118297
+ path: path27,
118268
118298
  tapRepo: this.getTapRepo(),
118269
118299
  template
118270
118300
  };
@@ -118330,13 +118360,13 @@ var init_brew = __esm({
118330
118360
  * @param path The path to the formula
118331
118361
  * @returns The SHA of the file, if it exists; otherwise undefined
118332
118362
  */
118333
- async getFormulaSha(path26) {
118363
+ async getFormulaSha(path27) {
118334
118364
  try {
118335
118365
  const tap = this.brewConfig.tapRepo;
118336
- this.logger.debug(`Loading SHA for ${tap.owner}/${tap.repo}:${path26}`);
118366
+ this.logger.debug(`Loading SHA for ${tap.owner}/${tap.repo}:${path27}`);
118337
118367
  const response = await this.github.repos.getContent({
118338
118368
  ...tap,
118339
- path: path26
118369
+ path: path27
118340
118370
  });
118341
118371
  if (response.data instanceof Array) {
118342
118372
  return void 0;
@@ -118362,9 +118392,9 @@ var init_brew = __esm({
118362
118392
  );
118363
118393
  return void 0;
118364
118394
  }
118365
- const { path: path26, template, tapRepo } = this.brewConfig;
118395
+ const { path: path27, template, tapRepo } = this.brewConfig;
118366
118396
  const formulaName = this.resolveFormulaName(version2);
118367
- const formulaPath = path26 ? `${path26}/${formulaName}.rb` : `Formula/${formulaName}.rb`;
118397
+ const formulaPath = path27 ? `${path27}/${formulaName}.rb` : `Formula/${formulaName}.rb`;
118368
118398
  const filesList = await this.getArtifactsForRevision(revision);
118369
118399
  this.logger.debug("Downloading artifacts for the revision");
118370
118400
  this.logger.trace(filesList.map((file) => file.filename));
@@ -118415,12 +118445,12 @@ ${data2}`);
118415
118445
  });
118416
118446
 
118417
118447
  // src/targets/cocoapods.ts
118418
- var fs18, import_path7, import_util23, writeFile2, DEFAULT_COCOAPODS_BIN, COCOAPODS_BIN, CocoapodsTarget;
118448
+ var fs18, import_path8, import_util23, writeFile2, DEFAULT_COCOAPODS_BIN, COCOAPODS_BIN, CocoapodsTarget;
118419
118449
  var init_cocoapods = __esm({
118420
118450
  "src/targets/cocoapods.ts"() {
118421
118451
  init_import_meta_url();
118422
118452
  fs18 = __toESM(require("fs"));
118423
- import_path7 = require("path");
118453
+ import_path8 = require("path");
118424
118454
  import_util23 = require("util");
118425
118455
  init_errors2();
118426
118456
  init_files();
@@ -118480,10 +118510,10 @@ var init_cocoapods = __esm({
118480
118510
  reportError(`Podspec not found at ${owner}/${repo}:${specPath}`);
118481
118511
  return void 0;
118482
118512
  }
118483
- const fileName = (0, import_path7.basename)(specPath);
118513
+ const fileName = (0, import_path8.basename)(specPath);
118484
118514
  await withTempDir(
118485
118515
  async (directory) => {
118486
- const filePath = (0, import_path7.join)(directory, fileName);
118516
+ const filePath = (0, import_path8.join)(directory, fileName);
118487
118517
  await writeFile2(filePath, specContents, "utf8");
118488
118518
  this.logger.info(`Pushing podspec "${fileName}" to cocoapods...`);
118489
118519
  await spawnProcess(COCOAPODS_BIN, ["setup"]);
@@ -118508,12 +118538,12 @@ var init_cocoapods = __esm({
118508
118538
  });
118509
118539
 
118510
118540
  // src/targets/crates.ts
118511
- var fs19, path15, CARGO_CONFIG, CARGO_BIN, VERSION_ERROR, REPUBLISH_ERROR, MAX_ATTEMPTS, RETRY_DELAY_SECS2, RETRY_EXP_FACTOR2, CratesTarget;
118541
+ var fs19, path16, CARGO_CONFIG, CARGO_BIN, VERSION_ERROR, REPUBLISH_ERROR, MAX_ATTEMPTS, RETRY_DELAY_SECS2, RETRY_EXP_FACTOR2, CratesTarget;
118512
118542
  var init_crates = __esm({
118513
118543
  "src/targets/crates.ts"() {
118514
118544
  init_import_meta_url();
118515
118545
  fs19 = __toESM(require("fs"));
118516
- path15 = __toESM(require("path"));
118546
+ path16 = __toESM(require("path"));
118517
118547
  init_git();
118518
118548
  init_async();
118519
118549
  init_errors2();
@@ -118547,7 +118577,7 @@ var init_crates = __esm({
118547
118577
  * @throws Error if cargo is not found or command fails
118548
118578
  */
118549
118579
  static async bumpVersion(rootDir, newVersion) {
118550
- const cargoTomlPath = path15.join(rootDir, "Cargo.toml");
118580
+ const cargoTomlPath = path16.join(rootDir, "Cargo.toml");
118551
118581
  if (!fs19.existsSync(cargoTomlPath)) {
118552
118582
  return false;
118553
118583
  }
@@ -118744,7 +118774,7 @@ var init_crates = __esm({
118744
118774
  await git.checkout(revision);
118745
118775
  this.logger.info(`Checking out submodules`);
118746
118776
  await git.submoduleUpdate(["--init"]);
118747
- const gitdir = path15.join(directory, ".git");
118777
+ const gitdir = path16.join(directory, ".git");
118748
118778
  fs19.renameSync(gitdir, `${gitdir}.bak`);
118749
118779
  }
118750
118780
  /**
@@ -119342,12 +119372,12 @@ var init_gcs2 = __esm({
119342
119372
  });
119343
119373
 
119344
119374
  // src/targets/gem.ts
119345
- var import_promises4, import_path8, DEFAULT_GEM_BIN, GEM_BIN, DEFAULT_GEM_REGEX, GemTarget;
119375
+ var import_promises4, import_path9, DEFAULT_GEM_BIN, GEM_BIN, DEFAULT_GEM_REGEX, GemTarget;
119346
119376
  var init_gem = __esm({
119347
119377
  "src/targets/gem.ts"() {
119348
119378
  init_import_meta_url();
119349
119379
  import_promises4 = require("fs/promises");
119350
- import_path8 = require("path");
119380
+ import_path9 = require("path");
119351
119381
  init_errors2();
119352
119382
  init_files();
119353
119383
  init_system();
@@ -119389,8 +119419,8 @@ var init_gem = __esm({
119389
119419
  bumped = true;
119390
119420
  }
119391
119421
  }
119392
- const gemDir = (0, import_path8.dirname)(gemspecPath);
119393
- const libDir = (0, import_path8.join)(gemDir, "lib");
119422
+ const gemDir = (0, import_path9.dirname)(gemspecPath);
119423
+ const libDir = (0, import_path9.join)(gemDir, "lib");
119394
119424
  const libUpdated = await _GemTarget.updateVersionRbFiles(
119395
119425
  libDir,
119396
119426
  newVersion
@@ -119411,7 +119441,7 @@ var init_gem = __esm({
119411
119441
  return false;
119412
119442
  }
119413
119443
  for (const entry of entries) {
119414
- const fullPath = (0, import_path8.join)(dir, entry.name);
119444
+ const fullPath = (0, import_path9.join)(dir, entry.name);
119415
119445
  if (entry.isDirectory()) {
119416
119446
  const subUpdated = await _GemTarget.updateVersionRbFiles(
119417
119447
  fullPath,
@@ -119443,8 +119473,8 @@ var init_gem = __esm({
119443
119473
  * @param path Absolute path to the archive to upload
119444
119474
  * @returns A promise that resolves when the gem pushed
119445
119475
  */
119446
- async pushGem(path26) {
119447
- return spawnProcess(GEM_BIN, ["push", path26]);
119476
+ async pushGem(path27) {
119477
+ return spawnProcess(GEM_BIN, ["push", path27]);
119448
119478
  }
119449
119479
  /**
119450
119480
  * Pushes a gem to rubygems.org
@@ -119463,9 +119493,9 @@ var init_gem = __esm({
119463
119493
  }
119464
119494
  await Promise.all(
119465
119495
  packageFiles.map(async (file) => {
119466
- const path26 = await this.artifactProvider.downloadArtifact(file);
119496
+ const path27 = await this.artifactProvider.downloadArtifact(file);
119467
119497
  this.logger.info(`Pushing gem "${file.filename}"`);
119468
- return this.pushGem(path26);
119498
+ return this.pushGem(path27);
119469
119499
  })
119470
119500
  );
119471
119501
  this.logger.info("Successfully registered gem");
@@ -119475,12 +119505,12 @@ var init_gem = __esm({
119475
119505
  });
119476
119506
 
119477
119507
  // src/targets/ghPages.ts
119478
- var fs20, path16, DEFAULT_DEPLOY_ARCHIVE_REGEX, DEFAULT_DEPLOY_BRANCH, GhPagesTarget;
119508
+ var fs20, path17, DEFAULT_DEPLOY_ARCHIVE_REGEX, DEFAULT_DEPLOY_BRANCH, GhPagesTarget;
119479
119509
  var init_ghPages = __esm({
119480
119510
  "src/targets/ghPages.ts"() {
119481
119511
  init_import_meta_url();
119482
119512
  fs20 = __toESM(require("fs"));
119483
- path16 = __toESM(require("path"));
119513
+ path17 = __toESM(require("path"));
119484
119514
  init_errors2();
119485
119515
  init_files();
119486
119516
  init_githubApi();
@@ -119550,14 +119580,14 @@ var init_ghPages = __esm({
119550
119580
  this.logger.info(`Extracting "${archivePath}" to "${directory}"...`);
119551
119581
  await extractZipArchive(archivePath, directory);
119552
119582
  const newDirContents = fs20.readdirSync(directory).filter((f4) => f4 !== ".git");
119553
- if (newDirContents.length === 1 && fs20.statSync(path16.join(directory, newDirContents[0])).isDirectory()) {
119583
+ if (newDirContents.length === 1 && fs20.statSync(path17.join(directory, newDirContents[0])).isDirectory()) {
119554
119584
  this.logger.debug(
119555
119585
  "Single top-level directory found, moving files from it..."
119556
119586
  );
119557
- const innerDirPath = path16.join(directory, newDirContents[0]);
119587
+ const innerDirPath = path17.join(directory, newDirContents[0]);
119558
119588
  fs20.readdirSync(innerDirPath).forEach((item) => {
119559
- const srcPath = path16.join(innerDirPath, item);
119560
- const destPath = path16.join(directory, item);
119589
+ const srcPath = path17.join(innerDirPath, item);
119590
+ const destPath = path17.join(directory, item);
119561
119591
  fs20.renameSync(srcPath, destPath);
119562
119592
  });
119563
119593
  fs20.rmdirSync(innerDirPath);
@@ -121144,7 +121174,7 @@ function readReleaseConfig() {
121144
121174
  if (!configFileDir) {
121145
121175
  return { config: DEFAULT_RELEASE_CONFIG, isCustomConfig: false };
121146
121176
  }
121147
- const releaseConfigPath = (0, import_path9.join)(configFileDir, ".github", "release.yml");
121177
+ const releaseConfigPath = (0, import_path10.join)(configFileDir, ".github", "release.yml");
121148
121178
  try {
121149
121179
  const fileContents = (0, import_fs9.readFileSync)(releaseConfigPath, "utf8");
121150
121180
  const config3 = load(fileContents);
@@ -121810,12 +121840,12 @@ async function getPRAndLabelsFromCommit(hashes) {
121810
121840
  })
121811
121841
  );
121812
121842
  }
121813
- var import_fs9, import_path9, BUMP_TYPES, DEFAULT_CHANGELOG_PATH, DEFAULT_UNRELEASED_TITLE, SKIP_CHANGELOG_MAGIC_WORD, BODY_IN_CHANGELOG_MAGIC_WORD, DEFAULT_CHANGESET_BODY, VERSION_HEADER_LEVEL, SUBSECTION_HEADER_LEVEL, SCOPE_HEADER_LEVEL, MAX_COMMITS_PER_QUERY, MAX_LEFTOVERS, DEFAULT_RELEASE_CONFIG, releaseConfigCache, SHORT_SHA_LENGTH, changesetCache;
121843
+ var import_fs9, import_path10, BUMP_TYPES, DEFAULT_CHANGELOG_PATH, DEFAULT_UNRELEASED_TITLE, SKIP_CHANGELOG_MAGIC_WORD, BODY_IN_CHANGELOG_MAGIC_WORD, DEFAULT_CHANGESET_BODY, VERSION_HEADER_LEVEL, SUBSECTION_HEADER_LEVEL, SCOPE_HEADER_LEVEL, MAX_COMMITS_PER_QUERY, MAX_LEFTOVERS, DEFAULT_RELEASE_CONFIG, releaseConfigCache, SHORT_SHA_LENGTH, changesetCache;
121814
121844
  var init_changelog = __esm({
121815
121845
  "src/utils/changelog.ts"() {
121816
121846
  init_import_meta_url();
121817
121847
  import_fs9 = require("fs");
121818
- import_path9 = require("path");
121848
+ import_path10 = require("path");
121819
121849
  init_js_yaml();
121820
121850
  init_marked_esm();
121821
121851
  init_esm7();
@@ -121894,12 +121924,12 @@ function isLatestRelease(githubRelease, version2) {
121894
121924
  const versionToPublish = parseVersion(version2);
121895
121925
  return latestVersion && versionToPublish ? versionGreaterOrEqualThan(versionToPublish, latestVersion) : true;
121896
121926
  }
121897
- var import_fs10, import_path10, DEFAULT_CONTENT_TYPE, GitHubTarget;
121927
+ var import_fs10, import_path11, DEFAULT_CONTENT_TYPE, GitHubTarget;
121898
121928
  var init_github3 = __esm({
121899
121929
  "src/targets/github.ts"() {
121900
121930
  init_import_meta_url();
121901
121931
  import_fs10 = require("fs");
121902
- import_path10 = require("path");
121932
+ import_path11 = require("path");
121903
121933
  init_config2();
121904
121934
  init_project_config();
121905
121935
  init_changelog();
@@ -122068,8 +122098,8 @@ var init_github3 = __esm({
122068
122098
  * @param path Filesystem (local) path of the file to upload
122069
122099
  * @param contentType Optional content-type for uploading
122070
122100
  */
122071
- async uploadAsset(release3, path26, contentType) {
122072
- const name2 = (0, import_path10.basename)(path26);
122101
+ async uploadAsset(release3, path27, contentType) {
122102
+ const name2 = (0, import_path11.basename)(path27);
122073
122103
  return safeExec(async () => {
122074
122104
  process.stderr.write(
122075
122105
  `Uploading asset "${name2}" to ${this.githubConfig.owner}/${this.githubConfig.repo}:${release3.tag_name}
@@ -122078,7 +122108,7 @@ var init_github3 = __esm({
122078
122108
  try {
122079
122109
  const { url: url2 } = await this.handleGitHubUpload(
122080
122110
  release3,
122081
- path26,
122111
+ path27,
122082
122112
  contentType
122083
122113
  );
122084
122114
  process.stderr.write(`\u2714 Uploaded asset "${name2}".
@@ -122091,11 +122121,11 @@ var init_github3 = __esm({
122091
122121
  }
122092
122122
  }, `github.repos.uploadReleaseAsset(${name2})`);
122093
122123
  }
122094
- async handleGitHubUpload(release3, path26, contentType, retries = 3) {
122124
+ async handleGitHubUpload(release3, path27, contentType, retries = 3) {
122095
122125
  const contentTypeProcessed = contentType || DEFAULT_CONTENT_TYPE;
122096
- const stats = (0, import_fs10.statSync)(path26);
122097
- const name2 = (0, import_path10.basename)(path26);
122098
- const file = (0, import_fs10.createReadStream)(path26);
122126
+ const stats = (0, import_fs10.statSync)(path27);
122127
+ const name2 = (0, import_path11.basename)(path27);
122128
+ const file = (0, import_fs10.createReadStream)(path27);
122099
122129
  const params = {
122100
122130
  ...this.githubConfig,
122101
122131
  headers: {
@@ -122134,7 +122164,7 @@ var init_github3 = __esm({
122134
122164
  "Got an error when trying to upload an asset, deleting and retrying..."
122135
122165
  );
122136
122166
  await this.deleteAssetByName(params.release_id, params.name);
122137
- return this.handleGitHubUpload(release3, path26, contentType, --retries);
122167
+ return this.handleGitHubUpload(release3, path27, contentType, --retries);
122138
122168
  } finally {
122139
122169
  file.destroy();
122140
122170
  }
@@ -122288,7 +122318,7 @@ var init_github3 = __esm({
122288
122318
  try {
122289
122319
  await Promise.all(
122290
122320
  localArtifacts.map(
122291
- ({ path: path26, mimeType }) => this.uploadAsset(draftRelease, path26, mimeType)
122321
+ ({ path: path27, mimeType }) => this.uploadAsset(draftRelease, path27, mimeType)
122292
122322
  )
122293
122323
  );
122294
122324
  await this.publishRelease(draftRelease, { makeLatest });
@@ -123182,7 +123212,7 @@ var init_escape2 = __esm({
123182
123212
  });
123183
123213
 
123184
123214
  // node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/esm/index.js
123185
- var minimatch2, starDotExtRE2, starDotExtTest2, starDotExtTestDot2, starDotExtTestNocase2, starDotExtTestNocaseDot2, starDotStarRE2, starDotStarTest2, starDotStarTestDot2, dotStarRE2, dotStarTest2, starRE2, starTest2, starTestDot2, qmarksRE2, qmarksTestNocase2, qmarksTestNocaseDot2, qmarksTestDot2, qmarksTest2, qmarksTestNoExt2, qmarksTestNoExtDot2, defaultPlatform2, path17, sep4, GLOBSTAR2, qmark4, star4, twoStarDot2, twoStarNoDot2, filter2, ext2, defaults2, braceExpand2, makeRe2, match2, globMagic2, regExpEscape4, Minimatch2;
123215
+ var minimatch2, starDotExtRE2, starDotExtTest2, starDotExtTestDot2, starDotExtTestNocase2, starDotExtTestNocaseDot2, starDotStarRE2, starDotStarTest2, starDotStarTestDot2, dotStarRE2, dotStarTest2, starRE2, starTest2, starTestDot2, qmarksRE2, qmarksTestNocase2, qmarksTestNocaseDot2, qmarksTestDot2, qmarksTest2, qmarksTestNoExt2, qmarksTestNoExtDot2, defaultPlatform2, path18, sep4, GLOBSTAR2, qmark4, star4, twoStarDot2, twoStarNoDot2, filter2, ext2, defaults2, braceExpand2, makeRe2, match2, globMagic2, regExpEscape4, Minimatch2;
123186
123216
  var init_esm18 = __esm({
123187
123217
  "node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/esm/index.js"() {
123188
123218
  init_import_meta_url();
@@ -123252,11 +123282,11 @@ var init_esm18 = __esm({
123252
123282
  return (f4) => f4.length === len && f4 !== "." && f4 !== "..";
123253
123283
  };
123254
123284
  defaultPlatform2 = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
123255
- path17 = {
123285
+ path18 = {
123256
123286
  win32: { sep: "\\" },
123257
123287
  posix: { sep: "/" }
123258
123288
  };
123259
- sep4 = defaultPlatform2 === "win32" ? path17.win32.sep : path17.posix.sep;
123289
+ sep4 = defaultPlatform2 === "win32" ? path18.win32.sep : path18.posix.sep;
123260
123290
  minimatch2.sep = sep4;
123261
123291
  GLOBSTAR2 = Symbol("globstar **");
123262
123292
  minimatch2.GLOBSTAR = GLOBSTAR2;
@@ -125609,12 +125639,12 @@ var init_esm20 = __esm({
125609
125639
  /**
125610
125640
  * Get the Path object referenced by the string path, resolved from this Path
125611
125641
  */
125612
- resolve(path26) {
125613
- if (!path26) {
125642
+ resolve(path27) {
125643
+ if (!path27) {
125614
125644
  return this;
125615
125645
  }
125616
- const rootPath = this.getRootString(path26);
125617
- const dir = path26.substring(rootPath.length);
125646
+ const rootPath = this.getRootString(path27);
125647
+ const dir = path27.substring(rootPath.length);
125618
125648
  const dirParts = dir.split(this.splitSep);
125619
125649
  const result = rootPath ? this.getRoot(rootPath).#resolveParts(dirParts) : this.#resolveParts(dirParts);
125620
125650
  return result;
@@ -126366,8 +126396,8 @@ var init_esm20 = __esm({
126366
126396
  /**
126367
126397
  * @internal
126368
126398
  */
126369
- getRootString(path26) {
126370
- return import_node_path15.win32.parse(path26).root;
126399
+ getRootString(path27) {
126400
+ return import_node_path15.win32.parse(path27).root;
126371
126401
  }
126372
126402
  /**
126373
126403
  * @internal
@@ -126413,8 +126443,8 @@ var init_esm20 = __esm({
126413
126443
  /**
126414
126444
  * @internal
126415
126445
  */
126416
- getRootString(path26) {
126417
- return path26.startsWith("/") ? "/" : "";
126446
+ getRootString(path27) {
126447
+ return path27.startsWith("/") ? "/" : "";
126418
126448
  }
126419
126449
  /**
126420
126450
  * @internal
@@ -126503,11 +126533,11 @@ var init_esm20 = __esm({
126503
126533
  /**
126504
126534
  * Get the depth of a provided path, string, or the cwd
126505
126535
  */
126506
- depth(path26 = this.cwd) {
126507
- if (typeof path26 === "string") {
126508
- path26 = this.cwd.resolve(path26);
126536
+ depth(path27 = this.cwd) {
126537
+ if (typeof path27 === "string") {
126538
+ path27 = this.cwd.resolve(path27);
126509
126539
  }
126510
- return path26.depth();
126540
+ return path27.depth();
126511
126541
  }
126512
126542
  /**
126513
126543
  * Return the cache of child entries. Exposed so subclasses can create
@@ -126994,9 +127024,9 @@ var init_esm20 = __esm({
126994
127024
  process2();
126995
127025
  return results;
126996
127026
  }
126997
- chdir(path26 = this.cwd) {
127027
+ chdir(path27 = this.cwd) {
126998
127028
  const oldCwd = this.cwd;
126999
- this.cwd = typeof path26 === "string" ? this.cwd.resolve(path26) : path26;
127029
+ this.cwd = typeof path27 === "string" ? this.cwd.resolve(path27) : path27;
127000
127030
  this.cwd[setAsCwd](oldCwd);
127001
127031
  }
127002
127032
  };
@@ -127374,8 +127404,8 @@ var init_processor = __esm({
127374
127404
  }
127375
127405
  // match, absolute, ifdir
127376
127406
  entries() {
127377
- return [...this.store.entries()].map(([path26, n4]) => [
127378
- path26,
127407
+ return [...this.store.entries()].map(([path27, n4]) => [
127408
+ path27,
127379
127409
  !!(n4 & 2),
127380
127410
  !!(n4 & 1)
127381
127411
  ]);
@@ -127589,9 +127619,9 @@ var init_walker = __esm({
127589
127619
  signal;
127590
127620
  maxDepth;
127591
127621
  includeChildMatches;
127592
- constructor(patterns, path26, opts) {
127622
+ constructor(patterns, path27, opts) {
127593
127623
  this.patterns = patterns;
127594
- this.path = path26;
127624
+ this.path = path27;
127595
127625
  this.opts = opts;
127596
127626
  this.#sep = !opts.posix && opts.platform === "win32" ? "\\" : "/";
127597
127627
  this.includeChildMatches = opts.includeChildMatches !== false;
@@ -127610,11 +127640,11 @@ var init_walker = __esm({
127610
127640
  });
127611
127641
  }
127612
127642
  }
127613
- #ignored(path26) {
127614
- return this.seen.has(path26) || !!this.#ignore?.ignored?.(path26);
127643
+ #ignored(path27) {
127644
+ return this.seen.has(path27) || !!this.#ignore?.ignored?.(path27);
127615
127645
  }
127616
- #childrenIgnored(path26) {
127617
- return !!this.#ignore?.childrenIgnored?.(path26);
127646
+ #childrenIgnored(path27) {
127647
+ return !!this.#ignore?.childrenIgnored?.(path27);
127618
127648
  }
127619
127649
  // backpressure mechanism
127620
127650
  pause() {
@@ -127829,8 +127859,8 @@ var init_walker = __esm({
127829
127859
  };
127830
127860
  GlobWalker = class extends GlobUtil {
127831
127861
  matches = /* @__PURE__ */ new Set();
127832
- constructor(patterns, path26, opts) {
127833
- super(patterns, path26, opts);
127862
+ constructor(patterns, path27, opts) {
127863
+ super(patterns, path27, opts);
127834
127864
  }
127835
127865
  matchEmit(e4) {
127836
127866
  this.matches.add(e4);
@@ -127867,8 +127897,8 @@ var init_walker = __esm({
127867
127897
  };
127868
127898
  GlobStream = class extends GlobUtil {
127869
127899
  results;
127870
- constructor(patterns, path26, opts) {
127871
- super(patterns, path26, opts);
127900
+ constructor(patterns, path27, opts) {
127901
+ super(patterns, path27, opts);
127872
127902
  this.results = new Minipass({
127873
127903
  signal: this.signal,
127874
127904
  objectMode: true
@@ -128199,7 +128229,7 @@ function isNotFoundError(err) {
128199
128229
  return err instanceof Error && "code" in err && err.code === "ENOENT";
128200
128230
  }
128201
128231
  function readPackageJson(packagePath) {
128202
- const packageJsonPath = path18.join(packagePath, "package.json");
128232
+ const packageJsonPath = path19.join(packagePath, "package.json");
128203
128233
  try {
128204
128234
  return JSON.parse((0, import_fs12.readFileSync)(packageJsonPath, "utf-8"));
128205
128235
  } catch (err) {
@@ -128275,7 +128305,7 @@ async function discoverNpmYarnWorkspaces(rootDir) {
128275
128305
  if (workspacesGlobs.length === 0) {
128276
128306
  return null;
128277
128307
  }
128278
- const type2 = fileExists(path18.join(rootDir, "yarn.lock")) ? "yarn" : "npm";
128308
+ const type2 = fileExists(path19.join(rootDir, "yarn.lock")) ? "yarn" : "npm";
128279
128309
  const packages = await resolveWorkspaceGlobs(rootDir, workspacesGlobs);
128280
128310
  logger.debug(
128281
128311
  `Discovered ${packages.length} ${type2} workspace packages from ${workspacesGlobs.join(", ")}`
@@ -128283,7 +128313,7 @@ async function discoverNpmYarnWorkspaces(rootDir) {
128283
128313
  return { type: type2, packages };
128284
128314
  }
128285
128315
  async function discoverPnpmWorkspaces(rootDir) {
128286
- const pnpmWorkspacePath = path18.join(rootDir, "pnpm-workspace.yaml");
128316
+ const pnpmWorkspacePath = path19.join(rootDir, "pnpm-workspace.yaml");
128287
128317
  let config3;
128288
128318
  try {
128289
128319
  const content = (0, import_fs12.readFileSync)(pnpmWorkspacePath, "utf-8");
@@ -128391,12 +128421,12 @@ function topologicalSortPackages(packages) {
128391
128421
  return depthA - depthB;
128392
128422
  });
128393
128423
  }
128394
- var import_fs12, path18;
128424
+ var import_fs12, path19;
128395
128425
  var init_workspaces = __esm({
128396
128426
  "src/utils/workspaces.ts"() {
128397
128427
  init_import_meta_url();
128398
128428
  import_fs12 = require("fs");
128399
- path18 = __toESM(require("path"));
128429
+ path19 = __toESM(require("path"));
128400
128430
  init_js_yaml();
128401
128431
  init_esm21();
128402
128432
  init_logger2();
@@ -128461,13 +128491,13 @@ async function getPublishTag(version2, checkPackageName, npmConfig, logger3, otp
128461
128491
  }
128462
128492
  return void 0;
128463
128493
  }
128464
- var import_child_process3, import_fs13, import_path11, import_prompts2, import_fs14, NPM_CONFIG, YARN_CONFIG, NPM_BIN, YARN_BIN, NPM_MIN_MAJOR, NPM_MIN_MINOR, NPM_TOKEN_ENV_VAR, DEFAULT_PACKAGE_REGEX, NpmPackageAccess, NpmTarget;
128494
+ var import_child_process3, import_fs13, import_path12, import_prompts2, import_fs14, NPM_CONFIG, YARN_CONFIG, NPM_BIN, YARN_BIN, NPM_MIN_MAJOR, NPM_MIN_MINOR, NPM_TOKEN_ENV_VAR, DEFAULT_PACKAGE_REGEX, NpmPackageAccess, NpmTarget;
128465
128495
  var init_npm = __esm({
128466
128496
  "src/targets/npm.ts"() {
128467
128497
  init_import_meta_url();
128468
128498
  import_child_process3 = require("child_process");
128469
128499
  import_fs13 = require("fs");
128470
- import_path11 = require("path");
128500
+ import_path12 = require("path");
128471
128501
  import_prompts2 = __toESM(require_prompts3());
128472
128502
  init_errors2();
128473
128503
  init_filters();
@@ -128599,7 +128629,7 @@ var init_npm = __esm({
128599
128629
  * @throws Error if npm/yarn is not found or command fails
128600
128630
  */
128601
128631
  static async bumpVersion(rootDir, newVersion) {
128602
- const packageJsonPath = (0, import_path11.join)(rootDir, "package.json");
128632
+ const packageJsonPath = (0, import_path12.join)(rootDir, "package.json");
128603
128633
  if (!(0, import_fs13.existsSync)(packageJsonPath)) {
128604
128634
  return false;
128605
128635
  }
@@ -128655,7 +128685,7 @@ var init_npm = __esm({
128655
128685
  */
128656
128686
  static async bumpWorkspacePackagesIndividually(bin, packages, _newVersion, baseArgs) {
128657
128687
  for (const pkg of packages) {
128658
- const pkgJsonPath = (0, import_path11.join)(pkg.location, "package.json");
128688
+ const pkgJsonPath = (0, import_path12.join)(pkg.location, "package.json");
128659
128689
  if (!(0, import_fs13.existsSync)(pkgJsonPath)) {
128660
128690
  continue;
128661
128691
  }
@@ -128749,7 +128779,7 @@ var init_npm = __esm({
128749
128779
  * @param path Absolute path to the tarball to upload
128750
128780
  * @returns A promise that resolves when the upload has completed
128751
128781
  */
128752
- async publishPackage(path26, options) {
128782
+ async publishPackage(path27, options) {
128753
128783
  const args = ["publish", "--ignore-scripts"];
128754
128784
  let bin;
128755
128785
  if (this.npmConfig.useYarn) {
@@ -128777,7 +128807,7 @@ var init_npm = __esm({
128777
128807
  filePath,
128778
128808
  `//registry.npmjs.org/:_authToken=\${${NPM_TOKEN_ENV_VAR}}`
128779
128809
  );
128780
- args.push(path26);
128810
+ args.push(path27);
128781
128811
  return spawnProcess(bin, args, spawnOptions, {
128782
128812
  showStdout: true
128783
128813
  });
@@ -128815,9 +128845,9 @@ var init_npm = __esm({
128815
128845
  }
128816
128846
  await Promise.all(
128817
128847
  packageFiles.map(async (file) => {
128818
- const path26 = await this.artifactProvider.downloadArtifact(file);
128848
+ const path27 = await this.artifactProvider.downloadArtifact(file);
128819
128849
  this.logger.info(`Releasing ${file.filename} to NPM`);
128820
- return this.publishPackage(path26, publishOptions);
128850
+ return this.publishPackage(path27, publishOptions);
128821
128851
  })
128822
128852
  );
128823
128853
  this.logger.info("NPM release complete");
@@ -128827,12 +128857,12 @@ var init_npm = __esm({
128827
128857
  });
128828
128858
 
128829
128859
  // src/targets/nuget.ts
128830
- var import_fs15, import_path12, NUGET_DOTNET_BIN, DEFAULT_NUGET_SERVER_URL, DEFAULT_NUGET_REGEX, SYMBOLS_NUGET_REGEX, DOTNET_SPAWN_OPTIONS, NugetTarget;
128860
+ var import_fs15, import_path13, NUGET_DOTNET_BIN, DEFAULT_NUGET_SERVER_URL, DEFAULT_NUGET_REGEX, SYMBOLS_NUGET_REGEX, DOTNET_SPAWN_OPTIONS, NugetTarget;
128831
128861
  var init_nuget = __esm({
128832
128862
  "src/targets/nuget.ts"() {
128833
128863
  init_import_meta_url();
128834
128864
  import_fs15 = require("fs");
128835
- import_path12 = require("path");
128865
+ import_path13 = require("path");
128836
128866
  init_errors2();
128837
128867
  init_system();
128838
128868
  init_base5();
@@ -128859,7 +128889,7 @@ var init_nuget = __esm({
128859
128889
  */
128860
128890
  static async bumpVersion(rootDir, newVersion) {
128861
128891
  const csprojFiles = (0, import_fs15.readdirSync)(rootDir).filter((f4) => f4.endsWith(".csproj"));
128862
- const hasDotNet = csprojFiles.length > 0 || (0, import_fs15.existsSync)((0, import_path12.join)(rootDir, "Directory.Build.props"));
128892
+ const hasDotNet = csprojFiles.length > 0 || (0, import_fs15.existsSync)((0, import_path13.join)(rootDir, "Directory.Build.props"));
128863
128893
  if (!hasDotNet) {
128864
128894
  return false;
128865
128895
  }
@@ -128885,7 +128915,7 @@ var init_nuget = __esm({
128885
128915
  }
128886
128916
  }
128887
128917
  let bumped = false;
128888
- const buildPropsPath = (0, import_path12.join)(rootDir, "Directory.Build.props");
128918
+ const buildPropsPath = (0, import_path13.join)(rootDir, "Directory.Build.props");
128889
128919
  if ((0, import_fs15.existsSync)(buildPropsPath)) {
128890
128920
  if (_NugetTarget.updateVersionInXml(buildPropsPath, newVersion)) {
128891
128921
  bumped = true;
@@ -128893,7 +128923,7 @@ var init_nuget = __esm({
128893
128923
  }
128894
128924
  if (!bumped) {
128895
128925
  for (const csproj of csprojFiles) {
128896
- const csprojPath = (0, import_path12.join)(rootDir, csproj);
128926
+ const csprojPath = (0, import_path13.join)(rootDir, csproj);
128897
128927
  if (_NugetTarget.updateVersionInXml(csprojPath, newVersion)) {
128898
128928
  bumped = true;
128899
128929
  }
@@ -128958,11 +128988,11 @@ var init_nuget = __esm({
128958
128988
  * @param path Absolute path to the archive to upload
128959
128989
  * @returns A promise that resolves when the upload has completed
128960
128990
  */
128961
- async uploadAsset(path26) {
128991
+ async uploadAsset(path27) {
128962
128992
  const args = [
128963
128993
  "nuget",
128964
128994
  "push",
128965
- path26,
128995
+ path27,
128966
128996
  "--api-key",
128967
128997
  "${NUGET_API_TOKEN}",
128968
128998
  // Warning: `--skip-duplicate` means we will NOT error when a version
@@ -129005,7 +129035,7 @@ var init_nuget = __esm({
129005
129035
  );
129006
129036
  await Promise.all(
129007
129037
  packageFiles.map(async (file) => {
129008
- const path26 = await this.artifactProvider.downloadArtifact(file);
129038
+ const path27 = await this.artifactProvider.downloadArtifact(file);
129009
129039
  const symbolFileName = file.filename.replace(".nupkg", ".snupkg");
129010
129040
  const symbolFile = symbolFiles.find((f4) => f4.filename === symbolFileName);
129011
129041
  if (symbolFile) {
@@ -129014,7 +129044,7 @@ var init_nuget = __esm({
129014
129044
  this.logger.info(
129015
129045
  `Uploading file "${file.filename}" via "dotnet nuget"` + (symbolFile ? `, including symbol file "${symbolFile.filename}"` : "")
129016
129046
  );
129017
- return this.uploadAsset(path26);
129047
+ return this.uploadAsset(path27);
129018
129048
  })
129019
129049
  );
129020
129050
  this.logger.info("Nuget release complete");
@@ -129031,12 +129061,12 @@ function uniquePackages(filenames) {
129031
129061
  });
129032
129062
  return [...new Set(versions)].sort();
129033
129063
  }
129034
- var import_fs16, import_path13, WHEEL_REGEX, SentryPypiTarget;
129064
+ var import_fs16, import_path14, WHEEL_REGEX, SentryPypiTarget;
129035
129065
  var init_sentryPypi = __esm({
129036
129066
  "src/targets/sentryPypi.ts"() {
129037
129067
  init_import_meta_url();
129038
129068
  import_fs16 = __toESM(require("fs"));
129039
- import_path13 = __toESM(require("path"));
129069
+ import_path14 = __toESM(require("path"));
129040
129070
  init_files();
129041
129071
  init_errors2();
129042
129072
  init_system();
@@ -129094,7 +129124,7 @@ var init_sentryPypi = __esm({
129094
129124
  { cwd: directory },
129095
129125
  { enableInDryRunMode: true }
129096
129126
  );
129097
- const contents2 = import_fs16.default.readFileSync(import_path13.default.join(directory, "packages.ini"), {
129127
+ const contents2 = import_fs16.default.readFileSync(import_path14.default.join(directory, "packages.ini"), {
129098
129128
  encoding: "utf-8"
129099
129129
  });
129100
129130
  const tree2 = (await spawnProcess(
@@ -129153,12 +129183,12 @@ var init_sentryPypi = __esm({
129153
129183
  });
129154
129184
 
129155
129185
  // src/targets/pypi.ts
129156
- var import_fs17, import_path14, DEFAULT_TWINE_BIN, TWINE_BIN, DEFAULT_PYPI_REGEX, PypiTarget;
129186
+ var import_fs17, import_path15, DEFAULT_TWINE_BIN, TWINE_BIN, DEFAULT_PYPI_REGEX, PypiTarget;
129157
129187
  var init_pypi = __esm({
129158
129188
  "src/targets/pypi.ts"() {
129159
129189
  init_import_meta_url();
129160
129190
  import_fs17 = require("fs");
129161
- import_path14 = require("path");
129191
+ import_path15 = require("path");
129162
129192
  init_errors2();
129163
129193
  init_system();
129164
129194
  init_base5();
@@ -129186,7 +129216,7 @@ var init_pypi = __esm({
129186
129216
  * @throws Error if tool is not found or command fails
129187
129217
  */
129188
129218
  static async bumpVersion(rootDir, newVersion) {
129189
- const pyprojectPath = (0, import_path14.join)(rootDir, "pyproject.toml");
129219
+ const pyprojectPath = (0, import_path15.join)(rootDir, "pyproject.toml");
129190
129220
  if (!(0, import_fs17.existsSync)(pyprojectPath)) {
129191
129221
  return false;
129192
129222
  }
@@ -129377,20 +129407,20 @@ function createSymlinks(versionFilePath, newVersion, oldVersion) {
129377
129407
  throw new ConfigurationError(`Cannot parse version: "${parsedNewVersion}"`);
129378
129408
  }
129379
129409
  const parsedOldVersion = (oldVersion ? parseVersion(oldVersion) : void 0) || void 0;
129380
- const baseVersionName = path20.basename(versionFilePath);
129381
- const packageDir = path20.dirname(versionFilePath);
129410
+ const baseVersionName = path21.basename(versionFilePath);
129411
+ const packageDir = path21.dirname(versionFilePath);
129382
129412
  if (!parsedOldVersion || versionGreaterOrEqualThan(parsedNewVersion, parsedOldVersion)) {
129383
129413
  logger.debug('Symlink "latest.json"', {
129384
129414
  before: oldVersion,
129385
129415
  after: newVersion
129386
129416
  });
129387
- forceSymlink(baseVersionName, path20.join(packageDir, "latest.json"));
129417
+ forceSymlink(baseVersionName, path21.join(packageDir, "latest.json"));
129388
129418
  }
129389
129419
  const existingLinkedMajorVersion = getExistingSymlinkedVersion(
129390
- path20.join(packageDir, `${parsedNewVersion.major}.json`)
129420
+ path21.join(packageDir, `${parsedNewVersion.major}.json`)
129391
129421
  );
129392
129422
  const existingLinkedMinorVersion = getExistingSymlinkedVersion(
129393
- path20.join(
129423
+ path21.join(
129394
129424
  packageDir,
129395
129425
  `${parsedNewVersion.major}.${parsedNewVersion.minor}.json`
129396
129426
  )
@@ -129401,7 +129431,7 @@ function createSymlinks(versionFilePath, newVersion, oldVersion) {
129401
129431
  before: existingLinkedMajorVersion && semVerToString(existingLinkedMajorVersion),
129402
129432
  after: newVersion
129403
129433
  });
129404
- forceSymlink(baseVersionName, path20.join(packageDir, majorVersionLink));
129434
+ forceSymlink(baseVersionName, path21.join(packageDir, majorVersionLink));
129405
129435
  }
129406
129436
  if (!existingLinkedMinorVersion || versionGreaterOrEqualThan(parsedNewVersion, existingLinkedMinorVersion)) {
129407
129437
  const minorVersionLink = `${parsedNewVersion.major}.${parsedNewVersion.minor}.json`;
@@ -129409,7 +129439,7 @@ function createSymlinks(versionFilePath, newVersion, oldVersion) {
129409
129439
  before: existingLinkedMinorVersion && semVerToString(existingLinkedMinorVersion),
129410
129440
  after: newVersion
129411
129441
  });
129412
- forceSymlink(baseVersionName, path20.join(packageDir, minorVersionLink));
129442
+ forceSymlink(baseVersionName, path21.join(packageDir, minorVersionLink));
129413
129443
  }
129414
129444
  }
129415
129445
  function getExistingSymlinkedVersion(symlinkPath) {
@@ -129419,14 +129449,14 @@ function getExistingSymlinkedVersion(symlinkPath) {
129419
129449
  return null;
129420
129450
  }
129421
129451
  const linkedFile = fs22.readlinkSync(symlinkPath);
129422
- return parseVersion(path20.basename(linkedFile));
129452
+ return parseVersion(path21.basename(linkedFile));
129423
129453
  }
129424
- var fs22, path20;
129454
+ var fs22, path21;
129425
129455
  var init_symlink = __esm({
129426
129456
  "src/utils/symlink.ts"() {
129427
129457
  init_import_meta_url();
129428
129458
  fs22 = __toESM(require("fs"));
129429
- path20 = __toESM(require("path"));
129459
+ path21 = __toESM(require("path"));
129430
129460
  init_logger2();
129431
129461
  init_errors2();
129432
129462
  init_version9();
@@ -129436,7 +129466,7 @@ var init_symlink = __esm({
129436
129466
  // src/utils/packagePath.ts
129437
129467
  function getSdkPackagePath(canonical) {
129438
129468
  const packageDirs = parseCanonical(canonical);
129439
- return path21.join("packages", ...packageDirs);
129469
+ return path22.join("packages", ...packageDirs);
129440
129470
  }
129441
129471
  function getAppPackagePath(canonical) {
129442
129472
  const packageDirs = parseCanonical(canonical);
@@ -129445,7 +129475,7 @@ function getAppPackagePath(canonical) {
129445
129475
  `Invalid canonical entry for an app: ${canonical}`
129446
129476
  );
129447
129477
  }
129448
- return path21.join("apps", ...packageDirs.slice(1));
129478
+ return path22.join("apps", ...packageDirs.slice(1));
129449
129479
  }
129450
129480
  function getPackageDirPath(packageType, canonical) {
129451
129481
  switch (packageType) {
@@ -129476,11 +129506,11 @@ function parseCanonical(canonicalName) {
129476
129506
  }
129477
129507
  return [registry, ...packageDirs];
129478
129508
  }
129479
- var path21;
129509
+ var path22;
129480
129510
  var init_packagePath = __esm({
129481
129511
  "src/utils/packagePath.ts"() {
129482
129512
  init_import_meta_url();
129483
- path21 = __toESM(require("path"));
129513
+ path22 = __toESM(require("path"));
129484
129514
  init_registry();
129485
129515
  init_errors2();
129486
129516
  }
@@ -129508,12 +129538,12 @@ function createInitialManifest(initialData) {
129508
129538
  }
129509
129539
  async function getPackageManifest(baseDir, type2, canonicalName, version2, initialManifestData) {
129510
129540
  const packageDirPath = getPackageDirPath(type2, canonicalName);
129511
- const fullPackageDir = path22.join(baseDir, packageDirPath);
129512
- const versionFilePath = path22.join(fullPackageDir, `${version2}.json`);
129541
+ const fullPackageDir = path23.join(baseDir, packageDirPath);
129542
+ const versionFilePath = path23.join(fullPackageDir, `${version2}.json`);
129513
129543
  if ((0, import_fs18.existsSync)(versionFilePath)) {
129514
129544
  reportError(`Version file for "${version2}" already exists. Aborting.`);
129515
129545
  }
129516
- const packageManifestPath = path22.join(fullPackageDir, "latest.json");
129546
+ const packageManifestPath = path23.join(fullPackageDir, "latest.json");
129517
129547
  if (!(0, import_fs18.existsSync)(packageManifestPath)) {
129518
129548
  if (!initialManifestData) {
129519
129549
  reportError(
@@ -129550,12 +129580,12 @@ async function updateManifestSymlinks(updatedManifest, version2, versionFilePath
129550
129580
  await import_fs18.promises.writeFile(versionFilePath, manifestString);
129551
129581
  createSymlinks(versionFilePath, version2, previousVersion);
129552
129582
  }
129553
- var import_fs18, path22, DEFAULT_REGISTRY_REMOTE;
129583
+ var import_fs18, path23, DEFAULT_REGISTRY_REMOTE;
129554
129584
  var init_registry = __esm({
129555
129585
  "src/utils/registry.ts"() {
129556
129586
  init_import_meta_url();
129557
129587
  import_fs18 = require("fs");
129558
- path22 = __toESM(require("path"));
129588
+ path23 = __toESM(require("path"));
129559
129589
  init_logger2();
129560
129590
  init_symlink();
129561
129591
  init_errors2();
@@ -130267,14 +130297,14 @@ var require_aws4 = __commonJS({
130267
130297
  }
130268
130298
  if (pathStr !== "/") {
130269
130299
  if (normalizePath2) pathStr = pathStr.replace(/\/{2,}/g, "/");
130270
- pathStr = pathStr.split("/").reduce(function(path26, piece) {
130300
+ pathStr = pathStr.split("/").reduce(function(path27, piece) {
130271
130301
  if (normalizePath2 && piece === "..") {
130272
- path26.pop();
130302
+ path27.pop();
130273
130303
  } else if (!normalizePath2 || piece !== ".") {
130274
130304
  if (decodePath) piece = decodeURIComponent(piece.replace(/\+/g, " "));
130275
- path26.push(encodeRfc3986Full(piece));
130305
+ path27.push(encodeRfc3986Full(piece));
130276
130306
  }
130277
- return path26;
130307
+ return path27;
130278
130308
  }, []).join("/");
130279
130309
  if (pathStr[0] !== "/") pathStr = "/" + pathStr;
130280
130310
  if (decodeSlashesInPath) pathStr = pathStr.replace(/%2F/g, "/");
@@ -130327,25 +130357,25 @@ var require_aws4 = __commonJS({
130327
130357
  };
130328
130358
  };
130329
130359
  RequestSigner.prototype.parsePath = function() {
130330
- var path26 = this.request.path || "/";
130331
- if (/[^0-9A-Za-z;,/?:@&=+$\-_.!~*'()#%]/.test(path26)) {
130332
- path26 = encodeURI(decodeURI(path26));
130360
+ var path27 = this.request.path || "/";
130361
+ if (/[^0-9A-Za-z;,/?:@&=+$\-_.!~*'()#%]/.test(path27)) {
130362
+ path27 = encodeURI(decodeURI(path27));
130333
130363
  }
130334
- var queryIx = path26.indexOf("?"), query = null;
130364
+ var queryIx = path27.indexOf("?"), query = null;
130335
130365
  if (queryIx >= 0) {
130336
- query = querystring2.parse(path26.slice(queryIx + 1));
130337
- path26 = path26.slice(0, queryIx);
130366
+ query = querystring2.parse(path27.slice(queryIx + 1));
130367
+ path27 = path27.slice(0, queryIx);
130338
130368
  }
130339
130369
  this.parsedPath = {
130340
- path: path26,
130370
+ path: path27,
130341
130371
  query
130342
130372
  };
130343
130373
  };
130344
130374
  RequestSigner.prototype.formatPath = function() {
130345
- var path26 = this.parsedPath.path, query = this.parsedPath.query;
130346
- if (!query) return path26;
130375
+ var path27 = this.parsedPath.path, query = this.parsedPath.query;
130376
+ if (!query) return path27;
130347
130377
  if (query[""] != null) delete query[""];
130348
- return path26 + "?" + encodeRfc3986(querystring2.stringify(query));
130378
+ return path27 + "?" + encodeRfc3986(querystring2.stringify(query));
130349
130379
  };
130350
130380
  aws42.RequestSigner = RequestSigner;
130351
130381
  aws42.sign = function(request3, credentials) {
@@ -131265,9 +131295,9 @@ var init_createPaginator = __esm({
131265
131295
  command10 = withCommand(command10) ?? command10;
131266
131296
  return await client.send(command10, ...args);
131267
131297
  };
131268
- get = (fromObject, path26) => {
131298
+ get = (fromObject, path27) => {
131269
131299
  let cursor2 = fromObject;
131270
- const pathComponents = path26.split(".");
131300
+ const pathComponents = path27.split(".");
131271
131301
  for (const step of pathComponents) {
131272
131302
  if (!cursor2 || typeof cursor2 !== "object") {
131273
131303
  return void 0;
@@ -132299,12 +132329,12 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
132299
132329
  const password = request3.password ?? "";
132300
132330
  auth2 = `${username}:${password}`;
132301
132331
  }
132302
- let path26 = request3.path;
132332
+ let path27 = request3.path;
132303
132333
  if (queryString) {
132304
- path26 += `?${queryString}`;
132334
+ path27 += `?${queryString}`;
132305
132335
  }
132306
132336
  if (request3.fragment) {
132307
- path26 += `#${request3.fragment}`;
132337
+ path27 += `#${request3.fragment}`;
132308
132338
  }
132309
132339
  let hostname3 = request3.hostname ?? "";
132310
132340
  if (hostname3[0] === "[" && hostname3.endsWith("]")) {
@@ -132316,7 +132346,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
132316
132346
  headers: request3.headers,
132317
132347
  host: hostname3,
132318
132348
  method: request3.method,
132319
- path: path26,
132349
+ path: path27,
132320
132350
  port: request3.port,
132321
132351
  agent,
132322
132352
  auth: auth2
@@ -132571,16 +132601,16 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
132571
132601
  reject(err);
132572
132602
  };
132573
132603
  const queryString = querystringBuilder.buildQueryString(query || {});
132574
- let path26 = request3.path;
132604
+ let path27 = request3.path;
132575
132605
  if (queryString) {
132576
- path26 += `?${queryString}`;
132606
+ path27 += `?${queryString}`;
132577
132607
  }
132578
132608
  if (request3.fragment) {
132579
- path26 += `#${request3.fragment}`;
132609
+ path27 += `#${request3.fragment}`;
132580
132610
  }
132581
132611
  const req = session.request({
132582
132612
  ...request3.headers,
132583
- [http22.constants.HTTP2_HEADER_PATH]: path26,
132613
+ [http22.constants.HTTP2_HEADER_PATH]: path27,
132584
132614
  [http22.constants.HTTP2_HEADER_METHOD]: method
132585
132615
  });
132586
132616
  session.ref();
@@ -132770,13 +132800,13 @@ var require_dist_cjs15 = __commonJS({
132770
132800
  abortError.name = "AbortError";
132771
132801
  return Promise.reject(abortError);
132772
132802
  }
132773
- let path26 = request3.path;
132803
+ let path27 = request3.path;
132774
132804
  const queryString = querystringBuilder.buildQueryString(request3.query || {});
132775
132805
  if (queryString) {
132776
- path26 += `?${queryString}`;
132806
+ path27 += `?${queryString}`;
132777
132807
  }
132778
132808
  if (request3.fragment) {
132779
- path26 += `#${request3.fragment}`;
132809
+ path27 += `#${request3.fragment}`;
132780
132810
  }
132781
132811
  let auth2 = "";
132782
132812
  if (request3.username != null || request3.password != null) {
@@ -132785,7 +132815,7 @@ var require_dist_cjs15 = __commonJS({
132785
132815
  auth2 = `${username}:${password}@`;
132786
132816
  }
132787
132817
  const { port, method } = request3;
132788
- const url2 = `${request3.protocol}//${auth2}${request3.hostname}${port ? `:${port}` : ""}${path26}`;
132818
+ const url2 = `${request3.protocol}//${auth2}${request3.hostname}${port ? `:${port}` : ""}${path27}`;
132789
132819
  const body = method === "GET" || method === "HEAD" ? void 0 : request3.body;
132790
132820
  const requestOptions = {
132791
132821
  body,
@@ -134901,13 +134931,13 @@ function __disposeResources(env2) {
134901
134931
  }
134902
134932
  return next();
134903
134933
  }
134904
- function __rewriteRelativeImportExtension(path26, preserveJsx) {
134905
- if (typeof path26 === "string" && /^\.\.?\//.test(path26)) {
134906
- return path26.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m5, tsx, d5, ext3, cm) {
134934
+ function __rewriteRelativeImportExtension(path27, preserveJsx) {
134935
+ if (typeof path27 === "string" && /^\.\.?\//.test(path27)) {
134936
+ return path27.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m5, tsx, d5, ext3, cm) {
134907
134937
  return tsx ? preserveJsx ? ".jsx" : ".js" : d5 && (!ext3 || !cm) ? m5 : d5 + ext3 + "." + cm.toLowerCase() + "js";
134908
134938
  });
134909
134939
  }
134910
- return path26;
134940
+ return path27;
134911
134941
  }
134912
134942
  var extendStatics, __assign3, __createBinding, __setModuleDefault, ownKeys, _SuppressedError, tslib_es6_default;
134913
134943
  var init_tslib_es6 = __esm({
@@ -135803,11 +135833,11 @@ var init_HttpBindingProtocol = __esm({
135803
135833
  const opTraits = translateTraits(operationSchema.traits);
135804
135834
  if (opTraits.http) {
135805
135835
  request3.method = opTraits.http[0];
135806
- const [path26, search] = opTraits.http[1].split("?");
135836
+ const [path27, search] = opTraits.http[1].split("?");
135807
135837
  if (request3.path == "/") {
135808
- request3.path = path26;
135838
+ request3.path = path27;
135809
135839
  } else {
135810
- request3.path += path26;
135840
+ request3.path += path27;
135811
135841
  }
135812
135842
  const traitSearchParams = new URLSearchParams(search ?? "");
135813
135843
  Object.assign(query, Object.fromEntries(traitSearchParams));
@@ -136193,8 +136223,8 @@ var init_requestBuilder = __esm({
136193
136223
  return this;
136194
136224
  }
136195
136225
  p(memberName, labelValueProvider, uriLabel, isGreedyLabel) {
136196
- this.resolvePathStack.push((path26) => {
136197
- this.path = resolvedPath(path26, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel);
136226
+ this.resolvePathStack.push((path27) => {
136227
+ this.path = resolvedPath(path27, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel);
136198
136228
  });
136199
136229
  return this;
136200
136230
  }
@@ -136861,18 +136891,18 @@ var require_dist_cjs19 = __commonJS({
136861
136891
  }
136862
136892
  };
136863
136893
  var booleanEquals = (value1, value2) => value1 === value2;
136864
- var getAttrPathList = (path26) => {
136865
- const parts = path26.split(".");
136894
+ var getAttrPathList = (path27) => {
136895
+ const parts = path27.split(".");
136866
136896
  const pathList = [];
136867
136897
  for (const part of parts) {
136868
136898
  const squareBracketIndex = part.indexOf("[");
136869
136899
  if (squareBracketIndex !== -1) {
136870
136900
  if (part.indexOf("]") !== part.length - 1) {
136871
- throw new EndpointError(`Path: '${path26}' does not end with ']'`);
136901
+ throw new EndpointError(`Path: '${path27}' does not end with ']'`);
136872
136902
  }
136873
136903
  const arrayIndex = part.slice(squareBracketIndex + 1, -1);
136874
136904
  if (Number.isNaN(parseInt(arrayIndex))) {
136875
- throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path26}'`);
136905
+ throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path27}'`);
136876
136906
  }
136877
136907
  if (squareBracketIndex !== 0) {
136878
136908
  pathList.push(part.slice(0, squareBracketIndex));
@@ -136884,9 +136914,9 @@ var require_dist_cjs19 = __commonJS({
136884
136914
  }
136885
136915
  return pathList;
136886
136916
  };
136887
- var getAttr = (value, path26) => getAttrPathList(path26).reduce((acc, index) => {
136917
+ var getAttr = (value, path27) => getAttrPathList(path27).reduce((acc, index) => {
136888
136918
  if (typeof acc !== "object") {
136889
- throw new EndpointError(`Index '${index}' in '${path26}' not found in '${JSON.stringify(value)}'`);
136919
+ throw new EndpointError(`Index '${index}' in '${path27}' not found in '${JSON.stringify(value)}'`);
136890
136920
  } else if (Array.isArray(acc)) {
136891
136921
  return acc[parseInt(index)];
136892
136922
  }
@@ -136905,8 +136935,8 @@ var require_dist_cjs19 = __commonJS({
136905
136935
  return value;
136906
136936
  }
136907
136937
  if (typeof value === "object" && "hostname" in value) {
136908
- const { hostname: hostname4, port, protocol: protocol2 = "", path: path26 = "", query = {} } = value;
136909
- const url2 = new URL(`${protocol2}//${hostname4}${port ? `:${port}` : ""}${path26}`);
136938
+ const { hostname: hostname4, port, protocol: protocol2 = "", path: path27 = "", query = {} } = value;
136939
+ const url2 = new URL(`${protocol2}//${hostname4}${port ? `:${port}` : ""}${path27}`);
136910
136940
  url2.search = Object.entries(query).map(([k5, v8]) => `${k5}=${v8}`).join("&");
136911
136941
  return url2;
136912
136942
  }
@@ -138442,10 +138472,10 @@ ${longDate}
138442
138472
  ${credentialScope}
138443
138473
  ${utilHexEncoding.toHex(hashedRequest)}`;
138444
138474
  }
138445
- getCanonicalPath({ path: path26 }) {
138475
+ getCanonicalPath({ path: path27 }) {
138446
138476
  if (this.uriEscapePath) {
138447
138477
  const normalizedPathSegments = [];
138448
- for (const pathSegment of path26.split("/")) {
138478
+ for (const pathSegment of path27.split("/")) {
138449
138479
  if (pathSegment?.length === 0)
138450
138480
  continue;
138451
138481
  if (pathSegment === ".")
@@ -138456,11 +138486,11 @@ ${utilHexEncoding.toHex(hashedRequest)}`;
138456
138486
  normalizedPathSegments.push(pathSegment);
138457
138487
  }
138458
138488
  }
138459
- const normalizedPath = `${path26?.startsWith("/") ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && path26?.endsWith("/") ? "/" : ""}`;
138489
+ const normalizedPath = `${path27?.startsWith("/") ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && path27?.endsWith("/") ? "/" : ""}`;
138460
138490
  const doubleEncoded = utilUriEscape.escapeUri(normalizedPath);
138461
138491
  return doubleEncoded.replace(/%2F/g, "/");
138462
138492
  }
138463
- return path26;
138493
+ return path27;
138464
138494
  }
138465
138495
  validateResolvedCredentials(credentials) {
138466
138496
  if (typeof credentials !== "object" || typeof credentials.accessKeyId !== "string" || typeof credentials.secretAccessKey !== "string") {
@@ -139779,11 +139809,11 @@ var init_SmithyRpcV2CborProtocol = __esm({
139779
139809
  }
139780
139810
  }
139781
139811
  const { service, operation: operation2 } = (0, import_util_middleware5.getSmithyContext)(context2);
139782
- const path26 = `/service/${service}/operation/${operation2}`;
139812
+ const path27 = `/service/${service}/operation/${operation2}`;
139783
139813
  if (request3.path.endsWith("/")) {
139784
- request3.path += path26.slice(1);
139814
+ request3.path += path27.slice(1);
139785
139815
  } else {
139786
- request3.path += path26;
139816
+ request3.path += path27;
139787
139817
  }
139788
139818
  return request3;
139789
139819
  }
@@ -144319,14 +144349,14 @@ var require_readFile = __commonJS({
144319
144349
  var promises_1 = require("node:fs/promises");
144320
144350
  exports2.filePromises = {};
144321
144351
  exports2.fileIntercept = {};
144322
- var readFile4 = (path26, options) => {
144323
- if (exports2.fileIntercept[path26] !== void 0) {
144324
- return exports2.fileIntercept[path26];
144352
+ var readFile4 = (path27, options) => {
144353
+ if (exports2.fileIntercept[path27] !== void 0) {
144354
+ return exports2.fileIntercept[path27];
144325
144355
  }
144326
- if (!exports2.filePromises[path26] || options?.ignoreCache) {
144327
- exports2.filePromises[path26] = (0, promises_1.readFile)(path26, "utf8");
144356
+ if (!exports2.filePromises[path27] || options?.ignoreCache) {
144357
+ exports2.filePromises[path27] = (0, promises_1.readFile)(path27, "utf8");
144328
144358
  }
144329
- return exports2.filePromises[path26];
144359
+ return exports2.filePromises[path27];
144330
144360
  };
144331
144361
  exports2.readFile = readFile4;
144332
144362
  }
@@ -144340,7 +144370,7 @@ var require_dist_cjs33 = __commonJS({
144340
144370
  var getHomeDir = require_getHomeDir();
144341
144371
  var getSSOTokenFilepath = require_getSSOTokenFilepath();
144342
144372
  var getSSOTokenFromFile = require_getSSOTokenFromFile();
144343
- var path26 = require("path");
144373
+ var path27 = require("path");
144344
144374
  var types3 = require_dist_cjs();
144345
144375
  var readFile4 = require_readFile();
144346
144376
  var ENV_PROFILE = "AWS_PROFILE";
@@ -144362,9 +144392,9 @@ var require_dist_cjs33 = __commonJS({
144362
144392
  ...data2.default && { default: data2.default }
144363
144393
  });
144364
144394
  var ENV_CONFIG_PATH = "AWS_CONFIG_FILE";
144365
- var getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || path26.join(getHomeDir.getHomeDir(), ".aws", "config");
144395
+ var getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || path27.join(getHomeDir.getHomeDir(), ".aws", "config");
144366
144396
  var ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE";
144367
- var getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || path26.join(getHomeDir.getHomeDir(), ".aws", "credentials");
144397
+ var getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || path27.join(getHomeDir.getHomeDir(), ".aws", "credentials");
144368
144398
  var prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;
144369
144399
  var profileNameBlockList = ["__proto__", "profile __proto__"];
144370
144400
  var parseIni = (iniData) => {
@@ -144419,11 +144449,11 @@ var require_dist_cjs33 = __commonJS({
144419
144449
  const relativeHomeDirPrefix = "~/";
144420
144450
  let resolvedFilepath = filepath;
144421
144451
  if (filepath.startsWith(relativeHomeDirPrefix)) {
144422
- resolvedFilepath = path26.join(homeDir, filepath.slice(2));
144452
+ resolvedFilepath = path27.join(homeDir, filepath.slice(2));
144423
144453
  }
144424
144454
  let resolvedConfigFilepath = configFilepath;
144425
144455
  if (configFilepath.startsWith(relativeHomeDirPrefix)) {
144426
- resolvedConfigFilepath = path26.join(homeDir, configFilepath.slice(2));
144456
+ resolvedConfigFilepath = path27.join(homeDir, configFilepath.slice(2));
144427
144457
  }
144428
144458
  const parsedFiles = await Promise.all([
144429
144459
  readFile4.readFile(resolvedConfigFilepath, {
@@ -144462,8 +144492,8 @@ var require_dist_cjs33 = __commonJS({
144462
144492
  getFileRecord() {
144463
144493
  return readFile4.fileIntercept;
144464
144494
  },
144465
- interceptFile(path27, contents) {
144466
- readFile4.fileIntercept[path27] = Promise.resolve(contents);
144495
+ interceptFile(path28, contents) {
144496
+ readFile4.fileIntercept[path28] = Promise.resolve(contents);
144467
144497
  },
144468
144498
  getTokenRecord() {
144469
144499
  return getSSOTokenFromFile.tokenIntercept;
@@ -144705,8 +144735,8 @@ var require_dist_cjs35 = __commonJS({
144705
144735
  return endpoint2.url.href;
144706
144736
  }
144707
144737
  if ("hostname" in endpoint2) {
144708
- const { protocol, hostname: hostname3, port, path: path26 } = endpoint2;
144709
- return `${protocol}//${hostname3}${port ? ":" + port : ""}${path26}`;
144738
+ const { protocol, hostname: hostname3, port, path: path27 } = endpoint2;
144739
+ return `${protocol}//${hostname3}${port ? ":" + port : ""}${path27}`;
144710
144740
  }
144711
144741
  }
144712
144742
  return endpoint2;
@@ -159842,12 +159872,12 @@ var require_dist_cjs63 = __commonJS({
159842
159872
  // src/utils/awsLambdaLayerManager.ts
159843
159873
  async function getRegionsFromAws() {
159844
159874
  logger.debug("Fetching AWS regions...");
159845
- const { hostname: hostname3, path: path26, headers } = import_aws4.default.sign({
159875
+ const { hostname: hostname3, path: path27, headers } = import_aws4.default.sign({
159846
159876
  service: "ec2",
159847
159877
  region: "us-east-2",
159848
159878
  path: "/?Action=DescribeRegions&Version=2013-10-15"
159849
159879
  });
159850
- const url2 = `https://${hostname3}${path26}`;
159880
+ const url2 = `https://${hostname3}${path27}`;
159851
159881
  const response = await (0, import_node_fetch4.default)(url2, { headers });
159852
159882
  if (!response.ok) {
159853
159883
  throw new Error(
@@ -159966,12 +159996,12 @@ var init_awsLambdaLayerManager = __esm({
159966
159996
  });
159967
159997
 
159968
159998
  // src/targets/awsLambdaLayer.ts
159969
- var fs23, path23, AwsLambdaLayerTarget;
159999
+ var fs23, path24, AwsLambdaLayerTarget;
159970
160000
  var init_awsLambdaLayer = __esm({
159971
160001
  "src/targets/awsLambdaLayer.ts"() {
159972
160002
  init_import_meta_url();
159973
160003
  fs23 = __toESM(require("fs"));
159974
- path23 = __toESM(require("path"));
160004
+ path24 = __toESM(require("path"));
159975
160005
  init_githubApi();
159976
160006
  init_base5();
159977
160007
  init_errors2();
@@ -160163,7 +160193,7 @@ v${version2} for ${runtimeNames}`
160163
160193
  */
160164
160194
  createVersionSymlinks(directory, version2, versionFilepath) {
160165
160195
  this.logger.debug("Creating symlinks...");
160166
- const latestVersionPath = path23.posix.join(directory, "latest.json");
160196
+ const latestVersionPath = path24.posix.join(directory, "latest.json");
160167
160197
  if (fs23.existsSync(latestVersionPath)) {
160168
160198
  const previousVersion = fs23.readlinkSync(latestVersionPath).split(".json")[0];
160169
160199
  createSymlinks(versionFilepath, version2, previousVersion);
@@ -160212,7 +160242,7 @@ v${version2} for ${runtimeNames}`
160212
160242
  `${runtime.name}: ${publishedLayers.length} layers published.`
160213
160243
  );
160214
160244
  }
160215
- const runtimeBaseDir = path23.posix.join(
160245
+ const runtimeBaseDir = path24.posix.join(
160216
160246
  directory,
160217
160247
  this.AWS_REGISTRY_DIR,
160218
160248
  runtime.name
@@ -160236,11 +160266,11 @@ v${version2} for ${runtimeNames}`
160236
160266
  layer_name: resolvedLayerName,
160237
160267
  regions: regionsVersions
160238
160268
  };
160239
- const baseFilepath = path23.posix.join(
160269
+ const baseFilepath = path24.posix.join(
160240
160270
  runtimeBaseDir,
160241
160271
  this.BASE_FILENAME
160242
160272
  );
160243
- const newVersionFilepath = path23.posix.join(
160273
+ const newVersionFilepath = path24.posix.join(
160244
160274
  runtimeBaseDir,
160245
160275
  `${version2}.json`
160246
160276
  );
@@ -160415,18 +160445,18 @@ var require_nvar = __commonJS({
160415
160445
  const pathExplicitlySpecified = !!(opts || {}).path;
160416
160446
  let {
160417
160447
  // Destructure opts while stating defaults.
160418
- path: path26 = ".env",
160448
+ path: path27 = ".env",
160419
160449
  source = null,
160420
160450
  target = process.env,
160421
160451
  enoent = pathExplicitlySpecified ? "error" : "warn",
160422
160452
  override = "all"
160423
160453
  } = opts || {};
160424
160454
  try {
160425
- if (!source) source = require("fs").readFileSync(path26, "utf8");
160455
+ if (!source) source = require("fs").readFileSync(path27, "utf8");
160426
160456
  } catch (e4) {
160427
160457
  if (e4.code === "ENOENT") {
160428
160458
  if (!enoent) return;
160429
- if (enoent === "warn") return console.error(`nvar did not assign any values, as it could not locate ${path26}.`);
160459
+ if (enoent === "warn") return console.error(`nvar did not assign any values, as it could not locate ${path27}.`);
160430
160460
  }
160431
160461
  throw e4;
160432
160462
  }
@@ -160593,13 +160623,13 @@ var require_nvar_es5 = __commonJS({
160593
160623
  function nvar2(opts) {
160594
160624
  if (typeof opts === "string") opts = { path: opts };
160595
160625
  var pathExplicitlySpecified = !!(opts || {}).path;
160596
- var _ref = opts || {}, _ref$path = _ref.path, path26 = _ref$path === void 0 ? ".env" : _ref$path, _ref$source = _ref.source, source = _ref$source === void 0 ? null : _ref$source, _ref$target = _ref.target, target = _ref$target === void 0 ? process.env : _ref$target, _ref$enoent = _ref.enoent, enoent = _ref$enoent === void 0 ? pathExplicitlySpecified ? "error" : "warn" : _ref$enoent, _ref$override = _ref.override, override = _ref$override === void 0 ? "all" : _ref$override;
160626
+ var _ref = opts || {}, _ref$path = _ref.path, path27 = _ref$path === void 0 ? ".env" : _ref$path, _ref$source = _ref.source, source = _ref$source === void 0 ? null : _ref$source, _ref$target = _ref.target, target = _ref$target === void 0 ? process.env : _ref$target, _ref$enoent = _ref.enoent, enoent = _ref$enoent === void 0 ? pathExplicitlySpecified ? "error" : "warn" : _ref$enoent, _ref$override = _ref.override, override = _ref$override === void 0 ? "all" : _ref$override;
160597
160627
  try {
160598
- if (!source) source = require("fs").readFileSync(path26, "utf8");
160628
+ if (!source) source = require("fs").readFileSync(path27, "utf8");
160599
160629
  } catch (e4) {
160600
160630
  if (e4.code === "ENOENT") {
160601
160631
  if (!enoent) return;
160602
- if (enoent === "warn") return console.error("nvar did not assign any values, as it could not locate " + path26 + ".");
160632
+ if (enoent === "warn") return console.error("nvar did not assign any values, as it could not locate " + path27 + ".");
160603
160633
  }
160604
160634
  throw e4;
160605
160635
  }
@@ -160792,15 +160822,15 @@ function envHasVar(envVar) {
160792
160822
  }
160793
160823
  return true;
160794
160824
  }
160795
- function checkFileIsPrivate(path26) {
160825
+ function checkFileIsPrivate(path27) {
160796
160826
  const FULL_MODE_MASK = 511;
160797
160827
  const GROUP_MODE_MASK = 56;
160798
160828
  const OTHER_MODE_MASK = 7;
160799
- const mode = (0, import_fs19.statSync)(path26).mode;
160829
+ const mode = (0, import_fs19.statSync)(path27).mode;
160800
160830
  if (mode & GROUP_MODE_MASK || mode & OTHER_MODE_MASK) {
160801
160831
  const perms = (mode & FULL_MODE_MASK).toString(8);
160802
160832
  logger.warn(
160803
- `Permissions 0${perms} for file "${path26}" are too open. Consider making it readable only for the user.`
160833
+ `Permissions 0${perms} for file "${path27}" are too open. Consider making it readable only for the user.`
160804
160834
  );
160805
160835
  return false;
160806
160836
  }
@@ -160808,7 +160838,7 @@ function checkFileIsPrivate(path26) {
160808
160838
  }
160809
160839
  function readEnvironmentConfig(overwriteExisting = false) {
160810
160840
  let newEnv = {};
160811
- const homedirEnvFile = (0, import_path15.join)(os4.homedir(), ENV_FILE_NAME);
160841
+ const homedirEnvFile = (0, import_path16.join)(os4.homedir(), ENV_FILE_NAME);
160812
160842
  if ((0, import_fs19.existsSync)(homedirEnvFile)) {
160813
160843
  logger.debug(
160814
160844
  "Found environment file in the home directory:",
@@ -160826,7 +160856,7 @@ function readEnvironmentConfig(overwriteExisting = false) {
160826
160856
  );
160827
160857
  }
160828
160858
  const configFileDir = getConfigFileDir();
160829
- const configDirEnvFile = configFileDir && (0, import_path15.join)(configFileDir, ENV_FILE_NAME);
160859
+ const configDirEnvFile = configFileDir && (0, import_path16.join)(configFileDir, ENV_FILE_NAME);
160830
160860
  if (!configDirEnvFile) {
160831
160861
  logger.debug("No configuration file found:", CONFIG_FILE_NAME);
160832
160862
  } else if (configDirEnvFile && (0, import_fs19.existsSync)(configDirEnvFile)) {
@@ -160860,12 +160890,12 @@ function checkEnvForPrerequisite(...varList) {
160860
160890
  );
160861
160891
  }
160862
160892
  }
160863
- var import_fs19, import_path15, import_nvar, os4, ENV_FILE_NAME;
160893
+ var import_fs19, import_path16, import_nvar, os4, ENV_FILE_NAME;
160864
160894
  var init_env = __esm({
160865
160895
  "src/utils/env.ts"() {
160866
160896
  init_import_meta_url();
160867
160897
  import_fs19 = require("fs");
160868
- import_path15 = require("path");
160898
+ import_path16 = require("path");
160869
160899
  import_nvar = __toESM(require_lib11());
160870
160900
  init_config2();
160871
160901
  init_errors2();
@@ -160877,29 +160907,29 @@ var init_env = __esm({
160877
160907
 
160878
160908
  // src/utils/gpg.ts
160879
160909
  async function importGPGKey(privateKey) {
160880
- const PRIVATE_KEY_FILE = path24.join((0, import_os2.tmpdir)(), "private-key.asc");
160910
+ const PRIVATE_KEY_FILE = path25.join((0, import_os2.tmpdir)(), "private-key.asc");
160881
160911
  await import_fs20.promises.writeFile(PRIVATE_KEY_FILE, privateKey);
160882
160912
  await spawnProcess(`gpg`, ["--batch", "--import", PRIVATE_KEY_FILE]);
160883
160913
  await import_fs20.promises.unlink(PRIVATE_KEY_FILE);
160884
160914
  }
160885
- var import_os2, import_fs20, path24;
160915
+ var import_os2, import_fs20, path25;
160886
160916
  var init_gpg = __esm({
160887
160917
  "src/utils/gpg.ts"() {
160888
160918
  init_import_meta_url();
160889
160919
  import_os2 = require("os");
160890
160920
  import_fs20 = require("fs");
160891
- path24 = __toESM(require("path"));
160921
+ path25 = __toESM(require("path"));
160892
160922
  init_system();
160893
160923
  }
160894
160924
  });
160895
160925
 
160896
160926
  // src/targets/maven.ts
160897
- var import_path16, import_fs21, import_node_fetch5, POM_DEFAULT_FILENAME, POM_FILE_EXT, BOM_FILE_KEY_REGEXP, NEXUS_API_BASE_URL, CENTRAL_API_BASE_URL, NEXUS_RETRY_DELAY, SONATYPE_RETRY_DEADLINE, CENTRAL_RETRY_DELAY, targetSecrets, targetOptions, MavenTarget;
160927
+ var import_path17, import_fs21, import_node_fetch5, POM_DEFAULT_FILENAME, POM_FILE_EXT, BOM_FILE_KEY_REGEXP, NEXUS_API_BASE_URL, CENTRAL_API_BASE_URL, NEXUS_RETRY_DELAY, SONATYPE_RETRY_DEADLINE, CENTRAL_RETRY_DELAY, targetSecrets, targetOptions, MavenTarget;
160898
160928
  var init_maven = __esm({
160899
160929
  "src/targets/maven.ts"() {
160900
160930
  init_import_meta_url();
160901
160931
  init_base5();
160902
- import_path16 = require("path");
160932
+ import_path17 = require("path");
160903
160933
  import_fs21 = require("fs");
160904
160934
  import_node_fetch5 = __toESM(require_lib9());
160905
160935
  init_system();
@@ -161093,8 +161123,8 @@ var init_maven = __esm({
161093
161123
  this.logger.debug(`Extracting ${artifact.filename}: `, downloadedPkgPath);
161094
161124
  await withTempDir(async (dir) => {
161095
161125
  await extractZipArchive(downloadedPkgPath, dir);
161096
- const pkgName = (0, import_path16.basename)(artifact.filename, ".zip");
161097
- const distDir = (0, import_path16.join)(dir, pkgName);
161126
+ const pkgName = (0, import_path17.basename)(artifact.filename, ".zip");
161127
+ const distDir = (0, import_path17.join)(dir, pkgName);
161098
161128
  await this.uploadDistribution(distDir);
161099
161129
  });
161100
161130
  }
@@ -161123,12 +161153,12 @@ var init_maven = __esm({
161123
161153
  * `undefined` if there isn't any.
161124
161154
  */
161125
161155
  async getBomFileInDist(distDir) {
161126
- const pomFilepath = (0, import_path16.join)(distDir, POM_DEFAULT_FILENAME);
161156
+ const pomFilepath = (0, import_path17.join)(distDir, POM_DEFAULT_FILENAME);
161127
161157
  if (await this.isBomFile(pomFilepath)) {
161128
161158
  return pomFilepath;
161129
161159
  }
161130
161160
  const filesInDir = await import_fs21.promises.readdir(distDir);
161131
- const potentialPoms = filesInDir.filter((f4) => f4 !== POM_DEFAULT_FILENAME && (0, import_path16.extname)(f4) === POM_FILE_EXT).map((f4) => (0, import_path16.join)(distDir, f4));
161161
+ const potentialPoms = filesInDir.filter((f4) => f4 !== POM_DEFAULT_FILENAME && (0, import_path17.extname)(f4) === POM_FILE_EXT).map((f4) => (0, import_path17.join)(distDir, f4));
161132
161162
  return potentialPoms.find((f4) => this.isBomFile(f4));
161133
161163
  }
161134
161164
  /**
@@ -161170,7 +161200,7 @@ Error:
161170
161200
  }
161171
161201
  async uploadKmpPomDistribution(distDir) {
161172
161202
  if (this.mavenConfig.kmp !== false) {
161173
- const moduleName = (0, import_path16.parse)(distDir).base;
161203
+ const moduleName = (0, import_path17.parse)(distDir).base;
161174
161204
  const isRootDistDir = this.mavenConfig.kmp.rootDistDirRegex.test(moduleName);
161175
161205
  const isAppleDistDir = this.mavenConfig.kmp.appleDistDirRegex.test(moduleName);
161176
161206
  const isKlibDistDir = this.mavenConfig.kmp.klibDistDirRegex.test(moduleName);
@@ -161281,7 +161311,7 @@ Error:
161281
161311
  * within the distribution directory.
161282
161312
  */
161283
161313
  async getPomFileInDist(distDir) {
161284
- const pomFilepath = (0, import_path16.join)(distDir, "pom-default.xml");
161314
+ const pomFilepath = (0, import_path17.join)(distDir, "pom-default.xml");
161285
161315
  try {
161286
161316
  const stat = await import_fs21.promises.stat(pomFilepath);
161287
161317
  if (stat.isFile()) {
@@ -161313,7 +161343,7 @@ Error:
161313
161343
  * making it fit for mvn publishing.
161314
161344
  */
161315
161345
  async fixModuleFileName(distDir, moduleFile) {
161316
- const fallbackFile = (0, import_path16.join)(distDir, "module.json");
161346
+ const fallbackFile = (0, import_path17.join)(distDir, "module.json");
161317
161347
  if (!await this.fileExists(moduleFile) && await this.fileExists(fallbackFile)) {
161318
161348
  await import_fs21.promises.rename(fallbackFile, moduleFile);
161319
161349
  }
@@ -161348,13 +161378,13 @@ Error:
161348
161378
  * @returns record of required files.
161349
161379
  */
161350
161380
  getFilesForMavenPomDist(distDir) {
161351
- const moduleName = (0, import_path16.parse)(distDir).base;
161381
+ const moduleName = (0, import_path17.parse)(distDir).base;
161352
161382
  return {
161353
- targetFile: (0, import_path16.join)(distDir, this.getTargetFilename(distDir)),
161354
- javadocFile: (0, import_path16.join)(distDir, `${moduleName}-javadoc.jar`),
161355
- sourcesFile: (0, import_path16.join)(distDir, `${moduleName}-sources.jar`),
161356
- pomFile: (0, import_path16.join)(distDir, "pom-default.xml"),
161357
- moduleFile: (0, import_path16.join)(distDir, `${moduleName}.module`)
161383
+ targetFile: (0, import_path17.join)(distDir, this.getTargetFilename(distDir)),
161384
+ javadocFile: (0, import_path17.join)(distDir, `${moduleName}-javadoc.jar`),
161385
+ sourcesFile: (0, import_path17.join)(distDir, `${moduleName}-sources.jar`),
161386
+ pomFile: (0, import_path17.join)(distDir, "pom-default.xml"),
161387
+ moduleFile: (0, import_path17.join)(distDir, `${moduleName}.module`)
161358
161388
  };
161359
161389
  }
161360
161390
  /**
@@ -161367,24 +161397,24 @@ Error:
161367
161397
  async getFilesForKmpMavenPomDist(distDir) {
161368
161398
  const files = this.getFilesForMavenPomDist(distDir);
161369
161399
  await this.fixModuleFileName(distDir, files.moduleFile);
161370
- const moduleName = (0, import_path16.parse)(distDir).base;
161400
+ const moduleName = (0, import_path17.parse)(distDir).base;
161371
161401
  if (this.mavenConfig.kmp !== false) {
161372
161402
  const { klibDistDirRegex, appleDistDirRegex, rootDistDirRegex } = this.mavenConfig.kmp;
161373
161403
  const isRootDistDir = rootDistDirRegex.test(moduleName);
161374
161404
  const isAppleDistDir = appleDistDirRegex.test(moduleName);
161375
161405
  const isKlibDistDir = klibDistDirRegex.test(moduleName);
161376
161406
  if (isRootDistDir) {
161377
- files["allFile"] = (0, import_path16.join)(distDir, `${moduleName}-all.jar`);
161378
- files["kotlinToolingMetadataFile"] = (0, import_path16.join)(
161407
+ files["allFile"] = (0, import_path17.join)(distDir, `${moduleName}-all.jar`);
161408
+ files["kotlinToolingMetadataFile"] = (0, import_path17.join)(
161379
161409
  distDir,
161380
161410
  `${moduleName}-kotlin-tooling-metadata.json`
161381
161411
  );
161382
161412
  } else if (isAppleDistDir) {
161383
- files["metadataFile"] = (0, import_path16.join)(distDir, `${moduleName}-metadata.jar`);
161384
- const cinteropFiles = (await import_fs21.promises.readdir(distDir)).filter((file) => file.includes("cinterop")).map((file) => (0, import_path16.join)(distDir, file));
161413
+ files["metadataFile"] = (0, import_path17.join)(distDir, `${moduleName}-metadata.jar`);
161414
+ const cinteropFiles = (await import_fs21.promises.readdir(distDir)).filter((file) => file.includes("cinterop")).map((file) => (0, import_path17.join)(distDir, file));
161385
161415
  files["klibFiles"] = cinteropFiles;
161386
161416
  } else if (isKlibDistDir) {
161387
- files["klibFiles"] = [(0, import_path16.join)(distDir, `${moduleName}.klib`)];
161417
+ files["klibFiles"] = [(0, import_path17.join)(distDir, `${moduleName}.klib`)];
161388
161418
  }
161389
161419
  }
161390
161420
  return files;
@@ -161404,7 +161434,7 @@ Error:
161404
161434
  * @returns the target file name.
161405
161435
  */
161406
161436
  getTargetFilename(distDir) {
161407
- const moduleName = (0, import_path16.parse)(distDir).base;
161437
+ const moduleName = (0, import_path17.parse)(distDir).base;
161408
161438
  if (this.mavenConfig.android !== false) {
161409
161439
  const isAndroidDistDir = this.mavenConfig.android.distDirRegex.test(moduleName);
161410
161440
  if (isAndroidDistDir) {
@@ -161564,7 +161594,7 @@ Error:
161564
161594
  });
161565
161595
 
161566
161596
  // src/targets/symbolCollector.ts
161567
- var import_fs22, import_path17, DEFAULT_SYM_COLLECTOR_SERVER_ENDPOINT, SYM_COLLECTOR_BIN_NAME, SymbolCollector;
161597
+ var import_fs22, import_path18, DEFAULT_SYM_COLLECTOR_SERVER_ENDPOINT, SYM_COLLECTOR_BIN_NAME, SymbolCollector;
161568
161598
  var init_symbolCollector = __esm({
161569
161599
  "src/targets/symbolCollector.ts"() {
161570
161600
  init_import_meta_url();
@@ -161573,7 +161603,7 @@ var init_symbolCollector = __esm({
161573
161603
  init_files();
161574
161604
  import_fs22 = require("fs");
161575
161605
  init_system();
161576
- import_path17 = require("path");
161606
+ import_path18 = require("path");
161577
161607
  DEFAULT_SYM_COLLECTOR_SERVER_ENDPOINT = "https://symbol-collector.services.sentry.io/";
161578
161608
  SYM_COLLECTOR_BIN_NAME = "SymbolCollector.Console";
161579
161609
  SymbolCollector = class extends BaseTarget {
@@ -161619,7 +161649,7 @@ var init_symbolCollector = __esm({
161619
161649
  this.logger.debug("Downloading artifacts...");
161620
161650
  await Promise.all(
161621
161651
  artifacts.map(async (artifact, index) => {
161622
- const subdirPath = (0, import_path17.join)(dir, String(index));
161652
+ const subdirPath = (0, import_path18.join)(dir, String(index));
161623
161653
  await import_fs22.promises.mkdir(subdirPath);
161624
161654
  await this.artifactProvider.downloadArtifact(artifact, subdirPath);
161625
161655
  })
@@ -161650,13 +161680,13 @@ var init_symbolCollector = __esm({
161650
161680
  });
161651
161681
 
161652
161682
  // src/targets/pubDev.ts
161653
- var import_fs23, import_os3, import_path18, targetSecrets2, PubDevTarget;
161683
+ var import_fs23, import_os3, import_path19, targetSecrets2, PubDevTarget;
161654
161684
  var init_pubDev = __esm({
161655
161685
  "src/targets/pubDev.ts"() {
161656
161686
  init_import_meta_url();
161657
161687
  import_fs23 = require("fs");
161658
161688
  import_os3 = require("os");
161659
- import_path18 = require("path");
161689
+ import_path19 = require("path");
161660
161690
  init_js_yaml();
161661
161691
  init_git();
161662
161692
  init_base5();
@@ -161687,7 +161717,7 @@ var init_pubDev = __esm({
161687
161717
  * @throws Error if file cannot be updated
161688
161718
  */
161689
161719
  static async bumpVersion(rootDir, newVersion) {
161690
- const pubspecPath = (0, import_path18.join)(rootDir, "pubspec.yaml");
161720
+ const pubspecPath = (0, import_path19.join)(rootDir, "pubspec.yaml");
161691
161721
  if (!(0, import_fs23.existsSync)(pubspecPath)) {
161692
161722
  return false;
161693
161723
  }
@@ -161789,7 +161819,7 @@ var init_pubDev = __esm({
161789
161819
  await import_fs23.promises.access(credentialsFilePath, import_fs23.constants.F_OK);
161790
161820
  this.logger.warn("Credentials file already exists. Skipping creation.");
161791
161821
  } catch {
161792
- await import_fs23.promises.mkdir((0, import_path18.dirname)(credentialsFilePath), { recursive: true });
161822
+ await import_fs23.promises.mkdir((0, import_path19.dirname)(credentialsFilePath), { recursive: true });
161793
161823
  await import_fs23.promises.writeFile(credentialsFilePath, JSON.stringify(content));
161794
161824
  this.logger.info("Credentials file created.");
161795
161825
  }
@@ -161849,7 +161879,7 @@ var init_pubDev = __esm({
161849
161879
  this.pubDevConfig.dartCliPath,
161850
161880
  args,
161851
161881
  {
161852
- cwd: (0, import_path18.join)(directory, pkg)
161882
+ cwd: (0, import_path19.join)(directory, pkg)
161853
161883
  },
161854
161884
  // Dart stops the process and asks user to go to provided url for authorization.
161855
161885
  // We want the stdout to be visible just in case something goes wrong, otherwise
@@ -161861,7 +161891,7 @@ var init_pubDev = __esm({
161861
161891
  );
161862
161892
  }
161863
161893
  async removeDependencyOverrides(directory, pkg) {
161864
- const pubSpecPath = (0, import_path18.join)(directory, pkg, "pubspec.yaml");
161894
+ const pubSpecPath = (0, import_path19.join)(directory, pkg, "pubspec.yaml");
161865
161895
  const pubSpecContent = await import_fs23.promises.readFile(pubSpecPath, "utf8");
161866
161896
  const pubSpecYaml = load(pubSpecContent);
161867
161897
  delete pubSpecYaml.dependency_overrides;
@@ -161872,12 +161902,12 @@ var init_pubDev = __esm({
161872
161902
  });
161873
161903
 
161874
161904
  // src/targets/hex.ts
161875
- var import_fs24, import_path19, DEFAULT_MIX_BIN, MIX_BIN, HexTarget;
161905
+ var import_fs24, import_path20, DEFAULT_MIX_BIN, MIX_BIN, HexTarget;
161876
161906
  var init_hex = __esm({
161877
161907
  "src/targets/hex.ts"() {
161878
161908
  init_import_meta_url();
161879
161909
  import_fs24 = require("fs");
161880
- import_path19 = require("path");
161910
+ import_path20 = require("path");
161881
161911
  init_git();
161882
161912
  init_base5();
161883
161913
  init_files();
@@ -161900,7 +161930,7 @@ var init_hex = __esm({
161900
161930
  * @throws Error if file cannot be updated
161901
161931
  */
161902
161932
  static async bumpVersion(rootDir, newVersion) {
161903
- const mixExsPath = (0, import_path19.join)(rootDir, "mix.exs");
161933
+ const mixExsPath = (0, import_path20.join)(rootDir, "mix.exs");
161904
161934
  if (!(0, import_fs24.existsSync)(mixExsPath)) {
161905
161935
  return false;
161906
161936
  }
@@ -162149,11 +162179,11 @@ var init_commitOnGitRepository = __esm({
162149
162179
  });
162150
162180
 
162151
162181
  // src/targets/powershell.ts
162152
- var import_path20, POWERSHELL_BIN, DEFAULT_POWERSHELL_REPOSITORY, PowerShellTarget;
162182
+ var import_path21, POWERSHELL_BIN, DEFAULT_POWERSHELL_REPOSITORY, PowerShellTarget;
162153
162183
  var init_powershell = __esm({
162154
162184
  "src/targets/powershell.ts"() {
162155
162185
  init_import_meta_url();
162156
- import_path20 = require("path");
162186
+ import_path21 = require("path");
162157
162187
  init_errors2();
162158
162188
  init_files();
162159
162189
  init_helpers();
@@ -162259,7 +162289,7 @@ var init_powershell = __esm({
162259
162289
  const zipPath = await this.artifactProvider.downloadArtifact(artifact);
162260
162290
  this.logger.info(`Extracting artifact "${artifact.filename}"`);
162261
162291
  await withTempDir(async (dir) => {
162262
- const moduleDir = (0, import_path20.join)(dir, this.psConfig.module);
162292
+ const moduleDir = (0, import_path21.join)(dir, this.psConfig.module);
162263
162293
  await extractZipArchive(zipPath, moduleDir);
162264
162294
  await this.publishModule(moduleDir);
162265
162295
  });
@@ -162360,12 +162390,12 @@ function findConfigFile() {
162360
162390
  let depth = 0;
162361
162391
  let currentDir = cwd;
162362
162392
  while (depth <= MAX_DEPTH) {
162363
- const probePath = import_path21.default.join(currentDir, CONFIG_FILE_NAME);
162393
+ const probePath = import_path22.default.join(currentDir, CONFIG_FILE_NAME);
162364
162394
  if ((0, import_fs25.existsSync)(probePath) && (0, import_fs25.lstatSync)(probePath).isFile()) {
162365
162395
  _configPathCache = probePath;
162366
162396
  return _configPathCache;
162367
162397
  }
162368
- const parentDir = import_path21.default.dirname(currentDir);
162398
+ const parentDir = import_path22.default.dirname(currentDir);
162369
162399
  if (currentDir === parentDir) {
162370
162400
  return void 0;
162371
162401
  }
@@ -162389,7 +162419,7 @@ function getConfigFileDir() {
162389
162419
  if (!configFilePath2) {
162390
162420
  return void 0;
162391
162421
  }
162392
- return import_path21.default.dirname(configFilePath2);
162422
+ return import_path22.default.dirname(configFilePath2);
162393
162423
  }
162394
162424
  function validateConfiguration(rawConfig) {
162395
162425
  logger.debug("Parsing and validating the configuration file...");
@@ -162633,12 +162663,12 @@ async function expandWorkspaceTargets(targets) {
162633
162663
  }
162634
162664
  return expandedTargets;
162635
162665
  }
162636
- var import_fs25, import_path21, import_git_url_parse, CONFIG_FILE_NAME, DEFAULT_RELEASE_BRANCH_NAME, _configPathCache, _configCache, AUTO_VERSION_MIN_VERSION, _globalGitHubConfigCache, DEFAULT_CHANGELOG_FILE_PATH;
162666
+ var import_fs25, import_path22, import_git_url_parse, CONFIG_FILE_NAME, DEFAULT_RELEASE_BRANCH_NAME, _configPathCache, _configCache, AUTO_VERSION_MIN_VERSION, _globalGitHubConfigCache, DEFAULT_CHANGELOG_FILE_PATH;
162637
162667
  var init_config2 = __esm({
162638
162668
  "src/config.ts"() {
162639
162669
  init_import_meta_url();
162640
162670
  import_fs25 = require("fs");
162641
- import_path21 = __toESM(require("path"));
162671
+ import_path22 = __toESM(require("path"));
162642
162672
  init_js_yaml();
162643
162673
  import_git_url_parse = __toESM(require_lib5());
162644
162674
  init_git();
@@ -162664,7 +162694,7 @@ var require_package6 = __commonJS({
162664
162694
  "package.json"(exports2, module2) {
162665
162695
  module2.exports = {
162666
162696
  name: "@sentry/craft",
162667
- version: "2.21.4",
162697
+ version: "2.21.5",
162668
162698
  description: "The universal sentry workflow CLI",
162669
162699
  main: "dist/craft",
162670
162700
  repository: "https://github.com/getsentry/craft",
@@ -162834,7 +162864,7 @@ function getPackage() {
162834
162864
  }
162835
162865
  function getPackageVersion() {
162836
162866
  const { version: version2 } = getPackage();
162837
- const buildInfo = "906009a1b771956757e521555b561379307eb667";
162867
+ const buildInfo = "5cabbe7d6ae3730788393284d5071969d9309753";
162838
162868
  return buildInfo ? `${version2} (${buildInfo})` : version2;
162839
162869
  }
162840
162870
  function semVerToString(s4) {
@@ -165117,28 +165147,28 @@ var require_path_arg = __commonJS({
165117
165147
  init_import_meta_url();
165118
165148
  var platform8 = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
165119
165149
  var { resolve: resolve7, parse: parse8 } = require("path");
165120
- var pathArg = (path26) => {
165121
- if (/\0/.test(path26)) {
165150
+ var pathArg = (path27) => {
165151
+ if (/\0/.test(path27)) {
165122
165152
  throw Object.assign(
165123
165153
  new TypeError("path must be a string without null bytes"),
165124
165154
  {
165125
- path: path26,
165155
+ path: path27,
165126
165156
  code: "ERR_INVALID_ARG_VALUE"
165127
165157
  }
165128
165158
  );
165129
165159
  }
165130
- path26 = resolve7(path26);
165160
+ path27 = resolve7(path27);
165131
165161
  if (platform8 === "win32") {
165132
165162
  const badWinChars = /[*|"<>?:]/;
165133
- const { root } = parse8(path26);
165134
- if (badWinChars.test(path26.substr(root.length))) {
165163
+ const { root } = parse8(path27);
165164
+ if (badWinChars.test(path27.substr(root.length))) {
165135
165165
  throw Object.assign(new Error("Illegal characters in path."), {
165136
- path: path26,
165166
+ path: path27,
165137
165167
  code: "EINVAL"
165138
165168
  });
165139
165169
  }
165140
165170
  }
165141
- return path26;
165171
+ return path27;
165142
165172
  };
165143
165173
  module2.exports = pathArg;
165144
165174
  }
@@ -165149,20 +165179,20 @@ var require_find_made = __commonJS({
165149
165179
  "node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/find-made.js"(exports2, module2) {
165150
165180
  init_import_meta_url();
165151
165181
  var { dirname: dirname9 } = require("path");
165152
- var findMade = (opts, parent, path26 = void 0) => {
165153
- if (path26 === parent)
165182
+ var findMade = (opts, parent, path27 = void 0) => {
165183
+ if (path27 === parent)
165154
165184
  return Promise.resolve();
165155
165185
  return opts.statAsync(parent).then(
165156
- (st) => st.isDirectory() ? path26 : void 0,
165186
+ (st) => st.isDirectory() ? path27 : void 0,
165157
165187
  // will fail later
165158
165188
  (er) => er.code === "ENOENT" ? findMade(opts, dirname9(parent), parent) : void 0
165159
165189
  );
165160
165190
  };
165161
- var findMadeSync = (opts, parent, path26 = void 0) => {
165162
- if (path26 === parent)
165191
+ var findMadeSync = (opts, parent, path27 = void 0) => {
165192
+ if (path27 === parent)
165163
165193
  return void 0;
165164
165194
  try {
165165
- return opts.statSync(parent).isDirectory() ? path26 : void 0;
165195
+ return opts.statSync(parent).isDirectory() ? path27 : void 0;
165166
165196
  } catch (er) {
165167
165197
  return er.code === "ENOENT" ? findMadeSync(opts, dirname9(parent), parent) : void 0;
165168
165198
  }
@@ -165176,21 +165206,21 @@ var require_mkdirp_manual = __commonJS({
165176
165206
  "node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-manual.js"(exports2, module2) {
165177
165207
  init_import_meta_url();
165178
165208
  var { dirname: dirname9 } = require("path");
165179
- var mkdirpManual = (path26, opts, made) => {
165209
+ var mkdirpManual = (path27, opts, made) => {
165180
165210
  opts.recursive = false;
165181
- const parent = dirname9(path26);
165182
- if (parent === path26) {
165183
- return opts.mkdirAsync(path26, opts).catch((er) => {
165211
+ const parent = dirname9(path27);
165212
+ if (parent === path27) {
165213
+ return opts.mkdirAsync(path27, opts).catch((er) => {
165184
165214
  if (er.code !== "EISDIR")
165185
165215
  throw er;
165186
165216
  });
165187
165217
  }
165188
- return opts.mkdirAsync(path26, opts).then(() => made || path26, (er) => {
165218
+ return opts.mkdirAsync(path27, opts).then(() => made || path27, (er) => {
165189
165219
  if (er.code === "ENOENT")
165190
- return mkdirpManual(parent, opts).then((made2) => mkdirpManual(path26, opts, made2));
165220
+ return mkdirpManual(parent, opts).then((made2) => mkdirpManual(path27, opts, made2));
165191
165221
  if (er.code !== "EEXIST" && er.code !== "EROFS")
165192
165222
  throw er;
165193
- return opts.statAsync(path26).then((st) => {
165223
+ return opts.statAsync(path27).then((st) => {
165194
165224
  if (st.isDirectory())
165195
165225
  return made;
165196
165226
  else
@@ -165200,12 +165230,12 @@ var require_mkdirp_manual = __commonJS({
165200
165230
  });
165201
165231
  });
165202
165232
  };
165203
- var mkdirpManualSync = (path26, opts, made) => {
165204
- const parent = dirname9(path26);
165233
+ var mkdirpManualSync = (path27, opts, made) => {
165234
+ const parent = dirname9(path27);
165205
165235
  opts.recursive = false;
165206
- if (parent === path26) {
165236
+ if (parent === path27) {
165207
165237
  try {
165208
- return opts.mkdirSync(path26, opts);
165238
+ return opts.mkdirSync(path27, opts);
165209
165239
  } catch (er) {
165210
165240
  if (er.code !== "EISDIR")
165211
165241
  throw er;
@@ -165214,15 +165244,15 @@ var require_mkdirp_manual = __commonJS({
165214
165244
  }
165215
165245
  }
165216
165246
  try {
165217
- opts.mkdirSync(path26, opts);
165218
- return made || path26;
165247
+ opts.mkdirSync(path27, opts);
165248
+ return made || path27;
165219
165249
  } catch (er) {
165220
165250
  if (er.code === "ENOENT")
165221
- return mkdirpManualSync(path26, opts, mkdirpManualSync(parent, opts, made));
165251
+ return mkdirpManualSync(path27, opts, mkdirpManualSync(parent, opts, made));
165222
165252
  if (er.code !== "EEXIST" && er.code !== "EROFS")
165223
165253
  throw er;
165224
165254
  try {
165225
- if (!opts.statSync(path26).isDirectory())
165255
+ if (!opts.statSync(path27).isDirectory())
165226
165256
  throw er;
165227
165257
  } catch (_2) {
165228
165258
  throw er;
@@ -165240,30 +165270,30 @@ var require_mkdirp_native = __commonJS({
165240
165270
  var { dirname: dirname9 } = require("path");
165241
165271
  var { findMade, findMadeSync } = require_find_made();
165242
165272
  var { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
165243
- var mkdirpNative = (path26, opts) => {
165273
+ var mkdirpNative = (path27, opts) => {
165244
165274
  opts.recursive = true;
165245
- const parent = dirname9(path26);
165246
- if (parent === path26)
165247
- return opts.mkdirAsync(path26, opts);
165248
- return findMade(opts, path26).then((made) => opts.mkdirAsync(path26, opts).then(() => made).catch((er) => {
165275
+ const parent = dirname9(path27);
165276
+ if (parent === path27)
165277
+ return opts.mkdirAsync(path27, opts);
165278
+ return findMade(opts, path27).then((made) => opts.mkdirAsync(path27, opts).then(() => made).catch((er) => {
165249
165279
  if (er.code === "ENOENT")
165250
- return mkdirpManual(path26, opts);
165280
+ return mkdirpManual(path27, opts);
165251
165281
  else
165252
165282
  throw er;
165253
165283
  }));
165254
165284
  };
165255
- var mkdirpNativeSync = (path26, opts) => {
165285
+ var mkdirpNativeSync = (path27, opts) => {
165256
165286
  opts.recursive = true;
165257
- const parent = dirname9(path26);
165258
- if (parent === path26)
165259
- return opts.mkdirSync(path26, opts);
165260
- const made = findMadeSync(opts, path26);
165287
+ const parent = dirname9(path27);
165288
+ if (parent === path27)
165289
+ return opts.mkdirSync(path27, opts);
165290
+ const made = findMadeSync(opts, path27);
165261
165291
  try {
165262
- opts.mkdirSync(path26, opts);
165292
+ opts.mkdirSync(path27, opts);
165263
165293
  return made;
165264
165294
  } catch (er) {
165265
165295
  if (er.code === "ENOENT")
165266
- return mkdirpManualSync(path26, opts);
165296
+ return mkdirpManualSync(path27, opts);
165267
165297
  else
165268
165298
  throw er;
165269
165299
  }
@@ -165295,21 +165325,21 @@ var require_mkdirp = __commonJS({
165295
165325
  var { mkdirpNative, mkdirpNativeSync } = require_mkdirp_native();
165296
165326
  var { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
165297
165327
  var { useNative, useNativeSync } = require_use_native();
165298
- var mkdirp2 = (path26, opts) => {
165299
- path26 = pathArg(path26);
165328
+ var mkdirp2 = (path27, opts) => {
165329
+ path27 = pathArg(path27);
165300
165330
  opts = optsArg(opts);
165301
- return useNative(opts) ? mkdirpNative(path26, opts) : mkdirpManual(path26, opts);
165331
+ return useNative(opts) ? mkdirpNative(path27, opts) : mkdirpManual(path27, opts);
165302
165332
  };
165303
- var mkdirpSync = (path26, opts) => {
165304
- path26 = pathArg(path26);
165333
+ var mkdirpSync = (path27, opts) => {
165334
+ path27 = pathArg(path27);
165305
165335
  opts = optsArg(opts);
165306
- return useNativeSync(opts) ? mkdirpNativeSync(path26, opts) : mkdirpManualSync(path26, opts);
165336
+ return useNativeSync(opts) ? mkdirpNativeSync(path27, opts) : mkdirpManualSync(path27, opts);
165307
165337
  };
165308
165338
  mkdirp2.sync = mkdirpSync;
165309
- mkdirp2.native = (path26, opts) => mkdirpNative(pathArg(path26), optsArg(opts));
165310
- mkdirp2.manual = (path26, opts) => mkdirpManual(pathArg(path26), optsArg(opts));
165311
- mkdirp2.nativeSync = (path26, opts) => mkdirpNativeSync(pathArg(path26), optsArg(opts));
165312
- mkdirp2.manualSync = (path26, opts) => mkdirpManualSync(pathArg(path26), optsArg(opts));
165339
+ mkdirp2.native = (path27, opts) => mkdirpNative(pathArg(path27), optsArg(opts));
165340
+ mkdirp2.manual = (path27, opts) => mkdirpManual(pathArg(path27), optsArg(opts));
165341
+ mkdirp2.nativeSync = (path27, opts) => mkdirpNativeSync(pathArg(path27), optsArg(opts));
165342
+ mkdirp2.manualSync = (path27, opts) => mkdirpManualSync(pathArg(path27), optsArg(opts));
165313
165343
  module2.exports = mkdirp2;
165314
165344
  }
165315
165345
  });
@@ -166101,18 +166131,18 @@ function ui(opts) {
166101
166131
 
166102
166132
  // node_modules/.pnpm/escalade@3.2.0/node_modules/escalade/sync/index.mjs
166103
166133
  init_import_meta_url();
166104
- var import_path22 = require("path");
166134
+ var import_path23 = require("path");
166105
166135
  var import_fs26 = require("fs");
166106
166136
  function sync_default(start, callback) {
166107
- let dir = (0, import_path22.resolve)(".", start);
166137
+ let dir = (0, import_path23.resolve)(".", start);
166108
166138
  let tmp2, stats = (0, import_fs26.statSync)(dir);
166109
166139
  if (!stats.isDirectory()) {
166110
- dir = (0, import_path22.dirname)(dir);
166140
+ dir = (0, import_path23.dirname)(dir);
166111
166141
  }
166112
166142
  while (true) {
166113
166143
  tmp2 = callback(dir, (0, import_fs26.readdirSync)(dir));
166114
- if (tmp2) return (0, import_path22.resolve)(dir, tmp2);
166115
- dir = (0, import_path22.dirname)(tmp2 = dir);
166144
+ if (tmp2) return (0, import_path23.resolve)(dir, tmp2);
166145
+ dir = (0, import_path23.dirname)(tmp2 = dir);
166116
166146
  if (tmp2 === dir) break;
166117
166147
  }
166118
166148
  }
@@ -166124,7 +166154,7 @@ var import_url4 = require("url");
166124
166154
  // node_modules/.pnpm/yargs-parser@22.0.0/node_modules/yargs-parser/build/lib/index.js
166125
166155
  init_import_meta_url();
166126
166156
  var import_util24 = require("util");
166127
- var import_path23 = require("path");
166157
+ var import_path24 = require("path");
166128
166158
 
166129
166159
  // node_modules/.pnpm/yargs-parser@22.0.0/node_modules/yargs-parser/build/lib/string-utils.js
166130
166160
  init_import_meta_url();
@@ -167089,13 +167119,13 @@ var parser4 = new YargsParser({
167089
167119
  return env;
167090
167120
  },
167091
167121
  format: import_util24.format,
167092
- normalize: import_path23.normalize,
167093
- resolve: import_path23.resolve,
167094
- require: (path26) => {
167122
+ normalize: import_path24.normalize,
167123
+ resolve: import_path24.resolve,
167124
+ require: (path27) => {
167095
167125
  if (typeof require2 !== "undefined") {
167096
- return require2(path26);
167097
- } else if (path26.match(/\.json$/)) {
167098
- return JSON.parse((0, import_fs27.readFileSync)(path26, "utf8"));
167126
+ return require2(path27);
167127
+ } else if (path27.match(/\.json$/)) {
167128
+ return JSON.parse((0, import_fs27.readFileSync)(path27, "utf8"));
167099
167129
  } else {
167100
167130
  throw Error("only .json config files are supported in ESM");
167101
167131
  }
@@ -167114,7 +167144,7 @@ yargsParser.looksLikeNumber = looksLikeNumber;
167114
167144
  var lib_default = yargsParser;
167115
167145
 
167116
167146
  // node_modules/.pnpm/yargs@18.0.0/node_modules/yargs/lib/platform-shims/esm.mjs
167117
- var import_path25 = require("path");
167147
+ var import_path26 = require("path");
167118
167148
 
167119
167149
  // node_modules/.pnpm/yargs@18.0.0/node_modules/yargs/build/lib/utils/process-argv.js
167120
167150
  init_import_meta_url();
@@ -167140,14 +167170,14 @@ init_import_meta_url();
167140
167170
  init_import_meta_url();
167141
167171
  var import_fs28 = require("fs");
167142
167172
  var import_util25 = require("util");
167143
- var import_path24 = require("path");
167173
+ var import_path25 = require("path");
167144
167174
  var node_default = {
167145
167175
  fs: {
167146
167176
  readFileSync: import_fs28.readFileSync,
167147
167177
  writeFile: import_fs28.writeFile
167148
167178
  },
167149
167179
  format: import_util25.format,
167150
- resolve: import_path24.resolve,
167180
+ resolve: import_path25.resolve,
167151
167181
  exists: (file) => {
167152
167182
  try {
167153
167183
  return (0, import_fs28.statSync)(file).isFile();
@@ -167347,12 +167377,12 @@ var esm_default3 = {
167347
167377
  mainFilename: mainFilename || process.cwd(),
167348
167378
  Parser: lib_default,
167349
167379
  path: {
167350
- basename: import_path25.basename,
167351
- dirname: import_path25.dirname,
167352
- extname: import_path25.extname,
167353
- relative: import_path25.relative,
167354
- resolve: import_path25.resolve,
167355
- join: import_path25.join
167380
+ basename: import_path26.basename,
167381
+ dirname: import_path26.dirname,
167382
+ extname: import_path26.extname,
167383
+ relative: import_path26.relative,
167384
+ resolve: import_path26.resolve,
167385
+ join: import_path26.join
167356
167386
  },
167357
167387
  process: {
167358
167388
  argv: () => process.argv,
@@ -167374,7 +167404,7 @@ var esm_default3 = {
167374
167404
  },
167375
167405
  stringWidth,
167376
167406
  y18n: y18n_default({
167377
- directory: (0, import_path25.resolve)(__dirname2, "../../../locales"),
167407
+ directory: (0, import_path26.resolve)(__dirname2, "../../../locales"),
167378
167408
  updateFiles: false
167379
167409
  })
167380
167410
  };
@@ -170746,7 +170776,7 @@ __export(prepare_exports, {
170746
170776
  });
170747
170777
  init_import_meta_url();
170748
170778
  var import_fs30 = require("fs");
170749
- var import_path27 = require("path");
170779
+ var import_path28 = require("path");
170750
170780
  init_dryRun();
170751
170781
  var shellQuote2 = __toESM(require_shell_quote());
170752
170782
  init_config2();
@@ -170911,7 +170941,7 @@ init_import_meta_url();
170911
170941
  var import_chalk = __toESM(require_source());
170912
170942
  var import_fs29 = require("fs");
170913
170943
  init_dryRun();
170914
- var import_path26 = require("path");
170944
+ var import_path27 = require("path");
170915
170945
  var import_shell_quote = __toESM(require_shell_quote());
170916
170946
  var import_string_length = __toESM(require_string_length());
170917
170947
  init_config2();
@@ -170927,7 +170957,7 @@ init_system();
170927
170957
  init_version9();
170928
170958
  init_git();
170929
170959
  init_tracing3();
170930
- var DEFAULT_POST_RELEASE_SCRIPT_PATH = (0, import_path26.join)("scripts", "post-release.sh");
170960
+ var DEFAULT_POST_RELEASE_SCRIPT_PATH = (0, import_path27.join)("scripts", "post-release.sh");
170931
170961
  var ALLOWED_ENV_VARS = [
170932
170962
  "HOME",
170933
170963
  "USER",
@@ -171371,7 +171401,7 @@ var handler2 = async (args) => {
171371
171401
  var command3 = ["prepare [NEW-VERSION]"];
171372
171402
  var aliases2 = ["p", "prerelease", "prepublish", "prepare", "release"];
171373
171403
  var description2 = "\u{1F6A2} Prepare a new release branch";
171374
- var DEFAULT_BUMP_VERSION_PATH = (0, import_path27.join)("scripts", "bump-version.sh");
171404
+ var DEFAULT_BUMP_VERSION_PATH = (0, import_path28.join)("scripts", "bump-version.sh");
171375
171405
  var AUTO_VERSION_MIN_VERSION2 = "2.14.0";
171376
171406
  var AUTO_BUMP_MIN_VERSION = "2.21.0";
171377
171407
  var builder2 = (yargs) => yargs.positional("NEW-VERSION", {
@@ -171583,7 +171613,7 @@ async function prepareChangelog(git, oldVersion, newVersion, changelogPolicy = "
171583
171613
  }
171584
171614
  logger.info("Checking the changelog...");
171585
171615
  logger.debug(`Changelog policy: "${changelogPolicy}".`);
171586
- const relativePath = (0, import_path27.relative)("", changelogPath);
171616
+ const relativePath = (0, import_path28.relative)("", changelogPath);
171587
171617
  logger.debug(`Changelog path: ${relativePath}`);
171588
171618
  if (relativePath.startsWith(".")) {
171589
171619
  throw new ConfigurationError(`Invalid changelog path: "${changelogPath}"`);
@@ -171639,6 +171669,38 @@ async function prepareChangelog(git, oldVersion, newVersion, changelogPolicy = "
171639
171669
  logger.trace(changeset.body);
171640
171670
  return changeset?.body;
171641
171671
  }
171672
+ async function getChangelogLineRange(git, changelogPath, version2) {
171673
+ try {
171674
+ const content = await git.show([`HEAD:${changelogPath}`]);
171675
+ const lines = content.split("\n");
171676
+ const startIdx = lines.findIndex(
171677
+ (l4) => l4.trimEnd() === `## ${version2}` || l4.trimEnd() === version2
171678
+ );
171679
+ if (startIdx < 0) {
171680
+ return "";
171681
+ }
171682
+ let endIdx = -1;
171683
+ for (let i4 = startIdx + 1; i4 < lines.length; i4++) {
171684
+ if (/^## /.test(lines[i4])) {
171685
+ endIdx = i4;
171686
+ break;
171687
+ }
171688
+ if (i4 + 1 < lines.length && lines[i4].trim() !== "" && /^(-{3,}|={3,})\s*$/.test(lines[i4 + 1])) {
171689
+ endIdx = i4;
171690
+ break;
171691
+ }
171692
+ }
171693
+ if (endIdx < 0) {
171694
+ endIdx = lines.length;
171695
+ }
171696
+ while (endIdx > startIdx + 1 && lines[endIdx - 1].trim() === "") {
171697
+ endIdx--;
171698
+ }
171699
+ return `#L${startIdx + 1}-L${endIdx}`;
171700
+ } catch {
171701
+ return "";
171702
+ }
171703
+ }
171642
171704
  async function switchToDefaultBranch(git, defaultBranch) {
171643
171705
  const repoStatus = await git.status();
171644
171706
  if (repoStatus.current === defaultBranch) {
@@ -171776,7 +171838,18 @@ async function prepareMain(argv) {
171776
171838
  setGitHubActionsOutput("sha", releaseSha);
171777
171839
  setGitHubActionsOutput("previous_tag", oldVersion || "");
171778
171840
  if (changelogBody) {
171779
- setGitHubActionsOutput("changelog", changelogBody);
171841
+ writeGitHubActionsFile("changelog", changelogBody);
171842
+ const resolvedChangelogPath = changelogPath || DEFAULT_CHANGELOG_PATH;
171843
+ const lineRange = await getChangelogLineRange(
171844
+ git,
171845
+ resolvedChangelogPath,
171846
+ newVersion
171847
+ );
171848
+ const changelogFileUrl = `https://github.com/${githubConfig.owner}/${githubConfig.repo}/blob/${branchName}/${resolvedChangelogPath}` + lineRange;
171849
+ setGitHubActionsOutput(
171850
+ "changelog",
171851
+ truncateForOutput(changelogBody, changelogFileUrl)
171852
+ );
171780
171853
  }
171781
171854
  logger.info(
171782
171855
  `View diff at: https://github.com/${githubConfig.owner}/${githubConfig.repo}/compare/${branchName}`
@@ -171879,7 +171952,7 @@ init_import_meta_url();
171879
171952
  init_logger2();
171880
171953
  init_config2();
171881
171954
  init_errors2();
171882
- var import_path28 = require("path");
171955
+ var import_path29 = require("path");
171883
171956
  var import_fs31 = require("fs");
171884
171957
  init_none();
171885
171958
  var mkdirp = require_mkdirp();
@@ -171902,7 +171975,7 @@ var builder3 = (yargs) => yargs.positional("NAME", {
171902
171975
  });
171903
171976
  async function prepareOutputDirectory(argv) {
171904
171977
  if (argv.directory) {
171905
- const fullPath = (0, import_path28.resolve)(argv.directory);
171978
+ const fullPath = (0, import_path29.resolve)(argv.directory);
171906
171979
  if ((0, import_fs31.existsSync)(fullPath)) {
171907
171980
  if ((0, import_fs31.lstatSync)(fullPath).isDirectory()) {
171908
171981
  return fullPath;
@@ -171915,7 +171988,7 @@ async function prepareOutputDirectory(argv) {
171915
171988
  return fullPath;
171916
171989
  }
171917
171990
  } else {
171918
- return (0, import_path28.resolve)(process.cwd());
171991
+ return (0, import_path29.resolve)(process.cwd());
171919
171992
  }
171920
171993
  }
171921
171994
  async function handlerMain(argv) {