@powerhousedao/shared 6.2.0-dev.37 → 6.2.0-dev.39

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 (32) hide show
  1. package/dist/clis/args/{common-C5n5ai5C.d.mts → common-Cr8LZG55.d.mts} +3 -3
  2. package/dist/clis/args/{common-C5n5ai5C.d.mts.map → common-Cr8LZG55.d.mts.map} +1 -1
  3. package/dist/clis/args/common.d.mts +1 -1
  4. package/dist/clis/args/connect.d.mts +5 -5
  5. package/dist/clis/args/index.d.mts +1 -1
  6. package/dist/clis/args/init.d.mts +3 -0
  7. package/dist/clis/args/init.d.mts.map +1 -1
  8. package/dist/clis/args/init.mjs +8 -2
  9. package/dist/clis/args/init.mjs.map +1 -1
  10. package/dist/clis/args/vetra.d.mts +1 -1
  11. package/dist/clis/build-config.d.mts +1 -1
  12. package/dist/clis/build-config.d.mts.map +1 -1
  13. package/dist/clis/constants.d.mts +5 -0
  14. package/dist/clis/constants.d.mts.map +1 -1
  15. package/dist/clis/index.d.mts +29 -2
  16. package/dist/clis/index.d.mts.map +1 -1
  17. package/dist/clis/index.mjs +67 -402
  18. package/dist/clis/index.mjs.map +1 -1
  19. package/dist/{config-loader-DORViRnN.js → config-loader-237452Tn.js} +5 -1
  20. package/dist/config-loader-237452Tn.js.map +1 -0
  21. package/dist/connect/config-loader.d.ts +1 -1
  22. package/dist/connect/config-loader.js +1 -1
  23. package/dist/connect/index.d.ts +19 -1
  24. package/dist/connect/index.d.ts.map +1 -1
  25. package/dist/connect/index.js +19 -1
  26. package/dist/connect/index.js.map +1 -1
  27. package/dist/index.d.ts +2 -2
  28. package/dist/registry/index.d.ts +1 -1
  29. package/dist/{types-CNrnJSBw.d.ts → types-BFTKHmzr.d.ts} +7 -2
  30. package/dist/{types-CNrnJSBw.d.ts.map → types-BFTKHmzr.d.ts.map} +1 -1
  31. package/package.json +1 -1
  32. package/dist/config-loader-DORViRnN.js.map +0 -1
@@ -1287,11 +1287,12 @@ const initArgs = {
1287
1287
  type: optional(oneOf([
1288
1288
  "latest",
1289
1289
  "staging",
1290
- "dev"
1290
+ "dev",
1291
+ "rc"
1291
1292
  ])),
1292
1293
  long: "tag",
1293
1294
  short: "t",
1294
- description: `Specify the release tag to use for your project. Can be one of: "latest", "staging", or "dev".`
1295
+ description: `Specify the release tag to use for your project. Can be one of: "latest", "staging", "dev", or "rc".`
1295
1296
  }),
1296
1297
  version: option({
1297
1298
  type: optional(string),
@@ -1311,6 +1312,11 @@ const initArgs = {
1311
1312
  short: "s",
1312
1313
  description: "Use the `staging` release tag."
1313
1314
  }),
1315
+ rc: flag({
1316
+ type: optional(boolean),
1317
+ long: "rc",
1318
+ description: "Use the `rc` release tag."
1319
+ }),
1314
1320
  remoteDrive: option({
1315
1321
  type: optional(string),
1316
1322
  long: "remote-drive",
@@ -2826,13 +2832,13 @@ function parseJson(string, reviver, fileName) {
2826
2832
  }
2827
2833
  }
2828
2834
  //#endregion
2829
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/debug.js
2830
- var require_debug$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2835
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/debug.js
2836
+ var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2831
2837
  module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
2832
2838
  }));
2833
2839
  //#endregion
2834
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/constants.js
2835
- var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2840
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/constants.js
2841
+ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2836
2842
  const SEMVER_SPEC_VERSION = "2.0.0";
2837
2843
  const MAX_LENGTH = 256;
2838
2844
  const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
@@ -2856,10 +2862,10 @@ var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2856
2862
  };
2857
2863
  }));
2858
2864
  //#endregion
2859
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/re.js
2860
- var require_re$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2861
- const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants$1();
2862
- const debug = require_debug$1();
2865
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/re.js
2866
+ var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2867
+ const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
2868
+ const debug = require_debug();
2863
2869
  exports = module.exports = {};
