@github/copilot 0.0.335-4 → 0.0.335-6
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/index.js +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -1896,7 +1896,7 @@ Please report this to https://github.com/markedjs/marked.`,t){let I="<p>An error
|
|
|
1896
1896
|
\u2514\u2500\u2500\u2500\u2500\u2518 \u2514\u2500\u2500\u2500\u2500\u2518 \u2514\u2500\u2518 \u2514\u2500\u2518\u2514\u2500\u2500\u2500\u2500\u2500\u2518 \u2514\u2500\u2500\u2500\u2500\u2518 \u2514\u2500\u2518 \u2580\u2588\u2588\u2588\u2584 \u2584\u2588\u2588\u2588\u2580
|
|
1897
1897
|
\u2502 ${e(t,8)}\u2580\u2580\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2580\u2580 \u2502
|
|
1898
1898
|
\u2514\u2500\u2500 \u2500\u2500\u2518`,colors:{"1,0":"border","1,1":"border","1,2":"border","1,76":"border","1,77":"border","1,78":"border","2,0":"border","2,60":"head","2,61":"head","2,62":"head","2,63":"head","2,64":"head","2,65":"head","2,66":"head","2,67":"head","2,78":"border","3,10":"text","3,11":"text","3,12":"text","3,13":"text","3,14":"text","3,15":"text","3,16":"text","3,17":"text","3,18":"text","3,19":"text","3,20":"text","3,4":"text","3,5":"text","3,56":"goggles","3,57":"goggles","3,58":"goggles","3,59":"goggles","3,6":"text","3,60":"goggles","3,61":"goggles","3,62":"goggles","3,63":"goggles","3,64":"goggles","3,65":"goggles","3,66":"goggles","3,67":"goggles","3,68":"goggles","3,69":"goggles","3,7":"text","3,70":"goggles","3,71":"goggles","3,8":"text","3,9":"text","4,11":"block_text","4,12":"block_text","4,13":"block_text","4,14":"block_text","4,15":"block_text","4,16":"block_shadow","4,18":"block_text","4,19":"block_text","4,20":"block_text","4,21":"block_text","4,22":"block_text","4,23":"block_shadow","4,25":"block_text","4,26":"block_text","4,27":"block_shadow","4,28":"block_text","4,29":"block_text","4,30":"block_shadow","4,36":"block_text","4,37":"block_text","4,38":"block_text","4,39":"block_text","4,4":"block_text","4,40":"block_text","4,41":"block_shadow","4,43":"block_text","4,44":"block_text","4,45":"block_text","4,46":"block_text","4,47":"block_text","4,48":"block_text","4,49":"block_shadow","4,5":"block_text","4,55":"goggles","4,56":"goggles","4,6":"block_text","4,63":"goggles","4,64":"goggles","4,7":"block_text","4,71":"goggles","4,72":"goggles","4,8":"block_text","4,9":"block_shadow","5,10":"block_text","5,11":"block_text","5,12":"block_shadow","5,13":"block_shadow","5,14":"block_shadow","5,15":"block_text","5,16":"block_text","5,17":"block_shadow","5,18":"block_text","5,19":"block_text","5,20":"block_shadow","5,21":"block_shadow","5,22":"block_text","5,23":"block_text","5,24":"block_shadow","5,25":"block_text","5,26":"block_text","5,27":"block_shadow","5,28":"block_text","5,29":"block_text","5,3":"block_text","5,30":"block_shadow","5,35":"block_text","5,36":"block_text","5,37":"block_shadow","5,38":"block_shadow","5,39":"block_shadow","5,4":"block_text","5,40":"block_text","5,41":"block_text","5,42":"block_shadow","5,43":"block_shadow","5,44":"block_shadow","5,45":"block_text","5,46":"block_text","5,47":"block_shadow","5,48":"block_shadow","5,49":"block_shadow","5,5":"block_shadow","5,55":"goggles","5,56":"goggles","5,57":"goggles","5,6":"block_shadow","5,62":"goggles","5,63":"goggles","5,64":"goggles","5,65":"goggles","5,7":"block_shadow","5,70":"goggles","5,71":"goggles","5,72":"goggles","5,8":"block_shadow","5,9":"block_shadow","6,10":"block_text","6,11":"block_text","6,12":"block_shadow","6,15":"block_text","6,16":"block_text","6,17":"block_shadow","6,18":"block_text","6,19":"block_text","6,20":"block_text","6,21":"block_text","6,22":"block_text","6,23":"block_shadow","6,24":"block_shadow","6,25":"block_text","6,26":"block_text","6,27":"block_shadow","6,28":"block_text","6,29":"block_text","6,3":"block_text","6,30":"block_shadow","6,35":"block_text","6,36":"block_text","6,37":"block_shadow","6,4":"block_text","6,40":"block_text","6,41":"block_text","6,42":"block_shadow","6,45":"block_text","6,46":"block_text","6,47":"block_shadow","6,5":"block_shadow","6,54":"head","6,55":"head","6,56":"head","6,57":"goggles","6,58":"goggles","6,59":"goggles","6,60":"goggles","6,61":"goggles","6,62":"goggles","6,63":"goggles","6,64":"goggles","6,65":"goggles","6,66":"goggles","6,67":"goggles","6,68":"goggles","6,69":"goggles","6,70":"goggles","6,71":"head","6,72":"head","6,73":"head","7,10":"block_text","7,11":"block_text","7,12":"block_shadow","7,15":"block_text","7,16":"block_text","7,17":"block_shadow","7,18":"block_text","7,19":"block_text","7,20":"block_shadow","7,21":"block_shadow","7,22":"block_shadow","7,23":"block_shadow","7,25":"block_text","7,26":"block_text","7,27":"block_shadow","7,28":"block_text","7,29":"block_text","7,3":"block_text","7,30":"block_shadow","7,35":"block_text","7,36":"block_text","7,37":"block_shadow","7,4":"block_text","7,40":"block_text","7,41":"block_text","7,42":"block_shadow","7,45":"block_text","7,46":"block_text","7,47":"block_shadow","7,5":"block_shadow","7,53":"head","7,54":"head","7,55":"head","7,56":"head","7,62":"eyes","7,65":"eyes","7,71":"head","7,72":"head","7,73":"head","7,74":"head","8,10":"block_shadow","8,11":"block_text","8,12":"block_text","8,13":"block_text","8,14":"block_text","8,15":"block_text","8,16":"block_shadow","8,17":"block_shadow","8,18":"block_text","8,19":"block_text","8,20":"block_shadow","8,25":"block_text","8,26":"block_text","8,27":"block_shadow","8,28":"block_text","8,29":"block_text","8,3":"block_shadow","8,30":"block_text","8,31":"block_text","8,32":"block_text","8,33":"block_text","8,34":"block_shadow","8,35":"block_shadow","8,36":"block_text","8,37":"block_text","8,38":"block_text","8,39":"block_text","8,4":"block_text","8,40":"block_text","8,41":"block_shadow","8,42":"block_shadow","8,45":"block_text","8,46":"block_text","8,47":"block_shadow","8,5":"block_text","8,53":"head","8,54":"head","8,55":"head","8,56":"head","8,6":"block_text","8,62":"eyes","8,65":"eyes","8,7":"block_text","8,71":"head","8,72":"head","8,73":"head","8,74":"head","8,8":"block_text","8,9":"block_shadow","9,11":"block_shadow","9,12":"block_shadow","9,13":"block_shadow","9,14":"block_shadow","9,15":"block_shadow","9,16":"block_shadow","9,18":"block_shadow","9,19":"block_shadow","9,20":"block_shadow","9,25":"block_shadow","9,26":"block_shadow","9,27":"block_shadow","9,28":"block_shadow","9,29":"block_shadow","9,30":"block_shadow","9,31":"block_shadow","9,32":"block_shadow","9,33":"block_shadow","9,34":"block_shadow","9,36":"block_shadow","9,37":"block_shadow","9,38":"block_shadow","9,39":"block_shadow","9,4":"block_shadow","9,40":"block_shadow","9,41":"block_shadow","9,45":"block_shadow","9,46":"block_shadow","9,47":"block_shadow","9,5":"block_shadow","9,53":"head","9,54":"head","9,55":"head","9,56":"head","9,57":"head","9,6":"block_shadow","9,7":"block_shadow","9,70":"head","9,71":"head","9,72":"head","9,73":"head","9,74":"head","9,8":"block_shadow","9,9":"block_shadow","10,0":"border","10,31":"text","10,32":"text","10,33":"text","10,35":"text","10,36":"text","10,37":"text","10,38":"text","10,39":"text","10,40":"text","10,41":"text","10,43":"text","10,44":"text","10,45":"text","10,46":"text","10,47":"text","10,48":"text","10,49":"text","10,50":"text","10,51":"text","10,52":"text","10,53":"text","10,54":"text","10,55":"text","10,56":"head","10,57":"head","10,58":"head","10,59":"head","10,60":"head","10,61":"head","10,62":"head","10,63":"head","10,64":"head","10,65":"head","10,66":"head","10,67":"head","10,68":"head","10,69":"head","10,70":"head","10,71":"head","10,78":"border","11,0":"border","11,1":"border","11,2":"border","11,76":"border","11,77":"border","11,78":"border"}}];return{metadata:{id:"copilot-cli-banner-sept-2025",name:"Multi-chromatic GitHub CLI banner",description:"Welcome animation for GitHub Copilot CLI with progressive logo, text reveal, and shine effects"},frames:l}}var _Se={};function MSe(t="0.0.1"){return _Se[t]||(_Se[t]=I$l(t)),_Se[t]}var OJt=MSe(),n$l=OJt.frames.slice(0,-1).map(t=>t.duration);var zSe=OJt.frames.length;function r$l(t,e="0.0.1"){let l=MSe(e);return l.frames[Math.min(t,l.frames.length-1)].content.split(`
|
|
1899
|
-
`)}function a$l(t="0.0.1"){return MSe(t)}c();var Cre=mt(bl(),1);var s$l=!1;function TJt({metrics:t}){let{theme:e}=_I(),{totalTokens:l,postTruncationTokens:I,tokenLimit:n,truncationStrategy:r}=t;if(n===0)return null;let a=l>I,s=n*.95,o=s-l,d=Math.max(0,Math.round(o/s*100)),G=d<=20,u=l>=s,h=a||u,W="",y=e.MUTED;return h?(W="Truncated",y="red"):G&&(W=`${d}% to ${r}`,y=e.WARNING),Cre.default.createElement($e,{flexDirection:"row",columnGap:1},h&&Cre.default.createElement(we,{color:"red"},"\u25CF"),W&&Cre.default.createElement(we,{color:y},W),s$l&&Cre.default.createElement(we,{color:e.MUTED},"[",I,"/",l,"/",n,"]"))}c();var Kh=mt(bl(),1);Vpe();var o$l="https://gh.io/copilot-cli-preview-feedback",c$l=(t,e)=>`https://github.com/${t}/${e}/issues/new?template=feature_request.yml`,i$l=(t,e)=>`https://github.com/${t}/${e}/issues/new?template=bug_report.yml`;function UJt({onCancel:t}){let{theme:e}=_I(),[l,I]=(0,Kh.useState)(""),[n,r]=(0,Kh.useState)("initial"),[a,s]=(0,Kh.useState)(0),o=E2().name==="@CopilotCLIPrivatePreview/copilot",d=o?"CopilotCLIPrivatePreview":"github",G=o?"copilot":"copilot-cli",u=async()=>{if(n==="initial"){let R=y[a].url,V=`Failed to open browser. Please visit ${R} manually to submit your feedback.`;try{r("opening"),(await $te(R)).once("error",()=>{I(V)})}catch{I(V)}finally{r("done")}}};ks((R,V)=>{if(n==="done"){t();return}if(V.return){u();return}if(V.escape){t();return}if(V.upArrow){s(F=>F===0?y.length-1:F-1);return}if(V.downArrow){s(F=>F===y.length-1?0:F+1);return}});let h=n==="initial"?"Choose an option below and press Enter to continue, or press Esc to go back:":n==="opening"?"Opening browser...":"Thank you for your feedback! \u2728",W=o?"visible to other participants":"publicly visible",y=[{label:"Submit a private feedback survey",url:o$l},{label:`File a bug report (${W})`,url:i$l(d,G)},{label:`File a feature request (${W})`,url:c$l(d,G)}];return Kh.default.createElement($e,{flexDirection:"column",rowGap:1},l?Kh.default.createElement(we,{color:e.ERROR},l):Kh.default.createElement(we,null,h),n==="initial"&&Kh.default.createElement(Kh.default.Fragment,null,Kh.default.createElement($e,{flexDirection:"column",marginY:1},y.map((R,V)=>Kh.default.createElement($e,{key:V,flexDirection:"row"},Kh.default.createElement(we,{color:a===V?e.ACCENT:e.MUTED},a===V?"\u25CF ":"\u25CB ",R.label)))),Kh.default.createElement(we,{color:e.MUTED},"Use \u2191\u2193 keys to navigate, Enter to select, Esc to go back")),n==="done"&&Kh.default.createElement(we,null,"Press any key to go back"))}c();var d1=mt(bl(),1);c();var Xre=mt(bl(),1);c();c();var mAe=mt(bl(),1);c();c();import _Jt from"node:process";function DSe(){let{env:t}=_Jt,{TERM:e,TERM_PROGRAM:l}=t;return _Jt.platform!=="win32"?e!=="linux":!!t.WT_SESSION||!!t.TERMINUS_SUBLIME||t.ConEmuTask==="{cmd::Cmder}"||l==="Terminus-Sublime"||l==="vscode"||e==="xterm-256color"||e==="alacritty"||e==="rxvt-unicode"||e==="rxvt-unicode-256color"||t.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var zJt={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},MJt={tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},d$l={tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},m$l={...zJt,...MJt},G$l={...zJt,...d$l},b$l=DSe(),u$l=b$l?m$l:G$l,dm=u$l,vwr=Object.entries(MJt);function p$l({isSelected:t=!1}){return mAe.default.createElement($e,{marginRight:1},t?mAe.default.createElement(we,{color:"blue"},dm.pointer):mAe.default.createElement(we,null," "))}var jSe=p$l;c();var DJt=mt(bl(),1);function h$l({isSelected:t=!1,label:e}){return DJt.createElement(we,{color:t?"blue":void 0},e)}var PSe=h$l;c();var VN=mt(bl(),1);import{isDeepStrictEqual as Z$l}from"node:util";c();function Xx(t,e){if(!Array.isArray(t))throw new TypeError(`Expected an array, got \`${typeof t}\`.`);if(!Number.isSafeInteger(e))throw new TypeError(`The \`steps\` parameter must be an integer, got ${e}.`);let{length:l}=t;if(l===0)return[...t];let I=(e%l+l)%l;return I===0?[...t]:[...t.slice(-I),...t.slice(0,-I)]}function N$l({items:t=[],isFocused:e=!0,initialIndex:l=0,indicatorComponent:I=jSe,itemComponent:n=PSe,limit:r,onSelect:a,onHighlight:s}){let o=typeof r=="number"&&t.length>r,d=o?Math.min(r,t.length):t.length,G=d-1,[u,h]=(0,VN.useState)(l>G?G-l:0),[W,y]=(0,VN.useState)(l?l>G?G:l:0),R=(0,VN.useRef)(t);(0,VN.useEffect)(()=>{Z$l(R.current.map(F=>F.value),t.map(F=>F.value))||(h(0),y(0)),R.current=t},[t]),ks((0,VN.useCallback)((F,f)=>{if(F==="k"||f.upArrow){let S=(o?d:t.length)-1,B=W===0,O=o?W:S,D=B?u+1:u,ee=B?O:W-1;h(D),y(ee);let se=o?Xx(t,D).slice(0,d):t;typeof s=="function"&&s(se[ee])}if(F==="j"||f.downArrow){let S=W===(o?d:t.length)-1,B=o?W:0,O=S?u-1:u,D=S?B:W+1;h(O),y(D);let ee=o?Xx(t,O).slice(0,d):t;typeof s=="function"&&s(ee[D])}if(/^[1-9]$/.test(F)){let S=Number.parseInt(F,10)-1,B=o?Xx(t,u).slice(0,d):t;if(S>=0&&S<B.length){let O=B[S];O&&a?.(O)}}if(f.return){let S=o?Xx(t,u).slice(0,d):t;typeof a=="function"&&a(S[W])}},[o,d,u,W,t,a,s]),{isActive:e});let V=o?Xx(t,u).slice(0,d):t;return VN.default.createElement($e,{flexDirection:"column"},V.map((F,f)=>{let S=f===W;return VN.default.createElement($e,{key:F.key??F.value},VN.default.createElement(I,{isSelected:S}),VN.default.createElement(n,{...F,isSelected:S}))}))}var Hre=N$l;function ig({items:t,onSelect:e,onEscape:l,instructionText:I,escapeItem:n}){let{theme:r}=_I();ks((d,G)=>{G.escape&&(n?e(n):l&&l())});let a=n?[...t,n]:t,s=a.map((d,G)=>{let h=`${G+1}. ${d.label}`;return n&&d===n&&(h+=" (Esc)"),{key:G.toString(),label:h,value:d.value}}),o=n||l?"Confirm with number keys or \u2191\u2193 keys and Enter, Cancel with Esc":"Confirm with number keys or \u2191\u2193 keys and Enter";return Xre.default.createElement(Xre.default.Fragment,null,Xre.default.createElement(Hre,{items:s,onSelect:d=>{let G=a.find(u=>u.value===d.value);G&&e(G)}}),Xre.default.createElement(we,{color:r.MUTED},I||o))}var jJt=({folderPath:t,onConfirm:e})=>{let{theme:l}=_I(),I=[{label:"Yes, proceed",value:"yes"},{label:"Yes, and remember this folder for future sessions",value:"remember"}],n={label:"No, exit",value:"no"};return d1.default.createElement($e,{flexDirection:"column",borderStyle:"round",borderColor:l.WARNING,paddingX:1,paddingY:1,gap:1},d1.default.createElement($e,{flexDirection:"column",gap:1},d1.default.createElement(we,{color:l.ACCENT,bold:!0},"Do you trust the files in this folder?"),d1.default.createElement($e,{borderStyle:"round",borderColor:l.BORDER,paddingX:1},d1.default.createElement(we,null,t)),d1.default.createElement(we,null,"Copilot may read files in this folder. Reading untrusted files may lead Copilot to behave in unexpected ways."),d1.default.createElement(we,null,"With your permission Copilot may execute files in this folder. Executing untrusted code is unsafe."),d1.default.createElement(we,null,"This project also allows Copilot to automatically execute bash commands on your machine."),d1.default.createElement(ig,{items:I,escapeItem:n,onSelect:r=>{e(r.value)}})))};c();var KSe=mt(bl(),1);c();var zD=mt(bl(),1),PJt=["\u2219","\u25CF","\u25C9","\u25CE"],GAe=({color:t,children:e})=>{let[l,I]=(0,zD.useState)(0);return(0,zD.useEffect)(()=>{let n=setInterval(()=>{I(r=>(r+1)%PJt.length)},300);return()=>clearInterval(n)},[]),zD.default.createElement(we,{color:t},PJt[l]," ",e)};var W$l=({indexingIndicator:t})=>{let{theme:e}=_I();if(!t?.isVisible)return null;if(t.state==="indexing")return KSe.default.createElement(GAe,{color:e.MUTED},"Indexing...");if(t.state==="completed"){let l=`\u2713 Indexed ${t.fileCount} files in ${t.durationMs}ms`;return KSe.default.createElement(we,{color:e.MUTED},l)}return null},KJt=W$l;c();var B2=mt(bl(),1);c();var mm=mt(bl(),1);c();var qSe=mt(bl(),1);c();import{Buffer as g$l}from"node:buffer";var A$l=/^(?:\x1b)([a-zA-Z0-9])$/,y$l=/^(?:\x1b+)(O|N|\[|\[\[)(?:(\d+)(?:;(\d+))?([~^$])|(?:1;)?(\d+)?([a-zA-Z]))/,qJt={OP:"f1",OQ:"f2",OR:"f3",OS:"f4","[11~":"f1","[12~":"f2","[13~":"f3","[14~":"f4","[[A":"f1","[[B":"f2","[[C":"f3","[[D":"f4","[[E":"f5","[15~":"f5","[17~":"f6","[18~":"f7","[19~":"f8","[20~":"f9","[21~":"f10","[23~":"f11","[24~":"f12","[A":"up","[B":"down","[C":"right","[D":"left","[E":"clear","[F":"end","[H":"home",OA:"up",OB:"down",OC:"right",OD:"left",OE:"clear",OF:"end",OH:"home","[1~":"home","[2~":"insert","[3~":"delete","[4~":"end","[5~":"pageup","[6~":"pagedown","[[5~":"pageup","[[6~":"pagedown","[7~":"home","[8~":"end","[a":"up","[b":"down","[c":"right","[d":"left","[e":"clear","[2$":"insert","[3$":"delete","[5$":"pageup","[6$":"pagedown","[7$":"home","[8$":"end",Oa:"up",Ob:"down",Oc:"right",Od:"left",Oe:"clear","[2^":"insert","[3^":"delete","[5^":"pageup","[6^":"pagedown","[7^":"home","[8^":"end","[Z":"tab"},bAe=[...Object.values(qJt),"backspace"],R$l=t=>["[a","[b","[c","[d","[e","[2$","[3$","[5$","[6$","[7$","[8$","[Z"].includes(t),E$l=t=>["Oa","Ob","Oc","Od","Oe","[2^","[3^","[5^","[6^","[7^","[8^"].includes(t),Y$l=(t="")=>{let e;g$l.isBuffer(t)?t[0]>127&&t[1]===void 0?(t[0]-=128,t="\x1B"+String(t)):t=String(t):t!==void 0&&typeof t!="string"?t=String(t):t||(t="");let l={name:"",ctrl:!1,meta:!1,shift:!1,option:!1,sequence:t,raw:t};if(l.sequence=l.sequence||t||l.name,t==="\r")l.raw=void 0,l.name="return";else if(t===`
|
|
1899
|
+
`)}function a$l(t="0.0.1"){return MSe(t)}c();var Cre=mt(bl(),1);var s$l=!1;function TJt({metrics:t}){let{theme:e}=_I(),{totalTokens:l,postTruncationTokens:I,tokenLimit:n,truncationStrategy:r}=t;if(n===0)return null;let a=l>I,s=n*.95,o=s-l,d=Math.max(0,Math.round(o/s*100)),G=d<=20,u=l>=s,h=a||u,W="",y=e.MUTED;return h?(W="Truncated",y=e.WARNING):G&&(W=`${d}% to ${r}`),Cre.default.createElement($e,{flexDirection:"row",columnGap:1},h&&Cre.default.createElement(we,{color:y},"\u25CF"),W&&Cre.default.createElement(we,{color:y},W),s$l&&Cre.default.createElement(we,{color:e.MUTED},"[",I,"/",l,"/",n,"]"))}c();var Kh=mt(bl(),1);Vpe();var o$l="https://gh.io/copilot-cli-preview-feedback",c$l=(t,e)=>`https://github.com/${t}/${e}/issues/new?template=feature_request.yml`,i$l=(t,e)=>`https://github.com/${t}/${e}/issues/new?template=bug_report.yml`;function UJt({onCancel:t}){let{theme:e}=_I(),[l,I]=(0,Kh.useState)(""),[n,r]=(0,Kh.useState)("initial"),[a,s]=(0,Kh.useState)(0),o=E2().name==="@CopilotCLIPrivatePreview/copilot",d=o?"CopilotCLIPrivatePreview":"github",G=o?"copilot":"copilot-cli",u=async()=>{if(n==="initial"){let R=y[a].url,V=`Failed to open browser. Please visit ${R} manually to submit your feedback.`;try{r("opening"),(await $te(R)).once("error",()=>{I(V)})}catch{I(V)}finally{r("done")}}};ks((R,V)=>{if(n==="done"){t();return}if(V.return){u();return}if(V.escape){t();return}if(V.upArrow){s(F=>F===0?y.length-1:F-1);return}if(V.downArrow){s(F=>F===y.length-1?0:F+1);return}});let h=n==="initial"?"Choose an option below and press Enter to continue, or press Esc to go back:":n==="opening"?"Opening browser...":"Thank you for your feedback! \u2728",W=o?"visible to other participants":"publicly visible",y=[{label:"Submit a private feedback survey",url:o$l},{label:`File a bug report (${W})`,url:i$l(d,G)},{label:`File a feature request (${W})`,url:c$l(d,G)}];return Kh.default.createElement($e,{flexDirection:"column",rowGap:1},l?Kh.default.createElement(we,{color:e.ERROR},l):Kh.default.createElement(we,null,h),n==="initial"&&Kh.default.createElement(Kh.default.Fragment,null,Kh.default.createElement($e,{flexDirection:"column",marginY:1},y.map((R,V)=>Kh.default.createElement($e,{key:V,flexDirection:"row"},Kh.default.createElement(we,{color:a===V?e.ACCENT:e.MUTED},a===V?"\u25CF ":"\u25CB ",R.label)))),Kh.default.createElement(we,{color:e.MUTED},"Use \u2191\u2193 keys to navigate, Enter to select, Esc to go back")),n==="done"&&Kh.default.createElement(we,null,"Press any key to go back"))}c();var d1=mt(bl(),1);c();var Xre=mt(bl(),1);c();c();var mAe=mt(bl(),1);c();c();import _Jt from"node:process";function DSe(){let{env:t}=_Jt,{TERM:e,TERM_PROGRAM:l}=t;return _Jt.platform!=="win32"?e!=="linux":!!t.WT_SESSION||!!t.TERMINUS_SUBLIME||t.ConEmuTask==="{cmd::Cmder}"||l==="Terminus-Sublime"||l==="vscode"||e==="xterm-256color"||e==="alacritty"||e==="rxvt-unicode"||e==="rxvt-unicode-256color"||t.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var zJt={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},MJt={tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},d$l={tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},m$l={...zJt,...MJt},G$l={...zJt,...d$l},b$l=DSe(),u$l=b$l?m$l:G$l,dm=u$l,vwr=Object.entries(MJt);function p$l({isSelected:t=!1}){return mAe.default.createElement($e,{marginRight:1},t?mAe.default.createElement(we,{color:"blue"},dm.pointer):mAe.default.createElement(we,null," "))}var jSe=p$l;c();var DJt=mt(bl(),1);function h$l({isSelected:t=!1,label:e}){return DJt.createElement(we,{color:t?"blue":void 0},e)}var PSe=h$l;c();var VN=mt(bl(),1);import{isDeepStrictEqual as Z$l}from"node:util";c();function Xx(t,e){if(!Array.isArray(t))throw new TypeError(`Expected an array, got \`${typeof t}\`.`);if(!Number.isSafeInteger(e))throw new TypeError(`The \`steps\` parameter must be an integer, got ${e}.`);let{length:l}=t;if(l===0)return[...t];let I=(e%l+l)%l;return I===0?[...t]:[...t.slice(-I),...t.slice(0,-I)]}function N$l({items:t=[],isFocused:e=!0,initialIndex:l=0,indicatorComponent:I=jSe,itemComponent:n=PSe,limit:r,onSelect:a,onHighlight:s}){let o=typeof r=="number"&&t.length>r,d=o?Math.min(r,t.length):t.length,G=d-1,[u,h]=(0,VN.useState)(l>G?G-l:0),[W,y]=(0,VN.useState)(l?l>G?G:l:0),R=(0,VN.useRef)(t);(0,VN.useEffect)(()=>{Z$l(R.current.map(F=>F.value),t.map(F=>F.value))||(h(0),y(0)),R.current=t},[t]),ks((0,VN.useCallback)((F,f)=>{if(F==="k"||f.upArrow){let S=(o?d:t.length)-1,B=W===0,O=o?W:S,D=B?u+1:u,ee=B?O:W-1;h(D),y(ee);let se=o?Xx(t,D).slice(0,d):t;typeof s=="function"&&s(se[ee])}if(F==="j"||f.downArrow){let S=W===(o?d:t.length)-1,B=o?W:0,O=S?u-1:u,D=S?B:W+1;h(O),y(D);let ee=o?Xx(t,O).slice(0,d):t;typeof s=="function"&&s(ee[D])}if(/^[1-9]$/.test(F)){let S=Number.parseInt(F,10)-1,B=o?Xx(t,u).slice(0,d):t;if(S>=0&&S<B.length){let O=B[S];O&&a?.(O)}}if(f.return){let S=o?Xx(t,u).slice(0,d):t;typeof a=="function"&&a(S[W])}},[o,d,u,W,t,a,s]),{isActive:e});let V=o?Xx(t,u).slice(0,d):t;return VN.default.createElement($e,{flexDirection:"column"},V.map((F,f)=>{let S=f===W;return VN.default.createElement($e,{key:F.key??F.value},VN.default.createElement(I,{isSelected:S}),VN.default.createElement(n,{...F,isSelected:S}))}))}var Hre=N$l;function ig({items:t,onSelect:e,onEscape:l,instructionText:I,escapeItem:n}){let{theme:r}=_I();ks((d,G)=>{G.escape&&(n?e(n):l&&l())});let a=n?[...t,n]:t,s=a.map((d,G)=>{let h=`${G+1}. ${d.label}`;return n&&d===n&&(h+=" (Esc)"),{key:G.toString(),label:h,value:d.value}}),o=n||l?"Confirm with number keys or \u2191\u2193 keys and Enter, Cancel with Esc":"Confirm with number keys or \u2191\u2193 keys and Enter";return Xre.default.createElement(Xre.default.Fragment,null,Xre.default.createElement(Hre,{items:s,onSelect:d=>{let G=a.find(u=>u.value===d.value);G&&e(G)}}),Xre.default.createElement(we,{color:r.MUTED},I||o))}var jJt=({folderPath:t,onConfirm:e})=>{let{theme:l}=_I(),I=[{label:"Yes, proceed",value:"yes"},{label:"Yes, and remember this folder for future sessions",value:"remember"}],n={label:"No, exit",value:"no"};return d1.default.createElement($e,{flexDirection:"column",borderStyle:"round",borderColor:l.WARNING,paddingX:1,paddingY:1,gap:1},d1.default.createElement($e,{flexDirection:"column",gap:1},d1.default.createElement(we,{color:l.ACCENT,bold:!0},"Do you trust the files in this folder?"),d1.default.createElement($e,{borderStyle:"round",borderColor:l.BORDER,paddingX:1},d1.default.createElement(we,null,t)),d1.default.createElement(we,null,"Copilot may read files in this folder. Reading untrusted files may lead Copilot to behave in unexpected ways."),d1.default.createElement(we,null,"With your permission Copilot may execute files in this folder. Executing untrusted code is unsafe."),d1.default.createElement(we,null,"This project also allows Copilot to automatically execute bash commands on your machine."),d1.default.createElement(ig,{items:I,escapeItem:n,onSelect:r=>{e(r.value)}})))};c();var KSe=mt(bl(),1);c();var zD=mt(bl(),1),PJt=["\u2219","\u25CF","\u25C9","\u25CE"],GAe=({color:t,children:e})=>{let[l,I]=(0,zD.useState)(0);return(0,zD.useEffect)(()=>{let n=setInterval(()=>{I(r=>(r+1)%PJt.length)},300);return()=>clearInterval(n)},[]),zD.default.createElement(we,{color:t},PJt[l]," ",e)};var W$l=({indexingIndicator:t})=>{let{theme:e}=_I();if(!t?.isVisible)return null;if(t.state==="indexing")return KSe.default.createElement(GAe,{color:e.MUTED},"Indexing...");if(t.state==="completed"){let l=`\u2713 Indexed ${t.fileCount} files in ${t.durationMs}ms`;return KSe.default.createElement(we,{color:e.MUTED},l)}return null},KJt=W$l;c();var B2=mt(bl(),1);c();var mm=mt(bl(),1);c();var qSe=mt(bl(),1);c();import{Buffer as g$l}from"node:buffer";var A$l=/^(?:\x1b)([a-zA-Z0-9])$/,y$l=/^(?:\x1b+)(O|N|\[|\[\[)(?:(\d+)(?:;(\d+))?([~^$])|(?:1;)?(\d+)?([a-zA-Z]))/,qJt={OP:"f1",OQ:"f2",OR:"f3",OS:"f4","[11~":"f1","[12~":"f2","[13~":"f3","[14~":"f4","[[A":"f1","[[B":"f2","[[C":"f3","[[D":"f4","[[E":"f5","[15~":"f5","[17~":"f6","[18~":"f7","[19~":"f8","[20~":"f9","[21~":"f10","[23~":"f11","[24~":"f12","[A":"up","[B":"down","[C":"right","[D":"left","[E":"clear","[F":"end","[H":"home",OA:"up",OB:"down",OC:"right",OD:"left",OE:"clear",OF:"end",OH:"home","[1~":"home","[2~":"insert","[3~":"delete","[4~":"end","[5~":"pageup","[6~":"pagedown","[[5~":"pageup","[[6~":"pagedown","[7~":"home","[8~":"end","[a":"up","[b":"down","[c":"right","[d":"left","[e":"clear","[2$":"insert","[3$":"delete","[5$":"pageup","[6$":"pagedown","[7$":"home","[8$":"end",Oa:"up",Ob:"down",Oc:"right",Od:"left",Oe:"clear","[2^":"insert","[3^":"delete","[5^":"pageup","[6^":"pagedown","[7^":"home","[8^":"end","[Z":"tab"},bAe=[...Object.values(qJt),"backspace"],R$l=t=>["[a","[b","[c","[d","[e","[2$","[3$","[5$","[6$","[7$","[8$","[Z"].includes(t),E$l=t=>["Oa","Ob","Oc","Od","Oe","[2^","[3^","[5^","[6^","[7^","[8^"].includes(t),Y$l=(t="")=>{let e;g$l.isBuffer(t)?t[0]>127&&t[1]===void 0?(t[0]-=128,t="\x1B"+String(t)):t=String(t):t!==void 0&&typeof t!="string"?t=String(t):t||(t="");let l={name:"",ctrl:!1,meta:!1,shift:!1,option:!1,sequence:t,raw:t};if(l.sequence=l.sequence||t||l.name,t==="\r")l.raw=void 0,l.name="return";else if(t===`
|
|
1900
1900
|
`)l.name="enter";else if(t===" ")l.name="tab";else if(t==="\b"||t==="\x1B\b"||t==="\x7F")l.name="backspace",l.meta=t.charAt(0)==="\x1B";else if(t==="\x1B\x7F")l.name="delete",l.meta=t.charAt(0)==="\x1B";else if(t==="\x1B"||t==="\x1B\x1B")l.name="escape",l.meta=t.length===2;else if(t===" "||t==="\x1B ")l.name="space",l.meta=t.length===2;else if(t.length===1&&t<="")l.name=String.fromCharCode(t.charCodeAt(0)+97-1),l.ctrl=!0;else if(t.length===1&&t>="0"&&t<="9")l.name="number";else if(t.length===1&&t>="a"&&t<="z")l.name=t;else if(t.length===1&&t>="A"&&t<="Z")l.name=t.toLowerCase(),l.shift=!0;else if(e=A$l.exec(t))l.meta=!0,l.shift=/^[A-Z]$/.test(e[1]);else if(e=y$l.exec(t)){let I=[...t];I[0]==="\x1B"&&I[1]==="\x1B"&&(l.option=!0);let n=[e[1],e[2],e[4],e[6]].filter(Boolean).join(""),r=(e[3]||e[5]||1)-1;l.ctrl=!!(r&4),l.meta=!!(r&10),l.shift=!!(r&1),l.code=n,l.name=qJt[n],l.shift=R$l(n)||l.shift,l.ctrl=E$l(n)||l.ctrl}return l},$Jt=Y$l;var V$l=(t,e={})=>{let{stdin:l,setRawMode:I,internal_exitOnCtrlC:n,internal_eventEmitter:r}=OS(),{stdout:a}=cW();(0,qSe.useEffect)(()=>{if(e.isActive===!1)return;I(!0);let s=a.isTTY===!0;return s&&a?.write("\x1B[?2004h"),()=>{s&&a?.write("\x1B[?2004l"),I(!1)}},[e.isActive,I,a]),(0,qSe.useEffect)(()=>{if(e.isActive===!1)return;let s=o=>{let d=$Jt(o),G=32,u=bAe.includes(d.name),h=o.includes("\x1B[200~")||o.includes("\x1B[201~"),W=o.includes(`
|
|
1901
1901
|
`),y=!u&&(h||o.length>=G||W&&o.length>1),R={upArrow:d.name==="up",downArrow:d.name==="down",leftArrow:d.name==="left",rightArrow:d.name==="right",pageDown:d.name==="pagedown",pageUp:d.name==="pageup",return:d.name==="return",escape:d.name==="escape",ctrl:d.ctrl,shift:d.shift,tab:d.name==="tab",backspace:d.name==="backspace",delete:d.name==="delete",meta:d.meta||d.name==="escape"||d.option,home:d.name==="home",end:d.name==="end",paste:y},V=d.ctrl?d.name:d.sequence;u&&(V=""),h&&(V=V.replace(/\u001B\[200~/g,"").replace(/\u001B\[201~/g,"")),V.startsWith("\x1B")&&(V=V.slice(1)),o===`
|
|
1902
1902
|
`&&(V=`
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@github/copilot",
|
|
3
3
|
"description": "GitHub Copilot CLI brings the power of Copilot coding agent directly to your terminal.",
|
|
4
|
-
"version": "0.0.335-
|
|
4
|
+
"version": "0.0.335-6",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"sdk/**/*"
|
|
34
34
|
],
|
|
35
35
|
"buildMetadata": {
|
|
36
|
-
"gitCommit": "
|
|
36
|
+
"gitCommit": "fbc8e2e"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"node-pty": "npm:@devm33/node-pty@^1.0.8",
|