@powerhousedao/shared 6.2.0-dev.9 → 6.2.0-rc.1

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 (92) hide show
  1. package/dist/clis/args/access-token.mjs +1 -1
  2. package/dist/clis/args/{common-Dmf4BGPa.d.mts → common-C5n5ai5C.d.mts} +7 -4
  3. package/dist/clis/args/{common-Dmf4BGPa.d.mts.map → common-C5n5ai5C.d.mts.map} +1 -1
  4. package/dist/clis/args/{common-fPNESurz.mjs → common-dbsvksvf.mjs} +7 -2
  5. package/dist/clis/args/common-dbsvksvf.mjs.map +1 -0
  6. package/dist/clis/args/common.d.mts +2 -2
  7. package/dist/clis/args/common.mjs +2 -2
  8. package/dist/clis/args/connect.d.mts +17 -5
  9. package/dist/clis/args/connect.d.mts.map +1 -1
  10. package/dist/clis/args/connect.mjs +3 -1
  11. package/dist/clis/args/connect.mjs.map +1 -1
  12. package/dist/clis/args/{generate-CTTdiwMD.mjs → generate-Cs5okckF.mjs} +2 -2
  13. package/dist/clis/args/{generate-CTTdiwMD.mjs.map → generate-Cs5okckF.mjs.map} +1 -1
  14. package/dist/clis/args/generate.mjs +1 -1
  15. package/dist/clis/args/{help-CfBzQJpL.mjs → help-BkF9Cxud.mjs} +3 -3
  16. package/dist/clis/args/{help-CfBzQJpL.mjs.map → help-BkF9Cxud.mjs.map} +1 -1
  17. package/dist/clis/args/help.mjs +1 -1
  18. package/dist/clis/args/index.d.mts +3 -3
  19. package/dist/clis/args/index.mjs +4 -4
  20. package/dist/clis/args/init.d.mts +3 -0
  21. package/dist/clis/args/init.d.mts.map +1 -1
  22. package/dist/clis/args/init.mjs +9 -3
  23. package/dist/clis/args/init.mjs.map +1 -1
  24. package/dist/clis/args/inspect.mjs +1 -1
  25. package/dist/clis/args/install.mjs +1 -1
  26. package/dist/clis/args/list.mjs +1 -1
  27. package/dist/clis/args/login.mjs +1 -1
  28. package/dist/clis/args/migrate.mjs +1 -1
  29. package/dist/clis/args/publish.mjs +1 -1
  30. package/dist/clis/args/registry.mjs +1 -1
  31. package/dist/clis/args/service-51afW_Hz.d.mts +22 -0
  32. package/dist/clis/args/service-51afW_Hz.d.mts.map +1 -0
  33. package/dist/clis/args/service.d.mts +1 -1
  34. package/dist/clis/args/service.mjs +1 -1
  35. package/dist/clis/args/switchboard.mjs +1 -1
  36. package/dist/clis/args/uninstall.mjs +1 -1
  37. package/dist/clis/args/unpublish.mjs +1 -1
  38. package/dist/clis/args/vetra.d.mts +4 -1
  39. package/dist/clis/args/vetra.d.mts.map +1 -1
  40. package/dist/clis/args/vetra.mjs +2 -1
  41. package/dist/clis/args/vetra.mjs.map +1 -1
  42. package/dist/clis/build-config.d.mts +1 -1
  43. package/dist/clis/build-config.d.mts.map +1 -1
  44. package/dist/clis/build-config.mjs +2 -1
  45. package/dist/clis/build-config.mjs.map +1 -1
  46. package/dist/clis/constants.d.mts +17 -97
  47. package/dist/clis/constants.d.mts.map +1 -1
  48. package/dist/clis/constants.mjs +47 -12
  49. package/dist/clis/constants.mjs.map +1 -1
  50. package/dist/clis/index.d.mts +40 -98
  51. package/dist/clis/index.d.mts.map +1 -1
  52. package/dist/clis/index.mjs +465 -53
  53. package/dist/clis/index.mjs.map +1 -1
  54. package/dist/connect/config-loader.d.ts +1 -1
  55. package/dist/connect/index.d.ts +1 -1
  56. package/dist/document-drive/index.d.ts +2 -2
  57. package/dist/document-drive/index.d.ts.map +1 -1
  58. package/dist/document-model/index.d.ts +4 -4
  59. package/dist/document-model/index.js +315 -4
  60. package/dist/document-model/index.js.map +1 -1
  61. package/dist/document-model/mock.d.ts +1 -1
  62. package/dist/document-model/mock.js +7 -2
  63. package/dist/document-model/mock.js.map +1 -1
  64. package/dist/document-model/utils.d.ts +1 -1
  65. package/dist/{index-CxGZy8_i.d.ts → index-DLx4nU83.d.ts} +41 -3
  66. package/dist/index-DLx4nU83.d.ts.map +1 -0
  67. package/dist/index.d.ts +3 -3
  68. package/dist/{mock-CbrXTFOF.d.ts → mock-CBcf78ra.d.ts} +2 -2
  69. package/dist/mock-CBcf78ra.d.ts.map +1 -0
  70. package/dist/processors/index.d.ts +1 -1
  71. package/dist/registry/index.d.ts +4 -3
  72. package/dist/registry/index.d.ts.map +1 -1
  73. package/dist/registry/index.js +2 -1
  74. package/dist/registry/index.js.map +1 -1
  75. package/dist/registry/manifest-slim.d.ts +17 -0
  76. package/dist/registry/manifest-slim.d.ts.map +1 -0
  77. package/dist/registry/manifest-slim.js +57 -0
  78. package/dist/registry/manifest-slim.js.map +1 -0
  79. package/dist/types-Bo4Rb8Yf.d.ts +2492 -0
  80. package/dist/types-Bo4Rb8Yf.d.ts.map +1 -0
  81. package/dist/{types-Lj1TT2LW.d.ts → types-CNrnJSBw.d.ts} +3 -2
  82. package/dist/{types-Lj1TT2LW.d.ts.map → types-CNrnJSBw.d.ts.map} +1 -1
  83. package/dist/{types-CdiI9CJ9.d.ts → types-CgGSyOl6.d.ts} +2 -2
  84. package/dist/{types-CdiI9CJ9.d.ts.map → types-CgGSyOl6.d.ts.map} +1 -1
  85. package/package.json +16 -3
  86. package/dist/clis/args/common-fPNESurz.mjs.map +0 -1
  87. package/dist/clis/args/service-Bzt4_WtZ.d.mts +0 -106
  88. package/dist/clis/args/service-Bzt4_WtZ.d.mts.map +0 -1
  89. package/dist/index-CxGZy8_i.d.ts.map +0 -1
  90. package/dist/mock-CbrXTFOF.d.ts.map +0 -1
  91. package/dist/types-DFeAUtLQ.d.ts +0 -21023
  92. package/dist/types-DFeAUtLQ.d.ts.map +0 -1
