@nuvin/nuvin-cli 1.2.1 → 1.4.0

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.
@@ -1 +0,0 @@
1
- (function(_0x108349,_0x36e76d){const _0x4df81c={_0x599a79:0x226,_0x224069:0x21e,_0x5c0c95:0x21c,_0x3b6066:0x20e,_0x11358a:0x214,_0x5e9bae:0x228,_0x2ba9de:0x225,_0x2e833e:0x14e,_0x48f824:0x144,_0x2cac7a:0x139,_0x25a74b:0x123,_0xd26839:0x12f,_0x12c0bb:0x134,_0x1304b2:0x134,_0xa9d46b:0x136,_0x14e14c:0x14c,_0x2c2353:0x21d,_0x5b3e0f:0x14a,_0x349ddb:0x13a,_0x3dc313:0x13e,_0x3fb001:0x14d,_0x34a4f8:0x14a,_0x439e88:0x217,_0x3a8c0e:0x216,_0x2534a7:0x227},_0x409c19={_0x53898a:0x2f7},_0x615c73=_0x108349();function _0x14882c(_0x464825,_0x3cd64e,_0x481755,_0x3544e3){return _0x22f9(_0x481755- -_0x409c19._0x53898a,_0x464825);}function _0x5edff2(_0x20f02d,_0x279b0b,_0xbe10a3,_0x5db624){return _0x22f9(_0x5db624- -0x3d6,_0x20f02d);}while(!![]){try{const _0x155b60=parseInt(_0x5edff2(-0x213,-0x225,-_0x4df81c._0x599a79,-0x222))/0x1+-parseInt(_0x5edff2(-0x201,-_0x4df81c._0x224069,-_0x4df81c._0x5c0c95,-_0x4df81c._0x3b6066))/0x2*(-parseInt(_0x5edff2(-_0x4df81c._0x11358a,-_0x4df81c._0x5e9bae,-0x22d,-_0x4df81c._0x2ba9de))/0x3)+parseInt(_0x14882c(-_0x4df81c._0x2e833e,-0x136,-_0x4df81c._0x48f824,-_0x4df81c._0x2cac7a))/0x4+-parseInt(_0x14882c(-_0x4df81c._0x25a74b,-_0x4df81c._0xd26839,-_0x4df81c._0x12c0bb,-_0x4df81c._0x1304b2))/0x5*(-parseInt(_0x14882c(-_0x4df81c._0xa9d46b,-0x13a,-0x13c,-_0x4df81c._0x14e14c))/0x6)+parseInt(_0x5edff2(-0x221,-_0x4df81c._0x2c2353,-0x222,-0x22c))/0x7*(parseInt(_0x14882c(-0x140,-_0x4df81c._0x5b3e0f,-0x149,-0x139))/0x8)+parseInt(_0x14882c(-_0x4df81c._0x349ddb,-0x133,-_0x4df81c._0x3dc313,-_0x4df81c._0x3fb001))/0x9*(parseInt(_0x14882c(-0x159,-0x14d,-_0x4df81c._0x34a4f8,-0x14c))/0xa)+-parseInt(_0x5edff2(-0x216,-_0x4df81c._0x439e88,-_0x4df81c._0x3a8c0e,-0x214))/0xb*(parseInt(_0x5edff2(-_0x4df81c._0x224069,-_0x4df81c._0x2534a7,-0x21b,-0x21e))/0xc);if(_0x155b60===_0x36e76d)break;else _0x615c73['push'](_0x615c73['shift']());}catch(_0x6ff86b){_0x615c73['push'](_0x615c73['shift']());}}}(_0x25f1,0x1e9aa));import{C as _0x1ab368,E as _0x7a8707,I as _0x57bcc7,U as _0x4d9740,i as _0x15fb1d,n as _0x36ac19,w as _0x13aa8c,y as _0x3fc852}from'./chunk-ACALODB6.js';import{d as _0x4226f9}from'./chunk-PTCSZTUW.js';import'./chunk-AJHDLTY3.js';import{useEffect as _0x9e1502}from'react';import{render as _0x18afe0}from'ink';import{Box as _0x430f77,Text as _0x2b4605,useApp as _0x460c9c}from'ink';import*as _0x3426de from'fs/promises';import*as _0xc6ba93 from'path';function _0x22f9(_0x1b1974,_0x1a8e87){const _0x25f1ff=_0x25f1();return _0x22f9=function(_0x22f97f,_0x52207d){_0x22f97f=_0x22f97f-0x1a6;let _0x3054fe=_0x25f1ff[_0x22f97f];if(_0x22f9['NbfutX']===undefined){var _0x10a622=function(_0x1ab368){const _0x7a8707='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x57bcc7='',_0x4d9740='';for(let _0x15fb1d=0x0,_0x36ac19,_0x13aa8c,_0x3fc852=0x0;_0x13aa8c=_0x1ab368['charAt'](_0x3fc852++);~_0x13aa8c&&(_0x36ac19=_0x15fb1d%0x4?_0x36ac19*0x40+_0x13aa8c:_0x13aa8c,_0x15fb1d++%0x4)?_0x57bcc7+=String['fromCharCode'](0xff&_0x36ac19>>(-0x2*_0x15fb1d&0x6)):0x0){_0x13aa8c=_0x7a8707['indexOf'](_0x13aa8c);}for(let _0x4226f9=0x0,_0x9e1502=_0x57bcc7['length'];_0x4226f9<_0x9e1502;_0x4226f9++){_0x4d9740+='%'+('00'+_0x57bcc7['charCodeAt'](_0x4226f9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4d9740);};_0x22f9['lDsaOj']=_0x10a622,_0x1b1974=arguments,_0x22f9['NbfutX']=!![];}const _0x25a1d6=_0x25f1ff[0x0],_0x2443db=_0x22f97f+_0x25a1d6,_0x4db5d9=_0x1b1974[_0x2443db];return!_0x4db5d9?(_0x3054fe=_0x22f9['lDsaOj'](_0x3054fe),_0x1b1974[_0x2443db]=_0x3054fe):_0x3054fe=_0x4db5d9,_0x3054fe;},_0x22f9(_0x1b1974,_0x1a8e87);}import{jsx as _0x4a1f78,jsxs as _0x374f71}from'react/jsx-runtime';function N({messages:_0x2e1a2a,metadata:_0x5d5521,messageCount:_0x129951}){const _0x1fb32b={_0x58b068:0x21f,_0x58fc5f:0x575,_0x99d854:0x571,_0x47a5c4:0x57f,_0x124470:0x580,_0x2a5a52:0x57d,_0x4350d6:0x583,_0x19aa41:0x572},_0x13f937={_0x5b585e:0x5b};function _0x5537e1(_0x22b2ed,_0x66cadb,_0x456b93,_0x511546){return _0x22f9(_0x22b2ed-0x3bf,_0x456b93);}let {exit:_0x111bde}=_0x460c9c();function _0x575420(_0x119118,_0xb655ac,_0x201189,_0x44b130){return _0x22f9(_0x44b130-_0x13f937._0x5b585e,_0xb655ac);}return _0x9e1502(()=>{let _0x3b3ded=setTimeout(()=>{_0x111bde();},0x12c);return()=>clearTimeout(_0x3b3ded);},[_0x111bde]),_0x374f71(_0x430f77,{'flexDirection':_0x575420(0x230,0x220,0x21b,_0x1fb32b._0x58b068),'height':_0x5537e1(_0x1fb32b._0x58fc5f,0x566,0x56e,0x56d),'width':_0x5537e1(_0x1fb32b._0x58fc5f,0x565,0x57d,0x582),'children':[_0x4a1f78(_0x3fc852,{'messages':_0x2e1a2a},_0x5537e1(_0x1fb32b._0x99d854,0x574,0x574,0x575)),_0x4a1f78(_0x57bcc7,{'busy':!0x1,'vimModeEnabled':!0x1,'hasActiveCommand':!0x1}),_0x4a1f78(_0x7a8707,{'status':'Demo\x20Mode','lastMetadata':_0x5d5521,'toolApprovalMode':!0x1,'vimModeEnabled':!0x1,'vimMode':_0x5537e1(_0x1fb32b._0x47a5c4,_0x1fb32b._0x124470,0x56e,0x582),'workingDirectory':process[_0x5537e1(_0x1fb32b._0x2a5a52,_0x1fb32b._0x4350d6,0x58c,0x589)]()}),_0x4a1f78(_0x430f77,{'paddingX':0x1,'borderStyle':'single','borderColor':'yellow','marginTop':-0x1,'children':_0x374f71(_0x2b4605,{'color':'yellow','children':[_0x5537e1(0x57e,_0x1fb32b._0x124470,_0x1fb32b._0x19aa41,0x58d),_0x129951,'\x20messages\x20-\x20Auto-exiting\x20in\x203s...']})})]});}var b={'providers':{},'session':{'memPersist':!0x1},'requireToolApproval':!0x1};function S({messages:_0x437377,metadata:_0x487332,messageCount:_0x1a44b4}){return _0x4a1f78(_0x13aa8c,{'children':_0x4a1f78(_0x1ab368,{'initialConfig':b,'children':_0x4a1f78(_0x36ac19,{'children':_0x4a1f78(_0x15fb1d,{'requireToolApproval':!0x1,'onError':_0x2afc4d=>console['error'](_0x2afc4d),'children':_0x4a1f78(_0x4d9740,{'children':_0x4a1f78(N,{'messages':_0x437377,'metadata':_0x487332,'messageCount':_0x1a44b4})})})})})});}function _0x25f1(){const _0x2f6528=['CgfYC2u','BgvUz3rO','DxrMltG','mtiZoxfxDxzrzq','zxjYB3i','ChvZAa','mty3nJuXmhHVC2TVta','nJrpwfDLDvu','ru5pru5u','CMvHzezPBgu','mtiZEerSrNve','zgvTBW','odC1nJC2EeP4tg91','mte3nte3CLjPsNfP','y2XLyxi','mtaWjq','AgLZDg9YEvbHDgG','mtjmDvzuBu8','owrfzKLQrq','rxjYB3i6ie5Vig1LC3nHz2vZigzVDw5KigLUigHPC3rVCNKGzMLSzq','mtm0mJG3ofrPr1HPuq','rxjYB3iGBg9HzgLUzYbKzw1VoIa','y2XP','y3DK','8j+oQcbezw1Vie1VzguGlsbmB2fKzwqG','Aw5Zzxj0','CM9Szq','otm3mdmYohr0yMXrta','nxP5BuPgBW','y29SDw1U','Bg9N','rxjYB3i6ieHPC3rVCNKGzMLSzsbUB3qGzM91BMq6ia','CMvZB2X2zq','mtiWotjqChrryu8','zxHPDa'];_0x25f1=function(){return _0x2f6528;};return _0x25f1();}var M=class{constructor(_0x53c46c){const _0x1b187f={_0x46ff76:0x204,_0x381eb3:0x1f8},_0x4e5054={_0x58b306:0x3bb};function _0x3698ab(_0x32643a,_0x3d35a8,_0x1143d7,_0x9c6eb6){return _0x22f9(_0x3d35a8- -_0x4e5054._0x58b306,_0x1143d7);}this[_0x3698ab(-0x212,-_0x1b187f._0x46ff76,-0x1f9,-_0x1b187f._0x381eb3)]=_0x53c46c;}async['run'](){const _0x492506={_0x65f537:0x9b,_0x556caf:0x80,_0x78ad40:0x7a,_0x4b3985:0x7e,_0x430d59:0x73,_0x52af92:0x6e,_0x53df38:0x5d,_0x3b28ca:0x6b,_0x46fe12:0x75,_0xfd4a4c:0x6f,_0x3808d6:0x8a,_0x19c623:0x25a,_0xdb1c00:0x25a,_0x301f43:0x258,_0x8c2242:0x7e,_0x57c538:0x8b,_0x443db1:0x6d,_0x1f7cb9:0x6a,_0x343fe9:0x25a,_0x3b789e:0x70,_0x2cef5f:0x7b,_0x401b6d:0x6f,_0x582586:0x245,_0x71c2cb:0x249,_0x5209d7:0x85,_0x9267da:0x75,_0x41dd0c:0x252,_0x24e4f0:0x267,_0x3ff2ef:0x262,_0x11314f:0x25b,_0x1a1f0b:0x241,_0x41bb13:0x25c,_0x4b5ce9:0x6f,_0x5bf884:0x61,_0x1fcf5c:0x76,_0x4435dc:0x8a,_0x4122ef:0x85,_0x341ede:0x262,_0x407751:0x265,_0x1dbbac:0x25f,_0x22148c:0x244,_0x200485:0x249,_0x4822fb:0x25e,_0x199e75:0x250,_0x3ab6de:0x251,_0x19fdb2:0x238};function _0x41821f(_0x2f748d,_0x57a7e8,_0x58c869,_0x241770){return _0x22f9(_0x2f748d- -0x13c,_0x57a7e8);}function _0x342b84(_0x40316b,_0x59159c,_0x203840,_0x34ae63){return _0x22f9(_0x59159c-0x9d,_0x40316b);}try{let _0x2d51cd=_0xc6ba93[_0x41821f(0x8b,_0x492506._0x65f537,_0x492506._0x556caf,_0x492506._0x78ad40)](this[_0x41821f(0x7b,0x78,_0x492506._0x4b3985,_0x492506._0x430d59)]),_0x164b30=await _0x3426de[_0x41821f(0x74,0x75,0x77,0x76)](_0x2d51cd,_0x41821f(0x6d,_0x492506._0x52af92,0x5d,_0x492506._0x53df38)),_0x1eabdc=JSON[_0x41821f(_0x492506._0x3b28ca,_0x492506._0x46fe12,_0x492506._0x52af92,0x77)](_0x164b30);(!_0x1eabdc[_0x41821f(0x81,_0x492506._0xfd4a4c,_0x492506._0x3808d6,0x71)]||_0x1eabdc[_0x342b84(0x260,_0x492506._0x19c623,_0x492506._0xdb1c00,_0x492506._0x301f43)]['length']===0x0)&&(console['error'](_0x41821f(_0x492506._0x8c2242,_0x492506._0x57c538,_0x492506._0x556caf,_0x492506._0x443db1)),process[_0x41821f(_0x492506._0x1f7cb9,0x5f,0x72,0x74)](0x1));let _0x250ffb=_0x1eabdc[_0x342b84(0x24f,_0x492506._0x343fe9,0x24d,0x268)],_0x23d8c2=[];for(let _0x41341a of _0x250ffb)_0x23d8c2[_0x41821f(0x70,_0x492506._0x3b789e,_0x492506._0x2cef5f,_0x492506._0x401b6d)](..._0x4226f9(_0x41341a));let _0x439fab=null;for(let _0x4fb81b=_0x250ffb[_0x342b84(0x24b,_0x492506._0x582586,0x24b,_0x492506._0x71c2cb)]-0x1;_0x4fb81b>=0x0;_0x4fb81b--)if(_0x250ffb[_0x4fb81b][_0x41821f(_0x492506._0x5209d7,_0x492506._0x9267da,0x87,0x93)]==='assistant'){_0x439fab={'totalTokens':0x0};break;}console[_0x342b84(0x250,_0x492506._0x41dd0c,0x25c,0x24e)](),console[_0x342b84(_0x492506._0x24e4f0,_0x492506._0x3ff2ef,_0x492506._0x11314f,0x26c)]('\x1bc');let {waitUntilExit:_0x3ca59d}=_0x18afe0(_0x4a1f78(S,{'messages':_0x23d8c2,'metadata':_0x439fab,'messageCount':_0x250ffb['length']}),{'exitOnCtrlC':!0x0,'patchConsole':!0x0,'maxFps':0x1e});await _0x3ca59d();}catch(_0x1af45e){if(_0x1af45e['code']===_0x342b84(_0x492506._0x1a1f0b,0x24c,0x25c,_0x492506._0x41bb13))console[_0x41821f(_0x492506._0x4b5ce9,_0x492506._0x5bf884,_0x492506._0x8c2242,_0x492506._0x1fcf5c)](_0x41821f(_0x492506._0x4435dc,_0x492506._0x4122ef,0x8e,0x97)+this['historyPath']);else{if(_0x1af45e instanceof SyntaxError)console['error']('Error:\x20Invalid\x20JSON\x20in\x20history\x20file:\x20'+this[_0x342b84(_0x492506._0x341ede,0x254,_0x492506._0x407751,_0x492506._0x1dbbac)]);else{let _0x13cf49=_0x1af45e instanceof Error?_0x1af45e['message']:String(_0x1af45e);console[_0x342b84(_0x492506._0x22148c,0x248,_0x492506._0x200485,0x24a)](_0x342b84(_0x492506._0x4822fb,0x259,0x252,_0x492506._0x11314f)+_0x13cf49);}}process[_0x342b84(_0x492506._0x199e75,0x243,_0x492506._0x3ab6de,_0x492506._0x19fdb2)](0x1);}}};export{M as DemoMode};