@univer-cli/daemon-command 1.0.1 → 1.0.3

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 +2 -2
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- (function(_0x5a0cf7,_0x5760f9){const _0x14daf8=_0x1f00,_0x1bc03c=_0x5a0cf7();while(!![]){try{const _0x3537ba=parseInt(_0x14daf8(0xe2))/0x1*(-parseInt(_0x14daf8(0x108))/0x2)+parseInt(_0x14daf8(0x109))/0x3+-parseInt(_0x14daf8(0xec))/0x4*(-parseInt(_0x14daf8(0xe4))/0x5)+-parseInt(_0x14daf8(0xf7))/0x6+-parseInt(_0x14daf8(0x103))/0x7*(-parseInt(_0x14daf8(0xe0))/0x8)+-parseInt(_0x14daf8(0xdb))/0x9+-parseInt(_0x14daf8(0xeb))/0xa;if(_0x3537ba===_0x5760f9)break;else _0x1bc03c['push'](_0x1bc03c['shift']());}catch(_0x10f82b){_0x1bc03c['push'](_0x1bc03c['shift']());}}}(_0xb441,0xa1633));import{Command as _0x12abb0}from'commander';function t(_0x2cd01c){const _0x1c60d1=_0x1f00;let _0x2bdc77=new _0x12abb0(_0x1c60d1(0xea))[_0x1c60d1(0xdc)]('Inspect\x20and\x20control\x20the\x20local\x20daemon')['action'](()=>_0x2bdc77[_0x1c60d1(0xf5)]()),_0x1f6991=_0x2bdc77['command'](_0x1c60d1(0x10b))[_0x1c60d1(0xdc)](_0x1c60d1(0xfc))['option'](_0x1c60d1(0xfd),_0x1c60d1(0xcd))['action'](async _0x498113=>{const _0x485c60=_0x1c60d1;let _0x28a604=await n(_0x1f6991,async()=>await _0x2cd01c[_0x485c60(0xe8)]['status']());r(_0x1f6991,_0x498113,_0x28a604,i(_0x28a604));}),_0x4d260a=_0x2bdc77[_0x1c60d1(0xe7)](_0x1c60d1(0x102))[_0x1c60d1(0xdc)](_0x1c60d1(0xde))[_0x1c60d1(0xf8)]('--json',_0x1c60d1(0xcd))[_0x1c60d1(0x105)](async _0x558fa6=>{const _0x1a85ef=_0x1c60d1;let _0x3b6dbd=await n(_0x4d260a,async()=>await _0x2cd01c['control'][_0x1a85ef(0x102)]());r(_0x4d260a,_0x558fa6,_0x3b6dbd,c(_0x3b6dbd));}),_0x46c4ea=_0x2bdc77['command'](_0x1c60d1(0xd9))[_0x1c60d1(0xdc)](_0x1c60d1(0x10a))[_0x1c60d1(0xf8)]('--json',_0x1c60d1(0xcd))['action'](async _0x1a50ee=>{const _0x59c5fc=_0x1c60d1;let _0x35a855=await n(_0x46c4ea,async()=>await _0x2cd01c[_0x59c5fc(0xe8)]['restart']());r(_0x46c4ea,_0x1a50ee,_0x35a855,l(_0x35a855));}),_0xbed615=_0x2bdc77[_0x1c60d1(0xe7)]('stop')[_0x1c60d1(0xdc)](_0x1c60d1(0xd6))[_0x1c60d1(0xf8)](_0x1c60d1(0xfd),'write\x20structured\x20JSON')[_0x1c60d1(0x105)](async _0x4e9dfc=>{const _0x4c1a4e=_0x1c60d1;let _0x1898b7=await n(_0xbed615,async()=>await _0x2cd01c['control'][_0x4c1a4e(0xd3)]());r(_0xbed615,_0x4e9dfc,_0x1898b7,u(_0x1898b7));});return _0x2bdc77;}async function n(_0x4df123,_0x5ecb05){const _0x2c7610=_0x1f00;try{return await _0x5ecb05();}catch(_0x1256eb){throw f(_0x1256eb)&&_0x4df123[_0x2c7610(0xf9)](_0x1256eb[_0x2c7610(0xd4)]+':\x20'+_0x1256eb[_0x2c7610(0xd5)],{'code':'daemon.failed','exitCode':0x1}),_0x1256eb;}}function r(_0x320eda,_0x4f29d7,_0x2451fd,_0x3275af){const _0x105849=_0x1f00;_0x320eda[_0x105849(0xf4)]()[_0x105849(0xca)]?.((_0x4f29d7[_0x105849(0x107)]===!0x0?JSON[_0x105849(0xdf)](_0x2451fd,null,0x2):_0x3275af)+'\x0a');}function i(_0xc29af9){const _0x7a29ee=_0x1f00;switch(_0xc29af9[_0x7a29ee(0xe6)]){case _0x7a29ee(0x101):return d('Daemon:\x20running',_0xc29af9);case _0x7a29ee(0xe9):return'Daemon:\x20stopped\x0aSocket:\x20'+_0xc29af9[_0x7a29ee(0x110)];case _0x7a29ee(0xee):return a(_0xc29af9);case _0x7a29ee(0x10f):return[_0x7a29ee(0xf6),_0x7a29ee(0xd0)+s(_0xc29af9[_0x7a29ee(0x106)]),_0x7a29ee(0xf1)+_0xc29af9['socketPath']]['join']('\x0a');}}function a(_0x2b4952){const _0x16330c=_0x1f00;return['Daemon:\x20incompatible',_0x16330c(0x104)+_0x2b4952['reason'],_0x16330c(0xcc)+o(_0x2b4952[_0x16330c(0xcf)]['identity'],_0x2b4952[_0x16330c(0xcf)][_0x16330c(0xda)]),..._0x2b4952[_0x16330c(0xd8)]===void 0x0?[]:[_0x16330c(0x10d)+o(_0x2b4952[_0x16330c(0xd8)][_0x16330c(0xf3)],_0x2b4952['actual'][_0x16330c(0xda)])],..._0x2b4952['diagnostic']===void 0x0?[]:[_0x16330c(0xd0)+s(_0x2b4952[_0x16330c(0x106)])],'Socket:\x20'+_0x2b4952['socketPath']][_0x16330c(0xdd)]('\x0a');}function o(_0x8061a9,_0x2d1405){const _0x51e38b=_0x1f00;return _0x8061a9['id']+'@'+_0x8061a9[_0x51e38b(0xce)]+(_0x8061a9[_0x51e38b(0xf0)]===void 0x0?'':_0x51e38b(0xf2)+_0x8061a9['buildId']+')')+',\x20protocol\x20'+String(_0x2d1405);}function s(_0x1b3126){const _0x47cec8=_0x1f00;return _0x1b3126['code']===void 0x0?_0x1b3126['message']:_0x1b3126['code']+':\x20'+_0x1b3126[_0x47cec8(0xd5)];}function c(_0x42da0b){const _0x518ee6=_0x1f00;return d(_0x42da0b[_0x518ee6(0xfb)]?_0x518ee6(0xff):_0x518ee6(0xcb),_0x42da0b);}function l(_0x3ad082){const _0x24e2d9=_0x1f00;let _0x504707=d(_0x3ad082[_0x24e2d9(0xfe)]?_0x24e2d9(0xe3):_0x24e2d9(0xff),_0x3ad082);return _0x3ad082['previousPid']===void 0x0?_0x504707:_0x504707+_0x24e2d9(0xd7)+String(_0x3ad082[_0x24e2d9(0x100)]);}function u(_0x3b6c03){const _0x24d7e1=_0x1f00;return(_0x3b6c03['stopped']?_0x24d7e1(0xfa):'Daemon:\x20already\x20stopped')+_0x24d7e1(0xe1)+_0x3b6c03[_0x24d7e1(0x110)];}function d(_0x2d92be,_0x9ae0c4){const _0x2b5fac=_0x1f00;return[_0x2d92be,_0x2b5fac(0xd1)+_0x9ae0c4[_0x2b5fac(0xf3)]['id'],_0x2b5fac(0xe5)+_0x9ae0c4[_0x2b5fac(0xf3)]['version'],..._0x9ae0c4[_0x2b5fac(0xf3)][_0x2b5fac(0xf0)]===void 0x0?[]:[_0x2b5fac(0xef)+_0x9ae0c4[_0x2b5fac(0xf3)][_0x2b5fac(0xf0)]],_0x2b5fac(0x10e)+String(_0x9ae0c4['protocolVersion']),_0x2b5fac(0xd2)+String(_0x9ae0c4[_0x2b5fac(0x10c)]),_0x2b5fac(0xed)+_0x9ae0c4['startedAt'],_0x2b5fac(0xf1)+_0x9ae0c4[_0x2b5fac(0x110)]][_0x2b5fac(0xdd)]('\x0a');}function _0xb441(){const _0x522e25=['stringify','488FSbFlZ','\x0aSocket:\x20','23393huTEjT','Daemon:\x20restarted','59695ZwGElY','Version:\x20','state','command','control','stopped','daemon','8057570svqxCX','196BRpuvt','Started\x20at:\x20','incompatible','Build\x20ID:\x20','buildId','Socket:\x20','\x20(build\x20','identity','configureOutput','outputHelp','Daemon:\x20unreachable','3623526aQXgpT','option','error','Daemon:\x20stopped','started','Show\x20whether\x20the\x20daemon\x20is\x20running','--json','restarted','Daemon:\x20started','previousPid','running','start','82019GBUcky','Reason:\x20','action','diagnostic','json','2jCdqOe','3357231fkMAOI','Restart\x20the\x20daemon,\x20or\x20start\x20it\x20if\x20it\x20is\x20not\x20running','status','pid','Actual:\x20','Protocol:\x20','unreachable','socketPath','writeOut','Daemon:\x20already\x20running','Expected:\x20','write\x20structured\x20JSON','version','expected','Error:\x20','Identity:\x20','PID:\x20','stop','code','message','Stop\x20the\x20daemon\x20if\x20it\x20is\x20running','\x0aPrevious\x20PID:\x20','actual','restart','protocolVersion','2922399Tjnpnz','description','join','Start\x20the\x20daemon\x20if\x20it\x20is\x20not\x20already\x20running'];_0xb441=function(){return _0x522e25;};return _0xb441();}function f(_0x1248a6){const _0x4d4dc1=_0x1f00;return _0x1248a6 instanceof Error&&_0x4d4dc1(0xd4)in _0x1248a6&&typeof _0x1248a6['code']=='string';}function _0x1f00(_0x418031,_0x530039){_0x418031=_0x418031-0xca;const _0xb4417e=_0xb441();let _0x1f005e=_0xb4417e[_0x418031];return _0x1f005e;}export{t as createDaemonCommand};
1
+ (function(_0x533762,_0x2003d3){const _0x3e9ef1=_0x29ec,_0x27ebd3=_0x533762();while(!![]){try{const _0x2fef64=parseInt(_0x3e9ef1(0x110))/0x1*(-parseInt(_0x3e9ef1(0x120))/0x2)+-parseInt(_0x3e9ef1(0x112))/0x3+parseInt(_0x3e9ef1(0x13c))/0x4+parseInt(_0x3e9ef1(0x147))/0x5*(parseInt(_0x3e9ef1(0x119))/0x6)+-parseInt(_0x3e9ef1(0x114))/0x7*(-parseInt(_0x3e9ef1(0x140))/0x8)+parseInt(_0x3e9ef1(0x146))/0x9*(parseInt(_0x3e9ef1(0x12b))/0xa)+-parseInt(_0x3e9ef1(0x126))/0xb*(parseInt(_0x3e9ef1(0x14b))/0xc);if(_0x2fef64===_0x2003d3)break;else _0x27ebd3['push'](_0x27ebd3['shift']());}catch(_0x277149){_0x27ebd3['push'](_0x27ebd3['shift']());}}}(_0x439e,0x63f7a));import{Command as _0x1bd3da}from'commander';function t(_0x2e9a92){const _0x5c0156=_0x29ec;let _0x191215=new _0x1bd3da(_0x5c0156(0x144))['description'](_0x5c0156(0x137))[_0x5c0156(0x11a)](()=>_0x191215[_0x5c0156(0x142)]()),_0x45fba6=_0x191215[_0x5c0156(0x13e)](_0x5c0156(0x128))[_0x5c0156(0x131)](_0x5c0156(0x125))[_0x5c0156(0x141)](_0x5c0156(0x12a),'write\x20structured\x20JSON')['action'](async _0x48e9e0=>{const _0x1aa6fb=_0x5c0156;let _0x24185a=await n(_0x45fba6,async()=>await _0x2e9a92[_0x1aa6fb(0x150)][_0x1aa6fb(0x128)]());r(_0x45fba6,_0x48e9e0,_0x24185a,i(_0x24185a));}),_0x1b4346=_0x191215[_0x5c0156(0x13e)]('start')['description'](_0x5c0156(0x121))['option'](_0x5c0156(0x12a),_0x5c0156(0x122))[_0x5c0156(0x11a)](async _0x128e5e=>{const _0xa11887=_0x5c0156;let _0x362a70=await n(_0x1b4346,async()=>await _0x2e9a92[_0xa11887(0x150)][_0xa11887(0x132)]());r(_0x1b4346,_0x128e5e,_0x362a70,c(_0x362a70));}),_0x492742=_0x191215[_0x5c0156(0x13e)]('restart')[_0x5c0156(0x131)](_0x5c0156(0x12d))[_0x5c0156(0x141)](_0x5c0156(0x12a),'write\x20structured\x20JSON')[_0x5c0156(0x11a)](async _0x5a3a31=>{const _0x2e4e68=_0x5c0156;let _0x762e1e=await n(_0x492742,async()=>await _0x2e9a92[_0x2e4e68(0x150)]['restart']());r(_0x492742,_0x5a3a31,_0x762e1e,l(_0x762e1e));}),_0x29c44f=_0x191215[_0x5c0156(0x13e)](_0x5c0156(0x12c))[_0x5c0156(0x131)](_0x5c0156(0x14e))[_0x5c0156(0x141)](_0x5c0156(0x12a),_0x5c0156(0x122))[_0x5c0156(0x11a)](async _0x3ee42b=>{const _0x8da216=_0x5c0156;let _0x547edc=await n(_0x29c44f,async()=>await _0x2e9a92[_0x8da216(0x150)][_0x8da216(0x12c)]());r(_0x29c44f,_0x3ee42b,_0x547edc,u(_0x547edc));});return _0x191215;}async function n(_0x522f72,_0x49a846){const _0x52f61c=_0x29ec;try{return await _0x49a846();}catch(_0x2dfaff){throw f(_0x2dfaff)&&_0x522f72[_0x52f61c(0x138)](_0x2dfaff[_0x52f61c(0x127)]+':\x20'+_0x2dfaff[_0x52f61c(0x115)],{'code':_0x52f61c(0x11e),'exitCode':0x1}),_0x2dfaff;}}function r(_0x5ab329,_0xbf02c0,_0x273c39,_0x57ea44){const _0x576e91=_0x29ec;_0x5ab329[_0x576e91(0x139)]()[_0x576e91(0x14d)]?.((_0xbf02c0[_0x576e91(0x149)]===!0x0?JSON[_0x576e91(0x108)](_0x273c39,null,0x2):_0x57ea44)+'\x0a');}function i(_0x3cfd87){const _0x158b97=_0x29ec;switch(_0x3cfd87[_0x158b97(0x10f)]){case _0x158b97(0x113):return d('Daemon:\x20running',_0x3cfd87);case _0x158b97(0x124):return _0x158b97(0x14c)+_0x3cfd87[_0x158b97(0x111)];case'incompatible':return a(_0x3cfd87);case'unreachable':return[_0x158b97(0x10a),'Error:\x20'+s(_0x3cfd87[_0x158b97(0x118)]),'Socket:\x20'+_0x3cfd87[_0x158b97(0x111)]][_0x158b97(0x11f)]('\x0a');}}function a(_0x1d1c71){const _0x5bb15a=_0x29ec;return['Daemon:\x20incompatible',_0x5bb15a(0x13a)+_0x1d1c71[_0x5bb15a(0x10d)],_0x5bb15a(0x10c)+o(_0x1d1c71[_0x5bb15a(0x133)][_0x5bb15a(0x134)],_0x1d1c71[_0x5bb15a(0x133)][_0x5bb15a(0x13d)]),..._0x1d1c71[_0x5bb15a(0x11c)]===void 0x0?[]:[_0x5bb15a(0x11b)+o(_0x1d1c71[_0x5bb15a(0x11c)]['identity'],_0x1d1c71[_0x5bb15a(0x11c)]['protocolVersion'])],..._0x1d1c71[_0x5bb15a(0x118)]===void 0x0?[]:[_0x5bb15a(0x10e)+s(_0x1d1c71['diagnostic'])],_0x5bb15a(0x14f)+_0x1d1c71[_0x5bb15a(0x111)]]['join']('\x0a');}function o(_0x204603,_0x8f44f5){const _0x203b1a=_0x29ec;return _0x204603['id']+'@'+_0x204603[_0x203b1a(0x145)]+(_0x204603['buildId']===void 0x0?'':_0x203b1a(0x148)+_0x204603['buildId']+')')+_0x203b1a(0x13f)+String(_0x8f44f5);}function s(_0x174b15){const _0xa8907b=_0x29ec;return _0x174b15[_0xa8907b(0x127)]===void 0x0?_0x174b15[_0xa8907b(0x115)]:_0x174b15[_0xa8907b(0x127)]+':\x20'+_0x174b15[_0xa8907b(0x115)];}function _0x439e(){const _0x34555e=[',\x20protocol\x20','121480DLHynX','option','outputHelp','startedAt','daemon','version','5931eOEDHL','10iXeDoW','\x20(build\x20','json','buildId','240qKYVjm','Daemon:\x20stopped\x0aSocket:\x20','writeOut','Stop\x20the\x20daemon\x20if\x20it\x20is\x20running','Socket:\x20','control','Daemon:\x20stopped','stringify','\x0aSocket:\x20','Daemon:\x20unreachable','Daemon:\x20already\x20running','Expected:\x20','reason','Error:\x20','state','137tIpHbK','socketPath','988611luWaqG','running','7lCbFnt','message','Daemon:\x20restarted','Identity:\x20','diagnostic','1609908wOvouF','action','Actual:\x20','actual','string','daemon.failed','join','4438AhLAJl','Start\x20the\x20daemon\x20if\x20it\x20is\x20not\x20already\x20running','write\x20structured\x20JSON','Version:\x20','stopped','Show\x20whether\x20the\x20daemon\x20is\x20running','54241FLXWiK','code','status','Daemon:\x20already\x20stopped','--json','370MHyyzE','stop','Restart\x20the\x20daemon,\x20or\x20start\x20it\x20if\x20it\x20is\x20not\x20running','started','Daemon:\x20started','previousPid','description','start','expected','identity','Build\x20ID:\x20','\x0aPrevious\x20PID:\x20','Inspect\x20and\x20control\x20the\x20local\x20daemon','error','configureOutput','Reason:\x20','PID:\x20','2261688uaLYeM','protocolVersion','command'];_0x439e=function(){return _0x34555e;};return _0x439e();}function c(_0x2f2592){const _0x133dc6=_0x29ec;return d(_0x2f2592[_0x133dc6(0x12e)]?_0x133dc6(0x12f):_0x133dc6(0x10b),_0x2f2592);}function l(_0x2bf452){const _0x504fd4=_0x29ec;let _0x384aa6=d(_0x2bf452['restarted']?_0x504fd4(0x116):_0x504fd4(0x12f),_0x2bf452);return _0x2bf452[_0x504fd4(0x130)]===void 0x0?_0x384aa6:_0x384aa6+_0x504fd4(0x136)+String(_0x2bf452[_0x504fd4(0x130)]);}function _0x29ec(_0x3e4ddd,_0x56df01){_0x3e4ddd=_0x3e4ddd-0x107;const _0x439e07=_0x439e();let _0x29ecba=_0x439e07[_0x3e4ddd];return _0x29ecba;}function u(_0x31669c){const _0x3380d0=_0x29ec;return(_0x31669c[_0x3380d0(0x124)]?_0x3380d0(0x107):_0x3380d0(0x129))+_0x3380d0(0x109)+_0x31669c[_0x3380d0(0x111)];}function d(_0x3283af,_0x13a042){const _0x27f273=_0x29ec;return[_0x3283af,_0x27f273(0x117)+_0x13a042[_0x27f273(0x134)]['id'],_0x27f273(0x123)+_0x13a042['identity'][_0x27f273(0x145)],..._0x13a042[_0x27f273(0x134)][_0x27f273(0x14a)]===void 0x0?[]:[_0x27f273(0x135)+_0x13a042[_0x27f273(0x134)][_0x27f273(0x14a)]],'Protocol:\x20'+String(_0x13a042[_0x27f273(0x13d)]),_0x27f273(0x13b)+String(_0x13a042['pid']),'Started\x20at:\x20'+_0x13a042[_0x27f273(0x143)],'Socket:\x20'+_0x13a042[_0x27f273(0x111)]][_0x27f273(0x11f)]('\x0a');}function f(_0x3f9502){const _0x54c094=_0x29ec;return _0x3f9502 instanceof Error&&_0x54c094(0x127)in _0x3f9502&&typeof _0x3f9502[_0x54c094(0x127)]==_0x54c094(0x11d);}export{t as createDaemonCommand};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@univer-cli/daemon-command",
3
3
  "type": "module",
4
- "version": "1.0.1",
4
+ "version": "1.0.3",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  "README.zh-CN.md"
19
19
  ],
20
20
  "dependencies": {
21
- "@univer-cli/daemon": "1.0.1"
21
+ "@univer-cli/daemon": "1.0.3"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "commander": "^15.0.0"