@univer-cli/daemon-command 1.0.0-rc.0 → 1.0.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(_0x12796d,_0x64fe6c){const _0x53470f=_0x550c,_0x42862c=_0x12796d();while(!![]){try{const _0x4db164=-parseInt(_0x53470f(0x215))/0x1*(-parseInt(_0x53470f(0x226))/0x2)+-parseInt(_0x53470f(0x21d))/0x3*(-parseInt(_0x53470f(0x222))/0x4)+parseInt(_0x53470f(0x1fd))/0x5+-parseInt(_0x53470f(0x207))/0x6+parseInt(_0x53470f(0x1fc))/0x7*(-parseInt(_0x53470f(0x228))/0x8)+parseInt(_0x53470f(0x20f))/0x9+parseInt(_0x53470f(0x1f5))/0xa;if(_0x4db164===_0x64fe6c)break;else _0x42862c['push'](_0x42862c['shift']());}catch(_0x1372b0){_0x42862c['push'](_0x42862c['shift']());}}}(_0x43be,0x67f4c));import{Command as _0xb8ab07}from'commander';function t(_0x316038){const _0x4c7210=_0x550c;let _0x46d05a=new _0xb8ab07(_0x4c7210(0x209))[_0x4c7210(0x220)](_0x4c7210(0x211))[_0x4c7210(0x21f)](()=>_0x46d05a['outputHelp']()),_0x1bc817=_0x46d05a['command']('status')['description'](_0x4c7210(0x200))[_0x4c7210(0x212)]('--json',_0x4c7210(0x210))['action'](async _0xd2b21e=>{const _0x305568=_0x4c7210;let _0x3351f5=await n(_0x1bc817,async()=>await _0x316038[_0x305568(0x1f7)][_0x305568(0x22a)]());r(_0x1bc817,_0xd2b21e,_0x3351f5,i(_0x3351f5));}),_0x5b031f=_0x46d05a[_0x4c7210(0x221)](_0x4c7210(0x20d))[_0x4c7210(0x220)](_0x4c7210(0x1f6))[_0x4c7210(0x212)]('--json','write\x20structured\x20JSON')['action'](async _0x1be78f=>{const _0x2ed820=_0x4c7210;let _0x272033=await n(_0x5b031f,async()=>await _0x316038[_0x2ed820(0x1f7)][_0x2ed820(0x20d)]());r(_0x5b031f,_0x1be78f,_0x272033,c(_0x272033));}),_0x5d69cf=_0x46d05a[_0x4c7210(0x221)]('restart')[_0x4c7210(0x220)](_0x4c7210(0x21e))['option'](_0x4c7210(0x1fb),_0x4c7210(0x210))[_0x4c7210(0x21f)](async _0x181775=>{const _0x422854=_0x4c7210;let _0x1da2dc=await n(_0x5d69cf,async()=>await _0x316038[_0x422854(0x1f7)]['restart']());r(_0x5d69cf,_0x181775,_0x1da2dc,l(_0x1da2dc));}),_0x1303ed=_0x46d05a['command'](_0x4c7210(0x21c))[_0x4c7210(0x220)](_0x4c7210(0x204))[_0x4c7210(0x212)](_0x4c7210(0x1fb),_0x4c7210(0x210))[_0x4c7210(0x21f)](async _0x2c8b54=>{let _0x2a652d=await n(_0x1303ed,async()=>await _0x316038['control']['stop']());r(_0x1303ed,_0x2c8b54,_0x2a652d,u(_0x2a652d));});return _0x46d05a;}async function n(_0x54f4b3,_0x370d73){const _0x3ecfa3=_0x550c;try{return await _0x370d73();}catch(_0x2e611a){throw f(_0x2e611a)&&_0x54f4b3['error'](_0x2e611a[_0x3ecfa3(0x219)]+':\x20'+_0x2e611a['message'],{'code':_0x3ecfa3(0x206),'exitCode':0x1}),_0x2e611a;}}function r(_0x2fc8de,_0x30bb4b,_0x2240af,_0x25bf34){const _0x2ad73f=_0x550c;_0x2fc8de[_0x2ad73f(0x216)]()['writeOut']?.((_0x30bb4b[_0x2ad73f(0x1fe)]===!0x0?JSON['stringify'](_0x2240af,null,0x2):_0x25bf34)+'\x0a');}function i(_0x5d2c98){const _0x2fd803=_0x550c;switch(_0x5d2c98[_0x2fd803(0x1f3)]){case _0x2fd803(0x1f9):return d('Daemon:\x20running',_0x5d2c98);case _0x2fd803(0x229):return _0x2fd803(0x22e)+_0x5d2c98[_0x2fd803(0x208)];case'incompatible':return a(_0x5d2c98);case _0x2fd803(0x202):return[_0x2fd803(0x22d),_0x2fd803(0x1f0)+s(_0x5d2c98[_0x2fd803(0x22c)]),_0x2fd803(0x1ee)+_0x5d2c98[_0x2fd803(0x208)]][_0x2fd803(0x20b)]('\x0a');}}function a(_0x37d99e){const _0x755ca6=_0x550c;return[_0x755ca6(0x213),_0x755ca6(0x1f2)+_0x37d99e['reason'],'Expected:\x20'+o(_0x37d99e['expected'][_0x755ca6(0x224)],_0x37d99e[_0x755ca6(0x22f)][_0x755ca6(0x223)]),..._0x37d99e[_0x755ca6(0x1f1)]===void 0x0?[]:[_0x755ca6(0x22b)+o(_0x37d99e[_0x755ca6(0x1f1)][_0x755ca6(0x224)],_0x37d99e[_0x755ca6(0x1f1)][_0x755ca6(0x223)])],..._0x37d99e[_0x755ca6(0x22c)]===void 0x0?[]:[_0x755ca6(0x1f0)+s(_0x37d99e[_0x755ca6(0x22c)])],_0x755ca6(0x1ee)+_0x37d99e[_0x755ca6(0x208)]]['join']('\x0a');}function o(_0x84f424,_0x17ec65){const _0x334c9b=_0x550c;return _0x84f424['id']+'@'+_0x84f424['version']+(_0x84f424['buildId']===void 0x0?'':'\x20(build\x20'+_0x84f424[_0x334c9b(0x1ff)]+')')+_0x334c9b(0x1f8)+String(_0x17ec65);}function s(_0x27e824){const _0x1c1b2f=_0x550c;return _0x27e824[_0x1c1b2f(0x219)]===void 0x0?_0x27e824[_0x1c1b2f(0x214)]:_0x27e824['code']+':\x20'+_0x27e824[_0x1c1b2f(0x214)];}function c(_0x33bec4){const _0x2af3b6=_0x550c;return d(_0x33bec4[_0x2af3b6(0x21a)]?_0x2af3b6(0x227):_0x2af3b6(0x20c),_0x33bec4);}function _0x550c(_0x71d5e3,_0x31f1bf){_0x71d5e3=_0x71d5e3-0x1ee;const _0x43bec1=_0x43be();let _0x550c41=_0x43bec1[_0x71d5e3];return _0x550c41;}function l(_0x28aaf1){const _0x101b5e=_0x550c;let _0x55c4a4=d(_0x28aaf1['restarted']?_0x101b5e(0x1f4):_0x101b5e(0x227),_0x28aaf1);return _0x28aaf1['previousPid']===void 0x0?_0x55c4a4:_0x55c4a4+_0x101b5e(0x1ef)+String(_0x28aaf1[_0x101b5e(0x217)]);}function _0x43be(){const _0x21f8f7=['status','Actual:\x20','diagnostic','Daemon:\x20unreachable','Daemon:\x20stopped\x0aSocket:\x20','expected','Socket:\x20','\x0aPrevious\x20PID:\x20','Error:\x20','actual','Reason:\x20','state','Daemon:\x20restarted','2981890xcjgQX','Start\x20the\x20daemon\x20if\x20it\x20is\x20not\x20already\x20running','control',',\x20protocol\x20','running','Daemon:\x20already\x20stopped','--json','7QNvQvr','243615CzDlgj','json','buildId','Show\x20whether\x20the\x20daemon\x20is\x20running','pid','unreachable','Version:\x20','Stop\x20the\x20daemon\x20if\x20it\x20is\x20running','Started\x20at:\x20','daemon.failed','3217284txEBmD','socketPath','daemon','Daemon:\x20stopped','join','Daemon:\x20already\x20running','start','string','1111743cJNGRt','write\x20structured\x20JSON','Inspect\x20and\x20control\x20the\x20local\x20daemon','option','Daemon:\x20incompatible','message','6203BfdbBu','configureOutput','previousPid','Protocol:\x20','code','started','Identity:\x20','stop','738372GBqiyU','Restart\x20the\x20daemon,\x20or\x20start\x20it\x20if\x20it\x20is\x20not\x20running','action','description','command','12uPIrCe','protocolVersion','identity','\x0aSocket:\x20','94KHOXII','Daemon:\x20started','4306672dcBFln','stopped'];_0x43be=function(){return _0x21f8f7;};return _0x43be();}function u(_0x36ab9b){const _0x193dc6=_0x550c;return(_0x36ab9b[_0x193dc6(0x229)]?_0x193dc6(0x20a):_0x193dc6(0x1fa))+_0x193dc6(0x225)+_0x36ab9b[_0x193dc6(0x208)];}function d(_0x1d14ae,_0x3d7118){const _0x4e2d73=_0x550c;return[_0x1d14ae,_0x4e2d73(0x21b)+_0x3d7118['identity']['id'],_0x4e2d73(0x203)+_0x3d7118[_0x4e2d73(0x224)]['version'],..._0x3d7118[_0x4e2d73(0x224)][_0x4e2d73(0x1ff)]===void 0x0?[]:['Build\x20ID:\x20'+_0x3d7118['identity'][_0x4e2d73(0x1ff)]],_0x4e2d73(0x218)+String(_0x3d7118[_0x4e2d73(0x223)]),'PID:\x20'+String(_0x3d7118[_0x4e2d73(0x201)]),_0x4e2d73(0x205)+_0x3d7118['startedAt'],_0x4e2d73(0x1ee)+_0x3d7118[_0x4e2d73(0x208)]][_0x4e2d73(0x20b)]('\x0a');}function f(_0x16d804){const _0x1ae226=_0x550c;return _0x16d804 instanceof Error&&_0x1ae226(0x219)in _0x16d804&&typeof _0x16d804[_0x1ae226(0x219)]==_0x1ae226(0x20e);}export{t as createDaemonCommand};
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();}
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-rc.0",
4
+ "version": "1.0.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.0.0-rc.0"
21
+ "@univer-cli/daemon": "1.0.0"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "commander": "^15.0.0"