@nuvin/nuvin-cli 1.31.0 β 1.33.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.
- package/README.md +17 -9
- package/dist/AutoUpdater-B3B4RLR4.js +1 -1
- package/dist/README.md +17 -9
- package/dist/UpdateChecker-2LAM3Q56.js +1 -1
- package/dist/VERSION +2 -2
- package/dist/chunk-3YTWOK4O.js +1 -0
- package/dist/chunk-4ZFXS7GL.js +1 -0
- package/dist/chunk-5U64NOGG.js +1 -1
- package/dist/chunk-AJHDLTY3.js +1 -1
- package/dist/chunk-BWIY46RS.js +1 -0
- package/dist/chunk-CKCNDXAS.js +1 -0
- package/dist/cli.js +1 -1
- package/dist/clipboard-ZREGZN7K.js +1 -1
- package/dist/demo-mode-WMBY3Y5D.js +1 -0
- package/dist/mcp-handler-P6C4OVQQ.js +1 -0
- package/dist/messageProcessor-QOELIL2T.js +1 -1
- package/dist/profile-handler-QQEL2P7I.js +1 -0
- package/dist/useSessionManagement-CB3AROAG.js +1 -0
- package/package.json +3 -2
- package/dist/chunk-5NTOEYLR.js +0 -1
- package/dist/chunk-D7A6JACF.js +0 -1
- package/dist/chunk-EL4T27CW.js +0 -1
- package/dist/chunk-M6KACDU7.js +0 -1
- package/dist/demo-mode-AGDULF4D.js +0 -1
- package/dist/mcp-handler-XFIOOFD6.js +0 -1
- package/dist/profile-handler-LQ2UK6EO.js +0 -1
- package/dist/useSessionManagement-JQVA52S7.js +0 -1
package/README.md
CHANGED
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
# @nuvin/nuvin-cli
|
|
2
2
|
|
|
3
|
-
Interactive AI coding assistant
|
|
3
|
+
Interactive AI coding assistant for the terminal.
|
|
4
|
+
Your terminal, your choice of model, your rulesβnothing hidden.
|
|
4
5
|
|
|
5
6
|
## Features
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
**Provider Freedom** β Use any LLM provider without lock-in. Supports OpenRouter, Anthropic, GitHub Models, DeepInfra, ZAI, Moonshot, Kimi, MiniMax out of the box. Switch models mid-conversation.
|
|
9
|
+
|
|
10
|
+
**Multi-Agent Delegation** β Spawn specialist agents for focused tasks like security audits or code investigation. Each agent runs in isolated context with session resumption support.
|
|
11
|
+
|
|
12
|
+
**Native Code Intelligence** β Built-in LSP integration for go-to-definition, find references, hover information, and real-time diagnostics. Understand your codebase, not just pattern match.
|
|
13
|
+
|
|
14
|
+
**Modern TUI** β React/Ink-based terminal interface with vim mode, virtualized rendering for large outputs, and session statistics.
|
|
15
|
+
|
|
16
|
+
**Configuration Profiles** β Maintain separate configurations for different projects, teams, or workflows. Layer global, workspace, and CLI settings.
|
|
17
|
+
|
|
18
|
+
**MCP Extensibility** β Extend capabilities with Model Context Protocol servers. Add custom tools without modifying core code.
|
|
19
|
+
|
|
20
|
+
**Session Persistence** β Resume previous conversations with full context. Export, browse, and manage conversation history.
|
|
21
|
+
|
|
22
|
+
**Controlled Execution** β Optional sudo mode for manual tool approval. Review and approve file edits, bash commands, and web requests before execution.
|
|
15
23
|
|
|
16
24
|
## Installation
|
|
17
25
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x280c(){const _0x3e413f=['y2HLy2TbBMrvCgrHDgu','ignVBxbSzxrLzcbZDwnJzxnZzNvSBhKH','l3LHCM4V','qg51DMLUl251DMLUlwnSAq','lY5WBNbTlW','zxjYB3i','AwDUB3jL','BNbTigLUC3rHBgWGlwCG','EwfYBIbNBg9IywWGBgLZDcaTlxbHDhrLCM4Gqg51DMLUl251DMLUlwnSAsaYpI9KzxyVBNvSBa','Bgf0zxn0','l3bUCg0V','nZC4odi0qwDWuNz2','ovHwzKTfDG','ote2nJuYwhrfDxnp','Cg5WBsbSAxn0ic1NiebUDxzPBI9UDxzPBI1JBgKGls1Kzxb0Ad0Widi+l2rLDI9UDwXS','B25vCgrHDgvtDgfYDgvK','ndaXmdqYnwXOB0jHBW','D2HPy2GGBNv2Aw4','EwfYBIbNBg9IywWGywrKia','Cg5WBq','mJG5mJm2vMXPr2nK','y2HLy2TgB3jvCgrHDgu','zxHPDa','ntzbvLf6tuS','vxbKyxrLihrVihy','nta1mtiWog1qvwnYua','Aw5JBhvKzxm','ntyWodKWnfnsvMXWvq','ywXS','B25fCNjVCG','mtG0nZyWohLVvK1wAq','CMvHzgXPBMSGiG','B25vCgrHDgvbDMfPBgfIBgu','vxbKyxrLigzHAwXLzc4GugXLyxnLihrYEsbTyw51ywXSEs4','EwfYBG','AgfZvxbKyxrL','DhjPBq','Dw5Yzwy','l25WBs8','vxbKyxrLigzHAwXLzdOG','BNbT','B25vCgrHDgvdB21WBgv0zwq','BM9Kzv9TB2r1BgvZ','qgXHDgvZDa'];_0x280c=function(){return _0x3e413f;};return _0x280c();}(function(_0x228d0f,_0x2668b8){const _0x476cf4={_0x2e5f81:0x1af,_0x4b81d9:0x2aa,_0x2d3077:0x1b5,_0x13df60:0x1a6,_0x4d29a5:0x1b7,_0xe5748d:0x1b2,_0x5890b3:0x1ad,_0x46db82:0x1c8,_0x194697:0x1ac,_0x33eb40:0x1c3,_0x331406:0x1ad,_0x2f5782:0x2b6,_0x35a13f:0x198,_0x3c465c:0x1ae,_0x3fc72e:0x1bd,_0x37d7da:0x1ab,_0x432ced:0x19d,_0xc7c69a:0x1a6,_0x2439b2:0x2a9,_0x19a5fb:0x294,_0x3ff370:0x2b4},_0x558806={_0x3cd614:0x2a1},_0x89f4de=_0x228d0f();function _0xf45add(_0x48ff3d,_0x5d2768,_0x169546,_0x5ad500){return _0x157a(_0x48ff3d-0x1c5,_0x5d2768);}function _0x199011(_0x3b8c6f,_0x425859,_0x4ef429,_0x3158e2){return _0x157a(_0x425859- -_0x558806._0x3cd614,_0x4ef429);}while(!![]){try{const _0x4ec977=-parseInt(_0x199011(-_0x476cf4._0x2e5f81,-0x1be,-0x1ad,-0x1cb))/0x1+-parseInt(_0xf45add(_0x476cf4._0x4b81d9,0x297,0x2b2,0x29a))/0x2+-parseInt(_0x199011(-0x1bd,-_0x476cf4._0x2d3077,-0x1c5,-_0x476cf4._0x13df60))/0x3*(-parseInt(_0x199011(-_0x476cf4._0x4d29a5,-_0x476cf4._0xe5748d,-_0x476cf4._0x5890b3,-_0x476cf4._0x46db82))/0x4)+-parseInt(_0x199011(-_0x476cf4._0x194697,-0x1b9,-_0x476cf4._0x33eb40,-_0x476cf4._0x331406))/0x5+parseInt(_0xf45add(_0x476cf4._0x2f5782,0x2c5,0x2c0,0x2b0))/0x6+parseInt(_0x199011(-_0x476cf4._0x35a13f,-_0x476cf4._0x3c465c,-0x1aa,-_0x476cf4._0x3fc72e))/0x7+-parseInt(_0x199011(-0x199,-_0x476cf4._0x37d7da,-_0x476cf4._0x432ced,-_0x476cf4._0xc7c69a))/0x8*(parseInt(_0xf45add(_0x476cf4._0x2439b2,0x2b6,_0x476cf4._0x19a5fb,_0x476cf4._0x3ff370))/0x9);if(_0x4ec977===_0x2668b8)break;else _0x89f4de['push'](_0x89f4de['shift']());}catch(_0x21e4bd){_0x89f4de['push'](_0x89f4de['shift']());}}}(_0x280c,0xb0722));import{exec as _0x315bda,spawn as _0x558bf5}from'child_process';import{promisify as _0x5e65c2}from'util';function _0xedced2(_0x579984,_0x1a3ca6,_0x4b544f,_0x3d3217){const _0x378f8a={_0x5925c0:0x113};return _0x157a(_0x4b544f- -_0x378f8a._0x5925c0,_0x3d3217);}var v=_0x5e65c2(_0x315bda),d=_0xedced2(-0x26,-0x31,-0x38,-0x29);async function a(_0x57f9fb,_0x547d9a){const _0x43b441={_0x4f1dc1:0x163};function _0xc877be(_0x8f57fe,_0x150f1a,_0x34c0fb,_0x218c33){return _0xedced2(_0x8f57fe-0x1c9,_0x150f1a-0x75,_0x34c0fb-0x1a6,_0x150f1a);}try{let {stdout:_0x2a9ada}=await v(_0x57f9fb,{'timeout':_0x547d9a});return _0x2a9ada[_0xc877be(0x161,0x16e,_0x43b441._0x4f1dc1,0x160)]();}catch{return null;}}var h;function _0x157a(_0x24193c,_0x4212a1){_0x24193c=_0x24193c-0xcb;const _0x280ce0=_0x280c();let _0x157a0e=_0x280ce0[_0x24193c];if(_0x157a['rqjCDE']===undefined){var _0xb91316=function(_0x44602d){const _0x59d900='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x315bda='',_0x558bf5='';for(let _0x5e65c2=0x0,_0x57f9fb,_0x547d9a,_0x2a9ada=0x0;_0x547d9a=_0x44602d['charAt'](_0x2a9ada++);~_0x547d9a&&(_0x57f9fb=_0x5e65c2%0x4?_0x57f9fb*0x40+_0x547d9a:_0x547d9a,_0x5e65c2++%0x4)?_0x315bda+=String['fromCharCode'](0xff&_0x57f9fb>>(-0x2*_0x5e65c2&0x6)):0x0){_0x547d9a=_0x59d900['indexOf'](_0x547d9a);}for(let _0xddc931=0x0,_0x53f003=_0x315bda['length'];_0xddc931<_0x53f003;_0xddc931++){_0x558bf5+='%'+('00'+_0x315bda['charCodeAt'](_0xddc931)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x558bf5);};_0x157a['VvXGmv']=_0xb91316,_0x157a['tMLGpQ']={},_0x157a['rqjCDE']=!![];}const _0x2ab83f=_0x280ce0[0x0],_0x4eb2e3=_0x24193c+_0x2ab83f,_0x184559=_0x157a['tMLGpQ'][_0x4eb2e3];return!_0x184559?(_0x157a0e=_0x157a['VvXGmv'](_0x157a0e),_0x157a['tMLGpQ'][_0x4eb2e3]=_0x157a0e):_0x157a0e=_0x184559,_0x157a0e;}(_0xddc931=>{const _0x15fbfa={_0x4af746:0x27e},_0x15fc2d={_0x52c929:0x1ae,_0x576786:0x1b4,_0x2b6433:0x1b5,_0x2ce06b:0x1b7,_0x56c8c5:0x1a5,_0x3291d5:0x1cd,_0x39bf70:0x1b9,_0x2c0af5:0x1d2,_0x4e027a:0x1ad,_0x3e6896:0x1c5,_0x5197f1:0x1c1,_0x3f94e8:0x1ba,_0x4f031f:0x1a8,_0x28d136:0x1da,_0x135e3b:0x1b8,_0x29cad7:0x1c3,_0x15ca76:0x1d0,_0x5f4852:0x1cc,_0x1e44c6:0x1d1,_0x3fce26:0x1bb,_0x53b845:0x1c0,_0x33439:0x1ca,_0x4eddad:0x1c3,_0x57a132:0x1b9,_0x4e182d:0x185,_0x28ccc4:0x19a},_0x4b8f73={_0x3addae:0x18b,_0xf836df:0x199,_0x522b61:0x191,_0x17c2d1:0x36,_0x1a2922:0x41,_0x177e99:0x50},_0x161711={_0x31cb7c:0x2ae},_0x371f9e={_0x406cd6:0x28f},_0xa68b44={_0x1acdce:0x17e,_0x165af4:0x182,_0x46a97e:0x210,_0x2dacd1:0x1fe,_0x4ad3d3:0x1fc,_0x54d262:0x197,_0x54c330:0x17a,_0x1aeb79:0x19c,_0x15f102:0x18b,_0x4e260e:0x179,_0x220571:0x17f,_0x5c3a83:0x188},_0x3b0a5a={_0x5e464d:0x196,_0x5dc39f:0x1a8,_0x34bbef:0x194,_0x41b0db:0x148,_0x41e347:0x130,_0x1cd139:0x1a5,_0x402696:0x19d,_0x107049:0x193,_0x122a2f:0x11f,_0x370fe4:0x11e,_0x317315:0x12b,_0x4b62a0:0x125,_0x391b67:0x116,_0x1cddd5:0x135,_0x5e3e6a:0x13a,_0x3ac05b:0x19d,_0x183060:0x1a2,_0xe76971:0x136,_0x1faccf:0x12f,_0x55b77a:0x12d,_0x56cfa0:0x11e,_0x2df21b:0x110,_0x1e997b:0x143,_0x467734:0x131,_0x375b21:0x13e,_0x48f5ef:0x14d,_0x401654:0x12d,_0x32c3cc:0x18c,_0x2e00c7:0x10f,_0x5cf05b:0x10b,_0x4d6942:0x182,_0x5cf899:0x195,_0x22144c:0x18d,_0x3efc17:0x190,_0x55b448:0x127,_0x52fd41:0x10a,_0x16a013:0x1ae,_0x27f10d:0x19d,_0x55fc9d:0x18b,_0x40ce8c:0x1b3,_0x57bb33:0x152,_0x2ec01f:0x158,_0x466004:0x189,_0xd420e7:0x198,_0x4b3910:0x12a,_0x25f113:0x19d,_0x2ad25c:0x197,_0x25e215:0x124,_0x24ca76:0x144,_0x2969ce:0x146,_0x35cebe:0x13d,_0x50a308:0x144,_0x11a827:0x11e,_0x4156d8:0x12d,_0x18358f:0x12e,_0x5d6ad0:0x13b,_0x1f7c73:0x121,_0x3dcba2:0x1a9,_0x2477a1:0x177},_0x4ab3ea={_0x5b723c:0xab};async function _0x53f003(){function _0x2176e8(_0xe123d7,_0x242443,_0x50dc40,_0xd4286e){return _0x157a(_0x50dc40-_0x4ab3ea._0x5b723c,_0xd4286e);}let _0x5f1637=await a(_0x2176e8(_0x3b0a5a._0x5e464d,_0x3b0a5a._0x5dc39f,_0x3b0a5a._0x34bbef,0x181),0xbb8);if(_0x5f1637){let _0xc79ade=await a(_0x33ba10(-0x145,-_0x3b0a5a._0x41b0db,-0x154,-_0x3b0a5a._0x41e347)+_0x5f1637+'\x22',0xbb8);if(_0xc79ade){if(_0xc79ade[_0x2176e8(0x19e,_0x3b0a5a._0x1cd139,_0x3b0a5a._0x402696,_0x3b0a5a._0x107049)]('/pnpm/')||_0xc79ade[_0x33ba10(-0x11e,-0x12e,-_0x3b0a5a._0x122a2f,-0x11e)](_0x33ba10(-0x134,-_0x3b0a5a._0x370fe4,-_0x3b0a5a._0x317315,-0x129)))return _0x33ba10(-_0x3b0a5a._0x4b62a0,-_0x3b0a5a._0x391b67,-_0x3b0a5a._0x1cddd5,-_0x3b0a5a._0x5e3e6a);if(_0xc79ade[_0x2176e8(0x1b3,0x1a8,_0x3b0a5a._0x3ac05b,_0x3b0a5a._0x183060)](_0x33ba10(-_0x3b0a5a._0xe76971,-_0x3b0a5a._0x1faccf,-_0x3b0a5a._0x5e3e6a,-_0x3b0a5a._0x55b77a))||_0xc79ade[_0x33ba10(-_0x3b0a5a._0x56cfa0,-0x11a,-0x11d,-_0x3b0a5a._0x2df21b)]('/.yarn/'))return _0x33ba10(-0x142,-_0x3b0a5a._0xe76971,-_0x3b0a5a._0x1e997b,-0x158);if(_0xc79ade[_0x33ba10(-0x11e,-0x114,-_0x3b0a5a._0x467734,-0x125)](_0x33ba10(-_0x3b0a5a._0x375b21,-0x149,-0x14c,-0x137))||_0xc79ade[_0x33ba10(-0x11e,-0x119,-0x119,-0x115)](_0x33ba10(-_0x3b0a5a._0x5e3e6a,-_0x3b0a5a._0x48f5ef,-0x148,-_0x3b0a5a._0x401654)))return _0x2176e8(_0x3b0a5a._0x32c3cc,0x189,0x17f,0x174);}else{if(_0x5f1637[_0x33ba10(-0x11e,-_0x3b0a5a._0x2e00c7,-_0x3b0a5a._0x5cf05b,-0x117)](_0x2176e8(_0x3b0a5a._0x4d6942,_0x3b0a5a._0x5cf899,_0x3b0a5a._0x22144c,_0x3b0a5a._0x3efc17))||_0x5f1637[_0x33ba10(-_0x3b0a5a._0x370fe4,-_0x3b0a5a._0x55b448,-0x11f,-_0x3b0a5a._0x52fd41)](_0x33ba10(-0x134,-0x123,-0x142,-_0x3b0a5a._0x56cfa0)))return'pnpm';if(_0x5f1637[_0x2176e8(_0x3b0a5a._0x16a013,0x1a5,_0x3b0a5a._0x27f10d,0x187)](_0x2176e8(0x17e,_0x3b0a5a._0x55fc9d,0x185,0x19b))||_0x5f1637[_0x2176e8(_0x3b0a5a._0x40ce8c,_0x3b0a5a._0x40ce8c,0x19d,0x195)]('/.yarn/'))return _0x33ba10(-0x142,-_0x3b0a5a._0x57bb33,-_0x3b0a5a._0x2ec01f,-0x12e);}}let [_0x34c853,_0x5ac3bd,_0x7b33a9]=await Promise[_0x2176e8(_0x3b0a5a._0x466004,_0x3b0a5a._0xd420e7,0x19f,_0x3b0a5a._0x34bbef)]([a('npm\x20list\x20-g\x20@nuvin/nuvin-cli\x20--depth=0\x202>/dev/null',0x1388),a(_0x33ba10(-_0x3b0a5a._0x4b3910,-0x118,-0x13a,-0x11f),0x1388),a(_0x2176e8(0x18b,0x178,_0x3b0a5a._0x55fc9d,0x18c),0x1388)]);function _0x33ba10(_0x4dec2f,_0x5aee74,_0x1480a0,_0x1e3569){return _0x157a(_0x4dec2f- -0x210,_0x1e3569);}return _0x34c853?.[_0x2176e8(0x193,0x188,_0x3b0a5a._0x25f113,_0x3b0a5a._0x2ad25c)](_0x33ba10(-_0x3b0a5a._0x1cddd5,-_0x3b0a5a._0x25e215,-_0x3b0a5a._0x24ca76,-_0x3b0a5a._0x2969ce))?_0x33ba10(-0x13c,-_0x3b0a5a._0x35cebe,-_0x3b0a5a._0x50a308,-_0x3b0a5a._0x317315):_0x5ac3bd?.[_0x33ba10(-_0x3b0a5a._0x11a827,-_0x3b0a5a._0x4156d8,-0x117,-0x11c)](_0x33ba10(-0x135,-0x124,-0x125,-_0x3b0a5a._0x18358f))?_0x33ba10(-_0x3b0a5a._0x4b62a0,-_0x3b0a5a._0x5d6ad0,-_0x3b0a5a._0x122a2f,-_0x3b0a5a._0x1f7c73):_0x7b33a9?.[_0x2176e8(0x192,_0x3b0a5a._0x3dcba2,0x19d,0x19c)](_0x2176e8(_0x3b0a5a._0x2477a1,0x194,0x186,0x18b))?'yarn':_0x2176e8(0x169,0x18b,0x17f,0x176);}function _0x50c478(_0xd98eb,_0x3150dd){const _0x2cd319={_0xeaf08e:0x259};let _0x4fa4c5=_0x3150dd?d+'@'+_0x3150dd:d+_0x3855e9(-0x17e,-0x198,-_0xa68b44._0x1acdce,-_0xa68b44._0x165af4);function _0x5d94d9(_0x5c8577,_0x1e7d7c,_0xf8faad,_0x595dfb){return _0x157a(_0x5c8577-0x125,_0xf8faad);}function _0x3855e9(_0x23271f,_0x364b53,_0x2136a7,_0x4f1042){return _0x157a(_0x4f1042- -_0x2cd319._0xeaf08e,_0x23271f);}switch(_0xd98eb){case _0x5d94d9(_0xa68b44._0x46a97e,_0xa68b44._0x2dacd1,_0xa68b44._0x4ad3d3,0x221):return'pnpm\x20add\x20-g\x20'+_0x4fa4c5;case _0x3855e9(-_0xa68b44._0x54d262,-_0xa68b44._0x54c330,-_0xa68b44._0x1aeb79,-_0xa68b44._0x15f102):return _0x3855e9(-0x172,-_0xa68b44._0x4e260e,-0x173,-0x16f)+_0x4fa4c5;default:return _0x3855e9(-_0xa68b44._0x220571,-0x18d,-_0xa68b44._0x5c3a83,-_0xa68b44._0x54c330)+_0x4fa4c5;}}function _0x2f0f6d(_0x2f1359,_0x1fbe96,_0x29e757,_0xf21894){return _0xedced2(_0x2f1359-0x96,_0x1fbe96-0x15e,_0x29e757- -0x231,_0xf21894);}async function _0x258501(_0x358c7){const _0x190ed4={_0x49916d:0x17,_0x578b67:0x345},_0x523f19={_0x597406:0x184},_0x5eeffb={_0x5823e7:0x19f,_0x3377ab:0x191,_0x56c1b7:0xdc,_0x422ca2:0xea,_0x167bc2:0xd2,_0x519f32:0xcd,_0x453805:0xe0,_0xf84fbe:0xc5,_0x3da3d7:0xcb,_0x21027b:0xb9,_0x1468bc:0xae,_0x1a4887:0xc1,_0x48238e:0xb7};let {UpdateChecker:_0x1bea62}=await import('./UpdateChecker-2LAM3Q56.js');function _0xfacc0d(_0x331a51,_0x5cb570,_0x180fc9,_0x5d1c70){return _0x157a(_0x5d1c70- -_0x371f9e._0x406cd6,_0x331a51);}function _0x309a6f(_0x10e4c1,_0x3fb842,_0x3e1bc6,_0x2721c6){return _0x157a(_0x3e1bc6- -_0x161711._0x31cb7c,_0x10e4c1);}try{let _0x11e3a8=await _0x1bea62[_0x309a6f(-_0x15fc2d._0x52c929,-_0x15fc2d._0x576786,-0x1c1,-_0x15fc2d._0x2b6433)]({'onUpdateAvailable':_0x358c7?.[_0xfacc0d(-_0x15fc2d._0x2ce06b,-0x1be,-0x1ce,-0x1c3)],'onError':_0x358c7?.[_0x309a6f(-_0x15fc2d._0x56c8c5,-_0x15fc2d._0x3291d5,-_0x15fc2d._0x39bf70,-0x1bc)]});if(!_0x11e3a8[_0xfacc0d(-_0x15fc2d._0x2c0af5,-_0x15fc2d._0x4e027a,-_0x15fc2d._0x3e6896,-0x1c0)])return!0x1;_0x358c7?.[_0x309a6f(-_0x15fc2d._0x5197f1,-_0x15fc2d._0x3f94e8,-0x1c7,-_0x15fc2d._0x2b6433)]&&_0x358c7[_0xfacc0d(-0x19d,-0x198,-0x199,-_0x15fc2d._0x4f031f)]();let _0x17a5d9=await _0x53f003(),_0x570bd5=_0x50c478(_0x17a5d9,_0x11e3a8[_0x309a6f(-_0x15fc2d._0x28d136,-_0x15fc2d._0x135e3b,-0x1cd,-_0x15fc2d._0x29cad7)]),_0x2984be=_0x558bf5('sh',['-c',_0x570bd5],{'detached':!0x0,'stdio':_0x309a6f(-_0x15fc2d._0x15ca76,-_0x15fc2d._0x5f4852,-0x1d0,-_0x15fc2d._0x1e44c6)});return _0x2984be['on'](_0x309a6f(-0x1cb,-_0x15fc2d._0x3fce26,-_0x15fc2d._0x53b845,-0x1d4),_0x1063bb=>{const _0x5a32a0={_0x28b42e:0x182},_0x27a438={_0x2f03d8:0x30,_0x2d24ce:0x51};function _0x221625(_0xbadb9f,_0xa95ff7,_0x4ca8ab,_0x5575e9){return _0x309a6f(_0x5575e9,_0xa95ff7-_0x27a438._0x2f03d8,_0x4ca8ab-0x3a,_0x5575e9-_0x27a438._0x2d24ce);}function _0x17dfbe(_0x336153,_0x4728a2,_0x12d5ca,_0x381dc8){return _0xfacc0d(_0x381dc8,_0x4728a2-_0x5a32a0._0x28b42e,_0x12d5ca-0xd4,_0x336153-0x27b);}if(_0x358c7?.[_0x221625(-0x1a8,-0x193,-_0x5eeffb._0x5823e7,-_0x5eeffb._0x3377ab)]){let _0x2e52bb=_0x1063bb===0x0,_0x2983d7=_0x2e52bb?_0x17dfbe(_0x5eeffb._0x56c1b7,_0x5eeffb._0x422ca2,0xcd,_0x5eeffb._0x167bc2)+_0x11e3a8[_0x17dfbe(_0x5eeffb._0x519f32,0xe2,0xd2,_0x5eeffb._0x453805)]+_0x17dfbe(0xc5,_0x5eeffb._0xf84fbe,_0x5eeffb._0x3da3d7,0xc7):_0x17dfbe(_0x5eeffb._0x21027b,_0x5eeffb._0x1468bc,0xcc,0xb5);_0x358c7[_0x17dfbe(_0x5eeffb._0x1a4887,_0x5eeffb._0x48238e,0xac,0xc2)](_0x2e52bb,_0x2983d7);}}),_0x2984be['on'](_0x309a6f(-0x1e0,-0x1c2,-_0x15fc2d._0x1e44c6,-0x1ca),_0x1e0fc9=>{function _0x4adc6f(_0x43172e,_0x2bc4d7,_0x544117,_0x48ff0d){return _0x309a6f(_0x544117,_0x2bc4d7-0x9c,_0x48ff0d-0x21f,_0x48ff0d-_0x523f19._0x597406);}function _0x9f9120(_0x44c467,_0x288153,_0x20389a,_0x5f4557){return _0xfacc0d(_0x288153,_0x288153-0x1b7,_0x20389a-_0x190ed4._0x49916d,_0x44c467-_0x190ed4._0x578b67);}_0x358c7?.[_0x9f9120(_0x4b8f73._0x3addae,_0x4b8f73._0xf836df,0x188,0x180)]&&_0x358c7[_0x9f9120(_0x4b8f73._0x3addae,0x196,0x182,_0x4b8f73._0x522b61)](!0x1,_0x4adc6f(_0x4b8f73._0x17c2d1,_0x4b8f73._0x1a2922,_0x4b8f73._0x177e99,0x44)+_0x1e0fc9['message']);}),_0x2984be[_0xfacc0d(-_0x15fc2d._0x33439,-0x1c5,-_0x15fc2d._0x5f4852,-0x1be)](),!0x0;}catch(_0x2baa3e){return _0x358c7?.[_0x309a6f(-_0x15fc2d._0x4eddad,-0x1b1,-_0x15fc2d._0x57a132,-0x1a8)]&&_0x358c7[_0xfacc0d(-0x195,-0x191,-_0x15fc2d._0x4e182d,-_0x15fc2d._0x28ccc4)](_0x2baa3e instanceof Error?_0x2baa3e:new Error(String(_0x2baa3e))),!0x1;}}_0xddc931[_0x2f0f6d(-0x26e,-0x25c,-0x26c,-_0x15fbfa._0x4af746)]=_0x258501;})(h||={});export{h as AutoUpdater};
|
|
1
|
+
(function(_0x591bd1,_0x555b98){const _0x1e21ec={_0x322218:0x8f,_0x1cf0f1:0x84,_0x14a6d6:0xa2,_0x440646:0x91,_0x5114fb:0x98,_0x490e9b:0xab,_0x66b0be:0x9d,_0xef9845:0x9c,_0x5abbe7:0x3b0,_0x47ff09:0x393,_0x477263:0xa9,_0x37d63e:0x3b7,_0x8ee86d:0x3b9,_0x3c1370:0x39a,_0x294aca:0x94,_0x334667:0x7d,_0x22957b:0x89,_0x3c90fd:0x3b4,_0x3acdcd:0x39e,_0x54dd4a:0x3b8,_0x1a02de:0x3d4,_0x4b6ad4:0x3c0,_0x229285:0x3b3},_0x52ec15={_0x3a7f32:0x129};function _0x2e6c37(_0x4bdc2d,_0x23b97b,_0x3fd3c7,_0x588065){return _0x5708(_0x23b97b- -_0x52ec15._0x3a7f32,_0x3fd3c7);}const _0x4e17b4=_0x591bd1();function _0x1ebf44(_0x593e76,_0x2ad606,_0x49d207,_0x353337){return _0x5708(_0x2ad606-0x32d,_0x593e76);}while(!![]){try{const _0x4b9c06=parseInt(_0x2e6c37(-_0x1e21ec._0x322218,-0x9a,-_0x1e21ec._0x1cf0f1,-0x93))/0x1*(-parseInt(_0x2e6c37(-0x94,-_0x1e21ec._0x14a6d6,-0xb1,-0x8f))/0x2)+-parseInt(_0x2e6c37(-_0x1e21ec._0x440646,-_0x1e21ec._0x5114fb,-0x8b,-_0x1e21ec._0x490e9b))/0x3+parseInt(_0x2e6c37(-_0x1e21ec._0x66b0be,-_0x1e21ec._0xef9845,-0x98,-0x9f))/0x4*(parseInt(_0x1ebf44(_0x1e21ec._0x5abbe7,0x3a5,0x3a4,_0x1e21ec._0x47ff09))/0x5)+-parseInt(_0x2e6c37(-0xb9,-0xb3,-_0x1e21ec._0x490e9b,-_0x1e21ec._0x477263))/0x6+parseInt(_0x1ebf44(_0x1e21ec._0x37d63e,0x3aa,_0x1e21ec._0x8ee86d,_0x1e21ec._0x3c1370))/0x7*(parseInt(_0x2e6c37(-_0x1e21ec._0x294aca,-0x9b,-0x8e,-0x8a))/0x8)+-parseInt(_0x2e6c37(-_0x1e21ec._0x334667,-0x90,-_0x1e21ec._0x22957b,-0xa6))/0x9+-parseInt(_0x1ebf44(_0x1e21ec._0x3c90fd,0x3b2,_0x1e21ec._0x3acdcd,_0x1e21ec._0x54dd4a))/0xa*(-parseInt(_0x1ebf44(_0x1e21ec._0x1a02de,_0x1e21ec._0x4b6ad4,_0x1e21ec._0x229285,0x3c0))/0xb);if(_0x4b9c06===_0x555b98)break;else _0x4e17b4['push'](_0x4e17b4['shift']());}catch(_0x213ccb){_0x4e17b4['push'](_0x4e17b4['shift']());}}}(_0x5996,0x5c3f8));function _0x5708(_0x1a2b7b,_0x542d9a){_0x1a2b7b=_0x1a2b7b-0x70;const _0x599633=_0x5996();let _0x570864=_0x599633[_0x1a2b7b];if(_0x5708['AtYZWq']===undefined){var _0x1704ee=function(_0x5e030c){const _0x13cb8e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x511cac='',_0x422edf='';for(let _0x58bbf2=0x0,_0x3a5a1c,_0x242a81,_0x1b0d07=0x0;_0x242a81=_0x5e030c['charAt'](_0x1b0d07++);~_0x242a81&&(_0x3a5a1c=_0x58bbf2%0x4?_0x3a5a1c*0x40+_0x242a81:_0x242a81,_0x58bbf2++%0x4)?_0x511cac+=String['fromCharCode'](0xff&_0x3a5a1c>>(-0x2*_0x58bbf2&0x6)):0x0){_0x242a81=_0x13cb8e['indexOf'](_0x242a81);}for(let _0x2be3d8=0x0,_0x46958f=_0x511cac['length'];_0x2be3d8<_0x46958f;_0x2be3d8++){_0x422edf+='%'+('00'+_0x511cac['charCodeAt'](_0x2be3d8)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x422edf);};_0x5708['bDrQIG']=_0x1704ee,_0x5708['aWkRxV']={},_0x5708['AtYZWq']=!![];}const _0x1f19a2=_0x599633[0x0],_0x1b8556=_0x1a2b7b+_0x1f19a2,_0x354643=_0x5708['aWkRxV'][_0x1b8556];return!_0x354643?(_0x570864=_0x5708['bDrQIG'](_0x570864),_0x5708['aWkRxV'][_0x1b8556]=_0x570864):_0x570864=_0x354643,_0x570864;}function _0x20652b(_0x3ee5c5,_0x222650,_0x1e21c5,_0x389e37){const _0x5178d7={_0x39b642:0x247};return _0x5708(_0x222650- -_0x5178d7._0x39b642,_0x3ee5c5);}import{exec as _0x511cac,spawn as _0x422edf}from'child_process';import{promisify as _0x58bbf2}from'util';var v=_0x58bbf2(_0x511cac),d=_0x20652b(-0x1cd,-0x1d5,-0x1c1,-0x1cd);async function a(_0x3a5a1c,_0x242a81){const _0x3e11ce={_0xadfaeb:0x274},_0x246c79={_0x5dde52:0x183};function _0x3b770e(_0x4ca24d,_0x3721e8,_0x1b3fae,_0x2c2585){return _0x20652b(_0x1b3fae,_0x2c2585- -0xa6,_0x1b3fae-0x1f,_0x2c2585-_0x246c79._0x5dde52);}try{let {stdout:_0x1b0d07}=await v(_0x3a5a1c,{'timeout':_0x242a81});return _0x1b0d07[_0x3b770e(-0x282,-0x274,-_0x3e11ce._0xadfaeb,-0x26d)]();}catch{return null;}}var h;function _0x5996(){const _0x1783d3=['D2HPy2GGBNv2Aw4','Dw5Yzwy','nduYCfPvsfPV','mJq1nJyXnNHzsuHKua','m3PSwMXfDW','EwfYBIbNBg9IywWGBgLZDcaTlxbHDhrLCM4Gqg51DMLUl251DMLUlwnSAsaYpI9KzxyVBNvSBa','mtG5mtG3ofbzEvndwG','BwvZC2fNzq','oty0odiYmufzA0D0qq','BM9Kzv9TB2r1BgvZ','l3bUCg0V','CMvHzgXPBMSGiG','Bgf0zxn0','qgXHDgvZDa','mZq3mdG0mwrtAMX3Aa','Cg5WBq','B25vCgrHDgvdB21WBgv0zwq','Cg5WBsbHzgqGlwCG','qg51DMLUl251DMLUlwnSAq','Aw5JBhvKzxm','zxHPDa','BNbT','mti5otaWB2T3CLbA','l3LHCM4V','mJm0mdbdALDwzgi','BNbTigLUC3rHBgWGlwCG','B25vCgrHDgvbDMfPBgfIBgu','EwfYBG','B25vCgrHDgvtDgfYDgvK','mtr2AuvZs2q','ignVBxbSzxrLzcbZDwnJzxnZzNvSBhKH','AgfZvxbKyxrL','DhjPBq','ywXS','lY55yxjUlW','l25WBs8','B25fCNjVCG','mtbMCePlAvm','zxjYB3i','ndaYodG4CNPxqMzw','Cg5WBsbSAxn0ic1NiebUDxzPBI9UDxzPBI1JBgKGls1Kzxb0Ad0Widi+l2rLDI9UDwXS','vxbKyxrLigzHAwXLzc4GugXLyxnLihrYEsbTyw51ywXSEs4','lY5WBNbTlW'];_0x5996=function(){return _0x1783d3;};return _0x5996();}(_0x2be3d8=>{const _0x4c8bb9={_0x23dfb3:0x2a3,_0x25d4a3:0x2b2,_0x1ac752:0x2a0,_0x293f06:0x293,_0x1d2325:0x2a5,_0x26fcb6:0x2a9,_0x229e43:0x28e,_0x3677a3:0x3c8,_0x39674b:0x3c2,_0x40da95:0x3c0,_0x377ca8:0x2ae,_0x1ee7a6:0x2c0,_0x1fd9ca:0x2b2,_0x2112e2:0x3c9,_0x4b9684:0x2a4,_0x3f1904:0x2aa},_0x1a35ab={_0x5bff5a:0x90,_0x41ade0:0xae,_0x186d65:0xb1,_0x271e02:0xa2,_0x4c9a3f:0x91,_0x308f5d:0x79,_0x4fdab2:0x80},_0x418c1f={_0x22c3b4:0xa7,_0x9ded29:0x96,_0x321c8e:0xb3,_0x45ca84:0x2,_0x51da7c:0x5,_0x3c349c:0x6,_0x1dd1ee:0x80,_0x1d1ddd:0x82,_0x48f209:0x80,_0x24eaf0:0xe},_0x1dd0f1={_0x1e0f9f:0xbf,_0x4a0829:0xd4,_0x1e8e28:0xb3,_0x1fdd50:0x1f6,_0x41bdcf:0x1e5,_0x1b0608:0xb0,_0x20028c:0xcc,_0x2f9722:0xaf,_0x108f3f:0xaa,_0x4d0ae1:0x205,_0x17b6bc:0x1f3,_0xbbbb4b:0x201,_0x594028:0xd6,_0xc79be2:0xd6,_0x1df88d:0x218,_0x48cd19:0x21d,_0xfd47d3:0xb1,_0x285340:0xc8,_0x52fb0b:0x1fe,_0x25457c:0x1fb,_0xee1ad2:0x217,_0x5394ae:0x1eb,_0x539a30:0x1fc,_0x497b7c:0x1ef,_0x4fa333:0xa1,_0x242c2b:0x205,_0x44b6b3:0x20c,_0x1d62f3:0x20c,_0x1a26de:0xdb,_0x3c1e11:0xbc,_0x157fb2:0xc6,_0x50031c:0x1e5,_0x5cbbe:0x216,_0x2e3da3:0x207,_0x50655f:0x1f7,_0x35e473:0x20c,_0x310f79:0x210,_0x55d492:0x1ec,_0x24cc51:0x20f,_0x1ad81b:0xb0,_0x26f382:0xc7,_0x249386:0x204,_0x475a21:0x200,_0x340758:0xa2,_0x130304:0xae,_0x34a7d5:0xa8,_0xbea1a:0xab,_0x4016b3:0xae,_0xe5eba3:0x209,_0x40db97:0x203,_0x2faabe:0x20d,_0x26ca19:0x9e},_0x4df5dd={_0x43b9cc:0x27f};async function _0x46958f(){let _0x1353ab=await a(_0xbc798(_0x1dd0f1._0x1e0f9f,_0x1dd0f1._0x4a0829,0xc7,_0x1dd0f1._0x1e8e28),0xbb8);function _0xbc798(_0x1f9660,_0x14c23d,_0x4e8948,_0x177ba3){return _0x5708(_0x4e8948-0x3c,_0x1f9660);}if(_0x1353ab){let _0x5a0805=await a(_0x40e188(-_0x1dd0f1._0x1fdd50,-_0x1dd0f1._0x41bdcf,-0x1eb,-0x1e9)+_0x1353ab+'\x22',0xbb8);if(_0x5a0805){if(_0x5a0805[_0xbc798(0xa8,_0x1dd0f1._0x1b0608,0xaf,_0x1dd0f1._0x1e8e28)](_0xbc798(0xc2,_0x1dd0f1._0x20028c,0xd1,0xe3))||_0x5a0805[_0xbc798(0xc2,0xa6,_0x1dd0f1._0x2f9722,_0x1dd0f1._0x108f3f)](_0x40e188(-_0x1dd0f1._0x4d0ae1,-_0x1dd0f1._0x17b6bc,-_0x1dd0f1._0xbbbb4b,-0x1f5)))return _0xbc798(0xcd,0xe2,_0x1dd0f1._0x594028,_0x1dd0f1._0xc79be2);if(_0x5a0805[_0x40e188(-_0x1dd0f1._0x1df88d,-_0x1dd0f1._0x48cd19,-0x212,-0x20c)](_0x40e188(-0x211,-0x1fe,-0x204,-0x208))||_0x5a0805['includes']('/.yarn/'))return _0xbc798(0xb8,_0x1dd0f1._0xfd47d3,0xb7,_0x1dd0f1._0x285340);if(_0x5a0805[_0x40e188(-_0x1dd0f1._0x52fb0b,-_0x1dd0f1._0x25457c,-_0x1dd0f1._0xee1ad2,-0x20c)](_0x40e188(-_0x1dd0f1._0x5394ae,-0x1ee,-0x1e8,-_0x1dd0f1._0x539a30))||_0x5a0805['includes'](_0x40e188(-_0x1dd0f1._0x1fdd50,-0x1e9,-_0x1dd0f1._0x497b7c,-_0x1dd0f1._0x5394ae)))return _0xbc798(0x9c,0xc0,0xb1,_0x1dd0f1._0x4fa333);}else{if(_0x1353ab[_0x40e188(-_0x1dd0f1._0x242c2b,-0x1fb,-0x203,-_0x1dd0f1._0x44b6b3)]('/pnpm/')||_0x1353ab[_0x40e188(-0x209,-0x219,-0x206,-_0x1dd0f1._0x1d62f3)](_0xbc798(_0x1dd0f1._0x1a26de,_0x1dd0f1._0x3c1e11,_0x1dd0f1._0x157fb2,0xb6)))return _0x40e188(-0x1ec,-0x1e7,-0x1da,-_0x1dd0f1._0x50031c);if(_0x1353ab['includes'](_0x40e188(-_0x1dd0f1._0x5cbbe,-_0x1dd0f1._0x2e3da3,-0x1f9,-0x208))||_0x1353ab[_0x40e188(-0x1fa,-0x205,-_0x1dd0f1._0x50655f,-_0x1dd0f1._0x35e473)](_0x40e188(-_0x1dd0f1._0x539a30,-_0x1dd0f1._0x310f79,-0x203,-0x1fd)))return'yarn';}}function _0x40e188(_0x187c75,_0x35f690,_0xc42c7,_0x21df44){return _0x5708(_0x21df44- -_0x4df5dd._0x43b9cc,_0xc42c7);}let [_0x5a4000,_0x49a49b,_0x3bd149]=await Promise[_0x40e188(-_0x1dd0f1._0x55d492,-_0x1dd0f1._0x24cc51,-0x213,-_0x1dd0f1._0x52fb0b)]([a('npm\x20list\x20-g\x20@nuvin/nuvin-cli\x20--depth=0\x202>/dev/null',0x1388),a(_0xbc798(_0x1dd0f1._0x1ad81b,0xc3,0xc4,_0x1dd0f1._0x26f382),0x1388),a(_0x40e188(-_0x1dd0f1._0x25457c,-_0x1dd0f1._0x249386,-_0x1dd0f1._0x475a21,-0x1ef),0x1388)]);return _0x5a4000?.['includes'](_0xbc798(0xab,_0x1dd0f1._0x340758,_0x1dd0f1._0x130304,_0x1dd0f1._0x34a7d5))?'npm':_0x49a49b?.['includes'](_0xbc798(_0x1dd0f1._0xbea1a,0xa7,_0x1dd0f1._0x4016b3,0x9e))?'pnpm':_0x3bd149?.['includes'](_0x40e188(-_0x1dd0f1._0xe5eba3,-_0x1dd0f1._0x40db97,-0x223,-_0x1dd0f1._0x2faabe))?_0xbc798(0xb3,_0x1dd0f1._0x4016b3,0xb7,0xc8):_0xbc798(0xc2,_0x1dd0f1._0x26ca19,_0x1dd0f1._0xfd47d3,0xc0);}function _0x310922(_0x8be2e2,_0x2392cd){let _0xc28702=_0x2392cd?d+'@'+_0x2392cd:d+_0x10bfd3(_0x418c1f._0x22c3b4,_0x418c1f._0x9ded29,0xbb,_0x418c1f._0x321c8e);function _0x577d83(_0x32867,_0x25b665,_0x120591,_0x111ef1){return _0x5708(_0x32867- -0x98,_0x111ef1);}function _0x10bfd3(_0x1411af,_0x4f06eb,_0x5a815f,_0x4cd627){return _0x5708(_0x1411af-0xf,_0x4f06eb);}switch(_0x8be2e2){case _0x577d83(_0x418c1f._0x45ca84,-_0x418c1f._0x51da7c,-_0x418c1f._0x3c349c,0x17):return _0x10bfd3(_0x418c1f._0x1dd1ee,_0x418c1f._0x1d1ddd,0x87,_0x418c1f._0x48f209)+_0xc28702;case _0x577d83(-0x1d,-_0x418c1f._0x24eaf0,-0x30,-0x16):return'yarn\x20global\x20add\x20'+_0xc28702;default:return _0x10bfd3(0x88,0x91,0x97,0x83)+_0xc28702;}}async function _0x272742(_0x2c55a8){const _0x2a073d={_0x34e838:0x153,_0x2f4dfc:0x141},_0x5e151b={_0xf15d4f:0x110,_0x275962:0x7e,_0x58ce6e:0x456},_0x5e79f9={_0x2fe3f9:0x1e7,_0x27aece:0x1f5,_0x3b9cd2:0x1e1,_0x5b9b47:0x429,_0x143a05:0x43d,_0x46c6a8:0x434,_0x4c033a:0x443,_0x16dbc4:0x448,_0x3b3455:0x41f},_0x56169c={_0x28216b:0x13d,_0x289f25:0xf1,_0x402f25:0x67};function _0x32a199(_0x36f2b5,_0x243a0e,_0x31d844,_0x4349cd){return _0x5708(_0x4349cd-0x344,_0x243a0e);}function _0x2d62df(_0x5e83be,_0x49c6ad,_0x54aba7,_0x2ea90f){return _0x5708(_0x2ea90f-0x226,_0x54aba7);}let {UpdateChecker:_0x4cce02}=await import('./UpdateChecker-2LAM3Q56.js');try{let _0x179f38=await _0x4cce02['checkForUpdate']({'onUpdateAvailable':_0x2c55a8?.[_0x2d62df(_0x4c8bb9._0x23dfb3,_0x4c8bb9._0x25d4a3,0x2a7,_0x4c8bb9._0x1ac752)],'onError':_0x2c55a8?.['onError']});if(!_0x179f38[_0x2d62df(0x2a6,_0x4c8bb9._0x293f06,0x2a7,_0x4c8bb9._0x1d2325)])return!0x1;_0x2c55a8?.[_0x2d62df(_0x4c8bb9._0x26fcb6,0x2b5,0x2b7,0x2a2)]&&_0x2c55a8[_0x2d62df(_0x4c8bb9._0x229e43,0x2b2,0x29a,0x2a2)]();let _0x3bf683=await _0x46958f(),_0x301f84=_0x310922(_0x3bf683,_0x179f38[_0x32a199(_0x4c8bb9._0x3677a3,0x3e5,0x3d2,0x3db)]),_0xc72cba=_0x422edf('sh',['-c',_0x301f84],{'detached':!0x0,'stdio':'ignore'});return _0xc72cba['on'](_0x32a199(_0x4c8bb9._0x39674b,_0x4c8bb9._0x40da95,0x3c2,0x3b8),_0x581c39=>{function _0x340935(_0x423ca2,_0x4ab2d7,_0x5ab482,_0x49ffe4){return _0x32a199(_0x423ca2-0x108,_0x4ab2d7,_0x5ab482-0x132,_0x5ab482- -0x1d3);}function _0x2a6696(_0x1cd55f,_0x40c49b,_0x21d528,_0xb6c00a){return _0x32a199(_0x1cd55f-_0x56169c._0x28216b,_0x21d528,_0x21d528-_0x56169c._0x289f25,_0x1cd55f-_0x56169c._0x402f25);}if(_0x2c55a8?.[_0x340935(_0x5e79f9._0x2fe3f9,_0x5e79f9._0x27aece,_0x5e79f9._0x3b9cd2,0x1eb)]){let _0x2b3d21=_0x581c39===0x0,_0x402aa5=_0x2b3d21?'Update\x20to\x20v'+_0x179f38['latest']+_0x2a6696(_0x5e79f9._0x5b9b47,_0x5e79f9._0x143a05,0x43b,0x421):_0x2a6696(_0x5e79f9._0x46c6a8,_0x5e79f9._0x4c033a,_0x5e79f9._0x16dbc4,_0x5e79f9._0x3b3455);_0x2c55a8['onUpdateCompleted'](_0x2b3d21,_0x402aa5);}}),_0xc72cba['on'](_0x2d62df(0x2aa,_0x4c8bb9._0x377ca8,0x299,0x2ac),_0x4ef4d8=>{function _0x56add1(_0x4f0c18,_0x414fab,_0x424b25,_0x25dbf3){return _0x32a199(_0x4f0c18-_0x5e151b._0xf15d4f,_0x414fab,_0x424b25-_0x5e151b._0x275962,_0x25dbf3- -_0x5e151b._0x58ce6e);}function _0x233012(_0x47f218,_0x230057,_0x4ca8b2,_0x77c489){return _0x2d62df(_0x47f218-_0x2a073d._0x34e838,_0x230057-_0x2a073d._0x2f4dfc,_0x77c489,_0x4ca8b2- -0x2c6);}_0x2c55a8?.[_0x56add1(-_0x1a35ab._0x5bff5a,-_0x1a35ab._0x41ade0,-_0x1a35ab._0x186d65,-_0x1a35ab._0x271e02)]&&_0x2c55a8['onUpdateCompleted'](!0x1,'Update\x20failed:\x20'+_0x4ef4d8[_0x56add1(-0x6b,-_0x1a35ab._0x4c9a3f,-_0x1a35ab._0x308f5d,-_0x1a35ab._0x4fdab2)]);}),_0xc72cba[_0x2d62df(0x2b3,0x2c8,_0x4c8bb9._0x1ee7a6,_0x4c8bb9._0x1fd9ca)](),!0x0;}catch(_0x47360e){return _0x2c55a8?.[_0x32a199(0x3c7,0x3d0,_0x4c8bb9._0x2112e2,0x3c8)]&&_0x2c55a8[_0x2d62df(0x29d,_0x4c8bb9._0x4b9684,0x2b8,_0x4c8bb9._0x3f1904)](_0x47360e instanceof Error?_0x47360e:new Error(String(_0x47360e))),!0x1;}}_0x2be3d8['checkAndUpdate']=_0x272742;})(h||={});export{h as AutoUpdater};
|
package/dist/README.md
CHANGED
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
# @nuvin/nuvin-cli
|
|
2
2
|
|
|
3
|
-
Interactive AI coding assistant
|
|
3
|
+
Interactive AI coding assistant for the terminal.
|
|
4
|
+
Your terminal, your choice of model, your rulesβnothing hidden.
|
|
4
5
|
|
|
5
6
|
## Features
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
**Provider Freedom** β Use any LLM provider without lock-in. Supports OpenRouter, Anthropic, GitHub Models, DeepInfra, ZAI, Moonshot, Kimi, MiniMax out of the box. Switch models mid-conversation.
|
|
9
|
+
|
|
10
|
+
**Multi-Agent Delegation** β Spawn specialist agents for focused tasks like security audits or code investigation. Each agent runs in isolated context with session resumption support.
|
|
11
|
+
|
|
12
|
+
**Native Code Intelligence** β Built-in LSP integration for go-to-definition, find references, hover information, and real-time diagnostics. Understand your codebase, not just pattern match.
|
|
13
|
+
|
|
14
|
+
**Modern TUI** β React/Ink-based terminal interface with vim mode, virtualized rendering for large outputs, and session statistics.
|
|
15
|
+
|
|
16
|
+
**Configuration Profiles** β Maintain separate configurations for different projects, teams, or workflows. Layer global, workspace, and CLI settings.
|
|
17
|
+
|
|
18
|
+
**MCP Extensibility** β Extend capabilities with Model Context Protocol servers. Add custom tools without modifying core code.
|
|
19
|
+
|
|
20
|
+
**Session Persistence** β Resume previous conversations with full context. Export, browse, and manage conversation history.
|
|
21
|
+
|
|
22
|
+
**Controlled Execution** β Optional sudo mode for manual tool approval. Review and approve file edits, bash commands, and web requests before execution.
|
|
15
23
|
|
|
16
24
|
## Installation
|
|
17
25
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x3f2a22,_0x4c4422){const _0x4f3dd7={_0x584875:0x252,_0x15a9ee:0x24a,_0x48a5bb:0x244,_0x1573a4:0x6f,_0x4cd673:0x72,_0x3036a3:0x260,_0x12a323:0x260,_0x37970d:0x26e,_0x3a1f2d:0x253,_0x394ace:0x58,_0x3fe58c:0x63,_0x1da6df:0x62,_0x288656:0x69,_0x76e710:0x52,_0x4dfb86:0x25b,_0x5ca308:0x25d,_0x35be25:0x255,_0x3f376c:0x61,_0xa650df:0x7d,_0x589e95:0x6e,_0x30308e:0x250,_0x26c365:0x24f,_0x3cea68:0x5c,_0xb909a9:0x67,_0x1832af:0x261,_0x32f1ff:0x249},_0x5a2291={_0xc7ab8a:0x163};function _0x4e3999(_0x2232b7,_0x359444,_0x1407cb,_0x4c8196){return _0x5807(_0x1407cb- -_0x5a2291._0xc7ab8a,_0x359444);}function _0x368902(_0x2b2c25,_0x517e02,_0x43f42e,_0x3f73b2){return _0x5807(_0x43f42e- -0x359,_0x517e02);}const _0x19f949=_0x3f2a22();while(!![]){try{const _0x5ab3c0=-parseInt(_0x368902(-_0x4f3dd7._0x584875,-0x23a,-_0x4f3dd7._0x15a9ee,-_0x4f3dd7._0x48a5bb))/0x1*(-parseInt(_0x4e3999(-_0x4f3dd7._0x1573a4,-_0x4f3dd7._0x4cd673,-0x63,-0x55))/0x2)+parseInt(_0x368902(-0x26a,-_0x4f3dd7._0x3036a3,-_0x4f3dd7._0x12a323,-_0x4f3dd7._0x37970d))/0x3+-parseInt(_0x368902(-0x257,-0x25d,-_0x4f3dd7._0x3a1f2d,-0x252))/0x4*(-parseInt(_0x4e3999(-_0x4f3dd7._0x394ace,-_0x4f3dd7._0x3fe58c,-_0x4f3dd7._0x1da6df,-_0x4f3dd7._0x288656))/0x5)+parseInt(_0x4e3999(-0x65,-_0x4f3dd7._0x76e710,-0x5a,-_0x4f3dd7._0x288656))/0x6*(parseInt(_0x368902(-_0x4f3dd7._0x4dfb86,-0x269,-_0x4f3dd7._0x5ca308,-_0x4f3dd7._0x35be25))/0x7)+parseInt(_0x4e3999(-_0x4f3dd7._0x3f376c,-_0x4f3dd7._0xa650df,-_0x4f3dd7._0x589e95,-0x74))/0x8*(parseInt(_0x368902(-_0x4f3dd7._0x30308e,-0x254,-_0x4f3dd7._0x26c365,-0x25a))/0x9)+parseInt(_0x4e3999(-_0x4f3dd7._0x3cea68,-_0x4f3dd7._0xb909a9,-0x5f,-0x63))/0xa+parseInt(_0x368902(-_0x4f3dd7._0x26c365,-_0x4f3dd7._0x1832af,-0x256,-0x25f))/0xb*(-parseInt(_0x368902(-0x246,-0x24c,-0x24b,-_0x4f3dd7._0x32f1ff))/0xc);if(_0x5ab3c0===_0x4c4422)break;else _0x19f949['push'](_0x19f949['shift']());}catch(_0x3ea595){_0x19f949['push'](_0x19f949['shift']());}}}(_0x5e80,0x9d73b));import{a as _0x1b05c9}from'./chunk-AJHDLTY3.js';function _0x5807(_0x3de8a5,_0x4d90d9){_0x3de8a5=_0x3de8a5-0xf1;const _0x5e80c2=_0x5e80();let _0x58074f=_0x5e80c2[_0x3de8a5];if(_0x5807['hkKzuv']===undefined){var _0xa9e051=function(_0x2030b6){const _0x41092d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1b05c9='',_0x429589='';for(let _0x1cd52c=0x0,_0x57f679,_0x30a73c,_0x190b8b=0x0;_0x30a73c=_0x2030b6['charAt'](_0x190b8b++);~_0x30a73c&&(_0x57f679=_0x1cd52c%0x4?_0x57f679*0x40+_0x30a73c:_0x30a73c,_0x1cd52c++%0x4)?_0x1b05c9+=String['fromCharCode'](0xff&_0x57f679>>(-0x2*_0x1cd52c&0x6)):0x0){_0x30a73c=_0x41092d['indexOf'](_0x30a73c);}for(let _0x47dc9b=0x0,_0x273c5c=_0x1b05c9['length'];_0x47dc9b<_0x273c5c;_0x47dc9b++){_0x429589+='%'+('00'+_0x1b05c9['charCodeAt'](_0x47dc9b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x429589);};_0x5807['ktzYOm']=_0xa9e051,_0x5807['ATPYBr']={},_0x5807['hkKzuv']=!![];}const _0x55df66=_0x5e80c2[0x0],_0x5b6c65=_0x3de8a5+_0x55df66,_0x404e5a=_0x5807['ATPYBr'][_0x5b6c65];return!_0x404e5a?(_0x58074f=_0x5807['ktzYOm'](_0x58074f),_0x5807['ATPYBr'][_0x5b6c65]=_0x58074f):_0x58074f=_0x404e5a,_0x58074f;}function _0x2769bb(_0x4045ae,_0x4d1bc6,_0x18f472,_0x3f714e){return _0x5807(_0x4d1bc6- -0x34b,_0x4045ae);}function _0x5e80(){const _0x1f2c06=['mtb5BhLOCuq','r0vu','nZDpqujoqLm','nZCZmdm2meT2tLPHvq','uMvXDwvZDcb0Aw1LB3v0','mJe4mtu3mLfiyNrjDa','BwfW','Aw5JBhvKzxm','oti5nJu4DeDxBMn6','ntu3nZnwCg1KvMm','CMvWBgfJzq','DMvYC2LVBG','CMvNAxn0CNKUBNbTANmUB3jN','nZiWnda0nfn3CgXxBW','mwHtAgvsCa','qg51DMLUl251DMLUlwnSAq','B25fCNjVCG','zgf0yq','zw5K','mJy0D0Lcyu9s','DgLTzw91Da','CMvXDwvZDa','C3rHDhvZq29Kzq','mZu0mZaZmgLlzwHbDG','yxbWBgLJyxrPB24VANnVBG','CgfYC2u','mJHYEfLYtvy','BgvUz3rO','y2HLy2TgB3jvCgrHDgu','C3bSAxq','mtK1nJm1nfrLEgTYwa'];_0x5e80=function(){return _0x1f2c06;};return _0x5e80();}import _0x429589 from'https';var d=_0x3cfdb9(0x37a,0x37c,0x370,0x37e),m=_0x2769bb(-0x24b,-0x25a,-0x259,-0x25e),f=0x1388,h;function _0x3cfdb9(_0x5163de,_0x45be54,_0x28c7d8,_0x1a5eb6){const _0xa11b66={_0x41f601:0x271};return _0x5807(_0x1a5eb6-_0xa11b66._0x41f601,_0x28c7d8);}(_0x1cd52c=>{const _0x11a9d4={_0xdae5a2:0x26c,_0x152cf9:0x26f},_0x4351b2={_0x304e4f:0x3e0,_0x33b81a:0x3e3,_0x53d86a:0x3c7,_0x29bff7:0x3d8,_0x41d96e:0x3de,_0x38fd74:0x3d1,_0xf2adf8:0x3ec,_0xdecaed:0x3eb,_0x405551:0x3c3,_0x357293:0x3cd,_0x1aea37:0x3d0},_0x22a4b9={_0x3227c3:0x3c,_0x5210bb:0x26,_0x5dba3a:0x44,_0x45453c:0x46,_0x5f5c28:0x1b7,_0x27611d:0x3d,_0x3e98ff:0x4a},_0x4c49e3={_0x51fa98:0x211,_0x2fff19:0x22e,_0x438f9c:0x223,_0x17afe1:0x227},_0x37cca1={_0x58f6c7:0xca},_0x24fc59={_0x2d4bb8:0x32};function _0x238e25(_0x24c0b5,_0x157286,_0x4925bc,_0x57064b){return _0x2769bb(_0x57064b,_0x4925bc- -0x24,_0x4925bc-_0x24fc59._0x2d4bb8,_0x57064b-0x113);}async function _0x57f679(_0x47dc9b){function _0x56e4b3(_0x5da364,_0x31b7b4,_0x4ceb8a,_0x36075f){return _0x5807(_0x5da364- -0x320,_0x36075f);}let _0x273c5c=_0x1b05c9();function _0x47d88f(_0x23c131,_0x537642,_0x478b75,_0x5baeab){return _0x5807(_0x537642-_0x37cca1._0x58f6c7,_0x5baeab);}try{let _0x248347=await _0x30a73c();if(_0x248347[_0x56e4b3(-0x218,-0x216,-0x21d,-_0x4c49e3._0x51fa98)]('-'))return{'current':_0x273c5c,'latest':_0x248347,'hasUpdate':!0x1};let _0x34effc=_0x190b8b(_0x273c5c,_0x248347)<0x0,_0x4e39b5={'current':_0x273c5c,'latest':_0x248347,'hasUpdate':_0x34effc};return _0x34effc&&_0x47dc9b?.['onUpdateAvailable']&&_0x47dc9b['onUpdateAvailable'](_0x4e39b5),_0x4e39b5;}catch(_0x5f29d2){return _0x47dc9b?.[_0x56e4b3(-_0x4c49e3._0x2fff19,-_0x4c49e3._0x438f9c,-0x228,-0x238)]&&_0x47dc9b[_0x56e4b3(-0x22e,-0x237,-_0x4c49e3._0x17afe1,-0x223)](_0x5f29d2 instanceof Error?_0x5f29d2:new Error(String(_0x5f29d2))),{'current':_0x273c5c,'latest':_0x273c5c,'hasUpdate':!0x1};}}_0x1cd52c[_0x238e25(-_0x11a9d4._0xdae5a2,-_0x11a9d4._0x152cf9,-0x271,-0x26c)]=_0x57f679;function _0x30a73c(){const _0x52c0b9={_0x228e7b:0x199,_0x2d501a:0x18d,_0x583269:0x18c};return new Promise((_0x2949df,_0x3001a4)=>{const _0x551d2c={_0x4d5165:0xd9,_0x42f40d:0xe3,_0x2d6aca:0xdf,_0x462cb1:0xd6},_0x462a39={_0x5af39a:0x2a9},_0x5788c8={_0x4cb41e:0x370,_0x456f3d:0x379,_0x2bf914:0x37b,_0x43aabd:0x386,_0x50cfc7:0x34a,_0x31c9a1:0x33d,_0x558a5a:0x33f,_0x2d2817:0x35c,_0x487976:0x35a},_0x2c377a={_0x1ad4a7:0x1b1};function _0x122e94(_0x525e85,_0x414226,_0x3ec9c2,_0x3e5dfd){return _0x5807(_0x525e85- -0x131,_0x3e5dfd);}let _0x3bf723={'hostname':d,'path':'/'+encodeURIComponent(m)+'/latest','method':_0x122e94(-0x2f,-0x28,-_0x22a4b9._0x3227c3,-_0x22a4b9._0x5210bb),'headers':{'Accept':_0x122e94(-0x37,-_0x22a4b9._0x5dba3a,-0x44,-0x31)},'timeout':f},_0x4b70fd=_0x429589[_0x122e94(-0x3a,-0x48,-0x34,-_0x22a4b9._0x45453c)](_0x3bf723,_0x52d570=>{const _0xf19963={_0x2d87b8:0x130,_0x113d66:0x4c1};let _0x1648df='';function _0x446b53(_0x16cb1a,_0xf9848c,_0x408d27,_0x330db4){return _0x262548(_0x16cb1a-_0x2c377a._0x1ad4a7,_0x16cb1a,_0x330db4-0x2a,_0x330db4-0x128);}_0x52d570['on'](_0x446b53(-_0x52c0b9._0x228e7b,-0x191,-_0x52c0b9._0x2d501a,-_0x52c0b9._0x583269),_0x7df31a=>{_0x1648df+=_0x7df31a;}),_0x52d570['on']('end',()=>{const _0x22904c={_0x2860ca:0x1b6};function _0x311078(_0x169a76,_0x100bad,_0x1e3dc1,_0x45f5a0){return _0x446b53(_0x45f5a0,_0x100bad-_0xf19963._0x2d87b8,_0x1e3dc1-0x198,_0x100bad-_0xf19963._0x113d66);}function _0x5c9ea6(_0x1a06aa,_0x81d636,_0x572412,_0x18b14e){return _0x446b53(_0x81d636,_0x81d636-_0x22904c._0x2860ca,_0x572412-0x12b,_0x572412-0x502);}try{if(_0x52d570[_0x5c9ea6(_0x5788c8._0x4cb41e,_0x5788c8._0x456f3d,_0x5788c8._0x2bf914,_0x5788c8._0x43aabd)]===0xc8){let _0x691170=JSON[_0x311078(_0x5788c8._0x50cfc7,_0x5788c8._0x31c9a1,0x342,_0x5788c8._0x558a5a)](_0x1648df);_0x2949df(_0x691170[_0x311078(0x350,0x34e,_0x5788c8._0x2d2817,_0x5788c8._0x487976)]);}else _0x3001a4(new Error('HTTP\x20'+_0x52d570['statusCode']));}catch(_0x46e0f7){_0x3001a4(_0x46e0f7);}});});function _0x262548(_0x240811,_0x1453fc,_0x24ff23,_0x2d2954){return _0x5807(_0x24ff23- -_0x462a39._0x5af39a,_0x1453fc);}_0x4b70fd['on']('error',_0x3001a4),_0x4b70fd['on'](_0x262548(-_0x22a4b9._0x5f5c28,-0x1b5,-0x1b3,-0x1ae),()=>{const _0x2ffad2={_0x4c5855:0x1df,_0x1053f2:0x4};function _0x24fad8(_0x35686c,_0x36855a,_0x3b9dbe,_0x2ecbb8){return _0x262548(_0x35686c-_0x2ffad2._0x4c5855,_0x2ecbb8,_0x3b9dbe-0xc5,_0x2ecbb8-_0x2ffad2._0x1053f2);}_0x4b70fd['destroy'](),_0x3001a4(new Error(_0x24fad8(-_0x551d2c._0x4d5165,-_0x551d2c._0x42f40d,-_0x551d2c._0x2d6aca,-_0x551d2c._0x462cb1)));}),_0x4b70fd[_0x122e94(-_0x22a4b9._0x27611d,-0x3e,-0x3b,-_0x22a4b9._0x3e98ff)]();});}function _0x190b8b(_0x150778,_0x265b61){const _0xc791c7={_0x4bbafd:0x102};function _0x49dbae(_0x1d4603,_0x98a842,_0x3c7243,_0x37da6f){return _0x238e25(_0x1d4603-0x1c,_0x98a842-0xe2,_0x1d4603-0x635,_0x37da6f);}let _0x51ad95=_0x1c23c7=>_0x1c23c7[_0x49dbae(0x3d1,0x3dc,0x3d1,0x3c6)](/^v/,'')[_0x49dbae(0x3c5,0x3b7,0x3ba,0x3ce)]('-')[0x0],_0x429ad4=_0x51ad95(_0x150778)['split']('.')[_0x11006a(0x3e8,0x3f6,0x3f3,0x3e1)](Number),_0x4a793a=_0x51ad95(_0x265b61)[_0x11006a(_0x4351b2._0x304e4f,0x3db,_0x4351b2._0x33b81a,0x3d1)]('.')[_0x49dbae(0x3cd,_0x4351b2._0x53d86a,0x3d4,_0x4351b2._0x29bff7)](Number);function _0x11006a(_0x389c30,_0x45c716,_0x4bd6c0,_0x273e0c){return _0x238e25(_0x389c30-_0xc791c7._0x4bbafd,_0x45c716-0x46,_0x389c30-0x650,_0x273e0c);}for(let _0x57c0ab=0x0;_0x57c0ab<Math['max'](_0x429ad4[_0x11006a(_0x4351b2._0x41d96e,_0x4351b2._0x38fd74,_0x4351b2._0xf2adf8,_0x4351b2._0xdecaed)],_0x4a793a[_0x49dbae(_0x4351b2._0x405551,_0x4351b2._0x357293,_0x4351b2._0x1aea37,0x3c6)]);_0x57c0ab++){let _0x171e7b=_0x429ad4[_0x57c0ab]||0x0,_0x3ecdfb=_0x4a793a[_0x57c0ab]||0x0;if(_0x171e7b>_0x3ecdfb)return 0x1;if(_0x171e7b<_0x3ecdfb)return-0x1;}return 0x0;}})(h||={});export{h as UpdateChecker};
|
package/dist/VERSION
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x26cd2a,_0x432eca){const _0x521422={_0x166a95:0x4b2,_0x215e03:0x4d2,_0x55e085:0x491,_0x1d456e:0x5d5,_0xfb068c:0x5cb,_0x528e2f:0x47a,_0x46f987:0x498,_0x8dae71:0x459,_0x31b3b3:0x461,_0x29efe0:0x598,_0x415011:0x5a2,_0xc5748:0x4a4,_0x372f09:0x48a,_0x483a8e:0x4a7,_0x3eb16b:0x4a1,_0x1f1e7b:0x4c3},_0x25364b={_0x3a26d5:0x2d2},_0x554cf1=_0x26cd2a();function _0x3711ef(_0x5f1084,_0x44f39d,_0x46ed14,_0x174cdc){return _0x2c97(_0x5f1084-_0x25364b._0x3a26d5,_0x174cdc);}function _0x39b1a4(_0xe21d80,_0x9aa1eb,_0x4c1830,_0x3a93e0){return _0x2c97(_0x9aa1eb-0x3e2,_0x3a93e0);}while(!![]){try{const _0x283b8a=-parseInt(_0x3711ef(_0x521422._0x166a95,0x4ba,_0x521422._0x215e03,_0x521422._0x55e085))/0x1+-parseInt(_0x39b1a4(_0x521422._0x1d456e,0x5ba,0x5d3,_0x521422._0xfb068c))/0x2*(-parseInt(_0x3711ef(_0x521422._0x528e2f,_0x521422._0x46f987,_0x521422._0x8dae71,_0x521422._0x31b3b3))/0x3)+parseInt(_0x39b1a4(0x579,0x58d,0x598,0x5ad))/0x4+parseInt(_0x39b1a4(0x59f,0x580,_0x521422._0x29efe0,0x59f))/0x5+parseInt(_0x39b1a4(0x594,0x59e,_0x521422._0x415011,0x57c))/0x6+parseInt(_0x3711ef(0x49d,_0x521422._0xc5748,0x4a6,0x47b))/0x7*(-parseInt(_0x3711ef(_0x521422._0x372f09,0x47d,0x49f,_0x521422._0x483a8e))/0x8)+-parseInt(_0x3711ef(_0x521422._0x3eb16b,0x4b2,_0x521422._0x1f1e7b,0x495))/0x9;if(_0x283b8a===_0x432eca)break;else _0x554cf1['push'](_0x554cf1['shift']());}catch(_0x2f09cb){_0x554cf1['push'](_0x554cf1['shift']());}}}(_0x1b0c,0x910d3));function _0x395103(_0x253431,_0x30cd0c,_0x3893db,_0x18c197){const _0x213689={_0x1cf47a:0xa6};return _0x2c97(_0x18c197- -_0x213689._0x1cf47a,_0x253431);}function _0x2c97(_0x139c10,_0x4a6c3d){_0x139c10=_0x139c10-0x19e;const _0x1b0c16=_0x1b0c();let _0x2c9713=_0x1b0c16[_0x139c10];if(_0x2c97['dqBpcr']===undefined){var _0x32ab0b=function(_0x3bd1bd){const _0x425f5e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x29c333='',_0x1fae04='';for(let _0x22b782=0x0,_0xe8af15,_0x5d3b50,_0x115e7d=0x0;_0x5d3b50=_0x3bd1bd['charAt'](_0x115e7d++);~_0x5d3b50&&(_0xe8af15=_0x22b782%0x4?_0xe8af15*0x40+_0x5d3b50:_0x5d3b50,_0x22b782++%0x4)?_0x29c333+=String['fromCharCode'](0xff&_0xe8af15>>(-0x2*_0x22b782&0x6)):0x0){_0x5d3b50=_0x425f5e['indexOf'](_0x5d3b50);}for(let _0x14be51=0x0,_0x4a0bdd=_0x29c333['length'];_0x14be51<_0x4a0bdd;_0x14be51++){_0x1fae04+='%'+('00'+_0x29c333['charCodeAt'](_0x14be51)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1fae04);};_0x2c97['UjeiiQ']=_0x32ab0b,_0x2c97['rdYJMY']={},_0x2c97['dqBpcr']=!![];}const _0x2e0d31=_0x1b0c16[0x0],_0x177f96=_0x139c10+_0x2e0d31,_0x32e830=_0x2c97['rdYJMY'][_0x177f96];return!_0x32e830?(_0x2c9713=_0x2c97['UjeiiQ'](_0x2c9713),_0x2c97['rdYJMY'][_0x177f96]=_0x2c9713):_0x2c9713=_0x32e830,_0x2c9713;}function _0x3893e1(_0x2d3a2c,_0x49ca69,_0x199a7a,_0x7b652){const _0x283926={_0x422acb:0x6d};return _0x2c97(_0x7b652- -_0x283926._0x422acb,_0x49ca69);}var s=_0x3893e1(0x168,0x185,0x18b,0x16c),c=_0x395103(0x120,0x13f,0x13a,0x12d),g='profiles';import*as _0x29c333 from'fs';import*as _0x1fae04 from'os';import*as _0x22b782 from'path';import{parse as _0xe8af15,stringify as _0x5d3b50}from'yaml';function _0x1b0c(){const _0x49123b=['z2v0uhjVzMLSzunVBw1HBMrZrgLY','lM51DMLU','z2v0uhjVzMLSzufNzw50C0rPCG','ntyYodrgDM5MELC','zgvMyxvSDa','y29WEuzPBgu','Aw5PDgLHBgL6zq','CMvNAxn0CNK','BwvZC2fNzq','Dg9ju09tDhjPBMC','ywDLBNrZ','nJGZnJuWAuTutKXe','AM9PBG','ntuZode3mffUzfHsuW','y29TBwfUzhm','y2XVBMvqCM9MAwXLrMLSzxm','BwTKAxi','DxrMltG','zxHPC3rZu3LUyW','BMfTzq','BgLZDa','z2v0uhjVzMLSzurPCG','jY4Gu3DPDgnOihrVigfUB3rOzxiGChjVzMLSzsbMAxjZDcbVCIb1C2uGls1MB3jJzq','m0DnwvzAyW','CMvHzezPBgu','zgvSzxrL','mZGYmdG5mNPcA0TytW','u291CMnLihbYB2zPBguGjW','C2vZC2LVBNm','DMfSDwvZ','AxnezwzHDwX0','ChjVzMLSzxm','yMfZzurPCG','uhjVzMLSzsaN','y2XVBMvgCM9T','zgvZy3jPChrPB24','ywn0AxzL','y3jLyxrL','jYbKB2vZig5VDcbLEgLZDa','mZq4ntzZtxnAAhu','D3jPDgvgAwXL','DgvZDa','Bg9HzfjLz2LZDhj5','ndKXoduYngDjrgDwqq','rMfPBgvKihrVihnHDMuGChjVzMLSzxmGCMvNAxn0CNK6ia','C2f2zvjLz2LZDhj5','q2fUBM90igrLBgv0zsbHy3rPDMuGChjVzMLSzsaN','y29UzMLNlNLHBwW','zxHPC3rZ','ChjVBwLZzxm','q2fUBM90ignYzwf0zsbWCM9MAwXLig5HBwvKicC','CMvNAxn0CNLqyxrO','y29WEurPCMvJDg9YEq','AxneAxjLy3rVCNK','uhjVzMLSzsbUyw1Lig11C3qGy29UDgfPBIbVBMX5igfSCgHHBNvTzxjPyYbJAgfYywn0zxjZlcbOExbOzw5ZlcbHBMqGDw5KzxjZy29Yzxm','jYbHBhjLywr5igv4Axn0CW','Ag9TzwrPCG','z2v0uhjVzMLSzvnLC3nPB25ZrgLY','mJG3Au9kBuDA','zM9Yy2u','z2v0uhjVzMLSzunVBMzPz1bHDgG','B2jQzwn0','mtmWodKWmtvbzLPYr1a','jYaOCMvZzxj2zwqP','ChvZAa','ChjVzMLSzxneAxi','ChjVzMLSzxmUEwfTBa','Bg9Nz2vY'];_0x1b0c=function(){return _0x49123b;};return _0x1b0c();}var p=class{constructor(_0x115e7d=()=>{}){const _0x41ae30={_0x26b300:0x16e,_0x124f98:0x176,_0x6df2bf:0x463,_0x454778:0x48c,_0x44f8ed:0x45c,_0x13688:0x470,_0xc8bf06:0x473,_0x2c907e:0x18f,_0x57a4af:0x181,_0x33db03:0x1a8,_0x2db802:0x183,_0x56f4f9:0x462,_0x4a0797:0x44b},_0x2fca43={_0xdd960c:0x18d,_0x4ebdcb:0xe4,_0x253198:0x55},_0x50808b={_0x437fa1:0x32};function _0x1911f7(_0x200deb,_0x380841,_0xba7fde,_0x549420){return _0x395103(_0x200deb,_0x380841-0xae,_0xba7fde-_0x50808b._0x437fa1,_0xba7fde-0x340);}this[_0x1911f7(0x487,0x451,0x46e,0x47f)]=_0x115e7d;function _0x51fed9(_0x49c5ed,_0xa3110,_0x13f83f,_0x56f119){return _0x395103(_0x56f119,_0xa3110-_0x2fca43._0xdd960c,_0x13f83f-_0x2fca43._0x4ebdcb,_0x13f83f-_0x2fca43._0x253198);}this[_0x51fed9(_0x41ae30._0x26b300,_0x41ae30._0x124f98,0x160,0x142)]=_0x22b782['join'](_0x1fae04[_0x1911f7(0x47e,_0x41ae30._0x6df2bf,0x463,0x45f)](),_0x1911f7(_0x41ae30._0x454778,_0x41ae30._0x44f8ed,_0x41ae30._0x13688,_0x41ae30._0xc8bf06)),this[_0x51fed9(0x16e,_0x41ae30._0x2c907e,_0x41ae30._0x57a4af,0x191)]=_0x22b782[_0x51fed9(0x19a,_0x41ae30._0x33db03,0x190,_0x41ae30._0x2db802)](this['baseDir'],g),this[_0x1911f7(0x445,0x471,0x45e,0x480)]=_0x22b782['join'](this[_0x1911f7(_0x41ae30._0x56f4f9,0x449,_0x41ae30._0x4a0797,0x42c)],c),this['registry']={'active':s,'profiles':{}};}async[_0x3893e1(0x164,0x14f,0x154,0x16e)](){const _0x4cd722={_0x5d7278:0x5a0,_0x101aa3:0x5b9,_0x1af34e:0x482,_0x45ee21:0x478,_0x23ae86:0x580,_0x4ef97e:0x599,_0x539722:0x5ac,_0x56176b:0x5b5,_0x1bee8a:0x47a,_0x418490:0x48c,_0x36ca15:0x48e,_0x4b1a7f:0x47d},_0x23c615={_0x50e5ea:0x10a},_0x4087fb={_0x5d216b:0x99,_0xa960f1:0x187};function _0x5451a7(_0x34d087,_0x17a535,_0x24ab3f,_0x50a5d3){return _0x3893e1(_0x34d087-_0x4087fb._0x5d216b,_0x34d087,_0x24ab3f-_0x4087fb._0xa960f1,_0x24ab3f-0x340);}function _0x4a783c(_0x3934ce,_0x4a9eda,_0x35c098,_0x20deac){return _0x3893e1(_0x3934ce-_0x23c615._0x50e5ea,_0x35c098,_0x35c098-0xf7,_0x3934ce-0x447);}await _0x29c333[_0x4a783c(0x59c,_0x4cd722._0x5d7278,_0x4cd722._0x101aa3,0x5a9)][_0x5451a7(_0x4cd722._0x1af34e,0x47a,0x474,0x474)](this[_0x5451a7(_0x4cd722._0x45ee21,0x48b,0x484,0x49b)],{'recursive':!0x0}),await _0x29c333['promises'][_0x4a783c(0x57b,_0x4cd722._0x23ae86,0x591,_0x4cd722._0x4ef97e)](this[_0x4a783c(_0x4cd722._0x539722,0x595,0x5cc,0x58a)],{'recursive':!0x0}),this[_0x4a783c(0x5b6,0x5be,_0x4cd722._0x56176b,0x594)]=await this[_0x5451a7(_0x4cd722._0x1bee8a,_0x4cd722._0x418490,_0x4cd722._0x36ca15,_0x4cd722._0x4b1a7f)]();}async[_0x3893e1(0x13d,0x127,0x138,0x138)](){const _0x2a3c36={_0x51f611:0x3bc,_0x4435f:0x3de,_0x13721f:0x3e8,_0x5b26b7:0x365,_0x22fd0a:0x37e,_0x39bd84:0x368,_0x26074b:0x38c},_0xb8ee3e={_0x4c0da2:0x1dc,_0xea732a:0x274},_0x5df21e={_0x862602:0x2b3};function _0x14bb27(_0x49396b,_0x404d27,_0x3be09a,_0x303f40){return _0x395103(_0x303f40,_0x404d27-0x1ad,_0x3be09a-0x177,_0x404d27-_0x5df21e._0x862602);}let _0x14be51=[];_0x14be51[_0x14bb27(_0x2a3c36._0x51f611,_0x2a3c36._0x4435f,0x3dc,_0x2a3c36._0x13721f)]({'name':s,'description':'Default\x20profile','created':new Date()['toISOString'](),'lastUsed':new Date()['toISOString']()});function _0xb640d1(_0x133980,_0x315254,_0x1d2d9c,_0x253747){return _0x395103(_0x253747,_0x315254-0x188,_0x1d2d9c-_0xb8ee3e._0x4c0da2,_0x133980-_0xb8ee3e._0xea732a);}for(let _0x4a0bdd of Object[_0xb640d1(0x37c,_0x2a3c36._0x5b26b7,0x35a,0x38a)](this[_0x14bb27(0x3fa,0x3e9,0x3d0,0x3cf)][_0xb640d1(_0x2a3c36._0x22fd0a,_0x2a3c36._0x39bd84,0x388,_0x2a3c36._0x26074b)]))_0x14be51[_0xb640d1(0x39f,0x38e,0x3ba,0x37f)](_0x4a0bdd);return _0x14be51;}async[_0x395103(0xef,0x10b,0x103,0x110)](_0x2b0380,_0x22b946={}){const _0x5cdca8={_0x380368:0x11a,_0x3f2cc8:0x103,_0x4d637:0x120,_0xe20385:0x5a1,_0x52bdae:0x584,_0x295705:0x123,_0x365851:0x121,_0xea122:0x598,_0x22e0c1:0x59e,_0x1965c2:0x5b4,_0x3b604e:0x583,_0x5caf0f:0x57a,_0x16c6ea:0x569,_0x3dee00:0x599,_0x52ceb8:0x59c,_0x11fabd:0x137,_0x246240:0x11e,_0x509387:0x106,_0x4b6598:0x13c,_0xaa2461:0x147,_0x1ec1fd:0x13c,_0x13ecee:0x125,_0x47aa87:0x14e,_0x179a5f:0x127,_0x3595a6:0x14f,_0x3850c8:0x5a5,_0x27bb8d:0x116,_0x150c8f:0x118,_0x3ce811:0x11b,_0x1bfa7f:0x115,_0x1b3024:0x123,_0x454255:0x129,_0x24346e:0x13c,_0x2a99d8:0x157,_0x352dee:0x5a7,_0x54740f:0x571,_0x30fce6:0x585,_0x52e58d:0x57c,_0x470f74:0x58f,_0x45744f:0x12a,_0x632b9:0x113,_0x22ea49:0x108,_0x5687dc:0x114,_0x5a346e:0x131,_0x555b48:0x110,_0x46b7b2:0x12a,_0x333088:0x583,_0x453b65:0x573,_0x477eb8:0x136,_0x239806:0x129,_0x87f79:0x10b,_0x164528:0x138,_0x477eb3:0x10a,_0x3730a1:0x5af,_0x5c2a8e:0x59b,_0x2febf1:0x11f},_0x592212={_0x118d00:0x12b},_0x26babd={_0x595244:0x40,_0x59f49d:0x270};if(_0x2b0380===s)throw new Error(_0x44cc40(-_0x5cdca8._0x380368,-0x104,-_0x5cdca8._0x3f2cc8,-_0x5cdca8._0x4d637)+s+_0x1e35d8(_0x5cdca8._0xe20385,0x5a4,0x590,_0x5cdca8._0x52bdae));if(!/^[a-zA-Z0-9_-]+$/[_0x44cc40(-_0x5cdca8._0x295705,-0x13b,-0x117,-_0x5cdca8._0x365851)](_0x2b0380))throw new Error(_0x1e35d8(_0x5cdca8._0xea122,_0x5cdca8._0x22e0c1,0x585,_0x5cdca8._0x1965c2));function _0x44cc40(_0x3cd3a4,_0x473613,_0x5a7b24,_0x5bd0ff){return _0x3893e1(_0x3cd3a4-0x80,_0x5a7b24,_0x5a7b24-_0x26babd._0x595244,_0x3cd3a4- -_0x26babd._0x59f49d);}if(await this['exists'](_0x2b0380))throw new Error(_0x1e35d8(_0x5cdca8._0x3b604e,_0x5cdca8._0x5caf0f,0x59f,_0x5cdca8._0x16c6ea)+_0x2b0380+_0x1e35d8(_0x5cdca8._0x3dee00,_0x5cdca8._0x52ceb8,0x5b9,0x5a2));function _0x1e35d8(_0x53effc,_0x1909a7,_0x515889,_0x265f1f){return _0x3893e1(_0x53effc-_0x592212._0x118d00,_0x1909a7,_0x515889-0xbe,_0x53effc-0x43e);}let _0x26aa66=this[_0x44cc40(-_0x5cdca8._0x11fabd,-0x13c,-0x145,-_0x5cdca8._0x246240)](_0x2b0380);if(await _0x29c333[_0x44cc40(-0x11b,-0x125,-_0x5cdca8._0x509387,-_0x5cdca8._0x4d637)][_0x44cc40(-_0x5cdca8._0x4b6598,-_0x5cdca8._0xaa2461,-0x159,-_0x5cdca8._0x1ec1fd)](_0x26aa66,{'recursive':!0x0}),await _0x29c333[_0x44cc40(-0x11b,-_0x5cdca8._0x13ecee,-0x114,-0xfd)][_0x44cc40(-0x13c,-_0x5cdca8._0x47aa87,-_0x5cdca8._0x179a5f,-_0x5cdca8._0x3595a6)](_0x22b782[_0x1e35d8(0x5b2,_0x5cdca8._0x3850c8,0x591,0x5c9)](_0x26aa66,_0x44cc40(-0xfe,-0xdc,-_0x5cdca8._0x27bb8d,-_0x5cdca8._0x150c8f)),{'recursive':!0x0}),await _0x29c333[_0x44cc40(-_0x5cdca8._0x3ce811,-0x117,-_0x5cdca8._0x1bfa7f,-_0x5cdca8._0x1b3024)][_0x44cc40(-0x13c,-_0x5cdca8._0x454255,-_0x5cdca8._0x24346e,-_0x5cdca8._0x2a99d8)](_0x22b782[_0x1e35d8(0x5b2,0x5c1,_0x5cdca8._0x352dee,0x594)](_0x26aa66,_0x1e35d8(0x57e,_0x5cdca8._0x54740f,_0x5cdca8._0x30fce6,_0x5cdca8._0x52e58d)),{'recursive':!0x0}),_0x22b946[_0x1e35d8(0x584,0x58a,0x56b,_0x5cdca8._0x470f74)]&&_0x22b946[_0x44cc40(-_0x5cdca8._0x45744f,-0x110,-_0x5cdca8._0x13ecee,-0x120)]!==s){if(!await this[_0x44cc40(-0x11c,-0x10b,-_0x5cdca8._0x632b9,-0xfe)](_0x22b946[_0x44cc40(-_0x5cdca8._0x45744f,-_0x5cdca8._0x22ea49,-0x10c,-_0x5cdca8._0x5687dc)]))throw new Error(_0x44cc40(-_0x5cdca8._0x5a346e,-0x134,-_0x5cdca8._0x555b48,-0x121)+_0x22b946[_0x44cc40(-_0x5cdca8._0x46b7b2,-0x120,-0x110,-0x10c)]+_0x1e35d8(0x588,_0x5cdca8._0x333088,0x599,_0x5cdca8._0x453b65));await this['cloneProfileFiles'](_0x22b946[_0x44cc40(-_0x5cdca8._0x45744f,-_0x5cdca8._0xaa2461,-_0x5cdca8._0x477eb8,-0x140)],_0x2b0380);}let _0x3c5fa3={'name':_0x2b0380,'description':_0x22b946[_0x44cc40(-_0x5cdca8._0x239806,-_0x5cdca8._0x87f79,-_0x5cdca8._0x164528,-_0x5cdca8._0x477eb3)],'created':new Date()[_0x1e35d8(_0x5cdca8._0x3730a1,_0x5cdca8._0x5c2a8e,0x5cf,0x59a)](),'lastUsed':new Date()[_0x1e35d8(_0x5cdca8._0x3730a1,0x59b,0x5b3,0x5c6)]()};this['registry']['profiles'][_0x2b0380]=_0x3c5fa3,await this[_0x44cc40(-_0x5cdca8._0x2febf1,-0x116,-0x12e,-0x10f)]();}async[_0x395103(0xfc,0xe4,0xf3,0x104)](_0x355d7e,_0x4486b6={}){const _0x353a3d={_0x1f2687:0x536,_0x2a1261:0x521,_0x15a3af:0x501,_0x3f94b3:0x525,_0x9a3d0d:0x512,_0x595b04:0x50f,_0x3f3f9d:0x505,_0x29026a:0x53e,_0x37bcc3:0x531,_0x3588f3:0x51f,_0x53504f:0x52c,_0xd8452c:0x1eb,_0x404d80:0x1b5,_0x16b51d:0x4ea,_0x4a9d11:0x4f1,_0x47936b:0x525,_0x8eccee:0x51f,_0x1958b:0x1fd,_0x1cf368:0x1e3,_0x15fea7:0x517,_0x1bab17:0x506,_0x29bb3c:0x1bd,_0x5558b3:0x1cf,_0x4c32f5:0x199,_0x2564af:0x1dc,_0x1c6160:0x531,_0x7cb9bb:0x522},_0x23f412={_0x5412cf:0x111};function _0x3ab98d(_0x18f86a,_0x25f7f8,_0x5307c8,_0xf9d85d){return _0x3893e1(_0x18f86a-0x158,_0x25f7f8,_0x5307c8-0x53,_0xf9d85d- -0x326);}if(_0x355d7e===s)throw new Error('Cannot\x20delete\x20default\x20profile');if(!await this[_0x136f57(0x528,0x522,_0x353a3d._0x1f2687,_0x353a3d._0x2a1261)](_0x355d7e))throw new Error(_0x136f57(0x504,_0x353a3d._0x15a3af,_0x353a3d._0x3f94b3,_0x353a3d._0x9a3d0d)+_0x355d7e+_0x136f57(0x504,_0x353a3d._0x595b04,_0x353a3d._0x3f3f9d,0x517));if(this[_0x136f57(_0x353a3d._0x29026a,0x538,_0x353a3d._0x37bcc3,0x53c)][_0x136f57(0x506,_0x353a3d._0x3588f3,0x508,0x515)]===_0x355d7e){if(!_0x4486b6[_0x136f57(0x54b,0x515,0x544,_0x353a3d._0x53504f)])throw new Error(_0x3ab98d(-_0x353a3d._0xd8452c,-0x1c4,-_0x353a3d._0x404d80,-0x1d4)+_0x355d7e+_0x136f57(_0x353a3d._0x16b51d,_0x353a3d._0x4a9d11,0x4fd,0x507));this[_0x136f57(_0x353a3d._0x47936b,_0x353a3d._0x8eccee,0x53e,0x53c)][_0x3ab98d(-0x1d5,-_0x353a3d._0x1958b,-_0x353a3d._0x1cf368,-0x1de)]=s;}let _0x2f8d9b=this[_0x136f57(_0x353a3d._0x15fea7,0x521,0x50a,_0x353a3d._0x1bab17)](_0x355d7e);function _0x136f57(_0x1c6749,_0x5532f2,_0x37b889,_0x29a1e7){return _0x395103(_0x37b889,_0x5532f2-_0x23f412._0x5412cf,_0x37b889-0xbd,_0x29a1e7-0x406);}_0x29c333['existsSync'](_0x2f8d9b)&&await _0x29c333['promises']['rm'](_0x2f8d9b,{'recursive':!0x0,'force':!0x0}),delete this[_0x3ab98d(-_0x353a3d._0x29bb3c,-_0x353a3d._0x5558b3,-_0x353a3d._0x4c32f5,-0x1b7)][_0x3ab98d(-_0x353a3d._0x2564af,-0x1f2,-0x1d9,-0x1e3)][_0x355d7e],await this[_0x136f57(_0x353a3d._0x1c6160,_0x353a3d._0x7cb9bb,0x530,0x51e)]();}async['switch'](_0x1b307f){const _0x35af64={_0x30c7f9:0xd5,_0x38fa53:0xfa,_0x3b85dd:0x174,_0x23ea55:0x148,_0x296d1b:0xc7,_0x2654d3:0xe5,_0x3868ee:0x170,_0x2e9cfb:0xcb,_0x45e394:0xdf,_0x3be3f3:0xe5,_0x109ec9:0x14e,_0x4fc02c:0x171,_0x28598d:0x162,_0x3c4a3f:0xf2,_0x54696c:0xe7,_0xd4558e:0xc9},_0x101d36={_0x2574e9:0xce};function _0x28438c(_0x5c951f,_0x4d563c,_0x49c989,_0x91a12e){return _0x395103(_0x5c951f,_0x4d563c-0x77,_0x49c989-0x16f,_0x91a12e- -0x1ef);}function _0x113d93(_0x4ae3fa,_0x4c1bf7,_0x1b4fc4,_0x447daa){return _0x395103(_0x447daa,_0x4c1bf7-_0x101d36._0x2574e9,_0x1b4fc4-0x1a6,_0x4c1bf7-0x33);}if(_0x1b307f!==s&&!await this['exists'](_0x1b307f))throw new Error(_0x28438c(-0x103,-_0x35af64._0x30c7f9,-_0x35af64._0x38fa53,-0xe3)+_0x1b307f+_0x113d93(0x152,0x144,0x161,0x14e));this[_0x113d93(0x17c,0x169,0x16a,_0x35af64._0x3b85dd)]['active']=_0x1b307f,_0x1b307f!==s&&this[_0x113d93(0x155,0x169,_0x35af64._0x23ea55,0x160)][_0x28438c(-0xe5,-0xfe,-_0x35af64._0x296d1b,-_0x35af64._0x2654d3)][_0x1b307f]&&(this[_0x113d93(_0x35af64._0x3868ee,0x169,0x14f,0x166)][_0x28438c(-_0x35af64._0x2e9cfb,-0xd4,-_0x35af64._0x45e394,-_0x35af64._0x3be3f3)][_0x1b307f]['lastUsed']=new Date()[_0x113d93(_0x35af64._0x109ec9,0x16b,_0x35af64._0x4fc02c,_0x35af64._0x28598d)]()),await this[_0x28438c(-_0x35af64._0x3c4a3f,-_0x35af64._0x54696c,-_0x35af64._0xd4558e,-0xd7)]();}async['getActive'](){const _0x2df2e5={_0x1c9698:0x1e0,_0x5abd96:0x1ee,_0x411bde:0x207};function _0x18f9d5(_0x418345,_0x4d9322,_0x2650a8,_0x384b3d){return _0x395103(_0x4d9322,_0x4d9322-0x13b,_0x2650a8-0x73,_0x384b3d-0xfc);}function _0x5394df(_0x36df0e,_0x5b1f98,_0x50434c,_0x185d3a){return _0x395103(_0x50434c,_0x5b1f98-0xac,_0x50434c-0x28,_0x36df0e- -0x316);}return this[_0x5394df(-_0x2df2e5._0x1c9698,-0x1f9,-_0x2df2e5._0x5abd96,-0x1da)][_0x5394df(-_0x2df2e5._0x411bde,-0x203,-0x215,-0x209)]||s;}async['exists'](_0x217e11){const _0x2ed7e1={_0x3968d0:0x84,_0x3c7b5e:0x82,_0x52c622:0x82,_0x9756fe:0x1ca,_0x46545b:0x192,_0x2405ba:0x1bf,_0x2c6c0e:0x1af,_0x194675:0x1bd,_0x1cb493:0x1dd},_0x4d2e05={_0xe22201:0x183,_0x1db4a0:0x2f5},_0x3f839b={_0x105e49:0x13b,_0x4f843f:0xb6,_0xb41a82:0xb4};function _0x467a29(_0x51037b,_0x4c833f,_0x3d661a,_0x49675a){return _0x395103(_0x3d661a,_0x4c833f-_0x3f839b._0x105e49,_0x3d661a-_0x3f839b._0x4f843f,_0x4c833f- -_0x3f839b._0xb41a82);}function _0x50893f(_0x454cc3,_0x5185b7,_0x38be84,_0xbdf52b){return _0x3893e1(_0x454cc3-_0x4d2e05._0xe22201,_0xbdf52b,_0x38be84-0xe8,_0x454cc3- -_0x4d2e05._0x1db4a0);}return _0x217e11===s?!0x0:_0x217e11 in this[_0x467a29(_0x2ed7e1._0x3968d0,_0x2ed7e1._0x3c7b5e,0x6c,_0x2ed7e1._0x52c622)][_0x50893f(-0x1b2,-_0x2ed7e1._0x9756fe,-0x1ad,-_0x2ed7e1._0x46545b)]&&_0x29c333[_0x50893f(-_0x2ed7e1._0x2405ba,-0x1b8,-_0x2ed7e1._0x2c6c0e,-_0x2ed7e1._0x194675)](this[_0x50893f(-0x1bc,-0x19d,-_0x2ed7e1._0x1cb493,-0x1a7)](_0x217e11));}[_0x395103(0xec,0xe6,0xff,0x100)](_0x443501){const _0x2dd167={_0x3c2002:0x2a2,_0x4ada7a:0x29a,_0x404827:0x281,_0x50a6f1:0xda,_0x37a921:0xc2,_0x15d55d:0x2d7,_0x572d59:0x2e5},_0x53400f={_0x1d3f3f:0xc6},_0x357860={_0x39b8d0:0x51};function _0x1a964e(_0x1676dc,_0x372535,_0x16029f,_0x47bf8f){return _0x395103(_0x1676dc,_0x372535-0x173,_0x16029f-_0x357860._0x39b8d0,_0x372535-0x199);}function _0x553ed5(_0x25e6b3,_0x1d5b1c,_0x4eb67e,_0xdda79f){return _0x3893e1(_0x25e6b3-0x132,_0x1d5b1c,_0x4eb67e-_0x53400f._0x1d3f3f,_0x25e6b3- -0xb4);}return this[_0x1a964e(0x284,_0x2dd167._0x3c2002,_0x2dd167._0x4ada7a,_0x2dd167._0x404827)](_0x443501)?this['baseDir']:_0x22b782[_0x553ed5(0xc0,_0x2dd167._0x50a6f1,_0x2dd167._0x37a921,0xa7)](this[_0x1a964e(0x2bf,0x2c5,_0x2dd167._0x15d55d,_0x2dd167._0x572d59)],_0x443501);}[_0x3893e1(0x17f,0x14c,0x15c,0x160)](_0x2dd2c0){const _0x11da07={_0xa577b9:0x1fe,_0x152d10:0x1f7,_0x59cbdf:0x1f7},_0x564566={_0x514ad8:0x10a,_0x49b791:0x1df},_0x5a850f={_0x1be0ad:0x175,_0x21b045:0x16,_0x43876e:0xa4};function _0x4c3c43(_0x8dc253,_0x489eca,_0x46f36e,_0x50d581){return _0x3893e1(_0x8dc253-_0x5a850f._0x1be0ad,_0x489eca,_0x46f36e-_0x5a850f._0x21b045,_0x50d581-_0x5a850f._0x43876e);}function _0x269067(_0x31e158,_0x15ea64,_0x2a2686,_0x18b459){return _0x395103(_0x2a2686,_0x15ea64-_0x564566._0x514ad8,_0x2a2686-_0x564566._0x49b791,_0x18b459-0x29d);}return _0x22b782['join'](this[_0x4c3c43(_0x11da07._0xa577b9,0x1ff,0x1fe,0x1dd)](_0x2dd2c0),_0x4c3c43(0x1f5,_0x11da07._0x152d10,0x200,_0x11da07._0x59cbdf));}[_0x3893e1(0x157,0x169,0x164,0x16a)](_0xf261fc){const _0x51fa57={_0x20c255:0x1ad,_0x3ea3f3:0x187,_0x16287d:0x18b,_0x479726:0x19b,_0x470d6c:0x1e0,_0x3fea39:0x1d3,_0x54634a:0x207,_0x5c5bfb:0x1e5,_0x145877:0x1f9},_0x436fc2={_0x3835b8:0xa0},_0x2cde35={_0x5c2179:0x84};function _0x200b1f(_0x3c8968,_0x4d7423,_0x3b8143,_0x426735){return _0x395103(_0x4d7423,_0x4d7423-_0x2cde35._0x5c2179,_0x3b8143-0x77,_0x3b8143- -0x2c6);}function _0x4c7113(_0x108c2c,_0x129eb3,_0x442bbf,_0xf94bef){return _0x395103(_0x442bbf,_0x129eb3-_0x436fc2._0x3835b8,_0x442bbf-0x1a2,_0xf94bef-0xc0);}return _0x22b782[_0x200b1f(-_0x51fa57._0x20c255,-_0x51fa57._0x3ea3f3,-_0x51fa57._0x16287d,-_0x51fa57._0x479726)](this[_0x200b1f(-_0x51fa57._0x470d6c,-_0x51fa57._0x3fea39,-0x1c6,-0x1a8)](_0xf261fc),_0x4c7113(0x208,_0x51fa57._0x54634a,_0x51fa57._0x5c5bfb,_0x51fa57._0x145877));}[_0x395103(0x12c,0x10c,0x138,0x124)](_0x2d67fe){const _0x3338cd={_0x3290d7:0x3,_0x1f73b8:0x1e,_0x5b448a:0x42,_0x41c238:0x52},_0x184ebc={_0x578536:0x48},_0xeebdab={_0x26c023:0x14f,_0x3d5dcb:0xfb,_0x3b2390:0x64};function _0x3b7c95(_0x5876a6,_0x562152,_0x23207e,_0x45899a){return _0x3893e1(_0x5876a6-_0xeebdab._0x26c023,_0x45899a,_0x23207e-_0xeebdab._0x3d5dcb,_0x5876a6-_0xeebdab._0x3b2390);}function _0x2e6f8d(_0x152ea1,_0x5aa4b5,_0x5d244e,_0x46e605){return _0x395103(_0x152ea1,_0x5aa4b5-_0x184ebc._0x578536,_0x5d244e-0x17a,_0x46e605- -0x159);}return _0x22b782[_0x2e6f8d(_0x3338cd._0x3290d7,-0xe,-0x20,-_0x3338cd._0x1f73b8)](this['getProfileDir'](_0x2d67fe),_0x2e6f8d(-0x3d,-0x50,-_0x3338cd._0x5b448a,-_0x3338cd._0x41c238));}[_0x3893e1(0x155,0x157,0x174,0x168)](_0x3cf319){const _0x4ab311={_0x3b5bf1:0x45,_0x1537f1:0x5c,_0x1d3ebe:0x40,_0x2a4f5b:0x12c,_0x3d819a:0x159,_0x4aa13a:0x8e,_0x270cf6:0x7e,_0x346bd7:0x87,_0x330ec7:0x82},_0x599ec1={_0x528dec:0x190},_0x8f1843={_0x3b935b:0xbf};function _0x4ec869(_0x8b9ffe,_0x551cfa,_0x4e48a1,_0x355430){return _0x395103(_0x551cfa,_0x551cfa-0x17a,_0x4e48a1-_0x8f1843._0x3b935b,_0x355430- -0x17b);}function _0x50cb8c(_0x1507e5,_0x4a50eb,_0x5eb4ae,_0x4894f9){return _0x3893e1(_0x1507e5-0x1db,_0x4a50eb,_0x5eb4ae-_0x599ec1._0x528dec,_0x4894f9- -0x274);}return _0x22b782[_0x4ec869(-_0x4ab311._0x3b5bf1,-0x51,-_0x4ab311._0x1537f1,-_0x4ab311._0x1d3ebe)](this[_0x50cb8c(-_0x4ab311._0x2a4f5b,-0x132,-_0x4ab311._0x3d819a,-0x13b)](_0x3cf319),_0x4ec869(-_0x4ab311._0x4aa13a,-_0x4ab311._0x270cf6,-_0x4ab311._0x346bd7,-_0x4ab311._0x330ec7));}['isDefault'](_0x1b5d9e){return _0x1b5d9e===s;}async[_0x3893e1(0x16b,0x16e,0x148,0x14e)](){const _0x467b39={_0x2a5feb:0x214,_0x18b265:0x1e9,_0x350336:0x39,_0x4b7b4e:0x1e4,_0x49eff3:0x3c,_0x4dc584:0x1c3,_0x398808:0x1d3,_0x24d148:0x20,_0x5da09e:0x1dc,_0x2e4b2e:0x1f1,_0x5c3b42:0x1e6,_0x4a1cd7:0x33,_0x533a70:0x3b,_0x3aaf44:0x1f2,_0x163bf2:0x1ff,_0x49bec2:0x1ec,_0x405595:0x1db,_0x5d4c55:0x1aa},_0x3f4353={_0x3f6f13:0x18a,_0x3a7283:0xcf},_0x2df11a={_0x538b67:0x334};function _0x2065f7(_0x2b2a75,_0x5793ab,_0x5548a5,_0x14bbf4){return _0x3893e1(_0x2b2a75-0x1cf,_0x14bbf4,_0x5548a5-0x85,_0x5548a5- -_0x2df11a._0x538b67);}function _0x4cb3a5(_0x149b74,_0x407841,_0x128620,_0x2c6bb5){return _0x395103(_0x2c6bb5,_0x407841-0x129,_0x128620-_0x3f4353._0x3f6f13,_0x128620- -_0x3f4353._0x3a7283);}if(!_0x29c333[_0x2065f7(-_0x467b39._0x2a5feb,-_0x467b39._0x18b265,-0x1fe,-0x200)](this['registryPath']))return{'active':s,'profiles':{}};try{let _0x3ae899=await _0x29c333[_0x4cb3a5(_0x467b39._0x350336,0x48,0x4d,0x48)][_0x2065f7(-_0x467b39._0x4b7b4e,-0x1dd,-0x1f8,-0x1eb)](this['registryPath'],_0x4cb3a5(_0x467b39._0x49eff3,0x47,0x2d,0x40)),_0x3fdff4=_0xe8af15(_0x3ae899);if(!_0x3fdff4||typeof _0x3fdff4!=_0x2065f7(-0x1e7,-_0x467b39._0x4dc584,-_0x467b39._0x398808,-0x1ce))return{'active':s,'profiles':{}};let _0xfbfeb=_0x3fdff4;return(!_0xfbfeb[_0x4cb3a5(0x53,_0x467b39._0x24d148,0x3b,0x3c)]||typeof _0xfbfeb[_0x2065f7(-0x205,-_0x467b39._0x5da09e,-_0x467b39._0x2e4b2e,-_0x467b39._0x5c3b42)]!='object')&&(_0xfbfeb[_0x4cb3a5(0x3e,_0x467b39._0x4a1cd7,_0x467b39._0x533a70,0x3c)]={}),_0xfbfeb[_0x2065f7(-0x1e8,-_0x467b39._0x3aaf44,-0x1ec,-0x1fe)]||(_0xfbfeb[_0x2065f7(-0x200,-_0x467b39._0x163bf2,-_0x467b39._0x49bec2,-0x1ef)]=s),_0xfbfeb;}catch(_0x298a48){return this['logger']('Failed\x20to\x20load\x20profiles\x20registry:\x20'+(_0x298a48 instanceof Error?_0x298a48[_0x2065f7(-_0x467b39._0x405595,-0x1c5,-0x1c4,-_0x467b39._0x5d4c55)]:String(_0x298a48))),{'active':s,'profiles':{}};}}async[_0x3893e1(0x15e,0x14e,0x12f,0x151)](){const _0x3cfd4f={_0x9afd70:0x4f3,_0x187014:0x4d4,_0x52b228:0x4df,_0x63f7ac:0x4c1,_0x250f7c:0x4bf,_0x486991:0x1c,_0x245554:0x29,_0x40d021:0x4aa,_0x16ca82:0x481,_0x2d9784:0x49f,_0x5606a4:0x4d8,_0x386cf5:0x25,_0x359d60:0x24},_0x21f468={_0x369dd7:0x22},_0x4905f9={_0x1f4065:0x6,_0x2b883e:0x31,_0x36c7b7:0x36a};function _0x6f60c4(_0x5ada5e,_0x40af3b,_0x56c3c8,_0x120917){return _0x3893e1(_0x5ada5e-_0x4905f9._0x1f4065,_0x40af3b,_0x56c3c8-_0x4905f9._0x2b883e,_0x56c3c8-_0x4905f9._0x36c7b7);}function _0xc3296e(_0xb7482f,_0x59dab8,_0x1345b4,_0x71bb08){return _0x3893e1(_0xb7482f-_0x21f468._0x369dd7,_0x1345b4,_0x1345b4-0xec,_0x59dab8- -0x173);}try{let _0x482adc=_0x5d3b50(this[_0x6f60c4(_0x3cfd4f._0x9afd70,_0x3cfd4f._0x187014,0x4d9,_0x3cfd4f._0x52b228)]);await _0x29c333[_0x6f60c4(0x4c8,_0x3cfd4f._0x63f7ac,_0x3cfd4f._0x250f7c,0x4dc)][_0x6f60c4(0x4a7,0x4d6,0x4b6,0x4c3)](this[_0xc3296e(-0x30,-_0x3cfd4f._0x486991,-_0x3cfd4f._0x245554,-0x24)],_0x482adc,_0x6f60c4(_0x3cfd4f._0x40d021,_0x3cfd4f._0x16ca82,_0x3cfd4f._0x2d9784,0x482));}catch(_0x18258c){throw this['logger'](_0x6f60c4(_0x3cfd4f._0x5606a4,0x4a7,0x4ba,0x4c5)+(_0x18258c instanceof Error?_0x18258c[_0xc3296e(-_0x3cfd4f._0x386cf5,-0x3,-_0x3cfd4f._0x359d60,0x13)]:String(_0x18258c))),_0x18258c;}}async[_0x395103(0x109,0x119,0x110,0xfa)](_0x2ab569,_0x1bf07a){const _0x486865={_0x494ba6:0xcd,_0x48a226:0xe2,_0x5129f2:0xe3,_0x5c0816:0x1e8,_0x5107fe:0x1ed,_0x1e37f6:0x1ff,_0xbb86b0:0x1ac,_0x213e3b:0x1c9,_0x428dd3:0x1d9,_0x31c83e:0xca,_0x4f28fd:0xd5,_0x415fe1:0xdb,_0xa0d667:0x1ce,_0x13ad2c:0x1dc,_0x4e2bd0:0x208,_0x310635:0x1df,_0x50a2e8:0x1e6,_0x5bd3c4:0x1f9,_0x24d278:0x110,_0x77d975:0xf5,_0x596935:0x105},_0x40c289={_0x203183:0x33};let _0x2c2625=this[_0xe10c72(_0x486865._0x494ba6,0xe7,_0x486865._0x48a226,_0x486865._0x5129f2)](_0x2ab569),_0x193b34=this['getProfileDir'](_0x1bf07a),_0x4072e3=_0x22b782[_0x53c9f3(0x1fa,_0x486865._0x5c0816,_0x486865._0x5107fe,_0x486865._0x1e37f6)](_0x2c2625,'config.yaml'),_0x2d0be2=_0x22b782['join'](_0x193b34,_0x53c9f3(_0x486865._0xbb86b0,_0x486865._0x213e3b,0x1cc,_0x486865._0x428dd3));function _0xe10c72(_0x3e5bb6,_0x549d46,_0x2eb775,_0xc611c5){return _0x395103(_0xc611c5,_0x549d46-0x10a,_0x2eb775-0xcf,_0x3e5bb6- -_0x40c289._0x203183);}function _0x53c9f3(_0xb1363,_0x364272,_0x7c48a5,_0x282461){return _0x3893e1(_0xb1363-0x5d,_0xb1363,_0x7c48a5-0x9f,_0x7c48a5-0x79);}_0x29c333[_0xe10c72(_0x486865._0x31c83e,_0x486865._0x4f28fd,_0x486865._0x415fe1,0xc2)](_0x4072e3)&&await _0x29c333[_0x53c9f3(0x1b8,0x1b9,_0x486865._0xa0d667,_0x486865._0x13ad2c)][_0x53c9f3(_0x486865._0x4e2bd0,_0x486865._0x310635,_0x486865._0x50a2e8,0x1d6)](_0x4072e3,_0x2d0be2);let _0x5b4dda=_0x22b782['join'](_0x2c2625,_0x53c9f3(0x1ff,0x1d5,0x1eb,_0x486865._0x5bd3c4)),_0x1eb0ea=_0x22b782[_0xe10c72(0x108,0xf2,_0x486865._0x24d278,0x11f)](_0x193b34,_0xe10c72(0x106,0xf0,_0x486865._0x77d975,_0x486865._0x596935));_0x29c333['existsSync'](_0x5b4dda)&&await this['copyDirectory'](_0x5b4dda,_0x1eb0ea);}async[_0x3893e1(0x146,0x169,0x14c,0x158)](_0x552917,_0x26bacc){const _0xf941e4={_0xb42430:0x2ad,_0x4a2cb5:0x2cf,_0x342fd0:0x28c,_0x391b10:0x298,_0x5cc75e:0x271,_0x17c4fd:0x90,_0x1f2f41:0x8f,_0x10e76a:0x2cc,_0x17ad8e:0x2b3,_0x4a9520:0x2e4,_0x42b9f3:0x28f,_0x4ee352:0x271,_0x46b2fb:0x272,_0x15c09c:0x2b0,_0x1997fe:0x9b,_0xbe7df1:0xad,_0x244963:0x87,_0xe726b8:0x8b,_0x4e3a72:0x2b7,_0x4619db:0x2ad,_0x4f3442:0x2b7,_0x57a897:0x2b0,_0x235bc3:0x2c5},_0x3cd2b5={_0x4203cb:0x191},_0x36e0c7={_0x3754a5:0x6a,_0x326941:0xe9};await _0x29c333[_0x4316aa(_0xf941e4._0xb42430,0x2cb,_0xf941e4._0x4a2cb5,0x2ca)][_0x4316aa(_0xf941e4._0x342fd0,_0xf941e4._0x391b10,0x2a1,_0xf941e4._0x5cc75e)](_0x26bacc,{'recursive':!0x0});let _0x5329dd=await _0x29c333[_0x57d700(-0x9d,-_0xf941e4._0x17c4fd,-0x86,-_0xf941e4._0x1f2f41)]['readdir'](_0x552917,{'withFileTypes':!0x0});function _0x57d700(_0x5b91ac,_0x5372b2,_0x3f2194,_0x1b2fa4){return _0x3893e1(_0x5b91ac-_0x36e0c7._0x3754a5,_0x3f2194,_0x3f2194-_0x36e0c7._0x326941,_0x1b2fa4- -0x1e4);}function _0x4316aa(_0x44f8eb,_0x57e302,_0x2a23c4,_0x1d8c55){return _0x395103(_0x2a23c4,_0x57e302-0xaf,_0x2a23c4-0x7c,_0x44f8eb-_0x3cd2b5._0x4203cb);}for(let _0x4e68e9 of _0x5329dd){let _0x2e70fd=_0x22b782[_0x4316aa(_0xf941e4._0x10e76a,0x2c8,_0xf941e4._0x17ad8e,_0xf941e4._0x4a9520)](_0x552917,_0x4e68e9[_0x4316aa(_0xf941e4._0x42b9f3,0x26d,_0xf941e4._0x4ee352,_0xf941e4._0x46b2fb)]),_0x5c76e7=_0x22b782[_0x4316aa(0x2cc,0x2e2,_0xf941e4._0x15c09c,0x2e5)](_0x26bacc,_0x4e68e9[_0x57d700(-0xc9,-0xab,-_0xf941e4._0x1997fe,-_0xf941e4._0xbe7df1)]);_0x4e68e9[_0x57d700(-_0xf941e4._0x244963,-0x78,-0x6e,-_0xf941e4._0xe726b8)]()?await this[_0x4316aa(_0xf941e4._0x15c09c,0x2b8,0x2cd,_0xf941e4._0x4e3a72)](_0x2e70fd,_0x5c76e7):await _0x29c333[_0x4316aa(_0xf941e4._0x4619db,0x2ca,_0xf941e4._0x4f3442,_0xf941e4._0x57a897)][_0x4316aa(_0xf941e4._0x235bc3,0x2ae,0x2e4,0x2e3)](_0x2e70fd,_0x5c76e7);}}};export{s as a,p as b};
|