@@ -131,6 +131,10 @@ const packageJsonExports = {
131
131
  browser: "./dist/browser/index.js",
132
132
  node: "./dist/node/index.mjs"
133
133
  },
134
+ "./reactor": {
135
+ types: "./dist/types/reactor/index.d.ts",
136
+ browser: "./dist/browser/reactor/index.js"
137
+ },
134
138
  "./document-models": {
135
139
  types: "./dist/types/document-models/index.d.ts",
136
140
  browser: "./dist/browser/document-models/index.js",
@@ -166,8 +170,10 @@ const packageJsonExports = {
166
170
  };
167
171
  const packageScripts = {
168
172
  "test:watch": "vitest",
169
- lint: "eslint --config eslint.config.js --cache",
170
- "lint:fix": "npm run lint -- --fix",
173
+ lint: "oxlint --type-aware --type-check",
174
+ "lint:fix": "oxlint --type-aware --type-check --fix",
175
+ format: "oxfmt",
176
+ "format:check": "oxfmt --check",
171
177
  tsc: "tsc",
172
178
  "tsc:watch": "tsc --watch",
173
179
  generate: "ph-cli generate",
@@ -180,10 +186,43 @@ const packageScripts = {
180
186
  "service-unstartup": "bash ./node_modules/@powerhousedao/ph-cli/dist/scripts/service-unstartup.sh"
181
187
  };
182
188
  const externalDependencies = {};
189
+ const LEGACY_LINT_FORMAT_DEPENDENCIES = [
190
+ "@eslint/js",
191
+ "eslint",
192
+ "eslint-config-prettier",
193
+ "eslint-plugin-prettier",
194
+ "eslint-plugin-react",
195
+ "eslint-plugin-react-hooks",
196
+ "globals",
197
+ "prettier",
198
+ "typescript-eslint"
199
+ ];
200
+ const LEGACY_LINT_FORMAT_FILES = [
201
+ "eslint.config.js",
202
+ "eslint.config.mjs",
203
+ "eslint.config.cjs",
204
+ "eslint.config.ts",
205
+ ".eslintrc",
206
+ ".eslintrc.js",
207
+ ".eslintrc.cjs",
208
+ ".eslintrc.json",
209
+ ".eslintrc.yml",
210
+ ".eslintrc.yaml",
211
+ ".eslintignore",
212
+ ".prettierrc",
213
+ ".prettierrc.js",
214
+ ".prettierrc.cjs",
215
+ ".prettierrc.json",
216
+ ".prettierrc.yml",
217
+ ".prettierrc.yaml",
218
+ "prettier.config.js",
219
+ "prettier.config.cjs",
220
+ "prettier.config.mjs",
221
+ ".prettierignore"
222
+ ];
183
223
  const externalDevDependencies = {
184
224
  "@electric-sql/pglite": "0.3.15",
185
225
  "@electric-sql/pglite-tools": "0.2.20",
186
- "@eslint/js": "^9.38.0",
187
226
  "@powerhousedao/document-engineering": "1.40.5",
188
227
  "@tailwindcss/cli": "^4.1.18",
189
228
  "@tailwindcss/vite": "^4.1.18",
@@ -192,16 +231,12 @@ const externalDevDependencies = {
192
231
  "@types/react-dom": "^19.2.3",
193
232
  "@vitejs/plugin-react": "^6.0.1",
194
233
  "@vitest/coverage-v8": "4.1.1",
195
- eslint: "^9.38.0",
196
- "eslint-config-prettier": "^10.1.8",
197
- "eslint-plugin-prettier": "^5.5.4",
198
- "eslint-plugin-react": "^7.37.5",
199
- "eslint-plugin-react-hooks": "^7.0.1",
200
- globals: "^16.4.0",
234
+ oxfmt: "0.55.0",
235
+ oxlint: "1.70.0",
236
+ "oxlint-tsgolint": "0.23.0",
201
237
  tailwindcss: "^4.1.16",
202
238
  typescript: "^5.9.3",
203
- "typescript-eslint": "^8.46.2",
204
- vite: "^8.0.8",
239
+ vite: "^8.0.10",
205
240
  "vite-tsconfig-paths": "6.1.1",
206
241
  vitest: "4.1.1"
207
242
  };
@@ -384,6 +419,11 @@ const connectBasePath = option({
384
419
  description: "Base path for the app",
385
420
  defaultValue: () => "/"
386
421
  });
422
+ const renownNamespace = option({
423
+ type: optional(string),
424
+ long: "renown-namespace",
425
+ description: "Renown localStorage namespace; share it across Connects to share login."
426
+ });
387
427
  const drivesPreserveStrategy = option({
388
428
  type: oneOf(DRIVES_PRESERVE_STRATEGIES),
389
429
  long: "drive-preserve-strategy",
@@ -486,6 +526,7 @@ const connectStudioArgs = {
486
526
  defaultValue: () => DEFAULT_CONNECT_STUDIO_PORT,
487
527
  defaultValueIsSerializable: true
488
528
  }),
529
+ renownNamespace,
489
530
  ...commonArgs,
490
531
  ...commonServerArgs
491
532
  };
@@ -510,6 +551,7 @@ const connectRuntimeOverrideArgs = {
510
551
  long: "renown-chain-id",
511
552
  description: "Override connect.renown.chainId."
512
553
  }),
554
+ renownNamespace,
513
555
  allowAddDrive: option({
514
556
  type: optional(cliBoolean),
515
557
  long: "allow-add-drive",
@@ -1087,6 +1129,7 @@ const vetraArgs = {
1087
1129
  long: "db-path",
1088
1130
  description: "Database path or connection string. Use a `postgres://` URL for Postgres; otherwise treated as a PGlite filesystem path. Leave unset for in-memory PGlite."
1089
1131
  }),
1132
+ renownNamespace,
1090
1133
  ...commonArgs,
1091
1134
  ...commonServerArgs,
1092
1135
  ...vetraSwitchboardArgs
@@ -1244,11 +1287,12 @@ const initArgs = {
1244
1287
  type: optional(oneOf([
1245
1288
  "latest",
1246
1289
  "staging",
1247
- "dev"
1290
+ "dev",
1291
+ "rc"
1248
1292
  ])),
1249
1293
  long: "tag",
1250
1294
  short: "t",
1251
- 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".`
1252
1296
  }),
1253
1297
  version: option({
1254
1298
  type: optional(string),
@@ -1268,6 +1312,11 @@ const initArgs = {
1268
1312
  short: "s",
1269
1313
  description: "Use the `staging` release tag."
1270
1314
  }),
1315
+ rc: flag({
1316
+ type: optional(boolean),
1317
+ long: "rc",
1318
+ description: "Use the `rc` release tag."
1319
+ }),
1271
1320
  remoteDrive: option({
1272
1321
  type: optional(string),
1273
1322
  long: "remote-drive",
@@ -2783,13 +2832,13 @@ function parseJson(string, reviver, fileName) {
2783
2832
  }
2784
2833
  }
2785
2834
  //#endregion
2786
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/debug.js
2787
- var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2835
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/debug.js
2836
+ var require_debug$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2788
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) : () => {};
2789
2838
  }));
