@nuvin/nuvin-cli 1.3.0 → 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(_0x4ad68e,_0x3b5e68){const _0x576836={_0xc62cf9:0x15,_0x102595:0x1a7,_0x4d3049:0x197,_0x3def2b:0x18c,_0x3d03e1:0x22,_0x5602b0:0x1a6,_0x11cc49:0x1a5,_0x4eb06e:0x26,_0x349efa:0x1a1,_0xe82dd2:0x1b2,_0x4ee577:0xb,_0x5c876d:0x1,_0x3dd377:0x19,_0x3e5122:0xe},_0xd123a7={_0x3adab5:0x122};function _0x3baad8(_0x542cb3,_0x4fbc57,_0x3ca525,_0xe5d4f4){return _0x5ec0(_0x3ca525- -0x2a5,_0x542cb3);}function _0x2d19a9(_0x117947,_0x5e10a7,_0xc4e89d,_0x558a8b){return _0x5ec0(_0x117947- -_0xd123a7._0x3adab5,_0xc4e89d);}const _0x3616b4=_0x4ad68e();while(!![]){try{const _0x3bbd12=parseInt(_0x2d19a9(-_0x576836._0xc62cf9,-0x12,-0x7,-0x1c))/0x1*(-parseInt(_0x3baad8(-0x19d,-_0x576836._0x102595,-0x19b,-0x19f))/0x2)+parseInt(_0x3baad8(-_0x576836._0x4d3049,-0x17d,-_0x576836._0x3def2b,-0x17d))/0x3+-parseInt(_0x2d19a9(-0x22,-_0x576836._0x3d03e1,-0x21,-0x1d))/0x4*(parseInt(_0x2d19a9(-0xd,-0x4,-0x17,0x3))/0x5)+-parseInt(_0x3baad8(-0x1b4,-0x1b3,-_0x576836._0x5602b0,-_0x576836._0x11cc49))/0x6*(-parseInt(_0x2d19a9(-0x21,-0x14,-_0x576836._0x4eb06e,-0x12))/0x7)+parseInt(_0x3baad8(-0x1a0,-0x1ab,-_0x576836._0x349efa,-_0x576836._0xe82dd2))/0x8+parseInt(_0x2d19a9(-_0x576836._0x4ee577,-0x1,-_0x576836._0x5c876d,-0xb))/0x9+-parseInt(_0x2d19a9(-_0x576836._0x3dd377,-0x18,-_0x576836._0x3e5122,-0x27))/0xa*(parseInt(_0x2d19a9(-0xe,-_0x576836._0x4ee577,-0x6,-0x1c))/0xb);if(_0x3bbd12===_0x3b5e68)break;else _0x3616b4['push'](_0x3616b4['shift']());}catch(_0x14cadb){_0x3616b4['push'](_0x3616b4['shift']());}}}(_0x40cd,0xd70c1));import{A as _0x13ac73,E as _0x15098b,G as _0xa0c10c,K as _0x34b85d,W as _0x286766,i as _0x3141e2,p,y as _0x49947a}from'./chunk-7ALAQ5HX.js';import{d as _0x247ed2}from'./chunk-PTCSZTUW.js';import'./chunk-AJHDLTY3.js';import{useEffect as _0x4169ca}from'react';function _0x40cd(){const _0x1e8378=['rgvTBYbnB2rL','rxjYB3iGBg9HzgLUzYbKzw1VoIa','mZK5nti4mfL3CgD0za','ig1LC3nHz2vZic0Gqxv0BY1LEgL0Aw5NigLUidnZlI4U','CM9Szq','EwvSBg93','DxrMltG','nJqWyM1ozhjH','mKfRz3DoqG','AgLZDg9YEvbHDgG','Aw5Zzxj0','mty3odaWnLjevLPYuq','y2XP','mtaWjq','zxjYB3i','y3DK','ChvZAa','CMvHzezPBgu','ntu0nJjgsfjWzNq','mtbuC1jLDLC','zxHPDa','ndi2odyWmxPHCujusG','rxjYB3i6ieLUDMfSAwqGsLnptIbPBIbOAxn0B3j5igzPBgu6ia','ndaYnJyZm3HsrMXeDa','y29Kzq','C2LUz2XL','BgvUz3rO','yxnZAxn0yw50','y29SDw1U','rxjYB3i6ieHPC3rVCNKGzMLSzsbUB3qGzM91BMq6ia','Bg9N','nZm0nZKXognXt1jIBq','mtmXoda3mNHzsM5wyW','n1f5zfbdrW'];_0x40cd=function(){return _0x1e8378;};return _0x40cd();}import{render as _0x4919fb}from'ink';import{Box as _0xb2d013,Text as _0x2304df,useApp as _0x4f0d27}from'ink';import*as _0x17d4df from'fs/promises';import*as _0x4114de from'path';import{jsx as _0x559021,jsxs as _0x552d2b}from'react/jsx-runtime';function N({messages:_0x58a08b,metadata:_0x24cb51,messageCount:_0x5cc4f9}){const _0x36419e={_0x5a17cc:0x210,_0x24315b:0x20e,_0x1f3d5b:0x229,_0x27dd57:0x21f,_0x477e96:0x217,_0x187e3b:0x20d,_0x4c70e9:0x212,_0x1edb69:0x215,_0x2fbd79:0x207,_0xfdee4c:0x22f,_0x1bebad:0x227,_0x4a5aa1:0x216,_0x46e027:0x219},_0x3d9b8e={_0x3fec68:0x31e},_0x327bb8={_0x327cbe:0x32e};function _0x2f06d5(_0x2b22c2,_0x299e92,_0x57f261,_0x5af015){return _0x5ec0(_0x299e92- -_0x327bb8._0x327cbe,_0x2b22c2);}let {exit:_0x4fe148}=_0x4f0d27();function _0x47ad72(_0x1dc296,_0x2dd72c,_0x1c8c28,_0x105a16){return _0x5ec0(_0x105a16- -_0x3d9b8e._0x3fec68,_0x1dc296);}return _0x4169ca(()=>{let _0x2e08c0=setTimeout(()=>{_0x4fe148();},0x12c);return()=>clearTimeout(_0x2e08c0);},[_0x4fe148]),_0x552d2b(_0xb2d013,{'flexDirection':_0x2f06d5(-0x21f,-_0x36419e._0x5a17cc,-_0x36419e._0x24315b,-0x20f),'height':_0x2f06d5(-_0x36419e._0x1f3d5b,-_0x36419e._0x27dd57,-0x223,-0x228),'width':_0x2f06d5(-0x20f,-0x21f,-0x219,-0x21c),'children':[_0x559021(_0x13ac73,{'messages':_0x58a08b},'demo'),_0x559021(_0x34b85d,{'busy':!0x1,'vimModeEnabled':!0x1,'hasActiveCommand':!0x1}),_0x559021(_0xa0c10c,{'status':_0x47ad72(-0x212,-_0x36419e._0x477e96,-0x220,-0x21c),'lastMetadata':_0x24cb51,'toolApprovalMode':!0x1,'vimModeEnabled':!0x1,'vimMode':_0x47ad72(-_0x36419e._0x187e3b,-0x205,-0x211,-_0x36419e._0x4c70e9),'workingDirectory':process[_0x47ad72(-0x217,-0x214,-0x213,-_0x36419e._0x187e3b)]()}),_0x559021(_0xb2d013,{'paddingX':0x1,'borderStyle':_0x2f06d5(-_0x36419e._0x1edb69,-0x213,-0x21f,-_0x36419e._0x2fbd79),'borderColor':_0x2f06d5(-_0x36419e._0xfdee4c,-_0x36419e._0x1bebad,-_0x36419e._0x4a5aa1,-0x219),'marginTop':-0x1,'children':_0x552d2b(_0x2304df,{'color':_0x47ad72(-0x21c,-0x206,-0x20b,-_0x36419e._0x477e96),'children':['🎨\x20Demo\x20Mode\x20-\x20Loaded\x20',_0x5cc4f9,_0x47ad72(-0x220,-0x21f,-0x208,-_0x36419e._0x46e027)]})})]});}var b={'providers':{},'session':{'memPersist':!0x1},'requireToolApproval':!0x1};function S({messages:_0x43f33f,metadata:_0x56d8b4,messageCount:_0x534259}){function _0x3b5578(_0x552c10,_0xea8d05,_0x2e24a8,_0x49d180){return _0x5ec0(_0xea8d05- -0x2c,_0x49d180);}return _0x559021(_0x49947a,{'children':_0x559021(_0x15098b,{'initialConfig':b,'children':_0x559021(p,{'children':_0x559021(_0x3141e2,{'requireToolApproval':!0x1,'onError':_0x436d74=>console[_0x3b5578(0xee,0xe4,0xd4,0xe8)](_0x436d74),'children':_0x559021(_0x286766,{'children':_0x559021(N,{'messages':_0x43f33f,'metadata':_0x56d8b4,'messageCount':_0x534259})})})})})});}function _0x5ec0(_0x23aadf,_0x2e28c0){const _0x40cdf6=_0x40cd();return _0x5ec0=function(_0x5ec07c,_0x3021f3){_0x5ec07c=_0x5ec07c-0xfd;let _0x45ff49=_0x40cdf6[_0x5ec07c];if(_0x5ec0['zRjhun']===undefined){var _0x17db79=function(_0x13ac73){const _0x15098b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xa0c10c='',_0x34b85d='';for(let _0x286766=0x0,_0x3141e2,_0x49947a,_0x247ed2=0x0;_0x49947a=_0x13ac73['charAt'](_0x247ed2++);~_0x49947a&&(_0x3141e2=_0x286766%0x4?_0x3141e2*0x40+_0x49947a:_0x49947a,_0x286766++%0x4)?_0xa0c10c+=String['fromCharCode'](0xff&_0x3141e2>>(-0x2*_0x286766&0x6)):0x0){_0x49947a=_0x15098b['indexOf'](_0x49947a);}for(let _0x4169ca=0x0,_0x4919fb=_0xa0c10c['length'];_0x4169ca<_0x4919fb;_0x4169ca++){_0x34b85d+='%'+('00'+_0xa0c10c['charCodeAt'](_0x4169ca)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x34b85d);};_0x5ec0['RLxYZw']=_0x17db79,_0x23aadf=arguments,_0x5ec0['zRjhun']=!![];}const _0x32599b=_0x40cdf6[0x0],_0x11292b=_0x5ec07c+_0x32599b,_0x2937a7=_0x23aadf[_0x11292b];return!_0x2937a7?(_0x45ff49=_0x5ec0['RLxYZw'](_0x45ff49),_0x23aadf[_0x11292b]=_0x45ff49):_0x45ff49=_0x2937a7,_0x45ff49;},_0x5ec0(_0x23aadf,_0x2e28c0);}var M=class{constructor(_0x50be2a){this['historyPath']=_0x50be2a;}async['run'](){const _0x25d2c5={_0x22f8f8:0x12d,_0x3bf229:0x11f,_0x4c24dc:0x12f,_0x58aec3:0x126,_0x2d6f9b:0x134,_0x208ba5:0x147,_0x37ec53:0x2a0,_0x4f7bbd:0x2a6,_0x556297:0x12c,_0x4a3927:0x11d,_0x545c5f:0x12b,_0x1f347e:0x130,_0x2be212:0x12d,_0xd0e1b2:0x12a,_0x154076:0x124,_0x4c7e51:0x11e,_0x6ef05b:0x2a2,_0x123d12:0x2ae,_0x4a841f:0x130,_0x12769b:0x11d,_0x4dd87d:0x2b6,_0x1f6579:0x2a9,_0x1d8986:0x2aa,_0x4bf1ec:0x127,_0x442d7f:0x128,_0x20eb05:0x126,_0x324aee:0x121,_0x17e564:0x29d,_0x40d4b5:0x150,_0x9cd20a:0x2a3,_0x11dab3:0x2a4,_0x565166:0x29a,_0x164bb8:0x138,_0x1adbe5:0x131,_0x179979:0x13e,_0x4aa542:0x141,_0x462329:0x28d,_0x3d8ea1:0x2a4},_0x3ba428={_0x45be3a:0x240},_0x4c19d3={_0x2fc75b:0x3b4};function _0x26e35d(_0xb952d1,_0x543219,_0x318568,_0x8392c3){return _0x5ec0(_0xb952d1- -_0x4c19d3._0x2fc75b,_0x318568);}function _0x4086d5(_0x4d21f8,_0x5e9937,_0x18d55f,_0x2d231b){return _0x5ec0(_0x4d21f8- -_0x3ba428._0x45be3a,_0x5e9937);}try{let _0x398c7b=_0x4114de['resolve'](this[_0x4086d5(-0x135,-0x12a,-0x136,-0x12f)]),_0x537bd7=await _0x17d4df[_0x4086d5(-_0x25d2c5._0x22f8f8,-_0x25d2c5._0x3bf229,-_0x25d2c5._0x4c24dc,-_0x25d2c5._0x58aec3)](_0x398c7b,_0x4086d5(-0x138,-_0x25d2c5._0x2d6f9b,-_0x25d2c5._0x208ba5,-0x143)),_0x306e63=JSON['parse'](_0x537bd7);(!_0x306e63['cli']||_0x306e63[_0x26e35d(-0x2a6,-_0x25d2c5._0x37ec53,-0x2a5,-_0x25d2c5._0x4f7bbd)][_0x4086d5(-0x124,-_0x25d2c5._0x556297,-_0x25d2c5._0x4a3927,-_0x25d2c5._0x545c5f)]===0x0)&&(console[_0x4086d5(-_0x25d2c5._0x1f347e,-_0x25d2c5._0x2be212,-0x131,-0x13a)]('Error:\x20No\x20messages\x20found\x20in\x20history\x20file'),process[_0x4086d5(-_0x25d2c5._0xd0e1b2,-_0x25d2c5._0x154076,-0x131,-_0x25d2c5._0x4c7e51)](0x1));let _0xa89531=_0x306e63['cli'],_0x4a04f2=[];for(let _0x51450e of _0xa89531)_0x4a04f2[_0x26e35d(-_0x25d2c5._0x6ef05b,-0x297,-0x2a2,-_0x25d2c5._0x4f7bbd)](..._0x247ed2(_0x51450e));let _0x187cb0=null;for(let _0x41487b=_0xa89531['length']-0x1;_0x41487b>=0x0;_0x41487b--)if(_0xa89531[_0x41487b][_0x26e35d(-_0x25d2c5._0x123d12,-0x2b7,-_0x25d2c5._0x4f7bbd,-0x2b8)]===_0x4086d5(-0x123,-_0x25d2c5._0x4a841f,-0x118,-_0x25d2c5._0x12769b)){_0x187cb0={'totalTokens':0x0};break;}console['clear'](),console[_0x26e35d(-_0x25d2c5._0x4dd87d,-_0x25d2c5._0x1f6579,-0x2b7,-_0x25d2c5._0x1d8986)]('\x1bc');let {waitUntilExit:_0x97ed37}=_0x4919fb(_0x559021(S,{'messages':_0x4a04f2,'metadata':_0x187cb0,'messageCount':_0xa89531[_0x4086d5(-0x124,-_0x25d2c5._0x4bf1ec,-0x115,-_0x25d2c5._0x442d7f)]}),{'exitOnCtrlC':!0x0,'patchConsole':!0x0,'maxFps':0x1e});await _0x97ed37();}catch(_0x218eb2){if(_0x218eb2[_0x4086d5(-_0x25d2c5._0x20eb05,-_0x25d2c5._0x324aee,-0x11c,-0x125)]==='ENOENT')console[_0x26e35d(-0x2a4,-_0x25d2c5._0x17e564,-0x295,-0x2a9)](_0x4086d5(-0x143,-0x139,-0x146,-_0x25d2c5._0x40d4b5)+this[_0x26e35d(-_0x25d2c5._0x1f6579,-0x29f,-0x2a2,-0x2ba)]);else{if(_0x218eb2 instanceof SyntaxError)console[_0x26e35d(-0x2a4,-_0x25d2c5._0x9cd20a,-_0x25d2c5._0x11dab3,-_0x25d2c5._0x565166)](_0x4086d5(-_0x25d2c5._0x442d7f,-0x118,-_0x25d2c5._0x164bb8,-_0x25d2c5._0x1adbe5)+this['historyPath']);else{let _0x4c7a2a=_0x218eb2 instanceof Error?_0x218eb2['message']:String(_0x218eb2);console[_0x4086d5(-0x130,-_0x25d2c5._0x2d6f9b,-_0x25d2c5._0x179979,-0x12c)](_0x4086d5(-0x13d,-_0x25d2c5._0x4aa542,-0x13e,-_0x25d2c5._0x4a841f)+_0x4c7a2a);}}process[_0x26e35d(-0x29e,-_0x25d2c5._0x462329,-0x2a4,-_0x25d2c5._0x3d8ea1)](0x1);}}};export{M as DemoMode};