create-mastra 1.3.14 → 1.3.15-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # create-mastra
2
2
 
3
+ ## 1.3.15-alpha.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Improved Skills setup in `create-mastra` so agent selection is faster during project creation. Choosing an agent-specific setup now also installs the shared `Universal` skill. ([#14540](https://github.com/mastra-ai/mastra/pull/14540))
8
+
9
+ ## 1.3.15-alpha.0
10
+
3
11
  ## 1.3.14
4
12
 
5
13
  ## 1.3.14-alpha.4
package/dist/index.js CHANGED
@@ -93,7 +93,7 @@ function requireSrc () {
93
93
 
94
94
  var srcExports = requireSrc();
95
95
 
96
- function x$1(t,e,s){if(!s.some(u=>!u.disabled))return t;const i=t+e,r=Math.max(s.length-1,0),n=i<0?r:i>r?0:i;return s[n].disabled?x$1(n,e<0?-1:1,s):n}const at=t=>t===161||t===164||t===167||t===168||t===170||t===173||t===174||t>=176&&t<=180||t>=182&&t<=186||t>=188&&t<=191||t===198||t===208||t===215||t===216||t>=222&&t<=225||t===230||t>=232&&t<=234||t===236||t===237||t===240||t===242||t===243||t>=247&&t<=250||t===252||t===254||t===257||t===273||t===275||t===283||t===294||t===295||t===299||t>=305&&t<=307||t===312||t>=319&&t<=322||t===324||t>=328&&t<=331||t===333||t===338||t===339||t===358||t===359||t===363||t===462||t===464||t===466||t===468||t===470||t===472||t===474||t===476||t===593||t===609||t===708||t===711||t>=713&&t<=715||t===717||t===720||t>=728&&t<=731||t===733||t===735||t>=768&&t<=879||t>=913&&t<=929||t>=931&&t<=937||t>=945&&t<=961||t>=963&&t<=969||t===1025||t>=1040&&t<=1103||t===1105||t===8208||t>=8211&&t<=8214||t===8216||t===8217||t===8220||t===8221||t>=8224&&t<=8226||t>=8228&&t<=8231||t===8240||t===8242||t===8243||t===8245||t===8251||t===8254||t===8308||t===8319||t>=8321&&t<=8324||t===8364||t===8451||t===8453||t===8457||t===8467||t===8470||t===8481||t===8482||t===8486||t===8491||t===8531||t===8532||t>=8539&&t<=8542||t>=8544&&t<=8555||t>=8560&&t<=8569||t===8585||t>=8592&&t<=8601||t===8632||t===8633||t===8658||t===8660||t===8679||t===8704||t===8706||t===8707||t===8711||t===8712||t===8715||t===8719||t===8721||t===8725||t===8730||t>=8733&&t<=8736||t===8739||t===8741||t>=8743&&t<=8748||t===8750||t>=8756&&t<=8759||t===8764||t===8765||t===8776||t===8780||t===8786||t===8800||t===8801||t>=8804&&t<=8807||t===8810||t===8811||t===8814||t===8815||t===8834||t===8835||t===8838||t===8839||t===8853||t===8857||t===8869||t===8895||t===8978||t>=9312&&t<=9449||t>=9451&&t<=9547||t>=9552&&t<=9587||t>=9600&&t<=9615||t>=9618&&t<=9621||t===9632||t===9633||t>=9635&&t<=9641||t===9650||t===9651||t===9654||t===9655||t===9660||t===9661||t===9664||t===9665||t>=9670&&t<=9672||t===9675||t>=9678&&t<=9681||t>=9698&&t<=9701||t===9711||t===9733||t===9734||t===9737||t===9742||t===9743||t===9756||t===9758||t===9792||t===9794||t===9824||t===9825||t>=9827&&t<=9829||t>=9831&&t<=9834||t===9836||t===9837||t===9839||t===9886||t===9887||t===9919||t>=9926&&t<=9933||t>=9935&&t<=9939||t>=9941&&t<=9953||t===9955||t===9960||t===9961||t>=9963&&t<=9969||t===9972||t>=9974&&t<=9977||t===9979||t===9980||t===9982||t===9983||t===10045||t>=10102&&t<=10111||t>=11094&&t<=11097||t>=12872&&t<=12879||t>=57344&&t<=63743||t>=65024&&t<=65039||t===65533||t>=127232&&t<=127242||t>=127248&&t<=127277||t>=127280&&t<=127337||t>=127344&&t<=127373||t===127375||t===127376||t>=127387&&t<=127404||t>=917760&&t<=917999||t>=983040&&t<=1048573||t>=1048576&&t<=1114109,lt=t=>t===12288||t>=65281&&t<=65376||t>=65504&&t<=65510,ht=t=>t>=4352&&t<=4447||t===8986||t===8987||t===9001||t===9002||t>=9193&&t<=9196||t===9200||t===9203||t===9725||t===9726||t===9748||t===9749||t>=9800&&t<=9811||t===9855||t===9875||t===9889||t===9898||t===9899||t===9917||t===9918||t===9924||t===9925||t===9934||t===9940||t===9962||t===9970||t===9971||t===9973||t===9978||t===9981||t===9989||t===9994||t===9995||t===10024||t===10060||t===10062||t>=10067&&t<=10069||t===10071||t>=10133&&t<=10135||t===10160||t===10175||t===11035||t===11036||t===11088||t===11093||t>=11904&&t<=11929||t>=11931&&t<=12019||t>=12032&&t<=12245||t>=12272&&t<=12287||t>=12289&&t<=12350||t>=12353&&t<=12438||t>=12441&&t<=12543||t>=12549&&t<=12591||t>=12593&&t<=12686||t>=12688&&t<=12771||t>=12783&&t<=12830||t>=12832&&t<=12871||t>=12880&&t<=19903||t>=19968&&t<=42124||t>=42128&&t<=42182||t>=43360&&t<=43388||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65106||t>=65108&&t<=65126||t>=65128&&t<=65131||t>=94176&&t<=94180||t===94192||t===94193||t>=94208&&t<=100343||t>=100352&&t<=101589||t>=101632&&t<=101640||t>=110576&&t<=110579||t>=110581&&t<=110587||t===110589||t===110590||t>=110592&&t<=110882||t===110898||t>=110928&&t<=110930||t===110933||t>=110948&&t<=110951||t>=110960&&t<=111355||t===126980||t===127183||t===127374||t>=127377&&t<=127386||t>=127488&&t<=127490||t>=127504&&t<=127547||t>=127552&&t<=127560||t===127568||t===127569||t>=127584&&t<=127589||t>=127744&&t<=127776||t>=127789&&t<=127797||t>=127799&&t<=127868||t>=127870&&t<=127891||t>=127904&&t<=127946||t>=127951&&t<=127955||t>=127968&&t<=127984||t===127988||t>=127992&&t<=128062||t===128064||t>=128066&&t<=128252||t>=128255&&t<=128317||t>=128331&&t<=128334||t>=128336&&t<=128359||t===128378||t===128405||t===128406||t===128420||t>=128507&&t<=128591||t>=128640&&t<=128709||t===128716||t>=128720&&t<=128722||t>=128725&&t<=128727||t>=128732&&t<=128735||t===128747||t===128748||t>=128756&&t<=128764||t>=128992&&t<=129003||t===129008||t>=129292&&t<=129338||t>=129340&&t<=129349||t>=129351&&t<=129535||t>=129648&&t<=129660||t>=129664&&t<=129672||t>=129680&&t<=129725||t>=129727&&t<=129733||t>=129742&&t<=129755||t>=129760&&t<=129768||t>=129776&&t<=129784||t>=131072&&t<=196605||t>=196608&&t<=262141,O=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y,y=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,L=/\t{1,1000}/y,P=/[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/yu,M=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,ct=/\p{M}+/gu,ft$1={limit:1/0,ellipsis:""},X$1=(t,e={},s={})=>{const i=e.limit??1/0,r=e.ellipsis??"",n=e?.ellipsisWidth??(r?X$1(r,ft$1,s).width:0),u=s.ansiWidth??0,a=s.controlWidth??0,l=s.tabWidth??8,E=s.ambiguousWidth??1,g=s.emojiWidth??2,m=s.fullWidthWidth??2,A=s.regularWidth??1,V=s.wideWidth??2;let h=0,o=0,p=t.length,v=0,F=false,d=p,b=Math.max(0,i-n),C=0,w=0,c=0,f=0;t:for(;;){if(w>C||o>=p&&o>h){const ut=t.slice(C,w)||t.slice(h,o);v=0;for(const Y of ut.replaceAll(ct,"")){const $=Y.codePointAt(0)||0;if(lt($)?f=m:ht($)?f=V:E!==A&&at($)?f=E:f=A,c+f>b&&(d=Math.min(d,Math.max(C,h)+v)),c+f>i){F=true;break t}v+=Y.length,c+=f;}C=w=0;}if(o>=p)break;if(M.lastIndex=o,M.test(t)){if(v=M.lastIndex-o,f=v*A,c+f>b&&(d=Math.min(d,o+Math.floor((b-c)/A))),c+f>i){F=true;break}c+=f,C=h,w=o,o=h=M.lastIndex;continue}if(O.lastIndex=o,O.test(t)){if(c+u>b&&(d=Math.min(d,o)),c+u>i){F=true;break}c+=u,C=h,w=o,o=h=O.lastIndex;continue}if(y.lastIndex=o,y.test(t)){if(v=y.lastIndex-o,f=v*a,c+f>b&&(d=Math.min(d,o+Math.floor((b-c)/a))),c+f>i){F=true;break}c+=f,C=h,w=o,o=h=y.lastIndex;continue}if(L.lastIndex=o,L.test(t)){if(v=L.lastIndex-o,f=v*l,c+f>b&&(d=Math.min(d,o+Math.floor((b-c)/l))),c+f>i){F=true;break}c+=f,C=h,w=o,o=h=L.lastIndex;continue}if(P.lastIndex=o,P.test(t)){if(c+g>b&&(d=Math.min(d,o)),c+g>i){F=true;break}c+=g,C=h,w=o,o=h=P.lastIndex;continue}o+=1;}return {width:F?b:c,index:F?d:p,truncated:F,ellipsed:F&&i>=n}},pt$1={limit:1/0,ellipsis:"",ellipsisWidth:0},S=(t,e={})=>X$1(t,pt$1,e).width,T="\x1B",Z="\x9B",Ft$1=39,j="\x07",Q$1="[",dt="]",tt="m",U$1=`${dt}8;;`,et=new RegExp(`(?:\\${Q$1}(?<code>\\d+)m|\\${U$1}(?<uri>.*)${j})`,"y"),mt$1=t=>{if(t>=30&&t<=37||t>=90&&t<=97)return 39;if(t>=40&&t<=47||t>=100&&t<=107)return 49;if(t===1||t===2)return 22;if(t===3)return 23;if(t===4)return 24;if(t===7)return 27;if(t===8)return 28;if(t===9)return 29;if(t===0)return 0},st=t=>`${T}${Q$1}${t}${tt}`,it=t=>`${T}${U$1}${t}${j}`,gt$1=t=>t.map(e=>S(e)),G=(t,e,s)=>{const i=e[Symbol.iterator]();let r=false,n=false,u=t.at(-1),a=u===void 0?0:S(u),l=i.next(),E=i.next(),g=0;for(;!l.done;){const m=l.value,A=S(m);a+A<=s?t[t.length-1]+=m:(t.push(m),a=0),(m===T||m===Z)&&(r=true,n=e.startsWith(U$1,g+1)),r?n?m===j&&(r=false,n=false):m===tt&&(r=false):(a+=A,a===s&&!E.done&&(t.push(""),a=0)),l=E,E=i.next(),g+=m.length;}u=t.at(-1),!a&&u!==void 0&&u.length>0&&t.length>1&&(t[t.length-2]+=t.pop());},vt$1=t=>{const e=t.split(" ");let s=e.length;for(;s>0&&!(S(e[s-1])>0);)s--;return s===e.length?t:e.slice(0,s).join(" ")+e.slice(s).join("")},Et$1=(t,e,s={})=>{if(s.trim!==false&&t.trim()==="")return "";let i="",r,n;const u=t.split(" "),a=gt$1(u);let l=[""];for(const[h,o]of u.entries()){s.trim!==false&&(l[l.length-1]=(l.at(-1)??"").trimStart());let p=S(l.at(-1)??"");if(h!==0&&(p>=e&&(s.wordWrap===false||s.trim===false)&&(l.push(""),p=0),(p>0||s.trim===false)&&(l[l.length-1]+=" ",p++)),s.hard&&a[h]>e){const v=e-p,F=1+Math.floor((a[h]-v-1)/e);Math.floor((a[h]-1)/e)<F&&l.push(""),G(l,o,e);continue}if(p+a[h]>e&&p>0&&a[h]>0){if(s.wordWrap===false&&p<e){G(l,o,e);continue}l.push("");}if(p+a[h]>e&&s.wordWrap===false){G(l,o,e);continue}l[l.length-1]+=o;}s.trim!==false&&(l=l.map(h=>vt$1(h)));const E=l.join(`
96
+ function x$1(t,e,s){if(!s.some(u=>!u.disabled))return t;const i=t+e,r=Math.max(s.length-1,0),n=i<0?r:i>r?0:i;return s[n].disabled?x$1(n,e<0?-1:1,s):n}const at=t=>t===161||t===164||t===167||t===168||t===170||t===173||t===174||t>=176&&t<=180||t>=182&&t<=186||t>=188&&t<=191||t===198||t===208||t===215||t===216||t>=222&&t<=225||t===230||t>=232&&t<=234||t===236||t===237||t===240||t===242||t===243||t>=247&&t<=250||t===252||t===254||t===257||t===273||t===275||t===283||t===294||t===295||t===299||t>=305&&t<=307||t===312||t>=319&&t<=322||t===324||t>=328&&t<=331||t===333||t===338||t===339||t===358||t===359||t===363||t===462||t===464||t===466||t===468||t===470||t===472||t===474||t===476||t===593||t===609||t===708||t===711||t>=713&&t<=715||t===717||t===720||t>=728&&t<=731||t===733||t===735||t>=768&&t<=879||t>=913&&t<=929||t>=931&&t<=937||t>=945&&t<=961||t>=963&&t<=969||t===1025||t>=1040&&t<=1103||t===1105||t===8208||t>=8211&&t<=8214||t===8216||t===8217||t===8220||t===8221||t>=8224&&t<=8226||t>=8228&&t<=8231||t===8240||t===8242||t===8243||t===8245||t===8251||t===8254||t===8308||t===8319||t>=8321&&t<=8324||t===8364||t===8451||t===8453||t===8457||t===8467||t===8470||t===8481||t===8482||t===8486||t===8491||t===8531||t===8532||t>=8539&&t<=8542||t>=8544&&t<=8555||t>=8560&&t<=8569||t===8585||t>=8592&&t<=8601||t===8632||t===8633||t===8658||t===8660||t===8679||t===8704||t===8706||t===8707||t===8711||t===8712||t===8715||t===8719||t===8721||t===8725||t===8730||t>=8733&&t<=8736||t===8739||t===8741||t>=8743&&t<=8748||t===8750||t>=8756&&t<=8759||t===8764||t===8765||t===8776||t===8780||t===8786||t===8800||t===8801||t>=8804&&t<=8807||t===8810||t===8811||t===8814||t===8815||t===8834||t===8835||t===8838||t===8839||t===8853||t===8857||t===8869||t===8895||t===8978||t>=9312&&t<=9449||t>=9451&&t<=9547||t>=9552&&t<=9587||t>=9600&&t<=9615||t>=9618&&t<=9621||t===9632||t===9633||t>=9635&&t<=9641||t===9650||t===9651||t===9654||t===9655||t===9660||t===9661||t===9664||t===9665||t>=9670&&t<=9672||t===9675||t>=9678&&t<=9681||t>=9698&&t<=9701||t===9711||t===9733||t===9734||t===9737||t===9742||t===9743||t===9756||t===9758||t===9792||t===9794||t===9824||t===9825||t>=9827&&t<=9829||t>=9831&&t<=9834||t===9836||t===9837||t===9839||t===9886||t===9887||t===9919||t>=9926&&t<=9933||t>=9935&&t<=9939||t>=9941&&t<=9953||t===9955||t===9960||t===9961||t>=9963&&t<=9969||t===9972||t>=9974&&t<=9977||t===9979||t===9980||t===9982||t===9983||t===10045||t>=10102&&t<=10111||t>=11094&&t<=11097||t>=12872&&t<=12879||t>=57344&&t<=63743||t>=65024&&t<=65039||t===65533||t>=127232&&t<=127242||t>=127248&&t<=127277||t>=127280&&t<=127337||t>=127344&&t<=127373||t===127375||t===127376||t>=127387&&t<=127404||t>=917760&&t<=917999||t>=983040&&t<=1048573||t>=1048576&&t<=1114109,lt=t=>t===12288||t>=65281&&t<=65376||t>=65504&&t<=65510,ht=t=>t>=4352&&t<=4447||t===8986||t===8987||t===9001||t===9002||t>=9193&&t<=9196||t===9200||t===9203||t===9725||t===9726||t===9748||t===9749||t>=9800&&t<=9811||t===9855||t===9875||t===9889||t===9898||t===9899||t===9917||t===9918||t===9924||t===9925||t===9934||t===9940||t===9962||t===9970||t===9971||t===9973||t===9978||t===9981||t===9989||t===9994||t===9995||t===10024||t===10060||t===10062||t>=10067&&t<=10069||t===10071||t>=10133&&t<=10135||t===10160||t===10175||t===11035||t===11036||t===11088||t===11093||t>=11904&&t<=11929||t>=11931&&t<=12019||t>=12032&&t<=12245||t>=12272&&t<=12287||t>=12289&&t<=12350||t>=12353&&t<=12438||t>=12441&&t<=12543||t>=12549&&t<=12591||t>=12593&&t<=12686||t>=12688&&t<=12771||t>=12783&&t<=12830||t>=12832&&t<=12871||t>=12880&&t<=19903||t>=19968&&t<=42124||t>=42128&&t<=42182||t>=43360&&t<=43388||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65106||t>=65108&&t<=65126||t>=65128&&t<=65131||t>=94176&&t<=94180||t===94192||t===94193||t>=94208&&t<=100343||t>=100352&&t<=101589||t>=101632&&t<=101640||t>=110576&&t<=110579||t>=110581&&t<=110587||t===110589||t===110590||t>=110592&&t<=110882||t===110898||t>=110928&&t<=110930||t===110933||t>=110948&&t<=110951||t>=110960&&t<=111355||t===126980||t===127183||t===127374||t>=127377&&t<=127386||t>=127488&&t<=127490||t>=127504&&t<=127547||t>=127552&&t<=127560||t===127568||t===127569||t>=127584&&t<=127589||t>=127744&&t<=127776||t>=127789&&t<=127797||t>=127799&&t<=127868||t>=127870&&t<=127891||t>=127904&&t<=127946||t>=127951&&t<=127955||t>=127968&&t<=127984||t===127988||t>=127992&&t<=128062||t===128064||t>=128066&&t<=128252||t>=128255&&t<=128317||t>=128331&&t<=128334||t>=128336&&t<=128359||t===128378||t===128405||t===128406||t===128420||t>=128507&&t<=128591||t>=128640&&t<=128709||t===128716||t>=128720&&t<=128722||t>=128725&&t<=128727||t>=128732&&t<=128735||t===128747||t===128748||t>=128756&&t<=128764||t>=128992&&t<=129003||t===129008||t>=129292&&t<=129338||t>=129340&&t<=129349||t>=129351&&t<=129535||t>=129648&&t<=129660||t>=129664&&t<=129672||t>=129680&&t<=129725||t>=129727&&t<=129733||t>=129742&&t<=129755||t>=129760&&t<=129768||t>=129776&&t<=129784||t>=131072&&t<=196605||t>=196608&&t<=262141,O=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y,y=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,L=/\t{1,1000}/y,P=/[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/yu,M=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,ct=/\p{M}+/gu,ft$1={limit:1/0,ellipsis:""},X$1=(t,e={},s={})=>{const i=e.limit??1/0,r=e.ellipsis??"",n=e?.ellipsisWidth??(r?X$1(r,ft$1,s).width:0),u=s.ansiWidth??0,a=s.controlWidth??0,l=s.tabWidth??8,E=s.ambiguousWidth??1,g=s.emojiWidth??2,m=s.fullWidthWidth??2,A=s.regularWidth??1,V=s.wideWidth??2;let h=0,o=0,p=t.length,v=0,F=false,d=p,b=Math.max(0,i-n),C=0,w=0,c=0,f=0;t:for(;;){if(w>C||o>=p&&o>h){const ut=t.slice(C,w)||t.slice(h,o);v=0;for(const Y of ut.replaceAll(ct,"")){const $=Y.codePointAt(0)||0;if(lt($)?f=m:ht($)?f=V:E!==A&&at($)?f=E:f=A,c+f>b&&(d=Math.min(d,Math.max(C,h)+v)),c+f>i){F=true;break t}v+=Y.length,c+=f;}C=w=0;}if(o>=p)break;if(M.lastIndex=o,M.test(t)){if(v=M.lastIndex-o,f=v*A,c+f>b&&(d=Math.min(d,o+Math.floor((b-c)/A))),c+f>i){F=true;break}c+=f,C=h,w=o,o=h=M.lastIndex;continue}if(O.lastIndex=o,O.test(t)){if(c+u>b&&(d=Math.min(d,o)),c+u>i){F=true;break}c+=u,C=h,w=o,o=h=O.lastIndex;continue}if(y.lastIndex=o,y.test(t)){if(v=y.lastIndex-o,f=v*a,c+f>b&&(d=Math.min(d,o+Math.floor((b-c)/a))),c+f>i){F=true;break}c+=f,C=h,w=o,o=h=y.lastIndex;continue}if(L.lastIndex=o,L.test(t)){if(v=L.lastIndex-o,f=v*l,c+f>b&&(d=Math.min(d,o+Math.floor((b-c)/l))),c+f>i){F=true;break}c+=f,C=h,w=o,o=h=L.lastIndex;continue}if(P.lastIndex=o,P.test(t)){if(c+g>b&&(d=Math.min(d,o)),c+g>i){F=true;break}c+=g,C=h,w=o,o=h=P.lastIndex;continue}o+=1;}return {width:F?b:c,index:F?d:p,truncated:F,ellipsed:F&&i>=n}},pt$1={limit:1/0,ellipsis:"",ellipsisWidth:0},S=(t,e={})=>X$1(t,pt$1,e).width,T="\x1B",Z="\x9B",Ft$1=39,j="\x07",Q="[",dt="]",tt="m",U=`${dt}8;;`,et=new RegExp(`(?:\\${Q}(?<code>\\d+)m|\\${U}(?<uri>.*)${j})`,"y"),mt$1=t=>{if(t>=30&&t<=37||t>=90&&t<=97)return 39;if(t>=40&&t<=47||t>=100&&t<=107)return 49;if(t===1||t===2)return 22;if(t===3)return 23;if(t===4)return 24;if(t===7)return 27;if(t===8)return 28;if(t===9)return 29;if(t===0)return 0},st=t=>`${T}${Q}${t}${tt}`,it=t=>`${T}${U}${t}${j}`,gt$1=t=>t.map(e=>S(e)),G=(t,e,s)=>{const i=e[Symbol.iterator]();let r=false,n=false,u=t.at(-1),a=u===void 0?0:S(u),l=i.next(),E=i.next(),g=0;for(;!l.done;){const m=l.value,A=S(m);a+A<=s?t[t.length-1]+=m:(t.push(m),a=0),(m===T||m===Z)&&(r=true,n=e.startsWith(U,g+1)),r?n?m===j&&(r=false,n=false):m===tt&&(r=false):(a+=A,a===s&&!E.done&&(t.push(""),a=0)),l=E,E=i.next(),g+=m.length;}u=t.at(-1),!a&&u!==void 0&&u.length>0&&t.length>1&&(t[t.length-2]+=t.pop());},vt$1=t=>{const e=t.split(" ");let s=e.length;for(;s>0&&!(S(e[s-1])>0);)s--;return s===e.length?t:e.slice(0,s).join(" ")+e.slice(s).join("")},Et$1=(t,e,s={})=>{if(s.trim!==false&&t.trim()==="")return "";let i="",r,n;const u=t.split(" "),a=gt$1(u);let l=[""];for(const[h,o]of u.entries()){s.trim!==false&&(l[l.length-1]=(l.at(-1)??"").trimStart());let p=S(l.at(-1)??"");if(h!==0&&(p>=e&&(s.wordWrap===false||s.trim===false)&&(l.push(""),p=0),(p>0||s.trim===false)&&(l[l.length-1]+=" ",p++)),s.hard&&a[h]>e){const v=e-p,F=1+Math.floor((a[h]-v-1)/e);Math.floor((a[h]-1)/e)<F&&l.push(""),G(l,o,e);continue}if(p+a[h]>e&&p>0&&a[h]>0){if(s.wordWrap===false&&p<e){G(l,o,e);continue}l.push("");}if(p+a[h]>e&&s.wordWrap===false){G(l,o,e);continue}l[l.length-1]+=o;}s.trim!==false&&(l=l.map(h=>vt$1(h)));const E=l.join(`
97
97
  `),g=E[Symbol.iterator]();let m=g.next(),A=g.next(),V=0;for(;!m.done;){const h=m.value,o=A.value;if(i+=h,h===T||h===Z){et.lastIndex=V+1;const F=et.exec(E)?.groups;if(F?.code!==void 0){const d=Number.parseFloat(F.code);r=d===Ft$1?void 0:d;}else F?.uri!==void 0&&(n=F.uri.length===0?void 0:F.uri);}const p=r?mt$1(r):void 0;o===`
98
98
  `?(n&&(i+=it("")),r&&p&&(i+=st(p))):h===`
99
99
  `&&(r&&p&&(i+=st(r)),n&&(i+=it(n))),V+=h.length,m=A,A=g.next();}return i};function K(t,e,s){return String(t).normalize().replaceAll(`\r
@@ -109,9 +109,9 @@ function x$1(t,e,s){if(!s.some(u=>!u.disabled))return t;const i=t+e,r=Math.max(s
109
109
  `).length-1;this.output.write(srcExports.cursor.move(-999,e*-1));}render(){const e=K(this._render(this)??"",process.stdout.columns,{hard:true,trim:false});if(e!==this._prevFrame){if(this.state==="initial")this.output.write(srcExports.cursor.hide);else {const s=_t(this._prevFrame,e),i=nt(this.output);if(this.restoreCursor(),s){const r=Math.max(0,s.numLinesAfter-i),n=Math.max(0,s.numLinesBefore-i);let u=s.lines.find(a=>a>=r);if(u===void 0){this._prevFrame=e;return}if(s.lines.length===1){this.output.write(srcExports.cursor.move(0,u-n)),this.output.write(srcExports.erase.lines(1));const a=e.split(`
110
110
  `);this.output.write(a[u]),this._prevFrame=e,this.output.write(srcExports.cursor.move(0,a.length-u-1));return}else if(s.lines.length>1){if(r<n)u=r;else {const l=u-n;l>0&&this.output.write(srcExports.cursor.move(0,l));}this.output.write(srcExports.erase.down());const a=e.split(`
111
111
  `).slice(u);this.output.write(a.join(`
112
- `)),this._prevFrame=e;return}}this.output.write(srcExports.erase.down());}this.output.write(e),this.state==="initial"&&(this.state="active"),this._prevFrame=e;}}}let kt$1 = class kt extends B{get cursor(){return this.value?0:1}get _value(){return this.cursor===0}constructor(e){super(e,false),this.value=!!e.initialValue,this.on("userInput",()=>{this.value=this._value;}),this.on("confirm",s=>{this.output.write(srcExports.cursor.move(0,-1)),this.value=s,this.state="submit",this.close();}),this.on("cursor",()=>{this.value=!this.value;});}};let Lt$1=class Lt extends B{options;cursor=0;get _value(){return this.options[this.cursor].value}get _enabledOptions(){return this.options.filter(e=>e.disabled!==true)}toggleAll(){const e=this._enabledOptions,s=this.value!==void 0&&this.value.length===e.length;this.value=s?[]:e.map(i=>i.value);}toggleInvert(){const e=this.value;if(!e)return;const s=this._enabledOptions.filter(i=>!e.includes(i.value));this.value=s.map(i=>i.value);}toggleValue(){this.value===void 0&&(this.value=[]);const e=this.value.includes(this._value);this.value=e?this.value.filter(s=>s!==this._value):[...this.value,this._value];}constructor(e){super(e,false),this.options=e.options,this.value=[...e.initialValues??[]];const s=Math.max(this.options.findIndex(({value:i})=>i===e.cursorAt),0);this.cursor=this.options[s].disabled?x$1(s,1,this.options):s,this.on("key",i=>{i==="a"&&this.toggleAll(),i==="i"&&this.toggleInvert();}),this.on("cursor",i=>{switch(i){case "left":case "up":this.cursor=x$1(this.cursor,-1,this.options);break;case "down":case "right":this.cursor=x$1(this.cursor,1,this.options);break;case "space":this.toggleValue();break}});}};class Tt extends B{options;cursor=0;get _selectedValue(){return this.options[this.cursor]}changeValue(){this.value=this._selectedValue.value;}constructor(e){super(e,false),this.options=e.options;const s=this.options.findIndex(({value:r})=>r===e.initialValue),i=s===-1?0:s;this.cursor=this.options[i].disabled?x$1(i,1,this.options):i,this.changeValue(),this.on("cursor",r=>{switch(r){case "left":case "up":this.cursor=x$1(this.cursor,-1,this.options);break;case "down":case "right":this.cursor=x$1(this.cursor,1,this.options);break}this.changeValue();});}}class $t extends B{get userInputWithCursor(){if(this.state==="submit")return this.userInput;const e=this.userInput;if(this.cursor>=e.length)return `${this.userInput}\u2588`;const s=e.slice(0,this.cursor),[i,...r]=e.slice(this.cursor);return `${s}${styleText("inverse",i)}${r.join("")}`}get cursor(){return this._cursor}constructor(e){super({...e,initialUserInput:e.initialUserInput??e.initialValue}),this.on("userInput",s=>{this._setValue(s);}),this.on("finalize",()=>{this.value||(this.value=e.defaultValue),this.value===void 0&&(this.value="");});}}
112
+ `)),this._prevFrame=e;return}}this.output.write(srcExports.erase.down());}this.output.write(e),this.state==="initial"&&(this.state="active"),this._prevFrame=e;}}}let kt$1 = class kt extends B{get cursor(){return this.value?0:1}get _value(){return this.cursor===0}constructor(e){super(e,false),this.value=!!e.initialValue,this.on("userInput",()=>{this.value=this._value;}),this.on("confirm",s=>{this.output.write(srcExports.cursor.move(0,-1)),this.value=s,this.state="submit",this.close();}),this.on("cursor",()=>{this.value=!this.value;});}};class Tt extends B{options;cursor=0;get _selectedValue(){return this.options[this.cursor]}changeValue(){this.value=this._selectedValue.value;}constructor(e){super(e,false),this.options=e.options;const s=this.options.findIndex(({value:r})=>r===e.initialValue),i=s===-1?0:s;this.cursor=this.options[i].disabled?x$1(i,1,this.options):i,this.changeValue(),this.on("cursor",r=>{switch(r){case "left":case "up":this.cursor=x$1(this.cursor,-1,this.options);break;case "down":case "right":this.cursor=x$1(this.cursor,1,this.options);break}this.changeValue();});}}class $t extends B{get userInputWithCursor(){if(this.state==="submit")return this.userInput;const e=this.userInput;if(this.cursor>=e.length)return `${this.userInput}\u2588`;const s=e.slice(0,this.cursor),[i,...r]=e.slice(this.cursor);return `${s}${styleText("inverse",i)}${r.join("")}`}get cursor(){return this._cursor}constructor(e){super({...e,initialUserInput:e.initialUserInput??e.initialValue}),this.on("userInput",s=>{this._setValue(s);}),this.on("finalize",()=>{this.value||(this.value=e.defaultValue),this.value===void 0&&(this.value="");});}}
113
113
 
