@univer-cli/daemon-command 1.6.1 → 1.6.3

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(_0x20be8a,_0x7f866d){const _0x4d8734=_0x213e,_0x16350a=_0x20be8a();while(!![]){try{const _0x2ac81f=parseInt(_0x4d8734(0x1bf))/0x1+-parseInt(_0x4d8734(0x19e))/0x2+-parseInt(_0x4d8734(0x199))/0x3+parseInt(_0x4d8734(0x1aa))/0x4+-parseInt(_0x4d8734(0x182))/0x5*(parseInt(_0x4d8734(0x189))/0x6)+-parseInt(_0x4d8734(0x1a0))/0x7+parseInt(_0x4d8734(0x198))/0x8*(parseInt(_0x4d8734(0x1c3))/0x9);if(_0x2ac81f===_0x7f866d)break;else _0x16350a['push'](_0x16350a['shift']());}catch(_0x24ffb0){_0x16350a['push'](_0x16350a['shift']());}}}(_0xa551,0x2a65a));import{Command as _0x531f64}from'commander';function t(_0x483327){const _0x2ff645=_0x213e;let _0x182343=new _0x531f64(_0x2ff645(0x18e))[_0x2ff645(0x18a)](_0x2ff645(0x1ab))[_0x2ff645(0x1a6)](()=>_0x182343['outputHelp']()),_0x57c462=_0x182343[_0x2ff645(0x1b2)](_0x2ff645(0x1b0))[_0x2ff645(0x18a)](_0x2ff645(0x192))[_0x2ff645(0x1a2)](_0x2ff645(0x1a3),'write\x20structured\x20JSON')[_0x2ff645(0x1a6)](async _0x3819ba=>{const _0x49a15e=_0x2ff645;let _0x359530=await n(_0x57c462,async()=>await _0x483327[_0x49a15e(0x18b)]['status']());r(_0x57c462,_0x3819ba,_0x359530,i(_0x359530));}),_0x3daaad=_0x182343['command'](_0x2ff645(0x184))['description'](_0x2ff645(0x1ba))[_0x2ff645(0x1a2)](_0x2ff645(0x1a3),_0x2ff645(0x186))[_0x2ff645(0x1a6)](async _0x2104f3=>{const _0x129056=_0x2ff645;let _0x4737c0=await n(_0x3daaad,async()=>await _0x483327['control'][_0x129056(0x184)]());r(_0x3daaad,_0x2104f3,_0x4737c0,c(_0x4737c0));}),_0x1898b7=_0x182343[_0x2ff645(0x1b2)](_0x2ff645(0x1b4))[_0x2ff645(0x18a)](_0x2ff645(0x1a5))[_0x2ff645(0x1a2)](_0x2ff645(0x1a3),_0x2ff645(0x186))[_0x2ff645(0x1a6)](async _0x37f765=>{const _0x416a83=_0x2ff645;let _0x35e088=await n(_0x1898b7,async()=>await _0x483327[_0x416a83(0x18b)]['restart']());r(_0x1898b7,_0x37f765,_0x35e088,l(_0x35e088));}),_0xc6da8=_0x182343[_0x2ff645(0x1b2)](_0x2ff645(0x1af))[_0x2ff645(0x18a)]('Stop\x20the\x20daemon\x20if\x20it\x20is\x20running')[_0x2ff645(0x1a2)](_0x2ff645(0x1a3),_0x2ff645(0x186))['action'](async _0x1c9564=>{const _0x1d57c5=_0x2ff645;let _0x527642=await n(_0xc6da8,async()=>await _0x483327[_0x1d57c5(0x18b)][_0x1d57c5(0x1af)]());r(_0xc6da8,_0x1c9564,_0x527642,u(_0x527642));});return _0x182343;}async function n(_0x2cc518,_0x21dd87){const _0x4027b6=_0x213e;try{return await _0x21dd87();}catch(_0x176ebe){throw f(_0x176ebe)&&_0x2cc518[_0x4027b6(0x19c)](_0x176ebe[_0x4027b6(0x1be)]+':\x20'+_0x176ebe['message'],{'code':_0x4027b6(0x19f),'exitCode':0x1}),_0x176ebe;}}function r(_0x51b1ab,_0xc3c8a4,_0x592156,_0x48ad1f){const _0x511e4e=_0x213e;_0x51b1ab[_0x511e4e(0x17d)]()[_0x511e4e(0x19b)]?.((_0xc3c8a4[_0x511e4e(0x1c0)]===!0x0?JSON['stringify'](_0x592156,null,0x2):_0x48ad1f)+'\x0a');}function i(_0x32c495){const _0x5e0df2=_0x213e;switch(_0x32c495[_0x5e0df2(0x1a7)]){case _0x5e0df2(0x1b7):return d(_0x5e0df2(0x190),_0x32c495);case _0x5e0df2(0x1a9):return _0x5e0df2(0x1ae)+_0x32c495[_0x5e0df2(0x185)];case _0x5e0df2(0x1a1):return a(_0x32c495);case'unreachable':return[_0x5e0df2(0x17e),_0x5e0df2(0x19a)+s(_0x32c495[_0x5e0df2(0x1ac)]),_0x5e0df2(0x1b9)+_0x32c495[_0x5e0df2(0x185)]][_0x5e0df2(0x1bd)]('\x0a');}}function _0x213e(_0x27aafa,_0xa41713){_0x27aafa=_0x27aafa-0x17d;const _0xa55176=_0xa551();let _0x213ecd=_0xa55176[_0x27aafa];return _0x213ecd;}function _0xa551(){const _0x5c24b5=['code','119907SmknxX','json','identity','actual','5056308zuBTpU','configureOutput','Daemon:\x20unreachable','buildId','\x20(build\x20','Started\x20at:\x20','1485kGhSsV',',\x20protocol\x20','start','socketPath','write\x20structured\x20JSON','pid','Daemon:\x20incompatible','618WxUQzu','description','control','\x0aPrevious\x20PID:\x20','startedAt','daemon','started','Daemon:\x20running','Daemon:\x20stopped','Show\x20whether\x20the\x20daemon\x20is\x20running','Daemon:\x20already\x20stopped','restarted','Identity:\x20','message','version','8PmZeUi','537360sZAAYd','Error:\x20','writeOut','error','Reason:\x20','630420hSxKdt','daemon.failed','461881Uiriwx','incompatible','option','--json','Expected:\x20','Restart\x20the\x20daemon,\x20or\x20start\x20it\x20if\x20it\x20is\x20not\x20running','action','state','PID:\x20','stopped','331372YFawYF','Inspect\x20and\x20control\x20the\x20local\x20daemon','diagnostic','Build\x20ID:\x20','Daemon:\x20stopped\x0aSocket:\x20','stop','status','Daemon:\x20started','command','Actual:\x20','restart','expected','previousPid','running','Daemon:\x20restarted','Socket:\x20','Start\x20the\x20daemon\x20if\x20it\x20is\x20not\x20already\x20running','reason','protocolVersion','join'];_0xa551=function(){return _0x5c24b5;};return _0xa551();}function a(_0x230728){const _0x48070a=_0x213e;return[_0x48070a(0x188),_0x48070a(0x19d)+_0x230728[_0x48070a(0x1bb)],_0x48070a(0x1a4)+o(_0x230728[_0x48070a(0x1b5)][_0x48070a(0x1c1)],_0x230728['expected']['protocolVersion']),..._0x230728[_0x48070a(0x1c2)]===void 0x0?[]:[_0x48070a(0x1b3)+o(_0x230728['actual'][_0x48070a(0x1c1)],_0x230728[_0x48070a(0x1c2)][_0x48070a(0x1bc)])],..._0x230728[_0x48070a(0x1ac)]===void 0x0?[]:[_0x48070a(0x19a)+s(_0x230728['diagnostic'])],_0x48070a(0x1b9)+_0x230728[_0x48070a(0x185)]][_0x48070a(0x1bd)]('\x0a');}function o(_0x243416,_0x3b99e4){const _0x2f6cce=_0x213e;return _0x243416['id']+'@'+_0x243416[_0x2f6cce(0x197)]+(_0x243416[_0x2f6cce(0x17f)]===void 0x0?'':_0x2f6cce(0x180)+_0x243416[_0x2f6cce(0x17f)]+')')+_0x2f6cce(0x183)+String(_0x3b99e4);}function s(_0x15a02c){const _0x4e5ab8=_0x213e;return _0x15a02c['code']===void 0x0?_0x15a02c[_0x4e5ab8(0x196)]:_0x15a02c[_0x4e5ab8(0x1be)]+':\x20'+_0x15a02c[_0x4e5ab8(0x196)];}function c(_0x3d0698){const _0x282a6d=_0x213e;return d(_0x3d0698[_0x282a6d(0x18f)]?_0x282a6d(0x1b1):'Daemon:\x20already\x20running',_0x3d0698);}function l(_0x537cb9){const _0x2dbf6f=_0x213e;let _0x4f90a9=d(_0x537cb9[_0x2dbf6f(0x194)]?_0x2dbf6f(0x1b8):_0x2dbf6f(0x1b1),_0x537cb9);return _0x537cb9[_0x2dbf6f(0x1b6)]===void 0x0?_0x4f90a9:_0x4f90a9+_0x2dbf6f(0x18c)+String(_0x537cb9['previousPid']);}function u(_0x17e889){const _0x211517=_0x213e;return(_0x17e889[_0x211517(0x1a9)]?_0x211517(0x191):_0x211517(0x193))+'\x0aSocket:\x20'+_0x17e889[_0x211517(0x185)];}function d(_0x22bf55,_0x501d74){const _0x616f75=_0x213e;return[_0x22bf55,_0x616f75(0x195)+_0x501d74[_0x616f75(0x1c1)]['id'],'Version:\x20'+_0x501d74[_0x616f75(0x1c1)][_0x616f75(0x197)],..._0x501d74[_0x616f75(0x1c1)]['buildId']===void 0x0?[]:[_0x616f75(0x1ad)+_0x501d74[_0x616f75(0x1c1)][_0x616f75(0x17f)]],'Protocol:\x20'+String(_0x501d74[_0x616f75(0x1bc)]),_0x616f75(0x1a8)+String(_0x501d74[_0x616f75(0x187)]),_0x616f75(0x181)+_0x501d74[_0x616f75(0x18d)],'Socket:\x20'+_0x501d74[_0x616f75(0x185)]]['join']('\x0a');}function f(_0x35a539){const _0x12b1ef=_0x213e;return _0x35a539 instanceof Error&&_0x12b1ef(0x1be)in _0x35a539&&typeof _0x35a539['code']=='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.1",
4
+ "version": "1.6.3",
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.3"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "commander": "^15.0.0"