2864
2870
  const re = exports.re = [];
2865
2871
  const safeRe = exports.safeRe = [];
@@ -2935,8 +2941,8 @@ var require_re$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2935
2941
  createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
2936
2942
  }));
2937
2943
  //#endregion
2938
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/parse-options.js
2939
- var require_parse_options$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2944
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/parse-options.js
2945
+ var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2940
2946
  const looseOption = Object.freeze({ loose: true });
2941
2947
  const emptyOpts = Object.freeze({});
2942
2948
  const parseOptions = (options) => {
@@ -2947,8 +2953,8 @@ var require_parse_options$1 = /* @__PURE__ */ __commonJSMin(((exports, module) =
2947
2953
  module.exports = parseOptions;
2948
2954
  }));
2949
2955
  //#endregion
2950
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/identifiers.js
2951
- var require_identifiers$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2956
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/identifiers.js
2957
+ var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2952
2958
  const numeric = /^[0-9]+$/;
2953
2959
  const compareIdentifiers = (a, b) => {
2954
2960
  if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
@@ -2967,19 +2973,13 @@ var require_identifiers$1 = /* @__PURE__ */ __commonJSMin(((exports, module) =>
2967
2973
  };
2968
2974
  }));
2969
2975
  //#endregion
2970
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/classes/semver.js
2971
- var require_semver$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2972
- const debug = require_debug$1();
2973
- const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants$1();
2974
- const { safeRe: re, t } = require_re$1();
2975
- const parseOptions = require_parse_options$1();
2976
- const { compareIdentifiers } = require_identifiers$1();
2977
- const isPrereleaseIdentifier = (prerelease, identifier) => {
2978
- const identifiers = identifier.split(".");
2979
- if (identifiers.length > prerelease.length) return false;
2980
- for (let i = 0; i < identifiers.length; i++) if (compareIdentifiers(prerelease[i], identifiers[i]) !== 0) return false;
2981
- return true;
2982
- };
2976
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/semver.js
2977
+ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2978
+ const debug = require_debug();
2979
+ const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
2980
+ const { safeRe: re, t } = require_re();
2981
+ const parseOptions = require_parse_options();
2982
+ const { compareIdentifiers } = require_identifiers();
2983
2983
  module.exports = class SemVer {
2984
2984
  constructor(version, options) {
2985
2985
  options = parseOptions(options);
@@ -3136,9 +3136,8 @@ var require_semver$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3136
3136
  if (identifier) {
3137
3137
  let prerelease = [identifier, base];
3138
3138
  if (identifierBase === false) prerelease = [identifier];
3139
- if (isPrereleaseIdentifier(this.prerelease, identifier)) {
3140
- const prereleaseBase = this.prerelease[identifier.split(".").length];
3141
- if (isNaN(prereleaseBase)) this.prerelease = prerelease;
3139
+ if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
3140
+ if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
3142
3141
  } else this.prerelease = prerelease;
3143
3142
  }
3144
3143
  break;
@@ -3152,9 +3151,9 @@ var require_semver$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3152
3151
  };
3153
3152
  }));
3154
3153
  //#endregion
3155
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/parse.js
3156
- var require_parse$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3157
- const SemVer = require_semver$2();
3154
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.js
3155
+ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3156
+ const SemVer = require_semver$1();
3158
3157
  const parse = (version, options, throwErrors = false) => {
3159
3158
  if (version instanceof SemVer) return version;
3160
3159
  try {
@@ -3167,9 +3166,9 @@ var require_parse$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3167
3166
  module.exports = parse;
3168
3167
  }));
3169
3168
  //#endregion
3170
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/valid.js
3171
- var require_valid$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3172
- const parse = require_parse$2();
3169
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/valid.js
3170
+ var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3171
+ const parse = require_parse$1();
3173
3172
  const valid = (version, options) => {
3174
3173
  const v = parse(version, options);
3175
3174
  return v ? v.version : null;
@@ -3177,9 +3176,9 @@ var require_valid$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3177
3176
  module.exports = valid;
3178
3177
  }));
3179
3178
  //#endregion
3180
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/clean.js
3181
- var require_clean$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3182
- const parse = require_parse$2();
3179
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/clean.js
3180
+ var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3181
+ const parse = require_parse$1();
3183
3182
  const clean = (version, options) => {
3184
3183
  const s = parse(version.trim().replace(/^[=v]+/, ""), options);
3185
3184
  return s ? s.version : null;
@@ -4086,7 +4085,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4086
4085
  }));
