@nuvin/nuvin-cli 1.19.0 → 1.20.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(_0x480ba8,_0xf03b58){const _0x3aa63c={_0x4cdb3f:0x581,_0x2590cc:0x58b,_0x48de36:0x57c,_0x2d7863:0x67,_0x2381e6:0x71,_0x496048:0x54,_0x15e062:0x62,_0xa5d7c4:0x592,_0x4b3370:0x590,_0x553e52:0x45,_0x20d4e6:0x57,_0x1932ef:0x55,_0x24a65f:0x4e,_0x48dfab:0x5f,_0x36a913:0x60,_0x2acaea:0x577,_0x2a3310:0x57b,_0x3f099a:0x588,_0xd820d8:0x56,_0x121bce:0x591,_0x5128b9:0x599},_0x4b67fd={_0x152e32:0x3cd};function _0x1900c6(_0x53ebba,_0x2a0ebf,_0x5da628,_0x595d0e){return _0x3588(_0x5da628-_0x4b67fd._0x152e32,_0x2a0ebf);}const _0x2f3aa0=_0x480ba8();function _0xc4f6b1(_0x53c234,_0x238ca3,_0x72a0da,_0x135a46){return _0x3588(_0x53c234- -0x20b,_0x72a0da);}while(!![]){try{const _0x1dd033=parseInt(_0x1900c6(_0x3aa63c._0x4cdb3f,_0x3aa63c._0x2590cc,_0x3aa63c._0x48de36,0x58a))/0x1*(-parseInt(_0xc4f6b1(-0x63,-0x58,-_0x3aa63c._0x2d7863,-_0x3aa63c._0x2381e6))/0x2)+parseInt(_0xc4f6b1(-0x53,-0x5b,-0x51,-0x5a))/0x3+-parseInt(_0xc4f6b1(-_0x3aa63c._0x496048,-_0x3aa63c._0x15e062,-0x63,-0x5e))/0x4+-parseInt(_0x1900c6(_0x3aa63c._0xa5d7c4,_0x3aa63c._0x4b3370,0x589,0x590))/0x5+-parseInt(_0xc4f6b1(-_0x3aa63c._0x553e52,-_0x3aa63c._0x20d4e6,-_0x3aa63c._0x1932ef,-0x4a))/0x6*(-parseInt(_0xc4f6b1(-_0x3aa63c._0x24a65f,-_0x3aa63c._0x48dfab,-_0x3aa63c._0x36a913,-0x4e))/0x7)+parseInt(_0x1900c6(_0x3aa63c._0x2acaea,0x586,_0x3aa63c._0x2a3310,_0x3aa63c._0x3f099a))/0x8+-parseInt(_0xc4f6b1(-0x4c,-_0x3aa63c._0x553e52,-_0x3aa63c._0xd820d8,-0x4e))/0x9*(-parseInt(_0x1900c6(0x581,0x582,_0x3aa63c._0x121bce,_0x3aa63c._0x5128b9))/0xa);if(_0x1dd033===_0xf03b58)break;else _0x2f3aa0['push'](_0x2f3aa0['shift']());}catch(_0x29531d){_0x2f3aa0['push'](_0x2f3aa0['shift']());}}}(_0x2387,0x6eddc));function _0x3588(_0x197512,_0x1206a6){_0x197512=_0x197512-0x1a8;const _0x23872a=_0x2387();let _0x358823=_0x23872a[_0x197512];if(_0x3588['ZNYUKk']===undefined){var _0x46f7f2=function(_0x2f844a){const _0x2b1380='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x570a03='',_0xf7da47='';for(let _0x5cf85a=0x0,_0x37ee15,_0xbd50e3,_0x36a842=0x0;_0xbd50e3=_0x2f844a['charAt'](_0x36a842++);~_0xbd50e3&&(_0x37ee15=_0x5cf85a%0x4?_0x37ee15*0x40+_0xbd50e3:_0xbd50e3,_0x5cf85a++%0x4)?_0x570a03+=String['fromCharCode'](0xff&_0x37ee15>>(-0x2*_0x5cf85a&0x6)):0x0){_0xbd50e3=_0x2b1380['indexOf'](_0xbd50e3);}for(let _0x1f6a32=0x0,_0x39ef9c=_0x570a03['length'];_0x1f6a32<_0x39ef9c;_0x1f6a32++){_0xf7da47+='%'+('00'+_0x570a03['charCodeAt'](_0x1f6a32)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xf7da47);};_0x3588['pIoGzN']=_0x46f7f2,_0x3588['BHdqqO']={},_0x3588['ZNYUKk']=!![];}const _0x244621=_0x23872a[0x0],_0x2a1b51=_0x197512+_0x244621,_0x195f1b=_0x3588['BHdqqO'][_0x2a1b51];return!_0x195f1b?(_0x358823=_0x3588['pIoGzN'](_0x358823),_0x3588['BHdqqO'][_0x2a1b51]=_0x358823):_0x358823=_0x195f1b,_0x358823;}import{C as _0x570a03,H as _0xf7da47,J as _0x5cf85a,N as _0x37ee15,X as _0xbd50e3,g as _0x36a842,m as _0x1f6a32,x as _0x39ef9c}from'./chunk-BL6TNWT6.js';import{d as _0xfae89b}from'./chunk-CIGVGDJE.js';import'./chunk-WIGFOWBJ.js';import'./chunk-PC75UOLY.js';import'./chunk-AJHDLTY3.js';function _0x2387(){const _0x485867=['y29Kzq','y3DK','Bg9N','otCZndG2mgPjCgXSyG','CMvHzezPBgu','mtu2CwDnALD0','BwvZC2fNzq','rgvTBYbnB2rL','CgfYC2u','CNvU','AgLZDg9YEvbHDgG','nKjqAgPsvq','BgvUz3rO','rxjYB3i6ieHPC3rVCNKGzMLSzsbUB3qGzM91BMq6ia','EwvSBg93','zxjYB3i','zxHPDa','nJaXndK5mKrAvhfuwa','mteYnJqYr2rzEhHS','C2LUz2XL','zgvTBW','8j+oQcbezw1Vie1VzguGlsbmB2fKzwqG','mtaWjq','CM9Szq','y2XP','Aw5Zzxj0','mJy3nduXnM5mswjnyW','ndu2nZaYt3rVyMfh','ChvZAa','ig1LC3nHz2vZic0Gqxv0BY1LEgL0Aw5NigLUidnZlI4U','CMvZB2X2zq','mZqWmtK0nujdv0XqzW','nZa5mZfnyMPVwvK','DxrMltG','oxjsyuDmta','ru5pru5u'];_0x2387=function(){return _0x485867;};return _0x2387();}import'./chunk-M6KACDU7.js';import{useEffect as _0x1ea9de}from'react';import{render as _0x2b9242}from'ink';function _0xa0c7c1(_0x35e974,_0x2fc109,_0x1c841e,_0xeae523){return _0x3588(_0x2fc109- -0x1d3,_0x1c841e);}import{Box as _0x40f217,Text as _0xc27ab0,useApp as _0x55177a}from'ink';import*as _0xef5ba from'fs/promises';import*as _0x1b509d from'path';import{jsx as _0xe38157,jsxs as _0xb5851c}from'react/jsx-runtime';function N({messages:_0x299d97,messageCount:_0x516dd1}){const _0x49e867={_0x2b171e:0x53b,_0x4cf5cb:0x538,_0x33401c:0x112,_0x359664:0x119,_0x445df3:0x550,_0x56327d:0x561,_0xde8fc4:0x532,_0xade298:0x53e,_0xdd706d:0x53a,_0x97afee:0x118,_0x264dc4:0x128,_0x405206:0x537,_0x4b0936:0x531,_0x2415ee:0x53a,_0x46237c:0x53e,_0x50ec56:0x535,_0x5b569e:0x10e},_0x35ad6a={_0x2083c0:0x388},_0x41d530={_0x2d2543:0x2c8};function _0x2baa3e(_0x3b78ec,_0x587f0d,_0x40a764,_0x22a8b2){return _0x3588(_0x3b78ec- -_0x41d530._0x2d2543,_0x587f0d);}let {exit:_0x2c8953}=_0x55177a();function _0x2a64de(_0xd3c099,_0x5420db,_0x3ccd9a,_0x4a6f23){return _0x3588(_0x5420db-_0x35ad6a._0x2083c0,_0x4a6f23);}return _0x1ea9de(()=>{let _0x47aaae=setTimeout(()=>{_0x2c8953();},0x12c);return()=>clearTimeout(_0x47aaae);},[_0x2c8953]),_0xb5851c(_0x40f217,{'flexDirection':'column','height':_0x2a64de(0x53f,_0x49e867._0x2b171e,0x52d,_0x49e867._0x4cf5cb),'width':_0x2baa3e(-0x115,-_0x49e867._0x33401c,-0x127,-_0x49e867._0x359664),'children':[_0xe38157(_0x570a03,{'messages':_0x299d97},_0x2a64de(0x536,0x539,0x528,0x532)),_0xe38157(_0x37ee15,{'busy':!0x1,'vimModeEnabled':!0x1,'hasActiveCommand':!0x1}),_0xe38157(_0x5cf85a,{'status':_0x2a64de(0x55b,_0x49e867._0x445df3,_0x49e867._0x56327d,0x554),'toolApprovalMode':!0x1,'vimModeEnabled':!0x1,'vimMode':_0x2a64de(_0x49e867._0xde8fc4,_0x49e867._0xade298,0x53b,0x546),'workingDirectory':process[_0x2a64de(_0x49e867._0xdd706d,0x54a,0x54e,0x552)]()}),_0xe38157(_0x40f217,{'paddingX':0x1,'borderStyle':_0x2baa3e(-_0x49e867._0x97afee,-0x113,-0x117,-_0x49e867._0x264dc4),'borderColor':_0x2a64de(_0x49e867._0x405206,0x533,0x529,_0x49e867._0x4b0936),'marginTop':-0x1,'children':_0xb5851c(_0xc27ab0,{'color':_0x2baa3e(-0x11d,-0x10c,-0x110,-0x125),'children':[_0x2a64de(0x53b,_0x49e867._0x2415ee,_0x49e867._0x46237c,_0x49e867._0x50ec56),_0x516dd1,_0x2baa3e(-_0x49e867._0x5b569e,-0xfd,-0x11d,-0x11f)]})})]});}var b={'providers':{},'session':{'memPersist':!0x1},'requireToolApproval':!0x1};function S({messages:_0x995bc6,metadata:_0x58958d,messageCount:_0x1d4232}){const _0x58f9d2={_0x4446d3:0x77};function _0x5951cf(_0x2647eb,_0x5ec735,_0x3571d6,_0x37b0ba){return _0x3588(_0x3571d6- -_0x58f9d2._0x4446d3,_0x2647eb);}return _0xe38157(_0x39ef9c,{'children':_0xe38157(_0xf7da47,{'initialConfig':b,'children':_0xe38157(_0x1f6a32,{'children':_0xe38157(_0x36a842,{'orchestratorManager':null,'requireToolApproval':!0x1,'onError':_0x3feb8e=>console[_0x5951cf(0x133,0x12c,0x135,0x139)](_0x3feb8e),'children':_0xe38157(_0xbd50e3,{'children':_0xe38157(N,{'messages':_0x995bc6,'metadata':_0x58958d,'messageCount':_0x1d4232})})})})})});}var P=class{constructor(_0x50ca48){this['historyPath']=_0x50ca48;}async[_0xa0c7c1(-0xf,-0x9,-0xd,0x5)](){const _0x2ff81f={_0x32792a:0x43,_0x53445a:0x4f,_0x5581f8:0x3c,_0x5d71d8:0x312,_0x1416ac:0x31d,_0x597481:0x40,_0x48beac:0x2f,_0x587783:0x35,_0x23188a:0x38,_0x434bd1:0x2e,_0x3e06c1:0x45,_0x461040:0x30d,_0x41dfdb:0x49,_0x1b6a00:0x2f1,_0x58fab1:0x313,_0x37487a:0x2f9,_0x266af9:0x316,_0x3889eb:0x304,_0x1ef15f:0x51,_0xd795eb:0x5d,_0x161ed0:0x50,_0x10fd90:0x4e,_0x242cf0:0x315,_0x5c8ed0:0x2ff,_0x4c889a:0x312,_0x2e37e7:0x311,_0x501c8a:0x311,_0x13a327:0x309,_0x1669f1:0x31b,_0x3561e9:0x2f4,_0x34960d:0x301,_0x4d1847:0x30f,_0x3c6a4a:0x327,_0x5b2e7a:0x319,_0x23341a:0x52,_0x161eb1:0x47,_0x776944:0x33,_0xc6c684:0x2a,_0x10fc40:0x22,_0x17c6ad:0x2b,_0x28d97e:0x54,_0x4e1ec3:0x5c,_0x4941f3:0x36,_0x571b8c:0x329,_0x43eeb8:0x52,_0xd42c6b:0x4a},_0x3fd792={_0x3a394f:0x131,_0x4c5de0:0x32b},_0x39e1ca={_0x5c0753:0xa1,_0x1b7f11:0x2b};function _0x18390f(_0x5d96af,_0xc706c1,_0x2199ee,_0x272b80){return _0xa0c7c1(_0x5d96af-_0x39e1ca._0x5c0753,_0x5d96af- -_0x39e1ca._0x1b7f11,_0xc706c1,_0x272b80-0x34);}function _0x3fb1d0(_0x4493ed,_0x3dd44c,_0x444505,_0x434917){return _0xa0c7c1(_0x4493ed-_0x3fd792._0x3a394f,_0x434917-_0x3fd792._0x4c5de0,_0x4493ed,_0x434917-0x5d);}try{let _0x2068c1=_0x1b509d[_0x18390f(-_0x2ff81f._0x32792a,-_0x2ff81f._0x53445a,-_0x2ff81f._0x5581f8,-0x3b)](this['historyPath']),_0x461256=await _0xef5ba[_0x3fb1d0(_0x2ff81f._0x5d71d8,0x318,0x31e,_0x2ff81f._0x1416ac)](_0x2068c1,_0x18390f(-0x40,-_0x2ff81f._0x597481,-0x44,-_0x2ff81f._0x48beac)),_0x446354=JSON[_0x18390f(-_0x2ff81f._0x587783,-_0x2ff81f._0x23188a,-_0x2ff81f._0x434bd1,-_0x2ff81f._0x3e06c1)](_0x461256);(!_0x446354[_0x3fb1d0(0x31f,0x30b,0x31f,_0x2ff81f._0x461040)]||_0x446354[_0x18390f(-_0x2ff81f._0x41dfdb,-0x59,-0x4f,-0x51)][_0x3fb1d0(_0x2ff81f._0x1b6a00,_0x2ff81f._0x58fab1,0x30e,0x301)]===0x0)&&(console[_0x3fb1d0(0x2fd,_0x2ff81f._0x37487a,_0x2ff81f._0x266af9,_0x2ff81f._0x3889eb)]('Error:\x20No\x20messages\x20found\x20in\x20history\x20file'),process[_0x18390f(-_0x2ff81f._0x1ef15f,-_0x2ff81f._0xd795eb,-_0x2ff81f._0x161ed0,-_0x2ff81f._0x10fd90)](0x1));let _0x4ea156=_0x446354[_0x18390f(-0x49,-0x49,-0x45,-0x38)],_0x1c819f=[];for(let _0x3d68d4 of _0x4ea156)_0x1c819f[_0x3fb1d0(0x30e,_0x2ff81f._0x242cf0,_0x2ff81f._0x5c8ed0,0x311)](..._0xfae89b(_0x3d68d4));let _0x43f300=null;for(let _0x119899=_0x4ea156[_0x3fb1d0(_0x2ff81f._0x4c889a,_0x2ff81f._0x2e37e7,0x301,0x301)]-0x1;_0x119899>=0x0;_0x119899--)if(_0x4ea156[_0x119899][_0x3fb1d0(0x300,_0x2ff81f._0x501c8a,0x2fe,0x30c)]==='assistant'){_0x43f300={'totalTokens':0x0};break;}console['clear'](),console[_0x3fb1d0(0x30c,0x30c,_0x2ff81f._0x13a327,_0x2ff81f._0x1669f1)]('\x1bc');let {waitUntilExit:_0x41ed60}=_0x2b9242(_0xe38157(S,{'messages':_0x1c819f,'metadata':_0x43f300,'messageCount':_0x4ea156[_0x3fb1d0(_0x2ff81f._0x3561e9,0x302,0x2fb,_0x2ff81f._0x34960d)]}),{'exitOnCtrlC':!0x0,'patchConsole':!0x0,'maxFps':0x1e});await _0x41ed60();}catch(_0x3adf04){if(_0x3adf04[_0x3fb1d0(_0x2ff81f._0x4d1847,_0x2ff81f._0x242cf0,_0x2ff81f._0x3c6a4a,_0x2ff81f._0x5b2e7a)]===_0x18390f(-0x3e,-0x3a,-0x4b,-0x3f))console[_0x18390f(-_0x2ff81f._0x23341a,-0x47,-0x4d,-0x5d)](_0x18390f(-0x54,-_0x2ff81f._0x161eb1,-0x4f,-0x5f)+this[_0x18390f(-_0x2ff81f._0x776944,-_0x2ff81f._0xc6c684,-_0x2ff81f._0x10fc40,-_0x2ff81f._0x17c6ad)]);else{if(_0x3adf04 instanceof SyntaxError)console[_0x18390f(-0x52,-_0x2ff81f._0x28d97e,-0x5b,-_0x2ff81f._0x4e1ec3)]('Error:\x20Invalid\x20JSON\x20in\x20history\x20file:\x20'+this[_0x18390f(-0x33,-_0x2ff81f._0x776944,-0x30,-_0x2ff81f._0x4941f3)]);else{let _0x4a6c26=_0x3adf04 instanceof Error?_0x3adf04[_0x3fb1d0(0x30e,0x314,_0x2ff81f._0x571b8c,0x31f)]:String(_0x3adf04);console[_0x18390f(-_0x2ff81f._0x43eeb8,-0x40,-0x4e,-_0x2ff81f._0xd42c6b)]('Error\x20loading\x20demo:\x20'+_0x4a6c26);}}process['exit'](0x1);}}};export{P as DemoMode};