@ranger-testing/ranger-cli 3.1.0 → 3.1.1-alpha.08fb70e-39

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.
Files changed (85) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/deleteProfile.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -1
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -1
  43. package/build/commands/utils/cloudProfileSession.js +1 -1
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -1
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -1
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/novaActCli.js +1 -1
  58. package/build/commands/utils/opencodeConfig.js +1 -1
  59. package/build/commands/utils/organizationEnvApi.js +1 -1
  60. package/build/commands/utils/playwrightCli.js +1 -1
  61. package/build/commands/utils/profileMessages.js +1 -1
  62. package/build/commands/utils/profileSetupBanner.js +1 -1
  63. package/build/commands/utils/projectsConfig.js +1 -1
  64. package/build/commands/utils/rangerConfig.js +1 -1
  65. package/build/commands/utils/rangerRoot.js +1 -1
  66. package/build/commands/utils/rangerwrightCli.js +1 -1
  67. package/build/commands/utils/resolveProfileContext.js +1 -1
  68. package/build/commands/utils/resolveProfileUrl.js +1 -1
  69. package/build/commands/utils/retry.js +1 -1
  70. package/build/commands/utils/sessionCache.js +1 -1
  71. package/build/commands/utils/settings.js +1 -1
  72. package/build/commands/utils/skillContent.js +1 -1
  73. package/build/commands/utils/skills.js +1 -1
  74. package/build/commands/utils/stitchWebmFiles.js +1 -1
  75. package/build/commands/utils/telemetry.js +1 -1
  76. package/build/commands/utils/tokenRefresh.js +1 -1
  77. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  78. package/build/commands/utils/tunnelClient.js +1 -1
  79. package/build/commands/utils/userApi.js +1 -1
  80. package/build/commands/utils/version.js +1 -1
  81. package/build/commands/verifyFeature.js +1 -1
  82. package/build/commands/verifyFeatureCli.js +1 -1
  83. package/build/commands/verifyFeatureNovaCli.js +1 -1
  84. package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
  85. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x2d2da2,_0x504ce3){const _0x51ba31=_0x3e23,_0x105f82=_0x2d2da2();while(!![]){try{const _0x2040ab=parseInt(_0x51ba31(0xb3))/0x1*(parseInt(_0x51ba31(0xba))/0x2)+parseInt(_0x51ba31(0x100))/0x3*(parseInt(_0x51ba31(0xdd))/0x4)+-parseInt(_0x51ba31(0xc6))/0x5+-parseInt(_0x51ba31(0xbf))/0x6+-parseInt(_0x51ba31(0xfc))/0x7*(-parseInt(_0x51ba31(0xb7))/0x8)+parseInt(_0x51ba31(0xf1))/0x9+-parseInt(_0x51ba31(0xf0))/0xa*(parseInt(_0x51ba31(0xd5))/0xb);if(_0x2040ab===_0x504ce3)break;else _0x105f82['push'](_0x105f82['shift']());}catch(_0x214701){_0x105f82['push'](_0x105f82['shift']());}}}(_0x4e74,0x5c0ce));import{readdir,rm}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import _0x1ba835 from'inquirer';import{getRangerDir,getRangerHomeDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{fetchAuthConfig,createCloudProfile,manualBrowserLogin,ApiError}from'./utils/cloudProfile.js';import{isInteractive}from'./utils/cloudProfileSession.js';import{matchAuthEnvironment}from'./utils/matchAuthEnvironment.js';import{isPathGitTracked}from'./utils/gitTracked.js';import{setProfileOverride}from'./utils/projectsConfig.js';function _0x4e74(){const _0x1b1600=['\x0a\x20\x20Failed\x20to\x20create\x20cloud\x20profile\x20\x22','120354SYPKXP','length','slice','gUOxG','cdpEndpoint','mOPCr','rWOfk','setupHeaders','gTEtZ','\x20\x20To\x20get\x20automated\x20login\x20set\x20up\x20for\x20your\x20team\x20(a\x20one-time\x20call):\x20eng@ranger.net\x0a','\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20','\x27\x20created.\x0a','force','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','setupHeader','for\x20you,\x20so\x20the\x20encrypted-CI\x20flow\x20is\x20unnecessary.\x0a','UyDtQ','trim','\x20\x20Note:\x20cloud\x20profile\x20created,\x20but\x20failed\x20to\x20sweep\x20orphan\x20local\x20dirs\x20(','name','GsaDQ','gLRtK','What\x20would\x20you\x20like\x20to\x20do?','isProtocolError','wVolZ','✓\x20Cloud\x20profile\x20\x27','action','domains','\x0a\x20\x20Automated\x20login\x20isn\x27t\x20set\x20up\x20for\x20your\x20team\x20yet\x20—\x20that\x27s\x20the\x20path\x20that\x20lets\x20Ranger\x20log\x20into\x20your\x20app\x20for\x20you\x20in\x20CI\x20/\x20background\x20agents.\x0a','keys','\x20\x20Set\x20active\x20profile:\x20','DExET','Enter\x20a\x20different\x20URL','startsWith','DIBPr','origin','trackPhaseEnd','TlTCM','CkazP','\x0a\x20\x20Could\x20not\x20reach\x20','NCXVp','vVyPG','environments','user_declined','\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a','VbVtD','\x0a\x20\x20A\x20profile\x20named\x20\x22','oMOAl','617PWcxAg','saveToCloud','ADFHf','wqutF','48xWYuPZ','log','fetch\x20failed','248dqkgzv','GTkyU','XtpDH','GCFVR','cwrJC','3759336caVXsa','GCBZk','no_auth_config','includes','What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','capture','\x27\x20to\x20the\x20cloud?','395205fXMifU','Found\x20auth\x20environment\x20\x27','fKgfU','NODE_TLS_REJECT_UNAUTHORIZED','url','hduFP','continue','join','Oqwxv','\x22:\x20','message','\x20(continuing\x20with\x20--force)','\x20\x20Workaround\x20for\x20now:\x20create\x20a\x20profile\x20without\x20a\x20captured\x20session\x20and\x20supply\x20one\x20later:\x0a','vddJL','orDSj','11ydvBGH','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','prompt','yVGPl','env','\x0a🌐\x20Profile\x20Setup\x0a','retry','\x20—\x20not\x20removing.\x20Delete\x20manually\x20if\x20you\x20want\x20it\x20gone.','24gTLfJp','status','baseUrl','profile.add.autoRouteSkipped','KjZdv','test','\x0a\x20\x20Cloud\x20profile\x20created,\x20but\x20failed\x20to\x20write\x20per-cwd\x20CDP\x20override\x20to\x20projects.json:\x20','indexOf','some','dCtFE','\x20\x20Did\x20you\x20mean\x20','oJLbG','UMDXV','vXFLy','TypeError','--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','profile.add.autoRouted','sZpvg','6249180fPDdHF','5892741YiAsVt',')\x0a\x20\x20Save\x20\x27','CRAfW','YKuDX','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20','exit','HEAD','\x20\x20https://docs.ranger.net/main/concepts/profiles','iXHik','stdout','✓\x20Profile\x20\x27','858186vweWOa','\x20\x20Next:\x20ranger\x20go\x20--profile\x20','error'];_0x4e74=function(){return _0x1b1600;};return _0x4e74();}const CLOUD_PROFILE_SHARING_WARNING='This\x20account\x20will\x20be\x20shared\x20with\x20everyone\x20at\x20your\x20organization';function warnCloudProfileSharedInOrg(){const _0x2ca735=_0x3e23;if(!process[_0x2ca735(0xfa)]['isTTY'])return;console['warn'](CLOUD_PROFILE_SHARING_WARNING);}async function checkUrlReachability(_0x36b13a){const _0x1efde1=_0x3e23,_0x4ceced={'SSiqt':_0x1efde1(0xf7),'orDSj':'manual','UyDtQ':function(_0x139627,_0xa031af,_0x260ad6){return _0x139627(_0xa031af,_0x260ad6);},'ePUiG':function(_0x8ce0a4,_0xe1d674){return _0x8ce0a4<_0xe1d674;},'vddJL':function(_0xb3d24f,_0x288755){return _0xb3d24f(_0x288755);},'hduFP':'Invalid\x20URL'};try{const _0x4e9437=new AbortController(),_0x189bf2=setTimeout(()=>_0x4e9437['abort'](),0x1388),_0x26ecab={'method':_0x4ceced['SSiqt'],'signal':_0x4e9437['signal'],'redirect':_0x4ceced[_0x1efde1(0xd4)]};/^https:\/\/localhost(:\d+)?/i['test'](_0x36b13a)&&(process['env']['NODE_TLS_REJECT_UNAUTHORIZED']='0');const _0x49d856=await _0x4ceced[_0x1efde1(0x110)](fetch,_0x36b13a,_0x26ecab);delete process[_0x1efde1(0xd9)][_0x1efde1(0xc9)],clearTimeout(_0x189bf2);if(_0x4ceced['ePUiG'](_0x49d856[_0x1efde1(0xde)],0x190))return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x49d856[_0x1efde1(0xde)]};}catch(_0x400628){delete process[_0x1efde1(0xd9)]['NODE_TLS_REJECT_UNAUTHORIZED'];const _0x1ea621=_0x400628,_0x1fee16=_0x1ea621[_0x1efde1(0xd0)]||_0x4ceced[_0x1efde1(0xd3)](String,_0x400628),_0x238fc3=_0x1fee16[_0x1efde1(0xc2)](_0x4ceced[_0x1efde1(0xcb)])||_0x1ea621[_0x1efde1(0x113)]===_0x1efde1(0xeb)||_0x1fee16['includes'](_0x1efde1(0xb9));return{'ok':![],'error':_0x1fee16,'isProtocolError':_0x238fc3};}}async function sweepOrphanLocalProfile(_0x1efa76,_0x54639b,_0x139d2b){const _0x12da4b=_0x3e23,_0x3fd7d7={'YgRwv':function(_0x56d6aa,_0x435652){return _0x56d6aa(_0x435652);},'dCtFE':function(_0x3fa432,_0x5eabf0,_0x3350e0){return _0x3fa432(_0x5eabf0,_0x3350e0);}},_0x5e7c46=join(_0x54639b,'local'),_0x32a945=join(_0x5e7c46,_0x1efa76);existsSync(_0x32a945)&&(_0x139d2b&&await isPathGitTracked(_0x32a945)?console[_0x12da4b(0xb8)]('\x20\x20Note:\x20found\x20git-tracked\x20local\x20profile\x20at\x20'+_0x32a945+_0x12da4b(0xdc)):(await rm(_0x32a945,{'recursive':!![],'force':!![]}),console[_0x12da4b(0xb8)](_0x12da4b(0x10a)+_0x32a945)));if(existsSync(_0x5e7c46)){let _0xfaf4d2=[];try{_0xfaf4d2=await _0x3fd7d7['YgRwv'](readdir,_0x5e7c46);}catch{return;}const _0x265989='.tmp-'+_0x1efa76+'-';for(const _0x36dc8b of _0xfaf4d2){if(!_0x36dc8b[_0x12da4b(0x121)](_0x265989))continue;const _0x4daf75=_0x3fd7d7['dCtFE'](join,_0x5e7c46,_0x36dc8b);await _0x3fd7d7[_0x12da4b(0xe6)](rm,_0x4daf75,{'recursive':!![],'force':!![]}),console[_0x12da4b(0xb8)](_0x12da4b(0x10a)+_0x4daf75);}}}async function sweepOrphansBestEffort(_0x4fff3a){const _0x321747=_0x3e23,_0x44ef41={'IXbJh':function(_0x32f5a5,_0x2c52dc,_0x554a10,_0x2f339b){return _0x32f5a5(_0x2c52dc,_0x554a10,_0x2f339b);},'CEQUz':function(_0x1a3fb9){return _0x1a3fb9();},'fKgfU':function(_0x2a6694){return _0x2a6694();},'oMOAl':function(_0x380ee3){return _0x380ee3();},'eYwOn':function(_0x3e22b3,_0x4707b,_0x3fd30f,_0x324fe3){return _0x3e22b3(_0x4707b,_0x3fd30f,_0x324fe3);}};try{await _0x44ef41['IXbJh'](sweepOrphanLocalProfile,_0x4fff3a,_0x44ef41['CEQUz'](getRangerHomeDir),![]);const _0x72de0f=_0x44ef41[_0x321747(0xc8)](getRangerDir);_0x72de0f!==_0x44ef41[_0x321747(0xb2)](getRangerHomeDir)&&await _0x44ef41['eYwOn'](sweepOrphanLocalProfile,_0x4fff3a,_0x72de0f,!![]);}catch(_0x439a06){console[_0x321747(0xb8)](_0x321747(0x112)+(_0x439a06 instanceof Error?_0x439a06['message']:String(_0x439a06))+').');}}async function markActive(_0x4a2426){const _0x553288=_0x3e23,_0x1615ef={'sZpvg':'Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.'};try{await writeActiveProfileName(_0x4a2426),console['log'](_0x553288(0x11e)+_0x4a2426);}catch{console['log'](_0x1615ef[_0x553288(0xef)]);}}async function tryAutoRouteCloudProfile(_0x1fd22b,_0x50249b,_0x9f764d,_0x229cd2,_0x27e5c3){const _0x5c2e65=_0x3e23,_0x237c53={'iXHik':function(_0x18e66a,_0xaece67){return _0x18e66a===_0xaece67;},'YKuDX':'profile.add.autoRouteSkipped','CkazP':function(_0x48e80d,_0x5e5691,_0x26057f,_0x183f23,_0x26b45e){return _0x48e80d(_0x5e5691,_0x26057f,_0x183f23,_0x26b45e);},'vVyPG':_0x5c2e65(0xc1),'DIBPr':function(_0x11cb3a,_0x3c2d92){return _0x11cb3a+_0x3c2d92;},'cfkDv':function(_0x5b5eaa,_0x3429a3){return _0x5b5eaa+_0x3429a3;},'ivuub':_0x5c2e65(0x11c),'sCiZo':_0x5c2e65(0xd2),'RZINF':_0x5c2e65(0x109),'UHjli':'\x20\x20Details:\x20https://docs.ranger.net/main/concepts/profiles#automated-login','cwrJC':function(_0x2666e5,_0x50d8b3,_0x534b0a){return _0x2666e5(_0x50d8b3,_0x534b0a);},'IdITU':'user_declined','rWOfk':function(_0xf372ac,_0xe1698d,_0x416b9d,_0x1b8dee){return _0xf372ac(_0xe1698d,_0x416b9d,_0x1b8dee);},'GCFVR':function(_0x4ddaea,_0x9745d7){return _0x4ddaea(_0x9745d7);},'CsLEc':_0x5c2e65(0xee)};let _0x2ac24d;try{_0x2ac24d=await fetchAuthConfig();}catch(_0x541617){return _0x27e5c3?.['trackPhaseEnd'](_0x237c53[_0x5c2e65(0xf4)],{'reason':'no_auth_config','profileName':_0x1fd22b}),console['error']('\x0a\x20\x20Could\x20not\x20fetch\x20this\x20org\x27s\x20auth\x20config:\x20'+(_0x541617 instanceof Error?_0x541617['message']:String(_0x541617))),![];}if(!_0x2ac24d||!_0x2ac24d['environments']||_0x237c53['iXHik'](Object[_0x5c2e65(0x11d)](_0x2ac24d[_0x5c2e65(0x12a)])[_0x5c2e65(0x101)],0x0)){if(_0x229cd2)return await _0x237c53[_0x5c2e65(0x126)](captureEnvLessProfile,_0x1fd22b,_0x50249b,_0x9f764d,_0x27e5c3);return _0x27e5c3?.[_0x5c2e65(0x124)](_0x237c53['YKuDX'],{'reason':_0x237c53[_0x5c2e65(0x129)],'profileName':_0x1fd22b}),console[_0x5c2e65(0xfe)](_0x237c53[_0x5c2e65(0x122)](_0x237c53['cfkDv'](_0x237c53[_0x5c2e65(0x122)](_0x237c53['cfkDv'](_0x237c53['ivuub'],'\x0a')+_0x237c53['sCiZo'],'\x20\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20'+_0x1fd22b+'\x20--url\x20'+_0x50249b+'\x20--skip-auth\x0a'),'\x0a'),_0x237c53['RZINF'])+_0x237c53['UHjli']),![];}const _0x41090c=_0x237c53[_0x5c2e65(0xbe)](matchAuthEnvironment,_0x50249b,_0x2ac24d);if(!_0x41090c)return _0x27e5c3?.[_0x5c2e65(0x124)]('profile.add.autoRouteSkipped',{'reason':'no_match','profileName':_0x1fd22b}),console['error']('\x0a\x20\x20No\x20auth\x20env\x20matches\x20'+_0x50249b+'.\x20Configured\x20envs:\x20'+Object['keys'](_0x2ac24d['environments'])['join'](',\x20')+'.'),![];const _0x168624=_0x2ac24d['environments'][_0x41090c],_0x19b14c=_0x168624?.[_0x5c2e65(0x11b)]??[];if(_0x229cd2&&!_0x9f764d['yes']){const {saveToCloud:_0x110d1b}=await _0x1ba835[_0x5c2e65(0xd7)]([{'type':'confirm','name':_0x5c2e65(0xb4),'message':_0x5c2e65(0xc7)+_0x41090c+'\x27\x20matching\x20'+_0x50249b+'\x0a\x20\x20(domains:\x20'+_0x19b14c[_0x5c2e65(0xcd)](',\x20')+_0x5c2e65(0xf2)+_0x1fd22b+_0x5c2e65(0xc5),'default':!![]}]);if(!_0x110d1b)return _0x27e5c3?.['trackPhaseEnd']('profile.add.autoRouteSkipped',{'reason':_0x237c53['IdITU'],'profileName':_0x1fd22b}),console['error']('\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20cloud-managed\x20session.'),![];}const _0x270a90=_0x19b14c[_0x5c2e65(0xe5)](_0x4c1931=>{const _0x4b530d=_0x5c2e65;try{return _0x237c53[_0x4b530d(0xf9)](new URL(_0x4c1931)[_0x4b530d(0x123)],new URL(_0x50249b)['origin']);}catch{return![];}}),_0x425085={};!_0x270a90&&(_0x425085['baseUrl']=_0x50249b);try{await _0x237c53[_0x5c2e65(0x106)](createCloudProfile,_0x1fd22b,_0x41090c,{'settings':_0x425085}),warnCloudProfileSharedInOrg();}catch(_0x362775){if(_0x362775 instanceof ApiError&&_0x362775['status']===0x199){console['error']('\x0a\x20\x20A\x20profile\x20named\x20\x22'+_0x1fd22b+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a'+(_0x5c2e65(0xf5)+_0x1fd22b));throw _0x362775;}throw _0x362775;}return console['log']('✓\x20Profile\x20\x27'+_0x1fd22b+_0x5c2e65(0x10b)+('\x20\x20Next:\x20ranger\x20go\x20--profile\x20'+_0x1fd22b)),await _0x237c53[_0x5c2e65(0xbd)](sweepOrphansBestEffort,_0x1fd22b),_0x27e5c3?.['trackPhaseEnd'](_0x237c53['CsLEc'],{'envKey':_0x41090c,'profileName':_0x1fd22b}),!![];}function _0x3e23(_0xb21070,_0x372a5e){_0xb21070=_0xb21070-0xae;const _0x4e74cd=_0x4e74();let _0x3e2316=_0x4e74cd[_0xb21070];return _0x3e2316;}async function createUnconfiguredCloudProfile(_0x17cdd7,_0xc0da3b){const _0xc8539e=_0x3e23,_0x614304={'GTkyU':function(_0xa0e702,_0x42012b,_0x583a00,_0x597cc7){return _0xa0e702(_0x42012b,_0x583a00,_0x597cc7);},'JeNIg':function(_0x21cf50,_0x19542f){return _0x21cf50 instanceof _0x19542f;},'gTEtZ':function(_0x5359d6,_0x14831a){return _0x5359d6===_0x14831a;}};try{await _0x614304[_0xc8539e(0xbb)](createCloudProfile,_0x17cdd7,undefined,{'settings':_0xc0da3b}),warnCloudProfileSharedInOrg();}catch(_0x1d3f86){_0x614304['JeNIg'](_0x1d3f86,ApiError)&&_0x614304[_0xc8539e(0x108)](_0x1d3f86['status'],0x199)&&console['error'](_0xc8539e(0xb1)+_0x17cdd7+_0xc8539e(0xaf)+('\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x17cdd7));throw _0x1d3f86;}}async function captureEnvLessProfile(_0x598497,_0x583512,_0x5d9c74,_0x115d4b){const _0x5d2dc8=_0x3e23,_0x55b428={'cBrfl':'confirm','WrJEr':_0x5d2dc8(0xc4),'NCXVp':'Automated\x20login\x20isn\x27t\x20set\x20up\x20for\x20your\x20team.\x20Capture\x20a\x20session\x20via\x20a\x20headed\x20browser\x20instead?','GDjoB':_0x5d2dc8(0xe0),'BonOF':function(_0x506844,_0x31942e){return _0x506844>_0x31942e;},'Oqwxv':function(_0x2a0ab0,_0x482689,_0x2a6d50,_0x71e015){return _0x2a0ab0(_0x482689,_0x2a6d50,_0x71e015);},'vXFLy':function(_0x1390f7,_0x42ac2f){return _0x1390f7 instanceof _0x42ac2f;},'UMDXV':function(_0x16901a,_0xb6a468){return _0x16901a===_0xb6a468;},'GBWBK':function(_0x34ef2a,_0x1953be,_0x4f4d59){return _0x34ef2a(_0x1953be,_0x4f4d59);},'yVGPl':function(_0x2289d6,_0x2234f6){return _0x2289d6+_0x2234f6;},'oJLbG':function(_0x1bfe5a,_0x335d60){return _0x1bfe5a(_0x335d60);},'DhEHq':'profile.add.autoRouted'};if(!_0x5d9c74['yes']){const {capture:_0x4a567a}=await _0x1ba835['prompt']([{'type':_0x55b428['cBrfl'],'name':_0x55b428['WrJEr'],'message':_0x55b428[_0x5d2dc8(0x128)],'default':!![]}]);if(!_0x4a567a)return _0x115d4b?.['trackPhaseEnd'](_0x55b428['GDjoB'],{'reason':_0x5d2dc8(0xae),'profileName':_0x598497}),console[_0x5d2dc8(0xfe)]('\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20session,\x0a'+'\x20\x20or\x20contact\x20eng@ranger.net\x20to\x20set\x20up\x20automated\x20login\x20for\x20your\x20team.'),![];}const _0x291215={};if(_0x5d9c74[_0x5d2dc8(0x10e)])for(const _0x553cd2 of _0x5d9c74['setupHeader']){const _0x5dcd7c=_0x553cd2[_0x5d2dc8(0xe4)](':');if(_0x5dcd7c===-0x1)continue;_0x291215[_0x553cd2[_0x5d2dc8(0x102)](0x0,_0x5dcd7c)['trim']()]=_0x553cd2['slice'](_0x5dcd7c+0x1)[_0x5d2dc8(0x111)]();}const _0x103f2c={'baseUrl':_0x583512};_0x55b428['BonOF'](Object['keys'](_0x291215)['length'],0x0)&&(_0x103f2c[_0x5d2dc8(0x107)]=_0x291215);let _0xcfa31f;try{_0xcfa31f=await _0x55b428[_0x5d2dc8(0xce)](createCloudProfile,_0x598497,undefined,{'settings':_0x103f2c}),warnCloudProfileSharedInOrg();}catch(_0x484fd9){_0x55b428[_0x5d2dc8(0xea)](_0x484fd9,ApiError)&&_0x55b428[_0x5d2dc8(0xe9)](_0x484fd9[_0x5d2dc8(0xde)],0x199)&&console['error'](_0x5d2dc8(0xb1)+_0x598497+_0x5d2dc8(0xaf)+(_0x5d2dc8(0xf5)+_0x598497));throw _0x484fd9;}return await _0x55b428['GBWBK'](manualBrowserLogin,_0xcfa31f,{'key':'','domains':[_0x583512],'setupHeaders':Object[_0x5d2dc8(0x11d)](_0x291215)['length']>0x0?_0x291215:undefined}),console[_0x5d2dc8(0xb8)](_0x55b428[_0x5d2dc8(0xd8)]('\x0a✓\x20Profile\x20\x27'+_0x598497+'\x27\x20created\x20with\x20a\x20captured\x20session.\x0a',_0x5d2dc8(0xfd)+_0x598497)),await _0x55b428[_0x5d2dc8(0xe8)](sweepOrphansBestEffort,_0x598497),_0x115d4b?.[_0x5d2dc8(0x124)](_0x55b428['DhEHq'],{'envKey':null,'profileName':_0x598497}),!![];}export async function addEnv(_0x52f017,_0x159572={},_0x33f6ce){const _0x157f17=_0x3e23,_0x4f0175={'gUOxG':function(_0x5ce36d,_0x575cf6){return _0x5ce36d+_0x575cf6;},'XtpDH':function(_0x50cf4b,_0x189f04){return _0x50cf4b+_0x189f04;},'SaMIK':function(_0x12c3a3,_0x6ffd66){return _0x12c3a3+_0x6ffd66;},'GCBZk':function(_0x1ca4dd,_0x5d8ef9){return _0x1ca4dd+_0x5d8ef9;},'CRAfW':function(_0x1fdb4a,_0x5e794e){return _0x1fdb4a!==_0x5e794e;},'mOPCr':function(_0x5b1f19,_0x540458){return _0x5b1f19===_0x540458;},'wVolZ':_0x157f17(0xec),'ADFHf':function(_0x580c3a,_0x7222db){return _0x580c3a(_0x7222db);},'hNwIC':'Please\x20provide\x20--url\x20when\x20running\x20in\x20non-interactive\x20mode.\x0aMake\x20sure\x20the\x20service\x20is\x20running\x20on\x20that\x20port\x20before\x20retrying.\x0aExample:\x20ranger\x20profile\x20add\x20local\x20--url\x20http://localhost:3000','hnMqO':function(_0x39c49f,_0x13489d,_0x20b599){return _0x39c49f(_0x13489d,_0x20b599);},'TlTCM':'isElectron','DExET':function(_0x297edb,_0x43627a){return _0x297edb(_0x43627a);},'gLRtK':function(_0x3c2e93,_0x8c4ec3){return _0x3c2e93>_0x8c4ec3;},'Xytcg':_0x157f17(0xda),'XYJQh':'\x20\x20Ranger\x20will\x20use\x20it\x20to\x20look\x20up\x20the\x20right\x20cloud\x20auth\x20env\x20to\x20attach.\x0a','xXvEQ':_0x157f17(0xdf),'tlHHS':'Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','FtGQk':'http://localhost:3000','wqutF':_0x157f17(0x11a),'GsaDQ':'use_suggestion','fitKh':_0x157f17(0x120),'VKMyW':_0x157f17(0xdb),'WCyFJ':'Continue\x20anyway','TpUPF':'continue','KjZdv':function(_0x55d6d3,_0xc8a9f0){return _0x55d6d3 instanceof _0xc8a9f0;},'VbVtD':function(_0x3c3e8a,_0x57a8d6){return _0x3c3e8a(_0x57a8d6);},'NQLtR':function(_0x14bfe5,_0x4138f3){return _0x14bfe5(_0x4138f3);}};_0x159572['ci']&&(console[_0x157f17(0xfe)](_0x4f0175['gUOxG'](_0x4f0175[_0x157f17(0x103)](_0x4f0175[_0x157f17(0xbc)](_0x4f0175['SaMIK'](_0x4f0175[_0x157f17(0xc0)]('The\x20--ci\x20flag\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x20session\x20state\x0a',_0x157f17(0x10f)),'\x0a'),'To\x20set\x20up\x20a\x20profile,\x20run:\x0a')+'\x20\x20ranger\x20profile\x20add\x20<name>\x0a','\x0a')+'For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a',_0x157f17(0xf8))),process['exit'](0x1));const _0x1fed01={};if(_0x159572[_0x157f17(0x10e)])for(const _0xbbcaef of _0x159572[_0x157f17(0x10e)]){const _0x89d3e0=_0xbbcaef[_0x157f17(0xe4)](':');if(_0x89d3e0===-0x1)throw new Error('Invalid\x20--setup-header\x20format:\x20\x22'+_0xbbcaef+'\x22.\x20Expected\x20\x22Name:\x20Value\x22.');const _0x430d26=_0xbbcaef['slice'](0x0,_0x89d3e0)['trim'](),_0x29d94c=_0xbbcaef['slice'](_0x4f0175[_0x157f17(0xc0)](_0x89d3e0,0x1))['trim']();_0x1fed01[_0x430d26]=_0x29d94c;}if(_0x4f0175[_0x157f17(0xf3)](_0x159572[_0x157f17(0x104)],undefined)&&_0x4f0175[_0x157f17(0x105)](_0x159572[_0x157f17(0x104)]['trim'](),''))throw new Error(_0x4f0175[_0x157f17(0x118)]);if(_0x159572[_0x157f17(0x104)]&&_0x159572['url'])throw new Error('--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.');const _0x33f645=_0x4f0175[_0x157f17(0xb5)](Boolean,_0x159572[_0x157f17(0x104)]),_0x35514d=isInteractive();if(!_0x35514d&&!_0x159572['url']&&!_0x33f645&&!_0x159572['skipAuth'])throw new Error(_0x4f0175['hNwIC']);if(_0x33f645){const _0x179114=_0x159572['cdpEndpoint'];console['log'](_0x157f17(0xed)),console[_0x157f17(0xb8)](_0x157f17(0xd6)+_0x179114);const _0x5dfdc9={'cdpEndpoint':_0x179114,'isElectron':!![]};Object['keys'](_0x1fed01)['length']>0x0&&(_0x5dfdc9[_0x157f17(0x107)]=_0x1fed01);await _0x4f0175['hnMqO'](createUnconfiguredCloudProfile,_0x52f017,_0x5dfdc9);try{setProfileOverride(process['cwd'](),_0x52f017,'cdpEndpoint',_0x179114),setProfileOverride(process['cwd'](),_0x52f017,_0x4f0175[_0x157f17(0x125)],!![]);}catch(_0x5cfd52){console['error'](_0x157f17(0xe3)+(_0x5cfd52 instanceof Error?_0x5cfd52['message']:String(_0x5cfd52)));}console[_0x157f17(0xb8)](_0x157f17(0x119)+_0x52f017+'\x27\x20created\x20(CDP).'),await sweepOrphansBestEffort(_0x52f017),await _0x4f0175[_0x157f17(0x11f)](markActive,_0x52f017);return;}if(_0x159572['skipAuth']){const _0x3c81f8={};_0x159572['url']&&(_0x3c81f8[_0x157f17(0xdf)]=_0x159572[_0x157f17(0xca)]);_0x4f0175[_0x157f17(0x115)](Object[_0x157f17(0x11d)](_0x1fed01)[_0x157f17(0x101)],0x0)&&(_0x3c81f8[_0x157f17(0x107)]=_0x1fed01);await createUnconfiguredCloudProfile(_0x52f017,_0x3c81f8),console['log'](_0x4f0175['gUOxG'](_0x157f17(0xfb)+_0x52f017+'\x27\x20created\x20(no\x20session).\x0a','\x20\x20When\x20you\x27re\x20ready\x20to\x20log\x20in,\x20run\x20`ranger\x20profile\x20add\x20'+_0x52f017+'`\x20again\x20without\x20--skip-auth.')),await _0x4f0175['ADFHf'](sweepOrphansBestEffort,_0x52f017),await _0x4f0175[_0x157f17(0x11f)](markActive,_0x52f017);return;}if(_0x159572[_0x157f17(0xca)]){const _0x4db355=_0x159572['url'],_0x2ea8ad=await checkUrlReachability(_0x4db355);if(!_0x2ea8ad['ok']&&!_0x159572['force'])throw new Error('Could\x20not\x20reach\x20'+_0x4db355+':\x20'+_0x2ea8ad[_0x157f17(0xfe)]+'\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.');!_0x2ea8ad['ok']&&_0x159572[_0x157f17(0x10c)]&&console[_0x157f17(0xb8)]('⚠\x20Could\x20not\x20reach\x20'+_0x4db355+':\x20'+_0x2ea8ad[_0x157f17(0xfe)]+_0x157f17(0xd1));}else{console['log'](_0x4f0175['Xytcg']),console['log'](_0x157f17(0x10d)),console[_0x157f17(0xb8)](_0x4f0175['XYJQh']);let _0x227ada='',_0x161bd1=![];while(!![]){const _0x2af1dd=await _0x1ba835['prompt']([{'type':'input','name':_0x4f0175['xXvEQ'],'message':_0x161bd1?_0x4f0175['tlHHS']:_0x157f17(0xc3),'default':_0x227ada||_0x4f0175['FtGQk']}]);_0x227ada=_0x2af1dd[_0x157f17(0xdf)];const _0xba4bd6=await checkUrlReachability(_0x227ada);if(_0xba4bd6['ok'])break;const _0x3397f5=/^[a-zA-Z][\w+.-]*:\/\//[_0x157f17(0xe2)](_0x227ada),_0x734c9e=_0xba4bd6[_0x157f17(0x117)]&&!_0x3397f5,_0x23c6e8=_0x734c9e?'http://'+_0x227ada:null;_0x161bd1=!![],console[_0x157f17(0xb8)](_0x157f17(0x127)+_0x227ada+':\x20'+_0xba4bd6['error']);_0x23c6e8&&console[_0x157f17(0xb8)](_0x157f17(0xe7)+_0x23c6e8+'?');const {action:_0x12fae8}=await _0x1ba835['prompt']([{'type':'list','name':_0x4f0175[_0x157f17(0xb6)],'message':_0x157f17(0x116),'choices':[..._0x23c6e8?[{'name':'Use\x20'+_0x23c6e8,'value':_0x4f0175['GsaDQ']}]:[],{'name':_0x4f0175['fitKh'],'value':_0x4f0175['VKMyW']},{'name':_0x4f0175['WCyFJ'],'value':_0x4f0175['TpUPF']}]}]);if(_0x12fae8===_0x4f0175[_0x157f17(0x114)]&&_0x23c6e8){_0x227ada=_0x23c6e8;const _0x143910=await checkUrlReachability(_0x227ada);if(_0x143910['ok'])break;console[_0x157f17(0xb8)]('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0x227ada+':\x20'+_0x143910[_0x157f17(0xfe)]);}else{if(_0x12fae8===_0x157f17(0xcc))break;}}_0x159572={..._0x159572,'url':_0x227ada};}let _0xc92a7c=![];try{_0xc92a7c=await tryAutoRouteCloudProfile(_0x52f017,_0x159572['url'],_0x159572,_0x35514d,_0x33f6ce);}catch(_0x3a4979){console[_0x157f17(0xfe)](_0x157f17(0xff)+_0x52f017+_0x157f17(0xcf)+(_0x4f0175[_0x157f17(0xe1)](_0x3a4979,Error)?_0x3a4979[_0x157f17(0xd0)]:_0x4f0175[_0x157f17(0xb0)](String,_0x3a4979))),process['exit'](0x1);}!_0xc92a7c&&process[_0x157f17(0xf6)](0x1),await _0x4f0175['NQLtR'](markActive,_0x52f017);}
1
+ (function(_0x4e1eb3,_0x57f2f8){const _0x20db23=_0x5422,_0x1d9afe=_0x4e1eb3();while(!![]){try{const _0x41bb66=parseInt(_0x20db23(0x13f))/0x1*(parseInt(_0x20db23(0x13e))/0x2)+parseInt(_0x20db23(0x155))/0x3*(parseInt(_0x20db23(0x15d))/0x4)+parseInt(_0x20db23(0x119))/0x5+-parseInt(_0x20db23(0x13a))/0x6+-parseInt(_0x20db23(0x132))/0x7+parseInt(_0x20db23(0x152))/0x8+-parseInt(_0x20db23(0x115))/0x9;if(_0x41bb66===_0x57f2f8)break;else _0x1d9afe['push'](_0x1d9afe['shift']());}catch(_0xcea12f){_0x1d9afe['push'](_0x1d9afe['shift']());}}}(_0x12b0,0xefb8a));import{readdir,rm}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import _0x2763b4 from'inquirer';import{getRangerDir,getRangerHomeDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{fetchAuthConfig,createCloudProfile,manualBrowserLogin,ApiError}from'./utils/cloudProfile.js';import{isInteractive}from'./utils/cloudProfileSession.js';function _0x5422(_0x3c539d,_0x4015e3){_0x3c539d=_0x3c539d-0xdf;const _0x12b07c=_0x12b0();let _0x5422b9=_0x12b07c[_0x3c539d];return _0x5422b9;}import{matchAuthEnvironment}from'./utils/matchAuthEnvironment.js';import{isPathGitTracked}from'./utils/gitTracked.js';import{setProfileOverride}from'./utils/projectsConfig.js';const CLOUD_PROFILE_SHARING_WARNING='This\x20account\x20will\x20be\x20shared\x20with\x20everyone\x20at\x20your\x20organization';function _0x12b0(){const _0x45e0e1=['10964072mOSqiC','test','Could\x20not\x20reach\x20','6GKgnUg','force','✓\x20Profile\x20\x27','signal','indexOf','\x20\x20https://docs.ranger.net/main/concepts/profiles','PVUQz','SsJzU','2982284raLCPy','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20','no_match','prompt','dmSZD','error','some','Wpanu','env','\x0a🌐\x20Profile\x20Setup\x0a','local','startsWith','\x20\x20Next:\x20ranger\x20go\x20--profile\x20','sRGCD','isProtocolError','⚠\x20Could\x20not\x20reach\x20','HEAD','\x20—\x20not\x20removing.\x20Delete\x20manually\x20if\x20you\x20want\x20it\x20gone.','log','TEDBT','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20','\x22.\x20Expected\x20\x22Name:\x20Value\x22.','profile.add.autoRouteSkipped','nvXFo','\x0a\x20\x20Still\x20could\x20not\x20reach\x20','input','manual','VwLzL','\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','iLqaz','\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20','\x0a\x20\x20A\x20profile\x20named\x20\x22','\x27\x20created.\x0a','cdpEndpoint','trackPhaseEnd','\x20\x20Note:\x20cloud\x20profile\x20created,\x20but\x20failed\x20to\x20sweep\x20orphan\x20local\x20dirs\x20(','message','GTlTg','\x20\x20or\x20contact\x20eng@ranger.net\x20to\x20set\x20up\x20automated\x20login\x20for\x20your\x20team.','mXTxO','\x20\x20Note:\x20found\x20git-tracked\x20local\x20profile\x20at\x20','GBcDl','trim','action','\x27\x20created\x20with\x20a\x20captured\x20session.\x0a','Continue\x20anyway','OEBti','MVDzn','GdmHU','Please\x20provide\x20--url\x20when\x20running\x20in\x20non-interactive\x20mode.\x0aMake\x20sure\x20the\x20service\x20is\x20running\x20on\x20that\x20port\x20before\x20retrying.\x0aExample:\x20ranger\x20profile\x20add\x20local\x20--url\x20http://localhost:3000','--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','eCyue','Enter\x20a\x20different\x20URL','retry','environments','keys','\x27\x20created\x20(CDP).','nWSxA','IMgDw','tlLBs','34146666LWJJqo','pJjUi','For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','AvzjD','9756615vsawME','\x20\x20Set\x20active\x20profile:\x20','cwd','Use\x20','fetch\x20failed','OeJdr','\x27\x20created\x20(no\x20session).\x0a','setupHeaders','baseUrl','--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','KwtTU','\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a','status','\x20\x20Workaround\x20for\x20now:\x20create\x20a\x20profile\x20without\x20a\x20captured\x20session\x20and\x20supply\x20one\x20later:\x0a','.tmp-','stdout','list','\x22:\x20','warn','url','iOMJJ','setupHeader','qqWBM','What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','JKanI','13413078Tbfsqc','BxodQ','Found\x20auth\x20environment\x20\x27','yes','continue','\x20(continuing\x20with\x20--force)','\x27\x20matching\x20','\x20--skip-auth\x0a','310110ghuCvA','GkLyQ','To\x20set\x20up\x20a\x20profile,\x20run:\x0a','HdnNV','5738icBIOv','673GfbIJQ','.\x20Configured\x20envs:\x20','http://localhost:3000','length','\x20\x20Ranger\x20will\x20use\x20it\x20to\x20look\x20up\x20the\x20right\x20cloud\x20auth\x20env\x20to\x20attach.\x0a','MunJS','confirm','slice','AEMmv','use_suggestion','for\x20you,\x20so\x20the\x20encrypted-CI\x20flow\x20is\x20unnecessary.\x0a','includes','isTTY','\x27\x20to\x20the\x20cloud?','\x20\x20Did\x20you\x20mean\x20','MlUMy','Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','NODE_TLS_REJECT_UNAUTHORIZED','http://'];_0x12b0=function(){return _0x45e0e1;};return _0x12b0();}function warnCloudProfileSharedInOrg(){const _0x533d93=_0x5422;if(!process[_0x533d93(0x128)][_0x533d93(0x14b)])return;console[_0x533d93(0x12b)](CLOUD_PROFILE_SHARING_WARNING);}async function checkUrlReachability(_0x22e261){const _0x199ec0=_0x5422,_0x181f71={'MVDzn':function(_0x36cf8c,_0x1c9611,_0x35a797){return _0x36cf8c(_0x1c9611,_0x35a797);},'nvXFo':_0x199ec0(0xe9),'tGVeS':_0x199ec0(0xf3),'afsoy':function(_0x2d7d0e,_0x547234){return _0x2d7d0e(_0x547234);},'mKxtu':function(_0x3ff1b2,_0x1016b1){return _0x3ff1b2<_0x1016b1;},'lhliU':function(_0x2e086f,_0x499b08){return _0x2e086f===_0x499b08;},'hJgpZ':'TypeError','hJRSd':_0x199ec0(0x11d)};try{const _0x29552b=new AbortController(),_0x59a8b3=_0x181f71[_0x199ec0(0x108)](setTimeout,()=>_0x29552b['abort'](),0x1388),_0x5bc705={'method':_0x181f71[_0x199ec0(0xf0)],'signal':_0x29552b[_0x199ec0(0x158)],'redirect':_0x181f71['tGVeS']};/^https:\/\/localhost(:\d+)?/i['test'](_0x22e261)&&(process['env']['NODE_TLS_REJECT_UNAUTHORIZED']='0');const _0x4f08f2=await fetch(_0x22e261,_0x5bc705);delete process['env']['NODE_TLS_REJECT_UNAUTHORIZED'],_0x181f71['afsoy'](clearTimeout,_0x59a8b3);if(_0x181f71['mKxtu'](_0x4f08f2['status'],0x190))return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x4f08f2[_0x199ec0(0x125)]};}catch(_0x5d3abc){delete process[_0x199ec0(0xe1)][_0x199ec0(0x150)];const _0x43dbc8=_0x5d3abc,_0xed60ce=_0x43dbc8['message']||String(_0x5d3abc),_0x46cd97=_0xed60ce[_0x199ec0(0x14a)]('Invalid\x20URL')||_0x181f71['lhliU'](_0x43dbc8['name'],_0x181f71['hJgpZ'])||_0xed60ce['includes'](_0x181f71['hJRSd']);return{'ok':![],'error':_0xed60ce,'isProtocolError':_0x46cd97};}}async function sweepOrphanLocalProfile(_0x2936f0,_0x54eaa1,_0x4f1ae0){const _0x577671=_0x5422,_0x29a50f={'VwLzL':function(_0x56730c,_0x392bcd,_0x560c95){return _0x56730c(_0x392bcd,_0x560c95);},'BxodQ':function(_0x472d5f,_0x1cbcac){return _0x472d5f(_0x1cbcac);},'aKbWg':function(_0x50192a,_0x25214e,_0x4172e0){return _0x50192a(_0x25214e,_0x4172e0);}},_0x48673b=_0x29a50f[_0x577671(0xf4)](join,_0x54eaa1,_0x577671(0xe3)),_0x2a1756=join(_0x48673b,_0x2936f0);existsSync(_0x2a1756)&&(_0x4f1ae0&&await isPathGitTracked(_0x2a1756)?console['log'](_0x577671(0x101)+_0x2a1756+_0x577671(0xea)):(await rm(_0x2a1756,{'recursive':!![],'force':!![]}),console['log'](_0x577671(0xf7)+_0x2a1756)));if(_0x29a50f[_0x577671(0x133)](existsSync,_0x48673b)){let _0x1dcbc1=[];try{_0x1dcbc1=await readdir(_0x48673b);}catch{return;}const _0x3f04bc=_0x577671(0x127)+_0x2936f0+'-';for(const _0xbe292c of _0x1dcbc1){if(!_0xbe292c[_0x577671(0xe4)](_0x3f04bc))continue;const _0x275eba=_0x29a50f['aKbWg'](join,_0x48673b,_0xbe292c);await rm(_0x275eba,{'recursive':!![],'force':!![]}),console['log']('\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20'+_0x275eba);}}}async function sweepOrphansBestEffort(_0x3bc9c4){const _0x27587a=_0x5422,_0x154a7b={'qBcVl':function(_0x5c2bd0){return _0x5c2bd0();},'UbLoO':function(_0x3adbe5,_0x102d62,_0x400d25,_0x51b0f5){return _0x3adbe5(_0x102d62,_0x400d25,_0x51b0f5);},'PaJCI':function(_0xb20db6,_0xb5cb2c){return _0xb20db6 instanceof _0xb5cb2c;},'HdnNV':function(_0x5bcd04,_0x61412e){return _0x5bcd04(_0x61412e);}};try{await sweepOrphanLocalProfile(_0x3bc9c4,_0x154a7b['qBcVl'](getRangerHomeDir),![]);const _0x42b35a=getRangerDir();_0x42b35a!==getRangerHomeDir()&&await _0x154a7b['UbLoO'](sweepOrphanLocalProfile,_0x3bc9c4,_0x42b35a,!![]);}catch(_0x420f51){console[_0x27587a(0xeb)](_0x27587a(0xfc)+(_0x154a7b['PaJCI'](_0x420f51,Error)?_0x420f51[_0x27587a(0xfd)]:_0x154a7b[_0x27587a(0x13d)](String,_0x420f51))+').');}}async function markActive(_0x2aea1f){const _0x4a5450=_0x5422,_0x5f49ac={'TyNPe':'Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.'};try{await writeActiveProfileName(_0x2aea1f),console[_0x4a5450(0xeb)](_0x4a5450(0x11a)+_0x2aea1f);}catch{console['log'](_0x5f49ac['TyNPe']);}}async function tryAutoRouteCloudProfile(_0x29df45,_0x5aa2c2,_0x52d979,_0x143a7d,_0x3296e4){const _0x5031e9=_0x5422,_0x889899={'swIZI':function(_0x22c2a0){return _0x22c2a0();},'PVUQz':'no_auth_config','pJjUi':function(_0x1d4910,_0x546813){return _0x1d4910+_0x546813;},'AEMmv':'\x0a\x20\x20Automated\x20login\x20isn\x27t\x20set\x20up\x20for\x20your\x20team\x20yet\x20—\x20that\x27s\x20the\x20path\x20that\x20lets\x20Ranger\x20log\x20into\x20your\x20app\x20for\x20you\x20in\x20CI\x20/\x20background\x20agents.\x0a','eNTRQ':_0x5031e9(0x126),'OEBti':'\x20\x20To\x20get\x20automated\x20login\x20set\x20up\x20for\x20your\x20team\x20(a\x20one-time\x20call):\x20eng@ranger.net\x0a','GBcDl':function(_0x2ff56a,_0x17a4ad,_0x3627fb){return _0x2ff56a(_0x17a4ad,_0x3627fb);},'atxCz':_0x5031e9(0x160),'SsJzU':'confirm','AuOme':function(_0x36e690,_0x342f4f){return _0x36e690 instanceof _0x342f4f;},'dmSZD':function(_0xe0f7f5,_0x1c080c){return _0xe0f7f5(_0x1c080c);}};let _0x3e6069;try{_0x3e6069=await _0x889899['swIZI'](fetchAuthConfig);}catch(_0x3d558f){return _0x3296e4?.['trackPhaseEnd']('profile.add.autoRouteSkipped',{'reason':_0x889899['PVUQz'],'profileName':_0x29df45}),console[_0x5031e9(0x163)]('\x0a\x20\x20Could\x20not\x20fetch\x20this\x20org\x27s\x20auth\x20config:\x20'+(_0x3d558f instanceof Error?_0x3d558f['message']:String(_0x3d558f))),![];}if(!_0x3e6069||!_0x3e6069[_0x5031e9(0x10f)]||Object['keys'](_0x3e6069[_0x5031e9(0x10f)])['length']===0x0){if(_0x143a7d)return await captureEnvLessProfile(_0x29df45,_0x5aa2c2,_0x52d979,_0x3296e4);return _0x3296e4?.[_0x5031e9(0xfb)]('profile.add.autoRouteSkipped',{'reason':_0x889899[_0x5031e9(0x15b)],'profileName':_0x29df45}),console[_0x5031e9(0x163)](_0x889899['pJjUi'](_0x889899['pJjUi'](_0x889899[_0x5031e9(0x116)](_0x889899['pJjUi'](_0x889899[_0x5031e9(0x147)],'\x0a'),_0x889899['eNTRQ'])+(_0x5031e9(0xed)+_0x29df45+'\x20--url\x20'+_0x5aa2c2+_0x5031e9(0x139)),'\x0a')+_0x889899[_0x5031e9(0x107)],'\x20\x20Details:\x20https://docs.ranger.net/main/concepts/profiles#automated-login')),![];}const _0x4e6ac8=_0x889899[_0x5031e9(0x102)](matchAuthEnvironment,_0x5aa2c2,_0x3e6069);if(!_0x4e6ac8)return _0x3296e4?.[_0x5031e9(0xfb)](_0x5031e9(0xef),{'reason':_0x889899['atxCz'],'profileName':_0x29df45}),console['error']('\x0a\x20\x20No\x20auth\x20env\x20matches\x20'+_0x5aa2c2+_0x5031e9(0x140)+Object['keys'](_0x3e6069[_0x5031e9(0x10f)])['join'](',\x20')+'.'),![];const _0x53fd24=_0x3e6069[_0x5031e9(0x10f)][_0x4e6ac8],_0x4cb6fd=_0x53fd24?.['domains']??[];if(_0x143a7d&&!_0x52d979['yes']){const {saveToCloud:_0x26ea0a}=await _0x2763b4[_0x5031e9(0x161)]([{'type':_0x889899[_0x5031e9(0x15c)],'name':'saveToCloud','message':_0x5031e9(0x134)+_0x4e6ac8+_0x5031e9(0x138)+_0x5aa2c2+'\x0a\x20\x20(domains:\x20'+_0x4cb6fd['join'](',\x20')+')\x0a\x20\x20Save\x20\x27'+_0x29df45+_0x5031e9(0x14c),'default':!![]}]);if(!_0x26ea0a)return _0x3296e4?.[_0x5031e9(0xfb)](_0x5031e9(0xef),{'reason':'user_declined','profileName':_0x29df45}),console[_0x5031e9(0x163)]('\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20cloud-managed\x20session.'),![];}const _0x500a17=_0x4cb6fd[_0x5031e9(0xdf)](_0x5440bb=>{try{return new URL(_0x5440bb)['origin']===new URL(_0x5aa2c2)['origin'];}catch{return![];}}),_0x1f8d32={};!_0x500a17&&(_0x1f8d32[_0x5031e9(0x121)]=_0x5aa2c2);try{await createCloudProfile(_0x29df45,_0x4e6ac8,{'settings':_0x1f8d32}),warnCloudProfileSharedInOrg();}catch(_0x368f26){if(_0x889899['AuOme'](_0x368f26,ApiError)&&_0x368f26[_0x5031e9(0x125)]===0x199){console[_0x5031e9(0x163)](_0x889899['pJjUi']('\x0a\x20\x20A\x20profile\x20named\x20\x22'+_0x29df45+_0x5031e9(0x124),_0x5031e9(0x15f)+_0x29df45));throw _0x368f26;}throw _0x368f26;}return console['log'](_0x889899['pJjUi'](_0x5031e9(0x157)+_0x29df45+_0x5031e9(0xf9),_0x5031e9(0xe5)+_0x29df45)),await _0x889899[_0x5031e9(0x162)](sweepOrphansBestEffort,_0x29df45),_0x3296e4?.['trackPhaseEnd']('profile.add.autoRouted',{'envKey':_0x4e6ac8,'profileName':_0x29df45}),!![];}async function createUnconfiguredCloudProfile(_0x5ddd4d,_0x23928e){const _0xe4911a=_0x5422;try{await createCloudProfile(_0x5ddd4d,undefined,{'settings':_0x23928e}),warnCloudProfileSharedInOrg();}catch(_0x397234){_0x397234 instanceof ApiError&&_0x397234[_0xe4911a(0x125)]===0x199&&console[_0xe4911a(0x163)]('\x0a\x20\x20A\x20profile\x20named\x20\x22'+_0x5ddd4d+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a'+('\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x5ddd4d));throw _0x397234;}}async function captureEnvLessProfile(_0x2d36b1,_0x46c52e,_0x757acd,_0x20a0de){const _0x333c42=_0x5422,_0x2e38ab={'nWSxA':_0x333c42(0x145),'MlUMy':'capture','JKanI':'Automated\x20login\x20isn\x27t\x20set\x20up\x20for\x20your\x20team.\x20Capture\x20a\x20session\x20via\x20a\x20headed\x20browser\x20instead?','sGGlU':'profile.add.autoRouteSkipped','RIjon':'user_declined','iLqaz':function(_0x28ba58,_0x5ea3dc){return _0x28ba58+_0x5ea3dc;},'GdmHU':function(_0x57808e,_0x1a9592){return _0x57808e>_0x1a9592;},'IeUBG':function(_0x3f55e2){return _0x3f55e2();},'OeJdr':function(_0x4408bc,_0x854d04){return _0x4408bc instanceof _0x854d04;},'mXTxO':function(_0x1b2575,_0x223331){return _0x1b2575>_0x223331;},'iVGPq':function(_0x24059e,_0x52c187){return _0x24059e+_0x52c187;}};if(!_0x757acd[_0x333c42(0x135)]){const {capture:_0xecfc66}=await _0x2763b4[_0x333c42(0x161)]([{'type':_0x2e38ab[_0x333c42(0x112)],'name':_0x2e38ab[_0x333c42(0x14e)],'message':_0x2e38ab[_0x333c42(0x131)],'default':!![]}]);if(!_0xecfc66)return _0x20a0de?.[_0x333c42(0xfb)](_0x2e38ab['sGGlU'],{'reason':_0x2e38ab['RIjon'],'profileName':_0x2d36b1}),console[_0x333c42(0x163)]('\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20session,\x0a'+_0x333c42(0xff)),![];}const _0x2de6f4={};if(_0x757acd['setupHeader'])for(const _0x18993a of _0x757acd['setupHeader']){const _0x13c69c=_0x18993a[_0x333c42(0x159)](':');if(_0x13c69c===-0x1)continue;_0x2de6f4[_0x18993a[_0x333c42(0x146)](0x0,_0x13c69c)['trim']()]=_0x18993a['slice'](_0x2e38ab[_0x333c42(0xf6)](_0x13c69c,0x1))['trim']();}const _0x3c4ddd={'baseUrl':_0x46c52e};_0x2e38ab[_0x333c42(0x109)](Object['keys'](_0x2de6f4)[_0x333c42(0x142)],0x0)&&(_0x3c4ddd['setupHeaders']=_0x2de6f4);let _0x413008;try{_0x413008=await createCloudProfile(_0x2d36b1,undefined,{'settings':_0x3c4ddd}),_0x2e38ab['IeUBG'](warnCloudProfileSharedInOrg);}catch(_0x28cce8){_0x2e38ab[_0x333c42(0x11e)](_0x28cce8,ApiError)&&_0x28cce8[_0x333c42(0x125)]===0x199&&console['error'](_0x2e38ab['iLqaz'](_0x333c42(0xf8)+_0x2d36b1+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x2d36b1));throw _0x28cce8;}return await manualBrowserLogin(_0x413008,{'key':'','domains':[_0x46c52e],'setupHeaders':_0x2e38ab[_0x333c42(0x100)](Object['keys'](_0x2de6f4)['length'],0x0)?_0x2de6f4:undefined}),console['log'](_0x2e38ab['iVGPq']('\x0a✓\x20Profile\x20\x27'+_0x2d36b1+_0x333c42(0x105),_0x333c42(0xe5)+_0x2d36b1)),await sweepOrphansBestEffort(_0x2d36b1),_0x20a0de?.['trackPhaseEnd']('profile.add.autoRouted',{'envKey':null,'profileName':_0x2d36b1}),!![];}export async function addEnv(_0x4d3f32,_0x56bc49={},_0x323a2f){const _0x5f49c5=_0x5422,_0x471474={'sRGCD':function(_0x26e149,_0x37c335){return _0x26e149+_0x37c335;},'GTlTg':function(_0x3e7517,_0x59ba89){return _0x3e7517+_0x59ba89;},'BFPtF':function(_0x4187a5,_0x2c4e11){return _0x4187a5+_0x2c4e11;},'eCyue':'The\x20--ci\x20flag\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x20session\x20state\x0a','GkLyQ':_0x5f49c5(0x13c),'TEDBT':function(_0x5e9dbb,_0x14085f){return _0x5e9dbb===_0x14085f;},'AvzjD':function(_0x21f555,_0xe1e651){return _0x21f555+_0xe1e651;},'UvTIQ':function(_0x294722,_0x4c67e5){return _0x294722!==_0x4c67e5;},'MunJS':function(_0x175160,_0x54d6f7){return _0x175160(_0x54d6f7);},'SgQsr':function(_0x3d9d72){return _0x3d9d72();},'OCFzf':_0x5f49c5(0x10a),'eBLcq':_0x5f49c5(0xf5),'PawsN':function(_0x4cc7b0,_0x1a57f4,_0x33364d){return _0x4cc7b0(_0x1a57f4,_0x33364d);},'tlLBs':function(_0x41a03f,_0x2e653d,_0x17d76c,_0x4b0eea,_0x28dee9){return _0x41a03f(_0x2e653d,_0x17d76c,_0x4b0eea,_0x28dee9);},'qqWBM':'cdpEndpoint','gWJWQ':function(_0x133c75,_0x2d3074){return _0x133c75 instanceof _0x2d3074;},'BOopD':function(_0x4276e0,_0x1e5b59){return _0x4276e0(_0x1e5b59);},'agZBm':_0x5f49c5(0xf2),'KwtTU':'baseUrl','vQmZr':function(_0x30874b,_0x40e143){return _0x30874b(_0x40e143);},'iOMJJ':'What\x20would\x20you\x20like\x20to\x20do?','StFfE':_0x5f49c5(0x10d),'Wpanu':_0x5f49c5(0x106),'OnYew':function(_0x21a6e9,_0x2fad93){return _0x21a6e9(_0x2fad93);},'gLydp':function(_0x4a7b52,_0x47f2df){return _0x4a7b52===_0x47f2df;},'SXGbm':_0x5f49c5(0x136),'BhHQW':function(_0x49b15c,_0x194541,_0x4d465c,_0x33bb8a,_0x53c396,_0x3826c2){return _0x49b15c(_0x194541,_0x4d465c,_0x33bb8a,_0x53c396,_0x3826c2);},'IMgDw':function(_0x242389,_0x2b55d8){return _0x242389(_0x2b55d8);}};_0x56bc49['ci']&&(console[_0x5f49c5(0x163)](_0x471474[_0x5f49c5(0xe6)](_0x471474[_0x5f49c5(0xfe)](_0x471474['GTlTg'](_0x471474['BFPtF'](_0x471474[_0x5f49c5(0x10c)]+_0x5f49c5(0x149),'\x0a')+_0x471474[_0x5f49c5(0x13b)],'\x20\x20ranger\x20profile\x20add\x20<name>\x0a')+'\x0a',_0x5f49c5(0x117)),_0x5f49c5(0x15a))),process['exit'](0x1));const _0x229825={};if(_0x56bc49[_0x5f49c5(0x12e)])for(const _0x5b47a4 of _0x56bc49['setupHeader']){const _0x216e4d=_0x5b47a4[_0x5f49c5(0x159)](':');if(_0x471474[_0x5f49c5(0xec)](_0x216e4d,-0x1))throw new Error('Invalid\x20--setup-header\x20format:\x20\x22'+_0x5b47a4+_0x5f49c5(0xee));const _0x1fd89b=_0x5b47a4[_0x5f49c5(0x146)](0x0,_0x216e4d)[_0x5f49c5(0x103)](),_0x130dc1=_0x5b47a4[_0x5f49c5(0x146)](_0x471474[_0x5f49c5(0x118)](_0x216e4d,0x1))[_0x5f49c5(0x103)]();_0x229825[_0x1fd89b]=_0x130dc1;}if(_0x471474['UvTIQ'](_0x56bc49[_0x5f49c5(0xfa)],undefined)&&_0x56bc49['cdpEndpoint'][_0x5f49c5(0x103)]()==='')throw new Error(_0x5f49c5(0x10b));if(_0x56bc49[_0x5f49c5(0xfa)]&&_0x56bc49[_0x5f49c5(0x12c)])throw new Error(_0x5f49c5(0x122));const _0x374cf8=_0x471474[_0x5f49c5(0x144)](Boolean,_0x56bc49[_0x5f49c5(0xfa)]),_0x36b0b0=_0x471474['SgQsr'](isInteractive);if(!_0x36b0b0&&!_0x56bc49[_0x5f49c5(0x12c)]&&!_0x374cf8&&!_0x56bc49['skipAuth'])throw new Error(_0x471474['OCFzf']);if(_0x374cf8){const _0x40cdf0=_0x56bc49[_0x5f49c5(0xfa)];console[_0x5f49c5(0xeb)](_0x471474['eBLcq']),console['log'](_0x5f49c5(0x15e)+_0x40cdf0);const _0x2d2a93={'cdpEndpoint':_0x40cdf0,'isElectron':!![]};Object['keys'](_0x229825)[_0x5f49c5(0x142)]>0x0&&(_0x2d2a93[_0x5f49c5(0x120)]=_0x229825);await _0x471474['PawsN'](createUnconfiguredCloudProfile,_0x4d3f32,_0x2d2a93);try{_0x471474[_0x5f49c5(0x114)](setProfileOverride,process[_0x5f49c5(0x11b)](),_0x4d3f32,_0x471474[_0x5f49c5(0x12f)],_0x40cdf0),setProfileOverride(process['cwd'](),_0x4d3f32,'isElectron',!![]);}catch(_0x52b573){console[_0x5f49c5(0x163)]('\x0a\x20\x20Cloud\x20profile\x20created,\x20but\x20failed\x20to\x20write\x20per-cwd\x20CDP\x20override\x20to\x20projects.json:\x20'+(_0x471474['gWJWQ'](_0x52b573,Error)?_0x52b573[_0x5f49c5(0xfd)]:String(_0x52b573)));}console['log']('✓\x20Cloud\x20profile\x20\x27'+_0x4d3f32+_0x5f49c5(0x111)),await _0x471474['MunJS'](sweepOrphansBestEffort,_0x4d3f32),await markActive(_0x4d3f32);return;}if(_0x56bc49['skipAuth']){const _0x10e245={};_0x56bc49[_0x5f49c5(0x12c)]&&(_0x10e245['baseUrl']=_0x56bc49[_0x5f49c5(0x12c)]);Object[_0x5f49c5(0x110)](_0x229825)['length']>0x0&&(_0x10e245[_0x5f49c5(0x120)]=_0x229825);await createUnconfiguredCloudProfile(_0x4d3f32,_0x10e245),console[_0x5f49c5(0xeb)](_0x5f49c5(0x157)+_0x4d3f32+_0x5f49c5(0x11f)+('\x20\x20When\x20you\x27re\x20ready\x20to\x20log\x20in,\x20run\x20`ranger\x20profile\x20add\x20'+_0x4d3f32+'`\x20again\x20without\x20--skip-auth.')),await _0x471474['BOopD'](sweepOrphansBestEffort,_0x4d3f32),await _0x471474['BOopD'](markActive,_0x4d3f32);return;}if(_0x56bc49['url']){const _0x31c799=_0x56bc49['url'],_0xecac1f=await checkUrlReachability(_0x31c799);if(!_0xecac1f['ok']&&!_0x56bc49[_0x5f49c5(0x156)])throw new Error(_0x5f49c5(0x154)+_0x31c799+':\x20'+_0xecac1f[_0x5f49c5(0x163)]+'\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.');!_0xecac1f['ok']&&_0x56bc49['force']&&console[_0x5f49c5(0xeb)](_0x5f49c5(0xe8)+_0x31c799+':\x20'+_0xecac1f['error']+_0x5f49c5(0x137));}else{console[_0x5f49c5(0xeb)](_0x5f49c5(0xe2)),console[_0x5f49c5(0xeb)]('\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.'),console[_0x5f49c5(0xeb)](_0x5f49c5(0x143));let _0x3b298d='',_0x51a219=![];while(!![]){const _0x38240c=await _0x2763b4[_0x5f49c5(0x161)]([{'type':_0x471474['agZBm'],'name':_0x471474[_0x5f49c5(0x123)],'message':_0x51a219?_0x5f49c5(0x14f):_0x5f49c5(0x130),'default':_0x3b298d||_0x5f49c5(0x141)}]);_0x3b298d=_0x38240c['baseUrl'];const _0x269fe3=await _0x471474['vQmZr'](checkUrlReachability,_0x3b298d);if(_0x269fe3['ok'])break;const _0xc1ddcc=/^[a-zA-Z][\w+.-]*:\/\//[_0x5f49c5(0x153)](_0x3b298d),_0x23b769=_0x269fe3[_0x5f49c5(0xe7)]&&!_0xc1ddcc,_0x3c026d=_0x23b769?_0x5f49c5(0x151)+_0x3b298d:null;_0x51a219=!![],console[_0x5f49c5(0xeb)]('\x0a\x20\x20Could\x20not\x20reach\x20'+_0x3b298d+':\x20'+_0x269fe3['error']);_0x3c026d&&console[_0x5f49c5(0xeb)](_0x5f49c5(0x14d)+_0x3c026d+'?');const {action:_0x342a1e}=await _0x2763b4[_0x5f49c5(0x161)]([{'type':_0x5f49c5(0x129),'name':_0x5f49c5(0x104),'message':_0x471474[_0x5f49c5(0x12d)],'choices':[..._0x3c026d?[{'name':_0x5f49c5(0x11c)+_0x3c026d,'value':'use_suggestion'}]:[],{'name':_0x471474['StFfE'],'value':_0x5f49c5(0x10e)},{'name':_0x471474[_0x5f49c5(0xe0)],'value':_0x5f49c5(0x136)}]}]);if(_0x342a1e===_0x5f49c5(0x148)&&_0x3c026d){_0x3b298d=_0x3c026d;const _0x54b85b=await _0x471474['OnYew'](checkUrlReachability,_0x3b298d);if(_0x54b85b['ok'])break;console['log'](_0x5f49c5(0xf1)+_0x3b298d+':\x20'+_0x54b85b['error']);}else{if(_0x471474['gLydp'](_0x342a1e,_0x471474['SXGbm']))break;}}_0x56bc49={..._0x56bc49,'url':_0x3b298d};}let _0x332225=![];try{_0x332225=await _0x471474['BhHQW'](tryAutoRouteCloudProfile,_0x4d3f32,_0x56bc49[_0x5f49c5(0x12c)],_0x56bc49,_0x36b0b0,_0x323a2f);}catch(_0x483b4e){console['error']('\x0a\x20\x20Failed\x20to\x20create\x20cloud\x20profile\x20\x22'+_0x4d3f32+_0x5f49c5(0x12a)+(_0x483b4e instanceof Error?_0x483b4e[_0x5f49c5(0xfd)]:String(_0x483b4e))),process['exit'](0x1);}!_0x332225&&process['exit'](0x1),await _0x471474[_0x5f49c5(0x113)](markActive,_0x4d3f32);}
@@ -1 +1 @@
1
- function _0x1e10(_0x18cd0a,_0x462a8b){_0x18cd0a=_0x18cd0a-0x15e;var _0x2acb8a=_0x2acb();var _0x1e107e=_0x2acb8a[_0x18cd0a];return _0x1e107e;}(function(_0xb3d41b,_0x5cc774){var _0x59e3bd=_0x1e10,_0x27f06e=_0xb3d41b();while(!![]){try{var _0x50048b=-parseInt(_0x59e3bd(0x161))/0x1+-parseInt(_0x59e3bd(0x16c))/0x2*(-parseInt(_0x59e3bd(0x16b))/0x3)+parseInt(_0x59e3bd(0x168))/0x4*(-parseInt(_0x59e3bd(0x167))/0x5)+-parseInt(_0x59e3bd(0x160))/0x6+-parseInt(_0x59e3bd(0x169))/0x7*(parseInt(_0x59e3bd(0x162))/0x8)+parseInt(_0x59e3bd(0x16d))/0x9+parseInt(_0x59e3bd(0x16a))/0xa;if(_0x50048b===_0x5cc774)break;else _0x27f06e['push'](_0x27f06e['shift']());}catch(_0x3849b2){_0x27f06e['push'](_0x27f06e['shift']());}}}(_0x2acb,0x81bd1));export async function authEncrypt(_0x2b5dab){var _0x42f787=_0x1e10,_0x13950f={'cpYIl':function(_0x291c22,_0x365469){return _0x291c22+_0x365469;},'Xbnuk':_0x42f787(0x16e),'Siayg':_0x42f787(0x164)};console['error'](_0x13950f['cpYIl'](_0x13950f['cpYIl'](_0x13950f['cpYIl'](_0x13950f['cpYIl'](_0x42f787(0x15f),_0x13950f['Xbnuk']),'\x0a'),_0x42f787(0x15e))+_0x42f787(0x163)+'\x0a',_0x13950f[_0x42f787(0x166)])+'\x20\x20https://docs.ranger.net/main/concepts/profiles'),process[_0x42f787(0x165)](0x1);}function _0x2acb(){var _0x43dd36=['333592LWDuaJ','1167208ANDlLd','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','exit','Siayg','1204855PdHKaa','16ZutTHd','49xeNIKI','18357860KVBOUM','12972AfjZSo','402eSGEPW','5248575fCNmvp','session\x20state\x20for\x20you,\x20so\x20encrypted\x20on-disk\x20auth\x20is\x20unnecessary.\x0a','To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','ranger\x20profile\x20encrypt-auth\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x0a','2627358IAAhvl'];_0x2acb=function(){return _0x43dd36;};return _0x2acb();}
1
+ function _0x5112(){var _0x3b4562=['QjtwS','For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','663844ImjuxE','To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','error','14358aJGDoc','24vrmpmb','3977392jvYOzt','866115upWbjQ','66OqPuKO','1818168aWxvZN','2789255mUWbnv','vEeMp','Vcrsa','lRYTr','ranger\x20profile\x20encrypt-auth\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x0a','session\x20state\x20for\x20you,\x20so\x20encrypted\x20on-disk\x20auth\x20is\x20unnecessary.\x0a','7161147XxzjIQ'];_0x5112=function(){return _0x3b4562;};return _0x5112();}(function(_0x16424e,_0x144730){var _0x3f2617=_0x4549,_0xbec4f3=_0x16424e();while(!![]){try{var _0x42307e=parseInt(_0x3f2617(0x107))/0x1+-parseInt(_0x3f2617(0x10a))/0x2*(parseInt(_0x3f2617(0x10e))/0x3)+parseInt(_0x3f2617(0x10c))/0x4+parseInt(_0x3f2617(0x10d))/0x5*(-parseInt(_0x3f2617(0x10b))/0x6)+parseInt(_0x3f2617(0x110))/0x7+parseInt(_0x3f2617(0x10f))/0x8+-parseInt(_0x3f2617(0x104))/0x9;if(_0x42307e===_0x144730)break;else _0xbec4f3['push'](_0xbec4f3['shift']());}catch(_0x6f9059){_0xbec4f3['push'](_0xbec4f3['shift']());}}}(_0x5112,0x9b9e7));function _0x4549(_0x5e50b2,_0x55e611){_0x5e50b2=_0x5e50b2-0x101;var _0x51129b=_0x5112();var _0x4549ca=_0x51129b[_0x5e50b2];return _0x4549ca;}export async function authEncrypt(_0x42d8ff){var _0xf04ef4=_0x4549,_0x33d753={'Vcrsa':function(_0x1fcddd,_0x583afa){return _0x1fcddd+_0x583afa;},'HzmtO':function(_0x5db746,_0x36164d){return _0x5db746+_0x36164d;},'QjtwS':function(_0x193f78,_0x299d56){return _0x193f78+_0x299d56;},'shzzY':_0xf04ef4(0x102),'qibmy':_0xf04ef4(0x108),'lLhKq':'\x20\x20ranger\x20profile\x20add\x20<name>\x0a','lRYTr':_0xf04ef4(0x106),'vEeMp':'\x20\x20https://docs.ranger.net/main/concepts/profiles'};console[_0xf04ef4(0x109)](_0x33d753['Vcrsa'](_0x33d753['HzmtO'](_0x33d753[_0xf04ef4(0x112)](_0x33d753[_0xf04ef4(0x105)](_0x33d753['shzzY'],_0xf04ef4(0x103)),'\x0a'),_0x33d753['qibmy']),_0x33d753['lLhKq'])+'\x0a'+_0x33d753[_0xf04ef4(0x101)]+_0x33d753[_0xf04ef4(0x111)]),process['exit'](0x1);}
@@ -1 +1 @@
1
- (function(_0x4dfd52,_0x8515cf){const _0x5a1813=_0x9fa4,_0x4b3fb9=_0x4dfd52();while(!![]){try{const _0x470e2c=-parseInt(_0x5a1813(0x1d9))/0x1*(-parseInt(_0x5a1813(0x1c7))/0x2)+-parseInt(_0x5a1813(0x1c8))/0x3*(parseInt(_0x5a1813(0x1ad))/0x4)+-parseInt(_0x5a1813(0x1c6))/0x5*(parseInt(_0x5a1813(0x1be))/0x6)+parseInt(_0x5a1813(0x1bd))/0x7+-parseInt(_0x5a1813(0x1b5))/0x8+parseInt(_0x5a1813(0x1ae))/0x9*(parseInt(_0x5a1813(0x1a7))/0xa)+parseInt(_0x5a1813(0x1ab))/0xb*(parseInt(_0x5a1813(0x1c9))/0xc);if(_0x470e2c===_0x8515cf)break;else _0x4b3fb9['push'](_0x4b3fb9['shift']());}catch(_0xf90326){_0x4b3fb9['push'](_0x4b3fb9['shift']());}}}(_0x5c61,0xc1525));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{spawn}from'child_process';import{deleteAllCredentials}from'./utils/keychain.js';import{getProjectRoot,getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';function _0x5c61(){const _0xbebbd4=['UaqcO','zARAO','error','PSdBn','remove','xyfxg','DGIXa','cEAFE','✓\x20Removed\x20OpenCode\x20project\x20skill:\x20','length','user','OSKhN','adGmh','✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','xsJEJ','1010034VquIZV','\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','peMni','wRIlp','\x0a✅\x20Cleanup\x20complete!\x0a','uVLqx','marketplace','310zJnfUC','✓\x20Removed\x20OpenCode\x20user\x20skill:\x20','ZBjsI','iXBow','5275083EsZPxh','oVhcs','1671212sVHtCV','288873wxNKXq','log','uqRJg','YOLGN','replace','parse','win32','8864520CpOIZB','TJTiV','✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','dpjLE','ignore','✓\x20Removed\x20user\x20skill:\x20','opencode.json','close','3658361UJIoZA','15978kJzTpE','platform','string','RCdAK','plugin','✓\x20Removed\x20project\x20skill:\x20','XiOGD','claude','2195RBoryT','2KwOJcQ','3eMrzpD','24KJPlXh'];_0x5c61=function(){return _0xbebbd4;};return _0x5c61();}import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=['ranger','feature-tracker','bug-bash','e2e-test-recommender'],opencodePluginName='@ranger-testing/opencode-plugin';function _0x9fa4(_0x8c189c,_0x55fd4f){_0x8c189c=_0x8c189c-0x1a6;const _0x5c61cb=_0x5c61();let _0x9fa472=_0x5c61cb[_0x8c189c];return _0x9fa472;}function parseJsonc(_0x43eafd){const _0x4f60ff=_0x9fa4,_0xefcb42=_0x43eafd['replace'](/\/\*[\s\S]*?\*\//g,''),_0x27a80f=_0xefcb42[_0x4f60ff(0x1b2)](/^\s*\/\/.*$/gm,''),_0x4513a6=_0x27a80f['replace'](/,\s*([}\]])/g,'$1');return JSON[_0x4f60ff(0x1b3)](_0x4513a6);}async function removeOpencodePluginConfig(_0x4a2c49){const _0x408afc=_0x9fa4,_0x1b0fba={'DGIXa':function(_0xe667,_0x2f1b75){return _0xe667!==_0x2f1b75;},'dpjLE':function(_0x4e5492,_0xfe1866){return _0x4e5492(_0xfe1866);},'hiKJD':function(_0x123d26,_0x1ce9c6){return _0x123d26(_0x1ce9c6);},'nKPrp':function(_0x45df29,_0xd24fcc){return _0x45df29===_0xd24fcc;},'lLJif':function(_0x4dd58c,_0x5bb849){return _0x4dd58c===_0x5bb849;},'UaqcO':function(_0x3cad83,_0x4ef5c7){return _0x3cad83===_0x4ef5c7;},'QyXjm':function(_0x37fdc0,_0x535028,_0x1f74b1){return _0x37fdc0(_0x535028,_0x1f74b1);},'uVLqx':function(_0x576515,_0x331f09){return _0x576515+_0x331f09;}};if(!_0x1b0fba[_0x408afc(0x1b8)](existsSync,_0x4a2c49))return![];let _0x6c0b19;try{const _0x497445=await readFile(_0x4a2c49,'utf-8');_0x6c0b19=_0x1b0fba['hiKJD'](parseJsonc,_0x497445);}catch{return![];}const _0x49b3c5=Array['isArray'](_0x6c0b19['plugin'])?_0x6c0b19['plugin']:[];if(_0x1b0fba['nKPrp'](_0x49b3c5[_0x408afc(0x1d3)],0x0))return![];const _0x2a6203=_0x49b3c5['filter'](_0x3fafd0=>{const _0xea048f=_0x408afc;if(_0x1b0fba[_0xea048f(0x1d0)](typeof _0x3fafd0,_0xea048f(0x1c0)))return!![];return _0x1b0fba[_0xea048f(0x1d0)](_0x3fafd0,opencodePluginName);});if(_0x1b0fba['lLJif'](_0x2a6203[_0x408afc(0x1d3)],_0x49b3c5[_0x408afc(0x1d3)]))return![];return _0x1b0fba[_0x408afc(0x1ca)](_0x2a6203[_0x408afc(0x1d3)],0x0)?delete _0x6c0b19[_0x408afc(0x1c2)]:_0x6c0b19[_0x408afc(0x1c2)]=_0x2a6203,await _0x1b0fba['QyXjm'](writeFile,_0x4a2c49,_0x1b0fba[_0x408afc(0x1de)](JSON['stringify'](_0x6c0b19,null,0x2),'\x0a')),!![];}async function uninstallClaudePlugin(_0x53e366){const _0x1fe935=_0x9fa4,_0x34242a={'yBGXk':function(_0x508e40,_0x4313be){return _0x508e40(_0x4313be);},'RCdAK':function(_0x32da71,_0x41917e){return _0x32da71===_0x41917e;},'zyftm':'uninstall','YwPWK':function(_0x2a023b,_0x9d97b7,_0x30a4fc,_0x27178b){return _0x2a023b(_0x9d97b7,_0x30a4fc,_0x27178b);},'webdP':'ignore','gdoZk':function(_0x26c181){return _0x26c181();},'uQptD':_0x1fe935(0x1cc)};return new Promise(_0x1eeff2=>{const _0x5c56ed=_0x1fe935,_0x1dbb3a={'adGmh':function(_0x10d434,_0x456edf){return _0x10d434(_0x456edf);},'MnwiP':function(_0xd84849,_0x4bec8c){const _0xd49cc9=_0x9fa4;return _0x34242a[_0xd49cc9(0x1c1)](_0xd84849,_0x4bec8c);}},_0x5d2670=[_0x5c56ed(0x1c2),_0x34242a['zyftm'],'ranger@trailhead'];_0x53e366&&_0x5d2670['push']('--scope',_0x53e366);const _0x12438a=_0x34242a['YwPWK'](spawn,'claude',_0x5d2670,{'stdio':[_0x34242a['webdP'],'ignore','ignore'],'cwd':_0x53e366?_0x34242a['gdoZk'](getProjectRoot):undefined,'shell':process['platform']==='win32'});_0x12438a['on']('close',_0x49c6e5=>{const _0x5c88ed=_0x5c56ed;_0x1dbb3a[_0x5c88ed(0x1d6)](_0x1eeff2,_0x1dbb3a['MnwiP'](_0x49c6e5,0x0));}),_0x12438a['on'](_0x34242a['uQptD'],()=>{_0x34242a['yBGXk'](_0x1eeff2,![]);});});}async function removeMarketplace(){const _0x40ca42=_0x9fa4,_0xcc1da0={'BEJxv':function(_0x1f7547,_0x5a9b2e){return _0x1f7547===_0x5a9b2e;},'FYUcU':function(_0x18a8ba,_0x32d243,_0x3dd5d0,_0x53adfc){return _0x18a8ba(_0x32d243,_0x3dd5d0,_0x53adfc);},'OSKhN':_0x40ca42(0x1a6),'peMni':'ignore','TJTiV':_0x40ca42(0x1b4),'ZBjsI':_0x40ca42(0x1bc)};return new Promise(_0x63d25a=>{const _0x45ded3=_0x40ca42,_0x3de593=_0xcc1da0['FYUcU'](spawn,_0x45ded3(0x1c5),['plugin',_0xcc1da0[_0x45ded3(0x1d5)],_0x45ded3(0x1ce),'trailhead'],{'stdio':[_0x45ded3(0x1b9),_0xcc1da0[_0x45ded3(0x1db)],_0x45ded3(0x1b9)],'shell':process[_0x45ded3(0x1bf)]===_0xcc1da0[_0x45ded3(0x1b6)]});_0x3de593['on'](_0xcc1da0[_0x45ded3(0x1a9)],_0x12f78a=>{_0x63d25a(_0xcc1da0['BEJxv'](_0x12f78a,0x0));}),_0x3de593['on']('error',()=>{_0x63d25a(![]);});});}export async function clean(){const _0x7fa845=_0x9fa4,_0x7593ba={'XiOGD':_0x7fa845(0x1da),'xyfxg':function(_0x128f35){return _0x128f35();},'wCecC':function(_0x66943c,_0x21c3eb){return _0x66943c(_0x21c3eb);},'iXBow':function(_0x106e7f,_0x4110ff,_0x34bdff){return _0x106e7f(_0x4110ff,_0x34bdff);},'cEAFE':'✓\x20Removed\x20.ranger/\x20directory','zARAO':function(_0x10abe5){return _0x10abe5();},'PSdBn':function(_0x21680d,_0x4c40ae,_0x134b99){return _0x21680d(_0x4c40ae,_0x134b99);},'YOLGN':function(_0x4ff34c,_0x320076){return _0x4ff34c(_0x320076);},'wRIlp':function(_0x106b02,_0x3b3e9a){return _0x106b02(_0x3b3e9a);},'uqRJg':'✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','xsJEJ':function(_0x5dd748){return _0x5dd748();},'oVhcs':_0x7fa845(0x1d7),'umUOg':_0x7fa845(0x1dd)};console[_0x7fa845(0x1af)](_0x7593ba[_0x7fa845(0x1c4)]);let _0xa0d05b=![];try{await _0x7593ba[_0x7fa845(0x1cf)](deleteAllCredentials),console[_0x7fa845(0x1af)]('✓\x20Removed\x20stored\x20credentials'),_0xa0d05b=!![];}catch{}const _0x531e71=_0x7593ba['xyfxg'](getCacheFile);existsSync(_0x531e71)&&(await rm(_0x531e71),_0xa0d05b=!![]);const _0x2f9cb2=getRangerDir();_0x7593ba['wCecC'](existsSync,_0x2f9cb2)&&(await _0x7593ba['iXBow'](rm,_0x2f9cb2,{'recursive':!![]}),console['log'](_0x7593ba[_0x7fa845(0x1d1)]),_0xa0d05b=!![]);const _0x4b76e4=_0x7593ba[_0x7fa845(0x1cb)](getProjectSkillsDir);for(const _0xad3502 of skillsToRemove){const _0x8d151=_0x7593ba[_0x7fa845(0x1aa)](join,_0x4b76e4,_0xad3502);_0x7593ba['wCecC'](existsSync,_0x8d151)&&(await rm(_0x8d151,{'recursive':!![]}),console[_0x7fa845(0x1af)](_0x7fa845(0x1c3)+_0xad3502),_0xa0d05b=!![]);}const _0x58da3b=getUserSkillsDir();for(const _0x2285f0 of skillsToRemove){const _0x2db5ee=_0x7593ba['PSdBn'](join,_0x58da3b,_0x2285f0);_0x7593ba[_0x7fa845(0x1b1)](existsSync,_0x2db5ee)&&(await rm(_0x2db5ee,{'recursive':!![]}),console['log'](_0x7fa845(0x1ba)+_0x2285f0),_0xa0d05b=!![]);}const _0x25874f=_0x7593ba['wCecC'](getOpencodeSkillsDir,'project');for(const _0x49e9e8 of skillsToRemove){const _0x4ec488=join(_0x25874f,_0x49e9e8);existsSync(_0x4ec488)&&(await rm(_0x4ec488,{'recursive':!![]}),console['log'](_0x7fa845(0x1d2)+_0x49e9e8),_0xa0d05b=!![]);}const _0x285168=getOpencodeSkillsDir(_0x7fa845(0x1d4));for(const _0x5abf1d of skillsToRemove){const _0x31c16a=join(_0x285168,_0x5abf1d);_0x7593ba['wCecC'](existsSync,_0x31c16a)&&(await rm(_0x31c16a,{'recursive':!![]}),console[_0x7fa845(0x1af)](_0x7fa845(0x1a8)+_0x5abf1d),_0xa0d05b=!![]);}const _0x3c5f8e=_0x7593ba[_0x7fa845(0x1cd)](join,getOpencodeConfigDir('project'),_0x7fa845(0x1bb));await removeOpencodePluginConfig(_0x3c5f8e)&&(console[_0x7fa845(0x1af)]('✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)'),_0xa0d05b=!![]);const _0xc5fb57=join(getOpencodeConfigDir(_0x7fa845(0x1d4)),_0x7fa845(0x1bb));await _0x7593ba[_0x7fa845(0x1dc)](removeOpencodePluginConfig,_0xc5fb57)&&(console[_0x7fa845(0x1af)](_0x7593ba[_0x7fa845(0x1b0)]),_0xa0d05b=!![]);const _0x3883f9=await _0x7593ba[_0x7fa845(0x1d8)](uninstallClaudePlugin);_0x3883f9&&(console['log'](_0x7593ba[_0x7fa845(0x1ac)]),_0xa0d05b=!![]);const _0x287298=await _0x7593ba[_0x7fa845(0x1b1)](uninstallClaudePlugin,'project');_0x287298&&(console[_0x7fa845(0x1af)](_0x7fa845(0x1b7)),_0xa0d05b=!![]);const _0x1716aa=await removeMarketplace();_0x1716aa&&(console[_0x7fa845(0x1af)]('✓\x20Removed\x20trailhead\x20marketplace'),_0xa0d05b=!![]),_0xa0d05b?console['log'](_0x7593ba['umUOg']):console[_0x7fa845(0x1af)]('Nothing\x20to\x20clean\x20up.\x0a');}
1
+ const _0x1e92c6=_0x343a;(function(_0xeb861e,_0x1f1e83){const _0x1a74cf=_0x343a,_0x5d256f=_0xeb861e();while(!![]){try{const _0x4dfd5a=-parseInt(_0x1a74cf(0xea))/0x1*(-parseInt(_0x1a74cf(0xbd))/0x2)+parseInt(_0x1a74cf(0xcc))/0x3*(parseInt(_0x1a74cf(0xd1))/0x4)+parseInt(_0x1a74cf(0xb9))/0x5+parseInt(_0x1a74cf(0xd6))/0x6+parseInt(_0x1a74cf(0xbc))/0x7*(-parseInt(_0x1a74cf(0xb7))/0x8)+parseInt(_0x1a74cf(0xd2))/0x9*(-parseInt(_0x1a74cf(0xe8))/0xa)+parseInt(_0x1a74cf(0xd0))/0xb*(-parseInt(_0x1a74cf(0xb6))/0xc);if(_0x4dfd5a===_0x1f1e83)break;else _0x5d256f['push'](_0x5d256f['shift']());}catch(_0x150087){_0x5d256f['push'](_0x5d256f['shift']());}}}(_0x598d,0x20f50));import{rm,readFile,writeFile}from'fs/promises';function _0x343a(_0x5c6fc0,_0x3b6bd6){_0x5c6fc0=_0x5c6fc0-0xb3;const _0x598d8e=_0x598d();let _0x343ad0=_0x598d8e[_0x5c6fc0];return _0x343ad0;}import{join}from'path';import{existsSync}from'fs';import{spawn}from'child_process';import{deleteAllCredentials}from'./utils/keychain.js';import{getProjectRoot,getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=['ranger',_0x1e92c6(0xdf),'bug-bash','e2e-test-recommender'],opencodePluginName=_0x1e92c6(0xc4);function parseJsonc(_0x1633e1){const _0x5ecbf1=_0x1e92c6,_0x57183e=_0x1633e1['replace'](/\/\*[\s\S]*?\*\//g,''),_0x5ddaba=_0x57183e[_0x5ecbf1(0xbb)](/^\s*\/\/.*$/gm,''),_0x1c4bfe=_0x5ddaba[_0x5ecbf1(0xbb)](/,\s*([}\]])/g,'$1');return JSON[_0x5ecbf1(0xcd)](_0x1c4bfe);}async function removeOpencodePluginConfig(_0x4e4e72){const _0x4c94a1=_0x1e92c6,_0x2ce19b={'OcDBE':'string','gnJcw':function(_0x4dd99b,_0x12538d){return _0x4dd99b===_0x12538d;},'uhfyF':function(_0x412e4c,_0x242c08,_0x5878a9){return _0x412e4c(_0x242c08,_0x5878a9);},'weini':function(_0x4b74b6,_0x239846){return _0x4b74b6+_0x239846;}};if(!existsSync(_0x4e4e72))return![];let _0x1047b5;try{const _0x361ab1=await readFile(_0x4e4e72,_0x4c94a1(0xc5));_0x1047b5=parseJsonc(_0x361ab1);}catch{return![];}const _0x177586=Array['isArray'](_0x1047b5['plugin'])?_0x1047b5['plugin']:[];if(_0x177586['length']===0x0)return![];const _0x5dc38f=_0x177586['filter'](_0x247b5d=>{const _0x104bdf=_0x4c94a1;if(typeof _0x247b5d!==_0x2ce19b[_0x104bdf(0xde)])return!![];return _0x247b5d!==opencodePluginName;});if(_0x2ce19b['gnJcw'](_0x5dc38f['length'],_0x177586['length']))return![];return _0x2ce19b[_0x4c94a1(0xb4)](_0x5dc38f[_0x4c94a1(0xdd)],0x0)?delete _0x1047b5[_0x4c94a1(0xca)]:_0x1047b5[_0x4c94a1(0xca)]=_0x5dc38f,await _0x2ce19b['uhfyF'](writeFile,_0x4e4e72,_0x2ce19b[_0x4c94a1(0xc7)](JSON[_0x4c94a1(0xe9)](_0x1047b5,null,0x2),'\x0a')),!![];}function _0x598d(){const _0x459c16=['✓\x20Removed\x20project\x20skill:\x20','spywZ','WZbnd','@ranger-testing/opencode-plugin','utf-8','ZhUuB','weini','jjWKc','error','plugin','claude','1371KuYeJP','parse','oOsWj','trailhead','1208185DteZsq','56sUiWHk','16839MtIiPO','✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','EWpyD','opencode.json','1580850aUvLFo','✓\x20Removed\x20stored\x20credentials','kSCTf','✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','platform','log','push','length','OcDBE','feature-tracker','yEzho','JMJCe','✓\x20Removed\x20trailhead\x20marketplace','close','✓\x20Removed\x20OpenCode\x20project\x20skill:\x20','AdnUK','GSIPy','✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','590eTHigL','stringify','33107DjDwcY','ULQQo','MzVAX','jcquk','HmGKx','cujTI','YYeon','PjxRP','IYiSF','gnJcw','HLHiD','24mCqGIJ','2368oonUmG','YJgXV','916560ajfypA','PpHIO','replace','4417yVAVhW','12qUCVWw','MIzzS','UICqX','✓\x20Removed\x20OpenCode\x20user\x20skill:\x20'];_0x598d=function(){return _0x459c16;};return _0x598d();}async function uninstallClaudePlugin(_0x2102f3){const _0x17e9dd=_0x1e92c6,_0x2e0747={'EWpyD':function(_0x2d12ab,_0x1c9e2c){return _0x2d12ab===_0x1c9e2c;},'PjxRP':'ranger@trailhead','GWpem':'--scope','MzVAX':'ignore','JMJCe':_0x17e9dd(0xe3)};return new Promise(_0x4a0247=>{const _0x293ebd=_0x17e9dd,_0x25103f={'ULQQo':function(_0x281f9f,_0xfb99d7){return _0x281f9f(_0xfb99d7);},'spywZ':function(_0x5bf9b3,_0x1e0680){const _0x26976b=_0x343a;return _0x2e0747[_0x26976b(0xd4)](_0x5bf9b3,_0x1e0680);}},_0x24aefb=['plugin','uninstall',_0x2e0747[_0x293ebd(0xf1)]];_0x2102f3&&_0x24aefb[_0x293ebd(0xdc)](_0x2e0747['GWpem'],_0x2102f3);const _0x23380c=spawn(_0x293ebd(0xcb),_0x24aefb,{'stdio':[_0x2e0747['MzVAX'],'ignore',_0x2e0747[_0x293ebd(0xec)]],'cwd':_0x2102f3?getProjectRoot():undefined,'shell':process[_0x293ebd(0xda)]==='win32'});_0x23380c['on'](_0x2e0747[_0x293ebd(0xe1)],_0x2dd0d4=>{const _0x57f302=_0x293ebd;_0x25103f[_0x57f302(0xeb)](_0x4a0247,_0x25103f[_0x57f302(0xc2)](_0x2dd0d4,0x0));}),_0x23380c['on'](_0x293ebd(0xc9),()=>{_0x4a0247(![]);});});}async function removeMarketplace(){const _0x57f508=_0x1e92c6,_0x4ceefd={'YYeon':function(_0x4c86ba,_0x52f611){return _0x4c86ba(_0x52f611);},'AdnUK':function(_0x280f14,_0x5b0dde){return _0x280f14===_0x5b0dde;},'IYiSF':function(_0x3c89c1,_0x2af5be){return _0x3c89c1(_0x2af5be);},'YJgXV':function(_0x34f709,_0x45f143,_0x2bf152,_0x4ebd65){return _0x34f709(_0x45f143,_0x2bf152,_0x4ebd65);},'WWKuu':'ignore','pJbTU':_0x57f508(0xc9)};return new Promise(_0x17fab5=>{const _0x274be4=_0x57f508,_0x3ac7f2={'jcquk':function(_0x213d3a,_0x5229ce){const _0x298ebc=_0x343a;return _0x4ceefd[_0x298ebc(0xb3)](_0x213d3a,_0x5229ce);}},_0x34caa2=_0x4ceefd[_0x274be4(0xb8)](spawn,'claude',[_0x274be4(0xca),'marketplace','remove',_0x274be4(0xcf)],{'stdio':[_0x4ceefd['WWKuu'],_0x4ceefd['WWKuu'],'ignore'],'shell':process[_0x274be4(0xda)]==='win32'});_0x34caa2['on'](_0x274be4(0xe3),_0x2c75c8=>{const _0x29c3d4=_0x274be4;_0x4ceefd[_0x29c3d4(0xf0)](_0x17fab5,_0x4ceefd[_0x29c3d4(0xe5)](_0x2c75c8,0x0));}),_0x34caa2['on'](_0x4ceefd['pJbTU'],()=>{const _0x584bf8=_0x274be4;_0x3ac7f2[_0x584bf8(0xed)](_0x17fab5,![]);});});}export async function clean(){const _0x202ecb=_0x1e92c6,_0x16b8e8={'kSCTf':'\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','AKoBU':function(_0x5cb4b3,_0x341329){return _0x5cb4b3(_0x341329);},'ZhUuB':function(_0x2d02aa){return _0x2d02aa();},'szSRT':function(_0xc3a23c,_0x18fa74,_0x466c77){return _0xc3a23c(_0x18fa74,_0x466c77);},'PpHIO':'✓\x20Removed\x20.ranger/\x20directory','jjWKc':function(_0x305b6a){return _0x305b6a();},'HLHiD':function(_0x2d1687,_0x4deb72){return _0x2d1687(_0x4deb72);},'cujTI':'project','HmGKx':'user','DkynB':function(_0x10acc3,_0x37fe3c,_0x2922f6){return _0x10acc3(_0x37fe3c,_0x2922f6);},'oOsWj':function(_0x6afb78,_0x2a61f8){return _0x6afb78(_0x2a61f8);},'VxkAB':function(_0x53b03e,_0x1123d2,_0x1a32c2){return _0x53b03e(_0x1123d2,_0x1a32c2);},'yEzho':_0x202ecb(0xe7),'MIzzS':_0x202ecb(0xd9),'UICqX':function(_0x37dc1c,_0x1c5d87){return _0x37dc1c(_0x1c5d87);},'WZbnd':'✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','GSIPy':'\x0a✅\x20Cleanup\x20complete!\x0a','gJlig':'Nothing\x20to\x20clean\x20up.\x0a'};console['log'](_0x16b8e8[_0x202ecb(0xd8)]);let _0x14d99d=![];try{await deleteAllCredentials(),console[_0x202ecb(0xdb)](_0x202ecb(0xd7)),_0x14d99d=!![];}catch{}const _0x2b32d3=getCacheFile();existsSync(_0x2b32d3)&&(await _0x16b8e8['AKoBU'](rm,_0x2b32d3),_0x14d99d=!![]);const _0x5a49bc=_0x16b8e8['ZhUuB'](getRangerDir);existsSync(_0x5a49bc)&&(await _0x16b8e8['szSRT'](rm,_0x5a49bc,{'recursive':!![]}),console[_0x202ecb(0xdb)](_0x16b8e8[_0x202ecb(0xba)]),_0x14d99d=!![]);const _0x2d68a8=_0x16b8e8[_0x202ecb(0xc8)](getProjectSkillsDir);for(const _0x24d134 of skillsToRemove){const _0x3e92d4=join(_0x2d68a8,_0x24d134);existsSync(_0x3e92d4)&&(await _0x16b8e8['szSRT'](rm,_0x3e92d4,{'recursive':!![]}),console[_0x202ecb(0xdb)](_0x202ecb(0xc1)+_0x24d134),_0x14d99d=!![]);}const _0x58ebeb=_0x16b8e8['jjWKc'](getUserSkillsDir);for(const _0x3f6801 of skillsToRemove){const _0x257ff0=join(_0x58ebeb,_0x3f6801);_0x16b8e8['AKoBU'](existsSync,_0x257ff0)&&(await rm(_0x257ff0,{'recursive':!![]}),console['log']('✓\x20Removed\x20user\x20skill:\x20'+_0x3f6801),_0x14d99d=!![]);}const _0x5b74fa=_0x16b8e8[_0x202ecb(0xb5)](getOpencodeSkillsDir,_0x16b8e8[_0x202ecb(0xef)]);for(const _0x56a995 of skillsToRemove){const _0x3dea16=join(_0x5b74fa,_0x56a995);existsSync(_0x3dea16)&&(await rm(_0x3dea16,{'recursive':!![]}),console['log'](_0x202ecb(0xe4)+_0x56a995),_0x14d99d=!![]);}const _0x2edddf=getOpencodeSkillsDir(_0x16b8e8[_0x202ecb(0xee)]);for(const _0x1acedf of skillsToRemove){const _0x5f45c7=_0x16b8e8['szSRT'](join,_0x2edddf,_0x1acedf);_0x16b8e8['AKoBU'](existsSync,_0x5f45c7)&&(await _0x16b8e8['DkynB'](rm,_0x5f45c7,{'recursive':!![]}),console[_0x202ecb(0xdb)](_0x202ecb(0xc0)+_0x1acedf),_0x14d99d=!![]);}const _0x82f4f=join(getOpencodeConfigDir(_0x16b8e8['cujTI']),'opencode.json');await _0x16b8e8[_0x202ecb(0xce)](removeOpencodePluginConfig,_0x82f4f)&&(console[_0x202ecb(0xdb)](_0x202ecb(0xd3)),_0x14d99d=!![]);const _0x42eb09=_0x16b8e8['VxkAB'](join,_0x16b8e8['AKoBU'](getOpencodeConfigDir,_0x16b8e8['HmGKx']),_0x202ecb(0xd5));await removeOpencodePluginConfig(_0x42eb09)&&(console['log'](_0x16b8e8[_0x202ecb(0xe0)]),_0x14d99d=!![]);const _0x1ddb57=await _0x16b8e8[_0x202ecb(0xc6)](uninstallClaudePlugin);_0x1ddb57&&(console[_0x202ecb(0xdb)](_0x16b8e8[_0x202ecb(0xbe)]),_0x14d99d=!![]);const _0x901eb4=await _0x16b8e8[_0x202ecb(0xbf)](uninstallClaudePlugin,_0x16b8e8[_0x202ecb(0xef)]);_0x901eb4&&(console[_0x202ecb(0xdb)](_0x16b8e8[_0x202ecb(0xc3)]),_0x14d99d=!![]);const _0x4818a6=await _0x16b8e8['jjWKc'](removeMarketplace);_0x4818a6&&(console[_0x202ecb(0xdb)](_0x202ecb(0xe2)),_0x14d99d=!![]),_0x14d99d?console['log'](_0x16b8e8[_0x202ecb(0xe6)]):console['log'](_0x16b8e8['gJlig']);}
@@ -1 +1 @@
1
- const _0x174226=_0x53ac;(function(_0x548ecf,_0x262483){const _0x1ae51f=_0x53ac,_0xc4d55e=_0x548ecf();while(!![]){try{const _0x3ffb82=-parseInt(_0x1ae51f(0x1cd))/0x1+parseInt(_0x1ae51f(0x1bb))/0x2*(parseInt(_0x1ae51f(0x1d6))/0x3)+parseInt(_0x1ae51f(0x1b9))/0x4*(parseInt(_0x1ae51f(0x1d2))/0x5)+parseInt(_0x1ae51f(0x1a7))/0x6*(parseInt(_0x1ae51f(0x1d9))/0x7)+parseInt(_0x1ae51f(0x1db))/0x8+parseInt(_0x1ae51f(0x1be))/0x9+-parseInt(_0x1ae51f(0x1c6))/0xa;if(_0x3ffb82===_0x262483)break;else _0xc4d55e['push'](_0xc4d55e['shift']());}catch(_0x27025b){_0xc4d55e['push'](_0xc4d55e['shift']());}}}(_0x36ff,0x8e9e5));import{existsSync}from'fs';function _0x53ac(_0x4a602a,_0x1b3efb){_0x4a602a=_0x4a602a-0x1a5;const _0x36ff92=_0x36ff();let _0x53ac29=_0x36ff92[_0x4a602a];return _0x53ac29;}import{loadSettings,getNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';import{fetchCloudProfile}from'./utils/cloudProfile.js';import{mergeCloudProfileSettings,readProfileOverrides,resetProfileOverrides,setProfileOverride,unsetProfileOverride}from'./utils/projectsConfig.js';const BOOLEAN_KEYS=['headless',_0x174226(0x1ce),'forceLogin'];function parseLocalValue(_0x3de151,_0x345e4d){const _0x1f1c02=_0x174226,_0x5ecb2d={'bBwOB':_0x1f1c02(0x1b3)};if(BOOLEAN_KEYS[_0x1f1c02(0x1b1)](_0x3de151)){if(_0x345e4d===_0x5ecb2d['bBwOB'])return!![];if(_0x345e4d==='false')return![];throw new Error(_0x1f1c02(0x1cc)+_0x3de151+_0x1f1c02(0x1c7));}return _0x345e4d;}function parseOverrideValue(_0x5c17c3){const _0x2f6689=_0x174226,_0x3ca442={'gZefj':'true','lpwda':function(_0x16b091,_0x1f7ebe){return _0x16b091===_0x1f7ebe;},'HXgfC':'false','NdFPw':_0x2f6689(0x1bd),'DSUME':_0x2f6689(0x1c0),'SMfTX':function(_0x5cdf50,_0x1b2e90){return _0x5cdf50(_0x1b2e90);}};if(_0x5c17c3===_0x3ca442[_0x2f6689(0x1ac)])return!![];if(_0x3ca442[_0x2f6689(0x1ab)](_0x5c17c3,_0x3ca442['HXgfC']))return![];if(_0x3ca442[_0x2f6689(0x1ab)](_0x5c17c3,_0x3ca442['NdFPw']))return null;if(_0x3ca442['lpwda'](_0x5c17c3,_0x3ca442['DSUME']))return undefined;if(/^-?\d+$/['test'](_0x5c17c3)){const _0x1d4bea=Number(_0x5c17c3);if(Number['isSafeInteger'](_0x1d4bea))return _0x1d4bea;}if(/^-?\d+\.\d+$/['test'](_0x5c17c3)){const _0x5e3c59=_0x3ca442[_0x2f6689(0x1a8)](Number,_0x5c17c3);if(!Number[_0x2f6689(0x1bc)](_0x5e3c59))return _0x5e3c59;}const _0x87aa35=_0x5c17c3['trim']();if(_0x87aa35[_0x2f6689(0x1c8)]('{')&&_0x87aa35['endsWith']('}')||_0x87aa35['startsWith']('[')&&_0x87aa35[_0x2f6689(0x1c4)](']'))try{return JSON[_0x2f6689(0x1b4)](_0x87aa35);}catch{}return _0x5c17c3;}function _0x36ff(){const _0x3d814b=['No\x20configuration\x20set\x20for\x20\x22','3632996VRuNXM','MWWgN','1078EhFgAE','isNaN','null','1154628vpXbvd','UrrNx','undefined','\x22\x20not\x20found','stringify','BwIAE','endsWith','\x22\x20and\x20cannot\x20be\x20unset;\x20the\x20legacy\x20tree\x20is\x20read-only\x20under\x20cloud\x20profiles.','26138630LDpevW',':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22','startsWith','kind','object','fRzrW','Invalid\x20value\x20for\x20','447783RMRxoU','allowInsecureLocalhost','kteos','tcbYc','eEZEj','5MtapPJ','cwd','Set\x20','alsoExistsElsewhere','2553uuQiaY','sXAbP','Profile\x20\x22','7uKfhav','zmcJd','8678472EMTzgc','PtyWw','xHifm','log','(not\x20set)','6394632bPPdPs','SMfTX','cloud','\x20=\x20','lpwda','gZefj','qUxQO','inGrQ','\x20for\x20\x22','uWuyR','includes','ngjlu','true','parse','VWJjL','\x20\x20Note:\x20\x22','local'];_0x36ff=function(){return _0x3d814b;};return _0x36ff();}async function resolveProfileTarget(_0x2a2e07){const _0x3981c3=_0x174226,_0x514ac2={'amBLR':function(_0x179525,_0x5091cf){return _0x179525(_0x5091cf);},'MwulF':'cloud'},_0x44b997=existsSync(getEnvDir(_0x2a2e07));let _0x46c1b8=![];try{const _0x70cc7d=await fetchCloudProfile(_0x2a2e07);_0x46c1b8=_0x514ac2['amBLR'](Boolean,_0x70cc7d);}catch{}if(_0x46c1b8)return{'kind':_0x514ac2['MwulF'],'alsoExistsElsewhere':_0x44b997};if(_0x44b997)return{'kind':_0x3981c3(0x1b7),'alsoExistsElsewhere':![]};throw new Error(_0x3981c3(0x1d8)+_0x2a2e07+'\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x2a2e07);}function printDualExistsHint(_0x23272){const _0x541d46=_0x174226;console['log'](_0x541d46(0x1b6)+_0x23272+'\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.');}function getProjectPath(){const _0x309074=_0x174226;return process[_0x309074(0x1d3)]();}async function loadEffectiveCloudSettings(_0x261e5c){const _0x15e797=_0x174226,_0x155820={'MWWgN':function(_0x17b635,_0x5058df){return _0x17b635(_0x5058df);},'eEZEj':function(_0x3c4dc0){return _0x3c4dc0();},'BIAIy':function(_0xf98289,_0x37b36c,_0x50e3b2){return _0xf98289(_0x37b36c,_0x50e3b2);}},_0x42fc64=await _0x155820[_0x15e797(0x1ba)](fetchCloudProfile,_0x261e5c),_0x122d38=readProfileOverrides(_0x155820[_0x15e797(0x1d1)](getProjectPath),_0x261e5c);return _0x155820['BIAIy'](mergeCloudProfileSettings,_0x42fc64?.['settings']??{},_0x122d38??undefined);}export async function configSet(_0x475a7f,_0x3c48ef,_0x4b10d6){const _0x3c711c=_0x174226,_0x30e376={'MRyGN':function(_0x2832cb,_0x1b0fd6){return _0x2832cb===_0x1b0fd6;},'qWETc':function(_0x31806f,_0x1eea08){return _0x31806f(_0x1eea08);},'eVJXn':function(_0x563852,_0x5809da){return _0x563852(_0x5809da);},'oFbxN':function(_0xd63194,_0xc6ac4e,_0x45470e,_0x1dfe80,_0x552b35){return _0xd63194(_0xc6ac4e,_0x45470e,_0x1dfe80,_0x552b35);},'uWuyR':function(_0x44506d,_0x18bc8d,_0x2d2f1a){return _0x44506d(_0x18bc8d,_0x2d2f1a);},'BwIAE':function(_0x5ec275,_0x5084f8,_0x2db598,_0x3005e8,_0x4b3e92){return _0x5ec275(_0x5084f8,_0x2db598,_0x3005e8,_0x4b3e92);},'tcbYc':function(_0x2afb91){return _0x2afb91();}},_0x2278d7=await resolveProfileTarget(_0x475a7f);if(_0x30e376['MRyGN'](_0x2278d7['kind'],_0x3c711c(0x1a9))){if(_0x2278d7['alsoExistsElsewhere'])_0x30e376['qWETc'](printDualExistsHint,_0x475a7f);const _0x387c6b=_0x30e376['eVJXn'](parseOverrideValue,_0x4b10d6);_0x30e376['oFbxN'](setProfileOverride,getProjectPath(),_0x475a7f,_0x3c48ef,_0x387c6b),console[_0x3c711c(0x1a5)](_0x3c711c(0x1d4)+_0x3c48ef+'\x20=\x20'+JSON[_0x3c711c(0x1c2)](_0x387c6b)+_0x3c711c(0x1af)+_0x475a7f+'\x22');return;}const _0x2e84d0=_0x30e376[_0x3c711c(0x1b0)](parseLocalValue,_0x3c48ef,_0x4b10d6);_0x30e376[_0x3c711c(0x1c3)](setProfileOverride,_0x30e376[_0x3c711c(0x1d0)](getProjectPath),_0x475a7f,_0x3c48ef,_0x2e84d0),console[_0x3c711c(0x1a5)]('Set\x20'+_0x3c48ef+_0x3c711c(0x1aa)+_0x2e84d0+'\x20for\x20\x22'+_0x475a7f+'\x22');}export async function configGet(_0x279e5e,_0x5d83a7){const _0x2b23e1=_0x174226,_0x49f4ec={'PtyWw':function(_0x94f067,_0x29a003){return _0x94f067(_0x29a003);},'qUxQO':function(_0x15606f,_0x4b1290,_0x1c8567){return _0x15606f(_0x4b1290,_0x1c8567);},'zmcJd':function(_0xd1770,_0x2cc42e){return _0xd1770===_0x2cc42e;},'dMJWZ':function(_0x525bd2,_0x4c0f70){return _0x525bd2===_0x4c0f70;},'KqcGO':_0x2b23e1(0x1ca)},_0x42fcf5=await resolveProfileTarget(_0x279e5e);if(_0x42fcf5[_0x2b23e1(0x1c9)]===_0x2b23e1(0x1a9)){const _0x1934aa=await _0x49f4ec[_0x2b23e1(0x1dc)](loadEffectiveCloudSettings,_0x279e5e),_0x1607c9=_0x49f4ec[_0x2b23e1(0x1ad)](getNestedValue,_0x1934aa,_0x5d83a7);if(_0x49f4ec[_0x2b23e1(0x1da)](_0x1607c9,undefined))console['log'](_0x2b23e1(0x1a6));else _0x49f4ec['dMJWZ'](typeof _0x1607c9,'object')?console[_0x2b23e1(0x1a5)](JSON[_0x2b23e1(0x1c2)](_0x1607c9,null,0x2)):console[_0x2b23e1(0x1a5)](_0x1607c9);return;}const _0x3802bd=await loadSettings(_0x279e5e),_0x363066=_0x49f4ec['qUxQO'](getNestedValue,_0x3802bd,_0x5d83a7);if(_0x363066===undefined)console[_0x2b23e1(0x1a5)]('(not\x20set)');else typeof _0x363066===_0x49f4ec['KqcGO']?console['log'](JSON['stringify'](_0x363066,null,0x2)):console[_0x2b23e1(0x1a5)](_0x363066);}export async function configList(_0x1a9490){const _0x33de7c=_0x174226,_0x4a0b33={'kteos':function(_0x2210db,_0xce9860){return _0x2210db===_0xce9860;},'UrrNx':_0x33de7c(0x1a9),'xHifm':function(_0xbc5df8,_0x1b11f6){return _0xbc5df8(_0x1b11f6);},'YUUcI':function(_0xe71c68,_0x3a88bb){return _0xe71c68(_0x3a88bb);}},_0x2d8691=await resolveProfileTarget(_0x1a9490);if(_0x4a0b33['kteos'](_0x2d8691[_0x33de7c(0x1c9)],_0x4a0b33[_0x33de7c(0x1bf)])){const _0x2dbfd0=await _0x4a0b33['xHifm'](loadEffectiveCloudSettings,_0x1a9490);if(!_0x2dbfd0||_0x4a0b33[_0x33de7c(0x1cf)](Object['keys'](_0x2dbfd0)['length'],0x0)){console[_0x33de7c(0x1a5)]('No\x20configuration\x20set\x20for\x20\x22'+_0x1a9490+'\x22');return;}console['log'](JSON['stringify'](_0x2dbfd0,null,0x2));return;}const _0x3b07cf=getSettingsPath(_0x1a9490);if(!existsSync(_0x3b07cf)){console[_0x33de7c(0x1a5)]('No\x20configuration\x20set\x20for\x20\x22'+_0x1a9490+'\x22');return;}const _0x661a1c=await _0x4a0b33[_0x33de7c(0x1dd)](loadSettings,_0x1a9490),_0x3b2641=_0x4a0b33['YUUcI'](formatSettings,_0x661a1c);!_0x3b2641?console['log'](_0x33de7c(0x1b8)+_0x1a9490+'\x22'):console['log'](_0x3b2641);}export async function configUnset(_0x2df21c,_0x2cf8b6){const _0x26362a=_0x174226,_0x35c580={'VWJjL':function(_0x31b86b,_0xcc69a0){return _0x31b86b===_0xcc69a0;},'ngjlu':_0x26362a(0x1a9),'WGEgy':function(_0x127f46){return _0x127f46();},'sXAbP':function(_0x22db0e,_0x5cec9b){return _0x22db0e(_0x5cec9b);}},_0x35cc4c=await resolveProfileTarget(_0x2df21c);if(_0x35c580[_0x26362a(0x1b5)](_0x35cc4c[_0x26362a(0x1c9)],_0x35c580[_0x26362a(0x1b2)])){if(_0x35cc4c[_0x26362a(0x1d5)])printDualExistsHint(_0x2df21c);const _0x5f1eed=unsetProfileOverride(_0x35c580['WGEgy'](getProjectPath),_0x2df21c,_0x2cf8b6);_0x5f1eed?console['log']('Removed\x20'+_0x2cf8b6+_0x26362a(0x1af)+_0x2df21c+'\x22'):console[_0x26362a(0x1a5)]('Key\x20\x22'+_0x2cf8b6+'\x22\x20not\x20found');return;}const _0x3140f4=unsetProfileOverride(getProjectPath(),_0x2df21c,_0x2cf8b6);if(_0x3140f4){console[_0x26362a(0x1a5)]('Removed\x20'+_0x2cf8b6);return;}const _0x377456=await _0x35c580[_0x26362a(0x1d7)](loadSettings,_0x2df21c),_0x5cfade=deleteNestedValue(_0x377456,_0x2cf8b6);_0x5cfade?console[_0x26362a(0x1a5)]('Key\x20\x22'+_0x2cf8b6+'\x22\x20lives\x20in\x20the\x20legacy\x20settings\x20file\x20for\x20\x22'+_0x2df21c+_0x26362a(0x1c5)):console[_0x26362a(0x1a5)]('Key\x20\x22'+_0x2cf8b6+_0x26362a(0x1c1));}export async function configReset(_0x56b221){const _0x5639eb=_0x174226,_0x5265e9={'fRzrW':function(_0x165457,_0x2bbbbc){return _0x165457(_0x2bbbbc);},'ICsfe':function(_0x58bec2,_0x45208d){return _0x58bec2===_0x45208d;},'mHNek':_0x5639eb(0x1a9),'inGrQ':function(_0x245554,_0x252e47,_0x10c9b3){return _0x245554(_0x252e47,_0x10c9b3);}},_0x17db3c=await _0x5265e9[_0x5639eb(0x1cb)](resolveProfileTarget,_0x56b221);if(_0x5265e9['ICsfe'](_0x17db3c[_0x5639eb(0x1c9)],_0x5265e9['mHNek'])){_0x5265e9[_0x5639eb(0x1ae)](resetProfileOverrides,getProjectPath(),_0x56b221),console[_0x5639eb(0x1a5)]('Cleared\x20local\x20overrides\x20for\x20\x22'+_0x56b221+'\x22');return;}console[_0x5639eb(0x1a5)]('\x22'+_0x56b221+'\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20'+_0x56b221+'\x20<key>\x22\x20to\x20remove\x20individual\x20values.');}
1
+ const _0x4af29d=_0x15a1;(function(_0x4870e7,_0x3946b3){const _0x4262d3=_0x15a1,_0x2d9b7b=_0x4870e7();while(!![]){try{const _0x4c136a=parseInt(_0x4262d3(0x1e9))/0x1+parseInt(_0x4262d3(0x1ca))/0x2+parseInt(_0x4262d3(0x1f8))/0x3*(parseInt(_0x4262d3(0x1f0))/0x4)+-parseInt(_0x4262d3(0x1e0))/0x5*(-parseInt(_0x4262d3(0x1d7))/0x6)+parseInt(_0x4262d3(0x1eb))/0x7*(-parseInt(_0x4262d3(0x1db))/0x8)+-parseInt(_0x4262d3(0x1e4))/0x9*(-parseInt(_0x4262d3(0x1e6))/0xa)+parseInt(_0x4262d3(0x1cd))/0xb;if(_0x4c136a===_0x3946b3)break;else _0x2d9b7b['push'](_0x2d9b7b['shift']());}catch(_0x567a80){_0x2d9b7b['push'](_0x2d9b7b['shift']());}}}(_0x4ed7,0xaa5ed));import{existsSync}from'fs';import{loadSettings,getNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';import{fetchCloudProfile}from'./utils/cloudProfile.js';import{mergeCloudProfileSettings,readProfileOverrides,resetProfileOverrides,setProfileOverride,unsetProfileOverride}from'./utils/projectsConfig.js';const BOOLEAN_KEYS=[_0x4af29d(0x1cf),_0x4af29d(0x1f6),_0x4af29d(0x1c4)];function _0x15a1(_0x3c646b,_0x4c915e){_0x3c646b=_0x3c646b-0x1c4;const _0x4ed743=_0x4ed7();let _0x15a156=_0x4ed743[_0x3c646b];return _0x15a156;}function parseLocalValue(_0x4794d7,_0x5e8344){const _0x38fb26=_0x4af29d,_0x582fc5={'MJDVI':function(_0x318822,_0x502a4d){return _0x318822===_0x502a4d;},'DmLgS':_0x38fb26(0x1f9)};if(BOOLEAN_KEYS['includes'](_0x4794d7)){if(_0x582fc5['MJDVI'](_0x5e8344,_0x582fc5['DmLgS']))return!![];if(_0x5e8344==='false')return![];throw new Error(_0x38fb26(0x1d3)+_0x4794d7+':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22');}return _0x5e8344;}function parseOverrideValue(_0x285cd5){const _0x28f856=_0x4af29d,_0x1053f8={'LHZTw':function(_0x2e884c,_0x3aa65c){return _0x2e884c===_0x3aa65c;},'fnYlh':_0x28f856(0x1d8),'hrKzv':function(_0x48897a,_0x5afbeb){return _0x48897a(_0x5afbeb);},'DOsKw':function(_0x8aec30,_0x165d4b){return _0x8aec30(_0x165d4b);}};if(_0x1053f8['LHZTw'](_0x285cd5,'true'))return!![];if(_0x285cd5===_0x1053f8[_0x28f856(0x1ea)])return![];if(_0x1053f8[_0x28f856(0x1fe)](_0x285cd5,_0x28f856(0x1fb)))return null;if(_0x285cd5==='undefined')return undefined;if(/^-?\d+$/[_0x28f856(0x1d5)](_0x285cd5)){const _0x1733ba=_0x1053f8['hrKzv'](Number,_0x285cd5);if(Number['isSafeInteger'](_0x1733ba))return _0x1733ba;}if(/^-?\d+\.\d+$/['test'](_0x285cd5)){const _0x5e4a22=_0x1053f8['DOsKw'](Number,_0x285cd5);if(!Number[_0x28f856(0x1de)](_0x5e4a22))return _0x5e4a22;}const _0x2eb656=_0x285cd5['trim']();if(_0x2eb656[_0x28f856(0x1f7)]('{')&&_0x2eb656[_0x28f856(0x1f1)]('}')||_0x2eb656[_0x28f856(0x1f7)]('[')&&_0x2eb656['endsWith'](']'))try{return JSON['parse'](_0x2eb656);}catch{}return _0x285cd5;}async function resolveProfileTarget(_0x5b308f){const _0x35f1db=_0x4af29d,_0x33cd61={'iRcrN':function(_0xa5e271,_0x463e91){return _0xa5e271(_0x463e91);},'dSYUd':function(_0x217221,_0x42f4f1){return _0x217221(_0x42f4f1);},'xOaOq':_0x35f1db(0x1ef),'OPeCO':'local'},_0x2ab500=existsSync(getEnvDir(_0x5b308f));let _0x6ef536=![];try{const _0xfed995=await _0x33cd61[_0x35f1db(0x1df)](fetchCloudProfile,_0x5b308f);_0x6ef536=_0x33cd61['dSYUd'](Boolean,_0xfed995);}catch{}if(_0x6ef536)return{'kind':_0x33cd61['xOaOq'],'alsoExistsElsewhere':_0x2ab500};if(_0x2ab500)return{'kind':_0x33cd61[_0x35f1db(0x1fc)],'alsoExistsElsewhere':![]};throw new Error(_0x35f1db(0x1f4)+_0x5b308f+'\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x5b308f);}function printDualExistsHint(_0x4569f3){const _0x3b3745=_0x4af29d;console[_0x3b3745(0x1e2)]('\x20\x20Note:\x20\x22'+_0x4569f3+'\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.');}function getProjectPath(){return process['cwd']();}async function loadEffectiveCloudSettings(_0x39755f){const _0x104eb8=_0x4af29d,_0x6fd466={'iIkLE':function(_0x1a9f83,_0x47f901){return _0x1a9f83(_0x47f901);},'QZPOT':function(_0x19b9c4){return _0x19b9c4();},'yEPgQ':function(_0x57090d,_0x459a05,_0x23d196){return _0x57090d(_0x459a05,_0x23d196);},'ZYrdD':function(_0x59ea00,_0x2a8a41){return _0x59ea00??_0x2a8a41;}},_0x454453=await _0x6fd466[_0x104eb8(0x1d6)](fetchCloudProfile,_0x39755f),_0x490894=readProfileOverrides(_0x6fd466['QZPOT'](getProjectPath),_0x39755f);return _0x6fd466['yEPgQ'](mergeCloudProfileSettings,_0x454453?.['settings']??{},_0x6fd466[_0x104eb8(0x1cb)](_0x490894,undefined));}function _0x4ed7(){const _0x51e6d4=['object','hskSQ','DdGqF','keys','277314zqDSmC','ZYrdD','phEZR','2654333UxQYeR','QxKTy','headless','yrTcx','bgXnb','EkETK','Invalid\x20value\x20for\x20','No\x20configuration\x20set\x20for\x20\x22','test','iIkLE','18GTTxjG','false','MFpWR','Removed\x20','8PoBcEX','Key\x20\x22','\x22\x20not\x20found','isNaN','iRcrN','294865OTZgWe','Set\x20','log','ktIzy','18TSIYvN','kind','872930jpQxCl','(not\x20set)','\x20=\x20','666113fssvac','fnYlh','5342897SFZSYM','lRfbk','alsoExistsElsewhere','KkvHK','cloud','4ctrCiH','endsWith','\x20for\x20\x22','length','Profile\x20\x22','stringify','allowInsecureLocalhost','startsWith','190590AvKpLb','true','\x20<key>\x22\x20to\x20remove\x20individual\x20values.','null','OPeCO','JEikN','LHZTw','idEWi','forceLogin','kXCYG'];_0x4ed7=function(){return _0x51e6d4;};return _0x4ed7();}export async function configSet(_0x3aef09,_0x353764,_0x58d822){const _0x3dcbbd=_0x4af29d,_0x3cff6f={'phEZR':function(_0x25cc09,_0x2dd35a){return _0x25cc09(_0x2dd35a);},'kXCYG':function(_0x1a3d8d,_0x4ebe3b,_0x51db90,_0x4921a5,_0x30f18c){return _0x1a3d8d(_0x4ebe3b,_0x51db90,_0x4921a5,_0x30f18c);}},_0x2ec487=await _0x3cff6f[_0x3dcbbd(0x1cc)](resolveProfileTarget,_0x3aef09);if(_0x2ec487[_0x3dcbbd(0x1e5)]==='cloud'){if(_0x2ec487[_0x3dcbbd(0x1ed)])_0x3cff6f['phEZR'](printDualExistsHint,_0x3aef09);const _0x59c9fe=parseOverrideValue(_0x58d822);_0x3cff6f[_0x3dcbbd(0x1c5)](setProfileOverride,getProjectPath(),_0x3aef09,_0x353764,_0x59c9fe),console['log'](_0x3dcbbd(0x1e1)+_0x353764+_0x3dcbbd(0x1e8)+JSON[_0x3dcbbd(0x1f5)](_0x59c9fe)+_0x3dcbbd(0x1f2)+_0x3aef09+'\x22');return;}const _0x318fff=parseLocalValue(_0x353764,_0x58d822);setProfileOverride(getProjectPath(),_0x3aef09,_0x353764,_0x318fff),console[_0x3dcbbd(0x1e2)](_0x3dcbbd(0x1e1)+_0x353764+_0x3dcbbd(0x1e8)+_0x318fff+'\x20for\x20\x22'+_0x3aef09+'\x22');}export async function configGet(_0x22cd77,_0x4b60fb){const _0x2ba38b=_0x4af29d,_0x21a0c7={'JEikN':function(_0x587c0c,_0x17a9ac){return _0x587c0c(_0x17a9ac);},'DdGqF':function(_0x2fcb13,_0x83bcb4,_0x3d1b53){return _0x2fcb13(_0x83bcb4,_0x3d1b53);},'MFpWR':function(_0x5ebfdd,_0x4d8ed0){return _0x5ebfdd===_0x4d8ed0;}},_0x3d6571=await _0x21a0c7[_0x2ba38b(0x1fd)](resolveProfileTarget,_0x22cd77);if(_0x3d6571[_0x2ba38b(0x1e5)]==='cloud'){const _0x2b3e00=await loadEffectiveCloudSettings(_0x22cd77),_0x55963f=_0x21a0c7[_0x2ba38b(0x1c8)](getNestedValue,_0x2b3e00,_0x4b60fb);if(_0x21a0c7[_0x2ba38b(0x1d9)](_0x55963f,undefined))console[_0x2ba38b(0x1e2)]('(not\x20set)');else typeof _0x55963f==='object'?console[_0x2ba38b(0x1e2)](JSON['stringify'](_0x55963f,null,0x2)):console['log'](_0x55963f);return;}const _0x54695f=await loadSettings(_0x22cd77),_0x11eaa2=_0x21a0c7[_0x2ba38b(0x1c8)](getNestedValue,_0x54695f,_0x4b60fb);if(_0x11eaa2===undefined)console[_0x2ba38b(0x1e2)](_0x2ba38b(0x1e7));else typeof _0x11eaa2===_0x2ba38b(0x1c6)?console[_0x2ba38b(0x1e2)](JSON[_0x2ba38b(0x1f5)](_0x11eaa2,null,0x2)):console['log'](_0x11eaa2);}export async function configList(_0x470ec7){const _0x46a798=_0x4af29d,_0x160fda={'QxKTy':function(_0x1a10b0,_0x17d1d5){return _0x1a10b0(_0x17d1d5);},'lRfbk':function(_0x232022,_0x323792){return _0x232022===_0x323792;},'ktIzy':function(_0x54f93e,_0x192a69){return _0x54f93e(_0x192a69);},'GmOoO':function(_0x4cdd6d,_0xb8888c){return _0x4cdd6d(_0xb8888c);}},_0x35982b=await _0x160fda['QxKTy'](resolveProfileTarget,_0x470ec7);if(_0x160fda[_0x46a798(0x1ec)](_0x35982b['kind'],_0x46a798(0x1ef))){const _0x2d57e3=await loadEffectiveCloudSettings(_0x470ec7);if(!_0x2d57e3||_0x160fda['lRfbk'](Object[_0x46a798(0x1c9)](_0x2d57e3)[_0x46a798(0x1f3)],0x0)){console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x470ec7+'\x22');return;}console['log'](JSON['stringify'](_0x2d57e3,null,0x2));return;}const _0x3b0fc1=_0x160fda[_0x46a798(0x1e3)](getSettingsPath,_0x470ec7);if(!existsSync(_0x3b0fc1)){console[_0x46a798(0x1e2)](_0x46a798(0x1d4)+_0x470ec7+'\x22');return;}const _0x11a2bc=await _0x160fda[_0x46a798(0x1ce)](loadSettings,_0x470ec7),_0x5dc27c=_0x160fda['GmOoO'](formatSettings,_0x11a2bc);!_0x5dc27c?console[_0x46a798(0x1e2)]('No\x20configuration\x20set\x20for\x20\x22'+_0x470ec7+'\x22'):console['log'](_0x5dc27c);}export async function configUnset(_0xc000b7,_0x46b907){const _0x4fdd69=_0x4af29d,_0x2a5301={'hskSQ':function(_0x52c8eb,_0xf57d9e){return _0x52c8eb(_0xf57d9e);},'EkETK':function(_0x3d433f,_0x42c3c1){return _0x3d433f===_0x42c3c1;},'bgXnb':function(_0x4a9b08,_0x243ac9){return _0x4a9b08(_0x243ac9);},'yrTcx':function(_0x1df283,_0x3340a7,_0x3c4ef5,_0x1a437d){return _0x1df283(_0x3340a7,_0x3c4ef5,_0x1a437d);},'rSKDJ':function(_0x3d7c04,_0x2f74cd,_0x4d8865,_0x556ce3){return _0x3d7c04(_0x2f74cd,_0x4d8865,_0x556ce3);},'ufbpB':function(_0x303339){return _0x303339();},'idEWi':function(_0x116374,_0x37a44f){return _0x116374(_0x37a44f);}},_0x5885cd=await _0x2a5301[_0x4fdd69(0x1c7)](resolveProfileTarget,_0xc000b7);if(_0x2a5301[_0x4fdd69(0x1d2)](_0x5885cd['kind'],'cloud')){if(_0x5885cd['alsoExistsElsewhere'])_0x2a5301[_0x4fdd69(0x1d1)](printDualExistsHint,_0xc000b7);const _0x55cab7=_0x2a5301[_0x4fdd69(0x1d0)](unsetProfileOverride,getProjectPath(),_0xc000b7,_0x46b907);_0x55cab7?console['log'](_0x4fdd69(0x1da)+_0x46b907+'\x20for\x20\x22'+_0xc000b7+'\x22'):console['log']('Key\x20\x22'+_0x46b907+_0x4fdd69(0x1dd));return;}const _0xb74752=_0x2a5301['rSKDJ'](unsetProfileOverride,_0x2a5301['ufbpB'](getProjectPath),_0xc000b7,_0x46b907);if(_0xb74752){console[_0x4fdd69(0x1e2)]('Removed\x20'+_0x46b907);return;}const _0x3898ee=await _0x2a5301[_0x4fdd69(0x1ff)](loadSettings,_0xc000b7),_0xfb550c=deleteNestedValue(_0x3898ee,_0x46b907);_0xfb550c?console[_0x4fdd69(0x1e2)](_0x4fdd69(0x1dc)+_0x46b907+'\x22\x20lives\x20in\x20the\x20legacy\x20settings\x20file\x20for\x20\x22'+_0xc000b7+'\x22\x20and\x20cannot\x20be\x20unset;\x20the\x20legacy\x20tree\x20is\x20read-only\x20under\x20cloud\x20profiles.'):console[_0x4fdd69(0x1e2)](_0x4fdd69(0x1dc)+_0x46b907+_0x4fdd69(0x1dd));}export async function configReset(_0x31aaf4){const _0x3953cf=_0x4af29d,_0x3bcd88={'nWqDx':function(_0x2c3147,_0x5056fa){return _0x2c3147(_0x5056fa);},'KkvHK':_0x3953cf(0x1ef)},_0xfd6af7=await _0x3bcd88['nWqDx'](resolveProfileTarget,_0x31aaf4);if(_0xfd6af7[_0x3953cf(0x1e5)]===_0x3bcd88[_0x3953cf(0x1ee)]){resetProfileOverrides(getProjectPath(),_0x31aaf4),console['log']('Cleared\x20local\x20overrides\x20for\x20\x22'+_0x31aaf4+'\x22');return;}console['log']('\x22'+_0x31aaf4+'\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20'+_0x31aaf4+_0x3953cf(0x1fa));}
@@ -1 +1 @@
1
- function _0x500d(_0x2bbce5,_0x27fbdd){_0x2bbce5=_0x2bbce5-0x1b8;const _0x447df3=_0x447d();let _0x500d3c=_0x447df3[_0x2bbce5];return _0x500d3c;}(function(_0x18640c,_0x3a5891){const _0x25a793=_0x500d,_0x3da21c=_0x18640c();while(!![]){try{const _0x457a1b=parseInt(_0x25a793(0x1cc))/0x1+parseInt(_0x25a793(0x1c4))/0x2*(parseInt(_0x25a793(0x1c2))/0x3)+-parseInt(_0x25a793(0x1c7))/0x4*(parseInt(_0x25a793(0x1ca))/0x5)+-parseInt(_0x25a793(0x1ba))/0x6+parseInt(_0x25a793(0x1bc))/0x7*(-parseInt(_0x25a793(0x1c1))/0x8)+parseInt(_0x25a793(0x1b9))/0x9+-parseInt(_0x25a793(0x1b8))/0xa;if(_0x457a1b===_0x3a5891)break;else _0x3da21c['push'](_0x3da21c['shift']());}catch(_0x134f59){_0x3da21c['push'](_0x3da21c['shift']());}}}(_0x447d,0xf029a));import _0x4bbfdc from'inquirer';import{deleteCloudProfile,fetchCloudProfile}from'./utils/cloudProfile.js';function _0x447d(){const _0x394d5d=['991384qwUuZV','yes','Profile\x20deletion\x20requires\x20an\x20interactive\x20terminal\x20so\x20the\x20profile\x20name\x20can\x20be\x20typed\x20for\x20confirmation.\x20Pass\x20--yes\x20to\x20skip\x20confirmation.','5FxIgrD','prompt','176863HlwXcD','oXuSp','14648130SmCNQH','13510071WJeyIh','3489648faAIbI','Cloud\x20profile\x20\x22','42KXqlQy','Xjfbi','GyYUJ','Profile\x20deletion\x20cancelled:\x20confirmation\x20did\x20not\x20match.','nIxMS','329648nMjGAp','3mqjhHk','confirmation','3694454qpqwVA','Type\x20\x22','uSdlX'];_0x447d=function(){return _0x394d5d;};return _0x447d();}import{isInteractive}from'./utils/cloudProfileSession.js';import{clearLastProfile,resetProfileOverrides}from'./utils/projectsConfig.js';export async function deleteProfile(_0x57b3c0,_0x54385f={}){const _0x2f7a74=_0x500d,_0x557e9c={'uSdlX':_0x2f7a74(0x1c9),'GyYUJ':'input','Xjfbi':_0x2f7a74(0x1bf),'oXuSp':function(_0x2ebbac,_0xc08aa5){return _0x2ebbac(_0xc08aa5);},'nIxMS':function(_0xcb1dbb,_0x4a3289,_0x362bf3){return _0xcb1dbb(_0x4a3289,_0x362bf3);},'gFnXk':function(_0x255fe8,_0x2b192f,_0x480ee9){return _0x255fe8(_0x2b192f,_0x480ee9);}},_0x575279=await fetchCloudProfile(_0x57b3c0);if(!_0x575279)throw new Error(_0x2f7a74(0x1bb)+_0x57b3c0+'\x22\x20not\x20found.');if(!_0x54385f[_0x2f7a74(0x1c8)]&&!isInteractive())throw new Error(_0x557e9c[_0x2f7a74(0x1c6)]);console['log']('\x0aWarning:\x20this\x20deletes\x20the\x20shared\x20cloud\x20profile\x20\x22'+_0x57b3c0+'\x22\x20for\x20everyone\x20in\x20your\x20organization.');if(!_0x54385f['yes']){const {confirmation:_0x20637c}=await _0x4bbfdc[_0x2f7a74(0x1cb)]([{'type':_0x557e9c[_0x2f7a74(0x1be)],'name':_0x2f7a74(0x1c3),'message':_0x2f7a74(0x1c5)+_0x57b3c0+'\x22\x20to\x20confirm\x20deletion:'}]);if(_0x20637c!==_0x57b3c0)throw new Error(_0x557e9c[_0x2f7a74(0x1bd)]);}await _0x557e9c[_0x2f7a74(0x1cd)](deleteCloudProfile,_0x57b3c0),_0x557e9c[_0x2f7a74(0x1c0)](resetProfileOverrides,process['cwd'](),_0x57b3c0),_0x557e9c['gFnXk'](clearLastProfile,process['cwd'](),_0x57b3c0),console['log']('✓\x20Deleted\x20cloud\x20profile\x20\x22'+_0x57b3c0+'\x22.');}
1
+ function _0x5d63(){const _0x146e84=['13RIuCvl','\x22\x20not\x20found.','wLRRY','prompt','yes','Profile\x20deletion\x20cancelled:\x20confirmation\x20did\x20not\x20match.','\x22\x20for\x20everyone\x20in\x20your\x20organization.','4eIlhqd','10wFTCHq','261804sPeZXJ','273SYlwNQ','\x0aWarning:\x20this\x20deletes\x20the\x20shared\x20cloud\x20profile\x20\x22','890571JCjXIs','10983182ebqcdy','confirmation','eEFMR','46006dEERgA','76488dIxOPy','5316GNejvj','1460EIVbVN','ZWoLS','12PTcQWq','\x22\x20to\x20confirm\x20deletion:','Cloud\x20profile\x20\x22','33rqZMFK','1310058NXmXLM','cwd'];_0x5d63=function(){return _0x146e84;};return _0x5d63();}(function(_0x220eee,_0x4028e4){const _0x230c08=_0xed9a,_0x3f9870=_0x220eee();while(!![]){try{const _0x263791=parseInt(_0x230c08(0x196))/0x1*(parseInt(_0x230c08(0x19b))/0x2)+parseInt(_0x230c08(0x192))/0x3*(-parseInt(_0x230c08(0x18d))/0x4)+parseInt(_0x230c08(0x199))/0x5*(-parseInt(_0x230c08(0x198))/0x6)+-parseInt(_0x230c08(0x190))/0x7*(parseInt(_0x230c08(0x197))/0x8)+-parseInt(_0x230c08(0x184))/0x9*(-parseInt(_0x230c08(0x18e))/0xa)+-parseInt(_0x230c08(0x183))/0xb*(parseInt(_0x230c08(0x18f))/0xc)+parseInt(_0x230c08(0x186))/0xd*(parseInt(_0x230c08(0x193))/0xe);if(_0x263791===_0x4028e4)break;else _0x3f9870['push'](_0x3f9870['shift']());}catch(_0x2dbff8){_0x3f9870['push'](_0x3f9870['shift']());}}}(_0x5d63,0x33cf4));import _0x39433a from'inquirer';import{deleteCloudProfile,fetchCloudProfile}from'./utils/cloudProfile.js';function _0xed9a(_0xf30cfd,_0x90a7a2){_0xf30cfd=_0xf30cfd-0x182;const _0x5d6365=_0x5d63();let _0xed9a01=_0x5d6365[_0xf30cfd];return _0xed9a01;}import{isInteractive}from'./utils/cloudProfileSession.js';import{clearLastProfile,resetProfileOverrides}from'./utils/projectsConfig.js';export async function deleteProfile(_0x531f6b,_0x2875ff={}){const _0x16bb34=_0xed9a,_0x57e733={'wLRRY':function(_0x5e237a,_0x5509f6){return _0x5e237a(_0x5509f6);},'eEFMR':function(_0x311cc7){return _0x311cc7();},'JygOA':_0x16bb34(0x194),'ZWoLS':function(_0x24c260,_0x509131,_0x21dd82){return _0x24c260(_0x509131,_0x21dd82);}},_0x4d931f=await _0x57e733['wLRRY'](fetchCloudProfile,_0x531f6b);if(!_0x4d931f)throw new Error(_0x16bb34(0x182)+_0x531f6b+_0x16bb34(0x187));if(!_0x2875ff[_0x16bb34(0x18a)]&&!_0x57e733[_0x16bb34(0x195)](isInteractive))throw new Error('Profile\x20deletion\x20requires\x20an\x20interactive\x20terminal\x20so\x20the\x20profile\x20name\x20can\x20be\x20typed\x20for\x20confirmation.\x20Pass\x20--yes\x20to\x20skip\x20confirmation.');console['log'](_0x16bb34(0x191)+_0x531f6b+_0x16bb34(0x18c));if(!_0x2875ff[_0x16bb34(0x18a)]){const {confirmation:_0x3a63ba}=await _0x39433a[_0x16bb34(0x189)]([{'type':'input','name':_0x57e733['JygOA'],'message':'Type\x20\x22'+_0x531f6b+_0x16bb34(0x19c)}]);if(_0x3a63ba!==_0x531f6b)throw new Error(_0x16bb34(0x18b));}await _0x57e733[_0x16bb34(0x188)](deleteCloudProfile,_0x531f6b),_0x57e733[_0x16bb34(0x19a)](resetProfileOverrides,process[_0x16bb34(0x185)](),_0x531f6b),clearLastProfile(process[_0x16bb34(0x185)](),_0x531f6b),console['log']('✓\x20Deleted\x20cloud\x20profile\x20\x22'+_0x531f6b+'\x22.');}
@@ -1 +1 @@
1
- const _0x381924=_0x2005;(function(_0x5d09bb,_0xaf2fac){const _0x4e73cf=_0x2005,_0x368a76=_0x5d09bb();while(!![]){try{const _0xf6ae3e=parseInt(_0x4e73cf(0xb0))/0x1*(parseInt(_0x4e73cf(0xbe))/0x2)+-parseInt(_0x4e73cf(0xaa))/0x3*(parseInt(_0x4e73cf(0xcd))/0x4)+parseInt(_0x4e73cf(0xcc))/0x5+-parseInt(_0x4e73cf(0xb4))/0x6+parseInt(_0x4e73cf(0xb6))/0x7+-parseInt(_0x4e73cf(0xa8))/0x8+-parseInt(_0x4e73cf(0xa4))/0x9*(-parseInt(_0x4e73cf(0xa5))/0xa);if(_0xf6ae3e===_0xaf2fac)break;else _0x368a76['push'](_0x368a76['shift']());}catch(_0x575467){_0x368a76['push'](_0x368a76['shift']());}}}(_0x4f4a,0xd38cb));function _0x2005(_0x3d61a4,_0x5040fe){_0x3d61a4=_0x3d61a4-0xa3;const _0x4f4a8a=_0x4f4a();let _0x200500=_0x4f4a8a[_0x3d61a4];return _0x200500;}import{readdir,stat}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{getRangerDir}from'./utils/rangerRoot.js';import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';import{getToken}from'./utils/keychain.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const NON_ENV_DIRS=[_0x381924(0xaf),_0x381924(0xac),_0x381924(0xba),_0x381924(0xb2),'ci'];export async function getEnvNames(){const _0x12bd6a=_0x381924,_0x3f3eea={'CyZlQ':function(_0x289c09,_0x5a392e){return _0x289c09(_0x5a392e);},'FlgeW':function(_0x57ce3d){return _0x57ce3d();},'oVFoS':function(_0x3ebfb6,_0x26d0f8){return _0x3ebfb6(_0x26d0f8);},'kSzIl':'local','KXgNy':function(_0x40033b,_0x2e93d5,_0x158190){return _0x40033b(_0x2e93d5,_0x158190);},'fCobk':_0x12bd6a(0xb3),'iDJBh':function(_0x491dc7,_0x35f718,_0x5e8ee0){return _0x491dc7(_0x35f718,_0x5e8ee0);},'BGvsp':_0x12bd6a(0xb8)},_0x253374=getRangerDir();if(!_0x3f3eea['CyZlQ'](existsSync,_0x253374))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x552e16=await _0x3f3eea['FlgeW'](readActiveProfileName),_0xfd62bc=[],_0x19b215={},_0x2e37fb=join(_0x253374,_0x12bd6a(0xb2));if(_0x3f3eea['oVFoS'](existsSync,_0x2e37fb)){const _0x25c104=await readdir(_0x2e37fb);for(const _0xca322f of _0x25c104){const _0x7ea587=join(_0x2e37fb,_0xca322f),_0x4b32c1=await stat(_0x7ea587);_0x4b32c1['isDirectory']()&&(_0xfd62bc[_0x12bd6a(0xc1)](_0xca322f),_0x19b215[_0xca322f]=_0x3f3eea[_0x12bd6a(0xae)]);}}const _0x2843b9=_0x3f3eea['KXgNy'](join,_0x253374,'ci');if(existsSync(_0x2843b9)){const _0x4d661e=await _0x3f3eea[_0x12bd6a(0xbf)](readdir,_0x2843b9);for(const _0x430e23 of _0x4d661e){const _0x41e35b=join(_0x2843b9,_0x430e23),_0x1d4f95=await stat(_0x41e35b);_0x1d4f95['isDirectory']()&&(_0xfd62bc['push'](_0x430e23),_0x19b215[_0x430e23]='ci');}}const _0x4e1656=await readdir(_0x253374);for(const _0x1ce83e of _0x4e1656){if(NON_ENV_DIRS[_0x12bd6a(0xab)](_0x1ce83e))continue;if(_0x1ce83e[_0x12bd6a(0xbb)]('.'))continue;if(_0x1ce83e[_0x12bd6a(0xc6)](_0x3f3eea[_0x12bd6a(0xc4)]))continue;const _0x586ad6=_0x3f3eea[_0x12bd6a(0xc2)](join,_0x253374,_0x1ce83e),_0x4bee2f=await stat(_0x586ad6);_0x4bee2f['isDirectory']()&&existsSync(join(_0x586ad6,'settings.json'))&&(!_0xfd62bc[_0x12bd6a(0xab)](_0x1ce83e)&&(_0xfd62bc['push'](_0x1ce83e),_0x19b215[_0x1ce83e]=_0x3f3eea['BGvsp']));}return{'envNames':_0xfd62bc,'activeEnv':_0x552e16,'envTypes':_0x19b215};}export async function envList(){const _0xb4538a=_0x381924,_0x5964fd={'ndynA':function(_0x2bb04a){return _0x2bb04a();},'Fsqhj':function(_0x178a10,_0x47c723){return _0x178a10 instanceof _0x47c723;},'AaJco':function(_0x5f27b7,_0x25331f){return _0x5f27b7(_0x25331f);},'FsNuJ':function(_0x3b8767,_0x149839){return _0x3b8767===_0x149839;},'pvRtx':_0xb4538a(0xbd),'FGqeZ':function(_0x74b2b4,_0x4ee510){return _0x74b2b4===_0x4ee510;},'vzpiT':'local','UDHHL':function(_0x1c039c,_0x37177b){return _0x1c039c>_0x37177b;},'fJNfM':function(_0x57d61c,_0x4d0321){return _0x57d61c===_0x4d0321;}},{envNames:_0x37728e,activeEnv:_0x127568,envTypes:_0x16a670}=await _0x5964fd['ndynA'](getEnvNames);let _0x5731e1=[];const _0x5de381=await _0x5964fd['ndynA'](getToken);if(_0x5de381)try{_0x5731e1=await listCloudProfiles();}catch(_0xd74869){console['error'](_0xb4538a(0xb5)+(_0x5964fd['Fsqhj'](_0xd74869,Error)?_0xd74869['message']:_0x5964fd[_0xb4538a(0xbc)](String,_0xd74869)));}if(_0x5964fd[_0xb4538a(0xa3)](_0x37728e[_0xb4538a(0xd0)],0x0)&&_0x5731e1['length']===0x0){console['log'](_0x5964fd['pvRtx']),console[_0xb4538a(0xb9)](_0xb4538a(0xcb));return;}const _0x34d8e2=new Set(_0x5731e1[_0xb4538a(0xc8)](_0x4db228=>_0x4db228[_0xb4538a(0xb1)]));if(_0x37728e['length']>0x0){console['log']('\x0aLocal\x20Profiles\x20(legacy):');for(const _0x1b85da of _0x37728e[_0xb4538a(0xca)]()){const _0x4de94e=_0x5964fd['FGqeZ'](_0x1b85da,_0x127568)&&!_0x34d8e2[_0xb4538a(0xc5)](_0x1b85da),_0x3859c4=_0x16a670[_0x1b85da]||_0x5964fd['vzpiT'],_0x5091d5=await _0x5964fd[_0xb4538a(0xbc)](loadSettings,_0x1b85da),_0x9576da=_0x3859c4==='legacy'?'':'\x20['+_0x3859c4+']';console['log']('\x20\x20'+(_0x4de94e?'*\x20':'\x20\x20')+_0x1b85da+_0x9576da),_0x5091d5[_0xb4538a(0xc7)]&&console['log'](_0xb4538a(0xa6)+_0x5091d5['baseUrl']),_0x5091d5['environmentDetails']&&console[_0xb4538a(0xb9)](_0xb4538a(0xb7)+_0x5091d5[_0xb4538a(0xce)]);}}if(_0x5964fd[_0xb4538a(0xc0)](_0x5731e1['length'],0x0)){console['log'](_0xb4538a(0xad));for(const _0x922321 of _0x5731e1[_0xb4538a(0xca)]((_0x332e6a,_0x1bec26)=>_0x332e6a[_0xb4538a(0xb1)][_0xb4538a(0xa7)](_0x1bec26['name']))){const _0x12d67e=_0x5964fd[_0xb4538a(0xcf)](_0x922321['name'],_0x127568),_0x426083=_0x922321['environmentKey']?'\x20('+_0x922321['environmentKey']+')':'',_0x1d53a7=_0x922321[_0xb4538a(0xc9)]?'cached\x20(updated\x20'+_0x922321[_0xb4538a(0xc9)]+')':_0xb4538a(0xa9);console[_0xb4538a(0xb9)]('\x20\x20'+(_0x12d67e?'*\x20':'\x20\x20')+_0x922321['name']+_0xb4538a(0xc3)+_0x426083),console['log']('\x20\x20\x20\x20\x20\x20Session:\x20'+_0x1d53a7);}}_0x127568&&console[_0xb4538a(0xb9)]('\x0a*\x20=\x20active\x20profile');}function _0x4f4a(){const _0x2c1c7c=['kSzIl','sessions','2xKgfen','name','local','.txt','7190832OLCrnx','\x0aWarning:\x20could\x20not\x20fetch\x20cloud\x20profiles:\x20','5868240RzkEuI','\x20\x20\x20\x20\x20\x20Details:\x20','legacy','log','reports','startsWith','AaJco','\x0aNo\x20profiles\x20found.','203394zPWvBe','CyZlQ','UDHHL','push','iDJBh','\x20[cloud]','fCobk','has','endsWith','baseUrl','map','sessionUpdatedAt','sort','Run:\x20ranger\x20profile\x20add\x20<profile-name>','1537040GxIqpd','12EfYaGT','environmentDetails','fJNfM','length','FsNuJ','19807209ZHiOUW','10cNPwKw','\x20\x20\x20\x20\x20\x20URL:\x20','localeCompare','2737904YBUxqT','no\x20session','1142706RJfuwU','includes','bug-bashes','\x0aCloud\x20Profiles:'];_0x4f4a=function(){return _0x2c1c7c;};return _0x4f4a();}
1
+ const _0x43b512=_0x1bf1;function _0x4156(){const _0x152b93=['\x0aLocal\x20Profiles\x20(legacy):','PxMmi','cached\x20(updated\x20','\x20\x20\x20\x20\x20\x20Details:\x20','DuPea','includes','8644800EfgSzJ','settings.json','Run:\x20ranger\x20profile\x20add\x20<profile-name>','\x20\x20\x20\x20\x20\x20Session:\x20','MYMew','legacy','12EZBtAI','xQchL','message','environmentKey','VfQmH','local','muiJY','\x20[cloud]','1868955gYAdOE','isDirectory','WMOBQ','error','sort','reports','1193328revCCr','length','eEUeJ','stGGL','PdFUn','EwnEL','5912424DGOBmq','sessionUpdatedAt','map','61784bktszW','\x0a*\x20=\x20active\x20profile','name','Eimlv','5020910YnHNzK','environmentDetails','15983730brRpdo','4RkbZPH','\x0aWarning:\x20could\x20not\x20fetch\x20cloud\x20profiles:\x20','bug-bashes','push','has','log'];_0x4156=function(){return _0x152b93;};return _0x4156();}(function(_0x15a4f4,_0x13a629){const _0x31f951=_0x1bf1,_0x439c5d=_0x15a4f4();while(!![]){try{const _0x28aaf4=parseInt(_0x31f951(0xa5))/0x1*(-parseInt(_0x31f951(0xce))/0x2)+parseInt(_0x31f951(0xbf))/0x3+parseInt(_0x31f951(0xc5))/0x4+-parseInt(_0x31f951(0xa2))/0x5+-parseInt(_0x31f951(0xb7))/0x6*(parseInt(_0x31f951(0xcb))/0x7)+parseInt(_0x31f951(0xb1))/0x8+parseInt(_0x31f951(0xa4))/0x9;if(_0x28aaf4===_0x13a629)break;else _0x439c5d['push'](_0x439c5d['shift']());}catch(_0x2192eb){_0x439c5d['push'](_0x439c5d['shift']());}}}(_0x4156,0xea969));function _0x1bf1(_0x4ccaa8,_0x30bda0){_0x4ccaa8=_0x4ccaa8-0xa2;const _0x41563c=_0x4156();let _0x1bf173=_0x41563c[_0x4ccaa8];return _0x1bf173;}import{readdir,stat}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{getRangerDir}from'./utils/rangerRoot.js';import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';import{getToken}from'./utils/keychain.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const NON_ENV_DIRS=['sessions',_0x43b512(0xa7),_0x43b512(0xc4),'local','ci'];export async function getEnvNames(){const _0x4807fd=_0x43b512,_0x282a52={'IykhI':function(_0x2edfad){return _0x2edfad();},'muiJY':function(_0x49d669,_0x5a82c5){return _0x49d669(_0x5a82c5);},'GNjlj':function(_0x31fc66){return _0x31fc66();},'DuPea':function(_0x4652ab,_0x8681dc,_0x2a98b9){return _0x4652ab(_0x8681dc,_0x2a98b9);},'PdFUn':_0x4807fd(0xbc),'dvpGU':function(_0x39ecb8,_0x51303d){return _0x39ecb8(_0x51303d);},'MYMew':function(_0x55c934,_0x3e4911){return _0x55c934(_0x3e4911);},'EwnEL':function(_0x33d430,_0x419b6d){return _0x33d430(_0x419b6d);},'WWyHx':'.txt','PxMmi':_0x4807fd(0xb2)},_0xbab264=_0x282a52['IykhI'](getRangerDir);if(!_0x282a52[_0x4807fd(0xbd)](existsSync,_0xbab264))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x1cd0b7=await _0x282a52['GNjlj'](readActiveProfileName),_0x1f3a62=[],_0x55d251={},_0x117211=_0x282a52[_0x4807fd(0xaf)](join,_0xbab264,_0x282a52[_0x4807fd(0xc9)]);if(existsSync(_0x117211)){const _0x4a7ec8=await _0x282a52['dvpGU'](readdir,_0x117211);for(const _0x5c8256 of _0x4a7ec8){const _0x5efd62=join(_0x117211,_0x5c8256),_0x1fadf4=await _0x282a52[_0x4807fd(0xb5)](stat,_0x5efd62);_0x1fadf4[_0x4807fd(0xc0)]()&&(_0x1f3a62['push'](_0x5c8256),_0x55d251[_0x5c8256]=_0x4807fd(0xbc));}}const _0x308be9=join(_0xbab264,'ci');if(existsSync(_0x308be9)){const _0x48d07d=await readdir(_0x308be9);for(const _0x17a8ea of _0x48d07d){const _0x4ad6d0=join(_0x308be9,_0x17a8ea),_0x5e2d22=await _0x282a52['MYMew'](stat,_0x4ad6d0);_0x5e2d22['isDirectory']()&&(_0x1f3a62[_0x4807fd(0xa8)](_0x17a8ea),_0x55d251[_0x17a8ea]='ci');}}const _0x10881=await _0x282a52[_0x4807fd(0xca)](readdir,_0xbab264);for(const _0x378b96 of _0x10881){if(NON_ENV_DIRS['includes'](_0x378b96))continue;if(_0x378b96['startsWith']('.'))continue;if(_0x378b96['endsWith'](_0x282a52['WWyHx']))continue;const _0xca7b12=join(_0xbab264,_0x378b96),_0x3064d8=await stat(_0xca7b12);_0x3064d8[_0x4807fd(0xc0)]()&&_0x282a52['MYMew'](existsSync,join(_0xca7b12,_0x282a52[_0x4807fd(0xac)]))&&(!_0x1f3a62[_0x4807fd(0xb0)](_0x378b96)&&(_0x1f3a62['push'](_0x378b96),_0x55d251[_0x378b96]='legacy'));}return{'envNames':_0x1f3a62,'activeEnv':_0x1cd0b7,'envTypes':_0x55d251};}export async function envList(){const _0x29885b=_0x43b512,_0x4f456a={'eEUeJ':function(_0x2ac4b2,_0x4e4b45){return _0x2ac4b2 instanceof _0x4e4b45;},'VfQmH':'\x0aNo\x20profiles\x20found.','WMOBQ':function(_0x5bd008,_0x20301f){return _0x5bd008>_0x20301f;},'DNlYp':_0x29885b(0xbc),'Eimlv':function(_0x3cb1ce,_0x510233){return _0x3cb1ce(_0x510233);},'sMxbb':'\x0aCloud\x20Profiles:','stGGL':function(_0x48c3ab,_0x2618a6){return _0x48c3ab===_0x2618a6;},'xQchL':'no\x20session'},{envNames:_0xd05b3c,activeEnv:_0x8d2e0f,envTypes:_0x31a85e}=await getEnvNames();let _0x1d57a3=[];const _0x222cd5=await getToken();if(_0x222cd5)try{_0x1d57a3=await listCloudProfiles();}catch(_0x2b566a){console[_0x29885b(0xc2)](_0x29885b(0xa6)+(_0x4f456a[_0x29885b(0xc7)](_0x2b566a,Error)?_0x2b566a[_0x29885b(0xb9)]:String(_0x2b566a)));}if(_0xd05b3c['length']===0x0&&_0x1d57a3[_0x29885b(0xc6)]===0x0){console[_0x29885b(0xaa)](_0x4f456a[_0x29885b(0xbb)]),console['log'](_0x29885b(0xb3));return;}const _0x314120=new Set(_0x1d57a3[_0x29885b(0xcd)](_0x5f2475=>_0x5f2475['name']));if(_0x4f456a[_0x29885b(0xc1)](_0xd05b3c[_0x29885b(0xc6)],0x0)){console['log'](_0x29885b(0xab));for(const _0x17496d of _0xd05b3c[_0x29885b(0xc3)]()){const _0xf483b1=_0x17496d===_0x8d2e0f&&!_0x314120[_0x29885b(0xa9)](_0x17496d),_0x4c52f9=_0x31a85e[_0x17496d]||_0x4f456a['DNlYp'],_0x1d3b86=await _0x4f456a[_0x29885b(0xd1)](loadSettings,_0x17496d),_0x128876=_0x4c52f9===_0x29885b(0xb6)?'':'\x20['+_0x4c52f9+']';console['log']('\x20\x20'+(_0xf483b1?'*\x20':'\x20\x20')+_0x17496d+_0x128876),_0x1d3b86['baseUrl']&&console[_0x29885b(0xaa)]('\x20\x20\x20\x20\x20\x20URL:\x20'+_0x1d3b86['baseUrl']),_0x1d3b86['environmentDetails']&&console['log'](_0x29885b(0xae)+_0x1d3b86[_0x29885b(0xa3)]);}}if(_0x1d57a3['length']>0x0){console[_0x29885b(0xaa)](_0x4f456a['sMxbb']);for(const _0x281520 of _0x1d57a3[_0x29885b(0xc3)]((_0x21ddc4,_0x38453e)=>_0x21ddc4[_0x29885b(0xd0)]['localeCompare'](_0x38453e[_0x29885b(0xd0)]))){const _0x310a6e=_0x4f456a[_0x29885b(0xc8)](_0x281520['name'],_0x8d2e0f),_0xf15c3=_0x281520['environmentKey']?'\x20('+_0x281520[_0x29885b(0xba)]+')':'',_0x2f0a49=_0x281520[_0x29885b(0xcc)]?_0x29885b(0xad)+_0x281520['sessionUpdatedAt']+')':_0x4f456a[_0x29885b(0xb8)];console[_0x29885b(0xaa)]('\x20\x20'+(_0x310a6e?'*\x20':'\x20\x20')+_0x281520[_0x29885b(0xd0)]+_0x29885b(0xbe)+_0xf15c3),console[_0x29885b(0xaa)](_0x29885b(0xb4)+_0x2f0a49);}}_0x8d2e0f&&console[_0x29885b(0xaa)](_0x29885b(0xcf));}