@invarn/cli 0.9.249 → 0.9.251
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 +16 -16
- package/dist/local-run-worker.mjs +1 -1
- package/dist/sdk.mjs +30 -32
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const
|
|
2
|
+
const _0x2e61d3=_0x2ac7;function _0x3760(){const _0x4335e1=['WOfVW6RdRd9duXRcJmkk','vKPPWQtdLG','DK3dOK1alMa','WQxdMYVcJtxcR8ktWQeDl8oADfO','iWVcUWSyiLrrW7tcJ8ok','xSo3W7pdT8k7','vSoemtWo','W41cW5lcLmo8W6lcUmoSgG','fCkVpmo0WRi','W67cLSksdfJcKf7cVW','W7dcGNBdMwBdUa','bdxcS0C','r8oSW7tdHCkL','WRldOgDyq8kYkCk3ca','emk8mCoCWRZcSXG','sSoRW6BdPa','WRK9p8oNW5S','r8oTW6zFW7WBff0','WRBcPIDahG','WPFcVa7cMa','W6K6W7pcLCkp','W5OadmkO','jCoDac8MW6NcSvS2W4HjrW','lf7cQJBdOM/dSHOu','kX4sor/cIvBcSmkkW5O','eGa4W6dcHYNdGs9DCCob','W7/dJhGW','W7lcLbn3rq','fmoQW6xdUti1','DttdO3xdT8kE','WR9dbSkE','WOXaxCoZWQxdGNxdS8keWRbNi8kE','e8k1WRjQcmk9zmkg','m8okWPGlkmoQWO7dNSozWRRcHa','uCoHW6ToW40g','WRVcNInJWQFcSCoMvSklzqZcIq','p8kPAeKcyCoCW4zVW5C','WOPcWRFdI8o8fmotvH9yWR3dKGi','WOBcPGxdOKBdPmoi','W4pcJSk6m8k1WP7cImkP','iLtcTdxdR23dOW','tSoKW4HLW4u','hCkTWRNcP8oTgXBdVgK9WRy','WPddLCoWW7W'];_0x3760=function(){return _0x4335e1;};return _0x3760();}(function(_0x14948d,_0x33f83f){const _0x42d6e6=_0x2ac7,_0x4a406b=_0x14948d();while(!![]){try{const _0x3cf912=parseInt(_0x42d6e6(0x1ad,'VHMP'))/0x1*(parseInt(_0x42d6e6(0x19c,'Lbpd'))/0x2)+-parseInt(_0x42d6e6(0x19e,'3llY'))/0x3*(-parseInt(_0x42d6e6(0x1ae,'DY3d'))/0x4)+parseInt(_0x42d6e6(0x1b4,'k3od'))/0x5+-parseInt(_0x42d6e6(0x18e,'m8#@'))/0x6+parseInt(_0x42d6e6(0x1ab,'PZUl'))/0x7+parseInt(_0x42d6e6(0x1a2,'fg&g'))/0x8*(parseInt(_0x42d6e6(0x1b6,'^!5v'))/0x9)+-parseInt(_0x42d6e6(0x199,'5%dr'))/0xa*(parseInt(_0x42d6e6(0x195,'X#TC'))/0xb);if(_0x3cf912===_0x33f83f)break;else _0x4a406b['push'](_0x4a406b['shift']());}catch(_0x4cd433){_0x4a406b['push'](_0x4a406b['shift']());}}}(_0x3760,0x8fdaa));import{resolve as _0x87328d}from'node:path';var [,,w,m]=process[_0x2e61d3(0x1a4,'!tBI')];(!w||!m)&&(i({'type':_0x2e61d3(0x18f,'^P)y'),'error':'usage:\x20local-run-worker\x20<pipelinePath>\x20<workflow>'}),process[_0x2e61d3(0x194,'nl3y')](0x2));function i(_0x4023d4){const _0x401df6=_0x2e61d3;typeof process[_0x401df6(0x1af,'92!*')]==_0x401df6(0x190,'PK3l')&&process[_0x401df6(0x1a0,'Jz!#')](_0x4023d4);}function _0x2ac7(_0x4a7a43,_0x172343){_0x4a7a43=_0x4a7a43-0x18d;const _0x3760f7=_0x3760();let _0x2ac738=_0x3760f7[_0x4a7a43];if(_0x2ac7['rJGJhW']===undefined){var _0x27ad6d=function(_0x138e0a){const _0x2aa8ce='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3b4e21='',_0x461b81='';for(let _0x224dbb=0x0,_0x550879,_0x2a776a,_0x426f76=0x0;_0x2a776a=_0x138e0a['charAt'](_0x426f76++);~_0x2a776a&&(_0x550879=_0x224dbb%0x4?_0x550879*0x40+_0x2a776a:_0x2a776a,_0x224dbb++%0x4)?_0x3b4e21+=String['fromCharCode'](0xff&_0x550879>>(-0x2*_0x224dbb&0x6)):0x0){_0x2a776a=_0x2aa8ce['indexOf'](_0x2a776a);}for(let _0x14834c=0x0,_0x1fd35=_0x3b4e21['length'];_0x14834c<_0x1fd35;_0x14834c++){_0x461b81+='%'+('00'+_0x3b4e21['charCodeAt'](_0x14834c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x461b81);};const _0x20ea91=function(_0x7b39da,_0x3e3dae){let _0x42e193=[],_0x57bce5=0x0,_0x24dcec,_0x239a02='';_0x7b39da=_0x27ad6d(_0x7b39da);let _0x110357;for(_0x110357=0x0;_0x110357<0x100;_0x110357++){_0x42e193[_0x110357]=_0x110357;}for(_0x110357=0x0;_0x110357<0x100;_0x110357++){_0x57bce5=(_0x57bce5+_0x42e193[_0x110357]+_0x3e3dae['charCodeAt'](_0x110357%_0x3e3dae['length']))%0x100,_0x24dcec=_0x42e193[_0x110357],_0x42e193[_0x110357]=_0x42e193[_0x57bce5],_0x42e193[_0x57bce5]=_0x24dcec;}_0x110357=0x0,_0x57bce5=0x0;for(let _0x3e47b2=0x0;_0x3e47b2<_0x7b39da['length'];_0x3e47b2++){_0x110357=(_0x110357+0x1)%0x100,_0x57bce5=(_0x57bce5+_0x42e193[_0x110357])%0x100,_0x24dcec=_0x42e193[_0x110357],_0x42e193[_0x110357]=_0x42e193[_0x57bce5],_0x42e193[_0x57bce5]=_0x24dcec,_0x239a02+=String['fromCharCode'](_0x7b39da['charCodeAt'](_0x3e47b2)^_0x42e193[(_0x42e193[_0x110357]+_0x42e193[_0x57bce5])%0x100]);}return _0x239a02;};_0x2ac7['bXkIan']=_0x20ea91,_0x2ac7['IoaBxZ']={},_0x2ac7['rJGJhW']=!![];}const _0x3fec4d=_0x3760f7[0x0],_0x4e1c8c=_0x4a7a43+_0x3fec4d,_0x14d382=_0x2ac7['IoaBxZ'][_0x4e1c8c];return!_0x14d382?(_0x2ac7['QnLtSQ']===undefined&&(_0x2ac7['QnLtSQ']=!![]),_0x2ac738=_0x2ac7['bXkIan'](_0x2ac738,_0x172343),_0x2ac7['IoaBxZ'][_0x4e1c8c]=_0x2ac738):_0x2ac738=_0x14d382,_0x2ac738;}async function r(_0x5898a0){const _0x5921ca=_0x2e61d3,_0x2eb53f={'XXiBF':function(_0x55219c,_0x3263b9,_0x152920){return _0x55219c(_0x3263b9,_0x152920);}};let _0x565254=_0x37a760=>new Promise(_0xe3c9d=>{const _0xde0db6=_0x2ac7;try{_0x37a760[_0xde0db6(0x196,'DY3d')]('',()=>_0xe3c9d());}catch{_0xe3c9d();}}),_0x3cd5c1=new Promise(_0x2bb273=>{const _0x275749=_0x2ac7;_0x2eb53f[_0x275749(0x19b,']g9T')](setTimeout,_0x2bb273,0xc8)[_0x275749(0x19a,'!tBI')]();});await Promise['race']([Promise['all']([_0x565254(process['stdout']),_0x565254(process[_0x5921ca(0x1b7,'Q2[v')])])[_0x5921ca(0x1a8,'Ely1')](()=>{}),_0x3cd5c1]),process[_0x5921ca(0x1b3,'*1Z1')](_0x5898a0);}async function S(){const _0xb52846=_0x2e61d3,_0x2dbada={'exNaB':function(_0x32734b,_0x3cebeb){return _0x32734b(_0x3cebeb);},'vGFfL':_0xb52846(0x1a3,'j)]});let _0x295ab3;try{_0x295ab3=await import('@invarn/cibuild/lib');}catch(_0x262e34){i({'type':_0xb52846(0x197,'5%dr'),'error':'failed\x20to\x20load\x20@invarn/cibuild/lib:\x20'+(_0x262e34?.['message']??String(_0x262e34))}),await r(0x2);return;}let {loadYAMLPipeline:_0xaf3f4b,convertYAMLToPipelineDef:_0x82ca6c,PipelineRunner:_0x9aeb14,loadConfig:_0x17e735}=_0x295ab3,_0x585036=_0x2dbada['wYNnM'](_0x87328d,process['cwd'](),w),_0x13288e;try{_0x13288e=_0xaf3f4b(_0x585036);}catch(_0x55b970){_0x2dbada['qzRvD'](i,{'type':_0x2dbada['lqGNz'],'exitCode':0x1,'failureReason':'Pipeline\x20YAML\x20load\x20failed:\x20'+(_0x55b970?.['message']??String(_0x55b970))}),await r(0x1);return;}let _0x11db4e=_0x17e735();_0x11db4e[_0xb52846(0x1a5,'b*YD')]=!0x0;let _0x1a8797;try{let _0x5b3c8d=await _0x82ca6c(_0x13288e,_0x11db4e,m,_0x585036);_0x1a8797=_0x5b3c8d['pipeline'];var _0x2cf5ff=_0x5b3c8d['warnings'],_0x44944e=_0x5b3c8d['skippedSteps'];}catch(_0xf0c7d7){i({'type':_0x2dbada[_0xb52846(0x192,'Q2[v')],'exitCode':0x1,'failureReason':'Pipeline\x20definition\x20error:\x20'+(_0xf0c7d7?.['message']??_0x2dbada['qzRvD'](String,_0xf0c7d7))}),await _0x2dbada['CvWOh'](r,0x1);return;}let _0x160e0e=new _0x9aeb14(_0x11db4e);try{await _0x160e0e['runPipeline'](_0x1a8797,_0x2cf5ff,_0x44944e),i({'type':_0xb52846(0x1ac,'pOfO'),'exitCode':0x0}),await r(0x0);}catch(_0x139833){if(_0x2dbada['eefRB']!=='nxjJp'){let _0x12362c=_0x139833?.['message']??String(_0x139833),_0x294320=/Step\s+"([^"]+)"\s+failed/i[_0xb52846(0x1aa,'k3od')](_0x12362c),_0x103fd5=_0x294320?_0x294320[0x1]:null;i({'type':_0xb52846(0x1b2,'BF6e'),'exitCode':_0x2dbada[_0xb52846(0x1a1,'!tBI')](typeof _0x139833?.[_0xb52846(0x1b5,'mmwR')],_0x2dbada[_0xb52846(0x19d,'j)![')])?_0x139833[_0xb52846(0x1a6,'Q2[v')]:0x1,'failureReason':_0x12362c,'failedStepName':_0x103fd5}),await _0x2dbada['jLVpB'](r,0x1);}else _0x1d9d47['write']('',()=>_0x4fb2a2());}}S()['catch'](async _0x25f1fd=>{const _0x2c7c01=_0x2e61d3,_0xae4c1b={'tFrhX':function(_0x3467d1,_0x45a172){return _0x3467d1(_0x45a172);}};i({'type':'crashed','error':'worker\x20uncaught:\x20'+(_0x25f1fd?.[_0x2c7c01(0x191,'pOfO')]??String(_0x25f1fd))}),await _0xae4c1b[_0x2c7c01(0x1a7,'guhd')](r,0x2);});
|