4087
4086
  //#endregion
4088
4087
  //#region ../../node_modules/.pnpm/spdx-expression-parse@3.0.1/node_modules/spdx-expression-parse/parse.js
4089
- var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4088
+ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4090
4089
  module.exports = function(tokens) {
4091
4090
  var index = 0;
4092
4091
  function hasMore() {
@@ -4177,7 +4176,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4177
4176
  //#region ../../node_modules/.pnpm/spdx-expression-parse@3.0.1/node_modules/spdx-expression-parse/index.js
4178
4177
  var require_spdx_expression_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4179
4178
  var scan = require_scan();
4180
- var parse = require_parse$1();
4179
+ var parse = require_parse();
4181
4180
  module.exports = function(source) {
4182
4181
  return parse(scan(source));
4183
4182
  };
@@ -5616,8 +5615,8 @@ var require_typos = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5616
5615
  //#region ../../node_modules/.pnpm/normalize-package-data@8.0.0/node_modules/normalize-package-data/lib/fixer.js
5617
5616
  var require_fixer = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5618
5617
  var { URL: URL$1 } = __require("node:url");
5619
- var isValidSemver = require_valid$2();
5620
- var cleanSemver = require_clean$1();
5618
+ var isValidSemver = require_valid$1();
5619
+ var cleanSemver = require_clean();
5621
5620
  var validateLicense = require_validate_npm_package_license();
5622
5621
  var hostedGitInfo = require_lib();
5623
5622
  var { isBuiltin } = __require("node:module");
@@ -6049,360 +6048,6 @@ async function readPackage({ cwd, normalize = true } = {}) {
6049
6048
  return _readPackage(await fsPromises.readFile(getPackagePath(cwd), "utf8"), normalize);
6050
6049
  }
6051
6050
  //#endregion
6052
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/constants.js
6053
- var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6054
- const SEMVER_SPEC_VERSION = "2.0.0";
6055
- const MAX_LENGTH = 256;
6056
- const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
6057
- module.exports = {
6058
- MAX_LENGTH,
6059
- MAX_SAFE_COMPONENT_LENGTH: 16,
6060
- MAX_SAFE_BUILD_LENGTH: MAX_LENGTH - 6,
6061
- MAX_SAFE_INTEGER,
6062
- RELEASE_TYPES: [
6063
- "major",
6064
- "premajor",
6065
- "minor",
6066
- "preminor",
6067
- "patch",
6068
- "prepatch",
6069
- "prerelease"
6070
- ],
6071
- SEMVER_SPEC_VERSION,
6072
- FLAG_INCLUDE_PRERELEASE: 1,
6073
- FLAG_LOOSE: 2
6074
- };
6075
- }));
6076
- //#endregion
6077
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/debug.js
6078
- var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6079
- module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
6080
- }));
6081
- //#endregion
6082
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/re.js
6083
- var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6084
- const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
6085
- const debug = require_debug();
6086
- exports = module.exports = {};
6087
- const re = exports.re = [];
6088
- const safeRe = exports.safeRe = [];
6089
- const src = exports.src = [];
6090
- const safeSrc = exports.safeSrc = [];
6091
- const t = exports.t = {};
6092
- let R = 0;
6093
- const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
6094
- const safeRegexReplacements = [
6095
- ["\\s", 1],
6096
- ["\\d", MAX_LENGTH],
6097
- [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
6098
- ];
6099
- const makeSafeRegex = (value) => {
6100
- for (const [token, max] of safeRegexReplacements) value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
6101
- return value;
6102
- };
6103
- const createToken = (name, value, isGlobal) => {
6104
- const safe = makeSafeRegex(value);
6105
- const index = R++;
6106
- debug(name, index, value);
6107
- t[name] = index;
6108
- src[index] = value;
6109
- safeSrc[index] = safe;
6110
- re[index] = new RegExp(value, isGlobal ? "g" : void 0);
6111
- safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
6112
- };
6113
- createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
6114
- createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
6115
- createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
6116
- createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
6117
- createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
6118
- createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
6119
- createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
6120
- createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
6121
- createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
6122
- createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
6123
- createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
6124
- createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
6125
- createToken("FULL", `^${src[t.FULLPLAIN]}$`);
6126
- createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
6127
- createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
6128
- createToken("GTLT", "((?:<|>)?=?)");
6129
- createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
6130
- createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
6131
- createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
6132
- createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
6133
- createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
6134
- createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
6135
- createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
6136
- createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
6137
- createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
6138
- createToken("COERCERTL", src[t.COERCE], true);
6139
- createToken("COERCERTLFULL", src[t.COERCEFULL], true);
6140
- createToken("LONETILDE", "(?:~>?)");
6141
- createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
6142
- exports.tildeTrimReplace = "$1~";
6143
- createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
6144
- createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
6145
- createToken("LONECARET", "(?:\\^)");
6146
- createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
6147
- exports.caretTrimReplace = "$1^";
6148
- createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
6149
- createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
6150
- createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
6151
- createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
6152
- createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
6153
- exports.comparatorTrimReplace = "$1$2$3";
6154
- createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
6155
- createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
6156
- createToken("STAR", "(<|>)?=?\\s*\\*");
6157
- createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
6158
- createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
6159
- }));
6160
- //#endregion
6161
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/parse-options.js
6162
- var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6163
- const looseOption = Object.freeze({ loose: true });
6164
- const emptyOpts = Object.freeze({});
6165
- const parseOptions = (options) => {
6166
- if (!options) return emptyOpts;
6167
- if (typeof options !== "object") return looseOption;
6168
- return options;
6169
- };
6170
- module.exports = parseOptions;
6171
- }));
6172
- //#endregion
6173
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/identifiers.js
6174
- var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6175
- const numeric = /^[0-9]+$/;
6176
- const compareIdentifiers = (a, b) => {
6177
- if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
6178
- const anum = numeric.test(a);
6179
- const bnum = numeric.test(b);
6180
- if (anum && bnum) {
6181
- a = +a;
6182
- b = +b;
6183
- }
6184
- return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
6185
- };
6186
- const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
6187
- module.exports = {
6188
- compareIdentifiers,
6189
- rcompareIdentifiers
6190
- };
6191
- }));
6192
- //#endregion
6193
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/semver.js
6194
- var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6195
- const debug = require_debug();
6196
- const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
6197
- const { safeRe: re, t } = require_re();
6198
- const parseOptions = require_parse_options();
6199
- const { compareIdentifiers } = require_identifiers();
6200
- module.exports = class SemVer {
6201
- constructor(version, options) {
6202
- options = parseOptions(options);
6203
- if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
6204
- else version = version.version;
6205
- else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
6206
- if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
6207
- debug("SemVer", version, options);
6208
- this.options = options;
6209
- this.loose = !!options.loose;
6210
- this.includePrerelease = !!options.includePrerelease;
6211
- const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
6212
- if (!m) throw new TypeError(`Invalid Version: ${version}`);
6213
- this.raw = version;
6214
- this.major = +m[1];
6215
- this.minor = +m[2];
6216
- this.patch = +m[3];
6217
- if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
6218
- if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
6219
- if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
6220
- if (!m[4]) this.prerelease = [];
6221
- else this.prerelease = m[4].split(".").map((id) => {
6222
- if (/^[0-9]+$/.test(id)) {
6223
- const num = +id;
6224
- if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
6225
- }
6226
- return id;
6227
- });
6228
- this.build = m[5] ? m[5].split(".") : [];
6229
- this.format();
6230
- }
6231
- format() {
6232
- this.version = `${this.major}.${this.minor}.${this.patch}`;
6233
- if (this.prerelease.length) this.version += `-${this.prerelease.join(".")}`;
6234
- return this.version;
6235
- }
6236
- toString() {
6237
- return this.version;
6238
- }
6239
- compare(other) {
6240
- debug("SemVer.compare", this.version, this.options, other);
6241
- if (!(other instanceof SemVer)) {
6242
- if (typeof other === "string" && other === this.version) return 0;
6243
- other = new SemVer(other, this.options);
6244
- }
6245
- if (other.version === this.version) return 0;
6246
- return this.compareMain(other) || this.comparePre(other);
6247
- }
6248
- compareMain(other) {
6249
- if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
6250
- if (this.major < other.major) return -1;
6251
- if (this.major > other.major) return 1;
6252
- if (this.minor < other.minor) return -1;
6253
- if (this.minor > other.minor) return 1;
6254
- if (this.patch < other.patch) return -1;
6255
- if (this.patch > other.patch) return 1;
6256
- return 0;
6257
- }
6258
- comparePre(other) {
6259
- if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
6260
- if (this.prerelease.length && !other.prerelease.length) return -1;
6261
- else if (!this.prerelease.length && other.prerelease.length) return 1;
6262
- else if (!this.prerelease.length && !other.prerelease.length) return 0;
6263
- let i = 0;
6264
- do {
6265
- const a = this.prerelease[i];
6266
- const b = other.prerelease[i];
6267
- debug("prerelease compare", i, a, b);
6268
- if (a === void 0 && b === void 0) return 0;
6269
- else if (b === void 0) return 1;
6270
- else if (a === void 0) return -1;
6271
- else if (a === b) continue;
6272
- else return compareIdentifiers(a, b);
6273
- } while (++i);
6274
- }
6275
- compareBuild(other) {
6276
- if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
6277
- let i = 0;
6278
- do {
6279
- const a = this.build[i];
6280
- const b = other.build[i];
6281
- debug("build compare", i, a, b);
6282
- if (a === void 0 && b === void 0) return 0;
6283
- else if (b === void 0) return 1;
6284
- else if (a === void 0) return -1;
6285
- else if (a === b) continue;
6286
- else return compareIdentifiers(a, b);
6287
- } while (++i);
6288
- }
6289
- inc(release, identifier, identifierBase) {
6290
- if (release.startsWith("pre")) {
6291
- if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
6292
- if (identifier) {
6293
- const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
6294
- if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
6295
- }
6296
- }
6297
- switch (release) {
6298
- case "premajor":
6299
- this.prerelease.length = 0;
6300
- this.patch = 0;
6301
- this.minor = 0;
6302
- this.major++;
6303
- this.inc("pre", identifier, identifierBase);
6304
- break;
6305
- case "preminor":
6306
- this.prerelease.length = 0;
6307
- this.patch = 0;
6308
- this.minor++;
6309
- this.inc("pre", identifier, identifierBase);
6310
- break;
6311
- case "prepatch":
6312
- this.prerelease.length = 0;
6313
- this.inc("patch", identifier, identifierBase);
6314
- this.inc("pre", identifier, identifierBase);
6315
- break;
6316
- case "prerelease":
6317
- if (this.prerelease.length === 0) this.inc("patch", identifier, identifierBase);
6318
- this.inc("pre", identifier, identifierBase);
6319
- break;
6320
- case "release":
6321
- if (this.prerelease.length === 0) throw new Error(`version ${this.raw} is not a prerelease`);
6322
- this.prerelease.length = 0;
6323
- break;
6324
- case "major":
6325
- if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;
6326
- this.minor = 0;
6327
- this.patch = 0;
6328
- this.prerelease = [];
6329
- break;
6330
- case "minor":
6331
- if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;
6332
- this.patch = 0;
6333
- this.prerelease = [];
6334
- break;
6335
- case "patch":
6336
- if (this.prerelease.length === 0) this.patch++;
6337
- this.prerelease = [];
6338
- break;
6339
- case "pre": {
6340
- const base = Number(identifierBase) ? 1 : 0;
6341
- if (this.prerelease.length === 0) this.prerelease = [base];
6342
- else {
6343
- let i = this.prerelease.length;
6344
- while (--i >= 0) if (typeof this.prerelease[i] === "number") {
6345
- this.prerelease[i]++;
6346
- i = -2;
6347
- }
6348
- if (i === -1) {
6349
- if (identifier === this.prerelease.join(".") && identifierBase === false) throw new Error("invalid increment argument: identifier already exists");
6350
- this.prerelease.push(base);
6351
- }
6352
- }
6353
- if (identifier) {
6354
- let prerelease = [identifier, base];
6355
- if (identifierBase === false) prerelease = [identifier];
6356
- if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
6357
- if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
6358
- } else this.prerelease = prerelease;
6359
- }
6360
- break;
6361
- }
6362
- default: throw new Error(`invalid increment argument: ${release}`);
6363
- }
6364
- this.raw = this.format();
6365
- if (this.build.length) this.raw += `+${this.build.join(".")}`;
6366
- return this;
6367
- }
6368
- };
6369
- }));
6370
- //#endregion
6371
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.js
6372
- var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6373
- const SemVer = require_semver$1();
6374
- const parse = (version, options, throwErrors = false) => {
6375
- if (version instanceof SemVer) return version;
6376
- try {
6377
- return new SemVer(version, options);
6378
- } catch (er) {
6379
- if (!throwErrors) return null;
6380
- throw er;
6381
- }
6382
- };
6383
- module.exports = parse;
6384
- }));
6385
- //#endregion
6386
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/valid.js
6387
- var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6388
- const parse = require_parse();
6389
- const valid = (version, options) => {
6390
- const v = parse(version, options);
6391
- return v ? v.version : null;
6392
- };
6393
- module.exports = valid;
6394
- }));
6395
- //#endregion
6396
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/clean.js
6397
- var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6398
- const parse = require_parse();
6399
- const clean = (version, options) => {
6400
- const s = parse(version.trim().replace(/^[=v]+/, ""), options);
6401
- return s ? s.version : null;
6402
- };
6403
- module.exports = clean;
6404
- }));
6405
- //#endregion
6406
6051
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/inc.js
6407
6052
  var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6408
