@univer-cli/daemon-command 1.6.0 → 1.6.1

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(_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};
1
+ (function(_0x34b3be,_0x2076df){const _0x48903c=_0x5e2e,_0x3fe646=_0x34b3be();while(!![]){try{const _0x25d8b1=-parseInt(_0x48903c(0x20b))/0x1*(-parseInt(_0x48903c(0x1ff))/0x2)+parseInt(_0x48903c(0x1f2))/0x3+parseInt(_0x48903c(0x1e0))/0x4*(-parseInt(_0x48903c(0x209))/0x5)+-parseInt(_0x48903c(0x203))/0x6*(parseInt(_0x48903c(0x1e2))/0x7)+parseInt(_0x48903c(0x1ed))/0x8+-parseInt(_0x48903c(0x200))/0x9*(-parseInt(_0x48903c(0x205))/0xa)+-parseInt(_0x48903c(0x1ee))/0xb*(parseInt(_0x48903c(0x1fb))/0xc);if(_0x25d8b1===_0x2076df)break;else _0x3fe646['push'](_0x3fe646['shift']());}catch(_0x5b7960){_0x3fe646['push'](_0x3fe646['shift']());}}}(_0x115c,0x6f03f));import{Command as _0x2cb700}from'commander';function t(_0x41ab4a){const _0x207725=_0x5e2e;let _0x17798e=new _0x2cb700(_0x207725(0x1ef))[_0x207725(0x1f3)](_0x207725(0x211))[_0x207725(0x20c)](()=>_0x17798e[_0x207725(0x1fe)]()),_0x7fe278=_0x17798e[_0x207725(0x210)](_0x207725(0x1f8))[_0x207725(0x1f3)]('Show\x20whether\x20the\x20daemon\x20is\x20running')['option']('--json',_0x207725(0x1d9))[_0x207725(0x20c)](async _0x3de23c=>{const _0x2d6bc2=_0x207725;let _0x3999c4=await n(_0x7fe278,async()=>await _0x41ab4a[_0x2d6bc2(0x1da)]['status']());r(_0x7fe278,_0x3de23c,_0x3999c4,i(_0x3999c4));}),_0x4a694f=_0x17798e[_0x207725(0x210)](_0x207725(0x1f7))[_0x207725(0x1f3)]('Start\x20the\x20daemon\x20if\x20it\x20is\x20not\x20already\x20running')[_0x207725(0x1f1)](_0x207725(0x1e5),'write\x20structured\x20JSON')[_0x207725(0x20c)](async _0x1e769f=>{const _0x1d8c31=_0x207725;let _0xe9ce25=await n(_0x4a694f,async()=>await _0x41ab4a[_0x1d8c31(0x1da)][_0x1d8c31(0x1f7)]());r(_0x4a694f,_0x1e769f,_0xe9ce25,c(_0xe9ce25));}),_0x2aa13a=_0x17798e[_0x207725(0x210)]('restart')[_0x207725(0x1f3)]('Restart\x20the\x20daemon,\x20or\x20start\x20it\x20if\x20it\x20is\x20not\x20running')[_0x207725(0x1f1)](_0x207725(0x1e5),'write\x20structured\x20JSON')[_0x207725(0x20c)](async _0x1b00b0=>{const _0x35c01a=_0x207725;let _0x29763b=await n(_0x2aa13a,async()=>await _0x41ab4a[_0x35c01a(0x1da)][_0x35c01a(0x1fd)]());r(_0x2aa13a,_0x1b00b0,_0x29763b,l(_0x29763b));}),_0x55d8f0=_0x17798e[_0x207725(0x210)](_0x207725(0x1fc))['description']('Stop\x20the\x20daemon\x20if\x20it\x20is\x20running')[_0x207725(0x1f1)](_0x207725(0x1e5),'write\x20structured\x20JSON')[_0x207725(0x20c)](async _0x5952=>{const _0x1a0154=_0x207725;let _0x3709bf=await n(_0x55d8f0,async()=>await _0x41ab4a['control'][_0x1a0154(0x1fc)]());r(_0x55d8f0,_0x5952,_0x3709bf,u(_0x3709bf));});return _0x17798e;}async function n(_0x3bb2d5,_0x6bc092){const _0x592d70=_0x5e2e;try{return await _0x6bc092();}catch(_0x116c0f){throw f(_0x116c0f)&&_0x3bb2d5[_0x592d70(0x1e1)](_0x116c0f[_0x592d70(0x214)]+':\x20'+_0x116c0f[_0x592d70(0x201)],{'code':'daemon.failed','exitCode':0x1}),_0x116c0f;}}function r(_0x1c808d,_0x211959,_0x388318,_0x32da84){const _0x504b0b=_0x5e2e;_0x1c808d[_0x504b0b(0x20d)]()['writeOut']?.((_0x211959[_0x504b0b(0x202)]===!0x0?JSON[_0x504b0b(0x215)](_0x388318,null,0x2):_0x32da84)+'\x0a');}function i(_0x50e38a){const _0x39c9af=_0x5e2e;switch(_0x50e38a[_0x39c9af(0x1f9)]){case _0x39c9af(0x1e8):return d(_0x39c9af(0x1fa),_0x50e38a);case _0x39c9af(0x1f6):return _0x39c9af(0x1f0)+_0x50e38a['socketPath'];case'incompatible':return a(_0x50e38a);case'unreachable':return[_0x39c9af(0x208),_0x39c9af(0x1eb)+s(_0x50e38a[_0x39c9af(0x1e3)]),_0x39c9af(0x1db)+_0x50e38a[_0x39c9af(0x1f5)]][_0x39c9af(0x1d7)]('\x0a');}}function a(_0x1c8eb4){const _0x5d5f55=_0x5e2e;return[_0x5d5f55(0x213),_0x5d5f55(0x1e6)+_0x1c8eb4['reason'],_0x5d5f55(0x1ea)+o(_0x1c8eb4[_0x5d5f55(0x1e4)][_0x5d5f55(0x1dc)],_0x1c8eb4[_0x5d5f55(0x1e4)]['protocolVersion']),..._0x1c8eb4['actual']===void 0x0?[]:['Actual:\x20'+o(_0x1c8eb4[_0x5d5f55(0x216)]['identity'],_0x1c8eb4['actual'][_0x5d5f55(0x1dd)])],..._0x1c8eb4['diagnostic']===void 0x0?[]:[_0x5d5f55(0x1eb)+s(_0x1c8eb4['diagnostic'])],_0x5d5f55(0x1db)+_0x1c8eb4[_0x5d5f55(0x1f5)]][_0x5d5f55(0x1d7)]('\x0a');}function o(_0x2ef9e3,_0x1e4235){const _0x52f4a0=_0x5e2e;return _0x2ef9e3['id']+'@'+_0x2ef9e3['version']+(_0x2ef9e3[_0x52f4a0(0x1e7)]===void 0x0?'':_0x52f4a0(0x20e)+_0x2ef9e3['buildId']+')')+',\x20protocol\x20'+String(_0x1e4235);}function s(_0x153514){const _0x4f7635=_0x5e2e;return _0x153514[_0x4f7635(0x214)]===void 0x0?_0x153514[_0x4f7635(0x201)]:_0x153514[_0x4f7635(0x214)]+':\x20'+_0x153514[_0x4f7635(0x201)];}function c(_0x4b1803){const _0xc6c376=_0x5e2e;return d(_0x4b1803['started']?_0xc6c376(0x1de):'Daemon:\x20already\x20running',_0x4b1803);}function _0x5e2e(_0x45c7e1,_0x46a942){_0x45c7e1=_0x45c7e1-0x1d6;const _0x115c21=_0x115c();let _0x5e2ef7=_0x115c21[_0x45c7e1];return _0x5e2ef7;}function l(_0x383048){const _0x3b3465=_0x5e2e;let _0x1e3f4f=d(_0x383048['restarted']?_0x3b3465(0x20a):_0x3b3465(0x1de),_0x383048);return _0x383048['previousPid']===void 0x0?_0x1e3f4f:_0x1e3f4f+_0x3b3465(0x204)+String(_0x383048['previousPid']);}function u(_0x4b939d){const _0xaa4d92=_0x5e2e;return(_0x4b939d[_0xaa4d92(0x1f6)]?_0xaa4d92(0x207):_0xaa4d92(0x206))+_0xaa4d92(0x1d6)+_0x4b939d[_0xaa4d92(0x1f5)];}function d(_0x305328,_0x797352){const _0x152065=_0x5e2e;return[_0x305328,'Identity:\x20'+_0x797352[_0x152065(0x1dc)]['id'],_0x152065(0x212)+_0x797352[_0x152065(0x1dc)][_0x152065(0x1ec)],..._0x797352[_0x152065(0x1dc)][_0x152065(0x1e7)]===void 0x0?[]:[_0x152065(0x1e9)+_0x797352[_0x152065(0x1dc)][_0x152065(0x1e7)]],_0x152065(0x1d8)+String(_0x797352[_0x152065(0x1dd)]),_0x152065(0x20f)+String(_0x797352[_0x152065(0x217)]),_0x152065(0x1df)+_0x797352[_0x152065(0x1f4)],_0x152065(0x1db)+_0x797352[_0x152065(0x1f5)]][_0x152065(0x1d7)]('\x0a');}function _0x115c(){const _0x1e4199=['join','Protocol:\x20','write\x20structured\x20JSON','control','Socket:\x20','identity','protocolVersion','Daemon:\x20started','Started\x20at:\x20','3008cFJYHZ','error','6116824LwFyiq','diagnostic','expected','--json','Reason:\x20','buildId','running','Build\x20ID:\x20','Expected:\x20','Error:\x20','version','3701040yyONIY','260139yVedby','daemon','Daemon:\x20stopped\x0aSocket:\x20','option','41565xNoPtX','description','startedAt','socketPath','stopped','start','status','state','Daemon:\x20running','24GelzIH','stop','restart','outputHelp','1375694NIolOh','9xkGSII','message','json','6YAYgxN','\x0aPrevious\x20PID:\x20','7108450PGMGHC','Daemon:\x20already\x20stopped','Daemon:\x20stopped','Daemon:\x20unreachable','3320McsbBg','Daemon:\x20restarted','1zVYivb','action','configureOutput','\x20(build\x20','PID:\x20','command','Inspect\x20and\x20control\x20the\x20local\x20daemon','Version:\x20','Daemon:\x20incompatible','code','stringify','actual','pid','\x0aSocket:\x20'];_0x115c=function(){return _0x1e4199;};return _0x115c();}function f(_0x44924d){const _0x338e02=_0x5e2e;return _0x44924d instanceof Error&&'code'in _0x44924d&&typeof _0x44924d[_0x338e02(0x214)]=='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.6.0",
4
+ "version": "1.6.1",
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.6.0"
21
+ "@univer-cli/daemon": "1.6.1"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "commander": "^15.0.0"