@ranger-testing/ranger-cli 3.0.1-alpha.aab0a1c-26 → 3.0.1-alpha.d9f4572-27

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 (81) 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/playwrightCli.js +1 -1
  60. package/build/commands/utils/profileMessages.js +1 -1
  61. package/build/commands/utils/profileSetupBanner.js +1 -1
  62. package/build/commands/utils/projectsConfig.js +1 -1
  63. package/build/commands/utils/rangerConfig.js +1 -1
  64. package/build/commands/utils/rangerRoot.js +1 -1
  65. package/build/commands/utils/resolveProfileContext.js +1 -1
  66. package/build/commands/utils/resolveProfileUrl.js +1 -1
  67. package/build/commands/utils/retry.js +1 -1
  68. package/build/commands/utils/sessionCache.js +1 -1
  69. package/build/commands/utils/settings.js +1 -1
  70. package/build/commands/utils/skillContent.js +1 -1
  71. package/build/commands/utils/skills.js +1 -1
  72. package/build/commands/utils/stitchWebmFiles.js +1 -1
  73. package/build/commands/utils/telemetry.js +1 -1
  74. package/build/commands/utils/tokenRefresh.js +1 -1
  75. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  76. package/build/commands/utils/userApi.js +1 -1
  77. package/build/commands/utils/version.js +1 -1
  78. package/build/commands/verifyFeature.js +1 -1
  79. package/build/commands/verifyFeatureCli.js +1 -1
  80. package/build/commands/verifyFeatureNovaCli.js +1 -1
  81. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0xd4cca5,_0x193d90){const _0x80a06=_0x3162,_0x34bcfe=_0xd4cca5();while(!![]){try{const _0x23f279=-parseInt(_0x80a06(0x124))/0x1+parseInt(_0x80a06(0xf2))/0x2*(parseInt(_0x80a06(0xc3))/0x3)+parseInt(_0x80a06(0x112))/0x4+parseInt(_0x80a06(0x10f))/0x5*(parseInt(_0x80a06(0xb4))/0x6)+-parseInt(_0x80a06(0xab))/0x7+parseInt(_0x80a06(0xd0))/0x8+-parseInt(_0x80a06(0xa8))/0x9*(parseInt(_0x80a06(0xf6))/0xa);if(_0x23f279===_0x193d90)break;else _0x34bcfe['push'](_0x34bcfe['shift']());}catch(_0x35137d){_0x34bcfe['push'](_0x34bcfe['shift']());}}}(_0xe261,0x71790));import{readdir,rm}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import _0x51228d from'inquirer';import{getRangerDir,getRangerHomeDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';function _0xe261(){const _0x5ad828=['\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20','baseUrl','length','4148696hpIVTT','\x20—\x20not\x20removing.\x20Delete\x20manually\x20if\x20you\x20want\x20it\x20gone.','isProtocolError','\x20\x20Details:\x20https://docs.ranger.net/main/concepts/profiles#automated-login','environments','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','log','\x0a🌐\x20Profile\x20Setup\x0a','\x22.\x20Expected\x20\x22Name:\x20Value\x22.','rzUtd',')\x0a\x20\x20Save\x20\x27','test','lHDKn','url','TjZPU','.\x20Configured\x20envs:\x20','ffvlY','startsWith','NODE_TLS_REJECT_UNAUTHORIZED','fsfoO','for\x20you,\x20so\x20the\x20encrypted-CI\x20flow\x20is\x20unnecessary.\x0a','mPxTJ','keys','user_declined','HTTP\x20','fetch\x20failed','trim','jZqWp','NaIje','\x0a\x20\x20Could\x20not\x20reach\x20','wUUjd','\x27\x20created.\x0a','AQnHe','\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a','10vEhjWw','gGqIF','\x20--skip-auth\x0a','Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','3680140sbHtbu','\x0a\x20\x20A\x20profile\x20named\x20\x22','\x0a✓\x20Profile\x20\x27','cjlir','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','flPIx','ksotx','Found\x20auth\x20environment\x20\x27','GotdK','setupHeader','aOpiG','\x20\x20https://docs.ranger.net/main/concepts/profiles','ZEWZa','status','cdpEndpoint','\x20\x20Note:\x20cloud\x20profile\x20created,\x20but\x20failed\x20to\x20sweep\x20orphan\x20local\x20dirs\x20(','Enter\x20a\x20different\x20URL','\x20\x20Ranger\x20will\x20use\x20it\x20to\x20look\x20up\x20the\x20right\x20cloud\x20auth\x20env\x20to\x20attach.\x0a','\x20--url\x20','\x20\x20Did\x20you\x20mean\x20','action','\x20\x20When\x20you\x27re\x20ready\x20to\x20log\x20in,\x20run\x20`ranger\x20profile\x20add\x20','\x27\x20created\x20(no\x20session).\x0a','Automated\x20login\x20isn\x27t\x20set\x20up\x20for\x20your\x20team.\x20Capture\x20a\x20session\x20via\x20a\x20headed\x20browser\x20instead?','--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','10YyTvQc','message','join','3263324OWlliv','BLQHm','\x0a\x20\x20No\x20auth\x20env\x20matches\x20','\x0a\x20\x20Cloud\x20profile\x20created,\x20but\x20failed\x20to\x20write\x20per-cwd\x20CDP\x20override\x20to\x20projects.json:\x20','error','tjqLP','XjoHk','cuLkQ','\x0a\x20\x20Could\x20not\x20fetch\x20this\x20org\x27s\x20auth\x20config:\x20','cUhPq','setupHeaders','\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','profile.add.autoRouted','manual','`\x20again\x20without\x20--skip-auth.','RyEaK','waDin','retry','460321MEOiiM','The\x20--ci\x20flag\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x20session\x20state\x0a','no_match','JPcwk','qRbuc','qIVQx','confirm','warn','36OxDuQy','vvIqS','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','1324225dkmkyo','CmtRh','UTdOg','name','env','OHbJL','indexOf','uKIrZ','use_suggestion','1960494NXFFMU','XjCWP','exit','LxMFI','MANGI','NfFYK','skipAuth','tujSN','uuYBY','slice','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20','force','SBTpk','\x20\x20Note:\x20found\x20git-tracked\x20local\x20profile\x20at\x20','prompt','359052krTmkx','XGzBI','For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','✓\x20Profile\x20\x27','CpcEB','\x20(continuing\x20with\x20--force)','cwd','\x20\x20Next:\x20ranger\x20go\x20--profile\x20','\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20','trackPhaseEnd'];_0xe261=function(){return _0x5ad828;};return _0xe261();}import{fetchAuthConfig,createCloudProfile,manualBrowserLogin,ApiError}from'./utils/cloudProfile.js';import{isInteractive}from'./utils/cloudProfileSession.js';function _0x3162(_0x4c5b7c,_0x1a9846){_0x4c5b7c=_0x4c5b7c-0xa6;const _0xe261e0=_0xe261();let _0x3162c0=_0xe261e0[_0x4c5b7c];return _0x3162c0;}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 _0x1d30a3=_0x3162;if(!process['stdout']['isTTY'])return;console[_0x1d30a3(0xa7)](CLOUD_PROFILE_SHARING_WARNING);}async function checkUrlReachability(_0x192696){const _0x379c54=_0x3162,_0xd84a79={'aOpiG':'HEAD','NaIje':_0x379c54(0x11f),'XhnNS':function(_0x5009be,_0x3f6aba,_0xff6128){return _0x5009be(_0x3f6aba,_0xff6128);},'vvIqS':function(_0x27698c,_0x128d04){return _0x27698c(_0x128d04);},'pJnAe':function(_0x368ee2,_0x27b23b){return _0x368ee2<_0x27b23b;},'UTdOg':'Invalid\x20URL'};try{const _0x255c04=new AbortController(),_0x13a0b6=setTimeout(()=>_0x255c04['abort'](),0x1388),_0x384bac={'method':_0xd84a79[_0x379c54(0x100)],'signal':_0x255c04['signal'],'redirect':_0xd84a79[_0x379c54(0xec)]};/^https:\/\/localhost(:\d+)?/i[_0x379c54(0xdb)](_0x192696)&&(process[_0x379c54(0xaf)][_0x379c54(0xe2)]='0');const _0x53ace9=await _0xd84a79['XhnNS'](fetch,_0x192696,_0x384bac);delete process['env']['NODE_TLS_REJECT_UNAUTHORIZED'],_0xd84a79['vvIqS'](clearTimeout,_0x13a0b6);if(_0xd84a79['pJnAe'](_0x53ace9['status'],0x190))return{'ok':!![]};return{'ok':![],'error':_0x379c54(0xe8)+_0x53ace9['status']};}catch(_0xbdd768){delete process[_0x379c54(0xaf)]['NODE_TLS_REJECT_UNAUTHORIZED'];const _0x3a1c82=_0xbdd768,_0x465628=_0x3a1c82['message']||_0xd84a79[_0x379c54(0xa9)](String,_0xbdd768),_0x1ead45=_0x465628['includes'](_0xd84a79[_0x379c54(0xad)])||_0x3a1c82[_0x379c54(0xae)]==='TypeError'||_0x465628['includes'](_0x379c54(0xe9));return{'ok':![],'error':_0x465628,'isProtocolError':_0x1ead45};}}async function sweepOrphanLocalProfile(_0x124d85,_0x137689,_0x3e9787){const _0x311afe=_0x3162,_0xece58f={'gGqIF':function(_0x51e575,_0x375bdf,_0x11b3c9){return _0x51e575(_0x375bdf,_0x11b3c9);},'JWWnT':'local','QSzUZ':function(_0x100c3a,_0x1ea881){return _0x100c3a(_0x1ea881);},'NfFYK':function(_0x1ed3ba,_0x20c4df,_0x4c2c6d){return _0x1ed3ba(_0x20c4df,_0x4c2c6d);}},_0x2b6a8f=_0xece58f[_0x311afe(0xf3)](join,_0x137689,_0xece58f['JWWnT']),_0x45a983=join(_0x2b6a8f,_0x124d85);_0xece58f['QSzUZ'](existsSync,_0x45a983)&&(_0x3e9787&&await isPathGitTracked(_0x45a983)?console[_0x311afe(0xd6)](_0x311afe(0xc1)+_0x45a983+_0x311afe(0xd1)):(await rm(_0x45a983,{'recursive':!![],'force':!![]}),console[_0x311afe(0xd6)](_0x311afe(0xcb)+_0x45a983)));if(existsSync(_0x2b6a8f)){let _0x5919d5=[];try{_0x5919d5=await _0xece58f['QSzUZ'](readdir,_0x2b6a8f);}catch{return;}const _0x45643b='.tmp-'+_0x124d85+'-';for(const _0x9a7305 of _0x5919d5){if(!_0x9a7305[_0x311afe(0xe1)](_0x45643b))continue;const _0x43e0e9=_0xece58f[_0x311afe(0xb9)](join,_0x2b6a8f,_0x9a7305);await _0xece58f['gGqIF'](rm,_0x43e0e9,{'recursive':!![],'force':!![]}),console[_0x311afe(0xd6)]('\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20'+_0x43e0e9);}}}async function sweepOrphansBestEffort(_0x5275ed){const _0x393fa3=_0x3162,_0x2f9e9d={'tjqLP':function(_0x5370d1){return _0x5370d1();},'GotdK':function(_0x12f165){return _0x12f165();},'WqViQ':function(_0x3c1919){return _0x3c1919();},'CmtRh':function(_0x239e5b,_0x332779,_0x531ec8,_0x63b7e4){return _0x239e5b(_0x332779,_0x531ec8,_0x63b7e4);}};try{await sweepOrphanLocalProfile(_0x5275ed,_0x2f9e9d[_0x393fa3(0x117)](getRangerHomeDir),![]);const _0xf02544=_0x2f9e9d[_0x393fa3(0xfe)](getRangerDir);_0xf02544!==_0x2f9e9d['WqViQ'](getRangerHomeDir)&&await _0x2f9e9d[_0x393fa3(0xac)](sweepOrphanLocalProfile,_0x5275ed,_0xf02544,!![]);}catch(_0x3f2b61){console[_0x393fa3(0xd6)](_0x393fa3(0x105)+(_0x3f2b61 instanceof Error?_0x3f2b61['message']:String(_0x3f2b61))+').');}}async function markActive(_0x8cd0f9){const _0xa2c88f=_0x3162,_0x4efef7={'uuYBY':_0xa2c88f(0xf5)};try{await writeActiveProfileName(_0x8cd0f9),console[_0xa2c88f(0xd6)]('\x20\x20Set\x20active\x20profile:\x20'+_0x8cd0f9);}catch{console['log'](_0x4efef7[_0xa2c88f(0xbc)]);}}async function tryAutoRouteCloudProfile(_0x3e5b58,_0xb181e2,_0x1d620f,_0x239f15,_0x1ad03c){const _0x8c724d=_0x3162,_0x3d1d97={'XjoHk':function(_0x400f48){return _0x400f48();},'AQnHe':'profile.add.autoRouteSkipped','OHbJL':function(_0x4bf775,_0x26e1de){return _0x4bf775 instanceof _0x26e1de;},'tujSN':function(_0x1ee829,_0x488cda){return _0x1ee829(_0x488cda);},'mPxTJ':function(_0x35542b,_0x427c1a,_0xde338d,_0x5c633e,_0x255449){return _0x35542b(_0x427c1a,_0xde338d,_0x5c633e,_0x255449);},'XjCWP':function(_0x26b2c8,_0x200e70){return _0x26b2c8+_0x200e70;},'lZyyM':function(_0x576d5e,_0x55eba7){return _0x576d5e+_0x55eba7;},'fsfoO':'\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','CpcEB':'\x20\x20To\x20get\x20automated\x20login\x20set\x20up\x20for\x20your\x20team\x20(a\x20one-time\x20call):\x20eng@ranger.net\x0a','GeQYF':_0x8c724d(0xd3),'flPIx':function(_0x112242,_0x1b53bf,_0x26554b){return _0x112242(_0x1b53bf,_0x26554b);},'sWJFg':_0x8c724d(0xa6),'wUUjd':'saveToCloud','cUhPq':_0x8c724d(0xe7),'cuLkQ':function(_0x51c409,_0x3ae24e,_0x5768ca,_0x50f1b2){return _0x51c409(_0x3ae24e,_0x5768ca,_0x50f1b2);},'WWhhk':function(_0x329c86,_0x4d2763){return _0x329c86+_0x4d2763;},'cicdW':_0x8c724d(0x11e)};let _0x3a69f4;try{_0x3a69f4=await _0x3d1d97[_0x8c724d(0x118)](fetchAuthConfig);}catch(_0x2f450c){return _0x1ad03c?.['trackPhaseEnd'](_0x3d1d97[_0x8c724d(0xf0)],{'reason':'no_auth_config','profileName':_0x3e5b58}),console[_0x8c724d(0x116)](_0x8c724d(0x11a)+(_0x3d1d97[_0x8c724d(0xb0)](_0x2f450c,Error)?_0x2f450c[_0x8c724d(0x110)]:_0x3d1d97[_0x8c724d(0xbb)](String,_0x2f450c))),![];}if(!_0x3a69f4||!_0x3a69f4[_0x8c724d(0xd4)]||Object['keys'](_0x3a69f4[_0x8c724d(0xd4)])[_0x8c724d(0xcf)]===0x0){if(_0x239f15)return await _0x3d1d97[_0x8c724d(0xe5)](captureEnvLessProfile,_0x3e5b58,_0xb181e2,_0x1d620f,_0x1ad03c);return _0x1ad03c?.[_0x8c724d(0xcc)](_0x3d1d97['AQnHe'],{'reason':'no_auth_config','profileName':_0x3e5b58}),console['error'](_0x3d1d97[_0x8c724d(0xb5)](_0x3d1d97['XjCWP'](_0x3d1d97['lZyyM'](_0x3d1d97[_0x8c724d(0xe3)]+'\x0a'+'\x20\x20Workaround\x20for\x20now:\x20create\x20a\x20profile\x20without\x20a\x20captured\x20session\x20and\x20supply\x20one\x20later:\x0a',_0x8c724d(0xbe)+_0x3e5b58+_0x8c724d(0x108)+_0xb181e2+_0x8c724d(0xf4))+'\x0a',_0x3d1d97[_0x8c724d(0xc7)]),_0x3d1d97['GeQYF'])),![];}const _0x28fe95=_0x3d1d97[_0x8c724d(0xfb)](matchAuthEnvironment,_0xb181e2,_0x3a69f4);if(!_0x28fe95)return _0x1ad03c?.[_0x8c724d(0xcc)](_0x3d1d97[_0x8c724d(0xf0)],{'reason':_0x8c724d(0x126),'profileName':_0x3e5b58}),console[_0x8c724d(0x116)](_0x8c724d(0x114)+_0xb181e2+_0x8c724d(0xdf)+Object['keys'](_0x3a69f4['environments'])[_0x8c724d(0x111)](',\x20')+'.'),![];const _0x1e5685=_0x3a69f4[_0x8c724d(0xd4)][_0x28fe95],_0x242c5c=_0x1e5685?.['domains']??[];if(_0x239f15&&!_0x1d620f['yes']){const {saveToCloud:_0x599281}=await _0x51228d['prompt']([{'type':_0x3d1d97['sWJFg'],'name':_0x3d1d97[_0x8c724d(0xee)],'message':_0x8c724d(0xfd)+_0x28fe95+'\x27\x20matching\x20'+_0xb181e2+'\x0a\x20\x20(domains:\x20'+_0x242c5c[_0x8c724d(0x111)](',\x20')+_0x8c724d(0xda)+_0x3e5b58+'\x27\x20to\x20the\x20cloud?','default':!![]}]);if(!_0x599281)return _0x1ad03c?.['trackPhaseEnd']('profile.add.autoRouteSkipped',{'reason':_0x3d1d97[_0x8c724d(0x11b)],'profileName':_0x3e5b58}),console['error']('\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20cloud-managed\x20session.'),![];}const _0x283388=_0x242c5c['some'](_0x1aba47=>{try{return new URL(_0x1aba47)['origin']===new URL(_0xb181e2)['origin'];}catch{return![];}}),_0x47c191={};!_0x283388&&(_0x47c191[_0x8c724d(0xce)]=_0xb181e2);try{await _0x3d1d97[_0x8c724d(0x119)](createCloudProfile,_0x3e5b58,_0x28fe95,{'settings':_0x47c191}),_0x3d1d97['XjoHk'](warnCloudProfileSharedInOrg);}catch(_0x4a5891){if(_0x4a5891 instanceof ApiError&&_0x4a5891[_0x8c724d(0x103)]===0x199){console[_0x8c724d(0x116)](_0x3d1d97['WWhhk']('\x0a\x20\x20A\x20profile\x20named\x20\x22'+_0x3e5b58+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a',_0x8c724d(0xcd)+_0x3e5b58));throw _0x4a5891;}throw _0x4a5891;}return console['log'](_0x8c724d(0xc6)+_0x3e5b58+_0x8c724d(0xef)+('\x20\x20Next:\x20ranger\x20go\x20--profile\x20'+_0x3e5b58)),await sweepOrphansBestEffort(_0x3e5b58),_0x1ad03c?.['trackPhaseEnd'](_0x3d1d97['cicdW'],{'envKey':_0x28fe95,'profileName':_0x3e5b58}),!![];}async function createUnconfiguredCloudProfile(_0x2434bb,_0x4e7e9a){const _0x233396=_0x3162,_0x2196f={'egDOz':function(_0x5aced7,_0x87c67,_0x4e0654,_0x1ff731){return _0x5aced7(_0x87c67,_0x4e0654,_0x1ff731);},'uKIrZ':function(_0x32ec94){return _0x32ec94();}};try{await _0x2196f['egDOz'](createCloudProfile,_0x2434bb,undefined,{'settings':_0x4e7e9a}),_0x2196f[_0x233396(0xb2)](warnCloudProfileSharedInOrg);}catch(_0x1a69c3){_0x1a69c3 instanceof ApiError&&_0x1a69c3['status']===0x199&&console[_0x233396(0x116)](_0x233396(0xf7)+_0x2434bb+_0x233396(0xf1)+(_0x233396(0xcd)+_0x2434bb));throw _0x1a69c3;}}async function captureEnvLessProfile(_0x5cb28a,_0x285a78,_0x1d546,_0x3ae12b){const _0xd64ee1=_0x3162,_0x3a3d7e={'TnRfA':_0xd64ee1(0xa6),'wpFJP':'profile.add.autoRouteSkipped','ksotx':function(_0x2e3ce2,_0x5483bd){return _0x2e3ce2>_0x5483bd;},'RyEaK':function(_0x387c9f){return _0x387c9f();},'YCtFa':function(_0x8d227a,_0x53931d){return _0x8d227a+_0x53931d;},'KpOkO':function(_0x314de1,_0x2cc61e){return _0x314de1>_0x2cc61e;},'qgSHl':function(_0x2cc8b2,_0x36445e){return _0x2cc8b2(_0x36445e);}};if(!_0x1d546['yes']){const {capture:_0x588f3e}=await _0x51228d[_0xd64ee1(0xc2)]([{'type':_0x3a3d7e['TnRfA'],'name':'capture','message':_0xd64ee1(0x10d),'default':!![]}]);if(!_0x588f3e)return _0x3ae12b?.[_0xd64ee1(0xcc)](_0x3a3d7e['wpFJP'],{'reason':'user_declined','profileName':_0x5cb28a}),console['error']('\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 _0x15d7f2={};if(_0x1d546[_0xd64ee1(0xff)])for(const _0x4b9772 of _0x1d546['setupHeader']){const _0x2466c8=_0x4b9772[_0xd64ee1(0xb1)](':');if(_0x2466c8===-0x1)continue;_0x15d7f2[_0x4b9772['slice'](0x0,_0x2466c8)[_0xd64ee1(0xea)]()]=_0x4b9772[_0xd64ee1(0xbd)](_0x2466c8+0x1)[_0xd64ee1(0xea)]();}const _0x30ff4d={'baseUrl':_0x285a78};_0x3a3d7e[_0xd64ee1(0xfc)](Object[_0xd64ee1(0xe6)](_0x15d7f2)[_0xd64ee1(0xcf)],0x0)&&(_0x30ff4d[_0xd64ee1(0x11c)]=_0x15d7f2);let _0x5a0a38;try{_0x5a0a38=await createCloudProfile(_0x5cb28a,undefined,{'settings':_0x30ff4d}),_0x3a3d7e[_0xd64ee1(0x121)](warnCloudProfileSharedInOrg);}catch(_0xafa515){_0xafa515 instanceof ApiError&&_0xafa515['status']===0x199&&console['error'](_0x3a3d7e['YCtFa'](_0xd64ee1(0xf7)+_0x5cb28a+_0xd64ee1(0xf1),_0xd64ee1(0xcd)+_0x5cb28a));throw _0xafa515;}return await manualBrowserLogin(_0x5a0a38,{'key':'','domains':[_0x285a78],'setupHeaders':_0x3a3d7e['KpOkO'](Object[_0xd64ee1(0xe6)](_0x15d7f2)[_0xd64ee1(0xcf)],0x0)?_0x15d7f2:undefined}),console['log'](_0x3a3d7e['YCtFa'](_0xd64ee1(0xf8)+_0x5cb28a+'\x27\x20created\x20with\x20a\x20captured\x20session.\x0a',_0xd64ee1(0xca)+_0x5cb28a)),await _0x3a3d7e['qgSHl'](sweepOrphansBestEffort,_0x5cb28a),_0x3ae12b?.[_0xd64ee1(0xcc)]('profile.add.autoRouted',{'envKey':null,'profileName':_0x5cb28a}),!![];}export async function addEnv(_0x193584,_0x525e5c={},_0x1e507c){const _0xfe28a1=_0x3162,_0x1e8aaf={'ffvlY':function(_0x5d014a,_0x4e5c91){return _0x5d014a+_0x4e5c91;},'bdwaV':_0xfe28a1(0xe4),'cjlir':_0xfe28a1(0x101),'lHDKn':function(_0x42c5cd,_0x2c9906){return _0x42c5cd!==_0x2c9906;},'QoHkn':function(_0x4074f6,_0x183af2){return _0x4074f6===_0x183af2;},'BLQHm':_0xfe28a1(0x10e),'ujggq':function(_0x17b491,_0x144c7a){return _0x17b491(_0x144c7a);},'WBZvU':function(_0x40bab2,_0x457278){return _0x40bab2>_0x457278;},'yJHwr':function(_0x525a4e,_0x54121a,_0x10d262){return _0x525a4e(_0x54121a,_0x10d262);},'XGzBI':function(_0x390b73,_0x1d2019,_0x2f15b6,_0x2e9b59,_0x1a864d){return _0x390b73(_0x1d2019,_0x2f15b6,_0x2e9b59,_0x1a864d);},'LxMFI':'isElectron','TjZPU':function(_0x80d460,_0x218fac){return _0x80d460 instanceof _0x218fac;},'ZEWZa':function(_0x19fa68,_0x898c0){return _0x19fa68(_0x898c0);},'qeWxy':function(_0x4f2884,_0x1927af,_0x433cb4){return _0x4f2884(_0x1927af,_0x433cb4);},'JPcwk':function(_0x1684cb,_0x29d9f1){return _0x1684cb+_0x29d9f1;},'LCyfq':function(_0x1914e4,_0x337e66){return _0x1914e4(_0x337e66);},'waDin':'input','qIVQx':'Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','jZqWp':'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','qRbuc':function(_0x5f3033,_0x356393){return _0x5f3033||_0x356393;},'rzUtd':'list','MANGI':_0xfe28a1(0x10a),'SBTpk':'What\x20would\x20you\x20like\x20to\x20do?','WgvUu':_0xfe28a1(0xb3),'PIuKv':'continue','jeSGN':function(_0x22fa5e,_0xfeec42,_0x2a479d,_0x5e279a,_0x50733c,_0x2df8b5){return _0x22fa5e(_0xfeec42,_0x2a479d,_0x5e279a,_0x50733c,_0x2df8b5);}};_0x525e5c['ci']&&(console[_0xfe28a1(0x116)](_0x1e8aaf[_0xfe28a1(0xe0)](_0x1e8aaf['ffvlY'](_0xfe28a1(0x125)+_0x1e8aaf['bdwaV']+'\x0a'+'To\x20set\x20up\x20a\x20profile,\x20run:\x0a',_0xfe28a1(0xaa))+'\x0a',_0xfe28a1(0xc5))+_0x1e8aaf[_0xfe28a1(0xf9)]),process['exit'](0x1));const _0x52332a={};if(_0x525e5c[_0xfe28a1(0xff)])for(const _0x223f19 of _0x525e5c['setupHeader']){const _0x25c64e=_0x223f19[_0xfe28a1(0xb1)](':');if(_0x25c64e===-0x1)throw new Error('Invalid\x20--setup-header\x20format:\x20\x22'+_0x223f19+_0xfe28a1(0xd8));const _0x275053=_0x223f19[_0xfe28a1(0xbd)](0x0,_0x25c64e)[_0xfe28a1(0xea)](),_0x1b9701=_0x223f19['slice'](_0x25c64e+0x1)['trim']();_0x52332a[_0x275053]=_0x1b9701;}if(_0x1e8aaf[_0xfe28a1(0xdc)](_0x525e5c[_0xfe28a1(0x104)],undefined)&&_0x1e8aaf['QoHkn'](_0x525e5c[_0xfe28a1(0x104)]['trim'](),''))throw new Error('--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222');if(_0x525e5c[_0xfe28a1(0x104)]&&_0x525e5c[_0xfe28a1(0xdd)])throw new Error(_0x1e8aaf[_0xfe28a1(0x113)]);const _0x1e1b5b=_0x1e8aaf['ujggq'](Boolean,_0x525e5c[_0xfe28a1(0x104)]),_0x4df715=isInteractive();if(!_0x4df715&&!_0x525e5c[_0xfe28a1(0xdd)]&&!_0x1e1b5b&&!_0x525e5c[_0xfe28a1(0xba)])throw new Error('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');if(_0x1e1b5b){const _0x59edb1=_0x525e5c['cdpEndpoint'];console[_0xfe28a1(0xd6)](_0xfe28a1(0x11d)),console['log'](_0xfe28a1(0xd5)+_0x59edb1);const _0x25e179={'cdpEndpoint':_0x59edb1,'isElectron':!![]};_0x1e8aaf['WBZvU'](Object[_0xfe28a1(0xe6)](_0x52332a)[_0xfe28a1(0xcf)],0x0)&&(_0x25e179['setupHeaders']=_0x52332a);await _0x1e8aaf['yJHwr'](createUnconfiguredCloudProfile,_0x193584,_0x25e179);try{setProfileOverride(process[_0xfe28a1(0xc9)](),_0x193584,_0xfe28a1(0x104),_0x59edb1),_0x1e8aaf[_0xfe28a1(0xc4)](setProfileOverride,process['cwd'](),_0x193584,_0x1e8aaf[_0xfe28a1(0xb7)],!![]);}catch(_0x515fb1){console[_0xfe28a1(0x116)](_0xfe28a1(0x115)+(_0x1e8aaf['TjZPU'](_0x515fb1,Error)?_0x515fb1['message']:_0x1e8aaf['ZEWZa'](String,_0x515fb1)));}console[_0xfe28a1(0xd6)]('✓\x20Cloud\x20profile\x20\x27'+_0x193584+'\x27\x20created\x20(CDP).'),await sweepOrphansBestEffort(_0x193584),await markActive(_0x193584);return;}if(_0x525e5c[_0xfe28a1(0xba)]){const _0x9233f2={};_0x525e5c['url']&&(_0x9233f2[_0xfe28a1(0xce)]=_0x525e5c[_0xfe28a1(0xdd)]);Object['keys'](_0x52332a)[_0xfe28a1(0xcf)]>0x0&&(_0x9233f2[_0xfe28a1(0x11c)]=_0x52332a);await _0x1e8aaf['qeWxy'](createUnconfiguredCloudProfile,_0x193584,_0x9233f2),console['log'](_0x1e8aaf[_0xfe28a1(0x127)]('✓\x20Profile\x20\x27'+_0x193584+_0xfe28a1(0x10c),_0xfe28a1(0x10b)+_0x193584+_0xfe28a1(0x120))),await _0x1e8aaf[_0xfe28a1(0x102)](sweepOrphansBestEffort,_0x193584),await _0x1e8aaf['LCyfq'](markActive,_0x193584);return;}if(_0x525e5c[_0xfe28a1(0xdd)]){const _0x2eaefa=_0x525e5c[_0xfe28a1(0xdd)],_0x708c85=await checkUrlReachability(_0x2eaefa);if(!_0x708c85['ok']&&!_0x525e5c['force'])throw new Error('Could\x20not\x20reach\x20'+_0x2eaefa+':\x20'+_0x708c85['error']+'\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.');!_0x708c85['ok']&&_0x525e5c[_0xfe28a1(0xbf)]&&console[_0xfe28a1(0xd6)]('⚠\x20Could\x20not\x20reach\x20'+_0x2eaefa+':\x20'+_0x708c85['error']+_0xfe28a1(0xc8));}else{console['log'](_0xfe28a1(0xd7)),console[_0xfe28a1(0xd6)](_0xfe28a1(0xfa)),console[_0xfe28a1(0xd6)](_0xfe28a1(0x107));let _0x16f3ad='',_0x34e63b=![];while(!![]){const _0x57aac7=await _0x51228d['prompt']([{'type':_0x1e8aaf[_0xfe28a1(0x122)],'name':'baseUrl','message':_0x34e63b?_0x1e8aaf[_0xfe28a1(0x129)]:_0x1e8aaf[_0xfe28a1(0xeb)],'default':_0x1e8aaf[_0xfe28a1(0x128)](_0x16f3ad,'http://localhost:3000')}]);_0x16f3ad=_0x57aac7[_0xfe28a1(0xce)];const _0x302e0f=await checkUrlReachability(_0x16f3ad);if(_0x302e0f['ok'])break;const _0x12b0c7=/^[a-zA-Z][\w+.-]*:\/\//[_0xfe28a1(0xdb)](_0x16f3ad),_0x1159ed=_0x302e0f[_0xfe28a1(0xd2)]&&!_0x12b0c7,_0x4652ee=_0x1159ed?'http://'+_0x16f3ad:null;_0x34e63b=!![],console['log'](_0xfe28a1(0xed)+_0x16f3ad+':\x20'+_0x302e0f['error']);_0x4652ee&&console['log'](_0xfe28a1(0x109)+_0x4652ee+'?');const {action:_0x316bb4}=await _0x51228d[_0xfe28a1(0xc2)]([{'type':_0x1e8aaf[_0xfe28a1(0xd9)],'name':_0x1e8aaf[_0xfe28a1(0xb8)],'message':_0x1e8aaf[_0xfe28a1(0xc0)],'choices':[..._0x4652ee?[{'name':'Use\x20'+_0x4652ee,'value':_0x1e8aaf['WgvUu']}]:[],{'name':_0xfe28a1(0x106),'value':_0xfe28a1(0x123)},{'name':'Continue\x20anyway','value':'continue'}]}]);if(_0x316bb4===_0xfe28a1(0xb3)&&_0x4652ee){_0x16f3ad=_0x4652ee;const _0x320cf1=await checkUrlReachability(_0x16f3ad);if(_0x320cf1['ok'])break;console['log']('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0x16f3ad+':\x20'+_0x320cf1['error']);}else{if(_0x1e8aaf['QoHkn'](_0x316bb4,_0x1e8aaf['PIuKv']))break;}}_0x525e5c={..._0x525e5c,'url':_0x16f3ad};}let _0x30c313=![];try{_0x30c313=await _0x1e8aaf['jeSGN'](tryAutoRouteCloudProfile,_0x193584,_0x525e5c['url'],_0x525e5c,_0x4df715,_0x1e507c);}catch(_0x12c778){console['error']('\x0a\x20\x20Failed\x20to\x20create\x20cloud\x20profile\x20\x22'+_0x193584+'\x22:\x20'+(_0x1e8aaf[_0xfe28a1(0xde)](_0x12c778,Error)?_0x12c778['message']:String(_0x12c778))),process[_0xfe28a1(0xb6)](0x1);}!_0x30c313&&process[_0xfe28a1(0xb6)](0x1),await _0x1e8aaf['ujggq'](markActive,_0x193584);}
1
+ (function(_0x4d1874,_0x16047c){const _0x7fcef=_0x1449,_0x5bbeb7=_0x4d1874();while(!![]){try{const _0x333e20=parseInt(_0x7fcef(0x17c))/0x1*(parseInt(_0x7fcef(0x170))/0x2)+parseInt(_0x7fcef(0x1c3))/0x3+parseInt(_0x7fcef(0x185))/0x4+parseInt(_0x7fcef(0x18c))/0x5+parseInt(_0x7fcef(0x180))/0x6*(-parseInt(_0x7fcef(0x18e))/0x7)+-parseInt(_0x7fcef(0x1f8))/0x8+-parseInt(_0x7fcef(0x1b1))/0x9;if(_0x333e20===_0x16047c)break;else _0x5bbeb7['push'](_0x5bbeb7['shift']());}catch(_0x141424){_0x5bbeb7['push'](_0x5bbeb7['shift']());}}}(_0x3fb4,0xee086));import{readdir,rm}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import _0x32af57 from'inquirer';import{getRangerDir,getRangerHomeDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{fetchAuthConfig,createCloudProfile,manualBrowserLogin,ApiError}from'./utils/cloudProfile.js';import{isInteractive}from'./utils/cloudProfileSession.js';import{matchAuthEnvironment}from'./utils/matchAuthEnvironment.js';import{isPathGitTracked}from'./utils/gitTracked.js';import{setProfileOverride}from'./utils/projectsConfig.js';function _0x3fb4(){const _0xe8ebb2=['url','prompt','http://','cdpEndpoint','joBeX','334SFjxmy','environments','env','bDSry','join','IdERM','⚠\x20Could\x20not\x20reach\x20','slice','QFgFM','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','keys','message','9122nWwHFi','WbuDT','profile.add.autoRouteSkipped','DfxBV','34854tZzgRI','\x20\x20Details:\x20https://docs.ranger.net/main/concepts/profiles#automated-login','test','\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a','\x20\x20To\x20get\x20automated\x20login\x20set\x20up\x20for\x20your\x20team\x20(a\x20one-time\x20call):\x20eng@ranger.net\x0a','6202136xlrCGX','\x0a\x20\x20Cloud\x20profile\x20created,\x20but\x20failed\x20to\x20write\x20per-cwd\x20CDP\x20override\x20to\x20projects.json:\x20','isElectron','RmGYq','\x0a\x20\x20Failed\x20to\x20create\x20cloud\x20profile\x20\x22','\x0a\x20\x20Still\x20could\x20not\x20reach\x20','trim','7966135qpwEFZ','\x27\x20matching\x20','1106MbIHRk','\x0a\x20\x20(domains:\x20','wuaVj','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','\x0a\x20\x20Could\x20not\x20reach\x20','uRxxs','\x20\x20https://docs.ranger.net/main/concepts/profiles','LDvtB','http://localhost:3000','list','exit','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20','lweCP','ycdEz','ihPsR','WrumO','setupHeaders','xnpeb','\x20--skip-auth\x0a','`\x20again\x20without\x20--skip-auth.','.tmp-','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20','Invalid\x20--setup-header\x20format:\x20\x22','signal','status','origin','name','NODE_TLS_REJECT_UNAUTHORIZED','\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20','fetch\x20failed','\x27\x20created\x20(no\x20session).\x0a','lKOCC','\x0a✓\x20Profile\x20\x27','WVyJv','length','24436539ZMYmKG','\x0a\x20\x20Could\x20not\x20fetch\x20this\x20org\x27s\x20auth\x20config:\x20','gjuXP','stdout','TpZaC','xFbOd','Invalid\x20URL','ytGdm','trackPhaseEnd','baseUrl','\x20\x20Note:\x20found\x20git-tracked\x20local\x20profile\x20at\x20','ogfxW','bhIEw','For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','SnoqB','confirm','Found\x20auth\x20environment\x20\x27','cpgcF','1264014mJgcdC','nhLcv','\x20\x20Set\x20active\x20profile:\x20','saveToCloud','\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20session,\x0a','Enter\x20a\x20different\x20URL','DVVuR','Automated\x20login\x20isn\x27t\x20set\x20up\x20for\x20your\x20team.\x20Capture\x20a\x20session\x20via\x20a\x20headed\x20browser\x20instead?','\x0a🌐\x20Profile\x20Setup\x0a','The\x20--ci\x20flag\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x20session\x20state\x0a','What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','\x27\x20created\x20(CDP).','\x20—\x20not\x20removing.\x20Delete\x20manually\x20if\x20you\x20want\x20it\x20gone.','To\x20set\x20up\x20a\x20profile,\x20run:\x0a','local','for\x20you,\x20so\x20the\x20encrypted-CI\x20flow\x20is\x20unnecessary.\x0a','no_match','\x0a\x20\x20A\x20profile\x20named\x20\x22','user_declined','LJdrC','bRNIj','HPUoF','✓\x20Profile\x20\x27','.\x20Configured\x20envs:\x20','qNEPF','mxpZx','awjeN','--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','UlVmw','setupHeader','use_suggestion','log','isTTY','RkFAS','yes','What\x20would\x20you\x20like\x20to\x20do?','profile.add.autoRouted','no_auth_config','HurXw','\x22.\x20Expected\x20\x22Name:\x20Value\x22.','capture','KZYrH','cwd',')\x0a\x20\x20Save\x20\x27','error','✓\x20Cloud\x20profile\x20\x27','force','rtyyt','\x27\x20to\x20the\x20cloud?','indexOf','cLClS','skipAuth','manual','3843984KVnZWs','startsWith'];_0x3fb4=function(){return _0xe8ebb2;};return _0x3fb4();}const CLOUD_PROFILE_SHARING_WARNING='This\x20account\x20will\x20be\x20shared\x20with\x20everyone\x20at\x20your\x20organization';function warnCloudProfileSharedInOrg(){const _0xd18b88=_0x1449;if(!process[_0xd18b88(0x1b4)][_0xd18b88(0x1e3)])return;console['warn'](CLOUD_PROFILE_SHARING_WARNING);}async function checkUrlReachability(_0x1e26ec){const _0x335ea1=_0x1449,_0x4a7be8={'DoFIl':'HEAD','BFKrk':_0x335ea1(0x1f7),'JyDiH':function(_0x45c7b2,_0x5b0cc8){return _0x45c7b2(_0x5b0cc8);},'RMgeJ':function(_0x32d4df,_0x10deaf){return _0x32d4df<_0x10deaf;},'uRxxs':_0x335ea1(0x1b7),'FmFAo':function(_0x570ac1,_0x17e803){return _0x570ac1===_0x17e803;}};try{const _0x48546d=new AbortController(),_0x1c6897=setTimeout(()=>_0x48546d['abort'](),0x1388),_0xf0b24={'method':_0x4a7be8['DoFIl'],'signal':_0x48546d[_0x335ea1(0x1a5)],'redirect':_0x4a7be8['BFKrk']};/^https:\/\/localhost(:\d+)?/i[_0x335ea1(0x182)](_0x1e26ec)&&(process['env'][_0x335ea1(0x1a9)]='0');const _0x2155f8=await fetch(_0x1e26ec,_0xf0b24);delete process[_0x335ea1(0x172)][_0x335ea1(0x1a9)],_0x4a7be8['JyDiH'](clearTimeout,_0x1c6897);if(_0x4a7be8['RMgeJ'](_0x2155f8['status'],0x190))return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x2155f8[_0x335ea1(0x1a6)]};}catch(_0xccb36d){delete process[_0x335ea1(0x172)][_0x335ea1(0x1a9)];const _0x1026d7=_0xccb36d,_0x2a8458=_0x1026d7['message']||_0x4a7be8['JyDiH'](String,_0xccb36d),_0xa7d47b=_0x2a8458['includes'](_0x4a7be8[_0x335ea1(0x193)])||_0x4a7be8['FmFAo'](_0x1026d7[_0x335ea1(0x1a8)],'TypeError')||_0x2a8458['includes'](_0x335ea1(0x1ab));return{'ok':![],'error':_0x2a8458,'isProtocolError':_0xa7d47b};}}async function sweepOrphanLocalProfile(_0xad5193,_0x54e366,_0x2f6aeb){const _0x1b008e=_0x1449,_0x2b8ee5={'UKzms':function(_0x3cd151,_0x5438dd,_0x593d33){return _0x3cd151(_0x5438dd,_0x593d33);},'DfxBV':function(_0x5d1255,_0x18e917,_0x412cd1){return _0x5d1255(_0x18e917,_0x412cd1);},'gEpTm':function(_0x3b2485,_0x5760c5){return _0x3b2485(_0x5760c5);},'jDSmH':function(_0x4de6ce,_0x2c1efc,_0x31381e){return _0x4de6ce(_0x2c1efc,_0x31381e);}},_0x5a89ed=_0x2b8ee5['UKzms'](join,_0x54e366,_0x1b008e(0x1d1)),_0x5447aa=_0x2b8ee5['DfxBV'](join,_0x5a89ed,_0xad5193);existsSync(_0x5447aa)&&(_0x2f6aeb&&await isPathGitTracked(_0x5447aa)?console[_0x1b008e(0x1e2)](_0x1b008e(0x1bb)+_0x5447aa+_0x1b008e(0x1cf)):(await rm(_0x5447aa,{'recursive':!![],'force':!![]}),console[_0x1b008e(0x1e2)](_0x1b008e(0x1aa)+_0x5447aa)));if(_0x2b8ee5['gEpTm'](existsSync,_0x5a89ed)){let _0x113da9=[];try{_0x113da9=await _0x2b8ee5['gEpTm'](readdir,_0x5a89ed);}catch{return;}const _0x166852=_0x1b008e(0x1a2)+_0xad5193+'-';for(const _0x37bd5c of _0x113da9){if(!_0x37bd5c[_0x1b008e(0x1f9)](_0x166852))continue;const _0x431b84=_0x2b8ee5['jDSmH'](join,_0x5a89ed,_0x37bd5c);await _0x2b8ee5[_0x1b008e(0x17f)](rm,_0x431b84,{'recursive':!![],'force':!![]}),console['log']('\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20'+_0x431b84);}}}async function sweepOrphansBestEffort(_0x57506d){const _0x4e130c=_0x1449,_0x24aa80={'dZSHe':function(_0x2c00ad,_0x3ebd08,_0x2966ee,_0x31a28c){return _0x2c00ad(_0x3ebd08,_0x2966ee,_0x31a28c);},'QFgFM':function(_0x4ac264){return _0x4ac264();},'zDapW':function(_0x50d07b){return _0x50d07b();},'ytGdm':function(_0x44ed3c,_0x2df144){return _0x44ed3c!==_0x2df144;},'DVVuR':function(_0x55c409,_0x4a7821){return _0x55c409 instanceof _0x4a7821;}};try{await _0x24aa80['dZSHe'](sweepOrphanLocalProfile,_0x57506d,_0x24aa80[_0x4e130c(0x178)](getRangerHomeDir),![]);const _0x5d83ce=_0x24aa80['zDapW'](getRangerDir);_0x24aa80[_0x4e130c(0x1b8)](_0x5d83ce,getRangerHomeDir())&&await sweepOrphanLocalProfile(_0x57506d,_0x5d83ce,!![]);}catch(_0x4ed8c8){console['log']('\x20\x20Note:\x20cloud\x20profile\x20created,\x20but\x20failed\x20to\x20sweep\x20orphan\x20local\x20dirs\x20('+(_0x24aa80[_0x4e130c(0x1c9)](_0x4ed8c8,Error)?_0x4ed8c8[_0x4e130c(0x17b)]:String(_0x4ed8c8))+').');}}async function markActive(_0x12de41){const _0x4e21e7=_0x1449,_0x32230c={'rtyyt':function(_0x247f55,_0x443dd0){return _0x247f55(_0x443dd0);}};try{await _0x32230c[_0x4e21e7(0x1f2)](writeActiveProfileName,_0x12de41),console[_0x4e21e7(0x1e2)](_0x4e21e7(0x1c5)+_0x12de41);}catch{console[_0x4e21e7(0x1e2)]('Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.');}}async function tryAutoRouteCloudProfile(_0x54eea9,_0xc0a8c2,_0x36291b,_0x188bfe,_0x3f5967){const _0x4cc214=_0x1449,_0x21fe82={'awjeN':'profile.add.autoRouteSkipped','xFbOd':function(_0x50e201,_0x2d9a20){return _0x50e201 instanceof _0x2d9a20;},'KSKVv':function(_0x44c5a0,_0x30b59b,_0x315a0d,_0x53a8b4,_0x472904){return _0x44c5a0(_0x30b59b,_0x315a0d,_0x53a8b4,_0x472904);},'UlVmw':_0x4cc214(0x1e8),'qNEPF':function(_0x4d87b5,_0x57055a){return _0x4d87b5+_0x57055a;},'aabng':function(_0x4d67df,_0x262af7){return _0x4d67df+_0x262af7;},'lprOL':'\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','mxpZx':_0x4cc214(0x181),'ZpcJu':function(_0x2f08b7,_0x368622,_0x5d8dbb){return _0x2f08b7(_0x368622,_0x5d8dbb);},'ycdEz':_0x4cc214(0x1d3),'TpZaC':_0x4cc214(0x1c0),'ITRCn':_0x4cc214(0x1c6),'IdERM':'\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20cloud-managed\x20session.','dZQoP':function(_0x32e31c,_0x3bad92,_0x10bedc,_0x2ab82c){return _0x32e31c(_0x3bad92,_0x10bedc,_0x2ab82c);}};let _0x82ec0f;try{_0x82ec0f=await fetchAuthConfig();}catch(_0x3c2a49){return _0x3f5967?.[_0x4cc214(0x1b9)](_0x21fe82[_0x4cc214(0x1dd)],{'reason':_0x4cc214(0x1e8),'profileName':_0x54eea9}),console[_0x4cc214(0x1ef)](_0x4cc214(0x1b2)+(_0x21fe82[_0x4cc214(0x1b6)](_0x3c2a49,Error)?_0x3c2a49['message']:String(_0x3c2a49))),![];}if(!_0x82ec0f||!_0x82ec0f['environments']||Object[_0x4cc214(0x17a)](_0x82ec0f[_0x4cc214(0x171)])['length']===0x0){if(_0x188bfe)return await _0x21fe82['KSKVv'](captureEnvLessProfile,_0x54eea9,_0xc0a8c2,_0x36291b,_0x3f5967);return _0x3f5967?.[_0x4cc214(0x1b9)](_0x21fe82['awjeN'],{'reason':_0x21fe82[_0x4cc214(0x1df)],'profileName':_0x54eea9}),console[_0x4cc214(0x1ef)](_0x21fe82[_0x4cc214(0x1db)](_0x21fe82['aabng'](_0x21fe82['lprOL'],'\x0a')+'\x20\x20Workaround\x20for\x20now:\x20create\x20a\x20profile\x20without\x20a\x20captured\x20session\x20and\x20supply\x20one\x20later:\x0a',_0x4cc214(0x199)+_0x54eea9+'\x20--url\x20'+_0xc0a8c2+_0x4cc214(0x1a0))+'\x0a'+_0x4cc214(0x184)+_0x21fe82[_0x4cc214(0x1dc)]),![];}const _0x4e0f76=_0x21fe82['ZpcJu'](matchAuthEnvironment,_0xc0a8c2,_0x82ec0f);if(!_0x4e0f76)return _0x3f5967?.['trackPhaseEnd'](_0x21fe82[_0x4cc214(0x1dd)],{'reason':_0x21fe82[_0x4cc214(0x19b)],'profileName':_0x54eea9}),console[_0x4cc214(0x1ef)]('\x0a\x20\x20No\x20auth\x20env\x20matches\x20'+_0xc0a8c2+_0x4cc214(0x1da)+Object[_0x4cc214(0x17a)](_0x82ec0f[_0x4cc214(0x171)])[_0x4cc214(0x174)](',\x20')+'.'),![];const _0x44a0c9=_0x82ec0f[_0x4cc214(0x171)][_0x4e0f76],_0x177d05=_0x44a0c9?.['domains']??[];if(_0x188bfe&&!_0x36291b[_0x4cc214(0x1e5)]){const {saveToCloud:_0x5aa3f6}=await _0x32af57[_0x4cc214(0x1fb)]([{'type':_0x21fe82[_0x4cc214(0x1b5)],'name':_0x21fe82['ITRCn'],'message':_0x4cc214(0x1c1)+_0x4e0f76+_0x4cc214(0x18d)+_0xc0a8c2+_0x4cc214(0x18f)+_0x177d05['join'](',\x20')+_0x4cc214(0x1ee)+_0x54eea9+_0x4cc214(0x1f3),'default':!![]}]);if(!_0x5aa3f6)return _0x3f5967?.['trackPhaseEnd']('profile.add.autoRouteSkipped',{'reason':_0x4cc214(0x1d5),'profileName':_0x54eea9}),console[_0x4cc214(0x1ef)](_0x21fe82[_0x4cc214(0x175)]),![];}const _0x27779d=_0x177d05['some'](_0x27ba39=>{const _0x19986e=_0x4cc214;try{return new URL(_0x27ba39)[_0x19986e(0x1a7)]===new URL(_0xc0a8c2)['origin'];}catch{return![];}}),_0x474e03={};!_0x27779d&&(_0x474e03[_0x4cc214(0x1ba)]=_0xc0a8c2);try{await _0x21fe82['dZQoP'](createCloudProfile,_0x54eea9,_0x4e0f76,{'settings':_0x474e03}),warnCloudProfileSharedInOrg();}catch(_0x2c5ae0){if(_0x2c5ae0 instanceof ApiError&&_0x2c5ae0[_0x4cc214(0x1a6)]===0x199){console['error'](_0x21fe82[_0x4cc214(0x1db)](_0x4cc214(0x1d4)+_0x54eea9+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a',_0x4cc214(0x1a3)+_0x54eea9));throw _0x2c5ae0;}throw _0x2c5ae0;}return console[_0x4cc214(0x1e2)](_0x4cc214(0x1d9)+_0x54eea9+'\x27\x20created.\x0a'+('\x20\x20Next:\x20ranger\x20go\x20--profile\x20'+_0x54eea9)),await sweepOrphansBestEffort(_0x54eea9),_0x3f5967?.['trackPhaseEnd']('profile.add.autoRouted',{'envKey':_0x4e0f76,'profileName':_0x54eea9}),!![];}async function createUnconfiguredCloudProfile(_0x437088,_0x4ecbad){const _0x190646=_0x1449,_0x59347f={'pTDDe':function(_0x518786,_0x39ffa3){return _0x518786+_0x39ffa3;}};try{await createCloudProfile(_0x437088,undefined,{'settings':_0x4ecbad}),warnCloudProfileSharedInOrg();}catch(_0x3126bf){_0x3126bf instanceof ApiError&&_0x3126bf[_0x190646(0x1a6)]===0x199&&console[_0x190646(0x1ef)](_0x59347f['pTDDe']('\x0a\x20\x20A\x20profile\x20named\x20\x22'+_0x437088+_0x190646(0x183),'\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x437088));throw _0x3126bf;}}async function captureEnvLessProfile(_0x12ff83,_0x1f0f3b,_0x48167d,_0x4fa453){const _0x9b3f83=_0x1449,_0x3125f9={'SnoqB':_0x9b3f83(0x1eb),'xnpeb':'user_declined','lKOCC':function(_0x470148,_0x45149f){return _0x470148+_0x45149f;},'bRNIj':function(_0x44abbc,_0x81521a){return _0x44abbc===_0x81521a;},'Gvkqf':function(_0x2ae97f,_0x83c937,_0x3de356,_0xf23e3f){return _0x2ae97f(_0x83c937,_0x3de356,_0xf23e3f);},'lLOjm':function(_0x56bd54){return _0x56bd54();},'MbCkv':function(_0x4bfb32,_0x38a958){return _0x4bfb32(_0x38a958);}};if(!_0x48167d[_0x9b3f83(0x1e5)]){const {capture:_0x2fa9e8}=await _0x32af57[_0x9b3f83(0x1fb)]([{'type':'confirm','name':_0x3125f9[_0x9b3f83(0x1bf)],'message':_0x9b3f83(0x1ca),'default':!![]}]);if(!_0x2fa9e8)return _0x4fa453?.['trackPhaseEnd'](_0x9b3f83(0x17e),{'reason':_0x3125f9[_0x9b3f83(0x19f)],'profileName':_0x12ff83}),console[_0x9b3f83(0x1ef)](_0x3125f9[_0x9b3f83(0x1ad)](_0x9b3f83(0x1c7),'\x20\x20or\x20contact\x20eng@ranger.net\x20to\x20set\x20up\x20automated\x20login\x20for\x20your\x20team.')),![];}const _0x260c61={};if(_0x48167d['setupHeader'])for(const _0x120d19 of _0x48167d['setupHeader']){const _0x28b919=_0x120d19[_0x9b3f83(0x1f4)](':');if(_0x3125f9[_0x9b3f83(0x1d7)](_0x28b919,-0x1))continue;_0x260c61[_0x120d19[_0x9b3f83(0x177)](0x0,_0x28b919)['trim']()]=_0x120d19[_0x9b3f83(0x177)](_0x28b919+0x1)['trim']();}const _0x50b9ae={'baseUrl':_0x1f0f3b};Object[_0x9b3f83(0x17a)](_0x260c61)[_0x9b3f83(0x1b0)]>0x0&&(_0x50b9ae['setupHeaders']=_0x260c61);let _0x146270;try{_0x146270=await _0x3125f9['Gvkqf'](createCloudProfile,_0x12ff83,undefined,{'settings':_0x50b9ae}),_0x3125f9['lLOjm'](warnCloudProfileSharedInOrg);}catch(_0x422f2d){_0x422f2d instanceof ApiError&&_0x422f2d[_0x9b3f83(0x1a6)]===0x199&&console[_0x9b3f83(0x1ef)](_0x9b3f83(0x1d4)+_0x12ff83+_0x9b3f83(0x183)+(_0x9b3f83(0x1a3)+_0x12ff83));throw _0x422f2d;}return await manualBrowserLogin(_0x146270,{'key':'','domains':[_0x1f0f3b],'setupHeaders':Object[_0x9b3f83(0x17a)](_0x260c61)[_0x9b3f83(0x1b0)]>0x0?_0x260c61:undefined}),console['log'](_0x9b3f83(0x1ae)+_0x12ff83+'\x27\x20created\x20with\x20a\x20captured\x20session.\x0a'+('\x20\x20Next:\x20ranger\x20go\x20--profile\x20'+_0x12ff83)),await _0x3125f9['MbCkv'](sweepOrphansBestEffort,_0x12ff83),_0x4fa453?.[_0x9b3f83(0x1b9)](_0x9b3f83(0x1e7),{'envKey':null,'profileName':_0x12ff83}),!![];}function _0x1449(_0x4df75b,_0x3c47b2){_0x4df75b=_0x4df75b-0x170;const _0x3fb44a=_0x3fb4();let _0x144908=_0x3fb44a[_0x4df75b];return _0x144908;}export async function addEnv(_0x5dc9fa,_0x2161a6={},_0x53948c){const _0x3b82ad=_0x1449,_0x550a37={'joBeX':function(_0x55bd60,_0x500525){return _0x55bd60+_0x500525;},'JYqga':function(_0x46d66a,_0x1badde){return _0x46d66a+_0x1badde;},'WrumO':_0x3b82ad(0x1cc),'bDSry':_0x3b82ad(0x1d2),'RmGYq':_0x3b82ad(0x1d0),'HPUoF':'\x20\x20ranger\x20profile\x20add\x20<name>\x0a','cLClS':function(_0x43c28a,_0x40a0e0){return _0x43c28a===_0x40a0e0;},'MEvlM':function(_0x3e91fb,_0x4074c2){return _0x3e91fb!==_0x4074c2;},'AWceS':function(_0x1d1a63){return _0x1d1a63();},'xhDLn':function(_0x6bc813,_0x33d408){return _0x6bc813>_0x33d408;},'bhIEw':function(_0x41a1b2,_0xf698b1,_0x37353d,_0x2054dd,_0x401792){return _0x41a1b2(_0xf698b1,_0x37353d,_0x2054dd,_0x401792);},'ICwWx':'cdpEndpoint','nBuEf':_0x3b82ad(0x187),'Isabd':function(_0x2eeddc,_0x47ef06){return _0x2eeddc instanceof _0x47ef06;},'gjuXP':function(_0x52c029,_0x1fa8a8){return _0x52c029(_0x1fa8a8);},'KZYrH':function(_0x2a2e1a,_0x14b548){return _0x2a2e1a(_0x14b548);},'GxCUZ':function(_0xbd3d76,_0x5adc20){return _0xbd3d76>_0x5adc20;},'ihPsR':function(_0x53f05e,_0x1c5af5,_0x452e96){return _0x53f05e(_0x1c5af5,_0x452e96);},'ogfxW':function(_0x221b91,_0xe45f27){return _0x221b91+_0xe45f27;},'RkFAS':function(_0x4ad529,_0x4c26ab){return _0x4ad529(_0x4c26ab);},'FsrbT':_0x3b82ad(0x1cb),'QTwqY':'\x20\x20Ranger\x20will\x20use\x20it\x20to\x20look\x20up\x20the\x20right\x20cloud\x20auth\x20env\x20to\x20attach.\x0a','lweCP':'baseUrl','LDvtB':'Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','wuaVj':_0x3b82ad(0x1cd),'LJdrC':_0x3b82ad(0x197),'cpgcF':'action','xkmdt':_0x3b82ad(0x1e6),'HurXw':'use_suggestion','WVyJv':'Continue\x20anyway','AphOS':'continue','WbuDT':function(_0xe445bc,_0x92420b){return _0xe445bc instanceof _0x92420b;},'nhLcv':function(_0x4d6d9f,_0x58ae39){return _0x4d6d9f(_0x58ae39);}};_0x2161a6['ci']&&(console['error'](_0x550a37['joBeX'](_0x550a37[_0x3b82ad(0x1fe)](_0x550a37['JYqga'](_0x550a37[_0x3b82ad(0x19d)]+_0x550a37[_0x3b82ad(0x173)],'\x0a')+_0x550a37[_0x3b82ad(0x188)],_0x550a37[_0x3b82ad(0x1d8)])+'\x0a',_0x3b82ad(0x1be))+_0x3b82ad(0x194)),process['exit'](0x1));const _0xed9113={};if(_0x2161a6[_0x3b82ad(0x1e0)])for(const _0x285319 of _0x2161a6[_0x3b82ad(0x1e0)]){const _0x1d10b4=_0x285319['indexOf'](':');if(_0x550a37[_0x3b82ad(0x1f5)](_0x1d10b4,-0x1))throw new Error(_0x3b82ad(0x1a4)+_0x285319+_0x3b82ad(0x1ea));const _0x13e22e=_0x285319[_0x3b82ad(0x177)](0x0,_0x1d10b4)['trim'](),_0x265048=_0x285319[_0x3b82ad(0x177)](_0x1d10b4+0x1)['trim']();_0xed9113[_0x13e22e]=_0x265048;}if(_0x550a37['MEvlM'](_0x2161a6[_0x3b82ad(0x1fd)],undefined)&&_0x2161a6[_0x3b82ad(0x1fd)][_0x3b82ad(0x18b)]()==='')throw new Error('--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222');if(_0x2161a6['cdpEndpoint']&&_0x2161a6['url'])throw new Error(_0x3b82ad(0x1de));const _0x284bf1=Boolean(_0x2161a6[_0x3b82ad(0x1fd)]),_0x20a326=_0x550a37['AWceS'](isInteractive);if(!_0x20a326&&!_0x2161a6['url']&&!_0x284bf1&&!_0x2161a6['skipAuth'])throw new Error('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');if(_0x284bf1){const _0xb4e9aa=_0x2161a6[_0x3b82ad(0x1fd)];console[_0x3b82ad(0x1e2)]('\x0a🔌\x20CDP\x20Profile\x20Setup\x0a'),console[_0x3b82ad(0x1e2)](_0x3b82ad(0x191)+_0xb4e9aa);const _0x3cede9={'cdpEndpoint':_0xb4e9aa,'isElectron':!![]};_0x550a37['xhDLn'](Object['keys'](_0xed9113)[_0x3b82ad(0x1b0)],0x0)&&(_0x3cede9[_0x3b82ad(0x19e)]=_0xed9113);await createUnconfiguredCloudProfile(_0x5dc9fa,_0x3cede9);try{_0x550a37[_0x3b82ad(0x1bd)](setProfileOverride,process['cwd'](),_0x5dc9fa,_0x550a37['ICwWx'],_0xb4e9aa),_0x550a37['bhIEw'](setProfileOverride,process[_0x3b82ad(0x1ed)](),_0x5dc9fa,_0x550a37['nBuEf'],!![]);}catch(_0x2bb6d2){console['error'](_0x3b82ad(0x186)+(_0x550a37['Isabd'](_0x2bb6d2,Error)?_0x2bb6d2[_0x3b82ad(0x17b)]:String(_0x2bb6d2)));}console['log'](_0x3b82ad(0x1f0)+_0x5dc9fa+_0x3b82ad(0x1ce)),await _0x550a37[_0x3b82ad(0x1b3)](sweepOrphansBestEffort,_0x5dc9fa),await _0x550a37['KZYrH'](markActive,_0x5dc9fa);return;}if(_0x2161a6[_0x3b82ad(0x1f6)]){const _0x1e14cb={};_0x2161a6['url']&&(_0x1e14cb[_0x3b82ad(0x1ba)]=_0x2161a6[_0x3b82ad(0x1fa)]);_0x550a37['GxCUZ'](Object['keys'](_0xed9113)['length'],0x0)&&(_0x1e14cb[_0x3b82ad(0x19e)]=_0xed9113);await _0x550a37[_0x3b82ad(0x19c)](createUnconfiguredCloudProfile,_0x5dc9fa,_0x1e14cb),console[_0x3b82ad(0x1e2)](_0x550a37[_0x3b82ad(0x1bc)](_0x3b82ad(0x1d9)+_0x5dc9fa+_0x3b82ad(0x1ac),'\x20\x20When\x20you\x27re\x20ready\x20to\x20log\x20in,\x20run\x20`ranger\x20profile\x20add\x20'+_0x5dc9fa+_0x3b82ad(0x1a1))),await _0x550a37['gjuXP'](sweepOrphansBestEffort,_0x5dc9fa),await _0x550a37['RkFAS'](markActive,_0x5dc9fa);return;}if(_0x2161a6[_0x3b82ad(0x1fa)]){const _0x28c49a=_0x2161a6['url'],_0x56d381=await checkUrlReachability(_0x28c49a);if(!_0x56d381['ok']&&!_0x2161a6[_0x3b82ad(0x1f1)])throw new Error('Could\x20not\x20reach\x20'+_0x28c49a+':\x20'+_0x56d381[_0x3b82ad(0x1ef)]+_0x3b82ad(0x179));!_0x56d381['ok']&&_0x2161a6[_0x3b82ad(0x1f1)]&&console['log'](_0x3b82ad(0x176)+_0x28c49a+':\x20'+_0x56d381[_0x3b82ad(0x1ef)]+'\x20(continuing\x20with\x20--force)');}else{console['log'](_0x550a37['FsrbT']),console[_0x3b82ad(0x1e2)]('\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.'),console['log'](_0x550a37['QTwqY']);let _0x26f78c='',_0x1c63f9=![];while(!![]){const _0x38e0a0=await _0x32af57[_0x3b82ad(0x1fb)]([{'type':'input','name':_0x550a37[_0x3b82ad(0x19a)],'message':_0x1c63f9?_0x550a37[_0x3b82ad(0x195)]:_0x550a37[_0x3b82ad(0x190)],'default':_0x26f78c||_0x3b82ad(0x196)}]);_0x26f78c=_0x38e0a0['baseUrl'];const _0x4da79c=await checkUrlReachability(_0x26f78c);if(_0x4da79c['ok'])break;const _0x23af55=/^[a-zA-Z][\w+.-]*:\/\//['test'](_0x26f78c),_0x1e2515=_0x4da79c['isProtocolError']&&!_0x23af55,_0x1e0e67=_0x1e2515?_0x3b82ad(0x1fc)+_0x26f78c:null;_0x1c63f9=!![],console[_0x3b82ad(0x1e2)](_0x3b82ad(0x192)+_0x26f78c+':\x20'+_0x4da79c[_0x3b82ad(0x1ef)]);_0x1e0e67&&console['log']('\x20\x20Did\x20you\x20mean\x20'+_0x1e0e67+'?');const {action:_0x3d3824}=await _0x32af57['prompt']([{'type':_0x550a37[_0x3b82ad(0x1d6)],'name':_0x550a37[_0x3b82ad(0x1c2)],'message':_0x550a37['xkmdt'],'choices':[..._0x1e0e67?[{'name':'Use\x20'+_0x1e0e67,'value':_0x550a37[_0x3b82ad(0x1e9)]}]:[],{'name':_0x3b82ad(0x1c8),'value':'retry'},{'name':_0x550a37[_0x3b82ad(0x1af)],'value':_0x550a37['AphOS']}]}]);if(_0x3d3824===_0x3b82ad(0x1e1)&&_0x1e0e67){_0x26f78c=_0x1e0e67;const _0x5391af=await _0x550a37[_0x3b82ad(0x1e4)](checkUrlReachability,_0x26f78c);if(_0x5391af['ok'])break;console[_0x3b82ad(0x1e2)](_0x3b82ad(0x18a)+_0x26f78c+':\x20'+_0x5391af[_0x3b82ad(0x1ef)]);}else{if(_0x3d3824===_0x550a37['AphOS'])break;}}_0x2161a6={..._0x2161a6,'url':_0x26f78c};}let _0x1df94b=![];try{_0x1df94b=await tryAutoRouteCloudProfile(_0x5dc9fa,_0x2161a6['url'],_0x2161a6,_0x20a326,_0x53948c);}catch(_0x208d0f){console[_0x3b82ad(0x1ef)](_0x3b82ad(0x189)+_0x5dc9fa+'\x22:\x20'+(_0x550a37[_0x3b82ad(0x17d)](_0x208d0f,Error)?_0x208d0f[_0x3b82ad(0x17b)]:_0x550a37[_0x3b82ad(0x1c4)](String,_0x208d0f))),process['exit'](0x1);}!_0x1df94b&&process[_0x3b82ad(0x198)](0x1),await _0x550a37[_0x3b82ad(0x1ec)](markActive,_0x5dc9fa);}
@@ -1 +1 @@
1
- function _0x58b2(){var _0x559bf9=['1139244YbBmGn','299632KSisti','exit','vEZXR','8816928DoDAip','vHFmG','2590245ozzXFP','245ibvsvw','ranger\x20profile\x20encrypt-auth\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x0a','758758fYfrpg','To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','1210464PpErMm','31016nCxiMu'];_0x58b2=function(){return _0x559bf9;};return _0x58b2();}function _0xfa5c(_0x295d4a,_0x1e0a5c){_0x295d4a=_0x295d4a-0x121;var _0x58b2c7=_0x58b2();var _0xfa5c67=_0x58b2c7[_0x295d4a];return _0xfa5c67;}(function(_0xf85caa,_0x8703c2){var _0x3284eb=_0xfa5c,_0x1e9e66=_0xf85caa();while(!![]){try{var _0x3b59c9=parseInt(_0x3284eb(0x12a))/0x1+parseInt(_0x3284eb(0x122))/0x2+parseInt(_0x3284eb(0x121))/0x3+parseInt(_0x3284eb(0x12d))/0x4*(parseInt(_0x3284eb(0x128))/0x5)+parseInt(_0x3284eb(0x12c))/0x6+-parseInt(_0x3284eb(0x127))/0x7+-parseInt(_0x3284eb(0x125))/0x8;if(_0x3b59c9===_0x8703c2)break;else _0x1e9e66['push'](_0x1e9e66['shift']());}catch(_0x1f730e){_0x1e9e66['push'](_0x1e9e66['shift']());}}}(_0x58b2,0x61225));export async function authEncrypt(_0xa7aba0){var _0xa646a=_0xfa5c,_0x4db1cd={'QuFEH':function(_0x126984,_0x3c9535){return _0x126984+_0x3c9535;},'NGtLG':function(_0x25df3b,_0x32d5a7){return _0x25df3b+_0x32d5a7;},'vHFmG':'session\x20state\x20for\x20you,\x20so\x20encrypted\x20on-disk\x20auth\x20is\x20unnecessary.\x0a','vEZXR':_0xa646a(0x12b)};console['error'](_0x4db1cd['QuFEH'](_0x4db1cd['QuFEH'](_0x4db1cd['NGtLG'](_0xa646a(0x129),_0x4db1cd[_0xa646a(0x126)])+'\x0a'+_0x4db1cd[_0xa646a(0x124)],'\x20\x20ranger\x20profile\x20add\x20<name>\x0a'),'\x0a')+'For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a'+'\x20\x20https://docs.ranger.net/main/concepts/profiles'),process[_0xa646a(0x123)](0x1);}
1
+ function _0x3241(){var _0x327396=['For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','5463JQsnmD','1661090EKeOTA','67182zSOWPY','4084188EGCDGh','2285217LnUCpE','diTdK','10VOOJIM','1020cWXmJm','tzTBO','9496fpRiWw','SZmlk','47189psLjdv','32210hCJXpk','fdYsz','931mRAhNz','exit'];_0x3241=function(){return _0x327396;};return _0x3241();}(function(_0x55a567,_0x410b74){var _0x3cda5d=_0x175a,_0x381d53=_0x55a567();while(!![]){try{var _0x62e569=parseInt(_0x3cda5d(0x131))/0x1*(parseInt(_0x3cda5d(0x12c))/0x2)+-parseInt(_0x3cda5d(0x129))/0x3+parseInt(_0x3cda5d(0x12d))/0x4*(parseInt(_0x3cda5d(0x132))/0x5)+parseInt(_0x3cda5d(0x128))/0x6*(parseInt(_0x3cda5d(0x134))/0x7)+parseInt(_0x3cda5d(0x12f))/0x8*(-parseInt(_0x3cda5d(0x126))/0x9)+-parseInt(_0x3cda5d(0x127))/0xa+-parseInt(_0x3cda5d(0x12a))/0xb;if(_0x62e569===_0x410b74)break;else _0x381d53['push'](_0x381d53['shift']());}catch(_0xbef666){_0x381d53['push'](_0x381d53['shift']());}}}(_0x3241,0xdeadf));function _0x175a(_0x234c37,_0x57b6c1){_0x234c37=_0x234c37-0x125;var _0x32415a=_0x3241();var _0x175a1d=_0x32415a[_0x234c37];return _0x175a1d;}export async function authEncrypt(_0x5643f9){var _0x2d1ea4=_0x175a,_0xcf2950={'diTdK':function(_0x2d3884,_0x53cfcf){return _0x2d3884+_0x53cfcf;},'tzTBO':function(_0x311909,_0xb39b6f){return _0x311909+_0xb39b6f;},'SZmlk':'To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','fdYsz':'\x20\x20ranger\x20profile\x20add\x20<name>\x0a','fJuJq':_0x2d1ea4(0x125),'eNnVV':'\x20\x20https://docs.ranger.net/main/concepts/profiles'};console['error'](_0xcf2950['diTdK'](_0xcf2950[_0x2d1ea4(0x12b)](_0xcf2950[_0x2d1ea4(0x12e)]('ranger\x20profile\x20encrypt-auth\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x0a','session\x20state\x20for\x20you,\x20so\x20encrypted\x20on-disk\x20auth\x20is\x20unnecessary.\x0a'),'\x0a')+_0xcf2950[_0x2d1ea4(0x130)]+_0xcf2950[_0x2d1ea4(0x133)]+'\x0a',_0xcf2950['fJuJq'])+_0xcf2950['eNnVV']),process[_0x2d1ea4(0x135)](0x1);}
@@ -1 +1 @@
1
- const _0x1f35e0=_0x2be5;(function(_0x337051,_0x411f23){const _0x535a53=_0x2be5,_0x56275b=_0x337051();while(!![]){try{const _0x5032ce=-parseInt(_0x535a53(0xec))/0x1*(parseInt(_0x535a53(0xf6))/0x2)+-parseInt(_0x535a53(0x11a))/0x3*(parseInt(_0x535a53(0x103))/0x4)+-parseInt(_0x535a53(0xee))/0x5+-parseInt(_0x535a53(0x10a))/0x6+-parseInt(_0x535a53(0xeb))/0x7+-parseInt(_0x535a53(0xed))/0x8*(parseInt(_0x535a53(0xf9))/0x9)+parseInt(_0x535a53(0x107))/0xa;if(_0x5032ce===_0x411f23)break;else _0x56275b['push'](_0x56275b['shift']());}catch(_0x2349e4){_0x56275b['push'](_0x56275b['shift']());}}}(_0x7c38,0xd60dd));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 _0x2be5(_0x3dc62a,_0x428cf4){_0x3dc62a=_0x3dc62a-0xe5;const _0x7c38a5=_0x7c38();let _0x2be572=_0x7c38a5[_0x3dc62a];return _0x2be572;}import{getProjectRoot,getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=[_0x1f35e0(0x101),_0x1f35e0(0x10e),'bug-bash',_0x1f35e0(0x11c)],opencodePluginName=_0x1f35e0(0x113);function _0x7c38(){const _0x3fceca=['e2e-test-recommender','MGHGz','eRLzv','✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','RewJV','QEGbY','beePo','PyyCz','log','KOrBE','uninstall','6406120tqvRJa','173lOvHhG','32ywSjBL','5190105AvCiZy','win32','WXCRk','hOebZ','✓\x20Removed\x20.ranger/\x20directory','ignore','claude','ylUqW','13694JvudVM','hjfGX','xCWnn','454437WlGxAl','length','plugin','HENeL','NFQDJ','IFNvm','parse','FVgmb','ranger','ldLHu','4fxhWiL','marketplace','project','platform','68631000JTyfYT','yFyGW','stringify','9435252rpmEAH','remove','iVVLW','utf-8','feature-tracker','opencode.json','✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','--scope','error','@ranger-testing/opencode-plugin','replace','IhNpB','\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','✓\x20Removed\x20stored\x20credentials','dcIJV','WVbXP','3222327jcwxTi','LwbCo'];_0x7c38=function(){return _0x3fceca;};return _0x7c38();}function parseJsonc(_0x441750){const _0x4a34e4=_0x1f35e0,_0x518c88=_0x441750[_0x4a34e4(0x114)](/\/\*[\s\S]*?\*\//g,''),_0x3fdab0=_0x518c88[_0x4a34e4(0x114)](/^\s*\/\/.*$/gm,''),_0x27873b=_0x3fdab0[_0x4a34e4(0x114)](/,\s*([}\]])/g,'$1');return JSON[_0x4a34e4(0xff)](_0x27873b);}async function removeOpencodePluginConfig(_0x5cb7aa){const _0x30f157=_0x1f35e0,_0x59bd50={'beePo':function(_0x1d2de4,_0x742b97){return _0x1d2de4(_0x742b97);},'rrwQV':function(_0x23bc7c,_0x26649b,_0x44035d){return _0x23bc7c(_0x26649b,_0x44035d);},'MGHGz':_0x30f157(0x10d),'LwbCo':function(_0x36fc45,_0x1269dc){return _0x36fc45===_0x1269dc;},'NFQDJ':function(_0x1a0d5c,_0x78eaf3,_0x417899){return _0x1a0d5c(_0x78eaf3,_0x417899);},'iVVLW':function(_0x4db6f0,_0x549b42){return _0x4db6f0+_0x549b42;}};if(!_0x59bd50[_0x30f157(0xe6)](existsSync,_0x5cb7aa))return![];let _0x233424;try{const _0x54cac7=await _0x59bd50['rrwQV'](readFile,_0x5cb7aa,_0x59bd50[_0x30f157(0x11d)]);_0x233424=parseJsonc(_0x54cac7);}catch{return![];}const _0x37fb7c=Array['isArray'](_0x233424[_0x30f157(0xfb)])?_0x233424['plugin']:[];if(_0x59bd50['LwbCo'](_0x37fb7c[_0x30f157(0xfa)],0x0))return![];const _0x46a15f=_0x37fb7c['filter'](_0x2a560d=>{if(typeof _0x2a560d!=='string')return!![];return _0x2a560d!==opencodePluginName;});if(_0x59bd50[_0x30f157(0x11b)](_0x46a15f['length'],_0x37fb7c[_0x30f157(0xfa)]))return![];return _0x46a15f[_0x30f157(0xfa)]===0x0?delete _0x233424['plugin']:_0x233424[_0x30f157(0xfb)]=_0x46a15f,await _0x59bd50[_0x30f157(0xfd)](writeFile,_0x5cb7aa,_0x59bd50[_0x30f157(0x10c)](JSON[_0x30f157(0x109)](_0x233424,null,0x2),'\x0a')),!![];}async function uninstallClaudePlugin(_0x481db7){const _0x657b5f=_0x1f35e0,_0x1e917c={'RewJV':function(_0x22f54f,_0xcbf613){return _0x22f54f===_0xcbf613;},'KOrBE':'plugin','IhNpB':_0x657b5f(0xea),'gQwzv':'claude','MNPpu':_0x657b5f(0xef)};return new Promise(_0x4ab3b0=>{const _0x4afb17=_0x657b5f,_0x3a0e6a=[_0x1e917c[_0x4afb17(0xe9)],_0x1e917c[_0x4afb17(0x115)],'ranger@trailhead'];_0x481db7&&_0x3a0e6a['push'](_0x4afb17(0x111),_0x481db7);const _0x4c5d8e=spawn(_0x1e917c['gQwzv'],_0x3a0e6a,{'stdio':['ignore',_0x4afb17(0xf3),'ignore'],'cwd':_0x481db7?getProjectRoot():undefined,'shell':process[_0x4afb17(0x106)]===_0x1e917c['MNPpu']});_0x4c5d8e['on']('close',_0x13c864=>{const _0x2ac58d=_0x4afb17;_0x4ab3b0(_0x1e917c[_0x2ac58d(0x120)](_0x13c864,0x0));}),_0x4c5d8e['on']('error',()=>{_0x4ab3b0(![]);});});}async function removeMarketplace(){const _0x22d4f4=_0x1f35e0,_0x5ab1aa={'WVbXP':function(_0x365218,_0x4aa292){return _0x365218(_0x4aa292);},'cAPka':function(_0x182efa,_0x2717d7,_0x4e1c7c,_0xdca82){return _0x182efa(_0x2717d7,_0x4e1c7c,_0xdca82);},'gpHtI':_0x22d4f4(0xf4),'IFNvm':'plugin','hbblG':'trailhead','Wamxm':'ignore','QEGbY':_0x22d4f4(0xef),'CeVEw':'close'};return new Promise(_0x5ebb54=>{const _0x2120e0=_0x22d4f4,_0x154d70={'dcIJV':function(_0x166322,_0x387d2e){return _0x166322===_0x387d2e;}},_0x3441e0=_0x5ab1aa['cAPka'](spawn,_0x5ab1aa['gpHtI'],[_0x5ab1aa[_0x2120e0(0xfe)],_0x2120e0(0x104),_0x2120e0(0x10b),_0x5ab1aa['hbblG']],{'stdio':['ignore',_0x2120e0(0xf3),_0x5ab1aa['Wamxm']],'shell':process[_0x2120e0(0x106)]===_0x5ab1aa[_0x2120e0(0xe5)]});_0x3441e0['on'](_0x5ab1aa['CeVEw'],_0x5847d8=>{const _0x5603f8=_0x2120e0;_0x5ebb54(_0x154d70[_0x5603f8(0x118)](_0x5847d8,0x0));}),_0x3441e0['on'](_0x2120e0(0x112),()=>{const _0x1d436d=_0x2120e0;_0x5ab1aa[_0x1d436d(0x119)](_0x5ebb54,![]);});});}export async function clean(){const _0x3b0379=_0x1f35e0,_0x47de7d={'eRLzv':_0x3b0379(0x116),'yFyGW':function(_0x15f63a){return _0x15f63a();},'fwDaL':_0x3b0379(0x117),'PyyCz':function(_0x99aacc,_0x2fee1b){return _0x99aacc(_0x2fee1b);},'ylUqW':function(_0x3c262e,_0x2c77e5,_0x58dc42){return _0x3c262e(_0x2c77e5,_0x58dc42);},'hOebZ':function(_0x28d3ff){return _0x28d3ff();},'FVgmb':function(_0x159f61,_0x266cff){return _0x159f61(_0x266cff);},'WXCRk':'user','dQyuf':function(_0x1e5751,_0x29f6aa,_0x3b9dd6){return _0x1e5751(_0x29f6aa,_0x3b9dd6);},'PUhFT':function(_0x2e55b4,_0xaf615e,_0x32aade){return _0x2e55b4(_0xaf615e,_0x32aade);},'HENeL':'✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','xCWnn':function(_0x3040d8,_0x4e25c8){return _0x3040d8(_0x4e25c8);},'ldLHu':_0x3b0379(0x10f),'hjfGX':_0x3b0379(0x105)};console['log'](_0x47de7d[_0x3b0379(0x11e)]);let _0x343c0e=![];try{await _0x47de7d[_0x3b0379(0x108)](deleteAllCredentials),console['log'](_0x47de7d['fwDaL']),_0x343c0e=!![];}catch{}const _0x1e9077=getCacheFile();existsSync(_0x1e9077)&&(await rm(_0x1e9077),_0x343c0e=!![]);const _0x14c939=_0x47de7d[_0x3b0379(0x108)](getRangerDir);_0x47de7d['PyyCz'](existsSync,_0x14c939)&&(await _0x47de7d[_0x3b0379(0xf5)](rm,_0x14c939,{'recursive':!![]}),console[_0x3b0379(0xe8)](_0x3b0379(0xf2)),_0x343c0e=!![]);const _0x2cc501=getProjectSkillsDir();for(const _0x2e7dfb of skillsToRemove){const _0x9178f5=_0x47de7d['ylUqW'](join,_0x2cc501,_0x2e7dfb);existsSync(_0x9178f5)&&(await _0x47de7d['ylUqW'](rm,_0x9178f5,{'recursive':!![]}),console['log']('✓\x20Removed\x20project\x20skill:\x20'+_0x2e7dfb),_0x343c0e=!![]);}const _0x386c48=_0x47de7d['hOebZ'](getUserSkillsDir);for(const _0x5a8bfa of skillsToRemove){const _0x364e8e=join(_0x386c48,_0x5a8bfa);existsSync(_0x364e8e)&&(await _0x47de7d[_0x3b0379(0xf5)](rm,_0x364e8e,{'recursive':!![]}),console['log']('✓\x20Removed\x20user\x20skill:\x20'+_0x5a8bfa),_0x343c0e=!![]);}const _0x28e308=_0x47de7d['FVgmb'](getOpencodeSkillsDir,'project');for(const _0x28c151 of skillsToRemove){const _0x44a25b=_0x47de7d['ylUqW'](join,_0x28e308,_0x28c151);_0x47de7d[_0x3b0379(0x100)](existsSync,_0x44a25b)&&(await rm(_0x44a25b,{'recursive':!![]}),console['log']('✓\x20Removed\x20OpenCode\x20project\x20skill:\x20'+_0x28c151),_0x343c0e=!![]);}const _0x2c467=getOpencodeSkillsDir(_0x47de7d[_0x3b0379(0xf0)]);for(const _0x9c827c of skillsToRemove){const _0x2a40ce=_0x47de7d['dQyuf'](join,_0x2c467,_0x9c827c);_0x47de7d[_0x3b0379(0xe7)](existsSync,_0x2a40ce)&&(await _0x47de7d['PUhFT'](rm,_0x2a40ce,{'recursive':!![]}),console['log']('✓\x20Removed\x20OpenCode\x20user\x20skill:\x20'+_0x9c827c),_0x343c0e=!![]);}const _0x3d8e03=join(_0x47de7d['FVgmb'](getOpencodeConfigDir,_0x3b0379(0x105)),_0x3b0379(0x10f));await removeOpencodePluginConfig(_0x3d8e03)&&(console[_0x3b0379(0xe8)](_0x47de7d[_0x3b0379(0xfc)]),_0x343c0e=!![]);const _0x1b34f3=join(_0x47de7d[_0x3b0379(0xf8)](getOpencodeConfigDir,_0x47de7d['WXCRk']),_0x47de7d[_0x3b0379(0x102)]);await _0x47de7d[_0x3b0379(0xe7)](removeOpencodePluginConfig,_0x1b34f3)&&(console[_0x3b0379(0xe8)]('✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)'),_0x343c0e=!![]);const _0x132326=await uninstallClaudePlugin();_0x132326&&(console[_0x3b0379(0xe8)](_0x3b0379(0x110)),_0x343c0e=!![]);const _0x1ae5e6=await _0x47de7d['FVgmb'](uninstallClaudePlugin,_0x47de7d[_0x3b0379(0xf7)]);_0x1ae5e6&&(console[_0x3b0379(0xe8)](_0x3b0379(0x11f)),_0x343c0e=!![]);const _0x4760be=await _0x47de7d[_0x3b0379(0xf1)](removeMarketplace);_0x4760be&&(console['log']('✓\x20Removed\x20trailhead\x20marketplace'),_0x343c0e=!![]),_0x343c0e?console[_0x3b0379(0xe8)]('\x0a✅\x20Cleanup\x20complete!\x0a'):console[_0x3b0379(0xe8)]('Nothing\x20to\x20clean\x20up.\x0a');}
1
+ const _0xd19e52=_0x25f1;(function(_0x149c91,_0x130307){const _0x85ddaa=_0x25f1,_0x5df9f0=_0x149c91();while(!![]){try{const _0x5f1c75=-parseInt(_0x85ddaa(0x211))/0x1*(parseInt(_0x85ddaa(0x1ef))/0x2)+-parseInt(_0x85ddaa(0x1df))/0x3*(-parseInt(_0x85ddaa(0x1f8))/0x4)+-parseInt(_0x85ddaa(0x1eb))/0x5*(parseInt(_0x85ddaa(0x1e9))/0x6)+parseInt(_0x85ddaa(0x217))/0x7+-parseInt(_0x85ddaa(0x215))/0x8*(-parseInt(_0x85ddaa(0x1ea))/0x9)+-parseInt(_0x85ddaa(0x1e1))/0xa*(-parseInt(_0x85ddaa(0x1f1))/0xb)+-parseInt(_0x85ddaa(0x1de))/0xc;if(_0x5f1c75===_0x130307)break;else _0x5df9f0['push'](_0x5df9f0['shift']());}catch(_0x324620){_0x5df9f0['push'](_0x5df9f0['shift']());}}}(_0x386f,0x9f916));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';function _0x386f(){const _0x139b17=['win32','utf-8','parse','✓\x20Removed\x20.ranger/\x20directory','RnNmW','uVuCJ','plugin','HCxzm','1uwOCMh','CYVPG','jUxTi','sDdnW','8797416HJCYNm','zaboO','7835919EjhsLG','✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','✓\x20Removed\x20OpenCode\x20project\x20skill:\x20','19826712cimXnp','63QoAiaQ','marketplace','174900NCiwvF','isArray','project','QoDqJ','✓\x20Removed\x20project\x20skill:\x20','log','WjbFw','mrzyN','365292VZESiZ','9dQtyvD','65MGxAvq','\x0a✅\x20Cleanup\x20complete!\x0a','uninstall','apeUS','493006ioHxZk','KYiCw','99RWFaaX','length','jfwuQ','--scope','FPONv','tGNLw','ignore','184244anOins','e2e-test-recommender','OVjre','opencode.json','ranger@trailhead','FkqLp','QDgVb','JNRKd','oEfpc','qkKwt','QmDvL','xXtzD','error','remove','bug-bash','replace','@ranger-testing/opencode-plugin'];_0x386f=function(){return _0x139b17;};return _0x386f();}import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';function _0x25f1(_0x5343f1,_0x2a7903){_0x5343f1=_0x5343f1-0x1dc;const _0x386f3a=_0x386f();let _0x25f14e=_0x386f3a[_0x5343f1];return _0x25f14e;}const skillsToRemove=['ranger','feature-tracker',_0xd19e52(0x206),_0xd19e52(0x1f9)],opencodePluginName=_0xd19e52(0x208);function parseJsonc(_0x2d685e){const _0xe4fcfb=_0xd19e52,_0x155003=_0x2d685e[_0xe4fcfb(0x207)](/\/\*[\s\S]*?\*\//g,''),_0x1f3306=_0x155003[_0xe4fcfb(0x207)](/^\s*\/\/.*$/gm,''),_0x1ff9a8=_0x1f3306['replace'](/,\s*([}\]])/g,'$1');return JSON[_0xe4fcfb(0x20b)](_0x1ff9a8);}async function removeOpencodePluginConfig(_0x5e6cb5){const _0x4481dd=_0xd19e52,_0x5072ce={'SdzsG':function(_0x2f97cf,_0x4a57a0){return _0x2f97cf!==_0x4a57a0;},'oEfpc':function(_0x3297bf,_0x4472f3,_0x54289f){return _0x3297bf(_0x4472f3,_0x54289f);},'jfwuQ':function(_0x248289,_0x58dd31){return _0x248289+_0x58dd31;}};if(!existsSync(_0x5e6cb5))return![];let _0x5f52cf;try{const _0x58a4ab=await _0x5072ce[_0x4481dd(0x200)](readFile,_0x5e6cb5,_0x4481dd(0x20a));_0x5f52cf=parseJsonc(_0x58a4ab);}catch{return![];}const _0x54d9c1=Array[_0x4481dd(0x1e2)](_0x5f52cf[_0x4481dd(0x20f)])?_0x5f52cf['plugin']:[];if(_0x54d9c1[_0x4481dd(0x1f2)]===0x0)return![];const _0x50cf36=_0x54d9c1['filter'](_0x270453=>{if(_0x5072ce['SdzsG'](typeof _0x270453,'string'))return!![];return _0x270453!==opencodePluginName;});if(_0x50cf36[_0x4481dd(0x1f2)]===_0x54d9c1[_0x4481dd(0x1f2)])return![];return _0x50cf36[_0x4481dd(0x1f2)]===0x0?delete _0x5f52cf[_0x4481dd(0x20f)]:_0x5f52cf['plugin']=_0x50cf36,await _0x5072ce['oEfpc'](writeFile,_0x5e6cb5,_0x5072ce[_0x4481dd(0x1f3)](JSON['stringify'](_0x5f52cf,null,0x2),'\x0a')),!![];}async function uninstallClaudePlugin(_0x1d25be){const _0x5125fd=_0xd19e52,_0xb2d019={'myWXP':function(_0x446fc4,_0x3d034f){return _0x446fc4(_0x3d034f);},'qkKwt':'plugin','hsKjC':_0x5125fd(0x1ed),'tGNLw':_0x5125fd(0x1fc),'ruajs':'ignore','sDdnW':function(_0x1bedbb,_0x5b6343){return _0x1bedbb===_0x5b6343;},'QoDqJ':'win32','zaboO':'close'};return new Promise(_0x571c68=>{const _0x21174d=_0x5125fd,_0x21f697={'OVjre':function(_0x15d70a,_0x2b6ed6){return _0xb2d019['myWXP'](_0x15d70a,_0x2b6ed6);}},_0x189698=[_0xb2d019[_0x21174d(0x201)],_0xb2d019['hsKjC'],_0xb2d019[_0x21174d(0x1f6)]];_0x1d25be&&_0x189698['push'](_0x21174d(0x1f4),_0x1d25be);const _0x42afcb=spawn('claude',_0x189698,{'stdio':[_0xb2d019['ruajs'],_0x21174d(0x1f7),'ignore'],'cwd':_0x1d25be?getProjectRoot():undefined,'shell':_0xb2d019[_0x21174d(0x214)](process['platform'],_0xb2d019[_0x21174d(0x1e4)])});_0x42afcb['on'](_0xb2d019[_0x21174d(0x216)],_0x1c3483=>{const _0x3b4fd7=_0x21174d;_0x21f697[_0x3b4fd7(0x1fa)](_0x571c68,_0x1c3483===0x0);}),_0x42afcb['on'](_0x21174d(0x204),()=>{_0x571c68(![]);});});}async function removeMarketplace(){const _0xaf174b={'ZpMXA':function(_0x26e31a,_0x438198){return _0x26e31a(_0x438198);},'uVuCJ':function(_0x3cb8e1,_0x4e9304,_0x3df412,_0x176201){return _0x3cb8e1(_0x4e9304,_0x3df412,_0x176201);},'KYiCw':'claude','mrzyN':'plugin','srecR':'trailhead','JNRKd':'ignore','WjbFw':'close'};return new Promise(_0x183169=>{const _0x12be26=_0x25f1,_0x129d1d={'RnNmW':function(_0x4177b2,_0x492627){return _0xaf174b['ZpMXA'](_0x4177b2,_0x492627);},'MYOzP':function(_0x2e3e94,_0x5ecdc4){return _0x2e3e94===_0x5ecdc4;}},_0x7bd415=_0xaf174b[_0x12be26(0x20e)](spawn,_0xaf174b[_0x12be26(0x1f0)],[_0xaf174b[_0x12be26(0x1e8)],_0x12be26(0x1e0),_0x12be26(0x205),_0xaf174b['srecR']],{'stdio':[_0x12be26(0x1f7),_0xaf174b[_0x12be26(0x1ff)],_0xaf174b[_0x12be26(0x1ff)]],'shell':process['platform']===_0x12be26(0x209)});_0x7bd415['on'](_0xaf174b[_0x12be26(0x1e7)],_0x403a62=>{const _0x477f87=_0x12be26;_0x129d1d[_0x477f87(0x20d)](_0x183169,_0x129d1d['MYOzP'](_0x403a62,0x0));}),_0x7bd415['on'](_0x12be26(0x204),()=>{_0x183169(![]);});});}export async function clean(){const _0x55164d=_0xd19e52,_0x284c14={'xXtzD':function(_0x158d87){return _0x158d87();},'apeUS':'✓\x20Removed\x20stored\x20credentials','HCxzm':function(_0x2e5eeb,_0x4f2d8e){return _0x2e5eeb(_0x4f2d8e);},'aENMA':function(_0x34c8d9,_0x400058){return _0x34c8d9(_0x400058);},'jUxTi':_0x55164d(0x1e3),'FPONv':function(_0x4845b2,_0x5065dd,_0x1a1c8b){return _0x4845b2(_0x5065dd,_0x1a1c8b);},'QDgVb':function(_0x7148c4,_0x27be2e){return _0x7148c4(_0x27be2e);},'FkqLp':'user','WOxCo':function(_0x259cd8,_0x20c630){return _0x259cd8(_0x20c630);},'oqQjS':'✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','EEihS':_0x55164d(0x1dc),'CYVPG':'✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','QmDvL':'✓\x20Removed\x20trailhead\x20marketplace','agRab':_0x55164d(0x1ec)};console['log']('\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a');let _0x262a09=![];try{await _0x284c14[_0x55164d(0x203)](deleteAllCredentials),console['log'](_0x284c14[_0x55164d(0x1ee)]),_0x262a09=!![];}catch{}const _0x53a963=getCacheFile();existsSync(_0x53a963)&&(await _0x284c14['HCxzm'](rm,_0x53a963),_0x262a09=!![]);const _0x2cdc25=getRangerDir();_0x284c14['aENMA'](existsSync,_0x2cdc25)&&(await rm(_0x2cdc25,{'recursive':!![]}),console[_0x55164d(0x1e6)](_0x55164d(0x20c)),_0x262a09=!![]);const _0x1f0a38=getProjectSkillsDir();for(const _0x309a00 of skillsToRemove){const _0x3d693e=join(_0x1f0a38,_0x309a00);existsSync(_0x3d693e)&&(await rm(_0x3d693e,{'recursive':!![]}),console['log'](_0x55164d(0x1e5)+_0x309a00),_0x262a09=!![]);}const _0x5cb7cc=getUserSkillsDir();for(const _0x4efecb of skillsToRemove){const _0x4df5f6=join(_0x5cb7cc,_0x4efecb);existsSync(_0x4df5f6)&&(await rm(_0x4df5f6,{'recursive':!![]}),console[_0x55164d(0x1e6)]('✓\x20Removed\x20user\x20skill:\x20'+_0x4efecb),_0x262a09=!![]);}const _0x1279ef=_0x284c14[_0x55164d(0x210)](getOpencodeSkillsDir,_0x284c14[_0x55164d(0x213)]);for(const _0x5a7e7c of skillsToRemove){const _0x57b6aa=_0x284c14['FPONv'](join,_0x1279ef,_0x5a7e7c);_0x284c14[_0x55164d(0x1fe)](existsSync,_0x57b6aa)&&(await rm(_0x57b6aa,{'recursive':!![]}),console['log'](_0x55164d(0x1dd)+_0x5a7e7c),_0x262a09=!![]);}const _0x3ca5ec=_0x284c14[_0x55164d(0x210)](getOpencodeSkillsDir,_0x284c14['FkqLp']);for(const _0x42d3e3 of skillsToRemove){const _0x3549d8=join(_0x3ca5ec,_0x42d3e3);_0x284c14[_0x55164d(0x210)](existsSync,_0x3549d8)&&(await rm(_0x3549d8,{'recursive':!![]}),console['log']('✓\x20Removed\x20OpenCode\x20user\x20skill:\x20'+_0x42d3e3),_0x262a09=!![]);}const _0x525c4d=_0x284c14[_0x55164d(0x1f5)](join,_0x284c14['WOxCo'](getOpencodeConfigDir,_0x284c14['jUxTi']),_0x55164d(0x1fb));await removeOpencodePluginConfig(_0x525c4d)&&(console['log'](_0x284c14['oqQjS']),_0x262a09=!![]);const _0x309b15=join(getOpencodeConfigDir(_0x284c14[_0x55164d(0x1fd)]),'opencode.json');await removeOpencodePluginConfig(_0x309b15)&&(console[_0x55164d(0x1e6)](_0x284c14['EEihS']),_0x262a09=!![]);const _0x391033=await _0x284c14[_0x55164d(0x203)](uninstallClaudePlugin);_0x391033&&(console['log']('✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)'),_0x262a09=!![]);const _0xe8c741=await uninstallClaudePlugin(_0x284c14[_0x55164d(0x213)]);_0xe8c741&&(console['log'](_0x284c14[_0x55164d(0x212)]),_0x262a09=!![]);const _0x1bfe8e=await removeMarketplace();_0x1bfe8e&&(console['log'](_0x284c14[_0x55164d(0x202)]),_0x262a09=!![]),_0x262a09?console['log'](_0x284c14['agRab']):console[_0x55164d(0x1e6)]('Nothing\x20to\x20clean\x20up.\x0a');}
@@ -1 +1 @@
1
- const _0x1ccb66=_0x2a3d;(function(_0x200110,_0xa30da0){const _0x173c16=_0x2a3d,_0x1425b9=_0x200110();while(!![]){try{const _0x1d9c0a=parseInt(_0x173c16(0x94))/0x1+parseInt(_0x173c16(0x9d))/0x2*(-parseInt(_0x173c16(0x73))/0x3)+-parseInt(_0x173c16(0x70))/0x4+parseInt(_0x173c16(0x9c))/0x5+-parseInt(_0x173c16(0x7f))/0x6*(-parseInt(_0x173c16(0x71))/0x7)+-parseInt(_0x173c16(0x87))/0x8*(parseInt(_0x173c16(0x93))/0x9)+parseInt(_0x173c16(0x7d))/0xa*(parseInt(_0x173c16(0x6b))/0xb);if(_0x1d9c0a===_0xa30da0)break;else _0x1425b9['push'](_0x1425b9['shift']());}catch(_0x3859db){_0x1425b9['push'](_0x1425b9['shift']());}}}(_0x3d7c,0xa4a89));import{existsSync}from'fs';import{loadSettings,getNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';function _0x2a3d(_0x570bf4,_0x1511a6){_0x570bf4=_0x570bf4-0x65;const _0x3d7c43=_0x3d7c();let _0x2a3d7b=_0x3d7c43[_0x570bf4];return _0x2a3d7b;}import{fetchCloudProfile}from'./utils/cloudProfile.js';import{mergeCloudProfileSettings,readProfileOverrides,resetProfileOverrides,setProfileOverride,unsetProfileOverride}from'./utils/projectsConfig.js';const BOOLEAN_KEYS=['headless',_0x1ccb66(0x95)];function parseLocalValue(_0x541629,_0x2538c8){const _0x901fa8=_0x1ccb66,_0x516db6={'RbZLv':'true','wBVXP':'false'};if(BOOLEAN_KEYS[_0x901fa8(0x88)](_0x541629)){if(_0x2538c8===_0x516db6['RbZLv'])return!![];if(_0x2538c8===_0x516db6[_0x901fa8(0x8f)])return![];throw new Error(_0x901fa8(0x89)+_0x541629+_0x901fa8(0x8d));}return _0x2538c8;}function parseOverrideValue(_0x27a9df){const _0x518e66=_0x1ccb66,_0x27c183={'yUFCw':function(_0x46b516,_0x4f56d0){return _0x46b516===_0x4f56d0;},'ADXDL':_0x518e66(0x6a),'VOtAL':function(_0x582594,_0x1b3f3a){return _0x582594===_0x1b3f3a;},'EQJIb':function(_0x2bb404,_0x195ae8){return _0x2bb404===_0x195ae8;},'tLBxY':_0x518e66(0x8a),'dLmLM':function(_0x150cb4,_0x38ff47){return _0x150cb4===_0x38ff47;},'NOGVl':function(_0x4112e5,_0x1ba58a){return _0x4112e5(_0x1ba58a);}};if(_0x27c183['yUFCw'](_0x27a9df,_0x27c183['ADXDL']))return!![];if(_0x27c183['VOtAL'](_0x27a9df,'false'))return![];if(_0x27c183['EQJIb'](_0x27a9df,_0x27c183[_0x518e66(0x6d)]))return null;if(_0x27c183['dLmLM'](_0x27a9df,'undefined'))return undefined;if(/^-?\d+$/['test'](_0x27a9df)){const _0x3d51c9=Number(_0x27a9df);if(Number['isSafeInteger'](_0x3d51c9))return _0x3d51c9;}if(/^-?\d+\.\d+$/['test'](_0x27a9df)){const _0x4a2f96=_0x27c183[_0x518e66(0x91)](Number,_0x27a9df);if(!Number['isNaN'](_0x4a2f96))return _0x4a2f96;}const _0x396d3a=_0x27a9df['trim']();if(_0x396d3a[_0x518e66(0x72)]('{')&&_0x396d3a[_0x518e66(0x9a)]('}')||_0x396d3a[_0x518e66(0x72)]('[')&&_0x396d3a[_0x518e66(0x9a)](']'))try{return JSON['parse'](_0x396d3a);}catch{}return _0x27a9df;}async function resolveProfileTarget(_0x32df43){const _0x3055bb=_0x1ccb66,_0x380c52={'Fvuip':function(_0x32cffa,_0x303bde){return _0x32cffa(_0x303bde);},'wSxBG':_0x3055bb(0x75)},_0x50173e=_0x380c52[_0x3055bb(0x6e)](existsSync,getEnvDir(_0x32df43));let _0xd83b22=![];try{const _0x12c6e5=await fetchCloudProfile(_0x32df43);_0xd83b22=Boolean(_0x12c6e5);}catch{}if(_0xd83b22)return{'kind':_0x380c52[_0x3055bb(0x68)],'alsoExistsElsewhere':_0x50173e};if(_0x50173e)return{'kind':_0x3055bb(0x76),'alsoExistsElsewhere':![]};throw new Error(_0x3055bb(0x82)+_0x32df43+'\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x32df43);}function _0x3d7c(){const _0x5bb919=['keys','XMkHW','wSxBG','Set\x20','true','143cZFeZd','Removed\x20','tLBxY','Fvuip','nkwBH','1602860aSKKaU','658XlWDDi','startsWith','3GkYgrh','Cleared\x20local\x20overrides\x20for\x20\x22','cloud','local','\x20=\x20','No\x20configuration\x20set\x20for\x20\x22','eunrs','IWFwq','nJhme','BmzWV','44150QRPWOx','alsoExistsElsewhere','55074vXztVo','\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20','\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.','Profile\x20\x22','WRDdt','cwd','stringify','lJFbi','36936bbBlIF','includes','Invalid\x20value\x20for\x20','null','log','cpluH',':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22','FMqxK','wBVXP','\x20for\x20\x22','NOGVl','kind','234jFtxCK','431130wvgoOi','allowInsecureLocalhost','qbOLR','\x20<key>\x22\x20to\x20remove\x20individual\x20values.','\x22\x20and\x20cannot\x20be\x20unset;\x20the\x20legacy\x20tree\x20is\x20read-only\x20under\x20cloud\x20profiles.','(not\x20set)','endsWith','QNTlF','2308120mhwOFm','1235554XIzRJN','object','settings'];_0x3d7c=function(){return _0x5bb919;};return _0x3d7c();}function printDualExistsHint(_0x2c74eb){const _0x423886=_0x1ccb66;console[_0x423886(0x8b)]('\x20\x20Note:\x20\x22'+_0x2c74eb+_0x423886(0x81));}function getProjectPath(){const _0x3c8108=_0x1ccb66;return process[_0x3c8108(0x84)]();}async function loadEffectiveCloudSettings(_0x241d64){const _0x4b40bf=_0x1ccb66,_0x32d7bb={'BmzWV':function(_0x48c8b1,_0x483186){return _0x48c8b1(_0x483186);},'cpluH':function(_0xc077d5,_0xe003c0,_0x332984){return _0xc077d5(_0xe003c0,_0x332984);}},_0x1737ae=await _0x32d7bb[_0x4b40bf(0x7c)](fetchCloudProfile,_0x241d64),_0x1defae=_0x32d7bb[_0x4b40bf(0x8c)](readProfileOverrides,getProjectPath(),_0x241d64);return mergeCloudProfileSettings(_0x1737ae?.[_0x4b40bf(0x65)]??{},_0x1defae??undefined);}export async function configSet(_0x31e0f2,_0x96e722,_0x3ffadf){const _0x1da0da=_0x1ccb66,_0x3b8e90={'FswCv':function(_0x38a3ab,_0x4bafc5){return _0x38a3ab(_0x4bafc5);},'eunrs':_0x1da0da(0x75),'nJhme':function(_0x13d3b4){return _0x13d3b4();}},_0x2c1951=await _0x3b8e90['FswCv'](resolveProfileTarget,_0x31e0f2);if(_0x2c1951[_0x1da0da(0x92)]===_0x3b8e90[_0x1da0da(0x79)]){if(_0x2c1951['alsoExistsElsewhere'])_0x3b8e90['FswCv'](printDualExistsHint,_0x31e0f2);const _0x3ccbd2=parseOverrideValue(_0x3ffadf);setProfileOverride(getProjectPath(),_0x31e0f2,_0x96e722,_0x3ccbd2),console['log'](_0x1da0da(0x69)+_0x96e722+_0x1da0da(0x77)+JSON['stringify'](_0x3ccbd2)+'\x20for\x20\x22'+_0x31e0f2+'\x22');return;}const _0x36b400=parseLocalValue(_0x96e722,_0x3ffadf);setProfileOverride(_0x3b8e90[_0x1da0da(0x7b)](getProjectPath),_0x31e0f2,_0x96e722,_0x36b400),console['log'](_0x1da0da(0x69)+_0x96e722+_0x1da0da(0x77)+_0x36b400+'\x20for\x20\x22'+_0x31e0f2+'\x22');}export async function configGet(_0x437890,_0x212727){const _0x245dac=_0x1ccb66,_0x1a0fac={'lJFbi':function(_0x2e09d5,_0x2f172a){return _0x2e09d5===_0x2f172a;},'FMqxK':function(_0x2bdf31,_0x194223,_0x2a2101){return _0x2bdf31(_0x194223,_0x2a2101);},'qbOLR':function(_0x4174dd,_0x31c21e){return _0x4174dd===_0x31c21e;},'cZDoI':'object'},_0x3d9357=await resolveProfileTarget(_0x437890);if(_0x3d9357['kind']===_0x245dac(0x75)){const _0x500176=await loadEffectiveCloudSettings(_0x437890),_0x54ccf0=getNestedValue(_0x500176,_0x212727);if(_0x1a0fac['lJFbi'](_0x54ccf0,undefined))console[_0x245dac(0x8b)](_0x245dac(0x99));else _0x1a0fac[_0x245dac(0x86)](typeof _0x54ccf0,_0x245dac(0x9e))?console[_0x245dac(0x8b)](JSON[_0x245dac(0x85)](_0x54ccf0,null,0x2)):console[_0x245dac(0x8b)](_0x54ccf0);return;}const _0x191701=await loadSettings(_0x437890),_0x551612=_0x1a0fac[_0x245dac(0x8e)](getNestedValue,_0x191701,_0x212727);if(_0x1a0fac['lJFbi'](_0x551612,undefined))console[_0x245dac(0x8b)](_0x245dac(0x99));else _0x1a0fac[_0x245dac(0x96)](typeof _0x551612,_0x1a0fac['cZDoI'])?console['log'](JSON[_0x245dac(0x85)](_0x551612,null,0x2)):console['log'](_0x551612);}export async function configList(_0x35364f){const _0x4352c7=_0x1ccb66,_0xc47b29={'XMkHW':function(_0x476501,_0x37d998){return _0x476501===_0x37d998;},'WRDdt':function(_0xc15695,_0x210f35){return _0xc15695(_0x210f35);},'Epuft':function(_0x4421ff,_0x3e3e2e){return _0x4421ff(_0x3e3e2e);}},_0x25d30b=await resolveProfileTarget(_0x35364f);if(_0x25d30b[_0x4352c7(0x92)]==='cloud'){const _0x17f2c0=await loadEffectiveCloudSettings(_0x35364f);if(!_0x17f2c0||_0xc47b29[_0x4352c7(0x67)](Object[_0x4352c7(0x66)](_0x17f2c0)['length'],0x0)){console[_0x4352c7(0x8b)]('No\x20configuration\x20set\x20for\x20\x22'+_0x35364f+'\x22');return;}console['log'](JSON['stringify'](_0x17f2c0,null,0x2));return;}const _0x4dafdd=_0xc47b29['WRDdt'](getSettingsPath,_0x35364f);if(!_0xc47b29['Epuft'](existsSync,_0x4dafdd)){console[_0x4352c7(0x8b)](_0x4352c7(0x78)+_0x35364f+'\x22');return;}const _0x4acbb3=await loadSettings(_0x35364f),_0x4b230f=_0xc47b29[_0x4352c7(0x83)](formatSettings,_0x4acbb3);!_0x4b230f?console[_0x4352c7(0x8b)]('No\x20configuration\x20set\x20for\x20\x22'+_0x35364f+'\x22'):console[_0x4352c7(0x8b)](_0x4b230f);}export async function configUnset(_0x7d7012,_0x15ecb7){const _0x5c4c0b=_0x1ccb66,_0x56ecd1={'JUeBM':function(_0x355120,_0x5b6bfa){return _0x355120===_0x5b6bfa;},'LDwDE':_0x5c4c0b(0x75),'nkwBH':function(_0x4623b0,_0x3852a0){return _0x4623b0(_0x3852a0);},'IWFwq':function(_0x1e3e47,_0x554f82,_0x7b5e11,_0x42df25){return _0x1e3e47(_0x554f82,_0x7b5e11,_0x42df25);},'oQnAw':function(_0x23b906){return _0x23b906();}},_0x27f146=await resolveProfileTarget(_0x7d7012);if(_0x56ecd1['JUeBM'](_0x27f146[_0x5c4c0b(0x92)],_0x56ecd1['LDwDE'])){if(_0x27f146[_0x5c4c0b(0x7e)])_0x56ecd1[_0x5c4c0b(0x6f)](printDualExistsHint,_0x7d7012);const _0x14f173=_0x56ecd1[_0x5c4c0b(0x7a)](unsetProfileOverride,_0x56ecd1['oQnAw'](getProjectPath),_0x7d7012,_0x15ecb7);_0x14f173?console[_0x5c4c0b(0x8b)]('Removed\x20'+_0x15ecb7+_0x5c4c0b(0x90)+_0x7d7012+'\x22'):console[_0x5c4c0b(0x8b)]('Key\x20\x22'+_0x15ecb7+'\x22\x20not\x20found');return;}const _0x4e64d6=_0x56ecd1['IWFwq'](unsetProfileOverride,_0x56ecd1['oQnAw'](getProjectPath),_0x7d7012,_0x15ecb7);if(_0x4e64d6){console['log'](_0x5c4c0b(0x6c)+_0x15ecb7);return;}const _0x50b1b5=await loadSettings(_0x7d7012),_0x5d2f91=deleteNestedValue(_0x50b1b5,_0x15ecb7);_0x5d2f91?console[_0x5c4c0b(0x8b)]('Key\x20\x22'+_0x15ecb7+'\x22\x20lives\x20in\x20the\x20legacy\x20settings\x20file\x20for\x20\x22'+_0x7d7012+_0x5c4c0b(0x98)):console['log']('Key\x20\x22'+_0x15ecb7+'\x22\x20not\x20found');}export async function configReset(_0x2ddda1){const _0x168db9=_0x1ccb66,_0x4c83ab={'ZwEED':function(_0x4242af,_0x42a992){return _0x4242af(_0x42a992);},'PuKRH':function(_0x3cbd1a,_0x21127a,_0xca5dbe){return _0x3cbd1a(_0x21127a,_0xca5dbe);},'QNTlF':function(_0x248d04){return _0x248d04();}},_0xecad8d=await _0x4c83ab['ZwEED'](resolveProfileTarget,_0x2ddda1);if(_0xecad8d['kind']==='cloud'){_0x4c83ab['PuKRH'](resetProfileOverrides,_0x4c83ab[_0x168db9(0x9b)](getProjectPath),_0x2ddda1),console['log'](_0x168db9(0x74)+_0x2ddda1+'\x22');return;}console['log']('\x22'+_0x2ddda1+_0x168db9(0x80)+_0x2ddda1+_0x168db9(0x97));}
1
+ const _0x54a193=_0x2c5e;(function(_0x331b7c,_0x3e4f50){const _0x15f2bc=_0x2c5e,_0x4babb9=_0x331b7c();while(!![]){try{const _0xbc6371=-parseInt(_0x15f2bc(0x192))/0x1+parseInt(_0x15f2bc(0x16e))/0x2*(-parseInt(_0x15f2bc(0x173))/0x3)+-parseInt(_0x15f2bc(0x183))/0x4*(parseInt(_0x15f2bc(0x17b))/0x5)+-parseInt(_0x15f2bc(0x17d))/0x6+parseInt(_0x15f2bc(0x176))/0x7+parseInt(_0x15f2bc(0x17f))/0x8+-parseInt(_0x15f2bc(0x177))/0x9*(-parseInt(_0x15f2bc(0x168))/0xa);if(_0xbc6371===_0x3e4f50)break;else _0x4babb9['push'](_0x4babb9['shift']());}catch(_0x238058){_0x4babb9['push'](_0x4babb9['shift']());}}}(_0x479f,0xb7efa));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 _0x2c5e(_0xb6af42,_0x78e59e){_0xb6af42=_0xb6af42-0x165;const _0x479f4f=_0x479f();let _0x2c5ea5=_0x479f4f[_0xb6af42];return _0x2c5ea5;}const BOOLEAN_KEYS=[_0x54a193(0x198),_0x54a193(0x175)];function parseLocalValue(_0x2bac45,_0x35d250){const _0x3e5ebb=_0x54a193,_0x3d9402={'AAcdM':function(_0x4e29de,_0x41fbc3){return _0x4e29de===_0x41fbc3;},'IXSry':'true'};if(BOOLEAN_KEYS[_0x3e5ebb(0x184)](_0x2bac45)){if(_0x3d9402['AAcdM'](_0x35d250,_0x3d9402['IXSry']))return!![];if(_0x35d250===_0x3e5ebb(0x18c))return![];throw new Error('Invalid\x20value\x20for\x20'+_0x2bac45+_0x3e5ebb(0x178));}return _0x35d250;}function parseOverrideValue(_0x59d427){const _0x56049e=_0x54a193,_0x4a531b={'LVJBp':function(_0x111550,_0xf8f190){return _0x111550===_0xf8f190;},'vZmvR':function(_0x5599c1,_0x5c9727){return _0x5599c1===_0x5c9727;},'mXJLO':_0x56049e(0x18c),'ieage':'null','uSCjB':function(_0x2c8f15,_0x1ae841){return _0x2c8f15(_0x1ae841);}};if(_0x4a531b[_0x56049e(0x189)](_0x59d427,'true'))return!![];if(_0x4a531b[_0x56049e(0x169)](_0x59d427,_0x4a531b['mXJLO']))return![];if(_0x59d427===_0x4a531b[_0x56049e(0x197)])return null;if(_0x59d427==='undefined')return undefined;if(/^-?\d+$/['test'](_0x59d427)){const _0x2514dd=_0x4a531b[_0x56049e(0x180)](Number,_0x59d427);if(Number['isSafeInteger'](_0x2514dd))return _0x2514dd;}if(/^-?\d+\.\d+$/['test'](_0x59d427)){const _0x5eaf02=_0x4a531b[_0x56049e(0x180)](Number,_0x59d427);if(!Number['isNaN'](_0x5eaf02))return _0x5eaf02;}const _0x2f3821=_0x59d427[_0x56049e(0x167)]();if(_0x2f3821[_0x56049e(0x19a)]('{')&&_0x2f3821['endsWith']('}')||_0x2f3821['startsWith']('[')&&_0x2f3821['endsWith'](']'))try{return JSON[_0x56049e(0x174)](_0x2f3821);}catch{}return _0x59d427;}async function resolveProfileTarget(_0x1f4def){const _0x6c3661=_0x54a193,_0x186d3d={'ZegIf':function(_0x56eb48,_0x163b72){return _0x56eb48(_0x163b72);},'Dzizi':function(_0x21f18c,_0x1d671d){return _0x21f18c(_0x1d671d);},'aGqEu':'cloud','uOkpI':'local'},_0x55d6b5=existsSync(_0x186d3d['ZegIf'](getEnvDir,_0x1f4def));let _0x302b89=![];try{const _0x253fe4=await _0x186d3d[_0x6c3661(0x166)](fetchCloudProfile,_0x1f4def);_0x302b89=Boolean(_0x253fe4);}catch{}if(_0x302b89)return{'kind':_0x186d3d[_0x6c3661(0x195)],'alsoExistsElsewhere':_0x55d6b5};if(_0x55d6b5)return{'kind':_0x186d3d[_0x6c3661(0x18a)],'alsoExistsElsewhere':![]};throw new Error(_0x6c3661(0x170)+_0x1f4def+_0x6c3661(0x199)+_0x1f4def);}function printDualExistsHint(_0x63bd3f){const _0x5dbd90=_0x54a193;console[_0x5dbd90(0x16a)]('\x20\x20Note:\x20\x22'+_0x63bd3f+_0x5dbd90(0x16b));}function getProjectPath(){return process['cwd']();}async function loadEffectiveCloudSettings(_0x3b10ec){const _0x2040fd=_0x54a193,_0x7b1fd1={'tyKdL':function(_0x4e37be,_0x23815c){return _0x4e37be(_0x23815c);},'vbIrJ':function(_0x17461c){return _0x17461c();},'LXCzi':function(_0x1772ce,_0x33e1d4,_0x28ea95){return _0x1772ce(_0x33e1d4,_0x28ea95);}},_0x1b6569=await _0x7b1fd1[_0x2040fd(0x188)](fetchCloudProfile,_0x3b10ec),_0x3b5422=readProfileOverrides(_0x7b1fd1[_0x2040fd(0x171)](getProjectPath),_0x3b10ec);return _0x7b1fd1['LXCzi'](mergeCloudProfileSettings,_0x1b6569?.[_0x2040fd(0x16f)]??{},_0x3b5422??undefined);}function _0x479f(){const _0x109043=['allowInsecureLocalhost','2803710WmlMdM','9cRjiQj',':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22','No\x20configuration\x20set\x20for\x20\x22','\x22\x20not\x20found','358555cvBwML','keys','7596114OthYtG','PJsts','9280288fiDEzP','uSCjB','Cleared\x20local\x20overrides\x20for\x20\x22','zrkfs','12ORhlrs','includes','Removed\x20','TEYNH','alsoExistsElsewhere','tyKdL','LVJBp','uOkpI','RIJCZ','false','hBAhC','\x20for\x20\x22','\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20','kind','length','667078IynYNp','cloud','Key\x20\x22','aGqEu','PtnUQ','ieage','headless','\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20','startsWith','stringify','(not\x20set)','Dzizi','trim','28145490csddAS','vZmvR','log','\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.','wQRHx','keKVv','982322tPJUCa','settings','Profile\x20\x22','vbIrJ','\x20=\x20','9EipNbQ','parse'];_0x479f=function(){return _0x109043;};return _0x479f();}export async function configSet(_0x472afc,_0x546909,_0x30483e){const _0x555e31=_0x54a193,_0x4dc632={'TEYNH':function(_0x250fb6,_0x2ba3f4){return _0x250fb6===_0x2ba3f4;},'QoTlH':function(_0x3ff4e2,_0x18c569){return _0x3ff4e2(_0x18c569);},'hBAhC':function(_0x24bafc){return _0x24bafc();}},_0x37c31c=await resolveProfileTarget(_0x472afc);if(_0x4dc632[_0x555e31(0x186)](_0x37c31c[_0x555e31(0x190)],_0x555e31(0x193))){if(_0x37c31c[_0x555e31(0x187)])printDualExistsHint(_0x472afc);const _0x1bf729=_0x4dc632['QoTlH'](parseOverrideValue,_0x30483e);setProfileOverride(getProjectPath(),_0x472afc,_0x546909,_0x1bf729),console['log']('Set\x20'+_0x546909+_0x555e31(0x172)+JSON[_0x555e31(0x19b)](_0x1bf729)+_0x555e31(0x18e)+_0x472afc+'\x22');return;}const _0xf8a7b0=parseLocalValue(_0x546909,_0x30483e);setProfileOverride(_0x4dc632[_0x555e31(0x18d)](getProjectPath),_0x472afc,_0x546909,_0xf8a7b0),console[_0x555e31(0x16a)]('Set\x20'+_0x546909+'\x20=\x20'+_0xf8a7b0+'\x20for\x20\x22'+_0x472afc+'\x22');}export async function configGet(_0x5102b6,_0x5ae5ae){const _0x5cdd34=_0x54a193,_0xa389dd={'wQRHx':function(_0x511ace,_0x5de85a){return _0x511ace===_0x5de85a;},'qrDBh':_0x5cdd34(0x193),'keKVv':function(_0x18af23,_0x224b2c){return _0x18af23(_0x224b2c);},'yMyKG':function(_0x55d9bd,_0x1a3400,_0x15e2fc){return _0x55d9bd(_0x1a3400,_0x15e2fc);},'XmbmB':'object'},_0x2f9425=await resolveProfileTarget(_0x5102b6);if(_0xa389dd[_0x5cdd34(0x16c)](_0x2f9425[_0x5cdd34(0x190)],_0xa389dd['qrDBh'])){const _0x561d34=await _0xa389dd[_0x5cdd34(0x16d)](loadEffectiveCloudSettings,_0x5102b6),_0x163167=_0xa389dd['yMyKG'](getNestedValue,_0x561d34,_0x5ae5ae);if(_0x163167===undefined)console['log'](_0x5cdd34(0x165));else typeof _0x163167===_0xa389dd['XmbmB']?console['log'](JSON['stringify'](_0x163167,null,0x2)):console[_0x5cdd34(0x16a)](_0x163167);return;}const _0x315b1d=await loadSettings(_0x5102b6),_0x4b0480=getNestedValue(_0x315b1d,_0x5ae5ae);if(_0xa389dd['wQRHx'](_0x4b0480,undefined))console[_0x5cdd34(0x16a)]('(not\x20set)');else typeof _0x4b0480===_0xa389dd['XmbmB']?console['log'](JSON[_0x5cdd34(0x19b)](_0x4b0480,null,0x2)):console['log'](_0x4b0480);}export async function configList(_0x41d920){const _0x5bac26=_0x54a193,_0x147f8d={'gbQKG':function(_0x2cb06c,_0x178bb3){return _0x2cb06c===_0x178bb3;},'RIJCZ':function(_0x27dd53,_0x1f6b39){return _0x27dd53(_0x1f6b39);}},_0x10db88=await resolveProfileTarget(_0x41d920);if(_0x10db88[_0x5bac26(0x190)]==='cloud'){const _0x238eb0=await loadEffectiveCloudSettings(_0x41d920);if(!_0x238eb0||_0x147f8d['gbQKG'](Object[_0x5bac26(0x17c)](_0x238eb0)[_0x5bac26(0x191)],0x0)){console[_0x5bac26(0x16a)]('No\x20configuration\x20set\x20for\x20\x22'+_0x41d920+'\x22');return;}console[_0x5bac26(0x16a)](JSON['stringify'](_0x238eb0,null,0x2));return;}const _0x55fc12=_0x147f8d['RIJCZ'](getSettingsPath,_0x41d920);if(!existsSync(_0x55fc12)){console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x41d920+'\x22');return;}const _0x33bedd=await _0x147f8d[_0x5bac26(0x18b)](loadSettings,_0x41d920),_0x10d1bd=formatSettings(_0x33bedd);!_0x10d1bd?console[_0x5bac26(0x16a)](_0x5bac26(0x179)+_0x41d920+'\x22'):console[_0x5bac26(0x16a)](_0x10d1bd);}export async function configUnset(_0x2f9e22,_0x569f12){const _0x399b35=_0x54a193,_0x4d44cc={'VaRFq':function(_0x26a676,_0x50af65){return _0x26a676(_0x50af65);},'PJsts':function(_0xf91c81,_0x1c2c1b,_0x4e21ff,_0x33e724){return _0xf91c81(_0x1c2c1b,_0x4e21ff,_0x33e724);},'PtnUQ':function(_0x9434ca){return _0x9434ca();},'aPhPq':function(_0xda8fbb,_0x28381c,_0x3b5ba9){return _0xda8fbb(_0x28381c,_0x3b5ba9);}},_0x47be93=await _0x4d44cc['VaRFq'](resolveProfileTarget,_0x2f9e22);if(_0x47be93['kind']===_0x399b35(0x193)){if(_0x47be93['alsoExistsElsewhere'])printDualExistsHint(_0x2f9e22);const _0x2a2e2b=_0x4d44cc[_0x399b35(0x17e)](unsetProfileOverride,getProjectPath(),_0x2f9e22,_0x569f12);_0x2a2e2b?console['log']('Removed\x20'+_0x569f12+_0x399b35(0x18e)+_0x2f9e22+'\x22'):console['log'](_0x399b35(0x194)+_0x569f12+_0x399b35(0x17a));return;}const _0x57b008=unsetProfileOverride(_0x4d44cc[_0x399b35(0x196)](getProjectPath),_0x2f9e22,_0x569f12);if(_0x57b008){console['log'](_0x399b35(0x185)+_0x569f12);return;}const _0x347130=await _0x4d44cc['VaRFq'](loadSettings,_0x2f9e22),_0x2fe089=_0x4d44cc['aPhPq'](deleteNestedValue,_0x347130,_0x569f12);_0x2fe089?console[_0x399b35(0x16a)](_0x399b35(0x194)+_0x569f12+'\x22\x20lives\x20in\x20the\x20legacy\x20settings\x20file\x20for\x20\x22'+_0x2f9e22+'\x22\x20and\x20cannot\x20be\x20unset;\x20the\x20legacy\x20tree\x20is\x20read-only\x20under\x20cloud\x20profiles.'):console['log']('Key\x20\x22'+_0x569f12+_0x399b35(0x17a));}export async function configReset(_0x490dfd){const _0x101195=_0x54a193,_0x3c05a3={'HUVpM':function(_0x4f59ed,_0x417acf){return _0x4f59ed(_0x417acf);},'zrkfs':function(_0x255066,_0x52b9f9){return _0x255066===_0x52b9f9;},'cVuxq':'cloud'},_0x34ce7c=await _0x3c05a3['HUVpM'](resolveProfileTarget,_0x490dfd);if(_0x3c05a3[_0x101195(0x182)](_0x34ce7c['kind'],_0x3c05a3['cVuxq'])){resetProfileOverrides(getProjectPath(),_0x490dfd),console[_0x101195(0x16a)](_0x101195(0x181)+_0x490dfd+'\x22');return;}console['log']('\x22'+_0x490dfd+_0x101195(0x18f)+_0x490dfd+'\x20<key>\x22\x20to\x20remove\x20individual\x20values.');}
@@ -1 +1 @@
1
- (function(_0x880de8,_0x2ac0a4){const _0x5c1fbc=_0x566a,_0x5e9ee9=_0x880de8();while(!![]){try{const _0x30d32b=-parseInt(_0x5c1fbc(0x1c7))/0x1+-parseInt(_0x5c1fbc(0x1c2))/0x2*(-parseInt(_0x5c1fbc(0x1c8))/0x3)+-parseInt(_0x5c1fbc(0x1c5))/0x4+parseInt(_0x5c1fbc(0x1c4))/0x5*(parseInt(_0x5c1fbc(0x1ca))/0x6)+parseInt(_0x5c1fbc(0x1d0))/0x7*(-parseInt(_0x5c1fbc(0x1bc))/0x8)+parseInt(_0x5c1fbc(0x1c9))/0x9+parseInt(_0x5c1fbc(0x1d1))/0xa;if(_0x30d32b===_0x2ac0a4)break;else _0x5e9ee9['push'](_0x5e9ee9['shift']());}catch(_0x5d3850){_0x5e9ee9['push'](_0x5e9ee9['shift']());}}}(_0x1104,0x511b7));import _0x4510b9 from'inquirer';import{deleteCloudProfile,fetchCloudProfile}from'./utils/cloudProfile.js';import{isInteractive}from'./utils/cloudProfileSession.js';function _0x1104(){const _0x4daa4f=['\x22\x20not\x20found.','Cloud\x20profile\x20\x22','tAlxT','\x22\x20for\x20everyone\x20in\x20your\x20organization.','confirmation','24028UdJfoC','NVnpQ','40WtsAKv','111800LpnXFK','\x22\x20to\x20confirm\x20deletion:','533874nnLYOM','93HtgaCU','2719674CkNCZQ','11070jCwjkJ','mScXF','input','Type\x20\x22','yes','✓\x20Deleted\x20cloud\x20profile\x20\x22','566867duZmtZ','6095640OSCCoG','cwd','Vhfrz','log','40RejpmD'];_0x1104=function(){return _0x4daa4f;};return _0x1104();}import{clearLastProfile,resetProfileOverrides}from'./utils/projectsConfig.js';function _0x566a(_0x61cb8a,_0x114410){_0x61cb8a=_0x61cb8a-0x1bc;const _0x110416=_0x1104();let _0x566a8a=_0x110416[_0x61cb8a];return _0x566a8a;}export async function deleteProfile(_0x5b181c,_0x5d1eb3={}){const _0x235676=_0x566a,_0x2e5cc0={'NVnpQ':function(_0x985731,_0x34f56e){return _0x985731(_0x34f56e);},'Vhfrz':_0x235676(0x1cc),'VfeSD':function(_0x57f5ba,_0x4a6102){return _0x57f5ba!==_0x4a6102;},'mScXF':'Profile\x20deletion\x20cancelled:\x20confirmation\x20did\x20not\x20match.','tAlxT':function(_0xccc5df,_0x756271,_0x5397c2){return _0xccc5df(_0x756271,_0x5397c2);}},_0x5dab09=await _0x2e5cc0[_0x235676(0x1c3)](fetchCloudProfile,_0x5b181c);if(!_0x5dab09)throw new Error(_0x235676(0x1be)+_0x5b181c+_0x235676(0x1bd));if(!_0x5d1eb3[_0x235676(0x1ce)]&&!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[_0x235676(0x1d4)]('\x0aWarning:\x20this\x20deletes\x20the\x20shared\x20cloud\x20profile\x20\x22'+_0x5b181c+_0x235676(0x1c0));if(!_0x5d1eb3['yes']){const {confirmation:_0x2af0a1}=await _0x4510b9['prompt']([{'type':_0x2e5cc0[_0x235676(0x1d3)],'name':_0x235676(0x1c1),'message':_0x235676(0x1cd)+_0x5b181c+_0x235676(0x1c6)}]);if(_0x2e5cc0['VfeSD'](_0x2af0a1,_0x5b181c))throw new Error(_0x2e5cc0[_0x235676(0x1cb)]);}await deleteCloudProfile(_0x5b181c),resetProfileOverrides(process[_0x235676(0x1d2)](),_0x5b181c),_0x2e5cc0[_0x235676(0x1bf)](clearLastProfile,process[_0x235676(0x1d2)](),_0x5b181c),console['log'](_0x235676(0x1cf)+_0x5b181c+'\x22.');}
1
+ (function(_0x3e273a,_0x14bb6b){const _0x1f9295=_0x5b29,_0x214bd1=_0x3e273a();while(!![]){try{const _0x5371cf=-parseInt(_0x1f9295(0xc4))/0x1+parseInt(_0x1f9295(0xc7))/0x2+parseInt(_0x1f9295(0xc1))/0x3+-parseInt(_0x1f9295(0xb7))/0x4*(-parseInt(_0x1f9295(0xbd))/0x5)+parseInt(_0x1f9295(0xbf))/0x6+parseInt(_0x1f9295(0xbb))/0x7+-parseInt(_0x1f9295(0xc0))/0x8;if(_0x5371cf===_0x14bb6b)break;else _0x214bd1['push'](_0x214bd1['shift']());}catch(_0x2be276){_0x214bd1['push'](_0x214bd1['shift']());}}}(_0x2c21,0x958ed));import _0x6091f9 from'inquirer';import{deleteCloudProfile,fetchCloudProfile}from'./utils/cloudProfile.js';import{isInteractive}from'./utils/cloudProfileSession.js';function _0x2c21(){const _0x4aca19=['15DYLtaS','mDPDT','6663834OWPSyV','9382320GVfhHR','426846NWZLpu','\x22\x20to\x20confirm\x20deletion:','aGaRz','890539CWGFop','input','\x0aWarning:\x20this\x20deletes\x20the\x20shared\x20cloud\x20profile\x20\x22','1063922xLlGwp','\x22\x20for\x20everyone\x20in\x20your\x20organization.','969112gagvtj','dkagg','lgkCw','Profile\x20deletion\x20requires\x20an\x20interactive\x20terminal\x20so\x20the\x20profile\x20name\x20can\x20be\x20typed\x20for\x20confirmation.\x20Pass\x20--yes\x20to\x20skip\x20confirmation.','1149414PjIOqH','yes'];_0x2c21=function(){return _0x4aca19;};return _0x2c21();}import{clearLastProfile,resetProfileOverrides}from'./utils/projectsConfig.js';function _0x5b29(_0x1b869d,_0xc7fa37){_0x1b869d=_0x1b869d-0xb6;const _0x2c21e6=_0x2c21();let _0x5b29a7=_0x2c21e6[_0x1b869d];return _0x5b29a7;}export async function deleteProfile(_0x2f0b76,_0x5b1d9e={}){const _0x5efe41=_0x5b29,_0x3587ec={'mDPDT':function(_0x225515,_0x499192){return _0x225515(_0x499192);},'aGaRz':function(_0x2cc750){return _0x2cc750();},'dkagg':_0x5efe41(0xc5),'lgkCw':function(_0x1e83fc,_0x551405){return _0x1e83fc!==_0x551405;},'qToyv':'Profile\x20deletion\x20cancelled:\x20confirmation\x20did\x20not\x20match.'},_0x98a477=await _0x3587ec[_0x5efe41(0xbe)](fetchCloudProfile,_0x2f0b76);if(!_0x98a477)throw new Error('Cloud\x20profile\x20\x22'+_0x2f0b76+'\x22\x20not\x20found.');if(!_0x5b1d9e['yes']&&!_0x3587ec[_0x5efe41(0xc3)](isInteractive))throw new Error(_0x5efe41(0xba));console['log'](_0x5efe41(0xc6)+_0x2f0b76+_0x5efe41(0xb6));if(!_0x5b1d9e[_0x5efe41(0xbc)]){const {confirmation:_0x57a0ff}=await _0x6091f9['prompt']([{'type':_0x3587ec[_0x5efe41(0xb8)],'name':'confirmation','message':'Type\x20\x22'+_0x2f0b76+_0x5efe41(0xc2)}]);if(_0x3587ec[_0x5efe41(0xb9)](_0x57a0ff,_0x2f0b76))throw new Error(_0x3587ec['qToyv']);}await deleteCloudProfile(_0x2f0b76),resetProfileOverrides(process['cwd'](),_0x2f0b76),clearLastProfile(process['cwd'](),_0x2f0b76),console['log']('✓\x20Deleted\x20cloud\x20profile\x20\x22'+_0x2f0b76+'\x22.');}
@@ -1 +1 @@
1
- function _0x4980(_0x5db945,_0x760c70){_0x5db945=_0x5db945-0xb7;const _0x24030b=_0x2403();let _0x49800c=_0x24030b[_0x5db945];return _0x49800c;}function _0x2403(){const _0x2e023e=['hWAvg','cached\x20(updated\x20','local','Run:\x20ranger\x20profile\x20add\x20<profile-name>','35pzGYEB','jfnFN','legacy','627825ryXRHI','MZaQP','name','1080478zJYEZs','sessions','log','message','fEyQA','8872236lxjuuu','1310136rZQcqX','push','Xhmyh','34455700vsPJvX','KrNrC','bug-bashes','\x20\x20\x20\x20\x20\x20Details:\x20','41999aKJTOM','ubNiB','environmentDetails','.txt','has','ouAMG','JRIhW','48NfygHo','OqShZ','length','isDirectory','LhjiW','localeCompare','5577308kKcTSo','includes','3LXmlGx'];_0x2403=function(){return _0x2e023e;};return _0x2403();}const _0x18d895=_0x4980;(function(_0x4fc67e,_0x5383a7){const _0x23efbf=_0x4980,_0x319fa1=_0x4fc67e();while(!![]){try{const _0x52b994=parseInt(_0x23efbf(0xce))/0x1+parseInt(_0x23efbf(0xc1))/0x2*(-parseInt(_0x23efbf(0xdd))/0x3)+-parseInt(_0x23efbf(0xdb))/0x4+-parseInt(_0x23efbf(0xbe))/0x5*(parseInt(_0x23efbf(0xd5))/0x6)+-parseInt(_0x23efbf(0xbb))/0x7*(parseInt(_0x23efbf(0xc7))/0x8)+parseInt(_0x23efbf(0xc6))/0x9+parseInt(_0x23efbf(0xca))/0xa;if(_0x52b994===_0x5383a7)break;else _0x319fa1['push'](_0x319fa1['shift']());}catch(_0x36d4b3){_0x319fa1['push'](_0x319fa1['shift']());}}}(_0x2403,0xaeabc));import{readdir,stat}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{getRangerDir}from'./utils/rangerRoot.js';import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';import{getToken}from'./utils/keychain.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const NON_ENV_DIRS=[_0x18d895(0xc2),_0x18d895(0xcc),'reports','local','ci'];export async function getEnvNames(){const _0x6027cc=_0x18d895,_0xc2e21d={'ubNiB':function(_0x39728e,_0x46b5d9){return _0x39728e(_0x46b5d9);},'cEZDI':function(_0x26791d,_0x4edd57,_0x2793eb){return _0x26791d(_0x4edd57,_0x2793eb);},'iPLYk':function(_0x40ea3c,_0x424610){return _0x40ea3c(_0x424610);},'MXJFY':function(_0xce0db6,_0x363d01,_0x3241d8){return _0xce0db6(_0x363d01,_0x3241d8);},'GMwDZ':function(_0x40bcc3,_0x507c1d){return _0x40bcc3(_0x507c1d);},'fEyQA':_0x6027cc(0xb9),'jfnFN':function(_0x2ee416,_0x3735ae){return _0x2ee416(_0x3735ae);},'ecMJN':function(_0x3f2bdf,_0x3e57c8,_0x5a45dd){return _0x3f2bdf(_0x3e57c8,_0x5a45dd);},'KrNrC':_0x6027cc(0xd1),'OqShZ':function(_0x5ddf8a,_0x156038){return _0x5ddf8a(_0x156038);}},_0x4acdde=getRangerDir();if(!_0xc2e21d[_0x6027cc(0xcf)](existsSync,_0x4acdde))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x5705eb=await readActiveProfileName(),_0x2c0e58=[],_0x2a95f7={},_0x1ee16d=_0xc2e21d['cEZDI'](join,_0x4acdde,_0x6027cc(0xb9));if(_0xc2e21d['iPLYk'](existsSync,_0x1ee16d)){const _0x4b567b=await readdir(_0x1ee16d);for(const _0xb5d330 of _0x4b567b){const _0x15a0be=_0xc2e21d['MXJFY'](join,_0x1ee16d,_0xb5d330),_0x275b8b=await _0xc2e21d['GMwDZ'](stat,_0x15a0be);_0x275b8b['isDirectory']()&&(_0x2c0e58['push'](_0xb5d330),_0x2a95f7[_0xb5d330]=_0xc2e21d[_0x6027cc(0xc5)]);}}const _0x32479e=join(_0x4acdde,'ci');if(_0xc2e21d[_0x6027cc(0xbc)](existsSync,_0x32479e)){const _0x41922a=await _0xc2e21d['jfnFN'](readdir,_0x32479e);for(const _0x7637b9 of _0x41922a){const _0x3cd60e=_0xc2e21d['ecMJN'](join,_0x32479e,_0x7637b9),_0x4e0683=await _0xc2e21d['jfnFN'](stat,_0x3cd60e);_0x4e0683['isDirectory']()&&(_0x2c0e58[_0x6027cc(0xc8)](_0x7637b9),_0x2a95f7[_0x7637b9]='ci');}}const _0x46dbc4=await readdir(_0x4acdde);for(const _0x803e1f of _0x46dbc4){if(NON_ENV_DIRS[_0x6027cc(0xdc)](_0x803e1f))continue;if(_0x803e1f['startsWith']('.'))continue;if(_0x803e1f['endsWith'](_0xc2e21d[_0x6027cc(0xcb)]))continue;const _0x2f6f82=join(_0x4acdde,_0x803e1f),_0xf335d6=await _0xc2e21d[_0x6027cc(0xd6)](stat,_0x2f6f82);_0xf335d6[_0x6027cc(0xd8)]()&&_0xc2e21d[_0x6027cc(0xcf)](existsSync,_0xc2e21d['MXJFY'](join,_0x2f6f82,'settings.json'))&&(!_0x2c0e58['includes'](_0x803e1f)&&(_0x2c0e58[_0x6027cc(0xc8)](_0x803e1f),_0x2a95f7[_0x803e1f]=_0x6027cc(0xbd)));}return{'envNames':_0x2c0e58,'activeEnv':_0x5705eb,'envTypes':_0x2a95f7};}export async function envList(){const _0x5e9630=_0x18d895,_0x2bb4a2={'xRors':function(_0x2690c7,_0x2275a8){return _0x2690c7 instanceof _0x2275a8;},'Xhmyh':function(_0x395051,_0x17f1cf){return _0x395051(_0x17f1cf);},'KObJe':function(_0x4af579,_0x1327a6){return _0x4af579===_0x1327a6;},'MZaQP':'\x0aNo\x20profiles\x20found.','niQWK':_0x5e9630(0xba),'ouAMG':_0x5e9630(0xb9),'LhjiW':'legacy','hWAvg':'\x0aCloud\x20Profiles:','JRIhW':function(_0x405b1b,_0x1679a8){return _0x405b1b===_0x1679a8;}},{envNames:_0xfa8ce0,activeEnv:_0x25401b,envTypes:_0xb96c55}=await getEnvNames();let _0x3e217a=[];const _0x342f1d=await getToken();if(_0x342f1d)try{_0x3e217a=await listCloudProfiles();}catch(_0x106e2f){console['error']('\x0aWarning:\x20could\x20not\x20fetch\x20cloud\x20profiles:\x20'+(_0x2bb4a2['xRors'](_0x106e2f,Error)?_0x106e2f[_0x5e9630(0xc4)]:_0x2bb4a2[_0x5e9630(0xc9)](String,_0x106e2f)));}if(_0xfa8ce0['length']===0x0&&_0x2bb4a2['KObJe'](_0x3e217a['length'],0x0)){console['log'](_0x2bb4a2[_0x5e9630(0xbf)]),console['log'](_0x2bb4a2['niQWK']);return;}const _0x4b5c4b=new Set(_0x3e217a['map'](_0x1b96f8=>_0x1b96f8[_0x5e9630(0xc0)]));if(_0xfa8ce0[_0x5e9630(0xd7)]>0x0){console[_0x5e9630(0xc3)]('\x0aLocal\x20Profiles\x20(legacy):');for(const _0x6ac9d4 of _0xfa8ce0['sort']()){const _0x4cc035=_0x6ac9d4===_0x25401b&&!_0x4b5c4b[_0x5e9630(0xd2)](_0x6ac9d4),_0x189938=_0xb96c55[_0x6ac9d4]||_0x2bb4a2[_0x5e9630(0xd3)],_0x1cc663=await _0x2bb4a2['Xhmyh'](loadSettings,_0x6ac9d4),_0x3b7074=_0x189938===_0x2bb4a2[_0x5e9630(0xd9)]?'':'\x20['+_0x189938+']';console[_0x5e9630(0xc3)]('\x20\x20'+(_0x4cc035?'*\x20':'\x20\x20')+_0x6ac9d4+_0x3b7074),_0x1cc663['baseUrl']&&console[_0x5e9630(0xc3)]('\x20\x20\x20\x20\x20\x20URL:\x20'+_0x1cc663['baseUrl']),_0x1cc663[_0x5e9630(0xd0)]&&console[_0x5e9630(0xc3)](_0x5e9630(0xcd)+_0x1cc663[_0x5e9630(0xd0)]);}}if(_0x3e217a['length']>0x0){console[_0x5e9630(0xc3)](_0x2bb4a2[_0x5e9630(0xb7)]);for(const _0x13dadf of _0x3e217a['sort']((_0x453c85,_0x4c43a7)=>_0x453c85['name'][_0x5e9630(0xda)](_0x4c43a7['name']))){const _0x11eda5=_0x2bb4a2[_0x5e9630(0xd4)](_0x13dadf['name'],_0x25401b),_0x333d79=_0x13dadf['environmentKey']?'\x20('+_0x13dadf['environmentKey']+')':'',_0x586d22=_0x13dadf['sessionUpdatedAt']?_0x5e9630(0xb8)+_0x13dadf['sessionUpdatedAt']+')':'no\x20session';console[_0x5e9630(0xc3)]('\x20\x20'+(_0x11eda5?'*\x20':'\x20\x20')+_0x13dadf['name']+'\x20[cloud]'+_0x333d79),console['log']('\x20\x20\x20\x20\x20\x20Session:\x20'+_0x586d22);}}_0x25401b&&console[_0x5e9630(0xc3)]('\x0a*\x20=\x20active\x20profile');}
1
+ const _0x572b6a=_0x465e;(function(_0x3aba07,_0x5382cd){const _0x30978b=_0x465e,_0x5e0711=_0x3aba07();while(!![]){try{const _0x1522db=-parseInt(_0x30978b(0x87))/0x1+-parseInt(_0x30978b(0x74))/0x2+parseInt(_0x30978b(0x95))/0x3*(-parseInt(_0x30978b(0x94))/0x4)+parseInt(_0x30978b(0x7d))/0x5+parseInt(_0x30978b(0x93))/0x6+parseInt(_0x30978b(0x82))/0x7*(parseInt(_0x30978b(0x75))/0x8)+parseInt(_0x30978b(0x91))/0x9*(-parseInt(_0x30978b(0x80))/0xa);if(_0x1522db===_0x5382cd)break;else _0x5e0711['push'](_0x5e0711['shift']());}catch(_0x552bb0){_0x5e0711['push'](_0x5e0711['shift']());}}}(_0x2651,0x3c09c));import{readdir,stat}from'fs/promises';import{join}from'path';import{existsSync}from'fs';function _0x465e(_0xa905cc,_0x1f9f0e){_0xa905cc=_0xa905cc-0x72;const _0x2651e9=_0x2651();let _0x465e34=_0x2651e9[_0xa905cc];return _0x465e34;}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=[_0x572b6a(0x97),'bug-bashes',_0x572b6a(0x8b),_0x572b6a(0x8e),'ci'];function _0x2651(){const _0x4a1e42=['cISlr','AYIqH','pevUf','QgwHB','name','localeCompare','bMdfC','2271905QkobDy','\x0a*\x20=\x20active\x20profile','log','25170QcEHvz','\x20[cloud]','14pahmlK','wgmpZ','Run:\x20ranger\x20profile\x20add\x20<profile-name>','endsWith','push','265419bOmZqD','sort','length','.txt','reports','NcAyD','environmentKey','local','\x0aNo\x20profiles\x20found.','baseUrl','225RAtuGi','HVrPv','1652202AGhtbq','1284rEbBen','1842OXLstK','\x20\x20\x20\x20\x20\x20URL:\x20','sessions','no\x20session','\x20\x20\x20\x20\x20\x20Details:\x20','281244MWyZir','728912uvwmmx'];_0x2651=function(){return _0x4a1e42;};return _0x2651();}export async function getEnvNames(){const _0xe4394e=_0x572b6a,_0x443d66={'xMakt':function(_0x4c3525){return _0x4c3525();},'AYIqH':function(_0xbe57f2,_0x3ef7ae){return _0xbe57f2(_0x3ef7ae);},'HwPGx':function(_0x152cfc,_0x16b470,_0x2674a1){return _0x152cfc(_0x16b470,_0x2674a1);},'pevUf':_0xe4394e(0x8a),'NcAyD':function(_0x29f7e6,_0x2274ac){return _0x29f7e6(_0x2274ac);}},_0x2ca375=getRangerDir();if(!existsSync(_0x2ca375))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x2a1ee8=await _0x443d66['xMakt'](readActiveProfileName),_0x355b3d=[],_0x49b1ae={},_0x1cb581=join(_0x2ca375,_0xe4394e(0x8e));if(_0x443d66['AYIqH'](existsSync,_0x1cb581)){const _0x1b2787=await _0x443d66['AYIqH'](readdir,_0x1cb581);for(const _0x561756 of _0x1b2787){const _0x2c02e1=join(_0x1cb581,_0x561756),_0x2b75e6=await stat(_0x2c02e1);_0x2b75e6['isDirectory']()&&(_0x355b3d[_0xe4394e(0x86)](_0x561756),_0x49b1ae[_0x561756]='local');}}const _0x1253ef=_0x443d66['HwPGx'](join,_0x2ca375,'ci');if(existsSync(_0x1253ef)){const _0x3fddc8=await _0x443d66[_0xe4394e(0x77)](readdir,_0x1253ef);for(const _0xb2dc4c of _0x3fddc8){const _0x38579b=join(_0x1253ef,_0xb2dc4c),_0x1e4dea=await stat(_0x38579b);_0x1e4dea['isDirectory']()&&(_0x355b3d['push'](_0xb2dc4c),_0x49b1ae[_0xb2dc4c]='ci');}}const _0x196900=await readdir(_0x2ca375);for(const _0x510d6a of _0x196900){if(NON_ENV_DIRS['includes'](_0x510d6a))continue;if(_0x510d6a['startsWith']('.'))continue;if(_0x510d6a[_0xe4394e(0x85)](_0x443d66[_0xe4394e(0x78)]))continue;const _0x4d6c8c=join(_0x2ca375,_0x510d6a),_0xcd2f4d=await _0x443d66[_0xe4394e(0x8c)](stat,_0x4d6c8c);_0xcd2f4d['isDirectory']()&&existsSync(join(_0x4d6c8c,'settings.json'))&&(!_0x355b3d['includes'](_0x510d6a)&&(_0x355b3d['push'](_0x510d6a),_0x49b1ae[_0x510d6a]='legacy'));}return{'envNames':_0x355b3d,'activeEnv':_0x2a1ee8,'envTypes':_0x49b1ae};}export async function envList(){const _0x142866=_0x572b6a,_0x429635={'QgwHB':function(_0x7a04c2){return _0x7a04c2();},'cISlr':_0x142866(0x8f),'wgmpZ':_0x142866(0x84),'bMdfC':function(_0x547b9a,_0x1c7c5b){return _0x547b9a>_0x1c7c5b;},'IkgEX':_0x142866(0x8e),'IUzdv':function(_0x352bb7,_0xe870f5){return _0x352bb7===_0xe870f5;},'HVrPv':_0x142866(0x72)},{envNames:_0x27242f,activeEnv:_0x4785ff,envTypes:_0x11ea88}=await _0x429635[_0x142866(0x79)](getEnvNames);let _0x2d2ef4=[];const _0x203d9d=await getToken();if(_0x203d9d)try{_0x2d2ef4=await _0x429635['QgwHB'](listCloudProfiles);}catch(_0x2e5b7f){console['error']('\x0aWarning:\x20could\x20not\x20fetch\x20cloud\x20profiles:\x20'+(_0x2e5b7f instanceof Error?_0x2e5b7f['message']:String(_0x2e5b7f)));}if(_0x27242f[_0x142866(0x89)]===0x0&&_0x2d2ef4[_0x142866(0x89)]===0x0){console['log'](_0x429635[_0x142866(0x76)]),console[_0x142866(0x7f)](_0x429635[_0x142866(0x83)]);return;}const _0x27de37=new Set(_0x2d2ef4['map'](_0x4d411b=>_0x4d411b[_0x142866(0x7a)]));if(_0x429635[_0x142866(0x7c)](_0x27242f[_0x142866(0x89)],0x0)){console['log']('\x0aLocal\x20Profiles\x20(legacy):');for(const _0x33fda6 of _0x27242f['sort']()){const _0x2ed0db=_0x33fda6===_0x4785ff&&!_0x27de37['has'](_0x33fda6),_0xfaac1d=_0x11ea88[_0x33fda6]||_0x429635['IkgEX'],_0x8a00a=await loadSettings(_0x33fda6),_0x122a4d=_0x429635['IUzdv'](_0xfaac1d,'legacy')?'':'\x20['+_0xfaac1d+']';console['log']('\x20\x20'+(_0x2ed0db?'*\x20':'\x20\x20')+_0x33fda6+_0x122a4d),_0x8a00a['baseUrl']&&console[_0x142866(0x7f)](_0x142866(0x96)+_0x8a00a[_0x142866(0x90)]),_0x8a00a['environmentDetails']&&console[_0x142866(0x7f)](_0x142866(0x73)+_0x8a00a['environmentDetails']);}}if(_0x2d2ef4[_0x142866(0x89)]>0x0){console['log']('\x0aCloud\x20Profiles:');for(const _0x541dbb of _0x2d2ef4[_0x142866(0x88)]((_0x174d0d,_0x310ac3)=>_0x174d0d['name'][_0x142866(0x7b)](_0x310ac3[_0x142866(0x7a)]))){const _0x18c700=_0x541dbb[_0x142866(0x7a)]===_0x4785ff,_0x3ae298=_0x541dbb[_0x142866(0x8d)]?'\x20('+_0x541dbb['environmentKey']+')':'',_0x4a07e4=_0x541dbb['sessionUpdatedAt']?'cached\x20(updated\x20'+_0x541dbb['sessionUpdatedAt']+')':_0x429635[_0x142866(0x92)];console[_0x142866(0x7f)]('\x20\x20'+(_0x18c700?'*\x20':'\x20\x20')+_0x541dbb['name']+_0x142866(0x81)+_0x3ae298),console['log']('\x20\x20\x20\x20\x20\x20Session:\x20'+_0x4a07e4);}}_0x4785ff&&console[_0x142866(0x7f)](_0x142866(0x7e));}