6053
  const SemVer = require_semver$1();
@@ -6423,7 +6068,7 @@ var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6423
6068
  //#endregion
6424
6069
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/diff.js
6425
6070
  var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6426
- const parse = require_parse();
6071
+ const parse = require_parse$1();
6427
6072
  const diff = (version1, version2) => {
6428
6073
  const v1 = parse(version1, null, true);
6429
6074
  const v2 = parse(version2, null, true);
@@ -6472,7 +6117,7 @@ var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6472
6117
  //#endregion
6473
6118
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/prerelease.js
6474
6119
  var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6475
- const parse = require_parse();
6120
+ const parse = require_parse$1();
6476
6121
  const prerelease = (version, options) => {
6477
6122
  const parsed = parse(version, options);
6478
6123
  return parsed && parsed.prerelease.length ? parsed.prerelease : null;
@@ -6603,7 +6248,7 @@ var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6603
6248
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/coerce.js
6604
6249
  var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6605
6250
  const SemVer = require_semver$1();
6606
- const parse = require_parse();
6251
+ const parse = require_parse$1();
6607
6252
  const { safeRe: re, t } = require_re();
6608
6253
  const coerce = (version, options) => {
6609
6254
  if (version instanceof SemVer) return version;
@@ -7338,7 +6983,7 @@ var import_semver = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
7338
6983
  const SemVer = require_semver$1();
7339
6984
  const identifiers = require_identifiers();
7340
6985
  module.exports = {
7341
- parse: require_parse(),
6986
+ parse: require_parse$1(),
7342
6987
  valid: require_valid$1(),
7343
6988
  clean: require_clean(),
7344
6989
  inc: require_inc(),
@@ -7460,10 +7105,11 @@ async function makeVersionedDependency(args) {
7460
7105
  return `"${args.name}": "${version}"`;
7461
7106
  }
7462
7107
  function parseTag(args) {
7463
- const { tag, dev, staging } = args;
7108
+ const { tag, dev, staging, rc } = args;
7464
7109
  if (tag) return tag;
7465
7110
  if (dev) return "dev";
7466
7111
  if (staging) return "staging";
7112
+ if (rc) return "rc";
7467
7113
  return "latest";
7468
7114
  }
7469
7115
  function parsePackageManager(args) {
@@ -7483,6 +7129,7 @@ function handleMutuallyExclusiveOptions(options, optionsName) {
7483
7129
  function getTagFromVersion(version) {
7484
7130
  if (version.includes("dev")) return "dev";
7485
7131
  if (version.includes("staging")) return "staging";
7132
+ if (version.includes("rc")) return "rc";
7486
7133
  return "latest";
7487
7134
  }
7488
7135
  function logVersionUpdate(args) {
@@ -8177,6 +7824,24 @@ const phConnectRuntimeConfigSchema = {
8177
7824
  default: false
8178
7825
  }
8179
7826
  }
7827
+ },
7828
+ instance: {
7829
+ type: "object",
7830
+ additionalProperties: false,
7831
+ required: ["namespace", "reactorWorker"],
7832
+ description: "Per-instance identity. Lets one origin host multiple isolated Connect instances, each with its own storage + SharedWorker namespace.",
7833
+ properties: {
7834
+ namespace: {
7835
+ type: ["string", "null"],
7836
+ description: "Explicit storage/SharedWorker namespace for this instance. `null` derives it from the base path (and, later, the configured endpoint), so root deployments stay byte-identical.",
7837
+ default: null
7838
+ },
7839
+ reactorWorker: {
7840
+ type: "boolean",
7841
+ description: "Host the reactor in a shared worker instead of on the main thread. Off by default; the main-thread reactor stays the proven path until cutover is verified.",
7842
+ default: false
7843
+ }
7844
+ }
8180
7845
  }
8181
7846
  }
8182
7847
  };