2790
2839
  //#endregion
2791
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/constants.js
2792
- var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2840
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/constants.js
2841
+ var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2793
2842
  const SEMVER_SPEC_VERSION = "2.0.0";
2794
2843
  const MAX_LENGTH = 256;
2795
2844
  const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
@@ -2813,10 +2862,10 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2813
2862
  };
2814
2863
  }));
2815
2864
  //#endregion
2816
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/re.js
2817
- var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2818
- const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
2819
- const debug = require_debug();
2865
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/re.js
2866
+ var require_re$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2867
+ const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants$1();
2868
+ const debug = require_debug$1();
2820
2869
  exports = module.exports = {};
2821
2870
  const re = exports.re = [];
2822
2871
  const safeRe = exports.safeRe = [];
@@ -2892,8 +2941,8 @@ var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2892
2941
  createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
2893
2942
  }));
2894
2943
  //#endregion
2895
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/parse-options.js
2896
- var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2944
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/parse-options.js
2945
+ var require_parse_options$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2897
2946
  const looseOption = Object.freeze({ loose: true });
2898
2947
  const emptyOpts = Object.freeze({});
2899
2948
  const parseOptions = (options) => {
@@ -2904,8 +2953,8 @@ var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) =>
2904
2953
  module.exports = parseOptions;
2905
2954
  }));
2906
2955
  //#endregion
2907
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/identifiers.js
2908
- var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2956
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/identifiers.js
2957
+ var require_identifiers$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2909
2958
  const numeric = /^[0-9]+$/;
2910
2959
  const compareIdentifiers = (a, b) => {
2911
2960
  if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
@@ -2924,13 +2973,19 @@ var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2924
2973
  };
2925
2974
  }));
2926
2975
  //#endregion
