@univer-cli/daemon 1.1.0 → 1.3.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.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -1
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- const _0x333881=_0x26d6;(function(_0x1e8667,_0x1cfbe4){const _0x3974be=_0x26d6,_0x357cf8=_0x1e8667();while(!![]){try{const _0x192813=parseInt(_0x3974be(0x1c3))/0x1+parseInt(_0x3974be(0x1e7))/0x2*(-parseInt(_0x3974be(0x1f0))/0x3)+parseInt(_0x3974be(0x1c5))/0x4*(-parseInt(_0x3974be(0x1c4))/0x5)+parseInt(_0x3974be(0x1ce))/0x6+-parseInt(_0x3974be(0x1e2))/0x7+-parseInt(_0x3974be(0x1d7))/0x8+-parseInt(_0x3974be(0x1ef))/0x9*(-parseInt(_0x3974be(0x1b5))/0xa);if(_0x192813===_0x1cfbe4)break;else _0x357cf8['push'](_0x357cf8['shift']());}catch(_0x1d00de){_0x357cf8['push'](_0x357cf8['shift']());}}}(_0x51a8,0x3d443));import{randomUUID as _0x48e76c}from'node:crypto';import{spawn as _0x42a8a9}from'node:child_process';function _0x51a8(){const _0x211140=['clear','131105EaoZBA','15kaZqIQ','226132TuqmYJ','Daemon\x20status\x20response\x20is\x20invalid','exitCode','unknown','diagnostic','data','error','catch','method','1288842ZBCWPT','stopTimeoutMs','name','ENOTCONN','slice','stopped','options','Daemon\x20connection\x20closed\x20before\x20a\x20response\x20was\x20received','off','2909144beHVaK','Daemon\x20is\x20not\x20listening\x20on\x20','Daemon\x20method\x20','daemon.','Daemon\x20method\x20must\x20not\x20be\x20empty','incompatible','legacy-protocol','string','message','pid','invalid-health','323134FwshMq','protocol-mismatch','ECONNREFUSED','type','onShutdown','224KZnxpO','buildId','identity.buildId','\x20must\x20not\x20be\x20empty','ECONNRESET','once','push','Daemon\x20did\x20not\x20stop\x20within\x20','9VIQOhQ','1917fUMyVP','close','isSafeInteger','destroy','isArray','DAEMON_CONTROL_INVALID_RESPONSE','Daemon\x20server\x20has\x20not\x20started\x20listening','isSocket','daemon.shutdown','file:','stringify','Daemon\x20entry\x20must\x20be\x20an\x20absolute\x20file\x20URL','assign','Daemon\x20method\x20namespace\x20is\x20reserved:\x20','identity-mismatch','object','code','add','reason','requestTimeoutMs','startTimeoutMs','isNaN','version','ignore','toString','startsWith','write','version-mismatch','DAEMON_INCOMPATIBLE','actual','trim','identity','timeoutMs','build-id-mismatch','Error','set','A\x20daemon\x20is\x20already\x20listening\x20on\x20','DAEMON_CONNECTION_CLOSED','status','unreachable','running','protocolVersion','entry','socketPath','state','delete','ready','utf8','Refusing\x20to\x20replace\x20non-socket\x20path\x20','unref','daemon.status','ENOENT','Invalid\x20daemon\x20request','now','Daemon\x20is\x20not\x20ready:\x20','connect','toISOString','number','start','Invalid\x20daemon\x20response','startedAt','listen','5560070BViDby','\x20is\x20already\x20registered','isFinite','socketPath\x20must\x20not\x20be\x20empty','length','parse','payload','protocol','end','DAEMON_INVALID_REQUEST','DAEMON_METHOD_NOT_FOUND','href','result'];_0x51a8=function(){return _0x211140;};return _0x51a8();}import{connect as _0x2e03ba,createServer as _0x365daf}from'node:net';import{fileURLToPath as _0x4fb046}from'node:url';import{lstat as _0xb83add,mkdir as _0x2456d4,unlink as _0x9e2f07}from'node:fs/promises';import{dirname as _0x409e46}from'node:path';function l(_0x3832cb){const _0x254705=_0x26d6;return JSON[_0x254705(0x1fa)](_0x3832cb)+'\x0a';}function u(_0x1c55b6){let _0x531818='';return{'end'(){const _0x4f7f83=_0x26d6;_0x531818[_0x4f7f83(0x20e)]()[_0x4f7f83(0x1b9)]>0x0&&_0x1c55b6(_0x531818),_0x531818='';},'push'(_0x4e6b23){const _0x1c7d9c=_0x26d6;for(_0x531818+=_0x4e6b23[_0x1c7d9c(0x208)](_0x1c7d9c(0x21f));;){let _0x34b41f=_0x531818['indexOf']('\x0a');if(_0x34b41f<0x0)return;let _0x4542f0=_0x531818[_0x1c7d9c(0x1d2)](0x0,_0x34b41f);_0x531818=_0x531818[_0x1c7d9c(0x1d2)](_0x34b41f+0x1),_0x4542f0[_0x1c7d9c(0x20e)]()['length']>0x0&&_0x1c55b6(_0x4542f0);}}};}var d='UNIVER_CLI_SDK_DAEMON_SOCKET';async function f(_0x4284e5){const _0x420a9c=_0x26d6;_0x42a8a9(process['execPath'],[_0x4fb046(_0x4284e5[_0x420a9c(0x21a)])],{'detached':!0x0,'env':{...process.env,..._0x4284e5[_0x420a9c(0x1d4)]['env'],[d]:_0x4284e5[_0x420a9c(0x1d4)][_0x420a9c(0x21b)]},'stdio':_0x420a9c(0x207)})[_0x420a9c(0x221)]();let _0x1907e8=Date['now']();for(;Date[_0x420a9c(0x225)]()-_0x1907e8<_0x4284e5[_0x420a9c(0x210)];){try{return await _0x4284e5[_0x420a9c(0x21e)]();}catch(_0x523c0d){if(!h(_0x523c0d))throw _0x523c0d;}await new Promise(_0x5bd9a8=>setTimeout(_0x5bd9a8,0x19));}throw Object[_0x420a9c(0x1fc)](Error('Daemon\x20did\x20not\x20start\x20within\x20'+String(_0x4284e5[_0x420a9c(0x210)])+'ms'),{'code':'DAEMON_START_TIMEOUT'});}function p(_0x50f788,_0x1f72e3,_0x3c317a,_0x55d15d){return new Promise((_0x11ba18,_0x172fd7)=>{const _0x1dd93c=_0x26d6;let _0x5967b7=_0x2e03ba(_0x50f788),_0x6f0b94=_0x48e76c(),_0x59d4eb=!0x1,_0x23dc1a=setTimeout(()=>{const _0xffbf60=_0x26d6;_0x5967b7['destroy'](),_0x172fd7(Object[_0xffbf60(0x1fc)](Error('Daemon\x20request\x20timed\x20out\x20after\x20'+String(_0x55d15d)+'ms'),{'code':'DAEMON_REQUEST_TIMEOUT'}));},_0x55d15d),_0x1b80f6=_0x9cca5b=>{_0x59d4eb||(_0x59d4eb=!0x0,clearTimeout(_0x23dc1a),_0x9cca5b());},_0x5a6414=u(_0x36e1f4=>{try{let _0x18db5a=_(_0x36e1f4,_0x6f0b94);_0x1b80f6(()=>{const _0x432071=_0x26d6;_0x5967b7['end'](),_0x18db5a[_0x432071(0x1e5)]===_0x432071(0x1cb)?_0x172fd7(v(_0x18db5a[_0x432071(0x1cb)])):_0x11ba18(_0x18db5a['result']);});}catch(_0x3e4d12){_0x1b80f6(()=>{const _0x36b1e2=_0x26d6;_0x5967b7[_0x36b1e2(0x1f3)](),_0x172fd7(_0x3e4d12);});}});_0x5967b7[_0x1dd93c(0x1ec)]('error',_0x580b21=>_0x1b80f6(()=>{const _0x3cfb7d=_0x1dd93c;_0x5967b7[_0x3cfb7d(0x1f3)](),_0x172fd7(_0x580b21);})),_0x5967b7['on'](_0x1dd93c(0x1ca),_0x458cf1=>_0x5a6414[_0x1dd93c(0x1ed)](_0x458cf1)),_0x5967b7['on'](_0x1dd93c(0x1bd),()=>{const _0x322983=_0x1dd93c;_0x5a6414[_0x322983(0x1bd)](),_0x1b80f6(()=>{const _0x535608=_0x322983;_0x5967b7[_0x535608(0x1f3)](),_0x172fd7(g());});}),_0x5967b7['on'](_0x1dd93c(0x1f1),()=>_0x1b80f6(()=>{_0x5967b7['destroy'](),_0x172fd7(g());})),_0x5967b7[_0x1dd93c(0x1ec)](_0x1dd93c(0x227),()=>{const _0x335ae8=_0x1dd93c;_0x5967b7[_0x335ae8(0x20a)](l({'id':_0x6f0b94,'method':_0x1f72e3,'payload':_0x3c317a}));});});}function m(_0x1edea0){const _0x163e52=_0x26d6;let _0x68805a=_0x1edea0 instanceof URL?_0x1edea0[_0x163e52(0x1c0)]:_0x1edea0;try{let _0x585dc0=new URL(_0x68805a);if(_0x585dc0[_0x163e52(0x1bc)]!==_0x163e52(0x1f9))throw Error();return _0x585dc0['href'];}catch{throw Error(_0x163e52(0x1fb));}}function h(_0x18a542){const _0x5e23da=_0x26d6;return y(_0x18a542)?_0x18a542[_0x5e23da(0x200)]===_0x5e23da(0x223)||_0x18a542[_0x5e23da(0x200)]===_0x5e23da(0x1e4):!0x1;}function g(){const _0x7f5347=_0x26d6;return Object[_0x7f5347(0x1fc)](Error(_0x7f5347(0x1d5)),{'code':_0x7f5347(0x215)});}function _(_0x4025ef,_0xde3d1f){const _0x3bf3d3=_0x26d6;let _0xfaa7b3=JSON[_0x3bf3d3(0x1ba)](_0x4025ef);if(!y(_0xfaa7b3)||_0xfaa7b3['id']!==_0xde3d1f)throw Error('Invalid\x20daemon\x20response');if(_0xfaa7b3[_0x3bf3d3(0x1e5)]===_0x3bf3d3(0x1c1)&&_0x3bf3d3(0x1c1)in _0xfaa7b3||_0xfaa7b3[_0x3bf3d3(0x1e5)]===_0x3bf3d3(0x1cb)&&y(_0xfaa7b3[_0x3bf3d3(0x1cb)]))return _0xfaa7b3;throw Error(_0x3bf3d3(0x22b));}function v(_0x2702c3){const _0x5e2fdc=_0x26d6;let _0x3efedb=Error(_0x2702c3[_0x5e2fdc(0x1df)]);return _0x2702c3[_0x5e2fdc(0x200)]!==void 0x0&&Object[_0x5e2fdc(0x1fc)](_0x3efedb,{'code':_0x2702c3[_0x5e2fdc(0x200)]}),_0x3efedb[_0x5e2fdc(0x1d0)]=_0x2702c3[_0x5e2fdc(0x1d0)],_0x3efedb;}function y(_0x41386c){const _0x1d0ffc=_0x26d6;return typeof _0x41386c=='object'&&!!_0x41386c&&!Array[_0x1d0ffc(0x1f4)](_0x41386c);}function b(_0x188c3d){const _0x108ca7=_0x26d6;S(_0x188c3d['id'],'identity.id'),S(_0x188c3d['version'],'identity.version'),_0x188c3d[_0x108ca7(0x1e8)]!==void 0x0&&S(_0x188c3d[_0x108ca7(0x1e8)],_0x108ca7(0x1e9));}function x(_0x317a64){const _0x89d228=_0x26d6;return ee(_0x317a64)&&typeof _0x317a64['id']=='string'&&_0x317a64['id']['length']>0x0&&typeof _0x317a64[_0x89d228(0x206)]=='string'&&_0x317a64[_0x89d228(0x206)][_0x89d228(0x1b9)]>0x0&&(_0x317a64[_0x89d228(0x1e8)]===void 0x0||typeof _0x317a64['buildId']==_0x89d228(0x1de)&&_0x317a64[_0x89d228(0x1e8)][_0x89d228(0x1b9)]>0x0);}function S(_0x3784c3,_0x22506f){const _0x23bc23=_0x26d6;if(_0x3784c3[_0x23bc23(0x1b9)]===0x0)throw Error(_0x22506f+_0x23bc23(0x1ea));}function ee(_0x269b24){const _0x28cb7c=_0x26d6;return typeof _0x269b24==_0x28cb7c(0x1ff)&&!!_0x269b24&&!Array[_0x28cb7c(0x1f4)](_0x269b24);}var C=0x1,w=_0x333881(0x222),T='daemon.shutdown';function E(_0x1e2172){const _0x2773e0=_0x333881;return _0x1e2172[_0x2773e0(0x209)](_0x2773e0(0x1da));}var D=0x2710,O=0x19;function k(_0x1842e0){const _0x20af7c=_0x333881;b(_0x1842e0['identity']);let _0x154702=m(_0x1842e0[_0x20af7c(0x21a)]),_0x2c4c52=_0x1842e0[_0x20af7c(0x203)]??0x7530,_0x282b43=_0x1842e0[_0x20af7c(0x204)]??0x2710,_0x3815a2=_0x1842e0[_0x20af7c(0x1cf)]??D;z(_0x2c4c52,_0x20af7c(0x203)),z(_0x282b43,'startTimeoutMs'),z(_0x3815a2,_0x20af7c(0x1cf));let _0x5c2364=()=>({'socketPath':_0x1842e0['socketPath'],'state':_0x20af7c(0x1d3)}),_0x208360=async()=>{const _0x44d33c=_0x20af7c;try{let _0x3bf8c8=N(await p(_0x1842e0[_0x44d33c(0x21b)],w,null,_0x2c4c52),_0x1842e0[_0x44d33c(0x21b)]),_0x3e36fb=te(_0x1842e0['identity'],_0x3bf8c8);return _0x3e36fb===void 0x0?_0x3bf8c8:ne(_0x1842e0[_0x44d33c(0x20f)],_0x3bf8c8,_0x3e36fb,_0x1842e0[_0x44d33c(0x21b)]);}catch(_0x5a9d96){if(h(_0x5a9d96))return _0x5c2364();let _0xd821e6=L(_0x5a9d96);return _0xd821e6[_0x44d33c(0x200)]===_0x44d33c(0x1bf)?j(_0x1842e0[_0x44d33c(0x20f)],_0x44d33c(0x1dd),_0x1842e0[_0x44d33c(0x21b)],_0xd821e6):_0xd821e6[_0x44d33c(0x200)]===_0x44d33c(0x1f5)?j(_0x1842e0[_0x44d33c(0x20f)],_0x44d33c(0x1e1),_0x1842e0[_0x44d33c(0x21b)],_0xd821e6):{'diagnostic':_0xd821e6,'socketPath':_0x1842e0[_0x44d33c(0x21b)],'state':_0x44d33c(0x217)};}},_0x50f20a=async()=>{const _0x4507a2=_0x20af7c;let _0x2903a3=await _0x208360();if(_0x2903a3['state']===_0x4507a2(0x218))return{..._0x2903a3,'started':!0x1};if(_0x2903a3[_0x4507a2(0x21c)]!=='stopped')throw M(_0x2903a3);return{...await f({'entry':_0x154702,'options':_0x1842e0,'ready':async()=>{const _0x29e6c5=_0x4507a2;let _0x496fe9=await _0x208360();if(_0x496fe9[_0x29e6c5(0x21c)]==='stopped')throw F(_0x1842e0['socketPath']);if(_0x496fe9[_0x29e6c5(0x21c)]!==_0x29e6c5(0x218))throw M(_0x496fe9);return _0x496fe9;},'timeoutMs':_0x282b43}),'started':!0x0};},_0x5b4261=async()=>{const _0x1f655f=_0x20af7c;let _0x3416f0=await _0x208360();if(_0x3416f0[_0x1f655f(0x21c)]==='stopped')return{..._0x3416f0,'stopped':!0x1};if(_0x3416f0[_0x1f655f(0x21c)]!==_0x1f655f(0x218)&&!A(_0x3416f0))throw M(_0x3416f0);try{await p(_0x1842e0[_0x1f655f(0x21b)],T,null,_0x2c4c52);}catch(_0x37cead){if(!I(_0x37cead))throw _0x37cead;}return await P(_0x208360,_0x3815a2),{..._0x5c2364(),'stopped':!0x0};};return{async 'restart'(){const _0x3e2312=_0x20af7c;let _0x432fea=await _0x208360();if(_0x432fea[_0x3e2312(0x21c)]!==_0x3e2312(0x218)&&_0x432fea[_0x3e2312(0x21c)]!==_0x3e2312(0x1d3)&&!A(_0x432fea))throw M(_0x432fea);(_0x432fea['state']===_0x3e2312(0x218)||A(_0x432fea))&&await _0x5b4261();let _0x3b5613=await _0x50f20a(),_0x27a25a=_0x432fea[_0x3e2312(0x21c)]===_0x3e2312(0x218)?_0x432fea[_0x3e2312(0x1e0)]:A(_0x432fea)?_0x432fea[_0x3e2312(0x20d)][_0x3e2312(0x1e0)]:void 0x0;return{'identity':_0x3b5613['identity'],'pid':_0x3b5613['pid'],..._0x27a25a===void 0x0?{}:{'previousPid':_0x27a25a},'restarted':_0x432fea['state']!==_0x3e2312(0x1d3),'protocolVersion':_0x3b5613[_0x3e2312(0x219)],'socketPath':_0x3b5613['socketPath'],'startedAt':_0x3b5613[_0x3e2312(0x22c)],'state':'running'};},'start':_0x50f20a,'status':_0x208360,'stop':_0x5b4261};}function A(_0x1a35b8){const _0x451aa9=_0x333881;return _0x1a35b8[_0x451aa9(0x21c)]==='incompatible'&&_0x1a35b8['actual']!==void 0x0&&(_0x1a35b8['reason']===_0x451aa9(0x20b)||_0x1a35b8['reason']===_0x451aa9(0x211));}function te(_0x10855d,_0x516f0c){const _0x50165c=_0x333881;if(_0x516f0c[_0x50165c(0x219)]!==0x1)return _0x50165c(0x1e3);if(_0x516f0c[_0x50165c(0x20f)]['id']!==_0x10855d['id'])return _0x50165c(0x1fe);if(_0x516f0c[_0x50165c(0x20f)][_0x50165c(0x206)]!==_0x10855d[_0x50165c(0x206)])return _0x50165c(0x20b);if(_0x10855d['buildId']!==void 0x0&&_0x516f0c[_0x50165c(0x20f)]['buildId']!==_0x10855d[_0x50165c(0x1e8)])return _0x50165c(0x211);}function ne(_0x56c255,_0x1f4d3d,_0x3c307d,_0x8714da){const _0x5c852c=_0x333881;return{'actual':{'identity':_0x1f4d3d[_0x5c852c(0x20f)],'pid':_0x1f4d3d[_0x5c852c(0x1e0)],'protocolVersion':_0x1f4d3d[_0x5c852c(0x219)],'socketPath':_0x1f4d3d[_0x5c852c(0x21b)],'startedAt':_0x1f4d3d[_0x5c852c(0x22c)]},'expected':{'identity':_0x56c255,'protocolVersion':0x1},'reason':_0x3c307d,'socketPath':_0x8714da,'state':_0x5c852c(0x1dc)};}function j(_0x58226f,_0x5db83c,_0x31d747,_0xe51fad){const _0x452a9d=_0x333881;return{'diagnostic':_0xe51fad,'expected':{'identity':_0x58226f,'protocolVersion':0x1},'reason':_0x5db83c,'socketPath':_0x31d747,'state':_0x452a9d(0x1dc)};}function M(_0x1bb324){const _0x525ad4=_0x333881;let _0x4826f7=_0x1bb324[_0x525ad4(0x21c)]==='incompatible'?_0x1bb324[_0x525ad4(0x202)]:_0x1bb324[_0x525ad4(0x1c9)][_0x525ad4(0x1df)];return R(_0x1bb324[_0x525ad4(0x21c)]==='incompatible'?_0x525ad4(0x20c):'DAEMON_UNREACHABLE',_0x525ad4(0x226)+_0x4826f7);}function N(_0x4ceb32,_0x3b1956){const _0x3f0c2e=_0x333881;if(!B(_0x4ceb32)||_0x4ceb32[_0x3f0c2e(0x21c)]!==_0x3f0c2e(0x218)||_0x4ceb32['socketPath']!==_0x3b1956||!x(_0x4ceb32[_0x3f0c2e(0x20f)])||typeof _0x4ceb32[_0x3f0c2e(0x1e0)]!=_0x3f0c2e(0x229)||!Number[_0x3f0c2e(0x1f2)](_0x4ceb32[_0x3f0c2e(0x1e0)])||_0x4ceb32[_0x3f0c2e(0x1e0)]<=0x0||typeof _0x4ceb32['protocolVersion']!='number'||!Number['isSafeInteger'](_0x4ceb32['protocolVersion'])||_0x4ceb32[_0x3f0c2e(0x219)]<=0x0||typeof _0x4ceb32['startedAt']!=_0x3f0c2e(0x1de)||Number[_0x3f0c2e(0x205)](Date['parse'](_0x4ceb32[_0x3f0c2e(0x22c)])))throw R(_0x3f0c2e(0x1f5),_0x3f0c2e(0x1c6));return{'identity':_0x4ceb32[_0x3f0c2e(0x20f)],'pid':_0x4ceb32[_0x3f0c2e(0x1e0)],'protocolVersion':_0x4ceb32[_0x3f0c2e(0x219)],'socketPath':_0x3b1956,'startedAt':_0x4ceb32['startedAt'],'state':'running'};}function _0x26d6(_0x383b56,_0x4929db){_0x383b56=_0x383b56-0x1b5;const _0x51a825=_0x51a8();let _0x26d69e=_0x51a825[_0x383b56];return _0x26d69e;}async function P(_0x5338ec,_0x3552fb){const _0x5dd2f0=_0x333881;let _0x3af9cf=Date['now']();for(;Date[_0x5dd2f0(0x225)]()-_0x3af9cf<_0x3552fb;){if((await _0x5338ec())[_0x5dd2f0(0x21c)]===_0x5dd2f0(0x1d3))return;await new Promise(_0x14cd54=>setTimeout(_0x14cd54,O));}throw R('DAEMON_STOP_TIMEOUT',_0x5dd2f0(0x1ee)+String(_0x3552fb)+'ms');}function F(_0x367b2f){const _0xfe1113=_0x333881;return Object[_0xfe1113(0x1fc)](Error(_0xfe1113(0x1d8)+_0x367b2f),{'code':'ECONNREFUSED'});}function I(_0x4757dc){const _0xf2107d=_0x333881;return h(_0x4757dc)||B(_0x4757dc)&&(_0x4757dc[_0xf2107d(0x200)]==='DAEMON_CONNECTION_CLOSED'||_0x4757dc[_0xf2107d(0x200)]===_0xf2107d(0x1eb)||_0x4757dc['code']===_0xf2107d(0x1d1)||_0x4757dc[_0xf2107d(0x200)]==='EPIPE');}function L(_0x16339a){const _0x5e26d8=_0x333881;let _0x4b1e90=_0x16339a instanceof Error?_0x16339a[_0x5e26d8(0x1df)]:String(_0x16339a);return B(_0x16339a)&&typeof _0x16339a['code']=='string'?{'code':_0x16339a[_0x5e26d8(0x200)],'message':_0x4b1e90}:{'message':_0x4b1e90};}function R(_0x12de89,_0x4dd80d){const _0xb02d42=_0x333881;return Object[_0xb02d42(0x1fc)](Error(_0x4dd80d),{'code':_0x12de89});}function z(_0x143f93,_0x56bfca){const _0x433ee5=_0x333881;if(!Number[_0x433ee5(0x1b7)](_0x143f93)||_0x143f93<=0x0)throw Error(_0x56bfca+'\x20must\x20be\x20a\x20finite\x20positive\x20number');}function B(_0x24d152){const _0x14fce8=_0x333881;return typeof _0x24d152=='object'&&!!_0x24d152&&!Array[_0x14fce8(0x1f4)](_0x24d152);}function V(_0xa6ad40){const _0x256026=_0x333881;let _0x111bfb=_0xa6ad40[_0x256026(0x203)]??0x7530,_0x438c53=k(_0xa6ad40),_0x4c9a92,_0x24aa40=async()=>{const _0x145b7b=_0x256026;let _0x19a5ac=await _0x438c53[_0x145b7b(0x216)]();if(_0x19a5ac[_0x145b7b(0x21c)]===_0x145b7b(0x218))return _0x19a5ac;if(_0x19a5ac['state']!==_0x145b7b(0x1d3))throw M(_0x19a5ac);let _0x5a3a88=_0x4c9a92??=_0x438c53[_0x145b7b(0x22a)]();try{return await _0x5a3a88;}finally{_0x4c9a92===_0x5a3a88&&(_0x4c9a92=void 0x0);}};return{async 'request'(_0x4cda8a,_0x1e279f){const _0x1a7a8b=_0x256026;if(_0x4cda8a[_0x1a7a8b(0x1b9)]===0x0)throw Error('Daemon\x20method\x20must\x20not\x20be\x20empty');await _0x24aa40();try{return await p(_0xa6ad40['socketPath'],_0x4cda8a,_0x1e279f,_0x111bfb);}catch(_0x272766){if(!h(_0x272766))throw _0x272766;}return await _0x24aa40(),await p(_0xa6ad40[_0x1a7a8b(0x21b)],_0x4cda8a,_0x1e279f,_0x111bfb);}};}function H(_0x41ac3f){const _0x566f56=_0x333881;oe(_0x41ac3f[_0x566f56(0x21b)]),b(_0x41ac3f[_0x566f56(0x20f)]);let _0xecfa14=new Map(),_0x4d7fc8=new Set(),_0x33ba34,_0x84f171=!0x1,_0x19ff78,_0x592822,_0x38d902={async 'close'(){_0x19ff78??=_0x59594d(),await _0x19ff78;},'handle'(_0x431be6,_0x21ea9d){const _0x292051=_0x566f56;if(_0x84f171)throw Error('Daemon\x20handlers\x20must\x20be\x20registered\x20before\x20listen()');if(_0x431be6['length']===0x0)throw Error(_0x292051(0x1db));if(E(_0x431be6))throw Error(_0x292051(0x1fd)+_0x431be6);if(_0xecfa14['has'](_0x431be6))throw Error(_0x292051(0x1d9)+_0x431be6+_0x292051(0x1b6));_0xecfa14[_0x292051(0x213)](_0x431be6,_0x21ea9d);},async 'listen'(){const _0x480113=_0x566f56;if(!_0x84f171){if(_0x19ff78)throw Error('Daemon\x20server\x20is\x20closed');await _0x2456d4(_0x409e46(_0x41ac3f[_0x480113(0x21b)]),{'recursive':!0x0}),await Y(_0x41ac3f[_0x480113(0x21b)]),_0x33ba34=_0x365daf(_0x56cacb=>U(_0x56cacb,_0xecfa14,_0x4d7fc8,{'shutdown':()=>{const _0x16acd0=_0x480113;_0x38d902[_0x16acd0(0x1f1)]()[_0x16acd0(0x1cc)](()=>{const _0x3f9e22=_0x16acd0;process[_0x3f9e22(0x1c7)]=0x1;});},'status':()=>G(_0x41ac3f[_0x480113(0x20f)],_0x41ac3f[_0x480113(0x21b)],_0x592822)})),await new Promise((_0x514b7a,_0x49d42d)=>{const _0x45e68f=_0x480113;let _0x24b3fe=_0x33ba34,_0x4d4323=_0x27b0fe=>_0x49d42d(ae(_0x27b0fe)?Z(_0x41ac3f[_0x45e68f(0x21b)]):_0x27b0fe);_0x24b3fe[_0x45e68f(0x1ec)](_0x45e68f(0x1cb),_0x4d4323),_0x24b3fe[_0x45e68f(0x22d)](_0x41ac3f[_0x45e68f(0x21b)],()=>{const _0xeeee12=_0x45e68f;_0x24b3fe[_0xeeee12(0x1d6)](_0xeeee12(0x1cb),_0x4d4323),_0x84f171=!0x0,_0x592822=new Date()[_0xeeee12(0x228)](),_0x514b7a();});});}}};return _0x38d902;async function _0x59594d(){const _0x4c40e5=_0x566f56;for(let _0x4f0db0 of _0x4d7fc8)_0x4f0db0[_0x4c40e5(0x1f3)]();_0x4d7fc8[_0x4c40e5(0x1c2)](),_0x33ba34&&_0x84f171&&await new Promise((_0x92b732,_0x56d57b)=>{const _0x57e104=_0x4c40e5;_0x33ba34[_0x57e104(0x1f1)](_0x3d6991=>_0x3d6991?_0x56d57b(_0x3d6991):_0x92b732());}),_0x84f171=!0x1;try{await _0x41ac3f[_0x4c40e5(0x1e6)]?.();}finally{await re(_0x41ac3f[_0x4c40e5(0x21b)]);}}}function U(_0x23cd9a,_0x38208b,_0xddffcf,_0x3f1dda){const _0x500f57=_0x333881;_0xddffcf[_0x500f57(0x201)](_0x23cd9a);let _0x1cb7d8=!0x1,_0x4d7c37=u(_0x3717e8=>{_0x1cb7d8||(_0x1cb7d8=!0x0,W(_0x23cd9a,_0x3717e8,_0x38208b,_0x3f1dda));});_0x23cd9a['on'](_0x500f57(0x1ca),_0x5c5b21=>_0x4d7c37[_0x500f57(0x1ed)](_0x5c5b21)),_0x23cd9a['on'](_0x500f57(0x1bd),()=>_0x4d7c37[_0x500f57(0x1bd)]()),_0x23cd9a['on']('close',()=>_0xddffcf[_0x500f57(0x21d)](_0x23cd9a)),_0x23cd9a['on'](_0x500f57(0x1cb),()=>_0x23cd9a['destroy']());}async function W(_0x22dbdb,_0x20a5d0,_0x4ea8ce,_0x1d1d05){const _0x374c1e=_0x333881;let _0x550264=_0x374c1e(0x1c8),_0x453e57,_0x533641=!0x1;try{let _0x2f2fc4=K(_0x20a5d0);_0x550264=_0x2f2fc4['id'];let _0x66fa88;if(_0x2f2fc4['method']==='daemon.status'){let _0x12f1f2=_0x1d1d05[_0x374c1e(0x216)]();_0x66fa88={'identity':{..._0x12f1f2[_0x374c1e(0x20f)]['buildId']===void 0x0?{}:{'buildId':_0x12f1f2['identity'][_0x374c1e(0x1e8)]},'id':_0x12f1f2[_0x374c1e(0x20f)]['id'],'version':_0x12f1f2[_0x374c1e(0x20f)][_0x374c1e(0x206)]},'pid':_0x12f1f2[_0x374c1e(0x1e0)],'protocolVersion':_0x12f1f2[_0x374c1e(0x219)],'socketPath':_0x12f1f2[_0x374c1e(0x21b)],'startedAt':_0x12f1f2[_0x374c1e(0x22c)],'state':_0x12f1f2[_0x374c1e(0x21c)]};}else{if(_0x2f2fc4[_0x374c1e(0x1cd)]===_0x374c1e(0x1f8))_0x66fa88=null,_0x533641=!0x0;else{let _0x534a48=_0x4ea8ce['get'](_0x2f2fc4[_0x374c1e(0x1cd)]);if(!_0x534a48)throw J(_0x374c1e(0x1bf),'Unknown\x20daemon\x20method\x20'+_0x2f2fc4[_0x374c1e(0x1cd)]);_0x66fa88=await _0x534a48(_0x2f2fc4[_0x374c1e(0x1bb)]);}}_0x453e57={'id':_0x550264,'result':_0x66fa88,'type':_0x374c1e(0x1c1)};}catch(_0x1d1f25){_0x453e57={'error':q(_0x1d1f25),'id':_0x550264,'type':_0x374c1e(0x1cb)};}_0x22dbdb[_0x374c1e(0x1bd)](l(_0x453e57),()=>{_0x533641&&_0x1d1d05['shutdown']();});}function G(_0x265ba4,_0x396db2,_0x72f792){const _0x4b015d=_0x333881;if(_0x72f792===void 0x0)throw Error(_0x4b015d(0x1f6));return{'identity':_0x265ba4,'pid':process[_0x4b015d(0x1e0)],'protocolVersion':0x1,'socketPath':_0x396db2,'startedAt':_0x72f792,'state':_0x4b015d(0x218)};}function K(_0x3fb70d){const _0x368168=_0x333881;let _0xa0a743=JSON[_0x368168(0x1ba)](_0x3fb70d);if(!$(_0xa0a743)||typeof _0xa0a743['id']!='string'||typeof _0xa0a743[_0x368168(0x1cd)]!=_0x368168(0x1de)||!(_0x368168(0x1bb)in _0xa0a743))throw J(_0x368168(0x1be),_0x368168(0x224));return _0xa0a743;}function q(_0x1464ed){const _0x4df87e=_0x333881;if(_0x1464ed instanceof Error){let _0x53ad4b=_0x1464ed[_0x4df87e(0x200)];return{...typeof _0x53ad4b==_0x4df87e(0x1de)?{'code':_0x53ad4b}:{},'message':_0x1464ed[_0x4df87e(0x1df)],'name':_0x1464ed[_0x4df87e(0x1d0)]};}return{'message':String(_0x1464ed),'name':_0x4df87e(0x212)};}function J(_0x267751,_0x30d86c){const _0x1ea80a=_0x333881;return Object[_0x1ea80a(0x1fc)](Error(_0x30d86c),{'code':_0x267751});}async function Y(_0x61f8c4){const _0x255caf=_0x333881;try{if(!(await _0xb83add(_0x61f8c4))[_0x255caf(0x1f7)]())throw Error(_0x255caf(0x220)+_0x61f8c4);if(await X(_0x61f8c4))throw Z(_0x61f8c4);await _0x9e2f07(_0x61f8c4);}catch(_0x2a4049){if(Q(_0x2a4049))return;throw _0x2a4049;}}function X(_0x1a7c2b){return new Promise((_0x253d59,_0x1a1fd5)=>{const _0x3e191e=_0x26d6;let _0x515232=_0x2e03ba(_0x1a7c2b);_0x515232[_0x3e191e(0x1ec)](_0x3e191e(0x227),()=>{_0x515232['destroy'](),_0x253d59(!0x0);}),_0x515232[_0x3e191e(0x1ec)]('error',_0x356e4f=>{_0x515232['destroy'](),ie(_0x356e4f)||Q(_0x356e4f)?_0x253d59(!0x1):_0x1a1fd5(_0x356e4f);});});}function Z(_0x115244){const _0x36b7b3=_0x333881;return Object['assign'](Error(_0x36b7b3(0x214)+_0x115244),{'code':'DAEMON_ALREADY_RUNNING'});}async function re(_0x3d67b7){const _0x336162=_0x333881;try{(await _0xb83add(_0x3d67b7))[_0x336162(0x1f7)]()&&await _0x9e2f07(_0x3d67b7);}catch(_0x1ecef7){if(!Q(_0x1ecef7))throw _0x1ecef7;}}function Q(_0x1d4456){const _0x36d469=_0x333881;return $(_0x1d4456)&&_0x1d4456[_0x36d469(0x200)]===_0x36d469(0x223);}function ie(_0x41cbb3){const _0x3133e4=_0x333881;return $(_0x41cbb3)&&_0x41cbb3['code']===_0x3133e4(0x1e4);}function ae(_0x5f24dc){const _0xf7135b=_0x333881;return $(_0x5f24dc)&&_0x5f24dc[_0xf7135b(0x200)]==='EADDRINUSE';}function oe(_0x4b5aac){const _0x14bf7d=_0x333881;if(_0x4b5aac['length']===0x0)throw Error(_0x14bf7d(0x1b8));}function $(_0x16f6c4){const _0x331c1d=_0x333881;return typeof _0x16f6c4=='object'&&!!_0x16f6c4&&!Array[_0x331c1d(0x1f4)](_0x16f6c4);}export{C as DAEMON_PROTOCOL_VERSION,T as DAEMON_SHUTDOWN_METHOD,d as DAEMON_SOCKET_ENV,w as DAEMON_STATUS_METHOD,V as createDaemonClient,k as createDaemonControl,H as createDaemonServer};
1
+ const _0x155b88=_0x3c0f;(function(_0x2b8356,_0x5277e5){const _0x47049d=_0x3c0f,_0x19616e=_0x2b8356();while(!![]){try{const _0x3aa482=-parseInt(_0x47049d(0x1ed))/0x1*(parseInt(_0x47049d(0x213))/0x2)+-parseInt(_0x47049d(0x1d5))/0x3+-parseInt(_0x47049d(0x1d8))/0x4*(-parseInt(_0x47049d(0x201))/0x5)+-parseInt(_0x47049d(0x1f4))/0x6+parseInt(_0x47049d(0x1b4))/0x7*(-parseInt(_0x47049d(0x1b6))/0x8)+parseInt(_0x47049d(0x1dd))/0x9+-parseInt(_0x47049d(0x1e9))/0xa*(-parseInt(_0x47049d(0x1c1))/0xb);if(_0x3aa482===_0x5277e5)break;else _0x19616e['push'](_0x19616e['shift']());}catch(_0x212614){_0x19616e['push'](_0x19616e['shift']());}}}(_0x3b2a,0xd4fb0));import{randomUUID as _0x3a144b}from'node:crypto';import{spawn as _0x49dcd0}from'node:child_process';import{connect as _0x5b1cd2,createServer as _0x45b1fd}from'node:net';import{fileURLToPath as _0x39a005}from'node:url';import{StringDecoder as _0x525e17}from'node:string_decoder';import{lstat as _0x24b532,mkdir as _0x4e2ef8,unlink as _0x536dfa}from'node:fs/promises';import{dirname as _0x45a137}from'node:path';function _0x3b2a(){const _0x19cb3a=['shutdown','method','Daemon\x20method\x20','version-mismatch','version','reason','connect','identity-mismatch','ECONNRESET','daemon.shutdown','exitCode','status','parse','A\x20daemon\x20is\x20already\x20listening\x20on\x20','ENOENT','\x20must\x20not\x20be\x20empty','startsWith','3317475ROsfTL','push','isSocket','1056860tChfUA','actual','daemon.status','Daemon\x20did\x20not\x20start\x20within\x20','stopTimeoutMs','12110283DUJzBj','off','number','state','once','requestTimeoutMs','DAEMON_START_TIMEOUT','timeoutMs','type','has','result','message','5345150FJlCeP','Daemon\x20handlers\x20must\x20be\x20registered\x20before\x20listen()','daemon.','env','3sBSCaR','toISOString','object','string','Error','protocolVersion','build-id-mismatch','655830NUhpKr','socketPath','Invalid\x20daemon\x20response','incompatible','destroy','socketPath\x20must\x20not\x20be\x20empty','diagnostic','trim','Daemon\x20server\x20has\x20not\x20started\x20listening','length','EPIPE','data','end','15wIemvQ','buildId','isNaN','close','entry','listen','DAEMON_INVALID_REQUEST','DAEMON_STOP_TIMEOUT','error','utf8','set','ready','startTimeoutMs','invalid-health','protocol','Daemon\x20server\x20is\x20closed','execPath','UNIVER_CLI_SDK_DAEMON_SOCKET','804002mkBaWY','Refusing\x20to\x20replace\x20non-socket\x20path\x20','href','ECONNREFUSED','identity','DAEMON_CONNECTION_CLOSED','isSafeInteger','code','DAEMON_ALREADY_RUNNING','DAEMON_CONTROL_INVALID_RESPONSE','indexOf','\x20must\x20be\x20a\x20finite\x20positive\x20number','identity.id','options','slice','name','ENOTCONN','DAEMON_INCOMPATIBLE','pid','Daemon\x20method\x20must\x20not\x20be\x20empty','now','legacy-protocol','ignore','Daemon\x20method\x20namespace\x20is\x20reserved:\x20','write','DAEMON_METHOD_NOT_FOUND','5310571nBCpDj','unreachable','16omuqcC','running','Daemon\x20is\x20not\x20listening\x20on\x20','Unknown\x20daemon\x20method\x20','isArray','payload','assign','clear','identity.buildId','stopped','protocol-mismatch','55VYfwgC','unref','startedAt'];_0x3b2a=function(){return _0x19cb3a;};return _0x3b2a();}function u(_0x1e44bb){return JSON['stringify'](_0x1e44bb)+'\x0a';}function d(_0x358904){const _0x48c139=_0x3c0f;let _0x22c4da='',_0x54a886=new _0x525e17(_0x48c139(0x20a));return{'end'(){const _0x4666ef=_0x48c139;_0x22c4da+=_0x54a886[_0x4666ef(0x200)](),_0x22c4da[_0x4666ef(0x1fb)]()[_0x4666ef(0x1fd)]>0x0&&_0x358904(_0x22c4da),_0x22c4da='';},'push'(_0x24f25f){const _0x36f104=_0x48c139;for(_0x22c4da+=_0x54a886[_0x36f104(0x1b2)](_0x24f25f);;){let _0x46f606=_0x22c4da[_0x36f104(0x1a4)]('\x0a');if(_0x46f606<0x0)return;let _0x302474=_0x22c4da[_0x36f104(0x1a8)](0x0,_0x46f606);_0x22c4da=_0x22c4da[_0x36f104(0x1a8)](_0x46f606+0x1),_0x302474[_0x36f104(0x1fb)]()[_0x36f104(0x1fd)]>0x0&&_0x358904(_0x302474);}}};}var f=_0x155b88(0x212);async function p(_0x52d315){const _0x3a5097=_0x155b88;_0x49dcd0(process[_0x3a5097(0x211)],[_0x39a005(_0x52d315[_0x3a5097(0x205)])],{'detached':!0x0,'env':{...process.env,..._0x52d315['options'][_0x3a5097(0x1ec)],[f]:_0x52d315[_0x3a5097(0x1a7)][_0x3a5097(0x1f5)]},'stdio':_0x3a5097(0x1b0)})[_0x3a5097(0x1c2)]();let _0x904f12=Date['now']();for(;Date[_0x3a5097(0x1ae)]()-_0x904f12<_0x52d315[_0x3a5097(0x1e4)];){try{return await _0x52d315[_0x3a5097(0x20c)]();}catch(_0x58f3b6){if(!g(_0x58f3b6))throw _0x58f3b6;}await new Promise(_0x1cec3e=>setTimeout(_0x1cec3e,0x19));}throw Object[_0x3a5097(0x1bc)](Error(_0x3a5097(0x1db)+String(_0x52d315[_0x3a5097(0x1e4)])+'ms'),{'code':_0x3a5097(0x1e3)});}function m(_0x537527,_0x583e2c,_0x2353ae,_0x3e9fc7){return new Promise((_0x3ff5b1,_0x56fc24)=>{const _0x11426c=_0x3c0f;let _0x35da1a=_0x5b1cd2(_0x537527),_0x6a07fd=_0x3a144b(),_0x1d2fd=!0x1,_0x435ce8=setTimeout(()=>{const _0x51c77d=_0x3c0f;_0x35da1a['destroy'](),_0x56fc24(Object[_0x51c77d(0x1bc)](Error('Daemon\x20request\x20timed\x20out\x20after\x20'+String(_0x3e9fc7)+'ms'),{'code':'DAEMON_REQUEST_TIMEOUT'}));},_0x3e9fc7),_0x54ad2e=_0x2576ff=>{_0x1d2fd||(_0x1d2fd=!0x0,clearTimeout(_0x435ce8),_0x2576ff());},_0x6d94c5=d(_0x51d520=>{try{let _0x7a873f=v(_0x51d520,_0x6a07fd);_0x54ad2e(()=>{const _0x51d06e=_0x3c0f;_0x35da1a['end'](),_0x7a873f[_0x51d06e(0x1e5)]==='error'?_0x56fc24(y(_0x7a873f[_0x51d06e(0x209)])):_0x3ff5b1(_0x7a873f[_0x51d06e(0x1e7)]);});}catch(_0x242eeb){_0x54ad2e(()=>{const _0x4a90d7=_0x3c0f;_0x35da1a[_0x4a90d7(0x1f8)](),_0x56fc24(_0x242eeb);});}});_0x35da1a[_0x11426c(0x1e1)](_0x11426c(0x209),_0x421199=>_0x54ad2e(()=>{_0x35da1a['destroy'](),_0x56fc24(_0x421199);})),_0x35da1a['on']('data',_0x448302=>_0x6d94c5[_0x11426c(0x1d6)](_0x448302)),_0x35da1a['on'](_0x11426c(0x200),()=>{const _0x245691=_0x11426c;_0x6d94c5[_0x245691(0x200)](),_0x54ad2e(()=>{const _0x192506=_0x245691;_0x35da1a[_0x192506(0x1f8)](),_0x56fc24(_());});}),_0x35da1a['on'](_0x11426c(0x204),()=>_0x54ad2e(()=>{const _0x1c576b=_0x11426c;_0x35da1a[_0x1c576b(0x1f8)](),_0x56fc24(_());})),_0x35da1a['once'](_0x11426c(0x1ca),()=>{const _0x245971=_0x11426c;_0x35da1a[_0x245971(0x1b2)](u({'id':_0x6a07fd,'method':_0x583e2c,'payload':_0x2353ae}));});});}function h(_0x178071){const _0x1348cc=_0x155b88;let _0xc8de9=_0x178071 instanceof URL?_0x178071[_0x1348cc(0x215)]:_0x178071;try{let _0x4077f2=new URL(_0xc8de9);if(_0x4077f2[_0x1348cc(0x20f)]!=='file:')throw Error();return _0x4077f2[_0x1348cc(0x215)];}catch{throw Error('Daemon\x20entry\x20must\x20be\x20an\x20absolute\x20file\x20URL');}}function g(_0x36de4c){const _0x599f12=_0x155b88;return b(_0x36de4c)?_0x36de4c[_0x599f12(0x1a1)]===_0x599f12(0x1d2)||_0x36de4c[_0x599f12(0x1a1)]==='ECONNREFUSED':!0x1;}function _(){const _0x59a8b3=_0x155b88;return Object['assign'](Error('Daemon\x20connection\x20closed\x20before\x20a\x20response\x20was\x20received'),{'code':_0x59a8b3(0x19f)});}function v(_0x1cb2be,_0x30e102){const _0x4f6f75=_0x155b88;let _0x5f526c=JSON[_0x4f6f75(0x1d0)](_0x1cb2be);if(!b(_0x5f526c)||_0x5f526c['id']!==_0x30e102)throw Error(_0x4f6f75(0x1f6));if(_0x5f526c[_0x4f6f75(0x1e5)]==='result'&&'result'in _0x5f526c||_0x5f526c[_0x4f6f75(0x1e5)]===_0x4f6f75(0x209)&&b(_0x5f526c[_0x4f6f75(0x209)]))return _0x5f526c;throw Error(_0x4f6f75(0x1f6));}function y(_0xb1a899){const _0x5c7bdf=_0x155b88;let _0xf02753=Error(_0xb1a899[_0x5c7bdf(0x1e8)]);return _0xb1a899['code']!==void 0x0&&Object[_0x5c7bdf(0x1bc)](_0xf02753,{'code':_0xb1a899[_0x5c7bdf(0x1a1)]}),_0xf02753['name']=_0xb1a899[_0x5c7bdf(0x1a9)],_0xf02753;}function b(_0x5317ad){const _0x1ddd9b=_0x155b88;return typeof _0x5317ad==_0x1ddd9b(0x1ef)&&!!_0x5317ad&&!Array[_0x1ddd9b(0x1ba)](_0x5317ad);}function x(_0x58f8d4){const _0x1ada89=_0x155b88;C(_0x58f8d4['id'],_0x1ada89(0x1a6)),C(_0x58f8d4[_0x1ada89(0x1c8)],'identity.version'),_0x58f8d4['buildId']!==void 0x0&&C(_0x58f8d4[_0x1ada89(0x202)],_0x1ada89(0x1be));}function S(_0x4ade2c){const _0x1b34da=_0x155b88;return ee(_0x4ade2c)&&typeof _0x4ade2c['id']==_0x1b34da(0x1f0)&&_0x4ade2c['id'][_0x1b34da(0x1fd)]>0x0&&typeof _0x4ade2c['version']==_0x1b34da(0x1f0)&&_0x4ade2c[_0x1b34da(0x1c8)][_0x1b34da(0x1fd)]>0x0&&(_0x4ade2c[_0x1b34da(0x202)]===void 0x0||typeof _0x4ade2c[_0x1b34da(0x202)]=='string'&&_0x4ade2c[_0x1b34da(0x202)][_0x1b34da(0x1fd)]>0x0);}function _0x3c0f(_0x1fa23b,_0x1987b8){_0x1fa23b=_0x1fa23b-0x19e;const _0x3b2a6f=_0x3b2a();let _0x3c0f46=_0x3b2a6f[_0x1fa23b];return _0x3c0f46;}function C(_0x58084a,_0x4391fc){const _0x108d63=_0x155b88;if(_0x58084a[_0x108d63(0x1fd)]===0x0)throw Error(_0x4391fc+_0x108d63(0x1d3));}function ee(_0x3a0f02){const _0x5b9002=_0x155b88;return typeof _0x3a0f02=='object'&&!!_0x3a0f02&&!Array[_0x5b9002(0x1ba)](_0x3a0f02);}var w=0x1,T=_0x155b88(0x1da),E='daemon.shutdown';function D(_0x1aef4c){const _0x3531f5=_0x155b88;return _0x1aef4c[_0x3531f5(0x1d4)](_0x3531f5(0x1eb));}var O=0x2710,k=0x19;function A(_0x3d53bd){const _0xa4b098=_0x155b88;x(_0x3d53bd[_0xa4b098(0x19e)]);let _0x9d5a85=h(_0x3d53bd[_0xa4b098(0x205)]),_0x355d06=_0x3d53bd['requestTimeoutMs']??0x7530,_0x33422e=_0x3d53bd[_0xa4b098(0x20d)]??0x2710,_0x4f8fa9=_0x3d53bd[_0xa4b098(0x1dc)]??O;B(_0x355d06,_0xa4b098(0x1e2)),B(_0x33422e,_0xa4b098(0x20d)),B(_0x4f8fa9,_0xa4b098(0x1dc));let _0x2ddb7d=()=>({'socketPath':_0x3d53bd[_0xa4b098(0x1f5)],'state':_0xa4b098(0x1bf)}),_0x3fbda5=async()=>{const _0x274913=_0xa4b098;try{let _0x56657f=P(await m(_0x3d53bd[_0x274913(0x1f5)],T,null,_0x355d06),_0x3d53bd[_0x274913(0x1f5)]),_0x292f0f=te(_0x3d53bd[_0x274913(0x19e)],_0x56657f);return _0x292f0f===void 0x0?_0x56657f:ne(_0x3d53bd[_0x274913(0x19e)],_0x56657f,_0x292f0f,_0x3d53bd[_0x274913(0x1f5)]);}catch(_0x82c966){if(g(_0x82c966))return _0x2ddb7d();let _0x55ed58=R(_0x82c966);return _0x55ed58[_0x274913(0x1a1)]===_0x274913(0x1b3)?M(_0x3d53bd['identity'],_0x274913(0x1af),_0x3d53bd[_0x274913(0x1f5)],_0x55ed58):_0x55ed58['code']===_0x274913(0x1a3)?M(_0x3d53bd[_0x274913(0x19e)],_0x274913(0x20e),_0x3d53bd[_0x274913(0x1f5)],_0x55ed58):{'diagnostic':_0x55ed58,'socketPath':_0x3d53bd['socketPath'],'state':_0x274913(0x1b5)};}},_0x10bd1e=async()=>{const _0x1a0f27=_0xa4b098;let _0x4df0b7=await _0x3fbda5();if(_0x4df0b7[_0x1a0f27(0x1e0)]===_0x1a0f27(0x1b7))return{..._0x4df0b7,'started':!0x1};if(_0x4df0b7[_0x1a0f27(0x1e0)]!==_0x1a0f27(0x1bf))throw N(_0x4df0b7);return{...await p({'entry':_0x9d5a85,'options':_0x3d53bd,'ready':async()=>{const _0x51f963=_0x1a0f27;let _0xb6ffdb=await _0x3fbda5();if(_0xb6ffdb['state']===_0x51f963(0x1bf))throw I(_0x3d53bd[_0x51f963(0x1f5)]);if(_0xb6ffdb[_0x51f963(0x1e0)]!==_0x51f963(0x1b7))throw N(_0xb6ffdb);return _0xb6ffdb;},'timeoutMs':_0x33422e}),'started':!0x0};},_0x5ecc38=async()=>{const _0x344c27=_0xa4b098;let _0x22ea61=await _0x3fbda5();if(_0x22ea61[_0x344c27(0x1e0)]===_0x344c27(0x1bf))return{..._0x22ea61,'stopped':!0x1};if(_0x22ea61['state']!=='running'&&!j(_0x22ea61))throw N(_0x22ea61);try{await m(_0x3d53bd['socketPath'],E,null,_0x355d06);}catch(_0x334f28){if(!L(_0x334f28))throw _0x334f28;}return await F(_0x3fbda5,_0x4f8fa9),{..._0x2ddb7d(),'stopped':!0x0};};return{async 'restart'(){const _0x23cf06=_0xa4b098;let _0x2675d0=await _0x3fbda5();if(_0x2675d0[_0x23cf06(0x1e0)]!=='running'&&_0x2675d0['state']!=='stopped'&&!j(_0x2675d0))throw N(_0x2675d0);(_0x2675d0[_0x23cf06(0x1e0)]===_0x23cf06(0x1b7)||j(_0x2675d0))&&await _0x5ecc38();let _0xbd9cd4=await _0x10bd1e(),_0x4304b8=_0x2675d0['state']===_0x23cf06(0x1b7)?_0x2675d0[_0x23cf06(0x1ac)]:j(_0x2675d0)?_0x2675d0['actual'][_0x23cf06(0x1ac)]:void 0x0;return{'identity':_0xbd9cd4['identity'],'pid':_0xbd9cd4[_0x23cf06(0x1ac)],..._0x4304b8===void 0x0?{}:{'previousPid':_0x4304b8},'restarted':_0x2675d0[_0x23cf06(0x1e0)]!==_0x23cf06(0x1bf),'protocolVersion':_0xbd9cd4[_0x23cf06(0x1f2)],'socketPath':_0xbd9cd4[_0x23cf06(0x1f5)],'startedAt':_0xbd9cd4[_0x23cf06(0x1c3)],'state':_0x23cf06(0x1b7)};},'start':_0x10bd1e,'status':_0x3fbda5,'stop':_0x5ecc38};}function j(_0x4474c8){const _0x37e297=_0x155b88;return _0x4474c8[_0x37e297(0x1e0)]===_0x37e297(0x1f7)&&_0x4474c8[_0x37e297(0x1d9)]!==void 0x0&&(_0x4474c8[_0x37e297(0x1c9)]==='version-mismatch'||_0x4474c8[_0x37e297(0x1c9)]==='build-id-mismatch');}function te(_0x460c02,_0x12f155){const _0xd96da9=_0x155b88;if(_0x12f155[_0xd96da9(0x1f2)]!==0x1)return _0xd96da9(0x1c0);if(_0x12f155[_0xd96da9(0x19e)]['id']!==_0x460c02['id'])return _0xd96da9(0x1cb);if(_0x12f155[_0xd96da9(0x19e)]['version']!==_0x460c02[_0xd96da9(0x1c8)])return _0xd96da9(0x1c7);if(_0x460c02[_0xd96da9(0x202)]!==void 0x0&&_0x12f155[_0xd96da9(0x19e)][_0xd96da9(0x202)]!==_0x460c02['buildId'])return _0xd96da9(0x1f3);}function ne(_0x5002c0,_0x1ce8dd,_0x240820,_0x4b2f99){const _0xad2214=_0x155b88;return{'actual':{'identity':_0x1ce8dd[_0xad2214(0x19e)],'pid':_0x1ce8dd[_0xad2214(0x1ac)],'protocolVersion':_0x1ce8dd['protocolVersion'],'socketPath':_0x1ce8dd[_0xad2214(0x1f5)],'startedAt':_0x1ce8dd[_0xad2214(0x1c3)]},'expected':{'identity':_0x5002c0,'protocolVersion':0x1},'reason':_0x240820,'socketPath':_0x4b2f99,'state':'incompatible'};}function M(_0x214b47,_0x3d5e7d,_0x5471e4,_0x34f885){return{'diagnostic':_0x34f885,'expected':{'identity':_0x214b47,'protocolVersion':0x1},'reason':_0x3d5e7d,'socketPath':_0x5471e4,'state':'incompatible'};}function N(_0x347fb4){const _0x4a8b0e=_0x155b88;let _0x28fead=_0x347fb4[_0x4a8b0e(0x1e0)]===_0x4a8b0e(0x1f7)?_0x347fb4[_0x4a8b0e(0x1c9)]:_0x347fb4[_0x4a8b0e(0x1fa)]['message'];return z(_0x347fb4[_0x4a8b0e(0x1e0)]===_0x4a8b0e(0x1f7)?_0x4a8b0e(0x1ab):'DAEMON_UNREACHABLE','Daemon\x20is\x20not\x20ready:\x20'+_0x28fead);}function P(_0x32a5fd,_0x193253){const _0x1c7f5a=_0x155b88;if(!V(_0x32a5fd)||_0x32a5fd[_0x1c7f5a(0x1e0)]!==_0x1c7f5a(0x1b7)||_0x32a5fd[_0x1c7f5a(0x1f5)]!==_0x193253||!S(_0x32a5fd[_0x1c7f5a(0x19e)])||typeof _0x32a5fd[_0x1c7f5a(0x1ac)]!=_0x1c7f5a(0x1df)||!Number['isSafeInteger'](_0x32a5fd[_0x1c7f5a(0x1ac)])||_0x32a5fd[_0x1c7f5a(0x1ac)]<=0x0||typeof _0x32a5fd[_0x1c7f5a(0x1f2)]!=_0x1c7f5a(0x1df)||!Number[_0x1c7f5a(0x1a0)](_0x32a5fd[_0x1c7f5a(0x1f2)])||_0x32a5fd['protocolVersion']<=0x0||typeof _0x32a5fd[_0x1c7f5a(0x1c3)]!=_0x1c7f5a(0x1f0)||Number[_0x1c7f5a(0x203)](Date[_0x1c7f5a(0x1d0)](_0x32a5fd[_0x1c7f5a(0x1c3)])))throw z(_0x1c7f5a(0x1a3),'Daemon\x20status\x20response\x20is\x20invalid');return{'identity':_0x32a5fd['identity'],'pid':_0x32a5fd[_0x1c7f5a(0x1ac)],'protocolVersion':_0x32a5fd[_0x1c7f5a(0x1f2)],'socketPath':_0x193253,'startedAt':_0x32a5fd[_0x1c7f5a(0x1c3)],'state':_0x1c7f5a(0x1b7)};}async function F(_0x3ac765,_0x2f0eb8){const _0x4de05e=_0x155b88;let _0x4a2518=Date[_0x4de05e(0x1ae)]();for(;Date[_0x4de05e(0x1ae)]()-_0x4a2518<_0x2f0eb8;){if((await _0x3ac765())[_0x4de05e(0x1e0)]===_0x4de05e(0x1bf))return;await new Promise(_0xb74d2f=>setTimeout(_0xb74d2f,k));}throw z(_0x4de05e(0x208),'Daemon\x20did\x20not\x20stop\x20within\x20'+String(_0x2f0eb8)+'ms');}function I(_0x148f06){const _0x518d0a=_0x155b88;return Object[_0x518d0a(0x1bc)](Error(_0x518d0a(0x1b8)+_0x148f06),{'code':'ECONNREFUSED'});}function L(_0x2f3042){const _0xf07a35=_0x155b88;return g(_0x2f3042)||V(_0x2f3042)&&(_0x2f3042[_0xf07a35(0x1a1)]==='DAEMON_CONNECTION_CLOSED'||_0x2f3042[_0xf07a35(0x1a1)]===_0xf07a35(0x1cc)||_0x2f3042['code']===_0xf07a35(0x1aa)||_0x2f3042[_0xf07a35(0x1a1)]===_0xf07a35(0x1fe));}function R(_0x21d1ef){const _0x28e3fb=_0x155b88;let _0x1175dd=_0x21d1ef instanceof Error?_0x21d1ef[_0x28e3fb(0x1e8)]:String(_0x21d1ef);return V(_0x21d1ef)&&typeof _0x21d1ef[_0x28e3fb(0x1a1)]==_0x28e3fb(0x1f0)?{'code':_0x21d1ef[_0x28e3fb(0x1a1)],'message':_0x1175dd}:{'message':_0x1175dd};}function z(_0x3cb20a,_0x345648){return Object['assign'](Error(_0x345648),{'code':_0x3cb20a});}function B(_0xad8d1c,_0x11b115){const _0x538813=_0x155b88;if(!Number['isFinite'](_0xad8d1c)||_0xad8d1c<=0x0)throw Error(_0x11b115+_0x538813(0x1a5));}function V(_0x310d0b){const _0x110b73=_0x155b88;return typeof _0x310d0b==_0x110b73(0x1ef)&&!!_0x310d0b&&!Array['isArray'](_0x310d0b);}function H(_0x39b9ad){const _0x5c7108=_0x155b88;let _0x4f3965=_0x39b9ad[_0x5c7108(0x1e2)]??0x7530,_0x51050f=A(_0x39b9ad),_0x98402e,_0x435e66=async()=>{const _0xc7f704=_0x5c7108;let _0x34be50=await _0x51050f[_0xc7f704(0x1cf)]();if(_0x34be50[_0xc7f704(0x1e0)]===_0xc7f704(0x1b7))return _0x34be50;if(_0x34be50[_0xc7f704(0x1e0)]!=='stopped')throw N(_0x34be50);let _0x12e328=_0x98402e??=_0x51050f['start']();try{return await _0x12e328;}finally{_0x98402e===_0x12e328&&(_0x98402e=void 0x0);}};return{async 'request'(_0x59df1d,_0x593fa7){const _0x55964c=_0x5c7108;if(_0x59df1d[_0x55964c(0x1fd)]===0x0)throw Error('Daemon\x20method\x20must\x20not\x20be\x20empty');await _0x435e66();try{return await m(_0x39b9ad[_0x55964c(0x1f5)],_0x59df1d,_0x593fa7,_0x4f3965);}catch(_0x40a207){if(!g(_0x40a207))throw _0x40a207;}return await _0x435e66(),await m(_0x39b9ad[_0x55964c(0x1f5)],_0x59df1d,_0x593fa7,_0x4f3965);}};}function U(_0x2852b0){const _0x3be053=_0x155b88;se(_0x2852b0[_0x3be053(0x1f5)]),x(_0x2852b0['identity']);let _0x225971=new Map(),_0x9599a6=new Set(),_0x4197b9,_0x211edc=!0x1,_0x539209,_0x441d3e,_0xbd05ed={async 'close'(){_0x539209??=_0x5512dc(),await _0x539209;},'handle'(_0x224c73,_0x1d814e){const _0x1c2e6b=_0x3be053;if(_0x211edc)throw Error(_0x1c2e6b(0x1ea));if(_0x224c73[_0x1c2e6b(0x1fd)]===0x0)throw Error(_0x1c2e6b(0x1ad));if(D(_0x224c73))throw Error(_0x1c2e6b(0x1b1)+_0x224c73);if(_0x225971[_0x1c2e6b(0x1e6)](_0x224c73))throw Error(_0x1c2e6b(0x1c6)+_0x224c73+'\x20is\x20already\x20registered');_0x225971[_0x1c2e6b(0x20b)](_0x224c73,_0x1d814e);},async 'listen'(){const _0x4e4e32=_0x3be053;if(!_0x211edc){if(_0x539209)throw Error(_0x4e4e32(0x210));await _0x4e2ef8(_0x45a137(_0x2852b0[_0x4e4e32(0x1f5)]),{'recursive':!0x0}),await X(_0x2852b0[_0x4e4e32(0x1f5)]),_0x4197b9=_0x45b1fd(_0x1ba561=>W(_0x1ba561,_0x225971,_0x9599a6,{'shutdown':()=>{const _0x25db9d=_0x4e4e32;_0xbd05ed[_0x25db9d(0x204)]()['catch'](()=>{const _0x12e69a=_0x25db9d;process[_0x12e69a(0x1ce)]=0x1;});},'status':()=>K(_0x2852b0[_0x4e4e32(0x19e)],_0x2852b0[_0x4e4e32(0x1f5)],_0x441d3e)})),await new Promise((_0x4a3e15,_0x390ecc)=>{const _0x2b6f91=_0x4e4e32;let _0x50f642=_0x4197b9,_0xc995ea=_0x505e8a=>_0x390ecc(oe(_0x505e8a)?Z(_0x2852b0[_0x2b6f91(0x1f5)]):_0x505e8a);_0x50f642[_0x2b6f91(0x1e1)](_0x2b6f91(0x209),_0xc995ea),_0x50f642[_0x2b6f91(0x206)](_0x2852b0[_0x2b6f91(0x1f5)],()=>{const _0x5db403=_0x2b6f91;_0x50f642[_0x5db403(0x1de)](_0x5db403(0x209),_0xc995ea),_0x211edc=!0x0,_0x441d3e=new Date()[_0x5db403(0x1ee)](),_0x4a3e15();});});}}};return _0xbd05ed;async function _0x5512dc(){const _0x1add0d=_0x3be053;for(let _0x2064ea of _0x9599a6)_0x2064ea['destroy']();_0x9599a6[_0x1add0d(0x1bd)](),_0x4197b9&&_0x211edc&&await new Promise((_0x20ea2e,_0x1c94e7)=>{const _0x52dec6=_0x1add0d;_0x4197b9[_0x52dec6(0x204)](_0x1cb28b=>_0x1cb28b?_0x1c94e7(_0x1cb28b):_0x20ea2e());}),_0x211edc=!0x1;try{await _0x2852b0['onShutdown']?.();}finally{await ie(_0x2852b0[_0x1add0d(0x1f5)]);}}}function W(_0x2e04df,_0x1b09ac,_0x393a08,_0x20f9ab){const _0x3fc76a=_0x155b88;_0x393a08['add'](_0x2e04df);let _0xbfb0ad=!0x1,_0x3ed895=d(_0x451e2e=>{_0xbfb0ad||(_0xbfb0ad=!0x0,G(_0x2e04df,_0x451e2e,_0x1b09ac,_0x20f9ab));});_0x2e04df['on'](_0x3fc76a(0x1ff),_0x3e1729=>_0x3ed895[_0x3fc76a(0x1d6)](_0x3e1729)),_0x2e04df['on'](_0x3fc76a(0x200),()=>_0x3ed895['end']()),_0x2e04df['on'](_0x3fc76a(0x204),()=>_0x393a08['delete'](_0x2e04df)),_0x2e04df['on'](_0x3fc76a(0x209),()=>_0x2e04df['destroy']());}async function G(_0x36ac17,_0x333dd0,_0x37eff8,_0x17c98d){const _0x40cdd2=_0x155b88;let _0x15ad33='unknown',_0x552de5,_0x55f8d3=!0x1;try{let _0x37c72d=q(_0x333dd0);_0x15ad33=_0x37c72d['id'];let _0x1a1424;if(_0x37c72d[_0x40cdd2(0x1c5)]===_0x40cdd2(0x1da)){let _0x507e5d=_0x17c98d[_0x40cdd2(0x1cf)]();_0x1a1424={'identity':{..._0x507e5d[_0x40cdd2(0x19e)][_0x40cdd2(0x202)]===void 0x0?{}:{'buildId':_0x507e5d['identity'][_0x40cdd2(0x202)]},'id':_0x507e5d['identity']['id'],'version':_0x507e5d['identity'][_0x40cdd2(0x1c8)]},'pid':_0x507e5d[_0x40cdd2(0x1ac)],'protocolVersion':_0x507e5d['protocolVersion'],'socketPath':_0x507e5d[_0x40cdd2(0x1f5)],'startedAt':_0x507e5d[_0x40cdd2(0x1c3)],'state':_0x507e5d[_0x40cdd2(0x1e0)]};}else{if(_0x37c72d[_0x40cdd2(0x1c5)]===_0x40cdd2(0x1cd))_0x1a1424=null,_0x55f8d3=!0x0;else{let _0x7ce7cb=_0x37eff8['get'](_0x37c72d['method']);if(!_0x7ce7cb)throw Y(_0x40cdd2(0x1b3),_0x40cdd2(0x1b9)+_0x37c72d[_0x40cdd2(0x1c5)]);_0x1a1424=await _0x7ce7cb(_0x37c72d[_0x40cdd2(0x1bb)]);}}_0x552de5={'id':_0x15ad33,'result':_0x1a1424,'type':_0x40cdd2(0x1e7)};}catch(_0x1b8bb7){_0x552de5={'error':J(_0x1b8bb7),'id':_0x15ad33,'type':_0x40cdd2(0x209)};}_0x36ac17['end'](u(_0x552de5),()=>{const _0x11a51c=_0x40cdd2;_0x55f8d3&&_0x17c98d[_0x11a51c(0x1c4)]();});}function K(_0x3bef06,_0x14ce4a,_0x1a60fa){const _0xdc3228=_0x155b88;if(_0x1a60fa===void 0x0)throw Error(_0xdc3228(0x1fc));return{'identity':_0x3bef06,'pid':process[_0xdc3228(0x1ac)],'protocolVersion':0x1,'socketPath':_0x14ce4a,'startedAt':_0x1a60fa,'state':_0xdc3228(0x1b7)};}function q(_0x22e3a5){const _0x998767=_0x155b88;let _0x424c8f=JSON[_0x998767(0x1d0)](_0x22e3a5);if(!$(_0x424c8f)||typeof _0x424c8f['id']!=_0x998767(0x1f0)||typeof _0x424c8f['method']!=_0x998767(0x1f0)||!(_0x998767(0x1bb)in _0x424c8f))throw Y(_0x998767(0x207),'Invalid\x20daemon\x20request');return _0x424c8f;}function J(_0x30e979){const _0x372e67=_0x155b88;if(_0x30e979 instanceof Error){let _0x382ea3=_0x30e979[_0x372e67(0x1a1)];return{...typeof _0x382ea3=='string'?{'code':_0x382ea3}:{},'message':_0x30e979[_0x372e67(0x1e8)],'name':_0x30e979['name']};}return{'message':String(_0x30e979),'name':_0x372e67(0x1f1)};}function Y(_0x22cc27,_0x174354){const _0x1bd32d=_0x155b88;return Object[_0x1bd32d(0x1bc)](Error(_0x174354),{'code':_0x22cc27});}async function X(_0x44f6e0){const _0x1e8fdc=_0x155b88;try{if(!(await _0x24b532(_0x44f6e0))[_0x1e8fdc(0x1d7)]())throw Error(_0x1e8fdc(0x214)+_0x44f6e0);if(await re(_0x44f6e0))throw Z(_0x44f6e0);await _0x536dfa(_0x44f6e0);}catch(_0x4767e2){if(Q(_0x4767e2))return;throw _0x4767e2;}}function re(_0x1a4b71){return new Promise((_0x230f47,_0x372e72)=>{const _0x1c5f6e=_0x3c0f;let _0x1161c9=_0x5b1cd2(_0x1a4b71);_0x1161c9[_0x1c5f6e(0x1e1)](_0x1c5f6e(0x1ca),()=>{const _0x551b95=_0x1c5f6e;_0x1161c9[_0x551b95(0x1f8)](),_0x230f47(!0x0);}),_0x1161c9[_0x1c5f6e(0x1e1)]('error',_0x20a9e2=>{const _0x958808=_0x1c5f6e;_0x1161c9[_0x958808(0x1f8)](),ae(_0x20a9e2)||Q(_0x20a9e2)?_0x230f47(!0x1):_0x372e72(_0x20a9e2);});});}function Z(_0x28e5c2){const _0x3a1e2a=_0x155b88;return Object['assign'](Error(_0x3a1e2a(0x1d1)+_0x28e5c2),{'code':_0x3a1e2a(0x1a2)});}async function ie(_0x3affeb){const _0x10ed38=_0x155b88;try{(await _0x24b532(_0x3affeb))[_0x10ed38(0x1d7)]()&&await _0x536dfa(_0x3affeb);}catch(_0xf120a9){if(!Q(_0xf120a9))throw _0xf120a9;}}function Q(_0x3c6e0b){const _0x31f8f7=_0x155b88;return $(_0x3c6e0b)&&_0x3c6e0b['code']===_0x31f8f7(0x1d2);}function ae(_0x27f974){const _0x3a0d3c=_0x155b88;return $(_0x27f974)&&_0x27f974[_0x3a0d3c(0x1a1)]===_0x3a0d3c(0x216);}function oe(_0x11459d){const _0x321778=_0x155b88;return $(_0x11459d)&&_0x11459d[_0x321778(0x1a1)]==='EADDRINUSE';}function se(_0x34058e){const _0x5408f1=_0x155b88;if(_0x34058e[_0x5408f1(0x1fd)]===0x0)throw Error(_0x5408f1(0x1f9));}function $(_0x1b39cd){const _0x481967=_0x155b88;return typeof _0x1b39cd==_0x481967(0x1ef)&&!!_0x1b39cd&&!Array['isArray'](_0x1b39cd);}export{w as DAEMON_PROTOCOL_VERSION,E as DAEMON_SHUTDOWN_METHOD,f as DAEMON_SOCKET_ENV,T as DAEMON_STATUS_METHOD,H as createDaemonClient,A as createDaemonControl,U as createDaemonServer};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@univer-cli/daemon",
3
3
  "type": "module",
4
- "version": "1.1.0",
4
+ "version": "1.3.0",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",