@ranger-testing/ranger-cli 3.0.1-alpha.bb18058-34 → 3.0.1-alpha.d8f00ab-37
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 -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 -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 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/organizationEnvApi.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/rangerwrightCli.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/tunnelClient.js +1 -0
- 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 -1
- package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
- package/package.json +3 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x5727(_0x35ac51,_0x349dc0){_0x35ac51=_0x35ac51-0x67;const _0x49f1ea=_0x49f1();let _0x572773=_0x49f1ea[_0x35ac51];return _0x572773;}(function(_0x179cd0,_0x4d9214){const _0x42a7aa=_0x5727,_0x3a13ae=_0x179cd0();while(!![]){try{const _0x56acac=-parseInt(_0x42a7aa(0x74))/0x1*(-parseInt(_0x42a7aa(0x73))/0x2)+-parseInt(_0x42a7aa(0x69))/0x3*(-parseInt(_0x42a7aa(0x77))/0x4)+-parseInt(_0x42a7aa(0x6b))/0x5*(parseInt(_0x42a7aa(0x72))/0x6)+-parseInt(_0x42a7aa(0x79))/0x7+-parseInt(_0x42a7aa(0x71))/0x8*(-parseInt(_0x42a7aa(0x6a))/0x9)+parseInt(_0x42a7aa(0x68))/0xa*(-parseInt(_0x42a7aa(0x70))/0xb)+-parseInt(_0x42a7aa(0x78))/0xc*(-parseInt(_0x42a7aa(0x75))/0xd);if(_0x56acac===_0x4d9214)break;else _0x3a13ae['push'](_0x3a13ae['shift']());}catch(_0x597f2e){_0x3a13ae['push'](_0x3a13ae['shift']());}}}(_0x49f1,0x45a4a));import{getApiBaseUrl}from'./environment.js';import{getRefreshToken,storeToken,storeRefreshToken}from'./keychain.js';export async function refreshCliToken(){const _0x3aafd3=await getRefreshToken();if(!_0x3aafd3)return null;const _0x50b988=await tryPartnerRefresh(_0x3aafd3);if(_0x50b988)return _0x50b988;return tryWorkosRefresh(_0x3aafd3);}function _0x49f1(){const _0x2876ab=['776OTArgN','303744plfVro','548TPFSUe','112bkmWrm','394147gftRzr','xoGlr','1575724Xkebja','372CtbTsK','3111395lKYLYV','stringify','refreshToken','json','timeout','yIOUK','POST','persistRefreshToken','token','17860KzFuWT','3qZHqEQ','4149XekrUA','50WrIvMj','KdlCp','application/json','OnNgn','bHZuI','1067UTRDyx'];_0x49f1=function(){return _0x2876ab;};return _0x49f1();}export async function refreshPartnerCliToken(_0x481b74,_0x6998c6={}){const _0xebfaaa=_0x5727,_0x3bf377={'xoGlr':function(_0x34267b,_0x5a0681){return _0x34267b(_0x5a0681);}},_0x5d8e8b=await _0x3bf377[_0xebfaaa(0x76)](tryPartnerRefresh,_0x481b74);return _0x5d8e8b&&_0x6998c6[_0xebfaaa(0x80)]&&await storeRefreshToken(_0x481b74),_0x5d8e8b;}async function tryPartnerRefresh(_0xf79066){const _0x2cd3f2=_0x5727,_0x4eb2b0={'yIOUK':function(_0x48f79c){return _0x48f79c();},'KdlCp':function(_0x2d7cfd,_0x5acab3,_0x17a407){return _0x2d7cfd(_0x5acab3,_0x17a407);},'OnNgn':'POST'},_0xc43a59=_0x4eb2b0[_0x2cd3f2(0x7e)](getApiBaseUrl);try{const _0x23ca19=await _0x4eb2b0[_0x2cd3f2(0x6c)](fetch,_0xc43a59+'/cli-auth/partner-refresh',{'method':_0x4eb2b0[_0x2cd3f2(0x6e)],'headers':{'Content-Type':_0x2cd3f2(0x6d)},'body':JSON['stringify']({'refreshToken':_0xf79066}),'signal':AbortSignal['timeout'](0x2710)});if(!_0x23ca19['ok'])return null;const _0x4325c2=await _0x23ca19[_0x2cd3f2(0x7c)]();return await storeToken(_0x4325c2['token']),_0x4325c2[_0x2cd3f2(0x67)];}catch{return null;}}async function tryWorkosRefresh(_0x5cc1b6){const _0x2425e7=_0x5727,_0x2553b8={'JIXev':function(_0x212d4d){return _0x212d4d();},'bHZuI':_0x2425e7(0x6d),'qnKGJ':function(_0x4f3bc4,_0x23c9b3){return _0x4f3bc4(_0x23c9b3);}},_0x5469d1=_0x2553b8['JIXev'](getApiBaseUrl);try{const _0x18123f=await fetch(_0x5469d1+'/cli-auth/refresh',{'method':_0x2425e7(0x7f),'headers':{'Content-Type':_0x2553b8[_0x2425e7(0x6f)]},'body':JSON[_0x2425e7(0x7a)]({'refreshToken':_0x5cc1b6}),'signal':AbortSignal[_0x2425e7(0x7d)](0x2710)});if(!_0x18123f['ok'])return null;const _0xeb52e7=await _0x18123f['json']();return await storeToken(_0xeb52e7['token']),await _0x2553b8['qnKGJ'](storeRefreshToken,_0xeb52e7[_0x2425e7(0x7b)]),_0xeb52e7['token'];}catch{return null;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5c29(){const _0x487099=['beforeSnapshot','url','from','navigated','465tqjCOz','114032iLmLlg','monotonicTime','VvSaq','snapshotName','frameUrl','wallTime','push','startTime','isDirectory','PrVJO','params','set','values','iASlj','point','inputSnapshot','event','split','8877xhVJnc','CegkX','1135704KEHjwm','leRin','77UFmHON','UwmUr','method','aaLzK','Drulu','1458261ijabbA','dQLFm','filter','abs','endTime','utf-8','pageId','.trace','282440UgkFeq','10myxWUf','callId','input','afterSnapshot','2120wvevAA','length','get','3367900XSVSTH','find'];_0x5c29=function(){return _0x487099;};return _0x5c29();}function _0x4420(_0x400282,_0x2716f4){_0x400282=_0x400282-0x13e;const _0x5c2911=_0x5c29();let _0x44207b=_0x5c2911[_0x400282];return _0x44207b;}(function(_0x346f69,_0x53c702){const _0x587705=_0x4420,_0x54f8bb=_0x346f69();while(!![]){try{const _0x504ca6=-parseInt(_0x587705(0x14a))/0x1*(parseInt(_0x587705(0x15c))/0x2)+parseInt(_0x587705(0x169))/0x3*(-parseInt(_0x587705(0x160))/0x4)+parseInt(_0x587705(0x15b))/0x5+parseInt(_0x587705(0x14c))/0x6+parseInt(_0x587705(0x14e))/0x7*(parseInt(_0x587705(0x16a))/0x8)+parseInt(_0x587705(0x153))/0x9+-parseInt(_0x587705(0x163))/0xa;if(_0x504ca6===_0x53c702)break;else _0x54f8bb['push'](_0x54f8bb['shift']());}catch(_0x177fa3){_0x54f8bb['push'](_0x54f8bb['shift']());}}}(_0x5c29,0x18b96));import{readdir,readFile}from'fs/promises';import{join}from'path';export async function mapStepsToTraceSnapshots(_0x3b13e8,_0x2e7681){const _0x495675=_0x4420,_0x47b3a2={'dQLFm':function(_0x180778,_0x5288a7,_0xe30a10){return _0x180778(_0x5288a7,_0xe30a10);},'iASlj':function(_0x323647,_0x1d6af4){return _0x323647(_0x1d6af4);},'leRin':function(_0x21e4d0,_0x58ef5a){return _0x21e4d0===_0x58ef5a;},'fnEGr':_0x495675(0x158),'aaLzK':'before','PrVJO':_0x495675(0x15e),'LQsRW':'goto','VvSaq':'string','CegkX':_0x495675(0x168),'dqCUI':function(_0x453cd9,_0xeb4998){return _0x453cd9-_0xeb4998;},'uSuXG':'page@0','Drulu':function(_0x1e4b11,_0x2a9a00){return _0x1e4b11===_0x2a9a00;},'pOAEq':function(_0x2a031b,_0x7bfdc2){return _0x2a031b===_0x7bfdc2;},'UwmUr':function(_0x10389f,_0xe287e4){return _0x10389f+_0xe287e4;}},_0x2dd0c0=new Map();if(_0x47b3a2[_0x495675(0x14d)](_0x2e7681['length'],0x0))return _0x2dd0c0;const _0x582c5d=[],_0x55f5b4=async _0x12b5b7=>{const _0x3b284f=_0x495675,_0x56001c=await _0x47b3a2['dQLFm'](readdir,_0x12b5b7,{'withFileTypes':!![]});for(const _0x13f4c9 of _0x56001c){const _0x4af338=_0x47b3a2['dQLFm'](join,_0x12b5b7,_0x13f4c9['name']);if(_0x13f4c9[_0x3b284f(0x140)]())await _0x47b3a2['iASlj'](_0x55f5b4,_0x4af338);else _0x13f4c9['name']['endsWith'](_0x3b284f(0x15a))&&_0x582c5d[_0x3b284f(0x13e)](_0x4af338);}};await _0x47b3a2[_0x495675(0x145)](_0x55f5b4,_0x3b13e8);if(_0x582c5d[_0x495675(0x161)]===0x0)return _0x2dd0c0;const _0xce7873=[];for(const _0x4ac72e of _0x582c5d){const _0x5317ef=await _0x47b3a2[_0x495675(0x154)](readFile,_0x4ac72e,_0x47b3a2['fnEGr']),_0x29ac9d=_0x5317ef[_0x495675(0x149)]('\x0a')[_0x495675(0x155)](_0x1f4e2a=>_0x1f4e2a['trim']());for(const _0x48de4c of _0x29ac9d){try{_0xce7873[_0x495675(0x13e)](JSON['parse'](_0x48de4c));}catch{}}}if(_0xce7873['length']===0x0)return _0x2dd0c0;const _0x3ee10e=_0xce7873[_0x495675(0x164)](_0x1f142e=>_0x1f142e['type']==='context-options');if(!_0x3ee10e)return _0x2dd0c0;const _0x13ab74=_0x3ee10e[_0x495675(0x16f)]-_0x3ee10e[_0x495675(0x16b)],_0x4d11ed=new Map();for(const _0x437b69 of _0xce7873){switch(_0x437b69['type']){case _0x47b3a2[_0x495675(0x151)]:{const _0x408077=_0x437b69;_0x4d11ed[_0x495675(0x143)](_0x408077[_0x495675(0x15d)],{'callId':_0x408077[_0x495675(0x15d)],'startTime':_0x408077['startTime'],'endTime':0x0,'method':_0x408077[_0x495675(0x150)],'apiName':_0x408077['apiName'],'params':_0x408077['params'],'pageId':_0x408077['pageId'],'beforeSnapshot':_0x408077['beforeSnapshot']});break;}case _0x47b3a2[_0x495675(0x141)]:{const _0x1cb4f3=_0x437b69,_0x2beaea=_0x4d11ed[_0x495675(0x162)](_0x1cb4f3['callId']);if(_0x2beaea){if(_0x1cb4f3[_0x495675(0x147)])_0x2beaea[_0x495675(0x147)]=_0x1cb4f3[_0x495675(0x147)];if(_0x1cb4f3[_0x495675(0x146)])_0x2beaea['point']=_0x1cb4f3['point'];}break;}case'after':{const _0xde767e=_0x437b69,_0x368b09=_0x4d11ed['get'](_0xde767e[_0x495675(0x15d)]);if(_0x368b09){_0x368b09[_0x495675(0x157)]=_0xde767e[_0x495675(0x157)];if(_0xde767e['afterSnapshot'])_0x368b09['afterSnapshot']=_0xde767e[_0x495675(0x15f)];}break;}}}const _0x30afa0=Array[_0x495675(0x167)](_0x4d11ed[_0x495675(0x144)]())[_0x495675(0x155)](_0x2a8c1e=>_0x2a8c1e['endTime']>0x0&&(_0x2a8c1e['afterSnapshot']||_0x2a8c1e[_0x495675(0x165)]))['sort']((_0x3b02f9,_0x15e4f2)=>_0x3b02f9[_0x495675(0x13f)]-_0x15e4f2[_0x495675(0x13f)]);if(_0x30afa0['length']===0x0)return _0x2dd0c0;const _0x3dee42=new Map();for(const _0x3c4e45 of _0xce7873){if(_0x47b3a2['leRin'](_0x3c4e45['type'],'frame-snapshot')){const _0x5068b0=_0x3c4e45['snapshot'];_0x5068b0?.['snapshotName']&&_0x5068b0?.['frameUrl']&&_0x3dee42['set'](_0x5068b0[_0x495675(0x16d)],_0x5068b0[_0x495675(0x16e)]);}}const _0x59f290=new Map();for(const _0x147a11 of _0x30afa0){const _0x24dcda=_0x147a11[_0x495675(0x142)]?.[_0x495675(0x166)];_0x147a11[_0x495675(0x150)]===_0x47b3a2['LQsRW']&&typeof _0x24dcda===_0x47b3a2['VvSaq']&&_0x147a11['pageId']&&_0x59f290['set'](_0x147a11['pageId'],_0x24dcda);}for(const _0x2fe2df of _0xce7873){const _0x2e6ae5=_0x2fe2df,_0x5dbce4=_0x2e6ae5['params'],_0x190e87=_0x5dbce4?.[_0x495675(0x166)];_0x47b3a2['leRin'](_0x2e6ae5['type'],_0x495675(0x148))&&_0x47b3a2['leRin'](_0x2e6ae5['method'],_0x47b3a2[_0x495675(0x14b)])&&typeof _0x190e87===_0x47b3a2[_0x495675(0x16c)]&&typeof _0x2e6ae5['pageId']==='string'&&_0x59f290['set'](_0x2e6ae5[_0x495675(0x159)],_0x190e87);}for(const _0x1cbcfe of _0x2e7681){const _0x44709e=new Date(_0x1cbcfe['capturedAt'])['getTime'](),_0x138b5f=_0x47b3a2['dqCUI'](_0x44709e,_0x13ab74);let _0x37ee51=null,_0x60a16c=Infinity;for(const _0xfac6e7 of _0x30afa0){const _0x17a497=Math[_0x495675(0x156)](_0xfac6e7['endTime']-_0x138b5f);_0x17a497<_0x60a16c&&(_0x60a16c=_0x17a497,_0x37ee51=_0xfac6e7);}if(!_0x37ee51)continue;const _0x30694a=_0x37ee51[_0x495675(0x15f)]||_0x37ee51['beforeSnapshot'];if(!_0x30694a)continue;const _0xcabab3=_0x37ee51['pageId']||_0x47b3a2['uSuXG'];let _0x1bc2c7=_0x3dee42['get'](_0x30694a)||_0x59f290[_0x495675(0x162)](_0xcabab3)||'';if(!_0x1bc2c7)for(let _0x4d347a=_0x30afa0['indexOf'](_0x37ee51);_0x4d347a>=0x0;_0x4d347a--){const _0x228661=_0x30afa0[_0x4d347a][_0x495675(0x142)]?.['url'];if(_0x47b3a2[_0x495675(0x152)](_0x30afa0[_0x4d347a]['method'],_0x47b3a2['LQsRW'])&&_0x47b3a2['pOAEq'](typeof _0x228661,'string')){_0x1bc2c7=_0x228661;break;}}let _0x30c1c2,_0x51f0be;const _0x102118=_0x30afa0['indexOf'](_0x37ee51);if(_0x102118>=0x0&&_0x102118<_0x30afa0[_0x495675(0x161)]-0x1){const _0x3bdccd=_0x30afa0[_0x47b3a2[_0x495675(0x14f)](_0x102118,0x1)];_0x3bdccd[_0x495675(0x146)]&&_0x3bdccd[_0x495675(0x147)]&&(_0x30c1c2=_0x3bdccd[_0x495675(0x146)],_0x51f0be=_0x3bdccd[_0x495675(0x147)]);}_0x2dd0c0['set'](_0x1cbcfe['stepId'],{'snapshotName':_0x30694a,'inputSnapshotName':_0x51f0be,'pageId':_0xcabab3,'pageUrl':_0x1bc2c7,'callId':_0x37ee51[_0x495675(0x15d)],'point':_0x30c1c2});}return _0x2dd0c0;}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x58b706,_0x1c68e1){const _0x2407e4=_0x1784,_0x6410c5=_0x58b706();while(!![]){try{const _0xbbcd30=-parseInt(_0x2407e4(0xac))/0x1*(parseInt(_0x2407e4(0xaa))/0x2)+-parseInt(_0x2407e4(0xa3))/0x3+parseInt(_0x2407e4(0x93))/0x4+-parseInt(_0x2407e4(0x92))/0x5+parseInt(_0x2407e4(0xa5))/0x6+-parseInt(_0x2407e4(0xad))/0x7*(-parseInt(_0x2407e4(0x9d))/0x8)+parseInt(_0x2407e4(0x91))/0x9*(parseInt(_0x2407e4(0x94))/0xa);if(_0xbbcd30===_0x1c68e1)break;else _0x6410c5['push'](_0x6410c5['shift']());}catch(_0x469955){_0x6410c5['push'](_0x6410c5['shift']());}}}(_0x16cd,0x4305e));import{chromium}from'playwright';import _0x30daca from'ws';function _0x16cd(){const _0x139e4c=['forEach','9EmecKX','1444325bZYMdG','527572BafJjC','2121130kQXdrr','type','stringify','readyState','Bearer\x20','PRGUk','XNCfN','open','parse','976iaALjN','btAci','clear','set','status_update','eEEoy','798924PGwHhj','pong','1211448GDSCTr','ycXxl','toString','message','PHDUI','227382bQHPmo','OPEN','1eEomJv','22806rQlbkr','connectionId','get','client_ready','catch','pw_connection_close','kCjFH','close','delete','send','data'];_0x16cd=function(){return _0x139e4c;};return _0x16cd();}function _0x1784(_0x124991,_0x476dd4){_0x124991=_0x124991-0x91;const _0x16cda2=_0x16cd();let _0x178450=_0x16cda2[_0x124991];return _0x178450;}export async function launchBrowserServer(_0x1bda19={}){const {headless:headless=!![]}=_0x1bda19,_0x5e41df=await chromium['launchServer']({'headless':headless});return{'wsEndpoint':_0x5e41df['wsEndpoint'](),'close':async()=>{const _0x55c0f6=_0x1784;await _0x5e41df[_0x55c0f6(0xb4)]();}};}export async function createTunnelBridge(_0x86d785){const _0x32b10b=_0x1784,_0x5b9656={'wjrOS':_0x32b10b(0x9b),'XNCfN':function(_0x9062c4,_0xac05b3){return _0x9062c4===_0xac05b3;},'ycXxl':'error','BHIMS':function(_0x2ce48e,_0x2d1069){return _0x2ce48e||_0x2d1069;},'PHDUI':_0x32b10b(0xa4),'eEEoy':_0x32b10b(0xa1),'MVFIR':function(_0x43b672,_0x4c4728){return _0x43b672===_0x4c4728;},'btAci':function(_0x4ae0a3,_0x4416e7){return _0x4ae0a3?.(_0x4416e7);},'uaTQc':_0x32b10b(0xb2),'kCjFH':function(_0x49b29c){return _0x49b29c?.();},'AwfLl':'close'},{localWsUrl:_0x5a4c71,tunnelServerUrl:_0x47fb50,sessionId:_0x14a3c2,apiKey:_0x9e4dcc,onClose:_0x51c53,onError:_0x3991d3,onMessage:_0x2ef79b}=_0x86d785;let _0x5026fe=![],_0x1738bc=null;const _0x37bcb3=new Map();function _0x433150(_0x576ba3){const _0x1bae86=_0x37bcb3['get'](_0x576ba3);if(_0x1bae86&&_0x5b9656['XNCfN'](_0x1bae86['readyState'],_0x30daca['OPEN']))return Promise['resolve'](_0x1bae86);return new Promise((_0x1d5137,_0x2c5df6)=>{const _0x40fbd2={'PRGUk':function(_0x1620bb,_0x33f8b1){return _0x1620bb!==_0x33f8b1;}},_0x252585=new _0x30daca(_0x5a4c71);_0x252585['on'](_0x5b9656['wjrOS'],()=>{const _0x427fe9=_0x1784;_0x37bcb3[_0x427fe9(0xa0)](_0x576ba3,_0x252585),_0x252585['on'](_0x427fe9(0xa8),_0x44fba8=>{const _0x5dd08d=_0x427fe9;if(_0x5026fe||!_0x1738bc||_0x40fbd2[_0x5dd08d(0x99)](_0x1738bc[_0x5dd08d(0x97)],_0x30daca[_0x5dd08d(0xab)]))return;_0x1738bc['send'](JSON['stringify']({'connectionId':_0x576ba3,'data':_0x44fba8['toString']()}));}),_0x252585['on']('close',()=>{const _0x3bfc32=_0x427fe9;_0x37bcb3[_0x3bfc32(0xb5)](_0x576ba3);}),_0x252585['on']('error',()=>{const _0x1f1ed5=_0x427fe9;_0x37bcb3[_0x1f1ed5(0xb5)](_0x576ba3);}),_0x1d5137(_0x252585);}),_0x252585['on']('error',_0x2c5df6);});}return _0x1738bc=new _0x30daca(_0x47fb50,{'headers':{'Authorization':_0x32b10b(0x98)+_0x9e4dcc}}),await new Promise((_0x15215c,_0x36a4fd)=>{const _0x2ec843=_0x32b10b;_0x1738bc['on'](_0x5b9656['wjrOS'],_0x15215c),_0x1738bc['on'](_0x5b9656[_0x2ec843(0xa6)],_0x36a4fd);}),_0x1738bc[_0x32b10b(0xb6)](JSON['stringify']({'type':_0x32b10b(0xb0),'sessionId':_0x14a3c2})),_0x1738bc['on'](_0x32b10b(0xa8),(_0x23fb80,_0x5bbc31)=>{const _0x2329a4=_0x32b10b;if(_0x5b9656['BHIMS'](_0x5026fe,_0x5bbc31))return;try{const _0x37605e=JSON[_0x2329a4(0x9c)](_0x23fb80[_0x2329a4(0xa7)]());if(_0x37605e[_0x2329a4(0x95)]==='ping'){_0x1738bc?.[_0x2329a4(0xb6)](JSON[_0x2329a4(0x96)]({'type':_0x5b9656[_0x2329a4(0xa9)]}));return;}if(_0x5b9656[_0x2329a4(0x9a)](_0x37605e['type'],_0x5b9656[_0x2329a4(0xa2)])||_0x37605e['type']==='test_results'||_0x5b9656['MVFIR'](_0x37605e['type'],'test_run_created')){_0x5b9656[_0x2329a4(0x9e)](_0x2ef79b,_0x23fb80['toString']());return;}if(_0x37605e[_0x2329a4(0x95)]==='pw_connection_open'&&_0x37605e[_0x2329a4(0xae)]){_0x433150(_0x37605e['connectionId'])[_0x2329a4(0xb1)](()=>{});return;}if(_0x37605e['type']===_0x5b9656['uaTQc']&&_0x37605e[_0x2329a4(0xae)]){const _0xc9fb43=_0x37bcb3[_0x2329a4(0xaf)](_0x37605e['connectionId']);_0xc9fb43&&(_0xc9fb43[_0x2329a4(0xb4)](),_0x37bcb3['delete'](_0x37605e[_0x2329a4(0xae)]));return;}_0x37605e[_0x2329a4(0xae)]&&_0x37605e[_0x2329a4(0xb7)]!==undefined&&_0x433150(_0x37605e['connectionId'])['then'](_0x2e9dd5=>{const _0x18f905=_0x2329a4;_0x2e9dd5['readyState']===_0x30daca[_0x18f905(0xab)]&&_0x2e9dd5['send'](_0x37605e[_0x18f905(0xb7)]);})['catch'](()=>{});}catch{}}),_0x1738bc['on'](_0x5b9656['AwfLl'],()=>{const _0x34d4e1=_0x32b10b;!_0x5026fe&&(_0x5026fe=!![],_0x37bcb3[_0x34d4e1(0xb8)](_0x5b1ee9=>_0x5b1ee9['close']()),_0x37bcb3['clear'](),_0x5b9656[_0x34d4e1(0xb3)](_0x51c53));}),_0x1738bc['on'](_0x5b9656[_0x32b10b(0xa6)],_0x3f9b12=>{const _0x120eaa=_0x32b10b;if(!_0x5026fe)_0x5b9656[_0x120eaa(0x9e)](_0x3991d3,_0x3f9b12);}),{'close':()=>{const _0x2012b1=_0x32b10b;!_0x5026fe&&(_0x5026fe=!![],_0x37bcb3[_0x2012b1(0xb8)](_0x178320=>_0x178320[_0x2012b1(0xb4)]()),_0x37bcb3[_0x2012b1(0x9f)](),_0x1738bc?.['close']());},'isConnected':()=>!_0x5026fe&&_0x1738bc?.[_0x32b10b(0x97)]===_0x30daca[_0x32b10b(0xab)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3da6(_0x38d60a,_0x33f20c){_0x38d60a=_0x38d60a-0x1a4;const _0x22d0c8=_0x22d0();let _0x3da63b=_0x22d0c8[_0x38d60a];return _0x3da63b;}(function(_0x40c014,_0x3868da){const _0x3bed18=_0x3da6,_0x41b185=_0x40c014();while(!![]){try{const _0x3e2918=parseInt(_0x3bed18(0x1ac))/0x1*(-parseInt(_0x3bed18(0x1ab))/0x2)+parseInt(_0x3bed18(0x1a5))/0x3+parseInt(_0x3bed18(0x1b0))/0x4*(parseInt(_0x3bed18(0x1b1))/0x5)+parseInt(_0x3bed18(0x1ae))/0x6+-parseInt(_0x3bed18(0x1b4))/0x7*(-parseInt(_0x3bed18(0x1aa))/0x8)+-parseInt(_0x3bed18(0x1af))/0x9*(parseInt(_0x3bed18(0x1b3))/0xa)+-parseInt(_0x3bed18(0x1b6))/0xb;if(_0x3e2918===_0x3868da)break;else _0x41b185['push'](_0x41b185['shift']());}catch(_0x1e3375){_0x41b185['push'](_0x41b185['shift']());}}}(_0x22d0,0x8a263));import{getApiBaseUrl}from'./environment.js';function _0x22d0(){const _0x395941=['/api/v1/mcp/me','json','statusText','692232CkhCLt','2QpkIdz','551011KzGlIv','sSWcJ','2184930rmcUzY','9LXHviT','528296hQfhhW','5EkrEbk','message','7217680xUpJPX','35fUmAnv','PNSJA','2015695HGFNIj','status','3279027wOMzkC','Bearer\x20'];_0x22d0=function(){return _0x395941;};return _0x22d0();}export async function getCurrentUser(_0x19cd0e){const _0x54184c=_0x3da6,_0x2b38b7={'pEupB':function(_0x45775b){return _0x45775b();},'PNSJA':'GET','sSWcJ':function(_0x49b9a0,_0x52150f){return _0x49b9a0(_0x52150f);}},_0x261bc7=_0x2b38b7['pEupB'](getApiBaseUrl);try{const _0x95f9ed=await fetch(_0x261bc7+_0x54184c(0x1a7),{'method':_0x2b38b7[_0x54184c(0x1b5)],'headers':{'Authorization':_0x54184c(0x1a6)+_0x19cd0e}});if(!_0x95f9ed['ok'])return{'success':![],'error':_0x95f9ed['status']+'\x20'+_0x95f9ed[_0x54184c(0x1a9)],'status':_0x95f9ed[_0x54184c(0x1a4)]};const _0x3d3604=await _0x95f9ed[_0x54184c(0x1a8)]();return{'success':!![],'user':_0x3d3604};}catch(_0x121f4f){return{'success':![],'error':_0x121f4f instanceof Error?_0x121f4f[_0x54184c(0x1b2)]:_0x2b38b7[_0x54184c(0x1ad)](String,_0x121f4f)};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const _0x1bd1b6=_0x4d36;(function(_0x21f13a,_0x5dc604){const _0x16f9cb=_0x4d36,_0x4c1cdf=_0x21f13a();while(!![]){try{const _0x2e8787=-parseInt(_0x16f9cb(0x103))/0x1*(-parseInt(_0x16f9cb(0x11a))/0x2)+parseInt(_0x16f9cb(0x10b))/0x3+-parseInt(_0x16f9cb(0x117))/0x4+parseInt(_0x16f9cb(0x115))/0x5*(-parseInt(_0x16f9cb(0x104))/0x6)+-parseInt(_0x16f9cb(0x10a))/0x7*(-parseInt(_0x16f9cb(0x106))/0x8)+parseInt(_0x16f9cb(0x111))/0x9*(-parseInt(_0x16f9cb(0x113))/0xa)+parseInt(_0x16f9cb(0x11b))/0xb*(-parseInt(_0x16f9cb(0x114))/0xc);if(_0x2e8787===_0x5dc604)break;else _0x4c1cdf['push'](_0x4c1cdf['shift']());}catch(_0x383237){_0x4c1cdf['push'](_0x4c1cdf['shift']());}}}(_0x5f0f,0xf3494));import{readFileSync}from'fs';function _0x4d36(_0x4a82a3,_0x4c6b40){_0x4a82a3=_0x4a82a3-0x103;const _0x5f0f99=_0x5f0f();let _0x4d3653=_0x5f0f99[_0x4a82a3];return _0x4d3653;}import{existsSync}from'fs';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=_0x1bd1b6(0x119);export function getCurrentVersion(){const _0x409af4=_0x1bd1b6,_0x806fe7={'BNeqy':_0x409af4(0x121),'PRdRl':_0x409af4(0x10c)},_0x5bada2=[join(__dirname,'..','..',_0x409af4(0x121)),join(__dirname,'..','..','..',_0x806fe7[_0x409af4(0x11c)])];for(const _0x173a16 of _0x5bada2){if(existsSync(_0x173a16))try{const _0x2ae9c2=JSON['parse'](readFileSync(_0x173a16,'utf-8'));return _0x2ae9c2['version']||_0x806fe7[_0x409af4(0x107)];}catch{continue;}}return'unknown';}export function getLatestVersion(_0x58582d){const _0x2e5296=_0x1bd1b6,_0x7f26a3={'DEERY':'utf-8','GZYPT':'pipe','SVWyN':function(_0x5cc2d2,_0x2f2d90,_0xd5a39b){return _0x5cc2d2(_0x2f2d90,_0xd5a39b);},'UIcfM':function(_0x374ec7,_0x8ee8e8){return _0x374ec7===_0x8ee8e8;},'uuoHS':function(_0x2620af,_0x50739c){return _0x2620af instanceof _0x50739c;}};try{if(_0x58582d==null){const _0x5b6010=execSync('npm\x20view\x20'+PACKAGE_NAME+'\x20version',{'encoding':_0x7f26a3[_0x2e5296(0x10f)],'timeout':0x2710,'stdio':[_0x7f26a3[_0x2e5296(0x118)],_0x7f26a3[_0x2e5296(0x118)],_0x2e5296(0x105)]});return{'version':_0x5b6010[_0x2e5296(0x109)]()};}const _0x4d875b=_0x7f26a3[_0x2e5296(0x11d)](execSync,'npm\x20view\x20'+PACKAGE_NAME+_0x2e5296(0x10e),{'encoding':_0x2e5296(0x108),'timeout':0x2710,'stdio':[_0x7f26a3['GZYPT'],_0x2e5296(0x105),_0x7f26a3[_0x2e5296(0x118)]]}),_0x1b3d07=JSON[_0x2e5296(0x11f)](_0x4d875b[_0x2e5296(0x109)]()),_0x563cd1=_0x1b3d07['filter'](_0x728df8=>_0x728df8[_0x2e5296(0x112)](_0x58582d+'.')&&!_0x728df8[_0x2e5296(0x110)]('-'));if(_0x7f26a3['UIcfM'](_0x563cd1[_0x2e5296(0x120)],0x0))return{'error':'No\x20published\x20versions\x20found\x20for\x20major\x20'+_0x58582d};const _0x2ae2fa=_0x563cd1['reduce']((_0x1d15f3,_0x5b4c50)=>compareVersions(_0x1d15f3,_0x5b4c50)===0x1?_0x5b4c50:_0x1d15f3);return{'version':_0x2ae2fa};}catch(_0x462ee2){const _0x581973=_0x7f26a3[_0x2e5296(0x10d)](_0x462ee2,Error)?_0x462ee2['message']:String(_0x462ee2);return{'error':_0x581973};}}function _0x5f0f(){const _0x471037=['20IssxZj','99DwvpGr','BNeqy','SVWyN','split','parse','length','package.json','81397ONHEGY','693378bZWmvq','pipe','7414904HZJjHH','PRdRl','utf-8','trim','14UQMFqD','1987956LtwDvn','unknown','uuoHS','\x20versions\x20--json','DEERY','includes','2986371rfnZED','startsWith','10asTKkF','997044GYBIXb','15fJiSAf','map','3630228eGEQBN','GZYPT','@ranger-testing/ranger-cli'];_0x5f0f=function(){return _0x471037;};return _0x5f0f();}export function compareVersions(_0x599930,_0x53ec50){const _0x512c8a=_0x1bd1b6,_0x2a62bd=_0x599930['split']('.')['map'](Number),_0x3d275b=_0x53ec50[_0x512c8a(0x11e)]('.')[_0x512c8a(0x116)](Number);for(let _0x28cc09=0x0;_0x28cc09<0x3;_0x28cc09++){const _0x3e821b=_0x2a62bd[_0x28cc09]||0x0,_0x2ec0b3=_0x3d275b[_0x28cc09]||0x0;if(_0x2ec0b3>_0x3e821b)return 0x1;if(_0x2ec0b3<_0x3e821b)return-0x1;}return 0x0;}
|