@ranger-testing/ranger-cli 3.1.2-alpha.b450a14-41 → 3.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/deleteProfile.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -1
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -1
  43. package/build/commands/utils/cloudProfileSession.js +1 -1
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -1
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -1
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/novaActCli.js +1 -1
  58. package/build/commands/utils/opencodeConfig.js +1 -1
  59. package/build/commands/utils/organizationEnvApi.js +1 -1
  60. package/build/commands/utils/playwrightCli.js +1 -1
  61. package/build/commands/utils/profileMessages.js +1 -1
  62. package/build/commands/utils/profileSetupBanner.js +1 -1
  63. package/build/commands/utils/projectsConfig.js +1 -1
  64. package/build/commands/utils/rangerConfig.js +1 -1
  65. package/build/commands/utils/rangerRoot.js +1 -1
  66. package/build/commands/utils/rangerwrightCli.js +1 -1
  67. package/build/commands/utils/resolveProfileContext.js +1 -1
  68. package/build/commands/utils/resolveProfileUrl.js +1 -1
  69. package/build/commands/utils/retry.js +1 -1
  70. package/build/commands/utils/sessionCache.js +1 -1
  71. package/build/commands/utils/settings.js +1 -1
  72. package/build/commands/utils/skillContent.js +1 -1
  73. package/build/commands/utils/skills.js +1 -1
  74. package/build/commands/utils/stitchWebmFiles.js +1 -1
  75. package/build/commands/utils/telemetry.js +1 -1
  76. package/build/commands/utils/tokenRefresh.js +1 -1
  77. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  78. package/build/commands/utils/tunnelClient.js +1 -1
  79. package/build/commands/utils/userApi.js +1 -1
  80. package/build/commands/utils/version.js +1 -1
  81. package/build/commands/verifyFeature.js +1 -1
  82. package/build/commands/verifyFeatureCli.js +1 -1
  83. package/build/commands/verifyFeatureNovaCli.js +1 -1
  84. package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
  85. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x255713,_0x4d14f5){const _0x2e8696=_0x16ba,_0x32c550=_0x255713();while(!![]){try{const _0x5af5ad=parseInt(_0x2e8696(0x216))/0x1+-parseInt(_0x2e8696(0x202))/0x2+-parseInt(_0x2e8696(0x22a))/0x3*(-parseInt(_0x2e8696(0x231))/0x4)+-parseInt(_0x2e8696(0x20e))/0x5+-parseInt(_0x2e8696(0x247))/0x6*(parseInt(_0x2e8696(0x20d))/0x7)+-parseInt(_0x2e8696(0x22b))/0x8*(-parseInt(_0x2e8696(0x213))/0x9)+-parseInt(_0x2e8696(0x236))/0xa*(parseInt(_0x2e8696(0x1f3))/0xb);if(_0x5af5ad===_0x4d14f5)break;else _0x32c550['push'](_0x32c550['shift']());}catch(_0x128d79){_0x32c550['push'](_0x32c550['shift']());}}}(_0x69da,0xa65e4));import{readdir,rm}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import _0x4ccb47 from'inquirer';function _0x16ba(_0x216a2b,_0x5615a8){_0x216a2b=_0x216a2b-0x1f0;const _0x69da4b=_0x69da();let _0x16ba5e=_0x69da4b[_0x216a2b];return _0x16ba5e;}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';const CLOUD_PROFILE_SHARING_WARNING='This\x20account\x20will\x20be\x20shared\x20with\x20everyone\x20at\x20your\x20organization';function warnCloudProfileSharedInOrg(){const _0x1d6699=_0x16ba;if(!process['stdout'][_0x1d6699(0x22c)])return;console[_0x1d6699(0x262)](CLOUD_PROFILE_SHARING_WARNING);}async function checkUrlReachability(_0x1d2aa1){const _0x46103a=_0x16ba,_0x1670cc={'eRLKo':function(_0x12e219,_0x353c01,_0x2d21ee){return _0x12e219(_0x353c01,_0x2d21ee);},'APksq':_0x46103a(0x239),'zGPxl':function(_0x324b67,_0xdf4b96){return _0x324b67(_0xdf4b96);},'BiuwA':'Invalid\x20URL'};try{const _0x3a5124=new AbortController(),_0x4beb28=_0x1670cc[_0x46103a(0x248)](setTimeout,()=>_0x3a5124['abort'](),0x1388),_0x3e293c={'method':_0x1670cc['APksq'],'signal':_0x3a5124[_0x46103a(0x210)],'redirect':'manual'};/^https:\/\/localhost(:\d+)?/i['test'](_0x1d2aa1)&&(process[_0x46103a(0x23d)]['NODE_TLS_REJECT_UNAUTHORIZED']='0');const _0x3cbdca=await fetch(_0x1d2aa1,_0x3e293c);delete process['env'][_0x46103a(0x256)],clearTimeout(_0x4beb28);if(_0x3cbdca[_0x46103a(0x20b)]<0x190)return{'ok':!![]};return{'ok':![],'error':_0x46103a(0x24a)+_0x3cbdca['status']};}catch(_0x2d87e8){delete process['env'][_0x46103a(0x256)];const _0x44a605=_0x2d87e8,_0x12c80b=_0x44a605['message']||_0x1670cc['zGPxl'](String,_0x2d87e8),_0x31b5aa=_0x12c80b[_0x46103a(0x21f)](_0x1670cc['BiuwA'])||_0x44a605[_0x46103a(0x242)]===_0x46103a(0x240)||_0x12c80b['includes']('fetch\x20failed');return{'ok':![],'error':_0x12c80b,'isProtocolError':_0x31b5aa};}}async function sweepOrphanLocalProfile(_0x53d5f6,_0x1eba31,_0x5be31b){const _0x293b95=_0x16ba,_0x436318={'rjtZC':function(_0x375371,_0x49b173,_0x3f2a89){return _0x375371(_0x49b173,_0x3f2a89);},'xcxOs':function(_0x45fa01,_0x31bea0){return _0x45fa01(_0x31bea0);}},_0x5c60cd=join(_0x1eba31,'local'),_0x54c448=join(_0x5c60cd,_0x53d5f6);existsSync(_0x54c448)&&(_0x5be31b&&await isPathGitTracked(_0x54c448)?console[_0x293b95(0x250)](_0x293b95(0x24e)+_0x54c448+'\x20—\x20not\x20removing.\x20Delete\x20manually\x20if\x20you\x20want\x20it\x20gone.'):(await _0x436318[_0x293b95(0x1fa)](rm,_0x54c448,{'recursive':!![],'force':!![]}),console[_0x293b95(0x250)](_0x293b95(0x24f)+_0x54c448)));if(existsSync(_0x5c60cd)){let _0x5ed43a=[];try{_0x5ed43a=await _0x436318[_0x293b95(0x269)](readdir,_0x5c60cd);}catch{return;}const _0x1282c5='.tmp-'+_0x53d5f6+'-';for(const _0x2c0410 of _0x5ed43a){if(!_0x2c0410['startsWith'](_0x1282c5))continue;const _0x2a4ae2=_0x436318['rjtZC'](join,_0x5c60cd,_0x2c0410);await _0x436318[_0x293b95(0x1fa)](rm,_0x2a4ae2,{'recursive':!![],'force':!![]}),console[_0x293b95(0x250)]('\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20'+_0x2a4ae2);}}}async function sweepOrphansBestEffort(_0xc4faf0){const _0x25e735=_0x16ba,_0x127b22={'kVcLJ':function(_0x19eafd,_0x572702){return _0x19eafd instanceof _0x572702;}};try{await sweepOrphanLocalProfile(_0xc4faf0,getRangerHomeDir(),![]);const _0x572a4c=getRangerDir();_0x572a4c!==getRangerHomeDir()&&await sweepOrphanLocalProfile(_0xc4faf0,_0x572a4c,!![]);}catch(_0x279441){console['log']('\x20\x20Note:\x20cloud\x20profile\x20created,\x20but\x20failed\x20to\x20sweep\x20orphan\x20local\x20dirs\x20('+(_0x127b22[_0x25e735(0x220)](_0x279441,Error)?_0x279441['message']:String(_0x279441))+').');}}async function markActive(_0x298cdc){const _0x27d364=_0x16ba;try{await writeActiveProfileName(_0x298cdc),console['log']('\x20\x20Set\x20active\x20profile:\x20'+_0x298cdc);}catch{console['log'](_0x27d364(0x23c));}}async function tryAutoRouteCloudProfile(_0x127234,_0x1064ca,_0x5568fc,_0x58ac09,_0x505e8c){const _0x5893aa=_0x16ba,_0x513599={'EctFH':function(_0x1f1cfe,_0x25c38f){return _0x1f1cfe===_0x25c38f;},'BRDQa':_0x5893aa(0x266),'ltPeW':function(_0x3fca05,_0x1c3341){return _0x3fca05 instanceof _0x1c3341;},'yVoYs':function(_0x11344e,_0x5c4474,_0x4b55f8,_0x44e58d,_0xa442f8){return _0x11344e(_0x5c4474,_0x4b55f8,_0x44e58d,_0xa442f8);},'ZcTAe':_0x5893aa(0x263),'FjgkE':function(_0x97b931,_0x493a3a){return _0x97b931+_0x493a3a;},'cjdnq':function(_0x592e19,_0xc903de){return _0x592e19+_0xc903de;},'LZipY':function(_0x3e0e8e,_0x12697b){return _0x3e0e8e+_0x12697b;},'PrZbC':'\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','eHbYR':_0x5893aa(0x267),'rcroA':_0x5893aa(0x23b),'NYrlZ':function(_0x277c96,_0x3c411f,_0x25f07b){return _0x277c96(_0x3c411f,_0x25f07b);},'uywZP':_0x5893aa(0x24c),'BwuvM':_0x5893aa(0x1fd),'THUFN':function(_0x5558e7,_0x78d95){return _0x5558e7+_0x78d95;},'iQWoI':'profile.add.autoRouted'};let _0x1f60cb;try{_0x1f60cb=await fetchAuthConfig();}catch(_0x149c55){return _0x505e8c?.[_0x5893aa(0x25b)]('profile.add.autoRouteSkipped',{'reason':_0x513599['BRDQa'],'profileName':_0x127234}),console['error']('\x0a\x20\x20Could\x20not\x20fetch\x20this\x20org\x27s\x20auth\x20config:\x20'+(_0x513599[_0x5893aa(0x23f)](_0x149c55,Error)?_0x149c55['message']:String(_0x149c55))),![];}if(!_0x1f60cb||!_0x1f60cb[_0x5893aa(0x219)]||Object['keys'](_0x1f60cb[_0x5893aa(0x219)])[_0x5893aa(0x261)]===0x0){if(_0x58ac09)return await _0x513599[_0x5893aa(0x1ff)](captureEnvLessProfile,_0x127234,_0x1064ca,_0x5568fc,_0x505e8c);return _0x505e8c?.['trackPhaseEnd'](_0x513599['ZcTAe'],{'reason':_0x513599['BRDQa'],'profileName':_0x127234}),console[_0x5893aa(0x255)](_0x513599['FjgkE'](_0x513599[_0x5893aa(0x20f)](_0x513599['LZipY'](_0x513599['LZipY'](_0x513599['LZipY'](_0x513599['PrZbC'],'\x0a'),'\x20\x20Workaround\x20for\x20now:\x20create\x20a\x20profile\x20without\x20a\x20captured\x20session\x20and\x20supply\x20one\x20later:\x0a')+(_0x5893aa(0x1f9)+_0x127234+'\x20--url\x20'+_0x1064ca+'\x20--skip-auth\x0a'),'\x0a'),_0x513599['eHbYR']),_0x513599[_0x5893aa(0x203)])),![];}const _0x91cb5e=_0x513599['NYrlZ'](matchAuthEnvironment,_0x1064ca,_0x1f60cb);if(!_0x91cb5e)return _0x505e8c?.['trackPhaseEnd'](_0x513599['ZcTAe'],{'reason':_0x513599[_0x5893aa(0x21e)],'profileName':_0x127234}),console[_0x5893aa(0x255)]('\x0a\x20\x20No\x20auth\x20env\x20matches\x20'+_0x1064ca+'.\x20Configured\x20envs:\x20'+Object[_0x5893aa(0x245)](_0x1f60cb['environments'])[_0x5893aa(0x238)](',\x20')+'.'),![];const _0xadd0af=_0x1f60cb['environments'][_0x91cb5e],_0x52e17d=_0xadd0af?.['domains']??[];if(_0x58ac09&&!_0x5568fc['yes']){const {saveToCloud:_0xf38ae9}=await _0x4ccb47[_0x5893aa(0x226)]([{'type':_0x5893aa(0x249),'name':_0x513599[_0x5893aa(0x265)],'message':_0x5893aa(0x26a)+_0x91cb5e+'\x27\x20matching\x20'+_0x1064ca+'\x0a\x20\x20(domains:\x20'+_0x52e17d['join'](',\x20')+_0x5893aa(0x25a)+_0x127234+_0x5893aa(0x1f1),'default':!![]}]);if(!_0xf38ae9)return _0x505e8c?.[_0x5893aa(0x25b)]('profile.add.autoRouteSkipped',{'reason':'user_declined','profileName':_0x127234}),console[_0x5893aa(0x255)]('\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20cloud-managed\x20session.'),![];}const _0x18974a=_0x52e17d['some'](_0x510141=>{const _0x165503=_0x5893aa;try{return _0x513599[_0x165503(0x212)](new URL(_0x510141)['origin'],new URL(_0x1064ca)['origin']);}catch{return![];}}),_0x3352a2={};!_0x18974a&&(_0x3352a2['baseUrl']=_0x1064ca);try{await createCloudProfile(_0x127234,_0x91cb5e,{'settings':_0x3352a2}),warnCloudProfileSharedInOrg();}catch(_0x35781c){if(_0x513599[_0x5893aa(0x23f)](_0x35781c,ApiError)&&_0x35781c['status']===0x199){console[_0x5893aa(0x255)](_0x513599[_0x5893aa(0x230)](_0x5893aa(0x21d)+_0x127234+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a',_0x5893aa(0x258)+_0x127234));throw _0x35781c;}throw _0x35781c;}return console['log'](_0x5893aa(0x26c)+_0x127234+'\x27\x20created.\x0a'+(_0x5893aa(0x21b)+_0x127234)),await sweepOrphansBestEffort(_0x127234),_0x505e8c?.[_0x5893aa(0x25b)](_0x513599['iQWoI'],{'envKey':_0x91cb5e,'profileName':_0x127234}),!![];}async function createUnconfiguredCloudProfile(_0x4f0ad6,_0x2f5ac5){const _0x1c7cf0=_0x16ba,_0x1547ea={'RRTXh':function(_0xf52d43,_0x2d93fc){return _0xf52d43+_0x2d93fc;}};try{await createCloudProfile(_0x4f0ad6,undefined,{'settings':_0x2f5ac5}),warnCloudProfileSharedInOrg();}catch(_0x310311){_0x310311 instanceof ApiError&&_0x310311[_0x1c7cf0(0x20b)]===0x199&&console['error'](_0x1547ea['RRTXh'](_0x1c7cf0(0x21d)+_0x4f0ad6+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x4f0ad6));throw _0x310311;}}function _0x69da(){const _0xa42c96=['confirm','HTTP\x20','mCLFM','no_match','The\x20--ci\x20flag\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x20session\x20state\x0a','\x20\x20Note:\x20found\x20git-tracked\x20local\x20profile\x20at\x20','\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20','log','gEJvc','list','BeByg','WXAYW','error','NODE_TLS_REJECT_UNAUTHORIZED','\x22:\x20','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20','MagrA',')\x0a\x20\x20Save\x20\x27','trackPhaseEnd','message','GVlrB','\x20\x20When\x20you\x27re\x20ready\x20to\x20log\x20in,\x20run\x20`ranger\x20profile\x20add\x20','\x0a🌐\x20Profile\x20Setup\x0a','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','length','warn','profile.add.autoRouteSkipped','profile.add.autoRouted','BwuvM','no_auth_config','\x20\x20To\x20get\x20automated\x20login\x20set\x20up\x20for\x20your\x20team\x20(a\x20one-time\x20call):\x20eng@ranger.net\x0a','force','xcxOs','Found\x20auth\x20environment\x20\x27','fWmup','✓\x20Profile\x20\x27','test','\x0a\x20\x20Still\x20could\x20not\x20reach\x20','\x27\x20to\x20the\x20cloud?','HwsdP','9449pISItm','What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','qAYPr','uhFup','indexOf','\x0a\x20\x20Failed\x20to\x20create\x20cloud\x20profile\x20\x22','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20','rjtZC','For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','\x0a✓\x20Profile\x20\x27','saveToCloud','baseUrl','yVoYs','slice','Use\x20','1205452SyObGp','rcroA','continue','user_declined','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','exit','NrBAT','cwd','\x20(continuing\x20with\x20--force)','status','url','433426NphdmW','2586965KEYPIE','cjdnq','signal','\x27\x20created\x20(no\x20session).\x0a','EctFH','4275DGaxBp','setupHeader','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','59701zbBPzX','dTeQP','\x22.\x20Expected\x20\x22Name:\x20Value\x22.','environments','Continue\x20anyway','\x20\x20Next:\x20ranger\x20go\x20--profile\x20','Invalid\x20--setup-header\x20format:\x20\x22','\x0a\x20\x20A\x20profile\x20named\x20\x22','uywZP','includes','kVcLJ','IJXNM','http://','retry','hZUwK','setupHeaders','prompt','vCBUV','MOuns','cbhpu','3xvneHO','16792nwyepJ','isTTY','\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20session,\x0a','WbbCY','\x27\x20created\x20(CDP).','THUFN','4646368zFwKyp','Enter\x20a\x20different\x20URL','\x20\x20Ranger\x20will\x20use\x20it\x20to\x20look\x20up\x20the\x20right\x20cloud\x20auth\x20env\x20to\x20attach.\x0a','YAMCe','jveuW','3410XUZnJf','trim','join','HEAD','qbeal','\x20\x20Details:\x20https://docs.ranger.net/main/concepts/profiles#automated-login','Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','env','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','ltPeW','TypeError','cdpEndpoint','name','COCTt','aSQaA','keys','for\x20you,\x20so\x20the\x20encrypted-CI\x20flow\x20is\x20unnecessary.\x0a','12PsQhIp','eRLKo'];_0x69da=function(){return _0xa42c96;};return _0x69da();}async function captureEnvLessProfile(_0x599afc,_0x1ec4a6,_0x80470a,_0x28d742){const _0x2a536f=_0x16ba,_0x509758={'hZUwK':'confirm','vCBUV':_0x2a536f(0x205),'avvLH':function(_0x15b1ab,_0x25cad){return _0x15b1ab+_0x25cad;},'WXAYW':function(_0x89929b,_0x449bac){return _0x89929b===_0x449bac;},'ioSwS':function(_0x53c820,_0xd3c4a2,_0x509740,_0x29f539){return _0x53c820(_0xd3c4a2,_0x509740,_0x29f539);},'gpqte':function(_0x35d098){return _0x35d098();},'ZFsXf':function(_0x4b2a37,_0x2c8384){return _0x4b2a37 instanceof _0x2c8384;},'GVlrB':function(_0x3c3536,_0xf11995){return _0x3c3536+_0xf11995;},'aSQaA':_0x2a536f(0x264)};if(!_0x80470a['yes']){const {capture:_0x14ff4a}=await _0x4ccb47['prompt']([{'type':_0x509758[_0x2a536f(0x224)],'name':'capture','message':'Automated\x20login\x20isn\x27t\x20set\x20up\x20for\x20your\x20team.\x20Capture\x20a\x20session\x20via\x20a\x20headed\x20browser\x20instead?','default':!![]}]);if(!_0x14ff4a)return _0x28d742?.[_0x2a536f(0x25b)](_0x2a536f(0x263),{'reason':_0x509758[_0x2a536f(0x227)],'profileName':_0x599afc}),console['error'](_0x509758['avvLH'](_0x2a536f(0x22d),'\x20\x20or\x20contact\x20eng@ranger.net\x20to\x20set\x20up\x20automated\x20login\x20for\x20your\x20team.')),![];}const _0xa1d6b7={};if(_0x80470a['setupHeader'])for(const _0x21d502 of _0x80470a[_0x2a536f(0x214)]){const _0x2fcdd5=_0x21d502['indexOf'](':');if(_0x509758[_0x2a536f(0x254)](_0x2fcdd5,-0x1))continue;_0xa1d6b7[_0x21d502[_0x2a536f(0x200)](0x0,_0x2fcdd5)['trim']()]=_0x21d502[_0x2a536f(0x200)](_0x2fcdd5+0x1)['trim']();}const _0xe80ad6={'baseUrl':_0x1ec4a6};Object['keys'](_0xa1d6b7)[_0x2a536f(0x261)]>0x0&&(_0xe80ad6['setupHeaders']=_0xa1d6b7);let _0x5b49ff;try{_0x5b49ff=await _0x509758['ioSwS'](createCloudProfile,_0x599afc,undefined,{'settings':_0xe80ad6}),_0x509758['gpqte'](warnCloudProfileSharedInOrg);}catch(_0x51960d){_0x509758['ZFsXf'](_0x51960d,ApiError)&&_0x509758[_0x2a536f(0x254)](_0x51960d['status'],0x199)&&console['error'](_0x509758[_0x2a536f(0x25d)]('\x0a\x20\x20A\x20profile\x20named\x20\x22'+_0x599afc+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a',_0x2a536f(0x258)+_0x599afc));throw _0x51960d;}return await manualBrowserLogin(_0x5b49ff,{'key':'','domains':[_0x1ec4a6],'setupHeaders':Object[_0x2a536f(0x245)](_0xa1d6b7)['length']>0x0?_0xa1d6b7:undefined}),console[_0x2a536f(0x250)](_0x2a536f(0x1fc)+_0x599afc+'\x27\x20created\x20with\x20a\x20captured\x20session.\x0a'+('\x20\x20Next:\x20ranger\x20go\x20--profile\x20'+_0x599afc)),await sweepOrphansBestEffort(_0x599afc),_0x28d742?.['trackPhaseEnd'](_0x509758[_0x2a536f(0x244)],{'envKey':null,'profileName':_0x599afc}),!![];}export async function addEnv(_0x40cb31,_0x56f687={},_0x404327){const _0xb58a12=_0x16ba,_0x2b743c={'xLfiW':function(_0x33ab6b,_0x4eb04a){return _0x33ab6b+_0x4eb04a;},'IJXNM':function(_0x3341cb,_0x27912a){return _0x3341cb+_0x27912a;},'COCTt':function(_0x57a8d0,_0x566447){return _0x57a8d0+_0x566447;},'GHFSo':'To\x20set\x20up\x20a\x20profile,\x20run:\x0a','HwsdP':_0xb58a12(0x215),'NrBAT':_0xb58a12(0x1fb),'uhFup':function(_0x2b09f6,_0x49a2f6){return _0x2b09f6+_0x49a2f6;},'SJlDR':function(_0x4719fa,_0x42b420){return _0x4719fa===_0x42b420;},'jbhdK':function(_0x39ec27,_0x1751d9){return _0x39ec27>_0x1751d9;},'LvurU':function(_0x3ca411,_0x28b8be,_0x56ba61){return _0x3ca411(_0x28b8be,_0x56ba61);},'jveuW':_0xb58a12(0x241),'KGyFn':function(_0x2b138a,_0x5afcf6,_0x32f2fb,_0x40ec20,_0x3791f6){return _0x2b138a(_0x5afcf6,_0x32f2fb,_0x40ec20,_0x3791f6);},'pVkRw':'isElectron','MagrA':function(_0x542f90,_0x1c338f){return _0x542f90 instanceof _0x1c338f;},'liweS':function(_0x53f9eb,_0x5eb150){return _0x53f9eb(_0x5eb150);},'dTeQP':function(_0x3c01ac,_0x214911){return _0x3c01ac(_0x214911);},'rLtpu':function(_0x147c06,_0x223ab1,_0x551ca0){return _0x147c06(_0x223ab1,_0x551ca0);},'BeByg':function(_0x558784,_0x2b42d2){return _0x558784(_0x2b42d2);},'WbbCY':_0xb58a12(0x25f),'gEJvc':_0xb58a12(0x260),'ltMxv':_0xb58a12(0x233),'fWmup':'input','JrMZB':_0xb58a12(0x1fe),'eTEbe':_0xb58a12(0x1f4),'qAYPr':_0xb58a12(0x252),'cbhpu':'What\x20would\x20you\x20like\x20to\x20do?','YAMCe':'use_suggestion','qbeal':_0xb58a12(0x232),'MOuns':_0xb58a12(0x204),'mCLFM':function(_0x55447b,_0x5cd0ed){return _0x55447b===_0x5cd0ed;}};_0x56f687['ci']&&(console[_0xb58a12(0x255)](_0x2b743c['xLfiW'](_0x2b743c[_0xb58a12(0x221)](_0x2b743c['COCTt'](_0xb58a12(0x24d)+_0xb58a12(0x246)+'\x0a'+_0x2b743c['GHFSo'],_0x2b743c[_0xb58a12(0x1f2)]),'\x0a')+_0x2b743c[_0xb58a12(0x208)],'\x20\x20https://docs.ranger.net/main/concepts/profiles')),process['exit'](0x1));const _0x24e0ca={};if(_0x56f687['setupHeader'])for(const _0x273c1b of _0x56f687[_0xb58a12(0x214)]){const _0x16e1a6=_0x273c1b[_0xb58a12(0x1f7)](':');if(_0x16e1a6===-0x1)throw new Error(_0xb58a12(0x21c)+_0x273c1b+_0xb58a12(0x218));const _0x1b557b=_0x273c1b[_0xb58a12(0x200)](0x0,_0x16e1a6)[_0xb58a12(0x237)](),_0x1a635f=_0x273c1b[_0xb58a12(0x200)](_0x2b743c[_0xb58a12(0x1f6)](_0x16e1a6,0x1))[_0xb58a12(0x237)]();_0x24e0ca[_0x1b557b]=_0x1a635f;}if(_0x56f687['cdpEndpoint']!==undefined&&_0x2b743c['SJlDR'](_0x56f687['cdpEndpoint'][_0xb58a12(0x237)](),''))throw new Error('--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222');if(_0x56f687[_0xb58a12(0x241)]&&_0x56f687[_0xb58a12(0x20c)])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 _0x3d696a=Boolean(_0x56f687['cdpEndpoint']),_0x2964ce=isInteractive();if(!_0x2964ce&&!_0x56f687[_0xb58a12(0x20c)]&&!_0x3d696a&&!_0x56f687['skipAuth'])throw new Error(_0xb58a12(0x23e));if(_0x3d696a){const _0x6f63df=_0x56f687[_0xb58a12(0x241)];console['log']('\x0a🔌\x20CDP\x20Profile\x20Setup\x0a'),console['log']('\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20'+_0x6f63df);const _0x48b175={'cdpEndpoint':_0x6f63df,'isElectron':!![]};_0x2b743c['jbhdK'](Object['keys'](_0x24e0ca)[_0xb58a12(0x261)],0x0)&&(_0x48b175[_0xb58a12(0x225)]=_0x24e0ca);await _0x2b743c['LvurU'](createUnconfiguredCloudProfile,_0x40cb31,_0x48b175);try{setProfileOverride(process[_0xb58a12(0x209)](),_0x40cb31,_0x2b743c[_0xb58a12(0x235)],_0x6f63df),_0x2b743c['KGyFn'](setProfileOverride,process[_0xb58a12(0x209)](),_0x40cb31,_0x2b743c['pVkRw'],!![]);}catch(_0x572d50){console[_0xb58a12(0x255)]('\x0a\x20\x20Cloud\x20profile\x20created,\x20but\x20failed\x20to\x20write\x20per-cwd\x20CDP\x20override\x20to\x20projects.json:\x20'+(_0x2b743c[_0xb58a12(0x259)](_0x572d50,Error)?_0x572d50[_0xb58a12(0x25c)]:_0x2b743c['liweS'](String,_0x572d50)));}console[_0xb58a12(0x250)]('✓\x20Cloud\x20profile\x20\x27'+_0x40cb31+_0xb58a12(0x22f)),await sweepOrphansBestEffort(_0x40cb31),await _0x2b743c['dTeQP'](markActive,_0x40cb31);return;}if(_0x56f687['skipAuth']){const _0x312d42={};_0x56f687[_0xb58a12(0x20c)]&&(_0x312d42['baseUrl']=_0x56f687['url']);_0x2b743c['jbhdK'](Object[_0xb58a12(0x245)](_0x24e0ca)[_0xb58a12(0x261)],0x0)&&(_0x312d42[_0xb58a12(0x225)]=_0x24e0ca);await _0x2b743c['rLtpu'](createUnconfiguredCloudProfile,_0x40cb31,_0x312d42),console[_0xb58a12(0x250)](_0x2b743c[_0xb58a12(0x243)](_0xb58a12(0x26c)+_0x40cb31+_0xb58a12(0x211),_0xb58a12(0x25e)+_0x40cb31+'`\x20again\x20without\x20--skip-auth.')),await sweepOrphansBestEffort(_0x40cb31),await _0x2b743c[_0xb58a12(0x253)](markActive,_0x40cb31);return;}if(_0x56f687[_0xb58a12(0x20c)]){const _0x44a945=_0x56f687['url'],_0x2efc7d=await _0x2b743c[_0xb58a12(0x217)](checkUrlReachability,_0x44a945);if(!_0x2efc7d['ok']&&!_0x56f687[_0xb58a12(0x268)])throw new Error('Could\x20not\x20reach\x20'+_0x44a945+':\x20'+_0x2efc7d[_0xb58a12(0x255)]+_0xb58a12(0x206));!_0x2efc7d['ok']&&_0x56f687[_0xb58a12(0x268)]&&console['log']('⚠\x20Could\x20not\x20reach\x20'+_0x44a945+':\x20'+_0x2efc7d[_0xb58a12(0x255)]+_0xb58a12(0x20a));}else{console[_0xb58a12(0x250)](_0x2b743c[_0xb58a12(0x22e)]),console['log'](_0x2b743c[_0xb58a12(0x251)]),console[_0xb58a12(0x250)](_0x2b743c['ltMxv']);let _0x1a14a4='',_0x3f10b0=![];while(!![]){const _0x266d2a=await _0x4ccb47[_0xb58a12(0x226)]([{'type':_0x2b743c[_0xb58a12(0x26b)],'name':_0x2b743c['JrMZB'],'message':_0x3f10b0?'Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):':_0x2b743c['eTEbe'],'default':_0x1a14a4||'http://localhost:3000'}]);_0x1a14a4=_0x266d2a[_0xb58a12(0x1fe)];const _0x16e471=await _0x2b743c[_0xb58a12(0x253)](checkUrlReachability,_0x1a14a4);if(_0x16e471['ok'])break;const _0x50f54f=/^[a-zA-Z][\w+.-]*:\/\//[_0xb58a12(0x26d)](_0x1a14a4),_0x2146bb=_0x16e471['isProtocolError']&&!_0x50f54f,_0x4295ea=_0x2146bb?_0xb58a12(0x222)+_0x1a14a4:null;_0x3f10b0=!![],console['log']('\x0a\x20\x20Could\x20not\x20reach\x20'+_0x1a14a4+':\x20'+_0x16e471[_0xb58a12(0x255)]);_0x4295ea&&console['log']('\x20\x20Did\x20you\x20mean\x20'+_0x4295ea+'?');const {action:_0x3e96a3}=await _0x4ccb47['prompt']([{'type':_0x2b743c[_0xb58a12(0x1f5)],'name':'action','message':_0x2b743c[_0xb58a12(0x229)],'choices':[..._0x4295ea?[{'name':_0xb58a12(0x201)+_0x4295ea,'value':_0x2b743c[_0xb58a12(0x234)]}]:[],{'name':_0x2b743c[_0xb58a12(0x23a)],'value':_0xb58a12(0x223)},{'name':_0xb58a12(0x21a),'value':_0x2b743c[_0xb58a12(0x228)]}]}]);if(_0x2b743c[_0xb58a12(0x24b)](_0x3e96a3,'use_suggestion')&&_0x4295ea){_0x1a14a4=_0x4295ea;const _0xe96df7=await checkUrlReachability(_0x1a14a4);if(_0xe96df7['ok'])break;console['log'](_0xb58a12(0x1f0)+_0x1a14a4+':\x20'+_0xe96df7[_0xb58a12(0x255)]);}else{if(_0x3e96a3==='continue')break;}}_0x56f687={..._0x56f687,'url':_0x1a14a4};}let _0x53b98d=![];try{_0x53b98d=await tryAutoRouteCloudProfile(_0x40cb31,_0x56f687[_0xb58a12(0x20c)],_0x56f687,_0x2964ce,_0x404327);}catch(_0xac168d){console[_0xb58a12(0x255)](_0xb58a12(0x1f8)+_0x40cb31+_0xb58a12(0x257)+(_0xac168d instanceof Error?_0xac168d[_0xb58a12(0x25c)]:String(_0xac168d))),process[_0xb58a12(0x207)](0x1);}!_0x53b98d&&process['exit'](0x1),await _0x2b743c['dTeQP'](markActive,_0x40cb31);}
1
+ (function(_0x1a93df,_0x308fd5){const _0x18e0cd=_0x18cd,_0x1f5aba=_0x1a93df();while(!![]){try{const _0x31f058=parseInt(_0x18e0cd(0xb8))/0x1+parseInt(_0x18e0cd(0xeb))/0x2+parseInt(_0x18e0cd(0x78))/0x3*(parseInt(_0x18e0cd(0xbc))/0x4)+parseInt(_0x18e0cd(0xc6))/0x5+-parseInt(_0x18e0cd(0x8e))/0x6*(parseInt(_0x18e0cd(0xde))/0x7)+parseInt(_0x18e0cd(0xd8))/0x8+parseInt(_0x18e0cd(0xdb))/0x9*(-parseInt(_0x18e0cd(0xab))/0xa);if(_0x31f058===_0x308fd5)break;else _0x1f5aba['push'](_0x1f5aba['shift']());}catch(_0x11047f){_0x1f5aba['push'](_0x1f5aba['shift']());}}}(_0x3ab6,0x516ff));import{readdir,rm}from'fs/promises';import{join}from'path';import{existsSync}from'fs';function _0x18cd(_0x518fd7,_0x567559){_0x518fd7=_0x518fd7-0x74;const _0x3ab68d=_0x3ab6();let _0x18cda5=_0x3ab68d[_0x518fd7];return _0x18cda5;}import _0x4f5ff4 from'inquirer';import{getRangerDir,getRangerHomeDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{fetchAuthConfig,createCloudProfile,manualBrowserLogin,ApiError}from'./utils/cloudProfile.js';import{isInteractive}from'./utils/cloudProfileSession.js';function _0x3ab6(){const _0x3e02d3=['sTcCX','4766280rtJIBB','force','\x20\x20Next:\x20ranger\x20go\x20--profile\x20','175581hplxPt','env','abort','1369837CoGMgI','YWpSF','\x20\x20To\x20get\x20automated\x20login\x20set\x20up\x20for\x20your\x20team\x20(a\x20one-time\x20call):\x20eng@ranger.net\x0a','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','TypeError','PDAqq','What\x20would\x20you\x20like\x20to\x20do?','skipAuth','SVGve','cMTzA','user_declined','join','\x27\x20created\x20(CDP).','240610YALril','✓\x20Cloud\x20profile\x20\x27','\x20—\x20not\x20removing.\x20Delete\x20manually\x20if\x20you\x20want\x20it\x20gone.','origin','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','47127lwHlpx','Invalid\x20URL','KtjyR','\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a','prompt','Could\x20not\x20reach\x20','tPFfQ','trim','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','TeLMq','log','UjfqU','\x20\x20Set\x20active\x20profile:\x20','indexOf','The\x20--ci\x20flag\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x20session\x20state\x0a','setupHeader','url','environments','error','profile.add.autoRouteSkipped','NcXWU','\x20\x20When\x20you\x27re\x20ready\x20to\x20log\x20in,\x20run\x20`ranger\x20profile\x20add\x20','12lyPRvK','\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20session,\x0a','confirm','keys','QKHft','LNccU','eKGgi','yXXQW','\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','trackPhaseEnd','nvzqE','RicgP','yes','NkMPA','setupHeaders','\x22.\x20Expected\x20\x22Name:\x20Value\x22.','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20','.\x20Configured\x20envs:\x20','test','wNZgN','\x20\x20Note:\x20cloud\x20profile\x20created,\x20but\x20failed\x20to\x20sweep\x20orphan\x20local\x20dirs\x20(','NODE_TLS_REJECT_UNAUTHORIZED','\x0a\x20\x20Could\x20not\x20fetch\x20this\x20org\x27s\x20auth\x20config:\x20','isProtocolError','\x27\x20to\x20the\x20cloud?','\x0a\x20\x20A\x20profile\x20named\x20\x22','UVoPH','saveToCloud','domains','220BbOFER','uIHMJ','⚠\x20Could\x20not\x20reach\x20','\x20\x20or\x20contact\x20eng@ranger.net\x20to\x20set\x20up\x20automated\x20login\x20for\x20your\x20team.','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','message','nccvO','cdpEndpoint','\x20\x20Note:\x20found\x20git-tracked\x20local\x20profile\x20at\x20','for\x20you,\x20so\x20the\x20encrypted-CI\x20flow\x20is\x20unnecessary.\x0a','\x20\x20https://docs.ranger.net/main/concepts/profiles','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20','YyQCV','33241FXRleX','GLlzy','\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20cloud-managed\x20session.','nurEz','56Cdjpht','exit','slice','iZPSh','\x20\x20Ranger\x20will\x20use\x20it\x20to\x20look\x20up\x20the\x20right\x20cloud\x20auth\x20env\x20to\x20attach.\x0a','VaOde','GngKm','For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','warn','http://','924450EfZbiy','Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','.tmp-','\x0a✓\x20Profile\x20\x27','UlkSq','HTTP\x20','Afpqr','list','retry','OCAEm','no_auth_config','RAUrO','length','status','\x27\x20created\x20with\x20a\x20captured\x20session.\x0a','\x20\x20Workaround\x20for\x20now:\x20create\x20a\x20profile\x20without\x20a\x20captured\x20session\x20and\x20supply\x20one\x20later:\x0a','KLmsW'];_0x3ab6=function(){return _0x3e02d3;};return _0x3ab6();}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(){const _0x1453e1=_0x18cd;if(!process['stdout']['isTTY'])return;console[_0x1453e1(0xc4)](CLOUD_PROFILE_SHARING_WARNING);}async function checkUrlReachability(_0x4ba79d){const _0x3755cc=_0x18cd,_0x30a1f6={'GIUvd':function(_0x418ad5,_0x3c0b28,_0x41056){return _0x418ad5(_0x3c0b28,_0x41056);},'cqdqo':'manual','RAUrO':function(_0xb70aca,_0x242320){return _0xb70aca(_0x242320);},'eKGgi':function(_0x2b9102,_0x4ffbb4){return _0x2b9102<_0x4ffbb4;},'KtjyR':_0x3755cc(0x79)};try{const _0x32234b=new AbortController(),_0x488538=_0x30a1f6['GIUvd'](setTimeout,()=>_0x32234b[_0x3755cc(0xdd)](),0x1388),_0x16444b={'method':'HEAD','signal':_0x32234b['signal'],'redirect':_0x30a1f6['cqdqo']};/^https:\/\/localhost(:\d+)?/i[_0x3755cc(0xa0)](_0x4ba79d)&&(process[_0x3755cc(0xdc)]['NODE_TLS_REJECT_UNAUTHORIZED']='0');const _0x1cf3a7=await fetch(_0x4ba79d,_0x16444b);delete process[_0x3755cc(0xdc)]['NODE_TLS_REJECT_UNAUTHORIZED'],_0x30a1f6['RAUrO'](clearTimeout,_0x488538);if(_0x30a1f6[_0x3755cc(0x94)](_0x1cf3a7[_0x3755cc(0xd3)],0x190))return{'ok':!![]};return{'ok':![],'error':_0x3755cc(0xcb)+_0x1cf3a7['status']};}catch(_0x24a40d){delete process['env'][_0x3755cc(0xa3)];const _0x1c201c=_0x24a40d,_0x4a1400=_0x1c201c['message']||_0x30a1f6[_0x3755cc(0xd1)](String,_0x24a40d),_0x3c6173=_0x4a1400['includes'](_0x30a1f6[_0x3755cc(0x7a)])||_0x1c201c['name']===_0x3755cc(0xe2)||_0x4a1400['includes']('fetch\x20failed');return{'ok':![],'error':_0x4a1400,'isProtocolError':_0x3c6173};}}async function sweepOrphanLocalProfile(_0xafb753,_0x3868eb,_0x58ef6c){const _0x5d5f42=_0x18cd,_0x13d9e2={'KLmsW':function(_0x47492c,_0x4514d1,_0x493c02){return _0x47492c(_0x4514d1,_0x493c02);},'RicgP':'local','Afpqr':function(_0x34c72c,_0x487cf7){return _0x34c72c(_0x487cf7);},'wuqLK':function(_0x19ac06,_0x218637){return _0x19ac06(_0x218637);},'SVGve':function(_0x36163a,_0x5d6e2f,_0x582bfd){return _0x36163a(_0x5d6e2f,_0x582bfd);}},_0x1efc46=_0x13d9e2['KLmsW'](join,_0x3868eb,_0x13d9e2[_0x5d5f42(0x99)]),_0x5a2e42=join(_0x1efc46,_0xafb753);existsSync(_0x5a2e42)&&(_0x58ef6c&&await _0x13d9e2[_0x5d5f42(0xcc)](isPathGitTracked,_0x5a2e42)?console[_0x5d5f42(0x82)](_0x5d5f42(0xb3)+_0x5a2e42+_0x5d5f42(0x75)):(await _0x13d9e2[_0x5d5f42(0xd6)](rm,_0x5a2e42,{'recursive':!![],'force':!![]}),console['log']('\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20'+_0x5a2e42)));if(_0x13d9e2['wuqLK'](existsSync,_0x1efc46)){let _0x10b81e=[];try{_0x10b81e=await readdir(_0x1efc46);}catch{return;}const _0x2a812b=_0x5d5f42(0xc8)+_0xafb753+'-';for(const _0x403718 of _0x10b81e){if(!_0x403718['startsWith'](_0x2a812b))continue;const _0x5cb86a=join(_0x1efc46,_0x403718);await _0x13d9e2[_0x5d5f42(0xe6)](rm,_0x5cb86a,{'recursive':!![],'force':!![]}),console[_0x5d5f42(0x82)]('\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20'+_0x5cb86a);}}}async function sweepOrphansBestEffort(_0x4190ed){const _0x34d66a=_0x18cd,_0x5db3bf={'GLlzy':function(_0x4eed7b){return _0x4eed7b();},'UVoPH':function(_0x532951,_0x5c5e44){return _0x532951!==_0x5c5e44;},'nvzqE':function(_0x5df958,_0x24e913,_0x1d6334,_0x431dfb){return _0x5df958(_0x24e913,_0x1d6334,_0x431dfb);},'WvgJs':function(_0x362ba8,_0x46169b){return _0x362ba8 instanceof _0x46169b;},'suCcm':function(_0x3e132e,_0x6ffd00){return _0x3e132e(_0x6ffd00);}};try{await sweepOrphanLocalProfile(_0x4190ed,_0x5db3bf['GLlzy'](getRangerHomeDir),![]);const _0x121fdf=getRangerDir();_0x5db3bf[_0x34d66a(0xa8)](_0x121fdf,_0x5db3bf[_0x34d66a(0xb9)](getRangerHomeDir))&&await _0x5db3bf[_0x34d66a(0x98)](sweepOrphanLocalProfile,_0x4190ed,_0x121fdf,!![]);}catch(_0x26cee6){console[_0x34d66a(0x82)](_0x34d66a(0xa2)+(_0x5db3bf['WvgJs'](_0x26cee6,Error)?_0x26cee6['message']:_0x5db3bf['suCcm'](String,_0x26cee6))+').');}}async function markActive(_0xbc1d1b){const _0x11b6fa=_0x18cd,_0x416d5f={'NcXWU':'Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.'};try{await writeActiveProfileName(_0xbc1d1b),console[_0x11b6fa(0x82)](_0x11b6fa(0x84)+_0xbc1d1b);}catch{console['log'](_0x416d5f[_0x11b6fa(0x8c)]);}}async function tryAutoRouteCloudProfile(_0x1d720d,_0x8c98e0,_0x2bcf57,_0x4cc292,_0x302e37){const _0x2cd2d3=_0x18cd,_0xdcecd7={'OCAEm':function(_0x10cdd5,_0x315527){return _0x10cdd5 instanceof _0x315527;},'lCpmx':function(_0x7556a1,_0x3bfec1){return _0x7556a1(_0x3bfec1);},'nrmTs':'no_auth_config','UlkSq':function(_0xaefc00,_0x2aeaf2){return _0xaefc00+_0x2aeaf2;},'FEtYw':function(_0x517672,_0x26d49b,_0x4e5426){return _0x517672(_0x26d49b,_0x4e5426);},'cMTzA':'user_declined','GngKm':function(_0x165912,_0x2dc5f0,_0x24cd5a,_0x37b975){return _0x165912(_0x2dc5f0,_0x24cd5a,_0x37b975);},'wNZgN':'profile.add.autoRouted'};let _0x1c7710;try{_0x1c7710=await fetchAuthConfig();}catch(_0x21709e){return _0x302e37?.[_0x2cd2d3(0x97)](_0x2cd2d3(0x8b),{'reason':_0x2cd2d3(0xd0),'profileName':_0x1d720d}),console['error'](_0x2cd2d3(0xa4)+(_0xdcecd7[_0x2cd2d3(0xcf)](_0x21709e,Error)?_0x21709e['message']:_0xdcecd7['lCpmx'](String,_0x21709e))),![];}if(!_0x1c7710||!_0x1c7710[_0x2cd2d3(0x89)]||Object[_0x2cd2d3(0x91)](_0x1c7710['environments'])[_0x2cd2d3(0xd2)]===0x0){if(_0x4cc292)return await captureEnvLessProfile(_0x1d720d,_0x8c98e0,_0x2bcf57,_0x302e37);return _0x302e37?.[_0x2cd2d3(0x97)]('profile.add.autoRouteSkipped',{'reason':_0xdcecd7['nrmTs'],'profileName':_0x1d720d}),console['error'](_0xdcecd7['UlkSq'](_0xdcecd7[_0x2cd2d3(0xca)](_0x2cd2d3(0x96)+'\x0a'+_0x2cd2d3(0xd5)+(_0x2cd2d3(0xb6)+_0x1d720d+'\x20--url\x20'+_0x8c98e0+'\x20--skip-auth\x0a'),'\x0a'),_0x2cd2d3(0xe0))+'\x20\x20Details:\x20https://docs.ranger.net/main/concepts/profiles#automated-login'),![];}const _0x4d351c=_0xdcecd7['FEtYw'](matchAuthEnvironment,_0x8c98e0,_0x1c7710);if(!_0x4d351c)return _0x302e37?.[_0x2cd2d3(0x97)](_0x2cd2d3(0x8b),{'reason':'no_match','profileName':_0x1d720d}),console['error']('\x0a\x20\x20No\x20auth\x20env\x20matches\x20'+_0x8c98e0+_0x2cd2d3(0x9f)+Object['keys'](_0x1c7710[_0x2cd2d3(0x89)])[_0x2cd2d3(0xe9)](',\x20')+'.'),![];const _0x26763=_0x1c7710[_0x2cd2d3(0x89)][_0x4d351c],_0x17a903=_0x26763?.[_0x2cd2d3(0xaa)]??[];if(_0x4cc292&&!_0x2bcf57[_0x2cd2d3(0x9a)]){const {saveToCloud:_0x2eb967}=await _0x4f5ff4[_0x2cd2d3(0x7c)]([{'type':_0x2cd2d3(0x90),'name':_0x2cd2d3(0xa9),'message':'Found\x20auth\x20environment\x20\x27'+_0x4d351c+'\x27\x20matching\x20'+_0x8c98e0+'\x0a\x20\x20(domains:\x20'+_0x17a903[_0x2cd2d3(0xe9)](',\x20')+')\x0a\x20\x20Save\x20\x27'+_0x1d720d+_0x2cd2d3(0xa6),'default':!![]}]);if(!_0x2eb967)return _0x302e37?.[_0x2cd2d3(0x97)](_0x2cd2d3(0x8b),{'reason':_0xdcecd7[_0x2cd2d3(0xe7)],'profileName':_0x1d720d}),console[_0x2cd2d3(0x8a)](_0x2cd2d3(0xba)),![];}const _0x5e2e57=_0x17a903['some'](_0x14654c=>{const _0x40b8ed=_0x2cd2d3;try{return new URL(_0x14654c)[_0x40b8ed(0x76)]===new URL(_0x8c98e0)[_0x40b8ed(0x76)];}catch{return![];}}),_0x4b3c0d={};!_0x5e2e57&&(_0x4b3c0d['baseUrl']=_0x8c98e0);try{await _0xdcecd7[_0x2cd2d3(0xc2)](createCloudProfile,_0x1d720d,_0x4d351c,{'settings':_0x4b3c0d}),warnCloudProfileSharedInOrg();}catch(_0x2c52f9){if(_0x2c52f9 instanceof ApiError&&_0x2c52f9[_0x2cd2d3(0xd3)]===0x199){console[_0x2cd2d3(0x8a)]('\x0a\x20\x20A\x20profile\x20named\x20\x22'+_0x1d720d+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a'+('\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x1d720d));throw _0x2c52f9;}throw _0x2c52f9;}return console['log'](_0xdcecd7['UlkSq']('✓\x20Profile\x20\x27'+_0x1d720d+'\x27\x20created.\x0a',_0x2cd2d3(0xda)+_0x1d720d)),await _0xdcecd7['lCpmx'](sweepOrphansBestEffort,_0x1d720d),_0x302e37?.[_0x2cd2d3(0x97)](_0xdcecd7[_0x2cd2d3(0xa1)],{'envKey':_0x4d351c,'profileName':_0x1d720d}),!![];}async function createUnconfiguredCloudProfile(_0x4c8488,_0x3a40db){const _0x268bf6=_0x18cd,_0x3afa88={'TeLMq':function(_0x559d69,_0x1b122c){return _0x559d69 instanceof _0x1b122c;},'PdEhF':function(_0x980648,_0x5a85d9){return _0x980648===_0x5a85d9;}};try{await createCloudProfile(_0x4c8488,undefined,{'settings':_0x3a40db}),warnCloudProfileSharedInOrg();}catch(_0x859266){_0x3afa88[_0x268bf6(0x81)](_0x859266,ApiError)&&_0x3afa88['PdEhF'](_0x859266['status'],0x199)&&console[_0x268bf6(0x8a)](_0x268bf6(0xa7)+_0x4c8488+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a'+(_0x268bf6(0x9e)+_0x4c8488));throw _0x859266;}}async function captureEnvLessProfile(_0x4f8f16,_0x3e0ee1,_0x15876f,_0x5f3e60){const _0x5c39d3=_0x18cd,_0x4a2018={'PDAqq':'confirm','aPhkE':'Automated\x20login\x20isn\x27t\x20set\x20up\x20for\x20your\x20team.\x20Capture\x20a\x20session\x20via\x20a\x20headed\x20browser\x20instead?','bQtdi':_0x5c39d3(0xe8),'uIHMJ':function(_0x5213f2,_0x1a6f51){return _0x5213f2+_0x1a6f51;},'VaOde':function(_0x2deb9a,_0x4d20fe){return _0x2deb9a===_0x4d20fe;},'nTqRb':function(_0x559b2d,_0x33d197,_0x45ff33,_0x5a1352){return _0x559b2d(_0x33d197,_0x45ff33,_0x5a1352);},'nurEz':function(_0x486a74,_0x334564){return _0x486a74>_0x334564;},'iZPSh':function(_0x52f39c,_0xfe813d){return _0x52f39c+_0xfe813d;},'jzqsc':'profile.add.autoRouted'};if(!_0x15876f['yes']){const {capture:_0x15181}=await _0x4f5ff4[_0x5c39d3(0x7c)]([{'type':_0x4a2018[_0x5c39d3(0xe3)],'name':'capture','message':_0x4a2018['aPhkE'],'default':!![]}]);if(!_0x15181)return _0x5f3e60?.[_0x5c39d3(0x97)](_0x5c39d3(0x8b),{'reason':_0x4a2018['bQtdi'],'profileName':_0x4f8f16}),console[_0x5c39d3(0x8a)](_0x4a2018[_0x5c39d3(0xac)](_0x5c39d3(0x8f),_0x5c39d3(0xae))),![];}const _0x4fec4e={};if(_0x15876f[_0x5c39d3(0x87)])for(const _0x5a28ce of _0x15876f[_0x5c39d3(0x87)]){const _0x313f1b=_0x5a28ce[_0x5c39d3(0x85)](':');if(_0x4a2018[_0x5c39d3(0xc1)](_0x313f1b,-0x1))continue;_0x4fec4e[_0x5a28ce['slice'](0x0,_0x313f1b)['trim']()]=_0x5a28ce[_0x5c39d3(0xbe)](_0x4a2018[_0x5c39d3(0xac)](_0x313f1b,0x1))[_0x5c39d3(0x7f)]();}const _0x7bd710={'baseUrl':_0x3e0ee1};Object[_0x5c39d3(0x91)](_0x4fec4e)['length']>0x0&&(_0x7bd710[_0x5c39d3(0x9c)]=_0x4fec4e);let _0x1ac7ea;try{_0x1ac7ea=await _0x4a2018['nTqRb'](createCloudProfile,_0x4f8f16,undefined,{'settings':_0x7bd710}),warnCloudProfileSharedInOrg();}catch(_0x31f1fe){_0x31f1fe instanceof ApiError&&_0x31f1fe[_0x5c39d3(0xd3)]===0x199&&console['error'](_0x4a2018[_0x5c39d3(0xac)]('\x0a\x20\x20A\x20profile\x20named\x20\x22'+_0x4f8f16+_0x5c39d3(0x7b),'\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x4f8f16));throw _0x31f1fe;}return await manualBrowserLogin(_0x1ac7ea,{'key':'','domains':[_0x3e0ee1],'setupHeaders':_0x4a2018[_0x5c39d3(0xbb)](Object['keys'](_0x4fec4e)['length'],0x0)?_0x4fec4e:undefined}),console[_0x5c39d3(0x82)](_0x4a2018[_0x5c39d3(0xbf)](_0x5c39d3(0xc9)+_0x4f8f16+_0x5c39d3(0xd4),_0x5c39d3(0xda)+_0x4f8f16)),await sweepOrphansBestEffort(_0x4f8f16),_0x5f3e60?.['trackPhaseEnd'](_0x4a2018['jzqsc'],{'envKey':null,'profileName':_0x4f8f16}),!![];}export async function addEnv(_0x3e0a9a,_0x3b94d4={},_0x3b7a04){const _0x779f66=_0x18cd,_0x4e2b2d={'YyQCV':function(_0x28d673,_0x287ec1){return _0x28d673+_0x287ec1;},'DUtuZ':'To\x20set\x20up\x20a\x20profile,\x20run:\x0a','qzpuE':_0x779f66(0xaf),'UjfqU':_0x779f66(0xc3),'xzeot':_0x779f66(0xb5),'rgJwB':function(_0x5deb42,_0x816964){return _0x5deb42===_0x816964;},'LNccU':function(_0x5a0830,_0x8a6d4){return _0x5a0830(_0x8a6d4);},'INFjX':function(_0x9a4580){return _0x9a4580();},'yXXQW':_0x779f66(0x77),'QKHft':function(_0x2e9e69,_0x2a5d94,_0x46af37,_0x3bbf72,_0x12475d){return _0x2e9e69(_0x2a5d94,_0x46af37,_0x3bbf72,_0x12475d);},'tPFfQ':'cdpEndpoint','ZSbxT':'isElectron','XUuWJ':function(_0x25c657,_0x592617){return _0x25c657 instanceof _0x592617;},'YWpSF':function(_0xee69a2,_0xa1faf1){return _0xee69a2>_0xa1faf1;},'zrLYc':function(_0x1239f8,_0x2b3fa9){return _0x1239f8+_0x2b3fa9;},'vVRac':'\x0a🌐\x20Profile\x20Setup\x0a','mrKpn':_0x779f66(0xe1),'CMBRF':'input','PyrqH':function(_0x102b50,_0x1e6c42){return _0x102b50||_0x1e6c42;},'NkMPA':'action','TvHzz':'continue','nccvO':function(_0x114263,_0x168bbe){return _0x114263===_0x168bbe;},'sTcCX':function(_0x3b48df,_0x3bd2c3){return _0x3b48df(_0x3bd2c3);}};_0x3b94d4['ci']&&(console['error'](_0x4e2b2d[_0x779f66(0xb7)](_0x4e2b2d[_0x779f66(0xb7)](_0x779f66(0x86)+_0x779f66(0xb4)+'\x0a'+_0x4e2b2d['DUtuZ']+_0x4e2b2d['qzpuE']+'\x0a',_0x4e2b2d[_0x779f66(0x83)]),_0x4e2b2d['xzeot'])),process[_0x779f66(0xbd)](0x1));const _0x366b78={};if(_0x3b94d4[_0x779f66(0x87)])for(const _0x12e7ed of _0x3b94d4['setupHeader']){const _0x348bda=_0x12e7ed['indexOf'](':');if(_0x348bda===-0x1)throw new Error('Invalid\x20--setup-header\x20format:\x20\x22'+_0x12e7ed+_0x779f66(0x9d));const _0x27a27f=_0x12e7ed['slice'](0x0,_0x348bda)['trim'](),_0x66b3a3=_0x12e7ed[_0x779f66(0xbe)](_0x4e2b2d[_0x779f66(0xb7)](_0x348bda,0x1))['trim']();_0x366b78[_0x27a27f]=_0x66b3a3;}if(_0x3b94d4['cdpEndpoint']!==undefined&&_0x4e2b2d['rgJwB'](_0x3b94d4[_0x779f66(0xb2)]['trim'](),''))throw new Error('--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222');if(_0x3b94d4['cdpEndpoint']&&_0x3b94d4['url'])throw new Error('--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.');const _0x1dd266=_0x4e2b2d['LNccU'](Boolean,_0x3b94d4['cdpEndpoint']),_0x3f03f0=_0x4e2b2d['INFjX'](isInteractive);if(!_0x3f03f0&&!_0x3b94d4['url']&&!_0x1dd266&&!_0x3b94d4[_0x779f66(0xe5)])throw new Error(_0x4e2b2d[_0x779f66(0x95)]);if(_0x1dd266){const _0x13aa21=_0x3b94d4['cdpEndpoint'];console[_0x779f66(0x82)]('\x0a🔌\x20CDP\x20Profile\x20Setup\x0a'),console['log'](_0x779f66(0x80)+_0x13aa21);const _0x5bc1b6={'cdpEndpoint':_0x13aa21,'isElectron':!![]};Object[_0x779f66(0x91)](_0x366b78)[_0x779f66(0xd2)]>0x0&&(_0x5bc1b6['setupHeaders']=_0x366b78);await createUnconfiguredCloudProfile(_0x3e0a9a,_0x5bc1b6);try{_0x4e2b2d[_0x779f66(0x92)](setProfileOverride,process['cwd'](),_0x3e0a9a,_0x4e2b2d[_0x779f66(0x7e)],_0x13aa21),setProfileOverride(process['cwd'](),_0x3e0a9a,_0x4e2b2d['ZSbxT'],!![]);}catch(_0x509f69){console[_0x779f66(0x8a)]('\x0a\x20\x20Cloud\x20profile\x20created,\x20but\x20failed\x20to\x20write\x20per-cwd\x20CDP\x20override\x20to\x20projects.json:\x20'+(_0x4e2b2d['XUuWJ'](_0x509f69,Error)?_0x509f69[_0x779f66(0xb0)]:String(_0x509f69)));}console[_0x779f66(0x82)](_0x779f66(0x74)+_0x3e0a9a+_0x779f66(0xea)),await _0x4e2b2d[_0x779f66(0x93)](sweepOrphansBestEffort,_0x3e0a9a),await _0x4e2b2d[_0x779f66(0x93)](markActive,_0x3e0a9a);return;}if(_0x3b94d4[_0x779f66(0xe5)]){const _0xe5c50={};_0x3b94d4['url']&&(_0xe5c50['baseUrl']=_0x3b94d4[_0x779f66(0x88)]);_0x4e2b2d[_0x779f66(0xdf)](Object['keys'](_0x366b78)[_0x779f66(0xd2)],0x0)&&(_0xe5c50[_0x779f66(0x9c)]=_0x366b78);await createUnconfiguredCloudProfile(_0x3e0a9a,_0xe5c50),console['log'](_0x4e2b2d['zrLYc']('✓\x20Profile\x20\x27'+_0x3e0a9a+'\x27\x20created\x20(no\x20session).\x0a',_0x779f66(0x8d)+_0x3e0a9a+'`\x20again\x20without\x20--skip-auth.')),await sweepOrphansBestEffort(_0x3e0a9a),await markActive(_0x3e0a9a);return;}if(_0x3b94d4['url']){const _0x1c622c=_0x3b94d4[_0x779f66(0x88)],_0x330aec=await _0x4e2b2d['LNccU'](checkUrlReachability,_0x1c622c);if(!_0x330aec['ok']&&!_0x3b94d4[_0x779f66(0xd9)])throw new Error(_0x779f66(0x7d)+_0x1c622c+':\x20'+_0x330aec['error']+'\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.');!_0x330aec['ok']&&_0x3b94d4['force']&&console['log'](_0x779f66(0xad)+_0x1c622c+':\x20'+_0x330aec[_0x779f66(0x8a)]+'\x20(continuing\x20with\x20--force)');}else{console[_0x779f66(0x82)](_0x4e2b2d['vVRac']),console['log'](_0x4e2b2d['mrKpn']),console[_0x779f66(0x82)](_0x779f66(0xc0));let _0x35943a='',_0x235bcc=![];while(!![]){const _0xfd9ee3=await _0x4f5ff4['prompt']([{'type':_0x4e2b2d['CMBRF'],'name':'baseUrl','message':_0x235bcc?_0x779f66(0xc7):'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','default':_0x4e2b2d['PyrqH'](_0x35943a,'http://localhost:3000')}]);_0x35943a=_0xfd9ee3['baseUrl'];const _0x2b8620=await _0x4e2b2d[_0x779f66(0x93)](checkUrlReachability,_0x35943a);if(_0x2b8620['ok'])break;const _0x2693ae=/^[a-zA-Z][\w+.-]*:\/\//['test'](_0x35943a),_0x137e47=_0x2b8620[_0x779f66(0xa5)]&&!_0x2693ae,_0x4b0be0=_0x137e47?_0x779f66(0xc5)+_0x35943a:null;_0x235bcc=!![],console[_0x779f66(0x82)]('\x0a\x20\x20Could\x20not\x20reach\x20'+_0x35943a+':\x20'+_0x2b8620['error']);_0x4b0be0&&console[_0x779f66(0x82)]('\x20\x20Did\x20you\x20mean\x20'+_0x4b0be0+'?');const {action:_0x14014c}=await _0x4f5ff4[_0x779f66(0x7c)]([{'type':_0x779f66(0xcd),'name':_0x4e2b2d[_0x779f66(0x9b)],'message':_0x779f66(0xe4),'choices':[..._0x4b0be0?[{'name':'Use\x20'+_0x4b0be0,'value':'use_suggestion'}]:[],{'name':'Enter\x20a\x20different\x20URL','value':_0x779f66(0xce)},{'name':'Continue\x20anyway','value':_0x4e2b2d['TvHzz']}]}]);if(_0x4e2b2d[_0x779f66(0xb1)](_0x14014c,'use_suggestion')&&_0x4b0be0){_0x35943a=_0x4b0be0;const _0x1e7fa1=await _0x4e2b2d[_0x779f66(0xd7)](checkUrlReachability,_0x35943a);if(_0x1e7fa1['ok'])break;console[_0x779f66(0x82)]('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0x35943a+':\x20'+_0x1e7fa1['error']);}else{if(_0x14014c===_0x4e2b2d['TvHzz'])break;}}_0x3b94d4={..._0x3b94d4,'url':_0x35943a};}let _0x23fcfb=![];try{_0x23fcfb=await tryAutoRouteCloudProfile(_0x3e0a9a,_0x3b94d4[_0x779f66(0x88)],_0x3b94d4,_0x3f03f0,_0x3b7a04);}catch(_0x444106){console['error']('\x0a\x20\x20Failed\x20to\x20create\x20cloud\x20profile\x20\x22'+_0x3e0a9a+'\x22:\x20'+(_0x444106 instanceof Error?_0x444106['message']:String(_0x444106))),process[_0x779f66(0xbd)](0x1);}!_0x23fcfb&&process['exit'](0x1),await _0x4e2b2d['sTcCX'](markActive,_0x3e0a9a);}
@@ -1 +1 @@
1
- (function(_0x461944,_0x3d570e){var _0x130e18=_0x20be,_0x292a41=_0x461944();while(!![]){try{var _0x246e02=-parseInt(_0x130e18(0x86))/0x1+parseInt(_0x130e18(0x8b))/0x2*(parseInt(_0x130e18(0x84))/0x3)+-parseInt(_0x130e18(0x8e))/0x4+-parseInt(_0x130e18(0x7e))/0x5*(parseInt(_0x130e18(0x8d))/0x6)+parseInt(_0x130e18(0x83))/0x7*(-parseInt(_0x130e18(0x87))/0x8)+-parseInt(_0x130e18(0x85))/0x9+parseInt(_0x130e18(0x80))/0xa;if(_0x246e02===_0x3d570e)break;else _0x292a41['push'](_0x292a41['shift']());}catch(_0x30c412){_0x292a41['push'](_0x292a41['shift']());}}}(_0x2ada,0x7bc8f));function _0x2ada(){var _0x4e6332=['exit','182214RYLvyb','For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','12AhEeyP','3900744XBCgDH','2501665cLbEnv','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','34353280TCqRWA','error','session\x20state\x20for\x20you,\x20so\x20encrypted\x20on-disk\x20auth\x20is\x20unnecessary.\x0a','7hpgHIC','3mYMqtc','3441366GgBTeL','294531kcpuJZ','2933240sWLRGm','To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','\x20\x20https://docs.ranger.net/main/concepts/profiles'];_0x2ada=function(){return _0x4e6332;};return _0x2ada();}function _0x20be(_0x46d66b,_0xbcff52){_0x46d66b=_0x46d66b-0x7e;var _0x2ada3e=_0x2ada();var _0x20be9b=_0x2ada3e[_0x46d66b];return _0x20be9b;}export async function authEncrypt(_0xe28c2){var _0x3b7989=_0x20be,_0xf2082d={'KhDsp':function(_0x4f4f5d,_0x7db304){return _0x4f4f5d+_0x7db304;},'HkfYN':_0x3b7989(0x7f),'fxOPy':_0x3b7989(0x8c)};console[_0x3b7989(0x81)](_0xf2082d['KhDsp']('ranger\x20profile\x20encrypt-auth\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x0a'+_0x3b7989(0x82)+'\x0a'+_0x3b7989(0x88),_0xf2082d['HkfYN'])+'\x0a'+_0xf2082d['fxOPy']+_0x3b7989(0x89)),process[_0x3b7989(0x8a)](0x1);}
1
+ (function(_0x2880c5,_0x446c37){var _0x552bf6=_0x4929,_0x5ccabb=_0x2880c5();while(!![]){try{var _0x23d852=parseInt(_0x552bf6(0x1e8))/0x1*(-parseInt(_0x552bf6(0x1ee))/0x2)+parseInt(_0x552bf6(0x1ea))/0x3*(-parseInt(_0x552bf6(0x1e6))/0x4)+parseInt(_0x552bf6(0x1f0))/0x5+parseInt(_0x552bf6(0x1ec))/0x6*(parseInt(_0x552bf6(0x1e5))/0x7)+-parseInt(_0x552bf6(0x1f3))/0x8*(parseInt(_0x552bf6(0x1e7))/0x9)+parseInt(_0x552bf6(0x1e4))/0xa+parseInt(_0x552bf6(0x1ed))/0xb;if(_0x23d852===_0x446c37)break;else _0x5ccabb['push'](_0x5ccabb['shift']());}catch(_0x25da38){_0x5ccabb['push'](_0x5ccabb['shift']());}}}(_0x2fe7,0x62159));function _0x4929(_0x4401bd,_0x1f6a05){_0x4401bd=_0x4401bd-0x1e4;var _0x2fe704=_0x2fe7();var _0x49293e=_0x2fe704[_0x4401bd];return _0x49293e;}export async function authEncrypt(_0x5e10c9){var _0x40522a=_0x4929,_0x4c2964={'MkPBm':function(_0x269ff4,_0xdc675d){return _0x269ff4+_0xdc675d;},'TtNOV':function(_0x52220b,_0x6e2f80){return _0x52220b+_0x6e2f80;},'xnKtO':function(_0x2a85f7,_0x4cb096){return _0x2a85f7+_0x4cb096;},'LwbRy':_0x40522a(0x1ef),'VZqma':'\x20\x20ranger\x20profile\x20add\x20<name>\x0a'};console['error'](_0x4c2964['MkPBm'](_0x4c2964['TtNOV'](_0x4c2964['xnKtO'](_0x40522a(0x1eb)+_0x4c2964[_0x40522a(0x1f2)]+'\x0a'+'To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a',_0x4c2964['VZqma'])+'\x0a',_0x40522a(0x1e9)),'\x20\x20https://docs.ranger.net/main/concepts/profiles')),process[_0x40522a(0x1f1)](0x1);}function _0x2fe7(){var _0x2da679=['3895570fTajmt','exit','LwbRy','1048ERhudO','1492520uOfZKE','35qkPhuL','4sNRCVD','5391KkgkxG','1aAeVBs','For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','1440501KMkNxq','ranger\x20profile\x20encrypt-auth\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x0a','337494YpuUyG','4504566RAlmZe','1317456HhVIgs','session\x20state\x20for\x20you,\x20so\x20encrypted\x20on-disk\x20auth\x20is\x20unnecessary.\x0a'];_0x2fe7=function(){return _0x2da679;};return _0x2fe7();}
@@ -1 +1 @@
1
- const _0x215ab4=_0x4341;(function(_0x34b5b9,_0x47a132){const _0x4cd418=_0x4341,_0x3d0dc1=_0x34b5b9();while(!![]){try{const _0x33e6e=-parseInt(_0x4cd418(0x161))/0x1*(-parseInt(_0x4cd418(0x16a))/0x2)+-parseInt(_0x4cd418(0x173))/0x3*(parseInt(_0x4cd418(0x166))/0x4)+parseInt(_0x4cd418(0x18d))/0x5+parseInt(_0x4cd418(0x165))/0x6+-parseInt(_0x4cd418(0x18b))/0x7*(-parseInt(_0x4cd418(0x171))/0x8)+parseInt(_0x4cd418(0x17c))/0x9+parseInt(_0x4cd418(0x164))/0xa*(-parseInt(_0x4cd418(0x18c))/0xb);if(_0x33e6e===_0x47a132)break;else _0x3d0dc1['push'](_0x3d0dc1['shift']());}catch(_0x3449de){_0x3d0dc1['push'](_0x3d0dc1['shift']());}}}(_0x3b65,0x8af89));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';function _0x3b65(){const _0x5e8d3e=['27236570bixkdv','3228084SfzJar','8bcSekW','stringify','feature-tracker','win32','2064788OleHwJ','bug-bash','parse','VHGQH','platform','NgKzG','EpzCG','1336QFeQfP','AysWM','218640mfYugL','zeQgi','✓\x20Removed\x20.ranger/\x20directory','PQqRH','Nothing\x20to\x20clean\x20up.\x0a','project','error','BzSCg','vITRc','3466593QSIUhB','LBoji','--scope','mnvJs','user','HxSNn','ignore','log','ClPXa','gPaSG','✓\x20Removed\x20stored\x20credentials','claude','length','rNZJX','✓\x20Removed\x20trailhead\x20marketplace','17619KKUaUU','11tnJCyx','5313590uySWYx','close','\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','✓\x20Removed\x20user\x20skill:\x20','✓\x20Removed\x20OpenCode\x20user\x20skill:\x20','replace','plugin','1QIsgDa','Hegxv','push'];_0x3b65=function(){return _0x5e8d3e;};return _0x3b65();}import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=['ranger',_0x215ab4(0x168),_0x215ab4(0x16b),'e2e-test-recommender'],opencodePluginName='@ranger-testing/opencode-plugin';function _0x4341(_0x3548e8,_0x5328b4){_0x3548e8=_0x3548e8-0x15f;const _0x3b6555=_0x3b65();let _0x43412b=_0x3b6555[_0x3548e8];return _0x43412b;}function parseJsonc(_0x4febc7){const _0x2f4771=_0x215ab4,_0x1d744f=_0x4febc7['replace'](/\/\*[\s\S]*?\*\//g,''),_0x12c455=_0x1d744f[_0x2f4771(0x15f)](/^\s*\/\/.*$/gm,''),_0x4583d9=_0x12c455[_0x2f4771(0x15f)](/,\s*([}\]])/g,'$1');return JSON[_0x2f4771(0x16c)](_0x4583d9);}async function removeOpencodePluginConfig(_0x21a557){const _0xd3f342=_0x215ab4,_0x59f5f6={'bSDpb':function(_0x259cae,_0x2dab16){return _0x259cae(_0x2dab16);},'HnKqn':'utf-8'};if(!_0x59f5f6['bSDpb'](existsSync,_0x21a557))return![];let _0x4046a7;try{const _0x3aec84=await readFile(_0x21a557,_0x59f5f6['HnKqn']);_0x4046a7=parseJsonc(_0x3aec84);}catch{return![];}const _0x909349=Array['isArray'](_0x4046a7[_0xd3f342(0x160)])?_0x4046a7['plugin']:[];if(_0x909349['length']===0x0)return![];const _0x19738a=_0x909349['filter'](_0x13306a=>{if(typeof _0x13306a!=='string')return!![];return _0x13306a!==opencodePluginName;});if(_0x19738a[_0xd3f342(0x188)]===_0x909349[_0xd3f342(0x188)])return![];return _0x19738a['length']===0x0?delete _0x4046a7[_0xd3f342(0x160)]:_0x4046a7['plugin']=_0x19738a,await writeFile(_0x21a557,JSON[_0xd3f342(0x167)](_0x4046a7,null,0x2)+'\x0a'),!![];}async function uninstallClaudePlugin(_0x5a9b91){const _0x2bac91=_0x215ab4,_0x4a1854={'eNgtd':function(_0x4e07f5,_0x40a3bc){return _0x4e07f5===_0x40a3bc;},'CTmyd':_0x2bac91(0x160),'Hegxv':'ranger@trailhead','rNZJX':_0x2bac91(0x182),'laJDd':function(_0x440187){return _0x440187();}};return new Promise(_0x3d9e5a=>{const _0xa49d01=_0x2bac91,_0x230efa={'YvzeO':function(_0x3a92be,_0x453260){return _0x4a1854['eNgtd'](_0x3a92be,_0x453260);}},_0x57c689=[_0x4a1854['CTmyd'],'uninstall',_0x4a1854[_0xa49d01(0x162)]];_0x5a9b91&&_0x57c689[_0xa49d01(0x163)](_0xa49d01(0x17e),_0x5a9b91);const _0x491de1=spawn('claude',_0x57c689,{'stdio':[_0x4a1854['rNZJX'],'ignore',_0x4a1854[_0xa49d01(0x189)]],'cwd':_0x5a9b91?_0x4a1854['laJDd'](getProjectRoot):undefined,'shell':process['platform']===_0xa49d01(0x169)});_0x491de1['on'](_0xa49d01(0x18e),_0x317f92=>{_0x3d9e5a(_0x230efa['YvzeO'](_0x317f92,0x0));}),_0x491de1['on']('error',()=>{_0x3d9e5a(![]);});});}async function removeMarketplace(){const _0x30bea0=_0x215ab4,_0x1ce3f6={'LelNi':function(_0x2f943a,_0x1b7947){return _0x2f943a(_0x1b7947);},'pRrRJ':function(_0x39cba6,_0x390737,_0x25d6df,_0x2ce2ac){return _0x39cba6(_0x390737,_0x25d6df,_0x2ce2ac);},'uVnhw':'remove','CeJYF':'trailhead','NgKzG':_0x30bea0(0x182),'HxSNn':function(_0x3f65e5,_0x311eff){return _0x3f65e5===_0x311eff;},'MRyTu':_0x30bea0(0x169),'KRglh':_0x30bea0(0x179)};return new Promise(_0x50040a=>{const _0x1c29bb=_0x30bea0,_0x41006b=_0x1ce3f6['pRrRJ'](spawn,_0x1c29bb(0x187),['plugin','marketplace',_0x1ce3f6['uVnhw'],_0x1ce3f6['CeJYF']],{'stdio':[_0x1ce3f6[_0x1c29bb(0x16f)],_0x1ce3f6[_0x1c29bb(0x16f)],_0x1ce3f6['NgKzG']],'shell':_0x1ce3f6[_0x1c29bb(0x181)](process[_0x1c29bb(0x16e)],_0x1ce3f6['MRyTu'])});_0x41006b['on']('close',_0x3920f3=>{_0x1ce3f6['LelNi'](_0x50040a,_0x3920f3===0x0);}),_0x41006b['on'](_0x1ce3f6['KRglh'],()=>{_0x50040a(![]);});});}export async function clean(){const _0x56ca59=_0x215ab4,_0x5374cd={'ClPXa':function(_0x7ac8f){return _0x7ac8f();},'AysWM':function(_0x309322,_0x38efff){return _0x309322(_0x38efff);},'LBoji':function(_0x54843b,_0x4127d7){return _0x54843b(_0x4127d7);},'MPiVl':function(_0x2268ab,_0x1f9dbf,_0x458360){return _0x2268ab(_0x1f9dbf,_0x458360);},'gPaSG':_0x56ca59(0x175),'mnvJs':function(_0x5c0a80){return _0x5c0a80();},'zeQgi':function(_0x141771,_0x1bb68d,_0x47a55e){return _0x141771(_0x1bb68d,_0x47a55e);},'vITRc':function(_0x35471a,_0x5351fd,_0x6e3788){return _0x35471a(_0x5351fd,_0x6e3788);},'RhTGW':_0x56ca59(0x180),'ULHph':function(_0x4ae161,_0x1ea663){return _0x4ae161(_0x1ea663);},'EpzCG':'opencode.json','WIUfe':'✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','sWtJa':'✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','PQqRH':function(_0x339c75){return _0x339c75();},'BzSCg':'\x0a✅\x20Cleanup\x20complete!\x0a','VHGQH':_0x56ca59(0x177)};console['log'](_0x56ca59(0x18f));let _0x17c2a6=![];try{await _0x5374cd[_0x56ca59(0x184)](deleteAllCredentials),console[_0x56ca59(0x183)](_0x56ca59(0x186)),_0x17c2a6=!![];}catch{}const _0x92ae32=getCacheFile();_0x5374cd['AysWM'](existsSync,_0x92ae32)&&(await rm(_0x92ae32),_0x17c2a6=!![]);const _0x32dda7=_0x5374cd[_0x56ca59(0x184)](getRangerDir);_0x5374cd[_0x56ca59(0x17d)](existsSync,_0x32dda7)&&(await _0x5374cd['MPiVl'](rm,_0x32dda7,{'recursive':!![]}),console['log'](_0x5374cd[_0x56ca59(0x185)]),_0x17c2a6=!![]);const _0x300f35=_0x5374cd[_0x56ca59(0x17f)](getProjectSkillsDir);for(const _0x101c72 of skillsToRemove){const _0x537d44=_0x5374cd['zeQgi'](join,_0x300f35,_0x101c72);existsSync(_0x537d44)&&(await rm(_0x537d44,{'recursive':!![]}),console[_0x56ca59(0x183)]('✓\x20Removed\x20project\x20skill:\x20'+_0x101c72),_0x17c2a6=!![]);}const _0x61762f=getUserSkillsDir();for(const _0x2e2f96 of skillsToRemove){const _0x3c5bd3=_0x5374cd[_0x56ca59(0x174)](join,_0x61762f,_0x2e2f96);existsSync(_0x3c5bd3)&&(await _0x5374cd[_0x56ca59(0x17b)](rm,_0x3c5bd3,{'recursive':!![]}),console[_0x56ca59(0x183)](_0x56ca59(0x190)+_0x2e2f96),_0x17c2a6=!![]);}const _0x2faeaa=_0x5374cd[_0x56ca59(0x172)](getOpencodeSkillsDir,_0x56ca59(0x178));for(const _0x3b9e56 of skillsToRemove){const _0x551f5e=join(_0x2faeaa,_0x3b9e56);existsSync(_0x551f5e)&&(await rm(_0x551f5e,{'recursive':!![]}),console['log']('✓\x20Removed\x20OpenCode\x20project\x20skill:\x20'+_0x3b9e56),_0x17c2a6=!![]);}const _0x2c1054=_0x5374cd['AysWM'](getOpencodeSkillsDir,_0x5374cd['RhTGW']);for(const _0x24f7bd of skillsToRemove){const _0x1eb939=_0x5374cd['MPiVl'](join,_0x2c1054,_0x24f7bd);_0x5374cd['ULHph'](existsSync,_0x1eb939)&&(await rm(_0x1eb939,{'recursive':!![]}),console['log'](_0x56ca59(0x191)+_0x24f7bd),_0x17c2a6=!![]);}const _0x3a629e=_0x5374cd[_0x56ca59(0x174)](join,getOpencodeConfigDir(_0x56ca59(0x178)),_0x5374cd['EpzCG']);await _0x5374cd['LBoji'](removeOpencodePluginConfig,_0x3a629e)&&(console[_0x56ca59(0x183)](_0x5374cd['WIUfe']),_0x17c2a6=!![]);const _0x4e64b5=join(getOpencodeConfigDir(_0x56ca59(0x180)),_0x5374cd[_0x56ca59(0x170)]);await removeOpencodePluginConfig(_0x4e64b5)&&(console[_0x56ca59(0x183)](_0x5374cd['sWtJa']),_0x17c2a6=!![]);const _0x3d14d0=await _0x5374cd[_0x56ca59(0x176)](uninstallClaudePlugin);_0x3d14d0&&(console[_0x56ca59(0x183)]('✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)'),_0x17c2a6=!![]);const _0x532484=await _0x5374cd['AysWM'](uninstallClaudePlugin,_0x56ca59(0x178));_0x532484&&(console['log']('✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)'),_0x17c2a6=!![]);const _0x45b613=await removeMarketplace();_0x45b613&&(console[_0x56ca59(0x183)](_0x56ca59(0x18a)),_0x17c2a6=!![]),_0x17c2a6?console[_0x56ca59(0x183)](_0x5374cd[_0x56ca59(0x17a)]):console[_0x56ca59(0x183)](_0x5374cd[_0x56ca59(0x16d)]);}
1
+ const _0x3a0954=_0x2438;(function(_0x4212a8,_0x1cda0f){const _0x262667=_0x2438,_0x3bc36e=_0x4212a8();while(!![]){try{const _0x484dee=-parseInt(_0x262667(0x13f))/0x1*(-parseInt(_0x262667(0x13a))/0x2)+parseInt(_0x262667(0x125))/0x3*(-parseInt(_0x262667(0x130))/0x4)+-parseInt(_0x262667(0x12c))/0x5+-parseInt(_0x262667(0x138))/0x6+parseInt(_0x262667(0x120))/0x7+-parseInt(_0x262667(0x11e))/0x8*(-parseInt(_0x262667(0x12b))/0x9)+parseInt(_0x262667(0x139))/0xa;if(_0x484dee===_0x1cda0f)break;else _0x3bc36e['push'](_0x3bc36e['shift']());}catch(_0x2e49d4){_0x3bc36e['push'](_0x3bc36e['shift']());}}}(_0x146a,0x4dda7));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';function _0x2438(_0x579244,_0x956c2d){_0x579244=_0x579244-0x118;const _0x146af8=_0x146a();let _0x24388f=_0x146af8[_0x579244];return _0x24388f;}import{spawn}from'child_process';import{deleteAllCredentials}from'./utils/keychain.js';function _0x146a(){const _0x13daea=['e2e-test-recommender','gYfPW','uninstall','✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','219320LtddIe','zDWID','ignore','stcgg','utf-8','plugin','✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','platform','uAMQF','oLwxx','bug-bash','hjLUR','8KyJxGM','error','2618763JCEyKw','dtTyS','length','isArray','@ranger-testing/opencode-plugin','12NlqiFK','close','ranger@trailhead','replace','cSdcV','sIMqb','3175173LjvRmt','2645475jgnJoZ','ihpVP','aFZSc','bjsfy','536348yWcZQo','filter','aKNQy','eOjaU','ZkYMc','✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','log','user','2149932hdpcvi','5771060TAAjdu','4bqxYis'];_0x146a=function(){return _0x13daea;};return _0x146a();}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','feature-tracker',_0x3a0954(0x11c),_0x3a0954(0x13b)],opencodePluginName=_0x3a0954(0x124);function parseJsonc(_0x235821){const _0x9c9f3d=_0x3a0954,_0x429e33=_0x235821[_0x9c9f3d(0x128)](/\/\*[\s\S]*?\*\//g,''),_0x47a9c5=_0x429e33[_0x9c9f3d(0x128)](/^\s*\/\/.*$/gm,''),_0x2c2230=_0x47a9c5['replace'](/,\s*([}\]])/g,'$1');return JSON['parse'](_0x2c2230);}async function removeOpencodePluginConfig(_0x93ce21){const _0x2f748e=_0x3a0954,_0x4ccaff={'oLwxx':'string','zDWID':_0x2f748e(0x143),'hCJKQ':function(_0x3a7636,_0x4118c8){return _0x3a7636(_0x4118c8);},'dtTyS':function(_0xed9555,_0x5ddafd){return _0xed9555===_0x5ddafd;},'aKNQy':function(_0x1817e8,_0x5620b6,_0x8062e0){return _0x1817e8(_0x5620b6,_0x8062e0);},'ZOkGz':function(_0x1bf73d,_0x50caab){return _0x1bf73d+_0x50caab;}};if(!existsSync(_0x93ce21))return![];let _0x2c50a4;try{const _0xc945b1=await readFile(_0x93ce21,_0x4ccaff[_0x2f748e(0x140)]);_0x2c50a4=_0x4ccaff['hCJKQ'](parseJsonc,_0xc945b1);}catch{return![];}const _0x5338dc=Array[_0x2f748e(0x123)](_0x2c50a4[_0x2f748e(0x144)])?_0x2c50a4['plugin']:[];if(_0x4ccaff[_0x2f748e(0x121)](_0x5338dc[_0x2f748e(0x122)],0x0))return![];const _0x149986=_0x5338dc[_0x2f748e(0x131)](_0x42b690=>{const _0x377a58=_0x2f748e;if(typeof _0x42b690!==_0x4ccaff[_0x377a58(0x11b)])return!![];return _0x42b690!==opencodePluginName;});if(_0x149986[_0x2f748e(0x122)]===_0x5338dc[_0x2f748e(0x122)])return![];return _0x149986[_0x2f748e(0x122)]===0x0?delete _0x2c50a4[_0x2f748e(0x144)]:_0x2c50a4[_0x2f748e(0x144)]=_0x149986,await _0x4ccaff[_0x2f748e(0x132)](writeFile,_0x93ce21,_0x4ccaff['ZOkGz'](JSON['stringify'](_0x2c50a4,null,0x2),'\x0a')),!![];}async function uninstallClaudePlugin(_0x8b8fa1){const _0x8a323d=_0x3a0954,_0x1df004={'cSdcV':'plugin','uAMQF':_0x8a323d(0x127),'gYfPW':function(_0x10e603,_0x2f76dc,_0x50a7bf,_0x295f0b){return _0x10e603(_0x2f76dc,_0x50a7bf,_0x295f0b);},'BbHPV':'claude','bHtyf':function(_0x197994){return _0x197994();},'sIMqb':function(_0x58b820,_0x1f303b){return _0x58b820===_0x1f303b;},'PrOGd':'win32','oTOdq':_0x8a323d(0x126),'WJccF':_0x8a323d(0x11f)};return new Promise(_0x425502=>{const _0x439d8a=_0x8a323d,_0x3c9f5b=[_0x1df004[_0x439d8a(0x129)],_0x439d8a(0x13d),_0x1df004[_0x439d8a(0x11a)]];_0x8b8fa1&&_0x3c9f5b['push']('--scope',_0x8b8fa1);const _0x16f0d6=_0x1df004[_0x439d8a(0x13c)](spawn,_0x1df004['BbHPV'],_0x3c9f5b,{'stdio':['ignore','ignore','ignore'],'cwd':_0x8b8fa1?_0x1df004['bHtyf'](getProjectRoot):undefined,'shell':_0x1df004[_0x439d8a(0x12a)](process[_0x439d8a(0x119)],_0x1df004['PrOGd'])});_0x16f0d6['on'](_0x1df004['oTOdq'],_0x492637=>{_0x425502(_0x492637===0x0);}),_0x16f0d6['on'](_0x1df004['WJccF'],()=>{_0x425502(![]);});});}async function removeMarketplace(){const _0x2cb8d6=_0x3a0954,_0x59e2ce={'XDjXU':function(_0x174894,_0x8fc3df){return _0x174894===_0x8fc3df;},'GzMDS':'claude','eOjaU':_0x2cb8d6(0x144),'OGuDo':'win32','ZGOpD':_0x2cb8d6(0x126),'tdxgE':_0x2cb8d6(0x11f)};return new Promise(_0x3949a6=>{const _0x5317dd=_0x2cb8d6,_0x1a3819={'hjLUR':function(_0x5d1bcd,_0x168d25){return _0x59e2ce['XDjXU'](_0x5d1bcd,_0x168d25);}},_0x19594a=spawn(_0x59e2ce['GzMDS'],[_0x59e2ce[_0x5317dd(0x133)],'marketplace','remove','trailhead'],{'stdio':['ignore',_0x5317dd(0x141),_0x5317dd(0x141)],'shell':process['platform']===_0x59e2ce['OGuDo']});_0x19594a['on'](_0x59e2ce['ZGOpD'],_0x1efc23=>{const _0x1f1281=_0x5317dd;_0x3949a6(_0x1a3819[_0x1f1281(0x11d)](_0x1efc23,0x0));}),_0x19594a['on'](_0x59e2ce['tdxgE'],()=>{_0x3949a6(![]);});});}export async function clean(){const _0x41684f=_0x3a0954,_0x425be={'aFZSc':function(_0x26f8e8){return _0x26f8e8();},'tyLSp':'✓\x20Removed\x20stored\x20credentials','bjsfy':function(_0x4afef0,_0x475570){return _0x4afef0(_0x475570);},'XGtTc':function(_0x27bb8c,_0x31592c,_0x7f8a14){return _0x27bb8c(_0x31592c,_0x7f8a14);},'IeijF':function(_0x5764ea,_0xe795ae,_0xf5373c){return _0x5764ea(_0xe795ae,_0xf5373c);},'eREfO':function(_0xc583ae,_0x1bfb4a){return _0xc583ae(_0x1bfb4a);},'KXaqD':function(_0x56f124,_0x116552,_0x35fce6){return _0x56f124(_0x116552,_0x35fce6);},'ihpVP':_0x41684f(0x137),'HfSXy':function(_0x2f4ed8,_0x2eb4df,_0x26040e){return _0x2f4ed8(_0x2eb4df,_0x26040e);},'qFhOK':'project','ZkYMc':'opencode.json','stcgg':_0x41684f(0x135),'rRVpj':'✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','GdjfL':'✓\x20Removed\x20trailhead\x20marketplace','tvrtq':'Nothing\x20to\x20clean\x20up.\x0a'};console[_0x41684f(0x136)]('\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a');let _0x2d318b=![];try{await _0x425be[_0x41684f(0x12e)](deleteAllCredentials),console[_0x41684f(0x136)](_0x425be['tyLSp']),_0x2d318b=!![];}catch{}const _0x11a609=getCacheFile();existsSync(_0x11a609)&&(await _0x425be[_0x41684f(0x12f)](rm,_0x11a609),_0x2d318b=!![]);const _0x227a1c=_0x425be[_0x41684f(0x12e)](getRangerDir);existsSync(_0x227a1c)&&(await rm(_0x227a1c,{'recursive':!![]}),console[_0x41684f(0x136)]('✓\x20Removed\x20.ranger/\x20directory'),_0x2d318b=!![]);const _0x252ac4=getProjectSkillsDir();for(const _0x54844f of skillsToRemove){const _0x13c145=_0x425be['XGtTc'](join,_0x252ac4,_0x54844f);_0x425be['bjsfy'](existsSync,_0x13c145)&&(await _0x425be['IeijF'](rm,_0x13c145,{'recursive':!![]}),console[_0x41684f(0x136)]('✓\x20Removed\x20project\x20skill:\x20'+_0x54844f),_0x2d318b=!![]);}const _0x3f047b=getUserSkillsDir();for(const _0x4d0178 of skillsToRemove){const _0x2969ed=join(_0x3f047b,_0x4d0178);_0x425be['eREfO'](existsSync,_0x2969ed)&&(await _0x425be['KXaqD'](rm,_0x2969ed,{'recursive':!![]}),console['log']('✓\x20Removed\x20user\x20skill:\x20'+_0x4d0178),_0x2d318b=!![]);}const _0x5be7db=_0x425be[_0x41684f(0x12f)](getOpencodeSkillsDir,'project');for(const _0x54b21f of skillsToRemove){const _0x4986d1=join(_0x5be7db,_0x54b21f);existsSync(_0x4986d1)&&(await rm(_0x4986d1,{'recursive':!![]}),console[_0x41684f(0x136)]('✓\x20Removed\x20OpenCode\x20project\x20skill:\x20'+_0x54b21f),_0x2d318b=!![]);}const _0xc9c041=_0x425be['eREfO'](getOpencodeSkillsDir,_0x425be[_0x41684f(0x12d)]);for(const _0x44b40f of skillsToRemove){const _0x4a2098=join(_0xc9c041,_0x44b40f);existsSync(_0x4a2098)&&(await _0x425be['HfSXy'](rm,_0x4a2098,{'recursive':!![]}),console[_0x41684f(0x136)]('✓\x20Removed\x20OpenCode\x20user\x20skill:\x20'+_0x44b40f),_0x2d318b=!![]);}const _0x549438=join(_0x425be['eREfO'](getOpencodeConfigDir,_0x425be['qFhOK']),_0x425be[_0x41684f(0x134)]);await removeOpencodePluginConfig(_0x549438)&&(console[_0x41684f(0x136)](_0x41684f(0x118)),_0x2d318b=!![]);const _0x187e04=join(getOpencodeConfigDir('user'),_0x425be[_0x41684f(0x134)]);await _0x425be['bjsfy'](removeOpencodePluginConfig,_0x187e04)&&(console[_0x41684f(0x136)](_0x425be[_0x41684f(0x142)]),_0x2d318b=!![]);const _0x461ddd=await uninstallClaudePlugin();_0x461ddd&&(console['log'](_0x41684f(0x13e)),_0x2d318b=!![]);const _0x5f4e75=await uninstallClaudePlugin('project');_0x5f4e75&&(console['log'](_0x425be['rRVpj']),_0x2d318b=!![]);const _0x2307ec=await _0x425be[_0x41684f(0x12e)](removeMarketplace);_0x2307ec&&(console[_0x41684f(0x136)](_0x425be['GdjfL']),_0x2d318b=!![]),_0x2d318b?console[_0x41684f(0x136)]('\x0a✅\x20Cleanup\x20complete!\x0a'):console[_0x41684f(0x136)](_0x425be['tvrtq']);}
@@ -1 +1 @@
1
- const _0x414af5=_0x453f;(function(_0x1945b4,_0x43547f){const _0xa67db6=_0x453f,_0x432211=_0x1945b4();while(!![]){try{const _0x37830b=parseInt(_0xa67db6(0x14c))/0x1+-parseInt(_0xa67db6(0x135))/0x2+parseInt(_0xa67db6(0x158))/0x3+parseInt(_0xa67db6(0x13d))/0x4+parseInt(_0xa67db6(0x15a))/0x5*(-parseInt(_0xa67db6(0x14a))/0x6)+parseInt(_0xa67db6(0x12c))/0x7*(parseInt(_0xa67db6(0x159))/0x8)+-parseInt(_0xa67db6(0x154))/0x9;if(_0x37830b===_0x43547f)break;else _0x432211['push'](_0x432211['shift']());}catch(_0x4cbbea){_0x432211['push'](_0x432211['shift']());}}}(_0x1183,0x7dbf3));import{existsSync}from'fs';import{loadSettings,getNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';import{fetchCloudProfile}from'./utils/cloudProfile.js';import{mergeCloudProfileSettings,readProfileOverrides,resetProfileOverrides,setProfileOverride,unsetProfileOverride}from'./utils/projectsConfig.js';const BOOLEAN_KEYS=['headless','allowInsecureLocalhost',_0x414af5(0x134)];function parseLocalValue(_0x939819,_0x28af8b){const _0x2d5540=_0x414af5,_0x57e9e0={'TsXsM':function(_0x46b49a,_0x3447e8){return _0x46b49a===_0x3447e8;},'KjtvQ':_0x2d5540(0x14d)};if(BOOLEAN_KEYS['includes'](_0x939819)){if(_0x57e9e0['TsXsM'](_0x28af8b,_0x57e9e0[_0x2d5540(0x140)]))return!![];if(_0x28af8b===_0x2d5540(0x146))return![];throw new Error(_0x2d5540(0x130)+_0x939819+':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22');}return _0x28af8b;}function parseOverrideValue(_0x1a2b8a){const _0x41252d=_0x414af5,_0x2d4f80={'tCpJk':function(_0x237b01,_0x404246){return _0x237b01===_0x404246;},'Bqvrn':'true','pUuTJ':function(_0x522cad,_0x15ca77){return _0x522cad(_0x15ca77);}};if(_0x2d4f80[_0x41252d(0x137)](_0x1a2b8a,_0x2d4f80[_0x41252d(0x157)]))return!![];if(_0x1a2b8a==='false')return![];if(_0x2d4f80[_0x41252d(0x137)](_0x1a2b8a,_0x41252d(0x12a)))return null;if(_0x2d4f80['tCpJk'](_0x1a2b8a,_0x41252d(0x136)))return undefined;if(/^-?\d+$/[_0x41252d(0x139)](_0x1a2b8a)){const _0x5b4895=Number(_0x1a2b8a);if(Number['isSafeInteger'](_0x5b4895))return _0x5b4895;}if(/^-?\d+\.\d+$/[_0x41252d(0x139)](_0x1a2b8a)){const _0x1b82b3=_0x2d4f80['pUuTJ'](Number,_0x1a2b8a);if(!Number[_0x41252d(0x147)](_0x1b82b3))return _0x1b82b3;}const _0x55cbfe=_0x1a2b8a['trim']();if(_0x55cbfe[_0x41252d(0x141)]('{')&&_0x55cbfe[_0x41252d(0x14b)]('}')||_0x55cbfe[_0x41252d(0x141)]('[')&&_0x55cbfe['endsWith'](']'))try{return JSON['parse'](_0x55cbfe);}catch{}return _0x1a2b8a;}async function resolveProfileTarget(_0x2430c0){const _0x4751c0=_0x414af5,_0x1a2088={'awYLa':function(_0x514bb4,_0x14f6be){return _0x514bb4(_0x14f6be);},'mIXlz':function(_0x46c165,_0x5e5dea){return _0x46c165(_0x5e5dea);}},_0x57f26f=_0x1a2088[_0x4751c0(0x13f)](existsSync,_0x1a2088[_0x4751c0(0x150)](getEnvDir,_0x2430c0));let _0x580341=![];try{const _0x219dbc=await _0x1a2088[_0x4751c0(0x150)](fetchCloudProfile,_0x2430c0);_0x580341=_0x1a2088[_0x4751c0(0x150)](Boolean,_0x219dbc);}catch{}if(_0x580341)return{'kind':'cloud','alsoExistsElsewhere':_0x57f26f};if(_0x57f26f)return{'kind':_0x4751c0(0x13a),'alsoExistsElsewhere':![]};throw new Error(_0x4751c0(0x15d)+_0x2430c0+_0x4751c0(0x12b)+_0x2430c0);}function printDualExistsHint(_0x10ec2d){const _0x5d8a5b=_0x414af5;console[_0x5d8a5b(0x155)](_0x5d8a5b(0x131)+_0x10ec2d+'\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.');}function getProjectPath(){return process['cwd']();}async function loadEffectiveCloudSettings(_0x4eb853){const _0x12d150=_0x414af5,_0x39532e={'yKEfX':function(_0x4c8cf2,_0x2d8786){return _0x4c8cf2(_0x2d8786);},'BORAR':function(_0x24e815,_0x4ffdf2,_0x216e2f){return _0x24e815(_0x4ffdf2,_0x216e2f);},'BgVNa':function(_0x37e2f6,_0xe43fe6){return _0x37e2f6??_0xe43fe6;}},_0x48e718=await _0x39532e['yKEfX'](fetchCloudProfile,_0x4eb853),_0x49a3e0=readProfileOverrides(getProjectPath(),_0x4eb853);return _0x39532e[_0x12d150(0x138)](mergeCloudProfileSettings,_0x48e718?.['settings']??{},_0x39532e[_0x12d150(0x151)](_0x49a3e0,undefined));}export async function configSet(_0xd48893,_0x2301d4,_0x592112){const _0x57da29=_0x414af5,_0x133e71={'KoQhq':function(_0x2082e8,_0x311987){return _0x2082e8===_0x311987;},'DRLHT':function(_0x3272c0,_0x3463c8,_0x2eb6e1){return _0x3272c0(_0x3463c8,_0x2eb6e1);},'tvhhG':function(_0xfac0ef,_0x18c7a2,_0x45f679,_0x3f9051,_0x221ffd){return _0xfac0ef(_0x18c7a2,_0x45f679,_0x3f9051,_0x221ffd);}},_0x5e81da=await resolveProfileTarget(_0xd48893);if(_0x133e71[_0x57da29(0x132)](_0x5e81da[_0x57da29(0x143)],'cloud')){if(_0x5e81da['alsoExistsElsewhere'])printDualExistsHint(_0xd48893);const _0x13e1f3=parseOverrideValue(_0x592112);setProfileOverride(getProjectPath(),_0xd48893,_0x2301d4,_0x13e1f3),console['log']('Set\x20'+_0x2301d4+_0x57da29(0x133)+JSON['stringify'](_0x13e1f3)+'\x20for\x20\x22'+_0xd48893+'\x22');return;}const _0x51b792=_0x133e71[_0x57da29(0x14e)](parseLocalValue,_0x2301d4,_0x592112);_0x133e71['tvhhG'](setProfileOverride,getProjectPath(),_0xd48893,_0x2301d4,_0x51b792),console[_0x57da29(0x155)](_0x57da29(0x12d)+_0x2301d4+'\x20=\x20'+_0x51b792+_0x57da29(0x15c)+_0xd48893+'\x22');}function _0x1183(){const _0xbf308c=['zrlvD','No\x20configuration\x20set\x20for\x20\x22','Invalid\x20value\x20for\x20','\x20\x20Note:\x20\x22','KoQhq','\x20=\x20','forceLogin','2041166hqalxP','undefined','tCpJk','BORAR','test','local','WAZyU','(not\x20set)','4118192uyZDKV','Key\x20\x22','awYLa','KjtvQ','startsWith','zXxgP','kind','\x20<key>\x22\x20to\x20remove\x20individual\x20values.','AWzlO','false','isNaN','nzvFL','object','6EvAKbl','endsWith','973958FTTzPN','true','DRLHT','\x22\x20not\x20found','mIXlz','BgVNa','Removed\x20','cloud','15635988FZrgpB','log','hZrDf','Bqvrn','2245335aCGpdR','48EXJdNB','228385nKpHLt','IxovJ','\x20for\x20\x22','Profile\x20\x22','null','\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20','661150urXMCo','Set\x20'];_0x1183=function(){return _0xbf308c;};return _0x1183();}function _0x453f(_0x497f59,_0x586546){_0x497f59=_0x497f59-0x12a;const _0x11839f=_0x1183();let _0x453f24=_0x11839f[_0x497f59];return _0x453f24;}export async function configGet(_0x17bdc2,_0x3f91f2){const _0x4b033e=_0x414af5,_0x486779={'zrlvD':function(_0x2f2f45,_0x9be117){return _0x2f2f45(_0x9be117);},'AWzlO':function(_0x65cbbd,_0x186441){return _0x65cbbd===_0x186441;},'USyRT':'cloud','IxovJ':function(_0x3bc753,_0x1f89d1,_0x28dba7){return _0x3bc753(_0x1f89d1,_0x28dba7);},'XnBIf':function(_0x17b15f,_0x2e7915){return _0x17b15f===_0x2e7915;},'Kweso':_0x4b033e(0x149)},_0x2c27d9=await _0x486779['zrlvD'](resolveProfileTarget,_0x17bdc2);if(_0x486779[_0x4b033e(0x145)](_0x2c27d9['kind'],_0x486779['USyRT'])){const _0x1fcd1d=await loadEffectiveCloudSettings(_0x17bdc2),_0x97b441=getNestedValue(_0x1fcd1d,_0x3f91f2);if(_0x97b441===undefined)console['log']('(not\x20set)');else _0x486779[_0x4b033e(0x145)](typeof _0x97b441,'object')?console[_0x4b033e(0x155)](JSON['stringify'](_0x97b441,null,0x2)):console['log'](_0x97b441);return;}const _0x2274ee=await _0x486779[_0x4b033e(0x12e)](loadSettings,_0x17bdc2),_0x302a56=_0x486779[_0x4b033e(0x15b)](getNestedValue,_0x2274ee,_0x3f91f2);if(_0x486779['XnBIf'](_0x302a56,undefined))console[_0x4b033e(0x155)](_0x4b033e(0x13c));else typeof _0x302a56===_0x486779['Kweso']?console[_0x4b033e(0x155)](JSON['stringify'](_0x302a56,null,0x2)):console[_0x4b033e(0x155)](_0x302a56);}export async function configList(_0x4c5095){const _0x588c7d=_0x414af5,_0x3536ef={'WAZyU':function(_0x537b25,_0x4a6a90){return _0x537b25(_0x4a6a90);},'ryway':'cloud','OLmgO':function(_0x5c0e2d,_0x322b2c){return _0x5c0e2d===_0x322b2c;}},_0x564ad6=await _0x3536ef[_0x588c7d(0x13b)](resolveProfileTarget,_0x4c5095);if(_0x564ad6[_0x588c7d(0x143)]===_0x3536ef['ryway']){const _0x42cdb4=await loadEffectiveCloudSettings(_0x4c5095);if(!_0x42cdb4||_0x3536ef['OLmgO'](Object['keys'](_0x42cdb4)['length'],0x0)){console[_0x588c7d(0x155)](_0x588c7d(0x12f)+_0x4c5095+'\x22');return;}console[_0x588c7d(0x155)](JSON['stringify'](_0x42cdb4,null,0x2));return;}const _0xaa521d=getSettingsPath(_0x4c5095);if(!existsSync(_0xaa521d)){console['log'](_0x588c7d(0x12f)+_0x4c5095+'\x22');return;}const _0x30eb7b=await _0x3536ef['WAZyU'](loadSettings,_0x4c5095),_0x3e1a79=formatSettings(_0x30eb7b);!_0x3e1a79?console['log'](_0x588c7d(0x12f)+_0x4c5095+'\x22'):console['log'](_0x3e1a79);}export async function configUnset(_0x9cf574,_0x140620){const _0x4296cb=_0x414af5,_0x463565={'zXxgP':function(_0x1db7f6,_0xdebfd0){return _0x1db7f6===_0xdebfd0;},'hZrDf':function(_0xe663d4,_0x4b5a4f){return _0xe663d4(_0x4b5a4f);}},_0x14ca20=await resolveProfileTarget(_0x9cf574);if(_0x463565[_0x4296cb(0x142)](_0x14ca20[_0x4296cb(0x143)],_0x4296cb(0x153))){if(_0x14ca20['alsoExistsElsewhere'])_0x463565[_0x4296cb(0x156)](printDualExistsHint,_0x9cf574);const _0x2809d5=unsetProfileOverride(getProjectPath(),_0x9cf574,_0x140620);_0x2809d5?console[_0x4296cb(0x155)](_0x4296cb(0x152)+_0x140620+'\x20for\x20\x22'+_0x9cf574+'\x22'):console[_0x4296cb(0x155)]('Key\x20\x22'+_0x140620+_0x4296cb(0x14f));return;}const _0xb18b86=unsetProfileOverride(getProjectPath(),_0x9cf574,_0x140620);if(_0xb18b86){console['log'](_0x4296cb(0x152)+_0x140620);return;}const _0xcfa632=await loadSettings(_0x9cf574),_0x2a9d8c=deleteNestedValue(_0xcfa632,_0x140620);_0x2a9d8c?console['log'](_0x4296cb(0x13e)+_0x140620+'\x22\x20lives\x20in\x20the\x20legacy\x20settings\x20file\x20for\x20\x22'+_0x9cf574+'\x22\x20and\x20cannot\x20be\x20unset;\x20the\x20legacy\x20tree\x20is\x20read-only\x20under\x20cloud\x20profiles.'):console['log']('Key\x20\x22'+_0x140620+_0x4296cb(0x14f));}export async function configReset(_0x47fde8){const _0x6b5492=_0x414af5,_0x27fdb7={'nzvFL':function(_0x21c2ed,_0xb5d23e,_0x55cf6c){return _0x21c2ed(_0xb5d23e,_0x55cf6c);}},_0x4418e4=await resolveProfileTarget(_0x47fde8);if(_0x4418e4[_0x6b5492(0x143)]==='cloud'){_0x27fdb7[_0x6b5492(0x148)](resetProfileOverrides,getProjectPath(),_0x47fde8),console[_0x6b5492(0x155)]('Cleared\x20local\x20overrides\x20for\x20\x22'+_0x47fde8+'\x22');return;}console['log']('\x22'+_0x47fde8+'\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20'+_0x47fde8+_0x6b5492(0x144));}
1
+ const _0x4a948e=_0x38d0;(function(_0x3fdfa3,_0x48f419){const _0x539992=_0x38d0,_0x5cef93=_0x3fdfa3();while(!![]){try{const _0x1223d1=parseInt(_0x539992(0xad))/0x1*(-parseInt(_0x539992(0xb3))/0x2)+parseInt(_0x539992(0xb7))/0x3+-parseInt(_0x539992(0xb6))/0x4*(-parseInt(_0x539992(0xb1))/0x5)+parseInt(_0x539992(0xa3))/0x6*(-parseInt(_0x539992(0xce))/0x7)+-parseInt(_0x539992(0xb5))/0x8+parseInt(_0x539992(0xc6))/0x9+-parseInt(_0x539992(0xcd))/0xa*(-parseInt(_0x539992(0xcf))/0xb);if(_0x1223d1===_0x48f419)break;else _0x5cef93['push'](_0x5cef93['shift']());}catch(_0x4411b7){_0x5cef93['push'](_0x5cef93['shift']());}}}(_0xc77a,0x4554d));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 _0xc77a(){const _0x2657d9=['Removed\x20','kind','FTHgx','\x20for\x20\x22','settings','\x20=\x20','Evzmj','startsWith','WHlws','279704TDfIPy','zBXAh','No\x20configuration\x20set\x20for\x20\x22','length','73210cpjWEH','KXLTo','2BZIPGs','iIJJf','2716600LFxsyE','60lXKjWX','330750MgxWXv','parse','alsoExistsElsewhere','Key\x20\x22','log',':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22','OhaIh','allowInsecureLocalhost','(not\x20set)','cloud','\x22\x20not\x20found','trim','forceLogin','mTHSu','object','2750958Obteby','Set\x20','EIdbe','test','null','\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20','snAFp','90DyRMbM','7woMiNy','520113dqeWmV','Invalid\x20value\x20for\x20','tptxa','\x20<key>\x22\x20to\x20remove\x20individual\x20values.','stringify','OGplr','946974WCblmk'];_0xc77a=function(){return _0x2657d9;};return _0xc77a();}const BOOLEAN_KEYS=['headless',_0x4a948e(0xbe),_0x4a948e(0xc3)];function parseLocalValue(_0x172676,_0x3275c0){const _0x4f4212=_0x4a948e,_0x8c228c={'tptxa':'true'};if(BOOLEAN_KEYS['includes'](_0x172676)){if(_0x3275c0===_0x8c228c[_0x4f4212(0xd1)])return!![];if(_0x3275c0==='false')return![];throw new Error(_0x4f4212(0xd0)+_0x172676+_0x4f4212(0xbc));}return _0x3275c0;}function _0x38d0(_0x3c7b88,_0x38e120){_0x3c7b88=_0x3c7b88-0xa0;const _0xc77a36=_0xc77a();let _0x38d05f=_0xc77a36[_0x3c7b88];return _0x38d05f;}function parseOverrideValue(_0x3c0604){const _0x3eb3e9=_0x4a948e,_0x3da50f={'sFQqF':function(_0x3fc16b,_0x10e3eb){return _0x3fc16b===_0x10e3eb;},'IioNB':'true','STGZY':'false','EGvnk':function(_0x4f0851,_0x2b9cb9){return _0x4f0851===_0x2b9cb9;},'Evzmj':_0x3eb3e9(0xca),'jgRQR':function(_0x33e4a6,_0x2e343e){return _0x33e4a6(_0x2e343e);}};if(_0x3da50f['sFQqF'](_0x3c0604,_0x3da50f['IioNB']))return!![];if(_0x3c0604===_0x3da50f['STGZY'])return![];if(_0x3da50f['EGvnk'](_0x3c0604,_0x3da50f[_0x3eb3e9(0xaa)]))return null;if(_0x3c0604==='undefined')return undefined;if(/^-?\d+$/['test'](_0x3c0604)){const _0x3e8bf4=_0x3da50f['jgRQR'](Number,_0x3c0604);if(Number['isSafeInteger'](_0x3e8bf4))return _0x3e8bf4;}if(/^-?\d+\.\d+$/[_0x3eb3e9(0xc9)](_0x3c0604)){const _0x4def64=Number(_0x3c0604);if(!Number['isNaN'](_0x4def64))return _0x4def64;}const _0x5ae854=_0x3c0604[_0x3eb3e9(0xc2)]();if(_0x5ae854[_0x3eb3e9(0xab)]('{')&&_0x5ae854['endsWith']('}')||_0x5ae854['startsWith']('[')&&_0x5ae854['endsWith'](']'))try{return JSON[_0x3eb3e9(0xb8)](_0x5ae854);}catch{}return _0x3c0604;}async function resolveProfileTarget(_0x3fd410){const _0x4bcb24=_0x4a948e,_0x50bc8c={'OhaIh':function(_0x2d7977,_0x58fead){return _0x2d7977(_0x58fead);},'VDIgw':'cloud','mTHSu':'local'},_0xf0df9f=existsSync(getEnvDir(_0x3fd410));let _0x1d37f5=![];try{const _0x51f9b8=await _0x50bc8c[_0x4bcb24(0xbd)](fetchCloudProfile,_0x3fd410);_0x1d37f5=_0x50bc8c[_0x4bcb24(0xbd)](Boolean,_0x51f9b8);}catch{}if(_0x1d37f5)return{'kind':_0x50bc8c['VDIgw'],'alsoExistsElsewhere':_0xf0df9f};if(_0xf0df9f)return{'kind':_0x50bc8c[_0x4bcb24(0xc4)],'alsoExistsElsewhere':![]};throw new Error('Profile\x20\x22'+_0x3fd410+_0x4bcb24(0xcb)+_0x3fd410);}function printDualExistsHint(_0x45942e){console['log']('\x20\x20Note:\x20\x22'+_0x45942e+'\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.');}function getProjectPath(){return process['cwd']();}async function loadEffectiveCloudSettings(_0x2a4177){const _0x2e0be4=_0x4a948e,_0x5e7ebf={'iIJJf':function(_0x410998,_0x493970){return _0x410998(_0x493970);},'wqnHN':function(_0x3fc5af,_0x552d71,_0x1e4f0b){return _0x3fc5af(_0x552d71,_0x1e4f0b);},'BYJUZ':function(_0x1b4841){return _0x1b4841();},'lUmYA':function(_0x1d14b0,_0x35d4ea,_0x2f4dee){return _0x1d14b0(_0x35d4ea,_0x2f4dee);},'ezOMc':function(_0x37de0f,_0x57b44a){return _0x37de0f??_0x57b44a;}},_0x32ad59=await _0x5e7ebf[_0x2e0be4(0xb4)](fetchCloudProfile,_0x2a4177),_0x402782=_0x5e7ebf['wqnHN'](readProfileOverrides,_0x5e7ebf['BYJUZ'](getProjectPath),_0x2a4177);return _0x5e7ebf['lUmYA'](mergeCloudProfileSettings,_0x32ad59?.[_0x2e0be4(0xa8)]??{},_0x5e7ebf['ezOMc'](_0x402782,undefined));}export async function configSet(_0xa1c221,_0x3a10a0,_0x1f442e){const _0x147f39=_0x4a948e,_0x569a56={'zBXAh':'cloud','PInmg':function(_0xac3f16,_0x1318f1){return _0xac3f16(_0x1318f1);},'oeaBZ':function(_0x40cdf0,_0x1515ab){return _0x40cdf0(_0x1515ab);},'hSRgi':function(_0x5e32a0,_0x1379ec,_0x3b7bee,_0xf5a007,_0x28e2bc){return _0x5e32a0(_0x1379ec,_0x3b7bee,_0xf5a007,_0x28e2bc);},'hrWoC':function(_0x5bdb4e){return _0x5bdb4e();}},_0x43648a=await resolveProfileTarget(_0xa1c221);if(_0x43648a[_0x147f39(0xa5)]===_0x569a56[_0x147f39(0xae)]){if(_0x43648a[_0x147f39(0xb9)])_0x569a56['PInmg'](printDualExistsHint,_0xa1c221);const _0x1fbeb6=_0x569a56['oeaBZ'](parseOverrideValue,_0x1f442e);_0x569a56['hSRgi'](setProfileOverride,getProjectPath(),_0xa1c221,_0x3a10a0,_0x1fbeb6),console['log'](_0x147f39(0xc7)+_0x3a10a0+'\x20=\x20'+JSON['stringify'](_0x1fbeb6)+'\x20for\x20\x22'+_0xa1c221+'\x22');return;}const _0x4162fc=parseLocalValue(_0x3a10a0,_0x1f442e);setProfileOverride(_0x569a56['hrWoC'](getProjectPath),_0xa1c221,_0x3a10a0,_0x4162fc),console['log']('Set\x20'+_0x3a10a0+_0x147f39(0xa9)+_0x4162fc+'\x20for\x20\x22'+_0xa1c221+'\x22');}export async function configGet(_0x27322f,_0x2421c2){const _0x4984f4=_0x4a948e,_0x4280de={'WHlws':function(_0xb9de24,_0x241932){return _0xb9de24(_0x241932);},'KXLTo':'cloud','OUgeW':function(_0x38075e,_0x3df882){return _0x38075e(_0x3df882);},'EIdbe':_0x4984f4(0xc5),'cpevL':function(_0x48c7cb,_0x150940){return _0x48c7cb===_0x150940;},'snAFp':function(_0x46cbb7,_0x55b6d3){return _0x46cbb7===_0x55b6d3;}},_0x2a4bf1=await _0x4280de[_0x4984f4(0xac)](resolveProfileTarget,_0x27322f);if(_0x2a4bf1[_0x4984f4(0xa5)]===_0x4280de[_0x4984f4(0xb2)]){const _0x3e4b03=await _0x4280de['OUgeW'](loadEffectiveCloudSettings,_0x27322f),_0x3c10a2=getNestedValue(_0x3e4b03,_0x2421c2);if(_0x3c10a2===undefined)console[_0x4984f4(0xbb)](_0x4984f4(0xbf));else typeof _0x3c10a2===_0x4280de[_0x4984f4(0xc8)]?console['log'](JSON[_0x4984f4(0xa1)](_0x3c10a2,null,0x2)):console['log'](_0x3c10a2);return;}const _0x39e54e=await loadSettings(_0x27322f),_0x2d29d9=getNestedValue(_0x39e54e,_0x2421c2);if(_0x4280de['cpevL'](_0x2d29d9,undefined))console['log'](_0x4984f4(0xbf));else _0x4280de[_0x4984f4(0xcc)](typeof _0x2d29d9,_0x4280de[_0x4984f4(0xc8)])?console[_0x4984f4(0xbb)](JSON['stringify'](_0x2d29d9,null,0x2)):console['log'](_0x2d29d9);}export async function configList(_0x508c0a){const _0x43e1c1=_0x4a948e,_0x5b5c6f={'xoHNQ':function(_0x2b42d8,_0x42c83f){return _0x2b42d8(_0x42c83f);}},_0x9ba02d=await resolveProfileTarget(_0x508c0a);if(_0x9ba02d['kind']==='cloud'){const _0x7433c3=await loadEffectiveCloudSettings(_0x508c0a);if(!_0x7433c3||Object['keys'](_0x7433c3)[_0x43e1c1(0xb0)]===0x0){console[_0x43e1c1(0xbb)](_0x43e1c1(0xaf)+_0x508c0a+'\x22');return;}console[_0x43e1c1(0xbb)](JSON[_0x43e1c1(0xa1)](_0x7433c3,null,0x2));return;}const _0xa7fd6d=_0x5b5c6f['xoHNQ'](getSettingsPath,_0x508c0a);if(!existsSync(_0xa7fd6d)){console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x508c0a+'\x22');return;}const _0x2e4d0f=await loadSettings(_0x508c0a),_0x242b3d=_0x5b5c6f['xoHNQ'](formatSettings,_0x2e4d0f);!_0x242b3d?console['log'](_0x43e1c1(0xaf)+_0x508c0a+'\x22'):console[_0x43e1c1(0xbb)](_0x242b3d);}export async function configUnset(_0x1b3d2d,_0x415997){const _0xa32cda=_0x4a948e,_0x4bab11={'sharE':function(_0x36a8a9,_0x5c0d9b){return _0x36a8a9(_0x5c0d9b);},'WqgBn':function(_0x119e5c,_0x20c3ee){return _0x119e5c===_0x20c3ee;},'YxLep':_0xa32cda(0xc0),'JuPMt':function(_0x579981,_0x5751ef,_0x8acf16,_0x3da5f0){return _0x579981(_0x5751ef,_0x8acf16,_0x3da5f0);},'OGplr':function(_0x5cdb93){return _0x5cdb93();},'QfxPo':function(_0x54332a,_0x336e82){return _0x54332a(_0x336e82);}},_0x541a46=await _0x4bab11['sharE'](resolveProfileTarget,_0x1b3d2d);if(_0x4bab11['WqgBn'](_0x541a46['kind'],_0x4bab11['YxLep'])){if(_0x541a46['alsoExistsElsewhere'])printDualExistsHint(_0x1b3d2d);const _0x4bd95b=_0x4bab11['JuPMt'](unsetProfileOverride,_0x4bab11[_0xa32cda(0xa2)](getProjectPath),_0x1b3d2d,_0x415997);_0x4bd95b?console[_0xa32cda(0xbb)](_0xa32cda(0xa4)+_0x415997+_0xa32cda(0xa7)+_0x1b3d2d+'\x22'):console['log']('Key\x20\x22'+_0x415997+_0xa32cda(0xc1));return;}const _0x3424e6=unsetProfileOverride(getProjectPath(),_0x1b3d2d,_0x415997);if(_0x3424e6){console[_0xa32cda(0xbb)]('Removed\x20'+_0x415997);return;}const _0x12668d=await _0x4bab11['QfxPo'](loadSettings,_0x1b3d2d),_0x5612a6=deleteNestedValue(_0x12668d,_0x415997);_0x5612a6?console['log'](_0xa32cda(0xba)+_0x415997+'\x22\x20lives\x20in\x20the\x20legacy\x20settings\x20file\x20for\x20\x22'+_0x1b3d2d+'\x22\x20and\x20cannot\x20be\x20unset;\x20the\x20legacy\x20tree\x20is\x20read-only\x20under\x20cloud\x20profiles.'):console['log'](_0xa32cda(0xba)+_0x415997+'\x22\x20not\x20found');}export async function configReset(_0x46f045){const _0x599bc2=_0x4a948e,_0x273fbe={'EYJtI':function(_0x349769,_0x588f3e){return _0x349769===_0x588f3e;},'clcOP':_0x599bc2(0xc0),'FTHgx':function(_0x16bf93,_0x2f82d9,_0x405c9c){return _0x16bf93(_0x2f82d9,_0x405c9c);}},_0x3b190e=await resolveProfileTarget(_0x46f045);if(_0x273fbe['EYJtI'](_0x3b190e[_0x599bc2(0xa5)],_0x273fbe['clcOP'])){_0x273fbe[_0x599bc2(0xa6)](resetProfileOverrides,getProjectPath(),_0x46f045),console[_0x599bc2(0xbb)]('Cleared\x20local\x20overrides\x20for\x20\x22'+_0x46f045+'\x22');return;}console['log']('\x22'+_0x46f045+'\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20'+_0x46f045+_0x599bc2(0xa0));}
@@ -1 +1 @@
1
- (function(_0x4be306,_0x3d1030){const _0x2a3877=_0x2d13,_0x41b2cd=_0x4be306();while(!![]){try{const _0x44dd5e=-parseInt(_0x2a3877(0x1db))/0x1*(parseInt(_0x2a3877(0x1e4))/0x2)+-parseInt(_0x2a3877(0x1e5))/0x3*(-parseInt(_0x2a3877(0x1e0))/0x4)+parseInt(_0x2a3877(0x1d1))/0x5+-parseInt(_0x2a3877(0x1d5))/0x6*(-parseInt(_0x2a3877(0x1d7))/0x7)+-parseInt(_0x2a3877(0x1da))/0x8+parseInt(_0x2a3877(0x1e2))/0x9*(-parseInt(_0x2a3877(0x1d9))/0xa)+-parseInt(_0x2a3877(0x1d2))/0xb*(parseInt(_0x2a3877(0x1e6))/0xc);if(_0x44dd5e===_0x3d1030)break;else _0x41b2cd['push'](_0x41b2cd['shift']());}catch(_0x3e6494){_0x41b2cd['push'](_0x41b2cd['shift']());}}}(_0x2306,0xe5701));import _0x181763 from'inquirer';import{deleteCloudProfile,fetchCloudProfile}from'./utils/cloudProfile.js';function _0x2d13(_0x262375,_0xf7ab8){_0x262375=_0x262375-0x1d1;const _0x230629=_0x2306();let _0x2d13cd=_0x230629[_0x262375];return _0x2d13cd;}import{isInteractive}from'./utils/cloudProfileSession.js';function _0x2306(){const _0x5b9d58=['5127ZXIUgs','51132zYaNQr','7410190OvDHUL','154SmUMgE','YZmlx','Cloud\x20profile\x20\x22','18LAkOWG','\x22\x20not\x20found.','1034404exptQC','\x22\x20to\x20confirm\x20deletion:','10WxxUuB','939768ZwlOdy','13ZkOXAX','log','confirmation','weRMB','prompt','2428PjVOnk','cwd','5955507aCuFbN','gmNZm','182168JitSUd'];_0x2306=function(){return _0x5b9d58;};return _0x2306();}import{clearLastProfile,resetProfileOverrides}from'./utils/projectsConfig.js';export async function deleteProfile(_0x2f9962,_0x4e40b2={}){const _0x5c3c4d=_0x2d13,_0x5a0d9a={'brnIA':function(_0xc20ba3,_0x21cbec){return _0xc20ba3(_0x21cbec);},'weRMB':'Profile\x20deletion\x20requires\x20an\x20interactive\x20terminal\x20so\x20the\x20profile\x20name\x20can\x20be\x20typed\x20for\x20confirmation.\x20Pass\x20--yes\x20to\x20skip\x20confirmation.','TGgoQ':_0x5c3c4d(0x1dd),'dzQxp':function(_0x251206,_0x57556a){return _0x251206!==_0x57556a;},'YZmlx':'Profile\x20deletion\x20cancelled:\x20confirmation\x20did\x20not\x20match.','GzsgS':function(_0x3e79b2,_0x242f1c){return _0x3e79b2(_0x242f1c);},'gmNZm':function(_0x366f93,_0x3a13d9,_0x1f6a85){return _0x366f93(_0x3a13d9,_0x1f6a85);}},_0x53b0d6=await _0x5a0d9a['brnIA'](fetchCloudProfile,_0x2f9962);if(!_0x53b0d6)throw new Error(_0x5c3c4d(0x1d4)+_0x2f9962+_0x5c3c4d(0x1d6));if(!_0x4e40b2['yes']&&!isInteractive())throw new Error(_0x5a0d9a[_0x5c3c4d(0x1de)]);console['log']('\x0aWarning:\x20this\x20deletes\x20the\x20shared\x20cloud\x20profile\x20\x22'+_0x2f9962+'\x22\x20for\x20everyone\x20in\x20your\x20organization.');if(!_0x4e40b2['yes']){const {confirmation:_0x1a80c5}=await _0x181763[_0x5c3c4d(0x1df)]([{'type':'input','name':_0x5a0d9a['TGgoQ'],'message':'Type\x20\x22'+_0x2f9962+_0x5c3c4d(0x1d8)}]);if(_0x5a0d9a['dzQxp'](_0x1a80c5,_0x2f9962))throw new Error(_0x5a0d9a[_0x5c3c4d(0x1d3)]);}await _0x5a0d9a['GzsgS'](deleteCloudProfile,_0x2f9962),resetProfileOverrides(process[_0x5c3c4d(0x1e1)](),_0x2f9962),_0x5a0d9a[_0x5c3c4d(0x1e3)](clearLastProfile,process['cwd'](),_0x2f9962),console[_0x5c3c4d(0x1dc)]('✓\x20Deleted\x20cloud\x20profile\x20\x22'+_0x2f9962+'\x22.');}
1
+ (function(_0x2beac6,_0x5de1be){const _0xd30535=_0x4c7c,_0x58d82b=_0x2beac6();while(!![]){try{const _0x5b5e92=-parseInt(_0xd30535(0xe6))/0x1+-parseInt(_0xd30535(0xeb))/0x2+parseInt(_0xd30535(0xef))/0x3+-parseInt(_0xd30535(0xf3))/0x4+-parseInt(_0xd30535(0xed))/0x5*(-parseInt(_0xd30535(0xe5))/0x6)+-parseInt(_0xd30535(0xf2))/0x7*(parseInt(_0xd30535(0xf5))/0x8)+parseInt(_0xd30535(0xf1))/0x9*(parseInt(_0xd30535(0xe3))/0xa);if(_0x5b5e92===_0x5de1be)break;else _0x58d82b['push'](_0x58d82b['shift']());}catch(_0x512866){_0x58d82b['push'](_0x58d82b['shift']());}}}(_0x30e4,0x4da7c));import _0x2ef3ec 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(_0x2e7b0b,_0x247bf7={}){const _0x541e80=_0x4c7c,_0x191f6b={'tfTdq':function(_0x30f126,_0x3a3506){return _0x30f126(_0x3a3506);},'oIDis':function(_0x49b612){return _0x49b612();},'wkIAu':function(_0x287ba6,_0x54d301,_0x5447f6){return _0x287ba6(_0x54d301,_0x5447f6);}},_0x486be3=await _0x191f6b['tfTdq'](fetchCloudProfile,_0x2e7b0b);if(!_0x486be3)throw new Error('Cloud\x20profile\x20\x22'+_0x2e7b0b+'\x22\x20not\x20found.');if(!_0x247bf7['yes']&&!_0x191f6b[_0x541e80(0xe2)](isInteractive))throw new Error('Profile\x20deletion\x20requires\x20an\x20interactive\x20terminal\x20so\x20the\x20profile\x20name\x20can\x20be\x20typed\x20for\x20confirmation.\x20Pass\x20--yes\x20to\x20skip\x20confirmation.');console[_0x541e80(0xe4)]('\x0aWarning:\x20this\x20deletes\x20the\x20shared\x20cloud\x20profile\x20\x22'+_0x2e7b0b+'\x22\x20for\x20everyone\x20in\x20your\x20organization.');if(!_0x247bf7[_0x541e80(0xee)]){const {confirmation:_0x4cad89}=await _0x2ef3ec[_0x541e80(0xe1)]([{'type':_0x541e80(0xe7),'name':_0x541e80(0xea),'message':_0x541e80(0xe8)+_0x2e7b0b+_0x541e80(0xf4)}]);if(_0x4cad89!==_0x2e7b0b)throw new Error(_0x541e80(0xf6));}await _0x191f6b[_0x541e80(0xf0)](deleteCloudProfile,_0x2e7b0b),resetProfileOverrides(process['cwd'](),_0x2e7b0b),_0x191f6b[_0x541e80(0xe9)](clearLastProfile,process[_0x541e80(0xec)](),_0x2e7b0b),console['log']('✓\x20Deleted\x20cloud\x20profile\x20\x22'+_0x2e7b0b+'\x22.');}function _0x4c7c(_0x2e6bfc,_0x52b918){_0x2e6bfc=_0x2e6bfc-0xe1;const _0x30e43a=_0x30e4();let _0x4c7ccd=_0x30e43a[_0x2e6bfc];return _0x4c7ccd;}function _0x30e4(){const _0x18dfb7=['confirmation','1258160dmoTVG','cwd','250JrHZjJ','yes','902697pYAZpa','tfTdq','135BjJhTx','2342585fvzuVC','689360pGMGid','\x22\x20to\x20confirm\x20deletion:','8zzNaWc','Profile\x20deletion\x20cancelled:\x20confirmation\x20did\x20not\x20match.','prompt','oIDis','892400ZvqIHe','log','21000vOpOCz','360348rJzuZU','input','Type\x20\x22','wkIAu'];_0x30e4=function(){return _0x18dfb7;};return _0x30e4();}
@@ -1 +1 @@
1
- const _0x1ab7a7=_0x2ed7;(function(_0x28ec49,_0x38a633){const _0x3f0e56=_0x2ed7,_0x1d5f0a=_0x28ec49();while(!![]){try{const _0x9128a1=parseInt(_0x3f0e56(0xdb))/0x1+-parseInt(_0x3f0e56(0xce))/0x2+-parseInt(_0x3f0e56(0xcc))/0x3+parseInt(_0x3f0e56(0xdc))/0x4+-parseInt(_0x3f0e56(0xd9))/0x5*(parseInt(_0x3f0e56(0xd0))/0x6)+-parseInt(_0x3f0e56(0xe6))/0x7*(parseInt(_0x3f0e56(0xdd))/0x8)+parseInt(_0x3f0e56(0xe7))/0x9;if(_0x9128a1===_0x38a633)break;else _0x1d5f0a['push'](_0x1d5f0a['shift']());}catch(_0x3051cf){_0x1d5f0a['push'](_0x1d5f0a['shift']());}}}(_0x5ec9,0xbf921));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';function _0x2ed7(_0x3807c3,_0x3c6f7b){_0x3807c3=_0x3807c3-0xc6;const _0x5ec953=_0x5ec9();let _0x2ed7fa=_0x5ec953[_0x3807c3];return _0x2ed7fa;}function _0x5ec9(){const _0x585a58=['27311904qpBvGp','push','sessionUpdatedAt','local','neIex','legacy','map','includes','message','KdIgt','sort','baseUrl','isDirectory','yXtlA','\x0aWarning:\x20could\x20not\x20fetch\x20cloud\x20profiles:\x20','environmentDetails','3090831OPdBlP','\x0aLocal\x20Profiles\x20(legacy):','2390942rgxBQY','endsWith','6HlAtXs','pNhKH','length','\x20\x20\x20\x20\x20\x20Session:\x20','.txt','startsWith','udTUs','QkeMg','Run:\x20ranger\x20profile\x20add\x20<profile-name>','6804775uwAMlB','csNSh','676133oEmsfA','4314404aJJDzR','432JNIxSc','\x20\x20\x20\x20\x20\x20URL:\x20','IedAa','name','bug-bashes','log','uZKBK','MCKYq','jwhTo','54187fXatyV'];_0x5ec9=function(){return _0x585a58;};return _0x5ec9();}import{getToken}from'./utils/keychain.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const NON_ENV_DIRS=['sessions',_0x1ab7a7(0xe1),'reports','local','ci'];export async function getEnvNames(){const _0x532f42=_0x1ab7a7,_0x239f30={'IedAa':function(_0x1db3f0){return _0x1db3f0();},'vlbWG':function(_0x71d075,_0x227d50){return _0x71d075(_0x227d50);},'pNhKH':'local','csNSh':function(_0x5a1780,_0x405b43){return _0x5a1780(_0x405b43);},'nYrjN':function(_0x27dd97,_0x39ec27,_0x24191d){return _0x27dd97(_0x39ec27,_0x24191d);},'udTUs':'settings.json','MCKYq':_0x532f42(0xec)},_0x217e27=_0x239f30[_0x532f42(0xdf)](getRangerDir);if(!_0x239f30['vlbWG'](existsSync,_0x217e27))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0xceee28=await _0x239f30[_0x532f42(0xdf)](readActiveProfileName),_0x4e7f90=[],_0x4a9492={},_0x227f6a=join(_0x217e27,_0x239f30[_0x532f42(0xd1)]);if(existsSync(_0x227f6a)){const _0xf80e5c=await _0x239f30['vlbWG'](readdir,_0x227f6a);for(const _0x4cb9c6 of _0xf80e5c){const _0x3fe588=join(_0x227f6a,_0x4cb9c6),_0xa4f82=await _0x239f30['csNSh'](stat,_0x3fe588);_0xa4f82['isDirectory']()&&(_0x4e7f90['push'](_0x4cb9c6),_0x4a9492[_0x4cb9c6]='local');}}const _0x3d1ff3=_0x239f30['nYrjN'](join,_0x217e27,'ci');if(existsSync(_0x3d1ff3)){const _0x96ba17=await _0x239f30[_0x532f42(0xda)](readdir,_0x3d1ff3);for(const _0x4af337 of _0x96ba17){const _0x1badd9=_0x239f30['nYrjN'](join,_0x3d1ff3,_0x4af337),_0x14ab88=await stat(_0x1badd9);_0x14ab88['isDirectory']()&&(_0x4e7f90['push'](_0x4af337),_0x4a9492[_0x4af337]='ci');}}const _0x9ef488=await readdir(_0x217e27);for(const _0x4cee2c of _0x9ef488){if(NON_ENV_DIRS['includes'](_0x4cee2c))continue;if(_0x4cee2c[_0x532f42(0xd5)]('.'))continue;if(_0x4cee2c[_0x532f42(0xcf)](_0x532f42(0xd4)))continue;const _0x309589=_0x239f30['nYrjN'](join,_0x217e27,_0x4cee2c),_0x5a5c66=await stat(_0x309589);_0x5a5c66[_0x532f42(0xc8)]()&&_0x239f30['csNSh'](existsSync,join(_0x309589,_0x239f30[_0x532f42(0xd6)]))&&(!_0x4e7f90[_0x532f42(0xee)](_0x4cee2c)&&(_0x4e7f90[_0x532f42(0xe8)](_0x4cee2c),_0x4a9492[_0x4cee2c]=_0x239f30[_0x532f42(0xe4)]));}return{'envNames':_0x4e7f90,'activeEnv':_0xceee28,'envTypes':_0x4a9492};}export async function envList(){const _0xfbb492=_0x1ab7a7,_0x2244fd={'uZKBK':function(_0x1e96fe){return _0x1e96fe();},'CatZO':function(_0x4070dc,_0x312711){return _0x4070dc instanceof _0x312711;},'WAtZp':function(_0x5e3e55,_0x510aa6){return _0x5e3e55(_0x510aa6);},'QkeMg':function(_0x352143,_0x409042){return _0x352143===_0x409042;},'neIex':function(_0x46cc74,_0x4f3f49){return _0x46cc74===_0x4f3f49;},'ejwog':'\x0aNo\x20profiles\x20found.','Ppwrs':_0xfbb492(0xd8),'jwhTo':_0xfbb492(0xcd),'ciRtC':function(_0x4e0e26,_0x14beb3){return _0x4e0e26===_0x14beb3;},'yXtlA':_0xfbb492(0xea),'flBEI':function(_0x1badc6,_0x3c04e7){return _0x1badc6(_0x3c04e7);},'KdIgt':'legacy','AVLLX':function(_0x2a5348,_0x50ee69){return _0x2a5348>_0x50ee69;}},{envNames:_0x2611a1,activeEnv:_0x48109f,envTypes:_0x224bf7}=await getEnvNames();let _0x40ebbd=[];const _0x44ab1b=await _0x2244fd[_0xfbb492(0xe3)](getToken);if(_0x44ab1b)try{_0x40ebbd=await listCloudProfiles();}catch(_0x142dd7){console['error'](_0xfbb492(0xca)+(_0x2244fd['CatZO'](_0x142dd7,Error)?_0x142dd7[_0xfbb492(0xef)]:_0x2244fd['WAtZp'](String,_0x142dd7)));}if(_0x2244fd[_0xfbb492(0xd7)](_0x2611a1['length'],0x0)&&_0x2244fd[_0xfbb492(0xeb)](_0x40ebbd[_0xfbb492(0xd2)],0x0)){console['log'](_0x2244fd['ejwog']),console[_0xfbb492(0xe2)](_0x2244fd['Ppwrs']);return;}const _0x3199e0=new Set(_0x40ebbd[_0xfbb492(0xed)](_0x4f1f53=>_0x4f1f53[_0xfbb492(0xe0)]));if(_0x2611a1[_0xfbb492(0xd2)]>0x0){console['log'](_0x2244fd[_0xfbb492(0xe5)]);for(const _0x1724fd of _0x2611a1[_0xfbb492(0xc6)]()){const _0x118abb=_0x2244fd['ciRtC'](_0x1724fd,_0x48109f)&&!_0x3199e0['has'](_0x1724fd),_0x17fccd=_0x224bf7[_0x1724fd]||_0x2244fd[_0xfbb492(0xc9)],_0x25e8a2=await _0x2244fd['flBEI'](loadSettings,_0x1724fd),_0x5c78c7=_0x17fccd===_0x2244fd[_0xfbb492(0xf0)]?'':'\x20['+_0x17fccd+']';console[_0xfbb492(0xe2)]('\x20\x20'+(_0x118abb?'*\x20':'\x20\x20')+_0x1724fd+_0x5c78c7),_0x25e8a2[_0xfbb492(0xc7)]&&console['log'](_0xfbb492(0xde)+_0x25e8a2[_0xfbb492(0xc7)]),_0x25e8a2[_0xfbb492(0xcb)]&&console['log']('\x20\x20\x20\x20\x20\x20Details:\x20'+_0x25e8a2['environmentDetails']);}}if(_0x2244fd['AVLLX'](_0x40ebbd[_0xfbb492(0xd2)],0x0)){console[_0xfbb492(0xe2)]('\x0aCloud\x20Profiles:');for(const _0x15357b of _0x40ebbd[_0xfbb492(0xc6)]((_0x315002,_0x5919ad)=>_0x315002[_0xfbb492(0xe0)]['localeCompare'](_0x5919ad['name']))){const _0x2a01d9=_0x15357b[_0xfbb492(0xe0)]===_0x48109f,_0xfaf5d1=_0x15357b['environmentKey']?'\x20('+_0x15357b['environmentKey']+')':'',_0x291526=_0x15357b[_0xfbb492(0xe9)]?'cached\x20(updated\x20'+_0x15357b['sessionUpdatedAt']+')':'no\x20session';console[_0xfbb492(0xe2)]('\x20\x20'+(_0x2a01d9?'*\x20':'\x20\x20')+_0x15357b['name']+'\x20[cloud]'+_0xfaf5d1),console['log'](_0xfbb492(0xd3)+_0x291526);}}_0x48109f&&console[_0xfbb492(0xe2)]('\x0a*\x20=\x20active\x20profile');}
1
+ const _0x1c50a6=_0x2013;(function(_0x56b63c,_0x25f459){const _0x2900ea=_0x2013,_0x346806=_0x56b63c();while(!![]){try{const _0x3631df=parseInt(_0x2900ea(0x20d))/0x1*(-parseInt(_0x2900ea(0x20b))/0x2)+-parseInt(_0x2900ea(0x205))/0x3+parseInt(_0x2900ea(0x21a))/0x4+parseInt(_0x2900ea(0x1f7))/0x5*(parseInt(_0x2900ea(0x1ef))/0x6)+-parseInt(_0x2900ea(0x1ee))/0x7*(-parseInt(_0x2900ea(0x21b))/0x8)+-parseInt(_0x2900ea(0x209))/0x9*(parseInt(_0x2900ea(0x207))/0xa)+-parseInt(_0x2900ea(0x1ed))/0xb*(parseInt(_0x2900ea(0x212))/0xc);if(_0x3631df===_0x25f459)break;else _0x346806['push'](_0x346806['shift']());}catch(_0x5d8bd3){_0x346806['push'](_0x346806['shift']());}}}(_0x5212,0x7a743));import{readdir,stat}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{getRangerDir}from'./utils/rangerRoot.js';import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';import{getToken}from'./utils/keychain.js';function _0x5212(){const _0x5d4ad3=['yaLQY','AfsGm','has','environmentKey','isDirectory','push','localeCompare','Suixb','1175283tAfWhp','.txt','1139690QWCyHH','environmentDetails','9AoMjHw','ikgmu','2EGVdcq','dxkZM','146921hvnvyU','bug-bashes','CjgLB','fuUJC','mxtXl','60NZkWFN','local','log','tNlOO','\x20\x20\x20\x20\x20\x20Details:\x20','map','dXibv','no\x20session','3551460rquxVj','29008TgjEvr','message','error','baseUrl','\x0aCloud\x20Profiles:','name','Run:\x20ranger\x20profile\x20add\x20<profile-name>','1022769VwlCkL','7bNejgm','36kAGsgT','HOvqB','includes','\x20[cloud]','endsWith','sort','cached\x20(updated\x20','startsWith','606355WBglUe','\x20\x20\x20\x20\x20\x20Session:\x20','qkzxy','ZYNde','length','sessions'];_0x5212=function(){return _0x5d4ad3;};return _0x5212();}function _0x2013(_0x1b0995,_0x37301c){_0x1b0995=_0x1b0995-0x1e7;const _0x52125f=_0x5212();let _0x20132e=_0x52125f[_0x1b0995];return _0x20132e;}import{listCloudProfiles}from'./utils/cloudProfile.js';const NON_ENV_DIRS=[_0x1c50a6(0x1fc),_0x1c50a6(0x20e),'reports',_0x1c50a6(0x213),'ci'];export async function getEnvNames(){const _0x43ec7b=_0x1c50a6,_0x31f728={'ZSfJt':function(_0x13301c){return _0x13301c();},'ehDaO':function(_0x28da19,_0xa77b3c,_0x415cf9){return _0x28da19(_0xa77b3c,_0x415cf9);},'yaLQY':_0x43ec7b(0x213),'qkzxy':function(_0x134f73,_0x34cd28,_0x452e5e){return _0x134f73(_0x34cd28,_0x452e5e);},'Suixb':function(_0x3c7561,_0x4fb36c){return _0x3c7561(_0x4fb36c);},'dxkZM':function(_0x3fed28,_0x2bf874,_0x540cf6){return _0x3fed28(_0x2bf874,_0x540cf6);},'AfsGm':_0x43ec7b(0x206),'ikgmu':function(_0x272c2e,_0x4256d8,_0x4c1f5a){return _0x272c2e(_0x4256d8,_0x4c1f5a);},'HOvqB':'settings.json','fuUJC':'legacy'},_0x6ffac8=getRangerDir();if(!existsSync(_0x6ffac8))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x41d223=await _0x31f728['ZSfJt'](readActiveProfileName),_0xf601e5=[],_0x1d10d9={},_0xa0344e=_0x31f728['ehDaO'](join,_0x6ffac8,_0x31f728['yaLQY']);if(existsSync(_0xa0344e)){const _0x14c599=await readdir(_0xa0344e);for(const _0x355f45 of _0x14c599){const _0x153f62=_0x31f728[_0x43ec7b(0x1f9)](join,_0xa0344e,_0x355f45),_0x503411=await stat(_0x153f62);_0x503411['isDirectory']()&&(_0xf601e5[_0x43ec7b(0x202)](_0x355f45),_0x1d10d9[_0x355f45]=_0x31f728[_0x43ec7b(0x1fd)]);}}const _0xeca460=join(_0x6ffac8,'ci');if(existsSync(_0xeca460)){const _0x93ffb3=await _0x31f728[_0x43ec7b(0x204)](readdir,_0xeca460);for(const _0x16aa1e of _0x93ffb3){const _0x4fb19a=_0x31f728[_0x43ec7b(0x20c)](join,_0xeca460,_0x16aa1e),_0x35a2c7=await stat(_0x4fb19a);_0x35a2c7[_0x43ec7b(0x201)]()&&(_0xf601e5['push'](_0x16aa1e),_0x1d10d9[_0x16aa1e]='ci');}}const _0x3024af=await readdir(_0x6ffac8);for(const _0xa6d04c of _0x3024af){if(NON_ENV_DIRS[_0x43ec7b(0x1f1)](_0xa6d04c))continue;if(_0xa6d04c[_0x43ec7b(0x1f6)]('.'))continue;if(_0xa6d04c[_0x43ec7b(0x1f3)](_0x31f728[_0x43ec7b(0x1fe)]))continue;const _0x5d93e9=join(_0x6ffac8,_0xa6d04c),_0x5a49bc=await stat(_0x5d93e9);_0x5a49bc[_0x43ec7b(0x201)]()&&existsSync(_0x31f728[_0x43ec7b(0x20a)](join,_0x5d93e9,_0x31f728[_0x43ec7b(0x1f0)]))&&(!_0xf601e5[_0x43ec7b(0x1f1)](_0xa6d04c)&&(_0xf601e5['push'](_0xa6d04c),_0x1d10d9[_0xa6d04c]=_0x31f728[_0x43ec7b(0x210)]));}return{'envNames':_0xf601e5,'activeEnv':_0x41d223,'envTypes':_0x1d10d9};}export async function envList(){const _0xaa8f45=_0x1c50a6,_0x2e5183={'PCLDB':function(_0x47ae56){return _0x47ae56();},'dXibv':function(_0xb2c23a,_0x400dec){return _0xb2c23a instanceof _0x400dec;},'CjgLB':function(_0x4d9d7d,_0x3e1399){return _0x4d9d7d===_0x3e1399;},'mxtXl':'\x0aNo\x20profiles\x20found.','sHqgw':function(_0x25e939,_0x1a04fa){return _0x25e939>_0x1a04fa;},'OtJFw':_0xaa8f45(0x213),'ZYNde':function(_0x16ffc4,_0x1df53c){return _0x16ffc4(_0x1df53c);},'tNlOO':function(_0x2c4458,_0x4f005b){return _0x2c4458===_0x4f005b;},'NtnZP':'legacy','ENnCv':function(_0x1ed509,_0x4938be){return _0x1ed509>_0x4938be;},'JqgLp':_0xaa8f45(0x219)},{envNames:_0x3a5d3b,activeEnv:_0x4e73b5,envTypes:_0x21f8e3}=await getEnvNames();let _0x374a47=[];const _0x4a2088=await getToken();if(_0x4a2088)try{_0x374a47=await _0x2e5183['PCLDB'](listCloudProfiles);}catch(_0x2185c1){console[_0xaa8f45(0x1e8)]('\x0aWarning:\x20could\x20not\x20fetch\x20cloud\x20profiles:\x20'+(_0x2e5183[_0xaa8f45(0x218)](_0x2185c1,Error)?_0x2185c1[_0xaa8f45(0x1e7)]:String(_0x2185c1)));}if(_0x2e5183['CjgLB'](_0x3a5d3b[_0xaa8f45(0x1fb)],0x0)&&_0x374a47['length']===0x0){console[_0xaa8f45(0x214)](_0x2e5183[_0xaa8f45(0x211)]),console['log'](_0xaa8f45(0x1ec));return;}const _0x19366a=new Set(_0x374a47[_0xaa8f45(0x217)](_0x283e33=>_0x283e33[_0xaa8f45(0x1eb)]));if(_0x2e5183['sHqgw'](_0x3a5d3b['length'],0x0)){console['log']('\x0aLocal\x20Profiles\x20(legacy):');for(const _0x46c9f8 of _0x3a5d3b[_0xaa8f45(0x1f4)]()){const _0x4ff344=_0x46c9f8===_0x4e73b5&&!_0x19366a[_0xaa8f45(0x1ff)](_0x46c9f8),_0x22acc1=_0x21f8e3[_0x46c9f8]||_0x2e5183['OtJFw'],_0x382861=await _0x2e5183[_0xaa8f45(0x1fa)](loadSettings,_0x46c9f8),_0x45834d=_0x2e5183[_0xaa8f45(0x215)](_0x22acc1,_0x2e5183['NtnZP'])?'':'\x20['+_0x22acc1+']';console['log']('\x20\x20'+(_0x4ff344?'*\x20':'\x20\x20')+_0x46c9f8+_0x45834d),_0x382861[_0xaa8f45(0x1e9)]&&console[_0xaa8f45(0x214)]('\x20\x20\x20\x20\x20\x20URL:\x20'+_0x382861['baseUrl']),_0x382861[_0xaa8f45(0x208)]&&console[_0xaa8f45(0x214)](_0xaa8f45(0x216)+_0x382861['environmentDetails']);}}if(_0x2e5183['ENnCv'](_0x374a47[_0xaa8f45(0x1fb)],0x0)){console['log'](_0xaa8f45(0x1ea));for(const _0x1460c5 of _0x374a47['sort']((_0x3b50d8,_0x4ebc1a)=>_0x3b50d8[_0xaa8f45(0x1eb)][_0xaa8f45(0x203)](_0x4ebc1a[_0xaa8f45(0x1eb)]))){const _0x530182=_0x2e5183[_0xaa8f45(0x20f)](_0x1460c5['name'],_0x4e73b5),_0x2c1622=_0x1460c5['environmentKey']?'\x20('+_0x1460c5[_0xaa8f45(0x200)]+')':'',_0x4a64b1=_0x1460c5['sessionUpdatedAt']?_0xaa8f45(0x1f5)+_0x1460c5['sessionUpdatedAt']+')':_0x2e5183['JqgLp'];console[_0xaa8f45(0x214)]('\x20\x20'+(_0x530182?'*\x20':'\x20\x20')+_0x1460c5[_0xaa8f45(0x1eb)]+_0xaa8f45(0x1f2)+_0x2c1622),console[_0xaa8f45(0x214)](_0xaa8f45(0x1f8)+_0x4a64b1);}}_0x4e73b5&&console[_0xaa8f45(0x214)]('\x0a*\x20=\x20active\x20profile');}