@univer-cli/daemon-command 1.1.0 → 1.2.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(_0x16286a,_0x4d2636){const _0x38019a=_0x58d0,_0x2821da=_0x16286a();while(!![]){try{const _0x338e43=parseInt(_0x38019a(0x1d5))/0x1+parseInt(_0x38019a(0x1e7))/0x2+parseInt(_0x38019a(0x1f4))/0x3+-parseInt(_0x38019a(0x1c9))/0x4*(parseInt(_0x38019a(0x1e6))/0x5)+parseInt(_0x38019a(0x1c7))/0x6+parseInt(_0x38019a(0x1c3))/0x7*(parseInt(_0x38019a(0x1c4))/0x8)+parseInt(_0x38019a(0x1da))/0x9*(-parseInt(_0x38019a(0x1c6))/0xa);if(_0x338e43===_0x4d2636)break;else _0x2821da['push'](_0x2821da['shift']());}catch(_0x1ab7b4){_0x2821da['push'](_0x2821da['shift']());}}}(_0x79ca,0xc52fb));import{Command as _0xefd53}from'commander';function t(_0x287071){const _0x3ae5b=_0x58d0;let _0x27bd96=new _0xefd53(_0x3ae5b(0x1fe))[_0x3ae5b(0x1cd)](_0x3ae5b(0x1f2))[_0x3ae5b(0x1db)](()=>_0x27bd96[_0x3ae5b(0x1eb)]()),_0x2117f6=_0x27bd96[_0x3ae5b(0x200)](_0x3ae5b(0x1fb))[_0x3ae5b(0x1cd)]('Show\x20whether\x20the\x20daemon\x20is\x20running')[_0x3ae5b(0x1d8)](_0x3ae5b(0x1e9),_0x3ae5b(0x1d2))[_0x3ae5b(0x1db)](async _0x17a04b=>{let _0x2a2a06=await n(_0x2117f6,async()=>await _0x287071['control']['status']());r(_0x2117f6,_0x17a04b,_0x2a2a06,i(_0x2a2a06));}),_0xd8dbde=_0x27bd96[_0x3ae5b(0x200)](_0x3ae5b(0x1ee))[_0x3ae5b(0x1cd)](_0x3ae5b(0x1ff))[_0x3ae5b(0x1d8)](_0x3ae5b(0x1e9),'write\x20structured\x20JSON')['action'](async _0x4eec79=>{const _0x5415e7=_0x3ae5b;let _0x5a8440=await n(_0xd8dbde,async()=>await _0x287071[_0x5415e7(0x208)][_0x5415e7(0x1ee)]());r(_0xd8dbde,_0x4eec79,_0x5a8440,c(_0x5a8440));}),_0x21b0e3=_0x27bd96[_0x3ae5b(0x200)]('restart')[_0x3ae5b(0x1cd)](_0x3ae5b(0x209))['option']('--json',_0x3ae5b(0x1d2))[_0x3ae5b(0x1db)](async _0x1156e0=>{const _0x5b7d5b=_0x3ae5b;let _0xaae48f=await n(_0x21b0e3,async()=>await _0x287071['control'][_0x5b7d5b(0x1c1)]());r(_0x21b0e3,_0x1156e0,_0xaae48f,l(_0xaae48f));}),_0x161e3f=_0x27bd96['command'](_0x3ae5b(0x1c8))[_0x3ae5b(0x1cd)](_0x3ae5b(0x204))[_0x3ae5b(0x1d8)](_0x3ae5b(0x1e9),_0x3ae5b(0x1d2))[_0x3ae5b(0x1db)](async _0xe7f4fb=>{const _0xd56a5a=_0x3ae5b;let _0x3e4aa9=await n(_0x161e3f,async()=>await _0x287071[_0xd56a5a(0x208)][_0xd56a5a(0x1c8)]());r(_0x161e3f,_0xe7f4fb,_0x3e4aa9,u(_0x3e4aa9));});return _0x27bd96;}async function n(_0x301323,_0x846f33){const _0x5cc16e=_0x58d0;try{return await _0x846f33();}catch(_0x56392e){throw f(_0x56392e)&&_0x301323[_0x5cc16e(0x1df)](_0x56392e[_0x5cc16e(0x1cf)]+':\x20'+_0x56392e[_0x5cc16e(0x1f9)],{'code':_0x5cc16e(0x1f3),'exitCode':0x1}),_0x56392e;}}function r(_0x10d6f3,_0x269852,_0x14d9ba,_0x328242){const _0x534062=_0x58d0;_0x10d6f3[_0x534062(0x1dc)]()[_0x534062(0x1cc)]?.((_0x269852[_0x534062(0x1f5)]===!0x0?JSON['stringify'](_0x14d9ba,null,0x2):_0x328242)+'\x0a');}function i(_0x318bed){const _0x4318b2=_0x58d0;switch(_0x318bed[_0x4318b2(0x1d1)]){case'running':return d(_0x4318b2(0x203),_0x318bed);case'stopped':return _0x4318b2(0x1d7)+_0x318bed['socketPath'];case'incompatible':return a(_0x318bed);case _0x4318b2(0x1ef):return[_0x4318b2(0x1ed),'Error:\x20'+s(_0x318bed[_0x4318b2(0x1e3)]),_0x4318b2(0x207)+_0x318bed[_0x4318b2(0x1c2)]][_0x4318b2(0x1ce)]('\x0a');}}function a(_0x19efaf){const _0x3209ff=_0x58d0;return[_0x3209ff(0x1e2),_0x3209ff(0x1d0)+_0x19efaf[_0x3209ff(0x1d6)],'Expected:\x20'+o(_0x19efaf['expected'][_0x3209ff(0x1e0)],_0x19efaf[_0x3209ff(0x206)][_0x3209ff(0x1f8)]),..._0x19efaf['actual']===void 0x0?[]:[_0x3209ff(0x20a)+o(_0x19efaf[_0x3209ff(0x1fc)][_0x3209ff(0x1e0)],_0x19efaf[_0x3209ff(0x1fc)][_0x3209ff(0x1f8)])],..._0x19efaf[_0x3209ff(0x1e3)]===void 0x0?[]:[_0x3209ff(0x1d3)+s(_0x19efaf[_0x3209ff(0x1e3)])],_0x3209ff(0x207)+_0x19efaf[_0x3209ff(0x1c2)]]['join']('\x0a');}function o(_0x2f4e1b,_0x2d6423){const _0x15bc4e=_0x58d0;return _0x2f4e1b['id']+'@'+_0x2f4e1b['version']+(_0x2f4e1b[_0x15bc4e(0x1e5)]===void 0x0?'':_0x15bc4e(0x1ea)+_0x2f4e1b[_0x15bc4e(0x1e5)]+')')+_0x15bc4e(0x1f0)+String(_0x2d6423);}function _0x58d0(_0x5afd5c,_0x13337d){_0x5afd5c=_0x5afd5c-0x1c1;const _0x79caad=_0x79ca();let _0x58d094=_0x79caad[_0x5afd5c];return _0x58d094;}function s(_0x38d94c){const _0x53dc01=_0x58d0;return _0x38d94c[_0x53dc01(0x1cf)]===void 0x0?_0x38d94c[_0x53dc01(0x1f9)]:_0x38d94c[_0x53dc01(0x1cf)]+':\x20'+_0x38d94c[_0x53dc01(0x1f9)];}function c(_0x5a3d33){const _0x5b3636=_0x58d0;return d(_0x5a3d33[_0x5b3636(0x1c5)]?_0x5b3636(0x1f6):_0x5b3636(0x1ca),_0x5a3d33);}function l(_0x237e90){const _0x3ee2e9=_0x58d0;let _0x438365=d(_0x237e90[_0x3ee2e9(0x1ec)]?'Daemon:\x20restarted':_0x3ee2e9(0x1f6),_0x237e90);return _0x237e90['previousPid']===void 0x0?_0x438365:_0x438365+_0x3ee2e9(0x1fa)+String(_0x237e90[_0x3ee2e9(0x1cb)]);}function u(_0x37921d){const _0x116e68=_0x58d0;return(_0x37921d[_0x116e68(0x1e1)]?_0x116e68(0x202):_0x116e68(0x201))+_0x116e68(0x1d4)+_0x37921d[_0x116e68(0x1c2)];}function _0x79ca(){const _0x3c88fc=['option','Protocol:\x20','333MUKIjx','action','configureOutput','Started\x20at:\x20','version','error','identity','stopped','Daemon:\x20incompatible','diagnostic','pid','buildId','1775010YXJatT','3158312RqRKLc','Version:\x20','--json','\x20(build\x20','outputHelp','restarted','Daemon:\x20unreachable','start','unreachable',',\x20protocol\x20','string','Inspect\x20and\x20control\x20the\x20local\x20daemon','daemon.failed','180513YhHOyD','json','Daemon:\x20started','Build\x20ID:\x20','protocolVersion','message','\x0aPrevious\x20PID:\x20','status','actual','Identity:\x20','daemon','Start\x20the\x20daemon\x20if\x20it\x20is\x20not\x20already\x20running','command','Daemon:\x20already\x20stopped','Daemon:\x20stopped','Daemon:\x20running','Stop\x20the\x20daemon\x20if\x20it\x20is\x20running','startedAt','expected','Socket:\x20','control','Restart\x20the\x20daemon,\x20or\x20start\x20it\x20if\x20it\x20is\x20not\x20running','Actual:\x20','restart','socketPath','1911dRBMmZ','14024iVcTwx','started','585410omDqTC','4358526AQhBEk','stop','16jojAFi','Daemon:\x20already\x20running','previousPid','writeOut','description','join','code','Reason:\x20','state','write\x20structured\x20JSON','Error:\x20','\x0aSocket:\x20','1549383FqSeRE','reason','Daemon:\x20stopped\x0aSocket:\x20'];_0x79ca=function(){return _0x3c88fc;};return _0x79ca();}function d(_0x272be1,_0x319848){const _0x59bd64=_0x58d0;return[_0x272be1,_0x59bd64(0x1fd)+_0x319848[_0x59bd64(0x1e0)]['id'],_0x59bd64(0x1e8)+_0x319848['identity'][_0x59bd64(0x1de)],..._0x319848[_0x59bd64(0x1e0)][_0x59bd64(0x1e5)]===void 0x0?[]:[_0x59bd64(0x1f7)+_0x319848[_0x59bd64(0x1e0)]['buildId']],_0x59bd64(0x1d9)+String(_0x319848[_0x59bd64(0x1f8)]),'PID:\x20'+String(_0x319848[_0x59bd64(0x1e4)]),_0x59bd64(0x1dd)+_0x319848[_0x59bd64(0x205)],_0x59bd64(0x207)+_0x319848[_0x59bd64(0x1c2)]][_0x59bd64(0x1ce)]('\x0a');}function f(_0x1a6fb1){const _0x12a020=_0x58d0;return _0x1a6fb1 instanceof Error&&_0x12a020(0x1cf)in _0x1a6fb1&&typeof _0x1a6fb1[_0x12a020(0x1cf)]==_0x12a020(0x1f1);}export{t as createDaemonCommand};
1
+ (function(_0x1aff1c,_0x4d774d){const _0x10fbc7=_0x232c,_0x234d71=_0x1aff1c();while(!![]){try{const _0x5a06d7=-parseInt(_0x10fbc7(0x181))/0x1*(parseInt(_0x10fbc7(0x154))/0x2)+-parseInt(_0x10fbc7(0x166))/0x3*(parseInt(_0x10fbc7(0x188))/0x4)+parseInt(_0x10fbc7(0x151))/0x5*(parseInt(_0x10fbc7(0x149))/0x6)+-parseInt(_0x10fbc7(0x15d))/0x7+-parseInt(_0x10fbc7(0x174))/0x8*(parseInt(_0x10fbc7(0x145))/0x9)+-parseInt(_0x10fbc7(0x15f))/0xa+-parseInt(_0x10fbc7(0x169))/0xb*(-parseInt(_0x10fbc7(0x184))/0xc);if(_0x5a06d7===_0x4d774d)break;else _0x234d71['push'](_0x234d71['shift']());}catch(_0x4d1498){_0x234d71['push'](_0x234d71['shift']());}}}(_0x39c7,0x1f87f));import{Command as _0x5ba0c8}from'commander';function t(_0x176b35){const _0x274915=_0x232c;let _0x43b64c=new _0x5ba0c8(_0x274915(0x16b))['description'](_0x274915(0x14d))['action'](()=>_0x43b64c[_0x274915(0x14a)]()),_0x17e1cf=_0x43b64c[_0x274915(0x150)]('status')[_0x274915(0x168)](_0x274915(0x176))[_0x274915(0x153)](_0x274915(0x17f),'write\x20structured\x20JSON')[_0x274915(0x17b)](async _0x12e15a=>{const _0x1fa581=_0x274915;let _0x32bdc5=await n(_0x17e1cf,async()=>await _0x176b35['control'][_0x1fa581(0x170)]());r(_0x17e1cf,_0x12e15a,_0x32bdc5,i(_0x32bdc5));}),_0x357d2e=_0x43b64c['command'](_0x274915(0x142))[_0x274915(0x168)](_0x274915(0x157))[_0x274915(0x153)](_0x274915(0x17f),_0x274915(0x162))[_0x274915(0x17b)](async _0x5051fe=>{const _0xb723ca=_0x274915;let _0x497a35=await n(_0x357d2e,async()=>await _0x176b35[_0xb723ca(0x167)][_0xb723ca(0x142)]());r(_0x357d2e,_0x5051fe,_0x497a35,c(_0x497a35));}),_0x594fdb=_0x43b64c[_0x274915(0x150)](_0x274915(0x144))[_0x274915(0x168)]('Restart\x20the\x20daemon,\x20or\x20start\x20it\x20if\x20it\x20is\x20not\x20running')[_0x274915(0x153)](_0x274915(0x17f),_0x274915(0x162))[_0x274915(0x17b)](async _0x155fbc=>{const _0x52b374=_0x274915;let _0x2d4503=await n(_0x594fdb,async()=>await _0x176b35['control'][_0x52b374(0x144)]());r(_0x594fdb,_0x155fbc,_0x2d4503,l(_0x2d4503));}),_0x105060=_0x43b64c['command'](_0x274915(0x159))['description'](_0x274915(0x16d))[_0x274915(0x153)](_0x274915(0x17f),_0x274915(0x162))[_0x274915(0x17b)](async _0x1e24e5=>{const _0x5312c9=_0x274915;let _0xd06da8=await n(_0x105060,async()=>await _0x176b35[_0x5312c9(0x167)]['stop']());r(_0x105060,_0x1e24e5,_0xd06da8,u(_0xd06da8));});return _0x43b64c;}function _0x39c7(){const _0x50df4b=['Reason:\x20','action','Identity:\x20','daemon.failed','socketPath','--json','\x0aSocket:\x20','814gZvHuk','Daemon:\x20already\x20running','Actual:\x20','12RBissF','expected',',\x20protocol\x20','Socket:\x20','10924xMaWCH','start','Daemon:\x20stopped','restart','477NzIHEA','incompatible','Daemon:\x20incompatible','\x20(build\x20','1289514ZYDUCL','outputHelp','started','restarted','Inspect\x20and\x20control\x20the\x20local\x20daemon','identity','stringify','command','5BSKhRB','Daemon:\x20unreachable','option','332jupkWZ','error','Started\x20at:\x20','Start\x20the\x20daemon\x20if\x20it\x20is\x20not\x20already\x20running','actual','stop','string','protocolVersion','buildId','230167rskngn','join','2054420BWIRBq','reason','stopped','write\x20structured\x20JSON','unreachable','writeOut','message','141HvMPne','control','description','6060131ijCimx','Build\x20ID:\x20','daemon','Error:\x20','Stop\x20the\x20daemon\x20if\x20it\x20is\x20running','Daemon:\x20restarted','startedAt','status','diagnostic','\x0aPrevious\x20PID:\x20','previousPid','20360OQHQDU','Daemon:\x20running','Show\x20whether\x20the\x20daemon\x20is\x20running','state','code','version'];_0x39c7=function(){return _0x50df4b;};return _0x39c7();}async function n(_0x4132d1,_0x44da6f){const _0x104333=_0x232c;try{return await _0x44da6f();}catch(_0x42eeda){throw f(_0x42eeda)&&_0x4132d1[_0x104333(0x155)](_0x42eeda[_0x104333(0x178)]+':\x20'+_0x42eeda['message'],{'code':_0x104333(0x17d),'exitCode':0x1}),_0x42eeda;}}function r(_0x32f73f,_0x83a9e6,_0x1ba7a7,_0x414baf){const _0x46fc68=_0x232c;_0x32f73f['configureOutput']()[_0x46fc68(0x164)]?.((_0x83a9e6['json']===!0x0?JSON[_0x46fc68(0x14f)](_0x1ba7a7,null,0x2):_0x414baf)+'\x0a');}function i(_0x1f1ec5){const _0x562eb4=_0x232c;switch(_0x1f1ec5[_0x562eb4(0x177)]){case'running':return d(_0x562eb4(0x175),_0x1f1ec5);case'stopped':return'Daemon:\x20stopped\x0aSocket:\x20'+_0x1f1ec5[_0x562eb4(0x17e)];case _0x562eb4(0x146):return a(_0x1f1ec5);case _0x562eb4(0x163):return[_0x562eb4(0x152),_0x562eb4(0x16c)+s(_0x1f1ec5[_0x562eb4(0x171)]),_0x562eb4(0x187)+_0x1f1ec5[_0x562eb4(0x17e)]][_0x562eb4(0x15e)]('\x0a');}}function a(_0x30a1ca){const _0x4aa636=_0x232c;return[_0x4aa636(0x147),_0x4aa636(0x17a)+_0x30a1ca[_0x4aa636(0x160)],'Expected:\x20'+o(_0x30a1ca[_0x4aa636(0x185)][_0x4aa636(0x14e)],_0x30a1ca[_0x4aa636(0x185)][_0x4aa636(0x15b)]),..._0x30a1ca[_0x4aa636(0x158)]===void 0x0?[]:[_0x4aa636(0x183)+o(_0x30a1ca['actual'][_0x4aa636(0x14e)],_0x30a1ca[_0x4aa636(0x158)]['protocolVersion'])],..._0x30a1ca[_0x4aa636(0x171)]===void 0x0?[]:['Error:\x20'+s(_0x30a1ca[_0x4aa636(0x171)])],_0x4aa636(0x187)+_0x30a1ca[_0x4aa636(0x17e)]][_0x4aa636(0x15e)]('\x0a');}function o(_0x3dbc77,_0x59c590){const _0x1e86f4=_0x232c;return _0x3dbc77['id']+'@'+_0x3dbc77[_0x1e86f4(0x179)]+(_0x3dbc77[_0x1e86f4(0x15c)]===void 0x0?'':_0x1e86f4(0x148)+_0x3dbc77[_0x1e86f4(0x15c)]+')')+_0x1e86f4(0x186)+String(_0x59c590);}function _0x232c(_0x333df5,_0x3c93c2){_0x333df5=_0x333df5-0x142;const _0x39c73d=_0x39c7();let _0x232cad=_0x39c73d[_0x333df5];return _0x232cad;}function s(_0x4109d7){const _0x29a6b4=_0x232c;return _0x4109d7['code']===void 0x0?_0x4109d7['message']:_0x4109d7['code']+':\x20'+_0x4109d7[_0x29a6b4(0x165)];}function c(_0x3b8e11){const _0x4ec446=_0x232c;return d(_0x3b8e11[_0x4ec446(0x14b)]?'Daemon:\x20started':_0x4ec446(0x182),_0x3b8e11);}function l(_0x2e5937){const _0x4267a5=_0x232c;let _0x508ab0=d(_0x2e5937[_0x4267a5(0x14c)]?_0x4267a5(0x16e):'Daemon:\x20started',_0x2e5937);return _0x2e5937[_0x4267a5(0x173)]===void 0x0?_0x508ab0:_0x508ab0+_0x4267a5(0x172)+String(_0x2e5937[_0x4267a5(0x173)]);}function u(_0x4e4e9){const _0x1fb7c9=_0x232c;return(_0x4e4e9[_0x1fb7c9(0x161)]?_0x1fb7c9(0x143):'Daemon:\x20already\x20stopped')+_0x1fb7c9(0x180)+_0x4e4e9['socketPath'];}function d(_0x4e3230,_0x390c1f){const _0x49b97a=_0x232c;return[_0x4e3230,_0x49b97a(0x17c)+_0x390c1f[_0x49b97a(0x14e)]['id'],'Version:\x20'+_0x390c1f['identity'][_0x49b97a(0x179)],..._0x390c1f[_0x49b97a(0x14e)][_0x49b97a(0x15c)]===void 0x0?[]:[_0x49b97a(0x16a)+_0x390c1f[_0x49b97a(0x14e)][_0x49b97a(0x15c)]],'Protocol:\x20'+String(_0x390c1f['protocolVersion']),'PID:\x20'+String(_0x390c1f['pid']),_0x49b97a(0x156)+_0x390c1f[_0x49b97a(0x16f)],_0x49b97a(0x187)+_0x390c1f[_0x49b97a(0x17e)]]['join']('\x0a');}function f(_0x4ae701){const _0x47cf39=_0x232c;return _0x4ae701 instanceof Error&&_0x47cf39(0x178)in _0x4ae701&&typeof _0x4ae701[_0x47cf39(0x178)]==_0x47cf39(0x15a);}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.1.0",
4
+ "version": "1.2.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.1.0"
21
+ "@univer-cli/daemon": "1.2.0"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "commander": "^15.0.0"