@ranger-testing/ranger-cli 3.1.2-alpha.b450a14-41 → 3.1.3-alpha.2c5eb8e-44

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 +2 -2
@@ -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
+ const _0x270d87=_0x1293;(function(_0x562e03,_0x3f56e9){const _0x9452ea=_0x1293,_0x2ce360=_0x562e03();while(!![]){try{const _0x4e9725=parseInt(_0x9452ea(0xd7))/0x1+parseInt(_0x9452ea(0x13b))/0x2*(-parseInt(_0x9452ea(0x120))/0x3)+parseInt(_0x9452ea(0x106))/0x4+parseInt(_0x9452ea(0x14a))/0x5*(parseInt(_0x9452ea(0x11a))/0x6)+parseInt(_0x9452ea(0x148))/0x7+-parseInt(_0x9452ea(0xf8))/0x8*(-parseInt(_0x9452ea(0xc7))/0x9)+-parseInt(_0x9452ea(0xeb))/0xa*(parseInt(_0x9452ea(0x14e))/0xb);if(_0x4e9725===_0x3f56e9)break;else _0x2ce360['push'](_0x2ce360['shift']());}catch(_0x664cc8){_0x2ce360['push'](_0x2ce360['shift']());}}}(_0x46e9,0x5794a));import{readdir,rm}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import _0x7d494e 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 _0x1293(_0x5a4af8,_0x18003c){_0x5a4af8=_0x5a4af8-0xc6;const _0x46e90f=_0x46e9();let _0x1293b4=_0x46e90f[_0x5a4af8];return _0x1293b4;}import{matchAuthEnvironment}from'./utils/matchAuthEnvironment.js';import{isPathGitTracked}from'./utils/gitTracked.js';import{setProfileOverride}from'./utils/projectsConfig.js';const CLOUD_PROFILE_SHARING_WARNING=_0x270d87(0x126);function warnCloudProfileSharedInOrg(){const _0x233776=_0x270d87;if(!process['stdout']['isTTY'])return;console[_0x233776(0x134)](CLOUD_PROFILE_SHARING_WARNING);}async function checkUrlReachability(_0x44291b){const _0x365001=_0x270d87,_0x30b8bd={'zArHo':function(_0x3ba696,_0x2299e6,_0x57e839){return _0x3ba696(_0x2299e6,_0x57e839);},'joxGO':function(_0x33e096,_0x45305e,_0x314715){return _0x33e096(_0x45305e,_0x314715);},'Enqrk':function(_0x26407e,_0x1d0a91){return _0x26407e(_0x1d0a91);},'WkLBF':function(_0x5ec530,_0x103960){return _0x5ec530<_0x103960;},'Ddgbv':function(_0x3b11a4,_0x3e7f74){return _0x3b11a4===_0x3e7f74;},'OYMno':'TypeError'};try{const _0x1fd607=new AbortController(),_0x1399cc=_0x30b8bd[_0x365001(0xd0)](setTimeout,()=>_0x1fd607[_0x365001(0xe2)](),0x1388),_0x3e3409={'method':_0x365001(0x113),'signal':_0x1fd607['signal'],'redirect':'manual'};/^https:\/\/localhost(:\d+)?/i[_0x365001(0xd4)](_0x44291b)&&(process[_0x365001(0x144)]['NODE_TLS_REJECT_UNAUTHORIZED']='0');const _0x38c91a=await _0x30b8bd[_0x365001(0xd9)](fetch,_0x44291b,_0x3e3409);delete process['env'][_0x365001(0x118)],_0x30b8bd[_0x365001(0x117)](clearTimeout,_0x1399cc);if(_0x30b8bd[_0x365001(0x138)](_0x38c91a['status'],0x190))return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x38c91a['status']};}catch(_0x394a3f){delete process[_0x365001(0x144)]['NODE_TLS_REJECT_UNAUTHORIZED'];const _0x4bf5a7=_0x394a3f,_0xfaf6d2=_0x4bf5a7['message']||_0x30b8bd[_0x365001(0x117)](String,_0x394a3f),_0x565870=_0xfaf6d2['includes']('Invalid\x20URL')||_0x30b8bd[_0x365001(0x101)](_0x4bf5a7['name'],_0x30b8bd[_0x365001(0x119)])||_0xfaf6d2['includes'](_0x365001(0x131));return{'ok':![],'error':_0xfaf6d2,'isProtocolError':_0x565870};}}async function sweepOrphanLocalProfile(_0x5804f1,_0x1cc539,_0x3b2307){const _0x5796e9=_0x270d87,_0x156ddd={'UObSp':function(_0x5627be,_0x4f92fe,_0x5a05d4){return _0x5627be(_0x4f92fe,_0x5a05d4);},'eTktC':'local','WJFLS':function(_0x2057de,_0x4fcfa2){return _0x2057de(_0x4fcfa2);},'ugBvL':function(_0x19f489,_0x1cab62){return _0x19f489(_0x1cab62);},'HPMiR':function(_0x26970c,_0x2d485d){return _0x26970c(_0x2d485d);},'CACwf':function(_0x36d985,_0x42eece,_0x2bb6a5){return _0x36d985(_0x42eece,_0x2bb6a5);}},_0x6ecf6e=_0x156ddd[_0x5796e9(0x13a)](join,_0x1cc539,_0x156ddd[_0x5796e9(0x112)]),_0x1ffa2b=join(_0x6ecf6e,_0x5804f1);existsSync(_0x1ffa2b)&&(_0x3b2307&&await _0x156ddd['WJFLS'](isPathGitTracked,_0x1ffa2b)?console['log'](_0x5796e9(0x107)+_0x1ffa2b+'\x20—\x20not\x20removing.\x20Delete\x20manually\x20if\x20you\x20want\x20it\x20gone.'):(await _0x156ddd['UObSp'](rm,_0x1ffa2b,{'recursive':!![],'force':!![]}),console['log'](_0x5796e9(0x133)+_0x1ffa2b)));if(_0x156ddd[_0x5796e9(0x109)](existsSync,_0x6ecf6e)){let _0x209347=[];try{_0x209347=await _0x156ddd['HPMiR'](readdir,_0x6ecf6e);}catch{return;}const _0x4e8e24=_0x5796e9(0x127)+_0x5804f1+'-';for(const _0x5a54ac of _0x209347){if(!_0x5a54ac['startsWith'](_0x4e8e24))continue;const _0x172fdc=join(_0x6ecf6e,_0x5a54ac);await _0x156ddd['CACwf'](rm,_0x172fdc,{'recursive':!![],'force':!![]}),console[_0x5796e9(0x125)](_0x5796e9(0x133)+_0x172fdc);}}}function _0x46e9(){const _0x422425=['xgWzz','user_declined','Use\x20','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','\x27\x20to\x20the\x20cloud?','Ddgbv','isElectron','indexOf','status','✓\x20Profile\x20\x27','347832iEHFvW','\x20\x20Note:\x20found\x20git-tracked\x20local\x20profile\x20at\x20','HSHNm','ugBvL','\x20\x20Details:\x20https://docs.ranger.net/main/concepts/profiles#automated-login','\x20\x20Did\x20you\x20mean\x20','jWPgY','oGZGT','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','\x0a\x20\x20(domains:\x20','\x20\x20Workaround\x20for\x20now:\x20create\x20a\x20profile\x20without\x20a\x20captured\x20session\x20and\x20supply\x20one\x20later:\x0a','\x20(continuing\x20with\x20--force)','eTktC','HEAD','environments','length','keys','Enqrk','NODE_TLS_REJECT_UNAUTHORIZED','OYMno','126kMQEFD',')\x0a\x20\x20Save\x20\x27','some','tmHVK','Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','\x0a✓\x20Profile\x20\x27','309081QuIHVX','join','\x0a\x20\x20Still\x20could\x20not\x20reach\x20','prompt','\x20\x20Set\x20active\x20profile:\x20','log','This\x20account\x20will\x20be\x20shared\x20with\x20everyone\x20at\x20your\x20organization','.tmp-','\x27\x20created\x20with\x20a\x20captured\x20session.\x0a','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','MSlwQ','\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20cloud-managed\x20session.','error','YEFCC','XAPFm','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20','slice','fetch\x20failed','\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20','warn','trackPhaseEnd','force','message','WkLBF','\x0a\x20\x20Failed\x20to\x20create\x20cloud\x20profile\x20\x22','UObSp','2PXZsoF','\x20--skip-auth\x0a','Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','thjYT','setupHeader','setupHeaders','cdpEndpoint','continue','for\x20you,\x20so\x20the\x20encrypted-CI\x20flow\x20is\x20unnecessary.\x0a','env','\x0a🌐\x20Profile\x20Setup\x0a','http://','gWujO','3545486OzYuzR','rMdnA','8815YQfpbO','vZDiY','DTtxH','HGJGS','16005nTpApn','For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','WYuho','What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','\x22.\x20Expected\x20\x22Name:\x20Value\x22.','30249wWltEf','mDSlV','url','\x0a\x20\x20Could\x20not\x20reach\x20','wVBXT','odVDn','trim','GDROr','confirm','zArHo','Automated\x20login\x20isn\x27t\x20set\x20up\x20for\x20your\x20team.\x20Capture\x20a\x20session\x20via\x20a\x20headed\x20browser\x20instead?','no_match','FSHQU','test','DUuDD','oKacw','587550pJmpuG','NZaQE','joxGO','FaYLF','profile.add.autoRouted','cwd','use_suggestion','isProtocolError','\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a','\x0a\x20\x20A\x20profile\x20named\x20\x22','profile.add.autoRouteSkipped','abort','eJrEA','baseUrl','SSHnl','action','XFxUC','no_auth_config','\x0a\x20\x20No\x20auth\x20env\x20matches\x20','yAbrV','8270YDWlWA','origin','bNlUv','capture','\x22:\x20','Jllhq','\x27\x20created\x20(no\x20session).\x0a','\x27\x20matching\x20','To\x20set\x20up\x20a\x20profile,\x20run:\x0a','\x0a\x20\x20Could\x20not\x20fetch\x20this\x20org\x27s\x20auth\x20config:\x20','TjaLg','exit','FUQAU','1064SFnHjZ','HnlOS','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20','MYIMm'];_0x46e9=function(){return _0x422425;};return _0x46e9();}async function sweepOrphansBestEffort(_0x536240){const _0x28e61b=_0x270d87,_0x575006={'KaNVG':function(_0x4ede6e){return _0x4ede6e();},'BEphM':function(_0x4be02e,_0x4cccf9,_0x448199,_0x1c51d7){return _0x4be02e(_0x4cccf9,_0x448199,_0x1c51d7);},'bNlUv':function(_0x59e526,_0x548ae6){return _0x59e526(_0x548ae6);}};try{await sweepOrphanLocalProfile(_0x536240,_0x575006['KaNVG'](getRangerHomeDir),![]);const _0x545441=getRangerDir();_0x545441!==getRangerHomeDir()&&await _0x575006['BEphM'](sweepOrphanLocalProfile,_0x536240,_0x545441,!![]);}catch(_0x13c4a9){console[_0x28e61b(0x125)]('\x20\x20Note:\x20cloud\x20profile\x20created,\x20but\x20failed\x20to\x20sweep\x20orphan\x20local\x20dirs\x20('+(_0x13c4a9 instanceof Error?_0x13c4a9[_0x28e61b(0x137)]:_0x575006[_0x28e61b(0xed)](String,_0x13c4a9))+').');}}async function markActive(_0x28801e){const _0xbfa55b=_0x270d87,_0x5bfda1={'SGmRf':function(_0x3a8f30,_0x56e52b){return _0x3a8f30(_0x56e52b);},'aURpu':_0xbfa55b(0x11e)};try{await _0x5bfda1['SGmRf'](writeActiveProfileName,_0x28801e),console['log'](_0xbfa55b(0x124)+_0x28801e);}catch{console['log'](_0x5bfda1['aURpu']);}}async function tryAutoRouteCloudProfile(_0x4ea948,_0x3ce60b,_0x5d27d6,_0x68e8db,_0x3415a3){const _0x3ccddf=_0x270d87,_0x41b2db={'WFCNG':_0x3ccddf(0xe1),'THQSc':function(_0xcb7c43,_0x13a334){return _0xcb7c43 instanceof _0x13a334;},'DUuDD':function(_0x522f5f,_0x480d75){return _0x522f5f(_0x480d75);},'HGJGS':function(_0x2f7dfa,_0x533bde){return _0x2f7dfa+_0x533bde;},'TjaLg':'\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','XRcdC':_0x3ccddf(0x110),'HnlOS':_0x3ccddf(0x10a),'GDROr':_0x3ccddf(0xcf),'CMZPS':'saveToCloud','RKCnY':_0x3ccddf(0xfd),'cNuKC':function(_0x4c582a,_0x5e7575,_0x479a10,_0x25f077){return _0x4c582a(_0x5e7575,_0x479a10,_0x25f077);},'gWujO':function(_0x2f9352){return _0x2f9352();},'wVBXT':function(_0x30c3a4,_0x57a7d1){return _0x30c3a4 instanceof _0x57a7d1;},'aLlsW':function(_0x2fd3ec,_0x42f706){return _0x2fd3ec+_0x42f706;}};let _0x4ca495;try{_0x4ca495=await fetchAuthConfig();}catch(_0x22e587){return _0x3415a3?.[_0x3ccddf(0x135)](_0x41b2db['WFCNG'],{'reason':_0x3ccddf(0xe8),'profileName':_0x4ea948}),console['error'](_0x3ccddf(0xf4)+(_0x41b2db['THQSc'](_0x22e587,Error)?_0x22e587[_0x3ccddf(0x137)]:_0x41b2db[_0x3ccddf(0xd5)](String,_0x22e587))),![];}if(!_0x4ca495||!_0x4ca495[_0x3ccddf(0x114)]||Object[_0x3ccddf(0x116)](_0x4ca495[_0x3ccddf(0x114)])[_0x3ccddf(0x115)]===0x0){if(_0x68e8db)return await captureEnvLessProfile(_0x4ea948,_0x3ce60b,_0x5d27d6,_0x3415a3);return _0x3415a3?.[_0x3ccddf(0x135)](_0x3ccddf(0xe1),{'reason':'no_auth_config','profileName':_0x4ea948}),console[_0x3ccddf(0x12c)](_0x41b2db[_0x3ccddf(0x14d)](_0x41b2db[_0x3ccddf(0x14d)](_0x41b2db[_0x3ccddf(0x14d)](_0x41b2db[_0x3ccddf(0xf5)]+'\x0a'+_0x41b2db['XRcdC'],_0x3ccddf(0xfa)+_0x4ea948+'\x20--url\x20'+_0x3ce60b+_0x3ccddf(0x13c))+'\x0a','\x20\x20To\x20get\x20automated\x20login\x20set\x20up\x20for\x20your\x20team\x20(a\x20one-time\x20call):\x20eng@ranger.net\x0a'),_0x41b2db[_0x3ccddf(0xf9)])),![];}const _0x38da1d=matchAuthEnvironment(_0x3ce60b,_0x4ca495);if(!_0x38da1d)return _0x3415a3?.[_0x3ccddf(0x135)](_0x3ccddf(0xe1),{'reason':_0x3ccddf(0xd2),'profileName':_0x4ea948}),console[_0x3ccddf(0x12c)](_0x3ccddf(0xe9)+_0x3ce60b+'.\x20Configured\x20envs:\x20'+Object[_0x3ccddf(0x116)](_0x4ca495[_0x3ccddf(0x114)])[_0x3ccddf(0x121)](',\x20')+'.'),![];const _0x5d26bd=_0x4ca495[_0x3ccddf(0x114)][_0x38da1d],_0x578559=_0x5d26bd?.['domains']??[];if(_0x68e8db&&!_0x5d27d6['yes']){const {saveToCloud:_0x2cc0bb}=await _0x7d494e[_0x3ccddf(0x123)]([{'type':_0x41b2db[_0x3ccddf(0xce)],'name':_0x41b2db['CMZPS'],'message':'Found\x20auth\x20environment\x20\x27'+_0x38da1d+_0x3ccddf(0xf2)+_0x3ce60b+_0x3ccddf(0x10f)+_0x578559['join'](',\x20')+_0x3ccddf(0x11b)+_0x4ea948+_0x3ccddf(0x100),'default':!![]}]);if(!_0x2cc0bb)return _0x3415a3?.['trackPhaseEnd'](_0x41b2db['WFCNG'],{'reason':_0x41b2db['RKCnY'],'profileName':_0x4ea948}),console[_0x3ccddf(0x12c)](_0x3ccddf(0x12b)),![];}const _0x4b1484=_0x578559[_0x3ccddf(0x11c)](_0x59c5ec=>{const _0x17185b=_0x3ccddf;try{return new URL(_0x59c5ec)['origin']===new URL(_0x3ce60b)[_0x17185b(0xec)];}catch{return![];}}),_0x43e29e={};!_0x4b1484&&(_0x43e29e[_0x3ccddf(0xe4)]=_0x3ce60b);try{await _0x41b2db['cNuKC'](createCloudProfile,_0x4ea948,_0x38da1d,{'settings':_0x43e29e}),_0x41b2db[_0x3ccddf(0x147)](warnCloudProfileSharedInOrg);}catch(_0x102db9){if(_0x41b2db[_0x3ccddf(0xcb)](_0x102db9,ApiError)&&_0x102db9[_0x3ccddf(0x104)]===0x199){console[_0x3ccddf(0x12c)](_0x41b2db['HGJGS'](_0x3ccddf(0xe0)+_0x4ea948+_0x3ccddf(0xdf),_0x3ccddf(0x12f)+_0x4ea948));throw _0x102db9;}throw _0x102db9;}return console[_0x3ccddf(0x125)](_0x41b2db['aLlsW'](_0x3ccddf(0x105)+_0x4ea948+'\x27\x20created.\x0a','\x20\x20Next:\x20ranger\x20go\x20--profile\x20'+_0x4ea948)),await _0x41b2db['DUuDD'](sweepOrphansBestEffort,_0x4ea948),_0x3415a3?.[_0x3ccddf(0x135)]('profile.add.autoRouted',{'envKey':_0x38da1d,'profileName':_0x4ea948}),!![];}async function createUnconfiguredCloudProfile(_0x4b4b91,_0x4ed09d){const _0x34adbd=_0x270d87,_0x598be0={'Jllhq':function(_0x4c28c2,_0x2a9d50,_0x3afb8a,_0xc447f1){return _0x4c28c2(_0x2a9d50,_0x3afb8a,_0xc447f1);}};try{await _0x598be0[_0x34adbd(0xf0)](createCloudProfile,_0x4b4b91,undefined,{'settings':_0x4ed09d}),warnCloudProfileSharedInOrg();}catch(_0x140983){_0x140983 instanceof ApiError&&_0x140983[_0x34adbd(0x104)]===0x199&&console['error']('\x0a\x20\x20A\x20profile\x20named\x20\x22'+_0x4b4b91+_0x34adbd(0xdf)+('\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x4b4b91));throw _0x140983;}}async function captureEnvLessProfile(_0x319dff,_0x484e0a,_0x337445,_0x4b648c){const _0x3acbc0=_0x270d87,_0x33ac8f={'rMdnA':_0x3acbc0(0xee),'FSHQU':'profile.add.autoRouteSkipped','oKacw':'user_declined','MSlwQ':function(_0x233d06,_0x344e8f){return _0x233d06+_0x344e8f;},'odVDn':function(_0x1e7d1e,_0x177364){return _0x1e7d1e===_0x177364;},'MYIMm':function(_0x47bfab){return _0x47bfab();},'XFxUC':function(_0x3950cf,_0x5d2faa){return _0x3950cf>_0x5d2faa;},'NZaQE':function(_0x17d782,_0xb3cd06){return _0x17d782(_0xb3cd06);},'xgWzz':_0x3acbc0(0xdb)};if(!_0x337445['yes']){const {capture:_0x4f0ade}=await _0x7d494e['prompt']([{'type':_0x3acbc0(0xcf),'name':_0x33ac8f[_0x3acbc0(0x149)],'message':_0x3acbc0(0xd1),'default':!![]}]);if(!_0x4f0ade)return _0x4b648c?.['trackPhaseEnd'](_0x33ac8f[_0x3acbc0(0xd3)],{'reason':_0x33ac8f[_0x3acbc0(0xd6)],'profileName':_0x319dff}),console[_0x3acbc0(0x12c)](_0x33ac8f[_0x3acbc0(0x12a)]('\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20session,\x0a','\x20\x20or\x20contact\x20eng@ranger.net\x20to\x20set\x20up\x20automated\x20login\x20for\x20your\x20team.')),![];}const _0x105e2b={};if(_0x337445['setupHeader'])for(const _0x4801ff of _0x337445[_0x3acbc0(0x13f)]){const _0x267402=_0x4801ff['indexOf'](':');if(_0x33ac8f['odVDn'](_0x267402,-0x1))continue;_0x105e2b[_0x4801ff[_0x3acbc0(0x130)](0x0,_0x267402)[_0x3acbc0(0xcd)]()]=_0x4801ff[_0x3acbc0(0x130)](_0x33ac8f['MSlwQ'](_0x267402,0x1))[_0x3acbc0(0xcd)]();}const _0xf4e5d0={'baseUrl':_0x484e0a};Object[_0x3acbc0(0x116)](_0x105e2b)[_0x3acbc0(0x115)]>0x0&&(_0xf4e5d0['setupHeaders']=_0x105e2b);let _0x1198e9;try{_0x1198e9=await createCloudProfile(_0x319dff,undefined,{'settings':_0xf4e5d0}),_0x33ac8f[_0x3acbc0(0xfb)](warnCloudProfileSharedInOrg);}catch(_0x1644a4){_0x1644a4 instanceof ApiError&&_0x33ac8f[_0x3acbc0(0xcc)](_0x1644a4['status'],0x199)&&console['error']('\x0a\x20\x20A\x20profile\x20named\x20\x22'+_0x319dff+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a'+(_0x3acbc0(0x12f)+_0x319dff));throw _0x1644a4;}return await manualBrowserLogin(_0x1198e9,{'key':'','domains':[_0x484e0a],'setupHeaders':_0x33ac8f[_0x3acbc0(0xe7)](Object[_0x3acbc0(0x116)](_0x105e2b)['length'],0x0)?_0x105e2b:undefined}),console[_0x3acbc0(0x125)](_0x3acbc0(0x11f)+_0x319dff+_0x3acbc0(0x128)+('\x20\x20Next:\x20ranger\x20go\x20--profile\x20'+_0x319dff)),await _0x33ac8f[_0x3acbc0(0xd8)](sweepOrphansBestEffort,_0x319dff),_0x4b648c?.[_0x3acbc0(0x135)](_0x33ac8f[_0x3acbc0(0xfc)],{'envKey':null,'profileName':_0x319dff}),!![];}export async function addEnv(_0x2dc009,_0x232327={},_0x28acbb){const _0x2a07ce=_0x270d87,_0x474c68={'iUDUo':function(_0x137a92,_0x3939eb){return _0x137a92+_0x3939eb;},'eJrEA':function(_0x597585,_0x3bea10){return _0x597585+_0x3bea10;},'tltgl':'The\x20--ci\x20flag\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x20session\x20state\x0a','lCEew':_0x2a07ce(0x143),'VHRtm':_0x2a07ce(0xf3),'XAPFm':function(_0x46c684,_0x6b945c){return _0x46c684!==_0x6b945c;},'YEFCC':function(_0x28cef7,_0x57fc49){return _0x28cef7===_0x57fc49;},'thjYT':'--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','ZWZiS':'--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','jWPgY':function(_0x5b4e3f){return _0x5b4e3f();},'PKMcs':function(_0x5e5ffc,_0x4a0c7d){return _0x5e5ffc>_0x4a0c7d;},'HSHNm':function(_0x3c0a92,_0x4bbe38,_0x859fc0){return _0x3c0a92(_0x4bbe38,_0x859fc0);},'FUQAU':function(_0x378ad3,_0x38a2ee,_0x1f9ef3,_0x325741,_0x50c8e4){return _0x378ad3(_0x38a2ee,_0x1f9ef3,_0x325741,_0x50c8e4);},'SSHnl':function(_0x4f930f,_0x5d3e8d){return _0x4f930f instanceof _0x5d3e8d;},'yAbrV':function(_0x3f006c,_0xb9be13){return _0x3f006c(_0xb9be13);},'oGZGT':function(_0x303400,_0x56eb02){return _0x303400(_0x56eb02);},'FaYLF':function(_0x4f78c4,_0x370534){return _0x4f78c4(_0x370534);},'jwKpI':function(_0x403fd9,_0x4af93b){return _0x403fd9(_0x4af93b);},'DTtxH':_0x2a07ce(0x13d),'tmHVK':function(_0x3a204b,_0x1eaffb){return _0x3a204b||_0x1eaffb;},'mDSlV':'http://localhost:3000','yexhR':'list','nGVpB':'What\x20would\x20you\x20like\x20to\x20do?','YXyTg':'Enter\x20a\x20different\x20URL','vZDiY':_0x2a07ce(0x142),'WYuho':function(_0x54fbc9,_0x36bab3){return _0x54fbc9(_0x36bab3);}};_0x232327['ci']&&(console['error'](_0x474c68['iUDUo'](_0x474c68[_0x2a07ce(0xe3)](_0x474c68['tltgl'],_0x474c68['lCEew']),'\x0a')+_0x474c68['VHRtm']+_0x2a07ce(0x129)+'\x0a'+_0x2a07ce(0x14f)+'\x20\x20https://docs.ranger.net/main/concepts/profiles'),process['exit'](0x1));const _0x1768b7={};if(_0x232327['setupHeader'])for(const _0x307ad4 of _0x232327[_0x2a07ce(0x13f)]){const _0x23d2bd=_0x307ad4[_0x2a07ce(0x103)](':');if(_0x23d2bd===-0x1)throw new Error('Invalid\x20--setup-header\x20format:\x20\x22'+_0x307ad4+_0x2a07ce(0xc6));const _0x4fd94b=_0x307ad4[_0x2a07ce(0x130)](0x0,_0x23d2bd)[_0x2a07ce(0xcd)](),_0x1f1102=_0x307ad4['slice'](_0x474c68['eJrEA'](_0x23d2bd,0x1))['trim']();_0x1768b7[_0x4fd94b]=_0x1f1102;}if(_0x474c68[_0x2a07ce(0x12e)](_0x232327['cdpEndpoint'],undefined)&&_0x474c68[_0x2a07ce(0x12d)](_0x232327['cdpEndpoint'][_0x2a07ce(0xcd)](),''))throw new Error(_0x474c68[_0x2a07ce(0x13e)]);if(_0x232327['cdpEndpoint']&&_0x232327[_0x2a07ce(0xc9)])throw new Error(_0x474c68['ZWZiS']);const _0x21c634=Boolean(_0x232327[_0x2a07ce(0x141)]),_0x43af11=_0x474c68[_0x2a07ce(0x10c)](isInteractive);if(!_0x43af11&&!_0x232327['url']&&!_0x21c634&&!_0x232327['skipAuth'])throw new Error(_0x2a07ce(0x10e));if(_0x21c634){const _0x5e9ed9=_0x232327[_0x2a07ce(0x141)];console[_0x2a07ce(0x125)](_0x2a07ce(0x132)),console[_0x2a07ce(0x125)]('\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20'+_0x5e9ed9);const _0x15af74={'cdpEndpoint':_0x5e9ed9,'isElectron':!![]};_0x474c68['PKMcs'](Object[_0x2a07ce(0x116)](_0x1768b7)[_0x2a07ce(0x115)],0x0)&&(_0x15af74[_0x2a07ce(0x140)]=_0x1768b7);await _0x474c68['HSHNm'](createUnconfiguredCloudProfile,_0x2dc009,_0x15af74);try{_0x474c68[_0x2a07ce(0xf7)](setProfileOverride,process[_0x2a07ce(0xdc)](),_0x2dc009,_0x2a07ce(0x141),_0x5e9ed9),setProfileOverride(process['cwd'](),_0x2dc009,_0x2a07ce(0x102),!![]);}catch(_0x203384){console[_0x2a07ce(0x12c)]('\x0a\x20\x20Cloud\x20profile\x20created,\x20but\x20failed\x20to\x20write\x20per-cwd\x20CDP\x20override\x20to\x20projects.json:\x20'+(_0x474c68[_0x2a07ce(0xe5)](_0x203384,Error)?_0x203384['message']:String(_0x203384)));}console[_0x2a07ce(0x125)]('✓\x20Cloud\x20profile\x20\x27'+_0x2dc009+'\x27\x20created\x20(CDP).'),await sweepOrphansBestEffort(_0x2dc009),await _0x474c68[_0x2a07ce(0xea)](markActive,_0x2dc009);return;}if(_0x232327['skipAuth']){const _0x97ec0f={};_0x232327['url']&&(_0x97ec0f['baseUrl']=_0x232327['url']);_0x474c68['PKMcs'](Object['keys'](_0x1768b7)[_0x2a07ce(0x115)],0x0)&&(_0x97ec0f['setupHeaders']=_0x1768b7);await _0x474c68[_0x2a07ce(0x108)](createUnconfiguredCloudProfile,_0x2dc009,_0x97ec0f),console['log'](_0x474c68['iUDUo']('✓\x20Profile\x20\x27'+_0x2dc009+_0x2a07ce(0xf1),'\x20\x20When\x20you\x27re\x20ready\x20to\x20log\x20in,\x20run\x20`ranger\x20profile\x20add\x20'+_0x2dc009+'`\x20again\x20without\x20--skip-auth.')),await _0x474c68[_0x2a07ce(0x10d)](sweepOrphansBestEffort,_0x2dc009),await _0x474c68[_0x2a07ce(0xda)](markActive,_0x2dc009);return;}if(_0x232327[_0x2a07ce(0xc9)]){const _0x39fccc=_0x232327[_0x2a07ce(0xc9)],_0x41f5d7=await _0x474c68['jwKpI'](checkUrlReachability,_0x39fccc);if(!_0x41f5d7['ok']&&!_0x232327[_0x2a07ce(0x136)])throw new Error('Could\x20not\x20reach\x20'+_0x39fccc+':\x20'+_0x41f5d7[_0x2a07ce(0x12c)]+_0x2a07ce(0xff));!_0x41f5d7['ok']&&_0x232327['force']&&console['log']('⚠\x20Could\x20not\x20reach\x20'+_0x39fccc+':\x20'+_0x41f5d7['error']+_0x2a07ce(0x111));}else{console['log'](_0x2a07ce(0x145)),console[_0x2a07ce(0x125)]('\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.'),console[_0x2a07ce(0x125)]('\x20\x20Ranger\x20will\x20use\x20it\x20to\x20look\x20up\x20the\x20right\x20cloud\x20auth\x20env\x20to\x20attach.\x0a');let _0x39bea4='',_0xf21eae=![];while(!![]){const _0x1d0394=await _0x7d494e['prompt']([{'type':'input','name':'baseUrl','message':_0xf21eae?_0x474c68[_0x2a07ce(0x14c)]:_0x2a07ce(0x151),'default':_0x474c68[_0x2a07ce(0x11d)](_0x39bea4,_0x474c68[_0x2a07ce(0xc8)])}]);_0x39bea4=_0x1d0394[_0x2a07ce(0xe4)];const _0x3bcf60=await checkUrlReachability(_0x39bea4);if(_0x3bcf60['ok'])break;const _0x93ed2=/^[a-zA-Z][\w+.-]*:\/\//[_0x2a07ce(0xd4)](_0x39bea4),_0x2ff0fc=_0x3bcf60[_0x2a07ce(0xde)]&&!_0x93ed2,_0x37a4aa=_0x2ff0fc?_0x2a07ce(0x146)+_0x39bea4:null;_0xf21eae=!![],console['log'](_0x2a07ce(0xca)+_0x39bea4+':\x20'+_0x3bcf60['error']);_0x37a4aa&&console['log'](_0x2a07ce(0x10b)+_0x37a4aa+'?');const {action:_0x501d57}=await _0x7d494e['prompt']([{'type':_0x474c68['yexhR'],'name':_0x2a07ce(0xe6),'message':_0x474c68['nGVpB'],'choices':[..._0x37a4aa?[{'name':_0x2a07ce(0xfe)+_0x37a4aa,'value':_0x2a07ce(0xdd)}]:[],{'name':_0x474c68['YXyTg'],'value':'retry'},{'name':'Continue\x20anyway','value':_0x474c68[_0x2a07ce(0x14b)]}]}]);if(_0x474c68[_0x2a07ce(0x12d)](_0x501d57,'use_suggestion')&&_0x37a4aa){_0x39bea4=_0x37a4aa;const _0x4fdc76=await checkUrlReachability(_0x39bea4);if(_0x4fdc76['ok'])break;console[_0x2a07ce(0x125)](_0x2a07ce(0x122)+_0x39bea4+':\x20'+_0x4fdc76[_0x2a07ce(0x12c)]);}else{if(_0x501d57===_0x474c68[_0x2a07ce(0x14b)])break;}}_0x232327={..._0x232327,'url':_0x39bea4};}let _0x34cdcd=![];try{_0x34cdcd=await tryAutoRouteCloudProfile(_0x2dc009,_0x232327['url'],_0x232327,_0x43af11,_0x28acbb);}catch(_0x3e757d){console[_0x2a07ce(0x12c)](_0x2a07ce(0x139)+_0x2dc009+_0x2a07ce(0xef)+(_0x474c68[_0x2a07ce(0xe5)](_0x3e757d,Error)?_0x3e757d[_0x2a07ce(0x137)]:_0x474c68['FaYLF'](String,_0x3e757d))),process[_0x2a07ce(0xf6)](0x1);}!_0x34cdcd&&process['exit'](0x1),await _0x474c68[_0x2a07ce(0x150)](markActive,_0x2dc009);}
@@ -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(_0x48d0ec,_0x38346a){var _0x5b3328=_0x3e65,_0x2b920d=_0x48d0ec();while(!![]){try{var _0x36925c=-parseInt(_0x5b3328(0xd7))/0x1*(parseInt(_0x5b3328(0xdd))/0x2)+parseInt(_0x5b3328(0xde))/0x3+-parseInt(_0x5b3328(0xd4))/0x4*(parseInt(_0x5b3328(0xe4))/0x5)+parseInt(_0x5b3328(0xe0))/0x6+parseInt(_0x5b3328(0xe2))/0x7*(parseInt(_0x5b3328(0xd8))/0x8)+parseInt(_0x5b3328(0xe1))/0x9+parseInt(_0x5b3328(0xd9))/0xa*(parseInt(_0x5b3328(0xdf))/0xb);if(_0x36925c===_0x38346a)break;else _0x2b920d['push'](_0x2b920d['shift']());}catch(_0x5d8261){_0x2b920d['push'](_0x2b920d['shift']());}}}(_0x38f2,0x89830));function _0x38f2(){var _0x33589b=['180GgVdch','1015215AvMkEl','1495747oEDcxQ','437796lqlAfm','7615827MVmSrM','3153178bBAKtV','VbTpp','110945hVElNT','vgsnc','Utenm','196PemYAz','ranger\x20profile\x20encrypt-auth\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x0a','MUfon','7155GesKIr','16SHnWIe','10mFVlRN','For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','\x20\x20https://docs.ranger.net/main/concepts/profiles','rncYd'];_0x38f2=function(){return _0x33589b;};return _0x38f2();}function _0x3e65(_0x3127b3,_0x445c72){_0x3127b3=_0x3127b3-0xd2;var _0x38f272=_0x38f2();var _0x3e6504=_0x38f272[_0x3127b3];return _0x3e6504;}export async function authEncrypt(_0x204183){var _0xfcf413=_0x3e65,_0x518820={'vgsnc':function(_0x14f72e,_0x36d4b6){return _0x14f72e+_0x36d4b6;},'MUfon':function(_0x3c4f00,_0x209072){return _0x3c4f00+_0x209072;},'VbTpp':function(_0x305a49,_0xe40d04){return _0x305a49+_0xe40d04;},'Utenm':'session\x20state\x20for\x20you,\x20so\x20encrypted\x20on-disk\x20auth\x20is\x20unnecessary.\x0a','yAmIA':'To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','rncYd':_0xfcf413(0xdb)};console['error'](_0x518820[_0xfcf413(0xd2)](_0x518820[_0xfcf413(0xd6)](_0x518820[_0xfcf413(0xd6)](_0x518820[_0xfcf413(0xe3)](_0x518820[_0xfcf413(0xd2)](_0xfcf413(0xd5)+_0x518820[_0xfcf413(0xd3)],'\x0a'),_0x518820['yAmIA'])+'\x20\x20ranger\x20profile\x20add\x20<name>\x0a','\x0a'),_0xfcf413(0xda)),_0x518820[_0xfcf413(0xdc)])),process['exit'](0x1);}
@@ -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 _0x37627c=_0xdc08;(function(_0x1b0a06,_0x1c4881){const _0x493a3b=_0xdc08,_0x2c0167=_0x1b0a06();while(!![]){try{const _0x5734aa=parseInt(_0x493a3b(0x156))/0x1*(-parseInt(_0x493a3b(0x145))/0x2)+-parseInt(_0x493a3b(0x150))/0x3*(parseInt(_0x493a3b(0x160))/0x4)+-parseInt(_0x493a3b(0x142))/0x5+-parseInt(_0x493a3b(0x162))/0x6*(-parseInt(_0x493a3b(0x161))/0x7)+parseInt(_0x493a3b(0x13d))/0x8*(parseInt(_0x493a3b(0x15b))/0x9)+parseInt(_0x493a3b(0x165))/0xa+parseInt(_0x493a3b(0x134))/0xb*(parseInt(_0x493a3b(0x166))/0xc);if(_0x5734aa===_0x1c4881)break;else _0x2c0167['push'](_0x2c0167['shift']());}catch(_0x56e57f){_0x2c0167['push'](_0x2c0167['shift']());}}}(_0x3028,0x56df4));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{spawn}from'child_process';import{deleteAllCredentials}from'./utils/keychain.js';function _0x3028(){const _0x2c0e9c=['RNRwD','NhzUa','2908955GrvRjj','✓\x20Removed\x20user\x20skill:\x20','ranger','2UXrPla','log','--scope','stringify','\x0a✅\x20Cleanup\x20complete!\x0a','KGpFb','gVsua','win32','\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','zebIh','YhvXq','486306asGnpG','push','IGiZE','dONzs','JzyxK','mawOk','624922ArDHdD','✓\x20Removed\x20stored\x20credentials','@ranger-testing/opencode-plugin','project','✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','18KMygYW','eycgc','✓\x20Removed\x20.ranger/\x20directory','parse','loeHL','4ueZatN','574VymDPa','47238zrzpgN','plugin','opencode.json','661950InxWWB','106248dyVwLR','ZYwHy','✓\x20Removed\x20OpenCode\x20user\x20skill:\x20','aJEQh','remove','YPHYi','ignore','user','length','platform','VYqGN','claude','filter','473wVnsRE','SfmOC','replace','ZPYsL','close','utf-8','YeGjR','WRyVY','string','2528560nCyVox','tMaNB','UZuTF'];_0x3028=function(){return _0x2c0e9c;};return _0x3028();}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';function _0xdc08(_0x219164,_0x4d60da){_0x219164=_0x219164-0x128;const _0x3028ee=_0x3028();let _0xdc088a=_0x3028ee[_0x219164];return _0xdc088a;}const skillsToRemove=[_0x37627c(0x144),'feature-tracker','bug-bash','e2e-test-recommender'],opencodePluginName=_0x37627c(0x158);function parseJsonc(_0x32b035){const _0x5e280f=_0x37627c,_0x58621f=_0x32b035['replace'](/\/\*[\s\S]*?\*\//g,''),_0x40fcc5=_0x58621f[_0x5e280f(0x136)](/^\s*\/\/.*$/gm,''),_0x579f76=_0x40fcc5[_0x5e280f(0x136)](/,\s*([}\]])/g,'$1');return JSON[_0x5e280f(0x15e)](_0x579f76);}async function removeOpencodePluginConfig(_0x245b8c){const _0x43d5fc=_0x37627c,_0x2d73e7={'mawOk':function(_0x2b01ec,_0x583346){return _0x2b01ec(_0x583346);},'WRyVY':function(_0x4d0fd8,_0x29b8b5,_0x574fd6){return _0x4d0fd8(_0x29b8b5,_0x574fd6);},'bwApV':_0x43d5fc(0x139),'hkKzS':function(_0x1f859e,_0x32014a){return _0x1f859e(_0x32014a);},'YVBeP':function(_0x41d6be,_0x40e083){return _0x41d6be===_0x40e083;},'fuCQy':function(_0x1276a6,_0x10d396){return _0x1276a6===_0x10d396;},'eycgc':function(_0x4e9d3,_0xb0250b){return _0x4e9d3+_0xb0250b;}};if(!_0x2d73e7[_0x43d5fc(0x155)](existsSync,_0x245b8c))return![];let _0x50d888;try{const _0x18c6ee=await _0x2d73e7[_0x43d5fc(0x13b)](readFile,_0x245b8c,_0x2d73e7['bwApV']);_0x50d888=_0x2d73e7['hkKzS'](parseJsonc,_0x18c6ee);}catch{return![];}const _0x17c737=Array['isArray'](_0x50d888[_0x43d5fc(0x163)])?_0x50d888['plugin']:[];if(_0x17c737[_0x43d5fc(0x12f)]===0x0)return![];const _0x461b02=_0x17c737[_0x43d5fc(0x133)](_0x2f1892=>{const _0x1da6f4=_0x43d5fc;if(typeof _0x2f1892!==_0x1da6f4(0x13c))return!![];return _0x2f1892!==opencodePluginName;});if(_0x2d73e7['YVBeP'](_0x461b02[_0x43d5fc(0x12f)],_0x17c737['length']))return![];return _0x2d73e7['fuCQy'](_0x461b02['length'],0x0)?delete _0x50d888['plugin']:_0x50d888[_0x43d5fc(0x163)]=_0x461b02,await writeFile(_0x245b8c,_0x2d73e7[_0x43d5fc(0x15c)](JSON[_0x43d5fc(0x148)](_0x50d888,null,0x2),'\x0a')),!![];}async function uninstallClaudePlugin(_0x2970c8){const _0x22aa00=_0x37627c,_0x4b5fbe={'icXPi':function(_0x18b52d,_0x5d8354){return _0x18b52d(_0x5d8354);},'eAnGA':_0x22aa00(0x163),'MJhLO':'uninstall','ZYwHy':'ranger@trailhead','kDvxr':_0x22aa00(0x147),'AGfoZ':_0x22aa00(0x132),'PWcxY':_0x22aa00(0x12d),'VYqGN':_0x22aa00(0x14c),'KGpFb':'close'};return new Promise(_0x5940b5=>{const _0x588e32=_0x22aa00,_0x21d02d=[_0x4b5fbe['eAnGA'],_0x4b5fbe['MJhLO'],_0x4b5fbe[_0x588e32(0x128)]];_0x2970c8&&_0x21d02d[_0x588e32(0x151)](_0x4b5fbe['kDvxr'],_0x2970c8);const _0x575280=spawn(_0x4b5fbe['AGfoZ'],_0x21d02d,{'stdio':[_0x4b5fbe['PWcxY'],'ignore',_0x588e32(0x12d)],'cwd':_0x2970c8?getProjectRoot():undefined,'shell':process[_0x588e32(0x130)]===_0x4b5fbe[_0x588e32(0x131)]});_0x575280['on'](_0x4b5fbe[_0x588e32(0x14a)],_0x19beb2=>{_0x5940b5(_0x19beb2===0x0);}),_0x575280['on']('error',()=>{_0x4b5fbe['icXPi'](_0x5940b5,![]);});});}async function removeMarketplace(){const _0x5ab1df=_0x37627c,_0x330a2f={'aJEQh':function(_0x31863f,_0x418bdf,_0x39ed6,_0x2eb621){return _0x31863f(_0x418bdf,_0x39ed6,_0x2eb621);},'gogmI':'claude','JzyxK':'marketplace','gVsua':'trailhead','loeHL':_0x5ab1df(0x12d),'YhvXq':function(_0x1f9f31,_0x2428a9){return _0x1f9f31===_0x2428a9;},'SfmOC':'win32','nXFbq':_0x5ab1df(0x138)};return new Promise(_0x242dae=>{const _0x1c601d=_0x5ab1df,_0x46194b=_0x330a2f[_0x1c601d(0x12a)](spawn,_0x330a2f['gogmI'],['plugin',_0x330a2f[_0x1c601d(0x154)],_0x1c601d(0x12b),_0x330a2f[_0x1c601d(0x14b)]],{'stdio':['ignore',_0x1c601d(0x12d),_0x330a2f[_0x1c601d(0x15f)]],'shell':_0x330a2f[_0x1c601d(0x14f)](process['platform'],_0x330a2f[_0x1c601d(0x135)])});_0x46194b['on'](_0x330a2f['nXFbq'],_0x508bf6=>{_0x242dae(_0x508bf6===0x0);}),_0x46194b['on']('error',()=>{_0x242dae(![]);});});}export async function clean(){const _0x11b256=_0x37627c,_0x4d56fe={'mpBjB':_0x11b256(0x14d),'YPHYi':_0x11b256(0x157),'ZPYsL':function(_0x21ff02,_0x2ab95b){return _0x21ff02(_0x2ab95b);},'nnqUY':function(_0x38aa3c,_0x2ebbff){return _0x38aa3c(_0x2ebbff);},'tMaNB':function(_0x504354,_0x5ed23a,_0xaff74f){return _0x504354(_0x5ed23a,_0xaff74f);},'YeGjR':function(_0x17367d){return _0x17367d();},'dONzs':_0x11b256(0x159),'CIveT':function(_0x562f86,_0x3298ac,_0x157f27){return _0x562f86(_0x3298ac,_0x157f27);},'RNRwD':_0x11b256(0x12e),'HLXvD':function(_0xc19aae,_0x24718a){return _0xc19aae(_0x24718a);},'UZuTF':function(_0x3f7edb,_0x23b490,_0x38470c){return _0x3f7edb(_0x23b490,_0x38470c);},'IGiZE':'opencode.json','zebIh':'✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','BoTys':function(_0x1e711f,_0x40fea9){return _0x1e711f(_0x40fea9);},'NhzUa':'✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','NJBFT':_0x11b256(0x15a)};console['log'](_0x4d56fe['mpBjB']);let _0x578380=![];try{await deleteAllCredentials(),console[_0x11b256(0x146)](_0x4d56fe[_0x11b256(0x12c)]),_0x578380=!![];}catch{}const _0x3af761=getCacheFile();_0x4d56fe[_0x11b256(0x137)](existsSync,_0x3af761)&&(await rm(_0x3af761),_0x578380=!![]);const _0x4f613b=getRangerDir();_0x4d56fe['nnqUY'](existsSync,_0x4f613b)&&(await _0x4d56fe['tMaNB'](rm,_0x4f613b,{'recursive':!![]}),console['log'](_0x11b256(0x15d)),_0x578380=!![]);const _0x584c2e=getProjectSkillsDir();for(const _0x27eecf of skillsToRemove){const _0xdbc506=join(_0x584c2e,_0x27eecf);_0x4d56fe['ZPYsL'](existsSync,_0xdbc506)&&(await _0x4d56fe[_0x11b256(0x13e)](rm,_0xdbc506,{'recursive':!![]}),console['log']('✓\x20Removed\x20project\x20skill:\x20'+_0x27eecf),_0x578380=!![]);}const _0x4ad2c2=_0x4d56fe[_0x11b256(0x13a)](getUserSkillsDir);for(const _0xb8f5ce of skillsToRemove){const _0x421406=join(_0x4ad2c2,_0xb8f5ce);_0x4d56fe['ZPYsL'](existsSync,_0x421406)&&(await rm(_0x421406,{'recursive':!![]}),console['log'](_0x11b256(0x143)+_0xb8f5ce),_0x578380=!![]);}const _0x1aed23=_0x4d56fe['ZPYsL'](getOpencodeSkillsDir,_0x4d56fe[_0x11b256(0x153)]);for(const _0x1fddd2 of skillsToRemove){const _0x13161c=_0x4d56fe['CIveT'](join,_0x1aed23,_0x1fddd2);_0x4d56fe['nnqUY'](existsSync,_0x13161c)&&(await _0x4d56fe[_0x11b256(0x13e)](rm,_0x13161c,{'recursive':!![]}),console[_0x11b256(0x146)]('✓\x20Removed\x20OpenCode\x20project\x20skill:\x20'+_0x1fddd2),_0x578380=!![]);}const _0x38824d=getOpencodeSkillsDir(_0x4d56fe[_0x11b256(0x140)]);for(const _0x513e9e of skillsToRemove){const _0x52c28b=join(_0x38824d,_0x513e9e);_0x4d56fe['HLXvD'](existsSync,_0x52c28b)&&(await rm(_0x52c28b,{'recursive':!![]}),console['log'](_0x11b256(0x129)+_0x513e9e),_0x578380=!![]);}const _0x3f33b0=_0x4d56fe[_0x11b256(0x13f)](join,getOpencodeConfigDir(_0x11b256(0x159)),_0x4d56fe[_0x11b256(0x152)]);await _0x4d56fe[_0x11b256(0x137)](removeOpencodePluginConfig,_0x3f33b0)&&(console['log'](_0x4d56fe[_0x11b256(0x14e)]),_0x578380=!![]);const _0x2977d7=join(_0x4d56fe['BoTys'](getOpencodeConfigDir,_0x4d56fe[_0x11b256(0x140)]),_0x11b256(0x164));await removeOpencodePluginConfig(_0x2977d7)&&(console[_0x11b256(0x146)]('✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)'),_0x578380=!![]);const _0x21c59e=await _0x4d56fe[_0x11b256(0x13a)](uninstallClaudePlugin);_0x21c59e&&(console[_0x11b256(0x146)](_0x4d56fe[_0x11b256(0x141)]),_0x578380=!![]);const _0x5977b4=await _0x4d56fe['nnqUY'](uninstallClaudePlugin,_0x11b256(0x159));_0x5977b4&&(console['log'](_0x4d56fe['NJBFT']),_0x578380=!![]);const _0x1f7d32=await removeMarketplace();_0x1f7d32&&(console['log']('✓\x20Removed\x20trailhead\x20marketplace'),_0x578380=!![]),_0x578380?console['log'](_0x11b256(0x149)):console[_0x11b256(0x146)]('Nothing\x20to\x20clean\x20up.\x0a');}
@@ -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
+ (function(_0x1b439a,_0x334379){const _0x26eee2=_0x3c66,_0x2dd167=_0x1b439a();while(!![]){try{const _0x3c3609=parseInt(_0x26eee2(0x126))/0x1*(parseInt(_0x26eee2(0x12b))/0x2)+parseInt(_0x26eee2(0x12e))/0x3+parseInt(_0x26eee2(0x13d))/0x4*(parseInt(_0x26eee2(0x145))/0x5)+-parseInt(_0x26eee2(0x152))/0x6+parseInt(_0x26eee2(0x125))/0x7+parseInt(_0x26eee2(0x135))/0x8*(parseInt(_0x26eee2(0x132))/0x9)+-parseInt(_0x26eee2(0x13a))/0xa;if(_0x3c3609===_0x334379)break;else _0x2dd167['push'](_0x2dd167['shift']());}catch(_0x270416){_0x2dd167['push'](_0x2dd167['shift']());}}}(_0x1d33,0xb1dbe));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 _0x3c66(_0x35702f,_0x4e392b){_0x35702f=_0x35702f-0x125;const _0x1d337d=_0x1d33();let _0x3c666b=_0x1d337d[_0x35702f];return _0x3c666b;}const BOOLEAN_KEYS=['headless','allowInsecureLocalhost','forceLogin'];function parseLocalValue(_0xadc7a2,_0x20fa73){const _0x1d56d4=_0x3c66,_0x3a1390={'bYajW':'true'};if(BOOLEAN_KEYS['includes'](_0xadc7a2)){if(_0x20fa73===_0x3a1390['bYajW'])return!![];if(_0x20fa73===_0x1d56d4(0x129))return![];throw new Error('Invalid\x20value\x20for\x20'+_0xadc7a2+_0x1d56d4(0x142));}return _0x20fa73;}function parseOverrideValue(_0x8e6902){const _0x22a0ee=_0x3c66,_0x7d81c7={'CZydU':function(_0x4dc44c,_0x40d36b){return _0x4dc44c===_0x40d36b;},'KlWuv':_0x22a0ee(0x131),'IUgHW':function(_0x2d7bc0,_0xa032bb){return _0x2d7bc0(_0xa032bb);}};if(_0x7d81c7['CZydU'](_0x8e6902,'true'))return!![];if(_0x8e6902==='false')return![];if(_0x7d81c7[_0x22a0ee(0x130)](_0x8e6902,_0x22a0ee(0x144)))return null;if(_0x8e6902===_0x7d81c7[_0x22a0ee(0x137)])return undefined;if(/^-?\d+$/[_0x22a0ee(0x14e)](_0x8e6902)){const _0x2af5dd=_0x7d81c7[_0x22a0ee(0x136)](Number,_0x8e6902);if(Number['isSafeInteger'](_0x2af5dd))return _0x2af5dd;}if(/^-?\d+\.\d+$/['test'](_0x8e6902)){const _0x1de597=Number(_0x8e6902);if(!Number[_0x22a0ee(0x140)](_0x1de597))return _0x1de597;}const _0x27fa30=_0x8e6902[_0x22a0ee(0x134)]();if(_0x27fa30['startsWith']('{')&&_0x27fa30[_0x22a0ee(0x13c)]('}')||_0x27fa30['startsWith']('[')&&_0x27fa30['endsWith'](']'))try{return JSON[_0x22a0ee(0x148)](_0x27fa30);}catch{}return _0x8e6902;}function _0x1d33(){const _0x5a7ea4=['object','MBETN','kind','5579292lNnVJL','ZcqAh','cwd','Key\x20\x22','\x22\x20not\x20found','local','1749538UBzTiY','534706oHsIyU','(not\x20set)','GnNNt','false','\x20for\x20\x22','2JLeGEy','log','eYzrj','2092530gQSGxH','alsoExistsElsewhere','CZydU','undefined','5571027YsfwDs','yjtkR','trim','8xTCObX','IUgHW','KlWuv','BWlsj','cGPxA','17851410aULFKC','No\x20configuration\x20set\x20for\x20\x22','endsWith','27536LevCPw','mjdRW','YYQHy','isNaN','\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.',':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22','\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20','null','975ppNZqS','kZYFE','Removed\x20','parse','vHLvj','Set\x20','cloud','\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20','stringify','test'];_0x1d33=function(){return _0x5a7ea4;};return _0x1d33();}async function resolveProfileTarget(_0x8b4bdc){const _0xc71a9d=_0x3c66,_0x80e0be={'yjtkR':function(_0x466beb,_0x3dcaed){return _0x466beb(_0x3dcaed);},'eYzrj':function(_0xc854e0,_0x1c7036){return _0xc854e0(_0x1c7036);},'YYQHy':_0xc71a9d(0x157)},_0x527445=_0x80e0be['yjtkR'](existsSync,_0x80e0be[_0xc71a9d(0x12d)](getEnvDir,_0x8b4bdc));let _0x3c191d=![];try{const _0x167e7a=await _0x80e0be[_0xc71a9d(0x12d)](fetchCloudProfile,_0x8b4bdc);_0x3c191d=_0x80e0be[_0xc71a9d(0x133)](Boolean,_0x167e7a);}catch{}if(_0x3c191d)return{'kind':'cloud','alsoExistsElsewhere':_0x527445};if(_0x527445)return{'kind':_0x80e0be[_0xc71a9d(0x13f)],'alsoExistsElsewhere':![]};throw new Error('Profile\x20\x22'+_0x8b4bdc+_0xc71a9d(0x143)+_0x8b4bdc);}function printDualExistsHint(_0x5d6482){const _0x1e8f79=_0x3c66;console[_0x1e8f79(0x12c)]('\x20\x20Note:\x20\x22'+_0x5d6482+_0x1e8f79(0x141));}function getProjectPath(){const _0x2494fd=_0x3c66;return process[_0x2494fd(0x154)]();}async function loadEffectiveCloudSettings(_0x54786f){const _0x262c37=_0x3c66,_0x28f713={'icKIU':function(_0x4b7b05,_0x1d1d89){return _0x4b7b05(_0x1d1d89);},'MBETN':function(_0x374003,_0x5cf6e2){return _0x374003??_0x5cf6e2;}},_0x6127f5=await _0x28f713['icKIU'](fetchCloudProfile,_0x54786f),_0x34ceea=readProfileOverrides(getProjectPath(),_0x54786f);return mergeCloudProfileSettings(_0x6127f5?.['settings']??{},_0x28f713[_0x262c37(0x150)](_0x34ceea,undefined));}export async function configSet(_0x1df3c7,_0x13be56,_0x5561fe){const _0x4a629b=_0x3c66,_0x44c3a0={'BWlsj':function(_0x17bff4,_0x3aad23){return _0x17bff4(_0x3aad23);},'aIcmG':function(_0x21daf1,_0x282cff){return _0x21daf1===_0x282cff;},'eeqoX':'cloud'},_0x59da6b=await _0x44c3a0[_0x4a629b(0x138)](resolveProfileTarget,_0x1df3c7);if(_0x44c3a0['aIcmG'](_0x59da6b[_0x4a629b(0x151)],_0x44c3a0['eeqoX'])){if(_0x59da6b[_0x4a629b(0x12f)])_0x44c3a0['BWlsj'](printDualExistsHint,_0x1df3c7);const _0x2d1256=_0x44c3a0['BWlsj'](parseOverrideValue,_0x5561fe);setProfileOverride(getProjectPath(),_0x1df3c7,_0x13be56,_0x2d1256),console[_0x4a629b(0x12c)](_0x4a629b(0x14a)+_0x13be56+'\x20=\x20'+JSON['stringify'](_0x2d1256)+_0x4a629b(0x12a)+_0x1df3c7+'\x22');return;}const _0x163e52=parseLocalValue(_0x13be56,_0x5561fe);setProfileOverride(getProjectPath(),_0x1df3c7,_0x13be56,_0x163e52),console[_0x4a629b(0x12c)](_0x4a629b(0x14a)+_0x13be56+'\x20=\x20'+_0x163e52+_0x4a629b(0x12a)+_0x1df3c7+'\x22');}export async function configGet(_0x3b0920,_0x12c902){const _0x2b3d19=_0x3c66,_0x3ea69c={'ZcqAh':function(_0x4f60d8,_0x21f17e,_0x2ee43b){return _0x4f60d8(_0x21f17e,_0x2ee43b);},'vHLvj':function(_0x5b6b38,_0x522bcc){return _0x5b6b38===_0x522bcc;},'cGPxA':function(_0x444db0,_0xbdee99){return _0x444db0===_0xbdee99;},'mjdRW':function(_0x535f3c,_0x181350){return _0x535f3c===_0x181350;},'gZVLJ':function(_0x1cfba7,_0x30d9db){return _0x1cfba7===_0x30d9db;}},_0x5f08b4=await resolveProfileTarget(_0x3b0920);if(_0x5f08b4[_0x2b3d19(0x151)]==='cloud'){const _0x3cb4da=await loadEffectiveCloudSettings(_0x3b0920),_0x4d6380=_0x3ea69c[_0x2b3d19(0x153)](getNestedValue,_0x3cb4da,_0x12c902);if(_0x3ea69c[_0x2b3d19(0x149)](_0x4d6380,undefined))console[_0x2b3d19(0x12c)](_0x2b3d19(0x127));else _0x3ea69c[_0x2b3d19(0x139)](typeof _0x4d6380,_0x2b3d19(0x14f))?console['log'](JSON['stringify'](_0x4d6380,null,0x2)):console[_0x2b3d19(0x12c)](_0x4d6380);return;}const _0x2ae9ce=await loadSettings(_0x3b0920),_0x4abc82=getNestedValue(_0x2ae9ce,_0x12c902);if(_0x3ea69c[_0x2b3d19(0x13e)](_0x4abc82,undefined))console[_0x2b3d19(0x12c)](_0x2b3d19(0x127));else _0x3ea69c['gZVLJ'](typeof _0x4abc82,'object')?console[_0x2b3d19(0x12c)](JSON[_0x2b3d19(0x14d)](_0x4abc82,null,0x2)):console[_0x2b3d19(0x12c)](_0x4abc82);}export async function configList(_0x5bae9e){const _0x4b5b5f=_0x3c66,_0x511dba={'kZYFE':function(_0x2d7221,_0x289548){return _0x2d7221(_0x289548);},'HZDiU':function(_0x58c369,_0x3509fb){return _0x58c369===_0x3509fb;},'GnNNt':_0x4b5b5f(0x14b)},_0x45631c=await _0x511dba[_0x4b5b5f(0x146)](resolveProfileTarget,_0x5bae9e);if(_0x511dba['HZDiU'](_0x45631c['kind'],_0x511dba[_0x4b5b5f(0x128)])){const _0x4a61dc=await _0x511dba[_0x4b5b5f(0x146)](loadEffectiveCloudSettings,_0x5bae9e);if(!_0x4a61dc||Object['keys'](_0x4a61dc)['length']===0x0){console[_0x4b5b5f(0x12c)](_0x4b5b5f(0x13b)+_0x5bae9e+'\x22');return;}console[_0x4b5b5f(0x12c)](JSON[_0x4b5b5f(0x14d)](_0x4a61dc,null,0x2));return;}const _0x788500=getSettingsPath(_0x5bae9e);if(!_0x511dba[_0x4b5b5f(0x146)](existsSync,_0x788500)){console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x5bae9e+'\x22');return;}const _0x36049b=await _0x511dba['kZYFE'](loadSettings,_0x5bae9e),_0x2d98f7=formatSettings(_0x36049b);!_0x2d98f7?console['log'](_0x4b5b5f(0x13b)+_0x5bae9e+'\x22'):console[_0x4b5b5f(0x12c)](_0x2d98f7);}export async function configUnset(_0x520470,_0x2ea39a){const _0x52103d=_0x3c66,_0x5b8c47={'AdnvO':function(_0x1602a4,_0x502794){return _0x1602a4===_0x502794;},'qKArb':function(_0x598335,_0x61b564){return _0x598335(_0x61b564);},'Utrlm':function(_0x262112){return _0x262112();},'lcpHz':function(_0x224f8b,_0xfb3a25,_0x3d804b,_0x23ed5b){return _0x224f8b(_0xfb3a25,_0x3d804b,_0x23ed5b);}},_0xf1cd91=await resolveProfileTarget(_0x520470);if(_0x5b8c47['AdnvO'](_0xf1cd91[_0x52103d(0x151)],_0x52103d(0x14b))){if(_0xf1cd91['alsoExistsElsewhere'])_0x5b8c47['qKArb'](printDualExistsHint,_0x520470);const _0x1f3194=unsetProfileOverride(_0x5b8c47['Utrlm'](getProjectPath),_0x520470,_0x2ea39a);_0x1f3194?console[_0x52103d(0x12c)](_0x52103d(0x147)+_0x2ea39a+'\x20for\x20\x22'+_0x520470+'\x22'):console['log']('Key\x20\x22'+_0x2ea39a+_0x52103d(0x156));return;}const _0x165d99=_0x5b8c47['lcpHz'](unsetProfileOverride,getProjectPath(),_0x520470,_0x2ea39a);if(_0x165d99){console[_0x52103d(0x12c)]('Removed\x20'+_0x2ea39a);return;}const _0x1030a5=await loadSettings(_0x520470),_0x22dd7a=deleteNestedValue(_0x1030a5,_0x2ea39a);_0x22dd7a?console['log']('Key\x20\x22'+_0x2ea39a+'\x22\x20lives\x20in\x20the\x20legacy\x20settings\x20file\x20for\x20\x22'+_0x520470+'\x22\x20and\x20cannot\x20be\x20unset;\x20the\x20legacy\x20tree\x20is\x20read-only\x20under\x20cloud\x20profiles.'):console[_0x52103d(0x12c)](_0x52103d(0x155)+_0x2ea39a+'\x22\x20not\x20found');}export async function configReset(_0x4cfad2){const _0x5a74fd=_0x3c66,_0x1571a5={'IpSRM':function(_0x48d42a,_0x22e4b8){return _0x48d42a(_0x22e4b8);},'nKUfQ':function(_0x1c7446,_0x1d9aae){return _0x1c7446===_0x1d9aae;}},_0x18212c=await _0x1571a5['IpSRM'](resolveProfileTarget,_0x4cfad2);if(_0x1571a5['nKUfQ'](_0x18212c['kind'],_0x5a74fd(0x14b))){resetProfileOverrides(getProjectPath(),_0x4cfad2),console[_0x5a74fd(0x12c)]('Cleared\x20local\x20overrides\x20for\x20\x22'+_0x4cfad2+'\x22');return;}console[_0x5a74fd(0x12c)]('\x22'+_0x4cfad2+_0x5a74fd(0x14c)+_0x4cfad2+'\x20<key>\x22\x20to\x20remove\x20individual\x20values.');}
@@ -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(_0x2cae31,_0xcb2248){const _0x1b71d4=_0x22bc,_0x1c9f80=_0x2cae31();while(!![]){try{const _0x2c520e=-parseInt(_0x1b71d4(0x106))/0x1*(-parseInt(_0x1b71d4(0x10f))/0x2)+parseInt(_0x1b71d4(0x112))/0x3*(parseInt(_0x1b71d4(0x107))/0x4)+parseInt(_0x1b71d4(0x100))/0x5*(-parseInt(_0x1b71d4(0x109))/0x6)+parseInt(_0x1b71d4(0x10a))/0x7+parseInt(_0x1b71d4(0x103))/0x8+-parseInt(_0x1b71d4(0x111))/0x9+-parseInt(_0x1b71d4(0xff))/0xa;if(_0x2c520e===_0xcb2248)break;else _0x1c9f80['push'](_0x1c9f80['shift']());}catch(_0x286001){_0x1c9f80['push'](_0x1c9f80['shift']());}}}(_0x3458,0xe882a));import _0x520761 from'inquirer';import{deleteCloudProfile,fetchCloudProfile}from'./utils/cloudProfile.js';function _0x22bc(_0x5db380,_0x127474){_0x5db380=_0x5db380-0xfe;const _0x345834=_0x3458();let _0x22bc86=_0x345834[_0x5db380];return _0x22bc86;}import{isInteractive}from'./utils/cloudProfileSession.js';import{clearLastProfile,resetProfileOverrides}from'./utils/projectsConfig.js';export async function deleteProfile(_0x1ac9b0,_0x4f2710={}){const _0x3ddac4=_0x22bc,_0x460fd2={'MjwEw':function(_0xfff154,_0x1577d6){return _0xfff154(_0x1577d6);},'pbMLm':function(_0xbb2556){return _0xbb2556();},'tWQmx':_0x3ddac4(0x113),'VDBNx':_0x3ddac4(0x10b),'cHMMk':function(_0x53a691,_0x2d32ff){return _0x53a691!==_0x2d32ff;},'Weyrm':function(_0x36772f,_0x436ae8,_0xac3ade){return _0x36772f(_0x436ae8,_0xac3ade);}},_0x22c0ca=await _0x460fd2['MjwEw'](fetchCloudProfile,_0x1ac9b0);if(!_0x22c0ca)throw new Error(_0x3ddac4(0x105)+_0x1ac9b0+'\x22\x20not\x20found.');if(!_0x4f2710[_0x3ddac4(0x10e)]&&!_0x460fd2['pbMLm'](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[_0x3ddac4(0xfe)]('\x0aWarning:\x20this\x20deletes\x20the\x20shared\x20cloud\x20profile\x20\x22'+_0x1ac9b0+_0x3ddac4(0x110));if(!_0x4f2710['yes']){const {confirmation:_0x116170}=await _0x520761[_0x3ddac4(0x10d)]([{'type':_0x460fd2[_0x3ddac4(0x102)],'name':_0x460fd2['VDBNx'],'message':_0x3ddac4(0x10c)+_0x1ac9b0+'\x22\x20to\x20confirm\x20deletion:'}]);if(_0x460fd2[_0x3ddac4(0x104)](_0x116170,_0x1ac9b0))throw new Error(_0x3ddac4(0x101));}await _0x460fd2[_0x3ddac4(0x114)](deleteCloudProfile,_0x1ac9b0),resetProfileOverrides(process[_0x3ddac4(0x108)](),_0x1ac9b0),_0x460fd2['Weyrm'](clearLastProfile,process['cwd'](),_0x1ac9b0),console[_0x3ddac4(0xfe)]('✓\x20Deleted\x20cloud\x20profile\x20\x22'+_0x1ac9b0+'\x22.');}function _0x3458(){const _0x3dc006=['Profile\x20deletion\x20cancelled:\x20confirmation\x20did\x20not\x20match.','tWQmx','9922432gfAwRS','cHMMk','Cloud\x20profile\x20\x22','303qSUTSK','84412WACbXv','cwd','102ZpukZb','3090297WOgZaz','confirmation','Type\x20\x22','prompt','yes','8856PvYOXx','\x22\x20for\x20everyone\x20in\x20your\x20organization.','15191658QeBPav','63mEpUsd','input','MjwEw','log','664320Mmkhyt','223490vqdWxb'];_0x3458=function(){return _0x3dc006;};return _0x3458();}
@@ -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 _0x4fefbc=_0x4daf;(function(_0x21d4a7,_0x468387){const _0x2c077a=_0x4daf,_0x180e6e=_0x21d4a7();while(!![]){try{const _0x3e2e85=parseInt(_0x2c077a(0xc1))/0x1*(parseInt(_0x2c077a(0xc8))/0x2)+parseInt(_0x2c077a(0xc0))/0x3+parseInt(_0x2c077a(0xa7))/0x4*(parseInt(_0x2c077a(0xd0))/0x5)+parseInt(_0x2c077a(0xb9))/0x6*(parseInt(_0x2c077a(0xbe))/0x7)+parseInt(_0x2c077a(0xb4))/0x8*(parseInt(_0x2c077a(0xcb))/0x9)+-parseInt(_0x2c077a(0xbf))/0xa+-parseInt(_0x2c077a(0xad))/0xb;if(_0x3e2e85===_0x468387)break;else _0x180e6e['push'](_0x180e6e['shift']());}catch(_0x5ec745){_0x180e6e['push'](_0x180e6e['shift']());}}}(_0x146d,0x769b7));function _0x146d(){const _0x2ece2c=['99yUFQDV','Run:\x20ranger\x20profile\x20add\x20<profile-name>','local','kTZcn','sort','3273085idpxvx','LrlfA','4fDYRtK','localeCompare','cached\x20(updated\x20','bug-bashes','fVgde','\x0aLocal\x20Profiles\x20(legacy):','6995131preQPC','EKnCk','isDirectory','error','message','jnvSu','sessionUpdatedAt','32752IqcAQz','log','GJsBV','legacy','yTzco','530454Fmclkv','map','\x0aCloud\x20Profiles:','name','TZehA','7QnbRTD','4512750xTNvZr','1456098cVdpiF','65khXpar','\x20[cloud]','baseUrl','sessions','DoGZP','endsWith','.txt','9218yFpecY','\x20\x20\x20\x20\x20\x20URL:\x20','no\x20session'];_0x146d=function(){return _0x2ece2c;};return _0x146d();}import{readdir,stat}from'fs/promises';import{join}from'path';import{existsSync}from'fs';function _0x4daf(_0x2217cd,_0x3a6050){_0x2217cd=_0x2217cd-0xa6;const _0x146d01=_0x146d();let _0x4daf4f=_0x146d01[_0x2217cd];return _0x4daf4f;}import{getRangerDir}from'./utils/rangerRoot.js';import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';import{getToken}from'./utils/keychain.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const NON_ENV_DIRS=[_0x4fefbc(0xc4),_0x4fefbc(0xaa),'reports','local','ci'];export async function getEnvNames(){const _0x583ff6=_0x4fefbc,_0x1bfd64={'TZehA':function(_0x3e4388,_0x9dbe9,_0x44a177){return _0x3e4388(_0x9dbe9,_0x44a177);},'kTZcn':_0x583ff6(0xcd),'JpUYV':function(_0x384faa,_0x10f871){return _0x384faa(_0x10f871);},'jnvSu':function(_0xcf7e30,_0x23ae92){return _0xcf7e30(_0x23ae92);},'EKnCk':_0x583ff6(0xc7),'LrlfA':'settings.json'},_0x46dfd2=getRangerDir();if(!existsSync(_0x46dfd2))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x5c9c01=await readActiveProfileName(),_0x863784=[],_0x37fe88={},_0x6d8df3=_0x1bfd64['TZehA'](join,_0x46dfd2,_0x1bfd64[_0x583ff6(0xce)]);if(existsSync(_0x6d8df3)){const _0x30407a=await _0x1bfd64['JpUYV'](readdir,_0x6d8df3);for(const _0x24394f of _0x30407a){const _0x206bd4=join(_0x6d8df3,_0x24394f),_0x3c886d=await _0x1bfd64[_0x583ff6(0xb2)](stat,_0x206bd4);_0x3c886d['isDirectory']()&&(_0x863784['push'](_0x24394f),_0x37fe88[_0x24394f]=_0x583ff6(0xcd));}}const _0x218803=join(_0x46dfd2,'ci');if(existsSync(_0x218803)){const _0x49d754=await readdir(_0x218803);for(const _0x480da0 of _0x49d754){const _0x1d6b4f=join(_0x218803,_0x480da0),_0x589851=await _0x1bfd64['jnvSu'](stat,_0x1d6b4f);_0x589851[_0x583ff6(0xaf)]()&&(_0x863784['push'](_0x480da0),_0x37fe88[_0x480da0]='ci');}}const _0x2db580=await readdir(_0x46dfd2);for(const _0x20212c of _0x2db580){if(NON_ENV_DIRS['includes'](_0x20212c))continue;if(_0x20212c['startsWith']('.'))continue;if(_0x20212c[_0x583ff6(0xc6)](_0x1bfd64[_0x583ff6(0xae)]))continue;const _0x3539ef=_0x1bfd64[_0x583ff6(0xbd)](join,_0x46dfd2,_0x20212c),_0x4c6bb4=await _0x1bfd64['JpUYV'](stat,_0x3539ef);_0x4c6bb4['isDirectory']()&&existsSync(join(_0x3539ef,_0x1bfd64[_0x583ff6(0xa6)]))&&(!_0x863784['includes'](_0x20212c)&&(_0x863784['push'](_0x20212c),_0x37fe88[_0x20212c]=_0x583ff6(0xb7)));}return{'envNames':_0x863784,'activeEnv':_0x5c9c01,'envTypes':_0x37fe88};}export async function envList(){const _0x2e51f0=_0x4fefbc,_0x279183={'fVgde':function(_0x53ad44){return _0x53ad44();},'yTzco':function(_0x25639a,_0x203478){return _0x25639a instanceof _0x203478;},'ZoDQD':function(_0x2b585b,_0x5917e9){return _0x2b585b===_0x5917e9;},'LMRuM':_0x2e51f0(0xcc),'GJsBV':function(_0x337b23,_0x1bcb7a){return _0x337b23>_0x1bcb7a;},'DoGZP':function(_0x5e2d7e,_0x229cf7){return _0x5e2d7e===_0x229cf7;},'jEZdZ':'local'},{envNames:_0x1bdeb1,activeEnv:_0xc7b424,envTypes:_0x1b63d3}=await getEnvNames();let _0x2b2170=[];const _0x5d7123=await _0x279183['fVgde'](getToken);if(_0x5d7123)try{_0x2b2170=await _0x279183[_0x2e51f0(0xab)](listCloudProfiles);}catch(_0x13f8d6){console[_0x2e51f0(0xb0)]('\x0aWarning:\x20could\x20not\x20fetch\x20cloud\x20profiles:\x20'+(_0x279183[_0x2e51f0(0xb8)](_0x13f8d6,Error)?_0x13f8d6[_0x2e51f0(0xb1)]:String(_0x13f8d6)));}if(_0x279183['ZoDQD'](_0x1bdeb1['length'],0x0)&&_0x2b2170['length']===0x0){console['log']('\x0aNo\x20profiles\x20found.'),console['log'](_0x279183['LMRuM']);return;}const _0x14a428=new Set(_0x2b2170[_0x2e51f0(0xba)](_0x2d9f82=>_0x2d9f82[_0x2e51f0(0xbc)]));if(_0x279183[_0x2e51f0(0xb6)](_0x1bdeb1['length'],0x0)){console[_0x2e51f0(0xb5)](_0x2e51f0(0xac));for(const _0x4bebdf of _0x1bdeb1[_0x2e51f0(0xcf)]()){const _0x52e117=_0x279183[_0x2e51f0(0xc5)](_0x4bebdf,_0xc7b424)&&!_0x14a428['has'](_0x4bebdf),_0x5942ef=_0x1b63d3[_0x4bebdf]||_0x279183['jEZdZ'],_0xcb06a6=await loadSettings(_0x4bebdf),_0x3de7d3=_0x279183[_0x2e51f0(0xc5)](_0x5942ef,'legacy')?'':'\x20['+_0x5942ef+']';console['log']('\x20\x20'+(_0x52e117?'*\x20':'\x20\x20')+_0x4bebdf+_0x3de7d3),_0xcb06a6[_0x2e51f0(0xc3)]&&console['log'](_0x2e51f0(0xc9)+_0xcb06a6['baseUrl']),_0xcb06a6['environmentDetails']&&console[_0x2e51f0(0xb5)]('\x20\x20\x20\x20\x20\x20Details:\x20'+_0xcb06a6['environmentDetails']);}}if(_0x2b2170['length']>0x0){console[_0x2e51f0(0xb5)](_0x2e51f0(0xbb));for(const _0x46daf3 of _0x2b2170['sort']((_0x1d0fc5,_0x105d72)=>_0x1d0fc5['name'][_0x2e51f0(0xa8)](_0x105d72[_0x2e51f0(0xbc)]))){const _0x5f47ba=_0x46daf3['name']===_0xc7b424,_0x55933d=_0x46daf3['environmentKey']?'\x20('+_0x46daf3['environmentKey']+')':'',_0x212256=_0x46daf3[_0x2e51f0(0xb3)]?_0x2e51f0(0xa9)+_0x46daf3['sessionUpdatedAt']+')':_0x2e51f0(0xca);console[_0x2e51f0(0xb5)]('\x20\x20'+(_0x5f47ba?'*\x20':'\x20\x20')+_0x46daf3['name']+_0x2e51f0(0xc2)+_0x55933d),console['log']('\x20\x20\x20\x20\x20\x20Session:\x20'+_0x212256);}}_0xc7b424&&console['log']('\x0a*\x20=\x20active\x20profile');}