@univer-cli/daemon-command 1.0.0 → 1.0.2

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(_0x32d9be,_0x58f214){const _0x142f23=_0x411f,_0x430e63=_0x32d9be();while(!![]){try{const _0x3b95d2=parseInt(_0x142f23(0x1c2))/0x1+parseInt(_0x142f23(0x1cb))/0x2+-parseInt(_0x142f23(0x1c6))/0x3+-parseInt(_0x142f23(0x1bb))/0x4*(-parseInt(_0x142f23(0x1c1))/0x5)+-parseInt(_0x142f23(0x1c8))/0x6+parseInt(_0x142f23(0x1b4))/0x7*(parseInt(_0x142f23(0x1c7))/0x8)+-parseInt(_0x142f23(0x1d5))/0x9;if(_0x3b95d2===_0x58f214)break;else _0x430e63['push'](_0x430e63['shift']());}catch(_0x561450){_0x430e63['push'](_0x430e63['shift']());}}}(_0x12ec,0xa6774));import{Command as _0x3161d3}from'commander';function t(_0xa525fb){const _0x1ce32d=_0x411f;let _0xe147d7=new _0x3161d3(_0x1ce32d(0x1d8))[_0x1ce32d(0x1d0)](_0x1ce32d(0x1d6))[_0x1ce32d(0x1bd)](()=>_0xe147d7[_0x1ce32d(0x1c9)]()),_0x47e92d=_0xe147d7[_0x1ce32d(0x1db)](_0x1ce32d(0x1f3))[_0x1ce32d(0x1d0)](_0x1ce32d(0x1e6))['option']('--json','write\x20structured\x20JSON')[_0x1ce32d(0x1bd)](async _0x26f80b=>{const _0x587e9e=_0x1ce32d;let _0x34962c=await n(_0x47e92d,async()=>await _0xa525fb[_0x587e9e(0x1dc)][_0x587e9e(0x1f3)]());r(_0x47e92d,_0x26f80b,_0x34962c,i(_0x34962c));}),_0x262fc6=_0xe147d7['command'](_0x1ce32d(0x1b7))[_0x1ce32d(0x1d0)](_0x1ce32d(0x1b3))['option']('--json',_0x1ce32d(0x1e5))[_0x1ce32d(0x1bd)](async _0x462d90=>{let _0x20e9d8=await n(_0x262fc6,async()=>await _0xa525fb['control']['start']());r(_0x262fc6,_0x462d90,_0x20e9d8,c(_0x20e9d8));}),_0x38e3c8=_0xe147d7[_0x1ce32d(0x1db)](_0x1ce32d(0x1e7))['description'](_0x1ce32d(0x1ec))[_0x1ce32d(0x1f4)]('--json',_0x1ce32d(0x1e5))[_0x1ce32d(0x1bd)](async _0x38097a=>{const _0x29b655=_0x1ce32d;let _0x5b6faa=await n(_0x38e3c8,async()=>await _0xa525fb[_0x29b655(0x1dc)][_0x29b655(0x1e7)]());r(_0x38e3c8,_0x38097a,_0x5b6faa,l(_0x5b6faa));}),_0x209c99=_0xe147d7[_0x1ce32d(0x1db)](_0x1ce32d(0x1ed))[_0x1ce32d(0x1d0)]('Stop\x20the\x20daemon\x20if\x20it\x20is\x20running')['option'](_0x1ce32d(0x1e1),_0x1ce32d(0x1e5))[_0x1ce32d(0x1bd)](async _0x163253=>{const _0x12a0af=_0x1ce32d;let _0x52459c=await n(_0x209c99,async()=>await _0xa525fb['control'][_0x12a0af(0x1ed)]());r(_0x209c99,_0x163253,_0x52459c,u(_0x52459c));});return _0xe147d7;}async function n(_0x3e7258,_0xbdfb28){const _0x24d67f=_0x411f;try{return await _0xbdfb28();}catch(_0x1d9321){throw f(_0x1d9321)&&_0x3e7258['error'](_0x1d9321['code']+':\x20'+_0x1d9321[_0x24d67f(0x1da)],{'code':_0x24d67f(0x1c3),'exitCode':0x1}),_0x1d9321;}}function r(_0x1d1f25,_0x10a827,_0x21d801,_0x578f52){const _0x282490=_0x411f;_0x1d1f25['configureOutput']()[_0x282490(0x1e3)]?.((_0x10a827[_0x282490(0x1ea)]===!0x0?JSON['stringify'](_0x21d801,null,0x2):_0x578f52)+'\x0a');}function i(_0x3e861a){const _0x1785aa=_0x411f;switch(_0x3e861a[_0x1785aa(0x1d7)]){case _0x1785aa(0x1b8):return d(_0x1785aa(0x1d1),_0x3e861a);case _0x1785aa(0x1c5):return'Daemon:\x20stopped\x0aSocket:\x20'+_0x3e861a['socketPath'];case _0x1785aa(0x1f5):return a(_0x3e861a);case _0x1785aa(0x1d2):return[_0x1785aa(0x1b6),_0x1785aa(0x1d4)+s(_0x3e861a[_0x1785aa(0x1cc)]),_0x1785aa(0x1bf)+_0x3e861a['socketPath']][_0x1785aa(0x1b9)]('\x0a');}}function a(_0x5e5c4d){const _0x4de1d1=_0x411f;return[_0x4de1d1(0x1f2),'Reason:\x20'+_0x5e5c4d['reason'],_0x4de1d1(0x1d9)+o(_0x5e5c4d[_0x4de1d1(0x1ca)][_0x4de1d1(0x1de)],_0x5e5c4d[_0x4de1d1(0x1ca)]['protocolVersion']),..._0x5e5c4d['actual']===void 0x0?[]:[_0x4de1d1(0x1bc)+o(_0x5e5c4d[_0x4de1d1(0x1e2)][_0x4de1d1(0x1de)],_0x5e5c4d[_0x4de1d1(0x1e2)]['protocolVersion'])],..._0x5e5c4d['diagnostic']===void 0x0?[]:[_0x4de1d1(0x1d4)+s(_0x5e5c4d['diagnostic'])],_0x4de1d1(0x1bf)+_0x5e5c4d[_0x4de1d1(0x1ef)]][_0x4de1d1(0x1b9)]('\x0a');}function o(_0x3a6a77,_0x16853b){const _0x5a9788=_0x411f;return _0x3a6a77['id']+'@'+_0x3a6a77[_0x5a9788(0x1ce)]+(_0x3a6a77[_0x5a9788(0x1e0)]===void 0x0?'':_0x5a9788(0x1f0)+_0x3a6a77[_0x5a9788(0x1e0)]+')')+_0x5a9788(0x1cd)+String(_0x16853b);}function s(_0x56d836){const _0x39719c=_0x411f;return _0x56d836['code']===void 0x0?_0x56d836[_0x39719c(0x1da)]:_0x56d836[_0x39719c(0x1f6)]+':\x20'+_0x56d836[_0x39719c(0x1da)];}function c(_0x3f6cfa){const _0x598ade=_0x411f;return d(_0x3f6cfa['started']?_0x598ade(0x1df):_0x598ade(0x1dd),_0x3f6cfa);}function l(_0x280f6b){const _0x359f6a=_0x411f;let _0x3bc392=d(_0x280f6b[_0x359f6a(0x1ee)]?_0x359f6a(0x1ba):_0x359f6a(0x1df),_0x280f6b);return _0x280f6b[_0x359f6a(0x1e8)]===void 0x0?_0x3bc392:_0x3bc392+_0x359f6a(0x1b2)+String(_0x280f6b[_0x359f6a(0x1e8)]);}function u(_0x25feee){const _0x372b3d=_0x411f;return(_0x25feee['stopped']?_0x372b3d(0x1e9):_0x372b3d(0x1c0))+_0x372b3d(0x1eb)+_0x25feee['socketPath'];}function d(_0x477e11,_0x3070b5){const _0x5d4ba7=_0x411f;return[_0x477e11,_0x5d4ba7(0x1b0)+_0x3070b5[_0x5d4ba7(0x1de)]['id'],_0x5d4ba7(0x1f1)+_0x3070b5['identity'][_0x5d4ba7(0x1ce)],..._0x3070b5[_0x5d4ba7(0x1de)]['buildId']===void 0x0?[]:[_0x5d4ba7(0x1e4)+_0x3070b5[_0x5d4ba7(0x1de)][_0x5d4ba7(0x1e0)]],_0x5d4ba7(0x1cf)+String(_0x3070b5[_0x5d4ba7(0x1c4)]),_0x5d4ba7(0x1d3)+String(_0x3070b5['pid']),_0x5d4ba7(0x1be)+_0x3070b5[_0x5d4ba7(0x1b1)],_0x5d4ba7(0x1bf)+_0x3070b5[_0x5d4ba7(0x1ef)]]['join']('\x0a');}function f(_0x5a71b1){const _0x2c15cd=_0x411f;return _0x5a71b1 instanceof Error&&_0x2c15cd(0x1f6)in _0x5a71b1&&typeof _0x5a71b1[_0x2c15cd(0x1f6)]==_0x2c15cd(0x1b5);}function _0x411f(_0xcff126,_0x108a00){_0xcff126=_0xcff126-0x1b0;const _0x12ecda=_0x12ec();let _0x411f3e=_0x12ecda[_0xcff126];return _0x411f3e;}export{t as createDaemonCommand};function _0x12ec(){const _0x121299=['6282612IeksKl','Inspect\x20and\x20control\x20the\x20local\x20daemon','state','daemon','Expected:\x20','message','command','control','Daemon:\x20already\x20running','identity','Daemon:\x20started','buildId','--json','actual','writeOut','Build\x20ID:\x20','write\x20structured\x20JSON','Show\x20whether\x20the\x20daemon\x20is\x20running','restart','previousPid','Daemon:\x20stopped','json','\x0aSocket:\x20','Restart\x20the\x20daemon,\x20or\x20start\x20it\x20if\x20it\x20is\x20not\x20running','stop','restarted','socketPath','\x20(build\x20','Version:\x20','Daemon:\x20incompatible','status','option','incompatible','code','Identity:\x20','startedAt','\x0aPrevious\x20PID:\x20','Start\x20the\x20daemon\x20if\x20it\x20is\x20not\x20already\x20running','6790AtnYRr','string','Daemon:\x20unreachable','start','running','join','Daemon:\x20restarted','172qvonVd','Actual:\x20','action','Started\x20at:\x20','Socket:\x20','Daemon:\x20already\x20stopped','65315PirNtl','646699HDIBCT','daemon.failed','protocolVersion','stopped','45063KgYkZP','5888KVUppK','5513496WtylMv','outputHelp','expected','783042UuJWXY','diagnostic',',\x20protocol\x20','version','Protocol:\x20','description','Daemon:\x20running','unreachable','PID:\x20','Error:\x20'];_0x12ec=function(){return _0x121299;};return _0x12ec();}
1
+ (function(_0x58b846,_0x3ba004){const _0x44a979=_0x5029,_0x4c0cc3=_0x58b846();while(!![]){try{const _0x47a6ae=-parseInt(_0x44a979(0x82))/0x1*(parseInt(_0x44a979(0x9b))/0x2)+parseInt(_0x44a979(0x7e))/0x3+-parseInt(_0x44a979(0x9a))/0x4*(-parseInt(_0x44a979(0x9d))/0x5)+parseInt(_0x44a979(0x72))/0x6*(-parseInt(_0x44a979(0x69))/0x7)+parseInt(_0x44a979(0x6e))/0x8*(parseInt(_0x44a979(0x66))/0x9)+parseInt(_0x44a979(0x80))/0xa+-parseInt(_0x44a979(0x68))/0xb;if(_0x47a6ae===_0x3ba004)break;else _0x4c0cc3['push'](_0x4c0cc3['shift']());}catch(_0x744b87){_0x4c0cc3['push'](_0x4c0cc3['shift']());}}}(_0x2f0e,0x3cdce));import{Command as _0x5ddb0b}from'commander';function t(_0x3221cd){const _0x357c7c=_0x5029;let _0x1f9c4c=new _0x5ddb0b(_0x357c7c(0x88))['description'](_0x357c7c(0x6d))[_0x357c7c(0xa6)](()=>_0x1f9c4c['outputHelp']()),_0x2e3144=_0x1f9c4c[_0x357c7c(0xa8)](_0x357c7c(0x7c))[_0x357c7c(0x8e)](_0x357c7c(0xa5))[_0x357c7c(0x85)](_0x357c7c(0x96),_0x357c7c(0x6c))[_0x357c7c(0xa6)](async _0x294e43=>{const _0x1abb73=_0x357c7c;let _0x78f21d=await n(_0x2e3144,async()=>await _0x3221cd[_0x1abb73(0x81)][_0x1abb73(0x7c)]());r(_0x2e3144,_0x294e43,_0x78f21d,i(_0x78f21d));}),_0x125c7b=_0x1f9c4c[_0x357c7c(0xa8)](_0x357c7c(0x89))[_0x357c7c(0x8e)]('Start\x20the\x20daemon\x20if\x20it\x20is\x20not\x20already\x20running')[_0x357c7c(0x85)]('--json','write\x20structured\x20JSON')['action'](async _0x2861cc=>{let _0xf878f=await n(_0x125c7b,async()=>await _0x3221cd['control']['start']());r(_0x125c7b,_0x2861cc,_0xf878f,c(_0xf878f));}),_0x377fbf=_0x1f9c4c[_0x357c7c(0xa8)](_0x357c7c(0xa9))[_0x357c7c(0x8e)](_0x357c7c(0x6a))[_0x357c7c(0x85)](_0x357c7c(0x96),_0x357c7c(0x6c))['action'](async _0x36ffe4=>{const _0x46324a=_0x357c7c;let _0x1cc3dc=await n(_0x377fbf,async()=>await _0x3221cd['control'][_0x46324a(0xa9)]());r(_0x377fbf,_0x36ffe4,_0x1cc3dc,l(_0x1cc3dc));}),_0x4a0824=_0x1f9c4c['command']('stop')[_0x357c7c(0x8e)](_0x357c7c(0x84))[_0x357c7c(0x85)](_0x357c7c(0x96),_0x357c7c(0x6c))[_0x357c7c(0xa6)](async _0x8d2ef9=>{const _0x55df43=_0x357c7c;let _0x2b2b82=await n(_0x4a0824,async()=>await _0x3221cd[_0x55df43(0x81)]['stop']());r(_0x4a0824,_0x8d2ef9,_0x2b2b82,u(_0x2b2b82));});return _0x1f9c4c;}async function n(_0x36fd26,_0x1045f5){const _0x1381ec=_0x5029;try{return await _0x1045f5();}catch(_0x8b74a7){throw f(_0x8b74a7)&&_0x36fd26[_0x1381ec(0x83)](_0x8b74a7[_0x1381ec(0x9c)]+':\x20'+_0x8b74a7[_0x1381ec(0x6f)],{'code':_0x1381ec(0x7d),'exitCode':0x1}),_0x8b74a7;}}function r(_0x2053b8,_0x3a7b1d,_0x5c85d9,_0x36f6b0){const _0x37a92d=_0x5029;_0x2053b8[_0x37a92d(0x97)]()['writeOut']?.((_0x3a7b1d[_0x37a92d(0x93)]===!0x0?JSON[_0x37a92d(0x77)](_0x5c85d9,null,0x2):_0x36f6b0)+'\x0a');}function i(_0x7da40a){const _0x12704f=_0x5029;switch(_0x7da40a['state']){case _0x12704f(0xa7):return d(_0x12704f(0x91),_0x7da40a);case'stopped':return _0x12704f(0x75)+_0x7da40a[_0x12704f(0x95)];case'incompatible':return a(_0x7da40a);case'unreachable':return[_0x12704f(0x7f),_0x12704f(0x73)+s(_0x7da40a[_0x12704f(0x99)]),_0x12704f(0xa4)+_0x7da40a['socketPath']][_0x12704f(0xa3)]('\x0a');}}function a(_0x271200){const _0x2b46cc=_0x5029;return[_0x2b46cc(0xa1),_0x2b46cc(0x8f)+_0x271200[_0x2b46cc(0x87)],_0x2b46cc(0x78)+o(_0x271200['expected'][_0x2b46cc(0x70)],_0x271200[_0x2b46cc(0x76)]['protocolVersion']),..._0x271200[_0x2b46cc(0xa0)]===void 0x0?[]:[_0x2b46cc(0xa2)+o(_0x271200[_0x2b46cc(0xa0)][_0x2b46cc(0x70)],_0x271200[_0x2b46cc(0xa0)]['protocolVersion'])],..._0x271200[_0x2b46cc(0x99)]===void 0x0?[]:[_0x2b46cc(0x73)+s(_0x271200[_0x2b46cc(0x99)])],_0x2b46cc(0xa4)+_0x271200[_0x2b46cc(0x95)]][_0x2b46cc(0xa3)]('\x0a');}function o(_0x1fb1f1,_0x3c6202){const _0xb4b8b4=_0x5029;return _0x1fb1f1['id']+'@'+_0x1fb1f1[_0xb4b8b4(0x98)]+(_0x1fb1f1['buildId']===void 0x0?'':'\x20(build\x20'+_0x1fb1f1[_0xb4b8b4(0x6b)]+')')+',\x20protocol\x20'+String(_0x3c6202);}function s(_0x2e04e3){const _0x20143a=_0x5029;return _0x2e04e3['code']===void 0x0?_0x2e04e3[_0x20143a(0x6f)]:_0x2e04e3[_0x20143a(0x9c)]+':\x20'+_0x2e04e3['message'];}function c(_0x27e987){const _0x421b11=_0x5029;return d(_0x27e987[_0x421b11(0x8d)]?'Daemon:\x20started':_0x421b11(0x9e),_0x27e987);}function l(_0x6562a9){const _0x463380=_0x5029;let _0x173e66=d(_0x6562a9[_0x463380(0x7b)]?_0x463380(0x74):_0x463380(0x71),_0x6562a9);return _0x6562a9[_0x463380(0x79)]===void 0x0?_0x173e66:_0x173e66+_0x463380(0x8b)+String(_0x6562a9[_0x463380(0x79)]);}function _0x2f0e(){const _0x236aed=['status','daemon.failed','1340469jeWiwZ','Daemon:\x20unreachable','3139280DqhCvI','control','93332gfXbOn','error','Stop\x20the\x20daemon\x20if\x20it\x20is\x20running','option','Started\x20at:\x20','reason','daemon','start','PID:\x20','\x0aPrevious\x20PID:\x20','Identity:\x20','started','description','Reason:\x20','startedAt','Daemon:\x20running','Build\x20ID:\x20','json','\x0aSocket:\x20','socketPath','--json','configureOutput','version','diagnostic','4068PvVHYy','8FTQhJv','code','555pFCLrT','Daemon:\x20already\x20running','Daemon:\x20stopped','actual','Daemon:\x20incompatible','Actual:\x20','join','Socket:\x20','Show\x20whether\x20the\x20daemon\x20is\x20running','action','running','command','restart','5526ZgkYTL','pid','930083vgVWIo','315awKmqd','Restart\x20the\x20daemon,\x20or\x20start\x20it\x20if\x20it\x20is\x20not\x20running','buildId','write\x20structured\x20JSON','Inspect\x20and\x20control\x20the\x20local\x20daemon','184PcAIDw','message','identity','Daemon:\x20started','24078xXeOqS','Error:\x20','Daemon:\x20restarted','Daemon:\x20stopped\x0aSocket:\x20','expected','stringify','Expected:\x20','previousPid','Daemon:\x20already\x20stopped','restarted'];_0x2f0e=function(){return _0x236aed;};return _0x2f0e();}function _0x5029(_0x2ca1db,_0x1396db){_0x2ca1db=_0x2ca1db-0x66;const _0x2f0e6c=_0x2f0e();let _0x502944=_0x2f0e6c[_0x2ca1db];return _0x502944;}function u(_0x54bccd){const _0x2eb3cd=_0x5029;return(_0x54bccd['stopped']?_0x2eb3cd(0x9f):_0x2eb3cd(0x7a))+_0x2eb3cd(0x94)+_0x54bccd[_0x2eb3cd(0x95)];}function d(_0x49cebd,_0x25c732){const _0x33bc7a=_0x5029;return[_0x49cebd,_0x33bc7a(0x8c)+_0x25c732[_0x33bc7a(0x70)]['id'],'Version:\x20'+_0x25c732[_0x33bc7a(0x70)][_0x33bc7a(0x98)],..._0x25c732[_0x33bc7a(0x70)]['buildId']===void 0x0?[]:[_0x33bc7a(0x92)+_0x25c732[_0x33bc7a(0x70)][_0x33bc7a(0x6b)]],'Protocol:\x20'+String(_0x25c732['protocolVersion']),_0x33bc7a(0x8a)+String(_0x25c732[_0x33bc7a(0x67)]),_0x33bc7a(0x86)+_0x25c732[_0x33bc7a(0x90)],_0x33bc7a(0xa4)+_0x25c732[_0x33bc7a(0x95)]][_0x33bc7a(0xa3)]('\x0a');}function f(_0x552365){const _0x24784b=_0x5029;return _0x552365 instanceof Error&&_0x24784b(0x9c)in _0x552365&&typeof _0x552365[_0x24784b(0x9c)]=='string';}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.0",
4
+ "version": "1.0.2",
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.0"
21
+ "@univer-cli/daemon": "1.0.2"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "commander": "^15.0.0"