@univer-cli/daemon-command 1.6.1 → 1.6.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(_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};
1
+ (function(_0x202c72,_0x1f4d34){const _0x37f90d=_0x5c5d,_0x2aaec9=_0x202c72();while(!![]){try{const _0x47dbc2=-parseInt(_0x37f90d(0x185))/0x1+parseInt(_0x37f90d(0x1b6))/0x2+parseInt(_0x37f90d(0x17f))/0x3*(parseInt(_0x37f90d(0x19d))/0x4)+parseInt(_0x37f90d(0x1a6))/0x5*(-parseInt(_0x37f90d(0x184))/0x6)+-parseInt(_0x37f90d(0x1ad))/0x7*(-parseInt(_0x37f90d(0x17c))/0x8)+parseInt(_0x37f90d(0x181))/0x9+-parseInt(_0x37f90d(0x180))/0xa;if(_0x47dbc2===_0x1f4d34)break;else _0x2aaec9['push'](_0x2aaec9['shift']());}catch(_0xb5810f){_0x2aaec9['push'](_0x2aaec9['shift']());}}}(_0x1504,0x3f7a9));import{Command as _0x13cc72}from'commander';function _0x5c5d(_0x54607e,_0x592cba){_0x54607e=_0x54607e-0x17b;const _0x150487=_0x1504();let _0x5c5d0c=_0x150487[_0x54607e];return _0x5c5d0c;}function t(_0x2e8840){const _0x5d7835=_0x5c5d;let _0x158821=new _0x13cc72('daemon')[_0x5d7835(0x1ac)](_0x5d7835(0x17e))[_0x5d7835(0x19e)](()=>_0x158821[_0x5d7835(0x19a)]()),_0x3ab256=_0x158821[_0x5d7835(0x189)](_0x5d7835(0x17b))['description'](_0x5d7835(0x194))['option'](_0x5d7835(0x1b8),_0x5d7835(0x1b9))[_0x5d7835(0x19e)](async _0x2c972a=>{const _0x33ea2f=_0x5d7835;let _0x44b68c=await n(_0x3ab256,async()=>await _0x2e8840[_0x33ea2f(0x1a2)][_0x33ea2f(0x17b)]());r(_0x3ab256,_0x2c972a,_0x44b68c,i(_0x44b68c));}),_0x1e1451=_0x158821[_0x5d7835(0x189)](_0x5d7835(0x182))[_0x5d7835(0x1ac)]('Start\x20the\x20daemon\x20if\x20it\x20is\x20not\x20already\x20running')[_0x5d7835(0x1bb)]('--json',_0x5d7835(0x1b9))['action'](async _0xf8038c=>{const _0x2c7d0b=_0x5d7835;let _0x3a8151=await n(_0x1e1451,async()=>await _0x2e8840[_0x2c7d0b(0x1a2)][_0x2c7d0b(0x182)]());r(_0x1e1451,_0xf8038c,_0x3a8151,c(_0x3a8151));}),_0x4d270f=_0x158821['command'](_0x5d7835(0x199))[_0x5d7835(0x1ac)](_0x5d7835(0x1b7))[_0x5d7835(0x1bb)](_0x5d7835(0x1b8),_0x5d7835(0x1b9))[_0x5d7835(0x19e)](async _0x590679=>{const _0x1d198e=_0x5d7835;let _0x56b572=await n(_0x4d270f,async()=>await _0x2e8840[_0x1d198e(0x1a2)]['restart']());r(_0x4d270f,_0x590679,_0x56b572,l(_0x56b572));}),_0x536a45=_0x158821['command'](_0x5d7835(0x18c))['description'](_0x5d7835(0x1b1))[_0x5d7835(0x1bb)](_0x5d7835(0x1b8),_0x5d7835(0x1b9))[_0x5d7835(0x19e)](async _0x3791e7=>{const _0x594494=_0x5d7835;let _0x38be3b=await n(_0x536a45,async()=>await _0x2e8840['control'][_0x594494(0x18c)]());r(_0x536a45,_0x3791e7,_0x38be3b,u(_0x38be3b));});return _0x158821;}async function n(_0x3ea426,_0x3603fe){const _0x4d473d=_0x5c5d;try{return await _0x3603fe();}catch(_0xd2d386){throw f(_0xd2d386)&&_0x3ea426[_0x4d473d(0x1aa)](_0xd2d386[_0x4d473d(0x18e)]+':\x20'+_0xd2d386[_0x4d473d(0x1a8)],{'code':'daemon.failed','exitCode':0x1}),_0xd2d386;}}function r(_0x307228,_0x162531,_0x2a9fc8,_0x1bdd78){const _0x3fafbe=_0x5c5d;_0x307228['configureOutput']()[_0x3fafbe(0x183)]?.((_0x162531[_0x3fafbe(0x18d)]===!0x0?JSON[_0x3fafbe(0x1a5)](_0x2a9fc8,null,0x2):_0x1bdd78)+'\x0a');}function i(_0x4ab8fd){const _0x216759=_0x5c5d;switch(_0x4ab8fd['state']){case _0x216759(0x19b):return d(_0x216759(0x1a3),_0x4ab8fd);case _0x216759(0x1bc):return'Daemon:\x20stopped\x0aSocket:\x20'+_0x4ab8fd['socketPath'];case _0x216759(0x1a0):return a(_0x4ab8fd);case _0x216759(0x18f):return[_0x216759(0x1a4),_0x216759(0x196)+s(_0x4ab8fd['diagnostic']),_0x216759(0x1a1)+_0x4ab8fd['socketPath']][_0x216759(0x193)]('\x0a');}}function a(_0x49c320){const _0x315081=_0x5c5d;return['Daemon:\x20incompatible',_0x315081(0x1b3)+_0x49c320['reason'],_0x315081(0x192)+o(_0x49c320['expected'][_0x315081(0x190)],_0x49c320[_0x315081(0x18a)]['protocolVersion']),..._0x49c320[_0x315081(0x1ae)]===void 0x0?[]:[_0x315081(0x191)+o(_0x49c320[_0x315081(0x1ae)][_0x315081(0x190)],_0x49c320[_0x315081(0x1ae)]['protocolVersion'])],..._0x49c320[_0x315081(0x1a9)]===void 0x0?[]:[_0x315081(0x196)+s(_0x49c320[_0x315081(0x1a9)])],_0x315081(0x1a1)+_0x49c320[_0x315081(0x18b)]][_0x315081(0x193)]('\x0a');}function o(_0x34d9f0,_0x455d09){const _0x3bbb8b=_0x5c5d;return _0x34d9f0['id']+'@'+_0x34d9f0[_0x3bbb8b(0x1b0)]+(_0x34d9f0[_0x3bbb8b(0x1af)]===void 0x0?'':'\x20(build\x20'+_0x34d9f0[_0x3bbb8b(0x1af)]+')')+_0x3bbb8b(0x1ba)+String(_0x455d09);}function s(_0x1d18a4){const _0xc6c128=_0x5c5d;return _0x1d18a4[_0xc6c128(0x18e)]===void 0x0?_0x1d18a4['message']:_0x1d18a4[_0xc6c128(0x18e)]+':\x20'+_0x1d18a4[_0xc6c128(0x1a8)];}function c(_0x73009d){const _0x37275b=_0x5c5d;return d(_0x73009d['started']?_0x37275b(0x1b4):'Daemon:\x20already\x20running',_0x73009d);}function l(_0xc99ea3){const _0x2b80ee=_0x5c5d;let _0x32fbc2=d(_0xc99ea3[_0x2b80ee(0x1bd)]?_0x2b80ee(0x1a7):_0x2b80ee(0x1b4),_0xc99ea3);return _0xc99ea3[_0x2b80ee(0x195)]===void 0x0?_0x32fbc2:_0x32fbc2+_0x2b80ee(0x1b2)+String(_0xc99ea3[_0x2b80ee(0x195)]);}function u(_0x529e56){const _0x57596b=_0x5c5d;return(_0x529e56['stopped']?_0x57596b(0x187):_0x57596b(0x197))+'\x0aSocket:\x20'+_0x529e56['socketPath'];}function d(_0x5829b6,_0x423cfc){const _0x53f126=_0x5c5d;return[_0x5829b6,_0x53f126(0x19f)+_0x423cfc[_0x53f126(0x190)]['id'],_0x53f126(0x1b5)+_0x423cfc[_0x53f126(0x190)]['version'],..._0x423cfc['identity']['buildId']===void 0x0?[]:[_0x53f126(0x1ab)+_0x423cfc[_0x53f126(0x190)][_0x53f126(0x1af)]],_0x53f126(0x19c)+String(_0x423cfc[_0x53f126(0x17d)]),'PID:\x20'+String(_0x423cfc[_0x53f126(0x198)]),_0x53f126(0x188)+_0x423cfc[_0x53f126(0x186)],_0x53f126(0x1a1)+_0x423cfc['socketPath']][_0x53f126(0x193)]('\x0a');}function f(_0x10542a){const _0x2f5dc9=_0x5c5d;return _0x10542a instanceof Error&&'code'in _0x10542a&&typeof _0x10542a[_0x2f5dc9(0x18e)]=='string';}export{t as createDaemonCommand};function _0x1504(){const _0x23ef39=['Daemon:\x20unreachable','stringify','20sXetOF','Daemon:\x20restarted','message','diagnostic','error','Build\x20ID:\x20','description','158851tedMBU','actual','buildId','version','Stop\x20the\x20daemon\x20if\x20it\x20is\x20running','\x0aPrevious\x20PID:\x20','Reason:\x20','Daemon:\x20started','Version:\x20','720552xZyHIZ','Restart\x20the\x20daemon,\x20or\x20start\x20it\x20if\x20it\x20is\x20not\x20running','--json','write\x20structured\x20JSON',',\x20protocol\x20','option','stopped','restarted','status','104qivLqP','protocolVersion','Inspect\x20and\x20control\x20the\x20local\x20daemon','26514BYpNIz','5828160ywNtRr','2212596nnnrOc','start','writeOut','98214oobhoA','10504yeismV','startedAt','Daemon:\x20stopped','Started\x20at:\x20','command','expected','socketPath','stop','json','code','unreachable','identity','Actual:\x20','Expected:\x20','join','Show\x20whether\x20the\x20daemon\x20is\x20running','previousPid','Error:\x20','Daemon:\x20already\x20stopped','pid','restart','outputHelp','running','Protocol:\x20','8JrYMzK','action','Identity:\x20','incompatible','Socket:\x20','control','Daemon:\x20running'];_0x1504=function(){return _0x23ef39;};return _0x1504();}
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.1",
4
+ "version": "1.6.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.6.1"
21
+ "@univer-cli/daemon": "1.6.2"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "commander": "^15.0.0"