@ranger-testing/ranger-cli 2.5.4-alpha.feb9faf-20 → 3.0.1-alpha.aab0a1c-26
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/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/deleteProfile.js +1 -0
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/mcpBootstrap.js +1 -1
- package/build/commands/migrateProfile.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/cloudProfile.js +1 -1
- package/build/commands/utils/cloudProfileSession.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/gitTracked.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/legacyWarning.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/novaActCli.js +1 -0
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/projectsConfig.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/resolveProfileContext.js +1 -1
- package/build/commands/utils/resolveProfileUrl.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/commands/verifyFeatureNovaCli.js +1 -0
- package/build/skills/ranger/SKILL.md +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x35de(_0x4a064a,_0x3e8b3a){_0x4a064a=_0x4a064a-0x1b9;const _0x1eeca9=_0x1eec();let _0x35def9=_0x1eeca9[_0x4a064a];return _0x35def9;}(function(_0x145a8e,_0x6bce0c){const _0x102b76=_0x35de,_0x4f6fc5=_0x145a8e();while(!![]){try{const _0xb59072=-parseInt(_0x102b76(0x1bb))/0x1*(-parseInt(_0x102b76(0x1d0))/0x2)+parseInt(_0x102b76(0x1ba))/0x3+-parseInt(_0x102b76(0x1c6))/0x4*(-parseInt(_0x102b76(0x1bc))/0x5)+-parseInt(_0x102b76(0x1c2))/0x6+-parseInt(_0x102b76(0x1cc))/0x7*(-parseInt(_0x102b76(0x1c7))/0x8)+parseInt(_0x102b76(0x1cb))/0x9*(-parseInt(_0x102b76(0x1b9))/0xa)+-parseInt(_0x102b76(0x1ca))/0xb;if(_0xb59072===_0x6bce0c)break;else _0x4f6fc5['push'](_0x4f6fc5['shift']());}catch(_0x3e3fc1){_0x4f6fc5['push'](_0x4f6fc5['shift']());}}}(_0x1eec,0xba81d));import{getApiBaseUrl}from'./environment.js';import{getRefreshToken,storeToken,storeRefreshToken}from'./keychain.js';function _0x1eec(){const _0x4fa9b4=['47852WBevik','XmEwp','application/json','stringify','4ANOOid','40lscjez','1352202YQlxVA','28132CSEyes','1550205MvTQOo','POST','szQMQ','token','persistRefreshToken','/cli-auth/partner-refresh','5467140TSHodb','FJjFO','json','ZtVqc','12Igzlby','1528rVOXVo','refreshToken','timeout','778602heoejd','2243007GDAryB'];_0x1eec=function(){return _0x4fa9b4;};return _0x1eec();}export async function refreshCliToken(){const _0x42eea3=_0x35de,_0x13524b={'szQMQ':function(_0x350e50){return _0x350e50();},'uuqSf':function(_0x130502,_0x2ff914){return _0x130502(_0x2ff914);}},_0x1ec983=await _0x13524b[_0x42eea3(0x1be)](getRefreshToken);if(!_0x1ec983)return null;const _0x5090b7=await tryPartnerRefresh(_0x1ec983);if(_0x5090b7)return _0x5090b7;return _0x13524b['uuqSf'](tryWorkosRefresh,_0x1ec983);}export async function refreshPartnerCliToken(_0x572cde,_0x4337a7={}){const _0x237643=_0x35de,_0x8b7e52={'YyFya':function(_0x4e9b72,_0x1a1f9d){return _0x4e9b72(_0x1a1f9d);}},_0x396283=await tryPartnerRefresh(_0x572cde);return _0x396283&&_0x4337a7[_0x237643(0x1c0)]&&await _0x8b7e52['YyFya'](storeRefreshToken,_0x572cde),_0x396283;}async function tryPartnerRefresh(_0x37a78c){const _0x562bf0=_0x35de,_0x13c7e9={'XmEwp':function(_0x1e18be){return _0x1e18be();},'FJjFO':function(_0x4f5da9,_0x3acdc2,_0x289c50){return _0x4f5da9(_0x3acdc2,_0x289c50);},'qhizG':function(_0x2d2210,_0x3edf33){return _0x2d2210(_0x3edf33);}},_0x423877=_0x13c7e9[_0x562bf0(0x1cd)](getApiBaseUrl);try{const _0x1be6a1=await _0x13c7e9[_0x562bf0(0x1c3)](fetch,_0x423877+_0x562bf0(0x1c1),{'method':_0x562bf0(0x1bd),'headers':{'Content-Type':'application/json'},'body':JSON[_0x562bf0(0x1cf)]({'refreshToken':_0x37a78c}),'signal':AbortSignal[_0x562bf0(0x1c9)](0x2710)});if(!_0x1be6a1['ok'])return null;const _0x1301da=await _0x1be6a1[_0x562bf0(0x1c4)]();return await _0x13c7e9['qhizG'](storeToken,_0x1301da['token']),_0x1301da[_0x562bf0(0x1bf)];}catch{return null;}}async function tryWorkosRefresh(_0x3aab05){const _0x6bd15e=_0x35de,_0x190cbc={'ZtVqc':function(_0x567afc,_0x31262d){return _0x567afc(_0x31262d);},'wqOxQ':function(_0x20b088,_0x12a51c){return _0x20b088(_0x12a51c);}},_0x35a868=getApiBaseUrl();try{const _0x374c81=await fetch(_0x35a868+'/cli-auth/refresh',{'method':'POST','headers':{'Content-Type':_0x6bd15e(0x1ce)},'body':JSON['stringify']({'refreshToken':_0x3aab05}),'signal':AbortSignal['timeout'](0x2710)});if(!_0x374c81['ok'])return null;const _0xc6bdc=await _0x374c81[_0x6bd15e(0x1c4)]();return await _0x190cbc[_0x6bd15e(0x1c5)](storeToken,_0xc6bdc['token']),await _0x190cbc['wqOxQ'](storeRefreshToken,_0xc6bdc[_0x6bd15e(0x1c8)]),_0xc6bdc[_0x6bd15e(0x1bf)];}catch{return null;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5017cf,_0x14ee50){const _0x34c2aa=_0x1236,_0xb6c16e=_0x5017cf();while(!![]){try{const _0x1b9f05=parseInt(_0x34c2aa(0xed))/0x1*(-parseInt(_0x34c2aa(0x10e))/0x2)+parseInt(_0x34c2aa(0x119))/0x3*(parseInt(_0x34c2aa(0x10a))/0x4)+parseInt(_0x34c2aa(0x100))/0x5*(-parseInt(_0x34c2aa(0x110))/0x6)+parseInt(_0x34c2aa(0xec))/0x7*(parseInt(_0x34c2aa(0xfb))/0x8)+parseInt(_0x34c2aa(0x10f))/0x9+-parseInt(_0x34c2aa(0x11a))/0xa+-parseInt(_0x34c2aa(0xeb))/0xb*(parseInt(_0x34c2aa(0x115))/0xc);if(_0x1b9f05===_0x14ee50)break;else _0xb6c16e['push'](_0xb6c16e['shift']());}catch(_0x3709e6){_0xb6c16e['push'](_0xb6c16e['shift']());}}}(_0x39f5,0xf2bbd));function _0x39f5(){const _0x5e1134=['4kfYusI','apiName','indexOf','aaOvu','26eyjRkM','3004920uFwYVH','1034772qWcckr','method','getTime','goto','params','60TcOPba','length','parse','page@0','5815308zlkeAk','12654630KnsZTo','navigated','afterSnapshot','after','stepId','pageId','context-options','276991tcknfC','505183QOIuro','43698OHxtrF','url','point','endsWith','isDirectory','split','nyVHn','monotonicTime','string','find','snapshotName','push','beforeSnapshot','capturedAt','152QfcVtS','abs','input','filter','inputSnapshot','20oAPcBU','startTime','callId','frame-snapshot','type','iQAfj','set','event','VBikw','trim'];_0x39f5=function(){return _0x5e1134;};return _0x39f5();}import{readdir,readFile}from'fs/promises';function _0x1236(_0x4a8031,_0x4450db){_0x4a8031=_0x4a8031-0xea;const _0x39f5a4=_0x39f5();let _0x1236ad=_0x39f5a4[_0x4a8031];return _0x1236ad;}import{join}from'path';export async function mapStepsToTraceSnapshots(_0x3e309f,_0x2ea9c7){const _0x9fd018=_0x1236,_0x28b598={'aaOvu':function(_0x118f2f,_0x56a5d2,_0x2422c1){return _0x118f2f(_0x56a5d2,_0x2422c1);},'Ooteh':function(_0x4324a0,_0x1d14e1){return _0x4324a0(_0x1d14e1);},'nyVHn':function(_0x2526ff,_0x407605){return _0x2526ff===_0x407605;},'FuoUn':function(_0x306a7e,_0x567cde){return _0x306a7e===_0x567cde;},'upVXo':function(_0x1c33c4,_0x5afe40){return _0x1c33c4-_0x5afe40;},'MzBRZ':_0x9fd018(0x11d),'ySWdT':function(_0x357702,_0x215931){return _0x357702===_0x215931;},'VBikw':function(_0x487540,_0x1181fd){return _0x487540===_0x1181fd;},'NQpxg':_0x9fd018(0x107),'wdvgX':_0x9fd018(0x11b),'IfETl':_0x9fd018(0xf5),'iQAfj':function(_0x1614f4,_0x1ab219){return _0x1614f4>=_0x1ab219;},'XGXpK':_0x9fd018(0x113),'IEJUV':function(_0x309c2e,_0x3eddb1){return _0x309c2e-_0x3eddb1;}},_0x3b1d00=new Map();if(_0x28b598[_0x9fd018(0xf3)](_0x2ea9c7[_0x9fd018(0x116)],0x0))return _0x3b1d00;const _0x536b02=[],_0x45a7db=async _0x1b4227=>{const _0x200ea6=_0x9fd018,_0x22c877=await _0x28b598[_0x200ea6(0x10d)](readdir,_0x1b4227,{'withFileTypes':!![]});for(const _0x1b3e31 of _0x22c877){const _0x42745f=join(_0x1b4227,_0x1b3e31['name']);if(_0x1b3e31[_0x200ea6(0xf1)]())await _0x28b598['Ooteh'](_0x45a7db,_0x42745f);else _0x1b3e31['name'][_0x200ea6(0xf0)]('.trace')&&_0x536b02[_0x200ea6(0xf8)](_0x42745f);}};await _0x45a7db(_0x3e309f);if(_0x28b598[_0x9fd018(0xf3)](_0x536b02[_0x9fd018(0x116)],0x0))return _0x3b1d00;const _0x27e3d3=[];for(const _0x29d655 of _0x536b02){const _0x325cd0=await readFile(_0x29d655,'utf-8'),_0x60934c=_0x325cd0[_0x9fd018(0xf2)]('\x0a')[_0x9fd018(0xfe)](_0x34e1fe=>_0x34e1fe[_0x9fd018(0x109)]());for(const _0x5c1bf8 of _0x60934c){try{_0x27e3d3['push'](JSON[_0x9fd018(0x117)](_0x5c1bf8));}catch{}}}if(_0x28b598['FuoUn'](_0x27e3d3[_0x9fd018(0x116)],0x0))return _0x3b1d00;const _0x38e663=_0x27e3d3[_0x9fd018(0xf6)](_0x2fb493=>_0x2fb493[_0x9fd018(0x104)]===_0x9fd018(0xea));if(!_0x38e663)return _0x3b1d00;const _0x4e6445=_0x28b598['upVXo'](_0x38e663['wallTime'],_0x38e663[_0x9fd018(0xf4)]),_0x3d6c63=new Map();for(const _0x2c1fa8 of _0x27e3d3){switch(_0x2c1fa8['type']){case'before':{const _0x47ad9b=_0x2c1fa8;_0x3d6c63['set'](_0x47ad9b[_0x9fd018(0x102)],{'callId':_0x47ad9b[_0x9fd018(0x102)],'startTime':_0x47ad9b[_0x9fd018(0x101)],'endTime':0x0,'method':_0x47ad9b['method'],'apiName':_0x47ad9b[_0x9fd018(0x10b)],'params':_0x47ad9b[_0x9fd018(0x114)],'pageId':_0x47ad9b[_0x9fd018(0x11f)],'beforeSnapshot':_0x47ad9b['beforeSnapshot']});break;}case _0x9fd018(0xfd):{const _0x10ba95=_0x2c1fa8,_0xbb2731=_0x3d6c63['get'](_0x10ba95['callId']);if(_0xbb2731){if(_0x10ba95['inputSnapshot'])_0xbb2731['inputSnapshot']=_0x10ba95['inputSnapshot'];if(_0x10ba95[_0x9fd018(0xef)])_0xbb2731['point']=_0x10ba95[_0x9fd018(0xef)];}break;}case _0x28b598['MzBRZ']:{const _0x59461d=_0x2c1fa8,_0x35094f=_0x3d6c63['get'](_0x59461d[_0x9fd018(0x102)]);if(_0x35094f){_0x35094f['endTime']=_0x59461d['endTime'];if(_0x59461d[_0x9fd018(0x11c)])_0x35094f['afterSnapshot']=_0x59461d[_0x9fd018(0x11c)];}break;}}}const _0x439cca=Array['from'](_0x3d6c63['values']())[_0x9fd018(0xfe)](_0x551dcb=>_0x551dcb['endTime']>0x0&&(_0x551dcb['afterSnapshot']||_0x551dcb[_0x9fd018(0xf9)]))['sort']((_0x4dc7cb,_0xcc53ca)=>_0x4dc7cb[_0x9fd018(0x101)]-_0xcc53ca['startTime']);if(_0x28b598['ySWdT'](_0x439cca[_0x9fd018(0x116)],0x0))return _0x3b1d00;const _0x7284bb=new Map();for(const _0x2b310f of _0x27e3d3){if(_0x28b598['nyVHn'](_0x2b310f['type'],_0x9fd018(0x103))){const _0x3397f4=_0x2b310f['snapshot'];_0x3397f4?.['snapshotName']&&_0x3397f4?.['frameUrl']&&_0x7284bb[_0x9fd018(0x106)](_0x3397f4[_0x9fd018(0xf7)],_0x3397f4['frameUrl']);}}const _0x56a920=new Map();for(const _0x54fe21 of _0x439cca){const _0x9a4340=_0x54fe21[_0x9fd018(0x114)]?.['url'];_0x28b598[_0x9fd018(0x108)](_0x54fe21['method'],'goto')&&typeof _0x9a4340===_0x9fd018(0xf5)&&_0x54fe21[_0x9fd018(0x11f)]&&_0x56a920[_0x9fd018(0x106)](_0x54fe21[_0x9fd018(0x11f)],_0x9a4340);}for(const _0x4a865f of _0x27e3d3){const _0x2fa0cf=_0x4a865f,_0x2aaa71=_0x2fa0cf[_0x9fd018(0x114)],_0x23d03f=_0x2aaa71?.[_0x9fd018(0xee)];_0x28b598['FuoUn'](_0x2fa0cf['type'],_0x28b598['NQpxg'])&&_0x2fa0cf[_0x9fd018(0x111)]===_0x28b598['wdvgX']&&_0x28b598[_0x9fd018(0xf3)](typeof _0x23d03f,_0x9fd018(0xf5))&&typeof _0x2fa0cf[_0x9fd018(0x11f)]===_0x28b598['IfETl']&&_0x56a920['set'](_0x2fa0cf[_0x9fd018(0x11f)],_0x23d03f);}for(const _0x44430c of _0x2ea9c7){const _0x473360=new Date(_0x44430c[_0x9fd018(0xfa)])[_0x9fd018(0x112)](),_0x18948c=_0x473360-_0x4e6445;let _0x2fd9db=null,_0x4a4aef=Infinity;for(const _0x5d12b1 of _0x439cca){const _0x4ee9b6=Math[_0x9fd018(0xfc)](_0x5d12b1['endTime']-_0x18948c);_0x4ee9b6<_0x4a4aef&&(_0x4a4aef=_0x4ee9b6,_0x2fd9db=_0x5d12b1);}if(!_0x2fd9db)continue;const _0x41275a=_0x2fd9db['afterSnapshot']||_0x2fd9db[_0x9fd018(0xf9)];if(!_0x41275a)continue;const _0x1b0b17=_0x2fd9db['pageId']||_0x9fd018(0x118);let _0x496636=_0x7284bb['get'](_0x41275a)||_0x56a920['get'](_0x1b0b17)||'';if(!_0x496636)for(let _0x1f07b8=_0x439cca[_0x9fd018(0x10c)](_0x2fd9db);_0x28b598[_0x9fd018(0x105)](_0x1f07b8,0x0);_0x1f07b8--){const _0x580e7c=_0x439cca[_0x1f07b8][_0x9fd018(0x114)]?.[_0x9fd018(0xee)];if(_0x439cca[_0x1f07b8][_0x9fd018(0x111)]===_0x28b598['XGXpK']&&typeof _0x580e7c===_0x28b598['IfETl']){_0x496636=_0x580e7c;break;}}let _0x284e50,_0x3645c0;const _0x513b70=_0x439cca[_0x9fd018(0x10c)](_0x2fd9db);if(_0x513b70>=0x0&&_0x513b70<_0x28b598['IEJUV'](_0x439cca['length'],0x1)){const _0x382409=_0x439cca[_0x513b70+0x1];_0x382409['point']&&_0x382409['inputSnapshot']&&(_0x284e50=_0x382409[_0x9fd018(0xef)],_0x3645c0=_0x382409[_0x9fd018(0xff)]);}_0x3b1d00['set'](_0x44430c[_0x9fd018(0x11e)],{'snapshotName':_0x41275a,'inputSnapshotName':_0x3645c0,'pageId':_0x1b0b17,'pageUrl':_0x496636,'callId':_0x2fd9db[_0x9fd018(0x102)],'point':_0x284e50});}return _0x3b1d00;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x42f2d6,_0x281cd6){const _0x1d8c05=_0x475c,_0x530560=_0x42f2d6();while(!![]){try{const _0x429de2=-parseInt(_0x1d8c05(0x1cd))/0x1*(-parseInt(_0x1d8c05(0x1d9))/0x2)+-parseInt(_0x1d8c05(0x1d4))/0x3*(parseInt(_0x1d8c05(0x1c9))/0x4)+parseInt(_0x1d8c05(0x1ce))/0x5*(parseInt(_0x1d8c05(0x1d8))/0x6)+-parseInt(_0x1d8c05(0x1d1))/0x7*(parseInt(_0x1d8c05(0x1d2))/0x8)+-parseInt(_0x1d8c05(0x1d5))/0x9*(parseInt(_0x1d8c05(0x1cc))/0xa)+parseInt(_0x1d8c05(0x1d3))/0xb*(-parseInt(_0x1d8c05(0x1d6))/0xc)+parseInt(_0x1d8c05(0x1d0))/0xd;if(_0x429de2===_0x281cd6)break;else _0x530560['push'](_0x530560['shift']());}catch(_0xbd65a7){_0x530560['push'](_0x530560['shift']());}}}(_0x2feb,0x7f452));import{getApiBaseUrl}from'./environment.js';function _0x2feb(){const _0x17b421=['json','/api/v1/mcp/me','7061590gfbCFw','601uCyuNY','1277205uOjDUY','message','11286730jvBlvx','21vDOYND','90872WTucxf','248160usBMxh','123OSeBJt','9lrGAWA','36gYZeSE','status','12GBCyrK','706GvuEyA','25564oUxxne'];_0x2feb=function(){return _0x17b421;};return _0x2feb();}function _0x475c(_0x373b30,_0x352b5c){_0x373b30=_0x373b30-0x1c9;const _0x2feb87=_0x2feb();let _0x475c53=_0x2feb87[_0x373b30];return _0x475c53;}export async function getCurrentUser(_0x3879fb){const _0xa7f20f=_0x475c,_0x23a96b=getApiBaseUrl();try{const _0x262141=await fetch(_0x23a96b+_0xa7f20f(0x1cb),{'method':'GET','headers':{'Authorization':'Bearer\x20'+_0x3879fb}});if(!_0x262141['ok'])return{'success':![],'error':_0x262141[_0xa7f20f(0x1d7)]+'\x20'+_0x262141['statusText'],'status':_0x262141['status']};const _0x20c4b0=await _0x262141[_0xa7f20f(0x1ca)]();return{'success':!![],'user':_0x20c4b0};}catch(_0x174fd3){return{'success':![],'error':_0x174fd3 instanceof Error?_0x174fd3[_0xa7f20f(0x1cf)]:String(_0x174fd3)};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x816b42=_0x3f11;(function(_0x5b6309,_0x3e3a22){const _0x53c326=_0x3f11,_0x354267=_0x5b6309();while(!![]){try{const _0xb2e4a3=parseInt(_0x53c326(0x188))/0x1*(-parseInt(_0x53c326(0x183))/0x2)+parseInt(_0x53c326(0x184))/0x3*(-parseInt(_0x53c326(0x18a))/0x4)+-parseInt(_0x53c326(0x17c))/0x5*(parseInt(_0x53c326(0x180))/0x6)+parseInt(_0x53c326(0x17b))/0x7+parseInt(_0x53c326(0x179))/0x8+-parseInt(_0x53c326(0x17f))/0x9*(-parseInt(_0x53c326(0x186))/0xa)+parseInt(_0x53c326(0x17d))/0xb;if(_0xb2e4a3===_0x3e3a22)break;else _0x354267['push'](_0x354267['shift']());}catch(_0x4a71b6){_0x354267['push'](_0x354267['shift']());}}}(_0x4141,0x37de7));import{readFileSync}from'fs';import{existsSync}from'fs';import{execSync}from'child_process';import{fileURLToPath}from'url';function _0x3f11(_0x645f21,_0x3928fd){_0x645f21=_0x645f21-0x176;const _0x414166=_0x4141();let _0x3f117b=_0x414166[_0x645f21];return _0x3f117b;}import{dirname,join}from'path';function _0x4141(){const _0x48f35d=['2926748dcehXH','unknown','1092708fzyBaU','28746gBVWCR','split','rveCc','54vkWvKz','93498uTmUXA','ouvWr','20ltxuph','package.json','573AQGzOb','\x20version','48ihQZiD','@ranger-testing/ranger-cli','utf-8','parse','version','pipe','mGMeK','1068776sBjwfg','ztayw','1406930pRJSzC','235tLDyOT'];_0x4141=function(){return _0x48f35d;};return _0x4141();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const PACKAGE_NAME=_0x816b42(0x18b);export function getCurrentVersion(){const _0x705a1b=_0x816b42,_0x1c0dc7={'mGMeK':function(_0x237529,_0x5c2e16,_0x4520f4,_0x23452f,_0x63d66b){return _0x237529(_0x5c2e16,_0x4520f4,_0x23452f,_0x63d66b);},'zOyFS':function(_0x3d276f,_0x5a6b9a,_0xe757da,_0x47b9a8,_0x30eb1a,_0xf5414d){return _0x3d276f(_0x5a6b9a,_0xe757da,_0x47b9a8,_0x30eb1a,_0xf5414d);},'pGRuk':function(_0x336e6c,_0x40b40c){return _0x336e6c(_0x40b40c);},'dsJEn':_0x705a1b(0x18c),'ouvWr':_0x705a1b(0x17e)},_0x57e795=[_0x1c0dc7[_0x705a1b(0x178)](join,__dirname,'..','..',_0x705a1b(0x187)),_0x1c0dc7['zOyFS'](join,__dirname,'..','..','..','package.json')];for(const _0x55fa65 of _0x57e795){if(_0x1c0dc7['pGRuk'](existsSync,_0x55fa65))try{const _0xac2ff6=JSON[_0x705a1b(0x18d)](readFileSync(_0x55fa65,_0x1c0dc7['dsJEn']));return _0xac2ff6[_0x705a1b(0x176)]||_0x1c0dc7['ouvWr'];}catch{continue;}}return _0x1c0dc7[_0x705a1b(0x185)];}export function getLatestVersion(){const _0x3e8fc7=_0x816b42,_0x5735a2={'CgzTc':function(_0x5e87e1,_0x255407,_0x1afa44){return _0x5e87e1(_0x255407,_0x1afa44);},'VGceD':_0x3e8fc7(0x18c),'ztayw':'pipe','DxKtb':function(_0x1720e6,_0x33023d){return _0x1720e6(_0x33023d);}};try{const _0xf9c14c=_0x5735a2['CgzTc'](execSync,'npm\x20view\x20'+PACKAGE_NAME+_0x3e8fc7(0x189),{'encoding':_0x5735a2['VGceD'],'timeout':0x2710,'stdio':[_0x5735a2[_0x3e8fc7(0x17a)],_0x3e8fc7(0x177),_0x5735a2[_0x3e8fc7(0x17a)]]});return{'version':_0xf9c14c['trim']()};}catch(_0x5763ff){const _0x8084c3=_0x5763ff instanceof Error?_0x5763ff['message']:_0x5735a2['DxKtb'](String,_0x5763ff);return{'error':_0x8084c3};}}export function compareVersions(_0x5f39d3,_0x725757){const _0x2ace8f=_0x816b42,_0x341651={'rveCc':function(_0x31c75e,_0x3ab2c6){return _0x31c75e>_0x3ab2c6;}},_0x86e40c=_0x5f39d3['split']('.')['map'](Number),_0x35c444=_0x725757[_0x2ace8f(0x181)]('.')['map'](Number);for(let _0x26dd9d=0x0;_0x26dd9d<0x3;_0x26dd9d++){const _0x3b0104=_0x86e40c[_0x26dd9d]||0x0,_0x965e15=_0x35c444[_0x26dd9d]||0x0;if(_0x341651[_0x2ace8f(0x182)](_0x965e15,_0x3b0104))return 0x1;if(_0x965e15<_0x3b0104)return-0x1;}return 0x0;}
|