@univer-cli/daemon-command 1.4.0 → 1.6.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 +2 -2
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- (function(_0x53c027,_0x3238f0){const _0x355dfc=_0x6272,_0x47dbb8=_0x53c027();while(!![]){try{const _0x169999=-parseInt(_0x355dfc(0x121))/0x1*(-parseInt(_0x355dfc(0x130))/0x2)+parseInt(_0x355dfc(0x122))/0x3*(parseInt(_0x355dfc(0x11b))/0x4)+-parseInt(_0x355dfc(0x128))/0x5+-parseInt(_0x355dfc(0x12e))/0x6*(parseInt(_0x355dfc(0x11f))/0x7)+parseInt(_0x355dfc(0x143))/0x8*(parseInt(_0x355dfc(0x127))/0x9)+-parseInt(_0x355dfc(0x120))/0xa*(parseInt(_0x355dfc(0x135))/0xb)+-parseInt(_0x355dfc(0x144))/0xc;if(_0x169999===_0x3238f0)break;else _0x47dbb8['push'](_0x47dbb8['shift']());}catch(_0x3021fe){_0x47dbb8['push'](_0x47dbb8['shift']());}}}(_0x513e,0x7b7a0));import{Command as _0x18e405}from'commander';function t(_0x42bc1b){const _0x5829c4=_0x6272;let _0xc769cd=new _0x18e405(_0x5829c4(0x14f))[_0x5829c4(0x117)](_0x5829c4(0x11d))[_0x5829c4(0x152)](()=>_0xc769cd[_0x5829c4(0x14a)]()),_0x2a4f3c=_0xc769cd[_0x5829c4(0x114)](_0x5829c4(0x118))['description'](_0x5829c4(0x123))[_0x5829c4(0x12f)]('--json',_0x5829c4(0x13f))[_0x5829c4(0x152)](async _0x2d9599=>{const _0x216760=_0x5829c4;let _0x420616=await n(_0x2a4f3c,async()=>await _0x42bc1b[_0x216760(0x124)][_0x216760(0x118)]());r(_0x2a4f3c,_0x2d9599,_0x420616,i(_0x420616));}),_0x23f16f=_0xc769cd['command'](_0x5829c4(0x11c))[_0x5829c4(0x117)](_0x5829c4(0x138))[_0x5829c4(0x12f)](_0x5829c4(0x13d),_0x5829c4(0x13f))[_0x5829c4(0x152)](async _0xdad7c1=>{const _0x4be3d2=_0x5829c4;let _0x17c9b6=await n(_0x23f16f,async()=>await _0x42bc1b[_0x4be3d2(0x124)][_0x4be3d2(0x11c)]());r(_0x23f16f,_0xdad7c1,_0x17c9b6,c(_0x17c9b6));}),_0x27b1bd=_0xc769cd[_0x5829c4(0x114)](_0x5829c4(0x129))[_0x5829c4(0x117)](_0x5829c4(0x113))['option']('--json',_0x5829c4(0x13f))['action'](async _0x180c07=>{const _0x3ac0d4=_0x5829c4;let _0xcb2e2=await n(_0x27b1bd,async()=>await _0x42bc1b[_0x3ac0d4(0x124)][_0x3ac0d4(0x129)]());r(_0x27b1bd,_0x180c07,_0xcb2e2,l(_0xcb2e2));}),_0x4bcfa2=_0xc769cd['command'](_0x5829c4(0x145))['description']('Stop\x20the\x20daemon\x20if\x20it\x20is\x20running')[_0x5829c4(0x12f)](_0x5829c4(0x13d),'write\x20structured\x20JSON')[_0x5829c4(0x152)](async _0x1d01e3=>{const _0x12378a=_0x5829c4;let _0x100e49=await n(_0x4bcfa2,async()=>await _0x42bc1b['control'][_0x12378a(0x145)]());r(_0x4bcfa2,_0x1d01e3,_0x100e49,u(_0x100e49));});return _0xc769cd;}function _0x6272(_0x2c2724,_0x4af2a3){_0x2c2724=_0x2c2724-0x113;const _0x513e12=_0x513e();let _0x62720=_0x513e12[_0x2c2724];return _0x62720;}async function n(_0x2ff165,_0x31ede6){const _0x1461f5=_0x6272;try{return await _0x31ede6();}catch(_0x2295e2){throw f(_0x2295e2)&&_0x2ff165['error'](_0x2295e2[_0x1461f5(0x153)]+':\x20'+_0x2295e2[_0x1461f5(0x125)],{'code':_0x1461f5(0x115),'exitCode':0x1}),_0x2295e2;}}function r(_0x35e73b,_0x37d837,_0x54fd8f,_0x5adb20){const _0x322337=_0x6272;_0x35e73b['configureOutput']()[_0x322337(0x141)]?.((_0x37d837['json']===!0x0?JSON[_0x322337(0x11e)](_0x54fd8f,null,0x2):_0x5adb20)+'\x0a');}function i(_0x2b75ba){const _0x5b6002=_0x6272;switch(_0x2b75ba[_0x5b6002(0x126)]){case _0x5b6002(0x140):return d(_0x5b6002(0x12a),_0x2b75ba);case'stopped':return _0x5b6002(0x131)+_0x2b75ba[_0x5b6002(0x119)];case _0x5b6002(0x14d):return a(_0x2b75ba);case _0x5b6002(0x147):return[_0x5b6002(0x136),_0x5b6002(0x12c)+s(_0x2b75ba[_0x5b6002(0x14b)]),'Socket:\x20'+_0x2b75ba[_0x5b6002(0x119)]]['join']('\x0a');}}function a(_0x5d045e){const _0x37b77b=_0x6272;return['Daemon:\x20incompatible','Reason:\x20'+_0x5d045e['reason'],'Expected:\x20'+o(_0x5d045e[_0x37b77b(0x12b)][_0x37b77b(0x13e)],_0x5d045e[_0x37b77b(0x12b)][_0x37b77b(0x139)]),..._0x5d045e[_0x37b77b(0x142)]===void 0x0?[]:[_0x37b77b(0x137)+o(_0x5d045e[_0x37b77b(0x142)][_0x37b77b(0x13e)],_0x5d045e[_0x37b77b(0x142)][_0x37b77b(0x139)])],..._0x5d045e['diagnostic']===void 0x0?[]:[_0x37b77b(0x12c)+s(_0x5d045e[_0x37b77b(0x14b)])],_0x37b77b(0x150)+_0x5d045e['socketPath']][_0x37b77b(0x151)]('\x0a');}function o(_0x1e038e,_0x158424){const _0x1e2698=_0x6272;return _0x1e038e['id']+'@'+_0x1e038e[_0x1e2698(0x132)]+(_0x1e038e['buildId']===void 0x0?'':_0x1e2698(0x148)+_0x1e038e[_0x1e2698(0x14c)]+')')+_0x1e2698(0x149)+String(_0x158424);}function s(_0x1b3e16){const _0x36090e=_0x6272;return _0x1b3e16[_0x36090e(0x153)]===void 0x0?_0x1b3e16['message']:_0x1b3e16[_0x36090e(0x153)]+':\x20'+_0x1b3e16['message'];}function c(_0x393bd2){const _0x2d2f23=_0x6272;return d(_0x393bd2[_0x2d2f23(0x11a)]?_0x2d2f23(0x146):'Daemon:\x20already\x20running',_0x393bd2);}function l(_0x5697d5){const _0x189f21=_0x6272;let _0x57863f=d(_0x5697d5['restarted']?'Daemon:\x20restarted':_0x189f21(0x146),_0x5697d5);return _0x5697d5['previousPid']===void 0x0?_0x57863f:_0x57863f+_0x189f21(0x13a)+String(_0x5697d5['previousPid']);}function _0x513e(){const _0x324e02=['Actual:\x20','Start\x20the\x20daemon\x20if\x20it\x20is\x20not\x20already\x20running','protocolVersion','\x0aPrevious\x20PID:\x20','Build\x20ID:\x20','Daemon:\x20stopped','--json','identity','write\x20structured\x20JSON','running','writeOut','actual','8aiStDw','6293028aQhLby','stop','Daemon:\x20started','unreachable','\x20(build\x20',',\x20protocol\x20','outputHelp','diagnostic','buildId','incompatible','Protocol:\x20','daemon','Socket:\x20','join','action','code','Restart\x20the\x20daemon,\x20or\x20start\x20it\x20if\x20it\x20is\x20not\x20running','command','daemon.failed','Version:\x20','description','status','socketPath','started','415636ofwTWk','start','Inspect\x20and\x20control\x20the\x20local\x20daemon','stringify','15449uOGBSB','130mSISJT','1471zrRuaz','15Vocbza','Show\x20whether\x20the\x20daemon\x20is\x20running','control','message','state','4743027oLRHho','1420570fAqUaF','restart','Daemon:\x20running','expected','Error:\x20','string','78wLyMhO','option','1154HcXICJ','Daemon:\x20stopped\x0aSocket:\x20','version','Daemon:\x20already\x20stopped','Started\x20at:\x20','467357rCDGCU','Daemon:\x20unreachable'];_0x513e=function(){return _0x324e02;};return _0x513e();}function u(_0xf6d287){const _0x4d50aa=_0x6272;return(_0xf6d287['stopped']?_0x4d50aa(0x13c):_0x4d50aa(0x133))+'\x0aSocket:\x20'+_0xf6d287[_0x4d50aa(0x119)];}function d(_0x810ac4,_0x249ce0){const _0x5dedf9=_0x6272;return[_0x810ac4,'Identity:\x20'+_0x249ce0['identity']['id'],_0x5dedf9(0x116)+_0x249ce0['identity'][_0x5dedf9(0x132)],..._0x249ce0[_0x5dedf9(0x13e)][_0x5dedf9(0x14c)]===void 0x0?[]:[_0x5dedf9(0x13b)+_0x249ce0['identity']['buildId']],_0x5dedf9(0x14e)+String(_0x249ce0['protocolVersion']),'PID:\x20'+String(_0x249ce0['pid']),_0x5dedf9(0x134)+_0x249ce0['startedAt'],_0x5dedf9(0x150)+_0x249ce0[_0x5dedf9(0x119)]]['join']('\x0a');}function f(_0x237eff){const _0x47c839=_0x6272;return _0x237eff instanceof Error&&_0x47c839(0x153)in _0x237eff&&typeof _0x237eff['code']==_0x47c839(0x12d);}export{t as createDaemonCommand};
1
+ (function(_0x586488,_0x3ff7af){const _0x2097c1=_0x2266,_0x930f2b=_0x586488();while(!![]){try{const _0x497562=-parseInt(_0x2097c1(0x19c))/0x1+-parseInt(_0x2097c1(0x196))/0x2*(-parseInt(_0x2097c1(0x1a3))/0x3)+-parseInt(_0x2097c1(0x1a6))/0x4*(parseInt(_0x2097c1(0x175))/0x5)+-parseInt(_0x2097c1(0x18e))/0x6*(-parseInt(_0x2097c1(0x1a8))/0x7)+parseInt(_0x2097c1(0x186))/0x8*(parseInt(_0x2097c1(0x19a))/0x9)+parseInt(_0x2097c1(0x19b))/0xa+parseInt(_0x2097c1(0x19d))/0xb*(-parseInt(_0x2097c1(0x1a5))/0xc);if(_0x497562===_0x3ff7af)break;else _0x930f2b['push'](_0x930f2b['shift']());}catch(_0x580477){_0x930f2b['push'](_0x930f2b['shift']());}}}(_0x3cdc,0xa0cc9));import{Command as _0x44dbc9}from'commander';function t(_0x1e041d){const _0x593d4f=_0x2266;let _0xc6069a=new _0x44dbc9(_0x593d4f(0x17d))[_0x593d4f(0x1a2)](_0x593d4f(0x1b4))[_0x593d4f(0x18a)](()=>_0xc6069a[_0x593d4f(0x191)]()),_0x2ce584=_0xc6069a[_0x593d4f(0x17f)](_0x593d4f(0x18d))['description'](_0x593d4f(0x1b6))[_0x593d4f(0x1ad)](_0x593d4f(0x17a),_0x593d4f(0x174))['action'](async _0x563240=>{const _0x1024d1=_0x593d4f;let _0x5ceb6a=await n(_0x2ce584,async()=>await _0x1e041d[_0x1024d1(0x1a7)][_0x1024d1(0x18d)]());r(_0x2ce584,_0x563240,_0x5ceb6a,i(_0x5ceb6a));}),_0x22e4ca=_0xc6069a[_0x593d4f(0x17f)](_0x593d4f(0x1b3))['description']('Start\x20the\x20daemon\x20if\x20it\x20is\x20not\x20already\x20running')[_0x593d4f(0x1ad)](_0x593d4f(0x17a),'write\x20structured\x20JSON')[_0x593d4f(0x18a)](async _0x533f9f=>{const _0x4601b6=_0x593d4f;let _0xfc10a6=await n(_0x22e4ca,async()=>await _0x1e041d[_0x4601b6(0x1a7)][_0x4601b6(0x1b3)]());r(_0x22e4ca,_0x533f9f,_0xfc10a6,c(_0xfc10a6));}),_0x5e0ef5=_0xc6069a[_0x593d4f(0x17f)](_0x593d4f(0x190))[_0x593d4f(0x1a2)](_0x593d4f(0x195))[_0x593d4f(0x1ad)](_0x593d4f(0x17a),_0x593d4f(0x174))[_0x593d4f(0x18a)](async _0x3210b6=>{const _0x34bc58=_0x593d4f;let _0x54196b=await n(_0x5e0ef5,async()=>await _0x1e041d[_0x34bc58(0x1a7)][_0x34bc58(0x190)]());r(_0x5e0ef5,_0x3210b6,_0x54196b,l(_0x54196b));}),_0x274b6f=_0xc6069a[_0x593d4f(0x17f)]('stop')[_0x593d4f(0x1a2)](_0x593d4f(0x18f))[_0x593d4f(0x1ad)](_0x593d4f(0x17a),_0x593d4f(0x174))[_0x593d4f(0x18a)](async _0x50082b=>{const _0x5c5c08=_0x593d4f;let _0x480d38=await n(_0x274b6f,async()=>await _0x1e041d[_0x5c5c08(0x1a7)][_0x5c5c08(0x1ae)]());r(_0x274b6f,_0x50082b,_0x480d38,u(_0x480d38));});return _0xc6069a;}async function n(_0x7c7edd,_0x54c4c4){const _0x3ea84e=_0x2266;try{return await _0x54c4c4();}catch(_0x3864b8){throw f(_0x3864b8)&&_0x7c7edd[_0x3ea84e(0x17c)](_0x3864b8['code']+':\x20'+_0x3864b8['message'],{'code':_0x3ea84e(0x1a1),'exitCode':0x1}),_0x3864b8;}}function r(_0x211d7a,_0x439a8a,_0x57e4d4,_0x224971){const _0x37a488=_0x2266;_0x211d7a[_0x37a488(0x187)]()[_0x37a488(0x182)]?.((_0x439a8a['json']===!0x0?JSON['stringify'](_0x57e4d4,null,0x2):_0x224971)+'\x0a');}function _0x2266(_0x38397d,_0x6c7075){_0x38397d=_0x38397d-0x171;const _0x3cdcad=_0x3cdc();let _0x2266e0=_0x3cdcad[_0x38397d];return _0x2266e0;}function _0x3cdc(){const _0x2f6ff4=['restart','outputHelp','Daemon:\x20already\x20running','Daemon:\x20started','\x0aPrevious\x20PID:\x20','Restart\x20the\x20daemon,\x20or\x20start\x20it\x20if\x20it\x20is\x20not\x20running','502CVsLyz','Build\x20ID:\x20','actual','diagnostic','162171MxcAzX','7808760RCLqqM','440751RWkDBT','253VHlHnB','version','Daemon:\x20stopped\x0aSocket:\x20','socketPath','daemon.failed','description','4566ozfcFK','message','395532lgRpKD','2599144qbdFas','control','485681BkjKyh','Protocol:\x20','started','running','Daemon:\x20stopped','option','stop','Expected:\x20','Daemon:\x20unreachable',',\x20protocol\x20','protocolVersion','start','Inspect\x20and\x20control\x20the\x20local\x20daemon','join','Show\x20whether\x20the\x20daemon\x20is\x20running','incompatible','identity','pid','previousPid','expected','write\x20structured\x20JSON','5jEAcLm','Version:\x20','PID:\x20','unreachable','buildId','--json','\x20(build\x20','error','daemon','code','command','Reason:\x20','reason','writeOut','Daemon:\x20running','startedAt','state','104WRFqDI','configureOutput','stopped','Identity:\x20','action','Socket:\x20','Daemon:\x20restarted','status','96cUZMkd','Stop\x20the\x20daemon\x20if\x20it\x20is\x20running'];_0x3cdc=function(){return _0x2f6ff4;};return _0x3cdc();}function i(_0x2f8f24){const _0x34c2fe=_0x2266;switch(_0x2f8f24[_0x34c2fe(0x185)]){case _0x34c2fe(0x1ab):return d(_0x34c2fe(0x183),_0x2f8f24);case'stopped':return _0x34c2fe(0x19f)+_0x2f8f24['socketPath'];case _0x34c2fe(0x1b7):return a(_0x2f8f24);case _0x34c2fe(0x178):return[_0x34c2fe(0x1b0),'Error:\x20'+s(_0x2f8f24['diagnostic']),_0x34c2fe(0x18b)+_0x2f8f24['socketPath']]['join']('\x0a');}}function a(_0x393769){const _0x343c73=_0x2266;return['Daemon:\x20incompatible',_0x343c73(0x180)+_0x393769[_0x343c73(0x181)],_0x343c73(0x1af)+o(_0x393769[_0x343c73(0x173)][_0x343c73(0x1b8)],_0x393769[_0x343c73(0x173)][_0x343c73(0x1b2)]),..._0x393769[_0x343c73(0x198)]===void 0x0?[]:['Actual:\x20'+o(_0x393769[_0x343c73(0x198)][_0x343c73(0x1b8)],_0x393769['actual']['protocolVersion'])],..._0x393769[_0x343c73(0x199)]===void 0x0?[]:['Error:\x20'+s(_0x393769[_0x343c73(0x199)])],_0x343c73(0x18b)+_0x393769[_0x343c73(0x1a0)]][_0x343c73(0x1b5)]('\x0a');}function o(_0x398028,_0x3b3411){const _0x300284=_0x2266;return _0x398028['id']+'@'+_0x398028[_0x300284(0x19e)]+(_0x398028[_0x300284(0x179)]===void 0x0?'':_0x300284(0x17b)+_0x398028[_0x300284(0x179)]+')')+_0x300284(0x1b1)+String(_0x3b3411);}function s(_0x4f4676){const _0x273e1b=_0x2266;return _0x4f4676['code']===void 0x0?_0x4f4676[_0x273e1b(0x1a4)]:_0x4f4676[_0x273e1b(0x17e)]+':\x20'+_0x4f4676[_0x273e1b(0x1a4)];}function c(_0x5eee77){const _0x17c2b6=_0x2266;return d(_0x5eee77[_0x17c2b6(0x1aa)]?_0x17c2b6(0x193):_0x17c2b6(0x192),_0x5eee77);}function l(_0x3da660){const _0x13a9d5=_0x2266;let _0xe2b07f=d(_0x3da660['restarted']?_0x13a9d5(0x18c):_0x13a9d5(0x193),_0x3da660);return _0x3da660[_0x13a9d5(0x172)]===void 0x0?_0xe2b07f:_0xe2b07f+_0x13a9d5(0x194)+String(_0x3da660[_0x13a9d5(0x172)]);}function u(_0x12aba2){const _0x55fecf=_0x2266;return(_0x12aba2[_0x55fecf(0x188)]?_0x55fecf(0x1ac):'Daemon:\x20already\x20stopped')+'\x0aSocket:\x20'+_0x12aba2[_0x55fecf(0x1a0)];}function d(_0x3adf8a,_0x49a46a){const _0x11e08f=_0x2266;return[_0x3adf8a,_0x11e08f(0x189)+_0x49a46a['identity']['id'],_0x11e08f(0x176)+_0x49a46a[_0x11e08f(0x1b8)]['version'],..._0x49a46a[_0x11e08f(0x1b8)][_0x11e08f(0x179)]===void 0x0?[]:[_0x11e08f(0x197)+_0x49a46a['identity'][_0x11e08f(0x179)]],_0x11e08f(0x1a9)+String(_0x49a46a[_0x11e08f(0x1b2)]),_0x11e08f(0x177)+String(_0x49a46a[_0x11e08f(0x171)]),'Started\x20at:\x20'+_0x49a46a[_0x11e08f(0x184)],_0x11e08f(0x18b)+_0x49a46a['socketPath']]['join']('\x0a');}function f(_0x3a1ef7){const _0x23d3c2=_0x2266;return _0x3a1ef7 instanceof Error&&_0x23d3c2(0x17e)in _0x3a1ef7&&typeof _0x3a1ef7[_0x23d3c2(0x17e)]=='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.4.0",
4
+ "version": "1.6.0",
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.4.0"
21
+ "@univer-cli/daemon": "1.6.0"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "commander": "^15.0.0"