@invarn/cli 0.9.302 → 0.9.303
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.
- package/dist/invarn.cjs +7 -7
- package/dist/local-run-worker.mjs +1 -1
- package/dist/sdk.mjs +30 -26
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const
|
|
2
|
+
function _0x1fac(){const _0x3eb4c2=['W63dUeHfeSoTe25btSoaW4u','Ea4mW67cNCoE','bSkxDCoBWQK','q8ktW788rSkPW7S','m8kdxSozWRaVoIi','W6NdNSkh','W7BcMqujW6xdMmkOAKBdGhTv','rSkOW6ddHq','o8kErmoEWPiNoW','W7dcHtqUWPddNr/dSXy','wCo5fca','pcHskmkNpmoUWOv2bHe4','bSo1WRFdNq4SW6ddUSo0','W4L9yfVdGSkgpqxdSCknbNy','nCktW5VdPCodW60UeSkO','WR1hWRJcI8kOySouf8o4cmkGWRCy','DCorWOpdJCopW6iV','W7FcHmo+dG','W7BcKJW9','W7pcGmoIbcJdT35O','CSoPjH1p','WPZdJmkoWPRcJa','W6lcLmo+ctxdShz1','W6/cLmoKW5pcOgtcQG','WQVdRSkaWRVcMX7cNXzFWQZdQg8','a8o3WRhcMdmtW4VdHSoOsW','W7/cNSolW67dKq','WRtdKKDhWP/dQa0','CWjurZ4','tgmZEtFcOefzzCoGpW','rwK2EZddPhjWEmoHmHm','E8kUW5G2gCkLW78xztldOXS','saLdEG','oCoebmowW4ldVSoEaxKHWPeFWPNdMSktlCoAW4RdNCk9vmoMi8kEESkNFG','hGL1rs0RFG','nsDtkSkPomoaWQH3gbeI','W7HhmWOOjCoV','jdvHpLq','WRTaWQWAW6pdMcnH'];_0x1fac=function(){return _0x3eb4c2;};return _0x1fac();}const _0xc28c9=_0x29fc;(function(_0x1a7b19,_0x506424){const _0x4785f9=_0x29fc,_0x1feb9a=_0x1a7b19();while(!![]){try{const _0x31a749=-parseInt(_0x4785f9(0xbc,'%Wp('))/0x1+-parseInt(_0x4785f9(0xcc,'XXYI'))/0x2*(parseInt(_0x4785f9(0xb2,'XXYI'))/0x3)+-parseInt(_0x4785f9(0xd8,'Epbm'))/0x4+parseInt(_0x4785f9(0xb8,'9bn8'))/0x5+-parseInt(_0x4785f9(0xcb,'%Wp('))/0x6*(-parseInt(_0x4785f9(0xbb,'tJ#C'))/0x7)+-parseInt(_0x4785f9(0xb6,'q&Cz'))/0x8*(-parseInt(_0x4785f9(0xce,'htWB'))/0x9)+parseInt(_0x4785f9(0xcf,'nqUF'))/0xa;if(_0x31a749===_0x506424)break;else _0x1feb9a['push'](_0x1feb9a['shift']());}catch(_0x17b1ed){_0x1feb9a['push'](_0x1feb9a['shift']());}}}(_0x1fac,0x26fc0));function _0x29fc(_0x1bb496,_0x3f1f81){_0x1bb496=_0x1bb496-0xb2;const _0x1fac5c=_0x1fac();let _0x29fc6f=_0x1fac5c[_0x1bb496];if(_0x29fc['uqwOap']===undefined){var _0x54c928=function(_0x486b12){const _0x1e505f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x24a6df='',_0x3a6bba='';for(let _0x41209a=0x0,_0x458b0c,_0x12e21f,_0x9136f5=0x0;_0x12e21f=_0x486b12['charAt'](_0x9136f5++);~_0x12e21f&&(_0x458b0c=_0x41209a%0x4?_0x458b0c*0x40+_0x12e21f:_0x12e21f,_0x41209a++%0x4)?_0x24a6df+=String['fromCharCode'](0xff&_0x458b0c>>(-0x2*_0x41209a&0x6)):0x0){_0x12e21f=_0x1e505f['indexOf'](_0x12e21f);}for(let _0xceda11=0x0,_0x4be64d=_0x24a6df['length'];_0xceda11<_0x4be64d;_0xceda11++){_0x3a6bba+='%'+('00'+_0x24a6df['charCodeAt'](_0xceda11)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3a6bba);};const _0x493127=function(_0x387e43,_0x3279d6){let _0x47aea8=[],_0x7f4f06=0x0,_0x17394c,_0x3dfa19='';_0x387e43=_0x54c928(_0x387e43);let _0x580574;for(_0x580574=0x0;_0x580574<0x100;_0x580574++){_0x47aea8[_0x580574]=_0x580574;}for(_0x580574=0x0;_0x580574<0x100;_0x580574++){_0x7f4f06=(_0x7f4f06+_0x47aea8[_0x580574]+_0x3279d6['charCodeAt'](_0x580574%_0x3279d6['length']))%0x100,_0x17394c=_0x47aea8[_0x580574],_0x47aea8[_0x580574]=_0x47aea8[_0x7f4f06],_0x47aea8[_0x7f4f06]=_0x17394c;}_0x580574=0x0,_0x7f4f06=0x0;for(let _0xd86177=0x0;_0xd86177<_0x387e43['length'];_0xd86177++){_0x580574=(_0x580574+0x1)%0x100,_0x7f4f06=(_0x7f4f06+_0x47aea8[_0x580574])%0x100,_0x17394c=_0x47aea8[_0x580574],_0x47aea8[_0x580574]=_0x47aea8[_0x7f4f06],_0x47aea8[_0x7f4f06]=_0x17394c,_0x3dfa19+=String['fromCharCode'](_0x387e43['charCodeAt'](_0xd86177)^_0x47aea8[(_0x47aea8[_0x580574]+_0x47aea8[_0x7f4f06])%0x100]);}return _0x3dfa19;};_0x29fc['UEjucY']=_0x493127,_0x29fc['ALkOQF']={},_0x29fc['uqwOap']=!![];}const _0x57a881=_0x1fac5c[0x0],_0x37d098=_0x1bb496+_0x57a881,_0xa6f5ad=_0x29fc['ALkOQF'][_0x37d098];return!_0xa6f5ad?(_0x29fc['vPwaWX']===undefined&&(_0x29fc['vPwaWX']=!![]),_0x29fc6f=_0x29fc['UEjucY'](_0x29fc6f,_0x3f1f81),_0x29fc['ALkOQF'][_0x37d098]=_0x29fc6f):_0x29fc6f=_0xa6f5ad,_0x29fc6f;}import{resolve as _0x20a8e5}from'node:path';var [,,w,m]=process[_0xc28c9(0xb9,'tJ#C')];(!w||!m)&&(i({'type':_0xc28c9(0xd7,'yb[l'),'error':'usage:\x20local-run-worker\x20<pipelinePath>\x20<workflow>'}),process['exit'](0x2));function i(_0x5c8a07){const _0x7f324e=_0xc28c9,_0x3107e5={'wokWv':function(_0x41a16a,_0x15d140){return _0x41a16a==_0x15d140;}};_0x3107e5['wokWv'](typeof process[_0x7f324e(0xd1,'#2S$')],_0x7f324e(0xd6,'#2S$'))&&process['send'](_0x5c8a07);}async function r(_0x21eb1e){const _0x5f451d=_0xc28c9,_0x3407ec={'PlBvZ':function(_0x4ee933,_0x39773e){return _0x4ee933(_0x39773e);}};let _0x45b8e5=_0x279b84=>new Promise(_0x246ca2=>{try{_0x279b84['write']('',()=>_0x246ca2());}catch{_0x246ca2();}}),_0x4d1c75=new Promise(_0x2b4dd0=>{setTimeout(_0x2b4dd0,0xc8)['unref']();});await Promise['race']([Promise[_0x5f451d(0xc5,'Kjqe')]([_0x45b8e5(process['stdout']),_0x3407ec[_0x5f451d(0xc2,'(5#s')](_0x45b8e5,process['stderr'])])[_0x5f451d(0xc7,'XXYI')](()=>{}),_0x4d1c75]),process[_0x5f451d(0xca,'0Slu')](_0x21eb1e);}async function S(){const _0x517caf=_0xc28c9,_0x2b5bbd={'XodLs':'@invarn/cibuild/lib','ZypKg':function(_0x2316e4,_0x47e107){return _0x2316e4(_0x47e107);},'aGzdz':'failed','uWGjT':function(_0x5cc5e3,_0x2932e6){return _0x5cc5e3(_0x2932e6);},'ZHLhu':function(_0x5e164d){return _0x5e164d();},'hUlvZ':function(_0x2345c6,_0x6dacfb,_0x547cce,_0x13f9e0,_0x34b480){return _0x2345c6(_0x6dacfb,_0x547cce,_0x13f9e0,_0x34b480);},'RAMaY':function(_0x18bb5a,_0x3b3670){return _0x18bb5a(_0x3b3670);},'EPPYh':function(_0x300e87,_0x3cde4e){return _0x300e87(_0x3cde4e);},'HYGsf':_0x517caf(0xc9,'5oVt'),'YdfsS':function(_0x20acd8,_0x293da5){return _0x20acd8==_0x293da5;},'HsGrr':'number'};i({'type':_0x517caf(0xd0,'htWB')});let _0x373d68;try{_0x373d68=await import(_0x2b5bbd['XodLs']);}catch(_0x1f2aac){i({'type':'crashed','error':'failed\x20to\x20load\x20@invarn/cibuild/lib:\x20'+(_0x1f2aac?.[_0x517caf(0xb4,'EAF0')]??String(_0x1f2aac))}),await _0x2b5bbd['ZypKg'](r,0x2);return;}let {loadYAMLPipeline:_0x442823,convertYAMLToPipelineDef:_0x298724,PipelineRunner:_0x1e1869,loadConfig:_0x90ba99}=_0x373d68,_0xaae6a=_0x20a8e5(process['cwd'](),w),_0xa054b6;try{_0xa054b6=_0x2b5bbd[_0x517caf(0xb5,'tJ#C')](_0x442823,_0xaae6a);}catch(_0x50b33f){i({'type':_0x2b5bbd[_0x517caf(0xb3,'Epbm')],'exitCode':0x1,'failureReason':'Pipeline\x20YAML\x20load\x20failed:\x20'+(_0x50b33f?.['message']??String(_0x50b33f))}),await _0x2b5bbd['uWGjT'](r,0x1);return;}let _0x4d9664=_0x2b5bbd['ZHLhu'](_0x90ba99);_0x4d9664['local']=!0x0;let _0x7c9416;try{let _0x440c97=await _0x2b5bbd['hUlvZ'](_0x298724,_0xa054b6,_0x4d9664,m,_0xaae6a);_0x7c9416=_0x440c97['pipeline'];var _0x35e7ba=_0x440c97[_0x517caf(0xd3,'#2S$')],_0x3b6931=_0x440c97['skippedSteps'];}catch(_0x16a571){_0x2b5bbd['RAMaY'](i,{'type':_0x517caf(0xc1,'cX9y'),'exitCode':0x1,'failureReason':_0x517caf(0xba,'RDk$')+(_0x16a571?.[_0x517caf(0xc8,'(5#s')]??_0x2b5bbd[_0x517caf(0xd5,'[V8l')](String,_0x16a571))}),await r(0x1);return;}let _0x4b5590=new _0x1e1869(_0x4d9664);try{await _0x4b5590['runPipeline'](_0x7c9416,_0x35e7ba,_0x3b6931),i({'type':_0x2b5bbd['HYGsf'],'exitCode':0x0}),await r(0x0);}catch(_0xc5957e){let _0x4979da=_0xc5957e?.[_0x517caf(0xc3,'I%tj')]??String(_0xc5957e),_0x2553a4=/Step\s+"([^"]+)"\s+failed/i[_0x517caf(0xd2,'5oVt')](_0x4979da),_0x45933=_0x2553a4?_0x2553a4[0x1]:null;i({'type':'failed','exitCode':_0x2b5bbd[_0x517caf(0xbe,'q&Cz')](typeof _0xc5957e?.[_0x517caf(0xc4,'(5#s')],_0x2b5bbd['HsGrr'])?_0xc5957e[_0x517caf(0xbf,'[*6t')]:0x1,'failureReason':_0x4979da,'failedStepName':_0x45933}),await r(0x1);}}S()['catch'](async _0x1b1905=>{const _0x297bb2=_0xc28c9,_0x53857c={'vUGZH':function(_0x11bc8d,_0x3918a5){return _0x11bc8d(_0x3918a5);}};i({'type':'crashed','error':'worker\x20uncaught:\x20'+(_0x1b1905?.[_0x297bb2(0xbd,'[Za@')]??_0x53857c[_0x297bb2(0xd4,'Z3IK')](String,_0x1b1905))}),await r(0x2);});
|