114
- function pt(){return process$1.platform!=="win32"?process$1.env.TERM!=="linux":!!process$1.env.CI||!!process$1.env.WT_SESSION||!!process$1.env.TERMINUS_SUBLIME||process$1.env.ConEmuTask==="{cmd::Cmder}"||process$1.env.TERM_PROGRAM==="Terminus-Sublime"||process$1.env.TERM_PROGRAM==="vscode"||process$1.env.TERM==="xterm-256color"||process$1.env.TERM==="alacritty"||process$1.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}const ee=pt(),ce=()=>process.env.CI==="true",I=(e,r)=>ee?e:r,Re=I("\u25C6","*"),$e=I("\u25A0","x"),de=I("\u25B2","x"),V=I("\u25C7","o"),he=I("\u250C","T"),h=I("\u2502","|"),x=I("\u2514","\u2014"),z=I("\u25CF",">"),H=I("\u25CB"," "),te=I("\u25FB","[\u2022]"),U=I("\u25FC","[+]"),q=I("\u25FB","[ ]"),se=I("\u2500","-"),pe=I("\u256E","+"),We=I("\u251C","+"),me=I("\u256F","+"),fe=I("\u25CF","\u2022"),Fe=I("\u25C6","*"),ye=I("\u25B2","!"),Ee=I("\u25A0","x"),W=e=>{switch(e){case "initial":case "active":return styleText("cyan",Re);case "cancel":return styleText("red",$e);case "error":return styleText("yellow",de);case "submit":return styleText("green",V)}},ve=e=>{switch(e){case "initial":case "active":return styleText("cyan",h);case "cancel":return styleText("red",h);case "error":return styleText("yellow",h);case "submit":return styleText("green",h)}},mt=e=>e===161||e===164||e===167||e===168||e===170||e===173||e===174||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||e===198||e===208||e===215||e===216||e>=222&&e<=225||e===230||e>=232&&e<=234||e===236||e===237||e===240||e===242||e===243||e>=247&&e<=250||e===252||e===254||e===257||e===273||e===275||e===283||e===294||e===295||e===299||e>=305&&e<=307||e===312||e>=319&&e<=322||e===324||e>=328&&e<=331||e===333||e===338||e===339||e===358||e===359||e===363||e===462||e===464||e===466||e===468||e===470||e===472||e===474||e===476||e===593||e===609||e===708||e===711||e>=713&&e<=715||e===717||e===720||e>=728&&e<=731||e===733||e===735||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||e===1025||e>=1040&&e<=1103||e===1105||e===8208||e>=8211&&e<=8214||e===8216||e===8217||e===8220||e===8221||e>=8224&&e<=8226||e>=8228&&e<=8231||e===8240||e===8242||e===8243||e===8245||e===8251||e===8254||e===8308||e===8319||e>=8321&&e<=8324||e===8364||e===8451||e===8453||e===8457||e===8467||e===8470||e===8481||e===8482||e===8486||e===8491||e===8531||e===8532||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||e===8585||e>=8592&&e<=8601||e===8632||e===8633||e===8658||e===8660||e===8679||e===8704||e===8706||e===8707||e===8711||e===8712||e===8715||e===8719||e===8721||e===8725||e===8730||e>=8733&&e<=8736||e===8739||e===8741||e>=8743&&e<=8748||e===8750||e>=8756&&e<=8759||e===8764||e===8765||e===8776||e===8780||e===8786||e===8800||e===8801||e>=8804&&e<=8807||e===8810||e===8811||e===8814||e===8815||e===8834||e===8835||e===8838||e===8839||e===8853||e===8857||e===8869||e===8895||e===8978||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||e===9632||e===9633||e>=9635&&e<=9641||e===9650||e===9651||e===9654||e===9655||e===9660||e===9661||e===9664||e===9665||e>=9670&&e<=9672||e===9675||e>=9678&&e<=9681||e>=9698&&e<=9701||e===9711||e===9733||e===9734||e===9737||e===9742||e===9743||e===9756||e===9758||e===9792||e===9794||e===9824||e===9825||e>=9827&&e<=9829||e>=9831&&e<=9834||e===9836||e===9837||e===9839||e===9886||e===9887||e===9919||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||e===9955||e===9960||e===9961||e>=9963&&e<=9969||e===9972||e>=9974&&e<=9977||e===9979||e===9980||e===9982||e===9983||e===10045||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||e===65533||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||e===127375||e===127376||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109,gt=e=>e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510,ft=e=>e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9800&&e<=9811||e===9855||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141,we=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y,re=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,ie=/\t{1,1000}/y,Ae=/[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/yu,ne=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,Ft=/\p{M}+/gu,yt={limit:1/0,ellipsis:""},Le=(e,r={},s={})=>{const i=r.limit??1/0,a=r.ellipsis??"",o=r?.ellipsisWidth??(a?Le(a,yt,s).width:0),u=s.ansiWidth??0,l=s.controlWidth??0,n=s.tabWidth??8,c=s.ambiguousWidth??1,p=s.emojiWidth??2,f=s.fullWidthWidth??2,g=s.regularWidth??1,E=s.wideWidth??2;let $=0,m=0,d=e.length,F=0,y=false,v=d,C=Math.max(0,i-o),A=0,b=0,w=0,S=0;e:for(;;){if(b>A||m>=d&&m>$){const T=e.slice(A,b)||e.slice($,m);F=0;for(const M of T.replaceAll(Ft,"")){const O=M.codePointAt(0)||0;if(gt(O)?S=f:ft(O)?S=E:c!==g&&mt(O)?S=c:S=g,w+S>C&&(v=Math.min(v,Math.max(A,$)+F)),w+S>i){y=true;break e}F+=M.length,w+=S;}A=b=0;}if(m>=d)break;if(ne.lastIndex=m,ne.test(e)){if(F=ne.lastIndex-m,S=F*g,w+S>C&&(v=Math.min(v,m+Math.floor((C-w)/g))),w+S>i){y=true;break}w+=S,A=$,b=m,m=$=ne.lastIndex;continue}if(we.lastIndex=m,we.test(e)){if(w+u>C&&(v=Math.min(v,m)),w+u>i){y=true;break}w+=u,A=$,b=m,m=$=we.lastIndex;continue}if(re.lastIndex=m,re.test(e)){if(F=re.lastIndex-m,S=F*l,w+S>C&&(v=Math.min(v,m+Math.floor((C-w)/l))),w+S>i){y=true;break}w+=S,A=$,b=m,m=$=re.lastIndex;continue}if(ie.lastIndex=m,ie.test(e)){if(F=ie.lastIndex-m,S=F*n,w+S>C&&(v=Math.min(v,m+Math.floor((C-w)/n))),w+S>i){y=true;break}w+=S,A=$,b=m,m=$=ie.lastIndex;continue}if(Ae.lastIndex=m,Ae.test(e)){if(w+p>C&&(v=Math.min(v,m)),w+p>i){y=true;break}w+=p,A=$,b=m,m=$=Ae.lastIndex;continue}m+=1;}return {width:y?C:w,index:y?v:d,truncated:y,ellipsed:y&&i>=o}},Et={limit:1/0,ellipsis:"",ellipsisWidth:0},D=(e,r={})=>Le(e,Et,r).width,ae="\x1B",je="\x9B",vt=39,Ce="\x07",ke="[",wt="]",Ve="m",Se=`${wt}8;;`,He=new RegExp(`(?:\\${ke}(?<code>\\d+)m|\\${Se}(?<uri>.*)${Ce})`,"y"),At=e=>{if(e>=30&&e<=37||e>=90&&e<=97)return 39;if(e>=40&&e<=47||e>=100&&e<=107)return 49;if(e===1||e===2)return 22;if(e===3)return 23;if(e===4)return 24;if(e===7)return 27;if(e===8)return 28;if(e===9)return 29;if(e===0)return 0},Ue=e=>`${ae}${ke}${e}${Ve}`,Ke=e=>`${ae}${Se}${e}${Ce}`,Ct=e=>e.map(r=>D(r)),Ie=(e,r,s)=>{const i=r[Symbol.iterator]();let a=false,o=false,u=e.at(-1),l=u===void 0?0:D(u),n=i.next(),c=i.next(),p=0;for(;!n.done;){const f=n.value,g=D(f);l+g<=s?e[e.length-1]+=f:(e.push(f),l=0),(f===ae||f===je)&&(a=true,o=r.startsWith(Se,p+1)),a?o?f===Ce&&(a=false,o=false):f===Ve&&(a=false):(l+=g,l===s&&!c.done&&(e.push(""),l=0)),n=c,c=i.next(),p+=f.length;}u=e.at(-1),!l&&u!==void 0&&u.length>0&&e.length>1&&(e[e.length-2]+=e.pop());},St=e=>{const r=e.split(" ");let s=r.length;for(;s>0&&!(D(r[s-1])>0);)s--;return s===r.length?e:r.slice(0,s).join(" ")+r.slice(s).join("")},It=(e,r,s={})=>{if(s.trim!==false&&e.trim()==="")return "";let i="",a,o;const u=e.split(" "),l=Ct(u);let n=[""];for(const[$,m]of u.entries()){s.trim!==false&&(n[n.length-1]=(n.at(-1)??"").trimStart());let d=D(n.at(-1)??"");if($!==0&&(d>=r&&(s.wordWrap===false||s.trim===false)&&(n.push(""),d=0),(d>0||s.trim===false)&&(n[n.length-1]+=" ",d++)),s.hard&&l[$]>r){const F=r-d,y=1+Math.floor((l[$]-F-1)/r);Math.floor((l[$]-1)/r)<y&&n.push(""),Ie(n,m,r);continue}if(d+l[$]>r&&d>0&&l[$]>0){if(s.wordWrap===false&&d<r){Ie(n,m,r);continue}n.push("");}if(d+l[$]>r&&s.wordWrap===false){Ie(n,m,r);continue}n[n.length-1]+=m;}s.trim!==false&&(n=n.map($=>St($)));const c=n.join(`
114
+ function pt(){return process$1.platform!=="win32"?process$1.env.TERM!=="linux":!!process$1.env.CI||!!process$1.env.WT_SESSION||!!process$1.env.TERMINUS_SUBLIME||process$1.env.ConEmuTask==="{cmd::Cmder}"||process$1.env.TERM_PROGRAM==="Terminus-Sublime"||process$1.env.TERM_PROGRAM==="vscode"||process$1.env.TERM==="xterm-256color"||process$1.env.TERM==="alacritty"||process$1.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}const ee=pt(),ce=()=>process.env.CI==="true",I=(e,r)=>ee?e:r,Re=I("\u25C6","*"),$e=I("\u25A0","x"),de=I("\u25B2","x"),V=I("\u25C7","o"),he=I("\u250C","T"),h=I("\u2502","|"),x=I("\u2514","\u2014"),z=I("\u25CF",">"),H=I("\u25CB"," "),se=I("\u2500","-"),pe=I("\u256E","+"),We=I("\u251C","+"),me=I("\u256F","+"),fe=I("\u25CF","\u2022"),Fe=I("\u25C6","*"),ye=I("\u25B2","!"),Ee=I("\u25A0","x"),W=e=>{switch(e){case "initial":case "active":return styleText("cyan",Re);case "cancel":return styleText("red",$e);case "error":return styleText("yellow",de);case "submit":return styleText("green",V)}},ve=e=>{switch(e){case "initial":case "active":return styleText("cyan",h);case "cancel":return styleText("red",h);case "error":return styleText("yellow",h);case "submit":return styleText("green",h)}},mt=e=>e===161||e===164||e===167||e===168||e===170||e===173||e===174||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||e===198||e===208||e===215||e===216||e>=222&&e<=225||e===230||e>=232&&e<=234||e===236||e===237||e===240||e===242||e===243||e>=247&&e<=250||e===252||e===254||e===257||e===273||e===275||e===283||e===294||e===295||e===299||e>=305&&e<=307||e===312||e>=319&&e<=322||e===324||e>=328&&e<=331||e===333||e===338||e===339||e===358||e===359||e===363||e===462||e===464||e===466||e===468||e===470||e===472||e===474||e===476||e===593||e===609||e===708||e===711||e>=713&&e<=715||e===717||e===720||e>=728&&e<=731||e===733||e===735||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||e===1025||e>=1040&&e<=1103||e===1105||e===8208||e>=8211&&e<=8214||e===8216||e===8217||e===8220||e===8221||e>=8224&&e<=8226||e>=8228&&e<=8231||e===8240||e===8242||e===8243||e===8245||e===8251||e===8254||e===8308||e===8319||e>=8321&&e<=8324||e===8364||e===8451||e===8453||e===8457||e===8467||e===8470||e===8481||e===8482||e===8486||e===8491||e===8531||e===8532||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||e===8585||e>=8592&&e<=8601||e===8632||e===8633||e===8658||e===8660||e===8679||e===8704||e===8706||e===8707||e===8711||e===8712||e===8715||e===8719||e===8721||e===8725||e===8730||e>=8733&&e<=8736||e===8739||e===8741||e>=8743&&e<=8748||e===8750||e>=8756&&e<=8759||e===8764||e===8765||e===8776||e===8780||e===8786||e===8800||e===8801||e>=8804&&e<=8807||e===8810||e===8811||e===8814||e===8815||e===8834||e===8835||e===8838||e===8839||e===8853||e===8857||e===8869||e===8895||e===8978||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||e===9632||e===9633||e>=9635&&e<=9641||e===9650||e===9651||e===9654||e===9655||e===9660||e===9661||e===9664||e===9665||e>=9670&&e<=9672||e===9675||e>=9678&&e<=9681||e>=9698&&e<=9701||e===9711||e===9733||e===9734||e===9737||e===9742||e===9743||e===9756||e===9758||e===9792||e===9794||e===9824||e===9825||e>=9827&&e<=9829||e>=9831&&e<=9834||e===9836||e===9837||e===9839||e===9886||e===9887||e===9919||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||e===9955||e===9960||e===9961||e>=9963&&e<=9969||e===9972||e>=9974&&e<=9977||e===9979||e===9980||e===9982||e===9983||e===10045||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||e===65533||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||e===127375||e===127376||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109,gt=e=>e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510,ft=e=>e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9800&&e<=9811||e===9855||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141,we=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y,re=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,ie=/\t{1,1000}/y,Ae=/[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/yu,ne=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,Ft=/\p{M}+/gu,yt={limit:1/0,ellipsis:""},Le=(e,r={},s={})=>{const i=r.limit??1/0,a=r.ellipsis??"",o=r?.ellipsisWidth??(a?Le(a,yt,s).width:0),u=s.ansiWidth??0,l=s.controlWidth??0,n=s.tabWidth??8,c=s.ambiguousWidth??1,p=s.emojiWidth??2,f=s.fullWidthWidth??2,g=s.regularWidth??1,E=s.wideWidth??2;let $=0,m=0,d=e.length,F=0,y=false,v=d,C=Math.max(0,i-o),A=0,b=0,w=0,S=0;e:for(;;){if(b>A||m>=d&&m>$){const T=e.slice(A,b)||e.slice($,m);F=0;for(const M of T.replaceAll(Ft,"")){const O=M.codePointAt(0)||0;if(gt(O)?S=f:ft(O)?S=E:c!==g&&mt(O)?S=c:S=g,w+S>C&&(v=Math.min(v,Math.max(A,$)+F)),w+S>i){y=true;break e}F+=M.length,w+=S;}A=b=0;}if(m>=d)break;if(ne.lastIndex=m,ne.test(e)){if(F=ne.lastIndex-m,S=F*g,w+S>C&&(v=Math.min(v,m+Math.floor((C-w)/g))),w+S>i){y=true;break}w+=S,A=$,b=m,m=$=ne.lastIndex;continue}if(we.lastIndex=m,we.test(e)){if(w+u>C&&(v=Math.min(v,m)),w+u>i){y=true;break}w+=u,A=$,b=m,m=$=we.lastIndex;continue}if(re.lastIndex=m,re.test(e)){if(F=re.lastIndex-m,S=F*l,w+S>C&&(v=Math.min(v,m+Math.floor((C-w)/l))),w+S>i){y=true;break}w+=S,A=$,b=m,m=$=re.lastIndex;continue}if(ie.lastIndex=m,ie.test(e)){if(F=ie.lastIndex-m,S=F*n,w+S>C&&(v=Math.min(v,m+Math.floor((C-w)/n))),w+S>i){y=true;break}w+=S,A=$,b=m,m=$=ie.lastIndex;continue}if(Ae.lastIndex=m,Ae.test(e)){if(w+p>C&&(v=Math.min(v,m)),w+p>i){y=true;break}w+=p,A=$,b=m,m=$=Ae.lastIndex;continue}m+=1;}return {width:y?C:w,index:y?v:d,truncated:y,ellipsed:y&&i>=o}},Et={limit:1/0,ellipsis:"",ellipsisWidth:0},D=(e,r={})=>Le(e,Et,r).width,ae="\x1B",je="\x9B",vt=39,Ce="\x07",ke="[",wt="]",Ve="m",Se=`${wt}8;;`,He=new RegExp(`(?:\\${ke}(?<code>\\d+)m|\\${Se}(?<uri>.*)${Ce})`,"y"),At=e=>{if(e>=30&&e<=37||e>=90&&e<=97)return 39;if(e>=40&&e<=47||e>=100&&e<=107)return 49;if(e===1||e===2)return 22;if(e===3)return 23;if(e===4)return 24;if(e===7)return 27;if(e===8)return 28;if(e===9)return 29;if(e===0)return 0},Ue=e=>`${ae}${ke}${e}${Ve}`,Ke=e=>`${ae}${Se}${e}${Ce}`,Ct=e=>e.map(r=>D(r)),Ie=(e,r,s)=>{const i=r[Symbol.iterator]();let a=false,o=false,u=e.at(-1),l=u===void 0?0:D(u),n=i.next(),c=i.next(),p=0;for(;!n.done;){const f=n.value,g=D(f);l+g<=s?e[e.length-1]+=f:(e.push(f),l=0),(f===ae||f===je)&&(a=true,o=r.startsWith(Se,p+1)),a?o?f===Ce&&(a=false,o=false):f===Ve&&(a=false):(l+=g,l===s&&!c.done&&(e.push(""),l=0)),n=c,c=i.next(),p+=f.length;}u=e.at(-1),!l&&u!==void 0&&u.length>0&&e.length>1&&(e[e.length-2]+=e.pop());},St=e=>{const r=e.split(" ");let s=r.length;for(;s>0&&!(D(r[s-1])>0);)s--;return s===r.length?e:r.slice(0,s).join(" ")+r.slice(s).join("")},It=(e,r,s={})=>{if(s.trim!==false&&e.trim()==="")return "";let i="",a,o;const u=e.split(" "),l=Ct(u);let n=[""];for(const[$,m]of u.entries()){s.trim!==false&&(n[n.length-1]=(n.at(-1)??"").trimStart());let d=D(n.at(-1)??"");if($!==0&&(d>=r&&(s.wordWrap===false||s.trim===false)&&(n.push(""),d=0),(d>0||s.trim===false)&&(n[n.length-1]+=" ",d++)),s.hard&&l[$]>r){const F=r-d,y=1+Math.floor((l[$]-F-1)/r);Math.floor((l[$]-1)/r)<y&&n.push(""),Ie(n,m,r);continue}if(d+l[$]>r&&d>0&&l[$]>0){if(s.wordWrap===false&&d<r){Ie(n,m,r);continue}n.push("");}if(d+l[$]>r&&s.wordWrap===false){Ie(n,m,r);continue}n[n.length-1]+=m;}s.trim!==false&&(n=n.map($=>St($)));const c=n.join(`
115
115
  `),p=c[Symbol.iterator]();let f=p.next(),g=p.next(),E=0;for(;!f.done;){const $=f.value,m=g.value;if(i+=$,$===ae||$===je){He.lastIndex=E+1;const y=He.exec(c)?.groups;if(y?.code!==void 0){const v=Number.parseFloat(y.code);a=v===vt?void 0:v;}else y?.uri!==void 0&&(o=y.uri.length===0?void 0:y.uri);}const d=a?At(a):void 0;m===`
116
116
  `?(o&&(i+=Ke("")),a&&d&&(i+=Ue(d))):$===`
117
117
  `&&(a&&d&&(i+=Ue(a)),o&&(i+=Ke(o))),E+=$.length,f=g,g=p.next();}return i};function J(e,r,s){return String(e).normalize().replaceAll(`\r
@@ -135,24 +135,7 @@ ${l}
135
135
  `);},Gt=(e="",r)=>{const s=process.stdout,i=`${styleText("gray",h)}
136
136
  ${styleText("gray",x)} `;s.write(`${i}${e}
137
137
 
138
- `);},Q=(e,r)=>e.split(`
139
- `).map(s=>r(s)).join(`
140
- `),Lt=e=>{const r=(i,a)=>{const o=i.label??String(i.value);return a==="disabled"?`${styleText("gray",q)} ${Q(o,u=>styleText(["strikethrough","gray"],u))}${i.hint?` ${styleText("dim",`(${i.hint??"disabled"})`)}`:""}`:a==="active"?`${styleText("cyan",te)} ${o}${i.hint?` ${styleText("dim",`(${i.hint})`)}`:""}`:a==="selected"?`${styleText("green",U)} ${Q(o,u=>styleText("dim",u))}${i.hint?` ${styleText("dim",`(${i.hint})`)}`:""}`:a==="cancelled"?`${Q(o,u=>styleText(["strikethrough","dim"],u))}`:a==="active-selected"?`${styleText("green",U)} ${o}${i.hint?` ${styleText("dim",`(${i.hint})`)}`:""}`:a==="submitted"?`${Q(o,u=>styleText("dim",u))}`:`${styleText("dim",q)} ${Q(o,u=>styleText("dim",u))}`},s=e.required??true;return new Lt$1({options:e.options,signal:e.signal,input:e.input,output:e.output,initialValues:e.initialValues,required:s,cursorAt:e.cursorAt,validate(i){if(s&&(i===void 0||i.length===0))return `Please select at least one option.
141
- ${styleText("reset",styleText("dim",`Press ${styleText(["gray","bgWhite","inverse"]," space ")} to select, ${styleText("gray",styleText("bgWhite",styleText("inverse"," enter ")))} to submit`))}`},render(){const i=Bt(e.output,e.message,`${ve(this.state)} `,`${W(this.state)} `),a=`${styleText("gray",h)}
142
- ${i}
143
- `,o=this.value??[],u=(l,n)=>{if(l.disabled)return r(l,"disabled");const c=o.includes(l.value);return n&&c?r(l,"active-selected"):c?r(l,"selected"):r(l,n?"active":"inactive")};switch(this.state){case "submit":{const l=this.options.filter(({value:c})=>o.includes(c)).map(c=>r(c,"submitted")).join(styleText("dim",", "))||styleText("dim","none"),n=Bt(e.output,l,`${styleText("gray",h)} `);return `${a}${n}`}case "cancel":{const l=this.options.filter(({value:c})=>o.includes(c)).map(c=>r(c,"cancelled")).join(styleText("dim",", "));if(l.trim()==="")return `${a}${styleText("gray",h)}`;const n=Bt(e.output,l,`${styleText("gray",h)} `);return `${a}${n}
144
- ${styleText("gray",h)}`}case "error":{const l=`${styleText("yellow",h)} `,n=this.error.split(`
145
- `).map((f,g)=>g===0?`${styleText("yellow",x)} ${styleText("yellow",f)}`:` ${f}`).join(`
146
- `),c=a.split(`
147
- `).length,p=n.split(`
148
- `).length+1;return `${a}${l}${X({output:e.output,options:this.options,cursor:this.cursor,maxItems:e.maxItems,columnPadding:l.length,rowPadding:c+p,style:u}).join(`
149
- ${l}`)}
150
- ${n}
151
- `}default:{const l=`${styleText("cyan",h)} `,n=a.split(`
152
- `).length;return `${a}${l}${X({output:e.output,options:this.options,cursor:this.cursor,maxItems:e.maxItems,columnPadding:l.length,rowPadding:n+2,style:u}).join(`
153
- ${l}`)}
154
- ${styleText("cyan",x)}
155
- `}}}}).prompt()},jt=e=>styleText("dim",e),kt=(e,r,s)=>{const i={hard:true,trim:false},a=J(e,r,i).split(`
138
+ `);},jt=e=>styleText("dim",e),kt=(e,r,s)=>{const i={hard:true,trim:false},a=J(e,r,i).split(`
156
139
  `),o=a.reduce((n,c)=>Math.max(D(c),n),0),u=a.map(s).reduce((n,c)=>Math.max(D(c),n),0),l=r-(u-o);return J(e,l,i)},Vt=(e="",r="",s)=>{const i=process$1.stdout,o=jt,u=["",...kt(e,rt(i)-6,o).split(`
157
140
  `).map(o),""],l=D(r),n=Math.max(u.reduce((g,E)=>{const $=D(E);return $>g?$:g},0),l)+2,c=u.map(g=>`${styleText("gray",h)} ${g}${" ".repeat(n-D(g))}${styleText("gray",h)}`).join(`
158
141
  `),p=`${styleText("gray",h)}
@@ -1945,7 +1928,7 @@ var interactivePrompt = async (args = {}) => {
1945
1928
  }
1946
1929
  const mastraProject = await Ot(
1947
1930
  {
1948
- directory: () => Zt({
1931
+ directory: () => skip?.directory ? void 0 : Zt({
1949
1932
  message: "Where should we create the Mastra files? (default: src/)",
1950
1933
  placeholder: "src/",
1951
1934
  defaultValue: "src/"
@@ -1991,22 +1974,12 @@ var interactivePrompt = async (args = {}) => {
1991
1974
  }
1992
1975
  if (choice === "skills") {
1993
1976
  const POPULAR_AGENTS = [
1994
- { value: "claude-code", label: "Claude Code" },
1995
- { value: "cursor", label: "Cursor" },
1996
- { value: "codex", label: "Codex" },
1997
- { value: "opencode", label: "OpenCode" },
1998
- { value: "windsurf", label: "Windsurf" },
1999
- { value: "github-copilot", label: "GitHub Copilot" },
2000
- { value: "cline", label: "Cline" },
2001
- { value: "continue", label: "Continue" },
2002
- { value: "gemini-cli", label: "Gemini CLI" },
2003
- { value: "replit", label: "Replit" },
2004
- { value: "roo", label: "Roo Code" }
1977
+ { value: "universal", label: "Universal (Codex, Cursor, Gemini, GitHub, OpenCode)" },
1978
+ { value: "claude-code", label: "Claude Code" }
2005
1979
  ];
2006
1980
  const ALL_AGENTS = [
2007
1981
  ...POPULAR_AGENTS,
2008
1982
  { value: "adal", label: "AdaL" },
2009
- { value: "amp", label: "Amp" },
2010
1983
  { value: "antigravity", label: "Antigravity" },
2011
1984
  { value: "augment", label: "Augment" },
2012
1985
  { value: "codebuddy", label: "CodeBuddy" },
@@ -2017,7 +1990,6 @@ var interactivePrompt = async (args = {}) => {
2017
1990
  { value: "iflow-cli", label: "iFlow CLI" },
2018
1991
  { value: "junie", label: "Junie" },
2019
1992
  { value: "kilo", label: "Kilo Code" },
2020
- { value: "kimi-cli", label: "Kimi Code CLI" },
2021
1993
  { value: "kiro-cli", label: "Kiro CLI" },
2022
1994
  { value: "kode", label: "Kode" },
2023
1995
  { value: "mcpjam", label: "MCPJam" },
@@ -2031,34 +2003,36 @@ var interactivePrompt = async (args = {}) => {
2031
2003
  { value: "pochi", label: "Pochi" },
2032
2004
  { value: "qoder", label: "Qoder" },
2033
2005
  { value: "qwen-code", label: "Qwen Code" },
2006
+ { value: "replit", label: "Replit" },
2007
+ { value: "roo", label: "Roo Code" },
2034
2008
  { value: "trae", label: "Trae" },
2035
2009
  { value: "trae-cn", label: "Trae CN" },
2010
+ { value: "windsurf", label: "Windsurf" },
2036
2011
  { value: "zencoder", label: "Zencoder" }
2037
2012
  ];
2038
- const initialSelection = await Lt({
2039
- message: `Select agent(s) to install skills for ${color.dim("(use arrow keys / space bar)")}`,
2040
- options: [...POPULAR_AGENTS, { value: "__show_all__", label: "+ Show all agents (29 more)" }],
2041
- initialValues: ["claude-code", "cursor"],
2042
- required: true
2013
+ const initialSelection = await Jt({
2014
+ message: `Select your agent:`,
2015
+ options: [...POPULAR_AGENTS, { value: "__show_all__", label: "+ Show all agents" }],
2016
+ initialValue: "universal"
2043
2017
  });
2044
2018
  if (Ct$1(initialSelection)) {
2045
2019
  return { skills: void 0, mcpServer: void 0 };
2046
2020
  }
2047
- let selectedAgents = initialSelection;
2048
- if (selectedAgents.includes("__show_all__")) {
2049
- const preSelected = selectedAgents.filter((a) => a !== "__show_all__");
2050
- const fullSelection = await Lt({
2051
- message: `Select agent(s) to install skills for ${color.dim("(use arrow keys / space bar)")}`,
2052
- options: ALL_AGENTS,
2053
- initialValues: preSelected,
2054
- required: true
2021
+ let selectedAgents = /* @__PURE__ */ new Set();
2022
+ if (initialSelection === "__show_all__") {
2023
+ const followUpSelection = await Jt({
2024
+ message: `Select your agent:`,
2025
+ options: ALL_AGENTS
2055
2026
  });
2056
- if (Ct$1(fullSelection)) {
2027
+ if (Ct$1(followUpSelection)) {
2057
2028
  return { skills: void 0, mcpServer: void 0 };
2058
2029
  }
2059
- selectedAgents = fullSelection;
2030
+ selectedAgents.add(followUpSelection);
2031
+ } else {
2032
+ selectedAgents.add(initialSelection);
2060
2033
  }
2061
- return { skills: selectedAgents, mcpServer: void 0 };
2034
+ selectedAgents.add("universal");
2035
+ return { skills: Array.from(selectedAgents), mcpServer: void 0 };
2062
2036
  }
2063
2037
  if (choice === "mcp") {
2064
2038
  const editor = await Jt({
@@ -2165,52 +2139,30 @@ function generateAgentsMarkdown({ skills, mcpServer }) {
2165
2139
  const hasMcp = !!mcpServer;
2166
2140
  let content = `# AGENTS.md
2167
2141
 
2168
- This document provides guidance for AI coding agents working in this repository.
2142
+ You are a TypeScript developer experienced with the Mastra framework. You build AI agents, tools, workflows, and scorers. You follow strict TypeScript practices and always consult up-to-date Mastra documentation before making changes.
2143
+
2169
2144
  `;
2170
2145
  if (hasSkills) {
2171
2146
  content += `
2172
- ## CRITICAL: Mastra Skill Required
2147
+ ## CRITICAL: Load \`mastra\` skill
2173
2148
 
2174
- **BEFORE doing ANYTHING with Mastra code or answering Mastra questions, load the Mastra skill FIRST.**
2175
-
2176
- See [Mastra Skills section](#mastra-skills) for loading instructions.
2149
+ **BEFORE doing ANYTHING with Mastra, load the \`mastra\` skill FIRST.** Never rely on cached knowledge as Mastra's APIs change frequently between versions. Use the skill to read up-to-date documentation from \`node_modules\`.
2177
2150
  `;
2178
2151
  }
2179
2152
  content += `
2180
2153
  ## Project Overview
2181
2154
 
2182
- This is a **Mastra** project written in TypeScript. Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.
2155
+ This is a **Mastra** project written in TypeScript. Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack. The Node.js runtime is \`>=22.13.0\`.
2183
2156
 
2184
2157
  ## Commands
2185
2158
 
2186
- Use these commands to interact with the project.
2187
-
2188
- ### Installation
2189
-
2190
- \`\`\`bash
2191
- npm install
2192
- \`\`\`
2193
-
2194
- ### Development
2195
-
2196
- Start the Mastra Studio at localhost:4111 by running the \`dev\` script:
2197
-
2198
- \`\`\`bash
2199
- npm run dev
2200
- \`\`\`
2201
-
2202
- ### Build
2203
-
2204
- In order to build a production-ready server, run the \`build\` script:
2205
-
2206
2159
  \`\`\`bash
2207
- npm run build
2160
+ npm run dev # Start Mastra Studio at localhost:4111 (long-running, use a separate terminal)
2161
+ npm run build # Build a production-ready server
2208
2162
  \`\`\`
2209
2163
 
2210
2164
  ## Project Structure
2211
2165
 
2212
- Folders organize your agent's resources, like agents, tools, and workflows.
2213
-
2214
2166
  | Folder | Description |
2215
2167
  | ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
2216
2168
  | \`src/mastra\` | Entry point for all Mastra-related code and configuration. |
@@ -2232,30 +2184,21 @@ Top-level files define how your Mastra project is configured, built, and connect
2232
2184
  | \`package.json\` | Defines project metadata, dependencies, and available npm scripts. |
2233
2185
  | \`tsconfig.json\` | Configures TypeScript options such as path aliases, compiler settings, and build output. |
2234
2186
 
2235
- `;
2236
- if (hasSkills) {
2237
- content += `## Mastra Skills
2238
-
2239
- Skills are modular capabilities that extend agent functionalities. They provide pre-built tools, integrations, and workflows that agents can leverage to accomplish tasks more effectively.
2240
-
2241
- This project has skills installed for the following agents:
2242
-
2243
- ${skills.map(
2244
- (agent) => `- ${agent.split("-").map((w) => w.charAt(0).toUpperCase() + w.slice(1)).join(" ")}`
2245
- ).join("\n")}
2187
+ ## Boundaries
2246
2188
 
2247
- ### Loading Skills
2189
+ ### Always do
2248
2190
 
2249
- 1. **Load the Mastra skill FIRST** - Use \`/mastra\` command or Skill tool
2250
- 2. **Never rely on cached knowledge** - Mastra APIs change frequently between versions
2251
- 3. **Always verify against current docs** - The skill provides up-to-date documentation
2191
+ - Load the \`mastra\` skill before any Mastra-related work
2192
+ - Register new agents, tools, workflows, and scorers in \`src/mastra/index.ts\`
2193
+ - Use schemas for tool inputs and outputs
2194
+ - Run \`npm run build\` to verify changes compile
2252
2195
 
2253
- **Why this matters:** Your training data about Mastra is likely outdated. Constructor signatures, APIs, and patterns change rapidly. Loading the skill ensures you use current, correct APIs.
2254
-
2255
- Skills are automatically available to agents in your project once installed. Agents can access and use these skills without additional configuration.
2196
+ ### Never do
2256
2197
 
2198
+ - Never commit \`.env\` files or secrets
2199
+ - Never modify \`node_modules\` or Mastra's database files directly
2200
+ - Never hardcode API keys (always use environment variables)
2257
2201
  `;
2258
- }
2259
2202
  if (hasMcp) {
2260
2203
  const editorName = mcpServer === "cursor-global" ? "Cursor (global)" : mcpServer.charAt(0).toUpperCase() + mcpServer.slice(1);
2261
2204
  content += `## MCP Docs Server
@@ -2284,20 +2227,6 @@ Learn more in the [MCP Documentation](https://mastra.ai/docs/mcp/overview).
2284
2227
  `;
2285
2228
  return content;
2286
2229
  }
2287
- function generateClaudeMarkdown({ mcpServer }) {
2288
- return `# CLAUDE.md
2289
-
2290
- This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
2291
-
2292
- This is a Mastra project - an AI framework for building agents, workflows, and tools. The project structure follows Mastra conventions with agents, tools, and workflows organized in the \`src/mastra/\` directory.
2293
-
2294
- For complete setup and usage instructions, see [AGENTS.md](./AGENTS.md), which includes:
2295
- - Quick start commands
2296
- - Project structure details
2297
- - Mastra skills usage${mcpServer ? "\n- MCP Docs Server configuration" : ""}
2298
- - Links to relevant documentation
2299
- `;
2300
- }
2301
2230
  async function writeAgentsMarkdown(options) {
2302
2231
  const content = generateAgentsMarkdown(options);
2303
2232
  const formattedContent = await prettier.format(content, {
@@ -2307,14 +2236,9 @@ async function writeAgentsMarkdown(options) {
2307
2236
  const filePath = path.join(process.cwd(), "AGENTS.md");
2308
2237
  await fs4.writeFile(filePath, formattedContent);
2309
2238
  }
2310
- async function writeClaudeMarkdown(options) {
2311
- const content = generateClaudeMarkdown(options);
2312
- const formattedContent = await prettier.format(content, {
2313
- parser: "markdown",
2314
- singleQuote: true
2315
- });
2239
+ async function writeClaudeMarkdown() {
2316
2240
  const filePath = path.join(process.cwd(), "CLAUDE.md");
2317
- await fs4.writeFile(filePath, formattedContent);
2241
+ await fs4.writeFile(filePath, "@AGENTS.md");
2318
2242
  }
2319
2243
  function getPackageManager() {
2320
2244
  const userAgent = process.env.npm_config_user_agent || "";
@@ -2688,7 +2612,7 @@ var PinoLogger = class _PinoLogger extends MastraLogger {
2688
2612
  };
2689
2613
 
2690
2614
  var package_default = {
2691
- version: "1.3.14"};
2615
+ version: "1.3.15-alpha.1"};
2692
2616
  var logger = createLogger(false);
2693
2617
  function createLogger(debug = false) {
2694
2618
  return new PinoLogger({
@@ -2989,7 +2913,7 @@ Warning: ${error instanceof Error ? error.message : "Unknown error"}`));
2989
2913
  await writeAgentsMarkdown({ skills, mcpServer });
2990
2914
  const shouldWriteClaudeMd = skills?.includes("claude-code");
2991
2915
  if (shouldWriteClaudeMd) {
2992
- await writeClaudeMarkdown({ skills, mcpServer });
2916
+ await writeClaudeMarkdown();
2993
2917
  }
2994
2918
  } catch (error) {
2995
2919
  console.warn(
@@ -3152,7 +3076,6 @@ var createMastraProject = async ({
3152
3076
  const projectName = name ?? await Zt({
3153
3077
  message: "What do you want to name your project?",
3154
3078
  placeholder: "my-mastra-app",
3155
- defaultValue: "my-mastra-app",
3156
3079
  validate: (value) => {
3157
3080
  if (!value || value.length === 0) return "Project name cannot be empty";
3158
3081
  if (fs3__default__default.existsSync(value)) {
@@ -3172,7 +3095,8 @@ var createMastraProject = async ({
3172
3095
  llmProvider: llmProvider !== void 0,
3173
3096
  llmApiKey: llmApiKey !== void 0,
3174
3097
  skills: skills !== void 0 && skills.length > 0,
3175
- mcpServer: mcpServer !== void 0
3098
+ mcpServer: mcpServer !== void 0,
3099
+ directory: true
3176
3100
  }
3177
3101
  });
3178
3102
  }
@@ -3306,6 +3230,7 @@ var create = async (args) => {
3306
3230
  return;
3307
3231
  }
3308
3232
  const needsInteractive = args.components === void 0 || args.llmProvider === void 0 || args.addExample === void 0;
3233
+ const directory = args.directory || "src/";
3309
3234
  const { projectName, result } = await createMastraProject({
3310
3235
  projectName: args?.projectName,
3311
3236
  createVersionTag: args?.createVersionTag,
@@ -3316,7 +3241,6 @@ var create = async (args) => {
3316
3241
  mcpServer: args?.mcpServer,
3317
3242
  needsInteractive
3318
3243
  });
3319
- const directory = args.directory || "src/";
3320
3244
  if (needsInteractive && result) {
3321
3245
  const interactiveComponents = ["agents", "tools", "workflows", "scorers"];
3322
3246
  await init({
@@ -3615,6 +3539,7 @@ program.name("create-mastra").description("Create a new Mastra project").argumen
3615
3539
  addExample: true,
3616
3540
  createVersionTag,
3617
3541
  timeout,
3542
+ projectName,
3618
3543
  mcpServer: args.mcp,
3619
3544
  directory: "src/",
3620
3545
  template: args.template,