2927
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/semver.js
2928
- var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2929
- const debug = require_debug();
2930
- const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
2931
- const { safeRe: re, t } = require_re();
2932
- const parseOptions = require_parse_options();
2933
- const { compareIdentifiers } = require_identifiers();
2976
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/classes/semver.js
2977
+ var require_semver$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2978
+ const debug = require_debug$1();
2979
+ const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants$1();
2980
+ const { safeRe: re, t } = require_re$1();
2981
+ const parseOptions = require_parse_options$1();
2982
+ const { compareIdentifiers } = require_identifiers$1();
2983
+ const isPrereleaseIdentifier = (prerelease, identifier) => {
2984
+ const identifiers = identifier.split(".");
2985
+ if (identifiers.length > prerelease.length) return false;
2986
+ for (let i = 0; i < identifiers.length; i++) if (compareIdentifiers(prerelease[i], identifiers[i]) !== 0) return false;
2987
+ return true;
2988
+ };
2934
2989
  module.exports = class SemVer {
2935
2990
  constructor(version, options) {
2936
2991
  options = parseOptions(options);
@@ -3087,8 +3142,9 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3087
3142
  if (identifier) {
3088
3143
  let prerelease = [identifier, base];
3089
3144
  if (identifierBase === false) prerelease = [identifier];
3090
- if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
3091
- if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
3145
+ if (isPrereleaseIdentifier(this.prerelease, identifier)) {
3146
+ const prereleaseBase = this.prerelease[identifier.split(".").length];
3147
+ if (isNaN(prereleaseBase)) this.prerelease = prerelease;
3092
3148
  } else this.prerelease = prerelease;
3093
3149
  }
3094
3150
  break;
@@ -3102,9 +3158,9 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3102
3158
  };
3103
3159
  }));
3104
3160
  //#endregion
3105
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.js
3106
- var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3107
- const SemVer = require_semver$1();
3161
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/parse.js
3162
+ var require_parse$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3163
+ const SemVer = require_semver$2();
3108
3164
  const parse = (version, options, throwErrors = false) => {
3109
3165
  if (version instanceof SemVer) return version;
3110
3166
  try {
@@ -3117,9 +3173,9 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3117
3173
  module.exports = parse;
3118
3174
  }));
3119
3175
  //#endregion
3120
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/valid.js
3121
- var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3122
- const parse = require_parse$1();
3176
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/valid.js
3177
+ var require_valid$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3178
+ const parse = require_parse$2();
3123
3179
  const valid = (version, options) => {
3124
3180
  const v = parse(version, options);
3125
3181
  return v ? v.version : null;
@@ -3127,9 +3183,9 @@ var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3127
3183
  module.exports = valid;
3128
3184
  }));
3129
3185
  //#endregion
3130
- //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/clean.js
3131
- var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3132
- const parse = require_parse$1();
3186
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/clean.js
3187
+ var require_clean$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3188
+ const parse = require_parse$2();
3133
3189
  const clean = (version, options) => {
3134
3190
  const s = parse(version.trim().replace(/^[=v]+/, ""), options);
3135
3191
  return s ? s.version : null;
@@ -4036,7 +4092,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4036
4092
  }));
4037
4093
  //#endregion
4038
4094
  //#region ../../node_modules/.pnpm/spdx-expression-parse@3.0.1/node_modules/spdx-expression-parse/parse.js
