@ranger-testing/ranger-cli 2.5.4-alpha.0e8b82c-9 → 2.5.4-alpha.27e3ee8-11
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/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/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3e5e27,_0x44f30f){const _0x1bc2f5=_0x38e0,_0x2d66c3=_0x3e5e27();while(!![]){try{const _0x833316=parseInt(_0x1bc2f5(0x15e))/0x1*(parseInt(_0x1bc2f5(0x16c))/0x2)+parseInt(_0x1bc2f5(0x168))/0x3*(-parseInt(_0x1bc2f5(0x16a))/0x4)+-parseInt(_0x1bc2f5(0x165))/0x5*(-parseInt(_0x1bc2f5(0x160))/0x6)+parseInt(_0x1bc2f5(0x161))/0x7+-parseInt(_0x1bc2f5(0x167))/0x8+-parseInt(_0x1bc2f5(0x16b))/0x9*(-parseInt(_0x1bc2f5(0x162))/0xa)+-parseInt(_0x1bc2f5(0x163))/0xb;if(_0x833316===_0x44f30f)break;else _0x2d66c3['push'](_0x2d66c3['shift']());}catch(_0x156cc3){_0x2d66c3['push'](_0x2d66c3['shift']());}}}(_0x4ce2,0x9f618));import{getApiBaseUrl}from'./environment.js';function _0x4ce2(){const _0x2d184e=['ZsNqZ','22TvMLCj','POST','6WINfFs','3981775DUYhlW','2001730zQaSIE','93302bbMkgV','token','3725825HsFSBe','/cli-auth/refresh','5263336YzQnYv','9IylKPK','refreshToken','635204CkpWvT','18FXsuHv','7390obIeOW'];_0x4ce2=function(){return _0x2d184e;};return _0x4ce2();}import{getRefreshToken,storeToken,storeRefreshToken}from'./keychain.js';export async function refreshCliToken(){const _0x2b7cc9={'Jiszb':function(_0x3f450f,_0x325c44){return _0x3f450f(_0x325c44);}},_0x448ddf=await getRefreshToken();if(!_0x448ddf)return null;const _0x16cf57=await _0x2b7cc9['Jiszb'](tryPartnerRefresh,_0x448ddf);if(_0x16cf57)return _0x16cf57;return _0x2b7cc9['Jiszb'](tryWorkosRefresh,_0x448ddf);}export async function refreshPartnerCliToken(_0x5e35cf,_0x45aacd={}){const _0x325bf2={'mdiib':function(_0x3907b2,_0x5070f9){return _0x3907b2(_0x5070f9);}},_0x16de53=await _0x325bf2['mdiib'](tryPartnerRefresh,_0x5e35cf);return _0x16de53&&_0x45aacd['persistRefreshToken']&&await _0x325bf2['mdiib'](storeRefreshToken,_0x5e35cf),_0x16de53;}async function tryPartnerRefresh(_0x4c202c){const _0x2f63c1=_0x38e0,_0x5ca22e={'pJxeR':_0x2f63c1(0x15f),'ZsNqZ':function(_0x5ef464,_0x96cd0f){return _0x5ef464(_0x96cd0f);}},_0x2c36f7=getApiBaseUrl();try{const _0x3bf07e=await fetch(_0x2c36f7+'/cli-auth/partner-refresh',{'method':_0x5ca22e['pJxeR'],'headers':{'Content-Type':'application/json'},'body':JSON['stringify']({'refreshToken':_0x4c202c}),'signal':AbortSignal['timeout'](0x2710)});if(!_0x3bf07e['ok'])return null;const _0x29e013=await _0x3bf07e['json']();return await _0x5ca22e[_0x2f63c1(0x15d)](storeToken,_0x29e013['token']),_0x29e013[_0x2f63c1(0x164)];}catch{return null;}}function _0x38e0(_0xf725a9,_0x18b418){_0xf725a9=_0xf725a9-0x15d;const _0x4ce20f=_0x4ce2();let _0x38e030=_0x4ce20f[_0xf725a9];return _0x38e030;}async function tryWorkosRefresh(_0x3e6ea0){const _0x4fd78d=_0x38e0,_0xec9aa2={'aqldu':function(_0x46ac29,_0x235066,_0x5364cb){return _0x46ac29(_0x235066,_0x5364cb);},'fSeet':_0x4fd78d(0x15f),'RrLiF':function(_0x44bae6,_0x2ed0c7){return _0x44bae6(_0x2ed0c7);}},_0x2ecef6=getApiBaseUrl();try{const _0x51db38=await _0xec9aa2['aqldu'](fetch,_0x2ecef6+_0x4fd78d(0x166),{'method':_0xec9aa2['fSeet'],'headers':{'Content-Type':'application/json'},'body':JSON['stringify']({'refreshToken':_0x3e6ea0}),'signal':AbortSignal['timeout'](0x2710)});if(!_0x51db38['ok'])return null;const _0x5e25da=await _0x51db38['json']();return await storeToken(_0x5e25da['token']),await _0xec9aa2['RrLiF'](storeRefreshToken,_0x5e25da[_0x4fd78d(0x169)]),_0x5e25da[_0x4fd78d(0x164)];}catch{return null;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0xc82f(){const _0x524c20=['4nSLuxP','78iZuipW','inputSnapshot','after','JgZml','set','getTime','point','frame-snapshot','1645813IohkXE','url','method','abs','split','QYylW','12mCEsoN','deZKY','MOAGe','33473xcZMqN','136tdioxW','filter','apiName','string','goto','fVyoo','before','wallTime','111636UzEVIN','startTime','QNjPP','name','capturedAt','get','183640XkMpEB','type','179976ixpqpg','from','stepId','params','NzepM','endTime','pageId','snapshotName','1090XeHTkS','TeFiJ','monotonicTime','push','input','476VqktqH','indexOf','1275uFgRCm','values','khrqr','length','3154907aZjPVG','callId','afterSnapshot'];_0xc82f=function(){return _0x524c20;};return _0xc82f();}(function(_0xfc9b5,_0x44af86){const _0x3c00cc=_0x5bcd,_0x3450a6=_0xfc9b5();while(!![]){try{const _0x424ac9=parseInt(_0x3c00cc(0x1d6))/0x1*(parseInt(_0x3c00cc(0x1d4))/0x2)+parseInt(_0x3c00cc(0x1c7))/0x3*(-parseInt(_0x3c00cc(0x1dd))/0x4)+-parseInt(_0x3c00cc(0x1c5))/0x5*(-parseInt(_0x3c00cc(0x1de))/0x6)+-parseInt(_0x3c00cc(0x1da))/0x7+parseInt(_0x3c00cc(0x1b7))/0x8*(parseInt(_0x3c00cc(0x1bf))/0x9)+-parseInt(_0x3c00cc(0x1cf))/0xa*(parseInt(_0x3c00cc(0x1b6))/0xb)+parseInt(_0x3c00cc(0x1b3))/0xc*(parseInt(_0x3c00cc(0x1ad))/0xd);if(_0x424ac9===_0x44af86)break;else _0x3450a6['push'](_0x3450a6['shift']());}catch(_0x29e39a){_0x3450a6['push'](_0x3450a6['shift']());}}}(_0xc82f,0x43623));function _0x5bcd(_0x1d24dd,_0x4e5700){_0x1d24dd=_0x1d24dd-0x1a7;const _0xc82f88=_0xc82f();let _0x5bcd8a=_0xc82f88[_0x1d24dd];return _0x5bcd8a;}import{readdir,readFile}from'fs/promises';import{join}from'path';export async function mapStepsToTraceSnapshots(_0x52c75f,_0x31389c){const _0x4213ad=_0x5bcd,_0x3298b5={'POpeA':function(_0x4d6689,_0x2d63f8){return _0x4d6689(_0x2d63f8);},'NzepM':'.trace','khrqr':function(_0x221c89,_0x1fc3d2){return _0x221c89(_0x1fc3d2);},'QYylW':function(_0x23bcf4,_0x259c55){return _0x23bcf4===_0x259c55;},'TeFiJ':_0x4213ad(0x1d3),'fVyoo':function(_0x5755fd,_0x2b2663){return _0x5755fd===_0x2b2663;},'MOAGe':_0x4213ad(0x1ac),'QNjPP':function(_0x37bdf7,_0x4e636c){return _0x37bdf7===_0x4e636c;},'DbTqk':_0x4213ad(0x1ba),'kPFkK':'navigated','BquZL':function(_0x4d08fb,_0x531d7a){return _0x4d08fb===_0x531d7a;},'aitZU':function(_0x5edd6d,_0x54809c){return _0x5edd6d-_0x54809c;},'LOaHM':_0x4213ad(0x1bb),'JgZml':function(_0x5456a3,_0x5a596f){return _0x5456a3>=_0x5a596f;},'deZKY':function(_0x400a7c,_0x4d9dbd){return _0x400a7c+_0x4d9dbd;}},_0xd624c=new Map();if(_0x31389c[_0x4213ad(0x1d9)]===0x0)return _0xd624c;const _0x11dbd6=[],_0x5bc410=async _0x1f6cbd=>{const _0x210716=_0x4213ad,_0x341298=await readdir(_0x1f6cbd,{'withFileTypes':!![]});for(const _0x54aa8a of _0x341298){const _0x31c10e=join(_0x1f6cbd,_0x54aa8a['name']);if(_0x54aa8a['isDirectory']())await _0x3298b5['POpeA'](_0x5bc410,_0x31c10e);else _0x54aa8a[_0x210716(0x1c2)]['endsWith'](_0x3298b5[_0x210716(0x1cb)])&&_0x11dbd6['push'](_0x31c10e);}};await _0x3298b5[_0x4213ad(0x1d8)](_0x5bc410,_0x52c75f);if(_0x3298b5[_0x4213ad(0x1b2)](_0x11dbd6['length'],0x0))return _0xd624c;const _0x49a504=[];for(const _0x2035bb of _0x11dbd6){const _0x4ce497=await readFile(_0x2035bb,'utf-8'),_0x33985d=_0x4ce497[_0x4213ad(0x1b1)]('\x0a')['filter'](_0x35e49e=>_0x35e49e['trim']());for(const _0x2a2bed of _0x33985d){try{_0x49a504[_0x4213ad(0x1d2)](JSON['parse'](_0x2a2bed));}catch{}}}if(_0x3298b5[_0x4213ad(0x1b2)](_0x49a504['length'],0x0))return _0xd624c;const _0x5f308f=_0x49a504['find'](_0x850c49=>_0x850c49[_0x4213ad(0x1c6)]==='context-options');if(!_0x5f308f)return _0xd624c;const _0x1a19e6=_0x5f308f[_0x4213ad(0x1be)]-_0x5f308f[_0x4213ad(0x1d1)],_0x1a8b3d=new Map();for(const _0xbd7e0e of _0x49a504){switch(_0xbd7e0e['type']){case _0x4213ad(0x1bd):{const _0x264607=_0xbd7e0e;_0x1a8b3d[_0x4213ad(0x1a9)](_0x264607[_0x4213ad(0x1db)],{'callId':_0x264607[_0x4213ad(0x1db)],'startTime':_0x264607['startTime'],'endTime':0x0,'method':_0x264607[_0x4213ad(0x1af)],'apiName':_0x264607[_0x4213ad(0x1b9)],'params':_0x264607['params'],'pageId':_0x264607[_0x4213ad(0x1cd)],'beforeSnapshot':_0x264607['beforeSnapshot']});break;}case _0x3298b5[_0x4213ad(0x1d0)]:{const _0x27b9ef=_0xbd7e0e,_0x51ca95=_0x1a8b3d['get'](_0x27b9ef['callId']);if(_0x51ca95){if(_0x27b9ef[_0x4213ad(0x1df)])_0x51ca95[_0x4213ad(0x1df)]=_0x27b9ef[_0x4213ad(0x1df)];if(_0x27b9ef['point'])_0x51ca95[_0x4213ad(0x1ab)]=_0x27b9ef[_0x4213ad(0x1ab)];}break;}case _0x4213ad(0x1a7):{const _0x3890d7=_0xbd7e0e,_0x4b088b=_0x1a8b3d[_0x4213ad(0x1c4)](_0x3890d7['callId']);if(_0x4b088b){_0x4b088b[_0x4213ad(0x1cc)]=_0x3890d7['endTime'];if(_0x3890d7[_0x4213ad(0x1dc)])_0x4b088b[_0x4213ad(0x1dc)]=_0x3890d7[_0x4213ad(0x1dc)];}break;}}}const _0x150554=Array[_0x4213ad(0x1c8)](_0x1a8b3d[_0x4213ad(0x1d7)]())[_0x4213ad(0x1b8)](_0x28eaad=>_0x28eaad['endTime']>0x0&&(_0x28eaad['afterSnapshot']||_0x28eaad['beforeSnapshot']))['sort']((_0x27b005,_0x3a586c)=>_0x27b005[_0x4213ad(0x1c0)]-_0x3a586c['startTime']);if(_0x3298b5[_0x4213ad(0x1bc)](_0x150554['length'],0x0))return _0xd624c;const _0x3f75ba=new Map();for(const _0x4822aa of _0x49a504){if(_0x4822aa['type']===_0x3298b5[_0x4213ad(0x1b5)]){const _0x2efeca=_0x4822aa['snapshot'];_0x2efeca?.[_0x4213ad(0x1ce)]&&_0x2efeca?.['frameUrl']&&_0x3f75ba['set'](_0x2efeca[_0x4213ad(0x1ce)],_0x2efeca['frameUrl']);}}const _0x1f47c1=new Map();for(const _0x4e6afd of _0x150554){const _0x44d958=_0x4e6afd['params']?.['url'];_0x3298b5[_0x4213ad(0x1c1)](_0x4e6afd[_0x4213ad(0x1af)],'goto')&&_0x3298b5[_0x4213ad(0x1c1)](typeof _0x44d958,_0x3298b5['DbTqk'])&&_0x4e6afd['pageId']&&_0x1f47c1[_0x4213ad(0x1a9)](_0x4e6afd['pageId'],_0x44d958);}for(const _0x43bc00 of _0x49a504){const _0x1da754=_0x43bc00,_0x2b3ed8=_0x1da754[_0x4213ad(0x1ca)],_0x33749b=_0x2b3ed8?.['url'];_0x1da754[_0x4213ad(0x1c6)]==='event'&&_0x1da754['method']===_0x3298b5['kPFkK']&&typeof _0x33749b===_0x4213ad(0x1ba)&&_0x3298b5['BquZL'](typeof _0x1da754[_0x4213ad(0x1cd)],_0x3298b5['DbTqk'])&&_0x1f47c1['set'](_0x1da754[_0x4213ad(0x1cd)],_0x33749b);}for(const _0x451e3a of _0x31389c){const _0x3de2e2=new Date(_0x451e3a[_0x4213ad(0x1c3)])[_0x4213ad(0x1aa)](),_0x4a9a30=_0x3298b5['aitZU'](_0x3de2e2,_0x1a19e6);let _0x2836fc=null,_0x172bb7=Infinity;for(const _0x3dcf5d of _0x150554){const _0x46fb8f=Math[_0x4213ad(0x1b0)](_0x3dcf5d['endTime']-_0x4a9a30);_0x46fb8f<_0x172bb7&&(_0x172bb7=_0x46fb8f,_0x2836fc=_0x3dcf5d);}if(!_0x2836fc)continue;const _0x2d74d9=_0x2836fc[_0x4213ad(0x1dc)]||_0x2836fc['beforeSnapshot'];if(!_0x2d74d9)continue;const _0x40cfe0=_0x2836fc['pageId']||'page@0';let _0x13e198=_0x3f75ba[_0x4213ad(0x1c4)](_0x2d74d9)||_0x1f47c1[_0x4213ad(0x1c4)](_0x40cfe0)||'';if(!_0x13e198)for(let _0x356752=_0x150554[_0x4213ad(0x1d5)](_0x2836fc);_0x356752>=0x0;_0x356752--){const _0x1343fa=_0x150554[_0x356752][_0x4213ad(0x1ca)]?.[_0x4213ad(0x1ae)];if(_0x150554[_0x356752]['method']===_0x3298b5['LOaHM']&&typeof _0x1343fa===_0x3298b5['DbTqk']){_0x13e198=_0x1343fa;break;}}let _0x1df532,_0x3351b6;const _0x53f652=_0x150554['indexOf'](_0x2836fc);if(_0x3298b5[_0x4213ad(0x1a8)](_0x53f652,0x0)&&_0x53f652<_0x150554['length']-0x1){const _0x2a7f09=_0x150554[_0x3298b5[_0x4213ad(0x1b4)](_0x53f652,0x1)];_0x2a7f09[_0x4213ad(0x1ab)]&&_0x2a7f09['inputSnapshot']&&(_0x1df532=_0x2a7f09[_0x4213ad(0x1ab)],_0x3351b6=_0x2a7f09[_0x4213ad(0x1df)]);}_0xd624c['set'](_0x451e3a[_0x4213ad(0x1c9)],{'snapshotName':_0x2d74d9,'inputSnapshotName':_0x3351b6,'pageId':_0x40cfe0,'pageUrl':_0x13e198,'callId':_0x2836fc['callId'],'point':_0x1df532});}return _0xd624c;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x5357(){const _0x28ad1f=['435337WPURHY','GET','11oEfRlE','status','24cUfnWx','4588TosBZl','246MuKdnu','7580xIxKvA','1420977EePPDj','420BoHCmM','json','8Qjnooo','17988264HnHZkm','864730hSjwFM','CXgWd','4697469wmnxYr'];_0x5357=function(){return _0x28ad1f;};return _0x5357();}function _0x54d8(_0x4b9e17,_0x5caf62){_0x4b9e17=_0x4b9e17-0x1de;const _0x53570e=_0x5357();let _0x54d850=_0x53570e[_0x4b9e17];return _0x54d850;}(function(_0x14e9db,_0x5b554b){const _0x11640e=_0x54d8,_0x6a2f42=_0x14e9db();while(!![]){try{const _0x2b9fe8=-parseInt(_0x11640e(0x1de))/0x1*(parseInt(_0x11640e(0x1df))/0x2)+parseInt(_0x11640e(0x1e1))/0x3+parseInt(_0x11640e(0x1e0))/0x4*(-parseInt(_0x11640e(0x1e2))/0x5)+-parseInt(_0x11640e(0x1ed))/0x6*(parseInt(_0x11640e(0x1e9))/0x7)+-parseInt(_0x11640e(0x1e4))/0x8*(parseInt(_0x11640e(0x1e8))/0x9)+parseInt(_0x11640e(0x1e6))/0xa*(-parseInt(_0x11640e(0x1eb))/0xb)+parseInt(_0x11640e(0x1e5))/0xc;if(_0x2b9fe8===_0x5b554b)break;else _0x6a2f42['push'](_0x6a2f42['shift']());}catch(_0x2d41eb){_0x6a2f42['push'](_0x6a2f42['shift']());}}}(_0x5357,0x5fb3f));import{getApiBaseUrl}from'./environment.js';export async function getCurrentUser(_0x432e86){const _0x351712=_0x54d8,_0x4a7d96={'MYyhs':_0x351712(0x1ea),'CXgWd':function(_0x214a3e,_0xffd690){return _0x214a3e(_0xffd690);}},_0x3a85b0=getApiBaseUrl();try{const _0x353ca3=await fetch(_0x3a85b0+'/api/v1/mcp/me',{'method':_0x4a7d96['MYyhs'],'headers':{'Authorization':'Bearer\x20'+_0x432e86}});if(!_0x353ca3['ok'])return{'success':![],'error':_0x353ca3['status']+'\x20'+_0x353ca3['statusText'],'status':_0x353ca3[_0x351712(0x1ec)]};const _0x2b0841=await _0x353ca3[_0x351712(0x1e3)]();return{'success':!![],'user':_0x2b0841};}catch(_0x3f1f28){return{'success':![],'error':_0x3f1f28 instanceof Error?_0x3f1f28['message']:_0x4a7d96[_0x351712(0x1e7)](String,_0x3f1f28)};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x56dbd3,_0x3ce7bd){const _0x173050=_0x50d9,_0xe5cffe=_0x56dbd3();while(!![]){try{const _0x40e1ab=parseInt(_0x173050(0x7d))/0x1*(parseInt(_0x173050(0x71))/0x2)+-parseInt(_0x173050(0x78))/0x3*(-parseInt(_0x173050(0x6e))/0x4)+-parseInt(_0x173050(0x6f))/0x5+-parseInt(_0x173050(0x7e))/0x6+parseInt(_0x173050(0x73))/0x7*(parseInt(_0x173050(0x81))/0x8)+parseInt(_0x173050(0x7c))/0x9*(-parseInt(_0x173050(0x6d))/0xa)+parseInt(_0x173050(0x77))/0xb*(parseInt(_0x173050(0x70))/0xc);if(_0x40e1ab===_0x3ce7bd)break;else _0xe5cffe['push'](_0xe5cffe['shift']());}catch(_0x5b2ee7){_0xe5cffe['push'](_0xe5cffe['shift']());}}}(_0x5804,0xb0ce8));function _0x50d9(_0x5da230,_0x53236b){_0x5da230=_0x5da230-0x67;const _0x58044d=_0x5804();let _0x50d9d1=_0x58044d[_0x5da230];return _0x50d9d1;}import{readFileSync}from'fs';import{existsSync}from'fs';function _0x5804(){const _0x2f6d12=['split','362097FZLsVG','179174cKAajZ','3384480lEIgVk','unknown','Nquxr','4317584pLFHqg','npm\x20view\x20','message','BpoGc','pipe','teNTn','utf-8','\x20version','330VzWOtT','10264ASnOCd','7099920shKDiF','12ZAjFcR','4AIzAKt','MdenD','7JCpvWU','version','ULWPL','lZknX','29041133OzLsUd','582XHErHZ','map','OjRKr'];_0x5804=function(){return _0x2f6d12;};return _0x5804();}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='@ranger-testing/ranger-cli';export function getCurrentVersion(){const _0x35b27f=_0x50d9,_0x42c235={'pJnqM':function(_0x4cfeaf,_0x411054,_0x51b04c,_0x763f96,_0x458f83){return _0x4cfeaf(_0x411054,_0x51b04c,_0x763f96,_0x458f83);},'GZFaT':'package.json','MdenD':function(_0x488062,_0x2b7de3){return _0x488062(_0x2b7de3);},'Nquxr':_0x35b27f(0x6b),'teNTn':_0x35b27f(0x7f)},_0x290d68=[_0x42c235['pJnqM'](join,__dirname,'..','..','package.json'),join(__dirname,'..','..','..',_0x42c235['GZFaT'])];for(const _0x536068 of _0x290d68){if(_0x42c235[_0x35b27f(0x72)](existsSync,_0x536068))try{const _0x2719e7=JSON['parse'](readFileSync(_0x536068,_0x42c235[_0x35b27f(0x80)]));return _0x2719e7[_0x35b27f(0x74)]||'unknown';}catch{continue;}}return _0x42c235[_0x35b27f(0x6a)];}export function getLatestVersion(){const _0xfcfaec=_0x50d9,_0x1e6334={'ULWPL':'utf-8','dYBVF':_0xfcfaec(0x69),'OjRKr':function(_0x126b68,_0x58e68a){return _0x126b68 instanceof _0x58e68a;}};try{const _0x319594=execSync(_0xfcfaec(0x82)+PACKAGE_NAME+_0xfcfaec(0x6c),{'encoding':_0x1e6334[_0xfcfaec(0x75)],'timeout':0x2710,'stdio':[_0x1e6334['dYBVF'],_0xfcfaec(0x69),_0xfcfaec(0x69)]});return{'version':_0x319594['trim']()};}catch(_0x2cac02){const _0x3c49b2=_0x1e6334[_0xfcfaec(0x7a)](_0x2cac02,Error)?_0x2cac02[_0xfcfaec(0x67)]:String(_0x2cac02);return{'error':_0x3c49b2};}}export function compareVersions(_0x1eabab,_0xa9d0ee){const _0x28aee3=_0x50d9,_0x270215={'lZknX':function(_0x219749,_0x35d7e4){return _0x219749>_0x35d7e4;},'BpoGc':function(_0x3f2c1f,_0x417f18){return _0x3f2c1f<_0x417f18;}},_0x396678=_0x1eabab[_0x28aee3(0x7b)]('.')['map'](Number),_0x4668ac=_0xa9d0ee['split']('.')[_0x28aee3(0x79)](Number);for(let _0x3ddccb=0x0;_0x3ddccb<0x3;_0x3ddccb++){const _0x2a83e4=_0x396678[_0x3ddccb]||0x0,_0xbc6568=_0x4668ac[_0x3ddccb]||0x0;if(_0x270215[_0x28aee3(0x76)](_0xbc6568,_0x2a83e4))return 0x1;if(_0x270215[_0x28aee3(0x68)](_0xbc6568,_0x2a83e4))return-0x1;}return 0x0;}
|