create-storm-workspace 1.97.142 → 1.97.144
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 +20 -0
- package/README.md +1 -1
- package/index.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Create Storm Workspace
|
|
4
4
|
|
|
5
|
+
## [1.97.143](https://github.com/storm-software/storm-ops/releases/tag/create-storm-workspace%401.97.143) (03/31/2026)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Update workspace packages' dependencies ([fd69cea92](https://github.com/storm-software/storm-ops/commit/fd69cea92))
|
|
10
|
+
|
|
11
|
+
### Updated Dependencies
|
|
12
|
+
|
|
13
|
+
- Updated **config-tools** to **v1.189.62**
|
|
14
|
+
|
|
15
|
+
## [1.97.142](https://github.com/storm-software/storm-ops/releases/tag/create-storm-workspace%401.97.142) (03/28/2026)
|
|
16
|
+
|
|
17
|
+
### Miscellaneous
|
|
18
|
+
|
|
19
|
+
- **build-tools:** Added `INTERNAL_PACKAGES` centralized list of organization packages ([f87d57141](https://github.com/storm-software/storm-ops/commit/f87d57141))
|
|
20
|
+
|
|
21
|
+
### Updated Dependencies
|
|
22
|
+
|
|
23
|
+
- Updated **config-tools** to **v1.189.61**
|
|
24
|
+
|
|
5
25
|
## [1.97.141](https://github.com/storm-software/storm-ops/releases/tag/create-storm-workspace%401.97.141) (03/26/2026)
|
|
6
26
|
|
|
7
27
|
### Miscellaneous
|
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
27
27
|
|
|
28
28
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
29
29
|
|
|
30
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
31
31
|
|
|
32
32
|
<!-- prettier-ignore-start -->
|
|
33
33
|
<!-- markdownlint-disable -->
|
package/index.js
CHANGED
|
@@ -332,7 +332,7 @@ Storm Software is an open source software development organization with the miss
|
|
|
332
332
|
Join us on [Discord](${Koe}) to chat with the team, receive release notifications, ask questions, and get involved.
|
|
333
333
|
|
|
334
334
|
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](${Zoe}) or join our [Slack](${Xoe}) channel!
|
|
335
|
-
`,hy="tools/errors/codes.json",w4="The workspace's banner image";var eae=Object.freeze({status:"aborted"});function Nt(e,t,r){function i(a,l){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:l,constr:o,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),t(a,l);let u=o.prototype,p=Object.keys(u);for(let h=0;h<p.length;h++){let f=p[h];f in a||(a[f]=u[f].bind(a))}}let n=r?.Parent??Object;class s extends n{}Object.defineProperty(s,"name",{value:e});function o(a){var l;let u=r?.Parent?new s:this;i(u,a),(l=u._zod).deferred??(l.deferred=[]);for(let p of u._zod.deferred)p();return u}return Object.defineProperty(o,"init",{value:i}),Object.defineProperty(o,Symbol.hasInstance,{value:a=>r?.Parent&&a instanceof r.Parent?!0:a?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}var tae=Symbol("zod_brand"),Fa=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}};var YB={};function Na(e){return e&&Object.assign(YB,e),YB}function JB(e){let t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,n])=>t.indexOf(+i)===-1).map(([i,n])=>n)}function B4(e,t){return typeof t=="bigint"?t.toString():t}function ZB(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Q4(e){return e==null}function dy(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}var x4=Symbol("evaluating");function Yi(e,t,r){let i;Object.defineProperty(e,t,{get(){if(i!==x4)return i===void 0&&(i=x4,i=r()),i},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}var KB="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ay(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var rae=ZB(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function XB(e){if(Ay(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Ay(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function eQ(e){return XB(e)?{...e}:Array.isArray(e)?[...e]:e}var S4=new Set(["string","number","symbol"]);function fp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function fy(e,t,r){let i=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(i._zod.parent=e),i}function Wn(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 k4(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var iae={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]};function mp(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function Fc(e,t){return t.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function py(e){return typeof e=="string"?e:e?.message}function Nc(e,t,r){let i={...e,path:e.path??[]};if(!e.message){let n=py(e.inst?._zod.def?.error?.(e))??py(t?.error?.(e))??py(r.customError?.(e))??py(r.localeError?.(e))??"Invalid input";i.message=n}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function _4(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}var D4=(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,B4,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},R4=Nt("$ZodError",D4),rf=Nt("$ZodError",D4,{Parent:Error});var sae=e=>(t,r,i,n)=>{let s=i?Object.assign(i,{async:!1}):{async:!1},o=t._zod.run({value:r,issues:[]},s);if(o instanceof Promise)throw new Fa;if(o.issues.length){let a=new(n?.Err??e)(o.issues.map(l=>Nc(l,s,Na())));throw KB(a,n?.callee),a}return o.value},my=sae(rf),oae=e=>async(t,r,i,n)=>{let s=i?Object.assign(i,{async:!0}):{async:!0},o=t._zod.run({value:r,issues:[]},s);if(o instanceof Promise&&(o=await o),o.issues.length){let a=new(n?.Err??e)(o.issues.map(l=>Nc(l,s,Na())));throw KB(a,n?.callee),a}return o.value},gy=oae(rf),aae=e=>(t,r,i)=>{let n=i?{...i,async:!1}:{async:!1},s=t._zod.run({value:r,issues:[]},n);if(s instanceof Promise)throw new Fa;return s.issues.length?{success:!1,error:new(e??R4)(s.issues.map(o=>Nc(o,n,Na())))}:{success:!0,data:s.value}},nf=aae(rf),cae=e=>async(t,r,i)=>{let n=i?Object.assign(i,{async:!0}):{async:!0},s=t._zod.run({value:r,issues:[]},n);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(o=>Nc(o,n,Na())))}:{success:!0,data:s.value}},sf=cae(rf);var lae="(?:(?:\\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])))",uae=new RegExp(`^${lae}$`);var T4=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)};var F4=/^-?\d+(?:\.\d+)?$/,N4=/^(?:true|false)$/i;var gp=Nt("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])});var L4=Nt("$ZodCheckLengthEquals",(e,t)=>{var r;gp.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Q4(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=i=>{let n=i.value,s=n.length;if(s===t.length)return;let o=_4(n),a=s>t.length;i.issues.push({origin:o,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),tQ=Nt("$ZodCheckStringFormat",(e,t)=>{var r,i;gp.init(e,t),e._zod.onattach.push(n=>{let s=n._zod.bag;s.format=t.format,t.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),O4=Nt("$ZodCheckRegex",(e,t)=>{tQ.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}});var M4=Nt("$ZodCheckOverwrite",(e,t)=>{gp.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var P4={major:4,minor:3,patch:6};var un=Nt("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=P4;let i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(let n of i)for(let s of n._zod.onattach)s(e);if(i.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(o,a,l)=>{let u=mp(o),p;for(let h of a){if(h._zod.def.when){if(!h._zod.def.when(o))continue}else if(u)continue;let f=o.issues.length,g=h._zod.check(o);if(g instanceof Promise&&l?.async===!1)throw new Fa;if(p||g instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await g,o.issues.length!==f&&(u||(u=mp(o,f)))});else{if(o.issues.length===f)continue;u||(u=mp(o,f))}}return p?p.then(()=>o):o},s=(o,a,l)=>{if(mp(o))return o.aborted=!0,o;let u=n(a,i,l);if(u instanceof Promise){if(l.async===!1)throw new Fa;return u.then(p=>e._zod.parse(p,l))}return e._zod.parse(u,l)};e._zod.run=(o,a)=>{if(a.skipChecks)return e._zod.parse(o,a);if(a.direction==="backward"){let u=e._zod.parse({value:o.value,issues:[]},{...a,skipChecks:!0});return u instanceof Promise?u.then(p=>s(p,o,a)):s(u,o,a)}let l=e._zod.parse(o,a);if(l instanceof Promise){if(a.async===!1)throw new Fa;return l.then(u=>n(u,i,a))}return n(l,i,a)}}Yi(e,"~standard",()=>({validate:n=>{try{let s=nf(e,n);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return sf(e,n).then(o=>o.success?{value:o.data}:{issues:o.error?.issues})}},vendor:"zod",version:1}))}),yy=Nt("$ZodString",(e,t)=>{un.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??T4(e._zod.bag),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),rQ=Nt("$ZodStringFormat",(e,t)=>{tQ.init(e,t),yy.init(e,t)});var V4=Nt("$ZodURL",(e,t)=>{rQ.init(e,t),e._zod.check=r=>{try{let i=r.value.trim(),n=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=i;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}});var iQ=Nt("$ZodBoolean",(e,t)=>{un.init(e,t),e._zod.pattern=N4,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}});var G4=Nt("$ZodAny",(e,t)=>{un.init(e,t),e._zod.parse=r=>r});function $4(e,t,r){e.issues.length&&t.issues.push(...Fc(r,e.issues)),t.value[r]=e.value}var H4=Nt("$ZodArray",(e,t)=>{un.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let s=[];for(let o=0;o<n.length;o++){let a=n[o],l=t.element._zod.run({value:a,issues:[]},i);l instanceof Promise?s.push(l.then(u=>$4(u,r,o))):$4(l,r,o)}return s.length?Promise.all(s).then(()=>r):r}});function Ey(e,t,r,i,n){if(e.issues.length){if(n&&!(r in i))return;t.issues.push(...Fc(r,e.issues))}e.value===void 0?r in i&&(t.value[r]=void 0):t.value[r]=e.value}function pae(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 r=k4(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function Aae(e,t,r,i,n,s){let o=[],a=n.keySet,l=n.catchall._zod,u=l.def.type,p=l.optout==="optional";for(let h in t){if(a.has(h))continue;if(u==="never"){o.push(h);continue}let f=l.run({value:t[h],issues:[]},i);f instanceof Promise?e.push(f.then(g=>Ey(g,r,h,t,p))):Ey(f,r,h,t,p)}return o.length&&r.issues.push({code:"unrecognized_keys",keys:o,input:t,inst:s}),e.length?Promise.all(e).then(()=>r):r}var Y4=Nt("$ZodObject",(e,t)=>{if(un.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let a=t.shape;Object.defineProperty(t,"shape",{get:()=>{let l={...a};return Object.defineProperty(t,"shape",{value:l}),l}})}let i=ZB(()=>pae(t));Yi(e._zod,"propValues",()=>{let a=t.shape,l={};for(let u in a){let p=a[u]._zod;if(p.values){l[u]??(l[u]=new Set);for(let h of p.values)l[u].add(h)}}return l});let n=Ay,s=t.catchall,o;e._zod.parse=(a,l)=>{o??(o=i.value);let u=a.value;if(!n(u))return a.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),a;a.value={};let p=[],h=o.shape;for(let f of o.keys){let g=h[f],m=g._zod.optout==="optional",E=g._zod.run({value:u[f],issues:[]},l);E instanceof Promise?p.push(E.then(C=>Ey(C,a,f,u,m))):Ey(E,a,f,u,m)}return s?Aae(p,u,a,l,i.value,e):p.length?Promise.all(p).then(()=>a):a}});function j4(e,t,r,i){for(let s of e)if(s.issues.length===0)return t.value=s.value,t;let n=e.filter(s=>!mp(s));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(s=>s.issues.map(o=>Nc(o,i,Na())))}),t)}var W4=Nt("$ZodUnion",(e,t)=>{un.init(e,t),Yi(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),Yi(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),Yi(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),Yi(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){let n=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${n.map(s=>dy(s.source)).join("|")})$`)}});let r=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(n,s)=>{if(r)return i(n,s);let o=!1,a=[];for(let l of t.options){let u=l._zod.run({value:n.value,issues:[]},s);if(u instanceof Promise)a.push(u),o=!0;else{if(u.issues.length===0)return u;a.push(u)}}return o?Promise.all(a).then(l=>j4(l,n,e,s)):j4(a,n,e,s)}});var J4=Nt("$ZodRecord",(e,t)=>{un.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!XB(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let s=[],o=t.keyType._zod.values;if(o){r.value={};let a=new Set;for(let u of o)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){a.add(typeof u=="number"?u.toString():u);let p=t.valueType._zod.run({value:n[u],issues:[]},i);p instanceof Promise?s.push(p.then(h=>{h.issues.length&&r.issues.push(...Fc(u,h.issues)),r.value[u]=h.value})):(p.issues.length&&r.issues.push(...Fc(u,p.issues)),r.value[u]=p.value)}let l;for(let u in n)a.has(u)||(l=l??[],l.push(u));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:l})}else{r.value={};for(let a of Reflect.ownKeys(n)){if(a==="__proto__")continue;let l=t.keyType._zod.run({value:a,issues:[]},i);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof a=="string"&&F4.test(a)&&l.issues.length){let h=t.keyType._zod.run({value:Number(a),issues:[]},i);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");h.issues.length===0&&(l=h)}if(l.issues.length){t.mode==="loose"?r.value[a]=n[a]:r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(h=>Nc(h,i,Na())),input:a,path:[a],inst:e});continue}let p=t.valueType._zod.run({value:n[a],issues:[]},i);p instanceof Promise?s.push(p.then(h=>{h.issues.length&&r.issues.push(...Fc(a,h.issues)),r.value[l.value]=h.value})):(p.issues.length&&r.issues.push(...Fc(a,p.issues)),r.value[l.value]=p.value)}}return s.length?Promise.all(s).then(()=>r):r}});var Z4=Nt("$ZodEnum",(e,t)=>{un.init(e,t);let r=JB(t.entries),i=new Set(r);e._zod.values=i,e._zod.pattern=new RegExp(`^(${r.filter(n=>S4.has(typeof n)).map(n=>typeof n=="string"?fp(n):n.toString()).join("|")})$`),e._zod.parse=(n,s)=>{let o=n.value;return i.has(o)||n.issues.push({code:"invalid_value",values:r,input:o,inst:e}),n}}),K4=Nt("$ZodLiteral",(e,t)=>{if(un.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(i=>typeof i=="string"?fp(i):i?fp(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,n)=>{let s=i.value;return r.has(s)||i.issues.push({code:"invalid_value",values:t.values,input:s,inst:e}),i}});function q4(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var X4=Nt("$ZodOptional",(e,t)=>{un.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Yi(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Yi(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${dy(r.source)})?$`):void 0}),e._zod.parse=(r,i)=>{if(t.innerType._zod.optin==="optional"){let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(s=>q4(s,r.value)):q4(n,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,i)}});var ej=Nt("$ZodNullable",(e,t)=>{un.init(e,t),Yi(e._zod,"optin",()=>t.innerType._zod.optin),Yi(e._zod,"optout",()=>t.innerType._zod.optout),Yi(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${dy(r.source)}|null)$`):void 0}),Yi(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,i)=>r.value===null?r:t.innerType._zod.run(r,i)}),tj=Nt("$ZodDefault",(e,t)=>{un.init(e,t),e._zod.optin="optional",Yi(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(s=>z4(s,t)):z4(n,t)}});function z4(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var ij,gae=Symbol("ZodOutput"),Eae=Symbol("ZodInput"),nQ=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let i=r[0];return this._map.set(t,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let i={...this.get(r)??{}};delete i.id;let n={...i,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function Cy(){return new nQ}(ij=globalThis).__zod_globalRegistry??(ij.__zod_globalRegistry=Cy());var sQ=globalThis.__zod_globalRegistry;function nj(e,t){return new e({type:"string",...Wn(t)})}function sj(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Wn(t)})}function oj(e,t){return new e({type:"boolean",...Wn(t)})}function aj(e){return new e({type:"any"})}function oQ(e,t){return new L4({check:"length_equals",...Wn(t),length:e})}function aQ(e,t){return new O4({check:"string_format",format:"regex",...Wn(t),pattern:e})}function cQ(e){return new M4({check:"overwrite",tx:e})}function Ot(){return cQ(e=>e.trim())}function kn(){return cQ(e=>e.toLowerCase())}var vs=Nt("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");un.init(e,t),e.def=t,e.type=t.type,e.parse=(r,i)=>my(e,r,i,{callee:e.parse}),e.safeParse=(r,i)=>nf(e,r,i),e.parseAsync=async(r,i)=>gy(e,r,i,{callee:e.parseAsync}),e.safeParseAsync=async(r,i)=>sf(e,r,i),e.check=(...r)=>e.clone({...t,checks:[...t.checks??[],...r.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]},{parent:!0}),e.with=e.check,e.clone=(r,i)=>fy(e,r,i),e.brand=()=>e,e.register=((r,i)=>(r.add(e,i),e)),e.apply=r=>r(e)}),lQ=Nt("ZodMiniString",(e,t)=>{yy.init(e,t),vs.init(e,t)});function Lt(e){return nj(lQ,e)}var cj=Nt("ZodMiniStringFormat",(e,t)=>{rQ.init(e,t),lQ.init(e,t)});var Qae=Nt("ZodMiniURL",(e,t)=>{V4.init(e,t),cj.init(e,t)});function _n(e){return sj(Qae,e)}var lj=Nt("ZodMiniBoolean",(e,t)=>{iQ.init(e,t),vs.init(e,t)});function uQ(e){return oj(lj,e)}var Sae=Nt("ZodMiniAny",(e,t)=>{G4.init(e,t),vs.init(e,t)});function uj(){return aj(Sae)}var kae=Nt("ZodMiniArray",(e,t)=>{H4.init(e,t),vs.init(e,t)});function hQ(e,t){return new kae({type:"array",element:e,...Wn(t)})}var _ae=Nt("ZodMiniObject",(e,t)=>{Y4.init(e,t),vs.init(e,t),Yi(e,"shape",()=>t.shape)});function Dn(e,t){let r={type:"object",shape:e??{},...Wn(t)};return new _ae(r)}var Dae=Nt("ZodMiniUnion",(e,t)=>{W4.init(e,t),vs.init(e,t)});function Lc(e,t){return new Dae({type:"union",options:e,...Wn(t)})}var Rae=Nt("ZodMiniRecord",(e,t)=>{J4.init(e,t),vs.init(e,t)});function pQ(e,t,r){return new Rae({type:"record",keyType:e,valueType:t,...Wn(r)})}var Tae=Nt("ZodMiniEnum",(e,t)=>{Z4.init(e,t),vs.init(e,t),e.options=Object.values(t.entries)});function af(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Tae({type:"enum",entries:r,...Wn(t)})}var Fae=Nt("ZodMiniLiteral",(e,t)=>{K4.init(e,t),vs.init(e,t)});function hj(e,t){return new Fae({type:"literal",values:Array.isArray(e)?e:[e],...Wn(t)})}var Nae=Nt("ZodMiniOptional",(e,t)=>{X4.init(e,t),vs.init(e,t)});function Xt(e){return new Nae({type:"optional",innerType:e})}var Lae=Nt("ZodMiniNullable",(e,t)=>{ej.init(e,t),vs.init(e,t)});function pj(e){return new Lae({type:"nullable",innerType:e})}var Oae=Nt("ZodMiniDefault",(e,t)=>{tj.init(e,t),vs.init(e,t)});function Ar(e,t){return new Oae({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():eQ(t)}})}var ze=Cy(),Bi=Lt().check(oQ(7),kn(),aQ(/^#([0-9a-f]{3}){1,2}$/i),Ot());ze.add(Bi,{description:"A base schema for describing the format of colors"});var vy=Ar(Bi,"#151718");ze.add(vy,{description:"The dark background color of the workspace"});var Iy=Ar(Bi,"#cbd5e1");ze.add(Iy,{description:"The light background color of the workspace"});var wy=Ar(Bi,"#1fb2a6");ze.add(wy,{description:"The primary brand specific color of the workspace"});var xy=Xt(Bi);ze.add(xy,{description:"The alternate brand specific color of the workspace"});var By=Xt(Bi);ze.add(By,{description:"The secondary brand specific color of the workspace"});var Qy=Ar(Bi,"#3fa6ff");ze.add(Qy,{description:"The color used to display hyperlink text"});var Sy=Ar(Bi,"#818cf8");ze.add(Sy,{description:"The second brand specific color of the workspace"});var ky=Ar(Bi,"#45b27e");ze.add(ky,{description:"The success color of the workspace"});var _y=Ar(Bi,"#38bdf8");ze.add(_y,{description:"The informational color of the workspace"});var Dy=Ar(Bi,"#8afafc");ze.add(Dy,{description:"The debug color of the workspace"});var Ry=Ar(Bi,"#f3d371");ze.add(Ry,{description:"The warning color of the workspace"});var Ty=Ar(Bi,"#d8314a");ze.add(Ty,{description:"The danger color of the workspace"});var Fy=Xt(Bi);ze.add(Fy,{description:"The fatal color of the workspace"});var Ny=Ar(Bi,"#80fd74");ze.add(Ny,{description:"The performance color of the workspace"});var Ly=Ar(Bi,"#4ade80");ze.add(Ly,{description:"The positive number color of the workspace"});var Oy=Ar(Bi,"#ef4444");ze.add(Oy,{description:"The negative number color of the workspace"});var My=Xt(hQ(Bi));ze.add(My,{description:"The color stops for the base gradient color pattern used in the workspace"});var zae=Dn({foreground:Iy,background:vy,brand:wy,alternate:xy,accent:By,link:Qy,help:Sy,success:ky,info:_y,debug:Dy,warning:Ry,danger:Ty,fatal:Fy,performance:Ny,positive:Ly,negative:Oy,gradient:My}),Vae=Dn({foreground:vy,background:Iy,brand:wy,alternate:xy,accent:By,link:Qy,help:Sy,success:ky,info:_y,debug:Dy,warning:Ry,danger:Ty,fatal:Fy,performance:Ny,positive:Ly,negative:Oy,gradient:My}),Gae=Dn({dark:zae,light:Vae}),Hae=Dn({dark:vy,light:Iy,brand:wy,alternate:xy,accent:By,link:Qy,help:Sy,success:ky,info:_y,debug:Dy,warning:Ry,danger:Ty,fatal:Fy,performance:Ny,positive:Ly,negative:Oy,gradient:My}),Ep=Xt(_n());ze.add(Ep,{description:"A remote registry URL used to publish distributable packages"});var dj=Ar(Dn({github:Ep,npm:Ep,cargo:Ep,cyclone:Ep,container:Ep}),{});ze.add(dj,{description:"A list of remote registry URLs used by Storm Software"});var AQ=Lc([Hae,Gae]);ze.add(AQ,{description:"Colors used for various workspace elements"});var fj=pQ(Lc([Lc([hj("base"),Lt()]),Lt()]),AQ);ze.add(fj,{description:"Storm theme config values used for styling various package elements"});var mj=Xt(Lc([Lt().check(Ot()),hQ(Lt().check(Ot()))]));ze.add(mj,{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 gj=Lt().check(Ot());ze.add(gj,{description:"The workspace bot user's name (this is the bot that will be used to perform various tasks)"});var Ej=Lt().check(Ot());ze.add(Ej,{description:"The email of the workspace bot"});var yj=Dn({name:gj,email:Ej});ze.add(yj,{description:"The workspace's bot user's config used to automated various operations tasks"});var Cj=Xt(Lt().check(Ot(),_n()));ze.add(Cj,{description:"A URL to a banner image used to display the workspace's release"});var bj=Ar(Lt().check(Ot()),w4);ze.add(bj,{description:"The alt text for the workspace's release banner image"});var vj=Dn({url:Cj,alt:bj});ze.add(vj,{description:"The workspace's banner image used during the release process"});var Ij=Xt(Lt().check(Ot()));ze.add(Ij,{description:"A header message appended to the start of the workspace's release notes"});var wj=Xt(Lt().check(Ot()));ze.add(wj,{description:"A footer message appended to the end of the workspace's release notes"});var xj=Dn({banner:Lc([vj,Lt().check(Ot(),_n())]),header:Ij,footer:wj});ze.add(xj,{description:"The workspace's release config used during the release process"});var Bj=Xt(Lt().check(Ot()));ze.add(Bj,{description:"A Twitter/X account associated with the organization/project"});var Qj=Xt(Lt().check(Ot()));ze.add(Qj,{description:"A Discord account associated with the organization/project"});var Sj=Xt(Lt().check(Ot()));ze.add(Sj,{description:"A Telegram account associated with the organization/project"});var kj=Xt(Lt().check(Ot()));ze.add(kj,{description:"A Slack account associated with the organization/project"});var _j=Xt(Lt().check(Ot()));ze.add(_j,{description:"A Medium account associated with the organization/project"});var Dj=Xt(Lt().check(Ot()));ze.add(Dj,{description:"A GitHub account associated with the organization/project"});var Rj=Dn({twitter:Bj,discord:Qj,telegram:Sj,slack:kj,medium:_j,github:Dj});ze.add(Rj,{description:"The workspace's account config used to store various social media links"});var Tj=Xt(Lt().check(Ot()));ze.add(Tj,{description:"The directory used to store the environment's cached file data"});var Fj=Xt(Lt().check(Ot()));ze.add(Fj,{description:"The directory used to store the environment's data files"});var Nj=Xt(Lt().check(Ot()));ze.add(Nj,{description:"The directory used to store the environment's configuration files"});var Lj=Xt(Lt().check(Ot()));ze.add(Lj,{description:"The directory used to store the environment's temp files"});var Oj=Xt(Lt().check(Ot()));ze.add(Oj,{description:"The directory used to store the environment's log files"});var Mj=Ar(Lt().check(Ot()),"dist");ze.add(Mj,{description:"The directory used to store the workspace's distributable files after a build (relative to the workspace root)"});var Uj=Dn({cache:Tj,data:Fj,config:Nj,temp:Lj,log:Oj,build:Mj});ze.add(Uj,{description:"Various directories used by the workspace to store data, cache, and configuration files"});var Pj=Ar(af(["minimal","monorepo"]),"monorepo");ze.add(Pj,{description:"The variant of the workspace. This can be used to enable or disable certain features or configurations."});var $j=Ar(Lt().check(Ot()),hy);ze.add($j,{description:"The path to the workspace's error codes JSON file"});var jj=Xt(_n());ze.add(jj,{description:"A URL to a page that looks up the workspace's error messages given a specific error code"});var qj=Dn({codesFile:$j,url:jj});ze.add(qj,{description:"The workspace's error config used when creating error details during a system error"});var zj=Xt(Lt().check(Ot(),kn()));ze.add(zj,{description:"The name of the organization"});var Vj=Xt(Lt().check(Ot()));ze.add(Vj,{description:"A description of the organization"});var Gj=Xt(_n());ze.add(Gj,{description:"A URL to the organization's logo image"});var Hj=Xt(_n());ze.add(Hj,{description:"A URL to the organization's icon image"});var Yj=Xt(_n());ze.add(Yj,{description:"A URL to a page that provides more information about the organization"});var Wj=Dn({name:zj,description:Vj,logo:Gj,icon:Hj,url:Yj});ze.add(Wj,{description:"The workspace's organization details"});var Jj=Ar(Lt().check(Ot(),kn()),"https://public.storm-cdn.com/schemas/storm-workspace.schema.json");ze.add(Jj,{description:"The URL or file path to the JSON schema file that describes the Storm configuration file"});var Zj=Lt().check(Ot(),kn());ze.add(Zj,{description:"The name of the workspace/project/service/package/scope using this configuration"});var Kj=Lt().check(Ot(),kn());ze.add(Kj,{description:"The namespace of the workspace/project/service/package/scope using this configuration"});var Xj=Lc([Wj,Lt().check(Ot(),kn())]);ze.add(Xj,{description:"The organization of the workspace. This can be a string or an object containing the organization's details"});var e3=Lt().check(Ot(),kn());ze.add(e3,{description:"The repo URL of the workspace (i.e. the GitHub repository URL)"});var t3=Ar(Lt().check(Ot()),"Apache-2.0");ze.add(t3,{description:"The license type of the package"});var r3=Xt(_n());ze.add(r3,{description:"The homepage of the workspace"});var i3=Xt(_n());ze.add(i3,{description:"The documentation site for the workspace"});var n3=Xt(_n());ze.add(n3,{description:"The development portal site for the workspace"});var s3=Xt(_n());ze.add(s3,{description:"The licensing site for the workspace"});var o3=Xt(_n());ze.add(o3,{description:"The contact site for the workspace"});var a3=Xt(_n());ze.add(a3,{description:"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"});var c3=Ar(Lt().check(Ot(),kn()),"main");ze.add(c3,{description:"The branch of the workspace"});var l3=Xt(Lt().check(Ot(),kn()));ze.add(l3,{description:"A tag specifying the version pre-release identifier"});var u3=Xt(Lt().check(Ot(),kn()));ze.add(u3,{description:"The owner of the package"});var h3=Ar(af(["development","test","production"]).check(Ot(),kn()),"production");ze.add(h3,{description:"The current runtime environment mode for the package"});var p3=Lt().check(Ot(),kn());ze.add(p3,{description:"The root directory of the workspace"});var A3=Ar(uQ(),!1);ze.add(A3,{description:"Should all known types of workspace caching be skipped?"});var d3=Ar(af(["npm","yarn","pnpm","bun"]),"npm");ze.add(d3,{description:"The JavaScript/TypeScript package manager used by the repository"});var f3=Ar(Lt().check(Ot()),"America/New_York");ze.add(f3,{description:"The default timezone of the workspace"});var m3=Ar(Lt().check(Ot()),"en-US");ze.add(m3,{description:"The default locale of the workspace"});var g3=Ar(af(["silent","fatal","error","warn","success","info","performance","debug","trace","all"]),"info");ze.add(g3,{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 E3=Ar(uQ(),!0);ze.add(E3,{description:"Should the logging of the current Storm Workspace configuration be skipped?"});var y3=Ar(pj(Lt().check(Ot())),null);ze.add(y3,{description:"The filepath of the Storm config. When this field is null, no config file was found in the current workspace."});var dQ=Ar(pQ(Lt(),uj()),{});ze.add(dQ,{description:"Configuration of each used extension"});var C3=Dn({$schema:Jj,extends:mj,name:Zj,variant:Pj,namespace:Kj,organization:Xj,repository:e3,license:t3,homepage:r3,docs:i3,portal:n3,licensing:s3,contact:o3,support:a3,branch:c3,preid:l3,owner:u3,bot:yj,release:xj,socials:Rj,error:qj,mode:h3,workspaceRoot:p3,skipCache:A3,directories:Uj,packageManager:d3,timezone:f3,locale:m3,logLevel:g3,skipConfigLogging:E3,registry:dj,configFile:y3,colors:Lc([AQ,fj]),extensions:dQ});ze.add(dQ,{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 b3=["dark","light","base","brand","alternate","accent","link","success","help","info","warning","danger","fatal","performance","positive","negative"];var v3=require("node:fs"),I3=require("node:fs/promises"),w3=require("node:path");async function x3(e){let t=I4,r,i,n,s,o,a=tu(e);if((0,v3.existsSync)((0,w3.join)(a,"package.json"))){let l=await(0,I3.readFile)(_o(a,"package.json"),"utf8");if(l){let u=JSON.parse(l);u.name&&(n=u.name),u.namespace&&(s=u.namespace),u.repository&&(typeof u.repository=="string"?o=u.repository:u.repository.url&&(o=u.repository.url)),u.license&&(t=u.license),u.homepage&&(r=u.homepage),u.bugs&&(typeof u.bugs=="string"?i=u.bugs:u.bugs.url&&(i=u.bugs.url))}}return{workspaceRoot:a,name:n,namespace:s,repository:o,license:t,homepage:r,support:i}}function B3(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:hy},e.homepage&&(e.error.url??=`${e.homepage}/errors`))),e}var Q3=async(e,t,r={})=>{let i=t||tu(t),n=await Promise.all([ry({cwd:i,packageJson:!0,name:e,envName:e?.toUpperCase(),jitiOptions:{debug:!1,fsCache:process.env.STORM_SKIP_CACHE==="true"?!1:_o(process.env.STORM_CACHE_DIR||"node_modules/.cache/storm","jiti")},...r}),ry({cwd:i,packageJson:!0,name:e,envName:e?.toUpperCase(),jitiOptions:{debug:!1,fsCache:process.env.STORM_SKIP_CACHE==="true"?!1:_o(process.env.STORM_CACHE_DIR||"node_modules/.cache/storm","jiti")},configFile:e,...r})]);return As(n[0]??{},n[1]??{})},S3=async(e,t=[])=>{let r=e||tu(e),i=await Q3("storm-workspace",r),n=i.config,s=i.configFile;if(n&&s&&Object.keys(n).length>0&&!n.skipConfigLogging&&Xd(`Found Storm configuration file "${s.includes(`${r}/`)?s.replace(`${r}/`,""):s}" at "${r}"`,{logLevel:"all"}),t&&t.length>0){let o=await Promise.all(t.map(a=>Q3(a,r)));for(let a of o)a?.config&&a?.configFile&&Object.keys(a.config).length>0&&(!n.skipConfigLogging&&!a.config.skipConfigLogging&&Xd(`Found alternative configuration file "${a.configFile.includes(`${r}/`)?a.configFile.replace(`${r}/`,""):a.configFile}" at "${r}"`,{logLevel:"all"}),n=As(a.config??{},n??{}))}if(!(!n||Object.keys(n).length===0))return n.configFile=s,n};hc();var lf=require("node:fs");var D3=e=>{let t=`STORM_EXTENSION_${e.toUpperCase()}_`;return Object.keys(process.env).filter(r=>r.startsWith(t)).reduce((r,i)=>{let n=i.replace(t,"").split("_").map(s=>s.length>0?s.trim().charAt(0).toUpperCase()+s.trim().slice(1):"").join("");return n&&(r[n]=process.env[i]),r},{})},R3=()=>{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`]?mr(process.env[`${e}WORKSPACE_CONFIG_FILE`]):void 0,workspaceRoot:process.env[`${e}WORKSPACE_ROOT`]?mr(process.env[`${e}WORKSPACE_ROOT`]):void 0,directories:{cache:process.env[`${e}CACHE_DIR`]?mr(process.env[`${e}CACHE_DIR`]):process.env[`${e}CACHE_DIRECTORY`]?mr(process.env[`${e}CACHE_DIRECTORY`]):void 0,data:process.env[`${e}DATA_DIR`]?mr(process.env[`${e}DATA_DIR`]):process.env[`${e}DATA_DIRECTORY`]?mr(process.env[`${e}DATA_DIRECTORY`]):void 0,config:process.env[`${e}CONFIG_DIR`]?mr(process.env[`${e}CONFIG_DIR`]):process.env[`${e}CONFIG_DIRECTORY`]?mr(process.env[`${e}CONFIG_DIRECTORY`]):void 0,temp:process.env[`${e}TEMP_DIR`]?mr(process.env[`${e}TEMP_DIR`]):process.env[`${e}TEMP_DIRECTORY`]?mr(process.env[`${e}TEMP_DIRECTORY`]):void 0,log:process.env[`${e}LOG_DIR`]?mr(process.env[`${e}LOG_DIR`]):process.env[`${e}LOG_DIRECTORY`]?mr(process.env[`${e}LOG_DIRECTORY`]):void 0,build:process.env[`${e}BUILD_DIR`]?mr(process.env[`${e}BUILD_DIR`]):process.env[`${e}BUILD_DIRECTORY`]?mr(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`]))?d4(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},r=Object.keys(process.env).filter(n=>n.startsWith(`${e}COLOR_`)&&b3.every(s=>!n.startsWith(`${e}COLOR_LIGHT_${s}`)&&!n.startsWith(`${e}COLOR_DARK_${s}`)));t.colors=r.length>0?r.reduce((n,s)=>(n[s]=k3(e,s),n),{}):k3(e),t.docs===b4&&(t.homepage===tf?t.docs=`${tf}/projects/${t.name}/docs`:t.docs=`${t.homepage}/docs`),t.licensing===v4&&(t.homepage===tf?t.licensing=`${tf}/projects/${t.name}/licensing`:t.licensing=`${t.homepage}/docs`);let i=process.env[`${e}WORKSPACE_CONFIG`];if(i){let n=JSON.parse(i);t={...t,...n,colors:{...t.colors,...n.colors},extensions:{...t.extensions,...n.extensions}}}return t},k3=(e,t)=>{let r=`COLOR_${t&&t!=="base"?`${t}_`:""}`.toUpperCase();return process.env[`${e}${r}LIGHT_BRAND`]||process.env[`${e}${r}DARK_BRAND`]?Wae(e+r):Yae(e+r)},Yae=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 r=process.env[`${e}GRADIENT_0`]?0:1;for(;process.env[`${e}GRADIENT_${r}`];)t.push(process.env[`${e}GRADIENT_${r}`]),r++}return{dark:process.env[`${e}DARK`],light:process.env[`${e}LIGHT`],brand:process.env[`${e}BRAND`],alternate:process.env[`${e}ALTERNATE`],accent:process.env[`${e}ACCENT`],link:process.env[`${e}LINK`],help:process.env[`${e}HELP`],success:process.env[`${e}SUCCESS`],info:process.env[`${e}INFO`],debug:process.env[`${e}DEBUG`],warning:process.env[`${e}WARNING`],danger:process.env[`${e}DANGER`],fatal:process.env[`${e}FATAL`],performance:process.env[`${e}PERFORMANCE`],positive:process.env[`${e}POSITIVE`],negative:process.env[`${e}NEGATIVE`],gradient:t}},Wae=e=>({light:_3(`${e}_LIGHT_`),dark:_3(`${e}_DARK_`)}),_3=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 r=process.env[`${e}GRADIENT_0`]?0:1;for(;process.env[`${e}GRADIENT_${r}`];)t.push(process.env[`${e}GRADIENT_${r}`]),r++}return{foreground:process.env[`${e}FOREGROUND`],background:process.env[`${e}BACKGROUND`],brand:process.env[`${e}BRAND`],alternate:process.env[`${e}ALTERNATE`],accent:process.env[`${e}ACCENT`],link:process.env[`${e}LINK`],help:process.env[`${e}HELP`],success:process.env[`${e}SUCCESS`],info:process.env[`${e}INFO`],debug:process.env[`${e}DEBUG`],warning:process.env[`${e}WARNING`],danger:process.env[`${e}DANGER`],fatal:process.env[`${e}FATAL`],performance:process.env[`${e}PERFORMANCE`],positive:process.env[`${e}POSITIVE`],negative:process.env[`${e}NEGATIVE`],gradient:t}};var Jae=(e,t)=>{for(let r of Object.keys(t??{}))if(t[r]){let i=r?.replace(/([A-Z])+/g,s=>s?s[0]?.toUpperCase()+s.slice(1):"").split(/(?=[A-Z])|[.\-\s_]/).map(s=>s.toLowerCase())??[],n;if(i.length===0)return;i.length===1?n=i[0]?.toUpperCase()??"":n=i.reduce((s,o)=>`${s}_${o.toLowerCase()}`),process.env[`STORM_EXTENSION_${e.toUpperCase()}_${n.toUpperCase()}`]=t[r]}},N3=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`]=mr(e.configFile)),e.workspaceRoot&&(process.env[`${t}WORKSPACE_ROOT`]=mr(e.workspaceRoot),process.env.NX_WORKSPACE_ROOT=mr(e.workspaceRoot),process.env.NX_WORKSPACE_ROOT_PATH=mr(e.workspaceRoot)),e.directories&&(!e.skipCache&&e.directories.cache&&(process.env[`${t}CACHE_DIR`]=mr(e.directories.cache),process.env[`${t}CACHE_DIRECTORY`]=process.env[`${t}CACHE_DIR`]),e.directories.data&&(process.env[`${t}DATA_DIR`]=mr(e.directories.data),process.env[`${t}DATA_DIRECTORY`]=process.env[`${t}DATA_DIR`]),e.directories.config&&(process.env[`${t}CONFIG_DIR`]=mr(e.directories.config),process.env[`${t}CONFIG_DIRECTORY`]=process.env[`${t}CONFIG_DIR`]),e.directories.temp&&(process.env[`${t}TEMP_DIR`]=mr(e.directories.temp),process.env[`${t}TEMP_DIRECTORY`]=process.env[`${t}TEMP_DIR`]),e.directories.log&&(process.env[`${t}LOG_DIR`]=mr(e.directories.log),process.env[`${t}LOG_DIRECTORY`]=process.env[`${t}LOG_DIR`]),e.directories.build&&(process.env[`${t}BUILD_DIR`]=mr(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 r of Object.keys(e.colors))T3(`${t}COLOR_${r}_`,e.colors[r]);else T3(`${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(Ap(e.logLevel)>=Ft.DEBUG),process.env.RUST_BACKTRACE=Ap(e.logLevel)>=Ft.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 r of Object.keys(e.extensions??{}))e.extensions[r]&&Object.keys(e.extensions[r])&&Jae(r,e.extensions[r])},T3=(e,t)=>t?.light?.brand||t?.dark?.brand?Kae(e,t):Zae(e,t),Zae=(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.debug&&(process.env[`${e}DEBUG`]=t.debug),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.performance&&(process.env[`${e}PERFORMANCE`]=t.performance),t.positive&&(process.env[`${e}POSITIVE`]=t.positive),t.negative&&(process.env[`${e}NEGATIVE`]=t.negative),t.gradient)for(let r=0;r<t.gradient.length;r++)process.env[`${e}GRADIENT_${r}`]=t.gradient[r]},Kae=(e,t)=>({light:F3(`${e}LIGHT_`,t.light),dark:F3(`${e}DARK_`,t.dark)}),F3=(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.debug&&(process.env[`${e}DEBUG`]=t.debug),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.performance&&(process.env[`${e}PERFORMANCE`]=t.performance),t.positive&&(process.env[`${e}POSITIVE`]=t.positive),t.negative&&(process.env[`${e}NEGATIVE`]=t.negative),t.gradient)for(let r=0;r<t.gradient.length;r++)process.env[`${e}GRADIENT_${r}`]=t.gradient[r]};var fQ=new WeakMap,cf,Xae=async(e,t,r,i=!1,n=!0)=>{let s;if(!cf?.data||!cf?.timestamp||cf.timestamp<Date.now()-8e3){let o=r;o||(o=tu());let a=R3(),l=await S3(o);if(!l&&(i||m4("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"}),n===!1))return;let u=await x3(o),p=As(a,l,u);p.variant||(p.variant=(0,lf.existsSync)(_o(o,"nx.json"))||(0,lf.existsSync)(_o(o,".nx"))||(0,lf.existsSync)(_o(o,"lerna.json"))||(0,lf.existsSync)(_o(o,"turbo.json"))?"monorepo":"minimal");try{s=B3(await C3.parseAsync(p)),s.workspaceRoot??=o}catch(h){throw new Error(`Failed to parse Storm Workspace configuration${h?.message?`: ${h.message}`:""}
|
|
335
|
+
`,hy="tools/errors/codes.json",w4="The workspace's banner image";var eae=Object.freeze({status:"aborted"});function Nt(e,t,r){function i(a,l){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:l,constr:o,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),t(a,l);let u=o.prototype,p=Object.keys(u);for(let h=0;h<p.length;h++){let f=p[h];f in a||(a[f]=u[f].bind(a))}}let n=r?.Parent??Object;class s extends n{}Object.defineProperty(s,"name",{value:e});function o(a){var l;let u=r?.Parent?new s:this;i(u,a),(l=u._zod).deferred??(l.deferred=[]);for(let p of u._zod.deferred)p();return u}return Object.defineProperty(o,"init",{value:i}),Object.defineProperty(o,Symbol.hasInstance,{value:a=>r?.Parent&&a instanceof r.Parent?!0:a?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}var tae=Symbol("zod_brand"),Fa=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}};var YB={};function Na(e){return e&&Object.assign(YB,e),YB}function JB(e){let t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,n])=>t.indexOf(+i)===-1).map(([i,n])=>n)}function B4(e,t){return typeof t=="bigint"?t.toString():t}function ZB(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Q4(e){return e==null}function dy(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}var x4=Symbol("evaluating");function Yi(e,t,r){let i;Object.defineProperty(e,t,{get(){if(i!==x4)return i===void 0&&(i=x4,i=r()),i},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}var KB="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ay(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var rae=ZB(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function XB(e){if(Ay(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Ay(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function eQ(e){return XB(e)?{...e}:Array.isArray(e)?[...e]:e}var S4=new Set(["string","number","symbol"]);function fp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function fy(e,t,r){let i=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(i._zod.parent=e),i}function Wn(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 k4(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var iae={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]};function mp(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function Fc(e,t){return t.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function py(e){return typeof e=="string"?e:e?.message}function Nc(e,t,r){let i={...e,path:e.path??[]};if(!e.message){let n=py(e.inst?._zod.def?.error?.(e))??py(t?.error?.(e))??py(r.customError?.(e))??py(r.localeError?.(e))??"Invalid input";i.message=n}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function _4(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}var D4=(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,B4,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},R4=Nt("$ZodError",D4),rf=Nt("$ZodError",D4,{Parent:Error});var sae=e=>(t,r,i,n)=>{let s=i?Object.assign(i,{async:!1}):{async:!1},o=t._zod.run({value:r,issues:[]},s);if(o instanceof Promise)throw new Fa;if(o.issues.length){let a=new(n?.Err??e)(o.issues.map(l=>Nc(l,s,Na())));throw KB(a,n?.callee),a}return o.value},my=sae(rf),oae=e=>async(t,r,i,n)=>{let s=i?Object.assign(i,{async:!0}):{async:!0},o=t._zod.run({value:r,issues:[]},s);if(o instanceof Promise&&(o=await o),o.issues.length){let a=new(n?.Err??e)(o.issues.map(l=>Nc(l,s,Na())));throw KB(a,n?.callee),a}return o.value},gy=oae(rf),aae=e=>(t,r,i)=>{let n=i?{...i,async:!1}:{async:!1},s=t._zod.run({value:r,issues:[]},n);if(s instanceof Promise)throw new Fa;return s.issues.length?{success:!1,error:new(e??R4)(s.issues.map(o=>Nc(o,n,Na())))}:{success:!0,data:s.value}},nf=aae(rf),cae=e=>async(t,r,i)=>{let n=i?Object.assign(i,{async:!0}):{async:!0},s=t._zod.run({value:r,issues:[]},n);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(o=>Nc(o,n,Na())))}:{success:!0,data:s.value}},sf=cae(rf);var lae="(?:(?:\\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])))",uae=new RegExp(`^${lae}$`);var T4=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)};var F4=/^-?\d+(?:\.\d+)?$/,N4=/^(?:true|false)$/i;var gp=Nt("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])});var L4=Nt("$ZodCheckLengthEquals",(e,t)=>{var r;gp.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Q4(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=i=>{let n=i.value,s=n.length;if(s===t.length)return;let o=_4(n),a=s>t.length;i.issues.push({origin:o,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),tQ=Nt("$ZodCheckStringFormat",(e,t)=>{var r,i;gp.init(e,t),e._zod.onattach.push(n=>{let s=n._zod.bag;s.format=t.format,t.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),O4=Nt("$ZodCheckRegex",(e,t)=>{tQ.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}});var M4=Nt("$ZodCheckOverwrite",(e,t)=>{gp.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var P4={major:4,minor:3,patch:6};var un=Nt("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=P4;let i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(let n of i)for(let s of n._zod.onattach)s(e);if(i.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(o,a,l)=>{let u=mp(o),p;for(let h of a){if(h._zod.def.when){if(!h._zod.def.when(o))continue}else if(u)continue;let f=o.issues.length,g=h._zod.check(o);if(g instanceof Promise&&l?.async===!1)throw new Fa;if(p||g instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await g,o.issues.length!==f&&(u||(u=mp(o,f)))});else{if(o.issues.length===f)continue;u||(u=mp(o,f))}}return p?p.then(()=>o):o},s=(o,a,l)=>{if(mp(o))return o.aborted=!0,o;let u=n(a,i,l);if(u instanceof Promise){if(l.async===!1)throw new Fa;return u.then(p=>e._zod.parse(p,l))}return e._zod.parse(u,l)};e._zod.run=(o,a)=>{if(a.skipChecks)return e._zod.parse(o,a);if(a.direction==="backward"){let u=e._zod.parse({value:o.value,issues:[]},{...a,skipChecks:!0});return u instanceof Promise?u.then(p=>s(p,o,a)):s(u,o,a)}let l=e._zod.parse(o,a);if(l instanceof Promise){if(a.async===!1)throw new Fa;return l.then(u=>n(u,i,a))}return n(l,i,a)}}Yi(e,"~standard",()=>({validate:n=>{try{let s=nf(e,n);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return sf(e,n).then(o=>o.success?{value:o.data}:{issues:o.error?.issues})}},vendor:"zod",version:1}))}),yy=Nt("$ZodString",(e,t)=>{un.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??T4(e._zod.bag),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),rQ=Nt("$ZodStringFormat",(e,t)=>{tQ.init(e,t),yy.init(e,t)});var V4=Nt("$ZodURL",(e,t)=>{rQ.init(e,t),e._zod.check=r=>{try{let i=r.value.trim(),n=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=i;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}});var iQ=Nt("$ZodBoolean",(e,t)=>{un.init(e,t),e._zod.pattern=N4,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}});var G4=Nt("$ZodAny",(e,t)=>{un.init(e,t),e._zod.parse=r=>r});function $4(e,t,r){e.issues.length&&t.issues.push(...Fc(r,e.issues)),t.value[r]=e.value}var H4=Nt("$ZodArray",(e,t)=>{un.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let s=[];for(let o=0;o<n.length;o++){let a=n[o],l=t.element._zod.run({value:a,issues:[]},i);l instanceof Promise?s.push(l.then(u=>$4(u,r,o))):$4(l,r,o)}return s.length?Promise.all(s).then(()=>r):r}});function Ey(e,t,r,i,n){if(e.issues.length){if(n&&!(r in i))return;t.issues.push(...Fc(r,e.issues))}e.value===void 0?r in i&&(t.value[r]=void 0):t.value[r]=e.value}function pae(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 r=k4(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function Aae(e,t,r,i,n,s){let o=[],a=n.keySet,l=n.catchall._zod,u=l.def.type,p=l.optout==="optional";for(let h in t){if(a.has(h))continue;if(u==="never"){o.push(h);continue}let f=l.run({value:t[h],issues:[]},i);f instanceof Promise?e.push(f.then(g=>Ey(g,r,h,t,p))):Ey(f,r,h,t,p)}return o.length&&r.issues.push({code:"unrecognized_keys",keys:o,input:t,inst:s}),e.length?Promise.all(e).then(()=>r):r}var Y4=Nt("$ZodObject",(e,t)=>{if(un.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let a=t.shape;Object.defineProperty(t,"shape",{get:()=>{let l={...a};return Object.defineProperty(t,"shape",{value:l}),l}})}let i=ZB(()=>pae(t));Yi(e._zod,"propValues",()=>{let a=t.shape,l={};for(let u in a){let p=a[u]._zod;if(p.values){l[u]??(l[u]=new Set);for(let h of p.values)l[u].add(h)}}return l});let n=Ay,s=t.catchall,o;e._zod.parse=(a,l)=>{o??(o=i.value);let u=a.value;if(!n(u))return a.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),a;a.value={};let p=[],h=o.shape;for(let f of o.keys){let g=h[f],m=g._zod.optout==="optional",E=g._zod.run({value:u[f],issues:[]},l);E instanceof Promise?p.push(E.then(C=>Ey(C,a,f,u,m))):Ey(E,a,f,u,m)}return s?Aae(p,u,a,l,i.value,e):p.length?Promise.all(p).then(()=>a):a}});function j4(e,t,r,i){for(let s of e)if(s.issues.length===0)return t.value=s.value,t;let n=e.filter(s=>!mp(s));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(s=>s.issues.map(o=>Nc(o,i,Na())))}),t)}var W4=Nt("$ZodUnion",(e,t)=>{un.init(e,t),Yi(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),Yi(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),Yi(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),Yi(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){let n=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${n.map(s=>dy(s.source)).join("|")})$`)}});let r=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(n,s)=>{if(r)return i(n,s);let o=!1,a=[];for(let l of t.options){let u=l._zod.run({value:n.value,issues:[]},s);if(u instanceof Promise)a.push(u),o=!0;else{if(u.issues.length===0)return u;a.push(u)}}return o?Promise.all(a).then(l=>j4(l,n,e,s)):j4(a,n,e,s)}});var J4=Nt("$ZodRecord",(e,t)=>{un.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!XB(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let s=[],o=t.keyType._zod.values;if(o){r.value={};let a=new Set;for(let u of o)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){a.add(typeof u=="number"?u.toString():u);let p=t.valueType._zod.run({value:n[u],issues:[]},i);p instanceof Promise?s.push(p.then(h=>{h.issues.length&&r.issues.push(...Fc(u,h.issues)),r.value[u]=h.value})):(p.issues.length&&r.issues.push(...Fc(u,p.issues)),r.value[u]=p.value)}let l;for(let u in n)a.has(u)||(l=l??[],l.push(u));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:l})}else{r.value={};for(let a of Reflect.ownKeys(n)){if(a==="__proto__")continue;let l=t.keyType._zod.run({value:a,issues:[]},i);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof a=="string"&&F4.test(a)&&l.issues.length){let h=t.keyType._zod.run({value:Number(a),issues:[]},i);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");h.issues.length===0&&(l=h)}if(l.issues.length){t.mode==="loose"?r.value[a]=n[a]:r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(h=>Nc(h,i,Na())),input:a,path:[a],inst:e});continue}let p=t.valueType._zod.run({value:n[a],issues:[]},i);p instanceof Promise?s.push(p.then(h=>{h.issues.length&&r.issues.push(...Fc(a,h.issues)),r.value[l.value]=h.value})):(p.issues.length&&r.issues.push(...Fc(a,p.issues)),r.value[l.value]=p.value)}}return s.length?Promise.all(s).then(()=>r):r}});var Z4=Nt("$ZodEnum",(e,t)=>{un.init(e,t);let r=JB(t.entries),i=new Set(r);e._zod.values=i,e._zod.pattern=new RegExp(`^(${r.filter(n=>S4.has(typeof n)).map(n=>typeof n=="string"?fp(n):n.toString()).join("|")})$`),e._zod.parse=(n,s)=>{let o=n.value;return i.has(o)||n.issues.push({code:"invalid_value",values:r,input:o,inst:e}),n}}),K4=Nt("$ZodLiteral",(e,t)=>{if(un.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(i=>typeof i=="string"?fp(i):i?fp(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,n)=>{let s=i.value;return r.has(s)||i.issues.push({code:"invalid_value",values:t.values,input:s,inst:e}),i}});function q4(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var X4=Nt("$ZodOptional",(e,t)=>{un.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Yi(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Yi(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${dy(r.source)})?$`):void 0}),e._zod.parse=(r,i)=>{if(t.innerType._zod.optin==="optional"){let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(s=>q4(s,r.value)):q4(n,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,i)}});var ej=Nt("$ZodNullable",(e,t)=>{un.init(e,t),Yi(e._zod,"optin",()=>t.innerType._zod.optin),Yi(e._zod,"optout",()=>t.innerType._zod.optout),Yi(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${dy(r.source)}|null)$`):void 0}),Yi(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,i)=>r.value===null?r:t.innerType._zod.run(r,i)}),tj=Nt("$ZodDefault",(e,t)=>{un.init(e,t),e._zod.optin="optional",Yi(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(s=>z4(s,t)):z4(n,t)}});function z4(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var ij,gae=Symbol("ZodOutput"),Eae=Symbol("ZodInput"),nQ=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let i=r[0];return this._map.set(t,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let i={...this.get(r)??{}};delete i.id;let n={...i,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function Cy(){return new nQ}(ij=globalThis).__zod_globalRegistry??(ij.__zod_globalRegistry=Cy());var sQ=globalThis.__zod_globalRegistry;function nj(e,t){return new e({type:"string",...Wn(t)})}function sj(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Wn(t)})}function oj(e,t){return new e({type:"boolean",...Wn(t)})}function aj(e){return new e({type:"any"})}function oQ(e,t){return new L4({check:"length_equals",...Wn(t),length:e})}function aQ(e,t){return new O4({check:"string_format",format:"regex",...Wn(t),pattern:e})}function cQ(e){return new M4({check:"overwrite",tx:e})}function Ot(){return cQ(e=>e.trim())}function kn(){return cQ(e=>e.toLowerCase())}var vs=Nt("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");un.init(e,t),e.def=t,e.type=t.type,e.parse=(r,i)=>my(e,r,i,{callee:e.parse}),e.safeParse=(r,i)=>nf(e,r,i),e.parseAsync=async(r,i)=>gy(e,r,i,{callee:e.parseAsync}),e.safeParseAsync=async(r,i)=>sf(e,r,i),e.check=(...r)=>e.clone({...t,checks:[...t.checks??[],...r.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]},{parent:!0}),e.with=e.check,e.clone=(r,i)=>fy(e,r,i),e.brand=()=>e,e.register=((r,i)=>(r.add(e,i),e)),e.apply=r=>r(e)}),lQ=Nt("ZodMiniString",(e,t)=>{yy.init(e,t),vs.init(e,t)});function Lt(e){return nj(lQ,e)}var cj=Nt("ZodMiniStringFormat",(e,t)=>{rQ.init(e,t),lQ.init(e,t)});var Qae=Nt("ZodMiniURL",(e,t)=>{V4.init(e,t),cj.init(e,t)});function _n(e){return sj(Qae,e)}var lj=Nt("ZodMiniBoolean",(e,t)=>{iQ.init(e,t),vs.init(e,t)});function uQ(e){return oj(lj,e)}var Sae=Nt("ZodMiniAny",(e,t)=>{G4.init(e,t),vs.init(e,t)});function uj(){return aj(Sae)}var kae=Nt("ZodMiniArray",(e,t)=>{H4.init(e,t),vs.init(e,t)});function hQ(e,t){return new kae({type:"array",element:e,...Wn(t)})}var _ae=Nt("ZodMiniObject",(e,t)=>{Y4.init(e,t),vs.init(e,t),Yi(e,"shape",()=>t.shape)});function Dn(e,t){let r={type:"object",shape:e??{},...Wn(t)};return new _ae(r)}var Dae=Nt("ZodMiniUnion",(e,t)=>{W4.init(e,t),vs.init(e,t)});function Lc(e,t){return new Dae({type:"union",options:e,...Wn(t)})}var Rae=Nt("ZodMiniRecord",(e,t)=>{J4.init(e,t),vs.init(e,t)});function pQ(e,t,r){return new Rae({type:"record",keyType:e,valueType:t,...Wn(r)})}var Tae=Nt("ZodMiniEnum",(e,t)=>{Z4.init(e,t),vs.init(e,t),e.options=Object.values(t.entries)});function af(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Tae({type:"enum",entries:r,...Wn(t)})}var Fae=Nt("ZodMiniLiteral",(e,t)=>{K4.init(e,t),vs.init(e,t)});function hj(e,t){return new Fae({type:"literal",values:Array.isArray(e)?e:[e],...Wn(t)})}var Nae=Nt("ZodMiniOptional",(e,t)=>{X4.init(e,t),vs.init(e,t)});function Xt(e){return new Nae({type:"optional",innerType:e})}var Lae=Nt("ZodMiniNullable",(e,t)=>{ej.init(e,t),vs.init(e,t)});function pj(e){return new Lae({type:"nullable",innerType:e})}var Oae=Nt("ZodMiniDefault",(e,t)=>{tj.init(e,t),vs.init(e,t)});function Ar(e,t){return new Oae({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():eQ(t)}})}var ze=Cy(),Bi=Lt().check(oQ(7),kn(),aQ(/^#([0-9a-f]{3}){1,2}$/i),Ot());ze.add(Bi,{description:"A base schema for describing the format of colors"});var vy=Ar(Bi,"#151718");ze.add(vy,{description:"The dark background color of the workspace"});var Iy=Ar(Bi,"#cbd5e1");ze.add(Iy,{description:"The light background color of the workspace"});var wy=Ar(Bi,"#1fb2a6");ze.add(wy,{description:"The primary brand specific color of the workspace"});var xy=Xt(Bi);ze.add(xy,{description:"The alternate brand specific color of the workspace"});var By=Xt(Bi);ze.add(By,{description:"The secondary brand specific color of the workspace"});var Qy=Ar(Bi,"#3fa6ff");ze.add(Qy,{description:"The color used to display hyperlink text"});var Sy=Ar(Bi,"#818cf8");ze.add(Sy,{description:"The second brand specific color of the workspace"});var ky=Ar(Bi,"#45b27e");ze.add(ky,{description:"The success color of the workspace"});var _y=Ar(Bi,"#38bdf8");ze.add(_y,{description:"The informational color of the workspace"});var Dy=Ar(Bi,"#8afafc");ze.add(Dy,{description:"The debug color of the workspace"});var Ry=Ar(Bi,"#f3d371");ze.add(Ry,{description:"The warning color of the workspace"});var Ty=Ar(Bi,"#d8314a");ze.add(Ty,{description:"The danger color of the workspace"});var Fy=Xt(Bi);ze.add(Fy,{description:"The fatal color of the workspace"});var Ny=Ar(Bi,"#80fd74");ze.add(Ny,{description:"The performance color of the workspace"});var Ly=Ar(Bi,"#4ade80");ze.add(Ly,{description:"The positive number color of the workspace"});var Oy=Ar(Bi,"#ef4444");ze.add(Oy,{description:"The negative number color of the workspace"});var My=Xt(hQ(Bi));ze.add(My,{description:"The color stops for the base gradient color pattern used in the workspace"});var zae=Dn({foreground:Iy,background:vy,brand:wy,alternate:xy,accent:By,link:Qy,help:Sy,success:ky,info:_y,debug:Dy,warning:Ry,danger:Ty,fatal:Fy,performance:Ny,positive:Ly,negative:Oy,gradient:My}),Vae=Dn({foreground:vy,background:Iy,brand:wy,alternate:xy,accent:By,link:Qy,help:Sy,success:ky,info:_y,debug:Dy,warning:Ry,danger:Ty,fatal:Fy,performance:Ny,positive:Ly,negative:Oy,gradient:My}),Gae=Dn({dark:zae,light:Vae}),Hae=Dn({dark:vy,light:Iy,brand:wy,alternate:xy,accent:By,link:Qy,help:Sy,success:ky,info:_y,debug:Dy,warning:Ry,danger:Ty,fatal:Fy,performance:Ny,positive:Ly,negative:Oy,gradient:My}),Ep=Xt(_n());ze.add(Ep,{description:"A remote registry URL used to publish distributable packages"});var dj=Ar(Dn({github:Ep,npm:Ep,cargo:Ep,cyclone:Ep,container:Ep}),{});ze.add(dj,{description:"A list of remote registry URLs used by Storm Software"});var AQ=Lc([Hae,Gae]);ze.add(AQ,{description:"Colors used for various workspace elements"});var fj=pQ(Lc([Lc([hj("base"),Lt()]),Lt()]),AQ);ze.add(fj,{description:"Storm theme config values used for styling various package elements"});var mj=Xt(Lc([Lt().check(Ot()),hQ(Lt().check(Ot()))]));ze.add(mj,{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 gj=Lt().check(Ot());ze.add(gj,{description:"The workspace bot user's name (this is the bot that will be used to perform various tasks)"});var Ej=Lt().check(Ot());ze.add(Ej,{description:"The email of the workspace bot"});var yj=Dn({name:gj,email:Ej});ze.add(yj,{description:"The workspace's bot user's config used to automated various operations tasks"});var Cj=Xt(Lt().check(Ot(),_n()));ze.add(Cj,{description:"A URL to a banner image used to display the workspace's release"});var bj=Ar(Lt().check(Ot()),w4);ze.add(bj,{description:"The alt text for the workspace's release banner image"});var vj=Dn({url:Cj,alt:bj});ze.add(vj,{description:"The workspace's banner image used during the release process"});var Ij=Xt(Lt().check(Ot()));ze.add(Ij,{description:"A header message appended to the start of the workspace's release notes"});var wj=Xt(Lt().check(Ot()));ze.add(wj,{description:"A footer message appended to the end of the workspace's release notes"});var xj=Dn({banner:Lc([vj,Lt().check(Ot(),_n())]),header:Ij,footer:wj});ze.add(xj,{description:"The workspace's release config used during the release process"});var Bj=Xt(Lt().check(Ot()));ze.add(Bj,{description:"A Twitter/X account associated with the organization/project"});var Qj=Xt(Lt().check(Ot()));ze.add(Qj,{description:"A Discord account associated with the organization/project"});var Sj=Xt(Lt().check(Ot()));ze.add(Sj,{description:"A Telegram account associated with the organization/project"});var kj=Xt(Lt().check(Ot()));ze.add(kj,{description:"A Slack account associated with the organization/project"});var _j=Xt(Lt().check(Ot()));ze.add(_j,{description:"A Medium account associated with the organization/project"});var Dj=Xt(Lt().check(Ot()));ze.add(Dj,{description:"A GitHub account associated with the organization/project"});var Rj=Dn({twitter:Bj,discord:Qj,telegram:Sj,slack:kj,medium:_j,github:Dj});ze.add(Rj,{description:"The workspace's account config used to store various social media links"});var Tj=Xt(Lt().check(Ot()));ze.add(Tj,{description:"The directory used to store the environment's cached file data"});var Fj=Xt(Lt().check(Ot()));ze.add(Fj,{description:"The directory used to store the environment's data files"});var Nj=Xt(Lt().check(Ot()));ze.add(Nj,{description:"The directory used to store the environment's configuration files"});var Lj=Xt(Lt().check(Ot()));ze.add(Lj,{description:"The directory used to store the environment's temp files"});var Oj=Xt(Lt().check(Ot()));ze.add(Oj,{description:"The directory used to store the environment's log files"});var Mj=Ar(Lt().check(Ot()),"dist");ze.add(Mj,{description:"The directory used to store the workspace's distributable files after a build (relative to the workspace root)"});var Uj=Dn({cache:Tj,data:Fj,config:Nj,temp:Lj,log:Oj,build:Mj});ze.add(Uj,{description:"Various directories used by the workspace to store data, cache, and configuration files"});var Pj=Ar(af(["minimal","monorepo"]),"monorepo");ze.add(Pj,{description:"The variant of the workspace. This can be used to enable or disable certain features or configurations."});var $j=Ar(Lt().check(Ot()),hy);ze.add($j,{description:"The path to the workspace's error codes JSON file"});var jj=Xt(_n());ze.add(jj,{description:"A URL to a page that looks up the workspace's error messages given a specific error code"});var qj=Dn({codesFile:$j,url:jj});ze.add(qj,{description:"The workspace's error config used when creating error details during a system error"});var zj=Xt(Lt().check(Ot(),kn()));ze.add(zj,{description:"The name of the organization"});var Vj=Xt(Lt().check(Ot()));ze.add(Vj,{description:"A description of the organization"});var Gj=Xt(_n());ze.add(Gj,{description:"A URL to the organization's logo image"});var Hj=Xt(_n());ze.add(Hj,{description:"A URL to the organization's icon image"});var Yj=Xt(_n());ze.add(Yj,{description:"A URL to a page that provides more information about the organization"});var Wj=Dn({name:zj,description:Vj,logo:Gj,icon:Hj,url:Yj});ze.add(Wj,{description:"The workspace's organization details"});var Jj=Ar(Lt().check(Ot(),kn()),"https://public.storm-cdn.com/schemas/storm-workspace.schema.json");ze.add(Jj,{description:"The URL or file path to the JSON schema file that describes the Storm configuration file"});var Zj=Lt().check(Ot(),kn());ze.add(Zj,{description:"The name of the workspace/project/service/package/scope using this configuration"});var Kj=Lt().check(Ot(),kn());ze.add(Kj,{description:"The namespace of the workspace/project/service/package/scope using this configuration"});var Xj=Lc([Wj,Lt().check(Ot(),kn())]);ze.add(Xj,{description:"The organization of the workspace. This can be a string or an object containing the organization's details"});var e3=Lt().check(Ot(),kn());ze.add(e3,{description:"The repo URL of the workspace (i.e. the GitHub repository URL)"});var t3=Ar(Lt().check(Ot()),"Apache-2.0");ze.add(t3,{description:"The license type of the package"});var r3=Xt(_n());ze.add(r3,{description:"The homepage of the workspace"});var i3=Xt(_n());ze.add(i3,{description:"The documentation site for the workspace"});var n3=Xt(_n());ze.add(n3,{description:"The development portal site for the workspace"});var s3=Xt(_n());ze.add(s3,{description:"The licensing site for the workspace"});var o3=Xt(_n());ze.add(o3,{description:"The contact site for the workspace"});var a3=Xt(_n());ze.add(a3,{description:"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"});var c3=Ar(Lt().check(Ot(),kn()),"main");ze.add(c3,{description:"The branch of the workspace"});var l3=Xt(Lt().check(Ot(),kn()));ze.add(l3,{description:"A tag specifying the version pre-release identifier"});var u3=Xt(Lt().check(Ot(),kn()));ze.add(u3,{description:"The owner of the package"});var h3=Ar(af(["development","test","production"]).check(Ot(),kn()),"production");ze.add(h3,{description:"The current runtime environment mode for the package"});var p3=Lt().check(Ot(),kn());ze.add(p3,{description:"The root directory of the workspace"});var A3=Ar(uQ(),!1);ze.add(A3,{description:"Should all known types of workspace caching be skipped?"});var d3=Ar(af(["npm","yarn","pnpm","bun"]),"npm");ze.add(d3,{description:"The JavaScript/TypeScript package manager used by the repository"});var f3=Ar(Lt().check(Ot()),"America/New_York");ze.add(f3,{description:"The default timezone of the workspace"});var m3=Ar(Lt().check(Ot()),"en-US");ze.add(m3,{description:"The default locale of the workspace"});var g3=Ar(af(["silent","fatal","error","warn","success","info","performance","debug","trace","all"]),"info");ze.add(g3,{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 E3=Ar(uQ(),!0);ze.add(E3,{description:"Should the logging of the current Storm Workspace configuration be skipped?"});var y3=Ar(pj(Lt().check(Ot())),null);ze.add(y3,{description:"The filepath of the Storm config. When this field is null, no config file was found in the current workspace."});var dQ=Ar(pQ(Lt(),uj()),{});ze.add(dQ,{description:"Configuration of each used extension"});var C3=Dn({$schema:Jj,extends:mj,name:Zj,variant:Pj,namespace:Kj,organization:Xj,repository:e3,license:t3,homepage:r3,docs:i3,portal:n3,licensing:s3,contact:o3,support:a3,branch:c3,preid:l3,owner:u3,bot:yj,release:xj,socials:Rj,error:qj,mode:h3,workspaceRoot:p3,skipCache:A3,directories:Uj,packageManager:d3,timezone:f3,locale:m3,logLevel:g3,skipConfigLogging:E3,registry:dj,configFile:y3,colors:Lc([AQ,fj]),extensions:dQ});ze.add(dQ,{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 b3=["dark","light","base","brand","alternate","accent","link","success","help","info","warning","danger","fatal","performance","positive","negative"];var v3=require("node:fs"),I3=require("node:fs/promises"),w3=require("node:path");async function x3(e){let t=I4,r,i,n,s,o,a=tu(e);if((0,v3.existsSync)((0,w3.join)(a,"package.json"))){let l=await(0,I3.readFile)(_o(a,"package.json"),"utf8");if(l){let u=JSON.parse(l);u.name&&(n=u.name),u.namespace&&(s=u.namespace),u.repository&&(typeof u.repository=="string"?o=u.repository:u.repository.url&&(o=u.repository.url)),u.license&&(t=u.license),u.homepage&&(r=u.homepage),u.bugs&&(typeof u.bugs=="string"?i=u.bugs:u.bugs.url&&(i=u.bugs.url))}}return{workspaceRoot:a,name:n,namespace:s,repository:o,license:t,homepage:r,support:i}}function B3(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:hy},e.homepage&&(e.error.url??=`${e.homepage}/errors`))),e}var Q3=async(e,t,r={})=>{let i=t||tu(t),n=await Promise.all([ry({cwd:i,packageJson:!0,name:e,envName:e?.toUpperCase(),jitiOptions:{debug:!1,fsCache:process.env.STORM_SKIP_CACHE==="true"?!1:_o(process.env.STORM_CACHE_DIR||"node_modules/.cache/storm","jiti")},...r}),ry({cwd:i,packageJson:!0,name:e,envName:e?.toUpperCase(),jitiOptions:{debug:!1,fsCache:process.env.STORM_SKIP_CACHE==="true"?!1:_o(process.env.STORM_CACHE_DIR||"node_modules/.cache/storm","jiti")},configFile:e,...r})]);return As(n[0]??{},n[1]??{})},S3=async(e,t=[])=>{let r=e||tu(e),i=await Q3("storm-workspace",r),n=i.config,s=i.configFile;if(n&&s&&Object.keys(n).length>0&&!n.skipConfigLogging&&Xd(`Found Storm configuration file "${s.includes(`${r}/`)?s.replace(`${r}/`,""):s}" at "${r}"`,{logLevel:"all"}),t&&t.length>0){let o=await Promise.all(t.map(a=>Q3(a,r)));for(let a of o)a?.config&&a?.configFile&&Object.keys(a.config).length>0&&(!n.skipConfigLogging&&!a.config.skipConfigLogging&&Xd(`Found alternative configuration file "${a.configFile.includes(`${r}/`)?a.configFile.replace(`${r}/`,""):a.configFile}" at "${r}"`,{logLevel:"all"}),n=As(a.config??{},n??{}))}if(!(!n||Object.keys(n).length===0))return n.configFile=s,n};hc();var lf=require("node:fs");var D3=e=>{let t=`STORM_EXTENSION_${e.toUpperCase()}_`;return Object.keys(process.env).filter(r=>r.startsWith(t)).reduce((r,i)=>{let n=i.replace(t,"").split("_").map(s=>s.length>0?s.trim().charAt(0).toUpperCase()+s.trim().slice(1):"").join("");return n&&(r[n]=process.env[i]),r},{})},R3=()=>{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`]?mr(process.env[`${e}WORKSPACE_CONFIG_FILE`]):void 0,workspaceRoot:process.env[`${e}WORKSPACE_ROOT`]?mr(process.env[`${e}WORKSPACE_ROOT`]):void 0,directories:{cache:process.env[`${e}CACHE_DIR`]?mr(process.env[`${e}CACHE_DIR`]):process.env[`${e}CACHE_DIRECTORY`]?mr(process.env[`${e}CACHE_DIRECTORY`]):void 0,data:process.env[`${e}DATA_DIR`]?mr(process.env[`${e}DATA_DIR`]):process.env[`${e}DATA_DIRECTORY`]?mr(process.env[`${e}DATA_DIRECTORY`]):void 0,config:process.env[`${e}CONFIG_DIR`]?mr(process.env[`${e}CONFIG_DIR`]):process.env[`${e}CONFIG_DIRECTORY`]?mr(process.env[`${e}CONFIG_DIRECTORY`]):void 0,temp:process.env[`${e}TEMP_DIR`]?mr(process.env[`${e}TEMP_DIR`]):process.env[`${e}TEMP_DIRECTORY`]?mr(process.env[`${e}TEMP_DIRECTORY`]):void 0,log:process.env[`${e}LOG_DIR`]?mr(process.env[`${e}LOG_DIR`]):process.env[`${e}LOG_DIRECTORY`]?mr(process.env[`${e}LOG_DIRECTORY`]):void 0,build:process.env[`${e}BUILD_DIR`]?mr(process.env[`${e}BUILD_DIR`]):process.env[`${e}BUILD_DIRECTORY`]?mr(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`]))?d4(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},r=Object.keys(process.env).filter(n=>n.startsWith(`${e}COLOR_`)&&b3.every(s=>!n.startsWith(`${e}COLOR_LIGHT_${s}`)&&!n.startsWith(`${e}COLOR_DARK_${s}`)));t.colors=r.length>0?r.reduce((n,s)=>(n[s]=k3(e,s),n),{}):k3(e),t.docs===b4&&(t.homepage===tf?t.docs=`${tf}/projects/${t.name}/docs`:t.docs=`${t.homepage}/docs`),t.licensing===v4&&(t.homepage===tf?t.licensing=`${tf}/projects/${t.name}/licensing`:t.licensing=`${t.homepage}/docs`);let i=process.env[`${e}WORKSPACE_CONFIG`];if(i){let n=JSON.parse(i);t={...t,...n,colors:{...t.colors,...n.colors},extensions:{...t.extensions,...n.extensions}}}return t},k3=(e,t)=>{let r=`COLOR_${t&&t!=="base"?`${t}_`:""}`.toUpperCase();return process.env[`${e}${r}LIGHT_BRAND`]||process.env[`${e}${r}DARK_BRAND`]?Wae(e+r):Yae(e+r)},Yae=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 r=process.env[`${e}GRADIENT_0`]?0:1;for(;process.env[`${e}GRADIENT_${r}`];)t.push(process.env[`${e}GRADIENT_${r}`]),r++}return{dark:process.env[`${e}DARK`],light:process.env[`${e}LIGHT`],brand:process.env[`${e}BRAND`],alternate:process.env[`${e}ALTERNATE`],accent:process.env[`${e}ACCENT`],link:process.env[`${e}LINK`],help:process.env[`${e}HELP`],success:process.env[`${e}SUCCESS`],info:process.env[`${e}INFO`],debug:process.env[`${e}DEBUG`],warning:process.env[`${e}WARNING`],danger:process.env[`${e}DANGER`],fatal:process.env[`${e}FATAL`],performance:process.env[`${e}PERFORMANCE`],positive:process.env[`${e}POSITIVE`],negative:process.env[`${e}NEGATIVE`],gradient:t}},Wae=e=>({light:_3(`${e}_LIGHT_`),dark:_3(`${e}_DARK_`)}),_3=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 r=process.env[`${e}GRADIENT_0`]?0:1;for(;process.env[`${e}GRADIENT_${r}`];)t.push(process.env[`${e}GRADIENT_${r}`]),r++}return{foreground:process.env[`${e}FOREGROUND`],background:process.env[`${e}BACKGROUND`],brand:process.env[`${e}BRAND`],alternate:process.env[`${e}ALTERNATE`],accent:process.env[`${e}ACCENT`],link:process.env[`${e}LINK`],help:process.env[`${e}HELP`],success:process.env[`${e}SUCCESS`],info:process.env[`${e}INFO`],debug:process.env[`${e}DEBUG`],warning:process.env[`${e}WARNING`],danger:process.env[`${e}DANGER`],fatal:process.env[`${e}FATAL`],performance:process.env[`${e}PERFORMANCE`],positive:process.env[`${e}POSITIVE`],negative:process.env[`${e}NEGATIVE`],gradient:t}};var Jae=(e,t)=>{for(let r of Object.keys(t??{}))if(t[r]){let i=r?.replace(/([A-Z])+/g,s=>s?s[0]?.toUpperCase()+s.slice(1):"").split(/(?=[A-Z])|[.\-\s_]/).map(s=>s.toLowerCase())??[],n;if(i.length===0)return;i.length===1?n=i[0]?.toUpperCase()??"":n=i.reduce((s,o)=>`${s}_${o.toLowerCase()}`),process.env[`STORM_EXTENSION_${e.toUpperCase()}_${n.toUpperCase()}`]=t[r]}},N3=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`]=mr(e.configFile)),e.workspaceRoot&&(process.env[`${t}WORKSPACE_ROOT`]=mr(e.workspaceRoot),process.env.NX_WORKSPACE_ROOT=mr(e.workspaceRoot),process.env.NX_WORKSPACE_ROOT_PATH=mr(e.workspaceRoot)),e.directories&&(!e.skipCache&&e.directories.cache&&(process.env[`${t}CACHE_DIR`]=mr(e.directories.cache),process.env[`${t}CACHE_DIRECTORY`]=process.env[`${t}CACHE_DIR`]),e.directories.data&&(process.env[`${t}DATA_DIR`]=mr(e.directories.data),process.env[`${t}DATA_DIRECTORY`]=process.env[`${t}DATA_DIR`]),e.directories.config&&(process.env[`${t}CONFIG_DIR`]=mr(e.directories.config),process.env[`${t}CONFIG_DIRECTORY`]=process.env[`${t}CONFIG_DIR`]),e.directories.temp&&(process.env[`${t}TEMP_DIR`]=mr(e.directories.temp),process.env[`${t}TEMP_DIRECTORY`]=process.env[`${t}TEMP_DIR`]),e.directories.log&&(process.env[`${t}LOG_DIR`]=mr(e.directories.log),process.env[`${t}LOG_DIRECTORY`]=process.env[`${t}LOG_DIR`]),e.directories.build&&(process.env[`${t}BUILD_DIR`]=mr(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 r of Object.keys(e.colors))T3(`${t}COLOR_${r}_`,e.colors[r]);else T3(`${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(Ap(e.logLevel)>=Ft.DEBUG),process.env.RUST_BACKTRACE=Ap(e.logLevel)>=Ft.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 r of Object.keys(e.extensions??{}))e.extensions[r]&&Object.keys(e.extensions[r])&&Jae(r,e.extensions[r])},T3=(e,t)=>t?.light?.brand||t?.dark?.brand?Kae(e,t):Zae(e,t),Zae=(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.debug&&(process.env[`${e}DEBUG`]=t.debug),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.performance&&(process.env[`${e}PERFORMANCE`]=t.performance),t.positive&&(process.env[`${e}POSITIVE`]=t.positive),t.negative&&(process.env[`${e}NEGATIVE`]=t.negative),t.gradient)for(let r=0;r<t.gradient.length;r++)process.env[`${e}GRADIENT_${r}`]=t.gradient[r]},Kae=(e,t)=>({light:F3(`${e}LIGHT_`,t.light),dark:F3(`${e}DARK_`,t.dark)}),F3=(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.debug&&(process.env[`${e}DEBUG`]=t.debug),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.performance&&(process.env[`${e}PERFORMANCE`]=t.performance),t.positive&&(process.env[`${e}POSITIVE`]=t.positive),t.negative&&(process.env[`${e}NEGATIVE`]=t.negative),t.gradient)for(let r=0;r<t.gradient.length;r++)process.env[`${e}GRADIENT_${r}`]=t.gradient[r]};var fQ=new WeakMap,cf,Xae=async(e,t,r,i=!1,n=!0)=>{let s;if(!cf?.data||!cf?.timestamp||cf.timestamp<Date.now()-8e3){let o=r;o||(o=tu());let a=R3(),l=await S3(o);if(!l&&(i||m4("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"}),n===!1))return;let u=await x3(o),p=As(a,l,u);p.variant||(p.variant=(0,lf.existsSync)(_o(o,"nx.json"))||(0,lf.existsSync)(_o(o,".nx"))||(0,lf.existsSync)(_o(o,"lerna.json"))||(0,lf.existsSync)(_o(o,"turbo.json"))?"monorepo":"minimal");try{let h=await Promise.resolve(C3._zod.parse({value:p,issues:[]},{async:!0}));s=B3(h.value),s.workspaceRoot??=o}catch(h){throw new Error(`Failed to parse Storm Workspace configuration${h?.message?`: ${h.message}`:""}
|
|
336
336
|
|
|
337
337
|
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${Sn(p)}`,{cause:h})}}else s=cf.data;return t&&e&&(s.extensions={...s.extensions,[e]:ece(e,t)}),cf={timestamp:Date.now(),data:s},s},ece=(e,t)=>{let r={extensionName:e};if(fQ.has(r))return fQ.get(r);let i=D3(e);return t&&(i=t.parse(i)),fQ.set(r,i),i},L3=async(e,t=!1)=>{let r=await Xae(void 0,void 0,e,t,!0);return N3(r),!t&&!r.skipConfigLogging&&Xd(`\u2699\uFE0F Using Storm Workspace configuration:
|
|
338
338
|
${Sn(r)}`,r),r};function O3(e,t=!1){return L3(e,t)}var cW=Ti(BH()),tl=Ti(oW());async function BCe(){let e=E4("create-storm-workspace"),t=await O3();try{VB(`${ef(t)} Preparing to create the Storm Workspace`,t),["SIGTERM","SIGINT","SIGUSR2"].map(h=>{process.once(h,()=>{try{console.info(`process.on ${h}`),console.info("shutdown process done, exiting with code 0"),process.exit(0)}catch(f){console.warn("shutdown process failed, exiting with code 1"),console.error(f),process.exit(1)}})});let r=process.argv.length>2?process.argv[2]:null;r||(r=(await(0,tl.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,tl.prompt)({type:"input",name:"organization",message:"What organization owns this repository?",initial:"storm-software"})).organization);let n=process.argv.length>4?process.argv[4]:null;n||(n=(await(0,tl.prompt)({type:"input",name:"namespace",message:"What is the namespace of this repository (npm scope)?",initial:i||"storm-software"})).namespace);let s=process.argv.length>5&&process.argv[5]?!!process.argv[5]:null;!s&&typeof s!="boolean"&&(s=(await(0,tl.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 o=process.argv.length>6&&process.argv[6]?!!process.argv[6]:null;!o&&typeof o!="boolean"&&(o=(await(0,tl.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 a=process.argv.length>7?process.argv[7]:null;a||(a=(await(0,tl.prompt)({type:"input",name:"description",message:"Provide a description of the workspace to use in the package.json and README.md files.",initial:`${ef(t)} The ${n||r} monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.`})).description);let l=process.argv.length>8?process.argv[8]:null;l||(l=(await(0,tl.prompt)({type:"input",name:"repositoryUrl",message:"What is the workspace's Git repository's URL?",initial:`https://github.com/${i||"storm-software"}/${r}`})).repositoryUrl),VB(`${ef(t)} Creating the Storm Workspace: ${r}`,t);let u=(0,aW.getNpmPackageVersion)("@storm-software/workspace-tools"),{directory:p}=await(0,cW.createWorkspace)(`@storm-software/workspace-tools@${u||"latest"}`,{name:r,organization:i,namespace:n,description:a,includeApps:s,includeRust:o,repositoryUrl:l,nxCloud:"skip",packageManager:"pnpm",mode:"dark",interactive:!1,defaultBase:"main",useGitHub:!0,skipGit:!1,cliName:"Storm Workspace Generator"});g4(`${ef(t)} Successfully created the workspace: ${p}.`,t)}catch(r){f4("\u274C An error occurred while creating the workspace. Please correct the below issue:",t),console.error(r),process.exit(1)}finally{e()}}BCe();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-storm-workspace",
|
|
3
|
-
"version": "1.97.
|
|
3
|
+
"version": "1.97.144",
|
|
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": "22.6.0"
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": { "access": "public" },
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "6b69d24518cb551fa374e8769d1adfbc34448ffb"
|
|
48
48
|
}
|