@nuvin/nuvin-cli 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +0,0 @@
1
- (function(_0x27581f,_0x568133){const _0x514911={_0x1c88b6:0x3e2,_0x2eae69:0x3fa,_0x31f692:0x3f6,_0x236ea1:0x4f9,_0x4eb972:0x4f7,_0x33c226:0x4f1,_0x751a29:0x40f,_0xde77a8:0x405,_0xc4d708:0x3f3,_0x109cf6:0x3fa,_0xbce5f:0x3f6,_0x2636f8:0x3ed,_0x3d420a:0x3ff,_0x3c820a:0x3f3,_0xb5c4e1:0x405,_0x3786b0:0x404,_0x34f53d:0x3f3,_0x1e2db6:0x3ee,_0xb4e158:0x3ee,_0xc26373:0x504,_0x5705d4:0x4ff,_0x3811d4:0x4f4,_0x3a9118:0x4ed},_0x7a545e={_0x34fa32:0x34b},_0x437feb=_0x27581f();function _0x421dcb(_0x310580,_0x83aef6,_0x10fe0c,_0x86d626){return _0x4ec1(_0x10fe0c-_0x7a545e._0x34fa32,_0x86d626);}function _0x1eb337(_0x3e3d67,_0xab163c,_0x48a91a,_0x5b2160){return _0x4ec1(_0x5b2160-0x254,_0x48a91a);}while(!![]){try{const _0x4e88ab=parseInt(_0x1eb337(_0x514911._0x1c88b6,_0x514911._0x2eae69,_0x514911._0x31f692,0x3eb))/0x1+-parseInt(_0x421dcb(0x4ed,_0x514911._0x236ea1,0x4ea,0x4e1))/0x2*(parseInt(_0x421dcb(_0x514911._0x4eb972,0x4ea,_0x514911._0x33c226,0x4f8))/0x3)+-parseInt(_0x1eb337(0x3f8,0x3f6,_0x514911._0x751a29,_0x514911._0xde77a8))/0x4*(parseInt(_0x1eb337(_0x514911._0xc4d708,_0x514911._0x109cf6,0x405,_0x514911._0xbce5f))/0x5)+parseInt(_0x1eb337(_0x514911._0x2636f8,_0x514911._0x3d420a,_0x514911._0x3c820a,0x3f5))/0x6*(-parseInt(_0x1eb337(_0x514911._0xb5c4e1,0x406,_0x514911._0x3786b0,0x3fc))/0x7)+parseInt(_0x1eb337(_0x514911._0x34f53d,0x407,0x3fe,0x403))/0x8+-parseInt(_0x1eb337(0x3f7,0x3e2,_0x514911._0x1e2db6,_0x514911._0xb4e158))/0x9*(-parseInt(_0x421dcb(_0x514911._0xc26373,0x4f1,0x4f6,_0x514911._0x5705d4))/0xa)+parseInt(_0x421dcb(_0x514911._0x3811d4,_0x514911._0x3a9118,0x4e4,0x4dc))/0xb;if(_0x4e88ab===_0x568133)break;else _0x437feb['push'](_0x437feb['shift']());}catch(_0x2e1e1d){_0x437feb['push'](_0x437feb['shift']());}}}(_0x7e06,0xc47da));import{C as _0x26ac38,E as _0x5394b3,J as _0x479d52,U as _0x45f381,i as _0x16aa0b,n as _0x239ae7,w as _0x4ef9ff,y as _0x9815fd}from'./chunk-X2KQB2F5.js';import{d as _0x551135}from'./chunk-36SOPILP.js';import{useEffect as _0x3e834d}from'react';import{render as _0x562def}from'ink';import{Box as _0xd3aaa8,Text as _0x462e97,useApp as _0xada06d}from'ink';import*as _0x127f28 from'fs/promises';import*as _0x1771a1 from'path';import{jsx as _0x2a0a1c,jsxs as _0x410a5a}from'react/jsx-runtime';function _0x4ec1(_0x362fe4,_0x4c420b){const _0x7e064e=_0x7e06();return _0x4ec1=function(_0x4ec124,_0x454a71){_0x4ec124=_0x4ec124-0x193;let _0x42be2f=_0x7e064e[_0x4ec124];if(_0x4ec1['bJpLdU']===undefined){var _0x4b17a1=function(_0x26ac38){const _0x5394b3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x479d52='',_0x45f381='';for(let _0x16aa0b=0x0,_0x239ae7,_0x4ef9ff,_0x9815fd=0x0;_0x4ef9ff=_0x26ac38['charAt'](_0x9815fd++);~_0x4ef9ff&&(_0x239ae7=_0x16aa0b%0x4?_0x239ae7*0x40+_0x4ef9ff:_0x4ef9ff,_0x16aa0b++%0x4)?_0x479d52+=String['fromCharCode'](0xff&_0x239ae7>>(-0x2*_0x16aa0b&0x6)):0x0){_0x4ef9ff=_0x5394b3['indexOf'](_0x4ef9ff);}for(let _0x551135=0x0,_0x3e834d=_0x479d52['length'];_0x551135<_0x3e834d;_0x551135++){_0x45f381+='%'+('00'+_0x479d52['charCodeAt'](_0x551135)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x45f381);};_0x4ec1['hVEkFS']=_0x4b17a1,_0x362fe4=arguments,_0x4ec1['bJpLdU']=!![];}const _0x1608ba=_0x7e064e[0x0],_0x503e98=_0x4ec124+_0x1608ba,_0x1d854f=_0x362fe4[_0x503e98];return!_0x1d854f?(_0x42be2f=_0x4ec1['hVEkFS'](_0x42be2f),_0x362fe4[_0x503e98]=_0x42be2f):_0x42be2f=_0x1d854f,_0x42be2f;},_0x4ec1(_0x362fe4,_0x4c420b);}function N({messages:_0x1d676c,metadata:_0x441ed5,messageCount:_0xe7b9d}){const _0x46c89a={_0x1d1ab0:0x46,_0x2e151a:0x15b,_0x52a92e:0x14e,_0x4a5ce5:0x145,_0x275b35:0x15a,_0x420825:0x38,_0x2568fa:0x4f,_0x276dcd:0x142,_0x5f90f0:0x13d,_0x4736c5:0x2b};function _0x736bc2(_0x1c7f84,_0x383dd7,_0x16f27e,_0x3918c0){return _0x4ec1(_0x16f27e- -0x2f7,_0x1c7f84);}let {exit:_0x58be01}=_0xada06d();function _0x417b37(_0x2f78ff,_0xecb78d,_0x436ba1,_0x153b38){return _0x4ec1(_0x153b38- -0x15e,_0xecb78d);}return _0x3e834d(()=>{let _0x5ba8c8=setTimeout(()=>{_0x58be01();},0x12c);return()=>clearTimeout(_0x5ba8c8);},[_0x58be01]),_0x410a5a(_0xd3aaa8,{'flexDirection':'column','height':_0x417b37(0x4a,_0x46c89a._0x1d1ab0,0x4f,0x4b),'width':_0x736bc2(-0x15b,-_0x46c89a._0x2e151a,-_0x46c89a._0x52a92e,-_0x46c89a._0x4a5ce5),'children':[_0x2a0a1c(_0x9815fd,{'messages':_0x1d676c},_0x736bc2(-0x156,-_0x46c89a._0x275b35,-_0x46c89a._0x275b35,-0x164)),_0x2a0a1c(_0x479d52,{'busy':!0x1,'vimModeEnabled':!0x1,'hasActiveCommand':!0x1}),_0x2a0a1c(_0x5394b3,{'status':'Demo\x20Mode','lastMetadata':_0x441ed5,'toolApprovalMode':!0x1,'vimModeEnabled':!0x1,'vimMode':'insert','workingDirectory':process[_0x417b37(_0x46c89a._0x420825,0x51,_0x46c89a._0x2568fa,0x45)]()}),_0x2a0a1c(_0xd3aaa8,{'paddingX':0x1,'borderStyle':'single','borderColor':_0x736bc2(-0x148,-_0x46c89a._0x276dcd,-0x14a,-_0x46c89a._0x5f90f0),'marginTop':-0x1,'children':_0x410a5a(_0x462e97,{'color':'yellow','children':['🎨\x20Demo\x20Mode\x20-\x20Loaded\x20',_0xe7b9d,_0x417b37(_0x46c89a._0x420825,0x2a,_0x46c89a._0x4736c5,0x3a)]})})]});}var b={'providers':{},'session':{'memPersist':!0x1},'requireToolApproval':!0x1};function S({messages:_0x52f877,metadata:_0x2a26ab,messageCount:_0x4649c2}){const _0x41e9f7={_0x27a7f6:0x27d};function _0x3ca7cb(_0x14ce43,_0x25326f,_0x4ad739,_0x4760ac){return _0x4ec1(_0x25326f-_0x41e9f7._0x27a7f6,_0x4ad739);}return _0x2a0a1c(_0x4ef9ff,{'children':_0x2a0a1c(_0x26ac38,{'initialConfig':b,'children':_0x2a0a1c(_0x239ae7,{'children':_0x2a0a1c(_0x16aa0b,{'requireToolApproval':!0x1,'onError':_0x337cd9=>console[_0x3ca7cb(0x413,0x419,0x419,0x422)](_0x337cd9),'children':_0x2a0a1c(_0x45f381,{'children':_0x2a0a1c(N,{'messages':_0x52f877,'metadata':_0x2a26ab,'messageCount':_0x4649c2})})})})})});}function _0x254770(_0x3d3f5f,_0x259003,_0x5eadfa,_0x40df97){const _0x44d19c={_0x33158a:0x90};return _0x4ec1(_0x259003- -_0x44d19c._0x33158a,_0x40df97);}function _0x7e06(){const _0x4f6253=['mJaXmda4wvb1BKX2','y29Kzq','nZq3ndi4vLbVDLze','y2XLyxi','rxjYB3i6ieHPC3rVCNKGzMLSzsbUB3qGzM91BMq6ia','AgLZDg9YEvbHDgG','BgvUz3rO','yxnZAxn0yw50','ntC4ntK2DfvcEg1H','ig1LC3nHz2vZic0Gqxv0BY1LEgL0Aw5NigLUidnZlI4U','mJeZmZe3mdz0CfjPvNC','otCYAM5StuX0','ru5pru5u','zxjYB3i','zgvTBW','BwvZC2fNzq','mtu1nty2BeL1Cwjj','zxHPDa','mtq0BgnbDeHc','mJvdvKDNCvi','y3DK','CNvU','CMvZB2X2zq','mZnhCgTiDg8','y2XP','mta4nJy4seHbBvDf','mtaWjq','CMvHzezPBgu','mZKYotb3zgf0r28','ChvZAa','EwvSBg93','DxrMltG'];_0x7e06=function(){return _0x4f6253;};return _0x7e06();}var M=class{constructor(_0x3ecb8c){this['historyPath']=_0x3ecb8c;}async[_0x254770(0x10d,0x114,0x108,0x116)](){const _0x9db7a1={_0x4c4da3:0xe6,_0x35c8c9:0xf7,_0x1ac747:0xf4,_0x3f40f4:0xf6,_0x32cc21:0x572,_0xba6aaf:0x58c,_0x1743ac:0x58a,_0x219578:0xe0,_0x577737:0xd3,_0x42fc37:0x57e,_0x37ab4e:0x57b,_0x39dbe7:0x55d,_0x3f58ae:0x565,_0x34223a:0x574,_0x195c61:0x570,_0x194554:0x576,_0x285fd8:0x580,_0x301570:0xe2,_0x2ce076:0xe5,_0x40c36d:0x56b,_0x33b5ee:0x559,_0x4f50c9:0x569,_0x4b2823:0x56a,_0x187d07:0x57f,_0x47c50a:0x57d,_0x3adcb0:0x586,_0x3c837b:0xf9,_0x47d7c9:0xfb,_0x445c9c:0xd4,_0x5716eb:0xd5,_0xde0df9:0x56f,_0x46823a:0x570,_0x436f66:0x558,_0x15716f:0x569,_0x689026:0x56f,_0x46fcc1:0xdf},_0x429969={_0x25d522:0x11},_0x209b42={_0x559889:0x6b};function _0x4d5fc3(_0x5ab71c,_0x5c1ac5,_0x3ccea5,_0x2b161a){return _0x254770(_0x5ab71c-0x140,_0x5ab71c- -0x1fb,_0x3ccea5-_0x209b42._0x559889,_0x5c1ac5);}function _0x588c43(_0x50aa56,_0x31fb87,_0x52b641,_0x2495e7){return _0x254770(_0x50aa56-0x88,_0x2495e7-0x464,_0x52b641-_0x429969._0x25d522,_0x52b641);}try{let _0x31e13f=_0x1771a1[_0x4d5fc3(-_0x9db7a1._0x4c4da3,-0xe8,-0xe8,-0xe5)](this[_0x4d5fc3(-_0x9db7a1._0x35c8c9,-0xe8,-_0x9db7a1._0x1ac747,-_0x9db7a1._0x3f40f4)]),_0x185791=await _0x127f28[_0x588c43(_0x9db7a1._0x32cc21,_0x9db7a1._0xba6aaf,_0x9db7a1._0x1743ac,0x57e)](_0x31e13f,_0x4d5fc3(-0xdd,-_0x9db7a1._0x219578,-_0x9db7a1._0x577737,-0xdf)),_0x5dd91e=JSON['parse'](_0x185791);(!_0x5dd91e['cli']||_0x5dd91e[_0x588c43(_0x9db7a1._0x42fc37,_0x9db7a1._0x42fc37,0x57a,_0x9db7a1._0x37ab4e)][_0x588c43(0x578,_0x9db7a1._0x39dbe7,0x559,0x569)]===0x0)&&(console[_0x588c43(0x567,_0x9db7a1._0x3f58ae,_0x9db7a1._0x34223a,_0x9db7a1._0x195c61)]('Error:\x20No\x20messages\x20found\x20in\x20history\x20file'),process[_0x588c43(_0x9db7a1._0x194554,0x566,0x564,0x574)](0x1));let _0x20923e=_0x5dd91e[_0x588c43(0x57a,_0x9db7a1._0x285fd8,0x582,0x57b)],_0x37831f=[];for(let _0x4b2f33 of _0x20923e)_0x37831f[_0x4d5fc3(-0xdf,-_0x9db7a1._0x301570,-0xde,-_0x9db7a1._0x2ce076)](..._0x551135(_0x4b2f33));let _0x12a1cc=null;for(let _0x32af37=_0x20923e[_0x588c43(0x575,_0x9db7a1._0x40c36d,_0x9db7a1._0x33b5ee,_0x9db7a1._0x4f50c9)]-0x1;_0x32af37>=0x0;_0x32af37--)if(_0x20923e[_0x32af37]['role']===_0x588c43(_0x9db7a1._0x40c36d,0x577,0x564,_0x9db7a1._0x4b2823)){_0x12a1cc={'totalTokens':0x0};break;}console[_0x588c43(0x577,_0x9db7a1._0x187d07,_0x9db7a1._0x47c50a,_0x9db7a1._0x3adcb0)](),console['log']('\x1bc');let {waitUntilExit:_0x334d76}=_0x562def(_0x2a0a1c(S,{'messages':_0x37831f,'metadata':_0x12a1cc,'messageCount':_0x20923e[_0x4d5fc3(-_0x9db7a1._0x3f40f4,-_0x9db7a1._0x4c4da3,-_0x9db7a1._0x3c837b,-_0x9db7a1._0x47d7c9)]}),{'exitOnCtrlC':!0x0,'patchConsole':!0x0,'maxFps':0x1e});await _0x334d76();}catch(_0x1b0575){if(_0x1b0575[_0x4d5fc3(-0xdb,-0xd4,-_0x9db7a1._0x445c9c,-_0x9db7a1._0x5716eb)]===_0x588c43(0x574,0x56d,0x567,_0x9db7a1._0xde0df9))console['error'](_0x588c43(_0x9db7a1._0x46823a,_0x9db7a1._0x436f66,0x575,0x567)+this['historyPath']);else{if(_0x1b0575 instanceof SyntaxError)console['error']('Error:\x20Invalid\x20JSON\x20in\x20history\x20file:\x20'+this[_0x588c43(_0x9db7a1._0x15716f,0x568,_0x9db7a1._0x689026,0x568)]);else{let _0x3e2359=_0x1b0575 instanceof Error?_0x1b0575[_0x4d5fc3(-0xed,-0xdd,-_0x9db7a1._0x47d7c9,-0xde)]:String(_0x1b0575);console['error']('Error\x20loading\x20demo:\x20'+_0x3e2359);}}process[_0x4d5fc3(-0xeb,-0xed,-_0x9db7a1._0x46fcc1,-0xde)](0x1);}}};export{M as DemoMode};