@univer-cli/daemon-command 1.6.2 → 1.7.0-alpha.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(_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();}
1
+ (function(_0x5e9725,_0x2b321e){const _0x7ea6ad=_0x2485,_0x47b994=_0x5e9725();while(!![]){try{const _0x191070=parseInt(_0x7ea6ad(0x171))/0x1*(-parseInt(_0x7ea6ad(0x15f))/0x2)+-parseInt(_0x7ea6ad(0x15a))/0x3+parseInt(_0x7ea6ad(0x16a))/0x4+parseInt(_0x7ea6ad(0x18e))/0x5*(parseInt(_0x7ea6ad(0x157))/0x6)+-parseInt(_0x7ea6ad(0x183))/0x7+-parseInt(_0x7ea6ad(0x191))/0x8+-parseInt(_0x7ea6ad(0x18a))/0x9*(-parseInt(_0x7ea6ad(0x15b))/0xa);if(_0x191070===_0x2b321e)break;else _0x47b994['push'](_0x47b994['shift']());}catch(_0x352d89){_0x47b994['push'](_0x47b994['shift']());}}}(_0x49f2,0x5ee7e));import{Command as _0x4fd9ae}from'commander';function t(_0x362a94){const _0xff69e6=_0x2485;let _0x1d41b1=new _0x4fd9ae('daemon')[_0xff69e6(0x197)](_0xff69e6(0x185))[_0xff69e6(0x160)](()=>_0x1d41b1['outputHelp']()),_0x28c0e1=_0x1d41b1[_0xff69e6(0x189)](_0xff69e6(0x151))[_0xff69e6(0x197)](_0xff69e6(0x177))[_0xff69e6(0x17d)](_0xff69e6(0x152),_0xff69e6(0x195))[_0xff69e6(0x160)](async _0x589dcd=>{let _0x3720fb=await n(_0x28c0e1,async()=>await _0x362a94['control']['status']());r(_0x28c0e1,_0x589dcd,_0x3720fb,i(_0x3720fb));}),_0x37f3a1=_0x1d41b1[_0xff69e6(0x189)](_0xff69e6(0x17f))[_0xff69e6(0x197)](_0xff69e6(0x170))[_0xff69e6(0x17d)]('--json','write\x20structured\x20JSON')[_0xff69e6(0x160)](async _0x37794d=>{let _0x4b1209=await n(_0x37f3a1,async()=>await _0x362a94['control']['start']());r(_0x37f3a1,_0x37794d,_0x4b1209,c(_0x4b1209));}),_0x154b13=_0x1d41b1[_0xff69e6(0x189)](_0xff69e6(0x17a))['description'](_0xff69e6(0x175))[_0xff69e6(0x17d)]('--json',_0xff69e6(0x195))[_0xff69e6(0x160)](async _0x3397e5=>{const _0x5f4324=_0xff69e6;let _0x46383d=await n(_0x154b13,async()=>await _0x362a94[_0x5f4324(0x182)][_0x5f4324(0x17a)]());r(_0x154b13,_0x3397e5,_0x46383d,l(_0x46383d));}),_0x15fef1=_0x1d41b1[_0xff69e6(0x189)]('stop')['description'](_0xff69e6(0x16e))[_0xff69e6(0x17d)](_0xff69e6(0x152),_0xff69e6(0x195))[_0xff69e6(0x160)](async _0x4d500d=>{const _0x1eee8c=_0xff69e6;let _0x58790b=await n(_0x15fef1,async()=>await _0x362a94['control'][_0x1eee8c(0x162)]());r(_0x15fef1,_0x4d500d,_0x58790b,u(_0x58790b));});return _0x1d41b1;}async function n(_0x52a9f5,_0x3f7fcc){const _0x149363=_0x2485;try{return await _0x3f7fcc();}catch(_0x1ce2b0){throw f(_0x1ce2b0)&&_0x52a9f5[_0x149363(0x18f)](_0x1ce2b0[_0x149363(0x159)]+':\x20'+_0x1ce2b0[_0x149363(0x166)],{'code':'daemon.failed','exitCode':0x1}),_0x1ce2b0;}}function _0x49f2(){const _0x28373d=['Stop\x20the\x20daemon\x20if\x20it\x20is\x20running','Socket:\x20','Start\x20the\x20daemon\x20if\x20it\x20is\x20not\x20already\x20running','338ExXgKJ','Daemon:\x20restarted','\x20(build\x20','startedAt','Restart\x20the\x20daemon,\x20or\x20start\x20it\x20if\x20it\x20is\x20not\x20running','actual','Show\x20whether\x20the\x20daemon\x20is\x20running',',\x20protocol\x20','incompatible','restart','reason','Daemon:\x20already\x20stopped','option','protocolVersion','start','started','Started\x20at:\x20','control','2890832PHWThm','socketPath','Inspect\x20and\x20control\x20the\x20local\x20daemon','join','expected','\x0aPrevious\x20PID:\x20','command','18CekbAd','unreachable','stringify','Actual:\x20','25xwDOEX','error','Reason:\x20','2536200OmnVJH','pid','PID:\x20','diagnostic','write\x20structured\x20JSON','buildId','description','status','--json','running','json','version','Protocol:\x20','262842qHxcNC','Daemon:\x20running','code','1459845ibuAOf','8405770KGRMwl','Error:\x20','\x0aSocket:\x20','string','4414ezxxHS','action','Daemon:\x20already\x20running','stop','stopped','Build\x20ID:\x20','identity','message','restarted','writeOut','Daemon:\x20incompatible','1804508GLrwHJ','Daemon:\x20stopped','Identity:\x20','Expected:\x20'];_0x49f2=function(){return _0x28373d;};return _0x49f2();}function r(_0x4fe40c,_0x38df7a,_0x4e2987,_0x2cc133){const _0xcd7a0f=_0x2485;_0x4fe40c['configureOutput']()[_0xcd7a0f(0x168)]?.((_0x38df7a[_0xcd7a0f(0x154)]===!0x0?JSON[_0xcd7a0f(0x18c)](_0x4e2987,null,0x2):_0x2cc133)+'\x0a');}function i(_0x525e20){const _0x174caf=_0x2485;switch(_0x525e20['state']){case _0x174caf(0x153):return d(_0x174caf(0x158),_0x525e20);case _0x174caf(0x163):return'Daemon:\x20stopped\x0aSocket:\x20'+_0x525e20[_0x174caf(0x184)];case _0x174caf(0x179):return a(_0x525e20);case _0x174caf(0x18b):return['Daemon:\x20unreachable','Error:\x20'+s(_0x525e20[_0x174caf(0x194)]),_0x174caf(0x16f)+_0x525e20[_0x174caf(0x184)]][_0x174caf(0x186)]('\x0a');}}function a(_0x562c2a){const _0x181836=_0x2485;return[_0x181836(0x169),_0x181836(0x190)+_0x562c2a[_0x181836(0x17b)],_0x181836(0x16d)+o(_0x562c2a['expected']['identity'],_0x562c2a[_0x181836(0x187)]['protocolVersion']),..._0x562c2a[_0x181836(0x176)]===void 0x0?[]:[_0x181836(0x18d)+o(_0x562c2a['actual'][_0x181836(0x165)],_0x562c2a[_0x181836(0x176)][_0x181836(0x17e)])],..._0x562c2a[_0x181836(0x194)]===void 0x0?[]:[_0x181836(0x15c)+s(_0x562c2a[_0x181836(0x194)])],_0x181836(0x16f)+_0x562c2a[_0x181836(0x184)]][_0x181836(0x186)]('\x0a');}function o(_0x11a1d6,_0x447a83){const _0x38b293=_0x2485;return _0x11a1d6['id']+'@'+_0x11a1d6[_0x38b293(0x155)]+(_0x11a1d6[_0x38b293(0x196)]===void 0x0?'':_0x38b293(0x173)+_0x11a1d6[_0x38b293(0x196)]+')')+_0x38b293(0x178)+String(_0x447a83);}function s(_0x9d0e2f){const _0xb2ff01=_0x2485;return _0x9d0e2f[_0xb2ff01(0x159)]===void 0x0?_0x9d0e2f[_0xb2ff01(0x166)]:_0x9d0e2f['code']+':\x20'+_0x9d0e2f[_0xb2ff01(0x166)];}function c(_0x2c2a5f){const _0x4db61f=_0x2485;return d(_0x2c2a5f[_0x4db61f(0x180)]?'Daemon:\x20started':_0x4db61f(0x161),_0x2c2a5f);}function l(_0x23565f){const _0x2d31eb=_0x2485;let _0x53711b=d(_0x23565f[_0x2d31eb(0x167)]?_0x2d31eb(0x172):'Daemon:\x20started',_0x23565f);return _0x23565f['previousPid']===void 0x0?_0x53711b:_0x53711b+_0x2d31eb(0x188)+String(_0x23565f['previousPid']);}function _0x2485(_0x107ec1,_0x7921dd){_0x107ec1=_0x107ec1-0x151;const _0x49f2b0=_0x49f2();let _0x248574=_0x49f2b0[_0x107ec1];return _0x248574;}function u(_0x24b6b9){const _0x29c3c8=_0x2485;return(_0x24b6b9[_0x29c3c8(0x163)]?_0x29c3c8(0x16b):_0x29c3c8(0x17c))+_0x29c3c8(0x15d)+_0x24b6b9['socketPath'];}function d(_0x5c9f6d,_0x1b7c05){const _0x20ec39=_0x2485;return[_0x5c9f6d,_0x20ec39(0x16c)+_0x1b7c05[_0x20ec39(0x165)]['id'],'Version:\x20'+_0x1b7c05['identity'][_0x20ec39(0x155)],..._0x1b7c05[_0x20ec39(0x165)][_0x20ec39(0x196)]===void 0x0?[]:[_0x20ec39(0x164)+_0x1b7c05[_0x20ec39(0x165)][_0x20ec39(0x196)]],_0x20ec39(0x156)+String(_0x1b7c05['protocolVersion']),_0x20ec39(0x193)+String(_0x1b7c05[_0x20ec39(0x192)]),_0x20ec39(0x181)+_0x1b7c05[_0x20ec39(0x174)],_0x20ec39(0x16f)+_0x1b7c05[_0x20ec39(0x184)]]['join']('\x0a');}function f(_0x5de374){const _0x52aff5=_0x2485;return _0x5de374 instanceof Error&&'code'in _0x5de374&&typeof _0x5de374[_0x52aff5(0x159)]==_0x52aff5(0x15e);}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.2",
4
+ "version": "1.7.0-alpha.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.6.2"
21
+ "@univer-cli/daemon": "1.7.0-alpha.0"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "commander": "^15.0.0"