4039
- var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4095
+ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4040
4096
  module.exports = function(tokens) {
4041
4097
  var index = 0;
4042
4098
  function hasMore() {
@@ -4127,7 +4183,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4127
4183
  //#region ../../node_modules/.pnpm/spdx-expression-parse@3.0.1/node_modules/spdx-expression-parse/index.js
4128
4184
  var require_spdx_expression_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4129
4185
  var scan = require_scan();
4130
- var parse = require_parse();
4186
+ var parse = require_parse$1();
4131
4187
  module.exports = function(source) {
4132
4188
  return parse(scan(source));
4133
4189
  };
@@ -5566,8 +5622,8 @@ var require_typos = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5566
5622
  //#region ../../node_modules/.pnpm/normalize-package-data@8.0.0/node_modules/normalize-package-data/lib/fixer.js
5567
5623
  var require_fixer = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5568
5624
  var { URL: URL$1 } = __require("node:url");
5569
- var isValidSemver = require_valid$1();
5570
- var cleanSemver = require_clean();
5625
+ var isValidSemver = require_valid$2();
5626
+ var cleanSemver = require_clean$1();
5571
5627
  var validateLicense = require_validate_npm_package_license();
5572
5628
  var hostedGitInfo = require_lib();
5573
5629
  var { isBuiltin } = __require("node:module");
@@ -5999,6 +6055,360 @@ async function readPackage({ cwd, normalize = true } = {}) {
5999
6055
  return _readPackage(await fsPromises.readFile(getPackagePath(cwd), "utf8"), normalize);
6000
6056
  }
6001
6057
  //#endregion
6058
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/constants.js
6059
+ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6060
+ const SEMVER_SPEC_VERSION = "2.0.0";
6061
+ const MAX_LENGTH = 256;
6062
+ const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
6063
+ module.exports = {
6064
+ MAX_LENGTH,
6065
+ MAX_SAFE_COMPONENT_LENGTH: 16,
6066
+ MAX_SAFE_BUILD_LENGTH: MAX_LENGTH - 6,
6067
+ MAX_SAFE_INTEGER,
6068
+ RELEASE_TYPES: [
6069
+ "major",
6070
+ "premajor",
6071
+ "minor",
6072
+ "preminor",
6073
+ "patch",
6074
+ "prepatch",
6075
+ "prerelease"
6076
+ ],
6077
+ SEMVER_SPEC_VERSION,
6078
+ FLAG_INCLUDE_PRERELEASE: 1,
6079
+ FLAG_LOOSE: 2
6080
+ };
6081
+ }));
6082
+ //#endregion
6083
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/debug.js
6084
+ var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6085
+ module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
6086
+ }));
6087
+ //#endregion
6088
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/re.js
6089
+ var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6090
+ const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
6091
+ const debug = require_debug();
6092
+ exports = module.exports = {};
6093
+ const re = exports.re = [];
6094
+ const safeRe = exports.safeRe = [];
6095
+ const src = exports.src = [];
6096
+ const safeSrc = exports.safeSrc = [];
6097
+ const t = exports.t = {};
6098
+ let R = 0;
6099
+ const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
6100
+ const safeRegexReplacements = [
6101
+ ["\\s", 1],
6102
+ ["\\d", MAX_LENGTH],
6103
+ [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
6104
+ ];
6105
+ const makeSafeRegex = (value) => {
6106
+ for (const [token, max] of safeRegexReplacements) value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
6107
+ return value;
6108
+ };
6109
+ const createToken = (name, value, isGlobal) => {
6110
+ const safe = makeSafeRegex(value);
6111
+ const index = R++;
6112
+ debug(name, index, value);
6113
+ t[name] = index;
6114
+ src[index] = value;
6115
+ safeSrc[index] = safe;
6116
+ re[index] = new RegExp(value, isGlobal ? "g" : void 0);
6117
+ safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
6118
+ };
6119
+ createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
6120
+ createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
6121
+ createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
6122
+ createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
6123
+ createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
6124
+ createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
6125
+ createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
6126
+ createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
6127
+ createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
6128
+ createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
6129
+ createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
6130
+ createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
6131
+ createToken("FULL", `^${src[t.FULLPLAIN]}$`);
6132
+ createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
6133
+ createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
6134
+ createToken("GTLT", "((?:<|>)?=?)");
6135
+ createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
6136
+ createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
6137
+ createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
6138
+ createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
6139
+ createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
6140
+ createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
6141
+ createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
6142
+ createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
6143
+ createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
6144
+ createToken("COERCERTL", src[t.COERCE], true);
6145
+ createToken("COERCERTLFULL", src[t.COERCEFULL], true);
6146
+ createToken("LONETILDE", "(?:~>?)");
6147
+ createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
6148
+ exports.tildeTrimReplace = "$1~";
6149
+ createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
6150
+ createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
6151
+ createToken("LONECARET", "(?:\\^)");
6152
+ createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
6153
+ exports.caretTrimReplace = "$1^";
6154
+ createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
6155
+ createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
6156
+ createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
6157
+ createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
6158
+ createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
6159
+ exports.comparatorTrimReplace = "$1$2$3";
6160
+ createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
6161
+ createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
6162
+ createToken("STAR", "(<|>)?=?\\s*\\*");
6163
+ createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
6164
+ createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
6165
+ }));
6166
+ //#endregion
6167
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/parse-options.js
6168
+ var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6169
+ const looseOption = Object.freeze({ loose: true });
6170
+ const emptyOpts = Object.freeze({});
6171
+ const parseOptions = (options) => {
6172
+ if (!options) return emptyOpts;
6173
+ if (typeof options !== "object") return looseOption;
6174
+ return options;
6175
+ };
6176
+ module.exports = parseOptions;
6177
+ }));
6178
+ //#endregion
6179
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/identifiers.js
6180
+ var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6181
+ const numeric = /^[0-9]+$/;
6182
+ const compareIdentifiers = (a, b) => {
6183
+ if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
6184
+ const anum = numeric.test(a);
6185
+ const bnum = numeric.test(b);
6186
+ if (anum && bnum) {
6187
+ a = +a;
6188
+ b = +b;
6189
+ }
6190
+ return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
6191
+ };
6192
+ const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
6193
+ module.exports = {
6194
+ compareIdentifiers,
6195
+ rcompareIdentifiers
6196
+ };
6197
+ }));
6198
+ //#endregion
6199
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/semver.js
6200
+ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6201
+ const debug = require_debug();
6202
+ const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
6203
+ const { safeRe: re, t } = require_re();
6204
+ const parseOptions = require_parse_options();
6205
+ const { compareIdentifiers } = require_identifiers();
6206
+ module.exports = class SemVer {
6207
+ constructor(version, options) {
6208
+ options = parseOptions(options);
6209
+ if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
6210
+ else version = version.version;
6211
+ else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
6212
+ if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
6213
+ debug("SemVer", version, options);
6214
+ this.options = options;
6215
+ this.loose = !!options.loose;
6216
+ this.includePrerelease = !!options.includePrerelease;
6217
+ const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
6218
+ if (!m) throw new TypeError(`Invalid Version: ${version}`);
6219
+ this.raw = version;
6220
+ this.major = +m[1];
6221
+ this.minor = +m[2];
6222
+ this.patch = +m[3];
6223
+ if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
6224
+ if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
6225
+ if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
6226
+ if (!m[4]) this.prerelease = [];
6227
+ else this.prerelease = m[4].split(".").map((id) => {
6228
+ if (/^[0-9]+$/.test(id)) {
6229
+ const num = +id;
6230
+ if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
6231
+ }
6232
+ return id;
6233
+ });
6234
+ this.build = m[5] ? m[5].split(".") : [];
6235
+ this.format();
6236
+ }
6237
+ format() {
6238
+ this.version = `${this.major}.${this.minor}.${this.patch}`;
6239
+ if (this.prerelease.length) this.version += `-${this.prerelease.join(".")}`;
6240
+ return this.version;
6241
+ }
6242
+ toString() {
6243
+ return this.version;
6244
+ }
6245
+ compare(other) {
6246
+ debug("SemVer.compare", this.version, this.options, other);
6247
+ if (!(other instanceof SemVer)) {
6248
+ if (typeof other === "string" && other === this.version) return 0;
6249
+ other = new SemVer(other, this.options);
6250
+ }
6251
+ if (other.version === this.version) return 0;
6252
+ return this.compareMain(other) || this.comparePre(other);
6253
+ }
6254
+ compareMain(other) {
6255
+ if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
6256
+ if (this.major < other.major) return -1;
6257
+ if (this.major > other.major) return 1;
6258
+ if (this.minor < other.minor) return -1;
6259
+ if (this.minor > other.minor) return 1;
6260
+ if (this.patch < other.patch) return -1;
6261
+ if (this.patch > other.patch) return 1;
6262
+ return 0;
6263
+ }
6264
+ comparePre(other) {
6265
+ if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
6266
+ if (this.prerelease.length && !other.prerelease.length) return -1;
6267
+ else if (!this.prerelease.length && other.prerelease.length) return 1;
6268
+ else if (!this.prerelease.length && !other.prerelease.length) return 0;
6269
+ let i = 0;
6270
+ do {
6271
+ const a = this.prerelease[i];
6272
+ const b = other.prerelease[i];
6273
+ debug("prerelease compare", i, a, b);
6274
+ if (a === void 0 && b === void 0) return 0;
6275
+ else if (b === void 0) return 1;
6276
+ else if (a === void 0) return -1;
6277
+ else if (a === b) continue;
6278
+ else return compareIdentifiers(a, b);
6279
+ } while (++i);
6280
+ }
6281
+ compareBuild(other) {
6282
+ if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
6283
+ let i = 0;
6284
+ do {
6285
+ const a = this.build[i];
6286
+ const b = other.build[i];
6287
+ debug("build compare", i, a, b);
6288
+ if (a === void 0 && b === void 0) return 0;
6289
+ else if (b === void 0) return 1;
6290
+ else if (a === void 0) return -1;
6291
+ else if (a === b) continue;
6292
+ else return compareIdentifiers(a, b);
6293
+ } while (++i);
6294
+ }
6295
+ inc(release, identifier, identifierBase) {
6296
+ if (release.startsWith("pre")) {
6297
+ if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
6298
+ if (identifier) {
6299
+ const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
6300
+ if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
6301
+ }
6302
+ }
6303
+ switch (release) {
6304
+ case "premajor":
6305
+ this.prerelease.length = 0;
6306
+ this.patch = 0;
6307
+ this.minor = 0;
6308
+ this.major++;
6309
+ this.inc("pre", identifier, identifierBase);
6310
+ break;
6311
+ case "preminor":
6312
+ this.prerelease.length = 0;
6313
+ this.patch = 0;
6314
+ this.minor++;
6315
+ this.inc("pre", identifier, identifierBase);
6316
+ break;
6317
+ case "prepatch":
6318
+ this.prerelease.length = 0;
6319
+ this.inc("patch", identifier, identifierBase);
6320
+ this.inc("pre", identifier, identifierBase);
6321
+ break;
6322
+ case "prerelease":
6323
+ if (this.prerelease.length === 0) this.inc("patch", identifier, identifierBase);
6324
+ this.inc("pre", identifier, identifierBase);
6325
+ break;
6326
+ case "release":
6327
+ if (this.prerelease.length === 0) throw new Error(`version ${this.raw} is not a prerelease`);
6328
+ this.prerelease.length = 0;
6329
+ break;
6330
+ case "major":
6331
+ if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;
6332
+ this.minor = 0;
6333
+ this.patch = 0;
6334
+ this.prerelease = [];
6335
+ break;
6336
+ case "minor":
6337
+ if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;
6338
+ this.patch = 0;
6339
+ this.prerelease = [];
6340
+ break;
6341
+ case "patch":
6342
+ if (this.prerelease.length === 0) this.patch++;
6343
+ this.prerelease = [];
6344
+ break;
6345
+ case "pre": {
6346
+ const base = Number(identifierBase) ? 1 : 0;
6347
+ if (this.prerelease.length === 0) this.prerelease = [base];
6348
+ else {
6349
+ let i = this.prerelease.length;
6350
+ while (--i >= 0) if (typeof this.prerelease[i] === "number") {
6351
+ this.prerelease[i]++;
6352
+ i = -2;
6353
+ }
6354
+ if (i === -1) {
6355
+ if (identifier === this.prerelease.join(".") && identifierBase === false) throw new Error("invalid increment argument: identifier already exists");
6356
+ this.prerelease.push(base);
6357
+ }
6358
+ }
6359
+ if (identifier) {
6360
+ let prerelease = [identifier, base];
6361
+ if (identifierBase === false) prerelease = [identifier];
6362
+ if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
6363
+ if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
6364
+ } else this.prerelease = prerelease;
6365
+ }
6366
+ break;
6367
+ }
6368
+ default: throw new Error(`invalid increment argument: ${release}`);
6369
+ }
6370
+ this.raw = this.format();
6371
+ if (this.build.length) this.raw += `+${this.build.join(".")}`;
6372
+ return this;
6373
+ }
6374
+ };
6375
+ }));
6376
+ //#endregion
6377
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.js
6378
+ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6379
+ const SemVer = require_semver$1();
6380
+ const parse = (version, options, throwErrors = false) => {
6381
+ if (version instanceof SemVer) return version;
6382
+ try {
6383
+ return new SemVer(version, options);
6384
+ } catch (er) {
6385
+ if (!throwErrors) return null;
6386
+ throw er;
6387
+ }
6388
+ };
6389
+ module.exports = parse;
6390
+ }));
6391
+ //#endregion
6392
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/valid.js
6393
+ var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6394
+ const parse = require_parse();
6395
+ const valid = (version, options) => {
6396
+ const v = parse(version, options);
6397
+ return v ? v.version : null;
6398
+ };
6399
+ module.exports = valid;
6400
+ }));
6401
+ //#endregion
6402
+ //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/clean.js
6403
+ var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6404
+ const parse = require_parse();
6405
+ const clean = (version, options) => {
6406
+ const s = parse(version.trim().replace(/^[=v]+/, ""), options);
6407
+ return s ? s.version : null;
6408
+ };
6409
+ module.exports = clean;
6410
+ }));
6411
+ //#endregion
6002
6412
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/inc.js
6003
6413
  var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6004
