create-storm-workspace 1.91.27 → 1.91.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  # Changelog for Storm Ops - Create Storm Workspace
4
4
 
5
+ ## [1.91.28](https://github.com/storm-software/storm-ops/releases/tag/create-storm-workspace%401.91.28) (2025-06-20)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **monorepo:** Update README markdown files
10
+ ([cd1727b2a](https://github.com/storm-software/storm-ops/commit/cd1727b2a))
11
+
12
+ ## [1.91.27](https://github.com/storm-software/storm-ops/releases/tag/create-storm-workspace%401.91.27) (2025-06-20)
13
+
14
+ ### Miscellaneous
15
+
16
+ - **monorepo:** Update README markdown files
17
+ ([90a90bfac](https://github.com/storm-software/storm-ops/commit/90a90bfac))
18
+
5
19
  ## [1.91.26](https://github.com/storm-software/storm-ops/releases/tag/create-storm-workspace%401.91.26) (2025-06-20)
6
20
 
7
21
  ### Miscellaneous
package/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-1.91.26-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-1.91.28-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
package/index.js CHANGED
@@ -712,7 +712,7 @@ If this sounds interesting, and you would like to help us in creating the next g
712
712
  if (${E}.issues.length) payload.issues = payload.issues.concat(${E}.issues.map(iss => ({
713
713
  ...iss,
714
714
  path: iss.path ? [${wu(b)}, ...iss.path] : [${wu(b)}]
715
- })));`),h.write(`newResult[${wu(b)}] = ${E}.value`)}h.write("payload.value = newResult;"),h.write("return payload;");let g=h.compile();return(b,E)=>g(o,b,E)},l,r=oh,u=!Dm.jitless,p=u&&qv.value,{catchall:d}=t,i;e._zod.parse=(o,h)=>{i??(i=n.value);let A=o.value;if(!r(A))return o.issues.push({expected:"object",code:"invalid_type",input:A,inst:e}),o;let y=[];if(u&&p&&h?.async===!1&&h.jitless!==!0)l||(l=s(t.shape)),o=l(o,h);else{o.value={};let E=i.shape;for(let w of i.keys){let B=E[w],_=B._zod.run({value:A[w],issues:[]},h),v=B._zod.optin==="optional"&&B._zod.optout==="optional";_ instanceof Promise?y.push(_.then(D=>v?wO(D,o,w,A):Lm(D,o,w))):v?wO(_,o,w,A):Lm(_,o,w)}}if(!d)return y.length?Promise.all(y).then(()=>o):o;let I=[],f=i.keySet,g=d._zod,b=g.def.type;for(let E of Object.keys(A)){if(f.has(E))continue;if(b==="never"){I.push(E);continue}let w=g.run({value:A[E],issues:[]},h);w instanceof Promise?y.push(w.then(B=>Lm(B,o,E))):Lm(w,o,E)}return I.length&&o.issues.push({code:"unrecognized_keys",keys:I,input:A,inst:e}),y.length?Promise.all(y).then(()=>o):o}});function BO(e,t,n,s){for(let l of e)if(l.issues.length===0)return t.value=l.value,t;return t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(l=>l.issues.map(r=>So(r,s,as())))}),t}var oF=_t("$ZodUnion",(e,t)=>{_n.init(e,t),On(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),On(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=>lh(s.source)).join("|")})$`)}}),e._zod.parse=(n,s)=>{let l=!1,r=[];for(let u of t.options){let a=u._zod.run({value:n.value,issues:[]},s);if(a instanceof Promise)r.push(a),l=!0;else{if(a.issues.length===0)return a;r.push(a)}}return l?Promise.all(r).then(u=>BO(u,n,e,s)):BO(r,n,e,s)}});var aF=_t("$ZodIntersection",(e,t)=>{_n.init(e,t),e._zod.parse=(n,s)=>{let{value:l}=n,r=t.left._zod.run({value:l,issues:[]},s),u=t.right._zod.run({value:l,issues:[]},s);return r instanceof Promise||u instanceof Promise?Promise.all([r,u]).then(([p,d])=>_O(n,p,d)):_O(n,r,u)}});function oI(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(uh(e)&&uh(t)){let n=Object.keys(t),s=Object.keys(e).filter(r=>n.indexOf(r)!==-1),l={...e,...t};for(let r of s){let u=oI(e[r],t[r]);if(!u.valid)return{valid:!1,mergeErrorPath:[r,...u.mergeErrorPath]};l[r]=u.data}return{valid:!0,data:l}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let s=0;s<e.length;s++){let l=e[s],r=t[s],u=oI(l,r);if(!u.valid)return{valid:!1,mergeErrorPath:[s,...u.mergeErrorPath]};n.push(u.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function _O(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),_u(e))return e;let s=oI(t.value,n.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}var lF=_t("$ZodRecord",(e,t)=>{_n.init(e,t),e._zod.parse=(n,s)=>{let l=n.value;if(!uh(l))return n.issues.push({expected:"record",code:"invalid_type",input:l,inst:e}),n;let r=[];if(t.keyType._zod.values){let u=t.keyType._zod.values;n.value={};for(let p of u)if(typeof p=="string"||typeof p=="number"||typeof p=="symbol"){let d=t.valueType._zod.run({value:l[p],issues:[]},s);d instanceof Promise?r.push(d.then(i=>{i.issues.length&&n.issues.push(...Zo(p,i.issues)),n.value[p]=i.value})):(d.issues.length&&n.issues.push(...Zo(p,d.issues)),n.value[p]=d.value)}let a;for(let p in l)u.has(p)||(a=a??[],a.push(p));a&&a.length>0&&n.issues.push({code:"unrecognized_keys",input:l,inst:e,keys:a})}else{n.value={};for(let u of Reflect.ownKeys(l)){if(u==="__proto__")continue;let a=t.keyType._zod.run({value:u,issues:[]},s);if(a instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(a.issues.length){n.issues.push({origin:"record",code:"invalid_key",issues:a.issues.map(d=>So(d,s,as())),input:u,path:[u],inst:e}),n.value[a.value]=a.value;continue}let p=t.valueType._zod.run({value:l[u],issues:[]},s);p instanceof Promise?r.push(p.then(d=>{d.issues.length&&n.issues.push(...Zo(u,d.issues)),n.value[a.value]=d.value})):(p.issues.length&&n.issues.push(...Zo(u,p.issues)),n.value[a.value]=p.value)}}return r.length?Promise.all(r).then(()=>n):n}});var uF=_t("$ZodEnum",(e,t)=>{_n.init(e,t);let n=Pm(t.entries);e._zod.values=new Set(n),e._zod.pattern=new RegExp(`^(${n.filter(s=>Jv.has(typeof s)).map(s=>typeof s=="string"?Bu(s):s.toString()).join("|")})$`),e._zod.parse=(s,l)=>{let r=s.value;return e._zod.values.has(r)||s.issues.push({code:"invalid_value",values:n,input:r,inst:e}),s}});var cI=_t("$ZodTransform",(e,t)=>{_n.init(e,t),e._zod.parse=(n,s)=>{let l=t.transform(n.value,n);if(s.async)return(l instanceof Promise?l:Promise.resolve(l)).then(u=>(n.value=u,n));if(l instanceof Promise)throw new Wa;return n.value=l,n}}),cF=_t("$ZodOptional",(e,t)=>{_n.init(e,t),e._zod.optin="optional",e._zod.optout="optional",On(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),On(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${lh(n.source)})?$`):void 0}),e._zod.parse=(n,s)=>n.value===void 0?n:t.innerType._zod.run(n,s)}),pF=_t("$ZodNullable",(e,t)=>{_n.init(e,t),On(e._zod,"optin",()=>t.innerType._zod.optin),On(e._zod,"optout",()=>t.innerType._zod.optout),On(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${lh(n.source)}|null)$`):void 0}),On(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,s)=>n.value===null?n:t.innerType._zod.run(n,s)}),dF=_t("$ZodDefault",(e,t)=>{_n.init(e,t),e._zod.optin="optional",On(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,s)=>{if(n.value===void 0)return n.value=t.defaultValue,n;let l=t.innerType._zod.run(n,s);return l instanceof Promise?l.then(r=>TO(r,t)):TO(l,t)}});function TO(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var hF=_t("$ZodPrefault",(e,t)=>{_n.init(e,t),e._zod.optin="optional",On(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,s)=>(n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,s))}),fF=_t("$ZodNonOptional",(e,t)=>{_n.init(e,t),On(e._zod,"values",()=>{let n=t.innerType._zod.values;return n?new Set([...n].filter(s=>s!==void 0)):void 0}),e._zod.parse=(n,s)=>{let l=t.innerType._zod.run(n,s);return l instanceof Promise?l.then(r=>xO(r,e)):xO(l,e)}});function xO(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var AF=_t("$ZodCatch",(e,t)=>{_n.init(e,t),On(e._zod,"optin",()=>t.innerType._zod.optin),On(e._zod,"optout",()=>t.innerType._zod.optout),On(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,s)=>{let l=t.innerType._zod.run(n,s);return l instanceof Promise?l.then(r=>(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(u=>So(u,s,as()))},input:n.value}),n.issues=[]),n)):(n.value=l.value,l.issues.length&&(n.value=t.catchValue({...n,error:{issues:l.issues.map(r=>So(r,s,as()))},input:n.value}),n.issues=[]),n)}});var pI=_t("$ZodPipe",(e,t)=>{_n.init(e,t),On(e._zod,"values",()=>t.in._zod.values),On(e._zod,"optin",()=>t.in._zod.optin),On(e._zod,"optout",()=>t.out._zod.optout),e._zod.parse=(n,s)=>{let l=t.in._zod.run(n,s);return l instanceof Promise?l.then(r=>DO(r,t,s)):DO(l,t,s)}});function DO(e,t,n){return _u(e)?e:t.out._zod.run({value:e.value,issues:e.issues},n)}var mF=_t("$ZodReadonly",(e,t)=>{_n.init(e,t),On(e._zod,"propValues",()=>t.innerType._zod.propValues),On(e._zod,"optin",()=>t.innerType._zod.optin),On(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(n,s)=>{let l=t.innerType._zod.run(n,s);return l instanceof Promise?l.then(PO):PO(l)}});function PO(e){return e.value=Object.freeze(e.value),e}var gF=_t("$ZodCustom",(e,t)=>{to.init(e,t),_n.init(e,t),e._zod.parse=(n,s)=>n,e._zod.check=n=>{let s=n.value,l=t.fn(s);if(l instanceof Promise)return l.then(r=>kO(r,n,s,e));kO(l,n,s,e)}});function kO(e,t,n,s){if(!e){let l={code:"custom",input:n,inst:s,path:[...s._zod.def.path??[]],continue:!s._zod.def.abort};s._zod.def.params&&(l.params=s._zod.def.params),t.issues.push(Zv(l))}}var mq=e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},gq=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function t(s){return e[s]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return s=>{switch(s.code){case"invalid_type":return`Invalid input: expected ${s.expected}, received ${mq(s.input)}`;case"invalid_value":return s.values.length===1?`Invalid input: expected ${Br(s.values[0])}`:`Invalid option: expected one of ${wr(s.values,"|")}`;case"too_big":{let l=s.inclusive?"<=":"<",r=t(s.origin);return r?`Too big: expected ${s.origin??"value"} to have ${l}${s.maximum.toString()} ${r.unit??"elements"}`:`Too big: expected ${s.origin??"value"} to be ${l}${s.maximum.toString()}`}case"too_small":{let l=s.inclusive?">=":">",r=t(s.origin);return r?`Too small: expected ${s.origin} to have ${l}${s.minimum.toString()} ${r.unit}`:`Too small: expected ${s.origin} to be ${l}${s.minimum.toString()}`}case"invalid_format":{let l=s;return l.format==="starts_with"?`Invalid string: must start with "${l.prefix}"`:l.format==="ends_with"?`Invalid string: must end with "${l.suffix}"`:l.format==="includes"?`Invalid string: must include "${l.includes}"`:l.format==="regex"?`Invalid string: must match pattern ${l.pattern}`:`Invalid ${n[l.format]??s.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${s.divisor}`;case"unrecognized_keys":return`Unrecognized key${s.keys.length>1?"s":""}: ${wr(s.keys,", ")}`;case"invalid_key":return`Invalid key in ${s.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${s.origin}`;default:return"Invalid input"}}};function dI(){return{localeError:gq()}}var yq=Symbol("ZodOutput"),bq=Symbol("ZodInput"),Mm=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let s=n[0];if(this._map.set(t,s),s&&typeof s=="object"&&"id"in s){if(this._idmap.has(s.id))throw new Error(`ID ${s.id} already exists in the registry`);this._idmap.set(s.id,t)}return this}remove(t){return this._map.delete(t),this}get(t){let n=t._zod.parent;if(n){let s={...this.get(n)??{}};return delete s.id,{...s,...this._map.get(t)}}return this._map.get(t)}has(t){return this._map.has(t)}};function EF(){return new Mm}var Tu=EF();function CF(e,t){return new e({type:"string",...Ir(t)})}function vF(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Ir(t)})}function hI(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Ir(t)})}function IF(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Ir(t)})}function SF(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Ir(t)})}function wF(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Ir(t)})}function BF(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Ir(t)})}function _F(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Ir(t)})}function TF(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Ir(t)})}function xF(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Ir(t)})}function DF(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Ir(t)})}function PF(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Ir(t)})}function kF(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Ir(t)})}function NF(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Ir(t)})}function RF(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Ir(t)})}function QF(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Ir(t)})}function OF(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Ir(t)})}function FF(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Ir(t)})}function LF(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Ir(t)})}function MF(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Ir(t)})}function jF(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Ir(t)})}function UF(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Ir(t)})}function $F(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Ir(t)})}function VF(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Ir(t)})}function GF(e,t){return new e({type:"string",format:"date",check:"string_format",...Ir(t)})}function WF(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Ir(t)})}function HF(e,t){return new e({type:"string",format:"duration",check:"string_format",...Ir(t)})}function YF(e,t){return new e({type:"boolean",...Ir(t)})}function zF(e){return new e({type:"any"})}function fI(e){return new e({type:"unknown"})}function qF(e,t){return new e({type:"never",...Ir(t)})}function jm(e,t){return new dO({check:"max_length",...Ir(t),maximum:e})}function sp(e,t){return new hO({check:"min_length",...Ir(t),minimum:e})}function Um(e,t){return new fO({check:"length_equals",...Ir(t),length:e})}function AI(e,t){return new AO({check:"string_format",format:"regex",...Ir(t),pattern:e})}function mI(e){return new mO({check:"string_format",format:"lowercase",...Ir(e)})}function gI(e){return new gO({check:"string_format",format:"uppercase",...Ir(e)})}function yI(e,t){return new yO({check:"string_format",format:"includes",...Ir(t),includes:e})}function bI(e,t){return new bO({check:"string_format",format:"starts_with",...Ir(t),prefix:e})}function EI(e,t){return new EO({check:"string_format",format:"ends_with",...Ir(t),suffix:e})}function xu(e){return new CO({check:"overwrite",tx:e})}function CI(e){return xu(t=>t.normalize(e))}function vI(){return xu(e=>e.trim())}function II(){return xu(e=>e.toLowerCase())}function SI(){return xu(e=>e.toUpperCase())}function wI(e,t,n){return new e({type:"array",element:t,...Ir(n)})}function JF(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Ir(n)})}var ZF=_t("ZodISODateTime",(e,t)=>{GO.init(e,t),Fn.init(e,t)});function XF(e){return VF(ZF,e)}var eL=_t("ZodISODate",(e,t)=>{WO.init(e,t),Fn.init(e,t)});function tL(e){return GF(eL,e)}var rL=_t("ZodISOTime",(e,t)=>{HO.init(e,t),Fn.init(e,t)});function nL(e){return WF(rL,e)}var iL=_t("ZodISODuration",(e,t)=>{YO.init(e,t),Fn.init(e,t)});function sL(e){return HF(iL,e)}var lL=(e,t)=>{Qm.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>tI(e,n)},flatten:{value:n=>eI(e,n)},addIssue:{value:n=>e.issues.push(n)},addIssues:{value:n=>e.issues.push(...n)},isEmpty:{get(){return e.issues.length===0}}})},Aue=_t("ZodError",lL),hh=_t("ZodError",lL,{Parent:Error});var uL=O2(hh),cL=F2(hh),pL=rI(hh),dL=nI(hh);var ri=_t("ZodType",(e,t)=>(_n.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(s=>typeof s=="function"?{_zod:{check:s,def:{check:"custom"},onattach:[]}}:s)]}),e.clone=(n,s)=>Io(e,n,s),e.brand=()=>e,e.register=(n,s)=>(n.add(e,s),e),e.parse=(n,s)=>uL(e,n,s,{callee:e.parse}),e.safeParse=(n,s)=>pL(e,n,s),e.parseAsync=async(n,s)=>cL(e,n,s,{callee:e.parseAsync}),e.safeParseAsync=async(n,s)=>dL(e,n,s),e.spa=e.safeParseAsync,e.refine=(n,s)=>e.check(bJ(n,s)),e.superRefine=n=>e.check(EJ(n)),e.overwrite=n=>e.check(xu(n)),e.optional=()=>AL(e),e.nullable=()=>mL(e),e.nullish=()=>AL(mL(e)),e.nonoptional=n=>pJ(e,n),e.array=()=>Vm(e),e.or=n=>TI([e,n]),e.and=n=>rJ(e,n),e.transform=n=>gL(e,sJ(n)),e.default=n=>lJ(e,n),e.prefault=n=>cJ(e,n),e.catch=n=>hJ(e,n),e.pipe=n=>gL(e,n),e.readonly=()=>mJ(e),e.describe=n=>{let s=e.clone();return Tu.add(s,{description:n}),s},Object.defineProperty(e,"description",{get(){return Tu.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Tu.get(e);let s=e.clone();return Tu.add(s,n[0]),s},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),yL=_t("_ZodString",(e,t)=>{dh.init(e,t),ri.init(e,t);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...s)=>e.check(AI(...s)),e.includes=(...s)=>e.check(yI(...s)),e.startsWith=(...s)=>e.check(bI(...s)),e.endsWith=(...s)=>e.check(EI(...s)),e.min=(...s)=>e.check(sp(...s)),e.max=(...s)=>e.check(jm(...s)),e.length=(...s)=>e.check(Um(...s)),e.nonempty=(...s)=>e.check(sp(1,...s)),e.lowercase=s=>e.check(mI(s)),e.uppercase=s=>e.check(gI(s)),e.trim=()=>e.check(vI()),e.normalize=(...s)=>e.check(CI(...s)),e.toLowerCase=()=>e.check(II()),e.toUpperCase=()=>e.check(SI())}),bL=_t("ZodString",(e,t)=>{dh.init(e,t),yL.init(e,t),e.email=n=>e.check(vF(Pq,n)),e.url=n=>e.check(_F(kq,n)),e.jwt=n=>e.check($F(Yq,n)),e.emoji=n=>e.check(TF(Nq,n)),e.guid=n=>e.check(hI(hL,n)),e.uuid=n=>e.check(IF($m,n)),e.uuidv4=n=>e.check(SF($m,n)),e.uuidv6=n=>e.check(wF($m,n)),e.uuidv7=n=>e.check(BF($m,n)),e.nanoid=n=>e.check(xF(Rq,n)),e.guid=n=>e.check(hI(hL,n)),e.cuid=n=>e.check(DF(Qq,n)),e.cuid2=n=>e.check(PF(Oq,n)),e.ulid=n=>e.check(kF(Fq,n)),e.base64=n=>e.check(MF(Gq,n)),e.base64url=n=>e.check(jF(Wq,n)),e.xid=n=>e.check(NF(Lq,n)),e.ksuid=n=>e.check(RF(Mq,n)),e.ipv4=n=>e.check(QF(jq,n)),e.ipv6=n=>e.check(OF(Uq,n)),e.cidrv4=n=>e.check(FF($q,n)),e.cidrv6=n=>e.check(LF(Vq,n)),e.e164=n=>e.check(UF(Hq,n)),e.datetime=n=>e.check(XF(n)),e.date=n=>e.check(tL(n)),e.time=n=>e.check(nL(n)),e.duration=n=>e.check(sL(n))});function tr(e){return CF(bL,e)}var Fn=_t("ZodStringFormat",(e,t)=>{Tn.init(e,t),yL.init(e,t)}),Pq=_t("ZodEmail",(e,t)=>{QO.init(e,t),Fn.init(e,t)});var hL=_t("ZodGUID",(e,t)=>{NO.init(e,t),Fn.init(e,t)});var $m=_t("ZodUUID",(e,t)=>{RO.init(e,t),Fn.init(e,t)});var kq=_t("ZodURL",(e,t)=>{OO.init(e,t),Fn.init(e,t)});var Nq=_t("ZodEmoji",(e,t)=>{FO.init(e,t),Fn.init(e,t)});var Rq=_t("ZodNanoID",(e,t)=>{LO.init(e,t),Fn.init(e,t)});var Qq=_t("ZodCUID",(e,t)=>{MO.init(e,t),Fn.init(e,t)});var Oq=_t("ZodCUID2",(e,t)=>{jO.init(e,t),Fn.init(e,t)});var Fq=_t("ZodULID",(e,t)=>{UO.init(e,t),Fn.init(e,t)});var Lq=_t("ZodXID",(e,t)=>{$O.init(e,t),Fn.init(e,t)});var Mq=_t("ZodKSUID",(e,t)=>{VO.init(e,t),Fn.init(e,t)});var jq=_t("ZodIPv4",(e,t)=>{zO.init(e,t),Fn.init(e,t)});var Uq=_t("ZodIPv6",(e,t)=>{qO.init(e,t),Fn.init(e,t)});var $q=_t("ZodCIDRv4",(e,t)=>{JO.init(e,t),Fn.init(e,t)});var Vq=_t("ZodCIDRv6",(e,t)=>{KO.init(e,t),Fn.init(e,t)});var Gq=_t("ZodBase64",(e,t)=>{XO.init(e,t),Fn.init(e,t)});var Wq=_t("ZodBase64URL",(e,t)=>{eF.init(e,t),Fn.init(e,t)});var Hq=_t("ZodE164",(e,t)=>{tF.init(e,t),Fn.init(e,t)});var Yq=_t("ZodJWT",(e,t)=>{rF.init(e,t),Fn.init(e,t)});var EL=_t("ZodBoolean",(e,t)=>{aI.init(e,t),ri.init(e,t)});function _I(e){return YF(EL,e)}var zq=_t("ZodAny",(e,t)=>{nF.init(e,t),ri.init(e,t)});function CL(){return zF(zq)}var qq=_t("ZodUnknown",(e,t)=>{lI.init(e,t),ri.init(e,t)});function fL(){return fI(qq)}var Jq=_t("ZodNever",(e,t)=>{iF.init(e,t),ri.init(e,t)});function Kq(e){return qF(Jq,e)}var Zq=_t("ZodArray",(e,t)=>{uI.init(e,t),ri.init(e,t),e.element=t.element,e.min=(n,s)=>e.check(sp(n,s)),e.nonempty=n=>e.check(sp(1,n)),e.max=(n,s)=>e.check(jm(n,s)),e.length=(n,s)=>e.check(Um(n,s)),e.unwrap=()=>e.element});function Vm(e,t){return wI(Zq,e,t)}var Xq=_t("ZodObject",(e,t)=>{sF.init(e,t),ri.init(e,t),zt.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>fh(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:fL()}),e.loose=()=>e.clone({...e._zod.def,catchall:fL()}),e.strict=()=>e.clone({...e._zod.def,catchall:Kq()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>zt.extend(e,n),e.merge=n=>zt.merge(e,n),e.pick=n=>zt.pick(e,n),e.omit=n=>zt.omit(e,n),e.partial=(...n)=>zt.partial(vL,e,n[0]),e.required=(...n)=>zt.required(IL,e,n[0])});function Ss(e,t){let n={type:"object",get shape(){return zt.assignProp(this,"shape",{...e}),this.shape},...zt.normalizeParams(t)};return new Xq(n)}var eJ=_t("ZodUnion",(e,t)=>{oF.init(e,t),ri.init(e,t),e.options=t.options});function TI(e,t){return new eJ({type:"union",options:e,...zt.normalizeParams(t)})}var tJ=_t("ZodIntersection",(e,t)=>{aF.init(e,t),ri.init(e,t)});function rJ(e,t){return new tJ({type:"intersection",left:e,right:t})}var nJ=_t("ZodRecord",(e,t)=>{lF.init(e,t),ri.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function xI(e,t,n){return new nJ({type:"record",keyType:e,valueType:t,...zt.normalizeParams(n)})}var BI=_t("ZodEnum",(e,t)=>{uF.init(e,t),ri.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(s,l)=>{let r={};for(let u of s)if(n.has(u))r[u]=t.entries[u];else throw new Error(`Key ${u} not found in enum`);return new BI({...t,checks:[],...zt.normalizeParams(l),entries:r})},e.exclude=(s,l)=>{let r={...t.entries};for(let u of s)if(n.has(u))delete r[u];else throw new Error(`Key ${u} not found in enum`);return new BI({...t,checks:[],...zt.normalizeParams(l),entries:r})}});function fh(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(s=>[s,s])):e;return new BI({type:"enum",entries:n,...zt.normalizeParams(t)})}var iJ=_t("ZodTransform",(e,t)=>{cI.init(e,t),ri.init(e,t),e._zod.parse=(n,s)=>{n.addIssue=r=>{if(typeof r=="string")n.issues.push(zt.issue(r,n.value,t));else{let u=r;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),u.input??(u.input=n.value),u.inst??(u.inst=e),u.continue??(u.continue=!0),n.issues.push(zt.issue(u))}};let l=t.transform(n.value,n);return l instanceof Promise?l.then(r=>(n.value=r,n)):(n.value=l,n)}});function sJ(e){return new iJ({type:"transform",transform:e})}var vL=_t("ZodOptional",(e,t)=>{cF.init(e,t),ri.init(e,t),e.unwrap=()=>e._zod.def.innerType});function AL(e){return new vL({type:"optional",innerType:e})}var oJ=_t("ZodNullable",(e,t)=>{pF.init(e,t),ri.init(e,t),e.unwrap=()=>e._zod.def.innerType});function mL(e){return new oJ({type:"nullable",innerType:e})}var aJ=_t("ZodDefault",(e,t)=>{dF.init(e,t),ri.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function lJ(e,t){return new aJ({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}var uJ=_t("ZodPrefault",(e,t)=>{hF.init(e,t),ri.init(e,t),e.unwrap=()=>e._zod.def.innerType});function cJ(e,t){return new uJ({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}var IL=_t("ZodNonOptional",(e,t)=>{fF.init(e,t),ri.init(e,t),e.unwrap=()=>e._zod.def.innerType});function pJ(e,t){return new IL({type:"nonoptional",innerType:e,...zt.normalizeParams(t)})}var dJ=_t("ZodCatch",(e,t)=>{AF.init(e,t),ri.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function hJ(e,t){return new dJ({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var fJ=_t("ZodPipe",(e,t)=>{pI.init(e,t),ri.init(e,t),e.in=t.in,e.out=t.out});function gL(e,t){return new fJ({type:"pipe",in:e,out:t})}var AJ=_t("ZodReadonly",(e,t)=>{mF.init(e,t),ri.init(e,t)});function mJ(e){return new AJ({type:"readonly",innerType:e})}var gJ=_t("ZodCustom",(e,t)=>{gF.init(e,t),ri.init(e,t)});function yJ(e,t){let n=new to({check:"custom",...zt.normalizeParams(t)});return n._zod.check=e,n}function bJ(e,t={}){return JF(gJ,e,t)}function EJ(e,t){let n=yJ(s=>(s.addIssue=l=>{if(typeof l=="string")s.issues.push(zt.issue(l,s.value,n._zod.def));else{let r=l;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=s.value),r.inst??(r.inst=n),r.continue??(r.continue=!n._zod.def.abort),s.issues.push(zt.issue(r))}},e(s.value,s)),t);return n}var rce=Object.freeze({status:"aborted"});as(dI());var PI=tr().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace"),kI=tr().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace"),NI=tr().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace"),RI=tr().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The alternate brand specific color of the workspace"),QI=tr().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The secondary brand specific color of the workspace"),OI=tr().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display hyperlink text"),FI=tr().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace"),LI=tr().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#12B66A").describe("The success color of the workspace"),MI=tr().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0070E0").describe("The informational color of the workspace"),jI=tr().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace"),UI=tr().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#D8314A").describe("The danger color of the workspace"),$I=tr().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace"),VI=tr().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#4ade80").describe("The positive number color of the workspace"),GI=tr().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ef4444").describe("The negative number color of the workspace"),SJ=Ss({foreground:kI,background:PI,brand:NI,alternate:RI,accent:QI,link:OI,help:FI,success:LI,info:MI,warning:jI,danger:UI,fatal:$I,positive:VI,negative:GI}),wJ=Ss({foreground:PI,background:kI,brand:NI,alternate:RI,accent:QI,link:OI,help:FI,success:LI,info:MI,warning:jI,danger:UI,fatal:$I,positive:VI,negative:GI}),BJ=Ss({dark:SJ,light:wJ}),_J=Ss({dark:PI,light:kI,brand:NI,alternate:RI,accent:QI,link:OI,help:FI,success:LI,info:MI,warning:jI,danger:UI,fatal:$I,positive:VI,negative:GI}),Ah=tr().trim().toLowerCase().url().optional().describe("A remote registry URL used to publish distributable packages"),TJ=Ss({github:Ah,npm:Ah,cargo:Ah,cyclone:Ah,container:Ah}).default({}).describe("A list of remote registry URLs used by Storm Software"),DI=_J.or(BJ).describe("Colors used for various workspace elements"),xJ=TI([Ss({base:DI}),xI(tr(),DI)]),SL=tr().trim().describe("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."),DJ=SL.or(Vm(SL)).describe("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."),PJ=Ss({name:tr().trim().default("stormie-bot").describe("The workspace bot user's name (this is the bot that will be used to perform various tasks)"),email:tr().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")}).describe("The workspace's bot user's config used to automated various operations tasks"),kJ=Ss({banner:tr().trim().default(I2).describe("A URL to a banner image used to display the workspace's release"),header:tr().trim().optional().describe("A header message appended to the start of the workspace's release notes"),footer:tr().trim().default(T2).describe("A footer message appended to the end of the workspace's release notes")}).describe("The workspace's release config used during the release process"),NJ=Ss({twitter:tr().trim().default(S2).describe("A Twitter/X account associated with the organization/project"),discord:tr().trim().default(Vv).describe("A Discord account associated with the organization/project"),telegram:tr().trim().default(w2).describe("A Telegram account associated with the organization/project"),slack:tr().trim().default(Gv).describe("A Slack account associated with the organization/project"),medium:tr().trim().default(B2).describe("A Medium account associated with the organization/project"),github:tr().trim().default(_2).describe("A GitHub account associated with the organization/project")}).describe("The workspace's account config used to store various social media links"),RJ=Ss({cache:tr().trim().optional().describe("The directory used to store the environment's cached file data"),data:tr().trim().optional().describe("The directory used to store the environment's data files"),config:tr().trim().optional().describe("The directory used to store the environment's configuration files"),temp:tr().trim().optional().describe("The directory used to store the environment's temp files"),log:tr().trim().optional().describe("The directory used to store the environment's temp files"),build:tr().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")}).describe("Various directories used by the workspace to store data, cache, and configuration files"),QJ=Ss({codesFile:tr().trim().default(xm).describe("The path to the workspace's error codes JSON file"),url:tr().trim().url().optional().describe("A URL to a page that looks up the workspace's error messages given a specific error code")}).describe("The workspace's error config used during the error process"),OJ=Ss({name:tr().trim().describe("The name of the organization"),description:tr().trim().optional().describe("A description of the organization"),logo:tr().trim().url().optional().describe("A URL to the organization's logo image"),icon:tr().trim().url().optional().describe("A URL to the organization's icon image"),url:tr().trim().url().optional().describe("A URL to a page that provides more information about the organization")}).describe("The workspace's organization details"),wL=Ss({$schema:tr().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),extends:DJ.optional(),name:tr().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),namespace:tr().trim().toLowerCase().optional().describe("The namespace of the package"),organization:OJ.or(tr().trim().describe("The organization of the workspace")).optional().describe("The organization of the workspace. This can be a string or an object containing the organization's details"),repository:tr().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),license:tr().trim().default("Apache-2.0").describe("The license type of the package"),homepage:tr().trim().url().optional().describe("The homepage of the workspace"),docs:tr().trim().url().optional().describe("The documentation site for the workspace"),portal:tr().trim().url().optional().describe("The development portal site for the workspace"),licensing:tr().trim().url().optional().describe("The licensing site for the workspace"),contact:tr().trim().url().optional().describe("The contact site for the workspace"),support:tr().trim().url().optional().describe("The support site for the workspace. If not provided, this is defaulted to the `contact` config value"),branch:tr().trim().default("main").describe("The branch of the workspace"),preid:tr().optional().describe("A tag specifying the version pre-release identifier"),owner:tr().trim().default("@storm-software/admin").describe("The owner of the package"),bot:PJ,release:kJ,account:NJ,error:QJ,mode:fh(["development","staging","production"]).default("production").describe("The current runtime environment mode for the package"),workspaceRoot:tr().trim().describe("The root directory of the workspace"),externalPackagePatterns:Vm(tr()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),skipCache:_I().default(!1).describe("Should all known types of workspace caching be skipped?"),directories:RJ,packageManager:fh(["npm","yarn","pnpm","bun"]).default("npm").describe("The JavaScript/TypeScript package manager used by the repository"),timezone:tr().trim().default("America/New_York").describe("The default timezone of the workspace"),locale:tr().trim().default("en-US").describe("The default locale of the workspace"),logLevel:fh(["silent","fatal","error","warn","success","info","debug","trace","all"]).default("info").describe("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`)."),skipConfigLogging:_I().optional().describe("Should the logging of the current Storm Workspace configuration be skipped?"),registry:TJ,configFile:tr().trim().nullable().default(null).describe("The filepath of the Storm config. When this field is null, no config file was found in the current workspace."),colors:DI.or(xJ).describe("Storm theme config values used for styling various package elements"),extensions:xI(tr(),CL()).optional().default({}).describe("Configuration of each used extension")}).describe("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 BL=["dark","light","base","brand","alternate","accent","link","success","help","info","warning","danger","fatal","positive","negative"];var xL=require("node:fs"),DL=require("node:fs/promises"),PL=require("node:path");var FJ=/^[A-Za-z]:\//;function LJ(e=""){return e&&e.replace(/\\/g,"/").replace(FJ,t=>t.toUpperCase())}var MJ=/^[/\\]{2}/,jJ=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,UJ=/^[A-Za-z]:$/;var on=function(e){if(!e||e.length===0)return".";e=LJ(e);let t=e.match(MJ),n=_L(e),s=e[e.length-1]==="/";return e=$J(e,!n),e.length===0?n?"/":s?"./":".":(s&&(e+="/"),UJ.test(e)&&(e+="/"),t?n?`//${e}`:`//./${e}`:n&&!_L(e)?`/${e}`:e)},mh=function(...e){let t="";for(let n of e)if(n)if(t.length>0){let s=t[t.length-1]==="/",l=n[0]==="/";s&&l?t+=n.slice(1):t+=s||l?n:`/${n}`}else t+=n;return on(t)};function $J(e,t){let n="",s=0,l=-1,r=0,u=null;for(let a=0;a<=e.length;++a){if(a<e.length)u=e[a];else{if(u==="/")break;u="/"}if(u==="/"){if(!(l===a-1||r===1))if(r===2){if(n.length<2||s!==2||n[n.length-1]!=="."||n[n.length-2]!=="."){if(n.length>2){let p=n.lastIndexOf("/");p===-1?(n="",s=0):(n=n.slice(0,p),s=n.length-1-n.lastIndexOf("/")),l=a,r=0;continue}else if(n.length>0){n="",s=0,l=a,r=0;continue}}t&&(n+=n.length>0?"/..":"..",s=2)}else n.length>0?n+=`/${e.slice(l+1,a)}`:n=e.slice(l+1,a),s=a-l-1;l=a,r=0}else u==="."&&r!==-1?++r:r=-1}return n}var _L=function(e){return jJ.test(e)};var WI=require("node:fs"),Gm=require("node:path"),VJ=30,GJ=0;function HI(e,t=[],n=[]){let s=e??process.cwd();if(n.some(l=>(0,WI.existsSync)((0,Gm.join)(s,l)))||t.some(l=>(0,WI.existsSync)((0,Gm.join)(s,l))))return s;if(s!=="/"&&GJ++<VJ){let l=(0,Gm.join)(s,"..");return HI(l,t,n)}}var TL=["storm-workspace.json","storm-workspace.json","storm-workspace.yaml","storm-workspace.yml","storm-workspace.js","storm-workspace.ts",".storm-workspace.json",".storm-workspace.yaml",".storm-workspace.yml",".storm-workspace.js",".storm-workspace.ts","lerna.json","nx.json","turbo.json","npm-workspace.json","yarn-workspace.json","pnpm-workspace.json","npm-workspace.yaml","yarn-workspace.yaml","pnpm-workspace.yaml","npm-workspace.yml","yarn-workspace.yml","pnpm-workspace.yml","npm-lock.json","yarn-lock.json","pnpm-lock.json","npm-lock.yaml","yarn-lock.yaml","pnpm-lock.yaml","npm-lock.yml","yarn-lock.yml","pnpm-lock.yml","bun.lockb"],WJ=[".storm-workspace",".nx",".github",".vscode",".verdaccio"];function HJ(e){return process.env.STORM_WORKSPACE_ROOT||process.env.NX_WORKSPACE_ROOT_PATH?on(process.env.STORM_WORKSPACE_ROOT??process.env.NX_WORKSPACE_ROOT_PATH):on(HI(e??process.cwd(),TL,WJ))}function Pu(e){let t=HJ(e);if(!t)throw new Error(`Cannot find workspace root upwards from known path. Files search list includes:
715
+ })));`),h.write(`newResult[${wu(b)}] = ${E}.value`)}h.write("payload.value = newResult;"),h.write("return payload;");let g=h.compile();return(b,E)=>g(o,b,E)},l,r=oh,u=!Dm.jitless,p=u&&qv.value,{catchall:d}=t,i;e._zod.parse=(o,h)=>{i??(i=n.value);let A=o.value;if(!r(A))return o.issues.push({expected:"object",code:"invalid_type",input:A,inst:e}),o;let y=[];if(u&&p&&h?.async===!1&&h.jitless!==!0)l||(l=s(t.shape)),o=l(o,h);else{o.value={};let E=i.shape;for(let w of i.keys){let B=E[w],_=B._zod.run({value:A[w],issues:[]},h),v=B._zod.optin==="optional"&&B._zod.optout==="optional";_ instanceof Promise?y.push(_.then(D=>v?wO(D,o,w,A):Lm(D,o,w))):v?wO(_,o,w,A):Lm(_,o,w)}}if(!d)return y.length?Promise.all(y).then(()=>o):o;let I=[],f=i.keySet,g=d._zod,b=g.def.type;for(let E of Object.keys(A)){if(f.has(E))continue;if(b==="never"){I.push(E);continue}let w=g.run({value:A[E],issues:[]},h);w instanceof Promise?y.push(w.then(B=>Lm(B,o,E))):Lm(w,o,E)}return I.length&&o.issues.push({code:"unrecognized_keys",keys:I,input:A,inst:e}),y.length?Promise.all(y).then(()=>o):o}});function BO(e,t,n,s){for(let l of e)if(l.issues.length===0)return t.value=l.value,t;return t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(l=>l.issues.map(r=>So(r,s,as())))}),t}var oF=_t("$ZodUnion",(e,t)=>{_n.init(e,t),On(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),On(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=>lh(s.source)).join("|")})$`)}}),e._zod.parse=(n,s)=>{let l=!1,r=[];for(let u of t.options){let a=u._zod.run({value:n.value,issues:[]},s);if(a instanceof Promise)r.push(a),l=!0;else{if(a.issues.length===0)return a;r.push(a)}}return l?Promise.all(r).then(u=>BO(u,n,e,s)):BO(r,n,e,s)}});var aF=_t("$ZodIntersection",(e,t)=>{_n.init(e,t),e._zod.parse=(n,s)=>{let{value:l}=n,r=t.left._zod.run({value:l,issues:[]},s),u=t.right._zod.run({value:l,issues:[]},s);return r instanceof Promise||u instanceof Promise?Promise.all([r,u]).then(([p,d])=>_O(n,p,d)):_O(n,r,u)}});function oI(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(uh(e)&&uh(t)){let n=Object.keys(t),s=Object.keys(e).filter(r=>n.indexOf(r)!==-1),l={...e,...t};for(let r of s){let u=oI(e[r],t[r]);if(!u.valid)return{valid:!1,mergeErrorPath:[r,...u.mergeErrorPath]};l[r]=u.data}return{valid:!0,data:l}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let s=0;s<e.length;s++){let l=e[s],r=t[s],u=oI(l,r);if(!u.valid)return{valid:!1,mergeErrorPath:[s,...u.mergeErrorPath]};n.push(u.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function _O(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),_u(e))return e;let s=oI(t.value,n.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}var lF=_t("$ZodRecord",(e,t)=>{_n.init(e,t),e._zod.parse=(n,s)=>{let l=n.value;if(!uh(l))return n.issues.push({expected:"record",code:"invalid_type",input:l,inst:e}),n;let r=[];if(t.keyType._zod.values){let u=t.keyType._zod.values;n.value={};for(let p of u)if(typeof p=="string"||typeof p=="number"||typeof p=="symbol"){let d=t.valueType._zod.run({value:l[p],issues:[]},s);d instanceof Promise?r.push(d.then(i=>{i.issues.length&&n.issues.push(...Zo(p,i.issues)),n.value[p]=i.value})):(d.issues.length&&n.issues.push(...Zo(p,d.issues)),n.value[p]=d.value)}let a;for(let p in l)u.has(p)||(a=a??[],a.push(p));a&&a.length>0&&n.issues.push({code:"unrecognized_keys",input:l,inst:e,keys:a})}else{n.value={};for(let u of Reflect.ownKeys(l)){if(u==="__proto__")continue;let a=t.keyType._zod.run({value:u,issues:[]},s);if(a instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(a.issues.length){n.issues.push({origin:"record",code:"invalid_key",issues:a.issues.map(d=>So(d,s,as())),input:u,path:[u],inst:e}),n.value[a.value]=a.value;continue}let p=t.valueType._zod.run({value:l[u],issues:[]},s);p instanceof Promise?r.push(p.then(d=>{d.issues.length&&n.issues.push(...Zo(u,d.issues)),n.value[a.value]=d.value})):(p.issues.length&&n.issues.push(...Zo(u,p.issues)),n.value[a.value]=p.value)}}return r.length?Promise.all(r).then(()=>n):n}});var uF=_t("$ZodEnum",(e,t)=>{_n.init(e,t);let n=Pm(t.entries);e._zod.values=new Set(n),e._zod.pattern=new RegExp(`^(${n.filter(s=>Jv.has(typeof s)).map(s=>typeof s=="string"?Bu(s):s.toString()).join("|")})$`),e._zod.parse=(s,l)=>{let r=s.value;return e._zod.values.has(r)||s.issues.push({code:"invalid_value",values:n,input:r,inst:e}),s}});var cI=_t("$ZodTransform",(e,t)=>{_n.init(e,t),e._zod.parse=(n,s)=>{let l=t.transform(n.value,n);if(s.async)return(l instanceof Promise?l:Promise.resolve(l)).then(u=>(n.value=u,n));if(l instanceof Promise)throw new Wa;return n.value=l,n}}),cF=_t("$ZodOptional",(e,t)=>{_n.init(e,t),e._zod.optin="optional",e._zod.optout="optional",On(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),On(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${lh(n.source)})?$`):void 0}),e._zod.parse=(n,s)=>n.value===void 0?n:t.innerType._zod.run(n,s)}),pF=_t("$ZodNullable",(e,t)=>{_n.init(e,t),On(e._zod,"optin",()=>t.innerType._zod.optin),On(e._zod,"optout",()=>t.innerType._zod.optout),On(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${lh(n.source)}|null)$`):void 0}),On(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,s)=>n.value===null?n:t.innerType._zod.run(n,s)}),dF=_t("$ZodDefault",(e,t)=>{_n.init(e,t),e._zod.optin="optional",On(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,s)=>{if(n.value===void 0)return n.value=t.defaultValue,n;let l=t.innerType._zod.run(n,s);return l instanceof Promise?l.then(r=>TO(r,t)):TO(l,t)}});function TO(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var hF=_t("$ZodPrefault",(e,t)=>{_n.init(e,t),e._zod.optin="optional",On(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,s)=>(n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,s))}),fF=_t("$ZodNonOptional",(e,t)=>{_n.init(e,t),On(e._zod,"values",()=>{let n=t.innerType._zod.values;return n?new Set([...n].filter(s=>s!==void 0)):void 0}),e._zod.parse=(n,s)=>{let l=t.innerType._zod.run(n,s);return l instanceof Promise?l.then(r=>xO(r,e)):xO(l,e)}});function xO(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var AF=_t("$ZodCatch",(e,t)=>{_n.init(e,t),On(e._zod,"optin",()=>t.innerType._zod.optin),On(e._zod,"optout",()=>t.innerType._zod.optout),On(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,s)=>{let l=t.innerType._zod.run(n,s);return l instanceof Promise?l.then(r=>(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(u=>So(u,s,as()))},input:n.value}),n.issues=[]),n)):(n.value=l.value,l.issues.length&&(n.value=t.catchValue({...n,error:{issues:l.issues.map(r=>So(r,s,as()))},input:n.value}),n.issues=[]),n)}});var pI=_t("$ZodPipe",(e,t)=>{_n.init(e,t),On(e._zod,"values",()=>t.in._zod.values),On(e._zod,"optin",()=>t.in._zod.optin),On(e._zod,"optout",()=>t.out._zod.optout),e._zod.parse=(n,s)=>{let l=t.in._zod.run(n,s);return l instanceof Promise?l.then(r=>DO(r,t,s)):DO(l,t,s)}});function DO(e,t,n){return _u(e)?e:t.out._zod.run({value:e.value,issues:e.issues},n)}var mF=_t("$ZodReadonly",(e,t)=>{_n.init(e,t),On(e._zod,"propValues",()=>t.innerType._zod.propValues),On(e._zod,"optin",()=>t.innerType._zod.optin),On(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(n,s)=>{let l=t.innerType._zod.run(n,s);return l instanceof Promise?l.then(PO):PO(l)}});function PO(e){return e.value=Object.freeze(e.value),e}var gF=_t("$ZodCustom",(e,t)=>{to.init(e,t),_n.init(e,t),e._zod.parse=(n,s)=>n,e._zod.check=n=>{let s=n.value,l=t.fn(s);if(l instanceof Promise)return l.then(r=>kO(r,n,s,e));kO(l,n,s,e)}});function kO(e,t,n,s){if(!e){let l={code:"custom",input:n,inst:s,path:[...s._zod.def.path??[]],continue:!s._zod.def.abort};s._zod.def.params&&(l.params=s._zod.def.params),t.issues.push(Zv(l))}}var mq=e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},gq=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function t(s){return e[s]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return s=>{switch(s.code){case"invalid_type":return`Invalid input: expected ${s.expected}, received ${mq(s.input)}`;case"invalid_value":return s.values.length===1?`Invalid input: expected ${Br(s.values[0])}`:`Invalid option: expected one of ${wr(s.values,"|")}`;case"too_big":{let l=s.inclusive?"<=":"<",r=t(s.origin);return r?`Too big: expected ${s.origin??"value"} to have ${l}${s.maximum.toString()} ${r.unit??"elements"}`:`Too big: expected ${s.origin??"value"} to be ${l}${s.maximum.toString()}`}case"too_small":{let l=s.inclusive?">=":">",r=t(s.origin);return r?`Too small: expected ${s.origin} to have ${l}${s.minimum.toString()} ${r.unit}`:`Too small: expected ${s.origin} to be ${l}${s.minimum.toString()}`}case"invalid_format":{let l=s;return l.format==="starts_with"?`Invalid string: must start with "${l.prefix}"`:l.format==="ends_with"?`Invalid string: must end with "${l.suffix}"`:l.format==="includes"?`Invalid string: must include "${l.includes}"`:l.format==="regex"?`Invalid string: must match pattern ${l.pattern}`:`Invalid ${n[l.format]??s.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${s.divisor}`;case"unrecognized_keys":return`Unrecognized key${s.keys.length>1?"s":""}: ${wr(s.keys,", ")}`;case"invalid_key":return`Invalid key in ${s.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${s.origin}`;default:return"Invalid input"}}};function dI(){return{localeError:gq()}}var yq=Symbol("ZodOutput"),bq=Symbol("ZodInput"),Mm=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let s=n[0];if(this._map.set(t,s),s&&typeof s=="object"&&"id"in s){if(this._idmap.has(s.id))throw new Error(`ID ${s.id} already exists in the registry`);this._idmap.set(s.id,t)}return this}remove(t){return this._map.delete(t),this}get(t){let n=t._zod.parent;if(n){let s={...this.get(n)??{}};return delete s.id,{...s,...this._map.get(t)}}return this._map.get(t)}has(t){return this._map.has(t)}};function EF(){return new Mm}var Tu=EF();function CF(e,t){return new e({type:"string",...Ir(t)})}function vF(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Ir(t)})}function hI(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Ir(t)})}function IF(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Ir(t)})}function SF(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Ir(t)})}function wF(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Ir(t)})}function BF(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Ir(t)})}function _F(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Ir(t)})}function TF(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Ir(t)})}function xF(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Ir(t)})}function DF(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Ir(t)})}function PF(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Ir(t)})}function kF(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Ir(t)})}function NF(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Ir(t)})}function RF(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Ir(t)})}function QF(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Ir(t)})}function OF(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Ir(t)})}function FF(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Ir(t)})}function LF(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Ir(t)})}function MF(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Ir(t)})}function jF(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Ir(t)})}function UF(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Ir(t)})}function $F(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Ir(t)})}function VF(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Ir(t)})}function GF(e,t){return new e({type:"string",format:"date",check:"string_format",...Ir(t)})}function WF(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Ir(t)})}function HF(e,t){return new e({type:"string",format:"duration",check:"string_format",...Ir(t)})}function YF(e,t){return new e({type:"boolean",...Ir(t)})}function zF(e){return new e({type:"any"})}function fI(e){return new e({type:"unknown"})}function qF(e,t){return new e({type:"never",...Ir(t)})}function jm(e,t){return new dO({check:"max_length",...Ir(t),maximum:e})}function sp(e,t){return new hO({check:"min_length",...Ir(t),minimum:e})}function Um(e,t){return new fO({check:"length_equals",...Ir(t),length:e})}function AI(e,t){return new AO({check:"string_format",format:"regex",...Ir(t),pattern:e})}function mI(e){return new mO({check:"string_format",format:"lowercase",...Ir(e)})}function gI(e){return new gO({check:"string_format",format:"uppercase",...Ir(e)})}function yI(e,t){return new yO({check:"string_format",format:"includes",...Ir(t),includes:e})}function bI(e,t){return new bO({check:"string_format",format:"starts_with",...Ir(t),prefix:e})}function EI(e,t){return new EO({check:"string_format",format:"ends_with",...Ir(t),suffix:e})}function xu(e){return new CO({check:"overwrite",tx:e})}function CI(e){return xu(t=>t.normalize(e))}function vI(){return xu(e=>e.trim())}function II(){return xu(e=>e.toLowerCase())}function SI(){return xu(e=>e.toUpperCase())}function wI(e,t,n){return new e({type:"array",element:t,...Ir(n)})}function JF(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Ir(n)})}var ZF=_t("ZodISODateTime",(e,t)=>{GO.init(e,t),Fn.init(e,t)});function XF(e){return VF(ZF,e)}var eL=_t("ZodISODate",(e,t)=>{WO.init(e,t),Fn.init(e,t)});function tL(e){return GF(eL,e)}var rL=_t("ZodISOTime",(e,t)=>{HO.init(e,t),Fn.init(e,t)});function nL(e){return WF(rL,e)}var iL=_t("ZodISODuration",(e,t)=>{YO.init(e,t),Fn.init(e,t)});function sL(e){return HF(iL,e)}var lL=(e,t)=>{Qm.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>tI(e,n)},flatten:{value:n=>eI(e,n)},addIssue:{value:n=>e.issues.push(n)},addIssues:{value:n=>e.issues.push(...n)},isEmpty:{get(){return e.issues.length===0}}})},Aue=_t("ZodError",lL),hh=_t("ZodError",lL,{Parent:Error});var uL=O2(hh),cL=F2(hh),pL=rI(hh),dL=nI(hh);var ri=_t("ZodType",(e,t)=>(_n.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(s=>typeof s=="function"?{_zod:{check:s,def:{check:"custom"},onattach:[]}}:s)]}),e.clone=(n,s)=>Io(e,n,s),e.brand=()=>e,e.register=(n,s)=>(n.add(e,s),e),e.parse=(n,s)=>uL(e,n,s,{callee:e.parse}),e.safeParse=(n,s)=>pL(e,n,s),e.parseAsync=async(n,s)=>cL(e,n,s,{callee:e.parseAsync}),e.safeParseAsync=async(n,s)=>dL(e,n,s),e.spa=e.safeParseAsync,e.refine=(n,s)=>e.check(bJ(n,s)),e.superRefine=n=>e.check(EJ(n)),e.overwrite=n=>e.check(xu(n)),e.optional=()=>AL(e),e.nullable=()=>mL(e),e.nullish=()=>AL(mL(e)),e.nonoptional=n=>pJ(e,n),e.array=()=>Vm(e),e.or=n=>TI([e,n]),e.and=n=>rJ(e,n),e.transform=n=>gL(e,sJ(n)),e.default=n=>lJ(e,n),e.prefault=n=>cJ(e,n),e.catch=n=>hJ(e,n),e.pipe=n=>gL(e,n),e.readonly=()=>mJ(e),e.describe=n=>{let s=e.clone();return Tu.add(s,{description:n}),s},Object.defineProperty(e,"description",{get(){return Tu.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Tu.get(e);let s=e.clone();return Tu.add(s,n[0]),s},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),yL=_t("_ZodString",(e,t)=>{dh.init(e,t),ri.init(e,t);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...s)=>e.check(AI(...s)),e.includes=(...s)=>e.check(yI(...s)),e.startsWith=(...s)=>e.check(bI(...s)),e.endsWith=(...s)=>e.check(EI(...s)),e.min=(...s)=>e.check(sp(...s)),e.max=(...s)=>e.check(jm(...s)),e.length=(...s)=>e.check(Um(...s)),e.nonempty=(...s)=>e.check(sp(1,...s)),e.lowercase=s=>e.check(mI(s)),e.uppercase=s=>e.check(gI(s)),e.trim=()=>e.check(vI()),e.normalize=(...s)=>e.check(CI(...s)),e.toLowerCase=()=>e.check(II()),e.toUpperCase=()=>e.check(SI())}),bL=_t("ZodString",(e,t)=>{dh.init(e,t),yL.init(e,t),e.email=n=>e.check(vF(Pq,n)),e.url=n=>e.check(_F(kq,n)),e.jwt=n=>e.check($F(Yq,n)),e.emoji=n=>e.check(TF(Nq,n)),e.guid=n=>e.check(hI(hL,n)),e.uuid=n=>e.check(IF($m,n)),e.uuidv4=n=>e.check(SF($m,n)),e.uuidv6=n=>e.check(wF($m,n)),e.uuidv7=n=>e.check(BF($m,n)),e.nanoid=n=>e.check(xF(Rq,n)),e.guid=n=>e.check(hI(hL,n)),e.cuid=n=>e.check(DF(Qq,n)),e.cuid2=n=>e.check(PF(Oq,n)),e.ulid=n=>e.check(kF(Fq,n)),e.base64=n=>e.check(MF(Gq,n)),e.base64url=n=>e.check(jF(Wq,n)),e.xid=n=>e.check(NF(Lq,n)),e.ksuid=n=>e.check(RF(Mq,n)),e.ipv4=n=>e.check(QF(jq,n)),e.ipv6=n=>e.check(OF(Uq,n)),e.cidrv4=n=>e.check(FF($q,n)),e.cidrv6=n=>e.check(LF(Vq,n)),e.e164=n=>e.check(UF(Hq,n)),e.datetime=n=>e.check(XF(n)),e.date=n=>e.check(tL(n)),e.time=n=>e.check(nL(n)),e.duration=n=>e.check(sL(n))});function tr(e){return CF(bL,e)}var Fn=_t("ZodStringFormat",(e,t)=>{Tn.init(e,t),yL.init(e,t)}),Pq=_t("ZodEmail",(e,t)=>{QO.init(e,t),Fn.init(e,t)});var hL=_t("ZodGUID",(e,t)=>{NO.init(e,t),Fn.init(e,t)});var $m=_t("ZodUUID",(e,t)=>{RO.init(e,t),Fn.init(e,t)});var kq=_t("ZodURL",(e,t)=>{OO.init(e,t),Fn.init(e,t)});var Nq=_t("ZodEmoji",(e,t)=>{FO.init(e,t),Fn.init(e,t)});var Rq=_t("ZodNanoID",(e,t)=>{LO.init(e,t),Fn.init(e,t)});var Qq=_t("ZodCUID",(e,t)=>{MO.init(e,t),Fn.init(e,t)});var Oq=_t("ZodCUID2",(e,t)=>{jO.init(e,t),Fn.init(e,t)});var Fq=_t("ZodULID",(e,t)=>{UO.init(e,t),Fn.init(e,t)});var Lq=_t("ZodXID",(e,t)=>{$O.init(e,t),Fn.init(e,t)});var Mq=_t("ZodKSUID",(e,t)=>{VO.init(e,t),Fn.init(e,t)});var jq=_t("ZodIPv4",(e,t)=>{zO.init(e,t),Fn.init(e,t)});var Uq=_t("ZodIPv6",(e,t)=>{qO.init(e,t),Fn.init(e,t)});var $q=_t("ZodCIDRv4",(e,t)=>{JO.init(e,t),Fn.init(e,t)});var Vq=_t("ZodCIDRv6",(e,t)=>{KO.init(e,t),Fn.init(e,t)});var Gq=_t("ZodBase64",(e,t)=>{XO.init(e,t),Fn.init(e,t)});var Wq=_t("ZodBase64URL",(e,t)=>{eF.init(e,t),Fn.init(e,t)});var Hq=_t("ZodE164",(e,t)=>{tF.init(e,t),Fn.init(e,t)});var Yq=_t("ZodJWT",(e,t)=>{rF.init(e,t),Fn.init(e,t)});var EL=_t("ZodBoolean",(e,t)=>{aI.init(e,t),ri.init(e,t)});function _I(e){return YF(EL,e)}var zq=_t("ZodAny",(e,t)=>{nF.init(e,t),ri.init(e,t)});function CL(){return zF(zq)}var qq=_t("ZodUnknown",(e,t)=>{lI.init(e,t),ri.init(e,t)});function fL(){return fI(qq)}var Jq=_t("ZodNever",(e,t)=>{iF.init(e,t),ri.init(e,t)});function Kq(e){return qF(Jq,e)}var Zq=_t("ZodArray",(e,t)=>{uI.init(e,t),ri.init(e,t),e.element=t.element,e.min=(n,s)=>e.check(sp(n,s)),e.nonempty=n=>e.check(sp(1,n)),e.max=(n,s)=>e.check(jm(n,s)),e.length=(n,s)=>e.check(Um(n,s)),e.unwrap=()=>e.element});function Vm(e,t){return wI(Zq,e,t)}var Xq=_t("ZodObject",(e,t)=>{sF.init(e,t),ri.init(e,t),zt.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>fh(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:fL()}),e.loose=()=>e.clone({...e._zod.def,catchall:fL()}),e.strict=()=>e.clone({...e._zod.def,catchall:Kq()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>zt.extend(e,n),e.merge=n=>zt.merge(e,n),e.pick=n=>zt.pick(e,n),e.omit=n=>zt.omit(e,n),e.partial=(...n)=>zt.partial(vL,e,n[0]),e.required=(...n)=>zt.required(IL,e,n[0])});function Ss(e,t){let n={type:"object",get shape(){return zt.assignProp(this,"shape",{...e}),this.shape},...zt.normalizeParams(t)};return new Xq(n)}var eJ=_t("ZodUnion",(e,t)=>{oF.init(e,t),ri.init(e,t),e.options=t.options});function TI(e,t){return new eJ({type:"union",options:e,...zt.normalizeParams(t)})}var tJ=_t("ZodIntersection",(e,t)=>{aF.init(e,t),ri.init(e,t)});function rJ(e,t){return new tJ({type:"intersection",left:e,right:t})}var nJ=_t("ZodRecord",(e,t)=>{lF.init(e,t),ri.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function xI(e,t,n){return new nJ({type:"record",keyType:e,valueType:t,...zt.normalizeParams(n)})}var BI=_t("ZodEnum",(e,t)=>{uF.init(e,t),ri.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(s,l)=>{let r={};for(let u of s)if(n.has(u))r[u]=t.entries[u];else throw new Error(`Key ${u} not found in enum`);return new BI({...t,checks:[],...zt.normalizeParams(l),entries:r})},e.exclude=(s,l)=>{let r={...t.entries};for(let u of s)if(n.has(u))delete r[u];else throw new Error(`Key ${u} not found in enum`);return new BI({...t,checks:[],...zt.normalizeParams(l),entries:r})}});function fh(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(s=>[s,s])):e;return new BI({type:"enum",entries:n,...zt.normalizeParams(t)})}var iJ=_t("ZodTransform",(e,t)=>{cI.init(e,t),ri.init(e,t),e._zod.parse=(n,s)=>{n.addIssue=r=>{if(typeof r=="string")n.issues.push(zt.issue(r,n.value,t));else{let u=r;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),u.input??(u.input=n.value),u.inst??(u.inst=e),u.continue??(u.continue=!0),n.issues.push(zt.issue(u))}};let l=t.transform(n.value,n);return l instanceof Promise?l.then(r=>(n.value=r,n)):(n.value=l,n)}});function sJ(e){return new iJ({type:"transform",transform:e})}var vL=_t("ZodOptional",(e,t)=>{cF.init(e,t),ri.init(e,t),e.unwrap=()=>e._zod.def.innerType});function AL(e){return new vL({type:"optional",innerType:e})}var oJ=_t("ZodNullable",(e,t)=>{pF.init(e,t),ri.init(e,t),e.unwrap=()=>e._zod.def.innerType});function mL(e){return new oJ({type:"nullable",innerType:e})}var aJ=_t("ZodDefault",(e,t)=>{dF.init(e,t),ri.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function lJ(e,t){return new aJ({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}var uJ=_t("ZodPrefault",(e,t)=>{hF.init(e,t),ri.init(e,t),e.unwrap=()=>e._zod.def.innerType});function cJ(e,t){return new uJ({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}var IL=_t("ZodNonOptional",(e,t)=>{fF.init(e,t),ri.init(e,t),e.unwrap=()=>e._zod.def.innerType});function pJ(e,t){return new IL({type:"nonoptional",innerType:e,...zt.normalizeParams(t)})}var dJ=_t("ZodCatch",(e,t)=>{AF.init(e,t),ri.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function hJ(e,t){return new dJ({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var fJ=_t("ZodPipe",(e,t)=>{pI.init(e,t),ri.init(e,t),e.in=t.in,e.out=t.out});function gL(e,t){return new fJ({type:"pipe",in:e,out:t})}var AJ=_t("ZodReadonly",(e,t)=>{mF.init(e,t),ri.init(e,t)});function mJ(e){return new AJ({type:"readonly",innerType:e})}var gJ=_t("ZodCustom",(e,t)=>{gF.init(e,t),ri.init(e,t)});function yJ(e,t){let n=new to({check:"custom",...zt.normalizeParams(t)});return n._zod.check=e,n}function bJ(e,t={}){return JF(gJ,e,t)}function EJ(e,t){let n=yJ(s=>(s.addIssue=l=>{if(typeof l=="string")s.issues.push(zt.issue(l,s.value,n._zod.def));else{let r=l;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=s.value),r.inst??(r.inst=n),r.continue??(r.continue=!n._zod.def.abort),s.issues.push(zt.issue(r))}},e(s.value,s)),t);return n}var rce=Object.freeze({status:"aborted"});as(dI());var PI=tr().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace"),kI=tr().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace"),NI=tr().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace"),RI=tr().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The alternate brand specific color of the workspace"),QI=tr().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The secondary brand specific color of the workspace"),OI=tr().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display hyperlink text"),FI=tr().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace"),LI=tr().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#12B66A").describe("The success color of the workspace"),MI=tr().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0070E0").describe("The informational color of the workspace"),jI=tr().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace"),UI=tr().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#D8314A").describe("The danger color of the workspace"),$I=tr().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace"),VI=tr().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#4ade80").describe("The positive number color of the workspace"),GI=tr().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ef4444").describe("The negative number color of the workspace"),SJ=Ss({foreground:kI,background:PI,brand:NI,alternate:RI,accent:QI,link:OI,help:FI,success:LI,info:MI,warning:jI,danger:UI,fatal:$I,positive:VI,negative:GI}),wJ=Ss({foreground:PI,background:kI,brand:NI,alternate:RI,accent:QI,link:OI,help:FI,success:LI,info:MI,warning:jI,danger:UI,fatal:$I,positive:VI,negative:GI}),BJ=Ss({dark:SJ,light:wJ}),_J=Ss({dark:PI,light:kI,brand:NI,alternate:RI,accent:QI,link:OI,help:FI,success:LI,info:MI,warning:jI,danger:UI,fatal:$I,positive:VI,negative:GI}),Ah=tr().trim().toLowerCase().url().optional().describe("A remote registry URL used to publish distributable packages"),TJ=Ss({github:Ah,npm:Ah,cargo:Ah,cyclone:Ah,container:Ah}).default({}).describe("A list of remote registry URLs used by Storm Software"),DI=_J.or(BJ).describe("Colors used for various workspace elements"),xJ=TI([Ss({base:DI}),xI(tr(),DI)]),SL=tr().trim().describe("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."),DJ=SL.or(Vm(SL)).describe("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."),PJ=Ss({name:tr().trim().default("stormie-bot").describe("The workspace bot user's name (this is the bot that will be used to perform various tasks)"),email:tr().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")}).describe("The workspace's bot user's config used to automated various operations tasks"),kJ=Ss({banner:tr().trim().default(I2).describe("A URL to a banner image used to display the workspace's release"),header:tr().trim().optional().describe("A header message appended to the start of the workspace's release notes"),footer:tr().trim().default(T2).describe("A footer message appended to the end of the workspace's release notes")}).describe("The workspace's release config used during the release process"),NJ=Ss({twitter:tr().trim().default(S2).describe("A Twitter/X account associated with the organization/project"),discord:tr().trim().default(Vv).describe("A Discord account associated with the organization/project"),telegram:tr().trim().default(w2).describe("A Telegram account associated with the organization/project"),slack:tr().trim().default(Gv).describe("A Slack account associated with the organization/project"),medium:tr().trim().default(B2).describe("A Medium account associated with the organization/project"),github:tr().trim().default(_2).describe("A GitHub account associated with the organization/project")}).describe("The workspace's account config used to store various social media links"),RJ=Ss({cache:tr().trim().optional().describe("The directory used to store the environment's cached file data"),data:tr().trim().optional().describe("The directory used to store the environment's data files"),config:tr().trim().optional().describe("The directory used to store the environment's configuration files"),temp:tr().trim().optional().describe("The directory used to store the environment's temp files"),log:tr().trim().optional().describe("The directory used to store the environment's temp files"),build:tr().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")}).describe("Various directories used by the workspace to store data, cache, and configuration files"),QJ=Ss({codesFile:tr().trim().default(xm).describe("The path to the workspace's error codes JSON file"),url:tr().trim().url().optional().describe("A URL to a page that looks up the workspace's error messages given a specific error code")}).describe("The workspace's error config used during the error process"),OJ=Ss({name:tr().trim().describe("The name of the organization"),description:tr().trim().optional().describe("A description of the organization"),logo:tr().trim().url().optional().describe("A URL to the organization's logo image"),icon:tr().trim().url().optional().describe("A URL to the organization's icon image"),url:tr().trim().url().optional().describe("A URL to a page that provides more information about the organization")}).describe("The workspace's organization details"),wL=Ss({$schema:tr().trim().default("https://public.storm-cdn.com/schemas/storm-workspace.schema.json").describe("The URL or file path to the JSON schema file that describes the Storm configuration file"),extends:DJ.optional(),name:tr().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),namespace:tr().trim().toLowerCase().optional().describe("The namespace of the package"),organization:OJ.or(tr().trim().describe("The organization of the workspace")).optional().describe("The organization of the workspace. This can be a string or an object containing the organization's details"),repository:tr().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),license:tr().trim().default("Apache-2.0").describe("The license type of the package"),homepage:tr().trim().url().optional().describe("The homepage of the workspace"),docs:tr().trim().url().optional().describe("The documentation site for the workspace"),portal:tr().trim().url().optional().describe("The development portal site for the workspace"),licensing:tr().trim().url().optional().describe("The licensing site for the workspace"),contact:tr().trim().url().optional().describe("The contact site for the workspace"),support:tr().trim().url().optional().describe("The support site for the workspace. If not provided, this is defaulted to the `contact` config value"),branch:tr().trim().default("main").describe("The branch of the workspace"),preid:tr().optional().describe("A tag specifying the version pre-release identifier"),owner:tr().trim().default("@storm-software/admin").describe("The owner of the package"),bot:PJ,release:kJ,account:NJ,error:QJ,mode:fh(["development","staging","production"]).default("production").describe("The current runtime environment mode for the package"),workspaceRoot:tr().trim().describe("The root directory of the workspace"),externalPackagePatterns:Vm(tr()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),skipCache:_I().default(!1).describe("Should all known types of workspace caching be skipped?"),directories:RJ,packageManager:fh(["npm","yarn","pnpm","bun"]).default("npm").describe("The JavaScript/TypeScript package manager used by the repository"),timezone:tr().trim().default("America/New_York").describe("The default timezone of the workspace"),locale:tr().trim().default("en-US").describe("The default locale of the workspace"),logLevel:fh(["silent","fatal","error","warn","success","info","debug","trace","all"]).default("info").describe("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`)."),skipConfigLogging:_I().optional().describe("Should the logging of the current Storm Workspace configuration be skipped?"),registry:TJ,configFile:tr().trim().nullable().default(null).describe("The filepath of the Storm config. When this field is null, no config file was found in the current workspace."),colors:DI.or(xJ).describe("Storm theme config values used for styling various package elements"),extensions:xI(tr(),CL()).optional().default({}).describe("Configuration of each used extension")}).describe("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 BL=["dark","light","base","brand","alternate","accent","link","success","help","info","warning","danger","fatal","positive","negative"];var xL=require("node:fs"),DL=require("node:fs/promises"),PL=require("node:path");var FJ=/^[A-Za-z]:\//;function LJ(e=""){return e&&e.replace(/\\/g,"/").replace(FJ,t=>t.toUpperCase())}var MJ=/^[/\\]{2}/,jJ=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,UJ=/^[A-Za-z]:$/;var on=function(e){if(!e||e.length===0)return".";e=LJ(e);let t=e.match(MJ),n=_L(e),s=e[e.length-1]==="/";return e=$J(e,!n),e.length===0?n?"/":s?"./":".":(s&&(e+="/"),UJ.test(e)&&(e+="/"),t?n?`//${e}`:`//./${e}`:n&&!_L(e)?`/${e}`:e)},mh=function(...e){let t="";for(let n of e)if(n)if(t.length>0){let s=t[t.length-1]==="/",l=n[0]==="/";s&&l?t+=n.slice(1):t+=s||l?n:`/${n}`}else t+=n;return on(t)};function $J(e,t){let n="",s=0,l=-1,r=0,u=null;for(let a=0;a<=e.length;++a){if(a<e.length)u=e[a];else{if(u==="/")break;u="/"}if(u==="/"){if(!(l===a-1||r===1))if(r===2){if(n.length<2||s!==2||n[n.length-1]!=="."||n[n.length-2]!=="."){if(n.length>2){let p=n.lastIndexOf("/");p===-1?(n="",s=0):(n=n.slice(0,p),s=n.length-1-n.lastIndexOf("/")),l=a,r=0;continue}else if(n.length>0){n="",s=0,l=a,r=0;continue}}t&&(n+=n.length>0?"/..":"..",s=2)}else n.length>0?n+=`/${e.slice(l+1,a)}`:n=e.slice(l+1,a),s=a-l-1;l=a,r=0}else u==="."&&r!==-1?++r:r=-1}return n}var _L=function(e){return jJ.test(e)};var WI=require("node:fs"),Gm=require("node:path"),VJ=30,GJ=0;function HI(e,t=[],n=[]){let s=e??process.cwd();if(n.some(l=>(0,WI.existsSync)((0,Gm.join)(s,l)))||t.some(l=>(0,WI.existsSync)((0,Gm.join)(s,l))))return s;if(s!=="/"&&GJ++<VJ){let l=(0,Gm.join)(s,"..");return HI(l,t,n)}}var TL=["storm-workspace.json","storm-workspace.json","storm-workspace.yaml","storm-workspace.yml","storm-workspace.js","storm-workspace.ts",".storm-workspace.json",".storm-workspace.yaml",".storm-workspace.yml",".storm-workspace.js",".storm-workspace.ts","lerna.json","nx.json","turbo.json","npm-workspace.json","yarn-workspace.json","pnpm-workspace.json","npm-workspace.yaml","yarn-workspace.yaml","pnpm-workspace.yaml","npm-workspace.yml","yarn-workspace.yml","pnpm-workspace.yml","npm-lock.json","yarn-lock.json","pnpm-lock.json","npm-lock.yaml","yarn-lock.yaml","pnpm-lock.yaml","npm-lock.yml","yarn-lock.yml","pnpm-lock.yml","bun.lockb"],WJ=[".storm-workspace",".nx",".github",".vscode",".verdaccio"];function HJ(e){return process.env.STORM_WORKSPACE_ROOT||process.env.NX_WORKSPACE_ROOT_PATH?on(process.env.STORM_WORKSPACE_ROOT??process.env.NX_WORKSPACE_ROOT_PATH):on(HI(e??process.cwd(),TL,WJ))}function Pu(e){let t=HJ(e);if(!t)throw new Error(`Cannot find workspace root upwards from known path. Files search list includes:
716
716
  ${TL.join(`
717
717
  `)}
718
718
  Path: ${e||process.cwd()}`);return t}var YI={light:{background:"#fafafa",foreground:"#1d1e22",brand:"#1fb2a6",alternate:"#db2777",help:"#5C4EE5",success:"#087f5b",info:"#0550ae",warning:"#e3b341",danger:"#D8314A",positive:"#22c55e",negative:"#dc2626"},dark:{background:"#1d1e22",foreground:"#cbd5e1",brand:"#2dd4bf",alternate:"#db2777",help:"#818cf8",success:"#10b981",info:"#58a6ff",warning:"#f3d371",danger:"#D8314A",positive:"#22c55e",negative:"#dc2626"}};async function kL(e){let t=v2,n,s,l,r,u,a=Pu(e);if((0,xL.existsSync)((0,PL.join)(a,"package.json"))){let p=await(0,DL.readFile)(mh(a,"package.json"),"utf8");if(p){let d=JSON.parse(p);d.name&&(l=d.name),d.namespace&&(r=d.namespace),d.repository&&(typeof d.repository=="string"?u=d.repository:d.repository.url&&(u=d.repository.url)),d.license&&(t=d.license),d.homepage&&(n=d.homepage),d.bugs&&(typeof d.bugs=="string"?s=d.bugs:d.bugs.url&&(s=d.bugs.url))}}return{workspaceRoot:a,name:l,namespace:r,repository:u,license:t,homepage:n,support:s}}function NL(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:xm},e.homepage&&(e.error.url??=`${e.homepage}/errors`))),e}var dM=Ai(bh(),1),gK={hex:e=>t=>t,bgHex:e=>({whiteBright:t=>t}),whiteBright:e=>e,gray:e=>e,bold:{hex:e=>t=>t,bgHex:e=>({whiteBright:t=>t}),whiteBright:e=>e},dim:{hex:e=>t=>t,gray:e=>e}},hM=()=>{let e=dM.default;return(!e?.hex||!e?.bold?.hex||!e?.bgHex||!e?.whiteBright)&&(e=gK),e};function fM(){return process.platform!=="win32"?process.env.TERM!=="linux":!!process.env.WT_SESSION||!!process.env.TERMINUS_SUBLIME||process.env.ConEmuTask==="{cmd::Cmder}"||process.env.TERM_PROGRAM==="Terminus-Sublime"||process.env.TERM_PROGRAM==="vscode"||process.env.TERM==="xterm-256color"||process.env.TERM==="alacritty"||process.env.TERM==="rxvt-unicode"||process.env.TERM==="rxvt-unicode-256color"||process.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var Nl=(e,t)=>fM()?e:t,Ha={[pn.ERROR]:Nl("\u2718","\xD7"),[pn.FATAL]:Nl("\u{1F480}","\xD7"),[pn.WARN]:Nl("\u26A0","\u203C"),[pn.INFO]:Nl("\u2139","i"),[pn.SUCCESS]:Nl("\u2714","\u221A"),[pn.DEBUG]:Nl("\u{1F6E0}","D"),[pn.TRACE]:Nl("\u{1F6E0}","T"),[pn.ALL]:Nl("\u2709","\u2192")};var Ya=(e=new Date)=>`${e.toLocaleDateString()} ${e.toLocaleTimeString()}`;var cp=e=>{switch(e){case"all":return Lr.ALL;case"trace":return Lr.TRACE;case"debug":return Lr.DEBUG;case"info":return Lr.INFO;case"warn":return Lr.WARN;case"error":return Lr.ERROR;case"fatal":return Lr.FATAL;case"silent":return Lr.SILENT;default:return Lr.INFO}},AM=(e=Lr.INFO)=>e>=Lr.ALL?pn.ALL:e>=Lr.TRACE?pn.TRACE:e>=Lr.DEBUG?pn.DEBUG:e>=Lr.INFO?pn.INFO:e>=Lr.WARN?pn.WARN:e>=Lr.ERROR?pn.ERROR:e>=Lr.FATAL?pn.FATAL:e<=Lr.SILENT?pn.SILENT:pn.INFO;var Eh=(e=Lr.INFO,t={},n=hM())=>{let s=!t.colors?.dark&&!t.colors?.base&&!t.colors?.base?.dark?YI:t.colors?.dark&&typeof t.colors.dark=="string"?t.colors:t.colors?.base?.dark&&typeof t.colors.base.dark=="string"?t.colors.base.dark:t.colors?.base?t.colors?.base:YI,l=t.logLevel||process.env.STORM_LOG_LEVEL||pn.INFO;return e>cp(l)||e<=Lr.SILENT||cp(l)<=Lr.SILENT?r=>{}:typeof e=="number"&&Lr.FATAL>=e?r=>{console.error(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-storm-workspace",
3
- "version": "1.91.27",
3
+ "version": "1.91.29",
4
4
  "type": "commonjs",
5
5
  "description": "⚡A CLI tool used to generate and fully configure a Storm Workspace repository.",
6
6
  "repository": {
@@ -43,5 +43,6 @@
43
43
  "@types/node": "^22.10.2",
44
44
  "nx": "21.0.3"
45
45
  },
46
- "publishConfig": { "access": "public" }
46
+ "publishConfig": { "access": "public" },
47
+ "gitHead": "cc6b643307c447a3a7e1118fee4893b3be34cdbd"
47
48
  }