@ranger-testing/ranger-cli 3.0.1-alpha.46ed70b-30 → 3.0.1-alpha.4fcf7f7-33

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 (84) 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 -0
  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/userApi.js +1 -1
  79. package/build/commands/utils/version.js +1 -1
  80. package/build/commands/verifyFeature.js +1 -1
  81. package/build/commands/verifyFeatureCli.js +1 -1
  82. package/build/commands/verifyFeatureNovaCli.js +1 -1
  83. package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
  84. package/package.json +1 -1
@@ -1 +1 @@
1
- const _0x4e2803=_0x515c;(function(_0xf4e871,_0x3878ef){const _0x1baf29=_0x515c,_0x2efcaf=_0xf4e871();while(!![]){try{const _0x104b73=parseInt(_0x1baf29(0x1a3))/0x1*(-parseInt(_0x1baf29(0x1ab))/0x2)+parseInt(_0x1baf29(0x1ce))/0x3*(parseInt(_0x1baf29(0x1b6))/0x4)+parseInt(_0x1baf29(0x1b8))/0x5+-parseInt(_0x1baf29(0x1e0))/0x6*(-parseInt(_0x1baf29(0x1ee))/0x7)+-parseInt(_0x1baf29(0x201))/0x8+parseInt(_0x1baf29(0x1ff))/0x9*(-parseInt(_0x1baf29(0x208))/0xa)+parseInt(_0x1baf29(0x1d4))/0xb;if(_0x104b73===_0x3878ef)break;else _0x2efcaf['push'](_0x2efcaf['shift']());}catch(_0x3babda){_0x2efcaf['push'](_0x2efcaf['shift']());}}}(_0x2499,0xebba0));function _0x2499(){const _0x5c8687=['manual','\x27\x20created.\x0a','\x27\x20to\x20the\x20cloud?','rBdbq','35jYLhns','Invalid\x20--setup-header\x20format:\x20\x22','hnvAC','startsWith','\x0a\x20\x20Cloud\x20profile\x20created,\x20but\x20failed\x20to\x20write\x20per-cwd\x20CDP\x20override\x20to\x20projects.json:\x20','\x20\x20Next:\x20ranger\x20go\x20--profile\x20','yes','trim','url','.\x20Configured\x20envs:\x20','bpTTz','What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','length','message','ReUVJ','For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','\x22:\x20','6588045vHlrgH','skipAuth','1307112brSEFD','Use\x20','ZBfCI','\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20','continue','XvypH','oeEiM','20fynLLF','\x0a\x20\x20No\x20auth\x20env\x20matches\x20','use_suggestion','EbUoq','for\x20you,\x20so\x20the\x20encrypted-CI\x20flow\x20is\x20unnecessary.\x0a','capture','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','stdout','NODE_TLS_REJECT_UNAUTHORIZED','LOmgH','\x20\x20or\x20contact\x20eng@ranger.net\x20to\x20set\x20up\x20automated\x20login\x20for\x20your\x20team.','signal','QWzXW','user_declined','setupHeaders','wMqpR','qyIci','\x0a\x20\x20Could\x20not\x20reach\x20','rhKgJ','xxypp','env','profile.add.autoRouted','jQnam','.tmp-','Invalid\x20URL','JnHpk','ZiVIV','profile.add.autoRouteSkipped','includes','fQcbe','269lVpgpE','fetch\x20failed','\x0a\x20\x20(domains:\x20','\x20--skip-auth\x0a','cwd','\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','\x0a\x20\x20Still\x20could\x20not\x20reach\x20','FEBcO','7078bmbQup','keys','no_auth_config','test','eRmGg','error','QARRv','✓\x20Cloud\x20profile\x20\x27','OBBnm','HTTP\x20','environments','2913796UbGpPG','eldUs','3965030rbiNJk','abort','trackPhaseEnd','warn','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','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','kjEFM','slice','kJnVi','bZdJB','\x20(continuing\x20with\x20--force)','This\x20account\x20will\x20be\x20shared\x20with\x20everyone\x20at\x20your\x20organization','origin','\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a','ATIRh','eUeMO','UHoGZ','isElectron','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','force','rlhAe','3jSjwKF','HHRSX','✓\x20Profile\x20\x27','http://','\x20\x20https://docs.ranger.net/main/concepts/profiles','iKGoy','17581696XCnPew','\x20\x20Set\x20active\x20profile:\x20','\x20\x20To\x20get\x20automated\x20login\x20set\x20up\x20for\x20your\x20team\x20(a\x20one-time\x20call):\x20eng@ranger.net\x0a','Enter\x20a\x20different\x20URL','baseUrl','list','confirm','log','status','retry','prompt','name','510162YADrNc','no_match','setupHeader','\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','\x27\x20created\x20(no\x20session).\x0a','\x20\x20Details:\x20https://docs.ranger.net/main/concepts/profiles#automated-login','cdpEndpoint','cFCqH','hPuIA','KnJuY'];_0x2499=function(){return _0x5c8687;};return _0x2499();}import{readdir,rm}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import _0x48f2af 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 _0x515c(_0x30ba3b,_0x5dcb35){_0x30ba3b=_0x30ba3b-0x191;const _0x249903=_0x2499();let _0x515c9f=_0x249903[_0x30ba3b];return _0x515c9f;}const CLOUD_PROFILE_SHARING_WARNING=_0x4e2803(0x1c4);function warnCloudProfileSharedInOrg(){const _0x1e3834=_0x4e2803;if(!process[_0x1e3834(0x20f)]['isTTY'])return;console[_0x1e3834(0x1bb)](CLOUD_PROFILE_SHARING_WARNING);}async function checkUrlReachability(_0x33594d){const _0x122205=_0x4e2803,_0x45123b={'nKjRG':_0x122205(0x1ea),'MfBAh':function(_0x4c9889,_0x5d3de0,_0x824d16){return _0x4c9889(_0x5d3de0,_0x824d16);},'YZCix':function(_0x15ca18,_0x54ec14){return _0x15ca18<_0x54ec14;},'ZUSmf':function(_0x3335f8,_0x25e629){return _0x3335f8(_0x25e629);},'VuBQQ':_0x122205(0x19d),'eldUs':'TypeError'};try{const _0x1a90bd=new AbortController(),_0x2dcdb1=setTimeout(()=>_0x1a90bd[_0x122205(0x1b9)](),0x1388),_0x17f027={'method':'HEAD','signal':_0x1a90bd[_0x122205(0x213)],'redirect':_0x45123b['nKjRG']};/^https:\/\/localhost(:\d+)?/i[_0x122205(0x1ae)](_0x33594d)&&(process['env']['NODE_TLS_REJECT_UNAUTHORIZED']='0');const _0x3914fa=await _0x45123b['MfBAh'](fetch,_0x33594d,_0x17f027);delete process['env'][_0x122205(0x210)],clearTimeout(_0x2dcdb1);if(_0x45123b['YZCix'](_0x3914fa[_0x122205(0x1dc)],0x190))return{'ok':!![]};return{'ok':![],'error':_0x122205(0x1b4)+_0x3914fa[_0x122205(0x1dc)]};}catch(_0x2fde01){delete process[_0x122205(0x199)][_0x122205(0x210)];const _0x23bfd2=_0x2fde01,_0x1d636e=_0x23bfd2['message']||_0x45123b['ZUSmf'](String,_0x2fde01),_0x5f2531=_0x1d636e[_0x122205(0x1a1)](_0x45123b['VuBQQ'])||_0x23bfd2[_0x122205(0x1df)]===_0x45123b[_0x122205(0x1b7)]||_0x1d636e[_0x122205(0x1a1)](_0x122205(0x1a4));return{'ok':![],'error':_0x1d636e,'isProtocolError':_0x5f2531};}}async function sweepOrphanLocalProfile(_0x253a7d,_0x2d055b,_0x2a0b42){const _0x4b7e45=_0x4e2803,_0x27f09c={'ecWXf':'local','evtxk':function(_0x2be20b,_0xa14860,_0x1d0f3c){return _0x2be20b(_0xa14860,_0x1d0f3c);},'mYyGG':function(_0x256572,_0x3f431f){return _0x256572(_0x3f431f);},'iKGoy':function(_0x9c70a2,_0x186eed,_0x107000){return _0x9c70a2(_0x186eed,_0x107000);},'pbKoh':function(_0x2718d1,_0x8c0e6f,_0x4af898){return _0x2718d1(_0x8c0e6f,_0x4af898);},'ZBfCI':function(_0x10745c,_0x4afeb3,_0x4afba8){return _0x10745c(_0x4afeb3,_0x4afba8);}},_0x3bc457=join(_0x2d055b,_0x27f09c['ecWXf']),_0xe224d2=_0x27f09c['evtxk'](join,_0x3bc457,_0x253a7d);_0x27f09c['mYyGG'](existsSync,_0xe224d2)&&(_0x2a0b42&&await isPathGitTracked(_0xe224d2)?console['log']('\x20\x20Note:\x20found\x20git-tracked\x20local\x20profile\x20at\x20'+_0xe224d2+'\x20—\x20not\x20removing.\x20Delete\x20manually\x20if\x20you\x20want\x20it\x20gone.'):(await _0x27f09c[_0x4b7e45(0x1d3)](rm,_0xe224d2,{'recursive':!![],'force':!![]}),console[_0x4b7e45(0x1db)](_0x4b7e45(0x204)+_0xe224d2)));if(existsSync(_0x3bc457)){let _0x378848=[];try{_0x378848=await _0x27f09c['mYyGG'](readdir,_0x3bc457);}catch{return;}const _0x1308b3=_0x4b7e45(0x19c)+_0x253a7d+'-';for(const _0x4da1c4 of _0x378848){if(!_0x4da1c4[_0x4b7e45(0x1f1)](_0x1308b3))continue;const _0x5a37c4=_0x27f09c['pbKoh'](join,_0x3bc457,_0x4da1c4);await _0x27f09c[_0x4b7e45(0x203)](rm,_0x5a37c4,{'recursive':!![],'force':!![]}),console[_0x4b7e45(0x1db)]('\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20'+_0x5a37c4);}}}async function sweepOrphansBestEffort(_0x502007){const _0x18e032=_0x4e2803,_0x830765={'uHuyR':function(_0x548f15){return _0x548f15();},'VHIzl':function(_0x6810a2,_0x5c7cb5){return _0x6810a2!==_0x5c7cb5;},'HHRSX':function(_0x467545,_0x2ef5ed,_0x2572e2,_0x466ca5){return _0x467545(_0x2ef5ed,_0x2572e2,_0x466ca5);},'efqtI':function(_0x5d5e95,_0x230fbf){return _0x5d5e95 instanceof _0x230fbf;}};try{await sweepOrphanLocalProfile(_0x502007,getRangerHomeDir(),![]);const _0x14037c=_0x830765['uHuyR'](getRangerDir);_0x830765['VHIzl'](_0x14037c,_0x830765['uHuyR'](getRangerHomeDir))&&await _0x830765[_0x18e032(0x1cf)](sweepOrphanLocalProfile,_0x502007,_0x14037c,!![]);}catch(_0x47f4f5){console['log']('\x20\x20Note:\x20cloud\x20profile\x20created,\x20but\x20failed\x20to\x20sweep\x20orphan\x20local\x20dirs\x20('+(_0x830765['efqtI'](_0x47f4f5,Error)?_0x47f4f5[_0x18e032(0x1fb)]:String(_0x47f4f5))+').');}}async function markActive(_0x1c3f76){const _0x41678f=_0x4e2803;try{await writeActiveProfileName(_0x1c3f76),console[_0x41678f(0x1db)](_0x41678f(0x1d5)+_0x1c3f76);}catch{console['log'](_0x41678f(0x1bd));}}async function tryAutoRouteCloudProfile(_0x1aef37,_0x3fb195,_0x539947,_0x194d48,_0x4913b0){const _0x4e01c8=_0x4e2803,_0x18c870={'rlhAe':function(_0x163095,_0x59a5f6){return _0x163095===_0x59a5f6;},'OBBnm':function(_0x2b29a8){return _0x2b29a8();},'wMqpR':function(_0x2d6e8a,_0x12c1ca){return _0x2d6e8a instanceof _0x12c1ca;},'xxypp':function(_0x5cb095,_0x27e80f){return _0x5cb095===_0x27e80f;},'FpXQu':function(_0x7bc69d,_0xb5d0c7){return _0x7bc69d+_0xb5d0c7;},'pNNPL':function(_0x15be49,_0x35347e){return _0x15be49+_0x35347e;},'XvypH':function(_0x1c4f23,_0x368b82){return _0x1c4f23+_0x368b82;},'UHoGZ':function(_0x18bf17,_0x5e6170){return _0x18bf17+_0x5e6170;},'kdhAW':'\x20\x20Workaround\x20for\x20now:\x20create\x20a\x20profile\x20without\x20a\x20captured\x20session\x20and\x20supply\x20one\x20later:\x0a','ZiVIV':function(_0x22db7d,_0x14f4de,_0x477422){return _0x22db7d(_0x14f4de,_0x477422);},'oeEiM':'profile.add.autoRouteSkipped','eRmGg':_0x4e01c8(0x1e1),'hnvAC':'\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20cloud-managed\x20session.','QlVLj':function(_0x2e8ce2){return _0x2e8ce2();},'kGwEf':function(_0x1e964b,_0x270c72){return _0x1e964b instanceof _0x270c72;},'ATIRh':_0x4e01c8(0x19a)};let _0x14cdf5;try{_0x14cdf5=await _0x18c870[_0x4e01c8(0x1b3)](fetchAuthConfig);}catch(_0xd5674e){return _0x4913b0?.['trackPhaseEnd']('profile.add.autoRouteSkipped',{'reason':'no_auth_config','profileName':_0x1aef37}),console[_0x4e01c8(0x1b0)]('\x0a\x20\x20Could\x20not\x20fetch\x20this\x20org\x27s\x20auth\x20config:\x20'+(_0x18c870[_0x4e01c8(0x194)](_0xd5674e,Error)?_0xd5674e[_0x4e01c8(0x1fb)]:String(_0xd5674e))),![];}if(!_0x14cdf5||!_0x14cdf5['environments']||_0x18c870[_0x4e01c8(0x198)](Object[_0x4e01c8(0x1ac)](_0x14cdf5['environments'])['length'],0x0)){if(_0x194d48)return await captureEnvLessProfile(_0x1aef37,_0x3fb195,_0x539947,_0x4913b0);return _0x4913b0?.['trackPhaseEnd']('profile.add.autoRouteSkipped',{'reason':_0x4e01c8(0x1ad),'profileName':_0x1aef37}),console[_0x4e01c8(0x1b0)](_0x18c870['FpXQu'](_0x18c870['pNNPL'](_0x18c870[_0x4e01c8(0x206)](_0x18c870[_0x4e01c8(0x1c9)](_0x4e01c8(0x1a8),'\x0a'),_0x18c870['kdhAW'])+('\x20\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20'+_0x1aef37+'\x20--url\x20'+_0x3fb195+_0x4e01c8(0x1a6))+'\x0a',_0x4e01c8(0x1d6)),_0x4e01c8(0x1e5))),![];}const _0x2a7246=_0x18c870[_0x4e01c8(0x19f)](matchAuthEnvironment,_0x3fb195,_0x14cdf5);if(!_0x2a7246)return _0x4913b0?.['trackPhaseEnd'](_0x18c870['oeEiM'],{'reason':_0x18c870[_0x4e01c8(0x1af)],'profileName':_0x1aef37}),console[_0x4e01c8(0x1b0)](_0x4e01c8(0x209)+_0x3fb195+_0x4e01c8(0x1f7)+Object['keys'](_0x14cdf5[_0x4e01c8(0x1b5)])['join'](',\x20')+'.'),![];const _0x5e46c4=_0x14cdf5['environments'][_0x2a7246],_0xde8ceb=_0x5e46c4?.['domains']??[];if(_0x194d48&&!_0x539947['yes']){const {saveToCloud:_0x544dd1}=await _0x48f2af['prompt']([{'type':'confirm','name':'saveToCloud','message':'Found\x20auth\x20environment\x20\x27'+_0x2a7246+'\x27\x20matching\x20'+_0x3fb195+_0x4e01c8(0x1a5)+_0xde8ceb['join'](',\x20')+')\x0a\x20\x20Save\x20\x27'+_0x1aef37+_0x4e01c8(0x1ec),'default':!![]}]);if(!_0x544dd1)return _0x4913b0?.[_0x4e01c8(0x1ba)](_0x18c870[_0x4e01c8(0x207)],{'reason':_0x4e01c8(0x192),'profileName':_0x1aef37}),console[_0x4e01c8(0x1b0)](_0x18c870[_0x4e01c8(0x1f0)]),![];}const _0x213813=_0xde8ceb['some'](_0x20f970=>{const _0x366277=_0x4e01c8;try{return _0x18c870[_0x366277(0x1cd)](new URL(_0x20f970)['origin'],new URL(_0x3fb195)[_0x366277(0x1c5)]);}catch{return![];}}),_0x484076={};!_0x213813&&(_0x484076['baseUrl']=_0x3fb195);try{await createCloudProfile(_0x1aef37,_0x2a7246,{'settings':_0x484076}),_0x18c870['QlVLj'](warnCloudProfileSharedInOrg);}catch(_0x26dda2){if(_0x18c870['kGwEf'](_0x26dda2,ApiError)&&_0x26dda2[_0x4e01c8(0x1dc)]===0x199){console['error']('\x0a\x20\x20A\x20profile\x20named\x20\x22'+_0x1aef37+_0x4e01c8(0x1c6)+('\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x1aef37));throw _0x26dda2;}throw _0x26dda2;}return console[_0x4e01c8(0x1db)](_0x18c870[_0x4e01c8(0x206)](_0x4e01c8(0x1d0)+_0x1aef37+_0x4e01c8(0x1eb),_0x4e01c8(0x1f3)+_0x1aef37)),await sweepOrphansBestEffort(_0x1aef37),_0x4913b0?.[_0x4e01c8(0x1ba)](_0x18c870[_0x4e01c8(0x1c7)],{'envKey':_0x2a7246,'profileName':_0x1aef37}),!![];}async function createUnconfiguredCloudProfile(_0x8b0a7f,_0x5a3a7c){const _0x24ac36=_0x4e2803,_0x16a330={'LOmgH':function(_0x21bbf5,_0x46168c){return _0x21bbf5===_0x46168c;}};try{await createCloudProfile(_0x8b0a7f,undefined,{'settings':_0x5a3a7c}),warnCloudProfileSharedInOrg();}catch(_0x4ecf27){_0x4ecf27 instanceof ApiError&&_0x16a330[_0x24ac36(0x211)](_0x4ecf27['status'],0x199)&&console[_0x24ac36(0x1b0)]('\x0a\x20\x20A\x20profile\x20named\x20\x22'+_0x8b0a7f+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a'+('\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x8b0a7f));throw _0x4ecf27;}}async function captureEnvLessProfile(_0x5f0314,_0x2014f4,_0x32e9d0,_0x5a4c43){const _0x264386=_0x4e2803,_0x9fcc30={'wWFLE':_0x264386(0x1da),'fQcbe':function(_0x2c6165,_0x2176b5){return _0x2c6165+_0x2176b5;},'vvWkT':function(_0x42ac4f,_0x30a510){return _0x42ac4f===_0x30a510;},'wKZQw':function(_0x27e230,_0x271498,_0x45a453,_0x5e73b8){return _0x27e230(_0x271498,_0x45a453,_0x5e73b8);},'LPECv':function(_0x17497d,_0xc507bb,_0x2fed32){return _0x17497d(_0xc507bb,_0x2fed32);},'cxjZX':function(_0x5af354,_0x4c374f){return _0x5af354>_0x4c374f;},'QARRv':_0x264386(0x19a)};if(!_0x32e9d0[_0x264386(0x1f4)]){const {capture:_0x5a671f}=await _0x48f2af['prompt']([{'type':_0x9fcc30['wWFLE'],'name':_0x264386(0x20d),'message':'Automated\x20login\x20isn\x27t\x20set\x20up\x20for\x20your\x20team.\x20Capture\x20a\x20session\x20via\x20a\x20headed\x20browser\x20instead?','default':!![]}]);if(!_0x5a671f)return _0x5a4c43?.['trackPhaseEnd'](_0x264386(0x1a0),{'reason':_0x264386(0x192),'profileName':_0x5f0314}),console[_0x264386(0x1b0)](_0x9fcc30[_0x264386(0x1a2)]('\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20session,\x0a',_0x264386(0x212))),![];}const _0x33144={};if(_0x32e9d0[_0x264386(0x1e2)])for(const _0x115cdd of _0x32e9d0[_0x264386(0x1e2)]){const _0x121a67=_0x115cdd['indexOf'](':');if(_0x9fcc30['vvWkT'](_0x121a67,-0x1))continue;_0x33144[_0x115cdd['slice'](0x0,_0x121a67)[_0x264386(0x1f5)]()]=_0x115cdd['slice'](_0x9fcc30['fQcbe'](_0x121a67,0x1))[_0x264386(0x1f5)]();}const _0x3ada62={'baseUrl':_0x2014f4};Object['keys'](_0x33144)[_0x264386(0x1fa)]>0x0&&(_0x3ada62[_0x264386(0x193)]=_0x33144);let _0x423210;try{_0x423210=await _0x9fcc30['wKZQw'](createCloudProfile,_0x5f0314,undefined,{'settings':_0x3ada62}),warnCloudProfileSharedInOrg();}catch(_0x53d0fd){_0x53d0fd instanceof ApiError&&_0x53d0fd[_0x264386(0x1dc)]===0x199&&console[_0x264386(0x1b0)]('\x0a\x20\x20A\x20profile\x20named\x20\x22'+_0x5f0314+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a'+('\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x5f0314));throw _0x53d0fd;}return await _0x9fcc30['LPECv'](manualBrowserLogin,_0x423210,{'key':'','domains':[_0x2014f4],'setupHeaders':_0x9fcc30['cxjZX'](Object[_0x264386(0x1ac)](_0x33144)['length'],0x0)?_0x33144:undefined}),console[_0x264386(0x1db)]('\x0a✓\x20Profile\x20\x27'+_0x5f0314+'\x27\x20created\x20with\x20a\x20captured\x20session.\x0a'+('\x20\x20Next:\x20ranger\x20go\x20--profile\x20'+_0x5f0314)),await sweepOrphansBestEffort(_0x5f0314),_0x5a4c43?.[_0x264386(0x1ba)](_0x9fcc30[_0x264386(0x1b1)],{'envKey':null,'profileName':_0x5f0314}),!![];}export async function addEnv(_0x200037,_0x448f15={},_0x6b4399){const _0x519e70=_0x4e2803,_0x1157ac={'hPuIA':function(_0x2c67e8,_0x645f58){return _0x2c67e8+_0x645f58;},'abDlY':function(_0x58db3a,_0x33f6f3){return _0x58db3a+_0x33f6f3;},'cFCqH':function(_0x2401af,_0x23ea27){return _0x2401af+_0x23ea27;},'zwUFu':_0x519e70(0x20c),'kjEFM':'To\x20set\x20up\x20a\x20profile,\x20run:\x0a','rBdbq':_0x519e70(0x20e),'bZdJB':_0x519e70(0x1fd),'jgucE':_0x519e70(0x1d2),'ReUVJ':function(_0x51889b,_0x3ea9df){return _0x51889b===_0x3ea9df;},'eUeMO':'--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','puaYV':function(_0x80f179,_0x23c2ca){return _0x80f179(_0x23c2ca);},'Enloa':_0x519e70(0x1be),'FEBcO':_0x519e70(0x1e3),'KnJuY':function(_0x1592bc,_0x589ef0,_0x233675){return _0x1592bc(_0x589ef0,_0x233675);},'kJnVi':function(_0x1b1247,_0x12c9e5,_0x1393b8,_0x2c8123,_0x3b127d){return _0x1b1247(_0x12c9e5,_0x1393b8,_0x2c8123,_0x3b127d);},'QHVLJ':_0x519e70(0x1ca),'qyIci':function(_0x4bcf1a,_0x4b683c){return _0x4bcf1a instanceof _0x4b683c;},'rhKgJ':function(_0x4ace06,_0x289cb4){return _0x4ace06(_0x289cb4);},'EbUoq':function(_0x3484c8,_0xf35df7){return _0x3484c8>_0xf35df7;},'QWzXW':function(_0xe07b2d,_0xd97a8e){return _0xe07b2d(_0xd97a8e);},'jQnam':'\x0a🌐\x20Profile\x20Setup\x0a','HDhgL':'baseUrl','JnHpk':'Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','XSdkB':_0x519e70(0x1f9),'uMSoz':'http://localhost:3000','RztFV':_0x519e70(0x1d7),'bpTTz':'Continue\x20anyway','DkvqG':_0x519e70(0x205),'GBUsK':_0x519e70(0x20a)};_0x448f15['ci']&&(console[_0x519e70(0x1b0)](_0x1157ac[_0x519e70(0x1e8)](_0x1157ac[_0x519e70(0x1e8)](_0x1157ac['abDlY'](_0x1157ac[_0x519e70(0x1e7)]('The\x20--ci\x20flag\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x20session\x20state\x0a',_0x1157ac['zwUFu'])+'\x0a',_0x1157ac[_0x519e70(0x1bf)])+_0x1157ac[_0x519e70(0x1ed)],'\x0a'),_0x1157ac[_0x519e70(0x1c2)])+_0x1157ac['jgucE']),process['exit'](0x1));const _0xb2b0a9={};if(_0x448f15[_0x519e70(0x1e2)])for(const _0x1e78d1 of _0x448f15[_0x519e70(0x1e2)]){const _0x5f579c=_0x1e78d1['indexOf'](':');if(_0x1157ac['ReUVJ'](_0x5f579c,-0x1))throw new Error(_0x519e70(0x1ef)+_0x1e78d1+'\x22.\x20Expected\x20\x22Name:\x20Value\x22.');const _0x5d5544=_0x1e78d1['slice'](0x0,_0x5f579c)[_0x519e70(0x1f5)](),_0x5742cf=_0x1e78d1[_0x519e70(0x1c0)](_0x1157ac[_0x519e70(0x1e8)](_0x5f579c,0x1))['trim']();_0xb2b0a9[_0x5d5544]=_0x5742cf;}if(_0x448f15[_0x519e70(0x1e6)]!==undefined&&_0x448f15['cdpEndpoint']['trim']()==='')throw new Error(_0x1157ac[_0x519e70(0x1c8)]);if(_0x448f15[_0x519e70(0x1e6)]&&_0x448f15[_0x519e70(0x1f6)])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 _0x5124e4=_0x1157ac['puaYV'](Boolean,_0x448f15[_0x519e70(0x1e6)]),_0x5e66e9=isInteractive();if(!_0x5e66e9&&!_0x448f15[_0x519e70(0x1f6)]&&!_0x5124e4&&!_0x448f15[_0x519e70(0x200)])throw new Error(_0x1157ac['Enloa']);if(_0x5124e4){const _0x422701=_0x448f15['cdpEndpoint'];console['log'](_0x1157ac[_0x519e70(0x1aa)]),console['log']('\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20'+_0x422701);const _0x1e1e9a={'cdpEndpoint':_0x422701,'isElectron':!![]};Object[_0x519e70(0x1ac)](_0xb2b0a9)[_0x519e70(0x1fa)]>0x0&&(_0x1e1e9a[_0x519e70(0x193)]=_0xb2b0a9);await _0x1157ac[_0x519e70(0x1e9)](createUnconfiguredCloudProfile,_0x200037,_0x1e1e9a);try{_0x1157ac[_0x519e70(0x1c1)](setProfileOverride,process[_0x519e70(0x1a7)](),_0x200037,_0x519e70(0x1e6),_0x422701),setProfileOverride(process['cwd'](),_0x200037,_0x1157ac['QHVLJ'],!![]);}catch(_0x322573){console['error'](_0x519e70(0x1f2)+(_0x1157ac['qyIci'](_0x322573,Error)?_0x322573[_0x519e70(0x1fb)]:_0x1157ac['puaYV'](String,_0x322573)));}console['log'](_0x519e70(0x1b2)+_0x200037+'\x27\x20created\x20(CDP).'),await _0x1157ac['rhKgJ'](sweepOrphansBestEffort,_0x200037),await markActive(_0x200037);return;}if(_0x448f15['skipAuth']){const _0x14dcff={};_0x448f15['url']&&(_0x14dcff[_0x519e70(0x1d8)]=_0x448f15['url']);_0x1157ac[_0x519e70(0x20b)](Object[_0x519e70(0x1ac)](_0xb2b0a9)[_0x519e70(0x1fa)],0x0)&&(_0x14dcff[_0x519e70(0x193)]=_0xb2b0a9);await createUnconfiguredCloudProfile(_0x200037,_0x14dcff),console['log']('✓\x20Profile\x20\x27'+_0x200037+_0x519e70(0x1e4)+('\x20\x20When\x20you\x27re\x20ready\x20to\x20log\x20in,\x20run\x20`ranger\x20profile\x20add\x20'+_0x200037+'`\x20again\x20without\x20--skip-auth.')),await _0x1157ac[_0x519e70(0x191)](sweepOrphansBestEffort,_0x200037),await markActive(_0x200037);return;}if(_0x448f15['url']){const _0x56dd84=_0x448f15[_0x519e70(0x1f6)],_0xf043d3=await checkUrlReachability(_0x56dd84);if(!_0xf043d3['ok']&&!_0x448f15['force'])throw new Error('Could\x20not\x20reach\x20'+_0x56dd84+':\x20'+_0xf043d3[_0x519e70(0x1b0)]+_0x519e70(0x1bc));!_0xf043d3['ok']&&_0x448f15[_0x519e70(0x1cc)]&&console[_0x519e70(0x1db)]('⚠\x20Could\x20not\x20reach\x20'+_0x56dd84+':\x20'+_0xf043d3['error']+_0x519e70(0x1c3));}else{console['log'](_0x1157ac[_0x519e70(0x19b)]),console[_0x519e70(0x1db)](_0x519e70(0x1cb)),console['log']('\x20\x20Ranger\x20will\x20use\x20it\x20to\x20look\x20up\x20the\x20right\x20cloud\x20auth\x20env\x20to\x20attach.\x0a');let _0x2e2d71='',_0x3b3d96=![];while(!![]){const _0x364fb1=await _0x48f2af['prompt']([{'type':'input','name':_0x1157ac['HDhgL'],'message':_0x3b3d96?_0x1157ac[_0x519e70(0x19e)]:_0x1157ac['XSdkB'],'default':_0x2e2d71||_0x1157ac['uMSoz']}]);_0x2e2d71=_0x364fb1[_0x519e70(0x1d8)];const _0x50bd42=await checkUrlReachability(_0x2e2d71);if(_0x50bd42['ok'])break;const _0x1d76e0=/^[a-zA-Z][\w+.-]*:\/\//[_0x519e70(0x1ae)](_0x2e2d71),_0x49ec8c=_0x50bd42['isProtocolError']&&!_0x1d76e0,_0x4f0c90=_0x49ec8c?_0x519e70(0x1d1)+_0x2e2d71:null;_0x3b3d96=!![],console[_0x519e70(0x1db)](_0x519e70(0x196)+_0x2e2d71+':\x20'+_0x50bd42[_0x519e70(0x1b0)]);_0x4f0c90&&console['log']('\x20\x20Did\x20you\x20mean\x20'+_0x4f0c90+'?');const {action:_0x278e81}=await _0x48f2af[_0x519e70(0x1de)]([{'type':_0x519e70(0x1d9),'name':'action','message':'What\x20would\x20you\x20like\x20to\x20do?','choices':[..._0x4f0c90?[{'name':_0x519e70(0x202)+_0x4f0c90,'value':'use_suggestion'}]:[],{'name':_0x1157ac['RztFV'],'value':_0x519e70(0x1dd)},{'name':_0x1157ac[_0x519e70(0x1f8)],'value':_0x1157ac['DkvqG']}]}]);if(_0x278e81===_0x1157ac['GBUsK']&&_0x4f0c90){_0x2e2d71=_0x4f0c90;const _0x54be1f=await _0x1157ac[_0x519e70(0x197)](checkUrlReachability,_0x2e2d71);if(_0x54be1f['ok'])break;console[_0x519e70(0x1db)](_0x519e70(0x1a9)+_0x2e2d71+':\x20'+_0x54be1f[_0x519e70(0x1b0)]);}else{if(_0x1157ac[_0x519e70(0x1fc)](_0x278e81,_0x1157ac['DkvqG']))break;}}_0x448f15={..._0x448f15,'url':_0x2e2d71};}let _0x533de3=![];try{_0x533de3=await tryAutoRouteCloudProfile(_0x200037,_0x448f15['url'],_0x448f15,_0x5e66e9,_0x6b4399);}catch(_0x59e15f){console['error']('\x0a\x20\x20Failed\x20to\x20create\x20cloud\x20profile\x20\x22'+_0x200037+_0x519e70(0x1fe)+(_0x1157ac[_0x519e70(0x195)](_0x59e15f,Error)?_0x59e15f[_0x519e70(0x1fb)]:String(_0x59e15f))),process['exit'](0x1);}!_0x533de3&&process['exit'](0x1),await markActive(_0x200037);}
1
+ (function(_0xb2c39e,_0x220a01){const _0x22eea8=_0x58fc,_0x2f29ea=_0xb2c39e();while(!![]){try{const _0x399770=parseInt(_0x22eea8(0x11c))/0x1+-parseInt(_0x22eea8(0xe9))/0x2+-parseInt(_0x22eea8(0xea))/0x3+parseInt(_0x22eea8(0xfe))/0x4*(-parseInt(_0x22eea8(0x13f))/0x5)+parseInt(_0x22eea8(0x10c))/0x6*(parseInt(_0x22eea8(0xf3))/0x7)+parseInt(_0x22eea8(0x12e))/0x8*(parseInt(_0x22eea8(0x12c))/0x9)+parseInt(_0x22eea8(0x102))/0xa;if(_0x399770===_0x220a01)break;else _0x2f29ea['push'](_0x2f29ea['shift']());}catch(_0x5227f2){_0x2f29ea['push'](_0x2f29ea['shift']());}}}(_0xc64a,0xba0c7));import{readdir,rm}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import _0x1d1772 from'inquirer';import{getRangerDir,getRangerHomeDir}from'./utils/rangerRoot.js';function _0x58fc(_0xd9fd2b,_0x5bcaf3){_0xd9fd2b=_0xd9fd2b-0xce;const _0xc64aae=_0xc64a();let _0x58fc59=_0xc64aae[_0xd9fd2b];return _0x58fc59;}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';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(_0x293ef5){const _0xb101c6=_0x58fc,_0x46b389={'srhLw':function(_0x1ab270,_0xc08398){return _0x1ab270<_0xc08398;},'NFRRo':function(_0xc85a47,_0x1d9457){return _0xc85a47(_0x1d9457);},'cSNmm':function(_0x2c7faa,_0x19cf49){return _0x2c7faa===_0x19cf49;},'FAbJV':_0xb101c6(0x12a)};try{const _0x25feee=new AbortController(),_0xa899e4=setTimeout(()=>_0x25feee[_0xb101c6(0x118)](),0x1388),_0x5d67b5={'method':'HEAD','signal':_0x25feee[_0xb101c6(0xe0)],'redirect':'manual'};/^https:\/\/localhost(:\d+)?/i[_0xb101c6(0x13c)](_0x293ef5)&&(process['env'][_0xb101c6(0x130)]='0');const _0x29393a=await fetch(_0x293ef5,_0x5d67b5);delete process['env'][_0xb101c6(0x130)],clearTimeout(_0xa899e4);if(_0x46b389['srhLw'](_0x29393a['status'],0x190))return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x29393a[_0xb101c6(0xfd)]};}catch(_0x28e2e4){delete process[_0xb101c6(0x100)]['NODE_TLS_REJECT_UNAUTHORIZED'];const _0x9519dc=_0x28e2e4,_0x5a3eb7=_0x9519dc[_0xb101c6(0xfa)]||_0x46b389[_0xb101c6(0x125)](String,_0x28e2e4),_0x34d4fa=_0x5a3eb7[_0xb101c6(0x126)]('Invalid\x20URL')||_0x46b389[_0xb101c6(0x129)](_0x9519dc['name'],_0x46b389[_0xb101c6(0x127)])||_0x5a3eb7['includes']('fetch\x20failed');return{'ok':![],'error':_0x5a3eb7,'isProtocolError':_0x34d4fa};}}async function sweepOrphanLocalProfile(_0x332fa0,_0x35901c,_0x497f77){const _0x25d538=_0x58fc,_0x2e37f9={'zZYpg':'local','ueYTE':function(_0x1ee7b2,_0x42e83a,_0x45d1b1){return _0x1ee7b2(_0x42e83a,_0x45d1b1);},'zFjJi':function(_0x5e01b3,_0x122efd){return _0x5e01b3(_0x122efd);}},_0x11f791=join(_0x35901c,_0x2e37f9[_0x25d538(0xf4)]),_0x5aad45=_0x2e37f9['ueYTE'](join,_0x11f791,_0x332fa0);existsSync(_0x5aad45)&&(_0x497f77&&await isPathGitTracked(_0x5aad45)?console[_0x25d538(0x10e)](_0x25d538(0x110)+_0x5aad45+'\x20—\x20not\x20removing.\x20Delete\x20manually\x20if\x20you\x20want\x20it\x20gone.'):(await rm(_0x5aad45,{'recursive':!![],'force':!![]}),console['log']('\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20'+_0x5aad45)));if(_0x2e37f9['zFjJi'](existsSync,_0x11f791)){let _0x187cb1=[];try{_0x187cb1=await readdir(_0x11f791);}catch{return;}const _0x567cd3='.tmp-'+_0x332fa0+'-';for(const _0x3d7d38 of _0x187cb1){if(!_0x3d7d38[_0x25d538(0xd5)](_0x567cd3))continue;const _0x8d42fb=join(_0x11f791,_0x3d7d38);await rm(_0x8d42fb,{'recursive':!![],'force':!![]}),console[_0x25d538(0x10e)](_0x25d538(0x111)+_0x8d42fb);}}}async function sweepOrphansBestEffort(_0x575bf2){const _0x14b6fa=_0x58fc,_0x11d1dd={'uZnCx':function(_0x4c4437,_0x33fced,_0x20d432,_0x260d83){return _0x4c4437(_0x33fced,_0x20d432,_0x260d83);},'ALQQq':function(_0x50172f){return _0x50172f();},'wHqzq':function(_0x1f3974,_0x4791be){return _0x1f3974!==_0x4791be;},'Aozya':function(_0x1b9d3f,_0x5d4575){return _0x1b9d3f instanceof _0x5d4575;},'iYlsm':function(_0x55788f,_0x51b26a){return _0x55788f(_0x51b26a);}};try{await _0x11d1dd[_0x14b6fa(0xf1)](sweepOrphanLocalProfile,_0x575bf2,_0x11d1dd[_0x14b6fa(0xe3)](getRangerHomeDir),![]);const _0x427c8a=_0x11d1dd['ALQQq'](getRangerDir);_0x11d1dd['wHqzq'](_0x427c8a,getRangerHomeDir())&&await sweepOrphanLocalProfile(_0x575bf2,_0x427c8a,!![]);}catch(_0x5a5d44){console['log']('\x20\x20Note:\x20cloud\x20profile\x20created,\x20but\x20failed\x20to\x20sweep\x20orphan\x20local\x20dirs\x20('+(_0x11d1dd[_0x14b6fa(0x11e)](_0x5a5d44,Error)?_0x5a5d44['message']:_0x11d1dd[_0x14b6fa(0xf6)](String,_0x5a5d44))+').');}}async function markActive(_0x166f8b){const _0x89ed62=_0x58fc,_0x105f53={'NlXzE':'Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.'};try{await writeActiveProfileName(_0x166f8b),console[_0x89ed62(0x10e)]('\x20\x20Set\x20active\x20profile:\x20'+_0x166f8b);}catch{console[_0x89ed62(0x10e)](_0x105f53[_0x89ed62(0x140)]);}}async function tryAutoRouteCloudProfile(_0x138363,_0x2d5715,_0x1f461f,_0x39ecba,_0x50eb02){const _0x765c5c=_0x58fc,_0x4f1d25={'bomAM':function(_0x335de7,_0x530afc){return _0x335de7===_0x530afc;},'gLXTc':function(_0x5464dd,_0x4d4340){return _0x5464dd instanceof _0x4d4340;},'mJcew':_0x765c5c(0xe6),'ueLyr':function(_0x5a4f1c,_0x110539){return _0x5a4f1c+_0x110539;},'Zdlnz':'\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','GojzJ':_0x765c5c(0x135),'LPLCh':_0x765c5c(0xd1),'JxASE':'saveToCloud','wwhvb':_0x765c5c(0xe2),'jZitj':_0x765c5c(0x10b),'MQmyY':function(_0x405171,_0x18c416,_0x3b09d1,_0x13c9a0){return _0x405171(_0x18c416,_0x3b09d1,_0x13c9a0);},'zZAlJ':function(_0x508947,_0x314ec7){return _0x508947+_0x314ec7;},'MjTHz':function(_0x2d3aaa,_0x2caa65){return _0x2d3aaa(_0x2caa65);}};let _0x3ec878;try{_0x3ec878=await fetchAuthConfig();}catch(_0x3ddb38){return _0x50eb02?.['trackPhaseEnd']('profile.add.autoRouteSkipped',{'reason':'no_auth_config','profileName':_0x138363}),console['error']('\x0a\x20\x20Could\x20not\x20fetch\x20this\x20org\x27s\x20auth\x20config:\x20'+(_0x4f1d25['gLXTc'](_0x3ddb38,Error)?_0x3ddb38[_0x765c5c(0xfa)]:String(_0x3ddb38))),![];}if(!_0x3ec878||!_0x3ec878[_0x765c5c(0xf2)]||Object['keys'](_0x3ec878['environments'])['length']===0x0){if(_0x39ecba)return await captureEnvLessProfile(_0x138363,_0x2d5715,_0x1f461f,_0x50eb02);return _0x50eb02?.['trackPhaseEnd'](_0x4f1d25['mJcew'],{'reason':_0x765c5c(0x116),'profileName':_0x138363}),console['error'](_0x4f1d25['ueLyr'](_0x4f1d25['ueLyr'](_0x4f1d25[_0x765c5c(0xdf)]+'\x0a',_0x765c5c(0xde)),_0x765c5c(0x128)+_0x138363+_0x765c5c(0x112)+_0x2d5715+_0x765c5c(0xce))+'\x0a'+'\x20\x20To\x20get\x20automated\x20login\x20set\x20up\x20for\x20your\x20team\x20(a\x20one-time\x20call):\x20eng@ranger.net\x0a'+_0x4f1d25['GojzJ']),![];}const _0x544629=matchAuthEnvironment(_0x2d5715,_0x3ec878);if(!_0x544629)return _0x50eb02?.[_0x765c5c(0xf5)](_0x765c5c(0xe6),{'reason':_0x4f1d25['LPLCh'],'profileName':_0x138363}),console['error']('\x0a\x20\x20No\x20auth\x20env\x20matches\x20'+_0x2d5715+_0x765c5c(0x120)+Object[_0x765c5c(0xe5)](_0x3ec878['environments'])[_0x765c5c(0x103)](',\x20')+'.'),![];const _0x4b0ef3=_0x3ec878['environments'][_0x544629],_0x517ae2=_0x4b0ef3?.['domains']??[];if(_0x39ecba&&!_0x1f461f['yes']){const {saveToCloud:_0x3ac004}=await _0x1d1772[_0x765c5c(0x133)]([{'type':'confirm','name':_0x4f1d25[_0x765c5c(0x12d)],'message':_0x765c5c(0xef)+_0x544629+'\x27\x20matching\x20'+_0x2d5715+_0x765c5c(0x117)+_0x517ae2['join'](',\x20')+_0x765c5c(0xfb)+_0x138363+'\x27\x20to\x20the\x20cloud?','default':!![]}]);if(!_0x3ac004)return _0x50eb02?.[_0x765c5c(0xf5)](_0x4f1d25['mJcew'],{'reason':_0x4f1d25['wwhvb'],'profileName':_0x138363}),console['error'](_0x4f1d25[_0x765c5c(0x10a)]),![];}const _0x8dffdb=_0x517ae2['some'](_0x3c520f=>{const _0x146ad6=_0x765c5c;try{return _0x4f1d25['bomAM'](new URL(_0x3c520f)[_0x146ad6(0x12f)],new URL(_0x2d5715)[_0x146ad6(0x12f)]);}catch{return![];}}),_0x713050={};!_0x8dffdb&&(_0x713050[_0x765c5c(0x113)]=_0x2d5715);try{await _0x4f1d25['MQmyY'](createCloudProfile,_0x138363,_0x544629,{'settings':_0x713050}),warnCloudProfileSharedInOrg();}catch(_0x1d52e8){if(_0x1d52e8 instanceof ApiError&&_0x1d52e8[_0x765c5c(0xfd)]===0x199){console['error'](_0x4f1d25[_0x765c5c(0xe4)]('\x0a\x20\x20A\x20profile\x20named\x20\x22'+_0x138363+_0x765c5c(0x109),'\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x138363));throw _0x1d52e8;}throw _0x1d52e8;}return console[_0x765c5c(0x10e)](_0x765c5c(0x11a)+_0x138363+'\x27\x20created.\x0a'+(_0x765c5c(0xe8)+_0x138363)),await _0x4f1d25['MjTHz'](sweepOrphansBestEffort,_0x138363),_0x50eb02?.[_0x765c5c(0xf5)](_0x765c5c(0x139),{'envKey':_0x544629,'profileName':_0x138363}),!![];}async function createUnconfiguredCloudProfile(_0x2dbe40,_0x3d6a1a){const _0x1997fc=_0x58fc,_0x4e9e90={'psXMz':function(_0x1ff0da){return _0x1ff0da();}};try{await createCloudProfile(_0x2dbe40,undefined,{'settings':_0x3d6a1a}),_0x4e9e90['psXMz'](warnCloudProfileSharedInOrg);}catch(_0x4a28ae){_0x4a28ae instanceof ApiError&&_0x4a28ae['status']===0x199&&console['error']('\x0a\x20\x20A\x20profile\x20named\x20\x22'+_0x2dbe40+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a'+(_0x1997fc(0x138)+_0x2dbe40));throw _0x4a28ae;}}function _0xc64a(){const _0x4d4646=['exit','user_declined','ALQQq','zZAlJ','keys','profile.add.autoRouteSkipped','trim','\x20\x20Next:\x20ranger\x20go\x20--profile\x20','961830ghYIMz','3563676tKhRhw','cyUfc','setupHeaders','length','http://','Found\x20auth\x20environment\x20\x27','✓\x20Cloud\x20profile\x20\x27','uZnCx','environments','49IrwVVt','zZYpg','trackPhaseEnd','iYlsm','use_suggestion','AjyBf','JTOej','message',')\x0a\x20\x20Save\x20\x27','zQDQF','status','4508124waBuWV','indexOf','env','setupHeader','22637720oNZlrN','join','`\x20again\x20without\x20--skip-auth.','\x20\x20Ranger\x20will\x20use\x20it\x20to\x20look\x20up\x20the\x20right\x20cloud\x20auth\x20env\x20to\x20attach.\x0a','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','gFkak','\x27\x20created\x20with\x20a\x20captured\x20session.\x0a','\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a','jZitj','\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20cloud-managed\x20session.','798348evyLFY','FMlLj','log','vxLWR','\x20\x20Note:\x20found\x20git-tracked\x20local\x20profile\x20at\x20','\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20','\x20--url\x20','baseUrl','Could\x20not\x20reach\x20','Enter\x20a\x20different\x20URL','no_auth_config','\x0a\x20\x20(domains:\x20','abort','\x20\x20Did\x20you\x20mean\x20','✓\x20Profile\x20\x27','What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','25426NRrDGm','\x20\x20https://docs.ranger.net/main/concepts/profiles','Aozya','IVJxB','.\x20Configured\x20envs:\x20','Use\x20','pIFGH','PTDRA','force','NFRRo','includes','FAbJV','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20','cSNmm','TypeError','yes','2979VImOjN','JxASE','8152TrXPYd','origin','NODE_TLS_REJECT_UNAUTHORIZED','XmUSB','\x20\x20or\x20contact\x20eng@ranger.net\x20to\x20set\x20up\x20automated\x20login\x20for\x20your\x20team.','prompt','list','\x20\x20Details:\x20https://docs.ranger.net/main/concepts/profiles#automated-login','for\x20you,\x20so\x20the\x20encrypted-CI\x20flow\x20is\x20unnecessary.\x0a','input','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20','profile.add.autoRouted','error','yGByG','test','\x20(continuing\x20with\x20--force)','\x0a✓\x20Profile\x20\x27','5BfEbVY','NlXzE','\x0a\x20\x20A\x20profile\x20named\x20\x22','ptYBY','\x20--skip-auth\x0a','BIYjR','cdpEndpoint','no_match','Automated\x20login\x20isn\x27t\x20set\x20up\x20for\x20your\x20team.\x20Capture\x20a\x20session\x20via\x20a\x20headed\x20browser\x20instead?','QhcfS','suTrR','startsWith','url','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','slice','What\x20would\x20you\x20like\x20to\x20do?','skipAuth','bqwUV','\x20\x20Workaround\x20for\x20now:\x20create\x20a\x20profile\x20without\x20a\x20captured\x20session\x20and\x20supply\x20one\x20later:\x0a','Zdlnz','signal'];_0xc64a=function(){return _0x4d4646;};return _0xc64a();}async function captureEnvLessProfile(_0x5a1a29,_0x1d6d61,_0x47d9de,_0x3683f6){const _0x4f0b27=_0x58fc,_0x2e3ed7={'JiKVJ':'confirm','ISQvD':'capture','JkIdJ':_0x4f0b27(0xd2),'zQDQF':'profile.add.autoRouteSkipped','bqwUV':_0x4f0b27(0xe2),'gFkak':function(_0x43b661,_0x5134b2){return _0x43b661+_0x5134b2;},'pIFGH':function(_0x36a291,_0x38782d){return _0x36a291 instanceof _0x38782d;},'BIYjR':function(_0x124944,_0x1fa90f){return _0x124944(_0x1fa90f);}};if(!_0x47d9de[_0x4f0b27(0x12b)]){const {capture:_0xeb11e9}=await _0x1d1772['prompt']([{'type':_0x2e3ed7['JiKVJ'],'name':_0x2e3ed7['ISQvD'],'message':_0x2e3ed7['JkIdJ'],'default':!![]}]);if(!_0xeb11e9)return _0x3683f6?.[_0x4f0b27(0xf5)](_0x2e3ed7[_0x4f0b27(0xfc)],{'reason':_0x2e3ed7[_0x4f0b27(0xdd)],'profileName':_0x5a1a29}),console[_0x4f0b27(0x13a)](_0x2e3ed7[_0x4f0b27(0x107)]('\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20session,\x0a',_0x4f0b27(0x132))),![];}const _0x453e32={};if(_0x47d9de[_0x4f0b27(0x101)])for(const _0x2bbcc0 of _0x47d9de['setupHeader']){const _0x42e7b5=_0x2bbcc0[_0x4f0b27(0xff)](':');if(_0x42e7b5===-0x1)continue;_0x453e32[_0x2bbcc0[_0x4f0b27(0xda)](0x0,_0x42e7b5)['trim']()]=_0x2bbcc0[_0x4f0b27(0xda)](_0x2e3ed7[_0x4f0b27(0x107)](_0x42e7b5,0x1))['trim']();}const _0x35f373={'baseUrl':_0x1d6d61};Object[_0x4f0b27(0xe5)](_0x453e32)['length']>0x0&&(_0x35f373[_0x4f0b27(0xec)]=_0x453e32);let _0x558ecd;try{_0x558ecd=await createCloudProfile(_0x5a1a29,undefined,{'settings':_0x35f373}),warnCloudProfileSharedInOrg();}catch(_0x3f6413){_0x2e3ed7[_0x4f0b27(0x122)](_0x3f6413,ApiError)&&_0x3f6413['status']===0x199&&console['error'](_0x4f0b27(0x141)+_0x5a1a29+_0x4f0b27(0x109)+(_0x4f0b27(0x138)+_0x5a1a29));throw _0x3f6413;}return await manualBrowserLogin(_0x558ecd,{'key':'','domains':[_0x1d6d61],'setupHeaders':Object['keys'](_0x453e32)['length']>0x0?_0x453e32:undefined}),console[_0x4f0b27(0x10e)](_0x2e3ed7['gFkak'](_0x4f0b27(0x13e)+_0x5a1a29+_0x4f0b27(0x108),_0x4f0b27(0xe8)+_0x5a1a29)),await _0x2e3ed7[_0x4f0b27(0xcf)](sweepOrphansBestEffort,_0x5a1a29),_0x3683f6?.['trackPhaseEnd'](_0x4f0b27(0x139),{'envKey':null,'profileName':_0x5a1a29}),!![];}export async function addEnv(_0x2e344e,_0xd38caa={},_0xec0829){const _0x1c3ee1=_0x58fc,_0x50ba5d={'JTOej':function(_0x1eb158,_0x5c0f42){return _0x1eb158+_0x5c0f42;},'aSUZD':function(_0x1d3dba,_0x18a780){return _0x1d3dba+_0x18a780;},'RKquV':'The\x20--ci\x20flag\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x20session\x20state\x0a','ptYBY':'To\x20set\x20up\x20a\x20profile,\x20run:\x0a','frPtG':_0x1c3ee1(0xd8),'yGByG':_0x1c3ee1(0x11d),'IlSQp':function(_0x121fe3,_0xe45a59){return _0x121fe3!==_0xe45a59;},'QhcfS':function(_0x364b41,_0x357ecd){return _0x364b41===_0x357ecd;},'gOiwV':'--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','vxLWR':'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','HJord':'\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','XmUSB':function(_0x41808f,_0x3fcd06,_0x1eba26,_0x451abe,_0x165025){return _0x41808f(_0x3fcd06,_0x1eba26,_0x451abe,_0x165025);},'FMlLj':function(_0x13176b,_0x2265c1){return _0x13176b instanceof _0x2265c1;},'zegLr':function(_0x2d03ed,_0x5cf1d6){return _0x2d03ed(_0x5cf1d6);},'PTDRA':function(_0x2d0cee,_0x25c720){return _0x2d0cee>_0x25c720;},'nWXBb':function(_0x416f48,_0x456b21){return _0x416f48+_0x456b21;},'yATLe':function(_0x5c59db,_0x231579){return _0x5c59db(_0x231579);},'RBROw':_0x1c3ee1(0x137),'GLTgk':'baseUrl','suTrR':_0x1c3ee1(0x11b),'Rbbqn':function(_0x38cac3,_0x56a169){return _0x38cac3||_0x56a169;},'EgvFY':_0x1c3ee1(0x134),'AjyBf':'action','cyUfc':_0x1c3ee1(0xf7),'IVJxB':'retry','bFglJ':function(_0x4e7ac3,_0x2062dd){return _0x4e7ac3(_0x2062dd);},'MOVsp':'continue','MrTCX':function(_0x21d64c,_0x2c196f){return _0x21d64c instanceof _0x2c196f;}};_0xd38caa['ci']&&(console[_0x1c3ee1(0x13a)](_0x50ba5d['JTOej'](_0x50ba5d['JTOej'](_0x50ba5d['aSUZD'](_0x50ba5d['RKquV']+_0x1c3ee1(0x136),'\x0a')+_0x50ba5d[_0x1c3ee1(0x142)]+_0x50ba5d['frPtG'],'\x0a'),'For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a')+_0x50ba5d[_0x1c3ee1(0x13b)]),process[_0x1c3ee1(0xe1)](0x1));const _0x3d8541={};if(_0xd38caa['setupHeader'])for(const _0x22600c of _0xd38caa['setupHeader']){const _0x39378d=_0x22600c[_0x1c3ee1(0xff)](':');if(_0x39378d===-0x1)throw new Error('Invalid\x20--setup-header\x20format:\x20\x22'+_0x22600c+'\x22.\x20Expected\x20\x22Name:\x20Value\x22.');const _0x1e6c2c=_0x22600c['slice'](0x0,_0x39378d)[_0x1c3ee1(0xe7)](),_0x950753=_0x22600c['slice'](_0x50ba5d[_0x1c3ee1(0xf9)](_0x39378d,0x1))['trim']();_0x3d8541[_0x1e6c2c]=_0x950753;}if(_0x50ba5d['IlSQp'](_0xd38caa['cdpEndpoint'],undefined)&&_0x50ba5d[_0x1c3ee1(0xd3)](_0xd38caa[_0x1c3ee1(0xd0)][_0x1c3ee1(0xe7)](),''))throw new Error(_0x50ba5d['gOiwV']);if(_0xd38caa[_0x1c3ee1(0xd0)]&&_0xd38caa[_0x1c3ee1(0xd6)])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 _0x4c7681=Boolean(_0xd38caa[_0x1c3ee1(0xd0)]),_0x50ad4b=isInteractive();if(!_0x50ad4b&&!_0xd38caa['url']&&!_0x4c7681&&!_0xd38caa[_0x1c3ee1(0xdc)])throw new Error(_0x50ba5d[_0x1c3ee1(0x10f)]);if(_0x4c7681){const _0x29d590=_0xd38caa[_0x1c3ee1(0xd0)];console['log'](_0x50ba5d['HJord']),console[_0x1c3ee1(0x10e)](_0x1c3ee1(0xd9)+_0x29d590);const _0x2bd97b={'cdpEndpoint':_0x29d590,'isElectron':!![]};Object[_0x1c3ee1(0xe5)](_0x3d8541)[_0x1c3ee1(0xed)]>0x0&&(_0x2bd97b['setupHeaders']=_0x3d8541);await createUnconfiguredCloudProfile(_0x2e344e,_0x2bd97b);try{_0x50ba5d[_0x1c3ee1(0x131)](setProfileOverride,process['cwd'](),_0x2e344e,_0x1c3ee1(0xd0),_0x29d590),setProfileOverride(process['cwd'](),_0x2e344e,'isElectron',!![]);}catch(_0x394bfa){console['error']('\x0a\x20\x20Cloud\x20profile\x20created,\x20but\x20failed\x20to\x20write\x20per-cwd\x20CDP\x20override\x20to\x20projects.json:\x20'+(_0x50ba5d[_0x1c3ee1(0x10d)](_0x394bfa,Error)?_0x394bfa['message']:_0x50ba5d['zegLr'](String,_0x394bfa)));}console['log'](_0x1c3ee1(0xf0)+_0x2e344e+'\x27\x20created\x20(CDP).'),await _0x50ba5d['zegLr'](sweepOrphansBestEffort,_0x2e344e),await _0x50ba5d['zegLr'](markActive,_0x2e344e);return;}if(_0xd38caa['skipAuth']){const _0x40f042={};_0xd38caa[_0x1c3ee1(0xd6)]&&(_0x40f042[_0x1c3ee1(0x113)]=_0xd38caa['url']);_0x50ba5d[_0x1c3ee1(0x123)](Object['keys'](_0x3d8541)[_0x1c3ee1(0xed)],0x0)&&(_0x40f042[_0x1c3ee1(0xec)]=_0x3d8541);await createUnconfiguredCloudProfile(_0x2e344e,_0x40f042),console['log'](_0x50ba5d['nWXBb'](_0x1c3ee1(0x11a)+_0x2e344e+'\x27\x20created\x20(no\x20session).\x0a','\x20\x20When\x20you\x27re\x20ready\x20to\x20log\x20in,\x20run\x20`ranger\x20profile\x20add\x20'+_0x2e344e+_0x1c3ee1(0x104))),await _0x50ba5d['yATLe'](sweepOrphansBestEffort,_0x2e344e),await _0x50ba5d['zegLr'](markActive,_0x2e344e);return;}if(_0xd38caa[_0x1c3ee1(0xd6)]){const _0x2e69f9=_0xd38caa[_0x1c3ee1(0xd6)],_0x5eb826=await checkUrlReachability(_0x2e69f9);if(!_0x5eb826['ok']&&!_0xd38caa['force'])throw new Error(_0x1c3ee1(0x114)+_0x2e69f9+':\x20'+_0x5eb826['error']+_0x1c3ee1(0x106));!_0x5eb826['ok']&&_0xd38caa[_0x1c3ee1(0x124)]&&console['log']('⚠\x20Could\x20not\x20reach\x20'+_0x2e69f9+':\x20'+_0x5eb826[_0x1c3ee1(0x13a)]+_0x1c3ee1(0x13d));}else{console['log']('\x0a🌐\x20Profile\x20Setup\x0a'),console['log'](_0x1c3ee1(0xd7)),console['log'](_0x1c3ee1(0x105));let _0x515867='',_0x20e665=![];while(!![]){const _0x43b629=await _0x1d1772[_0x1c3ee1(0x133)]([{'type':_0x50ba5d['RBROw'],'name':_0x50ba5d['GLTgk'],'message':_0x20e665?'Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):':_0x50ba5d[_0x1c3ee1(0xd4)],'default':_0x50ba5d['Rbbqn'](_0x515867,'http://localhost:3000')}]);_0x515867=_0x43b629[_0x1c3ee1(0x113)];const _0x29daf4=await checkUrlReachability(_0x515867);if(_0x29daf4['ok'])break;const _0x2b5e9d=/^[a-zA-Z][\w+.-]*:\/\//['test'](_0x515867),_0x301229=_0x29daf4['isProtocolError']&&!_0x2b5e9d,_0x49b25e=_0x301229?_0x1c3ee1(0xee)+_0x515867:null;_0x20e665=!![],console[_0x1c3ee1(0x10e)]('\x0a\x20\x20Could\x20not\x20reach\x20'+_0x515867+':\x20'+_0x29daf4[_0x1c3ee1(0x13a)]);_0x49b25e&&console['log'](_0x1c3ee1(0x119)+_0x49b25e+'?');const {action:_0x571d8e}=await _0x1d1772['prompt']([{'type':_0x50ba5d['EgvFY'],'name':_0x50ba5d[_0x1c3ee1(0xf8)],'message':_0x1c3ee1(0xdb),'choices':[..._0x49b25e?[{'name':_0x1c3ee1(0x121)+_0x49b25e,'value':_0x50ba5d[_0x1c3ee1(0xeb)]}]:[],{'name':_0x1c3ee1(0x115),'value':_0x50ba5d[_0x1c3ee1(0x11f)]},{'name':'Continue\x20anyway','value':'continue'}]}]);if(_0x50ba5d[_0x1c3ee1(0xd3)](_0x571d8e,_0x50ba5d['cyUfc'])&&_0x49b25e){_0x515867=_0x49b25e;const _0xde2529=await _0x50ba5d['bFglJ'](checkUrlReachability,_0x515867);if(_0xde2529['ok'])break;console[_0x1c3ee1(0x10e)]('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0x515867+':\x20'+_0xde2529[_0x1c3ee1(0x13a)]);}else{if(_0x571d8e===_0x50ba5d['MOVsp'])break;}}_0xd38caa={..._0xd38caa,'url':_0x515867};}let _0x1eb2b0=![];try{_0x1eb2b0=await tryAutoRouteCloudProfile(_0x2e344e,_0xd38caa[_0x1c3ee1(0xd6)],_0xd38caa,_0x50ad4b,_0xec0829);}catch(_0x12e90c){console[_0x1c3ee1(0x13a)]('\x0a\x20\x20Failed\x20to\x20create\x20cloud\x20profile\x20\x22'+_0x2e344e+'\x22:\x20'+(_0x50ba5d['MrTCX'](_0x12e90c,Error)?_0x12e90c['message']:String(_0x12e90c))),process['exit'](0x1);}!_0x1eb2b0&&process['exit'](0x1),await markActive(_0x2e344e);}
@@ -1 +1 @@
1
- (function(_0x5de4e0,_0x209204){var _0x51aa23=_0x16ff,_0x3179ee=_0x5de4e0();while(!![]){try{var _0x2bc47c=parseInt(_0x51aa23(0x177))/0x1*(-parseInt(_0x51aa23(0x180))/0x2)+parseInt(_0x51aa23(0x17a))/0x3*(-parseInt(_0x51aa23(0x185))/0x4)+-parseInt(_0x51aa23(0x178))/0x5+-parseInt(_0x51aa23(0x17d))/0x6+-parseInt(_0x51aa23(0x176))/0x7+parseInt(_0x51aa23(0x181))/0x8*(-parseInt(_0x51aa23(0x179))/0x9)+parseInt(_0x51aa23(0x187))/0xa;if(_0x2bc47c===_0x209204)break;else _0x3179ee['push'](_0x3179ee['shift']());}catch(_0x343baa){_0x3179ee['push'](_0x3179ee['shift']());}}}(_0x31cc,0xb73ee));function _0x16ff(_0x56fc20,_0x13bc13){_0x56fc20=_0x56fc20-0x176;var _0x31cc6e=_0x31cc();var _0x16ffbf=_0x31cc6e[_0x56fc20];return _0x16ffbf;}function _0x31cc(){var _0x24e2ed=['ranger\x20profile\x20encrypt-auth\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x0a','LXRQt','9970632vlDUQc','721562XbIOui','3630890ObAcbW','4774239SHpDds','94470HSOmWX','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','EbNCZ','6987642sVKOGT','gadBr','\x20\x20https://docs.ranger.net/main/concepts/profiles','4nYfjdv','8sOsJYt','zNeEN','error','ZeUyN','172cRIlVo','exit','73934000vPNtXD'];_0x31cc=function(){return _0x24e2ed;};return _0x31cc();}export async function authEncrypt(_0x550dac){var _0x4788e5=_0x16ff,_0x184f6b={'qtZId':function(_0x59b389,_0x2d9704){return _0x59b389+_0x2d9704;},'gadBr':function(_0x2b432b,_0x2bf7bd){return _0x2b432b+_0x2bf7bd;},'LXRQt':function(_0x4f1665,_0x29079a){return _0x4f1665+_0x29079a;},'HrYDr':_0x4788e5(0x188),'zNeEN':'session\x20state\x20for\x20you,\x20so\x20encrypted\x20on-disk\x20auth\x20is\x20unnecessary.\x0a','rrqAP':'To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','ZeUyN':'For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','EbNCZ':_0x4788e5(0x17f)};console[_0x4788e5(0x183)](_0x184f6b['qtZId'](_0x184f6b[_0x4788e5(0x17e)](_0x184f6b[_0x4788e5(0x17e)](_0x184f6b[_0x4788e5(0x189)](_0x184f6b['HrYDr'],_0x184f6b[_0x4788e5(0x182)]),'\x0a'),_0x184f6b['rrqAP'])+_0x4788e5(0x17b)+'\x0a',_0x184f6b[_0x4788e5(0x184)])+_0x184f6b[_0x4788e5(0x17c)]),process[_0x4788e5(0x186)](0x1);}
1
+ function _0x4a55(_0x3b2e67,_0x4645fd){_0x3b2e67=_0x3b2e67-0x1e6;var _0x3c886c=_0x3c88();var _0x4a5593=_0x3c886c[_0x3b2e67];return _0x4a5593;}(function(_0x4880fc,_0x4e60cc){var _0x58525e=_0x4a55,_0x4ba7cd=_0x4880fc();while(!![]){try{var _0x4ce424=-parseInt(_0x58525e(0x1ed))/0x1*(parseInt(_0x58525e(0x1ec))/0x2)+parseInt(_0x58525e(0x1eb))/0x3+-parseInt(_0x58525e(0x1e9))/0x4*(-parseInt(_0x58525e(0x1e8))/0x5)+parseInt(_0x58525e(0x1f1))/0x6*(parseInt(_0x58525e(0x1ee))/0x7)+-parseInt(_0x58525e(0x1f0))/0x8+-parseInt(_0x58525e(0x1ea))/0x9+-parseInt(_0x58525e(0x1f2))/0xa;if(_0x4ce424===_0x4e60cc)break;else _0x4ba7cd['push'](_0x4ba7cd['shift']());}catch(_0x3e50cc){_0x4ba7cd['push'](_0x4ba7cd['shift']());}}}(_0x3c88,0x517fc));function _0x3c88(){var _0x361382=['\x20\x20ranger\x20profile\x20add\x20<name>\x0a','2262016opbjjK','3802110dAlmiI','5969490hNORmh','LRBPh','error','yEFTp','To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','5KkoBjV','2262980VOYVpy','1167921TFdLMD','1424256NopEzf','661784hadXrg','1tgIifi','7vBKJTa'];_0x3c88=function(){return _0x361382;};return _0x3c88();}export async function authEncrypt(_0x221864){var _0x30c940=_0x4a55,_0x575c9f={'yEFTp':function(_0x30ab03,_0x12396e){return _0x30ab03+_0x12396e;},'LRBPh':function(_0x51504a,_0x18a1b3){return _0x51504a+_0x18a1b3;},'eUOAO':'ranger\x20profile\x20encrypt-auth\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x0a','fJpbd':'session\x20state\x20for\x20you,\x20so\x20encrypted\x20on-disk\x20auth\x20is\x20unnecessary.\x0a','EQGiC':_0x30c940(0x1ef),'yZyvW':'\x20\x20https://docs.ranger.net/main/concepts/profiles'};console[_0x30c940(0x1f4)](_0x575c9f['yEFTp'](_0x575c9f['LRBPh'](_0x575c9f[_0x30c940(0x1e6)](_0x575c9f[_0x30c940(0x1f3)](_0x575c9f['yEFTp'](_0x575c9f['eUOAO']+_0x575c9f['fJpbd'],'\x0a')+_0x30c940(0x1e7),_0x575c9f['EQGiC']),'\x0a'),'For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a'),_0x575c9f['yZyvW'])),process['exit'](0x1);}
@@ -1 +1 @@
1
- const _0x5982e1=_0x5d86;(function(_0x3ded28,_0x57ff62){const _0x5c2165=_0x5d86,_0x2690d9=_0x3ded28();while(!![]){try{const _0x43e929=parseInt(_0x5c2165(0x1ac))/0x1+-parseInt(_0x5c2165(0x1b9))/0x2+parseInt(_0x5c2165(0x190))/0x3*(parseInt(_0x5c2165(0x1b2))/0x4)+parseInt(_0x5c2165(0x185))/0x5*(parseInt(_0x5c2165(0x193))/0x6)+parseInt(_0x5c2165(0x189))/0x7*(-parseInt(_0x5c2165(0x18b))/0x8)+-parseInt(_0x5c2165(0x1b8))/0x9*(-parseInt(_0x5c2165(0x19f))/0xa)+-parseInt(_0x5c2165(0x19d))/0xb*(parseInt(_0x5c2165(0x196))/0xc);if(_0x43e929===_0x57ff62)break;else _0x2690d9['push'](_0x2690d9['shift']());}catch(_0x3590c9){_0x2690d9['push'](_0x2690d9['shift']());}}}(_0x23b5,0x71ab6));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';function _0x23b5(){const _0x497d79=['✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','IGlyx','GZyJE','178940xGEGJR','BJrGQ','\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','uPoFR','7jOpdYJ','✓\x20Removed\x20project\x20skill:\x20','1618416UgTlhY','parse','GupCK','Nothing\x20to\x20clean\x20up.\x0a','xXCPu','248871zlZSxU','log','stringify','18IaWrhr','cZyQf','win32','2664zVeqBd','HLiKe','PJwLl','isArray','project','mgmKG','✓\x20Removed\x20trailhead\x20marketplace','25003WDzHsx','ABhZg','8310vKrgFe','push','--scope','glKgv','EXxCK','yCMra','filter','✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','bkyYB','IbtYe','error','yiojr','plugin','868920SLlhmn','rwNvj','AKtNn','remove','opencode.json','claude','40idRlpi','ranger','replace','bug-bash','e2e-test-recommender','\x0a✅\x20Cleanup\x20complete!\x0a','1692VjXwfX','1579168GqFiXn','ranger@trailhead','feature-tracker','✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','platform'];_0x23b5=function(){return _0x497d79;};return _0x23b5();}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=[_0x5982e1(0x1b3),_0x5982e1(0x17f),_0x5982e1(0x1b5),_0x5982e1(0x1b6)],opencodePluginName='@ranger-testing/opencode-plugin';function parseJsonc(_0x28bc2b){const _0x533d57=_0x5982e1,_0x3c0c64=_0x28bc2b['replace'](/\/\*[\s\S]*?\*\//g,''),_0x1c8add=_0x3c0c64['replace'](/^\s*\/\/.*$/gm,''),_0x160135=_0x1c8add[_0x533d57(0x1b4)](/,\s*([}\]])/g,'$1');return JSON[_0x533d57(0x18c)](_0x160135);}async function removeOpencodePluginConfig(_0x3b2196){const _0x1626cd=_0x5982e1,_0x206c87={'ytLSb':'string','BJrGQ':function(_0x2cfd3b,_0x2df40c){return _0x2cfd3b(_0x2df40c);},'GZyJE':function(_0x42ded5,_0x843fa8){return _0x42ded5===_0x843fa8;},'tqTwf':function(_0xf75096,_0x5d12de){return _0xf75096+_0x5d12de;}};if(!existsSync(_0x3b2196))return![];let _0x8ebaa4;try{const _0xcddc5a=await readFile(_0x3b2196,'utf-8');_0x8ebaa4=_0x206c87[_0x1626cd(0x186)](parseJsonc,_0xcddc5a);}catch{return![];}const _0x4d4467=Array[_0x1626cd(0x199)](_0x8ebaa4[_0x1626cd(0x1ab)])?_0x8ebaa4['plugin']:[];if(_0x4d4467['length']===0x0)return![];const _0x493925=_0x4d4467[_0x1626cd(0x1a5)](_0x5daf71=>{if(typeof _0x5daf71!==_0x206c87['ytLSb'])return!![];return _0x5daf71!==opencodePluginName;});if(_0x493925['length']===_0x4d4467['length'])return![];return _0x206c87[_0x1626cd(0x184)](_0x493925['length'],0x0)?delete _0x8ebaa4[_0x1626cd(0x1ab)]:_0x8ebaa4[_0x1626cd(0x1ab)]=_0x493925,await writeFile(_0x3b2196,_0x206c87['tqTwf'](JSON[_0x1626cd(0x192)](_0x8ebaa4,null,0x2),'\x0a')),!![];}function _0x5d86(_0x450acb,_0x52b8be){_0x450acb=_0x450acb-0x17e;const _0x23b594=_0x23b5();let _0x5d86cd=_0x23b594[_0x450acb];return _0x5d86cd;}async function uninstallClaudePlugin(_0x35ec2f){const _0x388a42=_0x5982e1,_0x196236={'yCMra':function(_0x486af0,_0x2d8fbf){return _0x486af0===_0x2d8fbf;},'EtyVL':_0x388a42(0x1ab),'rwNvj':'uninstall','aDNyX':_0x388a42(0x1a1),'yiojr':function(_0x59f9db,_0x13e046,_0x5c64f4,_0x288b1a){return _0x59f9db(_0x13e046,_0x5c64f4,_0x288b1a);},'fFUtM':'claude','flqPg':'ignore','glKgv':function(_0xed8aa9){return _0xed8aa9();},'aEOwZ':function(_0x113b48,_0xf705b){return _0x113b48===_0xf705b;},'ABhZg':_0x388a42(0x195),'AKtNn':'close'};return new Promise(_0x9afa0a=>{const _0x428fce=_0x388a42,_0x561ccc={'HLiKe':function(_0x4a169e,_0x33a8c6){const _0x1c11f7=_0x5d86;return _0x196236[_0x1c11f7(0x1a4)](_0x4a169e,_0x33a8c6);}},_0x463d71=[_0x196236['EtyVL'],_0x196236[_0x428fce(0x1ad)],_0x428fce(0x17e)];_0x35ec2f&&_0x463d71[_0x428fce(0x1a0)](_0x196236['aDNyX'],_0x35ec2f);const _0xc0c9c0=_0x196236[_0x428fce(0x1aa)](spawn,_0x196236['fFUtM'],_0x463d71,{'stdio':[_0x196236['flqPg'],'ignore','ignore'],'cwd':_0x35ec2f?_0x196236[_0x428fce(0x1a2)](getProjectRoot):undefined,'shell':_0x196236['aEOwZ'](process['platform'],_0x196236[_0x428fce(0x19e)])});_0xc0c9c0['on'](_0x196236[_0x428fce(0x1ae)],_0x4765ab=>{const _0x4e8b9a=_0x428fce;_0x9afa0a(_0x561ccc[_0x4e8b9a(0x197)](_0x4765ab,0x0));}),_0xc0c9c0['on'](_0x428fce(0x1a9),()=>{_0x9afa0a(![]);});});}async function removeMarketplace(){const _0x837fa={'mgmKG':'marketplace','ztphZ':'trailhead','Cmumy':function(_0x3b1523,_0x2a011f){return _0x3b1523===_0x2a011f;}};return new Promise(_0x2292d2=>{const _0x5e065=_0x5d86,_0x1f4892=spawn(_0x5e065(0x1b1),[_0x5e065(0x1ab),_0x837fa[_0x5e065(0x19b)],_0x5e065(0x1af),_0x837fa['ztphZ']],{'stdio':['ignore','ignore','ignore'],'shell':_0x837fa['Cmumy'](process[_0x5e065(0x181)],'win32')});_0x1f4892['on']('close',_0x1d9b20=>{_0x2292d2(_0x1d9b20===0x0);}),_0x1f4892['on'](_0x5e065(0x1a9),()=>{_0x2292d2(![]);});});}export async function clean(){const _0xcb46f8=_0x5982e1,_0x561533={'aJHoH':function(_0x2f181b,_0x588ef6){return _0x2f181b(_0x588ef6);},'dGJee':function(_0xe809e0){return _0xe809e0();},'bkyYB':function(_0x45b4bf,_0x2dea5c,_0x5abeb8){return _0x45b4bf(_0x2dea5c,_0x5abeb8);},'xXCPu':function(_0x20a12b){return _0x20a12b();},'bsXCB':function(_0x27c6c6,_0x16af26,_0x364f02){return _0x27c6c6(_0x16af26,_0x364f02);},'uPoFR':function(_0x3ab8a2,_0x278358){return _0x3ab8a2(_0x278358);},'Punek':function(_0x5d4f8b,_0x504184,_0x2cc227){return _0x5d4f8b(_0x504184,_0x2cc227);},'GupCK':_0xcb46f8(0x19a),'fDZBa':'✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','cZyQf':'user','hwqcU':_0xcb46f8(0x182),'IbtYe':function(_0x1c23b1){return _0x1c23b1();},'IGlyx':_0xcb46f8(0x180),'PJwLl':function(_0x48158c){return _0x48158c();},'EXxCK':_0xcb46f8(0x1b7)};console[_0xcb46f8(0x191)](_0xcb46f8(0x187));let _0x140324=![];try{await deleteAllCredentials(),console[_0xcb46f8(0x191)]('✓\x20Removed\x20stored\x20credentials'),_0x140324=!![];}catch{}const _0x55f0c1=getCacheFile();existsSync(_0x55f0c1)&&(await _0x561533['aJHoH'](rm,_0x55f0c1),_0x140324=!![]);const _0x451ba3=_0x561533['dGJee'](getRangerDir);existsSync(_0x451ba3)&&(await _0x561533[_0xcb46f8(0x1a7)](rm,_0x451ba3,{'recursive':!![]}),console['log']('✓\x20Removed\x20.ranger/\x20directory'),_0x140324=!![]);const _0x8fee98=getProjectSkillsDir();for(const _0x16e76b of skillsToRemove){const _0x17114b=join(_0x8fee98,_0x16e76b);_0x561533['aJHoH'](existsSync,_0x17114b)&&(await rm(_0x17114b,{'recursive':!![]}),console[_0xcb46f8(0x191)](_0xcb46f8(0x18a)+_0x16e76b),_0x140324=!![]);}const _0x2898ec=_0x561533[_0xcb46f8(0x18f)](getUserSkillsDir);for(const _0x2158d3 of skillsToRemove){const _0x1d5291=join(_0x2898ec,_0x2158d3);existsSync(_0x1d5291)&&(await rm(_0x1d5291,{'recursive':!![]}),console[_0xcb46f8(0x191)]('✓\x20Removed\x20user\x20skill:\x20'+_0x2158d3),_0x140324=!![]);}const _0x4a3c4e=getOpencodeSkillsDir(_0xcb46f8(0x19a));for(const _0x51374a of skillsToRemove){const _0x5c72a3=_0x561533['bsXCB'](join,_0x4a3c4e,_0x51374a);existsSync(_0x5c72a3)&&(await rm(_0x5c72a3,{'recursive':!![]}),console[_0xcb46f8(0x191)]('✓\x20Removed\x20OpenCode\x20project\x20skill:\x20'+_0x51374a),_0x140324=!![]);}const _0x45d02f=_0x561533[_0xcb46f8(0x188)](getOpencodeSkillsDir,'user');for(const _0x57a6eb of skillsToRemove){const _0x4a0161=_0x561533['Punek'](join,_0x45d02f,_0x57a6eb);existsSync(_0x4a0161)&&(await rm(_0x4a0161,{'recursive':!![]}),console[_0xcb46f8(0x191)]('✓\x20Removed\x20OpenCode\x20user\x20skill:\x20'+_0x57a6eb),_0x140324=!![]);}const _0x28a343=join(_0x561533[_0xcb46f8(0x188)](getOpencodeConfigDir,_0x561533[_0xcb46f8(0x18d)]),_0xcb46f8(0x1b0));await removeOpencodePluginConfig(_0x28a343)&&(console['log'](_0x561533['fDZBa']),_0x140324=!![]);const _0x4034c4=join(getOpencodeConfigDir(_0x561533[_0xcb46f8(0x194)]),_0xcb46f8(0x1b0));await removeOpencodePluginConfig(_0x4034c4)&&(console[_0xcb46f8(0x191)](_0x561533['hwqcU']),_0x140324=!![]);const _0xb6d9fa=await _0x561533[_0xcb46f8(0x1a8)](uninstallClaudePlugin);_0xb6d9fa&&(console[_0xcb46f8(0x191)](_0xcb46f8(0x1a6)),_0x140324=!![]);const _0x530a72=await uninstallClaudePlugin('project');_0x530a72&&(console['log'](_0x561533[_0xcb46f8(0x183)]),_0x140324=!![]);const _0x38998a=await _0x561533[_0xcb46f8(0x198)](removeMarketplace);_0x38998a&&(console['log'](_0xcb46f8(0x19c)),_0x140324=!![]),_0x140324?console['log'](_0x561533[_0xcb46f8(0x1a3)]):console['log'](_0xcb46f8(0x18e));}
1
+ const _0x155446=_0x2fdf;function _0x2fdf(_0x5ae52e,_0x1aff95){_0x5ae52e=_0x5ae52e-0x171;const _0x3485cb=_0x3485();let _0x2fdf6c=_0x3485cb[_0x5ae52e];return _0x2fdf6c;}(function(_0x436dfb,_0xc67f46){const _0x49c3f2=_0x2fdf,_0x2b2c1b=_0x436dfb();while(!![]){try{const _0x46400b=parseInt(_0x49c3f2(0x182))/0x1*(parseInt(_0x49c3f2(0x194))/0x2)+parseInt(_0x49c3f2(0x179))/0x3*(parseInt(_0x49c3f2(0x17d))/0x4)+-parseInt(_0x49c3f2(0x1a1))/0x5*(-parseInt(_0x49c3f2(0x18c))/0x6)+-parseInt(_0x49c3f2(0x1a9))/0x7+-parseInt(_0x49c3f2(0x1a8))/0x8+parseInt(_0x49c3f2(0x18e))/0x9+parseInt(_0x49c3f2(0x171))/0xa*(-parseInt(_0x49c3f2(0x1a4))/0xb);if(_0x46400b===_0xc67f46)break;else _0x2b2c1b['push'](_0x2b2c1b['shift']());}catch(_0x215783){_0x2b2c1b['push'](_0x2b2c1b['shift']());}}}(_0x3485,0xc7e34));function _0x3485(){const _0x28c88f=['e2e-test-recommender','log','vJWpL','string','replace','project','uninstall','nHDej','plugin','✓\x20Removed\x20OpenCode\x20project\x20skill:\x20','dpQAx','5GzPJYh','close','cVUHn','49478PlHJVT','zYysS','AgEOA','ignore','4062600GfIPbD','5899600LiWHmX','✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','✓\x20Removed\x20OpenCode\x20user\x20skill:\x20','claude','✓\x20Removed\x20stored\x20credentials','utf-8','4790HZRsXn','Nothing\x20to\x20clean\x20up.\x0a','uvrxW','feature-tracker','GVuSa','✓\x20Removed\x20user\x20skill:\x20','\x0a✅\x20Cleanup\x20complete!\x0a','length','4169499xGHVBN','jmwwL','trailhead','platform','4WZeKJa','HpQvq','UMTbd','parse','✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','37657XRzhiX','BTLVi','cDrCJ','isArray','pXFBH','hWLgT','jOLms','--scope','win32','error','2018622pkivWB','rYHhL','14228082AuJToF','push','filter','✓\x20Removed\x20.ranger/\x20directory','\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','nRdBD','54JNSPGc','CfkdR'];_0x3485=function(){return _0x28c88f;};return _0x3485();}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',_0x155446(0x174),'bug-bash',_0x155446(0x196)],opencodePluginName='@ranger-testing/opencode-plugin';function parseJsonc(_0x5880c2){const _0x4fbb5d=_0x155446,_0x1d648f=_0x5880c2['replace'](/\/\*[\s\S]*?\*\//g,''),_0x5eb171=_0x1d648f[_0x4fbb5d(0x19a)](/^\s*\/\/.*$/gm,''),_0x112df8=_0x5eb171['replace'](/,\s*([}\]])/g,'$1');return JSON[_0x4fbb5d(0x180)](_0x112df8);}async function removeOpencodePluginConfig(_0x225583){const _0xf7934d=_0x155446,_0x19c535={'btPRb':_0xf7934d(0x199),'dpQAx':function(_0xba19fd,_0x180a60){return _0xba19fd!==_0x180a60;},'Mgunw':_0xf7934d(0x1ae),'udENT':function(_0x3b9e7a,_0x5b6686){return _0x3b9e7a(_0x5b6686);},'iMyby':function(_0x5076bd,_0x6e6167){return _0x5076bd===_0x6e6167;},'nRdBD':function(_0x1b9b1c,_0x507a2f){return _0x1b9b1c===_0x507a2f;},'lQaII':function(_0x3febb2,_0x493cdb,_0xce7780){return _0x3febb2(_0x493cdb,_0xce7780);}};if(!existsSync(_0x225583))return![];let _0x69581e;try{const _0xb88e6e=await readFile(_0x225583,_0x19c535['Mgunw']);_0x69581e=_0x19c535['udENT'](parseJsonc,_0xb88e6e);}catch{return![];}const _0x2faf70=Array[_0xf7934d(0x185)](_0x69581e[_0xf7934d(0x19e)])?_0x69581e[_0xf7934d(0x19e)]:[];if(_0x19c535['iMyby'](_0x2faf70[_0xf7934d(0x178)],0x0))return![];const _0x579a6c=_0x2faf70[_0xf7934d(0x190)](_0x388937=>{const _0x485e66=_0xf7934d;if(typeof _0x388937!==_0x19c535['btPRb'])return!![];return _0x19c535[_0x485e66(0x1a0)](_0x388937,opencodePluginName);});if(_0x579a6c['length']===_0x2faf70['length'])return![];return _0x19c535[_0xf7934d(0x193)](_0x579a6c['length'],0x0)?delete _0x69581e['plugin']:_0x69581e[_0xf7934d(0x19e)]=_0x579a6c,await _0x19c535['lQaII'](writeFile,_0x225583,JSON['stringify'](_0x69581e,null,0x2)+'\x0a'),!![];}async function uninstallClaudePlugin(_0x2f0e8c){const _0x5afb80=_0x155446,_0x328805={'qFcpD':_0x5afb80(0x19e),'ExQuY':_0x5afb80(0x19c),'yluKk':'ranger@trailhead','mJyLC':function(_0x5350f8,_0x5e2797,_0x118ea7,_0x2a2855){return _0x5350f8(_0x5e2797,_0x118ea7,_0x2a2855);},'CfkdR':'ignore','WjDJr':function(_0x57fbb7){return _0x57fbb7();},'uvrxW':function(_0xe6756a,_0x4b03b5){return _0xe6756a===_0x4b03b5;},'vJWpL':'win32'};return new Promise(_0x51660d=>{const _0x4ab475=_0x5afb80,_0x5c2371=[_0x328805['qFcpD'],_0x328805['ExQuY'],_0x328805['yluKk']];_0x2f0e8c&&_0x5c2371[_0x4ab475(0x18f)](_0x4ab475(0x189),_0x2f0e8c);const _0x20e1fc=_0x328805['mJyLC'](spawn,_0x4ab475(0x1ac),_0x5c2371,{'stdio':[_0x328805[_0x4ab475(0x195)],_0x328805[_0x4ab475(0x195)],_0x328805[_0x4ab475(0x195)]],'cwd':_0x2f0e8c?_0x328805['WjDJr'](getProjectRoot):undefined,'shell':_0x328805[_0x4ab475(0x173)](process['platform'],_0x328805[_0x4ab475(0x198)])});_0x20e1fc['on']('close',_0x1e0d15=>{_0x51660d(_0x1e0d15===0x0);}),_0x20e1fc['on'](_0x4ab475(0x18b),()=>{_0x51660d(![]);});});}async function removeMarketplace(){const _0x4be91d=_0x155446,_0x7b34f7={'aSubN':function(_0xbdbd20,_0x47ae68){return _0xbdbd20(_0x47ae68);},'YLxuQ':function(_0x3460e3,_0x372395){return _0x3460e3(_0x372395);},'BCztZ':_0x4be91d(0x1ac),'lzQyX':'plugin','AgEOA':_0x4be91d(0x17b),'jGbuY':'ignore','BTLVi':_0x4be91d(0x1a2),'yPEcB':_0x4be91d(0x18b)};return new Promise(_0x3365fe=>{const _0x2e9910=_0x4be91d,_0x3be210={'ArLYo':function(_0xa94514,_0x2edc14){return _0x7b34f7['YLxuQ'](_0xa94514,_0x2edc14);}},_0x54eed1=spawn(_0x7b34f7['BCztZ'],[_0x7b34f7['lzQyX'],'marketplace','remove',_0x7b34f7[_0x2e9910(0x1a6)]],{'stdio':['ignore',_0x7b34f7['jGbuY'],_0x2e9910(0x1a7)],'shell':process[_0x2e9910(0x17c)]===_0x2e9910(0x18a)});_0x54eed1['on'](_0x7b34f7[_0x2e9910(0x183)],_0x39a924=>{_0x7b34f7['aSubN'](_0x3365fe,_0x39a924===0x0);}),_0x54eed1['on'](_0x7b34f7['yPEcB'],()=>{_0x3be210['ArLYo'](_0x3365fe,![]);});});}export async function clean(){const _0x241f97=_0x155446,_0x172861={'GVuSa':_0x241f97(0x192),'PruGh':function(_0x1ccd47){return _0x1ccd47();},'UMTbd':function(_0x1a4549,_0xe8335c){return _0x1a4549(_0xe8335c);},'KizHQ':function(_0x90fa67,_0xc6c91,_0x174a23){return _0x90fa67(_0xc6c91,_0x174a23);},'nHDej':function(_0x427ff1){return _0x427ff1();},'cVUHn':function(_0x460a4d,_0x3c7f82,_0x474d5d){return _0x460a4d(_0x3c7f82,_0x474d5d);},'rYHhL':'project','awkpU':'user','pXFBH':function(_0x59c441,_0x460cc2,_0x8fb82d){return _0x59c441(_0x460cc2,_0x8fb82d);},'zYysS':function(_0x11dedc,_0x3977b6,_0x150d6a){return _0x11dedc(_0x3977b6,_0x150d6a);},'hWLgT':'opencode.json','TLQIY':function(_0x42a046,_0x442d22){return _0x42a046(_0x442d22);},'jmwwL':_0x241f97(0x1aa),'ZxPAO':'✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','jOLms':'✓\x20Removed\x20trailhead\x20marketplace','HpQvq':_0x241f97(0x177),'cDrCJ':_0x241f97(0x172)};console[_0x241f97(0x197)](_0x172861[_0x241f97(0x175)]);let _0x311c24=![];try{await deleteAllCredentials(),console['log'](_0x241f97(0x1ad)),_0x311c24=!![];}catch{}const _0x1dcc8e=getCacheFile();existsSync(_0x1dcc8e)&&(await rm(_0x1dcc8e),_0x311c24=!![]);const _0x193b0f=_0x172861['PruGh'](getRangerDir);_0x172861[_0x241f97(0x17f)](existsSync,_0x193b0f)&&(await _0x172861['KizHQ'](rm,_0x193b0f,{'recursive':!![]}),console[_0x241f97(0x197)](_0x241f97(0x191)),_0x311c24=!![]);const _0x1a302d=_0x172861['nHDej'](getProjectSkillsDir);for(const _0xeef045 of skillsToRemove){const _0x46aa7c=join(_0x1a302d,_0xeef045);_0x172861[_0x241f97(0x17f)](existsSync,_0x46aa7c)&&(await _0x172861[_0x241f97(0x1a3)](rm,_0x46aa7c,{'recursive':!![]}),console['log']('✓\x20Removed\x20project\x20skill:\x20'+_0xeef045),_0x311c24=!![]);}const _0x174c88=_0x172861['nHDej'](getUserSkillsDir);for(const _0x137960 of skillsToRemove){const _0x12f6d6=join(_0x174c88,_0x137960);existsSync(_0x12f6d6)&&(await rm(_0x12f6d6,{'recursive':!![]}),console[_0x241f97(0x197)](_0x241f97(0x176)+_0x137960),_0x311c24=!![]);}const _0x5bb64c=getOpencodeSkillsDir(_0x172861['rYHhL']);for(const _0xb6c453 of skillsToRemove){const _0x4c5473=join(_0x5bb64c,_0xb6c453);_0x172861[_0x241f97(0x17f)](existsSync,_0x4c5473)&&(await rm(_0x4c5473,{'recursive':!![]}),console['log'](_0x241f97(0x19f)+_0xb6c453),_0x311c24=!![]);}const _0x2ee99a=_0x172861['UMTbd'](getOpencodeSkillsDir,_0x172861['awkpU']);for(const _0x98a00 of skillsToRemove){const _0x499850=_0x172861[_0x241f97(0x186)](join,_0x2ee99a,_0x98a00);existsSync(_0x499850)&&(await rm(_0x499850,{'recursive':!![]}),console['log'](_0x241f97(0x1ab)+_0x98a00),_0x311c24=!![]);}const _0x1ceb68=_0x172861[_0x241f97(0x1a5)](join,getOpencodeConfigDir(_0x172861[_0x241f97(0x18d)]),_0x172861[_0x241f97(0x187)]);await removeOpencodePluginConfig(_0x1ceb68)&&(console['log']('✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)'),_0x311c24=!![]);const _0x4b6952=_0x172861[_0x241f97(0x186)](join,getOpencodeConfigDir(_0x172861['awkpU']),'opencode.json');await _0x172861['TLQIY'](removeOpencodePluginConfig,_0x4b6952)&&(console[_0x241f97(0x197)](_0x241f97(0x181)),_0x311c24=!![]);const _0x517ce8=await uninstallClaudePlugin();_0x517ce8&&(console[_0x241f97(0x197)](_0x172861[_0x241f97(0x17a)]),_0x311c24=!![]);const _0x2d3e1a=await uninstallClaudePlugin(_0x241f97(0x19b));_0x2d3e1a&&(console[_0x241f97(0x197)](_0x172861['ZxPAO']),_0x311c24=!![]);const _0x54f08f=await _0x172861[_0x241f97(0x19d)](removeMarketplace);_0x54f08f&&(console[_0x241f97(0x197)](_0x172861[_0x241f97(0x188)]),_0x311c24=!![]),_0x311c24?console[_0x241f97(0x197)](_0x172861[_0x241f97(0x17e)]):console['log'](_0x172861[_0x241f97(0x184)]);}
@@ -1 +1 @@
1
- (function(_0x400840,_0x15d00f){const _0x596b7e=_0x52c9,_0x3c8fba=_0x400840();while(!![]){try{const _0xb3f85b=parseInt(_0x596b7e(0x18e))/0x1*(-parseInt(_0x596b7e(0x173))/0x2)+-parseInt(_0x596b7e(0x15d))/0x3+-parseInt(_0x596b7e(0x15f))/0x4*(parseInt(_0x596b7e(0x169))/0x5)+-parseInt(_0x596b7e(0x171))/0x6*(parseInt(_0x596b7e(0x186))/0x7)+parseInt(_0x596b7e(0x184))/0x8*(-parseInt(_0x596b7e(0x181))/0x9)+parseInt(_0x596b7e(0x180))/0xa+parseInt(_0x596b7e(0x16f))/0xb;if(_0xb3f85b===_0x15d00f)break;else _0x3c8fba['push'](_0x3c8fba['shift']());}catch(_0x3a5db2){_0x3c8fba['push'](_0x3c8fba['shift']());}}}(_0x476b,0xeeab4));import{existsSync}from'fs';import{loadSettings,getNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';import{fetchCloudProfile}from'./utils/cloudProfile.js';function _0x476b(){const _0x5acb1e=['endsWith','Key\x20\x22','AGsXh','XTety','length','49430VYtqeC','675lPNlbo','log','\x20for\x20\x22','73456EnocTh','ybdmX','2158135vvtHdi','tDtnv','false','stringify','true','kind','Removed\x20','test','931943WCibQA','YfDFP','IaJIH','949710tzMUTI','tGDUo','35384YFrqHq','alsoExistsElsewhere','local','cloud','No\x20configuration\x20set\x20for\x20\x22','object','startsWith','trim',':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22','\x20=\x20','885UqVIcd','isSafeInteger','xjbKo','Invalid\x20value\x20for\x20','\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20','sCHbt','59405115mljKbY','XLgdc','18aSJTtw','WKlAu','2hebZor','Godrs','\x22\x20and\x20cannot\x20be\x20unset;\x20the\x20legacy\x20tree\x20is\x20read-only\x20under\x20cloud\x20profiles.','\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20','(not\x20set)','RLUOH','settings','keys'];_0x476b=function(){return _0x5acb1e;};return _0x476b();}import{mergeCloudProfileSettings,readProfileOverrides,resetProfileOverrides,setProfileOverride,unsetProfileOverride}from'./utils/projectsConfig.js';const BOOLEAN_KEYS=['headless','allowInsecureLocalhost'];function parseLocalValue(_0x4822f9,_0x43a41b){const _0x19f986=_0x52c9,_0x47b42f={'XTety':function(_0x176d92,_0x53e1f){return _0x176d92===_0x53e1f;}};if(BOOLEAN_KEYS['includes'](_0x4822f9)){if(_0x43a41b===_0x19f986(0x18a))return!![];if(_0x47b42f[_0x19f986(0x17e)](_0x43a41b,_0x19f986(0x188)))return![];throw new Error(_0x19f986(0x16c)+_0x4822f9+_0x19f986(0x167));}return _0x43a41b;}function parseOverrideValue(_0x3f7953){const _0x30681b=_0x52c9,_0x7a5f90={'VwwHv':_0x30681b(0x18a),'Rchkm':function(_0x3526bd,_0x5f3820){return _0x3526bd===_0x5f3820;},'IaJIH':'undefined','OlkEs':function(_0x28b782,_0x177bb0){return _0x28b782(_0x177bb0);}};if(_0x3f7953===_0x7a5f90['VwwHv'])return!![];if(_0x3f7953===_0x30681b(0x188))return![];if(_0x3f7953==='null')return null;if(_0x7a5f90['Rchkm'](_0x3f7953,_0x7a5f90[_0x30681b(0x15c)]))return undefined;if(/^-?\d+$/[_0x30681b(0x18d)](_0x3f7953)){const _0x38f962=_0x7a5f90['OlkEs'](Number,_0x3f7953);if(Number[_0x30681b(0x16a)](_0x38f962))return _0x38f962;}if(/^-?\d+\.\d+$/[_0x30681b(0x18d)](_0x3f7953)){const _0xdb094b=Number(_0x3f7953);if(!Number['isNaN'](_0xdb094b))return _0xdb094b;}const _0x3fa14d=_0x3f7953[_0x30681b(0x166)]();if(_0x3fa14d['startsWith']('{')&&_0x3fa14d[_0x30681b(0x17b)]('}')||_0x3fa14d[_0x30681b(0x165)]('[')&&_0x3fa14d[_0x30681b(0x17b)](']'))try{return JSON['parse'](_0x3fa14d);}catch{}return _0x3f7953;}async function resolveProfileTarget(_0x5c2322){const _0x3776a9=_0x52c9,_0x232dda={'ZAgch':function(_0x2346d3,_0x3f2e44){return _0x2346d3(_0x3f2e44);},'DUHez':_0x3776a9(0x161)},_0x573119=existsSync(_0x232dda['ZAgch'](getEnvDir,_0x5c2322));let _0x5d3e04=![];try{const _0x323652=await fetchCloudProfile(_0x5c2322);_0x5d3e04=Boolean(_0x323652);}catch{}if(_0x5d3e04)return{'kind':'cloud','alsoExistsElsewhere':_0x573119};if(_0x573119)return{'kind':_0x232dda['DUHez'],'alsoExistsElsewhere':![]};throw new Error('Profile\x20\x22'+_0x5c2322+_0x3776a9(0x16d)+_0x5c2322);}function printDualExistsHint(_0x641bb5){const _0x361145=_0x52c9;console[_0x361145(0x182)]('\x20\x20Note:\x20\x22'+_0x641bb5+'\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.');}function _0x52c9(_0x4b2d09,_0x358f5a){_0x4b2d09=_0x4b2d09-0x15b;const _0x476b1f=_0x476b();let _0x52c9a5=_0x476b1f[_0x4b2d09];return _0x52c9a5;}function getProjectPath(){return process['cwd']();}async function loadEffectiveCloudSettings(_0x16e14f){const _0x5eba93=_0x52c9,_0x4e39d8={'RLUOH':function(_0x4066a9,_0x19f724){return _0x4066a9??_0x19f724;}},_0x160e55=await fetchCloudProfile(_0x16e14f),_0x3617a7=readProfileOverrides(getProjectPath(),_0x16e14f);return mergeCloudProfileSettings(_0x160e55?.[_0x5eba93(0x179)]??{},_0x4e39d8[_0x5eba93(0x178)](_0x3617a7,undefined));}export async function configSet(_0x127fd5,_0x5e7147,_0x4eff8d){const _0x356159=_0x52c9,_0xcf3b1c={'bZwMm':'cloud','wkqgE':function(_0x3dbf7a,_0x205048){return _0x3dbf7a(_0x205048);},'sCHbt':function(_0x4f0d81,_0x5107e0){return _0x4f0d81(_0x5107e0);},'tDtnv':function(_0x479dd1,_0x40de95,_0x375de2,_0x5ba577,_0x187efa){return _0x479dd1(_0x40de95,_0x375de2,_0x5ba577,_0x187efa);},'Iozkb':function(_0x2a398d){return _0x2a398d();}},_0x38d123=await resolveProfileTarget(_0x127fd5);if(_0x38d123[_0x356159(0x18b)]===_0xcf3b1c['bZwMm']){if(_0x38d123['alsoExistsElsewhere'])_0xcf3b1c['wkqgE'](printDualExistsHint,_0x127fd5);const _0x2ef1ba=_0xcf3b1c[_0x356159(0x16e)](parseOverrideValue,_0x4eff8d);_0xcf3b1c[_0x356159(0x187)](setProfileOverride,getProjectPath(),_0x127fd5,_0x5e7147,_0x2ef1ba),console['log']('Set\x20'+_0x5e7147+'\x20=\x20'+JSON[_0x356159(0x189)](_0x2ef1ba)+'\x20for\x20\x22'+_0x127fd5+'\x22');return;}const _0x2a1674=parseLocalValue(_0x5e7147,_0x4eff8d);setProfileOverride(_0xcf3b1c['Iozkb'](getProjectPath),_0x127fd5,_0x5e7147,_0x2a1674),console[_0x356159(0x182)]('Set\x20'+_0x5e7147+_0x356159(0x168)+_0x2a1674+_0x356159(0x183)+_0x127fd5+'\x22');}export async function configGet(_0x5f0f6b,_0x2134f0){const _0x52d7c6=_0x52c9,_0xc04a54={'TYXQQ':function(_0x53b500,_0x29bf00){return _0x53b500===_0x29bf00;},'hcANZ':'cloud','MBXNj':function(_0x421f76,_0x5b2719){return _0x421f76(_0x5b2719);},'Godrs':function(_0x5ea786,_0x55d2c8,_0x4bda94){return _0x5ea786(_0x55d2c8,_0x4bda94);},'kfQOn':function(_0x25a4f4,_0x217bb3){return _0x25a4f4===_0x217bb3;},'YfDFP':function(_0x295245,_0x340ae6){return _0x295245(_0x340ae6);},'AGsXh':_0x52d7c6(0x164)},_0x25e958=await resolveProfileTarget(_0x5f0f6b);if(_0xc04a54['TYXQQ'](_0x25e958['kind'],_0xc04a54['hcANZ'])){const _0x3aa047=await _0xc04a54['MBXNj'](loadEffectiveCloudSettings,_0x5f0f6b),_0x169789=_0xc04a54[_0x52d7c6(0x174)](getNestedValue,_0x3aa047,_0x2134f0);if(_0x169789===undefined)console['log'](_0x52d7c6(0x177));else _0xc04a54['kfQOn'](typeof _0x169789,_0x52d7c6(0x164))?console[_0x52d7c6(0x182)](JSON[_0x52d7c6(0x189)](_0x169789,null,0x2)):console[_0x52d7c6(0x182)](_0x169789);return;}const _0x53c9e2=await _0xc04a54[_0x52d7c6(0x15b)](loadSettings,_0x5f0f6b),_0x2cf399=_0xc04a54['Godrs'](getNestedValue,_0x53c9e2,_0x2134f0);if(_0xc04a54['kfQOn'](_0x2cf399,undefined))console[_0x52d7c6(0x182)](_0x52d7c6(0x177));else typeof _0x2cf399===_0xc04a54[_0x52d7c6(0x17d)]?console['log'](JSON[_0x52d7c6(0x189)](_0x2cf399,null,0x2)):console['log'](_0x2cf399);}export async function configList(_0x3f823b){const _0x4e9dc6=_0x52c9,_0x265fa2={'WKlAu':'cloud','XLgdc':function(_0x16076c,_0xefdbbb){return _0x16076c(_0xefdbbb);},'ZbAPo':function(_0x5d4139,_0x562e8a){return _0x5d4139===_0x562e8a;}},_0x283cbf=await resolveProfileTarget(_0x3f823b);if(_0x283cbf['kind']===_0x265fa2[_0x4e9dc6(0x172)]){const _0x35c655=await _0x265fa2['XLgdc'](loadEffectiveCloudSettings,_0x3f823b);if(!_0x35c655||_0x265fa2['ZbAPo'](Object[_0x4e9dc6(0x17a)](_0x35c655)[_0x4e9dc6(0x17f)],0x0)){console[_0x4e9dc6(0x182)](_0x4e9dc6(0x163)+_0x3f823b+'\x22');return;}console[_0x4e9dc6(0x182)](JSON[_0x4e9dc6(0x189)](_0x35c655,null,0x2));return;}const _0x265583=_0x265fa2[_0x4e9dc6(0x170)](getSettingsPath,_0x3f823b);if(!_0x265fa2['XLgdc'](existsSync,_0x265583)){console[_0x4e9dc6(0x182)]('No\x20configuration\x20set\x20for\x20\x22'+_0x3f823b+'\x22');return;}const _0x5385bb=await loadSettings(_0x3f823b),_0x29ef3c=_0x265fa2[_0x4e9dc6(0x170)](formatSettings,_0x5385bb);!_0x29ef3c?console[_0x4e9dc6(0x182)]('No\x20configuration\x20set\x20for\x20\x22'+_0x3f823b+'\x22'):console['log'](_0x29ef3c);}export async function configUnset(_0x4f5744,_0x84d1f){const _0x5f011c=_0x52c9,_0x1681d9={'ybdmX':function(_0x43c743){return _0x43c743();},'JmDGJ':function(_0x1dc6e2){return _0x1dc6e2();}},_0x17037e=await resolveProfileTarget(_0x4f5744);if(_0x17037e[_0x5f011c(0x18b)]===_0x5f011c(0x162)){if(_0x17037e[_0x5f011c(0x160)])printDualExistsHint(_0x4f5744);const _0x4e47f0=unsetProfileOverride(_0x1681d9[_0x5f011c(0x185)](getProjectPath),_0x4f5744,_0x84d1f);_0x4e47f0?console[_0x5f011c(0x182)](_0x5f011c(0x18c)+_0x84d1f+_0x5f011c(0x183)+_0x4f5744+'\x22'):console[_0x5f011c(0x182)](_0x5f011c(0x17c)+_0x84d1f+'\x22\x20not\x20found');return;}const _0x1a478b=unsetProfileOverride(_0x1681d9['JmDGJ'](getProjectPath),_0x4f5744,_0x84d1f);if(_0x1a478b){console[_0x5f011c(0x182)]('Removed\x20'+_0x84d1f);return;}const _0x387e2d=await loadSettings(_0x4f5744),_0x4046c4=deleteNestedValue(_0x387e2d,_0x84d1f);_0x4046c4?console['log'](_0x5f011c(0x17c)+_0x84d1f+'\x22\x20lives\x20in\x20the\x20legacy\x20settings\x20file\x20for\x20\x22'+_0x4f5744+_0x5f011c(0x175)):console['log'](_0x5f011c(0x17c)+_0x84d1f+'\x22\x20not\x20found');}export async function configReset(_0x54fa65){const _0x1a78d0=_0x52c9,_0x5775f5={'xjbKo':function(_0xbcc16a,_0x105953){return _0xbcc16a(_0x105953);},'tGDUo':function(_0x4f8bf5,_0x4d9dc5){return _0x4f8bf5===_0x4d9dc5;},'KFuIP':_0x1a78d0(0x162),'uVnYr':function(_0x3dd83a){return _0x3dd83a();}},_0x38951b=await _0x5775f5[_0x1a78d0(0x16b)](resolveProfileTarget,_0x54fa65);if(_0x5775f5[_0x1a78d0(0x15e)](_0x38951b['kind'],_0x5775f5['KFuIP'])){resetProfileOverrides(_0x5775f5['uVnYr'](getProjectPath),_0x54fa65),console['log']('Cleared\x20local\x20overrides\x20for\x20\x22'+_0x54fa65+'\x22');return;}console['log']('\x22'+_0x54fa65+_0x1a78d0(0x176)+_0x54fa65+'\x20<key>\x22\x20to\x20remove\x20individual\x20values.');}
1
+ const _0x2ce97a=_0x3a7e;(function(_0xa4af19,_0x20811e){const _0x2c83e1=_0x3a7e,_0x353560=_0xa4af19();while(!![]){try{const _0x55f730=parseInt(_0x2c83e1(0x1f1))/0x1*(parseInt(_0x2c83e1(0x209))/0x2)+parseInt(_0x2c83e1(0x200))/0x3+-parseInt(_0x2c83e1(0x207))/0x4*(parseInt(_0x2c83e1(0x214))/0x5)+-parseInt(_0x2c83e1(0x1e1))/0x6+-parseInt(_0x2c83e1(0x203))/0x7+parseInt(_0x2c83e1(0x20e))/0x8+parseInt(_0x2c83e1(0x20b))/0x9*(parseInt(_0x2c83e1(0x1ff))/0xa);if(_0x55f730===_0x20811e)break;else _0x353560['push'](_0x353560['shift']());}catch(_0x377051){_0x353560['push'](_0x353560['shift']());}}}(_0x2d21,0x452d6));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';function _0x3a7e(_0x327c67,_0x3222d4){_0x327c67=_0x327c67-0x1de;const _0x2d2169=_0x2d21();let _0x3a7e17=_0x2d2169[_0x327c67];return _0x3a7e17;}const BOOLEAN_KEYS=['headless',_0x2ce97a(0x204)];function parseLocalValue(_0x56ed28,_0x2faf0c){const _0x4a5539=_0x2ce97a;if(BOOLEAN_KEYS[_0x4a5539(0x1ea)](_0x56ed28)){if(_0x2faf0c==='true')return!![];if(_0x2faf0c==='false')return![];throw new Error('Invalid\x20value\x20for\x20'+_0x56ed28+':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22');}return _0x2faf0c;}function parseOverrideValue(_0x363fdd){const _0x5b696d=_0x2ce97a,_0x46b21f={'llgQC':function(_0x2771bd,_0x2e9f94){return _0x2771bd===_0x2e9f94;},'aFxSQ':_0x5b696d(0x1e3),'haBcO':_0x5b696d(0x1e4),'OUlkH':_0x5b696d(0x1fd),'TabpT':_0x5b696d(0x211)};if(_0x46b21f['llgQC'](_0x363fdd,_0x46b21f[_0x5b696d(0x1df)]))return!![];if(_0x363fdd===_0x46b21f['haBcO'])return![];if(_0x46b21f['llgQC'](_0x363fdd,_0x46b21f['OUlkH']))return null;if(_0x363fdd===_0x46b21f[_0x5b696d(0x1fe)])return undefined;if(/^-?\d+$/['test'](_0x363fdd)){const _0x21f981=Number(_0x363fdd);if(Number[_0x5b696d(0x1e8)](_0x21f981))return _0x21f981;}if(/^-?\d+\.\d+$/['test'](_0x363fdd)){const _0x5e5490=Number(_0x363fdd);if(!Number['isNaN'](_0x5e5490))return _0x5e5490;}const _0x793647=_0x363fdd[_0x5b696d(0x1ed)]();if(_0x793647['startsWith']('{')&&_0x793647['endsWith']('}')||_0x793647['startsWith']('[')&&_0x793647['endsWith'](']'))try{return JSON['parse'](_0x793647);}catch{}return _0x363fdd;}function _0x2d21(){const _0x45ce1e=['\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.','1413444ZTBEsU','KiXWq','true','false','Gjwta','\x20\x20Note:\x20\x22','Profile\x20\x22','isSafeInteger','Key\x20\x22','includes','jyugg','azOPT','trim','No\x20configuration\x20set\x20for\x20\x22','QISRF','\x20for\x20\x22','173LbUpYI','Cleared\x20local\x20overrides\x20for\x20\x22','object','GCAWs','kind','aetmV','cwd','\x20=\x20','jhIDo','UNhPM','YeCbq','CgTXM','null','TabpT','290lKwyCj','1600494KkVPht','nozuW','Removed\x20','1047977TdqTkZ','allowInsecureLocalhost','keys','DiZrZ','4YtIYXA','cloud','592diBGcn','\x22\x20and\x20cannot\x20be\x20unset;\x20the\x20legacy\x20tree\x20is\x20read-only\x20under\x20cloud\x20profiles.','78381kYrkxh','\x20<key>\x22\x20to\x20remove\x20individual\x20values.','NlhdO','2113968OBCVWS','log','alsoExistsElsewhere','undefined','zDBrL','\x22\x20not\x20found','2164390sfhYKA','wsNkk','aFxSQ'];_0x2d21=function(){return _0x45ce1e;};return _0x2d21();}async function resolveProfileTarget(_0x57cd5e){const _0x4027d6=_0x2ce97a,_0x3df727={'wsNkk':function(_0x15dc8d,_0xff8776){return _0x15dc8d(_0xff8776);},'JmnWr':function(_0x3fe2c6,_0x3d81e0){return _0x3fe2c6(_0x3d81e0);},'jhIDo':_0x4027d6(0x208)},_0x40706b=_0x3df727[_0x4027d6(0x1de)](existsSync,_0x3df727['JmnWr'](getEnvDir,_0x57cd5e));let _0x31c138=![];try{const _0x5b0363=await _0x3df727[_0x4027d6(0x1de)](fetchCloudProfile,_0x57cd5e);_0x31c138=Boolean(_0x5b0363);}catch{}if(_0x31c138)return{'kind':_0x3df727[_0x4027d6(0x1f9)],'alsoExistsElsewhere':_0x40706b};if(_0x40706b)return{'kind':'local','alsoExistsElsewhere':![]};throw new Error(_0x4027d6(0x1e7)+_0x57cd5e+'\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x57cd5e);}function printDualExistsHint(_0x24d66b){const _0x4bd243=_0x2ce97a;console['log'](_0x4bd243(0x1e6)+_0x24d66b+_0x4bd243(0x1e0));}function getProjectPath(){const _0x262c6e=_0x2ce97a;return process[_0x262c6e(0x1f7)]();}async function loadEffectiveCloudSettings(_0x2b68c7){const _0x2b3069=_0x2ce97a,_0x2860d4={'nozuW':function(_0x172a2f,_0x2c3e69,_0x447f6b){return _0x172a2f(_0x2c3e69,_0x447f6b);},'DiZrZ':function(_0x29fd92){return _0x29fd92();},'CgTXM':function(_0x8fbfd1,_0x2bf2d0,_0x4804d8){return _0x8fbfd1(_0x2bf2d0,_0x4804d8);},'aetmV':function(_0xfaf3d2,_0x2450b2){return _0xfaf3d2??_0x2450b2;}},_0x52a20f=await fetchCloudProfile(_0x2b68c7),_0x13b47e=_0x2860d4[_0x2b3069(0x201)](readProfileOverrides,_0x2860d4[_0x2b3069(0x206)](getProjectPath),_0x2b68c7);return _0x2860d4[_0x2b3069(0x1fc)](mergeCloudProfileSettings,_0x52a20f?.['settings']??{},_0x2860d4[_0x2b3069(0x1f6)](_0x13b47e,undefined));}export async function configSet(_0x453000,_0x3725d1,_0x758a2){const _0x9dab42=_0x2ce97a,_0x4424c4={'UNhPM':function(_0x1171bb,_0x2c842c){return _0x1171bb(_0x2c842c);},'GCAWs':'cloud','KQGar':function(_0x1f5201){return _0x1f5201();}},_0x413b93=await _0x4424c4[_0x9dab42(0x1fa)](resolveProfileTarget,_0x453000);if(_0x413b93[_0x9dab42(0x1f5)]===_0x4424c4[_0x9dab42(0x1f4)]){if(_0x413b93['alsoExistsElsewhere'])printDualExistsHint(_0x453000);const _0x1c6d4b=parseOverrideValue(_0x758a2);setProfileOverride(_0x4424c4['KQGar'](getProjectPath),_0x453000,_0x3725d1,_0x1c6d4b),console['log']('Set\x20'+_0x3725d1+_0x9dab42(0x1f8)+JSON['stringify'](_0x1c6d4b)+_0x9dab42(0x1f0)+_0x453000+'\x22');return;}const _0x4f58b5=parseLocalValue(_0x3725d1,_0x758a2);setProfileOverride(getProjectPath(),_0x453000,_0x3725d1,_0x4f58b5),console['log']('Set\x20'+_0x3725d1+'\x20=\x20'+_0x4f58b5+'\x20for\x20\x22'+_0x453000+'\x22');}export async function configGet(_0x823942,_0x193986){const _0x23e638=_0x2ce97a,_0x41cbf7={'azOPT':function(_0x11c415,_0x4b84ea){return _0x11c415===_0x4b84ea;},'zDBrL':_0x23e638(0x208),'gHgXn':function(_0x9d78cf,_0x3a80a7,_0xe3b12){return _0x9d78cf(_0x3a80a7,_0xe3b12);},'QISRF':function(_0x2d1a57,_0x3140c0){return _0x2d1a57===_0x3140c0;},'KiXWq':function(_0x152b4c,_0x2bd031,_0x1bf521){return _0x152b4c(_0x2bd031,_0x1bf521);},'BSWMe':function(_0x507b44,_0x1b750d){return _0x507b44===_0x1b750d;},'jyugg':'object'},_0x49f58a=await resolveProfileTarget(_0x823942);if(_0x41cbf7[_0x23e638(0x1ec)](_0x49f58a[_0x23e638(0x1f5)],_0x41cbf7[_0x23e638(0x212)])){const _0x5575e4=await loadEffectiveCloudSettings(_0x823942),_0x40341c=_0x41cbf7['gHgXn'](getNestedValue,_0x5575e4,_0x193986);if(_0x41cbf7['azOPT'](_0x40341c,undefined))console['log']('(not\x20set)');else _0x41cbf7[_0x23e638(0x1ef)](typeof _0x40341c,_0x23e638(0x1f3))?console['log'](JSON['stringify'](_0x40341c,null,0x2)):console['log'](_0x40341c);return;}const _0xb12200=await loadSettings(_0x823942),_0x11395d=_0x41cbf7[_0x23e638(0x1e2)](getNestedValue,_0xb12200,_0x193986);if(_0x41cbf7['BSWMe'](_0x11395d,undefined))console[_0x23e638(0x20f)]('(not\x20set)');else typeof _0x11395d===_0x41cbf7[_0x23e638(0x1eb)]?console['log'](JSON['stringify'](_0x11395d,null,0x2)):console['log'](_0x11395d);}export async function configList(_0x4338c8){const _0x5e452a=_0x2ce97a,_0x505d88={'cwhRO':function(_0x1eabf4,_0x393a97){return _0x1eabf4===_0x393a97;},'NlhdO':function(_0x57ca81,_0x44166b){return _0x57ca81(_0x44166b);}},_0x5d81a6=await resolveProfileTarget(_0x4338c8);if(_0x505d88['cwhRO'](_0x5d81a6[_0x5e452a(0x1f5)],'cloud')){const _0x20573e=await loadEffectiveCloudSettings(_0x4338c8);if(!_0x20573e||Object[_0x5e452a(0x205)](_0x20573e)['length']===0x0){console[_0x5e452a(0x20f)]('No\x20configuration\x20set\x20for\x20\x22'+_0x4338c8+'\x22');return;}console[_0x5e452a(0x20f)](JSON['stringify'](_0x20573e,null,0x2));return;}const _0x438873=getSettingsPath(_0x4338c8);if(!_0x505d88[_0x5e452a(0x20d)](existsSync,_0x438873)){console[_0x5e452a(0x20f)](_0x5e452a(0x1ee)+_0x4338c8+'\x22');return;}const _0x395b44=await loadSettings(_0x4338c8),_0x446d7c=_0x505d88['NlhdO'](formatSettings,_0x395b44);!_0x446d7c?console[_0x5e452a(0x20f)]('No\x20configuration\x20set\x20for\x20\x22'+_0x4338c8+'\x22'):console['log'](_0x446d7c);}export async function configUnset(_0x59855f,_0x137d98){const _0x32813b=_0x2ce97a,_0x23d979={'UlUsE':function(_0x1c4f22,_0x4a6731){return _0x1c4f22(_0x4a6731);},'QGqcS':'cloud','wFuCy':function(_0x520c98,_0x266642,_0x52e84b,_0x85d63e){return _0x520c98(_0x266642,_0x52e84b,_0x85d63e);},'YeCbq':function(_0x327c40){return _0x327c40();},'gcvCB':function(_0x115e13,_0xcfc81f){return _0x115e13(_0xcfc81f);}},_0x2b4c84=await _0x23d979['UlUsE'](resolveProfileTarget,_0x59855f);if(_0x2b4c84[_0x32813b(0x1f5)]===_0x23d979['QGqcS']){if(_0x2b4c84[_0x32813b(0x210)])printDualExistsHint(_0x59855f);const _0x2df372=_0x23d979['wFuCy'](unsetProfileOverride,_0x23d979[_0x32813b(0x1fb)](getProjectPath),_0x59855f,_0x137d98);_0x2df372?console[_0x32813b(0x20f)](_0x32813b(0x202)+_0x137d98+_0x32813b(0x1f0)+_0x59855f+'\x22'):console['log']('Key\x20\x22'+_0x137d98+_0x32813b(0x213));return;}const _0x224813=unsetProfileOverride(getProjectPath(),_0x59855f,_0x137d98);if(_0x224813){console['log']('Removed\x20'+_0x137d98);return;}const _0xa04aba=await _0x23d979['gcvCB'](loadSettings,_0x59855f),_0x603873=deleteNestedValue(_0xa04aba,_0x137d98);_0x603873?console['log'](_0x32813b(0x1e9)+_0x137d98+'\x22\x20lives\x20in\x20the\x20legacy\x20settings\x20file\x20for\x20\x22'+_0x59855f+_0x32813b(0x20a)):console['log'](_0x32813b(0x1e9)+_0x137d98+'\x22\x20not\x20found');}export async function configReset(_0x45fa65){const _0x5cdb9e=_0x2ce97a,_0x35e08a={'Gjwta':'cloud'},_0x5c5696=await resolveProfileTarget(_0x45fa65);if(_0x5c5696['kind']===_0x35e08a[_0x5cdb9e(0x1e5)]){resetProfileOverrides(getProjectPath(),_0x45fa65),console[_0x5cdb9e(0x20f)](_0x5cdb9e(0x1f2)+_0x45fa65+'\x22');return;}console['log']('\x22'+_0x45fa65+'\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20'+_0x45fa65+_0x5cdb9e(0x20c));}
@@ -1 +1 @@
1
- function _0x484e(_0x438294,_0x363c2f){_0x438294=_0x438294-0x184;const _0x56cb10=_0x56cb();let _0x484e70=_0x56cb10[_0x438294];return _0x484e70;}(function(_0x4b0c81,_0x29e6da){const _0xd3a971=_0x484e,_0x5e2912=_0x4b0c81();while(!![]){try{const _0x169cc1=-parseInt(_0xd3a971(0x192))/0x1+parseInt(_0xd3a971(0x191))/0x2+-parseInt(_0xd3a971(0x18d))/0x3+parseInt(_0xd3a971(0x18e))/0x4+-parseInt(_0xd3a971(0x18a))/0x5*(-parseInt(_0xd3a971(0x18f))/0x6)+parseInt(_0xd3a971(0x195))/0x7*(parseInt(_0xd3a971(0x197))/0x8)+parseInt(_0xd3a971(0x185))/0x9*(-parseInt(_0xd3a971(0x184))/0xa);if(_0x169cc1===_0x29e6da)break;else _0x5e2912['push'](_0x5e2912['shift']());}catch(_0x80d3da){_0x5e2912['push'](_0x5e2912['shift']());}}}(_0x56cb,0xa6b2f));function _0x56cb(){const _0x56ddc5=['cwd','Profile\x20deletion\x20cancelled:\x20confirmation\x20did\x20not\x20match.','SwuYt','10rNJtjm','log','prompt','892845qESZqj','4914288NFLwvZ','1240842suEvmw','confirmation','1283874aWsaNI','1038196QcfDzm','yes','\x22\x20for\x20everyone\x20in\x20your\x20organization.','1911TFEuRA','\x22\x20not\x20found.','27152hJTssG','476830wMfxGE','225ttSAPl','Profile\x20deletion\x20requires\x20an\x20interactive\x20terminal\x20so\x20the\x20profile\x20name\x20can\x20be\x20typed\x20for\x20confirmation.\x20Pass\x20--yes\x20to\x20skip\x20confirmation.'];_0x56cb=function(){return _0x56ddc5;};return _0x56cb();}import _0x3997f7 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(_0x540512,_0x4d21f4={}){const _0x386c83=_0x484e,_0x1e1e5d={'wrmJr':function(_0x1af81d,_0x20feac){return _0x1af81d(_0x20feac);},'oiVin':function(_0x29f63c){return _0x29f63c();},'MUIqN':'input','ZHhDr':_0x386c83(0x190),'SwuYt':function(_0x3dfba7,_0x298c5b){return _0x3dfba7(_0x298c5b);},'RmaLV':function(_0x42b66e,_0x199686,_0x5aec0a){return _0x42b66e(_0x199686,_0x5aec0a);}},_0x18e295=await _0x1e1e5d['wrmJr'](fetchCloudProfile,_0x540512);if(!_0x18e295)throw new Error('Cloud\x20profile\x20\x22'+_0x540512+_0x386c83(0x196));if(!_0x4d21f4[_0x386c83(0x193)]&&!_0x1e1e5d['oiVin'](isInteractive))throw new Error(_0x386c83(0x186));console[_0x386c83(0x18b)]('\x0aWarning:\x20this\x20deletes\x20the\x20shared\x20cloud\x20profile\x20\x22'+_0x540512+_0x386c83(0x194));if(!_0x4d21f4['yes']){const {confirmation:_0x34ec29}=await _0x3997f7[_0x386c83(0x18c)]([{'type':_0x1e1e5d['MUIqN'],'name':_0x1e1e5d['ZHhDr'],'message':'Type\x20\x22'+_0x540512+'\x22\x20to\x20confirm\x20deletion:'}]);if(_0x34ec29!==_0x540512)throw new Error(_0x386c83(0x188));}await _0x1e1e5d[_0x386c83(0x189)](deleteCloudProfile,_0x540512),_0x1e1e5d['RmaLV'](resetProfileOverrides,process[_0x386c83(0x187)](),_0x540512),clearLastProfile(process[_0x386c83(0x187)](),_0x540512),console['log']('✓\x20Deleted\x20cloud\x20profile\x20\x22'+_0x540512+'\x22.');}
1
+ (function(_0xae7825,_0x420942){const _0x18f837=_0x1f44,_0x165f5b=_0xae7825();while(!![]){try{const _0x19185e=parseInt(_0x18f837(0x140))/0x1+-parseInt(_0x18f837(0x146))/0x2*(-parseInt(_0x18f837(0x149))/0x3)+parseInt(_0x18f837(0x14c))/0x4+-parseInt(_0x18f837(0x13b))/0x5+parseInt(_0x18f837(0x13d))/0x6*(-parseInt(_0x18f837(0x147))/0x7)+parseInt(_0x18f837(0x14d))/0x8*(-parseInt(_0x18f837(0x141))/0x9)+parseInt(_0x18f837(0x13e))/0xa;if(_0x19185e===_0x420942)break;else _0x165f5b['push'](_0x165f5b['shift']());}catch(_0x4c8a01){_0x165f5b['push'](_0x165f5b['shift']());}}}(_0x2b4e,0x5564b));import _0x2614da from'inquirer';function _0x1f44(_0x2f5e9f,_0x3ce1e2){_0x2f5e9f=_0x2f5e9f-0x137;const _0x2b4ee9=_0x2b4e();let _0x1f44f0=_0x2b4ee9[_0x2f5e9f];return _0x1f44f0;}function _0x2b4e(){const _0x3f106f=['800541TpRYpm','OBrFB','366leqQhV','Type\x20\x22','Cloud\x20profile\x20\x22','2343516IDvxQy','1615328xrbfKr','Profile\x20deletion\x20cancelled:\x20confirmation\x20did\x20not\x20match.','\x22\x20to\x20confirm\x20deletion:','yes','cwd','849825wmfzwN','log','30hOogfi','712310sKxDoF','\x22\x20for\x20everyone\x20in\x20your\x20organization.','457267UxPsqL','18ptlzWt','Profile\x20deletion\x20requires\x20an\x20interactive\x20terminal\x20so\x20the\x20profile\x20name\x20can\x20be\x20typed\x20for\x20confirmation.\x20Pass\x20--yes\x20to\x20skip\x20confirmation.','\x0aWarning:\x20this\x20deletes\x20the\x20shared\x20cloud\x20profile\x20\x22','rkuCs','prompt','6246VomrhU'];_0x2b4e=function(){return _0x3f106f;};return _0x2b4e();}import{deleteCloudProfile,fetchCloudProfile}from'./utils/cloudProfile.js';import{isInteractive}from'./utils/cloudProfileSession.js';import{clearLastProfile,resetProfileOverrides}from'./utils/projectsConfig.js';export async function deleteProfile(_0x3bb734,_0x5b881a={}){const _0x4694e0=_0x1f44,_0x5a4178={'hXQDR':function(_0x4b8858,_0x1468da){return _0x4b8858(_0x1468da);},'OBrFB':_0x4694e0(0x142),'trgmZ':function(_0x27b16f,_0x50ec6a){return _0x27b16f!==_0x50ec6a;},'rkuCs':function(_0x55aabf,_0x13762a){return _0x55aabf(_0x13762a);},'hWEsy':function(_0xce2584,_0x426e79,_0x2c1147){return _0xce2584(_0x426e79,_0x2c1147);}},_0x432be8=await _0x5a4178['hXQDR'](fetchCloudProfile,_0x3bb734);if(!_0x432be8)throw new Error(_0x4694e0(0x14b)+_0x3bb734+'\x22\x20not\x20found.');if(!_0x5b881a['yes']&&!isInteractive())throw new Error(_0x5a4178[_0x4694e0(0x148)]);console[_0x4694e0(0x13c)](_0x4694e0(0x143)+_0x3bb734+_0x4694e0(0x13f));if(!_0x5b881a[_0x4694e0(0x139)]){const {confirmation:_0x2fd517}=await _0x2614da[_0x4694e0(0x145)]([{'type':'input','name':'confirmation','message':_0x4694e0(0x14a)+_0x3bb734+_0x4694e0(0x138)}]);if(_0x5a4178['trgmZ'](_0x2fd517,_0x3bb734))throw new Error(_0x4694e0(0x137));}await _0x5a4178[_0x4694e0(0x144)](deleteCloudProfile,_0x3bb734),_0x5a4178['hWEsy'](resetProfileOverrides,process[_0x4694e0(0x13a)](),_0x3bb734),clearLastProfile(process['cwd'](),_0x3bb734),console[_0x4694e0(0x13c)]('✓\x20Deleted\x20cloud\x20profile\x20\x22'+_0x3bb734+'\x22.');}
@@ -1 +1 @@
1
- function _0x19a5(_0x31277,_0x5c5285){_0x31277=_0x31277-0x117;const _0x37d7cb=_0x37d7();let _0x19a57a=_0x37d7cb[_0x31277];return _0x19a57a;}const _0x2620c2=_0x19a5;(function(_0x2b7f8a,_0x7aed86){const _0x2e92e5=_0x19a5,_0x4d01d=_0x2b7f8a();while(!![]){try{const _0xd46a83=-parseInt(_0x2e92e5(0x126))/0x1*(-parseInt(_0x2e92e5(0x120))/0x2)+parseInt(_0x2e92e5(0x12b))/0x3*(parseInt(_0x2e92e5(0x13a))/0x4)+parseInt(_0x2e92e5(0x12f))/0x5*(-parseInt(_0x2e92e5(0x131))/0x6)+-parseInt(_0x2e92e5(0x11f))/0x7+-parseInt(_0x2e92e5(0x118))/0x8*(parseInt(_0x2e92e5(0x11a))/0x9)+-parseInt(_0x2e92e5(0x117))/0xa+parseInt(_0x2e92e5(0x12c))/0xb;if(_0xd46a83===_0x7aed86)break;else _0x4d01d['push'](_0x4d01d['shift']());}catch(_0x5ae280){_0x4d01d['push'](_0x4d01d['shift']());}}}(_0x37d7,0xe74d3));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=[_0x2620c2(0x12d),_0x2620c2(0x129),'reports',_0x2620c2(0x11d),'ci'];export async function getEnvNames(){const _0x4ca72d=_0x2620c2,_0xd1b210={'GIFwa':function(_0x80674,_0x4fa846,_0x2231f9){return _0x80674(_0x4fa846,_0x2231f9);},'WWckT':_0x4ca72d(0x11d),'JcJfY':function(_0x23af55,_0x13c01c){return _0x23af55(_0x13c01c);},'edOTC':function(_0x468d7b,_0x43652c){return _0x468d7b(_0x43652c);},'fjxNb':_0x4ca72d(0x12e)},_0x5482f2=getRangerDir();if(!existsSync(_0x5482f2))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x49bf18=await readActiveProfileName(),_0xdbad2b=[],_0x1e2a90={},_0xf9142e=_0xd1b210[_0x4ca72d(0x138)](join,_0x5482f2,_0xd1b210['WWckT']);if(_0xd1b210['JcJfY'](existsSync,_0xf9142e)){const _0x30b186=await readdir(_0xf9142e);for(const _0x508abc of _0x30b186){const _0xfc7f0c=join(_0xf9142e,_0x508abc),_0x3a21fd=await stat(_0xfc7f0c);_0x3a21fd[_0x4ca72d(0x130)]()&&(_0xdbad2b[_0x4ca72d(0x125)](_0x508abc),_0x1e2a90[_0x508abc]='local');}}const _0x16712a=_0xd1b210[_0x4ca72d(0x138)](join,_0x5482f2,'ci');if(_0xd1b210['JcJfY'](existsSync,_0x16712a)){const _0x45a1f5=await readdir(_0x16712a);for(const _0x5dfd6e of _0x45a1f5){const _0x48fc39=join(_0x16712a,_0x5dfd6e),_0x5d0282=await _0xd1b210[_0x4ca72d(0x132)](stat,_0x48fc39);_0x5d0282['isDirectory']()&&(_0xdbad2b[_0x4ca72d(0x125)](_0x5dfd6e),_0x1e2a90[_0x5dfd6e]='ci');}}const _0x444063=await _0xd1b210[_0x4ca72d(0x135)](readdir,_0x5482f2);for(const _0x2586ed of _0x444063){if(NON_ENV_DIRS[_0x4ca72d(0x13c)](_0x2586ed))continue;if(_0x2586ed['startsWith']('.'))continue;if(_0x2586ed['endsWith'](_0xd1b210[_0x4ca72d(0x11c)]))continue;const _0x237cfd=join(_0x5482f2,_0x2586ed),_0xbf56fa=await stat(_0x237cfd);_0xbf56fa[_0x4ca72d(0x130)]()&&existsSync(_0xd1b210['GIFwa'](join,_0x237cfd,'settings.json'))&&(!_0xdbad2b[_0x4ca72d(0x13c)](_0x2586ed)&&(_0xdbad2b[_0x4ca72d(0x125)](_0x2586ed),_0x1e2a90[_0x2586ed]=_0x4ca72d(0x133)));}return{'envNames':_0xdbad2b,'activeEnv':_0x49bf18,'envTypes':_0x1e2a90};}export async function envList(){const _0x209031=_0x2620c2,_0x2b5fa5={'pksTF':function(_0xf92c19){return _0xf92c19();},'SeZmJ':function(_0x563883){return _0x563883();},'bSSPn':function(_0x503c30,_0x42842a){return _0x503c30===_0x42842a;},'cJoqU':function(_0x3b9590,_0x9bb4db){return _0x3b9590>_0x9bb4db;},'ZcHoE':'\x0aLocal\x20Profiles\x20(legacy):','LHhkx':'local','lsjPy':_0x209031(0x11e),'GBesp':function(_0x2a1d9c,_0x1ddc7c){return _0x2a1d9c===_0x1ddc7c;}},{envNames:_0x93963,activeEnv:_0x15e67f,envTypes:_0x1bba91}=await getEnvNames();let _0x1c04e9=[];const _0x37f9b6=await _0x2b5fa5['pksTF'](getToken);if(_0x37f9b6)try{_0x1c04e9=await _0x2b5fa5['SeZmJ'](listCloudProfiles);}catch(_0x609cfd){console[_0x209031(0x128)](_0x209031(0x123)+(_0x609cfd instanceof Error?_0x609cfd['message']:String(_0x609cfd)));}if(_0x2b5fa5[_0x209031(0x12a)](_0x93963['length'],0x0)&&_0x2b5fa5[_0x209031(0x12a)](_0x1c04e9[_0x209031(0x139)],0x0)){console[_0x209031(0x127)](_0x209031(0x121)),console[_0x209031(0x127)]('Run:\x20ranger\x20profile\x20add\x20<profile-name>');return;}const _0xe25110=new Set(_0x1c04e9['map'](_0xc2178b=>_0xc2178b[_0x209031(0x13b)]));if(_0x2b5fa5[_0x209031(0x134)](_0x93963[_0x209031(0x139)],0x0)){console['log'](_0x2b5fa5['ZcHoE']);for(const _0x385653 of _0x93963[_0x209031(0x136)]()){const _0xbd3b99=_0x385653===_0x15e67f&&!_0xe25110['has'](_0x385653),_0x1bd927=_0x1bba91[_0x385653]||_0x2b5fa5['LHhkx'],_0x388edb=await loadSettings(_0x385653),_0x261096=_0x1bd927==='legacy'?'':'\x20['+_0x1bd927+']';console[_0x209031(0x127)]('\x20\x20'+(_0xbd3b99?'*\x20':'\x20\x20')+_0x385653+_0x261096),_0x388edb['baseUrl']&&console[_0x209031(0x127)]('\x20\x20\x20\x20\x20\x20URL:\x20'+_0x388edb['baseUrl']),_0x388edb[_0x209031(0x119)]&&console[_0x209031(0x127)](_0x209031(0x11b)+_0x388edb['environmentDetails']);}}if(_0x2b5fa5['cJoqU'](_0x1c04e9['length'],0x0)){console['log'](_0x2b5fa5[_0x209031(0x137)]);for(const _0x177523 of _0x1c04e9['sort']((_0xdae0e8,_0x371587)=>_0xdae0e8['name'][_0x209031(0x13d)](_0x371587['name']))){const _0x4b0e0c=_0x2b5fa5['GBesp'](_0x177523[_0x209031(0x13b)],_0x15e67f),_0x7bf4f0=_0x177523[_0x209031(0x124)]?'\x20('+_0x177523[_0x209031(0x124)]+')':'',_0x41e900=_0x177523['sessionUpdatedAt']?'cached\x20(updated\x20'+_0x177523['sessionUpdatedAt']+')':'no\x20session';console[_0x209031(0x127)]('\x20\x20'+(_0x4b0e0c?'*\x20':'\x20\x20')+_0x177523['name']+_0x209031(0x122)+_0x7bf4f0),console[_0x209031(0x127)]('\x20\x20\x20\x20\x20\x20Session:\x20'+_0x41e900);}}_0x15e67f&&console[_0x209031(0x127)]('\x0a*\x20=\x20active\x20profile');}function _0x37d7(){const _0x51e40b=['\x0aCloud\x20Profiles:','5721296YYvhxt','32VuWvlP','\x0aNo\x20profiles\x20found.','\x20[cloud]','\x0aWarning:\x20could\x20not\x20fetch\x20cloud\x20profiles:\x20','environmentKey','push','106034lYYndJ','log','error','bug-bashes','bSSPn','31695MVDphp','26101581RpoBMk','sessions','.txt','925zrfYfb','isDirectory','31962wKykoR','edOTC','legacy','cJoqU','JcJfY','sort','lsjPy','GIFwa','length','352gjOzBS','name','includes','localeCompare','16442650GRztkR','1136qUyVZk','environmentDetails','38322GGmcfK','\x20\x20\x20\x20\x20\x20Details:\x20','fjxNb','local'];_0x37d7=function(){return _0x51e40b;};return _0x37d7();}
1
+ const _0x35380f=_0xde30;(function(_0x335ff8,_0x3f5297){const _0x270334=_0xde30,_0x32ecf6=_0x335ff8();while(!![]){try{const _0x37de83=-parseInt(_0x270334(0x1ba))/0x1+parseInt(_0x270334(0x1af))/0x2*(parseInt(_0x270334(0x1b9))/0x3)+-parseInt(_0x270334(0x1ad))/0x4+parseInt(_0x270334(0x1c2))/0x5+-parseInt(_0x270334(0x1ab))/0x6+-parseInt(_0x270334(0x1a1))/0x7*(parseInt(_0x270334(0x1a8))/0x8)+parseInt(_0x270334(0x1b8))/0x9*(parseInt(_0x270334(0x1b3))/0xa);if(_0x37de83===_0x3f5297)break;else _0x32ecf6['push'](_0x32ecf6['shift']());}catch(_0x26daf0){_0x32ecf6['push'](_0x32ecf6['shift']());}}}(_0x12e3,0x38682));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';function _0xde30(_0x22bc7a,_0x5c0a0f){_0x22bc7a=_0x22bc7a-0x19b;const _0x12e341=_0x12e3();let _0xde3088=_0x12e341[_0x22bc7a];return _0xde3088;}function _0x12e3(){const _0x422377=['18YCHngL','374720FrPxnT','includes','local','sort','startsWith','XCLrU','CFwvN','jVtpM','67455DDtoZX','\x0aCloud\x20Profiles:','kNAcZ','isDirectory','environmentDetails','localeCompare','HyzRi','YXDWr','795319ZlhLwN','\x20\x20\x20\x20\x20\x20URL:\x20','cached\x20(updated\x20','\x20\x20\x20\x20\x20\x20Session:\x20','has','push','log','8losKgA','length','endsWith','1670916taxNrY','name','1063536MiXCZV','error','131106LeKjbE','legacy','SfTeY','\x0a*\x20=\x20active\x20profile','8569400ArZsGv','baseUrl','sessionUpdatedAt','phxQX','message','9apFfHj'];_0x12e3=function(){return _0x422377;};return _0x12e3();}import{readActiveProfileName}from'./utils/activeProfile.js';import{getToken}from'./utils/keychain.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const NON_ENV_DIRS=['sessions','bug-bashes','reports',_0x35380f(0x1bc),'ci'];export async function getEnvNames(){const _0x53935b=_0x35380f,_0x1a71c5={'nRcOi':function(_0x5ae3ab){return _0x5ae3ab();},'Lpiie':function(_0x19bbeb,_0x4ed291){return _0x19bbeb(_0x4ed291);},'PZKGm':function(_0x52b034,_0x18c520,_0x1e83c6){return _0x52b034(_0x18c520,_0x1e83c6);},'zQFtK':_0x53935b(0x1bc),'YXDWr':function(_0xa162b3,_0x29d0b3,_0x33f62c){return _0xa162b3(_0x29d0b3,_0x33f62c);},'kNAcZ':function(_0x2df9ef,_0x49e29f){return _0x2df9ef(_0x49e29f);},'phxQX':function(_0x259576,_0xe6264e,_0x22e301){return _0x259576(_0xe6264e,_0x22e301);},'SfTeY':function(_0x3aff54,_0x27c42a){return _0x3aff54(_0x27c42a);},'XCLrU':'settings.json'},_0x1ed702=_0x1a71c5['nRcOi'](getRangerDir);if(!_0x1a71c5['Lpiie'](existsSync,_0x1ed702))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x29addb=await readActiveProfileName(),_0x44bdd6=[],_0x181751={},_0x834131=_0x1a71c5['PZKGm'](join,_0x1ed702,_0x1a71c5['zQFtK']);if(existsSync(_0x834131)){const _0xf6ecde=await readdir(_0x834131);for(const _0x1293ec of _0xf6ecde){const _0x1a5362=_0x1a71c5['PZKGm'](join,_0x834131,_0x1293ec),_0x1978eb=await stat(_0x1a5362);_0x1978eb[_0x53935b(0x19c)]()&&(_0x44bdd6[_0x53935b(0x1a6)](_0x1293ec),_0x181751[_0x1293ec]=_0x1a71c5['zQFtK']);}}const _0x3a4259=_0x1a71c5[_0x53935b(0x1a0)](join,_0x1ed702,'ci');if(_0x1a71c5[_0x53935b(0x19b)](existsSync,_0x3a4259)){const _0x2e8e78=await _0x1a71c5[_0x53935b(0x19b)](readdir,_0x3a4259);for(const _0x3f4e9d of _0x2e8e78){const _0x21ca3c=_0x1a71c5[_0x53935b(0x1a0)](join,_0x3a4259,_0x3f4e9d),_0x47ac87=await stat(_0x21ca3c);_0x47ac87['isDirectory']()&&(_0x44bdd6['push'](_0x3f4e9d),_0x181751[_0x3f4e9d]='ci');}}const _0x52dbf2=await readdir(_0x1ed702);for(const _0x5cb9df of _0x52dbf2){if(NON_ENV_DIRS[_0x53935b(0x1bb)](_0x5cb9df))continue;if(_0x5cb9df[_0x53935b(0x1be)]('.'))continue;if(_0x5cb9df[_0x53935b(0x1aa)]('.txt'))continue;const _0x4c5f1a=_0x1a71c5[_0x53935b(0x1b6)](join,_0x1ed702,_0x5cb9df),_0x4c9f72=await stat(_0x4c5f1a);_0x4c9f72[_0x53935b(0x19c)]()&&_0x1a71c5[_0x53935b(0x1b1)](existsSync,_0x1a71c5['YXDWr'](join,_0x4c5f1a,_0x1a71c5[_0x53935b(0x1bf)]))&&(!_0x44bdd6['includes'](_0x5cb9df)&&(_0x44bdd6['push'](_0x5cb9df),_0x181751[_0x5cb9df]=_0x53935b(0x1b0)));}return{'envNames':_0x44bdd6,'activeEnv':_0x29addb,'envTypes':_0x181751};}export async function envList(){const _0x397a89=_0x35380f,_0x3ef5db={'CFwvN':function(_0x3eab86){return _0x3eab86();},'IBLIj':function(_0x1b17ac,_0x484706){return _0x1b17ac instanceof _0x484706;},'HyzRi':function(_0x285c09,_0x537b42){return _0x285c09===_0x537b42;},'aSKBl':'\x0aNo\x20profiles\x20found.','jVtpM':'Run:\x20ranger\x20profile\x20add\x20<profile-name>','AioRD':function(_0x4fe8e6,_0x49a1ab){return _0x4fe8e6(_0x49a1ab);},'aCquP':'legacy','iYZOo':function(_0x47f235,_0x313a75){return _0x47f235>_0x313a75;},'MCZga':_0x397a89(0x1c3),'ZeXui':'no\x20session'},{envNames:_0x2d2c15,activeEnv:_0x3ea748,envTypes:_0x334dbe}=await getEnvNames();let _0x283b29=[];const _0x2f35df=await _0x3ef5db[_0x397a89(0x1c0)](getToken);if(_0x2f35df)try{_0x283b29=await listCloudProfiles();}catch(_0x3f4229){console[_0x397a89(0x1ae)]('\x0aWarning:\x20could\x20not\x20fetch\x20cloud\x20profiles:\x20'+(_0x3ef5db['IBLIj'](_0x3f4229,Error)?_0x3f4229[_0x397a89(0x1b7)]:String(_0x3f4229)));}if(_0x2d2c15[_0x397a89(0x1a9)]===0x0&&_0x3ef5db[_0x397a89(0x19f)](_0x283b29[_0x397a89(0x1a9)],0x0)){console['log'](_0x3ef5db['aSKBl']),console[_0x397a89(0x1a7)](_0x3ef5db[_0x397a89(0x1c1)]);return;}const _0x108f61=new Set(_0x283b29['map'](_0x2c2283=>_0x2c2283[_0x397a89(0x1ac)]));if(_0x2d2c15[_0x397a89(0x1a9)]>0x0){console['log']('\x0aLocal\x20Profiles\x20(legacy):');for(const _0x168c98 of _0x2d2c15[_0x397a89(0x1bd)]()){const _0x420a19=_0x3ef5db['HyzRi'](_0x168c98,_0x3ea748)&&!_0x108f61[_0x397a89(0x1a5)](_0x168c98),_0x4305ba=_0x334dbe[_0x168c98]||_0x397a89(0x1bc),_0x1a7295=await _0x3ef5db['AioRD'](loadSettings,_0x168c98),_0x31ae34=_0x4305ba===_0x3ef5db['aCquP']?'':'\x20['+_0x4305ba+']';console[_0x397a89(0x1a7)]('\x20\x20'+(_0x420a19?'*\x20':'\x20\x20')+_0x168c98+_0x31ae34),_0x1a7295[_0x397a89(0x1b4)]&&console[_0x397a89(0x1a7)](_0x397a89(0x1a2)+_0x1a7295[_0x397a89(0x1b4)]),_0x1a7295[_0x397a89(0x19d)]&&console[_0x397a89(0x1a7)]('\x20\x20\x20\x20\x20\x20Details:\x20'+_0x1a7295['environmentDetails']);}}if(_0x3ef5db['iYZOo'](_0x283b29['length'],0x0)){console['log'](_0x3ef5db['MCZga']);for(const _0x473ba4 of _0x283b29[_0x397a89(0x1bd)]((_0x28d643,_0x4fd71a)=>_0x28d643['name'][_0x397a89(0x19e)](_0x4fd71a[_0x397a89(0x1ac)]))){const _0x5162cb=_0x3ef5db[_0x397a89(0x19f)](_0x473ba4['name'],_0x3ea748),_0x5a7e17=_0x473ba4['environmentKey']?'\x20('+_0x473ba4['environmentKey']+')':'',_0x58db19=_0x473ba4[_0x397a89(0x1b5)]?_0x397a89(0x1a3)+_0x473ba4[_0x397a89(0x1b5)]+')':_0x3ef5db['ZeXui'];console['log']('\x20\x20'+(_0x5162cb?'*\x20':'\x20\x20')+_0x473ba4[_0x397a89(0x1ac)]+'\x20[cloud]'+_0x5a7e17),console['log'](_0x397a89(0x1a4)+_0x58db19);}}_0x3ea748&&console['log'](_0x397a89(0x1b2));}