@storm-software/pnpm-tools 0.6.82 → 0.6.83

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  # Changelog for Storm Ops - Pnpm Tools
4
4
 
5
+ ## [0.6.82](https://github.com/storm-software/storm-ops/releases/tag/pnpm-tools%400.6.82) (01/14/2026)
6
+
7
+ ### Updated Dependencies
8
+
9
+ - Updated **config-tools** to **v1.188.80**
10
+ - Updated **npm-tools** to **v0.6.37**
11
+
5
12
  ## [0.6.81](https://github.com/storm-software/storm-ops/releases/tag/pnpm-tools%400.6.81) (01/14/2026)
6
13
 
7
14
  ### Updated Dependencies
package/bin/pnpm.cjs CHANGED
@@ -136,7 +136,10 @@ async function upgradeCatalog(catalog, packageName, options = {}) {
136
136
  var _config = {};
137
137
  function createProgram(config) {
138
138
  _config = config;
139
- (0, import_config_tools2.writeInfo)("\u26A1 Running the `storm-pnpm` command-line application", config);
139
+ (0, import_config_tools2.writeInfo)(
140
+ `${(0, import_config_tools2.brandIcon)(_config)} Running the \`storm-pnpm\` command-line application`,
141
+ config
142
+ );
140
143
  const root = (0, import_config_tools2.findWorkspaceRootSafe)(_config.workspaceRoot || process.cwd());
141
144
  process.env.STORM_WORKSPACE_ROOT ??= root;
142
145
  process.env.NX_WORKSPACE_ROOT_PATH ??= root;
@@ -175,7 +178,7 @@ async function updateAction(packageNames, {
175
178
  try {
176
179
  const packages = (Array.isArray(packageNames) ? packageNames : [packageNames.split(",")].flat()).map((p) => p.trim().replaceAll("*", ""));
177
180
  (0, import_config_tools2.writeInfo)(
178
- `\u26A1 Preparing to update the package version for ${packages.join(", ")}.`,
181
+ `${(0, import_config_tools2.brandIcon)(_config)} Preparing to update the package version for ${packages.join(", ")}.`,
179
182
  _config
180
183
  );
181
184
  let catalog = await getCatalog();
@@ -196,7 +199,7 @@ async function updateAction(packageNames, {
196
199
  );
197
200
  } else {
198
201
  (0, import_config_tools2.writeTrace)(
199
- `Found ${matchedPackages.length} matching packages in the catalog file:
202
+ `${(0, import_config_tools2.brandIcon)(_config)} Found ${matchedPackages.length} matching packages in the catalog file:
200
203
 
201
204
  - ${matchedPackages.map((p) => `${p} (${catalog[p] || "unknown"})`).join("\n- ")}`,
202
205
  _config
package/bin/pnpm.js CHANGED
@@ -11,6 +11,7 @@ import {
11
11
 
12
12
  // src/cli/index.ts
13
13
  import {
14
+ brandIcon,
14
15
  findWorkspaceRootSafe,
15
16
  runAsync,
16
17
  writeDebug as writeDebug2,
@@ -152,7 +153,10 @@ async function upgradeCatalog(catalog, packageName, options = {}) {
152
153
  var _config = {};
153
154
  function createProgram(config) {
154
155
  _config = config;
155
- writeInfo("\u26A1 Running the `storm-pnpm` command-line application", config);
156
+ writeInfo(
157
+ `${brandIcon(_config)} Running the \`storm-pnpm\` command-line application`,
158
+ config
159
+ );
156
160
  const root = findWorkspaceRootSafe(_config.workspaceRoot || process.cwd());
157
161
  process.env.STORM_WORKSPACE_ROOT ??= root;
158
162
  process.env.NX_WORKSPACE_ROOT_PATH ??= root;
@@ -191,7 +195,7 @@ async function updateAction(packageNames, {
191
195
  try {
192
196
  const packages = (Array.isArray(packageNames) ? packageNames : [packageNames.split(",")].flat()).map((p) => p.trim().replaceAll("*", ""));
193
197
  writeInfo(
194
- `\u26A1 Preparing to update the package version for ${packages.join(", ")}.`,
198
+ `${brandIcon(_config)} Preparing to update the package version for ${packages.join(", ")}.`,
195
199
  _config
196
200
  );
197
201
  let catalog = await getCatalog();
@@ -212,7 +216,7 @@ async function updateAction(packageNames, {
212
216
  );
213
217
  } else {
214
218
  writeTrace3(
215
- `Found ${matchedPackages.length} matching packages in the catalog file:
219
+ `${brandIcon(_config)} Found ${matchedPackages.length} matching packages in the catalog file:
216
220
 
217
221
  - ${matchedPackages.map((p) => `${p} (${catalog[p] || "unknown"})`).join("\n- ")}`,
218
222
  _config
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkMQBANOLW_cjs=require('./chunk-MQBANOLW.cjs'),child_process=require('child_process'),semver=require('semver');var h="latest";var u=h;async function _(r="npm"){return new Promise((t,e)=>{child_process.exec(`${r} config get registry`,(o,a,s)=>o&&!o.message.toLowerCase().trim().startsWith("npm warn")?e(o):s&&!s.toLowerCase().trim().startsWith("npm warn")?e(s):t(a.trim()));})}async function d(r,t=u,e={}){let o=e.executable||"npm",a=e.registry||await _(o);return new Promise((s,i)=>{child_process.exec(`${o} view ${r} version --registry=${a} --tag=${t}`,(n,g,p)=>n&&!n.message.toLowerCase().trim().startsWith("npm warn")?i(n):p&&!p.toLowerCase().trim().startsWith("npm warn")?i(p):s(g.trim()));})}async function G(r=chunkMQBANOLW_cjs.e(process.cwd())){let t=await chunkMQBANOLW_cjs.h(r);if(!t)throw new Error("No pnpm-workspace.yaml file found");if(t?.catalog)return Object.fromEntries(Object.entries(t.catalog).map(([e,o])=>[e,o.replaceAll('"',"").replaceAll("'","")]));console.warn(`No catalog found in pnpm-workspace.yaml file located in workspace root: ${r}
2
- File content: ${JSON.stringify(t,null,2)}`);}async function C(r=chunkMQBANOLW_cjs.e(process.cwd())){let t=await G(r);if(!t)throw new Error("No catalog entries found in pnpm-workspace.yaml file");return t}async function M(r,t=chunkMQBANOLW_cjs.e(process.cwd())){let e=await chunkMQBANOLW_cjs.h(t);if(!e)throw new Error("No pnpm-workspace.yaml file found");e.catalog=Object.fromEntries(Object.entries(r).map(([o,a])=>[o,a.replaceAll('"',"").replaceAll("'","")])),await chunkMQBANOLW_cjs.i(e,t);}async function Q(r,t,e={}){let{tag:o=u,prefix:a="^",workspaceRoot:s=chunkMQBANOLW_cjs.e()}=e,i=await chunkMQBANOLW_cjs.f(true,{workspaceRoot:s});chunkMQBANOLW_cjs.c(`Upgrading catalog entry for package "${t}" with tag "${o}"`,i);let n=await d(t,o,{executable:"pnpm"}),g=`${a||""}${n.replace(/^[\^~><=*]+/g,"")}`;return g===r[t]?chunkMQBANOLW_cjs.c(`The version for package "${t}" is already up to date in the catalog: ${g}`,i):!semver.valid(semver.coerce(r[t]))||semver.coerce(r[t])&&semver.coerce(g)&&semver.gt(semver.coerce(g),semver.coerce(r[t]))?(r[t]=`${a||""}${g.replace(/^[\^~><=*]+/g,"")}`,chunkMQBANOLW_cjs.b(`Writing version ${r[t]} to catalog for "${t}" package`,i)):chunkMQBANOLW_cjs.a(`The current version "${r[t]}" for package "${t}" is greater than or equal to the version "${g}" fetched from the npm registry with tag "${o}". No update performed.`,i),r}async function Z(r,t={}){let{tag:e=u,prefix:o="^",throwIfMissingInCatalog:a=false,workspaceRoot:s=chunkMQBANOLW_cjs.e()}=t,i=await chunkMQBANOLW_cjs.f(true,{workspaceRoot:s}),n=await C(s);if(!n)throw new Error("No catalog found");if(a===true&&!n[r])throw new Error(`Package "${r}" not found in catalog: ${JSON.stringify(n,null,2)}`);chunkMQBANOLW_cjs.c(`Upgrading catalog entry for package "${r}" with tag "${e}"`,i);let g=await d(r,e,{executable:"pnpm"}),p=`${o||""}${g.replace(/^[\^~><=*]+/g,"")}`;p===n[r]?chunkMQBANOLW_cjs.c(`The version for package "${r}" is already up to date in the catalog: ${p}`,i):!semver.valid(semver.coerce(n[r]))||semver.coerce(n[r])&&semver.coerce(p)&&semver.gt(semver.coerce(p),semver.coerce(n[r]))?(n[r]=`${o||""}${p.replace(/^[\^~><=*]+/g,"")}`,chunkMQBANOLW_cjs.b(`Writing version ${n[r]} to catalog for "${r}" package`,i),await M(n,s)):chunkMQBANOLW_cjs.a(`The current version "${n[r]}" for package "${r}" is greater than or equal to the version "${p}" fetched from the npm registry with tag "${e}". No update performed.`,i);}exports.a=G;exports.b=C;exports.c=M;exports.d=Q;exports.e=Z;
1
+ 'use strict';var chunkE3XYGDUJ_cjs=require('./chunk-E3XYGDUJ.cjs'),child_process=require('child_process'),semver=require('semver');var h="latest";var u=h;async function _(r="npm"){return new Promise((t,e)=>{child_process.exec(`${r} config get registry`,(o,a,s)=>o&&!o.message.toLowerCase().trim().startsWith("npm warn")?e(o):s&&!s.toLowerCase().trim().startsWith("npm warn")?e(s):t(a.trim()));})}async function d(r,t=u,e={}){let o=e.executable||"npm",a=e.registry||await _(o);return new Promise((s,i)=>{child_process.exec(`${o} view ${r} version --registry=${a} --tag=${t}`,(n,g,p)=>n&&!n.message.toLowerCase().trim().startsWith("npm warn")?i(n):p&&!p.toLowerCase().trim().startsWith("npm warn")?i(p):s(g.trim()));})}async function G(r=chunkE3XYGDUJ_cjs.e(process.cwd())){let t=await chunkE3XYGDUJ_cjs.h(r);if(!t)throw new Error("No pnpm-workspace.yaml file found");if(t?.catalog)return Object.fromEntries(Object.entries(t.catalog).map(([e,o])=>[e,o.replaceAll('"',"").replaceAll("'","")]));console.warn(`No catalog found in pnpm-workspace.yaml file located in workspace root: ${r}
2
+ File content: ${JSON.stringify(t,null,2)}`);}async function C(r=chunkE3XYGDUJ_cjs.e(process.cwd())){let t=await G(r);if(!t)throw new Error("No catalog entries found in pnpm-workspace.yaml file");return t}async function M(r,t=chunkE3XYGDUJ_cjs.e(process.cwd())){let e=await chunkE3XYGDUJ_cjs.h(t);if(!e)throw new Error("No pnpm-workspace.yaml file found");e.catalog=Object.fromEntries(Object.entries(r).map(([o,a])=>[o,a.replaceAll('"',"").replaceAll("'","")])),await chunkE3XYGDUJ_cjs.i(e,t);}async function Q(r,t,e={}){let{tag:o=u,prefix:a="^",workspaceRoot:s=chunkE3XYGDUJ_cjs.e()}=e,i=await chunkE3XYGDUJ_cjs.f(true,{workspaceRoot:s});chunkE3XYGDUJ_cjs.c(`Upgrading catalog entry for package "${t}" with tag "${o}"`,i);let n=await d(t,o,{executable:"pnpm"}),g=`${a||""}${n.replace(/^[\^~><=*]+/g,"")}`;return g===r[t]?chunkE3XYGDUJ_cjs.c(`The version for package "${t}" is already up to date in the catalog: ${g}`,i):!semver.valid(semver.coerce(r[t]))||semver.coerce(r[t])&&semver.coerce(g)&&semver.gt(semver.coerce(g),semver.coerce(r[t]))?(r[t]=`${a||""}${g.replace(/^[\^~><=*]+/g,"")}`,chunkE3XYGDUJ_cjs.b(`Writing version ${r[t]} to catalog for "${t}" package`,i)):chunkE3XYGDUJ_cjs.a(`The current version "${r[t]}" for package "${t}" is greater than or equal to the version "${g}" fetched from the npm registry with tag "${o}". No update performed.`,i),r}async function Z(r,t={}){let{tag:e=u,prefix:o="^",throwIfMissingInCatalog:a=false,workspaceRoot:s=chunkE3XYGDUJ_cjs.e()}=t,i=await chunkE3XYGDUJ_cjs.f(true,{workspaceRoot:s}),n=await C(s);if(!n)throw new Error("No catalog found");if(a===true&&!n[r])throw new Error(`Package "${r}" not found in catalog: ${JSON.stringify(n,null,2)}`);chunkE3XYGDUJ_cjs.c(`Upgrading catalog entry for package "${r}" with tag "${e}"`,i);let g=await d(r,e,{executable:"pnpm"}),p=`${o||""}${g.replace(/^[\^~><=*]+/g,"")}`;p===n[r]?chunkE3XYGDUJ_cjs.c(`The version for package "${r}" is already up to date in the catalog: ${p}`,i):!semver.valid(semver.coerce(n[r]))||semver.coerce(n[r])&&semver.coerce(p)&&semver.gt(semver.coerce(p),semver.coerce(n[r]))?(n[r]=`${o||""}${p.replace(/^[\^~><=*]+/g,"")}`,chunkE3XYGDUJ_cjs.b(`Writing version ${n[r]} to catalog for "${r}" package`,i),await M(n,s)):chunkE3XYGDUJ_cjs.a(`The current version "${n[r]}" for package "${r}" is greater than or equal to the version "${p}" fetched from the npm registry with tag "${e}". No update performed.`,i);}exports.a=G;exports.b=C;exports.c=M;exports.d=Q;exports.e=Z;
@@ -1,2 +1,2 @@
1
- import {e,h,i,f,c,b,a}from'./chunk-2XIPO6MY.js';import {exec}from'node:child_process';import {valid,coerce,gt}from'semver';var _="latest";var u=_;async function x(r="npm"){return new Promise((t,e)=>{exec(`${r} config get registry`,(o,a,s)=>o&&!o.message.toLowerCase().trim().startsWith("npm warn")?e(o):s&&!s.toLowerCase().trim().startsWith("npm warn")?e(s):t(a.trim()));})}async function R(r,t=u,e={}){let o=e.executable||"npm",a=e.registry||await x(o);return new Promise((s,i)=>{exec(`${o} view ${r} version --registry=${a} --tag=${t}`,(n,g,p)=>n&&!n.message.toLowerCase().trim().startsWith("npm warn")?i(n):p&&!p.toLowerCase().trim().startsWith("npm warn")?i(p):s(g.trim()));})}async function C(r=e(process.cwd())){let t=await h(r);if(!t)throw new Error("No pnpm-workspace.yaml file found");if(t?.catalog)return Object.fromEntries(Object.entries(t.catalog).map(([e,o])=>[e,o.replaceAll('"',"").replaceAll("'","")]));console.warn(`No catalog found in pnpm-workspace.yaml file located in workspace root: ${r}
1
+ import {e,h,i,f,c,b,a}from'./chunk-I4FQEZQN.js';import {exec}from'node:child_process';import {valid,coerce,gt}from'semver';var _="latest";var u=_;async function x(r="npm"){return new Promise((t,e)=>{exec(`${r} config get registry`,(o,a,s)=>o&&!o.message.toLowerCase().trim().startsWith("npm warn")?e(o):s&&!s.toLowerCase().trim().startsWith("npm warn")?e(s):t(a.trim()));})}async function R(r,t=u,e={}){let o=e.executable||"npm",a=e.registry||await x(o);return new Promise((s,i)=>{exec(`${o} view ${r} version --registry=${a} --tag=${t}`,(n,g,p)=>n&&!n.message.toLowerCase().trim().startsWith("npm warn")?i(n):p&&!p.toLowerCase().trim().startsWith("npm warn")?i(p):s(g.trim()));})}async function C(r=e(process.cwd())){let t=await h(r);if(!t)throw new Error("No pnpm-workspace.yaml file found");if(t?.catalog)return Object.fromEntries(Object.entries(t.catalog).map(([e,o])=>[e,o.replaceAll('"',"").replaceAll("'","")]));console.warn(`No catalog found in pnpm-workspace.yaml file located in workspace root: ${r}
2
2
  File content: ${JSON.stringify(t,null,2)}`);}async function M(r=e(process.cwd())){let t=await C(r);if(!t)throw new Error("No catalog entries found in pnpm-workspace.yaml file");return t}async function v(r,t=e(process.cwd())){let e=await h(t);if(!e)throw new Error("No pnpm-workspace.yaml file found");e.catalog=Object.fromEntries(Object.entries(r).map(([o,a])=>[o,a.replaceAll('"',"").replaceAll("'","")])),await i(e,t);}async function Z(r,t,e$1={}){let{tag:o=u,prefix:a$1="^",workspaceRoot:s=e()}=e$1,i=await f(true,{workspaceRoot:s});c(`Upgrading catalog entry for package "${t}" with tag "${o}"`,i);let n=await R(t,o,{executable:"pnpm"}),g=`${a$1||""}${n.replace(/^[\^~><=*]+/g,"")}`;return g===r[t]?c(`The version for package "${t}" is already up to date in the catalog: ${g}`,i):!valid(coerce(r[t]))||coerce(r[t])&&coerce(g)&&gt(coerce(g),coerce(r[t]))?(r[t]=`${a$1||""}${g.replace(/^[\^~><=*]+/g,"")}`,b(`Writing version ${r[t]} to catalog for "${t}" package`,i)):a(`The current version "${r[t]}" for package "${t}" is greater than or equal to the version "${g}" fetched from the npm registry with tag "${o}". No update performed.`,i),r}async function rr(r,t={}){let{tag:e$1=u,prefix:o="^",throwIfMissingInCatalog:a$1=false,workspaceRoot:s=e()}=t,i=await f(true,{workspaceRoot:s}),n=await M(s);if(!n)throw new Error("No catalog found");if(a$1===true&&!n[r])throw new Error(`Package "${r}" not found in catalog: ${JSON.stringify(n,null,2)}`);c(`Upgrading catalog entry for package "${r}" with tag "${e$1}"`,i);let g=await R(r,e$1,{executable:"pnpm"}),p=`${o||""}${g.replace(/^[\^~><=*]+/g,"")}`;p===n[r]?c(`The version for package "${r}" is already up to date in the catalog: ${p}`,i):!valid(coerce(n[r]))||coerce(n[r])&&coerce(p)&&gt(coerce(p),coerce(n[r]))?(n[r]=`${o||""}${p.replace(/^[\^~><=*]+/g,"")}`,b(`Writing version ${n[r]} to catalog for "${r}" package`,i),await v(n,s)):a(`The current version "${n[r]}" for package "${r}" is greater than or equal to the version "${p}" fetched from the npm registry with tag "${e$1}". No update performed.`,i);}export{C as a,M as b,v as c,Z as d,rr as e};
@@ -14,14 +14,14 @@ ${t.gray(R())} ${t.hex(a.debug??E.dark.debug)(`[${S[l.DEBUG]} Debug] `)}${t.bold
14
14
  ${t.gray(R())} ${t.hex("#bbbbbb")(`[${S[l.TRACE]} Trace] `)}${t.bold.whiteBright(h(n))}
15
15
  `);}:n=>{console.log(`
16
16
  ${t.gray(R())} ${t.hex(a.brand??E.dark.brand)(`[${S[l.ALL]} System] `)}${t.bold.whiteBright(h(n))}
17
- `);}};var se=(e,o)=>V(c.WARN,o)(e);var Zr=(e,o)=>V(c.DEBUG,o)(e),O=(e,o)=>V(c.TRACE,o)(e);var Wo=6,h=(e,o={},t=0)=>{if(t>Wo)return "<max depth>";let a=o.prefix??"-",i=o.skip??[];return typeof e>"u"||e===null||!e&&typeof e!="boolean"?"<none>":typeof e=="string"?e:Array.isArray(e)?`
17
+ `);}};var se=(e,o)=>V(c.WARN,o)(e);var Yr=(e,o)=>V(c.DEBUG,o)(e),O=(e,o)=>V(c.TRACE,o)(e);var Wo=6,h=(e,o={},t=0)=>{if(t>Wo)return "<max depth>";let a=o.prefix??"-",i=o.skip??[];return typeof e>"u"||e===null||!e&&typeof e!="boolean"?"<none>":typeof e=="string"?e:Array.isArray(e)?`
18
18
  ${e.map((n,m)=>` ${a}> #${m} = ${h(n,{prefix:`${a}-`,skip:i},t+1)}`).join(`
19
19
  `)}`:typeof e=="object"?`
20
20
  ${Object.keys(e).filter(n=>!i.includes(n)).map(n=>` ${a}> ${n} = ${Mo(e[n])?"<function>":typeof e[n]=="object"?h(e[n],{prefix:`${a}-`,skip:i},t+1):e[n]}`).join(`
21
21
  `)}`:e},Mo=e=>{try{return e instanceof Function||typeof e=="function"||!!(e?.constructor&&e?.call&&e?.apply)}catch{return false}};var Fo=/^[A-Za-z]:\//;function Uo(e=""){return e&&e.replace(/\\/g,"/").replace(Fo,o=>o.toUpperCase())}var jo=/^[/\\]{2}/,Bo=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Ho=/^[A-Za-z]:$/;var p=function(e){if(!e||e.length===0)return ".";e=Uo(e);let o=e?.match(jo),t=ne(e),a=e[e.length-1]==="/";return e=Ko(e,!t),e.length===0?t?"/":a?"./":".":(a&&(e+="/"),Ho.test(e)&&(e+="/"),o?t?`//${e}`:`//./${e}`:t&&!ne(e)?`/${e}`:e)},C=function(...e){let o="";for(let t of e)if(t)if(o.length>0){let a=o[o.length-1]==="/",i=t[0]==="/";a&&i?o+=t.slice(1):o+=a||i?t:`/${t}`;}else o+=t;return p(o)};function Ko(e,o){let t="",a=0,i=-1,n=0,m=null;for(let d=0;d<=e.length;++d){if(d<e.length)m=e[d];else {if(m==="/")break;m="/";}if(m==="/"){if(!(i===d-1||n===1))if(n===2){if(t.length<2||a!==2||t[t.length-1]!=="."||t[t.length-2]!=="."){if(t.length>2){let v=t.lastIndexOf("/");v===-1?(t="",a=0):(t=t.slice(0,v),a=t.length-1-t.lastIndexOf("/")),i=d,n=0;continue}else if(t.length>0){t="",a=0,i=d,n=0;continue}}o&&(t+=t.length>0?"/..":"..",a=2);}else t.length>0?t+=`/${e.slice(i+1,d)}`:t=e.slice(i+1,d),a=d-i-1;i=d,n=0;}else m==="."&&n!==-1?++n:n=-1;}return t}var ne=function(e){return Bo.test(e)};var Zo=30,Yo=0;function X(e,o=[],t=[]){let a=e??process.cwd();if(t.some(i=>fs.existsSync(path.join(a,i)))||o.some(i=>fs.existsSync(path.join(a,i))))return a;if(a!=="/"&&Yo++<Zo){let i=path.join(a,"..");return X(i,o,t)}}var ie=["storm-workspace.json","storm-workspace.yaml","storm-workspace.yml","storm-workspace.js","storm-workspace.ts",".storm-workspace.json",".storm-workspace.yaml",".storm-workspace.yml",".storm-workspace.js",".storm-workspace.ts","lerna.json","nx.json","turbo.json","npm-workspace.json","yarn-workspace.json","pnpm-workspace.json","npm-workspace.yaml","yarn-workspace.yaml","pnpm-workspace.yaml","npm-workspace.yml","yarn-workspace.yml","pnpm-workspace.yml","npm-lock.json","yarn-lock.json","pnpm-lock.json","npm-lock.yaml","yarn-lock.yaml","pnpm-lock.yaml","npm-lock.yml","yarn-lock.yml","pnpm-lock.yml","bun.lockb"],Vo=[".storm-workspace",".nx",".git",".github",".vscode",".verdaccio"];function Jo(e){return process.env.STORM_WORKSPACE_ROOT||process.env.NX_WORKSPACE_ROOT_PATH?p(process.env.STORM_WORKSPACE_ROOT??process.env.NX_WORKSPACE_ROOT_PATH):p(X(e??process.cwd(),ie,Vo))}function T(e){let o=Jo(e);if(!o)throw new Error(`Cannot find workspace root upwards from known path. Files search list includes:
22
22
  ${ie.join(`
23
23
  `)}
24
- Path: ${e||process.cwd()}`);return o}var ce="https://docs.stormsoftware.com",L="https://stormsoftware.com";var pe="https://stormsoftware.com/license",le="Apache-2.0";var y="tools/errors/codes.json",de="The workspace's banner image";var s=r__namespace.registry(),f=r__namespace.string().check(r__namespace.length(7),r__namespace.toLowerCase(),r__namespace.regex(/^#([0-9a-f]{3}){1,2}$/i),r__namespace.trim());s.add(f,{description:"A base schema for describing the format of colors"});var N=r__namespace._default(f,"#151718");s.add(N,{description:"The dark background color of the workspace"});var w=r__namespace._default(f,"#cbd5e1");s.add(w,{description:"The light background color of the workspace"});var z=r__namespace._default(f,"#1fb2a6");s.add(z,{description:"The primary brand specific color of the workspace"});var b=r__namespace.optional(f);s.add(b,{description:"The alternate brand specific color of the workspace"});var x=r__namespace.optional(f);s.add(x,{description:"The secondary brand specific color of the workspace"});var D=r__namespace._default(f,"#3fa6ff");s.add(D,{description:"The color used to display hyperlink text"});var G=r__namespace._default(f,"#818cf8");s.add(G,{description:"The second brand specific color of the workspace"});var P=r__namespace._default(f,"#45b27e");s.add(P,{description:"The success color of the workspace"});var W=r__namespace._default(f,"#38bdf8");s.add(W,{description:"The informational color of the workspace"});var M=r__namespace._default(f,"#8afafc");s.add(M,{description:"The debug color of the workspace"});var F=r__namespace._default(f,"#f3d371");s.add(F,{description:"The warning color of the workspace"});var U=r__namespace._default(f,"#d8314a");s.add(U,{description:"The danger color of the workspace"});var j=r__namespace.optional(f);s.add(j,{description:"The fatal color of the workspace"});var B=r__namespace._default(f,"#4ade80");s.add(B,{description:"The positive number color of the workspace"});var H=r__namespace._default(f,"#ef4444");s.add(H,{description:"The negative number color of the workspace"});var K=r__namespace.optional(r__namespace.array(f));s.add(K,{description:"The color stops for the base gradient color pattern used in the workspace"});var er=r__namespace.object({foreground:w,background:N,brand:z,alternate:b,accent:x,link:D,help:G,success:P,info:W,debug:M,warning:F,danger:U,fatal:j,positive:B,negative:H,gradient:K}),or=r__namespace.object({foreground:N,background:w,brand:z,alternate:b,accent:x,link:D,help:G,success:P,info:W,debug:M,warning:F,danger:U,fatal:j,positive:B,negative:H,gradient:K}),rr=r__namespace.object({dark:er,light:or}),tr=r__namespace.object({dark:N,light:w,brand:z,alternate:b,accent:x,link:D,help:G,success:P,info:W,debug:M,warning:F,danger:U,fatal:j,positive:B,negative:H,gradient:K}),$=r__namespace.optional(r__namespace.url());s.add($,{description:"A remote registry URL used to publish distributable packages"});var me=r__namespace._default(r__namespace.object({github:$,npm:$,cargo:$,cyclone:$,container:$}),{});s.add(me,{description:"A list of remote registry URLs used by Storm Software"});var q=r__namespace.union([tr,rr]);s.add(q,{description:"Colors used for various workspace elements"});var ue=r__namespace.record(r__namespace.union([r__namespace.union([r__namespace.literal("base"),r__namespace.string()]),r__namespace.string()]),q);s.add(ue,{description:"Storm theme config values used for styling various package elements"});var ge=r__namespace.optional(r__namespace.union([r__namespace.string().check(r__namespace.trim()),r__namespace.array(r__namespace.string().check(r__namespace.trim()))]));s.add(ge,{description:"The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."});var fe=r__namespace.string().check(r__namespace.trim());s.add(fe,{description:"The workspace bot user's name (this is the bot that will be used to perform various tasks)"});var he=r__namespace.string().check(r__namespace.trim());s.add(he,{description:"The email of the workspace bot"});var Te=r__namespace.object({name:fe,email:he});s.add(Te,{description:"The workspace's bot user's config used to automated various operations tasks"});var Ce=r__namespace.optional(r__namespace.string().check(r__namespace.trim(),r__namespace.url()));s.add(Ce,{description:"A URL to a banner image used to display the workspace's release"});var Ee=r__namespace._default(r__namespace.string().check(r__namespace.trim()),de);s.add(Ee,{description:"The alt text for the workspace's release banner image"});var Se=r__namespace.object({url:Ce,alt:Ee});s.add(Se,{description:"The workspace's banner image used during the release process"});var Re=r__namespace.optional(r__namespace.string().check(r__namespace.trim()));s.add(Re,{description:"A header message appended to the start of the workspace's release notes"});var ve=r__namespace.optional(r__namespace.string().check(r__namespace.trim()));s.add(ve,{description:"A footer message appended to the end of the workspace's release notes"});var ke=r__namespace.object({banner:r__namespace.union([Se,r__namespace.string().check(r__namespace.trim(),r__namespace.url())]),header:Re,footer:ve});s.add(ke,{description:"The workspace's release config used during the release process"});var Oe=r__namespace.optional(r__namespace.string().check(r__namespace.trim()));s.add(Oe,{description:"A Twitter/X account associated with the organization/project"});var Ae=r__namespace.optional(r__namespace.string().check(r__namespace.trim()));s.add(Ae,{description:"A Discord account associated with the organization/project"});var $e=r__namespace.optional(r__namespace.string().check(r__namespace.trim()));s.add($e,{description:"A Telegram account associated with the organization/project"});var Le=r__namespace.optional(r__namespace.string().check(r__namespace.trim()));s.add(Le,{description:"A Slack account associated with the organization/project"});var _e=r__namespace.optional(r__namespace.string().check(r__namespace.trim()));s.add(_e,{description:"A Medium account associated with the organization/project"});var Ie=r__namespace.optional(r__namespace.string().check(r__namespace.trim()));s.add(Ie,{description:"A GitHub account associated with the organization/project"});var ye=r__namespace.object({twitter:Oe,discord:Ae,telegram:$e,slack:Le,medium:_e,github:Ie});s.add(ye,{description:"The workspace's account config used to store various social media links"});var Ne=r__namespace.optional(r__namespace.string().check(r__namespace.trim()));s.add(Ne,{description:"The directory used to store the environment's cached file data"});var we=r__namespace.optional(r__namespace.string().check(r__namespace.trim()));s.add(we,{description:"The directory used to store the environment's data files"});var ze=r__namespace.optional(r__namespace.string().check(r__namespace.trim()));s.add(ze,{description:"The directory used to store the environment's configuration files"});var be=r__namespace.optional(r__namespace.string().check(r__namespace.trim()));s.add(be,{description:"The directory used to store the environment's temp files"});var xe=r__namespace.optional(r__namespace.string().check(r__namespace.trim()));s.add(xe,{description:"The directory used to store the environment's log files"});var De=r__namespace._default(r__namespace.string().check(r__namespace.trim()),"dist");s.add(De,{description:"The directory used to store the workspace's distributable files after a build (relative to the workspace root)"});var Ge=r__namespace.object({cache:Ne,data:we,config:ze,temp:be,log:xe,build:De});s.add(Ge,{description:"Various directories used by the workspace to store data, cache, and configuration files"});var Pe=r__namespace._default(r__namespace.enum(["minimal","monorepo"]),"monorepo");s.add(Pe,{description:"The variant of the workspace. This can be used to enable or disable certain features or configurations."});var We=r__namespace._default(r__namespace.string().check(r__namespace.trim()),y);s.add(We,{description:"The path to the workspace's error codes JSON file"});var Me=r__namespace.optional(r__namespace.url());s.add(Me,{description:"A URL to a page that looks up the workspace's error messages given a specific error code"});var Fe=r__namespace.object({codesFile:We,url:Me});s.add(Fe,{description:"The workspace's error config used when creating error details during a system error"});var Ue=r__namespace.optional(r__namespace.string().check(r__namespace.trim(),r__namespace.toLowerCase()));s.add(Ue,{description:"The name of the organization"});var je=r__namespace.optional(r__namespace.string().check(r__namespace.trim()));s.add(je,{description:"A description of the organization"});var Be=r__namespace.optional(r__namespace.url());s.add(Be,{description:"A URL to the organization's logo image"});var He=r__namespace.optional(r__namespace.url());s.add(He,{description:"A URL to the organization's icon image"});var Ke=r__namespace.optional(r__namespace.url());s.add(Ke,{description:"A URL to a page that provides more information about the organization"});var Ze=r__namespace.object({name:Ue,description:je,logo:Be,icon:He,url:Ke});s.add(Ze,{description:"The workspace's organization details"});var Ye=r__namespace._default(r__namespace.string().check(r__namespace.trim(),r__namespace.toLowerCase()),"https://public.storm-cdn.com/schemas/storm-workspace.schema.json");s.add(Ye,{description:"The URL or file path to the JSON schema file that describes the Storm configuration file"});var Ve=r__namespace.string().check(r__namespace.trim(),r__namespace.toLowerCase());s.add(Ve,{description:"The name of the workspace/project/service/package/scope using this configuration"});var Je=r__namespace.string().check(r__namespace.trim(),r__namespace.toLowerCase());s.add(Je,{description:"The namespace of the workspace/project/service/package/scope using this configuration"});var Xe=r__namespace.union([Ze,r__namespace.string().check(r__namespace.trim(),r__namespace.toLowerCase())]);s.add(Xe,{description:"The organization of the workspace. This can be a string or an object containing the organization's details"});var qe=r__namespace.string().check(r__namespace.trim(),r__namespace.toLowerCase());s.add(qe,{description:"The repo URL of the workspace (i.e. the GitHub repository URL)"});var Qe=r__namespace._default(r__namespace.string().check(r__namespace.trim()),"Apache-2.0");s.add(Qe,{description:"The license type of the package"});var eo=r__namespace.optional(r__namespace.url());s.add(eo,{description:"The homepage of the workspace"});var oo=r__namespace.optional(r__namespace.url());s.add(oo,{description:"The documentation site for the workspace"});var ro=r__namespace.optional(r__namespace.url());s.add(ro,{description:"The development portal site for the workspace"});var to=r__namespace.optional(r__namespace.url());s.add(to,{description:"The licensing site for the workspace"});var so=r__namespace.optional(r__namespace.url());s.add(so,{description:"The contact site for the workspace"});var no=r__namespace.optional(r__namespace.url());s.add(no,{description:"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"});var ao=r__namespace._default(r__namespace.string().check(r__namespace.trim(),r__namespace.toLowerCase()),"main");s.add(ao,{description:"The branch of the workspace"});var io=r__namespace.optional(r__namespace.string().check(r__namespace.trim(),r__namespace.toLowerCase()));s.add(io,{description:"A tag specifying the version pre-release identifier"});var co=r__namespace.optional(r__namespace.string().check(r__namespace.trim(),r__namespace.toLowerCase()));s.add(co,{description:"The owner of the package"});var po=r__namespace._default(r__namespace.enum(["development","test","production"]).check(r__namespace.trim(),r__namespace.toLowerCase()),"production");s.add(po,{description:"The current runtime environment mode for the package"});var lo=r__namespace.string().check(r__namespace.trim(),r__namespace.toLowerCase());s.add(lo,{description:"The root directory of the workspace"});var mo=r__namespace._default(r__namespace.boolean(),false);s.add(mo,{description:"Should all known types of workspace caching be skipped?"});var uo=r__namespace._default(r__namespace.enum(["npm","yarn","pnpm","bun"]),"npm");s.add(uo,{description:"The JavaScript/TypeScript package manager used by the repository"});var go=r__namespace._default(r__namespace.string().check(r__namespace.trim()),"America/New_York");s.add(go,{description:"The default timezone of the workspace"});var fo=r__namespace._default(r__namespace.string().check(r__namespace.trim()),"en-US");s.add(fo,{description:"The default locale of the workspace"});var ho=r__namespace._default(r__namespace.enum(["silent","fatal","error","warn","success","info","debug","trace","all"]),"info");s.add(ho,{description:"The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."});var To=r__namespace._default(r__namespace.boolean(),true);s.add(To,{description:"Should the logging of the current Storm Workspace configuration be skipped?"});var Co=r__namespace._default(r__namespace.nullable(r__namespace.string().check(r__namespace.trim())),null);s.add(Co,{description:"The filepath of the Storm config. When this field is null, no config file was found in the current workspace."});var Q=r__namespace._default(r__namespace.record(r__namespace.string(),r__namespace.any()),{});s.add(Q,{description:"Configuration of each used extension"});var Eo=r__namespace.object({$schema:Ye,extends:ge,name:Ve,variant:Pe,namespace:Je,organization:Xe,repository:qe,license:Qe,homepage:eo,docs:oo,portal:ro,licensing:to,contact:so,support:no,branch:ao,preid:io,owner:co,bot:Te,release:ke,socials:ye,error:Fe,mode:po,workspaceRoot:lo,skipCache:mo,directories:Ge,packageManager:uo,timezone:go,locale:fo,logLevel:ho,skipConfigLogging:To,registry:me,configFile:Co,colors:r__namespace.union([q,ue]),extensions:Q});s.add(Q,{description:"Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo."});var So=["dark","light","base","brand","alternate","accent","link","success","help","info","warning","danger","fatal","positive","negative"];async function Ro(e){let o=le,t,a,i,n,m,d=T(e);if(fs.existsSync(path.join(d,"package.json"))){let v=await promises.readFile(C(d,"package.json"),"utf8");if(v){let g=JSON.parse(v);g.name&&(i=g.name),g.namespace&&(n=g.namespace),g.repository&&(typeof g.repository=="string"?m=g.repository:g.repository.url&&(m=g.repository.url)),g.license&&(o=g.license),g.homepage&&(t=g.homepage),g.bugs&&(typeof g.bugs=="string"?a=g.bugs:g.bugs.url&&(a=g.bugs.url));}}return {workspaceRoot:d,name:i,namespace:n,repository:m,license:o,homepage:t,support:a}}function vo(e){return !e.support&&e.contact&&(e.support=e.contact),!e.contact&&e.support&&(e.contact=e.support),e.homepage&&(e.docs||(e.docs=`${e.homepage}/docs`),e.license||(e.license=`${e.homepage}/license`),e.support||(e.support=`${e.homepage}/support`),e.contact||(e.contact=`${e.homepage}/contact`),(!e.error?.codesFile||!e?.error?.url)&&(e.error??={codesFile:y},e.homepage&&(e.error.url??=`${e.homepage}/errors`))),e}var Oo=async(e,o,t={})=>{let a=o||T(o),i=await Promise.all([c12.loadConfig({cwd:a,packageJson:true,name:e,envName:e?.toUpperCase(),jitiOptions:{debug:false,fsCache:process.env.STORM_SKIP_CACHE==="true"?false:C(process.env.STORM_CACHE_DIR||"node_modules/.cache/storm","jiti")},...t}),c12.loadConfig({cwd:a,packageJson:true,name:e,envName:e?.toUpperCase(),jitiOptions:{debug:false,fsCache:process.env.STORM_SKIP_CACHE==="true"?false:C(process.env.STORM_CACHE_DIR||"node_modules/.cache/storm","jiti")},configFile:e,...t})]);return Ao__default.default(i[0]??{},i[1]??{})},$o=async(e,o=[])=>{let t=e||T(e),a=await Oo("storm-workspace",t),i=a.config,n=a.configFile;if(i&&n&&Object.keys(i).length>0&&!i.skipConfigLogging&&O(`Found Storm configuration file "${n.includes(`${t}/`)?n.replace(`${t}/`,""):n}" at "${t}"`,{logLevel:"all"}),o&&o.length>0){let m=await Promise.all(o.map(d=>Oo(d,t)));for(let d of m)d?.config&&d?.configFile&&Object.keys(d.config).length>0&&(!i.skipConfigLogging&&!d.config.skipConfigLogging&&O(`Found alternative configuration file "${d.configFile.includes(`${t}/`)?d.configFile.replace(`${t}/`,""):d.configFile}" at "${t}"`,{logLevel:"all"}),i=Ao__default.default(d.config??{},i??{}));}if(!(!i||Object.keys(i).length===0))return i.configFile=n,i};var yo=()=>{let e="STORM_",o={extends:process.env[`${e}EXTENDS`]||void 0,name:process.env[`${e}NAME`]||void 0,variant:process.env[`${e}VARIANT`]||void 0,namespace:process.env[`${e}NAMESPACE`]||void 0,owner:process.env[`${e}OWNER`]||void 0,bot:{name:process.env[`${e}BOT_NAME`]||void 0,email:process.env[`${e}BOT_EMAIL`]||void 0},release:{banner:{url:process.env[`${e}RELEASE_BANNER_URL`]||void 0,alt:process.env[`${e}RELEASE_BANNER_ALT`]||void 0},header:process.env[`${e}RELEASE_HEADER`]||void 0,footer:process.env[`${e}RELEASE_FOOTER`]||void 0},error:{codesFile:process.env[`${e}ERROR_CODES_FILE`]||void 0,url:process.env[`${e}ERROR_URL`]||void 0},socials:{twitter:process.env[`${e}SOCIAL_TWITTER`]||void 0,discord:process.env[`${e}SOCIAL_DISCORD`]||void 0,telegram:process.env[`${e}SOCIAL_TELEGRAM`]||void 0,slack:process.env[`${e}SOCIAL_SLACK`]||void 0,medium:process.env[`${e}SOCIAL_MEDIUM`]||void 0,github:process.env[`${e}SOCIAL_GITHUB`]||void 0},organization:process.env[`${e}ORG`]||process.env[`${e}ORGANIZATION`]||process.env[`${e}ORG_NAME`]||process.env[`${e}ORGANIZATION_NAME`]?process.env[`${e}ORG_DESCRIPTION`]||process.env[`${e}ORGANIZATION_DESCRIPTION`]||process.env[`${e}ORG_URL`]||process.env[`${e}ORGANIZATION_URL`]||process.env[`${e}ORG_LOGO`]||process.env[`${e}ORGANIZATION_LOGO`]?{name:process.env[`${e}ORG`]||process.env[`${e}ORGANIZATION`]||process.env[`${e}ORG_NAME`]||process.env[`${e}ORGANIZATION_NAME`],description:process.env[`${e}ORG_DESCRIPTION`]||process.env[`${e}ORGANIZATION_DESCRIPTION`]||void 0,url:process.env[`${e}ORG_URL`]||process.env[`${e}ORGANIZATION_URL`]||void 0,logo:process.env[`${e}ORG_LOGO`]||process.env[`${e}ORGANIZATION_LOGO`]||void 0,icon:process.env[`${e}ORG_ICON`]||process.env[`${e}ORGANIZATION_ICON`]||void 0}:process.env[`${e}ORG`]||process.env[`${e}ORGANIZATION`]||process.env[`${e}ORG_NAME`]||process.env[`${e}ORGANIZATION_NAME`]:void 0,packageManager:process.env[`${e}PACKAGE_MANAGER`]||void 0,license:process.env[`${e}LICENSE`]||void 0,homepage:process.env[`${e}HOMEPAGE`]||void 0,docs:process.env[`${e}DOCS`]||void 0,portal:process.env[`${e}PORTAL`]||void 0,licensing:process.env[`${e}LICENSING`]||void 0,contact:process.env[`${e}CONTACT`]||void 0,support:process.env[`${e}SUPPORT`]||void 0,timezone:process.env[`${e}TIMEZONE`]||process.env.TZ||void 0,locale:process.env[`${e}LOCALE`]||process.env.LOCALE||void 0,configFile:process.env[`${e}WORKSPACE_CONFIG_FILE`]?p(process.env[`${e}WORKSPACE_CONFIG_FILE`]):void 0,workspaceRoot:process.env[`${e}WORKSPACE_ROOT`]?p(process.env[`${e}WORKSPACE_ROOT`]):void 0,directories:{cache:process.env[`${e}CACHE_DIR`]?p(process.env[`${e}CACHE_DIR`]):process.env[`${e}CACHE_DIRECTORY`]?p(process.env[`${e}CACHE_DIRECTORY`]):void 0,data:process.env[`${e}DATA_DIR`]?p(process.env[`${e}DATA_DIR`]):process.env[`${e}DATA_DIRECTORY`]?p(process.env[`${e}DATA_DIRECTORY`]):void 0,config:process.env[`${e}CONFIG_DIR`]?p(process.env[`${e}CONFIG_DIR`]):process.env[`${e}CONFIG_DIRECTORY`]?p(process.env[`${e}CONFIG_DIRECTORY`]):void 0,temp:process.env[`${e}TEMP_DIR`]?p(process.env[`${e}TEMP_DIR`]):process.env[`${e}TEMP_DIRECTORY`]?p(process.env[`${e}TEMP_DIRECTORY`]):void 0,log:process.env[`${e}LOG_DIR`]?p(process.env[`${e}LOG_DIR`]):process.env[`${e}LOG_DIRECTORY`]?p(process.env[`${e}LOG_DIRECTORY`]):void 0,build:process.env[`${e}BUILD_DIR`]?p(process.env[`${e}BUILD_DIR`]):process.env[`${e}BUILD_DIRECTORY`]?p(process.env[`${e}BUILD_DIRECTORY`]):void 0},skipCache:process.env[`${e}SKIP_CACHE`]!==void 0?!!process.env[`${e}SKIP_CACHE`]:void 0,mode:(process.env[`${e}MODE`]??process.env.NODE_ENV??process.env.ENVIRONMENT)||void 0,repository:process.env[`${e}REPOSITORY`]||void 0,branch:process.env[`${e}BRANCH`]||void 0,preid:process.env[`${e}PRE_ID`]||void 0,registry:{github:process.env[`${e}REGISTRY_GITHUB`]||void 0,npm:process.env[`${e}REGISTRY_NPM`]||void 0,cargo:process.env[`${e}REGISTRY_CARGO`]||void 0,cyclone:process.env[`${e}REGISTRY_CYCLONE`]||void 0,container:process.env[`${e}REGISTRY_CONTAINER`]||void 0},logLevel:process.env[`${e}LOG_LEVEL`]!==null&&process.env[`${e}LOG_LEVEL`]!==void 0?process.env[`${e}LOG_LEVEL`]&&Number.isSafeInteger(Number.parseInt(process.env[`${e}LOG_LEVEL`]))?te(Number.parseInt(process.env[`${e}LOG_LEVEL`])):process.env[`${e}LOG_LEVEL`]:void 0,skipConfigLogging:process.env[`${e}SKIP_CONFIG_LOGGING`]!==void 0?!!process.env[`${e}SKIP_CONFIG_LOGGING`]:void 0},t=Object.keys(process.env).filter(i=>i.startsWith(`${e}COLOR_`)&&So.every(n=>!i.startsWith(`${e}COLOR_LIGHT_${n}`)&&!i.startsWith(`${e}COLOR_DARK_${n}`)));o.colors=t.length>0?t.reduce((i,n)=>(i[n]=Lo(e,n),i),{}):Lo(e),o.docs===ce&&(o.homepage===L?o.docs=`${L}/projects/${o.name}/docs`:o.docs=`${o.homepage}/docs`),o.licensing===pe&&(o.homepage===L?o.licensing=`${L}/projects/${o.name}/licensing`:o.licensing=`${o.homepage}/docs`);let a=process.env[`${e}WORKSPACE_CONFIG`];if(a){let i=JSON.parse(a);o={...o,...i,colors:{...o.colors,...i.colors},extensions:{...o.extensions,...i.extensions}};}return o},Lo=(e,o)=>{let t=`COLOR_${o&&o!=="base"?`${o}_`:""}`.toUpperCase();return process.env[`${e}${t}LIGHT_BRAND`]||process.env[`${e}${t}DARK_BRAND`]?cr(e+t):ir(e+t)},ir=e=>{let o=[];if(process.env[`${e}GRADIENT_START`]&&process.env[`${e}GRADIENT_END`])o.push(process.env[`${e}GRADIENT_START`],process.env[`${e}GRADIENT_END`]);else if(process.env[`${e}GRADIENT_0`]||process.env[`${e}GRADIENT_1`]){let t=process.env[`${e}GRADIENT_0`]?0:1;for(;process.env[`${e}GRADIENT_${t}`];)o.push(process.env[`${e}GRADIENT_${t}`]),t++;}return {dark:process.env[`${e}DARK`],light:process.env[`${e}LIGHT`],brand:process.env[`${e}BRAND`],alternate:process.env[`${e}ALTERNATE`],accent:process.env[`${e}ACCENT`],link:process.env[`${e}LINK`],help:process.env[`${e}HELP`],success:process.env[`${e}SUCCESS`],info:process.env[`${e}INFO`],debug:process.env[`${e}DEBUG`],warning:process.env[`${e}WARNING`],danger:process.env[`${e}DANGER`],fatal:process.env[`${e}FATAL`],positive:process.env[`${e}POSITIVE`],negative:process.env[`${e}NEGATIVE`],gradient:o}},cr=e=>({light:_o(`${e}_LIGHT_`),dark:_o(`${e}_DARK_`)}),_o=e=>{let o=[];if(process.env[`${e}GRADIENT_START`]&&process.env[`${e}GRADIENT_END`])o.push(process.env[`${e}GRADIENT_START`],process.env[`${e}GRADIENT_END`]);else if(process.env[`${e}GRADIENT_0`]||process.env[`${e}GRADIENT_1`]){let t=process.env[`${e}GRADIENT_0`]?0:1;for(;process.env[`${e}GRADIENT_${t}`];)o.push(process.env[`${e}GRADIENT_${t}`]),t++;}return {foreground:process.env[`${e}FOREGROUND`],background:process.env[`${e}BACKGROUND`],brand:process.env[`${e}BRAND`],alternate:process.env[`${e}ALTERNATE`],accent:process.env[`${e}ACCENT`],link:process.env[`${e}LINK`],help:process.env[`${e}HELP`],success:process.env[`${e}SUCCESS`],info:process.env[`${e}INFO`],debug:process.env[`${e}DEBUG`],warning:process.env[`${e}WARNING`],danger:process.env[`${e}DANGER`],fatal:process.env[`${e}FATAL`],positive:process.env[`${e}POSITIVE`],negative:process.env[`${e}NEGATIVE`],gradient:o}};var pr=(e,o)=>{for(let t of Object.keys(o??{}))if(o[t]){let a=t?.replace(/([A-Z])+/g,n=>n?n[0]?.toUpperCase()+n.slice(1):"").split(/(?=[A-Z])|[.\-\s_]/).map(n=>n.toLowerCase())??[],i;if(a.length===0)return;a.length===1?i=a[0]?.toUpperCase()??"":i=a.reduce((n,m)=>`${n}_${m.toLowerCase()}`),process.env[`STORM_EXTENSION_${e.toUpperCase()}_${i.toUpperCase()}`]=o[t];}},zo=e=>{let o="STORM_";if(e.extends&&(process.env[`${o}EXTENDS`]=Array.isArray(e.extends)?JSON.stringify(e.extends):e.extends),e.name&&(process.env[`${o}NAME`]=e.name),e.variant&&(process.env[`${o}VARIANT`]=e.variant),e.namespace&&(process.env[`${o}NAMESPACE`]=e.namespace),e.owner&&(process.env[`${o}OWNER`]=e.owner),e.bot&&(process.env[`${o}BOT_NAME`]=e.bot.name,process.env[`${o}BOT_EMAIL`]=e.bot.email),e.error&&(process.env[`${o}ERROR_CODES_FILE`]=e.error.codesFile,process.env[`${o}ERROR_URL`]=e.error.url),e.release&&(e.release.banner&&(typeof e.release.banner=="string"?(process.env[`${o}RELEASE_BANNER`]=e.release.banner,process.env[`${o}RELEASE_BANNER_URL`]=e.release.banner):(process.env[`${o}RELEASE_BANNER`]=e.release.banner.url,process.env[`${o}RELEASE_BANNER_URL`]=e.release.banner.url,process.env[`${o}RELEASE_BANNER_ALT`]=e.release.banner.alt)),process.env[`${o}RELEASE_HEADER`]=e.release.header,process.env[`${o}RELEASE_FOOTER`]=e.release.footer),e.socials&&(e.socials.twitter&&(process.env[`${o}SOCIAL_TWITTER`]=e.socials.twitter),e.socials.discord&&(process.env[`${o}SOCIAL_DISCORD`]=e.socials.discord),e.socials.telegram&&(process.env[`${o}SOCIAL_TELEGRAM`]=e.socials.telegram),e.socials.slack&&(process.env[`${o}SOCIAL_SLACK`]=e.socials.slack),e.socials.medium&&(process.env[`${o}SOCIAL_MEDIUM`]=e.socials.medium),e.socials.github&&(process.env[`${o}SOCIAL_GITHUB`]=e.socials.github)),e.organization&&(typeof e.organization=="string"?(process.env[`${o}ORG`]=e.organization,process.env[`${o}ORG_NAME`]=e.organization,process.env[`${o}ORGANIZATION`]=e.organization,process.env[`${o}ORGANIZATION_NAME`]=e.organization):(process.env[`${o}ORG`]=e.organization.name,process.env[`${o}ORG_NAME`]=e.organization.name,process.env[`${o}ORGANIZATION`]=e.organization.name,process.env[`${o}ORGANIZATION_NAME`]=e.organization.name,e.organization.url&&(process.env[`${o}ORG_URL`]=e.organization.url,process.env[`${o}ORGANIZATION_URL`]=e.organization.url),e.organization.description&&(process.env[`${o}ORG_DESCRIPTION`]=e.organization.description,process.env[`${o}ORGANIZATION_DESCRIPTION`]=e.organization.description),e.organization.logo&&(process.env[`${o}ORG_LOGO`]=e.organization.logo,process.env[`${o}ORGANIZATION_LOGO`]=e.organization.logo),e.organization.icon&&(process.env[`${o}ORG_ICON`]=e.organization.icon,process.env[`${o}ORGANIZATION_ICON`]=e.organization.icon))),e.packageManager&&(process.env[`${o}PACKAGE_MANAGER`]=e.packageManager),e.license&&(process.env[`${o}LICENSE`]=e.license),e.homepage&&(process.env[`${o}HOMEPAGE`]=e.homepage),e.docs&&(process.env[`${o}DOCS`]=e.docs),e.portal&&(process.env[`${o}PORTAL`]=e.portal),e.licensing&&(process.env[`${o}LICENSING`]=e.licensing),e.contact&&(process.env[`${o}CONTACT`]=e.contact),e.support&&(process.env[`${o}SUPPORT`]=e.support),e.timezone&&(process.env[`${o}TIMEZONE`]=e.timezone,process.env.TZ=e.timezone,process.env.DEFAULT_TIMEZONE=e.timezone,process.env.TIMEZONE=e.timezone),e.locale&&(process.env[`${o}LOCALE`]=e.locale,process.env.DEFAULT_LOCALE=e.locale,process.env.LOCALE=e.locale,process.env.LANG=e.locale?`${e.locale.replaceAll("-","_")}.UTF-8`:"en_US.UTF-8"),e.configFile&&(process.env[`${o}WORKSPACE_CONFIG_FILE`]=p(e.configFile)),e.workspaceRoot&&(process.env[`${o}WORKSPACE_ROOT`]=p(e.workspaceRoot),process.env.NX_WORKSPACE_ROOT=p(e.workspaceRoot),process.env.NX_WORKSPACE_ROOT_PATH=p(e.workspaceRoot)),e.directories&&(!e.skipCache&&e.directories.cache&&(process.env[`${o}CACHE_DIR`]=p(e.directories.cache),process.env[`${o}CACHE_DIRECTORY`]=process.env[`${o}CACHE_DIR`]),e.directories.data&&(process.env[`${o}DATA_DIR`]=p(e.directories.data),process.env[`${o}DATA_DIRECTORY`]=process.env[`${o}DATA_DIR`]),e.directories.config&&(process.env[`${o}CONFIG_DIR`]=p(e.directories.config),process.env[`${o}CONFIG_DIRECTORY`]=process.env[`${o}CONFIG_DIR`]),e.directories.temp&&(process.env[`${o}TEMP_DIR`]=p(e.directories.temp),process.env[`${o}TEMP_DIRECTORY`]=process.env[`${o}TEMP_DIR`]),e.directories.log&&(process.env[`${o}LOG_DIR`]=p(e.directories.log),process.env[`${o}LOG_DIRECTORY`]=process.env[`${o}LOG_DIR`]),e.directories.build&&(process.env[`${o}BUILD_DIR`]=p(e.directories.build),process.env[`${o}BUILD_DIRECTORY`]=process.env[`${o}BUILD_DIR`])),e.skipCache!==void 0&&(process.env[`${o}SKIP_CACHE`]=String(e.skipCache),e.skipCache&&(process.env.NX_SKIP_NX_CACHE??=String(e.skipCache),process.env.NX_CACHE_PROJECT_GRAPH??=String(e.skipCache))),e.mode&&(process.env[`${o}MODE`]=e.mode,process.env.NODE_ENV=e.mode,process.env.ENVIRONMENT=e.mode),e.colors?.base?.light||e.colors?.base?.dark)for(let t of Object.keys(e.colors))No(`${o}COLOR_${t}_`,e.colors[t]);else No(`${o}COLOR_`,e.colors);e.repository&&(process.env[`${o}REPOSITORY`]=e.repository),e.branch&&(process.env[`${o}BRANCH`]=e.branch),e.preid&&(process.env[`${o}PRE_ID`]=String(e.preid)),e.registry&&(e.registry.github&&(process.env[`${o}REGISTRY_GITHUB`]=String(e.registry.github)),e.registry.npm&&(process.env[`${o}REGISTRY_NPM`]=String(e.registry.npm)),e.registry.cargo&&(process.env[`${o}REGISTRY_CARGO`]=String(e.registry.cargo)),e.registry.cyclone&&(process.env[`${o}REGISTRY_CYCLONE`]=String(e.registry.cyclone)),e.registry.container&&(process.env[`${o}REGISTRY_CONTAINER`]=String(e.registry.container))),e.logLevel&&(process.env[`${o}LOG_LEVEL`]=String(e.logLevel),process.env.LOG_LEVEL=String(e.logLevel),process.env.NX_VERBOSE_LOGGING=String(A(e.logLevel)>=c.DEBUG),process.env.RUST_BACKTRACE=A(e.logLevel)>=c.DEBUG?"full":"none"),e.skipConfigLogging!==void 0&&(process.env[`${o}SKIP_CONFIG_LOGGING`]=String(e.skipConfigLogging)),process.env[`${o}WORKSPACE_CONFIG`]=JSON.stringify(e);for(let t of Object.keys(e.extensions??{}))e.extensions[t]&&Object.keys(e.extensions[t])&&pr(t,e.extensions[t]);},No=(e,o)=>o?.light?.brand||o?.dark?.brand?dr(e,o):lr(e,o),lr=(e,o)=>{if(o.dark&&(process.env[`${e}DARK`]=o.dark),o.light&&(process.env[`${e}LIGHT`]=o.light),o.brand&&(process.env[`${e}BRAND`]=o.brand),o.alternate&&(process.env[`${e}ALTERNATE`]=o.alternate),o.accent&&(process.env[`${e}ACCENT`]=o.accent),o.link&&(process.env[`${e}LINK`]=o.link),o.help&&(process.env[`${e}HELP`]=o.help),o.success&&(process.env[`${e}SUCCESS`]=o.success),o.info&&(process.env[`${e}INFO`]=o.info),o.debug&&(process.env[`${e}DEBUG`]=o.debug),o.warning&&(process.env[`${e}WARNING`]=o.warning),o.danger&&(process.env[`${e}DANGER`]=o.danger),o.fatal&&(process.env[`${e}FATAL`]=o.fatal),o.positive&&(process.env[`${e}POSITIVE`]=o.positive),o.negative&&(process.env[`${e}NEGATIVE`]=o.negative),o.gradient)for(let t=0;t<o.gradient.length;t++)process.env[`${e}GRADIENT_${t}`]=o.gradient[t];},dr=(e,o)=>({light:wo(`${e}LIGHT_`,o.light),dark:wo(`${e}DARK_`,o.dark)}),wo=(e,o)=>{if(o.foreground&&(process.env[`${e}FOREGROUND`]=o.foreground),o.background&&(process.env[`${e}BACKGROUND`]=o.background),o.brand&&(process.env[`${e}BRAND`]=o.brand),o.alternate&&(process.env[`${e}ALTERNATE`]=o.alternate),o.accent&&(process.env[`${e}ACCENT`]=o.accent),o.link&&(process.env[`${e}LINK`]=o.link),o.help&&(process.env[`${e}HELP`]=o.help),o.success&&(process.env[`${e}SUCCESS`]=o.success),o.info&&(process.env[`${e}INFO`]=o.info),o.debug&&(process.env[`${e}DEBUG`]=o.debug),o.warning&&(process.env[`${e}WARNING`]=o.warning),o.danger&&(process.env[`${e}DANGER`]=o.danger),o.fatal&&(process.env[`${e}FATAL`]=o.fatal),o.positive&&(process.env[`${e}POSITIVE`]=o.positive),o.negative&&(process.env[`${e}NEGATIVE`]=o.negative),o.gradient)for(let t=0;t<o.gradient.length;t++)process.env[`${e}GRADIENT_${t}`]=o.gradient[t];};var _,ur=async(e,o,t,a=false,i=true)=>{let n;if(!_?.data||!_?.timestamp||_.timestamp<Date.now()-8e3){let m=t;m||(m=T());let d=yo(),v=await $o(m);if(!v&&(a||se("No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n",{logLevel:"all"}),i===false))return;let g=await Ro(m),I=Ao__default.default(d,v,g);I.variant||(I.variant=fs.existsSync(C(m,"nx.json"))||fs.existsSync(C(m,".nx"))||fs.existsSync(C(m,"lerna.json"))||fs.existsSync(C(m,"turbo.json"))?"monorepo":"minimal");try{n=vo(await Eo.parseAsync(I)),n.workspaceRoot??=m;}catch(Y){throw new Error(`Failed to parse Storm Workspace configuration${Y?.message?`: ${Y.message}`:""}
24
+ Path: ${e||process.cwd()}`);return o}var ce="https://docs.stormsoftware.com",L="https://stormsoftware.com";var pe="https://stormsoftware.com/license",le="Apache-2.0";var y="tools/errors/codes.json",de="The workspace's banner image";var s=r__namespace.registry(),f=r__namespace.string().check(r__namespace.length(7),r__namespace.toLowerCase(),r__namespace.regex(/^#([0-9a-f]{3}){1,2}$/i),r__namespace.trim());s.add(f,{description:"A base schema for describing the format of colors"});var N=r__namespace._default(f,"#151718");s.add(N,{description:"The dark background color of the workspace"});var w=r__namespace._default(f,"#cbd5e1");s.add(w,{description:"The light background color of the workspace"});var b=r__namespace._default(f,"#1fb2a6");s.add(b,{description:"The primary brand specific color of the workspace"});var z=r__namespace.optional(f);s.add(z,{description:"The alternate brand specific color of the workspace"});var x=r__namespace.optional(f);s.add(x,{description:"The secondary brand specific color of the workspace"});var D=r__namespace._default(f,"#3fa6ff");s.add(D,{description:"The color used to display hyperlink text"});var G=r__namespace._default(f,"#818cf8");s.add(G,{description:"The second brand specific color of the workspace"});var P=r__namespace._default(f,"#45b27e");s.add(P,{description:"The success color of the workspace"});var W=r__namespace._default(f,"#38bdf8");s.add(W,{description:"The informational color of the workspace"});var M=r__namespace._default(f,"#8afafc");s.add(M,{description:"The debug color of the workspace"});var F=r__namespace._default(f,"#f3d371");s.add(F,{description:"The warning color of the workspace"});var U=r__namespace._default(f,"#d8314a");s.add(U,{description:"The danger color of the workspace"});var j=r__namespace.optional(f);s.add(j,{description:"The fatal color of the workspace"});var B=r__namespace._default(f,"#4ade80");s.add(B,{description:"The positive number color of the workspace"});var H=r__namespace._default(f,"#ef4444");s.add(H,{description:"The negative number color of the workspace"});var K=r__namespace.optional(r__namespace.array(f));s.add(K,{description:"The color stops for the base gradient color pattern used in the workspace"});var er=r__namespace.object({foreground:w,background:N,brand:b,alternate:z,accent:x,link:D,help:G,success:P,info:W,debug:M,warning:F,danger:U,fatal:j,positive:B,negative:H,gradient:K}),or=r__namespace.object({foreground:N,background:w,brand:b,alternate:z,accent:x,link:D,help:G,success:P,info:W,debug:M,warning:F,danger:U,fatal:j,positive:B,negative:H,gradient:K}),rr=r__namespace.object({dark:er,light:or}),tr=r__namespace.object({dark:N,light:w,brand:b,alternate:z,accent:x,link:D,help:G,success:P,info:W,debug:M,warning:F,danger:U,fatal:j,positive:B,negative:H,gradient:K}),$=r__namespace.optional(r__namespace.url());s.add($,{description:"A remote registry URL used to publish distributable packages"});var me=r__namespace._default(r__namespace.object({github:$,npm:$,cargo:$,cyclone:$,container:$}),{});s.add(me,{description:"A list of remote registry URLs used by Storm Software"});var q=r__namespace.union([tr,rr]);s.add(q,{description:"Colors used for various workspace elements"});var ue=r__namespace.record(r__namespace.union([r__namespace.union([r__namespace.literal("base"),r__namespace.string()]),r__namespace.string()]),q);s.add(ue,{description:"Storm theme config values used for styling various package elements"});var ge=r__namespace.optional(r__namespace.union([r__namespace.string().check(r__namespace.trim()),r__namespace.array(r__namespace.string().check(r__namespace.trim()))]));s.add(ge,{description:"The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."});var fe=r__namespace.string().check(r__namespace.trim());s.add(fe,{description:"The workspace bot user's name (this is the bot that will be used to perform various tasks)"});var he=r__namespace.string().check(r__namespace.trim());s.add(he,{description:"The email of the workspace bot"});var Te=r__namespace.object({name:fe,email:he});s.add(Te,{description:"The workspace's bot user's config used to automated various operations tasks"});var Ce=r__namespace.optional(r__namespace.string().check(r__namespace.trim(),r__namespace.url()));s.add(Ce,{description:"A URL to a banner image used to display the workspace's release"});var Ee=r__namespace._default(r__namespace.string().check(r__namespace.trim()),de);s.add(Ee,{description:"The alt text for the workspace's release banner image"});var Se=r__namespace.object({url:Ce,alt:Ee});s.add(Se,{description:"The workspace's banner image used during the release process"});var Re=r__namespace.optional(r__namespace.string().check(r__namespace.trim()));s.add(Re,{description:"A header message appended to the start of the workspace's release notes"});var ve=r__namespace.optional(r__namespace.string().check(r__namespace.trim()));s.add(ve,{description:"A footer message appended to the end of the workspace's release notes"});var ke=r__namespace.object({banner:r__namespace.union([Se,r__namespace.string().check(r__namespace.trim(),r__namespace.url())]),header:Re,footer:ve});s.add(ke,{description:"The workspace's release config used during the release process"});var Oe=r__namespace.optional(r__namespace.string().check(r__namespace.trim()));s.add(Oe,{description:"A Twitter/X account associated with the organization/project"});var Ae=r__namespace.optional(r__namespace.string().check(r__namespace.trim()));s.add(Ae,{description:"A Discord account associated with the organization/project"});var $e=r__namespace.optional(r__namespace.string().check(r__namespace.trim()));s.add($e,{description:"A Telegram account associated with the organization/project"});var Le=r__namespace.optional(r__namespace.string().check(r__namespace.trim()));s.add(Le,{description:"A Slack account associated with the organization/project"});var _e=r__namespace.optional(r__namespace.string().check(r__namespace.trim()));s.add(_e,{description:"A Medium account associated with the organization/project"});var Ie=r__namespace.optional(r__namespace.string().check(r__namespace.trim()));s.add(Ie,{description:"A GitHub account associated with the organization/project"});var ye=r__namespace.object({twitter:Oe,discord:Ae,telegram:$e,slack:Le,medium:_e,github:Ie});s.add(ye,{description:"The workspace's account config used to store various social media links"});var Ne=r__namespace.optional(r__namespace.string().check(r__namespace.trim()));s.add(Ne,{description:"The directory used to store the environment's cached file data"});var we=r__namespace.optional(r__namespace.string().check(r__namespace.trim()));s.add(we,{description:"The directory used to store the environment's data files"});var be=r__namespace.optional(r__namespace.string().check(r__namespace.trim()));s.add(be,{description:"The directory used to store the environment's configuration files"});var ze=r__namespace.optional(r__namespace.string().check(r__namespace.trim()));s.add(ze,{description:"The directory used to store the environment's temp files"});var xe=r__namespace.optional(r__namespace.string().check(r__namespace.trim()));s.add(xe,{description:"The directory used to store the environment's log files"});var De=r__namespace._default(r__namespace.string().check(r__namespace.trim()),"dist");s.add(De,{description:"The directory used to store the workspace's distributable files after a build (relative to the workspace root)"});var Ge=r__namespace.object({cache:Ne,data:we,config:be,temp:ze,log:xe,build:De});s.add(Ge,{description:"Various directories used by the workspace to store data, cache, and configuration files"});var Pe=r__namespace._default(r__namespace.enum(["minimal","monorepo"]),"monorepo");s.add(Pe,{description:"The variant of the workspace. This can be used to enable or disable certain features or configurations."});var We=r__namespace._default(r__namespace.string().check(r__namespace.trim()),y);s.add(We,{description:"The path to the workspace's error codes JSON file"});var Me=r__namespace.optional(r__namespace.url());s.add(Me,{description:"A URL to a page that looks up the workspace's error messages given a specific error code"});var Fe=r__namespace.object({codesFile:We,url:Me});s.add(Fe,{description:"The workspace's error config used when creating error details during a system error"});var Ue=r__namespace.optional(r__namespace.string().check(r__namespace.trim(),r__namespace.toLowerCase()));s.add(Ue,{description:"The name of the organization"});var je=r__namespace.optional(r__namespace.string().check(r__namespace.trim()));s.add(je,{description:"A description of the organization"});var Be=r__namespace.optional(r__namespace.url());s.add(Be,{description:"A URL to the organization's logo image"});var He=r__namespace.optional(r__namespace.url());s.add(He,{description:"A URL to the organization's icon image"});var Ke=r__namespace.optional(r__namespace.url());s.add(Ke,{description:"A URL to a page that provides more information about the organization"});var Ze=r__namespace.object({name:Ue,description:je,logo:Be,icon:He,url:Ke});s.add(Ze,{description:"The workspace's organization details"});var Ye=r__namespace._default(r__namespace.string().check(r__namespace.trim(),r__namespace.toLowerCase()),"https://public.storm-cdn.com/schemas/storm-workspace.schema.json");s.add(Ye,{description:"The URL or file path to the JSON schema file that describes the Storm configuration file"});var Ve=r__namespace.string().check(r__namespace.trim(),r__namespace.toLowerCase());s.add(Ve,{description:"The name of the workspace/project/service/package/scope using this configuration"});var Je=r__namespace.string().check(r__namespace.trim(),r__namespace.toLowerCase());s.add(Je,{description:"The namespace of the workspace/project/service/package/scope using this configuration"});var Xe=r__namespace.union([Ze,r__namespace.string().check(r__namespace.trim(),r__namespace.toLowerCase())]);s.add(Xe,{description:"The organization of the workspace. This can be a string or an object containing the organization's details"});var qe=r__namespace.string().check(r__namespace.trim(),r__namespace.toLowerCase());s.add(qe,{description:"The repo URL of the workspace (i.e. the GitHub repository URL)"});var Qe=r__namespace._default(r__namespace.string().check(r__namespace.trim()),"Apache-2.0");s.add(Qe,{description:"The license type of the package"});var eo=r__namespace.optional(r__namespace.url());s.add(eo,{description:"The homepage of the workspace"});var oo=r__namespace.optional(r__namespace.url());s.add(oo,{description:"The documentation site for the workspace"});var ro=r__namespace.optional(r__namespace.url());s.add(ro,{description:"The development portal site for the workspace"});var to=r__namespace.optional(r__namespace.url());s.add(to,{description:"The licensing site for the workspace"});var so=r__namespace.optional(r__namespace.url());s.add(so,{description:"The contact site for the workspace"});var no=r__namespace.optional(r__namespace.url());s.add(no,{description:"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"});var ao=r__namespace._default(r__namespace.string().check(r__namespace.trim(),r__namespace.toLowerCase()),"main");s.add(ao,{description:"The branch of the workspace"});var io=r__namespace.optional(r__namespace.string().check(r__namespace.trim(),r__namespace.toLowerCase()));s.add(io,{description:"A tag specifying the version pre-release identifier"});var co=r__namespace.optional(r__namespace.string().check(r__namespace.trim(),r__namespace.toLowerCase()));s.add(co,{description:"The owner of the package"});var po=r__namespace._default(r__namespace.enum(["development","test","production"]).check(r__namespace.trim(),r__namespace.toLowerCase()),"production");s.add(po,{description:"The current runtime environment mode for the package"});var lo=r__namespace.string().check(r__namespace.trim(),r__namespace.toLowerCase());s.add(lo,{description:"The root directory of the workspace"});var mo=r__namespace._default(r__namespace.boolean(),false);s.add(mo,{description:"Should all known types of workspace caching be skipped?"});var uo=r__namespace._default(r__namespace.enum(["npm","yarn","pnpm","bun"]),"npm");s.add(uo,{description:"The JavaScript/TypeScript package manager used by the repository"});var go=r__namespace._default(r__namespace.string().check(r__namespace.trim()),"America/New_York");s.add(go,{description:"The default timezone of the workspace"});var fo=r__namespace._default(r__namespace.string().check(r__namespace.trim()),"en-US");s.add(fo,{description:"The default locale of the workspace"});var ho=r__namespace._default(r__namespace.enum(["silent","fatal","error","warn","success","info","debug","trace","all"]),"info");s.add(ho,{description:"The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."});var To=r__namespace._default(r__namespace.boolean(),true);s.add(To,{description:"Should the logging of the current Storm Workspace configuration be skipped?"});var Co=r__namespace._default(r__namespace.nullable(r__namespace.string().check(r__namespace.trim())),null);s.add(Co,{description:"The filepath of the Storm config. When this field is null, no config file was found in the current workspace."});var Q=r__namespace._default(r__namespace.record(r__namespace.string(),r__namespace.any()),{});s.add(Q,{description:"Configuration of each used extension"});var Eo=r__namespace.object({$schema:Ye,extends:ge,name:Ve,variant:Pe,namespace:Je,organization:Xe,repository:qe,license:Qe,homepage:eo,docs:oo,portal:ro,licensing:to,contact:so,support:no,branch:ao,preid:io,owner:co,bot:Te,release:ke,socials:ye,error:Fe,mode:po,workspaceRoot:lo,skipCache:mo,directories:Ge,packageManager:uo,timezone:go,locale:fo,logLevel:ho,skipConfigLogging:To,registry:me,configFile:Co,colors:r__namespace.union([q,ue]),extensions:Q});s.add(Q,{description:"Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo."});var So=["dark","light","base","brand","alternate","accent","link","success","help","info","warning","danger","fatal","positive","negative"];async function Ro(e){let o=le,t,a,i,n,m,d=T(e);if(fs.existsSync(path.join(d,"package.json"))){let v=await promises.readFile(C(d,"package.json"),"utf8");if(v){let g=JSON.parse(v);g.name&&(i=g.name),g.namespace&&(n=g.namespace),g.repository&&(typeof g.repository=="string"?m=g.repository:g.repository.url&&(m=g.repository.url)),g.license&&(o=g.license),g.homepage&&(t=g.homepage),g.bugs&&(typeof g.bugs=="string"?a=g.bugs:g.bugs.url&&(a=g.bugs.url));}}return {workspaceRoot:d,name:i,namespace:n,repository:m,license:o,homepage:t,support:a}}function vo(e){return !e.support&&e.contact&&(e.support=e.contact),!e.contact&&e.support&&(e.contact=e.support),e.homepage&&(e.docs||(e.docs=`${e.homepage}/docs`),e.license||(e.license=`${e.homepage}/license`),e.support||(e.support=`${e.homepage}/support`),e.contact||(e.contact=`${e.homepage}/contact`),(!e.error?.codesFile||!e?.error?.url)&&(e.error??={codesFile:y},e.homepage&&(e.error.url??=`${e.homepage}/errors`))),e}var Oo=async(e,o,t={})=>{let a=o||T(o),i=await Promise.all([c12.loadConfig({cwd:a,packageJson:true,name:e,envName:e?.toUpperCase(),jitiOptions:{debug:false,fsCache:process.env.STORM_SKIP_CACHE==="true"?false:C(process.env.STORM_CACHE_DIR||"node_modules/.cache/storm","jiti")},...t}),c12.loadConfig({cwd:a,packageJson:true,name:e,envName:e?.toUpperCase(),jitiOptions:{debug:false,fsCache:process.env.STORM_SKIP_CACHE==="true"?false:C(process.env.STORM_CACHE_DIR||"node_modules/.cache/storm","jiti")},configFile:e,...t})]);return Ao__default.default(i[0]??{},i[1]??{})},$o=async(e,o=[])=>{let t=e||T(e),a=await Oo("storm-workspace",t),i=a.config,n=a.configFile;if(i&&n&&Object.keys(i).length>0&&!i.skipConfigLogging&&O(`Found Storm configuration file "${n.includes(`${t}/`)?n.replace(`${t}/`,""):n}" at "${t}"`,{logLevel:"all"}),o&&o.length>0){let m=await Promise.all(o.map(d=>Oo(d,t)));for(let d of m)d?.config&&d?.configFile&&Object.keys(d.config).length>0&&(!i.skipConfigLogging&&!d.config.skipConfigLogging&&O(`Found alternative configuration file "${d.configFile.includes(`${t}/`)?d.configFile.replace(`${t}/`,""):d.configFile}" at "${t}"`,{logLevel:"all"}),i=Ao__default.default(d.config??{},i??{}));}if(!(!i||Object.keys(i).length===0))return i.configFile=n,i};var yo=()=>{let e="STORM_",o={extends:process.env[`${e}EXTENDS`]||void 0,name:process.env[`${e}NAME`]||void 0,variant:process.env[`${e}VARIANT`]||void 0,namespace:process.env[`${e}NAMESPACE`]||void 0,owner:process.env[`${e}OWNER`]||void 0,bot:{name:process.env[`${e}BOT_NAME`]||void 0,email:process.env[`${e}BOT_EMAIL`]||void 0},release:{banner:{url:process.env[`${e}RELEASE_BANNER_URL`]||void 0,alt:process.env[`${e}RELEASE_BANNER_ALT`]||void 0},header:process.env[`${e}RELEASE_HEADER`]||void 0,footer:process.env[`${e}RELEASE_FOOTER`]||void 0},error:{codesFile:process.env[`${e}ERROR_CODES_FILE`]||void 0,url:process.env[`${e}ERROR_URL`]||void 0},socials:{twitter:process.env[`${e}SOCIAL_TWITTER`]||void 0,discord:process.env[`${e}SOCIAL_DISCORD`]||void 0,telegram:process.env[`${e}SOCIAL_TELEGRAM`]||void 0,slack:process.env[`${e}SOCIAL_SLACK`]||void 0,medium:process.env[`${e}SOCIAL_MEDIUM`]||void 0,github:process.env[`${e}SOCIAL_GITHUB`]||void 0},organization:process.env[`${e}ORG`]||process.env[`${e}ORGANIZATION`]||process.env[`${e}ORG_NAME`]||process.env[`${e}ORGANIZATION_NAME`]?process.env[`${e}ORG_DESCRIPTION`]||process.env[`${e}ORGANIZATION_DESCRIPTION`]||process.env[`${e}ORG_URL`]||process.env[`${e}ORGANIZATION_URL`]||process.env[`${e}ORG_LOGO`]||process.env[`${e}ORGANIZATION_LOGO`]?{name:process.env[`${e}ORG`]||process.env[`${e}ORGANIZATION`]||process.env[`${e}ORG_NAME`]||process.env[`${e}ORGANIZATION_NAME`],description:process.env[`${e}ORG_DESCRIPTION`]||process.env[`${e}ORGANIZATION_DESCRIPTION`]||void 0,url:process.env[`${e}ORG_URL`]||process.env[`${e}ORGANIZATION_URL`]||void 0,logo:process.env[`${e}ORG_LOGO`]||process.env[`${e}ORGANIZATION_LOGO`]||void 0,icon:process.env[`${e}ORG_ICON`]||process.env[`${e}ORGANIZATION_ICON`]||void 0}:process.env[`${e}ORG`]||process.env[`${e}ORGANIZATION`]||process.env[`${e}ORG_NAME`]||process.env[`${e}ORGANIZATION_NAME`]:void 0,packageManager:process.env[`${e}PACKAGE_MANAGER`]||void 0,license:process.env[`${e}LICENSE`]||void 0,homepage:process.env[`${e}HOMEPAGE`]||void 0,docs:process.env[`${e}DOCS`]||void 0,portal:process.env[`${e}PORTAL`]||void 0,licensing:process.env[`${e}LICENSING`]||void 0,contact:process.env[`${e}CONTACT`]||void 0,support:process.env[`${e}SUPPORT`]||void 0,timezone:process.env[`${e}TIMEZONE`]||process.env.TZ||void 0,locale:process.env[`${e}LOCALE`]||process.env.LOCALE||void 0,configFile:process.env[`${e}WORKSPACE_CONFIG_FILE`]?p(process.env[`${e}WORKSPACE_CONFIG_FILE`]):void 0,workspaceRoot:process.env[`${e}WORKSPACE_ROOT`]?p(process.env[`${e}WORKSPACE_ROOT`]):void 0,directories:{cache:process.env[`${e}CACHE_DIR`]?p(process.env[`${e}CACHE_DIR`]):process.env[`${e}CACHE_DIRECTORY`]?p(process.env[`${e}CACHE_DIRECTORY`]):void 0,data:process.env[`${e}DATA_DIR`]?p(process.env[`${e}DATA_DIR`]):process.env[`${e}DATA_DIRECTORY`]?p(process.env[`${e}DATA_DIRECTORY`]):void 0,config:process.env[`${e}CONFIG_DIR`]?p(process.env[`${e}CONFIG_DIR`]):process.env[`${e}CONFIG_DIRECTORY`]?p(process.env[`${e}CONFIG_DIRECTORY`]):void 0,temp:process.env[`${e}TEMP_DIR`]?p(process.env[`${e}TEMP_DIR`]):process.env[`${e}TEMP_DIRECTORY`]?p(process.env[`${e}TEMP_DIRECTORY`]):void 0,log:process.env[`${e}LOG_DIR`]?p(process.env[`${e}LOG_DIR`]):process.env[`${e}LOG_DIRECTORY`]?p(process.env[`${e}LOG_DIRECTORY`]):void 0,build:process.env[`${e}BUILD_DIR`]?p(process.env[`${e}BUILD_DIR`]):process.env[`${e}BUILD_DIRECTORY`]?p(process.env[`${e}BUILD_DIRECTORY`]):void 0},skipCache:process.env[`${e}SKIP_CACHE`]!==void 0?!!process.env[`${e}SKIP_CACHE`]:void 0,mode:(process.env[`${e}MODE`]??process.env.NODE_ENV??process.env.ENVIRONMENT)||void 0,repository:process.env[`${e}REPOSITORY`]||void 0,branch:process.env[`${e}BRANCH`]||void 0,preid:process.env[`${e}PRE_ID`]||void 0,registry:{github:process.env[`${e}REGISTRY_GITHUB`]||void 0,npm:process.env[`${e}REGISTRY_NPM`]||void 0,cargo:process.env[`${e}REGISTRY_CARGO`]||void 0,cyclone:process.env[`${e}REGISTRY_CYCLONE`]||void 0,container:process.env[`${e}REGISTRY_CONTAINER`]||void 0},logLevel:process.env[`${e}LOG_LEVEL`]!==null&&process.env[`${e}LOG_LEVEL`]!==void 0?process.env[`${e}LOG_LEVEL`]&&Number.isSafeInteger(Number.parseInt(process.env[`${e}LOG_LEVEL`]))?te(Number.parseInt(process.env[`${e}LOG_LEVEL`])):process.env[`${e}LOG_LEVEL`]:void 0,skipConfigLogging:process.env[`${e}SKIP_CONFIG_LOGGING`]!==void 0?!!process.env[`${e}SKIP_CONFIG_LOGGING`]:void 0},t=Object.keys(process.env).filter(i=>i.startsWith(`${e}COLOR_`)&&So.every(n=>!i.startsWith(`${e}COLOR_LIGHT_${n}`)&&!i.startsWith(`${e}COLOR_DARK_${n}`)));o.colors=t.length>0?t.reduce((i,n)=>(i[n]=Lo(e,n),i),{}):Lo(e),o.docs===ce&&(o.homepage===L?o.docs=`${L}/projects/${o.name}/docs`:o.docs=`${o.homepage}/docs`),o.licensing===pe&&(o.homepage===L?o.licensing=`${L}/projects/${o.name}/licensing`:o.licensing=`${o.homepage}/docs`);let a=process.env[`${e}WORKSPACE_CONFIG`];if(a){let i=JSON.parse(a);o={...o,...i,colors:{...o.colors,...i.colors},extensions:{...o.extensions,...i.extensions}};}return o},Lo=(e,o)=>{let t=`COLOR_${o&&o!=="base"?`${o}_`:""}`.toUpperCase();return process.env[`${e}${t}LIGHT_BRAND`]||process.env[`${e}${t}DARK_BRAND`]?cr(e+t):ir(e+t)},ir=e=>{let o=[];if(process.env[`${e}GRADIENT_START`]&&process.env[`${e}GRADIENT_END`])o.push(process.env[`${e}GRADIENT_START`],process.env[`${e}GRADIENT_END`]);else if(process.env[`${e}GRADIENT_0`]||process.env[`${e}GRADIENT_1`]){let t=process.env[`${e}GRADIENT_0`]?0:1;for(;process.env[`${e}GRADIENT_${t}`];)o.push(process.env[`${e}GRADIENT_${t}`]),t++;}return {dark:process.env[`${e}DARK`],light:process.env[`${e}LIGHT`],brand:process.env[`${e}BRAND`],alternate:process.env[`${e}ALTERNATE`],accent:process.env[`${e}ACCENT`],link:process.env[`${e}LINK`],help:process.env[`${e}HELP`],success:process.env[`${e}SUCCESS`],info:process.env[`${e}INFO`],debug:process.env[`${e}DEBUG`],warning:process.env[`${e}WARNING`],danger:process.env[`${e}DANGER`],fatal:process.env[`${e}FATAL`],positive:process.env[`${e}POSITIVE`],negative:process.env[`${e}NEGATIVE`],gradient:o}},cr=e=>({light:_o(`${e}_LIGHT_`),dark:_o(`${e}_DARK_`)}),_o=e=>{let o=[];if(process.env[`${e}GRADIENT_START`]&&process.env[`${e}GRADIENT_END`])o.push(process.env[`${e}GRADIENT_START`],process.env[`${e}GRADIENT_END`]);else if(process.env[`${e}GRADIENT_0`]||process.env[`${e}GRADIENT_1`]){let t=process.env[`${e}GRADIENT_0`]?0:1;for(;process.env[`${e}GRADIENT_${t}`];)o.push(process.env[`${e}GRADIENT_${t}`]),t++;}return {foreground:process.env[`${e}FOREGROUND`],background:process.env[`${e}BACKGROUND`],brand:process.env[`${e}BRAND`],alternate:process.env[`${e}ALTERNATE`],accent:process.env[`${e}ACCENT`],link:process.env[`${e}LINK`],help:process.env[`${e}HELP`],success:process.env[`${e}SUCCESS`],info:process.env[`${e}INFO`],debug:process.env[`${e}DEBUG`],warning:process.env[`${e}WARNING`],danger:process.env[`${e}DANGER`],fatal:process.env[`${e}FATAL`],positive:process.env[`${e}POSITIVE`],negative:process.env[`${e}NEGATIVE`],gradient:o}};var pr=(e,o)=>{for(let t of Object.keys(o??{}))if(o[t]){let a=t?.replace(/([A-Z])+/g,n=>n?n[0]?.toUpperCase()+n.slice(1):"").split(/(?=[A-Z])|[.\-\s_]/).map(n=>n.toLowerCase())??[],i;if(a.length===0)return;a.length===1?i=a[0]?.toUpperCase()??"":i=a.reduce((n,m)=>`${n}_${m.toLowerCase()}`),process.env[`STORM_EXTENSION_${e.toUpperCase()}_${i.toUpperCase()}`]=o[t];}},bo=e=>{let o="STORM_";if(e.extends&&(process.env[`${o}EXTENDS`]=Array.isArray(e.extends)?JSON.stringify(e.extends):e.extends),e.name&&(process.env[`${o}NAME`]=e.name),e.variant&&(process.env[`${o}VARIANT`]=e.variant),e.namespace&&(process.env[`${o}NAMESPACE`]=e.namespace),e.owner&&(process.env[`${o}OWNER`]=e.owner),e.bot&&(process.env[`${o}BOT_NAME`]=e.bot.name,process.env[`${o}BOT_EMAIL`]=e.bot.email),e.error&&(process.env[`${o}ERROR_CODES_FILE`]=e.error.codesFile,process.env[`${o}ERROR_URL`]=e.error.url),e.release&&(e.release.banner&&(typeof e.release.banner=="string"?(process.env[`${o}RELEASE_BANNER`]=e.release.banner,process.env[`${o}RELEASE_BANNER_URL`]=e.release.banner):(process.env[`${o}RELEASE_BANNER`]=e.release.banner.url,process.env[`${o}RELEASE_BANNER_URL`]=e.release.banner.url,process.env[`${o}RELEASE_BANNER_ALT`]=e.release.banner.alt)),process.env[`${o}RELEASE_HEADER`]=e.release.header,process.env[`${o}RELEASE_FOOTER`]=e.release.footer),e.socials&&(e.socials.twitter&&(process.env[`${o}SOCIAL_TWITTER`]=e.socials.twitter),e.socials.discord&&(process.env[`${o}SOCIAL_DISCORD`]=e.socials.discord),e.socials.telegram&&(process.env[`${o}SOCIAL_TELEGRAM`]=e.socials.telegram),e.socials.slack&&(process.env[`${o}SOCIAL_SLACK`]=e.socials.slack),e.socials.medium&&(process.env[`${o}SOCIAL_MEDIUM`]=e.socials.medium),e.socials.github&&(process.env[`${o}SOCIAL_GITHUB`]=e.socials.github)),e.organization&&(typeof e.organization=="string"?(process.env[`${o}ORG`]=e.organization,process.env[`${o}ORG_NAME`]=e.organization,process.env[`${o}ORGANIZATION`]=e.organization,process.env[`${o}ORGANIZATION_NAME`]=e.organization):(process.env[`${o}ORG`]=e.organization.name,process.env[`${o}ORG_NAME`]=e.organization.name,process.env[`${o}ORGANIZATION`]=e.organization.name,process.env[`${o}ORGANIZATION_NAME`]=e.organization.name,e.organization.url&&(process.env[`${o}ORG_URL`]=e.organization.url,process.env[`${o}ORGANIZATION_URL`]=e.organization.url),e.organization.description&&(process.env[`${o}ORG_DESCRIPTION`]=e.organization.description,process.env[`${o}ORGANIZATION_DESCRIPTION`]=e.organization.description),e.organization.logo&&(process.env[`${o}ORG_LOGO`]=e.organization.logo,process.env[`${o}ORGANIZATION_LOGO`]=e.organization.logo),e.organization.icon&&(process.env[`${o}ORG_ICON`]=e.organization.icon,process.env[`${o}ORGANIZATION_ICON`]=e.organization.icon))),e.packageManager&&(process.env[`${o}PACKAGE_MANAGER`]=e.packageManager),e.license&&(process.env[`${o}LICENSE`]=e.license),e.homepage&&(process.env[`${o}HOMEPAGE`]=e.homepage),e.docs&&(process.env[`${o}DOCS`]=e.docs),e.portal&&(process.env[`${o}PORTAL`]=e.portal),e.licensing&&(process.env[`${o}LICENSING`]=e.licensing),e.contact&&(process.env[`${o}CONTACT`]=e.contact),e.support&&(process.env[`${o}SUPPORT`]=e.support),e.timezone&&(process.env[`${o}TIMEZONE`]=e.timezone,process.env.TZ=e.timezone,process.env.DEFAULT_TIMEZONE=e.timezone,process.env.TIMEZONE=e.timezone),e.locale&&(process.env[`${o}LOCALE`]=e.locale,process.env.DEFAULT_LOCALE=e.locale,process.env.LOCALE=e.locale,process.env.LANG=e.locale?`${e.locale.replaceAll("-","_")}.UTF-8`:"en_US.UTF-8"),e.configFile&&(process.env[`${o}WORKSPACE_CONFIG_FILE`]=p(e.configFile)),e.workspaceRoot&&(process.env[`${o}WORKSPACE_ROOT`]=p(e.workspaceRoot),process.env.NX_WORKSPACE_ROOT=p(e.workspaceRoot),process.env.NX_WORKSPACE_ROOT_PATH=p(e.workspaceRoot)),e.directories&&(!e.skipCache&&e.directories.cache&&(process.env[`${o}CACHE_DIR`]=p(e.directories.cache),process.env[`${o}CACHE_DIRECTORY`]=process.env[`${o}CACHE_DIR`]),e.directories.data&&(process.env[`${o}DATA_DIR`]=p(e.directories.data),process.env[`${o}DATA_DIRECTORY`]=process.env[`${o}DATA_DIR`]),e.directories.config&&(process.env[`${o}CONFIG_DIR`]=p(e.directories.config),process.env[`${o}CONFIG_DIRECTORY`]=process.env[`${o}CONFIG_DIR`]),e.directories.temp&&(process.env[`${o}TEMP_DIR`]=p(e.directories.temp),process.env[`${o}TEMP_DIRECTORY`]=process.env[`${o}TEMP_DIR`]),e.directories.log&&(process.env[`${o}LOG_DIR`]=p(e.directories.log),process.env[`${o}LOG_DIRECTORY`]=process.env[`${o}LOG_DIR`]),e.directories.build&&(process.env[`${o}BUILD_DIR`]=p(e.directories.build),process.env[`${o}BUILD_DIRECTORY`]=process.env[`${o}BUILD_DIR`])),e.skipCache!==void 0&&(process.env[`${o}SKIP_CACHE`]=String(e.skipCache),e.skipCache&&(process.env.NX_SKIP_NX_CACHE??=String(e.skipCache),process.env.NX_CACHE_PROJECT_GRAPH??=String(e.skipCache))),e.mode&&(process.env[`${o}MODE`]=e.mode,process.env.NODE_ENV=e.mode,process.env.ENVIRONMENT=e.mode),e.colors?.base?.light||e.colors?.base?.dark)for(let t of Object.keys(e.colors))No(`${o}COLOR_${t}_`,e.colors[t]);else No(`${o}COLOR_`,e.colors);e.repository&&(process.env[`${o}REPOSITORY`]=e.repository),e.branch&&(process.env[`${o}BRANCH`]=e.branch),e.preid&&(process.env[`${o}PRE_ID`]=String(e.preid)),e.registry&&(e.registry.github&&(process.env[`${o}REGISTRY_GITHUB`]=String(e.registry.github)),e.registry.npm&&(process.env[`${o}REGISTRY_NPM`]=String(e.registry.npm)),e.registry.cargo&&(process.env[`${o}REGISTRY_CARGO`]=String(e.registry.cargo)),e.registry.cyclone&&(process.env[`${o}REGISTRY_CYCLONE`]=String(e.registry.cyclone)),e.registry.container&&(process.env[`${o}REGISTRY_CONTAINER`]=String(e.registry.container))),e.logLevel&&(process.env[`${o}LOG_LEVEL`]=String(e.logLevel),process.env.LOG_LEVEL=String(e.logLevel),process.env.NX_VERBOSE_LOGGING=String(A(e.logLevel)>=c.DEBUG),process.env.RUST_BACKTRACE=A(e.logLevel)>=c.DEBUG?"full":"none"),e.skipConfigLogging!==void 0&&(process.env[`${o}SKIP_CONFIG_LOGGING`]=String(e.skipConfigLogging)),process.env[`${o}WORKSPACE_CONFIG`]=JSON.stringify(e);for(let t of Object.keys(e.extensions??{}))e.extensions[t]&&Object.keys(e.extensions[t])&&pr(t,e.extensions[t]);},No=(e,o)=>o?.light?.brand||o?.dark?.brand?dr(e,o):lr(e,o),lr=(e,o)=>{if(o.dark&&(process.env[`${e}DARK`]=o.dark),o.light&&(process.env[`${e}LIGHT`]=o.light),o.brand&&(process.env[`${e}BRAND`]=o.brand),o.alternate&&(process.env[`${e}ALTERNATE`]=o.alternate),o.accent&&(process.env[`${e}ACCENT`]=o.accent),o.link&&(process.env[`${e}LINK`]=o.link),o.help&&(process.env[`${e}HELP`]=o.help),o.success&&(process.env[`${e}SUCCESS`]=o.success),o.info&&(process.env[`${e}INFO`]=o.info),o.debug&&(process.env[`${e}DEBUG`]=o.debug),o.warning&&(process.env[`${e}WARNING`]=o.warning),o.danger&&(process.env[`${e}DANGER`]=o.danger),o.fatal&&(process.env[`${e}FATAL`]=o.fatal),o.positive&&(process.env[`${e}POSITIVE`]=o.positive),o.negative&&(process.env[`${e}NEGATIVE`]=o.negative),o.gradient)for(let t=0;t<o.gradient.length;t++)process.env[`${e}GRADIENT_${t}`]=o.gradient[t];},dr=(e,o)=>({light:wo(`${e}LIGHT_`,o.light),dark:wo(`${e}DARK_`,o.dark)}),wo=(e,o)=>{if(o.foreground&&(process.env[`${e}FOREGROUND`]=o.foreground),o.background&&(process.env[`${e}BACKGROUND`]=o.background),o.brand&&(process.env[`${e}BRAND`]=o.brand),o.alternate&&(process.env[`${e}ALTERNATE`]=o.alternate),o.accent&&(process.env[`${e}ACCENT`]=o.accent),o.link&&(process.env[`${e}LINK`]=o.link),o.help&&(process.env[`${e}HELP`]=o.help),o.success&&(process.env[`${e}SUCCESS`]=o.success),o.info&&(process.env[`${e}INFO`]=o.info),o.debug&&(process.env[`${e}DEBUG`]=o.debug),o.warning&&(process.env[`${e}WARNING`]=o.warning),o.danger&&(process.env[`${e}DANGER`]=o.danger),o.fatal&&(process.env[`${e}FATAL`]=o.fatal),o.positive&&(process.env[`${e}POSITIVE`]=o.positive),o.negative&&(process.env[`${e}NEGATIVE`]=o.negative),o.gradient)for(let t=0;t<o.gradient.length;t++)process.env[`${e}GRADIENT_${t}`]=o.gradient[t];};var _,ur=async(e,o,t,a=false,i=true)=>{let n;if(!_?.data||!_?.timestamp||_.timestamp<Date.now()-8e3){let m=t;m||(m=T());let d=yo(),v=await $o(m);if(!v&&(a||se("No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n",{logLevel:"all"}),i===false))return;let g=await Ro(m),I=Ao__default.default(d,v,g);I.variant||(I.variant=fs.existsSync(C(m,"nx.json"))||fs.existsSync(C(m,".nx"))||fs.existsSync(C(m,"lerna.json"))||fs.existsSync(C(m,"turbo.json"))?"monorepo":"minimal");try{n=vo(await Eo.parseAsync(I)),n.workspaceRoot??=m;}catch(Y){throw new Error(`Failed to parse Storm Workspace configuration${Y?.message?`: ${Y.message}`:""}
25
25
 
26
- Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${h(I)}`,{cause:Y})}}else n=_.data;return _={timestamp:Date.now(),data:n},n},bo=async(e,o=false)=>{let t=await ur(void 0,void 0,e,o,true);return zo(t),!o&&!t.skipConfigLogging&&O(`\u2699\uFE0F Using Storm Workspace configuration:
27
- ${h(t)}`,t),t};function fr(e,o=false){return bo(e,o)}function xo(e=true,o={}){let t=o.workspaceRoot;return t||(t=T(o.cwd)),fr(t,e)}function Do(e=T(process.cwd())){let o=C(e,"pnpm-workspace.yaml");if(!fs.existsSync(o))throw new Error(`No \`pnpm-workspace.yaml\` file found in workspace root (searched in: ${o}).`);return o}async function Cs(e=T(process.cwd())){let o=await promises.readFile(Do(e),"utf8");if(o)return yaml.parse(o)}async function Es(e,o=T(process.cwd())){let t=await xo(),a=yaml.stringify(e);O(`Writing updated pnpm-workspace.yaml file to workspace root: ${a}`,t),await promises.writeFile(Do(o),a);}exports.a=se;exports.b=Zr;exports.c=O;exports.d=C;exports.e=T;exports.f=xo;exports.g=Do;exports.h=Cs;exports.i=Es;
26
+ Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${h(I)}`,{cause:Y})}}else n=_.data;return _={timestamp:Date.now(),data:n},n},zo=async(e,o=false)=>{let t=await ur(void 0,void 0,e,o,true);return bo(t),!o&&!t.skipConfigLogging&&O(`\u2699\uFE0F Using Storm Workspace configuration:
27
+ ${h(t)}`,t),t};function fr(e,o=false){return zo(e,o)}function xo(e=true,o={}){let t=o.workspaceRoot;return t||(t=T(o.cwd)),fr(t,e)}function Do(e=T(process.cwd())){let o=C(e,"pnpm-workspace.yaml");if(!fs.existsSync(o))throw new Error(`No \`pnpm-workspace.yaml\` file found in workspace root (searched in: ${o}).`);return o}async function Es(e=T(process.cwd())){let o=await promises.readFile(Do(e),"utf8");if(o)return yaml.parse(o)}async function Ss(e,o=T(process.cwd())){let t=await xo(),a=yaml.stringify(e);O(`Writing updated pnpm-workspace.yaml file to workspace root: ${a}`,t),await promises.writeFile(Do(o),a);}exports.a=se;exports.b=Yr;exports.c=O;exports.d=C;exports.e=T;exports.f=xo;exports.g=Do;exports.h=Es;exports.i=Ss;
@@ -14,14 +14,14 @@ ${t.gray(v())} ${t.hex(a.debug??S.dark.debug)(`[${R[l.DEBUG]} Debug] `)}${t.bold
14
14
  ${t.gray(v())} ${t.hex("#bbbbbb")(`[${R[l.TRACE]} Trace] `)}${t.bold.whiteBright(T(n))}
15
15
  `);}:n=>{console.log(`
16
16
  ${t.gray(v())} ${t.hex(a.brand??S.dark.brand)(`[${R[l.ALL]} System] `)}${t.bold.whiteBright(T(n))}
17
- `);}};var ne=(e,o)=>J(c.WARN,o)(e);var Yr=(e,o)=>J(c.DEBUG,o)(e),A=(e,o)=>J(c.TRACE,o)(e);var Mo=6,T=(e,o={},t=0)=>{if(t>Mo)return "<max depth>";let a=o.prefix??"-",i=o.skip??[];return typeof e>"u"||e===null||!e&&typeof e!="boolean"?"<none>":typeof e=="string"?e:Array.isArray(e)?`
17
+ `);}};var ne=(e,o)=>J(c.WARN,o)(e);var Vr=(e,o)=>J(c.DEBUG,o)(e),A=(e,o)=>J(c.TRACE,o)(e);var Mo=6,T=(e,o={},t=0)=>{if(t>Mo)return "<max depth>";let a=o.prefix??"-",i=o.skip??[];return typeof e>"u"||e===null||!e&&typeof e!="boolean"?"<none>":typeof e=="string"?e:Array.isArray(e)?`
18
18
  ${e.map((n,m)=>` ${a}> #${m} = ${T(n,{prefix:`${a}-`,skip:i},t+1)}`).join(`
19
19
  `)}`:typeof e=="object"?`
20
20
  ${Object.keys(e).filter(n=>!i.includes(n)).map(n=>` ${a}> ${n} = ${Fo(e[n])?"<function>":typeof e[n]=="object"?T(e[n],{prefix:`${a}-`,skip:i},t+1):e[n]}`).join(`
21
21
  `)}`:e},Fo=e=>{try{return e instanceof Function||typeof e=="function"||!!(e?.constructor&&e?.call&&e?.apply)}catch{return false}};var Uo=/^[A-Za-z]:\//;function jo(e=""){return e&&e.replace(/\\/g,"/").replace(Uo,o=>o.toUpperCase())}var Bo=/^[/\\]{2}/,Ho=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Ko=/^[A-Za-z]:$/;var p=function(e){if(!e||e.length===0)return ".";e=jo(e);let o=e?.match(Bo),t=ae(e),a=e[e.length-1]==="/";return e=Zo(e,!t),e.length===0?t?"/":a?"./":".":(a&&(e+="/"),Ko.test(e)&&(e+="/"),o?t?`//${e}`:`//./${e}`:t&&!ae(e)?`/${e}`:e)},E=function(...e){let o="";for(let t of e)if(t)if(o.length>0){let a=o[o.length-1]==="/",i=t[0]==="/";a&&i?o+=t.slice(1):o+=a||i?t:`/${t}`;}else o+=t;return p(o)};function Zo(e,o){let t="",a=0,i=-1,n=0,m=null;for(let d=0;d<=e.length;++d){if(d<e.length)m=e[d];else {if(m==="/")break;m="/";}if(m==="/"){if(!(i===d-1||n===1))if(n===2){if(t.length<2||a!==2||t[t.length-1]!=="."||t[t.length-2]!=="."){if(t.length>2){let k=t.lastIndexOf("/");k===-1?(t="",a=0):(t=t.slice(0,k),a=t.length-1-t.lastIndexOf("/")),i=d,n=0;continue}else if(t.length>0){t="",a=0,i=d,n=0;continue}}o&&(t+=t.length>0?"/..":"..",a=2);}else t.length>0?t+=`/${e.slice(i+1,d)}`:t=e.slice(i+1,d),a=d-i-1;i=d,n=0;}else m==="."&&n!==-1?++n:n=-1;}return t}var ae=function(e){return Ho.test(e)};var Yo=30,Vo=0;function q(e,o=[],t=[]){let a=e??process.cwd();if(t.some(i=>existsSync(join(a,i)))||o.some(i=>existsSync(join(a,i))))return a;if(a!=="/"&&Vo++<Yo){let i=join(a,"..");return q(i,o,t)}}var ce=["storm-workspace.json","storm-workspace.yaml","storm-workspace.yml","storm-workspace.js","storm-workspace.ts",".storm-workspace.json",".storm-workspace.yaml",".storm-workspace.yml",".storm-workspace.js",".storm-workspace.ts","lerna.json","nx.json","turbo.json","npm-workspace.json","yarn-workspace.json","pnpm-workspace.json","npm-workspace.yaml","yarn-workspace.yaml","pnpm-workspace.yaml","npm-workspace.yml","yarn-workspace.yml","pnpm-workspace.yml","npm-lock.json","yarn-lock.json","pnpm-lock.json","npm-lock.yaml","yarn-lock.yaml","pnpm-lock.yaml","npm-lock.yml","yarn-lock.yml","pnpm-lock.yml","bun.lockb"],Jo=[".storm-workspace",".nx",".git",".github",".vscode",".verdaccio"];function Xo(e){return process.env.STORM_WORKSPACE_ROOT||process.env.NX_WORKSPACE_ROOT_PATH?p(process.env.STORM_WORKSPACE_ROOT??process.env.NX_WORKSPACE_ROOT_PATH):p(q(e??process.cwd(),ce,Jo))}function C(e){let o=Xo(e);if(!o)throw new Error(`Cannot find workspace root upwards from known path. Files search list includes:
22
22
  ${ce.join(`
23
23
  `)}
24
- Path: ${e||process.cwd()}`);return o}var pe="https://docs.stormsoftware.com",_="https://stormsoftware.com";var le="https://stormsoftware.com/license",de="Apache-2.0";var N="tools/errors/codes.json",me="The workspace's banner image";var s=r.registry(),h=r.string().check(r.length(7),r.toLowerCase(),r.regex(/^#([0-9a-f]{3}){1,2}$/i),r.trim());s.add(h,{description:"A base schema for describing the format of colors"});var w=r._default(h,"#151718");s.add(w,{description:"The dark background color of the workspace"});var z=r._default(h,"#cbd5e1");s.add(z,{description:"The light background color of the workspace"});var b=r._default(h,"#1fb2a6");s.add(b,{description:"The primary brand specific color of the workspace"});var x=r.optional(h);s.add(x,{description:"The alternate brand specific color of the workspace"});var D=r.optional(h);s.add(D,{description:"The secondary brand specific color of the workspace"});var G=r._default(h,"#3fa6ff");s.add(G,{description:"The color used to display hyperlink text"});var P=r._default(h,"#818cf8");s.add(P,{description:"The second brand specific color of the workspace"});var W=r._default(h,"#45b27e");s.add(W,{description:"The success color of the workspace"});var M=r._default(h,"#38bdf8");s.add(M,{description:"The informational color of the workspace"});var F=r._default(h,"#8afafc");s.add(F,{description:"The debug color of the workspace"});var U=r._default(h,"#f3d371");s.add(U,{description:"The warning color of the workspace"});var j=r._default(h,"#d8314a");s.add(j,{description:"The danger color of the workspace"});var B=r.optional(h);s.add(B,{description:"The fatal color of the workspace"});var H=r._default(h,"#4ade80");s.add(H,{description:"The positive number color of the workspace"});var K=r._default(h,"#ef4444");s.add(K,{description:"The negative number color of the workspace"});var Z=r.optional(r.array(h));s.add(Z,{description:"The color stops for the base gradient color pattern used in the workspace"});var or=r.object({foreground:z,background:w,brand:b,alternate:x,accent:D,link:G,help:P,success:W,info:M,debug:F,warning:U,danger:j,fatal:B,positive:H,negative:K,gradient:Z}),rr=r.object({foreground:w,background:z,brand:b,alternate:x,accent:D,link:G,help:P,success:W,info:M,debug:F,warning:U,danger:j,fatal:B,positive:H,negative:K,gradient:Z}),tr=r.object({dark:or,light:rr}),sr=r.object({dark:w,light:z,brand:b,alternate:x,accent:D,link:G,help:P,success:W,info:M,debug:F,warning:U,danger:j,fatal:B,positive:H,negative:K,gradient:Z}),L=r.optional(r.url());s.add(L,{description:"A remote registry URL used to publish distributable packages"});var ue=r._default(r.object({github:L,npm:L,cargo:L,cyclone:L,container:L}),{});s.add(ue,{description:"A list of remote registry URLs used by Storm Software"});var Q=r.union([sr,tr]);s.add(Q,{description:"Colors used for various workspace elements"});var ge=r.record(r.union([r.union([r.literal("base"),r.string()]),r.string()]),Q);s.add(ge,{description:"Storm theme config values used for styling various package elements"});var fe=r.optional(r.union([r.string().check(r.trim()),r.array(r.string().check(r.trim()))]));s.add(fe,{description:"The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."});var he=r.string().check(r.trim());s.add(he,{description:"The workspace bot user's name (this is the bot that will be used to perform various tasks)"});var Te=r.string().check(r.trim());s.add(Te,{description:"The email of the workspace bot"});var Ce=r.object({name:he,email:Te});s.add(Ce,{description:"The workspace's bot user's config used to automated various operations tasks"});var Ee=r.optional(r.string().check(r.trim(),r.url()));s.add(Ee,{description:"A URL to a banner image used to display the workspace's release"});var Se=r._default(r.string().check(r.trim()),me);s.add(Se,{description:"The alt text for the workspace's release banner image"});var Re=r.object({url:Ee,alt:Se});s.add(Re,{description:"The workspace's banner image used during the release process"});var ve=r.optional(r.string().check(r.trim()));s.add(ve,{description:"A header message appended to the start of the workspace's release notes"});var ke=r.optional(r.string().check(r.trim()));s.add(ke,{description:"A footer message appended to the end of the workspace's release notes"});var Oe=r.object({banner:r.union([Re,r.string().check(r.trim(),r.url())]),header:ve,footer:ke});s.add(Oe,{description:"The workspace's release config used during the release process"});var Ae=r.optional(r.string().check(r.trim()));s.add(Ae,{description:"A Twitter/X account associated with the organization/project"});var $e=r.optional(r.string().check(r.trim()));s.add($e,{description:"A Discord account associated with the organization/project"});var Le=r.optional(r.string().check(r.trim()));s.add(Le,{description:"A Telegram account associated with the organization/project"});var _e=r.optional(r.string().check(r.trim()));s.add(_e,{description:"A Slack account associated with the organization/project"});var Ie=r.optional(r.string().check(r.trim()));s.add(Ie,{description:"A Medium account associated with the organization/project"});var ye=r.optional(r.string().check(r.trim()));s.add(ye,{description:"A GitHub account associated with the organization/project"});var Ne=r.object({twitter:Ae,discord:$e,telegram:Le,slack:_e,medium:Ie,github:ye});s.add(Ne,{description:"The workspace's account config used to store various social media links"});var we=r.optional(r.string().check(r.trim()));s.add(we,{description:"The directory used to store the environment's cached file data"});var ze=r.optional(r.string().check(r.trim()));s.add(ze,{description:"The directory used to store the environment's data files"});var be=r.optional(r.string().check(r.trim()));s.add(be,{description:"The directory used to store the environment's configuration files"});var xe=r.optional(r.string().check(r.trim()));s.add(xe,{description:"The directory used to store the environment's temp files"});var De=r.optional(r.string().check(r.trim()));s.add(De,{description:"The directory used to store the environment's log files"});var Ge=r._default(r.string().check(r.trim()),"dist");s.add(Ge,{description:"The directory used to store the workspace's distributable files after a build (relative to the workspace root)"});var Pe=r.object({cache:we,data:ze,config:be,temp:xe,log:De,build:Ge});s.add(Pe,{description:"Various directories used by the workspace to store data, cache, and configuration files"});var We=r._default(r.enum(["minimal","monorepo"]),"monorepo");s.add(We,{description:"The variant of the workspace. This can be used to enable or disable certain features or configurations."});var Me=r._default(r.string().check(r.trim()),N);s.add(Me,{description:"The path to the workspace's error codes JSON file"});var Fe=r.optional(r.url());s.add(Fe,{description:"A URL to a page that looks up the workspace's error messages given a specific error code"});var Ue=r.object({codesFile:Me,url:Fe});s.add(Ue,{description:"The workspace's error config used when creating error details during a system error"});var je=r.optional(r.string().check(r.trim(),r.toLowerCase()));s.add(je,{description:"The name of the organization"});var Be=r.optional(r.string().check(r.trim()));s.add(Be,{description:"A description of the organization"});var He=r.optional(r.url());s.add(He,{description:"A URL to the organization's logo image"});var Ke=r.optional(r.url());s.add(Ke,{description:"A URL to the organization's icon image"});var Ze=r.optional(r.url());s.add(Ze,{description:"A URL to a page that provides more information about the organization"});var Ye=r.object({name:je,description:Be,logo:He,icon:Ke,url:Ze});s.add(Ye,{description:"The workspace's organization details"});var Ve=r._default(r.string().check(r.trim(),r.toLowerCase()),"https://public.storm-cdn.com/schemas/storm-workspace.schema.json");s.add(Ve,{description:"The URL or file path to the JSON schema file that describes the Storm configuration file"});var Je=r.string().check(r.trim(),r.toLowerCase());s.add(Je,{description:"The name of the workspace/project/service/package/scope using this configuration"});var Xe=r.string().check(r.trim(),r.toLowerCase());s.add(Xe,{description:"The namespace of the workspace/project/service/package/scope using this configuration"});var qe=r.union([Ye,r.string().check(r.trim(),r.toLowerCase())]);s.add(qe,{description:"The organization of the workspace. This can be a string or an object containing the organization's details"});var Qe=r.string().check(r.trim(),r.toLowerCase());s.add(Qe,{description:"The repo URL of the workspace (i.e. the GitHub repository URL)"});var eo=r._default(r.string().check(r.trim()),"Apache-2.0");s.add(eo,{description:"The license type of the package"});var oo=r.optional(r.url());s.add(oo,{description:"The homepage of the workspace"});var ro=r.optional(r.url());s.add(ro,{description:"The documentation site for the workspace"});var to=r.optional(r.url());s.add(to,{description:"The development portal site for the workspace"});var so=r.optional(r.url());s.add(so,{description:"The licensing site for the workspace"});var no=r.optional(r.url());s.add(no,{description:"The contact site for the workspace"});var ao=r.optional(r.url());s.add(ao,{description:"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"});var io=r._default(r.string().check(r.trim(),r.toLowerCase()),"main");s.add(io,{description:"The branch of the workspace"});var co=r.optional(r.string().check(r.trim(),r.toLowerCase()));s.add(co,{description:"A tag specifying the version pre-release identifier"});var po=r.optional(r.string().check(r.trim(),r.toLowerCase()));s.add(po,{description:"The owner of the package"});var lo=r._default(r.enum(["development","test","production"]).check(r.trim(),r.toLowerCase()),"production");s.add(lo,{description:"The current runtime environment mode for the package"});var mo=r.string().check(r.trim(),r.toLowerCase());s.add(mo,{description:"The root directory of the workspace"});var uo=r._default(r.boolean(),false);s.add(uo,{description:"Should all known types of workspace caching be skipped?"});var go=r._default(r.enum(["npm","yarn","pnpm","bun"]),"npm");s.add(go,{description:"The JavaScript/TypeScript package manager used by the repository"});var fo=r._default(r.string().check(r.trim()),"America/New_York");s.add(fo,{description:"The default timezone of the workspace"});var ho=r._default(r.string().check(r.trim()),"en-US");s.add(ho,{description:"The default locale of the workspace"});var To=r._default(r.enum(["silent","fatal","error","warn","success","info","debug","trace","all"]),"info");s.add(To,{description:"The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."});var Co=r._default(r.boolean(),true);s.add(Co,{description:"Should the logging of the current Storm Workspace configuration be skipped?"});var Eo=r._default(r.nullable(r.string().check(r.trim())),null);s.add(Eo,{description:"The filepath of the Storm config. When this field is null, no config file was found in the current workspace."});var ee=r._default(r.record(r.string(),r.any()),{});s.add(ee,{description:"Configuration of each used extension"});var So=r.object({$schema:Ve,extends:fe,name:Je,variant:We,namespace:Xe,organization:qe,repository:Qe,license:eo,homepage:oo,docs:ro,portal:to,licensing:so,contact:no,support:ao,branch:io,preid:co,owner:po,bot:Ce,release:Oe,socials:Ne,error:Ue,mode:lo,workspaceRoot:mo,skipCache:uo,directories:Pe,packageManager:go,timezone:fo,locale:ho,logLevel:To,skipConfigLogging:Co,registry:ue,configFile:Eo,colors:r.union([Q,ge]),extensions:ee});s.add(ee,{description:"Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo."});var Ro=["dark","light","base","brand","alternate","accent","link","success","help","info","warning","danger","fatal","positive","negative"];async function vo(e){let o=de,t,a,i,n,m,d=C(e);if(existsSync(join(d,"package.json"))){let k=await readFile(E(d,"package.json"),"utf8");if(k){let f=JSON.parse(k);f.name&&(i=f.name),f.namespace&&(n=f.namespace),f.repository&&(typeof f.repository=="string"?m=f.repository:f.repository.url&&(m=f.repository.url)),f.license&&(o=f.license),f.homepage&&(t=f.homepage),f.bugs&&(typeof f.bugs=="string"?a=f.bugs:f.bugs.url&&(a=f.bugs.url));}}return {workspaceRoot:d,name:i,namespace:n,repository:m,license:o,homepage:t,support:a}}function ko(e){return !e.support&&e.contact&&(e.support=e.contact),!e.contact&&e.support&&(e.contact=e.support),e.homepage&&(e.docs||(e.docs=`${e.homepage}/docs`),e.license||(e.license=`${e.homepage}/license`),e.support||(e.support=`${e.homepage}/support`),e.contact||(e.contact=`${e.homepage}/contact`),(!e.error?.codesFile||!e?.error?.url)&&(e.error??={codesFile:N},e.homepage&&(e.error.url??=`${e.homepage}/errors`))),e}var Ao=async(e,o,t={})=>{let a=o||C(o),i=await Promise.all([loadConfig({cwd:a,packageJson:true,name:e,envName:e?.toUpperCase(),jitiOptions:{debug:false,fsCache:process.env.STORM_SKIP_CACHE==="true"?false:E(process.env.STORM_CACHE_DIR||"node_modules/.cache/storm","jiti")},...t}),loadConfig({cwd:a,packageJson:true,name:e,envName:e?.toUpperCase(),jitiOptions:{debug:false,fsCache:process.env.STORM_SKIP_CACHE==="true"?false:E(process.env.STORM_CACHE_DIR||"node_modules/.cache/storm","jiti")},configFile:e,...t})]);return $o(i[0]??{},i[1]??{})},Lo=async(e,o=[])=>{let t=e||C(e),a=await Ao("storm-workspace",t),i=a.config,n=a.configFile;if(i&&n&&Object.keys(i).length>0&&!i.skipConfigLogging&&A(`Found Storm configuration file "${n.includes(`${t}/`)?n.replace(`${t}/`,""):n}" at "${t}"`,{logLevel:"all"}),o&&o.length>0){let m=await Promise.all(o.map(d=>Ao(d,t)));for(let d of m)d?.config&&d?.configFile&&Object.keys(d.config).length>0&&(!i.skipConfigLogging&&!d.config.skipConfigLogging&&A(`Found alternative configuration file "${d.configFile.includes(`${t}/`)?d.configFile.replace(`${t}/`,""):d.configFile}" at "${t}"`,{logLevel:"all"}),i=$o(d.config??{},i??{}));}if(!(!i||Object.keys(i).length===0))return i.configFile=n,i};var No=()=>{let e="STORM_",o={extends:process.env[`${e}EXTENDS`]||void 0,name:process.env[`${e}NAME`]||void 0,variant:process.env[`${e}VARIANT`]||void 0,namespace:process.env[`${e}NAMESPACE`]||void 0,owner:process.env[`${e}OWNER`]||void 0,bot:{name:process.env[`${e}BOT_NAME`]||void 0,email:process.env[`${e}BOT_EMAIL`]||void 0},release:{banner:{url:process.env[`${e}RELEASE_BANNER_URL`]||void 0,alt:process.env[`${e}RELEASE_BANNER_ALT`]||void 0},header:process.env[`${e}RELEASE_HEADER`]||void 0,footer:process.env[`${e}RELEASE_FOOTER`]||void 0},error:{codesFile:process.env[`${e}ERROR_CODES_FILE`]||void 0,url:process.env[`${e}ERROR_URL`]||void 0},socials:{twitter:process.env[`${e}SOCIAL_TWITTER`]||void 0,discord:process.env[`${e}SOCIAL_DISCORD`]||void 0,telegram:process.env[`${e}SOCIAL_TELEGRAM`]||void 0,slack:process.env[`${e}SOCIAL_SLACK`]||void 0,medium:process.env[`${e}SOCIAL_MEDIUM`]||void 0,github:process.env[`${e}SOCIAL_GITHUB`]||void 0},organization:process.env[`${e}ORG`]||process.env[`${e}ORGANIZATION`]||process.env[`${e}ORG_NAME`]||process.env[`${e}ORGANIZATION_NAME`]?process.env[`${e}ORG_DESCRIPTION`]||process.env[`${e}ORGANIZATION_DESCRIPTION`]||process.env[`${e}ORG_URL`]||process.env[`${e}ORGANIZATION_URL`]||process.env[`${e}ORG_LOGO`]||process.env[`${e}ORGANIZATION_LOGO`]?{name:process.env[`${e}ORG`]||process.env[`${e}ORGANIZATION`]||process.env[`${e}ORG_NAME`]||process.env[`${e}ORGANIZATION_NAME`],description:process.env[`${e}ORG_DESCRIPTION`]||process.env[`${e}ORGANIZATION_DESCRIPTION`]||void 0,url:process.env[`${e}ORG_URL`]||process.env[`${e}ORGANIZATION_URL`]||void 0,logo:process.env[`${e}ORG_LOGO`]||process.env[`${e}ORGANIZATION_LOGO`]||void 0,icon:process.env[`${e}ORG_ICON`]||process.env[`${e}ORGANIZATION_ICON`]||void 0}:process.env[`${e}ORG`]||process.env[`${e}ORGANIZATION`]||process.env[`${e}ORG_NAME`]||process.env[`${e}ORGANIZATION_NAME`]:void 0,packageManager:process.env[`${e}PACKAGE_MANAGER`]||void 0,license:process.env[`${e}LICENSE`]||void 0,homepage:process.env[`${e}HOMEPAGE`]||void 0,docs:process.env[`${e}DOCS`]||void 0,portal:process.env[`${e}PORTAL`]||void 0,licensing:process.env[`${e}LICENSING`]||void 0,contact:process.env[`${e}CONTACT`]||void 0,support:process.env[`${e}SUPPORT`]||void 0,timezone:process.env[`${e}TIMEZONE`]||process.env.TZ||void 0,locale:process.env[`${e}LOCALE`]||process.env.LOCALE||void 0,configFile:process.env[`${e}WORKSPACE_CONFIG_FILE`]?p(process.env[`${e}WORKSPACE_CONFIG_FILE`]):void 0,workspaceRoot:process.env[`${e}WORKSPACE_ROOT`]?p(process.env[`${e}WORKSPACE_ROOT`]):void 0,directories:{cache:process.env[`${e}CACHE_DIR`]?p(process.env[`${e}CACHE_DIR`]):process.env[`${e}CACHE_DIRECTORY`]?p(process.env[`${e}CACHE_DIRECTORY`]):void 0,data:process.env[`${e}DATA_DIR`]?p(process.env[`${e}DATA_DIR`]):process.env[`${e}DATA_DIRECTORY`]?p(process.env[`${e}DATA_DIRECTORY`]):void 0,config:process.env[`${e}CONFIG_DIR`]?p(process.env[`${e}CONFIG_DIR`]):process.env[`${e}CONFIG_DIRECTORY`]?p(process.env[`${e}CONFIG_DIRECTORY`]):void 0,temp:process.env[`${e}TEMP_DIR`]?p(process.env[`${e}TEMP_DIR`]):process.env[`${e}TEMP_DIRECTORY`]?p(process.env[`${e}TEMP_DIRECTORY`]):void 0,log:process.env[`${e}LOG_DIR`]?p(process.env[`${e}LOG_DIR`]):process.env[`${e}LOG_DIRECTORY`]?p(process.env[`${e}LOG_DIRECTORY`]):void 0,build:process.env[`${e}BUILD_DIR`]?p(process.env[`${e}BUILD_DIR`]):process.env[`${e}BUILD_DIRECTORY`]?p(process.env[`${e}BUILD_DIRECTORY`]):void 0},skipCache:process.env[`${e}SKIP_CACHE`]!==void 0?!!process.env[`${e}SKIP_CACHE`]:void 0,mode:(process.env[`${e}MODE`]??process.env.NODE_ENV??process.env.ENVIRONMENT)||void 0,repository:process.env[`${e}REPOSITORY`]||void 0,branch:process.env[`${e}BRANCH`]||void 0,preid:process.env[`${e}PRE_ID`]||void 0,registry:{github:process.env[`${e}REGISTRY_GITHUB`]||void 0,npm:process.env[`${e}REGISTRY_NPM`]||void 0,cargo:process.env[`${e}REGISTRY_CARGO`]||void 0,cyclone:process.env[`${e}REGISTRY_CYCLONE`]||void 0,container:process.env[`${e}REGISTRY_CONTAINER`]||void 0},logLevel:process.env[`${e}LOG_LEVEL`]!==null&&process.env[`${e}LOG_LEVEL`]!==void 0?process.env[`${e}LOG_LEVEL`]&&Number.isSafeInteger(Number.parseInt(process.env[`${e}LOG_LEVEL`]))?se(Number.parseInt(process.env[`${e}LOG_LEVEL`])):process.env[`${e}LOG_LEVEL`]:void 0,skipConfigLogging:process.env[`${e}SKIP_CONFIG_LOGGING`]!==void 0?!!process.env[`${e}SKIP_CONFIG_LOGGING`]:void 0},t=Object.keys(process.env).filter(i=>i.startsWith(`${e}COLOR_`)&&Ro.every(n=>!i.startsWith(`${e}COLOR_LIGHT_${n}`)&&!i.startsWith(`${e}COLOR_DARK_${n}`)));o.colors=t.length>0?t.reduce((i,n)=>(i[n]=_o(e,n),i),{}):_o(e),o.docs===pe&&(o.homepage===_?o.docs=`${_}/projects/${o.name}/docs`:o.docs=`${o.homepage}/docs`),o.licensing===le&&(o.homepage===_?o.licensing=`${_}/projects/${o.name}/licensing`:o.licensing=`${o.homepage}/docs`);let a=process.env[`${e}WORKSPACE_CONFIG`];if(a){let i=JSON.parse(a);o={...o,...i,colors:{...o.colors,...i.colors},extensions:{...o.extensions,...i.extensions}};}return o},_o=(e,o)=>{let t=`COLOR_${o&&o!=="base"?`${o}_`:""}`.toUpperCase();return process.env[`${e}${t}LIGHT_BRAND`]||process.env[`${e}${t}DARK_BRAND`]?pr(e+t):cr(e+t)},cr=e=>{let o=[];if(process.env[`${e}GRADIENT_START`]&&process.env[`${e}GRADIENT_END`])o.push(process.env[`${e}GRADIENT_START`],process.env[`${e}GRADIENT_END`]);else if(process.env[`${e}GRADIENT_0`]||process.env[`${e}GRADIENT_1`]){let t=process.env[`${e}GRADIENT_0`]?0:1;for(;process.env[`${e}GRADIENT_${t}`];)o.push(process.env[`${e}GRADIENT_${t}`]),t++;}return {dark:process.env[`${e}DARK`],light:process.env[`${e}LIGHT`],brand:process.env[`${e}BRAND`],alternate:process.env[`${e}ALTERNATE`],accent:process.env[`${e}ACCENT`],link:process.env[`${e}LINK`],help:process.env[`${e}HELP`],success:process.env[`${e}SUCCESS`],info:process.env[`${e}INFO`],debug:process.env[`${e}DEBUG`],warning:process.env[`${e}WARNING`],danger:process.env[`${e}DANGER`],fatal:process.env[`${e}FATAL`],positive:process.env[`${e}POSITIVE`],negative:process.env[`${e}NEGATIVE`],gradient:o}},pr=e=>({light:Io(`${e}_LIGHT_`),dark:Io(`${e}_DARK_`)}),Io=e=>{let o=[];if(process.env[`${e}GRADIENT_START`]&&process.env[`${e}GRADIENT_END`])o.push(process.env[`${e}GRADIENT_START`],process.env[`${e}GRADIENT_END`]);else if(process.env[`${e}GRADIENT_0`]||process.env[`${e}GRADIENT_1`]){let t=process.env[`${e}GRADIENT_0`]?0:1;for(;process.env[`${e}GRADIENT_${t}`];)o.push(process.env[`${e}GRADIENT_${t}`]),t++;}return {foreground:process.env[`${e}FOREGROUND`],background:process.env[`${e}BACKGROUND`],brand:process.env[`${e}BRAND`],alternate:process.env[`${e}ALTERNATE`],accent:process.env[`${e}ACCENT`],link:process.env[`${e}LINK`],help:process.env[`${e}HELP`],success:process.env[`${e}SUCCESS`],info:process.env[`${e}INFO`],debug:process.env[`${e}DEBUG`],warning:process.env[`${e}WARNING`],danger:process.env[`${e}DANGER`],fatal:process.env[`${e}FATAL`],positive:process.env[`${e}POSITIVE`],negative:process.env[`${e}NEGATIVE`],gradient:o}};var lr=(e,o)=>{for(let t of Object.keys(o??{}))if(o[t]){let a=t?.replace(/([A-Z])+/g,n=>n?n[0]?.toUpperCase()+n.slice(1):"").split(/(?=[A-Z])|[.\-\s_]/).map(n=>n.toLowerCase())??[],i;if(a.length===0)return;a.length===1?i=a[0]?.toUpperCase()??"":i=a.reduce((n,m)=>`${n}_${m.toLowerCase()}`),process.env[`STORM_EXTENSION_${e.toUpperCase()}_${i.toUpperCase()}`]=o[t];}},bo=e=>{let o="STORM_";if(e.extends&&(process.env[`${o}EXTENDS`]=Array.isArray(e.extends)?JSON.stringify(e.extends):e.extends),e.name&&(process.env[`${o}NAME`]=e.name),e.variant&&(process.env[`${o}VARIANT`]=e.variant),e.namespace&&(process.env[`${o}NAMESPACE`]=e.namespace),e.owner&&(process.env[`${o}OWNER`]=e.owner),e.bot&&(process.env[`${o}BOT_NAME`]=e.bot.name,process.env[`${o}BOT_EMAIL`]=e.bot.email),e.error&&(process.env[`${o}ERROR_CODES_FILE`]=e.error.codesFile,process.env[`${o}ERROR_URL`]=e.error.url),e.release&&(e.release.banner&&(typeof e.release.banner=="string"?(process.env[`${o}RELEASE_BANNER`]=e.release.banner,process.env[`${o}RELEASE_BANNER_URL`]=e.release.banner):(process.env[`${o}RELEASE_BANNER`]=e.release.banner.url,process.env[`${o}RELEASE_BANNER_URL`]=e.release.banner.url,process.env[`${o}RELEASE_BANNER_ALT`]=e.release.banner.alt)),process.env[`${o}RELEASE_HEADER`]=e.release.header,process.env[`${o}RELEASE_FOOTER`]=e.release.footer),e.socials&&(e.socials.twitter&&(process.env[`${o}SOCIAL_TWITTER`]=e.socials.twitter),e.socials.discord&&(process.env[`${o}SOCIAL_DISCORD`]=e.socials.discord),e.socials.telegram&&(process.env[`${o}SOCIAL_TELEGRAM`]=e.socials.telegram),e.socials.slack&&(process.env[`${o}SOCIAL_SLACK`]=e.socials.slack),e.socials.medium&&(process.env[`${o}SOCIAL_MEDIUM`]=e.socials.medium),e.socials.github&&(process.env[`${o}SOCIAL_GITHUB`]=e.socials.github)),e.organization&&(typeof e.organization=="string"?(process.env[`${o}ORG`]=e.organization,process.env[`${o}ORG_NAME`]=e.organization,process.env[`${o}ORGANIZATION`]=e.organization,process.env[`${o}ORGANIZATION_NAME`]=e.organization):(process.env[`${o}ORG`]=e.organization.name,process.env[`${o}ORG_NAME`]=e.organization.name,process.env[`${o}ORGANIZATION`]=e.organization.name,process.env[`${o}ORGANIZATION_NAME`]=e.organization.name,e.organization.url&&(process.env[`${o}ORG_URL`]=e.organization.url,process.env[`${o}ORGANIZATION_URL`]=e.organization.url),e.organization.description&&(process.env[`${o}ORG_DESCRIPTION`]=e.organization.description,process.env[`${o}ORGANIZATION_DESCRIPTION`]=e.organization.description),e.organization.logo&&(process.env[`${o}ORG_LOGO`]=e.organization.logo,process.env[`${o}ORGANIZATION_LOGO`]=e.organization.logo),e.organization.icon&&(process.env[`${o}ORG_ICON`]=e.organization.icon,process.env[`${o}ORGANIZATION_ICON`]=e.organization.icon))),e.packageManager&&(process.env[`${o}PACKAGE_MANAGER`]=e.packageManager),e.license&&(process.env[`${o}LICENSE`]=e.license),e.homepage&&(process.env[`${o}HOMEPAGE`]=e.homepage),e.docs&&(process.env[`${o}DOCS`]=e.docs),e.portal&&(process.env[`${o}PORTAL`]=e.portal),e.licensing&&(process.env[`${o}LICENSING`]=e.licensing),e.contact&&(process.env[`${o}CONTACT`]=e.contact),e.support&&(process.env[`${o}SUPPORT`]=e.support),e.timezone&&(process.env[`${o}TIMEZONE`]=e.timezone,process.env.TZ=e.timezone,process.env.DEFAULT_TIMEZONE=e.timezone,process.env.TIMEZONE=e.timezone),e.locale&&(process.env[`${o}LOCALE`]=e.locale,process.env.DEFAULT_LOCALE=e.locale,process.env.LOCALE=e.locale,process.env.LANG=e.locale?`${e.locale.replaceAll("-","_")}.UTF-8`:"en_US.UTF-8"),e.configFile&&(process.env[`${o}WORKSPACE_CONFIG_FILE`]=p(e.configFile)),e.workspaceRoot&&(process.env[`${o}WORKSPACE_ROOT`]=p(e.workspaceRoot),process.env.NX_WORKSPACE_ROOT=p(e.workspaceRoot),process.env.NX_WORKSPACE_ROOT_PATH=p(e.workspaceRoot)),e.directories&&(!e.skipCache&&e.directories.cache&&(process.env[`${o}CACHE_DIR`]=p(e.directories.cache),process.env[`${o}CACHE_DIRECTORY`]=process.env[`${o}CACHE_DIR`]),e.directories.data&&(process.env[`${o}DATA_DIR`]=p(e.directories.data),process.env[`${o}DATA_DIRECTORY`]=process.env[`${o}DATA_DIR`]),e.directories.config&&(process.env[`${o}CONFIG_DIR`]=p(e.directories.config),process.env[`${o}CONFIG_DIRECTORY`]=process.env[`${o}CONFIG_DIR`]),e.directories.temp&&(process.env[`${o}TEMP_DIR`]=p(e.directories.temp),process.env[`${o}TEMP_DIRECTORY`]=process.env[`${o}TEMP_DIR`]),e.directories.log&&(process.env[`${o}LOG_DIR`]=p(e.directories.log),process.env[`${o}LOG_DIRECTORY`]=process.env[`${o}LOG_DIR`]),e.directories.build&&(process.env[`${o}BUILD_DIR`]=p(e.directories.build),process.env[`${o}BUILD_DIRECTORY`]=process.env[`${o}BUILD_DIR`])),e.skipCache!==void 0&&(process.env[`${o}SKIP_CACHE`]=String(e.skipCache),e.skipCache&&(process.env.NX_SKIP_NX_CACHE??=String(e.skipCache),process.env.NX_CACHE_PROJECT_GRAPH??=String(e.skipCache))),e.mode&&(process.env[`${o}MODE`]=e.mode,process.env.NODE_ENV=e.mode,process.env.ENVIRONMENT=e.mode),e.colors?.base?.light||e.colors?.base?.dark)for(let t of Object.keys(e.colors))wo(`${o}COLOR_${t}_`,e.colors[t]);else wo(`${o}COLOR_`,e.colors);e.repository&&(process.env[`${o}REPOSITORY`]=e.repository),e.branch&&(process.env[`${o}BRANCH`]=e.branch),e.preid&&(process.env[`${o}PRE_ID`]=String(e.preid)),e.registry&&(e.registry.github&&(process.env[`${o}REGISTRY_GITHUB`]=String(e.registry.github)),e.registry.npm&&(process.env[`${o}REGISTRY_NPM`]=String(e.registry.npm)),e.registry.cargo&&(process.env[`${o}REGISTRY_CARGO`]=String(e.registry.cargo)),e.registry.cyclone&&(process.env[`${o}REGISTRY_CYCLONE`]=String(e.registry.cyclone)),e.registry.container&&(process.env[`${o}REGISTRY_CONTAINER`]=String(e.registry.container))),e.logLevel&&(process.env[`${o}LOG_LEVEL`]=String(e.logLevel),process.env.LOG_LEVEL=String(e.logLevel),process.env.NX_VERBOSE_LOGGING=String($(e.logLevel)>=c.DEBUG),process.env.RUST_BACKTRACE=$(e.logLevel)>=c.DEBUG?"full":"none"),e.skipConfigLogging!==void 0&&(process.env[`${o}SKIP_CONFIG_LOGGING`]=String(e.skipConfigLogging)),process.env[`${o}WORKSPACE_CONFIG`]=JSON.stringify(e);for(let t of Object.keys(e.extensions??{}))e.extensions[t]&&Object.keys(e.extensions[t])&&lr(t,e.extensions[t]);},wo=(e,o)=>o?.light?.brand||o?.dark?.brand?mr(e,o):dr(e,o),dr=(e,o)=>{if(o.dark&&(process.env[`${e}DARK`]=o.dark),o.light&&(process.env[`${e}LIGHT`]=o.light),o.brand&&(process.env[`${e}BRAND`]=o.brand),o.alternate&&(process.env[`${e}ALTERNATE`]=o.alternate),o.accent&&(process.env[`${e}ACCENT`]=o.accent),o.link&&(process.env[`${e}LINK`]=o.link),o.help&&(process.env[`${e}HELP`]=o.help),o.success&&(process.env[`${e}SUCCESS`]=o.success),o.info&&(process.env[`${e}INFO`]=o.info),o.debug&&(process.env[`${e}DEBUG`]=o.debug),o.warning&&(process.env[`${e}WARNING`]=o.warning),o.danger&&(process.env[`${e}DANGER`]=o.danger),o.fatal&&(process.env[`${e}FATAL`]=o.fatal),o.positive&&(process.env[`${e}POSITIVE`]=o.positive),o.negative&&(process.env[`${e}NEGATIVE`]=o.negative),o.gradient)for(let t=0;t<o.gradient.length;t++)process.env[`${e}GRADIENT_${t}`]=o.gradient[t];},mr=(e,o)=>({light:zo(`${e}LIGHT_`,o.light),dark:zo(`${e}DARK_`,o.dark)}),zo=(e,o)=>{if(o.foreground&&(process.env[`${e}FOREGROUND`]=o.foreground),o.background&&(process.env[`${e}BACKGROUND`]=o.background),o.brand&&(process.env[`${e}BRAND`]=o.brand),o.alternate&&(process.env[`${e}ALTERNATE`]=o.alternate),o.accent&&(process.env[`${e}ACCENT`]=o.accent),o.link&&(process.env[`${e}LINK`]=o.link),o.help&&(process.env[`${e}HELP`]=o.help),o.success&&(process.env[`${e}SUCCESS`]=o.success),o.info&&(process.env[`${e}INFO`]=o.info),o.debug&&(process.env[`${e}DEBUG`]=o.debug),o.warning&&(process.env[`${e}WARNING`]=o.warning),o.danger&&(process.env[`${e}DANGER`]=o.danger),o.fatal&&(process.env[`${e}FATAL`]=o.fatal),o.positive&&(process.env[`${e}POSITIVE`]=o.positive),o.negative&&(process.env[`${e}NEGATIVE`]=o.negative),o.gradient)for(let t=0;t<o.gradient.length;t++)process.env[`${e}GRADIENT_${t}`]=o.gradient[t];};var I,gr=async(e,o,t,a=false,i=true)=>{let n;if(!I?.data||!I?.timestamp||I.timestamp<Date.now()-8e3){let m=t;m||(m=C());let d=No(),k=await Lo(m);if(!k&&(a||ne("No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n",{logLevel:"all"}),i===false))return;let f=await vo(m),y=$o(d,k,f);y.variant||(y.variant=existsSync(E(m,"nx.json"))||existsSync(E(m,".nx"))||existsSync(E(m,"lerna.json"))||existsSync(E(m,"turbo.json"))?"monorepo":"minimal");try{n=ko(await So.parseAsync(y)),n.workspaceRoot??=m;}catch(V){throw new Error(`Failed to parse Storm Workspace configuration${V?.message?`: ${V.message}`:""}
24
+ Path: ${e||process.cwd()}`);return o}var pe="https://docs.stormsoftware.com",_="https://stormsoftware.com";var le="https://stormsoftware.com/license",de="Apache-2.0";var N="tools/errors/codes.json",me="The workspace's banner image";var s=r.registry(),h=r.string().check(r.length(7),r.toLowerCase(),r.regex(/^#([0-9a-f]{3}){1,2}$/i),r.trim());s.add(h,{description:"A base schema for describing the format of colors"});var w=r._default(h,"#151718");s.add(w,{description:"The dark background color of the workspace"});var b=r._default(h,"#cbd5e1");s.add(b,{description:"The light background color of the workspace"});var z=r._default(h,"#1fb2a6");s.add(z,{description:"The primary brand specific color of the workspace"});var x=r.optional(h);s.add(x,{description:"The alternate brand specific color of the workspace"});var D=r.optional(h);s.add(D,{description:"The secondary brand specific color of the workspace"});var G=r._default(h,"#3fa6ff");s.add(G,{description:"The color used to display hyperlink text"});var P=r._default(h,"#818cf8");s.add(P,{description:"The second brand specific color of the workspace"});var W=r._default(h,"#45b27e");s.add(W,{description:"The success color of the workspace"});var M=r._default(h,"#38bdf8");s.add(M,{description:"The informational color of the workspace"});var F=r._default(h,"#8afafc");s.add(F,{description:"The debug color of the workspace"});var U=r._default(h,"#f3d371");s.add(U,{description:"The warning color of the workspace"});var j=r._default(h,"#d8314a");s.add(j,{description:"The danger color of the workspace"});var B=r.optional(h);s.add(B,{description:"The fatal color of the workspace"});var H=r._default(h,"#4ade80");s.add(H,{description:"The positive number color of the workspace"});var K=r._default(h,"#ef4444");s.add(K,{description:"The negative number color of the workspace"});var Z=r.optional(r.array(h));s.add(Z,{description:"The color stops for the base gradient color pattern used in the workspace"});var or=r.object({foreground:b,background:w,brand:z,alternate:x,accent:D,link:G,help:P,success:W,info:M,debug:F,warning:U,danger:j,fatal:B,positive:H,negative:K,gradient:Z}),rr=r.object({foreground:w,background:b,brand:z,alternate:x,accent:D,link:G,help:P,success:W,info:M,debug:F,warning:U,danger:j,fatal:B,positive:H,negative:K,gradient:Z}),tr=r.object({dark:or,light:rr}),sr=r.object({dark:w,light:b,brand:z,alternate:x,accent:D,link:G,help:P,success:W,info:M,debug:F,warning:U,danger:j,fatal:B,positive:H,negative:K,gradient:Z}),L=r.optional(r.url());s.add(L,{description:"A remote registry URL used to publish distributable packages"});var ue=r._default(r.object({github:L,npm:L,cargo:L,cyclone:L,container:L}),{});s.add(ue,{description:"A list of remote registry URLs used by Storm Software"});var Q=r.union([sr,tr]);s.add(Q,{description:"Colors used for various workspace elements"});var ge=r.record(r.union([r.union([r.literal("base"),r.string()]),r.string()]),Q);s.add(ge,{description:"Storm theme config values used for styling various package elements"});var fe=r.optional(r.union([r.string().check(r.trim()),r.array(r.string().check(r.trim()))]));s.add(fe,{description:"The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."});var he=r.string().check(r.trim());s.add(he,{description:"The workspace bot user's name (this is the bot that will be used to perform various tasks)"});var Te=r.string().check(r.trim());s.add(Te,{description:"The email of the workspace bot"});var Ce=r.object({name:he,email:Te});s.add(Ce,{description:"The workspace's bot user's config used to automated various operations tasks"});var Ee=r.optional(r.string().check(r.trim(),r.url()));s.add(Ee,{description:"A URL to a banner image used to display the workspace's release"});var Se=r._default(r.string().check(r.trim()),me);s.add(Se,{description:"The alt text for the workspace's release banner image"});var Re=r.object({url:Ee,alt:Se});s.add(Re,{description:"The workspace's banner image used during the release process"});var ve=r.optional(r.string().check(r.trim()));s.add(ve,{description:"A header message appended to the start of the workspace's release notes"});var ke=r.optional(r.string().check(r.trim()));s.add(ke,{description:"A footer message appended to the end of the workspace's release notes"});var Oe=r.object({banner:r.union([Re,r.string().check(r.trim(),r.url())]),header:ve,footer:ke});s.add(Oe,{description:"The workspace's release config used during the release process"});var Ae=r.optional(r.string().check(r.trim()));s.add(Ae,{description:"A Twitter/X account associated with the organization/project"});var $e=r.optional(r.string().check(r.trim()));s.add($e,{description:"A Discord account associated with the organization/project"});var Le=r.optional(r.string().check(r.trim()));s.add(Le,{description:"A Telegram account associated with the organization/project"});var _e=r.optional(r.string().check(r.trim()));s.add(_e,{description:"A Slack account associated with the organization/project"});var Ie=r.optional(r.string().check(r.trim()));s.add(Ie,{description:"A Medium account associated with the organization/project"});var ye=r.optional(r.string().check(r.trim()));s.add(ye,{description:"A GitHub account associated with the organization/project"});var Ne=r.object({twitter:Ae,discord:$e,telegram:Le,slack:_e,medium:Ie,github:ye});s.add(Ne,{description:"The workspace's account config used to store various social media links"});var we=r.optional(r.string().check(r.trim()));s.add(we,{description:"The directory used to store the environment's cached file data"});var be=r.optional(r.string().check(r.trim()));s.add(be,{description:"The directory used to store the environment's data files"});var ze=r.optional(r.string().check(r.trim()));s.add(ze,{description:"The directory used to store the environment's configuration files"});var xe=r.optional(r.string().check(r.trim()));s.add(xe,{description:"The directory used to store the environment's temp files"});var De=r.optional(r.string().check(r.trim()));s.add(De,{description:"The directory used to store the environment's log files"});var Ge=r._default(r.string().check(r.trim()),"dist");s.add(Ge,{description:"The directory used to store the workspace's distributable files after a build (relative to the workspace root)"});var Pe=r.object({cache:we,data:be,config:ze,temp:xe,log:De,build:Ge});s.add(Pe,{description:"Various directories used by the workspace to store data, cache, and configuration files"});var We=r._default(r.enum(["minimal","monorepo"]),"monorepo");s.add(We,{description:"The variant of the workspace. This can be used to enable or disable certain features or configurations."});var Me=r._default(r.string().check(r.trim()),N);s.add(Me,{description:"The path to the workspace's error codes JSON file"});var Fe=r.optional(r.url());s.add(Fe,{description:"A URL to a page that looks up the workspace's error messages given a specific error code"});var Ue=r.object({codesFile:Me,url:Fe});s.add(Ue,{description:"The workspace's error config used when creating error details during a system error"});var je=r.optional(r.string().check(r.trim(),r.toLowerCase()));s.add(je,{description:"The name of the organization"});var Be=r.optional(r.string().check(r.trim()));s.add(Be,{description:"A description of the organization"});var He=r.optional(r.url());s.add(He,{description:"A URL to the organization's logo image"});var Ke=r.optional(r.url());s.add(Ke,{description:"A URL to the organization's icon image"});var Ze=r.optional(r.url());s.add(Ze,{description:"A URL to a page that provides more information about the organization"});var Ye=r.object({name:je,description:Be,logo:He,icon:Ke,url:Ze});s.add(Ye,{description:"The workspace's organization details"});var Ve=r._default(r.string().check(r.trim(),r.toLowerCase()),"https://public.storm-cdn.com/schemas/storm-workspace.schema.json");s.add(Ve,{description:"The URL or file path to the JSON schema file that describes the Storm configuration file"});var Je=r.string().check(r.trim(),r.toLowerCase());s.add(Je,{description:"The name of the workspace/project/service/package/scope using this configuration"});var Xe=r.string().check(r.trim(),r.toLowerCase());s.add(Xe,{description:"The namespace of the workspace/project/service/package/scope using this configuration"});var qe=r.union([Ye,r.string().check(r.trim(),r.toLowerCase())]);s.add(qe,{description:"The organization of the workspace. This can be a string or an object containing the organization's details"});var Qe=r.string().check(r.trim(),r.toLowerCase());s.add(Qe,{description:"The repo URL of the workspace (i.e. the GitHub repository URL)"});var eo=r._default(r.string().check(r.trim()),"Apache-2.0");s.add(eo,{description:"The license type of the package"});var oo=r.optional(r.url());s.add(oo,{description:"The homepage of the workspace"});var ro=r.optional(r.url());s.add(ro,{description:"The documentation site for the workspace"});var to=r.optional(r.url());s.add(to,{description:"The development portal site for the workspace"});var so=r.optional(r.url());s.add(so,{description:"The licensing site for the workspace"});var no=r.optional(r.url());s.add(no,{description:"The contact site for the workspace"});var ao=r.optional(r.url());s.add(ao,{description:"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"});var io=r._default(r.string().check(r.trim(),r.toLowerCase()),"main");s.add(io,{description:"The branch of the workspace"});var co=r.optional(r.string().check(r.trim(),r.toLowerCase()));s.add(co,{description:"A tag specifying the version pre-release identifier"});var po=r.optional(r.string().check(r.trim(),r.toLowerCase()));s.add(po,{description:"The owner of the package"});var lo=r._default(r.enum(["development","test","production"]).check(r.trim(),r.toLowerCase()),"production");s.add(lo,{description:"The current runtime environment mode for the package"});var mo=r.string().check(r.trim(),r.toLowerCase());s.add(mo,{description:"The root directory of the workspace"});var uo=r._default(r.boolean(),false);s.add(uo,{description:"Should all known types of workspace caching be skipped?"});var go=r._default(r.enum(["npm","yarn","pnpm","bun"]),"npm");s.add(go,{description:"The JavaScript/TypeScript package manager used by the repository"});var fo=r._default(r.string().check(r.trim()),"America/New_York");s.add(fo,{description:"The default timezone of the workspace"});var ho=r._default(r.string().check(r.trim()),"en-US");s.add(ho,{description:"The default locale of the workspace"});var To=r._default(r.enum(["silent","fatal","error","warn","success","info","debug","trace","all"]),"info");s.add(To,{description:"The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."});var Co=r._default(r.boolean(),true);s.add(Co,{description:"Should the logging of the current Storm Workspace configuration be skipped?"});var Eo=r._default(r.nullable(r.string().check(r.trim())),null);s.add(Eo,{description:"The filepath of the Storm config. When this field is null, no config file was found in the current workspace."});var ee=r._default(r.record(r.string(),r.any()),{});s.add(ee,{description:"Configuration of each used extension"});var So=r.object({$schema:Ve,extends:fe,name:Je,variant:We,namespace:Xe,organization:qe,repository:Qe,license:eo,homepage:oo,docs:ro,portal:to,licensing:so,contact:no,support:ao,branch:io,preid:co,owner:po,bot:Ce,release:Oe,socials:Ne,error:Ue,mode:lo,workspaceRoot:mo,skipCache:uo,directories:Pe,packageManager:go,timezone:fo,locale:ho,logLevel:To,skipConfigLogging:Co,registry:ue,configFile:Eo,colors:r.union([Q,ge]),extensions:ee});s.add(ee,{description:"Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo."});var Ro=["dark","light","base","brand","alternate","accent","link","success","help","info","warning","danger","fatal","positive","negative"];async function vo(e){let o=de,t,a,i,n,m,d=C(e);if(existsSync(join(d,"package.json"))){let k=await readFile(E(d,"package.json"),"utf8");if(k){let f=JSON.parse(k);f.name&&(i=f.name),f.namespace&&(n=f.namespace),f.repository&&(typeof f.repository=="string"?m=f.repository:f.repository.url&&(m=f.repository.url)),f.license&&(o=f.license),f.homepage&&(t=f.homepage),f.bugs&&(typeof f.bugs=="string"?a=f.bugs:f.bugs.url&&(a=f.bugs.url));}}return {workspaceRoot:d,name:i,namespace:n,repository:m,license:o,homepage:t,support:a}}function ko(e){return !e.support&&e.contact&&(e.support=e.contact),!e.contact&&e.support&&(e.contact=e.support),e.homepage&&(e.docs||(e.docs=`${e.homepage}/docs`),e.license||(e.license=`${e.homepage}/license`),e.support||(e.support=`${e.homepage}/support`),e.contact||(e.contact=`${e.homepage}/contact`),(!e.error?.codesFile||!e?.error?.url)&&(e.error??={codesFile:N},e.homepage&&(e.error.url??=`${e.homepage}/errors`))),e}var Ao=async(e,o,t={})=>{let a=o||C(o),i=await Promise.all([loadConfig({cwd:a,packageJson:true,name:e,envName:e?.toUpperCase(),jitiOptions:{debug:false,fsCache:process.env.STORM_SKIP_CACHE==="true"?false:E(process.env.STORM_CACHE_DIR||"node_modules/.cache/storm","jiti")},...t}),loadConfig({cwd:a,packageJson:true,name:e,envName:e?.toUpperCase(),jitiOptions:{debug:false,fsCache:process.env.STORM_SKIP_CACHE==="true"?false:E(process.env.STORM_CACHE_DIR||"node_modules/.cache/storm","jiti")},configFile:e,...t})]);return $o(i[0]??{},i[1]??{})},Lo=async(e,o=[])=>{let t=e||C(e),a=await Ao("storm-workspace",t),i=a.config,n=a.configFile;if(i&&n&&Object.keys(i).length>0&&!i.skipConfigLogging&&A(`Found Storm configuration file "${n.includes(`${t}/`)?n.replace(`${t}/`,""):n}" at "${t}"`,{logLevel:"all"}),o&&o.length>0){let m=await Promise.all(o.map(d=>Ao(d,t)));for(let d of m)d?.config&&d?.configFile&&Object.keys(d.config).length>0&&(!i.skipConfigLogging&&!d.config.skipConfigLogging&&A(`Found alternative configuration file "${d.configFile.includes(`${t}/`)?d.configFile.replace(`${t}/`,""):d.configFile}" at "${t}"`,{logLevel:"all"}),i=$o(d.config??{},i??{}));}if(!(!i||Object.keys(i).length===0))return i.configFile=n,i};var No=()=>{let e="STORM_",o={extends:process.env[`${e}EXTENDS`]||void 0,name:process.env[`${e}NAME`]||void 0,variant:process.env[`${e}VARIANT`]||void 0,namespace:process.env[`${e}NAMESPACE`]||void 0,owner:process.env[`${e}OWNER`]||void 0,bot:{name:process.env[`${e}BOT_NAME`]||void 0,email:process.env[`${e}BOT_EMAIL`]||void 0},release:{banner:{url:process.env[`${e}RELEASE_BANNER_URL`]||void 0,alt:process.env[`${e}RELEASE_BANNER_ALT`]||void 0},header:process.env[`${e}RELEASE_HEADER`]||void 0,footer:process.env[`${e}RELEASE_FOOTER`]||void 0},error:{codesFile:process.env[`${e}ERROR_CODES_FILE`]||void 0,url:process.env[`${e}ERROR_URL`]||void 0},socials:{twitter:process.env[`${e}SOCIAL_TWITTER`]||void 0,discord:process.env[`${e}SOCIAL_DISCORD`]||void 0,telegram:process.env[`${e}SOCIAL_TELEGRAM`]||void 0,slack:process.env[`${e}SOCIAL_SLACK`]||void 0,medium:process.env[`${e}SOCIAL_MEDIUM`]||void 0,github:process.env[`${e}SOCIAL_GITHUB`]||void 0},organization:process.env[`${e}ORG`]||process.env[`${e}ORGANIZATION`]||process.env[`${e}ORG_NAME`]||process.env[`${e}ORGANIZATION_NAME`]?process.env[`${e}ORG_DESCRIPTION`]||process.env[`${e}ORGANIZATION_DESCRIPTION`]||process.env[`${e}ORG_URL`]||process.env[`${e}ORGANIZATION_URL`]||process.env[`${e}ORG_LOGO`]||process.env[`${e}ORGANIZATION_LOGO`]?{name:process.env[`${e}ORG`]||process.env[`${e}ORGANIZATION`]||process.env[`${e}ORG_NAME`]||process.env[`${e}ORGANIZATION_NAME`],description:process.env[`${e}ORG_DESCRIPTION`]||process.env[`${e}ORGANIZATION_DESCRIPTION`]||void 0,url:process.env[`${e}ORG_URL`]||process.env[`${e}ORGANIZATION_URL`]||void 0,logo:process.env[`${e}ORG_LOGO`]||process.env[`${e}ORGANIZATION_LOGO`]||void 0,icon:process.env[`${e}ORG_ICON`]||process.env[`${e}ORGANIZATION_ICON`]||void 0}:process.env[`${e}ORG`]||process.env[`${e}ORGANIZATION`]||process.env[`${e}ORG_NAME`]||process.env[`${e}ORGANIZATION_NAME`]:void 0,packageManager:process.env[`${e}PACKAGE_MANAGER`]||void 0,license:process.env[`${e}LICENSE`]||void 0,homepage:process.env[`${e}HOMEPAGE`]||void 0,docs:process.env[`${e}DOCS`]||void 0,portal:process.env[`${e}PORTAL`]||void 0,licensing:process.env[`${e}LICENSING`]||void 0,contact:process.env[`${e}CONTACT`]||void 0,support:process.env[`${e}SUPPORT`]||void 0,timezone:process.env[`${e}TIMEZONE`]||process.env.TZ||void 0,locale:process.env[`${e}LOCALE`]||process.env.LOCALE||void 0,configFile:process.env[`${e}WORKSPACE_CONFIG_FILE`]?p(process.env[`${e}WORKSPACE_CONFIG_FILE`]):void 0,workspaceRoot:process.env[`${e}WORKSPACE_ROOT`]?p(process.env[`${e}WORKSPACE_ROOT`]):void 0,directories:{cache:process.env[`${e}CACHE_DIR`]?p(process.env[`${e}CACHE_DIR`]):process.env[`${e}CACHE_DIRECTORY`]?p(process.env[`${e}CACHE_DIRECTORY`]):void 0,data:process.env[`${e}DATA_DIR`]?p(process.env[`${e}DATA_DIR`]):process.env[`${e}DATA_DIRECTORY`]?p(process.env[`${e}DATA_DIRECTORY`]):void 0,config:process.env[`${e}CONFIG_DIR`]?p(process.env[`${e}CONFIG_DIR`]):process.env[`${e}CONFIG_DIRECTORY`]?p(process.env[`${e}CONFIG_DIRECTORY`]):void 0,temp:process.env[`${e}TEMP_DIR`]?p(process.env[`${e}TEMP_DIR`]):process.env[`${e}TEMP_DIRECTORY`]?p(process.env[`${e}TEMP_DIRECTORY`]):void 0,log:process.env[`${e}LOG_DIR`]?p(process.env[`${e}LOG_DIR`]):process.env[`${e}LOG_DIRECTORY`]?p(process.env[`${e}LOG_DIRECTORY`]):void 0,build:process.env[`${e}BUILD_DIR`]?p(process.env[`${e}BUILD_DIR`]):process.env[`${e}BUILD_DIRECTORY`]?p(process.env[`${e}BUILD_DIRECTORY`]):void 0},skipCache:process.env[`${e}SKIP_CACHE`]!==void 0?!!process.env[`${e}SKIP_CACHE`]:void 0,mode:(process.env[`${e}MODE`]??process.env.NODE_ENV??process.env.ENVIRONMENT)||void 0,repository:process.env[`${e}REPOSITORY`]||void 0,branch:process.env[`${e}BRANCH`]||void 0,preid:process.env[`${e}PRE_ID`]||void 0,registry:{github:process.env[`${e}REGISTRY_GITHUB`]||void 0,npm:process.env[`${e}REGISTRY_NPM`]||void 0,cargo:process.env[`${e}REGISTRY_CARGO`]||void 0,cyclone:process.env[`${e}REGISTRY_CYCLONE`]||void 0,container:process.env[`${e}REGISTRY_CONTAINER`]||void 0},logLevel:process.env[`${e}LOG_LEVEL`]!==null&&process.env[`${e}LOG_LEVEL`]!==void 0?process.env[`${e}LOG_LEVEL`]&&Number.isSafeInteger(Number.parseInt(process.env[`${e}LOG_LEVEL`]))?se(Number.parseInt(process.env[`${e}LOG_LEVEL`])):process.env[`${e}LOG_LEVEL`]:void 0,skipConfigLogging:process.env[`${e}SKIP_CONFIG_LOGGING`]!==void 0?!!process.env[`${e}SKIP_CONFIG_LOGGING`]:void 0},t=Object.keys(process.env).filter(i=>i.startsWith(`${e}COLOR_`)&&Ro.every(n=>!i.startsWith(`${e}COLOR_LIGHT_${n}`)&&!i.startsWith(`${e}COLOR_DARK_${n}`)));o.colors=t.length>0?t.reduce((i,n)=>(i[n]=_o(e,n),i),{}):_o(e),o.docs===pe&&(o.homepage===_?o.docs=`${_}/projects/${o.name}/docs`:o.docs=`${o.homepage}/docs`),o.licensing===le&&(o.homepage===_?o.licensing=`${_}/projects/${o.name}/licensing`:o.licensing=`${o.homepage}/docs`);let a=process.env[`${e}WORKSPACE_CONFIG`];if(a){let i=JSON.parse(a);o={...o,...i,colors:{...o.colors,...i.colors},extensions:{...o.extensions,...i.extensions}};}return o},_o=(e,o)=>{let t=`COLOR_${o&&o!=="base"?`${o}_`:""}`.toUpperCase();return process.env[`${e}${t}LIGHT_BRAND`]||process.env[`${e}${t}DARK_BRAND`]?pr(e+t):cr(e+t)},cr=e=>{let o=[];if(process.env[`${e}GRADIENT_START`]&&process.env[`${e}GRADIENT_END`])o.push(process.env[`${e}GRADIENT_START`],process.env[`${e}GRADIENT_END`]);else if(process.env[`${e}GRADIENT_0`]||process.env[`${e}GRADIENT_1`]){let t=process.env[`${e}GRADIENT_0`]?0:1;for(;process.env[`${e}GRADIENT_${t}`];)o.push(process.env[`${e}GRADIENT_${t}`]),t++;}return {dark:process.env[`${e}DARK`],light:process.env[`${e}LIGHT`],brand:process.env[`${e}BRAND`],alternate:process.env[`${e}ALTERNATE`],accent:process.env[`${e}ACCENT`],link:process.env[`${e}LINK`],help:process.env[`${e}HELP`],success:process.env[`${e}SUCCESS`],info:process.env[`${e}INFO`],debug:process.env[`${e}DEBUG`],warning:process.env[`${e}WARNING`],danger:process.env[`${e}DANGER`],fatal:process.env[`${e}FATAL`],positive:process.env[`${e}POSITIVE`],negative:process.env[`${e}NEGATIVE`],gradient:o}},pr=e=>({light:Io(`${e}_LIGHT_`),dark:Io(`${e}_DARK_`)}),Io=e=>{let o=[];if(process.env[`${e}GRADIENT_START`]&&process.env[`${e}GRADIENT_END`])o.push(process.env[`${e}GRADIENT_START`],process.env[`${e}GRADIENT_END`]);else if(process.env[`${e}GRADIENT_0`]||process.env[`${e}GRADIENT_1`]){let t=process.env[`${e}GRADIENT_0`]?0:1;for(;process.env[`${e}GRADIENT_${t}`];)o.push(process.env[`${e}GRADIENT_${t}`]),t++;}return {foreground:process.env[`${e}FOREGROUND`],background:process.env[`${e}BACKGROUND`],brand:process.env[`${e}BRAND`],alternate:process.env[`${e}ALTERNATE`],accent:process.env[`${e}ACCENT`],link:process.env[`${e}LINK`],help:process.env[`${e}HELP`],success:process.env[`${e}SUCCESS`],info:process.env[`${e}INFO`],debug:process.env[`${e}DEBUG`],warning:process.env[`${e}WARNING`],danger:process.env[`${e}DANGER`],fatal:process.env[`${e}FATAL`],positive:process.env[`${e}POSITIVE`],negative:process.env[`${e}NEGATIVE`],gradient:o}};var lr=(e,o)=>{for(let t of Object.keys(o??{}))if(o[t]){let a=t?.replace(/([A-Z])+/g,n=>n?n[0]?.toUpperCase()+n.slice(1):"").split(/(?=[A-Z])|[.\-\s_]/).map(n=>n.toLowerCase())??[],i;if(a.length===0)return;a.length===1?i=a[0]?.toUpperCase()??"":i=a.reduce((n,m)=>`${n}_${m.toLowerCase()}`),process.env[`STORM_EXTENSION_${e.toUpperCase()}_${i.toUpperCase()}`]=o[t];}},zo=e=>{let o="STORM_";if(e.extends&&(process.env[`${o}EXTENDS`]=Array.isArray(e.extends)?JSON.stringify(e.extends):e.extends),e.name&&(process.env[`${o}NAME`]=e.name),e.variant&&(process.env[`${o}VARIANT`]=e.variant),e.namespace&&(process.env[`${o}NAMESPACE`]=e.namespace),e.owner&&(process.env[`${o}OWNER`]=e.owner),e.bot&&(process.env[`${o}BOT_NAME`]=e.bot.name,process.env[`${o}BOT_EMAIL`]=e.bot.email),e.error&&(process.env[`${o}ERROR_CODES_FILE`]=e.error.codesFile,process.env[`${o}ERROR_URL`]=e.error.url),e.release&&(e.release.banner&&(typeof e.release.banner=="string"?(process.env[`${o}RELEASE_BANNER`]=e.release.banner,process.env[`${o}RELEASE_BANNER_URL`]=e.release.banner):(process.env[`${o}RELEASE_BANNER`]=e.release.banner.url,process.env[`${o}RELEASE_BANNER_URL`]=e.release.banner.url,process.env[`${o}RELEASE_BANNER_ALT`]=e.release.banner.alt)),process.env[`${o}RELEASE_HEADER`]=e.release.header,process.env[`${o}RELEASE_FOOTER`]=e.release.footer),e.socials&&(e.socials.twitter&&(process.env[`${o}SOCIAL_TWITTER`]=e.socials.twitter),e.socials.discord&&(process.env[`${o}SOCIAL_DISCORD`]=e.socials.discord),e.socials.telegram&&(process.env[`${o}SOCIAL_TELEGRAM`]=e.socials.telegram),e.socials.slack&&(process.env[`${o}SOCIAL_SLACK`]=e.socials.slack),e.socials.medium&&(process.env[`${o}SOCIAL_MEDIUM`]=e.socials.medium),e.socials.github&&(process.env[`${o}SOCIAL_GITHUB`]=e.socials.github)),e.organization&&(typeof e.organization=="string"?(process.env[`${o}ORG`]=e.organization,process.env[`${o}ORG_NAME`]=e.organization,process.env[`${o}ORGANIZATION`]=e.organization,process.env[`${o}ORGANIZATION_NAME`]=e.organization):(process.env[`${o}ORG`]=e.organization.name,process.env[`${o}ORG_NAME`]=e.organization.name,process.env[`${o}ORGANIZATION`]=e.organization.name,process.env[`${o}ORGANIZATION_NAME`]=e.organization.name,e.organization.url&&(process.env[`${o}ORG_URL`]=e.organization.url,process.env[`${o}ORGANIZATION_URL`]=e.organization.url),e.organization.description&&(process.env[`${o}ORG_DESCRIPTION`]=e.organization.description,process.env[`${o}ORGANIZATION_DESCRIPTION`]=e.organization.description),e.organization.logo&&(process.env[`${o}ORG_LOGO`]=e.organization.logo,process.env[`${o}ORGANIZATION_LOGO`]=e.organization.logo),e.organization.icon&&(process.env[`${o}ORG_ICON`]=e.organization.icon,process.env[`${o}ORGANIZATION_ICON`]=e.organization.icon))),e.packageManager&&(process.env[`${o}PACKAGE_MANAGER`]=e.packageManager),e.license&&(process.env[`${o}LICENSE`]=e.license),e.homepage&&(process.env[`${o}HOMEPAGE`]=e.homepage),e.docs&&(process.env[`${o}DOCS`]=e.docs),e.portal&&(process.env[`${o}PORTAL`]=e.portal),e.licensing&&(process.env[`${o}LICENSING`]=e.licensing),e.contact&&(process.env[`${o}CONTACT`]=e.contact),e.support&&(process.env[`${o}SUPPORT`]=e.support),e.timezone&&(process.env[`${o}TIMEZONE`]=e.timezone,process.env.TZ=e.timezone,process.env.DEFAULT_TIMEZONE=e.timezone,process.env.TIMEZONE=e.timezone),e.locale&&(process.env[`${o}LOCALE`]=e.locale,process.env.DEFAULT_LOCALE=e.locale,process.env.LOCALE=e.locale,process.env.LANG=e.locale?`${e.locale.replaceAll("-","_")}.UTF-8`:"en_US.UTF-8"),e.configFile&&(process.env[`${o}WORKSPACE_CONFIG_FILE`]=p(e.configFile)),e.workspaceRoot&&(process.env[`${o}WORKSPACE_ROOT`]=p(e.workspaceRoot),process.env.NX_WORKSPACE_ROOT=p(e.workspaceRoot),process.env.NX_WORKSPACE_ROOT_PATH=p(e.workspaceRoot)),e.directories&&(!e.skipCache&&e.directories.cache&&(process.env[`${o}CACHE_DIR`]=p(e.directories.cache),process.env[`${o}CACHE_DIRECTORY`]=process.env[`${o}CACHE_DIR`]),e.directories.data&&(process.env[`${o}DATA_DIR`]=p(e.directories.data),process.env[`${o}DATA_DIRECTORY`]=process.env[`${o}DATA_DIR`]),e.directories.config&&(process.env[`${o}CONFIG_DIR`]=p(e.directories.config),process.env[`${o}CONFIG_DIRECTORY`]=process.env[`${o}CONFIG_DIR`]),e.directories.temp&&(process.env[`${o}TEMP_DIR`]=p(e.directories.temp),process.env[`${o}TEMP_DIRECTORY`]=process.env[`${o}TEMP_DIR`]),e.directories.log&&(process.env[`${o}LOG_DIR`]=p(e.directories.log),process.env[`${o}LOG_DIRECTORY`]=process.env[`${o}LOG_DIR`]),e.directories.build&&(process.env[`${o}BUILD_DIR`]=p(e.directories.build),process.env[`${o}BUILD_DIRECTORY`]=process.env[`${o}BUILD_DIR`])),e.skipCache!==void 0&&(process.env[`${o}SKIP_CACHE`]=String(e.skipCache),e.skipCache&&(process.env.NX_SKIP_NX_CACHE??=String(e.skipCache),process.env.NX_CACHE_PROJECT_GRAPH??=String(e.skipCache))),e.mode&&(process.env[`${o}MODE`]=e.mode,process.env.NODE_ENV=e.mode,process.env.ENVIRONMENT=e.mode),e.colors?.base?.light||e.colors?.base?.dark)for(let t of Object.keys(e.colors))wo(`${o}COLOR_${t}_`,e.colors[t]);else wo(`${o}COLOR_`,e.colors);e.repository&&(process.env[`${o}REPOSITORY`]=e.repository),e.branch&&(process.env[`${o}BRANCH`]=e.branch),e.preid&&(process.env[`${o}PRE_ID`]=String(e.preid)),e.registry&&(e.registry.github&&(process.env[`${o}REGISTRY_GITHUB`]=String(e.registry.github)),e.registry.npm&&(process.env[`${o}REGISTRY_NPM`]=String(e.registry.npm)),e.registry.cargo&&(process.env[`${o}REGISTRY_CARGO`]=String(e.registry.cargo)),e.registry.cyclone&&(process.env[`${o}REGISTRY_CYCLONE`]=String(e.registry.cyclone)),e.registry.container&&(process.env[`${o}REGISTRY_CONTAINER`]=String(e.registry.container))),e.logLevel&&(process.env[`${o}LOG_LEVEL`]=String(e.logLevel),process.env.LOG_LEVEL=String(e.logLevel),process.env.NX_VERBOSE_LOGGING=String($(e.logLevel)>=c.DEBUG),process.env.RUST_BACKTRACE=$(e.logLevel)>=c.DEBUG?"full":"none"),e.skipConfigLogging!==void 0&&(process.env[`${o}SKIP_CONFIG_LOGGING`]=String(e.skipConfigLogging)),process.env[`${o}WORKSPACE_CONFIG`]=JSON.stringify(e);for(let t of Object.keys(e.extensions??{}))e.extensions[t]&&Object.keys(e.extensions[t])&&lr(t,e.extensions[t]);},wo=(e,o)=>o?.light?.brand||o?.dark?.brand?mr(e,o):dr(e,o),dr=(e,o)=>{if(o.dark&&(process.env[`${e}DARK`]=o.dark),o.light&&(process.env[`${e}LIGHT`]=o.light),o.brand&&(process.env[`${e}BRAND`]=o.brand),o.alternate&&(process.env[`${e}ALTERNATE`]=o.alternate),o.accent&&(process.env[`${e}ACCENT`]=o.accent),o.link&&(process.env[`${e}LINK`]=o.link),o.help&&(process.env[`${e}HELP`]=o.help),o.success&&(process.env[`${e}SUCCESS`]=o.success),o.info&&(process.env[`${e}INFO`]=o.info),o.debug&&(process.env[`${e}DEBUG`]=o.debug),o.warning&&(process.env[`${e}WARNING`]=o.warning),o.danger&&(process.env[`${e}DANGER`]=o.danger),o.fatal&&(process.env[`${e}FATAL`]=o.fatal),o.positive&&(process.env[`${e}POSITIVE`]=o.positive),o.negative&&(process.env[`${e}NEGATIVE`]=o.negative),o.gradient)for(let t=0;t<o.gradient.length;t++)process.env[`${e}GRADIENT_${t}`]=o.gradient[t];},mr=(e,o)=>({light:bo(`${e}LIGHT_`,o.light),dark:bo(`${e}DARK_`,o.dark)}),bo=(e,o)=>{if(o.foreground&&(process.env[`${e}FOREGROUND`]=o.foreground),o.background&&(process.env[`${e}BACKGROUND`]=o.background),o.brand&&(process.env[`${e}BRAND`]=o.brand),o.alternate&&(process.env[`${e}ALTERNATE`]=o.alternate),o.accent&&(process.env[`${e}ACCENT`]=o.accent),o.link&&(process.env[`${e}LINK`]=o.link),o.help&&(process.env[`${e}HELP`]=o.help),o.success&&(process.env[`${e}SUCCESS`]=o.success),o.info&&(process.env[`${e}INFO`]=o.info),o.debug&&(process.env[`${e}DEBUG`]=o.debug),o.warning&&(process.env[`${e}WARNING`]=o.warning),o.danger&&(process.env[`${e}DANGER`]=o.danger),o.fatal&&(process.env[`${e}FATAL`]=o.fatal),o.positive&&(process.env[`${e}POSITIVE`]=o.positive),o.negative&&(process.env[`${e}NEGATIVE`]=o.negative),o.gradient)for(let t=0;t<o.gradient.length;t++)process.env[`${e}GRADIENT_${t}`]=o.gradient[t];};var I,gr=async(e,o,t,a=false,i=true)=>{let n;if(!I?.data||!I?.timestamp||I.timestamp<Date.now()-8e3){let m=t;m||(m=C());let d=No(),k=await Lo(m);if(!k&&(a||ne("No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n",{logLevel:"all"}),i===false))return;let f=await vo(m),y=$o(d,k,f);y.variant||(y.variant=existsSync(E(m,"nx.json"))||existsSync(E(m,".nx"))||existsSync(E(m,"lerna.json"))||existsSync(E(m,"turbo.json"))?"monorepo":"minimal");try{n=ko(await So.parseAsync(y)),n.workspaceRoot??=m;}catch(V){throw new Error(`Failed to parse Storm Workspace configuration${V?.message?`: ${V.message}`:""}
25
25
 
26
- Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${T(y)}`,{cause:V})}}else n=I.data;return I={timestamp:Date.now(),data:n},n},xo=async(e,o=false)=>{let t=await gr(void 0,void 0,e,o,true);return bo(t),!o&&!t.skipConfigLogging&&A(`\u2699\uFE0F Using Storm Workspace configuration:
27
- ${T(t)}`,t),t};function hr(e,o=false){return xo(e,o)}function Do(e=true,o={}){let t=o.workspaceRoot;return t||(t=C(o.cwd)),hr(t,e)}function Go(e=C(process.cwd())){let o=E(e,"pnpm-workspace.yaml");if(!existsSync(o))throw new Error(`No \`pnpm-workspace.yaml\` file found in workspace root (searched in: ${o}).`);return o}async function Es(e=C(process.cwd())){let o=await readFile(Go(e),"utf8");if(o)return parse(o)}async function Ss(e,o=C(process.cwd())){let t=await Do(),a=stringify(e);A(`Writing updated pnpm-workspace.yaml file to workspace root: ${a}`,t),await writeFile(Go(o),a);}export{ne as a,Yr as b,A as c,E as d,C as e,Do as f,Go as g,Es as h,Ss as i};
26
+ Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${T(y)}`,{cause:V})}}else n=I.data;return I={timestamp:Date.now(),data:n},n},xo=async(e,o=false)=>{let t=await gr(void 0,void 0,e,o,true);return zo(t),!o&&!t.skipConfigLogging&&A(`\u2699\uFE0F Using Storm Workspace configuration:
27
+ ${T(t)}`,t),t};function hr(e,o=false){return xo(e,o)}function Do(e=true,o={}){let t=o.workspaceRoot;return t||(t=C(o.cwd)),hr(t,e)}function Go(e=C(process.cwd())){let o=E(e,"pnpm-workspace.yaml");if(!existsSync(o))throw new Error(`No \`pnpm-workspace.yaml\` file found in workspace root (searched in: ${o}).`);return o}async function Ss(e=C(process.cwd())){let o=await readFile(Go(e),"utf8");if(o)return parse(o)}async function Rs(e,o=C(process.cwd())){let t=await Do(),a=stringify(e);A(`Writing updated pnpm-workspace.yaml file to workspace root: ${a}`,t),await writeFile(Go(o),a);}export{ne as a,Vr as b,A as c,E as d,C as e,Do as f,Go as g,Ss as h,Rs as i};
@@ -1 +1 @@
1
- 'use strict';var chunkPY35LKCG_cjs=require('./chunk-PY35LKCG.cjs'),chunkMQBANOLW_cjs=require('./chunk-MQBANOLW.cjs'),devkit=require('@nx/devkit'),fs=require('fs'),promises=require('fs/promises'),prettier=require('prettier');async function C(c=process.cwd(),i=chunkMQBANOLW_cjs.e(c)){let l=chunkMQBANOLW_cjs.d(c,"package.json"),m=await promises.readFile(l,"utf8");if(!m)throw new Error("No package.json file found in package root: "+c);let p=await chunkPY35LKCG_cjs.b(i),r=JSON.parse(m),g=chunkMQBANOLW_cjs.d(i,"pnpm-workspace.yaml");if(!fs.existsSync(g))return console.warn(`No \`pnpm-workspace.yaml\` file found in workspace root (searching in: ${g}). Skipping pnpm catalog read for now.`),r;if(!p){console.warn("No pnpm catalog found. Skipping dependencies replacement for now.");return}for(let a of ["dependencies","devDependencies","peerDependencies"]){let o=r[a];if(o){for(let e of Object.keys(o))if(o[e]==="catalog:"){if(!p)throw new Error(`Dependency ${e} is marked as \`catalog:\`, but no catalog exists in the workspace root's \`pnpm-workspace.yaml\` file.`);let t=p[e];if(!t)throw new Error("Missing pnpm catalog version for "+e);o[e]=t;}else if(o[e].startsWith("catalog:"))throw new Error("multiple named catalogs not supported")}}let n;try{n=devkit.readCachedProjectGraph();}catch{await devkit.createProjectGraphAsync(),n=devkit.readCachedProjectGraph();}let d={};n&&await Promise.all(Object.keys(n.nodes).map(async a=>{let o=n.nodes[a];if(o?.data.root){let e=chunkMQBANOLW_cjs.d(i,o.data.root,"package.json");if(fs.existsSync(e)){let t=await promises.readFile(e,"utf8"),f=JSON.parse(t);f.private!==true&&(d[f.name]=f.version);}}}));for(let a of ["dependencies","devDependencies","peerDependencies"]){let o=r[a];if(o){for(let e of Object.keys(o))if(o[e].startsWith("workspace:"))if(d[e])o[e]=`^${d[e]}`;else throw new Error(`Workspace dependency ${e} not found in workspace packages.`)}}return promises.writeFile(l,await prettier.format(JSON.stringify(r),{parser:"json",proseWrap:"always",trailingComma:"none",tabWidth:2,semi:true,singleQuote:false,quoteProps:"as-needed",insertPragma:false,bracketSameLine:true,printWidth:80,bracketSpacing:true,arrowParens:"avoid",endOfLine:"lf",plugins:["prettier-plugin-pkg"]}))}exports.a=C;
1
+ 'use strict';var chunk67WUYNAK_cjs=require('./chunk-67WUYNAK.cjs'),chunkE3XYGDUJ_cjs=require('./chunk-E3XYGDUJ.cjs'),devkit=require('@nx/devkit'),fs=require('fs'),promises=require('fs/promises'),prettier=require('prettier');async function C(c=process.cwd(),i=chunkE3XYGDUJ_cjs.e(c)){let l=chunkE3XYGDUJ_cjs.d(c,"package.json"),m=await promises.readFile(l,"utf8");if(!m)throw new Error("No package.json file found in package root: "+c);let p=await chunk67WUYNAK_cjs.b(i),r=JSON.parse(m),g=chunkE3XYGDUJ_cjs.d(i,"pnpm-workspace.yaml");if(!fs.existsSync(g))return console.warn(`No \`pnpm-workspace.yaml\` file found in workspace root (searching in: ${g}). Skipping pnpm catalog read for now.`),r;if(!p){console.warn("No pnpm catalog found. Skipping dependencies replacement for now.");return}for(let a of ["dependencies","devDependencies","peerDependencies"]){let o=r[a];if(o){for(let e of Object.keys(o))if(o[e]==="catalog:"){if(!p)throw new Error(`Dependency ${e} is marked as \`catalog:\`, but no catalog exists in the workspace root's \`pnpm-workspace.yaml\` file.`);let t=p[e];if(!t)throw new Error("Missing pnpm catalog version for "+e);o[e]=t;}else if(o[e].startsWith("catalog:"))throw new Error("multiple named catalogs not supported")}}let n;try{n=devkit.readCachedProjectGraph();}catch{await devkit.createProjectGraphAsync(),n=devkit.readCachedProjectGraph();}let d={};n&&await Promise.all(Object.keys(n.nodes).map(async a=>{let o=n.nodes[a];if(o?.data.root){let e=chunkE3XYGDUJ_cjs.d(i,o.data.root,"package.json");if(fs.existsSync(e)){let t=await promises.readFile(e,"utf8"),f=JSON.parse(t);f.private!==true&&(d[f.name]=f.version);}}}));for(let a of ["dependencies","devDependencies","peerDependencies"]){let o=r[a];if(o){for(let e of Object.keys(o))if(o[e].startsWith("workspace:"))if(d[e])o[e]=`^${d[e]}`;else throw new Error(`Workspace dependency ${e} not found in workspace packages.`)}}return promises.writeFile(l,await prettier.format(JSON.stringify(r),{parser:"json",proseWrap:"always",trailingComma:"none",tabWidth:2,semi:true,singleQuote:false,quoteProps:"as-needed",insertPragma:false,bracketSameLine:true,printWidth:80,bracketSpacing:true,arrowParens:"avoid",endOfLine:"lf",plugins:["prettier-plugin-pkg"]}))}exports.a=C;
@@ -1 +1 @@
1
- import {b}from'./chunk-NLAZJ4KF.js';import {e,d}from'./chunk-2XIPO6MY.js';import {readCachedProjectGraph,createProjectGraphAsync}from'@nx/devkit';import {existsSync}from'node:fs';import {readFile,writeFile}from'node:fs/promises';import {format}from'prettier';async function $(c=process.cwd(),i=e(c)){let l=d(c,"package.json"),m=await readFile(l,"utf8");if(!m)throw new Error("No package.json file found in package root: "+c);let p=await b(i),r=JSON.parse(m),g=d(i,"pnpm-workspace.yaml");if(!existsSync(g))return console.warn(`No \`pnpm-workspace.yaml\` file found in workspace root (searching in: ${g}). Skipping pnpm catalog read for now.`),r;if(!p){console.warn("No pnpm catalog found. Skipping dependencies replacement for now.");return}for(let a of ["dependencies","devDependencies","peerDependencies"]){let o=r[a];if(o){for(let e of Object.keys(o))if(o[e]==="catalog:"){if(!p)throw new Error(`Dependency ${e} is marked as \`catalog:\`, but no catalog exists in the workspace root's \`pnpm-workspace.yaml\` file.`);let t=p[e];if(!t)throw new Error("Missing pnpm catalog version for "+e);o[e]=t;}else if(o[e].startsWith("catalog:"))throw new Error("multiple named catalogs not supported")}}let n;try{n=readCachedProjectGraph();}catch{await createProjectGraphAsync(),n=readCachedProjectGraph();}let d$1={};n&&await Promise.all(Object.keys(n.nodes).map(async a=>{let o=n.nodes[a];if(o?.data.root){let e=d(i,o.data.root,"package.json");if(existsSync(e)){let t=await readFile(e,"utf8"),f=JSON.parse(t);f.private!==true&&(d$1[f.name]=f.version);}}}));for(let a of ["dependencies","devDependencies","peerDependencies"]){let o=r[a];if(o){for(let e of Object.keys(o))if(o[e].startsWith("workspace:"))if(d$1[e])o[e]=`^${d$1[e]}`;else throw new Error(`Workspace dependency ${e} not found in workspace packages.`)}}return writeFile(l,await format(JSON.stringify(r),{parser:"json",proseWrap:"always",trailingComma:"none",tabWidth:2,semi:true,singleQuote:false,quoteProps:"as-needed",insertPragma:false,bracketSameLine:true,printWidth:80,bracketSpacing:true,arrowParens:"avoid",endOfLine:"lf",plugins:["prettier-plugin-pkg"]}))}export{$ as a};
1
+ import {b}from'./chunk-7ZZFNO2T.js';import {e,d}from'./chunk-I4FQEZQN.js';import {readCachedProjectGraph,createProjectGraphAsync}from'@nx/devkit';import {existsSync}from'node:fs';import {readFile,writeFile}from'node:fs/promises';import {format}from'prettier';async function $(c=process.cwd(),i=e(c)){let l=d(c,"package.json"),m=await readFile(l,"utf8");if(!m)throw new Error("No package.json file found in package root: "+c);let p=await b(i),r=JSON.parse(m),g=d(i,"pnpm-workspace.yaml");if(!existsSync(g))return console.warn(`No \`pnpm-workspace.yaml\` file found in workspace root (searching in: ${g}). Skipping pnpm catalog read for now.`),r;if(!p){console.warn("No pnpm catalog found. Skipping dependencies replacement for now.");return}for(let a of ["dependencies","devDependencies","peerDependencies"]){let o=r[a];if(o){for(let e of Object.keys(o))if(o[e]==="catalog:"){if(!p)throw new Error(`Dependency ${e} is marked as \`catalog:\`, but no catalog exists in the workspace root's \`pnpm-workspace.yaml\` file.`);let t=p[e];if(!t)throw new Error("Missing pnpm catalog version for "+e);o[e]=t;}else if(o[e].startsWith("catalog:"))throw new Error("multiple named catalogs not supported")}}let n;try{n=readCachedProjectGraph();}catch{await createProjectGraphAsync(),n=readCachedProjectGraph();}let d$1={};n&&await Promise.all(Object.keys(n.nodes).map(async a=>{let o=n.nodes[a];if(o?.data.root){let e=d(i,o.data.root,"package.json");if(existsSync(e)){let t=await readFile(e,"utf8"),f=JSON.parse(t);f.private!==true&&(d$1[f.name]=f.version);}}}));for(let a of ["dependencies","devDependencies","peerDependencies"]){let o=r[a];if(o){for(let e of Object.keys(o))if(o[e].startsWith("workspace:"))if(d$1[e])o[e]=`^${d$1[e]}`;else throw new Error(`Workspace dependency ${e} not found in workspace packages.`)}}return writeFile(l,await format(JSON.stringify(r),{parser:"json",proseWrap:"always",trailingComma:"none",tabWidth:2,semi:true,singleQuote:false,quoteProps:"as-needed",insertPragma:false,bracketSameLine:true,printWidth:80,bracketSpacing:true,arrowParens:"avoid",endOfLine:"lf",plugins:["prettier-plugin-pkg"]}))}export{$ as a};
@@ -1 +1 @@
1
- 'use strict';var chunkPY35LKCG_cjs=require('../chunk-PY35LKCG.cjs');require('../chunk-MQBANOLW.cjs');Object.defineProperty(exports,"getCatalog",{enumerable:true,get:function(){return chunkPY35LKCG_cjs.b}});Object.defineProperty(exports,"getCatalogSafe",{enumerable:true,get:function(){return chunkPY35LKCG_cjs.a}});Object.defineProperty(exports,"saveCatalog",{enumerable:true,get:function(){return chunkPY35LKCG_cjs.e}});Object.defineProperty(exports,"setCatalog",{enumerable:true,get:function(){return chunkPY35LKCG_cjs.c}});Object.defineProperty(exports,"upgradeCatalog",{enumerable:true,get:function(){return chunkPY35LKCG_cjs.d}});
1
+ 'use strict';var chunk67WUYNAK_cjs=require('../chunk-67WUYNAK.cjs');require('../chunk-E3XYGDUJ.cjs');Object.defineProperty(exports,"getCatalog",{enumerable:true,get:function(){return chunk67WUYNAK_cjs.b}});Object.defineProperty(exports,"getCatalogSafe",{enumerable:true,get:function(){return chunk67WUYNAK_cjs.a}});Object.defineProperty(exports,"saveCatalog",{enumerable:true,get:function(){return chunk67WUYNAK_cjs.e}});Object.defineProperty(exports,"setCatalog",{enumerable:true,get:function(){return chunk67WUYNAK_cjs.c}});Object.defineProperty(exports,"upgradeCatalog",{enumerable:true,get:function(){return chunk67WUYNAK_cjs.d}});
@@ -1 +1 @@
1
- export{b as getCatalog,a as getCatalogSafe,e as saveCatalog,c as setCatalog,d as upgradeCatalog}from'../chunk-NLAZJ4KF.js';import'../chunk-2XIPO6MY.js';
1
+ export{b as getCatalog,a as getCatalogSafe,e as saveCatalog,c as setCatalog,d as upgradeCatalog}from'../chunk-7ZZFNO2T.js';import'../chunk-I4FQEZQN.js';
@@ -1 +1 @@
1
- 'use strict';require('../chunk-QNTSKZUU.cjs');var chunkWFLP6KLL_cjs=require('../chunk-WFLP6KLL.cjs'),chunkPY35LKCG_cjs=require('../chunk-PY35LKCG.cjs'),chunkMQBANOLW_cjs=require('../chunk-MQBANOLW.cjs');Object.defineProperty(exports,"replaceDepsAliases",{enumerable:true,get:function(){return chunkWFLP6KLL_cjs.a}});Object.defineProperty(exports,"getCatalog",{enumerable:true,get:function(){return chunkPY35LKCG_cjs.b}});Object.defineProperty(exports,"getCatalogSafe",{enumerable:true,get:function(){return chunkPY35LKCG_cjs.a}});Object.defineProperty(exports,"saveCatalog",{enumerable:true,get:function(){return chunkPY35LKCG_cjs.e}});Object.defineProperty(exports,"setCatalog",{enumerable:true,get:function(){return chunkPY35LKCG_cjs.c}});Object.defineProperty(exports,"upgradeCatalog",{enumerable:true,get:function(){return chunkPY35LKCG_cjs.d}});Object.defineProperty(exports,"getPnpmWorkspaceFilePath",{enumerable:true,get:function(){return chunkMQBANOLW_cjs.g}});Object.defineProperty(exports,"readPnpmWorkspaceFile",{enumerable:true,get:function(){return chunkMQBANOLW_cjs.h}});Object.defineProperty(exports,"writePnpmWorkspaceFile",{enumerable:true,get:function(){return chunkMQBANOLW_cjs.i}});
1
+ 'use strict';require('../chunk-QNTSKZUU.cjs');var chunkSTPQJPY3_cjs=require('../chunk-STPQJPY3.cjs'),chunk67WUYNAK_cjs=require('../chunk-67WUYNAK.cjs'),chunkE3XYGDUJ_cjs=require('../chunk-E3XYGDUJ.cjs');Object.defineProperty(exports,"replaceDepsAliases",{enumerable:true,get:function(){return chunkSTPQJPY3_cjs.a}});Object.defineProperty(exports,"getCatalog",{enumerable:true,get:function(){return chunk67WUYNAK_cjs.b}});Object.defineProperty(exports,"getCatalogSafe",{enumerable:true,get:function(){return chunk67WUYNAK_cjs.a}});Object.defineProperty(exports,"saveCatalog",{enumerable:true,get:function(){return chunk67WUYNAK_cjs.e}});Object.defineProperty(exports,"setCatalog",{enumerable:true,get:function(){return chunk67WUYNAK_cjs.c}});Object.defineProperty(exports,"upgradeCatalog",{enumerable:true,get:function(){return chunk67WUYNAK_cjs.d}});Object.defineProperty(exports,"getPnpmWorkspaceFilePath",{enumerable:true,get:function(){return chunkE3XYGDUJ_cjs.g}});Object.defineProperty(exports,"readPnpmWorkspaceFile",{enumerable:true,get:function(){return chunkE3XYGDUJ_cjs.h}});Object.defineProperty(exports,"writePnpmWorkspaceFile",{enumerable:true,get:function(){return chunkE3XYGDUJ_cjs.i}});
@@ -1 +1 @@
1
- import'../chunk-GV6YH6UO.js';export{a as replaceDepsAliases}from'../chunk-RJJQSPHF.js';export{b as getCatalog,a as getCatalogSafe,e as saveCatalog,c as setCatalog,d as upgradeCatalog}from'../chunk-NLAZJ4KF.js';export{g as getPnpmWorkspaceFilePath,h as readPnpmWorkspaceFile,i as writePnpmWorkspaceFile}from'../chunk-2XIPO6MY.js';
1
+ import'../chunk-GV6YH6UO.js';export{a as replaceDepsAliases}from'../chunk-WYJB6K4X.js';export{b as getCatalog,a as getCatalogSafe,e as saveCatalog,c as setCatalog,d as upgradeCatalog}from'../chunk-7ZZFNO2T.js';export{g as getPnpmWorkspaceFilePath,h as readPnpmWorkspaceFile,i as writePnpmWorkspaceFile}from'../chunk-I4FQEZQN.js';
@@ -1 +1 @@
1
- 'use strict';var chunkMQBANOLW_cjs=require('../chunk-MQBANOLW.cjs');Object.defineProperty(exports,"getPnpmWorkspaceFilePath",{enumerable:true,get:function(){return chunkMQBANOLW_cjs.g}});Object.defineProperty(exports,"readPnpmWorkspaceFile",{enumerable:true,get:function(){return chunkMQBANOLW_cjs.h}});Object.defineProperty(exports,"writePnpmWorkspaceFile",{enumerable:true,get:function(){return chunkMQBANOLW_cjs.i}});
1
+ 'use strict';var chunkE3XYGDUJ_cjs=require('../chunk-E3XYGDUJ.cjs');Object.defineProperty(exports,"getPnpmWorkspaceFilePath",{enumerable:true,get:function(){return chunkE3XYGDUJ_cjs.g}});Object.defineProperty(exports,"readPnpmWorkspaceFile",{enumerable:true,get:function(){return chunkE3XYGDUJ_cjs.h}});Object.defineProperty(exports,"writePnpmWorkspaceFile",{enumerable:true,get:function(){return chunkE3XYGDUJ_cjs.i}});
@@ -1 +1 @@
1
- export{g as getPnpmWorkspaceFilePath,h as readPnpmWorkspaceFile,i as writePnpmWorkspaceFile}from'../chunk-2XIPO6MY.js';
1
+ export{g as getPnpmWorkspaceFilePath,h as readPnpmWorkspaceFile,i as writePnpmWorkspaceFile}from'../chunk-I4FQEZQN.js';
@@ -1 +1 @@
1
- 'use strict';var chunkWFLP6KLL_cjs=require('../chunk-WFLP6KLL.cjs');require('../chunk-PY35LKCG.cjs'),require('../chunk-MQBANOLW.cjs');Object.defineProperty(exports,"replaceDepsAliases",{enumerable:true,get:function(){return chunkWFLP6KLL_cjs.a}});
1
+ 'use strict';var chunkSTPQJPY3_cjs=require('../chunk-STPQJPY3.cjs');require('../chunk-67WUYNAK.cjs'),require('../chunk-E3XYGDUJ.cjs');Object.defineProperty(exports,"replaceDepsAliases",{enumerable:true,get:function(){return chunkSTPQJPY3_cjs.a}});
@@ -1 +1 @@
1
- export{a as replaceDepsAliases}from'../chunk-RJJQSPHF.js';import'../chunk-NLAZJ4KF.js';import'../chunk-2XIPO6MY.js';
1
+ export{a as replaceDepsAliases}from'../chunk-WYJB6K4X.js';import'../chunk-7ZZFNO2T.js';import'../chunk-I4FQEZQN.js';
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- 'use strict';require('./chunk-SFZRYJZ2.cjs'),require('./chunk-QNTSKZUU.cjs');var chunkWFLP6KLL_cjs=require('./chunk-WFLP6KLL.cjs'),chunkPY35LKCG_cjs=require('./chunk-PY35LKCG.cjs'),chunkMQBANOLW_cjs=require('./chunk-MQBANOLW.cjs');Object.defineProperty(exports,"replaceDepsAliases",{enumerable:true,get:function(){return chunkWFLP6KLL_cjs.a}});Object.defineProperty(exports,"getCatalog",{enumerable:true,get:function(){return chunkPY35LKCG_cjs.b}});Object.defineProperty(exports,"getCatalogSafe",{enumerable:true,get:function(){return chunkPY35LKCG_cjs.a}});Object.defineProperty(exports,"saveCatalog",{enumerable:true,get:function(){return chunkPY35LKCG_cjs.e}});Object.defineProperty(exports,"setCatalog",{enumerable:true,get:function(){return chunkPY35LKCG_cjs.c}});Object.defineProperty(exports,"upgradeCatalog",{enumerable:true,get:function(){return chunkPY35LKCG_cjs.d}});Object.defineProperty(exports,"getPnpmWorkspaceFilePath",{enumerable:true,get:function(){return chunkMQBANOLW_cjs.g}});Object.defineProperty(exports,"readPnpmWorkspaceFile",{enumerable:true,get:function(){return chunkMQBANOLW_cjs.h}});Object.defineProperty(exports,"writePnpmWorkspaceFile",{enumerable:true,get:function(){return chunkMQBANOLW_cjs.i}});
1
+ 'use strict';require('./chunk-SFZRYJZ2.cjs'),require('./chunk-QNTSKZUU.cjs');var chunkSTPQJPY3_cjs=require('./chunk-STPQJPY3.cjs'),chunk67WUYNAK_cjs=require('./chunk-67WUYNAK.cjs'),chunkE3XYGDUJ_cjs=require('./chunk-E3XYGDUJ.cjs');Object.defineProperty(exports,"replaceDepsAliases",{enumerable:true,get:function(){return chunkSTPQJPY3_cjs.a}});Object.defineProperty(exports,"getCatalog",{enumerable:true,get:function(){return chunk67WUYNAK_cjs.b}});Object.defineProperty(exports,"getCatalogSafe",{enumerable:true,get:function(){return chunk67WUYNAK_cjs.a}});Object.defineProperty(exports,"saveCatalog",{enumerable:true,get:function(){return chunk67WUYNAK_cjs.e}});Object.defineProperty(exports,"setCatalog",{enumerable:true,get:function(){return chunk67WUYNAK_cjs.c}});Object.defineProperty(exports,"upgradeCatalog",{enumerable:true,get:function(){return chunk67WUYNAK_cjs.d}});Object.defineProperty(exports,"getPnpmWorkspaceFilePath",{enumerable:true,get:function(){return chunkE3XYGDUJ_cjs.g}});Object.defineProperty(exports,"readPnpmWorkspaceFile",{enumerable:true,get:function(){return chunkE3XYGDUJ_cjs.h}});Object.defineProperty(exports,"writePnpmWorkspaceFile",{enumerable:true,get:function(){return chunkE3XYGDUJ_cjs.i}});
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import'./chunk-GGNOJ77I.js';import'./chunk-GV6YH6UO.js';export{a as replaceDepsAliases}from'./chunk-RJJQSPHF.js';export{b as getCatalog,a as getCatalogSafe,e as saveCatalog,c as setCatalog,d as upgradeCatalog}from'./chunk-NLAZJ4KF.js';export{g as getPnpmWorkspaceFilePath,h as readPnpmWorkspaceFile,i as writePnpmWorkspaceFile}from'./chunk-2XIPO6MY.js';
1
+ import'./chunk-GGNOJ77I.js';import'./chunk-GV6YH6UO.js';export{a as replaceDepsAliases}from'./chunk-WYJB6K4X.js';export{b as getCatalog,a as getCatalogSafe,e as saveCatalog,c as setCatalog,d as upgradeCatalog}from'./chunk-7ZZFNO2T.js';export{g as getPnpmWorkspaceFilePath,h as readPnpmWorkspaceFile,i as writePnpmWorkspaceFile}from'./chunk-I4FQEZQN.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/pnpm-tools",
3
- "version": "0.6.82",
3
+ "version": "0.6.83",
4
4
  "type": "module",
5
5
  "description": "A set of [pnpm](https://pnpm.io/) plugins and utilities for managing workspace packages/dependencies.",
6
6
  "repository": {
@@ -73,9 +73,9 @@
73
73
  },
74
74
  "types": "./dist/index.d.ts",
75
75
  "dependencies": {
76
- "@storm-software/config": "^1.135.0",
77
- "@storm-software/config-tools": "^1.188.80",
78
- "@storm-software/npm-tools": "^0.6.37",
76
+ "@storm-software/config": "^1.135.1",
77
+ "@storm-software/config-tools": "^1.189.0",
78
+ "@storm-software/npm-tools": "^0.6.38",
79
79
  "commander": "^12.1.0",
80
80
  "defu": "6.1.4",
81
81
  "prettier": "^3.7.4",
@@ -89,5 +89,5 @@
89
89
  "tsup": "8.4.0"
90
90
  },
91
91
  "publishConfig": { "access": "public" },
92
- "gitHead": "f0da2445e3b4764750c75fdcd1d0ec13a10c6602"
92
+ "gitHead": "0305bdb839af50999ab4680248db5dd2c4994ef3"
93
93
  }