@ranger-testing/ranger-cli 2.5.4-alpha.a70fc60-4 → 2.5.4-alpha.b28d3b1-14
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/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 -0
- 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/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/skills/ranger/SKILL.md +25 -5
- package/build/skills/ranger/create.md +19 -0
- package/build/skills/ranger/verify.md +34 -7
- package/package.json +3 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1faaa9,_0x22c50e){const _0x3b8f97=_0x5711,_0x7009d6=_0x1faaa9();while(!![]){try{const _0xd81a10=-parseInt(_0x3b8f97(0xaf))/0x1+-parseInt(_0x3b8f97(0xb1))/0x2*(-parseInt(_0x3b8f97(0xa9))/0x3)+-parseInt(_0x3b8f97(0xae))/0x4*(-parseInt(_0x3b8f97(0xab))/0x5)+parseInt(_0x3b8f97(0xa5))/0x6+-parseInt(_0x3b8f97(0xad))/0x7+-parseInt(_0x3b8f97(0xb2))/0x8+parseInt(_0x3b8f97(0xb6))/0x9;if(_0xd81a10===_0x22c50e)break;else _0x7009d6['push'](_0x7009d6['shift']());}catch(_0x5d6b99){_0x7009d6['push'](_0x7009d6['shift']());}}}(_0x4174,0x21b98));import{getApiBaseUrl}from'./environment.js';function _0x5711(_0x15f705,_0x7cde91){_0x15f705=_0x15f705-0xa4;const _0x41740d=_0x4174();let _0x5711d3=_0x41740d[_0x15f705];return _0x5711d3;}import{getRefreshToken,storeToken,storeRefreshToken}from'./keychain.js';export async function refreshCliToken(){const _0x45c271=_0x5711,_0x26e304={'MRcWK':function(_0x1064f6){return _0x1064f6();},'YrTil':function(_0x3b9c21,_0x3f8d7e){return _0x3b9c21(_0x3f8d7e);},'zVXnf':function(_0x3492e3,_0x5dc526){return _0x3492e3(_0x5dc526);}},_0x1cd376=await _0x26e304[_0x45c271(0xac)](getRefreshToken);if(!_0x1cd376)return null;const _0x54f8e1=await _0x26e304['YrTil'](tryPartnerRefresh,_0x1cd376);if(_0x54f8e1)return _0x54f8e1;return _0x26e304[_0x45c271(0xb5)](tryWorkosRefresh,_0x1cd376);}export async function refreshPartnerCliToken(_0x3a9d03,_0x35ff30={}){const _0x2e176d={'CfNRw':function(_0x590b6a,_0x136609){return _0x590b6a(_0x136609);}},_0x1017e0=await _0x2e176d['CfNRw'](tryPartnerRefresh,_0x3a9d03);return _0x1017e0&&_0x35ff30['persistRefreshToken']&&await storeRefreshToken(_0x3a9d03),_0x1017e0;}async function tryPartnerRefresh(_0x2a50a0){const _0x48309c=_0x5711,_0x3158a2={'HZEtQ':function(_0x2ebadb){return _0x2ebadb();},'HxodL':function(_0x3322fc,_0x51a660,_0xc01074){return _0x3322fc(_0x51a660,_0xc01074);},'fNILE':_0x48309c(0xb3)},_0x4afe5a=_0x3158a2['HZEtQ'](getApiBaseUrl);try{const _0x15ffce=await _0x3158a2['HxodL'](fetch,_0x4afe5a+_0x48309c(0xa7),{'method':_0x48309c(0xa4),'headers':{'Content-Type':_0x3158a2[_0x48309c(0xb0)]},'body':JSON['stringify']({'refreshToken':_0x2a50a0}),'signal':AbortSignal['timeout'](0x2710)});if(!_0x15ffce['ok'])return null;const _0x31e3c4=await _0x15ffce[_0x48309c(0xb4)]();return await storeToken(_0x31e3c4['token']),_0x31e3c4['token'];}catch{return null;}}async function tryWorkosRefresh(_0x472352){const _0x476747=_0x5711,_0x1f4209={'AIkud':function(_0x313596){return _0x313596();},'dezlQ':function(_0x410fad,_0x28bb39,_0x2f6b27){return _0x410fad(_0x28bb39,_0x2f6b27);},'TAHYV':'POST','fRmzC':'application/json','PLLtM':function(_0xcaad1e,_0x1f37f1){return _0xcaad1e(_0x1f37f1);}},_0x5ed486=_0x1f4209['AIkud'](getApiBaseUrl);try{const _0x56aecc=await _0x1f4209[_0x476747(0xaa)](fetch,_0x5ed486+'/cli-auth/refresh',{'method':_0x1f4209['TAHYV'],'headers':{'Content-Type':_0x1f4209[_0x476747(0xa8)]},'body':JSON['stringify']({'refreshToken':_0x472352}),'signal':AbortSignal[_0x476747(0xa6)](0x2710)});if(!_0x56aecc['ok'])return null;const _0x4a730a=await _0x56aecc['json']();return await _0x1f4209['PLLtM'](storeToken,_0x4a730a['token']),await storeRefreshToken(_0x4a730a['refreshToken']),_0x4a730a['token'];}catch{return null;}}function _0x4174(){const _0x5af279=['zVXnf','714708scFome','POST','625590Ebwkfb','timeout','/cli-auth/partner-refresh','fRmzC','159LQjNPI','dezlQ','215PWkXoV','MRcWK','355691ZMraKQ','23388qhJopo','121897IIESgA','fNILE','2486TqxVOi','1521048nEVSsQ','application/json','json'];_0x4174=function(){return _0x5af279;};return _0x4174();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x378d(){const _0x247112=['snapshotName','type','frameUrl','opahY','826264HqqlVg','context-options','952310RwHplA','CUGPB','trim','url','length','11221344idkQfP','string','point','beforeSnapshot','tBSge','get','3998013ELJeSz','SzRKd','endTime','42LXiEFs','afterSnapshot','utf-8','1347850cVYqhe','pageId','split','2951154YIXokS','monotonicTime','set','inputSnapshot','xRBtw','ahSJN','before','filter','event','4zGlarF','467128jLerHE','endsWith','startTime','params','apiName','values','parse','VIhjR','sort','method','name','page@0','callId'];_0x378d=function(){return _0x247112;};return _0x378d();}function _0x3c0b(_0x2db389,_0x43b7dd){_0x2db389=_0x2db389-0x96;const _0x378d7c=_0x378d();let _0x3c0b31=_0x378d7c[_0x2db389];return _0x3c0b31;}(function(_0x10ec2f,_0x210ebe){const _0x1f6933=_0x3c0b,_0x2ad5ad=_0x10ec2f();while(!![]){try{const _0xcf7cb4=parseInt(_0x1f6933(0xb5))/0x1+parseInt(_0x1f6933(0xab))/0x2+-parseInt(_0x1f6933(0xa2))/0x3+-parseInt(_0x1f6933(0xb4))/0x4*(-parseInt(_0x1f6933(0x97))/0x5)+parseInt(_0x1f6933(0xa5))/0x6*(parseInt(_0x1f6933(0xa8))/0x7)+-parseInt(_0x1f6933(0xc6))/0x8+-parseInt(_0x1f6933(0x9c))/0x9;if(_0xcf7cb4===_0x210ebe)break;else _0x2ad5ad['push'](_0x2ad5ad['shift']());}catch(_0x23dfaa){_0x2ad5ad['push'](_0x2ad5ad['shift']());}}}(_0x378d,0xc2e27));import{readdir,readFile}from'fs/promises';import{join}from'path';export async function mapStepsToTraceSnapshots(_0x1037da,_0x195be6){const _0x360e27=_0x3c0b,_0x4a59e8={'ahSJN':'.trace','jgHjP':function(_0x5bac62,_0x3df7c8){return _0x5bac62===_0x3df7c8;},'xRBtw':function(_0x2b05b1,_0x52cc60){return _0x2b05b1(_0x52cc60);},'opahY':function(_0x2c35d8,_0x35bc32){return _0x2c35d8===_0x35bc32;},'QIyPw':function(_0xdd1a06,_0x101025){return _0xdd1a06-_0x101025;},'tBSge':'input','gaioI':function(_0x4e47fb,_0x228951){return _0x4e47fb===_0x228951;},'SzRKd':_0x360e27(0x9d),'CUGPB':_0x360e27(0xb3),'hzInH':function(_0x4b6995,_0x4f70dc){return _0x4b6995-_0x4f70dc;},'oVAwl':function(_0x9545d4,_0x3b7f9b){return _0x9545d4<_0x3b7f9b;},'VIhjR':function(_0x4c79bf,_0x5654f6){return _0x4c79bf>=_0x5654f6;}},_0x2319fe=new Map();if(_0x4a59e8['jgHjP'](_0x195be6['length'],0x0))return _0x2319fe;const _0x5992a0=[],_0x347909=async _0x4265e7=>{const _0x4fd2e6=_0x360e27,_0x264d59=await readdir(_0x4265e7,{'withFileTypes':!![]});for(const _0x105502 of _0x264d59){const _0x111bc7=join(_0x4265e7,_0x105502[_0x4fd2e6(0xbf)]);if(_0x105502['isDirectory']())await _0x347909(_0x111bc7);else _0x105502['name'][_0x4fd2e6(0xb6)](_0x4a59e8[_0x4fd2e6(0xb0)])&&_0x5992a0['push'](_0x111bc7);}};await _0x4a59e8[_0x360e27(0xaf)](_0x347909,_0x1037da);if(_0x5992a0[_0x360e27(0x9b)]===0x0)return _0x2319fe;const _0x5cc85e=[];for(const _0x5d7fac of _0x5992a0){const _0x222fd8=await readFile(_0x5d7fac,_0x360e27(0xa7)),_0x2457d3=_0x222fd8[_0x360e27(0xaa)]('\x0a')[_0x360e27(0xb2)](_0x40fca6=>_0x40fca6[_0x360e27(0x99)]());for(const _0x1c9e8c of _0x2457d3){try{_0x5cc85e['push'](JSON[_0x360e27(0xbb)](_0x1c9e8c));}catch{}}}if(_0x4a59e8[_0x360e27(0xc5)](_0x5cc85e['length'],0x0))return _0x2319fe;const _0x4ac7c6=_0x5cc85e['find'](_0x233293=>_0x233293['type']===_0x360e27(0x96));if(!_0x4ac7c6)return _0x2319fe;const _0x115335=_0x4a59e8['QIyPw'](_0x4ac7c6['wallTime'],_0x4ac7c6[_0x360e27(0xac)]),_0x14dc87=new Map();for(const _0x2a6d25 of _0x5cc85e){switch(_0x2a6d25[_0x360e27(0xc3)]){case _0x360e27(0xb1):{const _0x5c9971=_0x2a6d25;_0x14dc87[_0x360e27(0xad)](_0x5c9971['callId'],{'callId':_0x5c9971[_0x360e27(0xc1)],'startTime':_0x5c9971[_0x360e27(0xb7)],'endTime':0x0,'method':_0x5c9971['method'],'apiName':_0x5c9971[_0x360e27(0xb9)],'params':_0x5c9971[_0x360e27(0xb8)],'pageId':_0x5c9971[_0x360e27(0xa9)],'beforeSnapshot':_0x5c9971[_0x360e27(0x9f)]});break;}case _0x4a59e8[_0x360e27(0xa0)]:{const _0x46559f=_0x2a6d25,_0x1d186d=_0x14dc87['get'](_0x46559f[_0x360e27(0xc1)]);if(_0x1d186d){if(_0x46559f[_0x360e27(0xae)])_0x1d186d['inputSnapshot']=_0x46559f[_0x360e27(0xae)];if(_0x46559f['point'])_0x1d186d['point']=_0x46559f[_0x360e27(0x9e)];}break;}case'after':{const _0x2c9774=_0x2a6d25,_0x1fcfd9=_0x14dc87[_0x360e27(0xa1)](_0x2c9774['callId']);if(_0x1fcfd9){_0x1fcfd9[_0x360e27(0xa4)]=_0x2c9774[_0x360e27(0xa4)];if(_0x2c9774[_0x360e27(0xa6)])_0x1fcfd9['afterSnapshot']=_0x2c9774[_0x360e27(0xa6)];}break;}}}const _0x511783=Array['from'](_0x14dc87[_0x360e27(0xba)]())['filter'](_0x4adede=>_0x4adede['endTime']>0x0&&(_0x4adede[_0x360e27(0xa6)]||_0x4adede[_0x360e27(0x9f)]))[_0x360e27(0xbd)]((_0x24fee9,_0x4755c1)=>_0x24fee9[_0x360e27(0xb7)]-_0x4755c1['startTime']);if(_0x4a59e8['gaioI'](_0x511783[_0x360e27(0x9b)],0x0))return _0x2319fe;const _0x3753af=new Map();for(const _0x1e28dc of _0x5cc85e){if(_0x4a59e8['opahY'](_0x1e28dc['type'],'frame-snapshot')){const _0x5bee18=_0x1e28dc['snapshot'];_0x5bee18?.[_0x360e27(0xc2)]&&_0x5bee18?.['frameUrl']&&_0x3753af['set'](_0x5bee18['snapshotName'],_0x5bee18[_0x360e27(0xc4)]);}}const _0x58fb32=new Map();for(const _0x49369a of _0x511783){const _0x26d7db=_0x49369a['params']?.['url'];_0x49369a['method']==='goto'&&_0x4a59e8['opahY'](typeof _0x26d7db,_0x4a59e8['SzRKd'])&&_0x49369a[_0x360e27(0xa9)]&&_0x58fb32[_0x360e27(0xad)](_0x49369a['pageId'],_0x26d7db);}for(const _0x146959 of _0x5cc85e){const _0x5337ce=_0x146959,_0x7d240f=_0x5337ce['params'],_0x949209=_0x7d240f?.[_0x360e27(0x9a)];_0x5337ce['type']===_0x4a59e8[_0x360e27(0x98)]&&_0x5337ce[_0x360e27(0xbe)]==='navigated'&&_0x4a59e8['opahY'](typeof _0x949209,_0x360e27(0x9d))&&typeof _0x5337ce['pageId']===_0x360e27(0x9d)&&_0x58fb32['set'](_0x5337ce[_0x360e27(0xa9)],_0x949209);}for(const _0x402144 of _0x195be6){const _0xf9468e=new Date(_0x402144['capturedAt'])['getTime'](),_0x186c26=_0x4a59e8['hzInH'](_0xf9468e,_0x115335);let _0x3bd30c=null,_0x2d96e8=Infinity;for(const _0x2fda92 of _0x511783){const _0x8f8915=Math['abs'](_0x2fda92[_0x360e27(0xa4)]-_0x186c26);_0x4a59e8['oVAwl'](_0x8f8915,_0x2d96e8)&&(_0x2d96e8=_0x8f8915,_0x3bd30c=_0x2fda92);}if(!_0x3bd30c)continue;const _0x1de1f3=_0x3bd30c[_0x360e27(0xa6)]||_0x3bd30c[_0x360e27(0x9f)];if(!_0x1de1f3)continue;const _0x5c3c28=_0x3bd30c['pageId']||_0x360e27(0xc0);let _0x118751=_0x3753af[_0x360e27(0xa1)](_0x1de1f3)||_0x58fb32[_0x360e27(0xa1)](_0x5c3c28)||'';if(!_0x118751)for(let _0x3f8678=_0x511783['indexOf'](_0x3bd30c);_0x3f8678>=0x0;_0x3f8678--){const _0x54c705=_0x511783[_0x3f8678][_0x360e27(0xb8)]?.['url'];if(_0x511783[_0x3f8678][_0x360e27(0xbe)]==='goto'&&_0x4a59e8[_0x360e27(0xc5)](typeof _0x54c705,_0x4a59e8[_0x360e27(0xa3)])){_0x118751=_0x54c705;break;}}let _0x163ffd,_0x4e1238;const _0x2e46de=_0x511783['indexOf'](_0x3bd30c);if(_0x4a59e8[_0x360e27(0xbc)](_0x2e46de,0x0)&&_0x2e46de<_0x511783['length']-0x1){const _0x4a109c=_0x511783[_0x2e46de+0x1];_0x4a109c[_0x360e27(0x9e)]&&_0x4a109c['inputSnapshot']&&(_0x163ffd=_0x4a109c['point'],_0x4e1238=_0x4a109c['inputSnapshot']);}_0x2319fe['set'](_0x402144['stepId'],{'snapshotName':_0x1de1f3,'inputSnapshotName':_0x4e1238,'pageId':_0x5c3c28,'pageUrl':_0x118751,'callId':_0x3bd30c[_0x360e27(0xc1)],'point':_0x163ffd});}return _0x2319fe;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3df488,_0x3e389c){const _0x120179=_0xa25c,_0x189a3a=_0x3df488();while(!![]){try{const _0x4efd74=-parseInt(_0x120179(0x1cd))/0x1+parseInt(_0x120179(0x1d0))/0x2*(parseInt(_0x120179(0x1d4))/0x3)+parseInt(_0x120179(0x1c9))/0x4+-parseInt(_0x120179(0x1d3))/0x5+-parseInt(_0x120179(0x1d2))/0x6*(-parseInt(_0x120179(0x1cc))/0x7)+parseInt(_0x120179(0x1c8))/0x8+parseInt(_0x120179(0x1cf))/0x9*(-parseInt(_0x120179(0x1c7))/0xa);if(_0x4efd74===_0x3e389c)break;else _0x189a3a['push'](_0x189a3a['shift']());}catch(_0xf2f4f2){_0x189a3a['push'](_0x189a3a['shift']());}}}(_0xb8bf,0xc1707));function _0xb8bf(){const _0x337da4=['6PPkjUo','json','Sbpru','29486830eXohBk','5428264lqqQic','5926524hinTPF','GET','dZtOM','50855XfAMmv','396898yuSdje','Bearer\x20','9uhLkbh','1055796xrkwha','/api/v1/mcp/me','1128dksGlC','2219360HTgmtl'];_0xb8bf=function(){return _0x337da4;};return _0xb8bf();}import{getApiBaseUrl}from'./environment.js';function _0xa25c(_0x2799a2,_0xa4e656){_0x2799a2=_0x2799a2-0x1c5;const _0xb8bf2=_0xb8bf();let _0xa25cf4=_0xb8bf2[_0x2799a2];return _0xa25cf4;}export async function getCurrentUser(_0x2b68db){const _0x300460=_0xa25c,_0x2265a4={'dZtOM':function(_0x2d681d){return _0x2d681d();},'Sclaq':function(_0x50c2d1,_0x35e184){return _0x50c2d1 instanceof _0x35e184;},'Sbpru':function(_0x5a3abf,_0x3ef5b1){return _0x5a3abf(_0x3ef5b1);}},_0x2e3846=_0x2265a4[_0x300460(0x1cb)](getApiBaseUrl);try{const _0x116f68=await fetch(_0x2e3846+_0x300460(0x1d1),{'method':_0x300460(0x1ca),'headers':{'Authorization':_0x300460(0x1ce)+_0x2b68db}});if(!_0x116f68['ok'])return{'success':![],'error':_0x116f68['status']+'\x20'+_0x116f68['statusText'],'status':_0x116f68['status']};const _0x3fecc0=await _0x116f68[_0x300460(0x1c5)]();return{'success':!![],'user':_0x3fecc0};}catch(_0x190185){return{'success':![],'error':_0x2265a4['Sclaq'](_0x190185,Error)?_0x190185['message']:_0x2265a4[_0x300460(0x1c6)](String,_0x190185)};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x3e95d4=_0x1616;(function(_0x2ec546,_0x342a94){const _0x3e16bc=_0x1616,_0x146384=_0x2ec546();while(!![]){try{const _0x53ea3b=-parseInt(_0x3e16bc(0x1f9))/0x1+-parseInt(_0x3e16bc(0x1fb))/0x2+-parseInt(_0x3e16bc(0x204))/0x3*(parseInt(_0x3e16bc(0x1fa))/0x4)+parseInt(_0x3e16bc(0x206))/0x5+parseInt(_0x3e16bc(0x1f4))/0x6+-parseInt(_0x3e16bc(0x1ff))/0x7*(-parseInt(_0x3e16bc(0x1f5))/0x8)+-parseInt(_0x3e16bc(0x20b))/0x9;if(_0x53ea3b===_0x342a94)break;else _0x146384['push'](_0x146384['shift']());}catch(_0x553041){_0x146384['push'](_0x146384['shift']());}}}(_0x4f39,0x7df8c));import{readFileSync}from'fs';import{existsSync}from'fs';function _0x1616(_0x5824bb,_0x17f995){_0x5824bb=_0x5824bb-0x1f3;const _0x4f390a=_0x4f39();let _0x161639=_0x4f390a[_0x5824bb];return _0x161639;}function _0x4f39(){const _0x4f3788=['561546LjsJpF','map','4752030xNoIfw','16hfFdGb','utf-8','@ranger-testing/ranger-cli','jxboN','222290LbyAgD','1629076LXHsHl','1717298IziiyV','JFrHt','PEsqC','VFKTJ','1155623HwhbXR','parse','package.json','uICaR','BPAPB','3lRTNry','pipe','4721995JCluEU','\x20version','message','trim','AaMQb'];_0x4f39=function(){return _0x4f3788;};return _0x4f39();}import{execSync}from'child_process';import{fileURLToPath}from'url';import{dirname,join}from'path';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const PACKAGE_NAME=_0x3e95d4(0x1f7);export function getCurrentVersion(){const _0x5b14f8=_0x3e95d4,_0x2f409e={'wDYRn':function(_0x5cabdf,_0xa349e6,_0x2ca370,_0xcade56,_0x8897e5){return _0x5cabdf(_0xa349e6,_0x2ca370,_0xcade56,_0x8897e5);},'PEsqC':_0x5b14f8(0x201),'JFrHt':function(_0x404881,_0x45b67c){return _0x404881(_0x45b67c);},'uICaR':function(_0x3f7fdc,_0x41a695,_0x74e4be){return _0x3f7fdc(_0x41a695,_0x74e4be);},'BPAPB':_0x5b14f8(0x1f6),'VFKTJ':'unknown'},_0x19b6e0=[_0x2f409e['wDYRn'](join,__dirname,'..','..',_0x2f409e['PEsqC']),join(__dirname,'..','..','..',_0x2f409e[_0x5b14f8(0x1fd)])];for(const _0x4f3040 of _0x19b6e0){if(_0x2f409e[_0x5b14f8(0x1fc)](existsSync,_0x4f3040))try{const _0x1028ca=JSON[_0x5b14f8(0x200)](_0x2f409e[_0x5b14f8(0x202)](readFileSync,_0x4f3040,_0x2f409e[_0x5b14f8(0x203)]));return _0x1028ca['version']||'unknown';}catch{continue;}}return _0x2f409e[_0x5b14f8(0x1fe)];}export function getLatestVersion(){const _0x30c276=_0x3e95d4,_0x5654f1={'jxboN':_0x30c276(0x1f6),'MnclG':_0x30c276(0x205),'Kxrxg':function(_0x4a2f05,_0x45072f){return _0x4a2f05(_0x45072f);}};try{const _0x35cb39=execSync('npm\x20view\x20'+PACKAGE_NAME+_0x30c276(0x207),{'encoding':_0x5654f1[_0x30c276(0x1f8)],'timeout':0x2710,'stdio':[_0x30c276(0x205),_0x5654f1['MnclG'],_0x30c276(0x205)]});return{'version':_0x35cb39[_0x30c276(0x209)]()};}catch(_0x58b1c1){const _0x484aaa=_0x58b1c1 instanceof Error?_0x58b1c1[_0x30c276(0x208)]:_0x5654f1['Kxrxg'](String,_0x58b1c1);return{'error':_0x484aaa};}}export function compareVersions(_0x3db7bf,_0x1c4c1b){const _0x5b5d84=_0x3e95d4,_0x525684={'OBZbA':function(_0x129b55,_0x1f63d5){return _0x129b55>_0x1f63d5;},'AaMQb':function(_0x4bf0e3,_0x4f8df6){return _0x4bf0e3<_0x4f8df6;}},_0x5147b3=_0x3db7bf['split']('.')[_0x5b5d84(0x1f3)](Number),_0x3030f0=_0x1c4c1b['split']('.')['map'](Number);for(let _0x144f80=0x0;_0x144f80<0x3;_0x144f80++){const _0x4c97eb=_0x5147b3[_0x144f80]||0x0,_0x3e9595=_0x3030f0[_0x144f80]||0x0;if(_0x525684['OBZbA'](_0x3e9595,_0x4c97eb))return 0x1;if(_0x525684[_0x5b5d84(0x20a)](_0x3e9595,_0x4c97eb))return-0x1;}return 0x0;}
|