create-storm-workspace 1.95.4 → 1.96.0
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 +7 -0
- package/README.md +2 -1
- package/index.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Create Storm Workspace
|
|
4
4
|
|
|
5
|
+
## [1.95.4](https://github.com/storm-software/storm-ops/releases/tag/create-storm-workspace%401.95.4) (2025-09-18)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Update workspace package links
|
|
10
|
+
([4ecf1952d](https://github.com/storm-software/storm-ops/commit/4ecf1952d))
|
|
11
|
+
|
|
5
12
|
## [1.95.3](https://github.com/storm-software/storm-ops/releases/tag/create-storm-workspace%401.95.3) (2025-09-18)
|
|
6
13
|
|
|
7
14
|
### Miscellaneous
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -40,6 +40,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
40
40
|
|
|
41
41
|
<!-- START doctoc -->
|
|
42
42
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
43
|
+
|
|
43
44
|
## Table of Contents
|
|
44
45
|
|
|
45
46
|
- [Create Storm Workspace](#create-storm-workspace)
|
package/index.js
CHANGED
|
@@ -752,7 +752,7 @@ Storm Software is an open source software development organization with the miss
|
|
|
752
752
|
Join us on [Discord](${NZ}) to chat with the team, receive release notifications, ask questions, and get involved.
|
|
753
753
|
|
|
754
754
|
If this sounds interesting, and you would like to help us in creating the next generation of development tools, please reach out on our [website](${PZ}) or join our [Slack](${RZ}) channel!
|
|
755
|
-
`,Jg="tools/errors/codes.json",kL="The workspace's banner image";var QZ=Object.freeze({status:"aborted"});function kr(e,t,n){function i(o,p){var d;Object.defineProperty(o,"_zod",{value:o._zod??{},enumerable:!1}),(d=o._zod).traits??(d.traits=new Set),o._zod.traits.add(e),t(o,p);for(let s in u.prototype)s in o||Object.defineProperty(o,s,{value:u.prototype[s].bind(o)});o._zod.constr=u,o._zod.def=p}let l=n?.Parent??Object;class r extends l{}Object.defineProperty(r,"name",{value:e});function u(o){var p;let d=n?.Parent?new r:this;i(d,o),(p=d._zod).deferred??(p.deferred=[]);for(let s of d._zod.deferred)s();return d}return Object.defineProperty(u,"init",{value:i}),Object.defineProperty(u,Symbol.hasInstance,{value:o=>n?.Parent&&o instanceof n.Parent?!0:o?._zod?.traits?.has(e)}),Object.defineProperty(u,"name",{value:e}),u}var FZ=Symbol("zod_brand"),fl=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}};var QS={};function Al(e){return e&&Object.assign(QS,e),QS}var tr={};Nl(tr,{BIGINT_FORMAT_RANGES:()=>ML,Class:()=>OS,NUMBER_FORMAT_RANGES:()=>LL,aborted:()=>Cc,allowsEval:()=>QL,assert:()=>UZ,assertEqual:()=>OZ,assertIs:()=>MZ,assertNever:()=>jZ,assertNotEqual:()=>LZ,assignProp:()=>du,base64ToUint8Array:()=>UL,base64urlToUint8Array:()=>iX,cached:()=>Zg,captureStackTrace:()=>Xg,cleanEnum:()=>nX,cleanRegex:()=>gf,clone:()=>To,cloneDef:()=>VZ,createTransparentProxy:()=>YZ,defineLazy:()=>js,esc:()=>RL,escapeRegex:()=>rd,extend:()=>ZZ,finalizeIssue:()=>gl,floatSafeRemainder:()=>NL,getElementAtPath:()=>GZ,getEnumValues:()=>Kg,getLengthableOrigin:()=>$S,getParsedType:()=>qZ,getSizableOrigin:()=>jL,hexToUint8Array:()=>oX,isObject:()=>mf,isPlainObject:()=>td,issue:()=>VS,joinValues:()=>Sr,jsonStringifyReplacer:()=>LS,merge:()=>eX,mergeDefs:()=>hu,normalizeParams:()=>Ec,nullish:()=>MS,numKeys:()=>WZ,objectClone:()=>$Z,omit:()=>KZ,optionalKeys:()=>US,partial:()=>tX,pick:()=>JZ,prefixIssues:()=>ml,primitiveTypes:()=>OL,promiseAllObject:()=>zZ,propertyKeyTypes:()=>jS,randomString:()=>HZ,required:()=>rX,safeExtend:()=>XZ,shallowClone:()=>FL,stringifyPrimitive:()=>vr,uint8ArrayToBase64:()=>$L,uint8ArrayToBase64url:()=>sX,uint8ArrayToHex:()=>aX,unwrapMessage:()=>Af});function OZ(e){return e}function LZ(e){return e}function MZ(e){}function jZ(e){throw new Error}function UZ(e){}function Kg(e){let t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,l])=>t.indexOf(+i)===-1).map(([i,l])=>l)}function Sr(e,t="|"){return e.map(n=>vr(n)).join(t)}function LS(e,t){return typeof t=="bigint"?t.toString():t}function Zg(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function MS(e){return e==null}function gf(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function NL(e,t){let n=(e.toString().split(".")[1]||"").length,i=t.toString(),l=(i.split(".")[1]||"").length;if(l===0&&/\d?e-\d?/.test(i)){let p=i.match(/\d?e-(\d?)/);p?.[1]&&(l=Number.parseInt(p[1]))}let r=n>l?n:l,u=Number.parseInt(e.toFixed(r).replace(".","")),o=Number.parseInt(t.toFixed(r).replace(".",""));return u%o/10**r}var PL=Symbol("evaluating");function js(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==PL)return i===void 0&&(i=PL,i=n()),i},set(l){Object.defineProperty(e,t,{value:l})},configurable:!0})}function $Z(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function du(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function hu(...e){let t={};for(let n of e){let i=Object.getOwnPropertyDescriptors(n);Object.assign(t,i)}return Object.defineProperties({},t)}function VZ(e){return hu(e._zod.def)}function GZ(e,t){return t?t.reduce((n,i)=>n?.[i],e):e}function zZ(e){let t=Object.keys(e),n=t.map(i=>e[i]);return Promise.all(n).then(i=>{let l={};for(let r=0;r<t.length;r++)l[t[r]]=i[r];return l})}function HZ(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let i=0;i<e;i++)n+=t[Math.floor(Math.random()*t.length)];return n}function RL(e){return JSON.stringify(e)}var Xg="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function mf(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var QL=Zg(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function td(e){if(mf(e)===!1)return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(mf(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function FL(e){return td(e)?{...e}:Array.isArray(e)?[...e]:e}function WZ(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var qZ=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},jS=new Set(["string","number","symbol"]),OL=new Set(["string","number","bigint","boolean","symbol","undefined"]);function rd(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function To(e,t,n){let i=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(i._zod.parent=e),i}function Ec(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function YZ(e){let t;return new Proxy({},{get(n,i,l){return t??(t=e()),Reflect.get(t,i,l)},set(n,i,l,r){return t??(t=e()),Reflect.set(t,i,l,r)},has(n,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(n,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(n,i,l){return t??(t=e()),Reflect.defineProperty(t,i,l)}})}function vr(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function US(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var LL={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},ML={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function JZ(e,t){let n=e._zod.def,i=hu(e._zod.def,{get shape(){let l={};for(let r in t){if(!(r in n.shape))throw new Error(`Unrecognized key: "${r}"`);t[r]&&(l[r]=n.shape[r])}return du(this,"shape",l),l},checks:[]});return To(e,i)}function KZ(e,t){let n=e._zod.def,i=hu(e._zod.def,{get shape(){let l={...e._zod.def.shape};for(let r in t){if(!(r in n.shape))throw new Error(`Unrecognized key: "${r}"`);t[r]&&delete l[r]}return du(this,"shape",l),l},checks:[]});return To(e,i)}function ZZ(e,t){if(!td(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");let l=hu(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t};return du(this,"shape",r),r},checks:[]});return To(e,l)}function XZ(e,t){if(!td(t))throw new Error("Invalid input to safeExtend: expected a plain object");let n={...e._zod.def,get shape(){let i={...e._zod.def.shape,...t};return du(this,"shape",i),i},checks:e._zod.def.checks};return To(e,n)}function eX(e,t){let n=hu(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t._zod.def.shape};return du(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return To(e,n)}function tX(e,t,n){let i=hu(t._zod.def,{get shape(){let l=t._zod.def.shape,r={...l};if(n)for(let u in n){if(!(u in l))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(r[u]=e?new e({type:"optional",innerType:l[u]}):l[u])}else for(let u in l)r[u]=e?new e({type:"optional",innerType:l[u]}):l[u];return du(this,"shape",r),r},checks:[]});return To(t,i)}function rX(e,t,n){let i=hu(t._zod.def,{get shape(){let l=t._zod.def.shape,r={...l};if(n)for(let u in n){if(!(u in r))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(r[u]=new e({type:"nonoptional",innerType:l[u]}))}else for(let u in l)r[u]=new e({type:"nonoptional",innerType:l[u]});return du(this,"shape",r),r},checks:[]});return To(t,i)}function Cc(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function ml(e,t){return t.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}function Af(e){return typeof e=="string"?e:e?.message}function gl(e,t,n){let i={...e,path:e.path??[]};if(!e.message){let l=Af(e.inst?._zod.def?.error?.(e))??Af(t?.error?.(e))??Af(n.customError?.(e))??Af(n.localeError?.(e))??"Invalid input";i.message=l}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function jL(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function $S(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function VS(...e){let[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}function nX(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function UL(e){let t=atob(e),n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}function $L(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function iX(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return UL(t+n)}function sX(e){return $L(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function oX(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)n[i/2]=Number.parseInt(t.slice(i,i+2),16);return n}function aX(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var OS=class{constructor(...t){}};var VL=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,LS,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},GL=kr("$ZodError",VL),yf=kr("$ZodError",VL,{Parent:Error});var uX=e=>(t,n,i,l)=>{let r=i?Object.assign(i,{async:!1}):{async:!1},u=t._zod.run({value:n,issues:[]},r);if(u instanceof Promise)throw new fl;if(u.issues.length){let o=new(l?.Err??e)(u.issues.map(p=>gl(p,r,Al())));throw Xg(o,l?.callee),o}return u.value},ey=uX(yf),cX=e=>async(t,n,i,l)=>{let r=i?Object.assign(i,{async:!0}):{async:!0},u=t._zod.run({value:n,issues:[]},r);if(u instanceof Promise&&(u=await u),u.issues.length){let o=new(l?.Err??e)(u.issues.map(p=>gl(p,r,Al())));throw Xg(o,l?.callee),o}return u.value},ty=cX(yf),pX=e=>(t,n,i)=>{let l=i?{...i,async:!1}:{async:!1},r=t._zod.run({value:n,issues:[]},l);if(r instanceof Promise)throw new fl;return r.issues.length?{success:!1,error:new(e??GL)(r.issues.map(u=>gl(u,l,Al())))}:{success:!0,data:r.value}},bf=pX(yf),dX=e=>async(t,n,i)=>{let l=i?Object.assign(i,{async:!0}):{async:!0},r=t._zod.run({value:n,issues:[]},l);return r instanceof Promise&&(r=await r),r.issues.length?{success:!1,error:new e(r.issues.map(u=>gl(u,l,Al())))}:{success:!0,data:r.value}},Ef=dX(yf);var zL=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/;var hX="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",fX=new RegExp(`^${hX}$`);var HL=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)};var WL=/^(?:true|false)$/i;var nd=kr("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])});var qL=kr("$ZodCheckLengthEquals",(e,t)=>{var n;nd.init(e,t),(n=e._zod.def).when??(n.when=i=>{let l=i.value;return!MS(l)&&l.length!==void 0}),e._zod.onattach.push(i=>{let l=i._zod.bag;l.minimum=t.length,l.maximum=t.length,l.length=t.length}),e._zod.check=i=>{let l=i.value,r=l.length;if(r===t.length)return;let u=$S(l),o=r>t.length;i.issues.push({origin:u,...o?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),GS=kr("$ZodCheckStringFormat",(e,t)=>{var n,i;nd.init(e,t),e._zod.onattach.push(l=>{let r=l._zod.bag;r.format=t.format,t.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=l=>{t.pattern.lastIndex=0,!t.pattern.test(l.value)&&l.issues.push({origin:"string",code:"invalid_format",format:t.format,input:l.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),YL=kr("$ZodCheckRegex",(e,t)=>{GS.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}});var JL=kr("$ZodCheckOverwrite",(e,t)=>{nd.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var ZL={major:4,minor:1,patch:8};var Ss=kr("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ZL;let i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(let l of i)for(let r of l._zod.onattach)r(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let l=(u,o,p)=>{let d=Cc(u),s;for(let a of o){if(a._zod.def.when){if(!a._zod.def.when(u))continue}else if(d)continue;let h=u.issues.length,E=a._zod.check(u);if(E instanceof Promise&&p?.async===!1)throw new fl;if(s||E instanceof Promise)s=(s??Promise.resolve()).then(async()=>{await E,u.issues.length!==h&&(d||(d=Cc(u,h)))});else{if(u.issues.length===h)continue;d||(d=Cc(u,h))}}return s?s.then(()=>u):u},r=(u,o,p)=>{if(Cc(u))return u.aborted=!0,u;let d=l(o,i,p);if(d instanceof Promise){if(p.async===!1)throw new fl;return d.then(s=>e._zod.parse(s,p))}return e._zod.parse(d,p)};e._zod.run=(u,o)=>{if(o.skipChecks)return e._zod.parse(u,o);if(o.direction==="backward"){let d=e._zod.parse({value:u.value,issues:[]},{...o,skipChecks:!0});return d instanceof Promise?d.then(s=>r(s,u,o)):r(d,u,o)}let p=e._zod.parse(u,o);if(p instanceof Promise){if(o.async===!1)throw new fl;return p.then(d=>l(d,i,o))}return l(p,i,o)}}e["~standard"]={validate:l=>{try{let r=bf(e,l);return r.success?{value:r.data}:{issues:r.error?.issues}}catch{return Ef(e,l).then(u=>u.success?{value:u.data}:{issues:u.error?.issues})}},vendor:"zod",version:1}}),ny=kr("$ZodString",(e,t)=>{Ss.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??HL(e._zod.bag),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),zS=kr("$ZodStringFormat",(e,t)=>{GS.init(e,t),ny.init(e,t)});var nM=kr("$ZodURL",(e,t)=>{zS.init(e,t),e._zod.check=n=>{try{let i=n.value.trim(),l=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(l.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:zL.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(l.protocol.endsWith(":")?l.protocol.slice(0,-1):l.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=l.href:n.value=i;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}});var HS=kr("$ZodBoolean",(e,t)=>{Ss.init(e,t),e._zod.pattern=WL,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=!!n.value}catch{}let l=n.value;return typeof l=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:l,inst:e}),n}});var iM=kr("$ZodAny",(e,t)=>{Ss.init(e,t),e._zod.parse=n=>n});function XL(e,t,n){e.issues.length&&t.issues.push(...ml(n,e.issues)),t.value[n]=e.value}var sM=kr("$ZodArray",(e,t)=>{Ss.init(e,t),e._zod.parse=(n,i)=>{let l=n.value;if(!Array.isArray(l))return n.issues.push({expected:"array",code:"invalid_type",input:l,inst:e}),n;n.value=Array(l.length);let r=[];for(let u=0;u<l.length;u++){let o=l[u],p=t.element._zod.run({value:o,issues:[]},i);p instanceof Promise?r.push(p.then(d=>XL(d,n,u))):XL(p,n,u)}return r.length?Promise.all(r).then(()=>n):n}});function ry(e,t,n,i){e.issues.length&&t.issues.push(...ml(n,e.issues)),e.value===void 0?n in i&&(t.value[n]=void 0):t.value[n]=e.value}function AX(e){let t=Object.keys(e.shape);for(let i of t)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);let n=US(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function mX(e,t,n,i,l,r){let u=[],o=l.keySet,p=l.catchall._zod,d=p.def.type;for(let s of Object.keys(t)){if(o.has(s))continue;if(d==="never"){u.push(s);continue}let a=p.run({value:t[s],issues:[]},i);a instanceof Promise?e.push(a.then(h=>ry(h,n,s,t))):ry(a,n,s,t)}return u.length&&n.issues.push({code:"unrecognized_keys",keys:u,input:t,inst:r}),e.length?Promise.all(e).then(()=>n):n}var oM=kr("$ZodObject",(e,t)=>{Ss.init(e,t);let n=Zg(()=>AX(t));js(e._zod,"propValues",()=>{let u=t.shape,o={};for(let p in u){let d=u[p]._zod;if(d.values){o[p]??(o[p]=new Set);for(let s of d.values)o[p].add(s)}}return o});let i=mf,l=t.catchall,r;e._zod.parse=(u,o)=>{r??(r=n.value);let p=u.value;if(!i(p))return u.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),u;u.value={};let d=[],s=r.shape;for(let a of r.keys){let E=s[a]._zod.run({value:p[a],issues:[]},o);E instanceof Promise?d.push(E.then(b=>ry(b,u,a,p))):ry(E,u,a,p)}return l?mX(d,p,u,o,n.value,e):d.length?Promise.all(d).then(()=>u):u}});function eM(e,t,n,i){for(let r of e)if(r.issues.length===0)return t.value=r.value,t;let l=e.filter(r=>!Cc(r));return l.length===1?(t.value=l[0].value,l[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(r=>r.issues.map(u=>gl(u,i,Al())))}),t)}var aM=kr("$ZodUnion",(e,t)=>{Ss.init(e,t),js(e._zod,"optin",()=>t.options.some(l=>l._zod.optin==="optional")?"optional":void 0),js(e._zod,"optout",()=>t.options.some(l=>l._zod.optout==="optional")?"optional":void 0),js(e._zod,"values",()=>{if(t.options.every(l=>l._zod.values))return new Set(t.options.flatMap(l=>Array.from(l._zod.values)))}),js(e._zod,"pattern",()=>{if(t.options.every(l=>l._zod.pattern)){let l=t.options.map(r=>r._zod.pattern);return new RegExp(`^(${l.map(r=>gf(r.source)).join("|")})$`)}});let n=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(l,r)=>{if(n)return i(l,r);let u=!1,o=[];for(let p of t.options){let d=p._zod.run({value:l.value,issues:[]},r);if(d instanceof Promise)o.push(d),u=!0;else{if(d.issues.length===0)return d;o.push(d)}}return u?Promise.all(o).then(p=>eM(p,l,e,r)):eM(o,l,e,r)}});var lM=kr("$ZodRecord",(e,t)=>{Ss.init(e,t),e._zod.parse=(n,i)=>{let l=n.value;if(!td(l))return n.issues.push({expected:"record",code:"invalid_type",input:l,inst:e}),n;let r=[];if(t.keyType._zod.values){let u=t.keyType._zod.values;n.value={};for(let p of u)if(typeof p=="string"||typeof p=="number"||typeof p=="symbol"){let d=t.valueType._zod.run({value:l[p],issues:[]},i);d instanceof Promise?r.push(d.then(s=>{s.issues.length&&n.issues.push(...ml(p,s.issues)),n.value[p]=s.value})):(d.issues.length&&n.issues.push(...ml(p,d.issues)),n.value[p]=d.value)}let o;for(let p in l)u.has(p)||(o=o??[],o.push(p));o&&o.length>0&&n.issues.push({code:"unrecognized_keys",input:l,inst:e,keys:o})}else{n.value={};for(let u of Reflect.ownKeys(l)){if(u==="__proto__")continue;let o=t.keyType._zod.run({value:u,issues:[]},i);if(o instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(o.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:o.issues.map(d=>gl(d,i,Al())),input:u,path:[u],inst:e}),n.value[o.value]=o.value;continue}let p=t.valueType._zod.run({value:l[u],issues:[]},i);p instanceof Promise?r.push(p.then(d=>{d.issues.length&&n.issues.push(...ml(u,d.issues)),n.value[o.value]=d.value})):(p.issues.length&&n.issues.push(...ml(u,p.issues)),n.value[o.value]=p.value)}}return r.length?Promise.all(r).then(()=>n):n}});var uM=kr("$ZodEnum",(e,t)=>{Ss.init(e,t);let n=Kg(t.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp(`^(${n.filter(l=>jS.has(typeof l)).map(l=>typeof l=="string"?rd(l):l.toString()).join("|")})$`),e._zod.parse=(l,r)=>{let u=l.value;return i.has(u)||l.issues.push({code:"invalid_value",values:n,input:u,inst:e}),l}}),cM=kr("$ZodLiteral",(e,t)=>{if(Ss.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?rd(n):n?rd(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,i)=>{let l=n.value;return e._zod.values.has(l)||n.issues.push({code:"invalid_value",values:t.values,input:l,inst:e}),n}});function tM(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var pM=kr("$ZodOptional",(e,t)=>{Ss.init(e,t),e._zod.optin="optional",e._zod.optout="optional",js(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),js(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${gf(n.source)})?$`):void 0}),e._zod.parse=(n,i)=>{if(t.innerType._zod.optin==="optional"){let l=t.innerType._zod.run(n,i);return l instanceof Promise?l.then(r=>tM(r,n.value)):tM(l,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,i)}}),dM=kr("$ZodNullable",(e,t)=>{Ss.init(e,t),js(e._zod,"optin",()=>t.innerType._zod.optin),js(e._zod,"optout",()=>t.innerType._zod.optout),js(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${gf(n.source)}|null)$`):void 0}),js(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=>n.value===null?n:t.innerType._zod.run(n,i)}),hM=kr("$ZodDefault",(e,t)=>{Ss.init(e,t),e._zod.optin="optional",js(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);if(n.value===void 0)return n.value=t.defaultValue,n;let l=t.innerType._zod.run(n,i);return l instanceof Promise?l.then(r=>rM(r,t)):rM(l,t)}});function rM(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var EX=Symbol("ZodOutput"),CX=Symbol("ZodInput"),iy=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let i=n[0];if(this._map.set(t,i),i&&typeof i=="object"&&"id"in i){if(this._idmap.has(i.id))throw new Error(`ID ${i.id} already exists in the registry`);this._idmap.set(i.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){let n=t._zod.parent;if(n){let i={...this.get(n)??{}};delete i.id;let l={...i,...this._map.get(t)};return Object.keys(l).length?l:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function WS(){return new iy}function AM(e,t){return new e({type:"string",...Ec(t)})}function mM(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Ec(t)})}function gM(e,t){return new e({type:"boolean",...Ec(t)})}function yM(e){return new e({type:"any"})}function qS(e,t){return new qL({check:"length_equals",...Ec(t),length:e})}function YS(e,t){return new YL({check:"string_format",format:"regex",...Ec(t),pattern:e})}function JS(e){return new JL({check:"overwrite",tx:e})}function Nr(){return JS(e=>e.trim())}function Us(){return JS(e=>e.toLowerCase())}var _o=kr("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");Ss.init(e,t),e.def=t,e.type=t.type,e.parse=(n,i)=>ey(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>bf(e,n,i),e.parseAsync=async(n,i)=>ty(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>Ef(e,n,i),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),e.clone=(n,i)=>To(e,n,i),e.brand=()=>e,e.register=((n,i)=>(n.add(e,i),e))}),KS=kr("ZodMiniString",(e,t)=>{ny.init(e,t),_o.init(e,t)});function Pr(e){return AM(KS,e)}var bM=kr("ZodMiniStringFormat",(e,t)=>{zS.init(e,t),KS.init(e,t)});var wX=kr("ZodMiniURL",(e,t)=>{nM.init(e,t),bM.init(e,t)});function $s(e){return mM(wX,e)}var EM=kr("ZodMiniBoolean",(e,t)=>{HS.init(e,t),_o.init(e,t)});function ZS(e){return gM(EM,e)}var BX=kr("ZodMiniAny",(e,t)=>{iM.init(e,t),_o.init(e,t)});function CM(){return yM(BX)}var TX=kr("ZodMiniArray",(e,t)=>{sM.init(e,t),_o.init(e,t)});function XS(e,t){return new TX({type:"array",element:e,...tr.normalizeParams(t)})}var _X=kr("ZodMiniObject",(e,t)=>{oM.init(e,t),_o.init(e,t),tr.defineLazy(e,"shape",()=>t.shape)});function Vs(e,t){let n={type:"object",get shape(){return tr.assignProp(this,"shape",{...e}),this.shape},...tr.normalizeParams(t)};return new _X(n)}var xX=kr("ZodMiniUnion",(e,t)=>{aM.init(e,t),_o.init(e,t)});function fu(e,t){return new xX({type:"union",options:e,...tr.normalizeParams(t)})}var DX=kr("ZodMiniRecord",(e,t)=>{lM.init(e,t),_o.init(e,t)});function ew(e,t,n){return new DX({type:"record",keyType:e,valueType:t,...tr.normalizeParams(n)})}var kX=kr("ZodMiniEnum",(e,t)=>{uM.init(e,t),_o.init(e,t),e.options=Object.values(t.entries)});function vf(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new kX({type:"enum",entries:n,...tr.normalizeParams(t)})}var PX=kr("ZodMiniLiteral",(e,t)=>{cM.init(e,t),_o.init(e,t)});function vM(e,t){return new PX({type:"literal",values:Array.isArray(e)?e:[e],...tr.normalizeParams(t)})}var NX=kr("ZodMiniOptional",(e,t)=>{pM.init(e,t),_o.init(e,t)});function rn(e){return new NX({type:"optional",innerType:e})}var RX=kr("ZodMiniNullable",(e,t)=>{dM.init(e,t),_o.init(e,t)});function IM(e){return new RX({type:"nullable",innerType:e})}var QX=kr("ZodMiniDefault",(e,t)=>{hM.init(e,t),_o.init(e,t)});function vn(e,t){return new QX({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():tr.shallowClone(t)}})}var Ut=WS(),as=Pr().check(qS(7),Us(),YS(/^#([0-9a-f]{3}){1,2}$/i),Nr());Ut.add(as,{description:"A base schema for describing the format of colors"});var oy=vn(as,"#151718");Ut.add(oy,{description:"The dark background color of the workspace"});var ay=vn(as,"#cbd5e1");Ut.add(ay,{description:"The light background color of the workspace"});var ly=vn(as,"#1fb2a6");Ut.add(ly,{description:"The primary brand specific color of the workspace"});var uy=rn(as);Ut.add(uy,{description:"The alternate brand specific color of the workspace"});var cy=rn(as);Ut.add(cy,{description:"The secondary brand specific color of the workspace"});var py=vn(as,"#3fa6ff");Ut.add(py,{description:"The color used to display hyperlink text"});var dy=vn(as,"#818cf8");Ut.add(dy,{description:"The second brand specific color of the workspace"});var hy=vn(as,"#45b27e");Ut.add(hy,{description:"The success color of the workspace"});var fy=vn(as,"#38bdf8");Ut.add(fy,{description:"The informational color of the workspace"});var Ay=vn(as,"#f3d371");Ut.add(Ay,{description:"The warning color of the workspace"});var my=vn(as,"#d8314a");Ut.add(my,{description:"The danger color of the workspace"});var gy=rn(as);Ut.add(gy,{description:"The fatal color of the workspace"});var yy=vn(as,"#4ade80");Ut.add(yy,{description:"The positive number color of the workspace"});var by=vn(as,"#ef4444");Ut.add(by,{description:"The negative number color of the workspace"});var Ey=rn(XS(as));Ut.add(Ey,{description:"The color stops for the base gradient color pattern used in the workspace"});var $X=Vs({foreground:ay,background:oy,brand:ly,alternate:uy,accent:cy,link:py,help:dy,success:hy,info:fy,warning:Ay,danger:my,fatal:gy,positive:yy,negative:by,gradient:Ey}),VX=Vs({foreground:oy,background:ay,brand:ly,alternate:uy,accent:cy,link:py,help:dy,success:hy,info:fy,warning:Ay,danger:my,fatal:gy,positive:yy,negative:by,gradient:Ey}),GX=Vs({dark:$X,light:VX}),zX=Vs({dark:oy,light:ay,brand:ly,alternate:uy,accent:cy,link:py,help:dy,success:hy,info:fy,warning:Ay,danger:my,fatal:gy,positive:yy,negative:by,gradient:Ey}),id=rn($s());Ut.add(id,{description:"A remote registry URL used to publish distributable packages"});var wM=vn(Vs({github:id,npm:id,cargo:id,cyclone:id,container:id}),{});Ut.add(wM,{description:"A list of remote registry URLs used by Storm Software"});var tw=fu([zX,GX]);Ut.add(tw,{description:"Colors used for various workspace elements"});var BM=ew(fu([fu([vM("base"),Pr()]),Pr()]),tw);Ut.add(BM,{description:"Storm theme config values used for styling various package elements"});var TM=rn(fu([Pr().check(Nr()),XS(Pr().check(Nr()))]));Ut.add(TM,{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 _M=Pr().check(Nr());Ut.add(_M,{description:"The workspace bot user's name (this is the bot that will be used to perform various tasks)"});var xM=Pr().check(Nr());Ut.add(xM,{description:"The email of the workspace bot"});var DM=Vs({name:_M,email:xM});Ut.add(DM,{description:"The workspace's bot user's config used to automated various operations tasks"});var kM=rn(Pr().check(Nr(),$s()));Ut.add(kM,{description:"A URL to a banner image used to display the workspace's release"});var PM=vn(Pr().check(Nr()),kL);Ut.add(PM,{description:"The alt text for the workspace's release banner image"});var NM=Vs({url:kM,alt:PM});Ut.add(NM,{description:"The workspace's banner image used during the release process"});var RM=rn(Pr().check(Nr()));Ut.add(RM,{description:"A header message appended to the start of the workspace's release notes"});var QM=rn(Pr().check(Nr()));Ut.add(QM,{description:"A footer message appended to the end of the workspace's release notes"});var FM=Vs({banner:fu([NM,Pr().check(Nr(),$s())]),header:RM,footer:QM});Ut.add(FM,{description:"The workspace's release config used during the release process"});var OM=rn(Pr().check(Nr()));Ut.add(OM,{description:"A Twitter/X account associated with the organization/project"});var LM=rn(Pr().check(Nr()));Ut.add(LM,{description:"A Discord account associated with the organization/project"});var MM=rn(Pr().check(Nr()));Ut.add(MM,{description:"A Telegram account associated with the organization/project"});var jM=rn(Pr().check(Nr()));Ut.add(jM,{description:"A Slack account associated with the organization/project"});var UM=rn(Pr().check(Nr()));Ut.add(UM,{description:"A Medium account associated with the organization/project"});var $M=rn(Pr().check(Nr()));Ut.add($M,{description:"A GitHub account associated with the organization/project"});var VM=Vs({twitter:OM,discord:LM,telegram:MM,slack:jM,medium:UM,github:$M});Ut.add(VM,{description:"The workspace's account config used to store various social media links"});var GM=rn(Pr().check(Nr()));Ut.add(GM,{description:"The directory used to store the environment's cached file data"});var zM=rn(Pr().check(Nr()));Ut.add(zM,{description:"The directory used to store the environment's data files"});var HM=rn(Pr().check(Nr()));Ut.add(HM,{description:"The directory used to store the environment's configuration files"});var WM=rn(Pr().check(Nr()));Ut.add(WM,{description:"The directory used to store the environment's temp files"});var qM=rn(Pr().check(Nr()));Ut.add(qM,{description:"The directory used to store the environment's log files"});var YM=vn(Pr().check(Nr()),"dist");Ut.add(YM,{description:"The directory used to store the workspace's distributable files after a build (relative to the workspace root)"});var JM=Vs({cache:GM,data:zM,config:HM,temp:WM,log:qM,build:YM});Ut.add(JM,{description:"Various directories used by the workspace to store data, cache, and configuration files"});var KM=vn(vf(["minimal","monorepo"]),"monorepo");Ut.add(KM,{description:"The variant of the workspace. This can be used to enable or disable certain features or configurations."});var ZM=vn(Pr().check(Nr()),Jg);Ut.add(ZM,{description:"The path to the workspace's error codes JSON file"});var XM=rn($s());Ut.add(XM,{description:"A URL to a page that looks up the workspace's error messages given a specific error code"});var ej=Vs({codesFile:ZM,url:XM});Ut.add(ej,{description:"The workspace's error config used when creating error details during a system error"});var tj=rn(Pr().check(Nr(),Us()));Ut.add(tj,{description:"The name of the organization"});var rj=rn(Pr().check(Nr()));Ut.add(rj,{description:"A description of the organization"});var nj=rn($s());Ut.add(nj,{description:"A URL to the organization's logo image"});var ij=rn($s());Ut.add(ij,{description:"A URL to the organization's icon image"});var sj=rn($s());Ut.add(sj,{description:"A URL to a page that provides more information about the organization"});var oj=Vs({name:tj,description:rj,logo:nj,icon:ij,url:sj});Ut.add(oj,{description:"The workspace's organization details"});var aj=vn(Pr().check(Nr(),Us()),"https://public.storm-cdn.com/schemas/storm-workspace.schema.json");Ut.add(aj,{description:"The URL or file path to the JSON schema file that describes the Storm configuration file"});var lj=Pr().check(Nr(),Us());Ut.add(lj,{description:"The name of the workspace/project/service/package/scope using this configuration"});var uj=Pr().check(Nr(),Us());Ut.add(uj,{description:"The namespace of the workspace/project/service/package/scope using this configuration"});var cj=fu([oj,Pr().check(Nr(),Us())]);Ut.add(cj,{description:"The organization of the workspace. This can be a string or an object containing the organization's details"});var pj=Pr().check(Nr(),Us());Ut.add(pj,{description:"The repo URL of the workspace (i.e. the GitHub repository URL)"});var dj=vn(Pr().check(Nr()),"Apache-2.0");Ut.add(dj,{description:"The license type of the package"});var hj=rn($s());Ut.add(hj,{description:"The homepage of the workspace"});var fj=rn($s());Ut.add(fj,{description:"The documentation site for the workspace"});var Aj=rn($s());Ut.add(Aj,{description:"The development portal site for the workspace"});var mj=rn($s());Ut.add(mj,{description:"The licensing site for the workspace"});var gj=rn($s());Ut.add(gj,{description:"The contact site for the workspace"});var yj=rn($s());Ut.add(yj,{description:"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"});var bj=vn(Pr().check(Nr(),Us()),"main");Ut.add(bj,{description:"The branch of the workspace"});var Ej=rn(Pr().check(Nr(),Us()));Ut.add(Ej,{description:"A tag specifying the version pre-release identifier"});var Cj=rn(Pr().check(Nr(),Us()));Ut.add(Cj,{description:"The owner of the package"});var vj=vn(vf(["development","staging","production"]).check(Nr(),Us()),"production");Ut.add(vj,{description:"The current runtime environment mode for the package"});var Ij=Pr().check(Nr(),Us());Ut.add(Ij,{description:"The root directory of the workspace"});var Sj=vn(ZS(),!1);Ut.add(Sj,{description:"Should all known types of workspace caching be skipped?"});var wj=vn(vf(["npm","yarn","pnpm","bun"]),"npm");Ut.add(wj,{description:"The JavaScript/TypeScript package manager used by the repository"});var Bj=vn(Pr().check(Nr()),"America/New_York");Ut.add(Bj,{description:"The default timezone of the workspace"});var Tj=vn(Pr().check(Nr()),"en-US");Ut.add(Tj,{description:"The default locale of the workspace"});var _j=vn(vf(["silent","fatal","error","warn","success","info","debug","trace","all"]),"info");Ut.add(_j,{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 xj=vn(ZS(),!0);Ut.add(xj,{description:"Should the logging of the current Storm Workspace configuration be skipped?"});var Dj=vn(IM(Pr().check(Nr())),null);Ut.add(Dj,{description:"The filepath of the Storm config. When this field is null, no config file was found in the current workspace."});var rw=vn(ew(Pr(),CM()),{});Ut.add(rw,{description:"Configuration of each used extension"});var kj=Vs({$schema:aj,extends:TM,name:lj,variant:KM,namespace:uj,organization:cj,repository:pj,license:dj,homepage:hj,docs:fj,portal:Aj,licensing:mj,contact:gj,support:yj,branch:bj,preid:Ej,owner:Cj,bot:DM,release:FM,socials:VM,error:ej,mode:vj,workspaceRoot:Ij,skipCache:Sj,directories:JM,packageManager:wj,timezone:Bj,locale:Tj,logLevel:_j,skipConfigLogging:xj,registry:wM,configFile:Dj,colors:fu([tw,BM]),extensions:rw});Ut.add(rw,{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 Pj=["dark","light","base","brand","alternate","accent","link","success","help","info","warning","danger","fatal","positive","negative"];var Nj=require("node:fs"),Rj=require("node:fs/promises"),Qj=require("node:path");async function Fj(e){let t=DL,n,i,l,r,u,o=bc(e);if((0,Nj.existsSync)((0,Qj.join)(o,"package.json"))){let p=await(0,Rj.readFile)(hf(o,"package.json"),"utf8");if(p){let d=JSON.parse(p);d.name&&(l=d.name),d.namespace&&(r=d.namespace),d.repository&&(typeof d.repository=="string"?u=d.repository:d.repository.url&&(u=d.repository.url)),d.license&&(t=d.license),d.homepage&&(n=d.homepage),d.bugs&&(typeof d.bugs=="string"?i=d.bugs:d.bugs.url&&(i=d.bugs.url))}}return{workspaceRoot:o,name:l,namespace:r,repository:u,license:t,homepage:n,support:i}}function Oj(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:Jg},e.homepage&&(e.error.url??=`${e.homepage}/errors`))),e}var Lj=async(e,t,n={})=>{let i=t||bc(t),l=await Promise.all([$g({cwd:i,packageJson:!0,name:e,envName:e?.toUpperCase(),jitiOptions:{debug:!1,fsCache:process.env.STORM_SKIP_CACHE==="true"?!1:hf(process.env.STORM_CACHE_DIR||"node_modules/.cache/storm","jiti")},...n}),$g({cwd:i,packageJson:!0,name:e,envName:e?.toUpperCase(),jitiOptions:{debug:!1,fsCache:process.env.STORM_SKIP_CACHE==="true"?!1:hf(process.env.STORM_CACHE_DIR||"node_modules/.cache/storm","jiti")},configFile:e,...n})]);return yo(l[0]??{},l[1]??{})},Mj=async(e,t=[])=>{let n=e||bc(e),i=await Lj("storm-workspace",n),l=i.config,r=i.configFile;if(l&&r&&Object.keys(l).length>0&&!l.skipConfigLogging&&df(`Found Storm configuration file "${r.includes(`${n}/`)?r.replace(`${n}/`,""):r}" at "${n}"`,{logLevel:"all"}),t&&t.length>0){let u=await Promise.all(t.map(o=>Lj(o,n)));for(let o of u)o?.config&&o?.configFile&&Object.keys(o.config).length>0&&(!l.skipConfigLogging&&!o.config.skipConfigLogging&&df(`Found alternative configuration file "${o.configFile.includes(`${n}/`)?o.configFile.replace(`${n}/`,""):o.configFile}" at "${n}"`,{logLevel:"all"}),l=yo(o.config??{},l??{}))}if(!(!l||Object.keys(l).length===0))return l.configFile=r,l};$l();var $j=e=>{let t=`STORM_EXTENSION_${e.toUpperCase()}_`;return Object.keys(process.env).filter(n=>n.startsWith(t)).reduce((n,i)=>{let l=i.replace(t,"").split("_").map(r=>r.length>0?r.trim().charAt(0).toUpperCase()+r.trim().slice(1):"").join("");return l&&(n[l]=process.env[i]),n},{})},Vj=()=>{let e="STORM_",t={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`]?gn(process.env[`${e}WORKSPACE_CONFIG_FILE`]):void 0,workspaceRoot:process.env[`${e}WORKSPACE_ROOT`]?gn(process.env[`${e}WORKSPACE_ROOT`]):void 0,directories:{cache:process.env[`${e}CACHE_DIR`]?gn(process.env[`${e}CACHE_DIR`]):process.env[`${e}CACHE_DIRECTORY`]?gn(process.env[`${e}CACHE_DIRECTORY`]):void 0,data:process.env[`${e}DATA_DIR`]?gn(process.env[`${e}DATA_DIR`]):process.env[`${e}DATA_DIRECTORY`]?gn(process.env[`${e}DATA_DIRECTORY`]):void 0,config:process.env[`${e}CONFIG_DIR`]?gn(process.env[`${e}CONFIG_DIR`]):process.env[`${e}CONFIG_DIRECTORY`]?gn(process.env[`${e}CONFIG_DIRECTORY`]):void 0,temp:process.env[`${e}TEMP_DIR`]?gn(process.env[`${e}TEMP_DIR`]):process.env[`${e}TEMP_DIRECTORY`]?gn(process.env[`${e}TEMP_DIRECTORY`]):void 0,log:process.env[`${e}LOG_DIR`]?gn(process.env[`${e}LOG_DIR`]):process.env[`${e}LOG_DIRECTORY`]?gn(process.env[`${e}LOG_DIRECTORY`]):void 0,build:process.env[`${e}BUILD_DIR`]?gn(process.env[`${e}BUILD_DIR`]):process.env[`${e}BUILD_DIRECTORY`]?gn(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`]))?CL(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},n=Object.keys(process.env).filter(l=>l.startsWith(`${e}COLOR_`)&&Pj.every(r=>!l.startsWith(`${e}COLOR_LIGHT_${r}`)&&!l.startsWith(`${e}COLOR_DARK_${r}`)));t.colors=n.length>0?n.reduce((l,r)=>(l[r]=jj(e,r),l),{}):jj(e),t.docs===_L&&(t.homepage===ff?t.docs=`${ff}/projects/${t.name}/docs`:t.docs=`${t.homepage}/docs`),t.licensing===xL&&(t.homepage===ff?t.licensing=`${ff}/projects/${t.name}/licensing`:t.licensing=`${t.homepage}/docs`);let i=process.env[`${e}WORKSPACE_CONFIG`];if(i){let l=JSON.parse(i);t={...t,...l,colors:{...t.colors,...l.colors},extensions:{...t.extensions,...l.extensions}}}return t},jj=(e,t)=>{let n=`COLOR_${t&&t!=="base"?`${t}_`:""}`.toUpperCase();return process.env[`${e}${n}LIGHT_BRAND`]||process.env[`${e}${n}DARK_BRAND`]?WX(e+n):HX(e+n)},HX=e=>{let t=[];if(process.env[`${e}GRADIENT_START`]&&process.env[`${e}GRADIENT_END`])t.push(process.env[`${e}GRADIENT_START`],process.env[`${e}GRADIENT_END`]);else if(process.env[`${e}GRADIENT_0`]||process.env[`${e}GRADIENT_1`]){let n=process.env[`${e}GRADIENT_0`]?0:1;for(;process.env[`${e}GRADIENT_${n}`];)t.push(process.env[`${e}GRADIENT_${n}`]),n++}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`],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:t}},WX=e=>({light:Uj(`${e}_LIGHT_`),dark:Uj(`${e}_DARK_`)}),Uj=e=>{let t=[];if(process.env[`${e}GRADIENT_START`]&&process.env[`${e}GRADIENT_END`])t.push(process.env[`${e}GRADIENT_START`],process.env[`${e}GRADIENT_END`]);else if(process.env[`${e}GRADIENT_0`]||process.env[`${e}GRADIENT_1`]){let n=process.env[`${e}GRADIENT_0`]?0:1;for(;process.env[`${e}GRADIENT_${n}`];)t.push(process.env[`${e}GRADIENT_${n}`]),n++}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`],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:t}};var qX=(e,t)=>{for(let n of Object.keys(t??{}))if(t[n]){let i=n?.replace(/([A-Z])+/g,r=>r?r[0]?.toUpperCase()+r.slice(1):"").split(/(?=[A-Z])|[.\-\s_]/).map(r=>r.toLowerCase())??[],l;if(i.length===0)return;i.length===1?l=i[0]?.toUpperCase()??"":l=i.reduce((r,u)=>`${r}_${u.toLowerCase()}`),process.env[`STORM_EXTENSION_${e.toUpperCase()}_${l.toUpperCase()}`]=t[n]}},Hj=e=>{let t="STORM_";if(e.extends&&(process.env[`${t}EXTENDS`]=Array.isArray(e.extends)?JSON.stringify(e.extends):e.extends),e.name&&(process.env[`${t}NAME`]=e.name),e.variant&&(process.env[`${t}VARIANT`]=e.variant),e.namespace&&(process.env[`${t}NAMESPACE`]=e.namespace),e.owner&&(process.env[`${t}OWNER`]=e.owner),e.bot&&(process.env[`${t}BOT_NAME`]=e.bot.name,process.env[`${t}BOT_EMAIL`]=e.bot.email),e.error&&(process.env[`${t}ERROR_CODES_FILE`]=e.error.codesFile,process.env[`${t}ERROR_URL`]=e.error.url),e.release&&(e.release.banner&&(typeof e.release.banner=="string"?(process.env[`${t}RELEASE_BANNER`]=e.release.banner,process.env[`${t}RELEASE_BANNER_URL`]=e.release.banner):(process.env[`${t}RELEASE_BANNER`]=e.release.banner.url,process.env[`${t}RELEASE_BANNER_URL`]=e.release.banner.url,process.env[`${t}RELEASE_BANNER_ALT`]=e.release.banner.alt)),process.env[`${t}RELEASE_HEADER`]=e.release.header,process.env[`${t}RELEASE_FOOTER`]=e.release.footer),e.socials&&(e.socials.twitter&&(process.env[`${t}SOCIAL_TWITTER`]=e.socials.twitter),e.socials.discord&&(process.env[`${t}SOCIAL_DISCORD`]=e.socials.discord),e.socials.telegram&&(process.env[`${t}SOCIAL_TELEGRAM`]=e.socials.telegram),e.socials.slack&&(process.env[`${t}SOCIAL_SLACK`]=e.socials.slack),e.socials.medium&&(process.env[`${t}SOCIAL_MEDIUM`]=e.socials.medium),e.socials.github&&(process.env[`${t}SOCIAL_GITHUB`]=e.socials.github)),e.organization&&(typeof e.organization=="string"?(process.env[`${t}ORG`]=e.organization,process.env[`${t}ORG_NAME`]=e.organization,process.env[`${t}ORGANIZATION`]=e.organization,process.env[`${t}ORGANIZATION_NAME`]=e.organization):(process.env[`${t}ORG`]=e.organization.name,process.env[`${t}ORG_NAME`]=e.organization.name,process.env[`${t}ORGANIZATION`]=e.organization.name,process.env[`${t}ORGANIZATION_NAME`]=e.organization.name,e.organization.url&&(process.env[`${t}ORG_URL`]=e.organization.url,process.env[`${t}ORGANIZATION_URL`]=e.organization.url),e.organization.description&&(process.env[`${t}ORG_DESCRIPTION`]=e.organization.description,process.env[`${t}ORGANIZATION_DESCRIPTION`]=e.organization.description),e.organization.logo&&(process.env[`${t}ORG_LOGO`]=e.organization.logo,process.env[`${t}ORGANIZATION_LOGO`]=e.organization.logo),e.organization.icon&&(process.env[`${t}ORG_ICON`]=e.organization.icon,process.env[`${t}ORGANIZATION_ICON`]=e.organization.icon))),e.packageManager&&(process.env[`${t}PACKAGE_MANAGER`]=e.packageManager),e.license&&(process.env[`${t}LICENSE`]=e.license),e.homepage&&(process.env[`${t}HOMEPAGE`]=e.homepage),e.docs&&(process.env[`${t}DOCS`]=e.docs),e.portal&&(process.env[`${t}PORTAL`]=e.portal),e.licensing&&(process.env[`${t}LICENSING`]=e.licensing),e.contact&&(process.env[`${t}CONTACT`]=e.contact),e.support&&(process.env[`${t}SUPPORT`]=e.support),e.timezone&&(process.env[`${t}TIMEZONE`]=e.timezone,process.env.TZ=e.timezone,process.env.DEFAULT_TIMEZONE=e.timezone,process.env.TIMEZONE=e.timezone),e.locale&&(process.env[`${t}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[`${t}WORKSPACE_CONFIG_FILE`]=gn(e.configFile)),e.workspaceRoot&&(process.env[`${t}WORKSPACE_ROOT`]=gn(e.workspaceRoot),process.env.NX_WORKSPACE_ROOT=gn(e.workspaceRoot),process.env.NX_WORKSPACE_ROOT_PATH=gn(e.workspaceRoot)),e.directories&&(!e.skipCache&&e.directories.cache&&(process.env[`${t}CACHE_DIR`]=gn(e.directories.cache),process.env[`${t}CACHE_DIRECTORY`]=process.env[`${t}CACHE_DIR`]),e.directories.data&&(process.env[`${t}DATA_DIR`]=gn(e.directories.data),process.env[`${t}DATA_DIRECTORY`]=process.env[`${t}DATA_DIR`]),e.directories.config&&(process.env[`${t}CONFIG_DIR`]=gn(e.directories.config),process.env[`${t}CONFIG_DIRECTORY`]=process.env[`${t}CONFIG_DIR`]),e.directories.temp&&(process.env[`${t}TEMP_DIR`]=gn(e.directories.temp),process.env[`${t}TEMP_DIRECTORY`]=process.env[`${t}TEMP_DIR`]),e.directories.log&&(process.env[`${t}LOG_DIR`]=gn(e.directories.log),process.env[`${t}LOG_DIRECTORY`]=process.env[`${t}LOG_DIR`]),e.directories.build&&(process.env[`${t}BUILD_DIR`]=gn(e.directories.build),process.env[`${t}BUILD_DIRECTORY`]=process.env[`${t}BUILD_DIR`])),e.skipCache!==void 0&&(process.env[`${t}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[`${t}MODE`]=e.mode,process.env.NODE_ENV=e.mode,process.env.ENVIRONMENT=e.mode),e.colors?.base?.light||e.colors?.base?.dark)for(let n of Object.keys(e.colors))Gj(`${t}COLOR_${n}_`,e.colors[n]);else Gj(`${t}COLOR_`,e.colors);e.repository&&(process.env[`${t}REPOSITORY`]=e.repository),e.branch&&(process.env[`${t}BRANCH`]=e.branch),e.preid&&(process.env[`${t}PRE_ID`]=String(e.preid)),e.registry&&(e.registry.github&&(process.env[`${t}REGISTRY_GITHUB`]=String(e.registry.github)),e.registry.npm&&(process.env[`${t}REGISTRY_NPM`]=String(e.registry.npm)),e.registry.cargo&&(process.env[`${t}REGISTRY_CARGO`]=String(e.registry.cargo)),e.registry.cyclone&&(process.env[`${t}REGISTRY_CYCLONE`]=String(e.registry.cyclone)),e.registry.container&&(process.env[`${t}REGISTRY_CONTAINER`]=String(e.registry.container))),e.logLevel&&(process.env[`${t}LOG_LEVEL`]=String(e.logLevel),process.env.LOG_LEVEL=String(e.logLevel),process.env.NX_VERBOSE_LOGGING=String(ed(e.logLevel)>=$r.DEBUG),process.env.RUST_BACKTRACE=ed(e.logLevel)>=$r.DEBUG?"full":"none"),e.skipConfigLogging!==void 0&&(process.env[`${t}SKIP_CONFIG_LOGGING`]=String(e.skipConfigLogging)),process.env[`${t}WORKSPACE_CONFIG`]=JSON.stringify(e);for(let n of Object.keys(e.extensions??{}))e.extensions[n]&&Object.keys(e.extensions[n])&&qX(n,e.extensions[n])},Gj=(e,t)=>t?.light?.brand||t?.dark?.brand?JX(e,t):YX(e,t),YX=(e,t)=>{if(t.dark&&(process.env[`${e}DARK`]=t.dark),t.light&&(process.env[`${e}LIGHT`]=t.light),t.brand&&(process.env[`${e}BRAND`]=t.brand),t.alternate&&(process.env[`${e}ALTERNATE`]=t.alternate),t.accent&&(process.env[`${e}ACCENT`]=t.accent),t.link&&(process.env[`${e}LINK`]=t.link),t.help&&(process.env[`${e}HELP`]=t.help),t.success&&(process.env[`${e}SUCCESS`]=t.success),t.info&&(process.env[`${e}INFO`]=t.info),t.warning&&(process.env[`${e}WARNING`]=t.warning),t.danger&&(process.env[`${e}DANGER`]=t.danger),t.fatal&&(process.env[`${e}FATAL`]=t.fatal),t.positive&&(process.env[`${e}POSITIVE`]=t.positive),t.negative&&(process.env[`${e}NEGATIVE`]=t.negative),t.gradient)for(let n=0;n<t.gradient.length;n++)process.env[`${e}GRADIENT_${n}`]=t.gradient[n]},JX=(e,t)=>({light:zj(`${e}LIGHT_`,t.light),dark:zj(`${e}DARK_`,t.dark)}),zj=(e,t)=>{if(t.foreground&&(process.env[`${e}FOREGROUND`]=t.foreground),t.background&&(process.env[`${e}BACKGROUND`]=t.background),t.brand&&(process.env[`${e}BRAND`]=t.brand),t.alternate&&(process.env[`${e}ALTERNATE`]=t.alternate),t.accent&&(process.env[`${e}ACCENT`]=t.accent),t.link&&(process.env[`${e}LINK`]=t.link),t.help&&(process.env[`${e}HELP`]=t.help),t.success&&(process.env[`${e}SUCCESS`]=t.success),t.info&&(process.env[`${e}INFO`]=t.info),t.warning&&(process.env[`${e}WARNING`]=t.warning),t.danger&&(process.env[`${e}DANGER`]=t.danger),t.fatal&&(process.env[`${e}FATAL`]=t.fatal),t.positive&&(process.env[`${e}POSITIVE`]=t.positive),t.negative&&(process.env[`${e}NEGATIVE`]=t.negative),t.gradient)for(let n=0;n<t.gradient.length;n++)process.env[`${e}GRADIENT_${n}`]=t.gradient[n]};var nw=new WeakMap,If,KX=async(e,t,n,i=!1,l=!0)=>{let r;if(!If?.data||!If?.timestamp||If.timestamp<Date.now()-8e3){let u=n;u||(u=bc());let o=Vj(),p=await Mj(u);if(!p&&(i||IL("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"}),l===!1))return;let d=await Fj(u),s=yo(o,p,d);try{r=Oj(await kj.parseAsync(s)),r.workspaceRoot??=u}catch(a){throw new Error(`Failed to parse Storm Workspace configuration${a?.message?`: ${a.message}`:""}
|
|
755
|
+
`,Jg="tools/errors/codes.json",kL="The workspace's banner image";var QZ=Object.freeze({status:"aborted"});function kr(e,t,n){function i(o,p){var d;Object.defineProperty(o,"_zod",{value:o._zod??{},enumerable:!1}),(d=o._zod).traits??(d.traits=new Set),o._zod.traits.add(e),t(o,p);for(let s in u.prototype)s in o||Object.defineProperty(o,s,{value:u.prototype[s].bind(o)});o._zod.constr=u,o._zod.def=p}let l=n?.Parent??Object;class r extends l{}Object.defineProperty(r,"name",{value:e});function u(o){var p;let d=n?.Parent?new r:this;i(d,o),(p=d._zod).deferred??(p.deferred=[]);for(let s of d._zod.deferred)s();return d}return Object.defineProperty(u,"init",{value:i}),Object.defineProperty(u,Symbol.hasInstance,{value:o=>n?.Parent&&o instanceof n.Parent?!0:o?._zod?.traits?.has(e)}),Object.defineProperty(u,"name",{value:e}),u}var FZ=Symbol("zod_brand"),fl=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}};var QS={};function Al(e){return e&&Object.assign(QS,e),QS}var tr={};Nl(tr,{BIGINT_FORMAT_RANGES:()=>ML,Class:()=>OS,NUMBER_FORMAT_RANGES:()=>LL,aborted:()=>Cc,allowsEval:()=>QL,assert:()=>UZ,assertEqual:()=>OZ,assertIs:()=>MZ,assertNever:()=>jZ,assertNotEqual:()=>LZ,assignProp:()=>du,base64ToUint8Array:()=>UL,base64urlToUint8Array:()=>iX,cached:()=>Zg,captureStackTrace:()=>Xg,cleanEnum:()=>nX,cleanRegex:()=>gf,clone:()=>To,cloneDef:()=>VZ,createTransparentProxy:()=>YZ,defineLazy:()=>js,esc:()=>RL,escapeRegex:()=>rd,extend:()=>ZZ,finalizeIssue:()=>gl,floatSafeRemainder:()=>NL,getElementAtPath:()=>GZ,getEnumValues:()=>Kg,getLengthableOrigin:()=>$S,getParsedType:()=>qZ,getSizableOrigin:()=>jL,hexToUint8Array:()=>oX,isObject:()=>mf,isPlainObject:()=>td,issue:()=>VS,joinValues:()=>Sr,jsonStringifyReplacer:()=>LS,merge:()=>eX,mergeDefs:()=>hu,normalizeParams:()=>Ec,nullish:()=>MS,numKeys:()=>WZ,objectClone:()=>$Z,omit:()=>KZ,optionalKeys:()=>US,partial:()=>tX,pick:()=>JZ,prefixIssues:()=>ml,primitiveTypes:()=>OL,promiseAllObject:()=>zZ,propertyKeyTypes:()=>jS,randomString:()=>HZ,required:()=>rX,safeExtend:()=>XZ,shallowClone:()=>FL,stringifyPrimitive:()=>vr,uint8ArrayToBase64:()=>$L,uint8ArrayToBase64url:()=>sX,uint8ArrayToHex:()=>aX,unwrapMessage:()=>Af});function OZ(e){return e}function LZ(e){return e}function MZ(e){}function jZ(e){throw new Error}function UZ(e){}function Kg(e){let t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,l])=>t.indexOf(+i)===-1).map(([i,l])=>l)}function Sr(e,t="|"){return e.map(n=>vr(n)).join(t)}function LS(e,t){return typeof t=="bigint"?t.toString():t}function Zg(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function MS(e){return e==null}function gf(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function NL(e,t){let n=(e.toString().split(".")[1]||"").length,i=t.toString(),l=(i.split(".")[1]||"").length;if(l===0&&/\d?e-\d?/.test(i)){let p=i.match(/\d?e-(\d?)/);p?.[1]&&(l=Number.parseInt(p[1]))}let r=n>l?n:l,u=Number.parseInt(e.toFixed(r).replace(".","")),o=Number.parseInt(t.toFixed(r).replace(".",""));return u%o/10**r}var PL=Symbol("evaluating");function js(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==PL)return i===void 0&&(i=PL,i=n()),i},set(l){Object.defineProperty(e,t,{value:l})},configurable:!0})}function $Z(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function du(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function hu(...e){let t={};for(let n of e){let i=Object.getOwnPropertyDescriptors(n);Object.assign(t,i)}return Object.defineProperties({},t)}function VZ(e){return hu(e._zod.def)}function GZ(e,t){return t?t.reduce((n,i)=>n?.[i],e):e}function zZ(e){let t=Object.keys(e),n=t.map(i=>e[i]);return Promise.all(n).then(i=>{let l={};for(let r=0;r<t.length;r++)l[t[r]]=i[r];return l})}function HZ(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let i=0;i<e;i++)n+=t[Math.floor(Math.random()*t.length)];return n}function RL(e){return JSON.stringify(e)}var Xg="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function mf(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var QL=Zg(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function td(e){if(mf(e)===!1)return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(mf(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function FL(e){return td(e)?{...e}:Array.isArray(e)?[...e]:e}function WZ(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var qZ=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},jS=new Set(["string","number","symbol"]),OL=new Set(["string","number","bigint","boolean","symbol","undefined"]);function rd(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function To(e,t,n){let i=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(i._zod.parent=e),i}function Ec(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function YZ(e){let t;return new Proxy({},{get(n,i,l){return t??(t=e()),Reflect.get(t,i,l)},set(n,i,l,r){return t??(t=e()),Reflect.set(t,i,l,r)},has(n,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(n,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(n,i,l){return t??(t=e()),Reflect.defineProperty(t,i,l)}})}function vr(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function US(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var LL={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},ML={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function JZ(e,t){let n=e._zod.def,i=hu(e._zod.def,{get shape(){let l={};for(let r in t){if(!(r in n.shape))throw new Error(`Unrecognized key: "${r}"`);t[r]&&(l[r]=n.shape[r])}return du(this,"shape",l),l},checks:[]});return To(e,i)}function KZ(e,t){let n=e._zod.def,i=hu(e._zod.def,{get shape(){let l={...e._zod.def.shape};for(let r in t){if(!(r in n.shape))throw new Error(`Unrecognized key: "${r}"`);t[r]&&delete l[r]}return du(this,"shape",l),l},checks:[]});return To(e,i)}function ZZ(e,t){if(!td(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");let l=hu(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t};return du(this,"shape",r),r},checks:[]});return To(e,l)}function XZ(e,t){if(!td(t))throw new Error("Invalid input to safeExtend: expected a plain object");let n={...e._zod.def,get shape(){let i={...e._zod.def.shape,...t};return du(this,"shape",i),i},checks:e._zod.def.checks};return To(e,n)}function eX(e,t){let n=hu(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t._zod.def.shape};return du(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return To(e,n)}function tX(e,t,n){let i=hu(t._zod.def,{get shape(){let l=t._zod.def.shape,r={...l};if(n)for(let u in n){if(!(u in l))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(r[u]=e?new e({type:"optional",innerType:l[u]}):l[u])}else for(let u in l)r[u]=e?new e({type:"optional",innerType:l[u]}):l[u];return du(this,"shape",r),r},checks:[]});return To(t,i)}function rX(e,t,n){let i=hu(t._zod.def,{get shape(){let l=t._zod.def.shape,r={...l};if(n)for(let u in n){if(!(u in r))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(r[u]=new e({type:"nonoptional",innerType:l[u]}))}else for(let u in l)r[u]=new e({type:"nonoptional",innerType:l[u]});return du(this,"shape",r),r},checks:[]});return To(t,i)}function Cc(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function ml(e,t){return t.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}function Af(e){return typeof e=="string"?e:e?.message}function gl(e,t,n){let i={...e,path:e.path??[]};if(!e.message){let l=Af(e.inst?._zod.def?.error?.(e))??Af(t?.error?.(e))??Af(n.customError?.(e))??Af(n.localeError?.(e))??"Invalid input";i.message=l}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function jL(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function $S(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function VS(...e){let[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}function nX(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function UL(e){let t=atob(e),n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}function $L(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function iX(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return UL(t+n)}function sX(e){return $L(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function oX(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)n[i/2]=Number.parseInt(t.slice(i,i+2),16);return n}function aX(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var OS=class{constructor(...t){}};var VL=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,LS,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},GL=kr("$ZodError",VL),yf=kr("$ZodError",VL,{Parent:Error});var uX=e=>(t,n,i,l)=>{let r=i?Object.assign(i,{async:!1}):{async:!1},u=t._zod.run({value:n,issues:[]},r);if(u instanceof Promise)throw new fl;if(u.issues.length){let o=new(l?.Err??e)(u.issues.map(p=>gl(p,r,Al())));throw Xg(o,l?.callee),o}return u.value},ey=uX(yf),cX=e=>async(t,n,i,l)=>{let r=i?Object.assign(i,{async:!0}):{async:!0},u=t._zod.run({value:n,issues:[]},r);if(u instanceof Promise&&(u=await u),u.issues.length){let o=new(l?.Err??e)(u.issues.map(p=>gl(p,r,Al())));throw Xg(o,l?.callee),o}return u.value},ty=cX(yf),pX=e=>(t,n,i)=>{let l=i?{...i,async:!1}:{async:!1},r=t._zod.run({value:n,issues:[]},l);if(r instanceof Promise)throw new fl;return r.issues.length?{success:!1,error:new(e??GL)(r.issues.map(u=>gl(u,l,Al())))}:{success:!0,data:r.value}},bf=pX(yf),dX=e=>async(t,n,i)=>{let l=i?Object.assign(i,{async:!0}):{async:!0},r=t._zod.run({value:n,issues:[]},l);return r instanceof Promise&&(r=await r),r.issues.length?{success:!1,error:new e(r.issues.map(u=>gl(u,l,Al())))}:{success:!0,data:r.value}},Ef=dX(yf);var zL=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/;var hX="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",fX=new RegExp(`^${hX}$`);var HL=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)};var WL=/^(?:true|false)$/i;var nd=kr("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])});var qL=kr("$ZodCheckLengthEquals",(e,t)=>{var n;nd.init(e,t),(n=e._zod.def).when??(n.when=i=>{let l=i.value;return!MS(l)&&l.length!==void 0}),e._zod.onattach.push(i=>{let l=i._zod.bag;l.minimum=t.length,l.maximum=t.length,l.length=t.length}),e._zod.check=i=>{let l=i.value,r=l.length;if(r===t.length)return;let u=$S(l),o=r>t.length;i.issues.push({origin:u,...o?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),GS=kr("$ZodCheckStringFormat",(e,t)=>{var n,i;nd.init(e,t),e._zod.onattach.push(l=>{let r=l._zod.bag;r.format=t.format,t.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=l=>{t.pattern.lastIndex=0,!t.pattern.test(l.value)&&l.issues.push({origin:"string",code:"invalid_format",format:t.format,input:l.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),YL=kr("$ZodCheckRegex",(e,t)=>{GS.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}});var JL=kr("$ZodCheckOverwrite",(e,t)=>{nd.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var ZL={major:4,minor:1,patch:9};var Ss=kr("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ZL;let i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(let l of i)for(let r of l._zod.onattach)r(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let l=(u,o,p)=>{let d=Cc(u),s;for(let a of o){if(a._zod.def.when){if(!a._zod.def.when(u))continue}else if(d)continue;let h=u.issues.length,E=a._zod.check(u);if(E instanceof Promise&&p?.async===!1)throw new fl;if(s||E instanceof Promise)s=(s??Promise.resolve()).then(async()=>{await E,u.issues.length!==h&&(d||(d=Cc(u,h)))});else{if(u.issues.length===h)continue;d||(d=Cc(u,h))}}return s?s.then(()=>u):u},r=(u,o,p)=>{if(Cc(u))return u.aborted=!0,u;let d=l(o,i,p);if(d instanceof Promise){if(p.async===!1)throw new fl;return d.then(s=>e._zod.parse(s,p))}return e._zod.parse(d,p)};e._zod.run=(u,o)=>{if(o.skipChecks)return e._zod.parse(u,o);if(o.direction==="backward"){let d=e._zod.parse({value:u.value,issues:[]},{...o,skipChecks:!0});return d instanceof Promise?d.then(s=>r(s,u,o)):r(d,u,o)}let p=e._zod.parse(u,o);if(p instanceof Promise){if(o.async===!1)throw new fl;return p.then(d=>l(d,i,o))}return l(p,i,o)}}e["~standard"]={validate:l=>{try{let r=bf(e,l);return r.success?{value:r.data}:{issues:r.error?.issues}}catch{return Ef(e,l).then(u=>u.success?{value:u.data}:{issues:u.error?.issues})}},vendor:"zod",version:1}}),ny=kr("$ZodString",(e,t)=>{Ss.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??HL(e._zod.bag),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),zS=kr("$ZodStringFormat",(e,t)=>{GS.init(e,t),ny.init(e,t)});var nM=kr("$ZodURL",(e,t)=>{zS.init(e,t),e._zod.check=n=>{try{let i=n.value.trim(),l=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(l.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:zL.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(l.protocol.endsWith(":")?l.protocol.slice(0,-1):l.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=l.href:n.value=i;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}});var HS=kr("$ZodBoolean",(e,t)=>{Ss.init(e,t),e._zod.pattern=WL,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=!!n.value}catch{}let l=n.value;return typeof l=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:l,inst:e}),n}});var iM=kr("$ZodAny",(e,t)=>{Ss.init(e,t),e._zod.parse=n=>n});function XL(e,t,n){e.issues.length&&t.issues.push(...ml(n,e.issues)),t.value[n]=e.value}var sM=kr("$ZodArray",(e,t)=>{Ss.init(e,t),e._zod.parse=(n,i)=>{let l=n.value;if(!Array.isArray(l))return n.issues.push({expected:"array",code:"invalid_type",input:l,inst:e}),n;n.value=Array(l.length);let r=[];for(let u=0;u<l.length;u++){let o=l[u],p=t.element._zod.run({value:o,issues:[]},i);p instanceof Promise?r.push(p.then(d=>XL(d,n,u))):XL(p,n,u)}return r.length?Promise.all(r).then(()=>n):n}});function ry(e,t,n,i){e.issues.length&&t.issues.push(...ml(n,e.issues)),e.value===void 0?n in i&&(t.value[n]=void 0):t.value[n]=e.value}function AX(e){let t=Object.keys(e.shape);for(let i of t)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);let n=US(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function mX(e,t,n,i,l,r){let u=[],o=l.keySet,p=l.catchall._zod,d=p.def.type;for(let s of Object.keys(t)){if(o.has(s))continue;if(d==="never"){u.push(s);continue}let a=p.run({value:t[s],issues:[]},i);a instanceof Promise?e.push(a.then(h=>ry(h,n,s,t))):ry(a,n,s,t)}return u.length&&n.issues.push({code:"unrecognized_keys",keys:u,input:t,inst:r}),e.length?Promise.all(e).then(()=>n):n}var oM=kr("$ZodObject",(e,t)=>{Ss.init(e,t);let n=Zg(()=>AX(t));js(e._zod,"propValues",()=>{let u=t.shape,o={};for(let p in u){let d=u[p]._zod;if(d.values){o[p]??(o[p]=new Set);for(let s of d.values)o[p].add(s)}}return o});let i=mf,l=t.catchall,r;e._zod.parse=(u,o)=>{r??(r=n.value);let p=u.value;if(!i(p))return u.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),u;u.value={};let d=[],s=r.shape;for(let a of r.keys){let E=s[a]._zod.run({value:p[a],issues:[]},o);E instanceof Promise?d.push(E.then(b=>ry(b,u,a,p))):ry(E,u,a,p)}return l?mX(d,p,u,o,n.value,e):d.length?Promise.all(d).then(()=>u):u}});function eM(e,t,n,i){for(let r of e)if(r.issues.length===0)return t.value=r.value,t;let l=e.filter(r=>!Cc(r));return l.length===1?(t.value=l[0].value,l[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(r=>r.issues.map(u=>gl(u,i,Al())))}),t)}var aM=kr("$ZodUnion",(e,t)=>{Ss.init(e,t),js(e._zod,"optin",()=>t.options.some(l=>l._zod.optin==="optional")?"optional":void 0),js(e._zod,"optout",()=>t.options.some(l=>l._zod.optout==="optional")?"optional":void 0),js(e._zod,"values",()=>{if(t.options.every(l=>l._zod.values))return new Set(t.options.flatMap(l=>Array.from(l._zod.values)))}),js(e._zod,"pattern",()=>{if(t.options.every(l=>l._zod.pattern)){let l=t.options.map(r=>r._zod.pattern);return new RegExp(`^(${l.map(r=>gf(r.source)).join("|")})$`)}});let n=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(l,r)=>{if(n)return i(l,r);let u=!1,o=[];for(let p of t.options){let d=p._zod.run({value:l.value,issues:[]},r);if(d instanceof Promise)o.push(d),u=!0;else{if(d.issues.length===0)return d;o.push(d)}}return u?Promise.all(o).then(p=>eM(p,l,e,r)):eM(o,l,e,r)}});var lM=kr("$ZodRecord",(e,t)=>{Ss.init(e,t),e._zod.parse=(n,i)=>{let l=n.value;if(!td(l))return n.issues.push({expected:"record",code:"invalid_type",input:l,inst:e}),n;let r=[];if(t.keyType._zod.values){let u=t.keyType._zod.values;n.value={};for(let p of u)if(typeof p=="string"||typeof p=="number"||typeof p=="symbol"){let d=t.valueType._zod.run({value:l[p],issues:[]},i);d instanceof Promise?r.push(d.then(s=>{s.issues.length&&n.issues.push(...ml(p,s.issues)),n.value[p]=s.value})):(d.issues.length&&n.issues.push(...ml(p,d.issues)),n.value[p]=d.value)}let o;for(let p in l)u.has(p)||(o=o??[],o.push(p));o&&o.length>0&&n.issues.push({code:"unrecognized_keys",input:l,inst:e,keys:o})}else{n.value={};for(let u of Reflect.ownKeys(l)){if(u==="__proto__")continue;let o=t.keyType._zod.run({value:u,issues:[]},i);if(o instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(o.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:o.issues.map(d=>gl(d,i,Al())),input:u,path:[u],inst:e}),n.value[o.value]=o.value;continue}let p=t.valueType._zod.run({value:l[u],issues:[]},i);p instanceof Promise?r.push(p.then(d=>{d.issues.length&&n.issues.push(...ml(u,d.issues)),n.value[o.value]=d.value})):(p.issues.length&&n.issues.push(...ml(u,p.issues)),n.value[o.value]=p.value)}}return r.length?Promise.all(r).then(()=>n):n}});var uM=kr("$ZodEnum",(e,t)=>{Ss.init(e,t);let n=Kg(t.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp(`^(${n.filter(l=>jS.has(typeof l)).map(l=>typeof l=="string"?rd(l):l.toString()).join("|")})$`),e._zod.parse=(l,r)=>{let u=l.value;return i.has(u)||l.issues.push({code:"invalid_value",values:n,input:u,inst:e}),l}}),cM=kr("$ZodLiteral",(e,t)=>{if(Ss.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?rd(n):n?rd(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,i)=>{let l=n.value;return e._zod.values.has(l)||n.issues.push({code:"invalid_value",values:t.values,input:l,inst:e}),n}});function tM(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var pM=kr("$ZodOptional",(e,t)=>{Ss.init(e,t),e._zod.optin="optional",e._zod.optout="optional",js(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),js(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${gf(n.source)})?$`):void 0}),e._zod.parse=(n,i)=>{if(t.innerType._zod.optin==="optional"){let l=t.innerType._zod.run(n,i);return l instanceof Promise?l.then(r=>tM(r,n.value)):tM(l,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,i)}}),dM=kr("$ZodNullable",(e,t)=>{Ss.init(e,t),js(e._zod,"optin",()=>t.innerType._zod.optin),js(e._zod,"optout",()=>t.innerType._zod.optout),js(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${gf(n.source)}|null)$`):void 0}),js(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=>n.value===null?n:t.innerType._zod.run(n,i)}),hM=kr("$ZodDefault",(e,t)=>{Ss.init(e,t),e._zod.optin="optional",js(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);if(n.value===void 0)return n.value=t.defaultValue,n;let l=t.innerType._zod.run(n,i);return l instanceof Promise?l.then(r=>rM(r,t)):rM(l,t)}});function rM(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var EX=Symbol("ZodOutput"),CX=Symbol("ZodInput"),iy=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let i=n[0];if(this._map.set(t,i),i&&typeof i=="object"&&"id"in i){if(this._idmap.has(i.id))throw new Error(`ID ${i.id} already exists in the registry`);this._idmap.set(i.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){let n=t._zod.parent;if(n){let i={...this.get(n)??{}};delete i.id;let l={...i,...this._map.get(t)};return Object.keys(l).length?l:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function WS(){return new iy}function AM(e,t){return new e({type:"string",...Ec(t)})}function mM(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Ec(t)})}function gM(e,t){return new e({type:"boolean",...Ec(t)})}function yM(e){return new e({type:"any"})}function qS(e,t){return new qL({check:"length_equals",...Ec(t),length:e})}function YS(e,t){return new YL({check:"string_format",format:"regex",...Ec(t),pattern:e})}function JS(e){return new JL({check:"overwrite",tx:e})}function Nr(){return JS(e=>e.trim())}function Us(){return JS(e=>e.toLowerCase())}var _o=kr("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");Ss.init(e,t),e.def=t,e.type=t.type,e.parse=(n,i)=>ey(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>bf(e,n,i),e.parseAsync=async(n,i)=>ty(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>Ef(e,n,i),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),e.clone=(n,i)=>To(e,n,i),e.brand=()=>e,e.register=((n,i)=>(n.add(e,i),e))}),KS=kr("ZodMiniString",(e,t)=>{ny.init(e,t),_o.init(e,t)});function Pr(e){return AM(KS,e)}var bM=kr("ZodMiniStringFormat",(e,t)=>{zS.init(e,t),KS.init(e,t)});var wX=kr("ZodMiniURL",(e,t)=>{nM.init(e,t),bM.init(e,t)});function $s(e){return mM(wX,e)}var EM=kr("ZodMiniBoolean",(e,t)=>{HS.init(e,t),_o.init(e,t)});function ZS(e){return gM(EM,e)}var BX=kr("ZodMiniAny",(e,t)=>{iM.init(e,t),_o.init(e,t)});function CM(){return yM(BX)}var TX=kr("ZodMiniArray",(e,t)=>{sM.init(e,t),_o.init(e,t)});function XS(e,t){return new TX({type:"array",element:e,...tr.normalizeParams(t)})}var _X=kr("ZodMiniObject",(e,t)=>{oM.init(e,t),_o.init(e,t),tr.defineLazy(e,"shape",()=>t.shape)});function Vs(e,t){let n={type:"object",get shape(){return tr.assignProp(this,"shape",{...e}),this.shape},...tr.normalizeParams(t)};return new _X(n)}var xX=kr("ZodMiniUnion",(e,t)=>{aM.init(e,t),_o.init(e,t)});function fu(e,t){return new xX({type:"union",options:e,...tr.normalizeParams(t)})}var DX=kr("ZodMiniRecord",(e,t)=>{lM.init(e,t),_o.init(e,t)});function ew(e,t,n){return new DX({type:"record",keyType:e,valueType:t,...tr.normalizeParams(n)})}var kX=kr("ZodMiniEnum",(e,t)=>{uM.init(e,t),_o.init(e,t),e.options=Object.values(t.entries)});function vf(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new kX({type:"enum",entries:n,...tr.normalizeParams(t)})}var PX=kr("ZodMiniLiteral",(e,t)=>{cM.init(e,t),_o.init(e,t)});function vM(e,t){return new PX({type:"literal",values:Array.isArray(e)?e:[e],...tr.normalizeParams(t)})}var NX=kr("ZodMiniOptional",(e,t)=>{pM.init(e,t),_o.init(e,t)});function rn(e){return new NX({type:"optional",innerType:e})}var RX=kr("ZodMiniNullable",(e,t)=>{dM.init(e,t),_o.init(e,t)});function IM(e){return new RX({type:"nullable",innerType:e})}var QX=kr("ZodMiniDefault",(e,t)=>{hM.init(e,t),_o.init(e,t)});function vn(e,t){return new QX({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():tr.shallowClone(t)}})}var Ut=WS(),as=Pr().check(qS(7),Us(),YS(/^#([0-9a-f]{3}){1,2}$/i),Nr());Ut.add(as,{description:"A base schema for describing the format of colors"});var oy=vn(as,"#151718");Ut.add(oy,{description:"The dark background color of the workspace"});var ay=vn(as,"#cbd5e1");Ut.add(ay,{description:"The light background color of the workspace"});var ly=vn(as,"#1fb2a6");Ut.add(ly,{description:"The primary brand specific color of the workspace"});var uy=rn(as);Ut.add(uy,{description:"The alternate brand specific color of the workspace"});var cy=rn(as);Ut.add(cy,{description:"The secondary brand specific color of the workspace"});var py=vn(as,"#3fa6ff");Ut.add(py,{description:"The color used to display hyperlink text"});var dy=vn(as,"#818cf8");Ut.add(dy,{description:"The second brand specific color of the workspace"});var hy=vn(as,"#45b27e");Ut.add(hy,{description:"The success color of the workspace"});var fy=vn(as,"#38bdf8");Ut.add(fy,{description:"The informational color of the workspace"});var Ay=vn(as,"#f3d371");Ut.add(Ay,{description:"The warning color of the workspace"});var my=vn(as,"#d8314a");Ut.add(my,{description:"The danger color of the workspace"});var gy=rn(as);Ut.add(gy,{description:"The fatal color of the workspace"});var yy=vn(as,"#4ade80");Ut.add(yy,{description:"The positive number color of the workspace"});var by=vn(as,"#ef4444");Ut.add(by,{description:"The negative number color of the workspace"});var Ey=rn(XS(as));Ut.add(Ey,{description:"The color stops for the base gradient color pattern used in the workspace"});var $X=Vs({foreground:ay,background:oy,brand:ly,alternate:uy,accent:cy,link:py,help:dy,success:hy,info:fy,warning:Ay,danger:my,fatal:gy,positive:yy,negative:by,gradient:Ey}),VX=Vs({foreground:oy,background:ay,brand:ly,alternate:uy,accent:cy,link:py,help:dy,success:hy,info:fy,warning:Ay,danger:my,fatal:gy,positive:yy,negative:by,gradient:Ey}),GX=Vs({dark:$X,light:VX}),zX=Vs({dark:oy,light:ay,brand:ly,alternate:uy,accent:cy,link:py,help:dy,success:hy,info:fy,warning:Ay,danger:my,fatal:gy,positive:yy,negative:by,gradient:Ey}),id=rn($s());Ut.add(id,{description:"A remote registry URL used to publish distributable packages"});var wM=vn(Vs({github:id,npm:id,cargo:id,cyclone:id,container:id}),{});Ut.add(wM,{description:"A list of remote registry URLs used by Storm Software"});var tw=fu([zX,GX]);Ut.add(tw,{description:"Colors used for various workspace elements"});var BM=ew(fu([fu([vM("base"),Pr()]),Pr()]),tw);Ut.add(BM,{description:"Storm theme config values used for styling various package elements"});var TM=rn(fu([Pr().check(Nr()),XS(Pr().check(Nr()))]));Ut.add(TM,{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 _M=Pr().check(Nr());Ut.add(_M,{description:"The workspace bot user's name (this is the bot that will be used to perform various tasks)"});var xM=Pr().check(Nr());Ut.add(xM,{description:"The email of the workspace bot"});var DM=Vs({name:_M,email:xM});Ut.add(DM,{description:"The workspace's bot user's config used to automated various operations tasks"});var kM=rn(Pr().check(Nr(),$s()));Ut.add(kM,{description:"A URL to a banner image used to display the workspace's release"});var PM=vn(Pr().check(Nr()),kL);Ut.add(PM,{description:"The alt text for the workspace's release banner image"});var NM=Vs({url:kM,alt:PM});Ut.add(NM,{description:"The workspace's banner image used during the release process"});var RM=rn(Pr().check(Nr()));Ut.add(RM,{description:"A header message appended to the start of the workspace's release notes"});var QM=rn(Pr().check(Nr()));Ut.add(QM,{description:"A footer message appended to the end of the workspace's release notes"});var FM=Vs({banner:fu([NM,Pr().check(Nr(),$s())]),header:RM,footer:QM});Ut.add(FM,{description:"The workspace's release config used during the release process"});var OM=rn(Pr().check(Nr()));Ut.add(OM,{description:"A Twitter/X account associated with the organization/project"});var LM=rn(Pr().check(Nr()));Ut.add(LM,{description:"A Discord account associated with the organization/project"});var MM=rn(Pr().check(Nr()));Ut.add(MM,{description:"A Telegram account associated with the organization/project"});var jM=rn(Pr().check(Nr()));Ut.add(jM,{description:"A Slack account associated with the organization/project"});var UM=rn(Pr().check(Nr()));Ut.add(UM,{description:"A Medium account associated with the organization/project"});var $M=rn(Pr().check(Nr()));Ut.add($M,{description:"A GitHub account associated with the organization/project"});var VM=Vs({twitter:OM,discord:LM,telegram:MM,slack:jM,medium:UM,github:$M});Ut.add(VM,{description:"The workspace's account config used to store various social media links"});var GM=rn(Pr().check(Nr()));Ut.add(GM,{description:"The directory used to store the environment's cached file data"});var zM=rn(Pr().check(Nr()));Ut.add(zM,{description:"The directory used to store the environment's data files"});var HM=rn(Pr().check(Nr()));Ut.add(HM,{description:"The directory used to store the environment's configuration files"});var WM=rn(Pr().check(Nr()));Ut.add(WM,{description:"The directory used to store the environment's temp files"});var qM=rn(Pr().check(Nr()));Ut.add(qM,{description:"The directory used to store the environment's log files"});var YM=vn(Pr().check(Nr()),"dist");Ut.add(YM,{description:"The directory used to store the workspace's distributable files after a build (relative to the workspace root)"});var JM=Vs({cache:GM,data:zM,config:HM,temp:WM,log:qM,build:YM});Ut.add(JM,{description:"Various directories used by the workspace to store data, cache, and configuration files"});var KM=vn(vf(["minimal","monorepo"]),"monorepo");Ut.add(KM,{description:"The variant of the workspace. This can be used to enable or disable certain features or configurations."});var ZM=vn(Pr().check(Nr()),Jg);Ut.add(ZM,{description:"The path to the workspace's error codes JSON file"});var XM=rn($s());Ut.add(XM,{description:"A URL to a page that looks up the workspace's error messages given a specific error code"});var ej=Vs({codesFile:ZM,url:XM});Ut.add(ej,{description:"The workspace's error config used when creating error details during a system error"});var tj=rn(Pr().check(Nr(),Us()));Ut.add(tj,{description:"The name of the organization"});var rj=rn(Pr().check(Nr()));Ut.add(rj,{description:"A description of the organization"});var nj=rn($s());Ut.add(nj,{description:"A URL to the organization's logo image"});var ij=rn($s());Ut.add(ij,{description:"A URL to the organization's icon image"});var sj=rn($s());Ut.add(sj,{description:"A URL to a page that provides more information about the organization"});var oj=Vs({name:tj,description:rj,logo:nj,icon:ij,url:sj});Ut.add(oj,{description:"The workspace's organization details"});var aj=vn(Pr().check(Nr(),Us()),"https://public.storm-cdn.com/schemas/storm-workspace.schema.json");Ut.add(aj,{description:"The URL or file path to the JSON schema file that describes the Storm configuration file"});var lj=Pr().check(Nr(),Us());Ut.add(lj,{description:"The name of the workspace/project/service/package/scope using this configuration"});var uj=Pr().check(Nr(),Us());Ut.add(uj,{description:"The namespace of the workspace/project/service/package/scope using this configuration"});var cj=fu([oj,Pr().check(Nr(),Us())]);Ut.add(cj,{description:"The organization of the workspace. This can be a string or an object containing the organization's details"});var pj=Pr().check(Nr(),Us());Ut.add(pj,{description:"The repo URL of the workspace (i.e. the GitHub repository URL)"});var dj=vn(Pr().check(Nr()),"Apache-2.0");Ut.add(dj,{description:"The license type of the package"});var hj=rn($s());Ut.add(hj,{description:"The homepage of the workspace"});var fj=rn($s());Ut.add(fj,{description:"The documentation site for the workspace"});var Aj=rn($s());Ut.add(Aj,{description:"The development portal site for the workspace"});var mj=rn($s());Ut.add(mj,{description:"The licensing site for the workspace"});var gj=rn($s());Ut.add(gj,{description:"The contact site for the workspace"});var yj=rn($s());Ut.add(yj,{description:"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"});var bj=vn(Pr().check(Nr(),Us()),"main");Ut.add(bj,{description:"The branch of the workspace"});var Ej=rn(Pr().check(Nr(),Us()));Ut.add(Ej,{description:"A tag specifying the version pre-release identifier"});var Cj=rn(Pr().check(Nr(),Us()));Ut.add(Cj,{description:"The owner of the package"});var vj=vn(vf(["development","staging","production"]).check(Nr(),Us()),"production");Ut.add(vj,{description:"The current runtime environment mode for the package"});var Ij=Pr().check(Nr(),Us());Ut.add(Ij,{description:"The root directory of the workspace"});var Sj=vn(ZS(),!1);Ut.add(Sj,{description:"Should all known types of workspace caching be skipped?"});var wj=vn(vf(["npm","yarn","pnpm","bun"]),"npm");Ut.add(wj,{description:"The JavaScript/TypeScript package manager used by the repository"});var Bj=vn(Pr().check(Nr()),"America/New_York");Ut.add(Bj,{description:"The default timezone of the workspace"});var Tj=vn(Pr().check(Nr()),"en-US");Ut.add(Tj,{description:"The default locale of the workspace"});var _j=vn(vf(["silent","fatal","error","warn","success","info","debug","trace","all"]),"info");Ut.add(_j,{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 xj=vn(ZS(),!0);Ut.add(xj,{description:"Should the logging of the current Storm Workspace configuration be skipped?"});var Dj=vn(IM(Pr().check(Nr())),null);Ut.add(Dj,{description:"The filepath of the Storm config. When this field is null, no config file was found in the current workspace."});var rw=vn(ew(Pr(),CM()),{});Ut.add(rw,{description:"Configuration of each used extension"});var kj=Vs({$schema:aj,extends:TM,name:lj,variant:KM,namespace:uj,organization:cj,repository:pj,license:dj,homepage:hj,docs:fj,portal:Aj,licensing:mj,contact:gj,support:yj,branch:bj,preid:Ej,owner:Cj,bot:DM,release:FM,socials:VM,error:ej,mode:vj,workspaceRoot:Ij,skipCache:Sj,directories:JM,packageManager:wj,timezone:Bj,locale:Tj,logLevel:_j,skipConfigLogging:xj,registry:wM,configFile:Dj,colors:fu([tw,BM]),extensions:rw});Ut.add(rw,{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 Pj=["dark","light","base","brand","alternate","accent","link","success","help","info","warning","danger","fatal","positive","negative"];var Nj=require("node:fs"),Rj=require("node:fs/promises"),Qj=require("node:path");async function Fj(e){let t=DL,n,i,l,r,u,o=bc(e);if((0,Nj.existsSync)((0,Qj.join)(o,"package.json"))){let p=await(0,Rj.readFile)(hf(o,"package.json"),"utf8");if(p){let d=JSON.parse(p);d.name&&(l=d.name),d.namespace&&(r=d.namespace),d.repository&&(typeof d.repository=="string"?u=d.repository:d.repository.url&&(u=d.repository.url)),d.license&&(t=d.license),d.homepage&&(n=d.homepage),d.bugs&&(typeof d.bugs=="string"?i=d.bugs:d.bugs.url&&(i=d.bugs.url))}}return{workspaceRoot:o,name:l,namespace:r,repository:u,license:t,homepage:n,support:i}}function Oj(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:Jg},e.homepage&&(e.error.url??=`${e.homepage}/errors`))),e}var Lj=async(e,t,n={})=>{let i=t||bc(t),l=await Promise.all([$g({cwd:i,packageJson:!0,name:e,envName:e?.toUpperCase(),jitiOptions:{debug:!1,fsCache:process.env.STORM_SKIP_CACHE==="true"?!1:hf(process.env.STORM_CACHE_DIR||"node_modules/.cache/storm","jiti")},...n}),$g({cwd:i,packageJson:!0,name:e,envName:e?.toUpperCase(),jitiOptions:{debug:!1,fsCache:process.env.STORM_SKIP_CACHE==="true"?!1:hf(process.env.STORM_CACHE_DIR||"node_modules/.cache/storm","jiti")},configFile:e,...n})]);return yo(l[0]??{},l[1]??{})},Mj=async(e,t=[])=>{let n=e||bc(e),i=await Lj("storm-workspace",n),l=i.config,r=i.configFile;if(l&&r&&Object.keys(l).length>0&&!l.skipConfigLogging&&df(`Found Storm configuration file "${r.includes(`${n}/`)?r.replace(`${n}/`,""):r}" at "${n}"`,{logLevel:"all"}),t&&t.length>0){let u=await Promise.all(t.map(o=>Lj(o,n)));for(let o of u)o?.config&&o?.configFile&&Object.keys(o.config).length>0&&(!l.skipConfigLogging&&!o.config.skipConfigLogging&&df(`Found alternative configuration file "${o.configFile.includes(`${n}/`)?o.configFile.replace(`${n}/`,""):o.configFile}" at "${n}"`,{logLevel:"all"}),l=yo(o.config??{},l??{}))}if(!(!l||Object.keys(l).length===0))return l.configFile=r,l};$l();var $j=e=>{let t=`STORM_EXTENSION_${e.toUpperCase()}_`;return Object.keys(process.env).filter(n=>n.startsWith(t)).reduce((n,i)=>{let l=i.replace(t,"").split("_").map(r=>r.length>0?r.trim().charAt(0).toUpperCase()+r.trim().slice(1):"").join("");return l&&(n[l]=process.env[i]),n},{})},Vj=()=>{let e="STORM_",t={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`]?gn(process.env[`${e}WORKSPACE_CONFIG_FILE`]):void 0,workspaceRoot:process.env[`${e}WORKSPACE_ROOT`]?gn(process.env[`${e}WORKSPACE_ROOT`]):void 0,directories:{cache:process.env[`${e}CACHE_DIR`]?gn(process.env[`${e}CACHE_DIR`]):process.env[`${e}CACHE_DIRECTORY`]?gn(process.env[`${e}CACHE_DIRECTORY`]):void 0,data:process.env[`${e}DATA_DIR`]?gn(process.env[`${e}DATA_DIR`]):process.env[`${e}DATA_DIRECTORY`]?gn(process.env[`${e}DATA_DIRECTORY`]):void 0,config:process.env[`${e}CONFIG_DIR`]?gn(process.env[`${e}CONFIG_DIR`]):process.env[`${e}CONFIG_DIRECTORY`]?gn(process.env[`${e}CONFIG_DIRECTORY`]):void 0,temp:process.env[`${e}TEMP_DIR`]?gn(process.env[`${e}TEMP_DIR`]):process.env[`${e}TEMP_DIRECTORY`]?gn(process.env[`${e}TEMP_DIRECTORY`]):void 0,log:process.env[`${e}LOG_DIR`]?gn(process.env[`${e}LOG_DIR`]):process.env[`${e}LOG_DIRECTORY`]?gn(process.env[`${e}LOG_DIRECTORY`]):void 0,build:process.env[`${e}BUILD_DIR`]?gn(process.env[`${e}BUILD_DIR`]):process.env[`${e}BUILD_DIRECTORY`]?gn(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`]))?CL(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},n=Object.keys(process.env).filter(l=>l.startsWith(`${e}COLOR_`)&&Pj.every(r=>!l.startsWith(`${e}COLOR_LIGHT_${r}`)&&!l.startsWith(`${e}COLOR_DARK_${r}`)));t.colors=n.length>0?n.reduce((l,r)=>(l[r]=jj(e,r),l),{}):jj(e),t.docs===_L&&(t.homepage===ff?t.docs=`${ff}/projects/${t.name}/docs`:t.docs=`${t.homepage}/docs`),t.licensing===xL&&(t.homepage===ff?t.licensing=`${ff}/projects/${t.name}/licensing`:t.licensing=`${t.homepage}/docs`);let i=process.env[`${e}WORKSPACE_CONFIG`];if(i){let l=JSON.parse(i);t={...t,...l,colors:{...t.colors,...l.colors},extensions:{...t.extensions,...l.extensions}}}return t},jj=(e,t)=>{let n=`COLOR_${t&&t!=="base"?`${t}_`:""}`.toUpperCase();return process.env[`${e}${n}LIGHT_BRAND`]||process.env[`${e}${n}DARK_BRAND`]?WX(e+n):HX(e+n)},HX=e=>{let t=[];if(process.env[`${e}GRADIENT_START`]&&process.env[`${e}GRADIENT_END`])t.push(process.env[`${e}GRADIENT_START`],process.env[`${e}GRADIENT_END`]);else if(process.env[`${e}GRADIENT_0`]||process.env[`${e}GRADIENT_1`]){let n=process.env[`${e}GRADIENT_0`]?0:1;for(;process.env[`${e}GRADIENT_${n}`];)t.push(process.env[`${e}GRADIENT_${n}`]),n++}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`],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:t}},WX=e=>({light:Uj(`${e}_LIGHT_`),dark:Uj(`${e}_DARK_`)}),Uj=e=>{let t=[];if(process.env[`${e}GRADIENT_START`]&&process.env[`${e}GRADIENT_END`])t.push(process.env[`${e}GRADIENT_START`],process.env[`${e}GRADIENT_END`]);else if(process.env[`${e}GRADIENT_0`]||process.env[`${e}GRADIENT_1`]){let n=process.env[`${e}GRADIENT_0`]?0:1;for(;process.env[`${e}GRADIENT_${n}`];)t.push(process.env[`${e}GRADIENT_${n}`]),n++}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`],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:t}};var qX=(e,t)=>{for(let n of Object.keys(t??{}))if(t[n]){let i=n?.replace(/([A-Z])+/g,r=>r?r[0]?.toUpperCase()+r.slice(1):"").split(/(?=[A-Z])|[.\-\s_]/).map(r=>r.toLowerCase())??[],l;if(i.length===0)return;i.length===1?l=i[0]?.toUpperCase()??"":l=i.reduce((r,u)=>`${r}_${u.toLowerCase()}`),process.env[`STORM_EXTENSION_${e.toUpperCase()}_${l.toUpperCase()}`]=t[n]}},Hj=e=>{let t="STORM_";if(e.extends&&(process.env[`${t}EXTENDS`]=Array.isArray(e.extends)?JSON.stringify(e.extends):e.extends),e.name&&(process.env[`${t}NAME`]=e.name),e.variant&&(process.env[`${t}VARIANT`]=e.variant),e.namespace&&(process.env[`${t}NAMESPACE`]=e.namespace),e.owner&&(process.env[`${t}OWNER`]=e.owner),e.bot&&(process.env[`${t}BOT_NAME`]=e.bot.name,process.env[`${t}BOT_EMAIL`]=e.bot.email),e.error&&(process.env[`${t}ERROR_CODES_FILE`]=e.error.codesFile,process.env[`${t}ERROR_URL`]=e.error.url),e.release&&(e.release.banner&&(typeof e.release.banner=="string"?(process.env[`${t}RELEASE_BANNER`]=e.release.banner,process.env[`${t}RELEASE_BANNER_URL`]=e.release.banner):(process.env[`${t}RELEASE_BANNER`]=e.release.banner.url,process.env[`${t}RELEASE_BANNER_URL`]=e.release.banner.url,process.env[`${t}RELEASE_BANNER_ALT`]=e.release.banner.alt)),process.env[`${t}RELEASE_HEADER`]=e.release.header,process.env[`${t}RELEASE_FOOTER`]=e.release.footer),e.socials&&(e.socials.twitter&&(process.env[`${t}SOCIAL_TWITTER`]=e.socials.twitter),e.socials.discord&&(process.env[`${t}SOCIAL_DISCORD`]=e.socials.discord),e.socials.telegram&&(process.env[`${t}SOCIAL_TELEGRAM`]=e.socials.telegram),e.socials.slack&&(process.env[`${t}SOCIAL_SLACK`]=e.socials.slack),e.socials.medium&&(process.env[`${t}SOCIAL_MEDIUM`]=e.socials.medium),e.socials.github&&(process.env[`${t}SOCIAL_GITHUB`]=e.socials.github)),e.organization&&(typeof e.organization=="string"?(process.env[`${t}ORG`]=e.organization,process.env[`${t}ORG_NAME`]=e.organization,process.env[`${t}ORGANIZATION`]=e.organization,process.env[`${t}ORGANIZATION_NAME`]=e.organization):(process.env[`${t}ORG`]=e.organization.name,process.env[`${t}ORG_NAME`]=e.organization.name,process.env[`${t}ORGANIZATION`]=e.organization.name,process.env[`${t}ORGANIZATION_NAME`]=e.organization.name,e.organization.url&&(process.env[`${t}ORG_URL`]=e.organization.url,process.env[`${t}ORGANIZATION_URL`]=e.organization.url),e.organization.description&&(process.env[`${t}ORG_DESCRIPTION`]=e.organization.description,process.env[`${t}ORGANIZATION_DESCRIPTION`]=e.organization.description),e.organization.logo&&(process.env[`${t}ORG_LOGO`]=e.organization.logo,process.env[`${t}ORGANIZATION_LOGO`]=e.organization.logo),e.organization.icon&&(process.env[`${t}ORG_ICON`]=e.organization.icon,process.env[`${t}ORGANIZATION_ICON`]=e.organization.icon))),e.packageManager&&(process.env[`${t}PACKAGE_MANAGER`]=e.packageManager),e.license&&(process.env[`${t}LICENSE`]=e.license),e.homepage&&(process.env[`${t}HOMEPAGE`]=e.homepage),e.docs&&(process.env[`${t}DOCS`]=e.docs),e.portal&&(process.env[`${t}PORTAL`]=e.portal),e.licensing&&(process.env[`${t}LICENSING`]=e.licensing),e.contact&&(process.env[`${t}CONTACT`]=e.contact),e.support&&(process.env[`${t}SUPPORT`]=e.support),e.timezone&&(process.env[`${t}TIMEZONE`]=e.timezone,process.env.TZ=e.timezone,process.env.DEFAULT_TIMEZONE=e.timezone,process.env.TIMEZONE=e.timezone),e.locale&&(process.env[`${t}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[`${t}WORKSPACE_CONFIG_FILE`]=gn(e.configFile)),e.workspaceRoot&&(process.env[`${t}WORKSPACE_ROOT`]=gn(e.workspaceRoot),process.env.NX_WORKSPACE_ROOT=gn(e.workspaceRoot),process.env.NX_WORKSPACE_ROOT_PATH=gn(e.workspaceRoot)),e.directories&&(!e.skipCache&&e.directories.cache&&(process.env[`${t}CACHE_DIR`]=gn(e.directories.cache),process.env[`${t}CACHE_DIRECTORY`]=process.env[`${t}CACHE_DIR`]),e.directories.data&&(process.env[`${t}DATA_DIR`]=gn(e.directories.data),process.env[`${t}DATA_DIRECTORY`]=process.env[`${t}DATA_DIR`]),e.directories.config&&(process.env[`${t}CONFIG_DIR`]=gn(e.directories.config),process.env[`${t}CONFIG_DIRECTORY`]=process.env[`${t}CONFIG_DIR`]),e.directories.temp&&(process.env[`${t}TEMP_DIR`]=gn(e.directories.temp),process.env[`${t}TEMP_DIRECTORY`]=process.env[`${t}TEMP_DIR`]),e.directories.log&&(process.env[`${t}LOG_DIR`]=gn(e.directories.log),process.env[`${t}LOG_DIRECTORY`]=process.env[`${t}LOG_DIR`]),e.directories.build&&(process.env[`${t}BUILD_DIR`]=gn(e.directories.build),process.env[`${t}BUILD_DIRECTORY`]=process.env[`${t}BUILD_DIR`])),e.skipCache!==void 0&&(process.env[`${t}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[`${t}MODE`]=e.mode,process.env.NODE_ENV=e.mode,process.env.ENVIRONMENT=e.mode),e.colors?.base?.light||e.colors?.base?.dark)for(let n of Object.keys(e.colors))Gj(`${t}COLOR_${n}_`,e.colors[n]);else Gj(`${t}COLOR_`,e.colors);e.repository&&(process.env[`${t}REPOSITORY`]=e.repository),e.branch&&(process.env[`${t}BRANCH`]=e.branch),e.preid&&(process.env[`${t}PRE_ID`]=String(e.preid)),e.registry&&(e.registry.github&&(process.env[`${t}REGISTRY_GITHUB`]=String(e.registry.github)),e.registry.npm&&(process.env[`${t}REGISTRY_NPM`]=String(e.registry.npm)),e.registry.cargo&&(process.env[`${t}REGISTRY_CARGO`]=String(e.registry.cargo)),e.registry.cyclone&&(process.env[`${t}REGISTRY_CYCLONE`]=String(e.registry.cyclone)),e.registry.container&&(process.env[`${t}REGISTRY_CONTAINER`]=String(e.registry.container))),e.logLevel&&(process.env[`${t}LOG_LEVEL`]=String(e.logLevel),process.env.LOG_LEVEL=String(e.logLevel),process.env.NX_VERBOSE_LOGGING=String(ed(e.logLevel)>=$r.DEBUG),process.env.RUST_BACKTRACE=ed(e.logLevel)>=$r.DEBUG?"full":"none"),e.skipConfigLogging!==void 0&&(process.env[`${t}SKIP_CONFIG_LOGGING`]=String(e.skipConfigLogging)),process.env[`${t}WORKSPACE_CONFIG`]=JSON.stringify(e);for(let n of Object.keys(e.extensions??{}))e.extensions[n]&&Object.keys(e.extensions[n])&&qX(n,e.extensions[n])},Gj=(e,t)=>t?.light?.brand||t?.dark?.brand?JX(e,t):YX(e,t),YX=(e,t)=>{if(t.dark&&(process.env[`${e}DARK`]=t.dark),t.light&&(process.env[`${e}LIGHT`]=t.light),t.brand&&(process.env[`${e}BRAND`]=t.brand),t.alternate&&(process.env[`${e}ALTERNATE`]=t.alternate),t.accent&&(process.env[`${e}ACCENT`]=t.accent),t.link&&(process.env[`${e}LINK`]=t.link),t.help&&(process.env[`${e}HELP`]=t.help),t.success&&(process.env[`${e}SUCCESS`]=t.success),t.info&&(process.env[`${e}INFO`]=t.info),t.warning&&(process.env[`${e}WARNING`]=t.warning),t.danger&&(process.env[`${e}DANGER`]=t.danger),t.fatal&&(process.env[`${e}FATAL`]=t.fatal),t.positive&&(process.env[`${e}POSITIVE`]=t.positive),t.negative&&(process.env[`${e}NEGATIVE`]=t.negative),t.gradient)for(let n=0;n<t.gradient.length;n++)process.env[`${e}GRADIENT_${n}`]=t.gradient[n]},JX=(e,t)=>({light:zj(`${e}LIGHT_`,t.light),dark:zj(`${e}DARK_`,t.dark)}),zj=(e,t)=>{if(t.foreground&&(process.env[`${e}FOREGROUND`]=t.foreground),t.background&&(process.env[`${e}BACKGROUND`]=t.background),t.brand&&(process.env[`${e}BRAND`]=t.brand),t.alternate&&(process.env[`${e}ALTERNATE`]=t.alternate),t.accent&&(process.env[`${e}ACCENT`]=t.accent),t.link&&(process.env[`${e}LINK`]=t.link),t.help&&(process.env[`${e}HELP`]=t.help),t.success&&(process.env[`${e}SUCCESS`]=t.success),t.info&&(process.env[`${e}INFO`]=t.info),t.warning&&(process.env[`${e}WARNING`]=t.warning),t.danger&&(process.env[`${e}DANGER`]=t.danger),t.fatal&&(process.env[`${e}FATAL`]=t.fatal),t.positive&&(process.env[`${e}POSITIVE`]=t.positive),t.negative&&(process.env[`${e}NEGATIVE`]=t.negative),t.gradient)for(let n=0;n<t.gradient.length;n++)process.env[`${e}GRADIENT_${n}`]=t.gradient[n]};var nw=new WeakMap,If,KX=async(e,t,n,i=!1,l=!0)=>{let r;if(!If?.data||!If?.timestamp||If.timestamp<Date.now()-8e3){let u=n;u||(u=bc());let o=Vj(),p=await Mj(u);if(!p&&(i||IL("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"}),l===!1))return;let d=await Fj(u),s=yo(o,p,d);try{r=Oj(await kj.parseAsync(s)),r.workspaceRoot??=u}catch(a){throw new Error(`Failed to parse Storm Workspace configuration${a?.message?`: ${a.message}`:""}
|
|
756
756
|
|
|
757
757
|
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${oo(s)}`,{cause:a})}}else r=If.data;return t&&e&&(r.extensions={...r.extensions,[e]:ZX(e,t)}),If={timestamp:Date.now(),data:r},r},ZX=(e,t)=>{let n={extensionName:e};if(nw.has(n))return nw.get(n);let i=$j(e);return t&&(i=t.parse(i)),nw.set(n,i),i},Wj=async(e,t=!1)=>{let n=await KX(void 0,void 0,e,t,!0);return Hj(n),!t&&!n.skipConfigLogging&&df(`\u2699\uFE0F Using Storm Workspace configuration:
|
|
758
758
|
${oo(n)}`,n),n};var qj=(e,t=!1)=>Wj(e,t);var TV=Bi(z8()),_u=Bi(wV());async function Hoe(){let e=wL("create-storm-workspace"),t=await qj();try{PS("\u26A1 Preparing to create the Storm Workspace",t),["SIGTERM","SIGINT","SIGUSR2"].map(a=>{process.once(a,()=>{try{console.info(`process.on ${a}`),console.info("shutdown process done, exiting with code 0"),process.exit(0)}catch(h){console.warn("shutdown process failed, exiting with code 1"),console.error(h),process.exit(1)}})});let n=process.argv.length>2?process.argv[2]:null;n||(n=(await(0,_u.prompt)({type:"input",name:"name",message:"What is the name of the workspace?"})).name);let i=process.argv.length>3?process.argv[3]:null;i||(i=(await(0,_u.prompt)({type:"input",name:"organization",message:"What organization owns this repository?",initial:"storm-software"})).organization);let l=process.argv.length>4?process.argv[4]:null;l||(l=(await(0,_u.prompt)({type:"input",name:"namespace",message:"What is the namespace of this repository (npm scope)?",initial:i||"storm-software"})).namespace);let r=process.argv.length>5&&process.argv[5]?!!process.argv[5]:null;!r&&typeof r!="boolean"&&(r=(await(0,_u.prompt)({type:"confirm",name:"includeApps",message:"Should a separate `apps` folder be created for this workspace (if Yes: `apps` and `libs` folders will be added, if No: `packages` folders will be added)?",initial:!1})).includeApps);let u=process.argv.length>6&&process.argv[6]?!!process.argv[6]:null;!u&&typeof u!="boolean"&&(u=(await(0,_u.prompt)({type:"confirm",name:"includeRust",message:"Should Rust be included in the workspace (adds a `rust` folder with a `Cargo.toml` file)?",initial:!1})).includeRust);let o=process.argv.length>7?process.argv[7]:null;o||(o=(await(0,_u.prompt)({type:"input",name:"description",message:"Provide a description of the workspace to use in the package.json and README.md files.",initial:`\u26A1 The ${l||n} monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.`})).description);let p=process.argv.length>8?process.argv[8]:null;p||(p=(await(0,_u.prompt)({type:"input",name:"repositoryUrl",message:"What is the workspace's Git repository's URL?",initial:`https://github.com/${i||"storm-software"}/${n}`})).repositoryUrl),PS(`\u26A1 Creating the Storm Workspace: ${n}`,t);let d=(0,BV.getNpmPackageVersion)("@storm-software/workspace-tools"),{directory:s}=await(0,TV.createWorkspace)(`@storm-software/workspace-tools@${d||"latest"}`,{name:n,organization:i,namespace:l,description:o,includeApps:r,includeRust:u,repositoryUrl:p,nxCloud:"skip",packageManager:"pnpm",mode:"dark",interactive:!1,defaultBase:"main",useGitHub:!0,skipGit:!1,cliName:"Storm Workspace Generator"});SL(`\u26A1 Successfully created the workspace: ${s}.`,t)}catch(n){vL("\u274C An error occurred while creating the workspace. Please correct the below issue:",t),console.error(n),process.exit(1)}finally{e()}}Hoe();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-storm-workspace",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.96.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"description": "⚡A CLI tool used to generate and fully configure a Storm Workspace repository.",
|
|
6
6
|
"repository": {
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"nx": "^21.4.1"
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": { "access": "public" },
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "58a105ac718cd01f1a5a8f6f36c8644001627597"
|
|
48
48
|
}
|