@ranger-testing/ranger-cli 3.1.0 → 3.1.1-alpha.b22d278-38

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(_0x282231,_0x414ad1){const _0x539c8f=_0x42d4,_0x331f6f=_0x282231();while(!![]){try{const _0x5ce92e=parseInt(_0x539c8f(0x13b))/0x1*(parseInt(_0x539c8f(0x13e))/0x2)+-parseInt(_0x539c8f(0x147))/0x3+-parseInt(_0x539c8f(0x153))/0x4+parseInt(_0x539c8f(0x197))/0x5+parseInt(_0x539c8f(0x14e))/0x6*(parseInt(_0x539c8f(0x193))/0x7)+parseInt(_0x539c8f(0x164))/0x8*(parseInt(_0x539c8f(0x138))/0x9)+-parseInt(_0x539c8f(0x150))/0xa;if(_0x5ce92e===_0x414ad1)break;else _0x331f6f['push'](_0x331f6f['shift']());}catch(_0x25259e){_0x331f6f['push'](_0x331f6f['shift']());}}}(_0x2d97,0xc9e39));import{readdir,rm}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import _0x56a1a7 from'inquirer';import{getRangerDir,getRangerHomeDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{fetchAuthConfig,createCloudProfile,manualBrowserLogin,ApiError}from'./utils/cloudProfile.js';function _0x42d4(_0x3ffbc3,_0x57b956){_0x3ffbc3=_0x3ffbc3-0x131;const _0x2d9704=_0x2d97();let _0x42d450=_0x2d9704[_0x3ffbc3];return _0x42d450;}function _0x2d97(){const _0x12001a=['\x20\x20Details:\x20https://docs.ranger.net/main/concepts/profiles#automated-login','prompt','eMwTH','FRQwY','CXQzj','XbQsP','\x20\x20To\x20get\x20automated\x20login\x20set\x20up\x20for\x20your\x20team\x20(a\x20one-time\x20call):\x20eng@ranger.net\x0a','\x20\x20Set\x20active\x20profile:\x20','capture','QUInO','profile.add.autoRouteSkipped','rewvr','slice','ibVNk','error','\x20\x20Note:\x20found\x20git-tracked\x20local\x20profile\x20at\x20','DwQld','trackPhaseEnd','name','environments','skipAuth','\x20\x20Next:\x20ranger\x20go\x20--profile\x20','\x20(continuing\x20with\x20--force)','4148949MDlTAb','VfBsw','use_suggestion','Continue\x20anyway','3495775utMJgW','\x27\x20created\x20(CDP).','pVKDq','test','\x20\x20or\x20contact\x20eng@ranger.net\x20to\x20set\x20up\x20automated\x20login\x20for\x20your\x20team.','trim','exit','Jjuzo','\x22.\x20Expected\x20\x22Name:\x20Value\x22.','FjkVH','\x20\x20https://docs.ranger.net/main/concepts/profiles','signal','profile.add.autoRouted','kHgWs','LLuRf','\x0a🌐\x20Profile\x20Setup\x0a','manual','status','\x20\x20When\x20you\x27re\x20ready\x20to\x20log\x20in,\x20run\x20`ranger\x20profile\x20add\x20','env','no_auth_config','IlNPF','Invalid\x20--setup-header\x20format:\x20\x22','YxYyD','some','aBOxC','HEAD','CZRlL','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','DghGX','Invalid\x20URL','BFVbO','SDeyH','nVMaS','The\x20--ci\x20flag\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x20session\x20state\x0a','`\x20again\x20without\x20--skip-auth.','indexOf','keys','YHgDC','\x27\x20created\x20with\x20a\x20captured\x20session.\x0a','18QAZqfN','yes','for\x20you,\x20so\x20the\x20encrypted-CI\x20flow\x20is\x20unnecessary.\x0a','1SIPmxT','startsWith','✓\x20Cloud\x20profile\x20\x27','881746XqVYYp','DAMFS','SAwBk','\x20\x20Ranger\x20will\x20use\x20it\x20to\x20look\x20up\x20the\x20right\x20cloud\x20auth\x20env\x20to\x20attach.\x0a','origin','confirm','JGnZK','IqUBX','setupHeaders','1131717UERSNE','fJetW','no_match','\x27\x20matching\x20','Enter\x20a\x20different\x20URL','oBqEs','gpznW','6WvsqeU','yLkku','3677820whOvIF','To\x20set\x20up\x20a\x20profile,\x20run:\x0a','ufkAD','1628396jofiIG','\x0a\x20\x20No\x20auth\x20env\x20matches\x20','\x0a\x20\x20(domains:\x20','--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','Use\x20','Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','includes','isElectron','jtPUk','fetch\x20failed','rWANm','Automated\x20login\x20isn\x27t\x20set\x20up\x20for\x20your\x20team.\x20Capture\x20a\x20session\x20via\x20a\x20headed\x20browser\x20instead?','\x27\x20created.\x0a','nUCHp','http://localhost:3000','juEwo','985288ebeuqk','cdpEndpoint','cwd','\x0a\x20\x20A\x20profile\x20named\x20\x22','nYlOD','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20','length','log','awoNF','pnkKZ','NODE_TLS_REJECT_UNAUTHORIZED','setupHeader','\x0a\x20\x20Could\x20not\x20fetch\x20this\x20org\x27s\x20auth\x20config:\x20','veAcH','retry','MTZcM','ArAff','\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a','RLCSM','Found\x20auth\x20environment\x20\x27','join','baseUrl','message','✓\x20Profile\x20\x27'];_0x2d97=function(){return _0x12001a;};return _0x2d97();}import{isInteractive}from'./utils/cloudProfileSession.js';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 warnCloudProfileSharedInOrg(){if(!process['stdout']['isTTY'])return;console['warn'](CLOUD_PROFILE_SHARING_WARNING);}async function checkUrlReachability(_0x38b111){const _0x1f0a65=_0x42d4,_0x4d0d26={'jtPUk':_0x1f0a65(0x1b1),'TLAkG':function(_0x431e4a,_0x25a35b,_0x1f4614){return _0x431e4a(_0x25a35b,_0x1f4614);},'wxdLO':_0x1f0a65(0x1b5),'lsNSz':'TypeError'};try{const _0x3edb7d=new AbortController(),_0x130c49=setTimeout(()=>_0x3edb7d['abort'](),0x1388),_0x4ed7f5={'method':_0x4d0d26[_0x1f0a65(0x15c)],'signal':_0x3edb7d[_0x1f0a65(0x1a2)],'redirect':_0x1f0a65(0x1a7)};/^https:\/\/localhost(:\d+)?/i[_0x1f0a65(0x19a)](_0x38b111)&&(process['env'][_0x1f0a65(0x16e)]='0');const _0x41c51d=await _0x4d0d26['TLAkG'](fetch,_0x38b111,_0x4ed7f5);delete process[_0x1f0a65(0x1aa)][_0x1f0a65(0x16e)],clearTimeout(_0x130c49);if(_0x41c51d[_0x1f0a65(0x1a8)]<0x190)return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x41c51d[_0x1f0a65(0x1a8)]};}catch(_0x1ebec6){delete process['env']['NODE_TLS_REJECT_UNAUTHORIZED'];const _0x8b94cf=_0x1ebec6,_0x2127e8=_0x8b94cf[_0x1f0a65(0x17a)]||String(_0x1ebec6),_0x490bde=_0x2127e8[_0x1f0a65(0x15a)](_0x4d0d26['wxdLO'])||_0x8b94cf[_0x1f0a65(0x18e)]===_0x4d0d26['lsNSz']||_0x2127e8[_0x1f0a65(0x15a)](_0x1f0a65(0x15d));return{'ok':![],'error':_0x2127e8,'isProtocolError':_0x490bde};}}async function sweepOrphanLocalProfile(_0x44f412,_0x36a2ed,_0xde34d1){const _0x190a60=_0x42d4,_0x1be06f={'CZRlL':function(_0x57147e,_0x8cdab){return _0x57147e(_0x8cdab);},'nUCHp':function(_0xcc0202,_0x269320,_0x3c2a45){return _0xcc0202(_0x269320,_0x3c2a45);},'XjMjc':function(_0x2713a7,_0x5e0f17,_0x4d08df){return _0x2713a7(_0x5e0f17,_0x4d08df);}},_0x38c03c=join(_0x36a2ed,'local'),_0x7950d8=join(_0x38c03c,_0x44f412);existsSync(_0x7950d8)&&(_0xde34d1&&await _0x1be06f[_0x190a60(0x1b2)](isPathGitTracked,_0x7950d8)?console['log'](_0x190a60(0x18b)+_0x7950d8+'\x20—\x20not\x20removing.\x20Delete\x20manually\x20if\x20you\x20want\x20it\x20gone.'):(await rm(_0x7950d8,{'recursive':!![],'force':!![]}),console['log']('\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20'+_0x7950d8)));if(existsSync(_0x38c03c)){let _0x9ee588=[];try{_0x9ee588=await _0x1be06f['CZRlL'](readdir,_0x38c03c);}catch{return;}const _0x4b0377='.tmp-'+_0x44f412+'-';for(const _0x3241c1 of _0x9ee588){if(!_0x3241c1[_0x190a60(0x13c)](_0x4b0377))continue;const _0x1704f9=_0x1be06f[_0x190a60(0x161)](join,_0x38c03c,_0x3241c1);await _0x1be06f['XjMjc'](rm,_0x1704f9,{'recursive':!![],'force':!![]}),console['log']('\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20'+_0x1704f9);}}}async function sweepOrphansBestEffort(_0x4f7f92){const _0x400132=_0x42d4,_0x220bca={'LLuRf':function(_0xa640e0,_0x1363b1,_0x3e0d01,_0x26ab15){return _0xa640e0(_0x1363b1,_0x3e0d01,_0x26ab15);},'FjkVH':function(_0x2e7981){return _0x2e7981();}};try{await _0x220bca[_0x400132(0x1a5)](sweepOrphanLocalProfile,_0x4f7f92,_0x220bca[_0x400132(0x1a0)](getRangerHomeDir),![]);const _0x2b7e60=_0x220bca[_0x400132(0x1a0)](getRangerDir);_0x2b7e60!==getRangerHomeDir()&&await _0x220bca['LLuRf'](sweepOrphanLocalProfile,_0x4f7f92,_0x2b7e60,!![]);}catch(_0x1619bd){console['log']('\x20\x20Note:\x20cloud\x20profile\x20created,\x20but\x20failed\x20to\x20sweep\x20orphan\x20local\x20dirs\x20('+(_0x1619bd instanceof Error?_0x1619bd['message']:String(_0x1619bd))+').');}}async function markActive(_0x27ec62){const _0x39d2f5=_0x42d4,_0x4925f9={'RnfwS':function(_0x56091e,_0xaacb9e){return _0x56091e(_0xaacb9e);},'ArAff':'Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.'};try{await _0x4925f9['RnfwS'](writeActiveProfileName,_0x27ec62),console['log'](_0x39d2f5(0x183)+_0x27ec62);}catch{console[_0x39d2f5(0x16b)](_0x4925f9[_0x39d2f5(0x174)]);}}async function tryAutoRouteCloudProfile(_0x2391a3,_0x5611b6,_0x442cae,_0x459e71,_0x1b6745){const _0x30180f=_0x42d4,_0x2707ad={'QqSgN':function(_0x365a29,_0x29fdd5){return _0x365a29===_0x29fdd5;},'SAwBk':'profile.add.autoRouteSkipped','aBOxC':function(_0x5995bc,_0x1662c5){return _0x5995bc instanceof _0x1662c5;},'ktHqI':function(_0x1efe09,_0x208db4){return _0x1efe09+_0x208db4;},'KFAik':function(_0x3ed471,_0x80bc98){return _0x3ed471+_0x80bc98;},'erEQb':'\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','hvOLS':'\x20\x20Workaround\x20for\x20now:\x20create\x20a\x20profile\x20without\x20a\x20captured\x20session\x20and\x20supply\x20one\x20later:\x0a','juEwo':_0x30180f(0x182),'nVMaS':_0x30180f(0x17c),'iZyqx':'saveToCloud','BFVbO':'user_declined','gpznW':'\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20cloud-managed\x20session.','nYlOD':function(_0x5a30c4,_0x502a5e,_0x3ea210,_0xc6a896){return _0x5a30c4(_0x502a5e,_0x3ea210,_0xc6a896);},'btBlX':function(_0x48460f){return _0x48460f();},'ipcaL':function(_0x2b2ab5,_0x358948){return _0x2b2ab5===_0x358948;},'eMwTH':function(_0x292377,_0x36f842){return _0x292377+_0x36f842;}};let _0x91d968;try{_0x91d968=await fetchAuthConfig();}catch(_0x122e9b){return _0x1b6745?.[_0x30180f(0x18d)](_0x2707ad[_0x30180f(0x140)],{'reason':'no_auth_config','profileName':_0x2391a3}),console['error'](_0x30180f(0x170)+(_0x2707ad[_0x30180f(0x1b0)](_0x122e9b,Error)?_0x122e9b[_0x30180f(0x17a)]:String(_0x122e9b))),![];}if(!_0x91d968||!_0x91d968['environments']||Object['keys'](_0x91d968['environments'])[_0x30180f(0x16a)]===0x0){if(_0x459e71)return await captureEnvLessProfile(_0x2391a3,_0x5611b6,_0x442cae,_0x1b6745);return _0x1b6745?.['trackPhaseEnd'](_0x2707ad[_0x30180f(0x140)],{'reason':_0x30180f(0x1ab),'profileName':_0x2391a3}),console[_0x30180f(0x18a)](_0x2707ad['ktHqI'](_0x2707ad['KFAik'](_0x2707ad['erEQb']+'\x0a'+_0x2707ad['hvOLS']+('\x20\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20'+_0x2391a3+'\x20--url\x20'+_0x5611b6+'\x20--skip-auth\x0a')+'\x0a',_0x2707ad[_0x30180f(0x163)]),_0x2707ad[_0x30180f(0x131)])),![];}const _0x2f45c2=matchAuthEnvironment(_0x5611b6,_0x91d968);if(!_0x2f45c2)return _0x1b6745?.[_0x30180f(0x18d)](_0x30180f(0x186),{'reason':_0x30180f(0x149),'profileName':_0x2391a3}),console['error'](_0x30180f(0x154)+_0x5611b6+'.\x20Configured\x20envs:\x20'+Object[_0x30180f(0x135)](_0x91d968[_0x30180f(0x18f)])[_0x30180f(0x178)](',\x20')+'.'),![];const _0x20a198=_0x91d968[_0x30180f(0x18f)][_0x2f45c2],_0x1907f5=_0x20a198?.['domains']??[];if(_0x459e71&&!_0x442cae['yes']){const {saveToCloud:_0x145130}=await _0x56a1a7['prompt']([{'type':_0x30180f(0x143),'name':_0x2707ad['iZyqx'],'message':_0x30180f(0x177)+_0x2f45c2+_0x30180f(0x14a)+_0x5611b6+_0x30180f(0x155)+_0x1907f5[_0x30180f(0x178)](',\x20')+')\x0a\x20\x20Save\x20\x27'+_0x2391a3+'\x27\x20to\x20the\x20cloud?','default':!![]}]);if(!_0x145130)return _0x1b6745?.['trackPhaseEnd'](_0x2707ad['SAwBk'],{'reason':_0x2707ad[_0x30180f(0x1b6)],'profileName':_0x2391a3}),console['error'](_0x2707ad[_0x30180f(0x14d)]),![];}const _0x53f006=_0x1907f5[_0x30180f(0x1af)](_0x496c9c=>{const _0x27afe5=_0x30180f;try{return _0x2707ad['QqSgN'](new URL(_0x496c9c)[_0x27afe5(0x142)],new URL(_0x5611b6)['origin']);}catch{return![];}}),_0x22e6de={};!_0x53f006&&(_0x22e6de['baseUrl']=_0x5611b6);try{await _0x2707ad[_0x30180f(0x168)](createCloudProfile,_0x2391a3,_0x2f45c2,{'settings':_0x22e6de}),_0x2707ad['btBlX'](warnCloudProfileSharedInOrg);}catch(_0x586576){if(_0x586576 instanceof ApiError&&_0x2707ad['ipcaL'](_0x586576['status'],0x199)){console['error'](_0x30180f(0x167)+_0x2391a3+_0x30180f(0x175)+(_0x30180f(0x169)+_0x2391a3));throw _0x586576;}throw _0x586576;}return console[_0x30180f(0x16b)](_0x2707ad[_0x30180f(0x17e)](_0x30180f(0x17b)+_0x2391a3+_0x30180f(0x160),'\x20\x20Next:\x20ranger\x20go\x20--profile\x20'+_0x2391a3)),await sweepOrphansBestEffort(_0x2391a3),_0x1b6745?.[_0x30180f(0x18d)](_0x30180f(0x1a3),{'envKey':_0x2f45c2,'profileName':_0x2391a3}),!![];}async function createUnconfiguredCloudProfile(_0x10fff2,_0x4bf778){const _0x31553f=_0x42d4,_0x3dbc2a={'YKRVz':function(_0x1a37f1,_0x3b561c,_0x2f9e85,_0x2333dc){return _0x1a37f1(_0x3b561c,_0x2f9e85,_0x2333dc);},'AmOHA':function(_0x29db09){return _0x29db09();},'XEgjK':function(_0x8f184f,_0x374c1d){return _0x8f184f===_0x374c1d;},'VfBsw':function(_0x4acc73,_0x66082b){return _0x4acc73+_0x66082b;}};try{await _0x3dbc2a['YKRVz'](createCloudProfile,_0x10fff2,undefined,{'settings':_0x4bf778}),_0x3dbc2a['AmOHA'](warnCloudProfileSharedInOrg);}catch(_0x4e9bf3){_0x4e9bf3 instanceof ApiError&&_0x3dbc2a['XEgjK'](_0x4e9bf3[_0x31553f(0x1a8)],0x199)&&console[_0x31553f(0x18a)](_0x3dbc2a[_0x31553f(0x194)](_0x31553f(0x167)+_0x10fff2+_0x31553f(0x175),_0x31553f(0x169)+_0x10fff2));throw _0x4e9bf3;}}async function captureEnvLessProfile(_0x36b047,_0x1a5c1d,_0x5d9db1,_0x771412){const _0x1f5bee=_0x42d4,_0x19423d={'oBqEs':_0x1f5bee(0x186),'pnkKZ':'user_declined','ibVNk':function(_0x3f4836,_0x491cc5){return _0x3f4836+_0x491cc5;},'IqUBX':function(_0x5ed176,_0xae2c8e){return _0x5ed176===_0xae2c8e;},'VwODv':function(_0x468c4a,_0x270b7b){return _0x468c4a+_0x270b7b;},'jwhcb':function(_0x501562,_0x423470){return _0x501562>_0x423470;},'fDTXj':function(_0x2458cb,_0xab8828,_0x39b8dd,_0x15def8){return _0x2458cb(_0xab8828,_0x39b8dd,_0x15def8);},'yLkku':function(_0x3aaedd){return _0x3aaedd();},'dzjGW':function(_0x2d3d42,_0x5c7651){return _0x2d3d42+_0x5c7651;},'JGnZK':function(_0x3777c0,_0x482b90,_0x58a0af){return _0x3777c0(_0x482b90,_0x58a0af);},'XbQsP':function(_0x45f3f8,_0x3895d2){return _0x45f3f8+_0x3895d2;},'ddXQb':function(_0x58ea23,_0xa0fc22){return _0x58ea23(_0xa0fc22);}};if(!_0x5d9db1[_0x1f5bee(0x139)]){const {capture:_0x5a470a}=await _0x56a1a7[_0x1f5bee(0x17d)]([{'type':'confirm','name':_0x1f5bee(0x184),'message':_0x1f5bee(0x15f),'default':!![]}]);if(!_0x5a470a)return _0x771412?.['trackPhaseEnd'](_0x19423d[_0x1f5bee(0x14c)],{'reason':_0x19423d[_0x1f5bee(0x16d)],'profileName':_0x36b047}),console['error'](_0x19423d[_0x1f5bee(0x189)]('\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20session,\x0a',_0x1f5bee(0x19b))),![];}const _0x2e9c44={};if(_0x5d9db1[_0x1f5bee(0x16f)])for(const _0x382e14 of _0x5d9db1[_0x1f5bee(0x16f)]){const _0x26554e=_0x382e14['indexOf'](':');if(_0x19423d['IqUBX'](_0x26554e,-0x1))continue;_0x2e9c44[_0x382e14[_0x1f5bee(0x188)](0x0,_0x26554e)['trim']()]=_0x382e14[_0x1f5bee(0x188)](_0x19423d['VwODv'](_0x26554e,0x1))[_0x1f5bee(0x19c)]();}const _0x3578bd={'baseUrl':_0x1a5c1d};_0x19423d['jwhcb'](Object['keys'](_0x2e9c44)['length'],0x0)&&(_0x3578bd[_0x1f5bee(0x146)]=_0x2e9c44);let _0xc7a47e;try{_0xc7a47e=await _0x19423d['fDTXj'](createCloudProfile,_0x36b047,undefined,{'settings':_0x3578bd}),_0x19423d[_0x1f5bee(0x14f)](warnCloudProfileSharedInOrg);}catch(_0x328b46){_0x328b46 instanceof ApiError&&_0x19423d[_0x1f5bee(0x145)](_0x328b46[_0x1f5bee(0x1a8)],0x199)&&console['error'](_0x19423d['dzjGW']('\x0a\x20\x20A\x20profile\x20named\x20\x22'+_0x36b047+_0x1f5bee(0x175),'\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x36b047));throw _0x328b46;}return await _0x19423d[_0x1f5bee(0x144)](manualBrowserLogin,_0xc7a47e,{'key':'','domains':[_0x1a5c1d],'setupHeaders':_0x19423d['jwhcb'](Object['keys'](_0x2e9c44)[_0x1f5bee(0x16a)],0x0)?_0x2e9c44:undefined}),console['log'](_0x19423d[_0x1f5bee(0x181)]('\x0a✓\x20Profile\x20\x27'+_0x36b047+_0x1f5bee(0x137),_0x1f5bee(0x191)+_0x36b047)),await _0x19423d['ddXQb'](sweepOrphansBestEffort,_0x36b047),_0x771412?.['trackPhaseEnd']('profile.add.autoRouted',{'envKey':null,'profileName':_0x36b047}),!![];}export async function addEnv(_0x263080,_0x110e73={},_0x39a9e0){const _0x1207c0=_0x42d4,_0x2f9489={'veAcH':function(_0x5e3aaf,_0x49768d){return _0x5e3aaf+_0x49768d;},'hDNCF':function(_0x30439b,_0xe648ee){return _0x30439b+_0xe648ee;},'SDeyH':function(_0x280eda,_0x110bbe){return _0x280eda+_0x110bbe;},'xHiGx':_0x1207c0(0x13a),'DAMFS':_0x1207c0(0x1b3),'RLCSM':function(_0x5353d3,_0x5b1b86){return _0x5353d3===_0x5b1b86;},'ufkAD':function(_0x3dc546,_0x7754a8){return _0x3dc546!==_0x7754a8;},'kHgWs':function(_0x1de0d2,_0x303d16){return _0x1de0d2===_0x303d16;},'FRQwY':function(_0x95110e,_0x41b2b3){return _0x95110e(_0x41b2b3);},'Rhntj':function(_0x53e8c1){return _0x53e8c1();},'awoNF':'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','DghGX':'\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','ITTJO':function(_0x421962,_0x54c914){return _0x421962>_0x54c914;},'IlNPF':function(_0x5c2e9f,_0x448928,_0x562d7f){return _0x5c2e9f(_0x448928,_0x562d7f);},'OjtHK':function(_0x42f20d,_0x43ed67,_0xce88dc,_0x510897,_0x379fd0){return _0x42f20d(_0x43ed67,_0xce88dc,_0x510897,_0x379fd0);},'CXQzj':function(_0x2642a6,_0xf0d147){return _0x2642a6 instanceof _0xf0d147;},'YHgDC':function(_0x2299d1,_0x24c260){return _0x2299d1(_0x24c260);},'pVKDq':function(_0x145bd6,_0x3d5bc5){return _0x145bd6(_0x3d5bc5);},'rouQh':function(_0x926394,_0x38b4ef){return _0x926394(_0x38b4ef);},'MTZcM':function(_0x248ce2,_0x595d5a){return _0x248ce2(_0x595d5a);},'YxYyD':_0x1207c0(0x141),'bImpj':'input','rewvr':_0x1207c0(0x179),'DwQld':_0x1207c0(0x158),'nVMBQ':_0x1207c0(0x162),'TuWLv':'list','rWANm':'What\x20would\x20you\x20like\x20to\x20do?','QUInO':_0x1207c0(0x196),'fJetW':'continue','Jjuzo':_0x1207c0(0x195),'JKTgv':function(_0x1191e2,_0x591bd5){return _0x1191e2===_0x591bd5;},'IlNQW':function(_0x22f321,_0x8ef6b2,_0x48e54c,_0x15a42f,_0x4bc89e,_0x3b60a2){return _0x22f321(_0x8ef6b2,_0x48e54c,_0x15a42f,_0x4bc89e,_0x3b60a2);}};_0x110e73['ci']&&(console['error'](_0x2f9489[_0x1207c0(0x171)](_0x2f9489['hDNCF'](_0x2f9489[_0x1207c0(0x1b7)](_0x1207c0(0x132),_0x2f9489['xHiGx']),'\x0a'),_0x1207c0(0x151))+_0x2f9489[_0x1207c0(0x13f)]+'\x0a'+'For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a'+_0x1207c0(0x1a1)),process[_0x1207c0(0x19d)](0x1));const _0x1f16a2={};if(_0x110e73['setupHeader'])for(const _0x12bb5f of _0x110e73[_0x1207c0(0x16f)]){const _0x3224f0=_0x12bb5f[_0x1207c0(0x134)](':');if(_0x2f9489[_0x1207c0(0x176)](_0x3224f0,-0x1))throw new Error(_0x1207c0(0x1ad)+_0x12bb5f+_0x1207c0(0x19f));const _0x143698=_0x12bb5f['slice'](0x0,_0x3224f0)[_0x1207c0(0x19c)](),_0x2fbeca=_0x12bb5f['slice'](_0x3224f0+0x1)['trim']();_0x1f16a2[_0x143698]=_0x2fbeca;}if(_0x2f9489[_0x1207c0(0x152)](_0x110e73[_0x1207c0(0x165)],undefined)&&_0x2f9489[_0x1207c0(0x1a4)](_0x110e73['cdpEndpoint']['trim'](),''))throw new Error('--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222');if(_0x110e73['cdpEndpoint']&&_0x110e73['url'])throw new Error(_0x1207c0(0x156));const _0x27c47d=_0x2f9489[_0x1207c0(0x17f)](Boolean,_0x110e73[_0x1207c0(0x165)]),_0x4aba3e=_0x2f9489['Rhntj'](isInteractive);if(!_0x4aba3e&&!_0x110e73['url']&&!_0x27c47d&&!_0x110e73[_0x1207c0(0x190)])throw new Error(_0x2f9489[_0x1207c0(0x16c)]);if(_0x27c47d){const _0x4872e3=_0x110e73[_0x1207c0(0x165)];console['log'](_0x2f9489[_0x1207c0(0x1b4)]),console['log']('\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20'+_0x4872e3);const _0x51e884={'cdpEndpoint':_0x4872e3,'isElectron':!![]};_0x2f9489['ITTJO'](Object[_0x1207c0(0x135)](_0x1f16a2)['length'],0x0)&&(_0x51e884['setupHeaders']=_0x1f16a2);await _0x2f9489[_0x1207c0(0x1ac)](createUnconfiguredCloudProfile,_0x263080,_0x51e884);try{_0x2f9489['OjtHK'](setProfileOverride,process[_0x1207c0(0x166)](),_0x263080,_0x1207c0(0x165),_0x4872e3),setProfileOverride(process[_0x1207c0(0x166)](),_0x263080,_0x1207c0(0x15b),!![]);}catch(_0x5e732d){console[_0x1207c0(0x18a)]('\x0a\x20\x20Cloud\x20profile\x20created,\x20but\x20failed\x20to\x20write\x20per-cwd\x20CDP\x20override\x20to\x20projects.json:\x20'+(_0x2f9489[_0x1207c0(0x180)](_0x5e732d,Error)?_0x5e732d[_0x1207c0(0x17a)]:_0x2f9489[_0x1207c0(0x136)](String,_0x5e732d)));}console['log'](_0x1207c0(0x13d)+_0x263080+_0x1207c0(0x198)),await _0x2f9489[_0x1207c0(0x199)](sweepOrphansBestEffort,_0x263080),await _0x2f9489['rouQh'](markActive,_0x263080);return;}if(_0x110e73['skipAuth']){const _0x192538={};_0x110e73['url']&&(_0x192538[_0x1207c0(0x179)]=_0x110e73['url']);Object[_0x1207c0(0x135)](_0x1f16a2)['length']>0x0&&(_0x192538['setupHeaders']=_0x1f16a2);await createUnconfiguredCloudProfile(_0x263080,_0x192538),console[_0x1207c0(0x16b)](_0x1207c0(0x17b)+_0x263080+'\x27\x20created\x20(no\x20session).\x0a'+(_0x1207c0(0x1a9)+_0x263080+_0x1207c0(0x133))),await _0x2f9489[_0x1207c0(0x173)](sweepOrphansBestEffort,_0x263080),await _0x2f9489['rouQh'](markActive,_0x263080);return;}if(_0x110e73['url']){const _0xfef79e=_0x110e73['url'],_0x33184c=await checkUrlReachability(_0xfef79e);if(!_0x33184c['ok']&&!_0x110e73['force'])throw new Error('Could\x20not\x20reach\x20'+_0xfef79e+':\x20'+_0x33184c[_0x1207c0(0x18a)]+_0x1207c0(0x159));!_0x33184c['ok']&&_0x110e73['force']&&console[_0x1207c0(0x16b)]('⚠\x20Could\x20not\x20reach\x20'+_0xfef79e+':\x20'+_0x33184c['error']+_0x1207c0(0x192));}else{console['log'](_0x1207c0(0x1a6)),console[_0x1207c0(0x16b)]('\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.'),console[_0x1207c0(0x16b)](_0x2f9489[_0x1207c0(0x1ae)]);let _0x56a56b='',_0x3dcb24=![];while(!![]){const _0x171855=await _0x56a1a7['prompt']([{'type':_0x2f9489['bImpj'],'name':_0x2f9489[_0x1207c0(0x187)],'message':_0x3dcb24?_0x2f9489[_0x1207c0(0x18c)]:'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','default':_0x56a56b||_0x2f9489['nVMBQ']}]);_0x56a56b=_0x171855[_0x1207c0(0x179)];const _0x536697=await checkUrlReachability(_0x56a56b);if(_0x536697['ok'])break;const _0x429b90=/^[a-zA-Z][\w+.-]*:\/\//[_0x1207c0(0x19a)](_0x56a56b),_0x3d6f5a=_0x536697['isProtocolError']&&!_0x429b90,_0xa35017=_0x3d6f5a?'http://'+_0x56a56b:null;_0x3dcb24=!![],console['log']('\x0a\x20\x20Could\x20not\x20reach\x20'+_0x56a56b+':\x20'+_0x536697[_0x1207c0(0x18a)]);_0xa35017&&console[_0x1207c0(0x16b)]('\x20\x20Did\x20you\x20mean\x20'+_0xa35017+'?');const {action:_0x43b51e}=await _0x56a1a7[_0x1207c0(0x17d)]([{'type':_0x2f9489['TuWLv'],'name':'action','message':_0x2f9489[_0x1207c0(0x15e)],'choices':[..._0xa35017?[{'name':_0x1207c0(0x157)+_0xa35017,'value':_0x1207c0(0x195)}]:[],{'name':_0x1207c0(0x14b),'value':_0x1207c0(0x172)},{'name':_0x2f9489[_0x1207c0(0x185)],'value':_0x2f9489[_0x1207c0(0x148)]}]}]);if(_0x43b51e===_0x2f9489[_0x1207c0(0x19e)]&&_0xa35017){_0x56a56b=_0xa35017;const _0x108b29=await checkUrlReachability(_0x56a56b);if(_0x108b29['ok'])break;console[_0x1207c0(0x16b)]('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0x56a56b+':\x20'+_0x108b29['error']);}else{if(_0x2f9489['JKTgv'](_0x43b51e,_0x2f9489['fJetW']))break;}}_0x110e73={..._0x110e73,'url':_0x56a56b};}let _0x1cad93=![];try{_0x1cad93=await _0x2f9489['IlNQW'](tryAutoRouteCloudProfile,_0x263080,_0x110e73['url'],_0x110e73,_0x4aba3e,_0x39a9e0);}catch(_0x273389){console[_0x1207c0(0x18a)]('\x0a\x20\x20Failed\x20to\x20create\x20cloud\x20profile\x20\x22'+_0x263080+'\x22:\x20'+(_0x2f9489['CXQzj'](_0x273389,Error)?_0x273389['message']:String(_0x273389))),process[_0x1207c0(0x19d)](0x1);}!_0x1cad93&&process[_0x1207c0(0x19d)](0x1),await markActive(_0x263080);}
@@ -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(_0x49ed0e,_0x55b591){var _0x10c6d9=_0x13b2,_0x4b1e65=_0x49ed0e();while(!![]){try{var _0x3e7dd6=parseInt(_0x10c6d9(0x1f5))/0x1+parseInt(_0x10c6d9(0x1ec))/0x2*(parseInt(_0x10c6d9(0x1f2))/0x3)+parseInt(_0x10c6d9(0x1f9))/0x4+parseInt(_0x10c6d9(0x1f4))/0x5+parseInt(_0x10c6d9(0x1eb))/0x6+parseInt(_0x10c6d9(0x1f0))/0x7*(parseInt(_0x10c6d9(0x1f1))/0x8)+parseInt(_0x10c6d9(0x1ea))/0x9*(-parseInt(_0x10c6d9(0x1f7))/0xa);if(_0x3e7dd6===_0x55b591)break;else _0x4b1e65['push'](_0x4b1e65['shift']());}catch(_0x465c76){_0x4b1e65['push'](_0x4b1e65['shift']());}}}(_0x5091,0x694ac));function _0x5091(){var _0x2f7a10=['417430DVYiKJ','860948ZYLuvX','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','10VEtjtl','\x20\x20https://docs.ranger.net/main/concepts/profiles','1715236RhQDcH','For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','22442985lSzjHb','4881084pLkoGd','19768SXgMaf','AtXvw','error','To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','911288lAuouD','32dUhjAD','66fSRJgF','NpGNn'];_0x5091=function(){return _0x2f7a10;};return _0x5091();}function _0x13b2(_0x51ad26,_0x57b5b8){_0x51ad26=_0x51ad26-0x1e9;var _0x50918b=_0x5091();var _0x13b220=_0x50918b[_0x51ad26];return _0x13b220;}export async function authEncrypt(_0x32c88b){var _0x511f0f=_0x13b2,_0x187851={'NpGNn':function(_0x5552b2,_0x576132){return _0x5552b2+_0x576132;},'Hdhap':_0x511f0f(0x1ef),'AtXvw':_0x511f0f(0x1f8)};console[_0x511f0f(0x1ee)](_0x187851[_0x511f0f(0x1f3)]('ranger\x20profile\x20encrypt-auth\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x0a','session\x20state\x20for\x20you,\x20so\x20encrypted\x20on-disk\x20auth\x20is\x20unnecessary.\x0a')+'\x0a'+_0x187851['Hdhap']+_0x511f0f(0x1f6)+'\x0a'+_0x511f0f(0x1e9)+_0x187851[_0x511f0f(0x1ed)]),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 _0x4ac0ef=_0xbe34;function _0xbe34(_0x1105f7,_0x2e8f36){_0x1105f7=_0x1105f7-0x13e;const _0x4e7785=_0x4e77();let _0xbe3450=_0x4e7785[_0x1105f7];return _0xbe3450;}function _0x4e77(){const _0x1075cb=['GcQXs','232584HvlBnd','replace','filter','BhFqy','SXFzy','e2e-test-recommender','fkUJR','log','platform','ZedfC','2409201FCMfUw','string','pYUiZ','bnprM','2002985lZWOYT','project','feature-tracker','WrukV','remove','@ranger-testing/opencode-plugin','utf-8','ITxhP','yGpyi','203cMLQtE','marketplace','HnGLK','IEHQl','3iiPgek','✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','GXRRS','ignore','234292ITfkzc','error','THOgP','stringify','✓\x20Removed\x20OpenCode\x20user\x20skill:\x20','70404BVPZMW','yGYsW','push','5182CUUzyG','QlrsH','vHHIS','959620uOsLui','opencode.json','✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','plugin','\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','IpsgH','hdLPD','length','Nothing\x20to\x20clean\x20up.\x0a','CWbis','✓\x20Removed\x20trailhead\x20marketplace','KmAwk','7XUAWRp','✓\x20Removed\x20stored\x20credentials','user'];_0x4e77=function(){return _0x1075cb;};return _0x4e77();}(function(_0x3cfefe,_0x2f112a){const _0x484ad3=_0xbe34,_0x367549=_0x3cfefe();while(!![]){try{const _0x35c116=parseInt(_0x484ad3(0x14b))/0x1*(parseInt(_0x484ad3(0x176))/0x2)+parseInt(_0x484ad3(0x16a))/0x3*(-parseInt(_0x484ad3(0x16e))/0x4)+parseInt(_0x484ad3(0x15d))/0x5+parseInt(_0x484ad3(0x173))/0x6*(-parseInt(_0x484ad3(0x166))/0x7)+parseInt(_0x484ad3(0x14f))/0x8+parseInt(_0x484ad3(0x159))/0x9+-parseInt(_0x484ad3(0x13f))/0xa;if(_0x35c116===_0x2f112a)break;else _0x367549['push'](_0x367549['shift']());}catch(_0x2f4efb){_0x367549['push'](_0x367549['shift']());}}}(_0x4e77,0x35e03));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';import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=['ranger',_0x4ac0ef(0x15f),'bug-bash',_0x4ac0ef(0x154)],opencodePluginName=_0x4ac0ef(0x162);function parseJsonc(_0x3fce6e){const _0x56820f=_0x4ac0ef,_0x560034=_0x3fce6e[_0x56820f(0x150)](/\/\*[\s\S]*?\*\//g,''),_0x330e2c=_0x560034[_0x56820f(0x150)](/^\s*\/\/.*$/gm,''),_0x1da0f2=_0x330e2c['replace'](/,\s*([}\]])/g,'$1');return JSON['parse'](_0x1da0f2);}async function removeOpencodePluginConfig(_0x1b0e00){const _0x55307d=_0x4ac0ef,_0x3a0297={'vHHIS':function(_0x37c952,_0x5217b2){return _0x37c952!==_0x5217b2;},'WrukV':function(_0x3f7f2b,_0x487132){return _0x3f7f2b(_0x487132);},'QNHKj':function(_0x1ffcc4,_0x84a8be){return _0x1ffcc4===_0x84a8be;},'rmFtx':function(_0x5e8ef9,_0x5b1ae3,_0x12e7ac){return _0x5e8ef9(_0x5b1ae3,_0x12e7ac);}};if(!_0x3a0297['WrukV'](existsSync,_0x1b0e00))return![];let _0x2f3cbd;try{const _0x3a5b06=await readFile(_0x1b0e00,_0x55307d(0x163));_0x2f3cbd=_0x3a0297[_0x55307d(0x160)](parseJsonc,_0x3a5b06);}catch{return![];}const _0x2830eb=Array['isArray'](_0x2f3cbd['plugin'])?_0x2f3cbd['plugin']:[];if(_0x2830eb['length']===0x0)return![];const _0x4ba158=_0x2830eb[_0x55307d(0x151)](_0x16871d=>{const _0x5e692d=_0x55307d;if(_0x3a0297[_0x5e692d(0x13e)](typeof _0x16871d,_0x5e692d(0x15a)))return!![];return _0x16871d!==opencodePluginName;});if(_0x3a0297['QNHKj'](_0x4ba158[_0x55307d(0x146)],_0x2830eb['length']))return![];return _0x3a0297['QNHKj'](_0x4ba158[_0x55307d(0x146)],0x0)?delete _0x2f3cbd['plugin']:_0x2f3cbd[_0x55307d(0x142)]=_0x4ba158,await _0x3a0297['rmFtx'](writeFile,_0x1b0e00,JSON[_0x55307d(0x171)](_0x2f3cbd,null,0x2)+'\x0a'),!![];}async function uninstallClaudePlugin(_0x44ccb2){const _0x1b7fe2={'ITxhP':function(_0x51c34c,_0x2d7250){return _0x51c34c(_0x2d7250);},'yGpyi':'plugin','IpsgH':function(_0x4818b9,_0x13ae6f,_0x4dbfe9,_0x134008){return _0x4818b9(_0x13ae6f,_0x4dbfe9,_0x134008);},'lCvya':'claude','hdLPD':function(_0x480b92,_0x3f51b){return _0x480b92===_0x3f51b;},'JMonu':'win32','bnprM':'close','yGYsW':'error'};return new Promise(_0x4fb880=>{const _0x5d1251=_0xbe34,_0x3cd05c={'TEVzD':function(_0x11e56a,_0x1ea9cf){return _0x11e56a(_0x1ea9cf);}},_0x9e5b5f=[_0x1b7fe2[_0x5d1251(0x165)],'uninstall','ranger@trailhead'];_0x44ccb2&&_0x9e5b5f[_0x5d1251(0x175)]('--scope',_0x44ccb2);const _0x40e01c=_0x1b7fe2[_0x5d1251(0x144)](spawn,_0x1b7fe2['lCvya'],_0x9e5b5f,{'stdio':[_0x5d1251(0x16d),_0x5d1251(0x16d),_0x5d1251(0x16d)],'cwd':_0x44ccb2?getProjectRoot():undefined,'shell':_0x1b7fe2[_0x5d1251(0x145)](process[_0x5d1251(0x157)],_0x1b7fe2['JMonu'])});_0x40e01c['on'](_0x1b7fe2[_0x5d1251(0x15c)],_0x48b81d=>{_0x3cd05c['TEVzD'](_0x4fb880,_0x48b81d===0x0);}),_0x40e01c['on'](_0x1b7fe2[_0x5d1251(0x174)],()=>{const _0x720357=_0x5d1251;_0x1b7fe2[_0x720357(0x164)](_0x4fb880,![]);});});}async function removeMarketplace(){const _0x8961c7=_0x4ac0ef,_0x4ef053={'KmAwk':function(_0x397011,_0x5e4cde){return _0x397011(_0x5e4cde);},'THOgP':function(_0x35d921,_0x482130,_0x103c42,_0x4d7b40){return _0x35d921(_0x482130,_0x103c42,_0x4d7b40);},'xapvV':_0x8961c7(0x167),'quceH':'trailhead','vFpMt':_0x8961c7(0x16d),'BhFqy':'close','vyJWX':_0x8961c7(0x16f)};return new Promise(_0x36b434=>{const _0x1d4400=_0x8961c7,_0x4a9331=_0x4ef053[_0x1d4400(0x170)](spawn,'claude',['plugin',_0x4ef053['xapvV'],_0x1d4400(0x161),_0x4ef053['quceH']],{'stdio':[_0x4ef053['vFpMt'],'ignore',_0x4ef053['vFpMt']],'shell':process[_0x1d4400(0x157)]==='win32'});_0x4a9331['on'](_0x4ef053[_0x1d4400(0x152)],_0x52cd59=>{const _0x21c639=_0x1d4400;_0x4ef053[_0x21c639(0x14a)](_0x36b434,_0x52cd59===0x0);}),_0x4a9331['on'](_0x4ef053['vyJWX'],()=>{_0x36b434(![]);});});}export async function clean(){const _0x1aac56=_0x4ac0ef,_0x1516ab={'tkDdZ':function(_0x3b992a){return _0x3b992a();},'ZedfC':function(_0x5a6969,_0x50253c){return _0x5a6969(_0x50253c);},'IcGPv':function(_0x55f826){return _0x55f826();},'QlrsH':function(_0x125a5b,_0x20fa45){return _0x125a5b(_0x20fa45);},'GXRRS':'✓\x20Removed\x20.ranger/\x20directory','idaNU':function(_0x2ee6e9){return _0x2ee6e9();},'SXFzy':function(_0x549e2c,_0x827852,_0xfb092a){return _0x549e2c(_0x827852,_0xfb092a);},'xKkFi':function(_0x426ce1,_0x3ee673){return _0x426ce1(_0x3ee673);},'eUgHQ':_0x1aac56(0x15e),'CWbis':function(_0x3a5315,_0x1498e4,_0x5b9268){return _0x3a5315(_0x1498e4,_0x5b9268);},'HnGLK':function(_0x31ffde,_0x33fe18,_0x3a9604){return _0x31ffde(_0x33fe18,_0x3a9604);},'IEHQl':function(_0x35f3bc,_0x567194,_0x526592){return _0x35f3bc(_0x567194,_0x526592);},'WEpbc':_0x1aac56(0x14d),'fkUJR':_0x1aac56(0x140),'GcQXs':function(_0xd1155c,_0x288175){return _0xd1155c(_0x288175);},'hrWdH':'✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','pYUiZ':function(_0xee3182){return _0xee3182();}};console[_0x1aac56(0x156)](_0x1aac56(0x143));let _0x5cb4f8=![];try{await deleteAllCredentials(),console[_0x1aac56(0x156)](_0x1aac56(0x14c)),_0x5cb4f8=!![];}catch{}const _0x57c828=_0x1516ab['tkDdZ'](getCacheFile);existsSync(_0x57c828)&&(await _0x1516ab[_0x1aac56(0x158)](rm,_0x57c828),_0x5cb4f8=!![]);const _0x369adb=_0x1516ab['IcGPv'](getRangerDir);_0x1516ab['QlrsH'](existsSync,_0x369adb)&&(await rm(_0x369adb,{'recursive':!![]}),console['log'](_0x1516ab[_0x1aac56(0x16c)]),_0x5cb4f8=!![]);const _0x1e095e=_0x1516ab['idaNU'](getProjectSkillsDir);for(const _0xabe705 of skillsToRemove){const _0x55195f=_0x1516ab[_0x1aac56(0x153)](join,_0x1e095e,_0xabe705);_0x1516ab[_0x1aac56(0x177)](existsSync,_0x55195f)&&(await _0x1516ab[_0x1aac56(0x153)](rm,_0x55195f,{'recursive':!![]}),console['log']('✓\x20Removed\x20project\x20skill:\x20'+_0xabe705),_0x5cb4f8=!![]);}const _0x56ccb3=getUserSkillsDir();for(const _0x4ab69d of skillsToRemove){const _0x10c867=_0x1516ab['SXFzy'](join,_0x56ccb3,_0x4ab69d);_0x1516ab['xKkFi'](existsSync,_0x10c867)&&(await _0x1516ab[_0x1aac56(0x153)](rm,_0x10c867,{'recursive':!![]}),console['log']('✓\x20Removed\x20user\x20skill:\x20'+_0x4ab69d),_0x5cb4f8=!![]);}const _0x591d0f=_0x1516ab[_0x1aac56(0x177)](getOpencodeSkillsDir,_0x1516ab['eUgHQ']);for(const _0x2d3b64 of skillsToRemove){const _0x64ca96=_0x1516ab[_0x1aac56(0x148)](join,_0x591d0f,_0x2d3b64);existsSync(_0x64ca96)&&(await rm(_0x64ca96,{'recursive':!![]}),console[_0x1aac56(0x156)]('✓\x20Removed\x20OpenCode\x20project\x20skill:\x20'+_0x2d3b64),_0x5cb4f8=!![]);}const _0x33770a=getOpencodeSkillsDir(_0x1aac56(0x14d));for(const _0x14334a of skillsToRemove){const _0x11c061=_0x1516ab[_0x1aac56(0x168)](join,_0x33770a,_0x14334a);_0x1516ab[_0x1aac56(0x158)](existsSync,_0x11c061)&&(await _0x1516ab[_0x1aac56(0x169)](rm,_0x11c061,{'recursive':!![]}),console['log'](_0x1aac56(0x172)+_0x14334a),_0x5cb4f8=!![]);}const _0x4dc537=join(_0x1516ab['xKkFi'](getOpencodeConfigDir,_0x1aac56(0x15e)),'opencode.json');await _0x1516ab['QlrsH'](removeOpencodePluginConfig,_0x4dc537)&&(console['log'](_0x1aac56(0x141)),_0x5cb4f8=!![]);const _0x980b86=join(getOpencodeConfigDir(_0x1516ab['WEpbc']),_0x1516ab[_0x1aac56(0x155)]);await _0x1516ab[_0x1aac56(0x14e)](removeOpencodePluginConfig,_0x980b86)&&(console[_0x1aac56(0x156)](_0x1516ab['hrWdH']),_0x5cb4f8=!![]);const _0x576ce7=await uninstallClaudePlugin();_0x576ce7&&(console['log']('✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)'),_0x5cb4f8=!![]);const _0x317a6d=await _0x1516ab['QlrsH'](uninstallClaudePlugin,_0x1516ab['eUgHQ']);_0x317a6d&&(console['log'](_0x1aac56(0x16b)),_0x5cb4f8=!![]);const _0x5785d0=await _0x1516ab[_0x1aac56(0x15b)](removeMarketplace);_0x5785d0&&(console[_0x1aac56(0x156)](_0x1aac56(0x149)),_0x5cb4f8=!![]),_0x5cb4f8?console[_0x1aac56(0x156)]('\x0a✅\x20Cleanup\x20complete!\x0a'):console[_0x1aac56(0x156)](_0x1aac56(0x147));}
@@ -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
+ function _0x7d9c(){const _0x1a13c1=['CpcOy','keys','zOOia','\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20','185UCApmp','zSCve','Set\x20','cgtiE','13883221GTsPzS','uBEud','WSDXb','Profile\x20\x22','EOZQW','28DJQCdw','includes','NAeXo','\x22\x20and\x20cannot\x20be\x20unset;\x20the\x20legacy\x20tree\x20is\x20read-only\x20under\x20cloud\x20profiles.','startsWith','RWZpU','IZmPC','3PUSAHQ','\x22\x20lives\x20in\x20the\x20legacy\x20settings\x20file\x20for\x20\x22','cmPxE','alsoExistsElsewhere','2274957aBNisD','(not\x20set)','2963852jvnkXY','YjlaH','FUvsp','GiVxd','wyCuF','EESEK','18606XZyVli','stringify','endsWith','cxkcw','parse','HaJnd','mpYSD','test','XpnPX','false','olfrE','IGKmh','20AMoCdR','log','DjGNl','QKCfl','cloud','ABcoT','eeSMP','zuQcu','\x20=\x20','kind','No\x20configuration\x20set\x20for\x20\x22','1118048pNZBhE','true','Key\x20\x22','6480348dtosAJ','Invalid\x20value\x20for\x20','settings','isSafeInteger','vqmEp','Cleared\x20local\x20overrides\x20for\x20\x22','23570DtKRCC','\x20for\x20\x22','headless','isNaN'];_0x7d9c=function(){return _0x1a13c1;};return _0x7d9c();}const _0x304d40=_0x5aad;(function(_0x47dd10,_0x457d59){const _0x58847f=_0x5aad,_0x33b1bb=_0x47dd10();while(!![]){try{const _0x6a2f89=-parseInt(_0x58847f(0x14f))/0x1*(-parseInt(_0x58847f(0x160))/0x2)+-parseInt(_0x58847f(0x167))/0x3*(parseInt(_0x58847f(0x129))/0x4)+-parseInt(_0x58847f(0x157))/0x5*(-parseInt(_0x58847f(0x12f))/0x6)+-parseInt(_0x58847f(0x149))/0x7+parseInt(_0x58847f(0x146))/0x8+parseInt(_0x58847f(0x127))/0x9*(parseInt(_0x58847f(0x13b))/0xa)+parseInt(_0x58847f(0x15b))/0xb;if(_0x6a2f89===_0x457d59)break;else _0x33b1bb['push'](_0x33b1bb['shift']());}catch(_0x3b1402){_0x33b1bb['push'](_0x33b1bb['shift']());}}}(_0x7d9c,0xa755b));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=[_0x304d40(0x151),'allowInsecureLocalhost','forceLogin'];function parseLocalValue(_0x48b0da,_0x2f1dc7){const _0x3e1ce6=_0x304d40,_0x3b2e6c={'zOOia':function(_0x24265e,_0x315ab5){return _0x24265e===_0x315ab5;},'wyCuF':_0x3e1ce6(0x138)};if(BOOLEAN_KEYS[_0x3e1ce6(0x161)](_0x48b0da)){if(_0x3b2e6c[_0x3e1ce6(0x155)](_0x2f1dc7,_0x3e1ce6(0x147)))return!![];if(_0x2f1dc7===_0x3b2e6c[_0x3e1ce6(0x12d)])return![];throw new Error(_0x3e1ce6(0x14a)+_0x48b0da+':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22');}return _0x2f1dc7;}function parseOverrideValue(_0x282b0a){const _0x30fd16=_0x304d40,_0x23ec0e={'EOZQW':function(_0x53d105,_0x4e907c){return _0x53d105===_0x4e907c;},'PwcCT':_0x30fd16(0x147),'NAeXo':'false','sUwsv':function(_0x1913a4,_0x47cc3c){return _0x1913a4(_0x47cc3c);},'EESEK':function(_0x1c8351,_0x1cc378){return _0x1c8351(_0x1cc378);}};if(_0x23ec0e[_0x30fd16(0x15f)](_0x282b0a,_0x23ec0e['PwcCT']))return!![];if(_0x282b0a===_0x23ec0e[_0x30fd16(0x162)])return![];if(_0x23ec0e['EOZQW'](_0x282b0a,'null'))return null;if(_0x23ec0e['EOZQW'](_0x282b0a,'undefined'))return undefined;if(/^-?\d+$/['test'](_0x282b0a)){const _0x3a61ea=_0x23ec0e['sUwsv'](Number,_0x282b0a);if(Number[_0x30fd16(0x14c)](_0x3a61ea))return _0x3a61ea;}if(/^-?\d+\.\d+$/[_0x30fd16(0x136)](_0x282b0a)){const _0x1a2e88=_0x23ec0e[_0x30fd16(0x12e)](Number,_0x282b0a);if(!Number[_0x30fd16(0x152)](_0x1a2e88))return _0x1a2e88;}const _0x32e59f=_0x282b0a['trim']();if(_0x32e59f[_0x30fd16(0x164)]('{')&&_0x32e59f[_0x30fd16(0x131)]('}')||_0x32e59f['startsWith']('[')&&_0x32e59f['endsWith'](']'))try{return JSON[_0x30fd16(0x133)](_0x32e59f);}catch{}return _0x282b0a;}async function resolveProfileTarget(_0x53e691){const _0x20f127=_0x304d40,_0x925626={'qLhbc':function(_0x4d6884,_0x460d93){return _0x4d6884(_0x460d93);},'DjGNl':function(_0x5ef682,_0xc85935){return _0x5ef682(_0xc85935);},'ABcoT':'cloud'},_0x271436=existsSync(getEnvDir(_0x53e691));let _0x89cd97=![];try{const _0x593208=await _0x925626['qLhbc'](fetchCloudProfile,_0x53e691);_0x89cd97=_0x925626[_0x20f127(0x13d)](Boolean,_0x593208);}catch{}if(_0x89cd97)return{'kind':_0x925626[_0x20f127(0x140)],'alsoExistsElsewhere':_0x271436};if(_0x271436)return{'kind':'local','alsoExistsElsewhere':![]};throw new Error(_0x20f127(0x15e)+_0x53e691+'\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x53e691);}function printDualExistsHint(_0xed47a1){console['log']('\x20\x20Note:\x20\x22'+_0xed47a1+'\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.');}function getProjectPath(){return process['cwd']();}async function loadEffectiveCloudSettings(_0x4d1bfc){const _0x56f3c6=_0x304d40,_0x2326bc={'iPuKg':function(_0x432416){return _0x432416();},'cxkcw':function(_0x577d1f,_0x4b7d4b,_0x552500){return _0x577d1f(_0x4b7d4b,_0x552500);},'GiVxd':function(_0x1c549e,_0x1ba876){return _0x1c549e??_0x1ba876;}},_0x12c7eb=await fetchCloudProfile(_0x4d1bfc),_0x5d0b66=readProfileOverrides(_0x2326bc['iPuKg'](getProjectPath),_0x4d1bfc);return _0x2326bc[_0x56f3c6(0x132)](mergeCloudProfileSettings,_0x12c7eb?.[_0x56f3c6(0x14b)]??{},_0x2326bc[_0x56f3c6(0x12c)](_0x5d0b66,undefined));}export async function configSet(_0x2565bc,_0x28915f,_0x4e6013){const _0x410eb7=_0x304d40,_0x3d9704={'XpnPX':function(_0x54b13a,_0x2f53a1){return _0x54b13a(_0x2f53a1);},'QQFeb':function(_0x4d5f3f,_0x16bc37){return _0x4d5f3f===_0x16bc37;},'vqmEp':function(_0x1f9e12,_0x3b56ba,_0x5f1595){return _0x1f9e12(_0x3b56ba,_0x5f1595);},'WSDXb':function(_0x2d37e2,_0x1b29ad,_0x220316,_0x467dc0,_0x3c2580){return _0x2d37e2(_0x1b29ad,_0x220316,_0x467dc0,_0x3c2580);},'HuiRn':function(_0x2272bf){return _0x2272bf();}},_0x290c08=await _0x3d9704[_0x410eb7(0x137)](resolveProfileTarget,_0x2565bc);if(_0x3d9704['QQFeb'](_0x290c08[_0x410eb7(0x144)],_0x410eb7(0x13f))){if(_0x290c08[_0x410eb7(0x16a)])printDualExistsHint(_0x2565bc);const _0x519477=parseOverrideValue(_0x4e6013);setProfileOverride(getProjectPath(),_0x2565bc,_0x28915f,_0x519477),console[_0x410eb7(0x13c)](_0x410eb7(0x159)+_0x28915f+_0x410eb7(0x143)+JSON['stringify'](_0x519477)+'\x20for\x20\x22'+_0x2565bc+'\x22');return;}const _0x566b4b=_0x3d9704[_0x410eb7(0x14d)](parseLocalValue,_0x28915f,_0x4e6013);_0x3d9704[_0x410eb7(0x15d)](setProfileOverride,_0x3d9704['HuiRn'](getProjectPath),_0x2565bc,_0x28915f,_0x566b4b),console['log'](_0x410eb7(0x159)+_0x28915f+_0x410eb7(0x143)+_0x566b4b+_0x410eb7(0x150)+_0x2565bc+'\x22');}export async function configGet(_0x444cc8,_0x2db640){const _0x46fcd9=_0x304d40,_0x46561a={'wCVMU':function(_0x5ae49f,_0x7af763){return _0x5ae49f(_0x7af763);},'YjlaH':function(_0x53f207,_0xcf5031){return _0x53f207===_0xcf5031;},'uBEud':_0x46fcd9(0x13f),'IGKmh':function(_0x609cbc,_0xea2597){return _0x609cbc(_0xea2597);},'QKCfl':function(_0x1cbf9d,_0x576623,_0x5e819f){return _0x1cbf9d(_0x576623,_0x5e819f);},'FUvsp':function(_0x32b781,_0x30720b){return _0x32b781(_0x30720b);},'rRzhz':function(_0x3ba928,_0x3d16f2){return _0x3ba928===_0x3d16f2;},'zuQcu':function(_0x10d236,_0x3c9e49){return _0x10d236===_0x3c9e49;}},_0x5c742c=await _0x46561a['wCVMU'](resolveProfileTarget,_0x444cc8);if(_0x46561a[_0x46fcd9(0x12a)](_0x5c742c['kind'],_0x46561a[_0x46fcd9(0x15c)])){const _0x2aa701=await _0x46561a[_0x46fcd9(0x13a)](loadEffectiveCloudSettings,_0x444cc8),_0x2b37a2=_0x46561a[_0x46fcd9(0x13e)](getNestedValue,_0x2aa701,_0x2db640);if(_0x2b37a2===undefined)console[_0x46fcd9(0x13c)](_0x46fcd9(0x128));else typeof _0x2b37a2==='object'?console['log'](JSON['stringify'](_0x2b37a2,null,0x2)):console['log'](_0x2b37a2);return;}const _0x2acb8d=await _0x46561a[_0x46fcd9(0x12b)](loadSettings,_0x444cc8),_0x37457b=getNestedValue(_0x2acb8d,_0x2db640);if(_0x46561a['rRzhz'](_0x37457b,undefined))console[_0x46fcd9(0x13c)]('(not\x20set)');else _0x46561a[_0x46fcd9(0x142)](typeof _0x37457b,'object')?console['log'](JSON['stringify'](_0x37457b,null,0x2)):console[_0x46fcd9(0x13c)](_0x37457b);}function _0x5aad(_0x5ec1a8,_0x17ea11){_0x5ec1a8=_0x5ec1a8-0x127;const _0x7d9ce7=_0x7d9c();let _0x5aad50=_0x7d9ce7[_0x5ec1a8];return _0x5aad50;}export async function configList(_0x2deaa0){const _0x381f4c=_0x304d40,_0x27d48b={'eeSMP':function(_0x24298d,_0x56a6a0){return _0x24298d(_0x56a6a0);},'QnTUA':function(_0x4c3e68,_0x2d719f){return _0x4c3e68===_0x2d719f;},'cmPxE':function(_0x1ef831,_0x43c141){return _0x1ef831(_0x43c141);},'IZmPC':function(_0x45ca28,_0x27ef30){return _0x45ca28(_0x27ef30);},'zSCve':function(_0x2a3bd9,_0x42515a){return _0x2a3bd9(_0x42515a);}},_0x4984e0=await _0x27d48b['eeSMP'](resolveProfileTarget,_0x2deaa0);if(_0x27d48b['QnTUA'](_0x4984e0[_0x381f4c(0x144)],'cloud')){const _0x544a55=await _0x27d48b[_0x381f4c(0x141)](loadEffectiveCloudSettings,_0x2deaa0);if(!_0x544a55||_0x27d48b['QnTUA'](Object[_0x381f4c(0x154)](_0x544a55)['length'],0x0)){console[_0x381f4c(0x13c)]('No\x20configuration\x20set\x20for\x20\x22'+_0x2deaa0+'\x22');return;}console['log'](JSON[_0x381f4c(0x130)](_0x544a55,null,0x2));return;}const _0x56dfa3=getSettingsPath(_0x2deaa0);if(!_0x27d48b[_0x381f4c(0x169)](existsSync,_0x56dfa3)){console[_0x381f4c(0x13c)]('No\x20configuration\x20set\x20for\x20\x22'+_0x2deaa0+'\x22');return;}const _0x5bfbe6=await _0x27d48b[_0x381f4c(0x166)](loadSettings,_0x2deaa0),_0x153625=_0x27d48b[_0x381f4c(0x158)](formatSettings,_0x5bfbe6);!_0x153625?console['log'](_0x381f4c(0x145)+_0x2deaa0+'\x22'):console[_0x381f4c(0x13c)](_0x153625);}export async function configUnset(_0x374eba,_0x5d2d04){const _0x40188a=_0x304d40,_0x16f830={'tvceX':'cloud','mpYSD':function(_0x54c569,_0x3e6375){return _0x54c569(_0x3e6375);},'olfrE':function(_0x324f52,_0x3b7047,_0x29f587,_0x57ffff){return _0x324f52(_0x3b7047,_0x29f587,_0x57ffff);},'MwOeN':function(_0x218d5e,_0x1a7e17){return _0x218d5e(_0x1a7e17);},'HaJnd':function(_0x3e3bc7,_0x12ae62,_0x1254e7){return _0x3e3bc7(_0x12ae62,_0x1254e7);}},_0x379565=await resolveProfileTarget(_0x374eba);if(_0x379565['kind']===_0x16f830['tvceX']){if(_0x379565['alsoExistsElsewhere'])_0x16f830[_0x40188a(0x135)](printDualExistsHint,_0x374eba);const _0x24803e=unsetProfileOverride(getProjectPath(),_0x374eba,_0x5d2d04);_0x24803e?console['log']('Removed\x20'+_0x5d2d04+'\x20for\x20\x22'+_0x374eba+'\x22'):console['log'](_0x40188a(0x148)+_0x5d2d04+'\x22\x20not\x20found');return;}const _0x3d99e5=_0x16f830[_0x40188a(0x139)](unsetProfileOverride,getProjectPath(),_0x374eba,_0x5d2d04);if(_0x3d99e5){console['log']('Removed\x20'+_0x5d2d04);return;}const _0x3fb723=await _0x16f830['MwOeN'](loadSettings,_0x374eba),_0x28f7fd=_0x16f830[_0x40188a(0x134)](deleteNestedValue,_0x3fb723,_0x5d2d04);_0x28f7fd?console[_0x40188a(0x13c)](_0x40188a(0x148)+_0x5d2d04+_0x40188a(0x168)+_0x374eba+_0x40188a(0x163)):console[_0x40188a(0x13c)]('Key\x20\x22'+_0x5d2d04+'\x22\x20not\x20found');}export async function configReset(_0x5a5178){const _0x3de1fc=_0x304d40,_0x466248={'CpcOy':function(_0x55fb88,_0x5f10b6){return _0x55fb88===_0x5f10b6;},'cgtiE':function(_0x2a4f27,_0x3135fd,_0x3a29d1){return _0x2a4f27(_0x3135fd,_0x3a29d1);},'RWZpU':function(_0x17d151){return _0x17d151();}},_0x332654=await resolveProfileTarget(_0x5a5178);if(_0x466248[_0x3de1fc(0x153)](_0x332654[_0x3de1fc(0x144)],_0x3de1fc(0x13f))){_0x466248[_0x3de1fc(0x15a)](resetProfileOverrides,_0x466248[_0x3de1fc(0x165)](getProjectPath),_0x5a5178),console['log'](_0x3de1fc(0x14e)+_0x5a5178+'\x22');return;}console['log']('\x22'+_0x5a5178+_0x3de1fc(0x156)+_0x5a5178+'\x20<key>\x22\x20to\x20remove\x20individual\x20values.');}
@@ -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 _0x243c(_0x1235f0,_0x42ef8f){_0x1235f0=_0x1235f0-0x13d;const _0x326c9a=_0x326c();let _0x243ccd=_0x326c9a[_0x1235f0];return _0x243ccd;}function _0x326c(){const _0x291bde=['YXORm','24aNWnnQ','726564FRUqro','\x22\x20for\x20everyone\x20in\x20your\x20organization.','212640kuQYWG','log','ESUAy','Profile\x20deletion\x20requires\x20an\x20interactive\x20terminal\x20so\x20the\x20profile\x20name\x20can\x20be\x20typed\x20for\x20confirmation.\x20Pass\x20--yes\x20to\x20skip\x20confirmation.','cwd','966170qbEPTO','confirmation','5MQRlHv','yes','109732uTRMSh','DozVB','493254jOknbk','mwZLn','prompt','✓\x20Deleted\x20cloud\x20profile\x20\x22','mFzTN','18951910ZrGdJY','input','\x0aWarning:\x20this\x20deletes\x20the\x20shared\x20cloud\x20profile\x20\x22','2553039HKjGrZ','4XgQwEg'];_0x326c=function(){return _0x291bde;};return _0x326c();}(function(_0x1d21f4,_0x2a03ed){const _0x38794e=_0x243c,_0x3ce93f=_0x1d21f4();while(!![]){try{const _0x226d79=parseInt(_0x38794e(0x145))/0x1+-parseInt(_0x38794e(0x14a))/0x2+-parseInt(_0x38794e(0x143))/0x3*(parseInt(_0x38794e(0x140))/0x4)+parseInt(_0x38794e(0x14c))/0x5*(-parseInt(_0x38794e(0x150))/0x6)+-parseInt(_0x38794e(0x14e))/0x7+-parseInt(_0x38794e(0x142))/0x8*(parseInt(_0x38794e(0x13f))/0x9)+parseInt(_0x38794e(0x155))/0xa;if(_0x226d79===_0x2a03ed)break;else _0x3ce93f['push'](_0x3ce93f['shift']());}catch(_0x1c880e){_0x3ce93f['push'](_0x3ce93f['shift']());}}}(_0x326c,0x69dfc));import _0x4b1b15 from'inquirer';import{deleteCloudProfile,fetchCloudProfile}from'./utils/cloudProfile.js';import{isInteractive}from'./utils/cloudProfileSession.js';import{clearLastProfile,resetProfileOverrides}from'./utils/projectsConfig.js';export async function deleteProfile(_0x4f8c02,_0x430140={}){const _0x365d83=_0x243c,_0x468762={'RyeoQ':function(_0x3331e7,_0x31a4cb){return _0x3331e7(_0x31a4cb);},'YXORm':_0x365d83(0x13d),'ESUAy':_0x365d83(0x14b),'mwZLn':function(_0x2d3c61,_0x19c64e){return _0x2d3c61!==_0x19c64e;},'mFzTN':'Profile\x20deletion\x20cancelled:\x20confirmation\x20did\x20not\x20match.','DozVB':function(_0x547b50,_0x7c784d,_0x4fe019){return _0x547b50(_0x7c784d,_0x4fe019);}},_0x2b51d7=await _0x468762['RyeoQ'](fetchCloudProfile,_0x4f8c02);if(!_0x2b51d7)throw new Error('Cloud\x20profile\x20\x22'+_0x4f8c02+'\x22\x20not\x20found.');if(!_0x430140['yes']&&!isInteractive())throw new Error(_0x365d83(0x148));console[_0x365d83(0x146)](_0x365d83(0x13e)+_0x4f8c02+_0x365d83(0x144));if(!_0x430140[_0x365d83(0x14d)]){const {confirmation:_0xd20325}=await _0x4b1b15[_0x365d83(0x152)]([{'type':_0x468762[_0x365d83(0x141)],'name':_0x468762[_0x365d83(0x147)],'message':'Type\x20\x22'+_0x4f8c02+'\x22\x20to\x20confirm\x20deletion:'}]);if(_0x468762[_0x365d83(0x151)](_0xd20325,_0x4f8c02))throw new Error(_0x468762[_0x365d83(0x154)]);}await deleteCloudProfile(_0x4f8c02),_0x468762[_0x365d83(0x14f)](resetProfileOverrides,process['cwd'](),_0x4f8c02),clearLastProfile(process[_0x365d83(0x149)](),_0x4f8c02),console[_0x365d83(0x146)](_0x365d83(0x153)+_0x4f8c02+'\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 _0x554e09=_0x447a;(function(_0x350dec,_0x4f5689){const _0xcdf62f=_0x447a,_0x42ed6e=_0x350dec();while(!![]){try{const _0x1ae99d=parseInt(_0xcdf62f(0xd5))/0x1*(parseInt(_0xcdf62f(0xd8))/0x2)+-parseInt(_0xcdf62f(0xbb))/0x3+parseInt(_0xcdf62f(0xc6))/0x4+-parseInt(_0xcdf62f(0xd6))/0x5*(-parseInt(_0xcdf62f(0xc4))/0x6)+parseInt(_0xcdf62f(0xd0))/0x7+parseInt(_0xcdf62f(0xb9))/0x8*(-parseInt(_0xcdf62f(0xc1))/0x9)+-parseInt(_0xcdf62f(0xd3))/0xa*(parseInt(_0xcdf62f(0xbf))/0xb);if(_0x1ae99d===_0x4f5689)break;else _0x42ed6e['push'](_0x42ed6e['shift']());}catch(_0x269e31){_0x42ed6e['push'](_0x42ed6e['shift']());}}}(_0x2298,0x33440));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';function _0x2298(){const _0x2bbec2=['log','wQSSd','push','endsWith','1156414gXdFWS','legacy','Agaws','1203590TEkgdB','\x20\x20\x20\x20\x20\x20Details:\x20','7739UqRzQQ','55gTAfnj','Nasjw','40GmWMnf','vIibt','sessionUpdatedAt','cached\x20(updated\x20','name','localeCompare','120EYBLHm','environmentKey','323466CBoeHs','local','\x0aCloud\x20Profiles:','PPmrZ','11GKpPLE','length','96777SaDczp','includes','isDirectory','132654qgvqIs','lYaML','145116fIYBPh','AVvvZ','sort','\x20\x20\x20\x20\x20\x20Session:\x20','baseUrl','message'];_0x2298=function(){return _0x2bbec2;};return _0x2298();}import{listCloudProfiles}from'./utils/cloudProfile.js';const NON_ENV_DIRS=['sessions','bug-bashes','reports',_0x554e09(0xbc),'ci'];export async function getEnvNames(){const _0x58d33a=_0x554e09,_0x5ced60={'lYaML':function(_0xe56985){return _0xe56985();},'yoLsu':function(_0x1a6d96,_0x5d8f52){return _0x1a6d96(_0x5d8f52);},'vIibt':function(_0x38c908,_0x14c419,_0x779e04){return _0x38c908(_0x14c419,_0x779e04);},'wDBiI':function(_0x55c28b,_0x2a7d18){return _0x55c28b(_0x2a7d18);},'lWwsH':_0x58d33a(0xbc),'gvWvb':function(_0x34e040,_0x180cd7,_0x5b4cdd){return _0x34e040(_0x180cd7,_0x5b4cdd);},'eKVZa':function(_0x33f420,_0x2bf12d){return _0x33f420(_0x2bf12d);},'tniJo':'settings.json'},_0x359dcf=_0x5ced60['lYaML'](getRangerDir);if(!existsSync(_0x359dcf))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x4f7eec=await _0x5ced60[_0x58d33a(0xc5)](readActiveProfileName),_0x534246=[],_0x3913ad={},_0x27cc5e=join(_0x359dcf,_0x58d33a(0xbc));if(existsSync(_0x27cc5e)){const _0x480e63=await _0x5ced60['yoLsu'](readdir,_0x27cc5e);for(const _0x4b5d52 of _0x480e63){const _0xf6d94e=_0x5ced60[_0x58d33a(0xd9)](join,_0x27cc5e,_0x4b5d52),_0xee50f1=await _0x5ced60['wDBiI'](stat,_0xf6d94e);_0xee50f1[_0x58d33a(0xc3)]()&&(_0x534246[_0x58d33a(0xce)](_0x4b5d52),_0x3913ad[_0x4b5d52]=_0x5ced60['lWwsH']);}}const _0x2906b4=join(_0x359dcf,'ci');if(existsSync(_0x2906b4)){const _0x275fe2=await readdir(_0x2906b4);for(const _0x11ba1e of _0x275fe2){const _0x1cedad=_0x5ced60['gvWvb'](join,_0x2906b4,_0x11ba1e),_0xd6b822=await _0x5ced60['wDBiI'](stat,_0x1cedad);_0xd6b822[_0x58d33a(0xc3)]()&&(_0x534246['push'](_0x11ba1e),_0x3913ad[_0x11ba1e]='ci');}}const _0x27b997=await _0x5ced60['eKVZa'](readdir,_0x359dcf);for(const _0x4bce15 of _0x27b997){if(NON_ENV_DIRS[_0x58d33a(0xc2)](_0x4bce15))continue;if(_0x4bce15['startsWith']('.'))continue;if(_0x4bce15[_0x58d33a(0xcf)]('.txt'))continue;const _0x2a0dce=join(_0x359dcf,_0x4bce15),_0x17d356=await stat(_0x2a0dce);_0x17d356[_0x58d33a(0xc3)]()&&_0x5ced60['yoLsu'](existsSync,join(_0x2a0dce,_0x5ced60['tniJo']))&&(!_0x534246['includes'](_0x4bce15)&&(_0x534246['push'](_0x4bce15),_0x3913ad[_0x4bce15]=_0x58d33a(0xd1)));}return{'envNames':_0x534246,'activeEnv':_0x4f7eec,'envTypes':_0x3913ad};}function _0x447a(_0x270125,_0x3dca80){_0x270125=_0x270125-0xb7;const _0x2298b2=_0x2298();let _0x447a06=_0x2298b2[_0x270125];return _0x447a06;}export async function envList(){const _0x1cba67=_0x554e09,_0x18f029={'Agaws':function(_0x555673,_0x4ec0ff){return _0x555673 instanceof _0x4ec0ff;},'PPmrZ':'Run:\x20ranger\x20profile\x20add\x20<profile-name>','AVvvZ':function(_0x4ba531,_0x28fa0c){return _0x4ba531>_0x28fa0c;},'WzeVg':function(_0x2e303d,_0x32eb25){return _0x2e303d(_0x32eb25);},'wQSSd':'legacy','Nasjw':_0x1cba67(0xbd),'BagiD':function(_0x2eaf0a,_0x32b525){return _0x2eaf0a===_0x32b525;}},{envNames:_0x4182f7,activeEnv:_0x127b83,envTypes:_0x23cfa9}=await getEnvNames();let _0x157100=[];const _0x54d935=await getToken();if(_0x54d935)try{_0x157100=await listCloudProfiles();}catch(_0x3d8cf6){console['error']('\x0aWarning:\x20could\x20not\x20fetch\x20cloud\x20profiles:\x20'+(_0x18f029[_0x1cba67(0xd2)](_0x3d8cf6,Error)?_0x3d8cf6[_0x1cba67(0xcb)]:String(_0x3d8cf6)));}if(_0x4182f7['length']===0x0&&_0x157100[_0x1cba67(0xc0)]===0x0){console['log']('\x0aNo\x20profiles\x20found.'),console['log'](_0x18f029[_0x1cba67(0xbe)]);return;}const _0x23ed31=new Set(_0x157100['map'](_0x5cfc6d=>_0x5cfc6d[_0x1cba67(0xb7)]));if(_0x18f029[_0x1cba67(0xc7)](_0x4182f7['length'],0x0)){console[_0x1cba67(0xcc)]('\x0aLocal\x20Profiles\x20(legacy):');for(const _0x45fdd5 of _0x4182f7['sort']()){const _0x2788ce=_0x45fdd5===_0x127b83&&!_0x23ed31['has'](_0x45fdd5),_0x5a2863=_0x23cfa9[_0x45fdd5]||'local',_0x5a8222=await _0x18f029['WzeVg'](loadSettings,_0x45fdd5),_0x5f1978=_0x5a2863===_0x18f029[_0x1cba67(0xcd)]?'':'\x20['+_0x5a2863+']';console['log']('\x20\x20'+(_0x2788ce?'*\x20':'\x20\x20')+_0x45fdd5+_0x5f1978),_0x5a8222['baseUrl']&&console['log']('\x20\x20\x20\x20\x20\x20URL:\x20'+_0x5a8222[_0x1cba67(0xca)]),_0x5a8222['environmentDetails']&&console['log'](_0x1cba67(0xd4)+_0x5a8222['environmentDetails']);}}if(_0x18f029['AVvvZ'](_0x157100[_0x1cba67(0xc0)],0x0)){console[_0x1cba67(0xcc)](_0x18f029[_0x1cba67(0xd7)]);for(const _0x136c11 of _0x157100[_0x1cba67(0xc8)]((_0x363f74,_0x3dca07)=>_0x363f74[_0x1cba67(0xb7)][_0x1cba67(0xb8)](_0x3dca07[_0x1cba67(0xb7)]))){const _0xca34b7=_0x18f029['BagiD'](_0x136c11['name'],_0x127b83),_0x16d0aa=_0x136c11[_0x1cba67(0xba)]?'\x20('+_0x136c11['environmentKey']+')':'',_0x3fa328=_0x136c11['sessionUpdatedAt']?_0x1cba67(0xdb)+_0x136c11[_0x1cba67(0xda)]+')':'no\x20session';console['log']('\x20\x20'+(_0xca34b7?'*\x20':'\x20\x20')+_0x136c11[_0x1cba67(0xb7)]+'\x20[cloud]'+_0x16d0aa),console['log'](_0x1cba67(0xc9)+_0x3fa328);}}_0x127b83&&console['log']('\x0a*\x20=\x20active\x20profile');}