@doubao-dev/cli 1.0.0-legacy-rc.13 → 1.0.0-legacy-rc.15
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/dist/1349~0.js +2 -2
- package/dist/1453.js +2 -2
- package/dist/1499~0.js +13 -0
- package/dist/1547~0.js +29 -0
- package/dist/351.js +1 -1
- package/dist/4569~0.js +1 -0
- package/dist/4946.js +3 -3
- package/dist/5085~0.js +1 -1
- package/dist/5329~0.js +98 -0
- package/dist/{5792~0.js.LICENSE.txt → 5329~0.js.LICENSE.txt} +40 -0
- package/dist/5343~0.js +1 -1
- package/dist/5641~0.js +2 -2
- package/dist/5725~0.js +1 -1
- package/dist/678~0.js +1 -1
- package/dist/8352~0.js +1 -0
- package/dist/8652~0.js +5 -5
- package/dist/9652~0.js +1 -0
- package/dist/@inquirer/select.js +1 -1
- package/dist/app.js +1 -1
- package/dist/build.js +4 -4
- package/dist/business-template-personal-information.js +1 -1
- package/dist/check.js +2 -2
- package/dist/components-loader.js +1 -1
- package/dist/demo-server.js +1 -1
- package/dist/demo.js +1 -1
- package/dist/dev-service-client.js +1 -1
- package/dist/dev-shell.js +1 -1
- package/dist/dev.js +7 -12
- package/dist/dev2.js +4 -33
- package/dist/dist.js +1 -1
- package/dist/dist~1.js +1 -1
- package/dist/info.js +2 -2
- package/dist/init.js +4 -4
- package/dist/inquirer.js +1 -1
- package/dist/login.js +2 -2
- package/dist/main.js +1 -1
- package/dist/manifest-headers.js +1 -1
- package/dist/mcp-bridge.js +1 -1
- package/dist/ora.js +3 -3
- package/dist/sandbox.js +1 -1
- package/dist/sdk.js +37 -37
- package/dist/skills.js +1 -1
- package/dist/skills~1.js +1 -1
- package/dist/status.js +1 -1
- package/dist/stop.js +1 -1
- package/dist/sync.js +1 -1
- package/dist/yaml.js +1 -1
- package/package.json +5 -5
- package/dist/4970~0.js +0 -5
- package/dist/5792~0.js +0 -30
- package/dist/6179~0.js +0 -25
- package/dist/6611~0.js +0 -34
- package/dist/6686~0.js +0 -1
- package/dist/8348~0.js +0 -1
- package/dist/9966~0.js +0 -15
- package/dist/9966~0.js.LICENSE.txt +0 -39
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.development.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @license React
|
|
13
|
+
* react-jsx-runtime.production.js
|
|
14
|
+
*
|
|
15
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
16
|
+
*
|
|
17
|
+
* This source code is licensed under the MIT license found in the
|
|
18
|
+
* LICENSE file in the root directory of this source tree.
|
|
19
|
+
*/
|
|
20
|
+
|
|
1
21
|
/**
|
|
2
22
|
* @license React
|
|
3
23
|
* react-reconciler-constants.development.js
|
|
@@ -38,6 +58,26 @@
|
|
|
38
58
|
* LICENSE file in the root directory of this source tree.
|
|
39
59
|
*/
|
|
40
60
|
|
|
61
|
+
/**
|
|
62
|
+
* @license React
|
|
63
|
+
* react.development.js
|
|
64
|
+
*
|
|
65
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the MIT license found in the
|
|
68
|
+
* LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @license React
|
|
73
|
+
* react.production.js
|
|
74
|
+
*
|
|
75
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
76
|
+
*
|
|
77
|
+
* This source code is licensed under the MIT license found in the
|
|
78
|
+
* LICENSE file in the root directory of this source tree.
|
|
79
|
+
*/
|
|
80
|
+
|
|
41
81
|
/**
|
|
42
82
|
* @license React
|
|
43
83
|
* scheduler.development.js
|
package/dist/5343~0.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"node:module";import{__webpack_require__ as e}from"./rslib-runtime~0.js";import"./
|
|
1
|
+
import"node:module";import{__webpack_require__ as e}from"./rslib-runtime~0.js";import"./4569~0.js";import{ValidationError as t,makeTheme as i,useState as l,isSpaceKey as r,useKeypress as d,createPrompt as s,isUpKey as n,useMemo as c,dist as a,isEnterKey as o,usePagination as h,usePrefix as u,isNumberKey as p,Separator as m,isDownKey as f}from"./5641~0.js";let b=e("node:util"),k={icon:{checked:(0,b.styleText)("green",a.circleFilled),unchecked:a.circle,cursor:a.pointer,disabledChecked:(0,b.styleText)("green",a.circleDouble),disabledUnchecked:"-"},style:{disabled:e=>(0,b.styleText)("dim",e),renderSelectedChoices:e=>e.map(e=>e.short).join(", "),description:e=>(0,b.styleText)("cyan",e),keysHelpTip:e=>e.map(([e,t])=>`${(0,b.styleText)("bold",e)} ${(0,b.styleText)("dim",t)}`).join((0,b.styleText)("dim"," • "))},i18n:{disabledError:"This option is disabled and cannot be toggled."}};function y(e){return!m.isSeparator(e)&&!e.disabled}function S(e){return!m.isSeparator(e)}function v(e){return!m.isSeparator(e)&&e.checked}function g(e){return y(e)?{...e,checked:!e.checked}:e}let _=s((e,s)=>{let a,{pageSize:b=7,loop:_=!0,required:x,validate:$=()=>!0}=e,C={all:"a",invert:"i",...e.shortcuts},T=i(k,e.theme),{keybindings:N}=T,[j,E]=l("idle"),K=u({status:j,theme:T}),[w,A]=l(e.choices.map(e=>{if(m.isSeparator(e))return e;if("object"!=typeof e||null===e||!("value"in e)){let t=String(e);return{value:e,name:t,short:t,checkedName:t,disabled:!1,checked:!1}}let t=e.name??String(e.value),i={value:e.value,name:t,short:e.short??t,checkedName:e.checkedName??t,disabled:e.disabled??!1,checked:e.checked??!1};return e.description&&(i.description=e.description),i})),H=c(()=>{let e=w.findIndex(S),i=w.findLastIndex(S);if(-1===e)throw new t("[checkbox prompt] No selectable choices. All choices are disabled.");return{first:e,last:i}},[w]),[U,I]=l(H.first),[B,M]=l();d(async e=>{if(o(e)){let e=w.filter(v),t=await $([...e]);x&&!e.length?M("At least one choice must be selected"):!0===t?(E("done"),s(e.map(e=>e.value))):M(t||"You must select a valid value")}else if(n(e,N)||f(e,N)){if(B&&M(void 0),_||n(e,N)&&U!==H.first||f(e,N)&&U!==H.last){let t=n(e,N)?-1:1,i=U;do i=(i+t+w.length)%w.length;while(!S(w[i]));I(i)}}else if(r(e)){let e=w[U];e&&!m.isSeparator(e)&&(e.disabled?M(T.i18n.disabledError):(M(void 0),A(w.map((e,t)=>t===U?g(e):e))))}else if(e.name===C.all){let e=w.some(e=>y(e)&&!e.checked);A(w.map(function(t){return y(t)?{...t,checked:e}:t}))}else if(e.name===C.invert)A(w.map(g));else if(p(e)){let t=Number(e.name)-1,i=-1,l=w.findIndex(e=>!m.isSeparator(e)&&++i===t),r=w[l];r&&y(r)&&(I(l),A(w.map((e,t)=>t===l?g(e):e)))}});let P=T.style.message(e.message,j),R=h({items:w,active:U,renderItem({item:e,isActive:t}){if(m.isSeparator(e))return` ${e.separator}`;let i=t?T.icon.cursor:" ";if(e.disabled){let t="string"==typeof e.disabled?e.disabled:"(disabled)",l=e.checked?T.icon.disabledChecked:T.icon.disabledUnchecked;return T.style.disabled(`${i}${l} ${e.name} ${t}`)}t&&(a=e.description);let l=e.checked?T.icon.checked:T.icon.unchecked,r=e.checked?e.checkedName:e.name;return(t?T.style.highlight:e=>e)(`${i}${l} ${r}`)},pageSize:b,loop:_});if("done"===j){let e=w.filter(v);return[K,P,T.style.answer(T.style.renderSelectedChoices(e,w))].filter(Boolean).join(" ")}let D=[["↑↓","navigate"],["space","select"]];C.all&&D.push([C.all,"all"]),C.invert&&D.push([C.invert,"invert"]),D.push(["⏎","submit"]);let F=T.style.keysHelpTip(D),L=[[K,P].filter(Boolean).join(" "),R," ",a?T.style.description(a):"",B?T.style.error(B):"",F].filter(Boolean).join("\n").trimEnd();return`${L}\u001b[?25l`});export{_ as dist};
|
package/dist/5641~0.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
let e;import"node:module";import{__webpack_require__ as t}from"./rslib-runtime~0.js";import{external_node_process_namespaceObject as i,external_node_readline_namespaceObject as l}from"./6686~0.js";import"./8348~0.js";import{onExit as n}from"./4970~0.js";import"./7896~0.js";t.add({"../../../node_modules/.pnpm/cli-width@4.1.0/node_modules/cli-width/index.js"(e,t,i){e.exports=function(e){let t,l=(t={defaultWidth:0,output:process.stdout,tty:i("tty")},e?(Object.keys(t).forEach(function(i){e[i]||(e[i]=t[i])}),e):t);if(l.output.getWindowSize)return l.output.getWindowSize()[0]||l.defaultWidth;if(l.tty.getWindowSize)return l.tty.getWindowSize()[1]||l.defaultWidth;if(l.output.columns)return l.output.columns;if(process.env.CLI_WIDTH){let e=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(e)&&0!==e)return e}return l.defaultWidth}},"../../../node_modules/.pnpm/mute-stream@3.0.0/node_modules/mute-stream/lib/index.js"(e,t,i){let l=i("stream");e.exports=class extends l{#e=null;constructor(e={}){super(e),this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=e.replace,this._prompt=e.prompt||null,this._hadControl=!1}#t(e,t){return this._dest?this._dest[e]:this._src?this._src[e]:t}#i(e,...t){"function"==typeof this._dest?.[e]&&this._dest[e](...t),"function"==typeof this._src?.[e]&&this._src[e](...t)}get isTTY(){return null!==this.#e?this.#e:this.#t("isTTY",!1)}set isTTY(e){this.#e=e}get rows(){return this.#t("rows")}get columns(){return this.#t("columns")}mute(){this.muted=!0}unmute(){this.muted=!1}_onpipe(e){this._src=e}pipe(e,t){return this._dest=e,super.pipe(e,t)}pause(){if(this._src)return this._src.pause()}resume(){if(this._src)return this._src.resume()}write(e){if(this.muted){if(!this.replace)return!0;if(e.match(/^\u001b/))return 0===e.indexOf(this._prompt)&&(e=(e=e.slice(this._prompt.length)).replace(/./g,this.replace),e=this._prompt+e),this._hadControl=!0,this.emit("data",e);this._prompt&&this._hadControl&&0===e.indexOf(this._prompt)&&(this._hadControl=!1,this.emit("data",this._prompt),e=e.slice(this._prompt.length)),e=e.toString().replace(/./g,this.replace)}this.emit("data",e)}end(e){this.muted&&(e=e&&this.replace?e.toString().replace(/./g,this.replace):null),e&&this.emit("data",e),this.emit("end")}destroy(...e){return this.#i("destroy",...e)}destroySoon(...e){return this.#i("destroySoon",...e)}close(...e){return this.#i("close",...e)}}}});let o={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"█",squareDarkShade:"▓",squareMediumShade:"▒",squareLightShade:"░",squareTop:"▀",squareBottom:"▄",squareLeft:"▌",squareRight:"▐",squareCenter:"■",bullet:"●",dot:"․",ellipsis:"…",pointerSmall:"›",triangleUp:"▲",triangleUpSmall:"▴",triangleDown:"▼",triangleDownSmall:"▾",triangleLeftSmall:"◂",triangleRightSmall:"▸",home:"⌂",heart:"♥",musicNote:"♪",musicNoteBeamed:"♫",arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",arrowLeftRight:"↔",arrowUpDown:"↕",almostEqual:"≈",notEqual:"≠",lessOrEqual:"≤",greaterOrEqual:"≥",identical:"≡",infinity:"∞",subscriptZero:"₀",subscriptOne:"₁",subscriptTwo:"₂",subscriptThree:"₃",subscriptFour:"₄",subscriptFive:"₅",subscriptSix:"₆",subscriptSeven:"₇",subscriptEight:"₈",subscriptNine:"₉",oneHalf:"\xbd",oneThird:"⅓",oneQuarter:"\xbc",oneFifth:"⅕",oneSixth:"⅙",oneEighth:"⅛",twoThirds:"⅔",twoFifths:"⅖",threeQuarters:"\xbe",threeFifths:"⅗",threeEighths:"⅜",fourFifths:"⅘",fiveSixths:"⅚",fiveEighths:"⅝",sevenEighths:"⅞",line:"─",lineBold:"━",lineDouble:"═",lineDashed0:"┄",lineDashed1:"┅",lineDashed2:"┈",lineDashed3:"┉",lineDashed4:"╌",lineDashed5:"╍",lineDashed6:"╴",lineDashed7:"╶",lineDashed8:"╸",lineDashed9:"╺",lineDashed10:"╼",lineDashed11:"╾",lineDashed12:"−",lineDashed13:"–",lineDashed14:"‐",lineDashed15:"⁃",lineVertical:"│",lineVerticalBold:"┃",lineVerticalDouble:"║",lineVerticalDashed0:"┆",lineVerticalDashed1:"┇",lineVerticalDashed2:"┊",lineVerticalDashed3:"┋",lineVerticalDashed4:"╎",lineVerticalDashed5:"╏",lineVerticalDashed6:"╵",lineVerticalDashed7:"╷",lineVerticalDashed8:"╹",lineVerticalDashed9:"╻",lineVerticalDashed10:"╽",lineVerticalDashed11:"╿",lineDownLeft:"┐",lineDownLeftArc:"╮",lineDownBoldLeftBold:"┓",lineDownBoldLeft:"┒",lineDownLeftBold:"┑",lineDownDoubleLeftDouble:"╗",lineDownDoubleLeft:"╖",lineDownLeftDouble:"╕",lineDownRight:"┌",lineDownRightArc:"╭",lineDownBoldRightBold:"┏",lineDownBoldRight:"┎",lineDownRightBold:"┍",lineDownDoubleRightDouble:"╔",lineDownDoubleRight:"╓",lineDownRightDouble:"╒",lineUpLeft:"┘",lineUpLeftArc:"╯",lineUpBoldLeftBold:"┛",lineUpBoldLeft:"┚",lineUpLeftBold:"┙",lineUpDoubleLeftDouble:"╝",lineUpDoubleLeft:"╜",lineUpLeftDouble:"╛",lineUpRight:"└",lineUpRightArc:"╰",lineUpBoldRightBold:"┗",lineUpBoldRight:"┖",lineUpRightBold:"┕",lineUpDoubleRightDouble:"╚",lineUpDoubleRight:"╙",lineUpRightDouble:"╘",lineUpDownLeft:"┤",lineUpBoldDownBoldLeftBold:"┫",lineUpBoldDownBoldLeft:"┨",lineUpDownLeftBold:"┥",lineUpBoldDownLeftBold:"┩",lineUpDownBoldLeftBold:"┪",lineUpDownBoldLeft:"┧",lineUpBoldDownLeft:"┦",lineUpDoubleDownDoubleLeftDouble:"╣",lineUpDoubleDownDoubleLeft:"╢",lineUpDownLeftDouble:"╡",lineUpDownRight:"├",lineUpBoldDownBoldRightBold:"┣",lineUpBoldDownBoldRight:"┠",lineUpDownRightBold:"┝",lineUpBoldDownRightBold:"┡",lineUpDownBoldRightBold:"┢",lineUpDownBoldRight:"┟",lineUpBoldDownRight:"┞",lineUpDoubleDownDoubleRightDouble:"╠",lineUpDoubleDownDoubleRight:"╟",lineUpDownRightDouble:"╞",lineDownLeftRight:"┬",lineDownBoldLeftBoldRightBold:"┳",lineDownLeftBoldRightBold:"┯",lineDownBoldLeftRight:"┰",lineDownBoldLeftBoldRight:"┱",lineDownBoldLeftRightBold:"┲",lineDownLeftRightBold:"┮",lineDownLeftBoldRight:"┭",lineDownDoubleLeftDoubleRightDouble:"╦",lineDownDoubleLeftRight:"╥",lineDownLeftDoubleRightDouble:"╤",lineUpLeftRight:"┴",lineUpBoldLeftBoldRightBold:"┻",lineUpLeftBoldRightBold:"┷",lineUpBoldLeftRight:"┸",lineUpBoldLeftBoldRight:"┹",lineUpBoldLeftRightBold:"┺",lineUpLeftRightBold:"┶",lineUpLeftBoldRight:"┵",lineUpDoubleLeftDoubleRightDouble:"╩",lineUpDoubleLeftRight:"╨",lineUpLeftDoubleRightDouble:"╧",lineUpDownLeftRight:"┼",lineUpBoldDownBoldLeftBoldRightBold:"╋",lineUpDownBoldLeftBoldRightBold:"╈",lineUpBoldDownLeftBoldRightBold:"╇",lineUpBoldDownBoldLeftRightBold:"╊",lineUpBoldDownBoldLeftBoldRight:"╉",lineUpBoldDownLeftRight:"╀",lineUpDownBoldLeftRight:"╁",lineUpDownLeftBoldRight:"┽",lineUpDownLeftRightBold:"┾",lineUpBoldDownBoldLeftRight:"╂",lineUpDownLeftBoldRightBold:"┿",lineUpBoldDownLeftBoldRight:"╃",lineUpBoldDownLeftRightBold:"╄",lineUpDownBoldLeftBoldRight:"╅",lineUpDownBoldLeftRightBold:"╆",lineUpDoubleDownDoubleLeftDoubleRightDouble:"╬",lineUpDoubleDownDoubleLeftRight:"╫",lineUpDownLeftDoubleRightDouble:"╪",lineCross:"╳",lineBackslash:"╲",lineSlash:"╱"},r={tick:"✔",info:"ℹ",warning:"⚠",cross:"✘",squareSmall:"◻",squareSmallFilled:"◼",circle:"◯",circleFilled:"◉",circleDotted:"◌",circleDouble:"◎",circleCircle:"ⓞ",circleCross:"ⓧ",circlePipe:"Ⓘ",radioOn:"◉",radioOff:"◯",checkboxOn:"☒",checkboxOff:"☐",checkboxCircleOn:"ⓧ",checkboxCircleOff:"Ⓘ",pointer:"❯",triangleUpOutline:"△",triangleLeft:"◀",triangleRight:"▶",lozenge:"◆",lozengeOutline:"◇",hamburger:"☰",smiley:"㋡",mustache:"෴",star:"★",play:"▶",nodejs:"⬢",oneSeventh:"⅐",oneNinth:"⅑",oneTenth:"⅒"},s={...o,...r},a={...o,tick:"√",info:"i",warning:"‼",cross:"\xd7",squareSmall:"□",squareSmallFilled:"■",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(○)",circleCross:"(\xd7)",circlePipe:"(│)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xd7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xd7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"∆",triangleLeft:"◄",triangleRight:"►",lozenge:"♦",lozengeOutline:"◊",hamburger:"≡",smiley:"☺",mustache:"┌─┐",star:"✶",play:"►",nodejs:"♦",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},u=(i.platform.startsWith("win")?!i.env.CI&&!i.env.WT_SESSION&&!i.env.TERMINUS_SUBLIME&&"{cmd::Cmder}"!==i.env.ConEmuTask&&"Terminus-Sublime"!==i.env.TERM_PROGRAM&&"vscode"!==i.env.TERM_PROGRAM&&"xterm-256color"!==i.env.TERM&&"alacritty"!==i.env.TERM&&"JetBrains-JediTerm"!==i.env.TERMINAL_EMULATOR:"linux"===i.env.TERM)?a:s;Object.entries(r);let h=t("node:util");class d{separator=(0,h.styleText)("dim",Array.from({length:15}).join(u.line));type="separator";constructor(e){e&&(this.separator=e)}static isSeparator(e){return!!(e&&"object"==typeof e&&"type"in e&&"separator"===e.type)}}let c=(e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,t=>{let i=0;for(e.lastIndex=0;e.test(t);)i+=1;return t.length-i}),p=e=>12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510,f=e=>8987===e||9001===e||e>=12272&&e<=12287||e>=12289&&e<=12350||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>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e>=131072&&e<=196605||e>=196608&&e<=262141,g=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]|\u001b\]8;[^;]*;.*?(?:\u0007|\u001b\u005c)/y,m=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,D=/(?:(?![\uFF61-\uFF9F\uFF00-\uFFEF])[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Tangut}]){1,1000}/yu,w=/\t{1,1000}/y,b=/[\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,B=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,R=/\p{M}+/gu,L={limit:1/0,ellipsis:""},x=(e,t={},i={})=>{let l=t.limit??1/0,n=t.ellipsis??"",o=t?.ellipsisWidth??(n?x(n,L,i).width:0),r=i.controlWidth??0,s=i.tabWidth??8,a=i.emojiWidth??2,u=i.regularWidth??1,h=i.wideWidth??2,d=[[B,u],[g,0],[m,r],[w,s],[b,a],[D,h]],y=0,U=0,E=e.length,_=0,S=!1,T=E,v=Math.max(0,l-o),k=0,C=0,P=0,F=0;e:for(;;){if(C>k||U>=E&&U>y){for(let t of(_=0,(e.slice(k,C)||e.slice(y,U)).replaceAll(R,""))){let e=t.codePointAt(0)||0;if(P+(F=p(e)?2:f(e)?h:u)>v&&(T=Math.min(T,Math.max(k,y)+_)),P+F>l){S=!0;break e}_+=t.length,P+=F}k=C=0}if(U>=E)break;for(let t=0,i=d.length;t<i;t++){let[i,n]=d[t];if(i.lastIndex=U,i.test(e)){if(P+(F=(_=i===D?c(e.slice(U,i.lastIndex)):i===b?1:i.lastIndex-U)*n)>v&&(T=Math.min(T,U+Math.floor((v-P)/n))),P+F>l){S=!0;break e}P+=F,k=y,C=U,U=y=i.lastIndex;continue e}}U+=1}return{width:S?v:P,index:S?T:E,truncated:S,ellipsed:S&&l>=o}},y={limit:1/0,ellipsis:"",ellipsisWidth:0},U=(e,t={})=>x(e,y,t).width,E="]8;;",_=RegExp(`(?:\\[(?<code>\\d+)m|\\${E}(?<uri>.*)\u0007)`,"y"),S=e=>e>=30&&e<=37||e>=90&&e<=97?39:e>=40&&e<=47||e>=100&&e<=107?49:1===e||2===e?22:3===e?23:4===e?24:7===e?27:8===e?28:9===e?29:0===e?0:void 0,T=e=>`\x1b[${e}m`,v=e=>`\x1b${E}${e}\u0007`,k=(e,t,i)=>{let l=t[Symbol.iterator](),n=!1,o=!1,r=e.at(-1),s=void 0===r?0:U(r),a=l.next(),u=l.next(),h=0;for(;!a.done;){let r=a.value,d=U(r);s+d<=i?e[e.length-1]+=r:(e.push(r),s=0),("\x1b"===r||"\x9b"===r)&&(n=!0,o=t.startsWith(E,h+1)),n?o?"\x07"===r&&(n=!1,o=!1):"m"===r&&(n=!1):(s+=d)!==i||u.done||(e.push(""),s=0),a=u,u=l.next(),h+=r.length}r=e.at(-1),!s&&void 0!==r&&r.length&&e.length>1&&(e[e.length-2]+=e.pop())},C=/\r?\n/;class P extends Error{name="AbortPromptError";message="Prompt was aborted";constructor(e){super(),this.cause=e?.cause}}class F extends Error{name="CancelPromptError";message="Prompt was canceled"}class M extends Error{name="ExitPromptError"}class A extends Error{name="HookError"}class O extends Error{name="ValidationError"}let j=t("node:async_hooks"),I=new j.AsyncLocalStorage;function N(){let e=I.getStore();if(!e)throw new A("[Inquirer] Hook functions can only be called from within a prompt");return e}function W(e){return j.AsyncResource.bind((...t)=>{let i=N(),l=!1,n=i.handleChange;i.handleChange=()=>{l=!0};let o=e(...t);return l&&n(),i.handleChange=n,o})}function q(e){let t=N(),{index:i}=t,l=e({get:()=>t.hooks[i],set(e){t.hooks[i]=e},initialized:i in t.hooks});return t.index++,l}let K={queue(e){let t=N(),{index:i}=t;t.hooksEffect.push(()=>{t.hooksCleanup[i]?.();let l=e(N().rl);if(null!=l&&"function"!=typeof l)throw new O("useEffect return value must be a cleanup function or nothing.");t.hooksCleanup[i]=l})},run(){let e=N();W(()=>{e.hooksEffect.forEach(e=>{e()}),e.hooksEffect.length=0})()},clearAll(){let e=N();e.hooksCleanup.forEach(e=>{e?.()}),e.hooksEffect.length=0,e.hooksCleanup.length=0}},V=t("../../../node_modules/.pnpm/cli-width@4.1.0/node_modules/cli-width/index.js");function $(e,t){return e.split("\n").flatMap(e=>{var i;return(i={trim:!1,wordWrap:!1},String(e).normalize().split(C).map(e=>((e,t,i={})=>{let l,n;if(!1!==i.trim&&""===e.trim())return"";let o="",r=e.split(" "),s=[""],a=0;for(let e=0;e<r.length;e++){let l=r[e];if(!1!==i.trim){let e=s.at(-1)??"",t=e.trimStart();e.length!==t.length&&(s[s.length-1]=t,a=U(t))}0!==e&&(a>=t&&(!1===i.wordWrap||!1===i.trim)&&(s.push(""),a=0),(a||!1===i.trim)&&(s[s.length-1]+=" ",a++));let n=U(l);if(i.hard&&n>t){let e=1+Math.floor((n-(t-a)-1)/t);Math.floor((n-1)/t)<e&&s.push(""),k(s,l,t),a=U(s.at(-1)??"");continue}if(a+n>t&&a&&n){if(!1===i.wordWrap&&a<t){k(s,l,t),a=U(s.at(-1)??"");continue}s.push(""),a=0}if(a+n>t&&!1===i.wordWrap){k(s,l,t),a=U(s.at(-1)??"");continue}s[s.length-1]+=l,a+=n}!1!==i.trim&&(s=s.map(e=>(e=>{let t=e.split(" "),i=t.length;for(;i&&!U(t[i-1]);)i--;return i===t.length?e:t.slice(0,i).join(" ")+t.slice(i).join("")})(e)));let u=s.join("\n"),h=!1;for(let e=0;e<u.length;e++){let t=u[e];if(o+=t,h)h=!1;else if(h=t>="\uD800"&&t<="\uDBFF")continue;if("\x1b"===t||"\x9b"===t){_.lastIndex=e+1;let t=_.exec(u),i=t?.groups;if(i?.code!==void 0){let e=Number.parseFloat(i.code);l=39===e?void 0:e}else i?.uri!==void 0&&(n=0===i.uri.length?void 0:i.uri)}if("\n"===u[e+1]){n&&(o+=v(""));let e=l?S(l):void 0;l&&e&&(o+=T(e))}else"\n"===t&&(l&&S(l)&&(o+=T(l)),n&&(o+=v(n)))}return o})(e,t,i)).join("\n")).split("\n").map(e=>e.trimEnd())}).join("\n")}function H(){return V({defaultWidth:80,output:N().rl.output})}let z=(e=1)=>e>0?`\u001B[${e}A`:"",G=(e=1)=>e>0?`\u001B[${e}B`:"",Y=(e,t)=>"number"!=typeof t||Number.isNaN(t)?`\u001B[${e+1}G`:`\u001B[${t+1};${e+1}H`,Q="\x1b[2K",J=e=>e>0?(Q+z(1)).repeat(e-1)+Q+"\x1b[G":"";class Z{height=0;extraLinesUnderPrompt=0;cursorPos;rl;constructor(e){this.rl=e,this.cursorPos=e.getCursorPos()}write(e){this.rl.output.unmute(),this.rl.output.write(e),this.rl.output.mute()}render(e,t=""){let i=e.split("\n").pop()??"",l=(0,h.stripVTControlCharacters)(i),n=l;this.rl.line.length>0&&(n=n.slice(0,-this.rl.line.length)),this.rl.setPrompt(n),this.cursorPos=this.rl.getCursorPos();let o=H();e=$(e,o),t=$(t,o),l.length%o==0&&(e+="\n");let r=e+(t?"\n"+t:""),s=Math.floor(l.length/o)-this.cursorPos.rows+(t?t.split("\n").length:0);s>0&&(r+=z(s)),r+=Y(this.cursorPos.cols),this.write(G(this.extraLinesUnderPrompt)+J(this.height)+r),this.extraLinesUnderPrompt=s,this.height=r.split("\n").length}checkCursorPos(){let e=this.rl.getCursorPos();e.cols!==this.cursorPos.cols&&(this.write(Y(e.cols)),this.cursorPos=e)}done({clearContent:e}){this.rl.setPrompt("");let t=G(this.extraLinesUnderPrompt);t+=e?J(this.height):"\n",t+="\x1b[G",t+="\x1b[?25h",this.write(t),this.rl.close()}}class X extends Promise{static withResolver(){let e,t;return{promise:new Promise((i,l)=>{e=i,t=l}),resolve:e,reject:t}}}let ee=t("../../../node_modules/.pnpm/mute-stream@3.0.0/node_modules/mute-stream/lib/index.js"),et=t("node:path"),ei=globalThis.setImmediate;function el(e){let t=function(){let e=Error.prepareStackTrace,t=[];try{Error.prepareStackTrace=(e,i)=>{let l=i.slice(1);return t=l,l},Error().stack}catch{return t}return Error.prepareStackTrace=e,t}();return(i,o={})=>{let{input:r=process.stdin,signal:s}=o,a=new Set,u=new ee;u.pipe(o.output??process.stdout);let h=l.createInterface({terminal:!0,input:r,output:u});u.mute();let d=new Z(h),{promise:c,resolve:p,reject:f}=X.withResolver(),g=()=>f(new F);if(s){let e=()=>f(new P({cause:s.reason}));if(s.aborted)return e(),Object.assign(c,{cancel:g});s.addEventListener("abort",e),a.add(()=>s.removeEventListener("abort",e))}a.add(n((e,t)=>{f(new M(`User force closed the prompt with ${e} ${t}`))}));let m=()=>f(new M("User force closed the prompt with SIGINT"));h.on("SIGINT",m),a.add(()=>h.removeListener("SIGINT",m));let D={rl:h,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}};return I.run(D,()=>{var l;let n,s;return l=function(e){D.handleChange=()=>{D.index=0,e()},D.handleChange()},n=j.AsyncResource.bind(()=>K.clearAll()),h.on("close",n),a.add(()=>h.removeListener("close",n)),s=()=>{let n=()=>d.checkCursorPos();h.input.on("keypress",n),a.add(()=>h.input.removeListener("keypress",n));let o=null;l(()=>{let l=!1;try{let n=e(i,e=>{l?p(e):o={value:e}});if(void 0===n){let e=t[1]?.getFileName();throw e&&!e.startsWith("file://")&&(e=et.resolve(e)),Error(`Prompt functions must return a string.
|
|
2
|
-
at ${e}`)}let[r,s]="string"==typeof n?[n]:n;d.render(r,s),K.run()}catch(e){f(e)}if(
|
|
1
|
+
let e;import"node:module";import{__webpack_require__ as t}from"./rslib-runtime~0.js";import"./4569~0.js";import{onExit as i,external_node_process_namespaceObject as l,external_node_readline_namespaceObject as n}from"./1547~0.js";import"./9652~0.js";import"./7896~0.js";t.add({"../../../node_modules/.pnpm/cli-width@4.1.0/node_modules/cli-width/index.js"(e,t,i){e.exports=function(e){let t,l=(t={defaultWidth:0,output:process.stdout,tty:i("tty")},e?(Object.keys(t).forEach(function(i){e[i]||(e[i]=t[i])}),e):t);if(l.output.getWindowSize)return l.output.getWindowSize()[0]||l.defaultWidth;if(l.tty.getWindowSize)return l.tty.getWindowSize()[1]||l.defaultWidth;if(l.output.columns)return l.output.columns;if(process.env.CLI_WIDTH){let e=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(e)&&0!==e)return e}return l.defaultWidth}},"../../../node_modules/.pnpm/mute-stream@3.0.0/node_modules/mute-stream/lib/index.js"(e,t,i){let l=i("stream");e.exports=class extends l{#e=null;constructor(e={}){super(e),this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=e.replace,this._prompt=e.prompt||null,this._hadControl=!1}#t(e,t){return this._dest?this._dest[e]:this._src?this._src[e]:t}#i(e,...t){"function"==typeof this._dest?.[e]&&this._dest[e](...t),"function"==typeof this._src?.[e]&&this._src[e](...t)}get isTTY(){return null!==this.#e?this.#e:this.#t("isTTY",!1)}set isTTY(e){this.#e=e}get rows(){return this.#t("rows")}get columns(){return this.#t("columns")}mute(){this.muted=!0}unmute(){this.muted=!1}_onpipe(e){this._src=e}pipe(e,t){return this._dest=e,super.pipe(e,t)}pause(){if(this._src)return this._src.pause()}resume(){if(this._src)return this._src.resume()}write(e){if(this.muted){if(!this.replace)return!0;if(e.match(/^\u001b/))return 0===e.indexOf(this._prompt)&&(e=(e=e.slice(this._prompt.length)).replace(/./g,this.replace),e=this._prompt+e),this._hadControl=!0,this.emit("data",e);this._prompt&&this._hadControl&&0===e.indexOf(this._prompt)&&(this._hadControl=!1,this.emit("data",this._prompt),e=e.slice(this._prompt.length)),e=e.toString().replace(/./g,this.replace)}this.emit("data",e)}end(e){this.muted&&(e=e&&this.replace?e.toString().replace(/./g,this.replace):null),e&&this.emit("data",e),this.emit("end")}destroy(...e){return this.#i("destroy",...e)}destroySoon(...e){return this.#i("destroySoon",...e)}close(...e){return this.#i("close",...e)}}}});let o={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"█",squareDarkShade:"▓",squareMediumShade:"▒",squareLightShade:"░",squareTop:"▀",squareBottom:"▄",squareLeft:"▌",squareRight:"▐",squareCenter:"■",bullet:"●",dot:"․",ellipsis:"…",pointerSmall:"›",triangleUp:"▲",triangleUpSmall:"▴",triangleDown:"▼",triangleDownSmall:"▾",triangleLeftSmall:"◂",triangleRightSmall:"▸",home:"⌂",heart:"♥",musicNote:"♪",musicNoteBeamed:"♫",arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",arrowLeftRight:"↔",arrowUpDown:"↕",almostEqual:"≈",notEqual:"≠",lessOrEqual:"≤",greaterOrEqual:"≥",identical:"≡",infinity:"∞",subscriptZero:"₀",subscriptOne:"₁",subscriptTwo:"₂",subscriptThree:"₃",subscriptFour:"₄",subscriptFive:"₅",subscriptSix:"₆",subscriptSeven:"₇",subscriptEight:"₈",subscriptNine:"₉",oneHalf:"\xbd",oneThird:"⅓",oneQuarter:"\xbc",oneFifth:"⅕",oneSixth:"⅙",oneEighth:"⅛",twoThirds:"⅔",twoFifths:"⅖",threeQuarters:"\xbe",threeFifths:"⅗",threeEighths:"⅜",fourFifths:"⅘",fiveSixths:"⅚",fiveEighths:"⅝",sevenEighths:"⅞",line:"─",lineBold:"━",lineDouble:"═",lineDashed0:"┄",lineDashed1:"┅",lineDashed2:"┈",lineDashed3:"┉",lineDashed4:"╌",lineDashed5:"╍",lineDashed6:"╴",lineDashed7:"╶",lineDashed8:"╸",lineDashed9:"╺",lineDashed10:"╼",lineDashed11:"╾",lineDashed12:"−",lineDashed13:"–",lineDashed14:"‐",lineDashed15:"⁃",lineVertical:"│",lineVerticalBold:"┃",lineVerticalDouble:"║",lineVerticalDashed0:"┆",lineVerticalDashed1:"┇",lineVerticalDashed2:"┊",lineVerticalDashed3:"┋",lineVerticalDashed4:"╎",lineVerticalDashed5:"╏",lineVerticalDashed6:"╵",lineVerticalDashed7:"╷",lineVerticalDashed8:"╹",lineVerticalDashed9:"╻",lineVerticalDashed10:"╽",lineVerticalDashed11:"╿",lineDownLeft:"┐",lineDownLeftArc:"╮",lineDownBoldLeftBold:"┓",lineDownBoldLeft:"┒",lineDownLeftBold:"┑",lineDownDoubleLeftDouble:"╗",lineDownDoubleLeft:"╖",lineDownLeftDouble:"╕",lineDownRight:"┌",lineDownRightArc:"╭",lineDownBoldRightBold:"┏",lineDownBoldRight:"┎",lineDownRightBold:"┍",lineDownDoubleRightDouble:"╔",lineDownDoubleRight:"╓",lineDownRightDouble:"╒",lineUpLeft:"┘",lineUpLeftArc:"╯",lineUpBoldLeftBold:"┛",lineUpBoldLeft:"┚",lineUpLeftBold:"┙",lineUpDoubleLeftDouble:"╝",lineUpDoubleLeft:"╜",lineUpLeftDouble:"╛",lineUpRight:"└",lineUpRightArc:"╰",lineUpBoldRightBold:"┗",lineUpBoldRight:"┖",lineUpRightBold:"┕",lineUpDoubleRightDouble:"╚",lineUpDoubleRight:"╙",lineUpRightDouble:"╘",lineUpDownLeft:"┤",lineUpBoldDownBoldLeftBold:"┫",lineUpBoldDownBoldLeft:"┨",lineUpDownLeftBold:"┥",lineUpBoldDownLeftBold:"┩",lineUpDownBoldLeftBold:"┪",lineUpDownBoldLeft:"┧",lineUpBoldDownLeft:"┦",lineUpDoubleDownDoubleLeftDouble:"╣",lineUpDoubleDownDoubleLeft:"╢",lineUpDownLeftDouble:"╡",lineUpDownRight:"├",lineUpBoldDownBoldRightBold:"┣",lineUpBoldDownBoldRight:"┠",lineUpDownRightBold:"┝",lineUpBoldDownRightBold:"┡",lineUpDownBoldRightBold:"┢",lineUpDownBoldRight:"┟",lineUpBoldDownRight:"┞",lineUpDoubleDownDoubleRightDouble:"╠",lineUpDoubleDownDoubleRight:"╟",lineUpDownRightDouble:"╞",lineDownLeftRight:"┬",lineDownBoldLeftBoldRightBold:"┳",lineDownLeftBoldRightBold:"┯",lineDownBoldLeftRight:"┰",lineDownBoldLeftBoldRight:"┱",lineDownBoldLeftRightBold:"┲",lineDownLeftRightBold:"┮",lineDownLeftBoldRight:"┭",lineDownDoubleLeftDoubleRightDouble:"╦",lineDownDoubleLeftRight:"╥",lineDownLeftDoubleRightDouble:"╤",lineUpLeftRight:"┴",lineUpBoldLeftBoldRightBold:"┻",lineUpLeftBoldRightBold:"┷",lineUpBoldLeftRight:"┸",lineUpBoldLeftBoldRight:"┹",lineUpBoldLeftRightBold:"┺",lineUpLeftRightBold:"┶",lineUpLeftBoldRight:"┵",lineUpDoubleLeftDoubleRightDouble:"╩",lineUpDoubleLeftRight:"╨",lineUpLeftDoubleRightDouble:"╧",lineUpDownLeftRight:"┼",lineUpBoldDownBoldLeftBoldRightBold:"╋",lineUpDownBoldLeftBoldRightBold:"╈",lineUpBoldDownLeftBoldRightBold:"╇",lineUpBoldDownBoldLeftRightBold:"╊",lineUpBoldDownBoldLeftBoldRight:"╉",lineUpBoldDownLeftRight:"╀",lineUpDownBoldLeftRight:"╁",lineUpDownLeftBoldRight:"┽",lineUpDownLeftRightBold:"┾",lineUpBoldDownBoldLeftRight:"╂",lineUpDownLeftBoldRightBold:"┿",lineUpBoldDownLeftBoldRight:"╃",lineUpBoldDownLeftRightBold:"╄",lineUpDownBoldLeftBoldRight:"╅",lineUpDownBoldLeftRightBold:"╆",lineUpDoubleDownDoubleLeftDoubleRightDouble:"╬",lineUpDoubleDownDoubleLeftRight:"╫",lineUpDownLeftDoubleRightDouble:"╪",lineCross:"╳",lineBackslash:"╲",lineSlash:"╱"},r={tick:"✔",info:"ℹ",warning:"⚠",cross:"✘",squareSmall:"◻",squareSmallFilled:"◼",circle:"◯",circleFilled:"◉",circleDotted:"◌",circleDouble:"◎",circleCircle:"ⓞ",circleCross:"ⓧ",circlePipe:"Ⓘ",radioOn:"◉",radioOff:"◯",checkboxOn:"☒",checkboxOff:"☐",checkboxCircleOn:"ⓧ",checkboxCircleOff:"Ⓘ",pointer:"❯",triangleUpOutline:"△",triangleLeft:"◀",triangleRight:"▶",lozenge:"◆",lozengeOutline:"◇",hamburger:"☰",smiley:"㋡",mustache:"෴",star:"★",play:"▶",nodejs:"⬢",oneSeventh:"⅐",oneNinth:"⅑",oneTenth:"⅒"},s={...o,...r},a={...o,tick:"√",info:"i",warning:"‼",cross:"\xd7",squareSmall:"□",squareSmallFilled:"■",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(○)",circleCross:"(\xd7)",circlePipe:"(│)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xd7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xd7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"∆",triangleLeft:"◄",triangleRight:"►",lozenge:"♦",lozengeOutline:"◊",hamburger:"≡",smiley:"☺",mustache:"┌─┐",star:"✶",play:"►",nodejs:"♦",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},u=(l.platform.startsWith("win")?!l.env.CI&&!l.env.WT_SESSION&&!l.env.TERMINUS_SUBLIME&&"{cmd::Cmder}"!==l.env.ConEmuTask&&"Terminus-Sublime"!==l.env.TERM_PROGRAM&&"vscode"!==l.env.TERM_PROGRAM&&"xterm-256color"!==l.env.TERM&&"alacritty"!==l.env.TERM&&"JetBrains-JediTerm"!==l.env.TERMINAL_EMULATOR:"linux"===l.env.TERM)?a:s;Object.entries(r);let h=t("node:util");class d{separator=(0,h.styleText)("dim",Array.from({length:15}).join(u.line));type="separator";constructor(e){e&&(this.separator=e)}static isSeparator(e){return!!(e&&"object"==typeof e&&"type"in e&&"separator"===e.type)}}let c=(e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,t=>{let i=0;for(e.lastIndex=0;e.test(t);)i+=1;return t.length-i}),p=e=>12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510,f=e=>8987===e||9001===e||e>=12272&&e<=12287||e>=12289&&e<=12350||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>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e>=131072&&e<=196605||e>=196608&&e<=262141,g=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]|\u001b\]8;[^;]*;.*?(?:\u0007|\u001b\u005c)/y,m=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,D=/(?:(?![\uFF61-\uFF9F\uFF00-\uFFEF])[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Tangut}]){1,1000}/yu,w=/\t{1,1000}/y,b=/[\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,B=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,R=/\p{M}+/gu,L={limit:1/0,ellipsis:""},x=(e,t={},i={})=>{let l=t.limit??1/0,n=t.ellipsis??"",o=t?.ellipsisWidth??(n?x(n,L,i).width:0),r=i.controlWidth??0,s=i.tabWidth??8,a=i.emojiWidth??2,u=i.regularWidth??1,h=i.wideWidth??2,d=[[B,u],[g,0],[m,r],[w,s],[b,a],[D,h]],y=0,U=0,E=e.length,_=0,S=!1,T=E,v=Math.max(0,l-o),k=0,C=0,P=0,F=0;e:for(;;){if(C>k||U>=E&&U>y){for(let t of(_=0,(e.slice(k,C)||e.slice(y,U)).replaceAll(R,""))){let e=t.codePointAt(0)||0;if(P+(F=p(e)?2:f(e)?h:u)>v&&(T=Math.min(T,Math.max(k,y)+_)),P+F>l){S=!0;break e}_+=t.length,P+=F}k=C=0}if(U>=E)break;for(let t=0,i=d.length;t<i;t++){let[i,n]=d[t];if(i.lastIndex=U,i.test(e)){if(P+(F=(_=i===D?c(e.slice(U,i.lastIndex)):i===b?1:i.lastIndex-U)*n)>v&&(T=Math.min(T,U+Math.floor((v-P)/n))),P+F>l){S=!0;break e}P+=F,k=y,C=U,U=y=i.lastIndex;continue e}}U+=1}return{width:S?v:P,index:S?T:E,truncated:S,ellipsed:S&&l>=o}},y={limit:1/0,ellipsis:"",ellipsisWidth:0},U=(e,t={})=>x(e,y,t).width,E="]8;;",_=RegExp(`(?:\\[(?<code>\\d+)m|\\${E}(?<uri>.*)\u0007)`,"y"),S=e=>e>=30&&e<=37||e>=90&&e<=97?39:e>=40&&e<=47||e>=100&&e<=107?49:1===e||2===e?22:3===e?23:4===e?24:7===e?27:8===e?28:9===e?29:0===e?0:void 0,T=e=>`\x1b[${e}m`,v=e=>`\x1b${E}${e}\u0007`,k=(e,t,i)=>{let l=t[Symbol.iterator](),n=!1,o=!1,r=e.at(-1),s=void 0===r?0:U(r),a=l.next(),u=l.next(),h=0;for(;!a.done;){let r=a.value,d=U(r);s+d<=i?e[e.length-1]+=r:(e.push(r),s=0),("\x1b"===r||"\x9b"===r)&&(n=!0,o=t.startsWith(E,h+1)),n?o?"\x07"===r&&(n=!1,o=!1):"m"===r&&(n=!1):(s+=d)!==i||u.done||(e.push(""),s=0),a=u,u=l.next(),h+=r.length}r=e.at(-1),!s&&void 0!==r&&r.length&&e.length>1&&(e[e.length-2]+=e.pop())},C=/\r?\n/;class P extends Error{name="AbortPromptError";message="Prompt was aborted";constructor(e){super(),this.cause=e?.cause}}class F extends Error{name="CancelPromptError";message="Prompt was canceled"}class M extends Error{name="ExitPromptError"}class A extends Error{name="HookError"}class O extends Error{name="ValidationError"}let j=t("node:async_hooks"),I=new j.AsyncLocalStorage;function N(){let e=I.getStore();if(!e)throw new A("[Inquirer] Hook functions can only be called from within a prompt");return e}function W(e){return j.AsyncResource.bind((...t)=>{let i=N(),l=!1,n=i.handleChange;i.handleChange=()=>{l=!0};let o=e(...t);return l&&n(),i.handleChange=n,o})}function q(e){let t=N(),{index:i}=t,l=e({get:()=>t.hooks[i],set(e){t.hooks[i]=e},initialized:i in t.hooks});return t.index++,l}let K={queue(e){let t=N(),{index:i}=t;t.hooksEffect.push(()=>{t.hooksCleanup[i]?.();let l=e(N().rl);if(null!=l&&"function"!=typeof l)throw new O("useEffect return value must be a cleanup function or nothing.");t.hooksCleanup[i]=l})},run(){let e=N();W(()=>{e.hooksEffect.forEach(e=>{e()}),e.hooksEffect.length=0})()},clearAll(){let e=N();e.hooksCleanup.forEach(e=>{e?.()}),e.hooksEffect.length=0,e.hooksCleanup.length=0}},V=t("../../../node_modules/.pnpm/cli-width@4.1.0/node_modules/cli-width/index.js");function $(e,t){return e.split("\n").flatMap(e=>{var i;return(i={trim:!1,wordWrap:!1},String(e).normalize().split(C).map(e=>((e,t,i={})=>{let l,n;if(!1!==i.trim&&""===e.trim())return"";let o="",r=e.split(" "),s=[""],a=0;for(let e=0;e<r.length;e++){let l=r[e];if(!1!==i.trim){let e=s.at(-1)??"",t=e.trimStart();e.length!==t.length&&(s[s.length-1]=t,a=U(t))}0!==e&&(a>=t&&(!1===i.wordWrap||!1===i.trim)&&(s.push(""),a=0),(a||!1===i.trim)&&(s[s.length-1]+=" ",a++));let n=U(l);if(i.hard&&n>t){let e=1+Math.floor((n-(t-a)-1)/t);Math.floor((n-1)/t)<e&&s.push(""),k(s,l,t),a=U(s.at(-1)??"");continue}if(a+n>t&&a&&n){if(!1===i.wordWrap&&a<t){k(s,l,t),a=U(s.at(-1)??"");continue}s.push(""),a=0}if(a+n>t&&!1===i.wordWrap){k(s,l,t),a=U(s.at(-1)??"");continue}s[s.length-1]+=l,a+=n}!1!==i.trim&&(s=s.map(e=>(e=>{let t=e.split(" "),i=t.length;for(;i&&!U(t[i-1]);)i--;return i===t.length?e:t.slice(0,i).join(" ")+t.slice(i).join("")})(e)));let u=s.join("\n"),h=!1;for(let e=0;e<u.length;e++){let t=u[e];if(o+=t,h)h=!1;else if(h=t>="\uD800"&&t<="\uDBFF")continue;if("\x1b"===t||"\x9b"===t){_.lastIndex=e+1;let t=_.exec(u),i=t?.groups;if(i?.code!==void 0){let e=Number.parseFloat(i.code);l=39===e?void 0:e}else i?.uri!==void 0&&(n=0===i.uri.length?void 0:i.uri)}if("\n"===u[e+1]){n&&(o+=v(""));let e=l?S(l):void 0;l&&e&&(o+=T(e))}else"\n"===t&&(l&&S(l)&&(o+=T(l)),n&&(o+=v(n)))}return o})(e,t,i)).join("\n")).split("\n").map(e=>e.trimEnd())}).join("\n")}function H(){return V({defaultWidth:80,output:N().rl.output})}let z=(e=1)=>e>0?`\u001B[${e}A`:"",G=(e=1)=>e>0?`\u001B[${e}B`:"",Y=(e,t)=>"number"!=typeof t||Number.isNaN(t)?`\u001B[${e+1}G`:`\u001B[${t+1};${e+1}H`,Q="\x1b[2K",J=e=>e>0?(Q+z(1)).repeat(e-1)+Q+"\x1b[G":"";class Z{height=0;extraLinesUnderPrompt=0;cursorPos;rl;constructor(e){this.rl=e,this.cursorPos=e.getCursorPos()}write(e){this.rl.output.unmute(),this.rl.output.write(e),this.rl.output.mute()}render(e,t=""){let i=e.split("\n").pop()??"",l=(0,h.stripVTControlCharacters)(i),n=l;this.rl.line.length>0&&(n=n.slice(0,-this.rl.line.length)),this.rl.setPrompt(n),this.cursorPos=this.rl.getCursorPos();let o=H();e=$(e,o),t=$(t,o),l.length%o==0&&(e+="\n");let r=e+(t?"\n"+t:""),s=Math.floor(l.length/o)-this.cursorPos.rows+(t?t.split("\n").length:0);s>0&&(r+=z(s)),r+=Y(this.cursorPos.cols),this.write(G(this.extraLinesUnderPrompt)+J(this.height)+r),this.extraLinesUnderPrompt=s,this.height=r.split("\n").length}checkCursorPos(){let e=this.rl.getCursorPos();e.cols!==this.cursorPos.cols&&(this.write(Y(e.cols)),this.cursorPos=e)}done({clearContent:e}){this.rl.setPrompt("");let t=G(this.extraLinesUnderPrompt);t+=e?J(this.height):"\n",t+="\x1b[G",t+="\x1b[?25h",this.write(t),this.rl.close()}}class X extends Promise{static withResolver(){let e,t;return{promise:new Promise((i,l)=>{e=i,t=l}),resolve:e,reject:t}}}let ee=t("../../../node_modules/.pnpm/mute-stream@3.0.0/node_modules/mute-stream/lib/index.js"),et=t("node:path"),ei=globalThis.setImmediate;function el(e){let t=function(){let e=Error.prepareStackTrace,t=[];try{Error.prepareStackTrace=(e,i)=>{let l=i.slice(1);return t=l,l},Error().stack}catch{return t}return Error.prepareStackTrace=e,t}();return(l,o={})=>{let{input:r=process.stdin,signal:s}=o,a=new Set,u=new ee;u.pipe(o.output??process.stdout);let h=n.createInterface({terminal:!0,input:r,output:u});u.mute();let d=new Z(h),{promise:c,resolve:p,reject:f}=X.withResolver(),g=()=>f(new F);if(s){let e=()=>f(new P({cause:s.reason}));if(s.aborted)return e(),Object.assign(c,{cancel:g});s.addEventListener("abort",e),a.add(()=>s.removeEventListener("abort",e))}a.add(i((e,t)=>{f(new M(`User force closed the prompt with ${e} ${t}`))}));let m=()=>f(new M("User force closed the prompt with SIGINT"));h.on("SIGINT",m),a.add(()=>h.removeListener("SIGINT",m));let D={rl:h,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}};return I.run(D,()=>{var i;let n,s;return i=function(e){D.handleChange=()=>{D.index=0,e()},D.handleChange()},n=j.AsyncResource.bind(()=>K.clearAll()),h.on("close",n),a.add(()=>h.removeListener("close",n)),s=()=>{let n=()=>d.checkCursorPos();h.input.on("keypress",n),a.add(()=>h.input.removeListener("keypress",n));let o=null;i(()=>{let i=!1;try{let n=e(l,e=>{i?p(e):o={value:e}});if(void 0===n){let e=t[1]?.getFileName();throw e&&!e.startsWith("file://")&&(e=et.resolve(e)),Error(`Prompt functions must return a string.
|
|
2
|
+
at ${e}`)}let[r,s]="string"==typeof n?[n]:n;d.render(r,s),K.run()}catch(e){f(e)}if(i=!0,null!==o){let{value:e}=o;o=null,p(e)}})},"readableFlowing"in r?ei(s):s(),Object.assign(c.then(e=>(K.clearAll(),e),e=>{throw K.clearAll(),e}).finally(()=>{a.forEach(e=>e()),d.done({clearContent:!!o.clearPromptOnDone}),u.end()}).then(()=>c),{cancel:g})})}}let en=new Set(["emacs","vim"]);function eo(e){return en.has(e)}let er=(e,t=[])=>"up"===e.name||t.includes("vim")&&"k"===e.name||t.includes("emacs")&&e.ctrl&&"p"===e.name,es=(e,t=[])=>"down"===e.name||t.includes("vim")&&"j"===e.name||t.includes("emacs")&&e.ctrl&&"n"===e.name,ea=e=>"space"===e.name,eu=e=>"backspace"===e.name,eh=e=>"tab"===e.name,ed=e=>"1234567890".includes(e.name),ec=e=>"enter"===e.name||"return"===e.name,ep={prefix:{idle:(0,h.styleText)("blue","?"),done:(0,h.styleText)("green",u.tick)},spinner:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"].map(e=>(0,h.styleText)("yellow",e))},keybindings:[],style:{answer:e=>(0,h.styleText)("cyan",e),message:e=>(0,h.styleText)("bold",e),error:e=>(0,h.styleText)("red",`> ${e}`),defaultAnswer:e=>(0,h.styleText)("dim",`(${e})`),help:e=>(0,h.styleText)("dim",e),highlight:e=>(0,h.styleText)("cyan",e),key:e=>(0,h.styleText)("cyan",(0,h.styleText)("bold",`<${e}>`))}};function ef(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function eg(...e){let t;return function e(...t){let i={};for(let l of t)for(let[t,n]of Object.entries(l)){let l=i[t];i[t]=ef(l)&&ef(n)?e(l,n):n}return i}({...ep,keybindings:(t=process.env.INQUIRER_KEYBINDINGS)?Array.from(new Set(t.toLowerCase().split(/[\s,]+/).filter(eo))):[]},...e.filter(e=>null!=e))}function em(e){return q(t=>{let i=j.AsyncResource.bind(function(e){t.get()!==e&&(t.set(e),N().handleChange())});if(t.initialized)return[t.get(),i];let l="function"==typeof e?e():e;return t.set(l),[l,i]})}function eD(e,t){q(i=>{let l=i.get();(!Array.isArray(l)||t.some((e,t)=>!Object.is(e,l[t])))&&K.queue(e),i.set(t)})}function ew({status:e="idle",theme:t}){let[i,l]=em(!1),[n,o]=em(0),{prefix:r,spinner:s}=eg(t);if(eD(()=>{if("loading"===e){let e,t=-1,i=setTimeout(()=>{l(!0),e=setInterval(()=>{o((t+=1)%s.frames.length)},s.interval)},300);return()=>{clearTimeout(i),clearInterval(e)}}l(!1)},[e]),i)return s.frames[n];let a="loading"===e?"idle":e;return"string"==typeof r?r:r[a]??r.idle}function eb(e,t){return q(i=>{let l=i.get();if(!l||l.dependencies.length!==t.length||l.dependencies.some((e,i)=>e!==t[i])){let l=e();return i.set({value:l,dependencies:t}),l}return l.value})}function eB(e){return em({current:e})[0]}function eR(e){let t=eB(e);t.current=e,eD(e=>{let i=!1,l=W((l,n)=>{i||t.current(n,e)});return e.input.on("keypress",l),()=>{i=!0,e.input.removeListener("keypress",l)}},[])}function eL({items:e,active:t,renderItem:i,pageSize:l,loop:n=!0}){let o=H(),r=t=>(t%e.length+e.length)%e.length,s=e.map((e,l)=>null==e?[]:$(i({item:e,index:l,isActive:l===t}),o).split("\n")),a=s.reduce((e,t)=>e+t.length,0),u=e=>s[e]??[],h=function({active:e,renderedItems:t,pageSize:i,loop:l}){let n=eB({lastPointer:e,lastActive:void 0}),{lastPointer:o,lastActive:r}=n.current,s=Math.floor(i/2),a=t.reduce((e,t)=>e+t.length,0),u=t.slice(0,e).reduce((e,t)=>e+t.length,0),h=u;if(a>i)if(l)h=o,null!=r&&r<e&&e-r<i&&(h=Math.min(s,1===Math.abs(e-r)?Math.min(o+(t[r]?.length??0),Math.max(u,o)):o+e-r));else{let l=t.slice(e).reduce((e,t)=>e+t.length,0);h=l<i-s?i-l:Math.min(u,s)}return n.current.lastPointer=h,n.current.lastActive=e,h}({active:t,renderedItems:s,pageSize:l,loop:n}),d=u(t).slice(0,l),c=h+d.length<=l?h:l-d.length,p=Array.from({length:l});p.splice(c,d.length,...d);let f=new Set([t]),g=c+d.length,m=r(t+1);for(;g<l&&!f.has(m)&&(n&&a>l?m!==t:m>t);){let e=u(m).slice(0,l-g);p.splice(g,e.length,...e),f.add(m),g+=e.length,m=r(m+1)}for(g=c-1,m=r(t-1);g>=0&&!f.has(m)&&(n&&a>l?m!==t:m<t);){let e=u(m),t=e.slice(Math.max(0,e.length-g-1));p.splice(g-t.length+1,t.length,...t),f.add(m),g-=t.length,m=r(m-1)}return p.filter(e=>"string"==typeof e).join("\n")}export{P as AbortPromptError,d as Separator,O as ValidationError,el as createPrompt,u as dist,eu as isBackspaceKey,es as isDownKey,ec as isEnterKey,ed as isNumberKey,ea as isSpaceKey,eh as isTabKey,er as isUpKey,eg as makeTheme,eD as useEffect,eR as useKeypress,eb as useMemo,eL as usePagination,ew as usePrefix,eB as useRef,em as useState};
|
package/dist/5725~0.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"node:module";import{__webpack_require__ as l}from"./rslib-runtime~0.js";import"./
|
|
1
|
+
import"node:module";import{__webpack_require__ as l}from"./rslib-runtime~0.js";import"./9652~0.js";import"./1547~0.js";let s=[{id:"universal",host:"universal",name:"Universal",installPath:".agents/skills/",projectPath:".agents/skills/",globalPath:"~/.agents/skills/"},{id:"claude-code",host:"claude",name:"Claude Code",installPath:".claude/skills/",projectPath:".claude/skills/",globalPath:"~/.claude/skills/"},{id:"coco",host:"coco",name:"Coco",installPath:".coco/skills/",projectPath:".coco/skills/",globalPath:"~/.coco/skills/"},{id:"codex",host:"codex",name:"Codex",installPath:".agents/skills/",projectPath:".codex/skills/",globalPath:"~/.codex/skills/"},{id:"trae",host:"trae",name:"TRAE",installPath:".trae/skills/",projectPath:".trae/skills/",globalPath:"~/.trae/skills/"},{id:"cursor",host:"cursor",name:"Cursor",installPath:".agents/skills/",projectPath:".agents/skills/",globalPath:"~/.cursor/skills/"}],a=l("node:path");var t=l.n(a);let o=l("node:url"),e=t().dirname((0,o.fileURLToPath)(import.meta.url)),i=t().resolve(e,"../skills");export{s as SUPPORTED_AGENTS,i as skillsRoot};
|
package/dist/678~0.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"node:module";import{getLastHttpResponseLogId as o}from"./
|
|
1
|
+
import"node:module";import{getLastHttpResponseLogId as o}from"./1547~0.js";class r extends Error{details;exitCode;json;logId;constructor(o,r={}){super(o),this.details=r.details,this.exitCode=r.exitCode??1,this.json=r.json,this.logId=r.logId}}async function t(o,t){let e,i={json:e=!!o.optsWithGlobals().json,error(o){throw new r(o,{exitCode:2})},log(o=""){e||process.stdout.write(`${o}
|
|
2
2
|
`)},warn(o){e||process.stderr.write(`警告:${o}
|
|
3
3
|
`)}},n=await t(i);i.json&&void 0!==n&&process.stdout.write(`${JSON.stringify(n,null,2)}
|
|
4
4
|
`)}function e(o){var t;if(o instanceof r&&void 0!==o.json)return o.json;let e=d(o),i=s(o),n=l(t=o)?t.details:void 0;return{error:{},...e?{message:e}:{},...i?{log_id:i}:{},...void 0===n?{}:{details:n}}}function i(o){let r=d(o)??String(o),t=s(o);return t&&!r.includes(t)?`${r}
|
package/dist/8352~0.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createRequire as e}from"node:module";let o=e(import.meta.url)("node:module");export{o as external_node_module_namespaceObject};
|