6414
  const SemVer = require_semver$1();
@@ -6019,7 +6429,7 @@ var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6019
6429
  //#endregion
6020
6430
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/diff.js
6021
6431
  var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6022
- const parse = require_parse$1();
6432
+ const parse = require_parse();
6023
6433
  const diff = (version1, version2) => {
6024
6434
  const v1 = parse(version1, null, true);
6025
6435
  const v2 = parse(version2, null, true);
@@ -6068,7 +6478,7 @@ var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6068
6478
  //#endregion
6069
6479
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/prerelease.js
6070
6480
  var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6071
- const parse = require_parse$1();
6481
+ const parse = require_parse();
6072
6482
  const prerelease = (version, options) => {
6073
6483
  const parsed = parse(version, options);
6074
6484
  return parsed && parsed.prerelease.length ? parsed.prerelease : null;
@@ -6199,7 +6609,7 @@ var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6199
6609
  //#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/coerce.js
6200
6610
  var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6201
6611
  const SemVer = require_semver$1();
6202
- const parse = require_parse$1();
6612
+ const parse = require_parse();
6203
6613
  const { safeRe: re, t } = require_re();
6204
6614
  const coerce = (version, options) => {
6205
6615
  if (version instanceof SemVer) return version;
@@ -6934,7 +7344,7 @@ var import_semver = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
6934
7344
  const SemVer = require_semver$1();
6935
7345
  const identifiers = require_identifiers();
6936
7346
  module.exports = {
6937
- parse: require_parse$1(),
7347
+ parse: require_parse(),
6938
7348
  valid: require_valid$1(),
6939
7349
  clean: require_clean(),
6940
7350
  inc: require_inc(),
@@ -7056,10 +7466,11 @@ async function makeVersionedDependency(args) {
7056
7466
  return `"${args.name}": "${version}"`;
7057
7467
  }
7058
7468
  function parseTag(args) {
7059
- const { tag, dev, staging } = args;
7469
+ const { tag, dev, staging, rc } = args;
7060
7470
  if (tag) return tag;
7061
7471
  if (dev) return "dev";
7062
7472
  if (staging) return "staging";
7473
+ if (rc) return "rc";
7063
7474
  return "latest";
7064
7475
  }
7065
7476
  function parsePackageManager(args) {
@@ -7079,6 +7490,7 @@ function handleMutuallyExclusiveOptions(options, optionsName) {
7079
7490
  function getTagFromVersion(version) {
7080
7491
  if (version.includes("dev")) return "dev";
7081
7492
  if (version.includes("staging")) return "staging";
7493
+ if (version.includes("rc")) return "rc";
7082
7494
  return "latest";
7083
7495
  }
7084
7496
  function logVersionUpdate(args) {
@@ -7999,6 +8411,6 @@ function assertNodeVersion(nodeVersion = process.versions.node) {
7999
8411
  if ((0, import_lt.default)(nodeVersion, "24.0.0")) throw new NodeVersionError(nodeVersion, MINIMUM_NODE_VERSION);
8000
8412
  }
8001
8413
  //#endregion
8002
- export { AGENTS, ANALYTICS_ENGINE_CORE_PACKAGE, BOILERPLATE_ALLOWED_BUILDS, BOILERPLATE_PNPM_OVERRIDES, DEFAULT_CONFIG, DEFAULT_CONNECT_OUTDIR, DEFAULT_CONNECT_PREVIEW_PORT, DEFAULT_CONNECT_STUDIO_PORT, DEFAULT_EXPIRY_DAYS, DEFAULT_EXPIRY_SECONDS, DEFAULT_REGISTRY_LOGIN_EXPIRY, DEFAULT_REGISTRY_URL, DEFAULT_RENOWN_URL, DEFAULT_SWITCHBOARD_PORT, DEFAULT_TIMEOUT, DEFAULT_VETRA_CONNECT_PORT, DEFAULT_VETRA_DRIVE_ID, DRIVES_PRESERVE_STRATEGIES, FEATURE_DEPENDENCIES, GRAPHQL_PACKAGE, GRAPHQL_TAG_PACKAGE, HOME_DIR, LOG_LEVELS, MINIMUM_NODE_VERSION, NodeVersionError, PEER_EXTERNAL_DEPENDENCIES, PH_BIN, PH_GLOBAL_DIR_NAME, PH_GLOBAL_PROJECT_NAME, POWERHOUSE_CONFIG_FILE, POWERHOUSE_GLOBAL_DIR, REACTOR_API_PACKAGE, SECONDS_IN_DAY, SERVICE_ACTIONS, SOURCE_CONFIG_SCHEMA_ID, VERSIONED_DEPENDENCIES, VERSIONED_DEV_DEPENDENCIES, VERSIONED_PEER_DEPENDENCIES, accessTokenArgs, assertNodeVersion, buildArgs, commonArgs, commonServerArgs, connectArgs, connectBasePath, connectBuildArgs, connectConfigArgs, connectPreviewArgs, connectStudioArgs, debugArgs, defaultDrivesUrl, defaultManifest, directoryExists, directoryExistsSync, disableLocalPackages, drivesPreserveStrategy, externalDependencies, externalDevDependencies, fetchNpmVersionFromRegistryForTag, fetchPackageVersionFromNpmRegistry, fileExists, fileExistsSync, force, generateArgs, getConfig, getGlobalPowerhouseProjectDirPath, getLocalPowerhouseProjectDirPath, getPackageManagerAtPowerhouseProjectDirPath, getPackageManagerCommand, getPackageNameFromPackageJson, getPackageVersionFromPackageJson, getPhCliVersionInfo, getPhCmdVersionInfo, getPowerhouseProjectInfo, getPowerhouseProjectInstallCommand, getPowerhouseProjectUninstallCommand, getTagFromVersion, getTelemetryStatus, handleMutuallyExclusiveOptions, https, httpsCertFile, httpsKeyFile, initArgs, initCliTelemetry, injectPnpmAllowBuilds, inspectArgs, installArgs, isDirectory, isFile, isPowerhouseProject, listArgs, localPackage, logLevel, logVersionUpdate, loginArgs, makeDependenciesWithVersions, makeVersionedDependencies, makeVersionedDependenciesMap, migrateArgs, packageJsonExports, packageManagerArgs, packageScripts, packages, parsePackageManager, parsePackageVersion, parseTag, phCliCommandNames, phCliHelpCommands, publishArgs, registryLoginArgs, resolveTelemetryConsent, runCmd, runUseLocal, serviceArgs, setTelemetryConsent, sourceConfigSchema, spawnAsync, switchboardArgs, uninstallArgs, unpublishArgs, vetraArgs, vetraSwitchboardArgs, writeFileEnsuringDir };
8414
+ export { AGENTS, ANALYTICS_ENGINE_CORE_PACKAGE, BOILERPLATE_ALLOWED_BUILDS, BOILERPLATE_PNPM_OVERRIDES, DEFAULT_CONFIG, DEFAULT_CONNECT_OUTDIR, DEFAULT_CONNECT_PREVIEW_PORT, DEFAULT_CONNECT_STUDIO_PORT, DEFAULT_EXPIRY_DAYS, DEFAULT_EXPIRY_SECONDS, DEFAULT_REGISTRY_LOGIN_EXPIRY, DEFAULT_REGISTRY_URL, DEFAULT_RENOWN_URL, DEFAULT_SWITCHBOARD_PORT, DEFAULT_TIMEOUT, DEFAULT_VETRA_CONNECT_PORT, DEFAULT_VETRA_DRIVE_ID, DRIVES_PRESERVE_STRATEGIES, FEATURE_DEPENDENCIES, GRAPHQL_PACKAGE, GRAPHQL_TAG_PACKAGE, HOME_DIR, LEGACY_LINT_FORMAT_DEPENDENCIES, LEGACY_LINT_FORMAT_FILES, LOG_LEVELS, MINIMUM_NODE_VERSION, NodeVersionError, PEER_EXTERNAL_DEPENDENCIES, PH_BIN, PH_GLOBAL_DIR_NAME, PH_GLOBAL_PROJECT_NAME, POWERHOUSE_CONFIG_FILE, POWERHOUSE_GLOBAL_DIR, REACTOR_API_PACKAGE, SECONDS_IN_DAY, SERVICE_ACTIONS, SOURCE_CONFIG_SCHEMA_ID, VERSIONED_DEPENDENCIES, VERSIONED_DEV_DEPENDENCIES, VERSIONED_PEER_DEPENDENCIES, accessTokenArgs, assertNodeVersion, buildArgs, commonArgs, commonServerArgs, connectArgs, connectBasePath, connectBuildArgs, connectConfigArgs, connectPreviewArgs, connectStudioArgs, debugArgs, defaultDrivesUrl, defaultManifest, directoryExists, directoryExistsSync, disableLocalPackages, drivesPreserveStrategy, externalDependencies, externalDevDependencies, fetchNpmVersionFromRegistryForTag, fetchPackageVersionFromNpmRegistry, fileExists, fileExistsSync, force, generateArgs, getConfig, getGlobalPowerhouseProjectDirPath, getLocalPowerhouseProjectDirPath, getPackageManagerAtPowerhouseProjectDirPath, getPackageManagerCommand, getPackageNameFromPackageJson, getPackageVersionFromPackageJson, getPhCliVersionInfo, getPhCmdVersionInfo, getPowerhouseProjectInfo, getPowerhouseProjectInstallCommand, getPowerhouseProjectUninstallCommand, getTagFromVersion, getTelemetryStatus, handleMutuallyExclusiveOptions, https, httpsCertFile, httpsKeyFile, initArgs, initCliTelemetry, injectPnpmAllowBuilds, inspectArgs, installArgs, isDirectory, isFile, isPowerhouseProject, listArgs, localPackage, logLevel, logVersionUpdate, loginArgs, makeDependenciesWithVersions, makeVersionedDependencies, makeVersionedDependenciesMap, migrateArgs, packageJsonExports, packageManagerArgs, packageScripts, packages, parsePackageManager, parsePackageVersion, parseTag, phCliCommandNames, phCliHelpCommands, publishArgs, registryLoginArgs, renownNamespace, resolveTelemetryConsent, runCmd, runUseLocal, serviceArgs, setTelemetryConsent, sourceConfigSchema, spawnAsync, switchboardArgs, uninstallArgs, unpublishArgs, vetraArgs, vetraSwitchboardArgs, writeFileEnsuringDir };
8003
8415
 
8004
8416
  //# sourceMappingURL=index.mjs.map