@ranger-testing/ranger-cli 3.0.1-alpha.bb18058-34 → 3.0.1-alpha.ebe0997-35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/deleteProfile.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -1
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -1
  43. package/build/commands/utils/cloudProfileSession.js +1 -1
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -1
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -1
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/novaActCli.js +1 -1
  58. package/build/commands/utils/opencodeConfig.js +1 -1
  59. package/build/commands/utils/organizationEnvApi.js +1 -1
  60. package/build/commands/utils/playwrightCli.js +1 -1
  61. package/build/commands/utils/profileMessages.js +1 -1
  62. package/build/commands/utils/profileSetupBanner.js +1 -1
  63. package/build/commands/utils/projectsConfig.js +1 -1
  64. package/build/commands/utils/rangerConfig.js +1 -1
  65. package/build/commands/utils/rangerRoot.js +1 -1
  66. package/build/commands/utils/rangerwrightCli.js +1 -1
  67. package/build/commands/utils/resolveProfileContext.js +1 -1
  68. package/build/commands/utils/resolveProfileUrl.js +1 -1
  69. package/build/commands/utils/retry.js +1 -1
  70. package/build/commands/utils/sessionCache.js +1 -1
  71. package/build/commands/utils/settings.js +1 -1
  72. package/build/commands/utils/skillContent.js +1 -1
  73. package/build/commands/utils/skills.js +1 -1
  74. package/build/commands/utils/stitchWebmFiles.js +1 -1
  75. package/build/commands/utils/telemetry.js +1 -1
  76. package/build/commands/utils/tokenRefresh.js +1 -1
  77. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  78. package/build/commands/utils/userApi.js +1 -1
  79. package/build/commands/utils/version.js +1 -1
  80. package/build/commands/verifyFeature.js +1 -1
  81. package/build/commands/verifyFeatureCli.js +1 -1
  82. package/build/commands/verifyFeatureNovaCli.js +1 -1
  83. package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
  84. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x5dd7c7,_0x235ddb){const _0x2058e3=_0x1add,_0xfdc4f9=_0x5dd7c7();while(!![]){try{const _0x57c654=parseInt(_0x2058e3(0x147))/0x1*(parseInt(_0x2058e3(0x14f))/0x2)+-parseInt(_0x2058e3(0xf8))/0x3*(parseInt(_0x2058e3(0xdd))/0x4)+parseInt(_0x2058e3(0x100))/0x5+-parseInt(_0x2058e3(0x131))/0x6*(-parseInt(_0x2058e3(0x125))/0x7)+parseInt(_0x2058e3(0x138))/0x8*(-parseInt(_0x2058e3(0x113))/0x9)+-parseInt(_0x2058e3(0xeb))/0xa*(parseInt(_0x2058e3(0x12b))/0xb)+parseInt(_0x2058e3(0xee))/0xc;if(_0x57c654===_0x235ddb)break;else _0xfdc4f9['push'](_0xfdc4f9['shift']());}catch(_0x2ad9a2){_0xfdc4f9['push'](_0xfdc4f9['shift']());}}}(_0x4e1d,0x5785e));import{readdir,rm}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import _0x3663c5 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';const CLOUD_PROFILE_SHARING_WARNING='This\x20account\x20will\x20be\x20shared\x20with\x20everyone\x20at\x20your\x20organization';function _0x4e1d(){const _0x47b3cf=['Automated\x20login\x20isn\x27t\x20set\x20up\x20for\x20your\x20team.\x20Capture\x20a\x20session\x20via\x20a\x20headed\x20browser\x20instead?','input','ziWFm','62VxyaFu','\x0a\x20\x20(domains:\x20','NuRiT','user_declined','message','cwd','use_suggestion','origin','YgfNr','exit','Invalid\x20--setup-header\x20format:\x20\x22','no_auth_config',')\x0a\x20\x20Save\x20\x27','SlPDM','NODE_TLS_REJECT_UNAUTHORIZED','\x0a🌐\x20Profile\x20Setup\x0a','.\x20Configured\x20envs:\x20','isElectron','WhIAA','some','\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20cloud-managed\x20session.','.tmp-','1727512KyWzhh','Invalid\x20URL','To\x20set\x20up\x20a\x20profile,\x20run:\x0a','KhaWx','DeurV','\x0a\x20\x20Could\x20not\x20reach\x20','setupHeader','\x20\x20Workaround\x20for\x20now:\x20create\x20a\x20profile\x20without\x20a\x20captured\x20session\x20and\x20supply\x20one\x20later:\x0a','nlxcy','Use\x20','join','confirm','\x20\x20Next:\x20ranger\x20go\x20--profile\x20','profile.add.autoRouted','10fpAPfl','indexOf','error','8245956bzUZMF','XwXlO','ocYmC','ktKWe','log','local','continue','length','\x0a✓\x20Profile\x20\x27','jbGqv','3VWZOLB','CSyqZ','algKc','manual','prompt','dmRyL','keys','GhoWv','2117945vcCxIf','The\x20--ci\x20flag\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x20session\x20state\x0a','CuRKJ','\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','force','setupHeaders','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','MpqJt','fetch\x20failed','--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','http://','Continue\x20anyway','yKCoH','environments','trim','VdkDj','\x20(continuing\x20with\x20--force)','yes','test','101043NxMxRF','\x20\x20When\x20you\x27re\x20ready\x20to\x20log\x20in,\x20run\x20`ranger\x20profile\x20add\x20','\x20\x20Did\x20you\x20mean\x20','✓\x20Cloud\x20profile\x20\x27','pNblT','QnPqb','baseUrl','\x0a\x20\x20A\x20profile\x20named\x20\x22','cdpEndpoint','RYEiB','trackPhaseEnd','XoKeb','RtAPm','domains','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20','\x20--skip-auth\x0a','profile.add.autoRouteSkipped','uDvLJ','7HTtRGe','slice','Enter\x20a\x20different\x20URL','\x0a\x20\x20Failed\x20to\x20create\x20cloud\x20profile\x20\x22','For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','\x20\x20Note:\x20cloud\x20profile\x20created,\x20but\x20failed\x20to\x20sweep\x20orphan\x20local\x20dirs\x20(','5669719BkanOD','\x20--url\x20','retry','oWtQu','✓\x20Profile\x20\x27','Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','3454296cyWKyg','AXInr','\x20\x20https://docs.ranger.net/main/concepts/profiles','env','pKQOg','\x0a\x20\x20No\x20auth\x20env\x20matches\x20','\x20\x20Ranger\x20will\x20use\x20it\x20to\x20look\x20up\x20the\x20right\x20cloud\x20auth\x20env\x20to\x20attach.\x0a','376UDdrYq','BRTmi','\x27\x20created.\x0a','status','\x22:\x20','DZgsV','http://localhost:3000','gHRQM','frETj','\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a','WJxAz','\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20','\x27\x20created\x20with\x20a\x20captured\x20session.\x0a','AfPAd','rxZxN','4742pdGjnl','vokFF','HEAD','\x20\x20or\x20contact\x20eng@ranger.net\x20to\x20set\x20up\x20automated\x20login\x20for\x20your\x20team.','url'];_0x4e1d=function(){return _0x47b3cf;};return _0x4e1d();}function warnCloudProfileSharedInOrg(){if(!process['stdout']['isTTY'])return;console['warn'](CLOUD_PROFILE_SHARING_WARNING);}function _0x1add(_0x4c18bc,_0x4fdd79){_0x4c18bc=_0x4c18bc-0xd6;const _0x4e1d1b=_0x4e1d();let _0x1add5f=_0x4e1d1b[_0x4c18bc];return _0x1add5f;}async function checkUrlReachability(_0x5652f5){const _0x11c0af=_0x1add,_0x4e0aea={'SlPDM':function(_0x31cd9b,_0x49c842,_0x153fe0){return _0x31cd9b(_0x49c842,_0x153fe0);},'nlxcy':_0x11c0af(0x149),'algKc':function(_0x476f1f,_0x57278e){return _0x476f1f<_0x57278e;},'PXcCu':_0x11c0af(0x108)};try{const _0x2c207b=new AbortController(),_0xce6d42=_0x4e0aea[_0x11c0af(0x15c)](setTimeout,()=>_0x2c207b['abort'](),0x1388),_0x2eda22={'method':_0x4e0aea[_0x11c0af(0xe5)],'signal':_0x2c207b['signal'],'redirect':_0x11c0af(0xfb)};/^https:\/\/localhost(:\d+)?/i[_0x11c0af(0x112)](_0x5652f5)&&(process['env'][_0x11c0af(0x15d)]='0');const _0x111ee8=await fetch(_0x5652f5,_0x2eda22);delete process['env'][_0x11c0af(0x15d)],clearTimeout(_0xce6d42);if(_0x4e0aea[_0x11c0af(0xfa)](_0x111ee8['status'],0x190))return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x111ee8[_0x11c0af(0x13b)]};}catch(_0x2a34ef){delete process[_0x11c0af(0x134)]['NODE_TLS_REJECT_UNAUTHORIZED'];const _0x289c71=_0x2a34ef,_0xf70646=_0x289c71['message']||String(_0x2a34ef),_0x2e251a=_0xf70646['includes'](_0x11c0af(0xde))||_0x289c71['name']==='TypeError'||_0xf70646['includes'](_0x4e0aea['PXcCu']);return{'ok':![],'error':_0xf70646,'isProtocolError':_0x2e251a};}}async function sweepOrphanLocalProfile(_0x233ad8,_0x42d5d4,_0x4b7d6f){const _0x356ad1=_0x1add,_0x377c0e={'Mdyqk':function(_0x2531bf,_0x150df1,_0x13fdf4){return _0x2531bf(_0x150df1,_0x13fdf4);},'MpqJt':function(_0x18b79d,_0x1fd78b,_0x321085){return _0x18b79d(_0x1fd78b,_0x321085);}},_0x3c9bd8=_0x377c0e['Mdyqk'](join,_0x42d5d4,_0x356ad1(0xf3)),_0x44d18a=join(_0x3c9bd8,_0x233ad8);existsSync(_0x44d18a)&&(_0x4b7d6f&&await isPathGitTracked(_0x44d18a)?console[_0x356ad1(0xf2)]('\x20\x20Note:\x20found\x20git-tracked\x20local\x20profile\x20at\x20'+_0x44d18a+'\x20—\x20not\x20removing.\x20Delete\x20manually\x20if\x20you\x20want\x20it\x20gone.'):(await rm(_0x44d18a,{'recursive':!![],'force':!![]}),console['log']('\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20'+_0x44d18a)));if(existsSync(_0x3c9bd8)){let _0x2e3cb5=[];try{_0x2e3cb5=await readdir(_0x3c9bd8);}catch{return;}const _0x26f307=_0x356ad1(0xdc)+_0x233ad8+'-';for(const _0x2d6383 of _0x2e3cb5){if(!_0x2d6383['startsWith'](_0x26f307))continue;const _0x49a4db=join(_0x3c9bd8,_0x2d6383);await _0x377c0e[_0x356ad1(0x107)](rm,_0x49a4db,{'recursive':!![],'force':!![]}),console['log'](_0x356ad1(0x143)+_0x49a4db);}}}async function sweepOrphansBestEffort(_0x48b17d){const _0x45a9c1=_0x1add,_0x1bd88d={'pKQOg':function(_0xd402d9){return _0xd402d9();},'dmRyL':function(_0x3eedcb,_0x1442ba){return _0x3eedcb!==_0x1442ba;},'iMGTW':function(_0x690149){return _0x690149();},'vfGoP':function(_0x236050,_0x27df1a){return _0x236050 instanceof _0x27df1a;}};try{await sweepOrphanLocalProfile(_0x48b17d,getRangerHomeDir(),![]);const _0xcbae50=_0x1bd88d[_0x45a9c1(0x135)](getRangerDir);_0x1bd88d[_0x45a9c1(0xfd)](_0xcbae50,_0x1bd88d['iMGTW'](getRangerHomeDir))&&await sweepOrphanLocalProfile(_0x48b17d,_0xcbae50,!![]);}catch(_0x3ae0ce){console[_0x45a9c1(0xf2)](_0x45a9c1(0x12a)+(_0x1bd88d['vfGoP'](_0x3ae0ce,Error)?_0x3ae0ce[_0x45a9c1(0x153)]:String(_0x3ae0ce))+').');}}async function markActive(_0x4f9fd8){const _0xb305dc=_0x1add,_0x323b79={'mqwhr':function(_0x46a11d,_0xb8b62c){return _0x46a11d(_0xb8b62c);},'Hzoqv':_0xb305dc(0x130)};try{await _0x323b79['mqwhr'](writeActiveProfileName,_0x4f9fd8),console['log']('\x20\x20Set\x20active\x20profile:\x20'+_0x4f9fd8);}catch{console['log'](_0x323b79['Hzoqv']);}}async function tryAutoRouteCloudProfile(_0x44d1fa,_0x35dc53,_0x3d9b6c,_0x274c86,_0x217ca0){const _0x5e6c12=_0x1add,_0x753fd1={'ovsWP':function(_0x3ea09d,_0x3e6c3c){return _0x3ea09d===_0x3e6c3c;},'tFtdS':function(_0x247189,_0x57a05e){return _0x247189 instanceof _0x57a05e;},'pNblT':_0x5e6c12(0x123),'KhaWx':_0x5e6c12(0x15a),'rOMHz':function(_0x51e902,_0x20fd2c){return _0x51e902+_0x20fd2c;},'RtAPm':function(_0x17615c,_0x143857){return _0x17615c+_0x143857;},'eCVMt':_0x5e6c12(0x103),'ktKWe':_0x5e6c12(0xe4),'vokFF':'no_match','dMMrD':_0x5e6c12(0x152),'ChFKl':_0x5e6c12(0xdb),'GhoWv':function(_0x37676e,_0x449fd3,_0x26dd71,_0x2191a4){return _0x37676e(_0x449fd3,_0x26dd71,_0x2191a4);},'WJxAz':function(_0x2cc43e,_0x3d0c75){return _0x2cc43e instanceof _0x3d0c75;}};let _0x45d2a3;try{_0x45d2a3=await fetchAuthConfig();}catch(_0x493f45){return _0x217ca0?.[_0x5e6c12(0x11d)]('profile.add.autoRouteSkipped',{'reason':_0x5e6c12(0x15a),'profileName':_0x44d1fa}),console[_0x5e6c12(0xed)]('\x0a\x20\x20Could\x20not\x20fetch\x20this\x20org\x27s\x20auth\x20config:\x20'+(_0x753fd1['tFtdS'](_0x493f45,Error)?_0x493f45[_0x5e6c12(0x153)]:String(_0x493f45))),![];}if(!_0x45d2a3||!_0x45d2a3['environments']||Object['keys'](_0x45d2a3[_0x5e6c12(0x10d)])['length']===0x0){if(_0x274c86)return await captureEnvLessProfile(_0x44d1fa,_0x35dc53,_0x3d9b6c,_0x217ca0);return _0x217ca0?.['trackPhaseEnd'](_0x753fd1[_0x5e6c12(0x117)],{'reason':_0x753fd1[_0x5e6c12(0xe0)],'profileName':_0x44d1fa}),console[_0x5e6c12(0xed)](_0x753fd1['rOMHz'](_0x753fd1[_0x5e6c12(0x11f)](_0x753fd1['eCVMt']+'\x0a'+_0x753fd1[_0x5e6c12(0xf1)]+(_0x5e6c12(0x121)+_0x44d1fa+_0x5e6c12(0x12c)+_0x35dc53+_0x5e6c12(0x122)),'\x0a'),'\x20\x20To\x20get\x20automated\x20login\x20set\x20up\x20for\x20your\x20team\x20(a\x20one-time\x20call):\x20eng@ranger.net\x0a')+'\x20\x20Details:\x20https://docs.ranger.net/main/concepts/profiles#automated-login'),![];}const _0x2bef31=matchAuthEnvironment(_0x35dc53,_0x45d2a3);if(!_0x2bef31)return _0x217ca0?.[_0x5e6c12(0x11d)]('profile.add.autoRouteSkipped',{'reason':_0x753fd1[_0x5e6c12(0x148)],'profileName':_0x44d1fa}),console['error'](_0x5e6c12(0x136)+_0x35dc53+_0x5e6c12(0xd7)+Object['keys'](_0x45d2a3['environments'])['join'](',\x20')+'.'),![];const _0x2dabd1=_0x45d2a3[_0x5e6c12(0x10d)][_0x2bef31],_0x1727e9=_0x2dabd1?.[_0x5e6c12(0x120)]??[];if(_0x274c86&&!_0x3d9b6c[_0x5e6c12(0x111)]){const {saveToCloud:_0x4e030d}=await _0x3663c5['prompt']([{'type':_0x5e6c12(0xe8),'name':'saveToCloud','message':'Found\x20auth\x20environment\x20\x27'+_0x2bef31+'\x27\x20matching\x20'+_0x35dc53+_0x5e6c12(0x150)+_0x1727e9[_0x5e6c12(0xe7)](',\x20')+_0x5e6c12(0x15b)+_0x44d1fa+'\x27\x20to\x20the\x20cloud?','default':!![]}]);if(!_0x4e030d)return _0x217ca0?.[_0x5e6c12(0x11d)](_0x753fd1['pNblT'],{'reason':_0x753fd1['dMMrD'],'profileName':_0x44d1fa}),console['error'](_0x753fd1['ChFKl']),![];}const _0x3cb2a1=_0x1727e9[_0x5e6c12(0xda)](_0xb266fb=>{const _0x31b020=_0x5e6c12;try{return _0x753fd1['ovsWP'](new URL(_0xb266fb)[_0x31b020(0x156)],new URL(_0x35dc53)['origin']);}catch{return![];}}),_0x824245={};!_0x3cb2a1&&(_0x824245['baseUrl']=_0x35dc53);try{await _0x753fd1[_0x5e6c12(0xff)](createCloudProfile,_0x44d1fa,_0x2bef31,{'settings':_0x824245}),warnCloudProfileSharedInOrg();}catch(_0x2b7f68){if(_0x753fd1[_0x5e6c12(0x142)](_0x2b7f68,ApiError)&&_0x2b7f68[_0x5e6c12(0x13b)]===0x199){console[_0x5e6c12(0xed)](_0x5e6c12(0x11a)+_0x44d1fa+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a'+('\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x44d1fa));throw _0x2b7f68;}throw _0x2b7f68;}return console['log'](_0x5e6c12(0x12f)+_0x44d1fa+_0x5e6c12(0x13a)+('\x20\x20Next:\x20ranger\x20go\x20--profile\x20'+_0x44d1fa)),await sweepOrphansBestEffort(_0x44d1fa),_0x217ca0?.[_0x5e6c12(0x11d)](_0x5e6c12(0xea),{'envKey':_0x2bef31,'profileName':_0x44d1fa}),!![];}async function createUnconfiguredCloudProfile(_0x30588d,_0x24e1ba){const _0x278da0=_0x1add,_0x224e1b={'ziWFm':function(_0x2aa462){return _0x2aa462();},'CnVLo':function(_0x3e09fc,_0x1dfc72){return _0x3e09fc instanceof _0x1dfc72;},'QnPqb':function(_0x53fa94,_0x478c46){return _0x53fa94===_0x478c46;},'CLhnK':function(_0x10661f,_0x2ea5db){return _0x10661f+_0x2ea5db;}};try{await createCloudProfile(_0x30588d,undefined,{'settings':_0x24e1ba}),_0x224e1b[_0x278da0(0x14e)](warnCloudProfileSharedInOrg);}catch(_0x410139){_0x224e1b['CnVLo'](_0x410139,ApiError)&&_0x224e1b[_0x278da0(0x118)](_0x410139['status'],0x199)&&console['error'](_0x224e1b['CLhnK'](_0x278da0(0x11a)+_0x30588d+_0x278da0(0x141),'\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x30588d));throw _0x410139;}}async function captureEnvLessProfile(_0x52f0c2,_0x35777e,_0x2cb417,_0x260ea5){const _0x957e46=_0x1add,_0x286f2d={'XoKeb':_0x957e46(0xe8),'ZlLHo':_0x957e46(0x14c),'oWtQu':'user_declined','CSyqZ':function(_0x3b26d8,_0xaf9da2){return _0x3b26d8+_0xaf9da2;},'rxZxN':function(_0x44bf42,_0x1b6067){return _0x44bf42===_0x1b6067;},'DQRGP':function(_0x52b1b8,_0x3fbbfb){return _0x52b1b8>_0x3fbbfb;},'icTlb':function(_0x1e1166,_0x1a3e62){return _0x1e1166 instanceof _0x1a3e62;},'AXInr':function(_0x2b0e14,_0x21029e){return _0x2b0e14+_0x21029e;},'GAcQa':function(_0x1ca9d9,_0x1bb38a,_0xa98557){return _0x1ca9d9(_0x1bb38a,_0xa98557);},'AvCuz':function(_0x1633fd,_0x5a309c){return _0x1633fd(_0x5a309c);},'WhIAA':_0x957e46(0xea)};if(!_0x2cb417[_0x957e46(0x111)]){const {capture:_0x2483a4}=await _0x3663c5[_0x957e46(0xfc)]([{'type':_0x286f2d[_0x957e46(0x11e)],'name':'capture','message':_0x286f2d['ZlLHo'],'default':!![]}]);if(!_0x2483a4)return _0x260ea5?.['trackPhaseEnd']('profile.add.autoRouteSkipped',{'reason':_0x286f2d[_0x957e46(0x12e)],'profileName':_0x52f0c2}),console['error'](_0x286f2d[_0x957e46(0xf9)]('\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20session,\x0a',_0x957e46(0x14a))),![];}const _0x51f33d={};if(_0x2cb417['setupHeader'])for(const _0x310f3d of _0x2cb417[_0x957e46(0xe3)]){const _0xf791b9=_0x310f3d[_0x957e46(0xec)](':');if(_0x286f2d[_0x957e46(0x146)](_0xf791b9,-0x1))continue;_0x51f33d[_0x310f3d['slice'](0x0,_0xf791b9)['trim']()]=_0x310f3d['slice'](_0xf791b9+0x1)[_0x957e46(0x10e)]();}const _0x2d47cb={'baseUrl':_0x35777e};_0x286f2d['DQRGP'](Object['keys'](_0x51f33d)['length'],0x0)&&(_0x2d47cb['setupHeaders']=_0x51f33d);let _0x44a875;try{_0x44a875=await createCloudProfile(_0x52f0c2,undefined,{'settings':_0x2d47cb}),warnCloudProfileSharedInOrg();}catch(_0x3911ff){_0x286f2d['icTlb'](_0x3911ff,ApiError)&&_0x286f2d['rxZxN'](_0x3911ff[_0x957e46(0x13b)],0x199)&&console[_0x957e46(0xed)](_0x286f2d[_0x957e46(0x132)](_0x957e46(0x11a)+_0x52f0c2+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x52f0c2));throw _0x3911ff;}return await _0x286f2d['GAcQa'](manualBrowserLogin,_0x44a875,{'key':'','domains':[_0x35777e],'setupHeaders':Object[_0x957e46(0xfe)](_0x51f33d)['length']>0x0?_0x51f33d:undefined}),console[_0x957e46(0xf2)](_0x286f2d[_0x957e46(0xf9)](_0x957e46(0xf6)+_0x52f0c2+_0x957e46(0x144),_0x957e46(0xe9)+_0x52f0c2)),await _0x286f2d['AvCuz'](sweepOrphansBestEffort,_0x52f0c2),_0x260ea5?.[_0x957e46(0x11d)](_0x286f2d[_0x957e46(0xd9)],{'envKey':null,'profileName':_0x52f0c2}),!![];}export async function addEnv(_0x48f9d3,_0x478c20={},_0x441f39){const _0x287e4f=_0x1add,_0x12eca1={'JLYZI':function(_0x536ee6,_0x3a41e1){return _0x536ee6+_0x3a41e1;},'VdkDj':function(_0x3020a4,_0x31c2a7){return _0x3020a4+_0x31c2a7;},'fsvIh':function(_0x90476d,_0x33c6ed){return _0x90476d+_0x33c6ed;},'BRTmi':_0x287e4f(0x101),'NuRiT':_0x287e4f(0x129),'YgfNr':_0x287e4f(0x133),'IJZqd':function(_0x192764,_0x5ade35){return _0x192764+_0x5ade35;},'eKaKa':function(_0x1b1db6,_0x219768){return _0x1b1db6===_0x219768;},'uDvLJ':function(_0x368a90){return _0x368a90();},'yKCoH':'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','LDYap':'\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','frETj':_0x287e4f(0xd8),'CuRKJ':function(_0x4c0532,_0x2bf42d){return _0x4c0532 instanceof _0x2bf42d;},'XwXlO':function(_0x417c70,_0x4651ea){return _0x417c70(_0x4651ea);},'AfPAd':function(_0x7111a7,_0x2f0af5,_0x5d54b6){return _0x7111a7(_0x2f0af5,_0x5d54b6);},'gaAzx':function(_0x4719ea,_0x55a657){return _0x4719ea(_0x55a657);},'gHRQM':function(_0x87755f,_0x362264){return _0x87755f(_0x362264);},'NxfZJ':_0x287e4f(0x137),'NwQOS':_0x287e4f(0x14d),'GLFhz':function(_0x5a0750,_0x13919a){return _0x5a0750||_0x13919a;},'DZgsV':_0x287e4f(0x13e),'jbGqv':'list','DeurV':'action','CvqhM':'What\x20would\x20you\x20like\x20to\x20do?','ocYmC':_0x287e4f(0x12d),'RYEiB':_0x287e4f(0x10b),'pJMQm':_0x287e4f(0x155),'VFNWS':_0x287e4f(0xf4),'cMiiW':function(_0x550f3c,_0x33b9c9,_0x59c306,_0x29db7f,_0x5a4e2c,_0x190779){return _0x550f3c(_0x33b9c9,_0x59c306,_0x29db7f,_0x5a4e2c,_0x190779);}};_0x478c20['ci']&&(console['error'](_0x12eca1['JLYZI'](_0x12eca1[_0x287e4f(0x10f)](_0x12eca1['VdkDj'](_0x12eca1['fsvIh'](_0x12eca1[_0x287e4f(0x139)],'for\x20you,\x20so\x20the\x20encrypted-CI\x20flow\x20is\x20unnecessary.\x0a'),'\x0a')+_0x287e4f(0xdf)+'\x20\x20ranger\x20profile\x20add\x20<name>\x0a'+'\x0a',_0x12eca1[_0x287e4f(0x151)]),_0x12eca1[_0x287e4f(0x157)])),process[_0x287e4f(0x158)](0x1));const _0x51c825={};if(_0x478c20[_0x287e4f(0xe3)])for(const _0x291da0 of _0x478c20[_0x287e4f(0xe3)]){const _0x1a9fa1=_0x291da0[_0x287e4f(0xec)](':');if(_0x1a9fa1===-0x1)throw new Error(_0x287e4f(0x159)+_0x291da0+'\x22.\x20Expected\x20\x22Name:\x20Value\x22.');const _0x14fa95=_0x291da0[_0x287e4f(0x126)](0x0,_0x1a9fa1)[_0x287e4f(0x10e)](),_0x374a53=_0x291da0['slice'](_0x12eca1['IJZqd'](_0x1a9fa1,0x1))['trim']();_0x51c825[_0x14fa95]=_0x374a53;}if(_0x478c20['cdpEndpoint']!==undefined&&_0x12eca1['eKaKa'](_0x478c20['cdpEndpoint']['trim'](),''))throw new Error(_0x287e4f(0x109));if(_0x478c20[_0x287e4f(0x11b)]&&_0x478c20[_0x287e4f(0x14b)])throw new Error('--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.');const _0x432d43=Boolean(_0x478c20[_0x287e4f(0x11b)]),_0x37dbea=_0x12eca1[_0x287e4f(0x124)](isInteractive);if(!_0x37dbea&&!_0x478c20[_0x287e4f(0x14b)]&&!_0x432d43&&!_0x478c20['skipAuth'])throw new Error(_0x12eca1[_0x287e4f(0x10c)]);if(_0x432d43){const _0x151734=_0x478c20['cdpEndpoint'];console[_0x287e4f(0xf2)](_0x12eca1['LDYap']),console['log']('\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20'+_0x151734);const _0x3e77bb={'cdpEndpoint':_0x151734,'isElectron':!![]};Object['keys'](_0x51c825)[_0x287e4f(0xf5)]>0x0&&(_0x3e77bb[_0x287e4f(0x105)]=_0x51c825);await createUnconfiguredCloudProfile(_0x48f9d3,_0x3e77bb);try{setProfileOverride(process['cwd'](),_0x48f9d3,'cdpEndpoint',_0x151734),setProfileOverride(process[_0x287e4f(0x154)](),_0x48f9d3,_0x12eca1[_0x287e4f(0x140)],!![]);}catch(_0x51e729){console[_0x287e4f(0xed)]('\x0a\x20\x20Cloud\x20profile\x20created,\x20but\x20failed\x20to\x20write\x20per-cwd\x20CDP\x20override\x20to\x20projects.json:\x20'+(_0x12eca1[_0x287e4f(0x102)](_0x51e729,Error)?_0x51e729['message']:String(_0x51e729)));}console[_0x287e4f(0xf2)](_0x287e4f(0x116)+_0x48f9d3+'\x27\x20created\x20(CDP).'),await _0x12eca1['XwXlO'](sweepOrphansBestEffort,_0x48f9d3),await _0x12eca1[_0x287e4f(0xef)](markActive,_0x48f9d3);return;}if(_0x478c20['skipAuth']){const _0x305f4a={};_0x478c20['url']&&(_0x305f4a['baseUrl']=_0x478c20[_0x287e4f(0x14b)]);Object[_0x287e4f(0xfe)](_0x51c825)['length']>0x0&&(_0x305f4a['setupHeaders']=_0x51c825);await _0x12eca1[_0x287e4f(0x145)](createUnconfiguredCloudProfile,_0x48f9d3,_0x305f4a),console[_0x287e4f(0xf2)](_0x287e4f(0x12f)+_0x48f9d3+'\x27\x20created\x20(no\x20session).\x0a'+(_0x287e4f(0x114)+_0x48f9d3+'`\x20again\x20without\x20--skip-auth.')),await sweepOrphansBestEffort(_0x48f9d3),await _0x12eca1['gaAzx'](markActive,_0x48f9d3);return;}if(_0x478c20['url']){const _0x54964a=_0x478c20['url'],_0x298db6=await _0x12eca1[_0x287e4f(0x13f)](checkUrlReachability,_0x54964a);if(!_0x298db6['ok']&&!_0x478c20['force'])throw new Error('Could\x20not\x20reach\x20'+_0x54964a+':\x20'+_0x298db6[_0x287e4f(0xed)]+'\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.');!_0x298db6['ok']&&_0x478c20[_0x287e4f(0x104)]&&console['log']('⚠\x20Could\x20not\x20reach\x20'+_0x54964a+':\x20'+_0x298db6[_0x287e4f(0xed)]+_0x287e4f(0x110));}else{console['log'](_0x287e4f(0xd6)),console['log'](_0x287e4f(0x106)),console[_0x287e4f(0xf2)](_0x12eca1['NxfZJ']);let _0x565174='',_0x494245=![];while(!![]){const _0x2e0119=await _0x3663c5[_0x287e4f(0xfc)]([{'type':_0x12eca1['NwQOS'],'name':_0x287e4f(0x119),'message':_0x494245?'Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):':'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','default':_0x12eca1['GLFhz'](_0x565174,_0x12eca1[_0x287e4f(0x13d)])}]);_0x565174=_0x2e0119[_0x287e4f(0x119)];const _0x5d3be3=await checkUrlReachability(_0x565174);if(_0x5d3be3['ok'])break;const _0x571e4e=/^[a-zA-Z][\w+.-]*:\/\//['test'](_0x565174),_0x110dff=_0x5d3be3['isProtocolError']&&!_0x571e4e,_0x4f999b=_0x110dff?_0x287e4f(0x10a)+_0x565174:null;_0x494245=!![],console['log'](_0x287e4f(0xe2)+_0x565174+':\x20'+_0x5d3be3[_0x287e4f(0xed)]);_0x4f999b&&console['log'](_0x287e4f(0x115)+_0x4f999b+'?');const {action:_0x25a010}=await _0x3663c5[_0x287e4f(0xfc)]([{'type':_0x12eca1[_0x287e4f(0xf7)],'name':_0x12eca1[_0x287e4f(0xe1)],'message':_0x12eca1['CvqhM'],'choices':[..._0x4f999b?[{'name':_0x287e4f(0xe6)+_0x4f999b,'value':_0x287e4f(0x155)}]:[],{'name':_0x287e4f(0x127),'value':_0x12eca1[_0x287e4f(0xf0)]},{'name':_0x12eca1[_0x287e4f(0x11c)],'value':_0x287e4f(0xf4)}]}]);if(_0x12eca1['eKaKa'](_0x25a010,_0x12eca1['pJMQm'])&&_0x4f999b){_0x565174=_0x4f999b;const _0x2a36ed=await checkUrlReachability(_0x565174);if(_0x2a36ed['ok'])break;console['log']('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0x565174+':\x20'+_0x2a36ed['error']);}else{if(_0x25a010===_0x12eca1['VFNWS'])break;}}_0x478c20={..._0x478c20,'url':_0x565174};}let _0x5befbe=![];try{_0x5befbe=await _0x12eca1['cMiiW'](tryAutoRouteCloudProfile,_0x48f9d3,_0x478c20[_0x287e4f(0x14b)],_0x478c20,_0x37dbea,_0x441f39);}catch(_0x17fd6b){console['error'](_0x287e4f(0x128)+_0x48f9d3+_0x287e4f(0x13c)+(_0x17fd6b instanceof Error?_0x17fd6b['message']:String(_0x17fd6b))),process['exit'](0x1);}!_0x5befbe&&process[_0x287e4f(0x158)](0x1),await markActive(_0x48f9d3);}
1
+ (function(_0x1378f8,_0x375af3){const _0x531449=_0x41f3,_0x3ae50f=_0x1378f8();while(!![]){try{const _0x3edb23=parseInt(_0x531449(0x115))/0x1+-parseInt(_0x531449(0xd7))/0x2*(-parseInt(_0x531449(0x12a))/0x3)+-parseInt(_0x531449(0xd8))/0x4+-parseInt(_0x531449(0xd0))/0x5*(parseInt(_0x531449(0xcb))/0x6)+-parseInt(_0x531449(0xcf))/0x7+parseInt(_0x531449(0xd6))/0x8*(-parseInt(_0x531449(0xff))/0x9)+parseInt(_0x531449(0xfa))/0xa;if(_0x3edb23===_0x375af3)break;else _0x3ae50f['push'](_0x3ae50f['shift']());}catch(_0x385d4a){_0x3ae50f['push'](_0x3ae50f['shift']());}}}(_0x1ee8,0xbe1b2));import{readdir,rm}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import _0x4b9a76 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';const CLOUD_PROFILE_SHARING_WARNING='This\x20account\x20will\x20be\x20shared\x20with\x20everyone\x20at\x20your\x20organization';function warnCloudProfileSharedInOrg(){const _0x18f45a=_0x41f3;if(!process['stdout'][_0x18f45a(0xe4)])return;console['warn'](CLOUD_PROFILE_SHARING_WARNING);}function _0x41f3(_0xd38084,_0x1b42a3){_0xd38084=_0xd38084-0xb6;const _0x1ee875=_0x1ee8();let _0x41f36f=_0x1ee875[_0xd38084];return _0x41f36f;}async function checkUrlReachability(_0x5dab60){const _0x2ddd18=_0x41f3,_0x36cf07={'tLyaI':'manual','vstpH':function(_0x5d3487,_0x365c4a,_0x58ef93){return _0x5d3487(_0x365c4a,_0x58ef93);},'IPtTw':function(_0x1c6765,_0x310e97){return _0x1c6765<_0x310e97;},'DrdgH':function(_0x4ff164,_0x394344){return _0x4ff164(_0x394344);},'VdLMQ':function(_0xa12e00,_0x3b0e82){return _0xa12e00===_0x3b0e82;},'xouUE':'fetch\x20failed'};try{const _0x18360f=new AbortController(),_0xd0eebe=setTimeout(()=>_0x18360f[_0x2ddd18(0xf7)](),0x1388),_0x2aa241={'method':_0x2ddd18(0x130),'signal':_0x18360f[_0x2ddd18(0x104)],'redirect':_0x36cf07[_0x2ddd18(0x118)]};/^https:\/\/localhost(:\d+)?/i[_0x2ddd18(0xfd)](_0x5dab60)&&(process[_0x2ddd18(0x12c)]['NODE_TLS_REJECT_UNAUTHORIZED']='0');const _0x48ae59=await _0x36cf07['vstpH'](fetch,_0x5dab60,_0x2aa241);delete process[_0x2ddd18(0x12c)][_0x2ddd18(0xd1)],clearTimeout(_0xd0eebe);if(_0x36cf07[_0x2ddd18(0xd5)](_0x48ae59['status'],0x190))return{'ok':!![]};return{'ok':![],'error':_0x2ddd18(0x10e)+_0x48ae59['status']};}catch(_0x172396){delete process[_0x2ddd18(0x12c)]['NODE_TLS_REJECT_UNAUTHORIZED'];const _0x3d2e9a=_0x172396,_0x2fee77=_0x3d2e9a['message']||_0x36cf07['DrdgH'](String,_0x172396),_0x97e814=_0x2fee77['includes']('Invalid\x20URL')||_0x36cf07['VdLMQ'](_0x3d2e9a[_0x2ddd18(0xdc)],'TypeError')||_0x2fee77[_0x2ddd18(0xf0)](_0x36cf07[_0x2ddd18(0xb6)]);return{'ok':![],'error':_0x2fee77,'isProtocolError':_0x97e814};}}async function sweepOrphanLocalProfile(_0x5415f1,_0x181d0a,_0x4dd94b){const _0x3f5b08=_0x41f3,_0x49d36d={'KERFG':_0x3f5b08(0xcc),'HHvFZ':function(_0x423fc2,_0x358abb,_0x3afa3f){return _0x423fc2(_0x358abb,_0x3afa3f);}},_0x237a0f=join(_0x181d0a,_0x49d36d[_0x3f5b08(0x12d)]),_0x4a541f=join(_0x237a0f,_0x5415f1);existsSync(_0x4a541f)&&(_0x4dd94b&&await isPathGitTracked(_0x4a541f)?console[_0x3f5b08(0xc1)]('\x20\x20Note:\x20found\x20git-tracked\x20local\x20profile\x20at\x20'+_0x4a541f+'\x20—\x20not\x20removing.\x20Delete\x20manually\x20if\x20you\x20want\x20it\x20gone.'):(await _0x49d36d[_0x3f5b08(0x124)](rm,_0x4a541f,{'recursive':!![],'force':!![]}),console[_0x3f5b08(0xc1)](_0x3f5b08(0xc4)+_0x4a541f)));if(existsSync(_0x237a0f)){let _0x4919ed=[];try{_0x4919ed=await readdir(_0x237a0f);}catch{return;}const _0x559a43='.tmp-'+_0x5415f1+'-';for(const _0x10b20f of _0x4919ed){if(!_0x10b20f['startsWith'](_0x559a43))continue;const _0x5822a8=join(_0x237a0f,_0x10b20f);await rm(_0x5822a8,{'recursive':!![],'force':!![]}),console['log'](_0x3f5b08(0xc4)+_0x5822a8);}}}async function sweepOrphansBestEffort(_0x2b5744){const _0x10c8ff=_0x41f3,_0x50f3c6={'ILqGP':function(_0x154331){return _0x154331();},'fjxlv':function(_0x1fcae2){return _0x1fcae2();},'HXuRC':function(_0x44e4ad){return _0x44e4ad();},'JvmoR':function(_0x390206,_0x474ad1){return _0x390206 instanceof _0x474ad1;}};try{await sweepOrphanLocalProfile(_0x2b5744,_0x50f3c6['ILqGP'](getRangerHomeDir),![]);const _0x2e1127=_0x50f3c6['fjxlv'](getRangerDir);_0x2e1127!==_0x50f3c6[_0x10c8ff(0x11f)](getRangerHomeDir)&&await sweepOrphanLocalProfile(_0x2b5744,_0x2e1127,!![]);}catch(_0x583e68){console[_0x10c8ff(0xc1)]('\x20\x20Note:\x20cloud\x20profile\x20created,\x20but\x20failed\x20to\x20sweep\x20orphan\x20local\x20dirs\x20('+(_0x50f3c6['JvmoR'](_0x583e68,Error)?_0x583e68[_0x10c8ff(0xe7)]:String(_0x583e68))+').');}}async function markActive(_0xdfba34){const _0x33d584=_0x41f3;try{await writeActiveProfileName(_0xdfba34),console['log'](_0x33d584(0xc7)+_0xdfba34);}catch{console['log']('Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.');}}async function tryAutoRouteCloudProfile(_0x4e71a8,_0x121fa7,_0x18a53f,_0x1fb4ca,_0x3dd520){const _0x2a7012=_0x41f3,_0x18c65e={'EXlfu':function(_0x20328c,_0x319d69){return _0x20328c===_0x319d69;},'rXlBn':function(_0x4030bc){return _0x4030bc();},'oScmb':'no_auth_config','oeQJp':function(_0x3e03f0,_0x568caf){return _0x3e03f0 instanceof _0x568caf;},'aPLky':function(_0x44c303,_0x3f05c1){return _0x44c303(_0x3f05c1);},'xGhso':function(_0x26c851,_0x5a21b0){return _0x26c851+_0x5a21b0;},'AKwnc':function(_0x4d3076,_0x2216e4){return _0x4d3076+_0x2216e4;},'ZOOTl':function(_0x419912,_0x417af1){return _0x419912+_0x417af1;},'CQSYm':_0x2a7012(0xe9),'CeEot':_0x2a7012(0xbc),'BzfUP':function(_0x59fb1a,_0x53f4d8,_0x1a74e3,_0x5ca2a1){return _0x59fb1a(_0x53f4d8,_0x1a74e3,_0x5ca2a1);},'nIcDO':function(_0x448c28,_0x4cab83){return _0x448c28 instanceof _0x4cab83;},'htZAG':_0x2a7012(0x123)};let _0x1f3894;try{_0x1f3894=await _0x18c65e[_0x2a7012(0x105)](fetchAuthConfig);}catch(_0x1ad22e){return _0x3dd520?.['trackPhaseEnd']('profile.add.autoRouteSkipped',{'reason':_0x18c65e['oScmb'],'profileName':_0x4e71a8}),console[_0x2a7012(0x134)](_0x2a7012(0xbf)+(_0x18c65e['oeQJp'](_0x1ad22e,Error)?_0x1ad22e[_0x2a7012(0xe7)]:_0x18c65e[_0x2a7012(0xfe)](String,_0x1ad22e))),![];}if(!_0x1f3894||!_0x1f3894['environments']||_0x18c65e['EXlfu'](Object[_0x2a7012(0x10c)](_0x1f3894['environments'])['length'],0x0)){if(_0x1fb4ca)return await captureEnvLessProfile(_0x4e71a8,_0x121fa7,_0x18a53f,_0x3dd520);return _0x3dd520?.['trackPhaseEnd']('profile.add.autoRouteSkipped',{'reason':'no_auth_config','profileName':_0x4e71a8}),console['error'](_0x18c65e['xGhso'](_0x18c65e[_0x2a7012(0x117)](_0x18c65e['ZOOTl'](_0x2a7012(0xe3)+'\x0a',_0x2a7012(0xfb))+(_0x2a7012(0xbd)+_0x4e71a8+_0x2a7012(0xbe)+_0x121fa7+_0x2a7012(0x12b)),'\x0a'),_0x2a7012(0xe2))+'\x20\x20Details:\x20https://docs.ranger.net/main/concepts/profiles#automated-login'),![];}const _0x4efa5f=matchAuthEnvironment(_0x121fa7,_0x1f3894);if(!_0x4efa5f)return _0x3dd520?.['trackPhaseEnd'](_0x18c65e['CQSYm'],{'reason':_0x2a7012(0xee),'profileName':_0x4e71a8}),console[_0x2a7012(0x134)]('\x0a\x20\x20No\x20auth\x20env\x20matches\x20'+_0x121fa7+_0x2a7012(0x10a)+Object[_0x2a7012(0x10c)](_0x1f3894['environments'])['join'](',\x20')+'.'),![];const _0xa7d1fc=_0x1f3894[_0x2a7012(0xc0)][_0x4efa5f],_0x13d24a=_0xa7d1fc?.['domains']??[];if(_0x1fb4ca&&!_0x18a53f['yes']){const {saveToCloud:_0x567d61}=await _0x4b9a76['prompt']([{'type':'confirm','name':_0x18c65e['CeEot'],'message':'Found\x20auth\x20environment\x20\x27'+_0x4efa5f+_0x2a7012(0x129)+_0x121fa7+_0x2a7012(0xf3)+_0x13d24a[_0x2a7012(0xea)](',\x20')+')\x0a\x20\x20Save\x20\x27'+_0x4e71a8+'\x27\x20to\x20the\x20cloud?','default':!![]}]);if(!_0x567d61)return _0x3dd520?.['trackPhaseEnd'](_0x18c65e[_0x2a7012(0xc8)],{'reason':_0x2a7012(0x121),'profileName':_0x4e71a8}),console['error'](_0x2a7012(0xb7)),![];}const _0x243393=_0x13d24a[_0x2a7012(0x11e)](_0x1a2c80=>{const _0x42248f=_0x2a7012;try{return _0x18c65e[_0x42248f(0x114)](new URL(_0x1a2c80)['origin'],new URL(_0x121fa7)['origin']);}catch{return![];}}),_0x59f5af={};!_0x243393&&(_0x59f5af['baseUrl']=_0x121fa7);try{await _0x18c65e[_0x2a7012(0xda)](createCloudProfile,_0x4e71a8,_0x4efa5f,{'settings':_0x59f5af}),_0x18c65e['rXlBn'](warnCloudProfileSharedInOrg);}catch(_0x5c373d){if(_0x18c65e[_0x2a7012(0xfc)](_0x5c373d,ApiError)&&_0x5c373d['status']===0x199){console[_0x2a7012(0x134)]('\x0a\x20\x20A\x20profile\x20named\x20\x22'+_0x4e71a8+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a'+(_0x2a7012(0xd4)+_0x4e71a8));throw _0x5c373d;}throw _0x5c373d;}return console['log'](_0x2a7012(0xf4)+_0x4e71a8+_0x2a7012(0xe5)+('\x20\x20Next:\x20ranger\x20go\x20--profile\x20'+_0x4e71a8)),await sweepOrphansBestEffort(_0x4e71a8),_0x3dd520?.[_0x2a7012(0xdb)](_0x18c65e[_0x2a7012(0xce)],{'envKey':_0x4efa5f,'profileName':_0x4e71a8}),!![];}async function createUnconfiguredCloudProfile(_0x553b3b,_0x5a6792){const _0x23b67c=_0x41f3,_0x143b38={'IFkjy':function(_0x4a047b,_0x378e21){return _0x4a047b instanceof _0x378e21;},'TFTYR':function(_0x1367d6,_0x1dc33b){return _0x1367d6+_0x1dc33b;}};try{await createCloudProfile(_0x553b3b,undefined,{'settings':_0x5a6792}),warnCloudProfileSharedInOrg();}catch(_0x52bfd3){_0x143b38['IFkjy'](_0x52bfd3,ApiError)&&_0x52bfd3[_0x23b67c(0x133)]===0x199&&console[_0x23b67c(0x134)](_0x143b38['TFTYR'](_0x23b67c(0x113)+_0x553b3b+_0x23b67c(0x11d),'\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x553b3b));throw _0x52bfd3;}}function _0x1ee8(){const _0x28a9ea=['indexOf','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20','IPtTw','6232BBjmlj','2czQSVB','3491680DfmIeI','setupHeaders','BzfUP','trackPhaseEnd','name','skipAuth','EWkEp','\x20\x20https://docs.ranger.net/main/concepts/profiles','--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','cdpEndpoint','\x20\x20To\x20get\x20automated\x20login\x20set\x20up\x20for\x20your\x20team\x20(a\x20one-time\x20call):\x20eng@ranger.net\x0a','\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','isTTY','\x27\x20created.\x0a','isProtocolError','message','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','profile.add.autoRouteSkipped','join','\x20(continuing\x20with\x20--force)','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','eglhg','no_match','baseUrl','includes','⚠\x20Could\x20not\x20reach\x20','exit','\x0a\x20\x20(domains:\x20','✓\x20Profile\x20\x27','trim','\x22:\x20','abort','confirm','Use\x20','22929910lsRKrO','\x20\x20Workaround\x20for\x20now:\x20create\x20a\x20profile\x20without\x20a\x20captured\x20session\x20and\x20supply\x20one\x20later:\x0a','nIcDO','test','aPLky','14796bzRQUg','SKLcR','vihUD','bDNWI','sPrkX','signal','rXlBn','http://','Continue\x20anyway','mEuOE','\x20\x20or\x20contact\x20eng@ranger.net\x20to\x20set\x20up\x20automated\x20login\x20for\x20your\x20team.','.\x20Configured\x20envs:\x20','aUexo','keys','for\x20you,\x20so\x20the\x20encrypted-CI\x20flow\x20is\x20unnecessary.\x0a','HTTP\x20','JPjoi','\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','What\x20would\x20you\x20like\x20to\x20do?','list','\x0a\x20\x20A\x20profile\x20named\x20\x22','EXlfu','1305596ZzGQqQ','NhWWO','AKwnc','tLyaI','\x0a\x20\x20Failed\x20to\x20create\x20cloud\x20profile\x20\x22','\x20\x20Ranger\x20will\x20use\x20it\x20to\x20look\x20up\x20the\x20right\x20cloud\x20auth\x20env\x20to\x20attach.\x0a','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','setupHeader','\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a','some','HXuRC','prompt','user_declined','lgwjS','profile.add.autoRouted','HHvFZ','qStxl','\x20\x20Next:\x20ranger\x20go\x20--profile\x20','QpQbA','ayXwZ','\x27\x20matching\x20','2514987KWDTjI','\x20--skip-auth\x0a','env','KERFG','\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20session,\x0a','use_suggestion','HEAD','slice','length','status','error','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','xouUE','\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20cloud-managed\x20session.','OZgPj','NTEFU','ZgdGx','url','saveToCloud','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20','\x20--url\x20','\x0a\x20\x20Could\x20not\x20fetch\x20this\x20org\x27s\x20auth\x20config:\x20','environments','log','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20','retry','capture','\x20\x20Set\x20active\x20profile:\x20','CQSYm','--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','\x27\x20created\x20with\x20a\x20captured\x20session.\x0a','24oWlFBt','local','To\x20set\x20up\x20a\x20profile,\x20run:\x0a','htZAG','1033690kuknwE','1696220zomfTH','NODE_TLS_REJECT_UNAUTHORIZED','ywaph'];_0x1ee8=function(){return _0x28a9ea;};return _0x1ee8();}async function captureEnvLessProfile(_0x3a7915,_0x227a85,_0x233dbd,_0x4aefd5){const _0x1b689f=_0x41f3,_0x5b4225={'NzUIK':_0x1b689f(0xc6),'rUwDY':'Automated\x20login\x20isn\x27t\x20set\x20up\x20for\x20your\x20team.\x20Capture\x20a\x20session\x20via\x20a\x20headed\x20browser\x20instead?','bDNWI':function(_0x359d81,_0x250912){return _0x359d81+_0x250912;},'sPrkX':function(_0x138ff2,_0x1bc427){return _0x138ff2 instanceof _0x1bc427;},'eglhg':function(_0x3e3d6c,_0x138c69){return _0x3e3d6c===_0x138c69;},'vihUD':function(_0x4f14e9,_0xaebed5,_0x3c1f4e){return _0x4f14e9(_0xaebed5,_0x3c1f4e);}};if(!_0x233dbd['yes']){const {capture:_0x13c6f8}=await _0x4b9a76['prompt']([{'type':_0x1b689f(0xf8),'name':_0x5b4225['NzUIK'],'message':_0x5b4225['rUwDY'],'default':!![]}]);if(!_0x13c6f8)return _0x4aefd5?.[_0x1b689f(0xdb)](_0x1b689f(0xe9),{'reason':'user_declined','profileName':_0x3a7915}),console['error'](_0x5b4225[_0x1b689f(0x102)](_0x1b689f(0x12e),_0x1b689f(0x109))),![];}const _0x155ee4={};if(_0x233dbd['setupHeader'])for(const _0x30f44e of _0x233dbd[_0x1b689f(0x11c)]){const _0x501ca4=_0x30f44e['indexOf'](':');if(_0x501ca4===-0x1)continue;_0x155ee4[_0x30f44e[_0x1b689f(0x131)](0x0,_0x501ca4)['trim']()]=_0x30f44e['slice'](_0x501ca4+0x1)[_0x1b689f(0xf5)]();}const _0x585acd={'baseUrl':_0x227a85};Object[_0x1b689f(0x10c)](_0x155ee4)['length']>0x0&&(_0x585acd[_0x1b689f(0xd9)]=_0x155ee4);let _0x337f6b;try{_0x337f6b=await createCloudProfile(_0x3a7915,undefined,{'settings':_0x585acd}),warnCloudProfileSharedInOrg();}catch(_0x362b86){_0x5b4225[_0x1b689f(0x103)](_0x362b86,ApiError)&&_0x5b4225[_0x1b689f(0xed)](_0x362b86[_0x1b689f(0x133)],0x199)&&console['error'](_0x5b4225['bDNWI'](_0x1b689f(0x113)+_0x3a7915+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x3a7915));throw _0x362b86;}return await _0x5b4225[_0x1b689f(0x101)](manualBrowserLogin,_0x337f6b,{'key':'','domains':[_0x227a85],'setupHeaders':Object[_0x1b689f(0x10c)](_0x155ee4)[_0x1b689f(0x132)]>0x0?_0x155ee4:undefined}),console['log'](_0x5b4225[_0x1b689f(0x102)]('\x0a✓\x20Profile\x20\x27'+_0x3a7915+_0x1b689f(0xca),_0x1b689f(0x126)+_0x3a7915)),await sweepOrphansBestEffort(_0x3a7915),_0x4aefd5?.[_0x1b689f(0xdb)](_0x1b689f(0x123),{'envKey':null,'profileName':_0x3a7915}),!![];}export async function addEnv(_0x1aa808,_0x352ae5={},_0x197046){const _0x2ac662=_0x41f3,_0x4f6e19={'lgwjS':function(_0x214db9,_0x1fea77){return _0x214db9+_0x1fea77;},'ZgdGx':function(_0x1c77f9,_0x37d0d6){return _0x1c77f9+_0x37d0d6;},'EWkEp':function(_0xb21ab0,_0x4d9777){return _0xb21ab0+_0x4d9777;},'OZgPj':'The\x20--ci\x20flag\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x20session\x20state\x0a','NhWWO':_0x2ac662(0x10d),'sLOWs':_0x2ac662(0xdf),'zPPIL':function(_0x344524,_0x4dbd85){return _0x344524===_0x4dbd85;},'HcHxd':_0x2ac662(0xc9),'QpQbA':_0x2ac662(0xe0),'JfWBI':_0x2ac662(0xe8),'aUexo':function(_0x5c2d37,_0x98bbf9){return _0x5c2d37>_0x98bbf9;},'tmoiU':function(_0x12fc40,_0x2c9bb4,_0x12341b){return _0x12fc40(_0x2c9bb4,_0x12341b);},'NTEFU':function(_0x5b5fde,_0x2916aa,_0x5dc109,_0xd68bb7,_0x237d70){return _0x5b5fde(_0x2916aa,_0x5dc109,_0xd68bb7,_0x237d70);},'VHcyp':'isElectron','eYyjY':function(_0x140141,_0x5b875d){return _0x140141(_0x5b875d);},'JPjoi':function(_0xb265aa,_0x43b47b){return _0xb265aa(_0x43b47b);},'ywaph':'\x0a🌐\x20Profile\x20Setup\x0a','BkWKG':_0x2ac662(0xec),'NZKSe':_0x2ac662(0xef),'eEwKM':_0x2ac662(0xc3),'jlckv':'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','ayXwZ':_0x2ac662(0x112),'mRwNy':'action','qStxl':_0x2ac662(0x111),'ukEOH':_0x2ac662(0x12f),'SKLcR':_0x2ac662(0xc5),'nJYXg':_0x2ac662(0x107),'eUbNW':function(_0x318dfa,_0x48a6b5){return _0x318dfa===_0x48a6b5;},'mEuOE':function(_0xc9497a,_0x25b411,_0x43175a,_0x4cf12f,_0x515136,_0x52df14){return _0xc9497a(_0x25b411,_0x43175a,_0x4cf12f,_0x515136,_0x52df14);}};_0x352ae5['ci']&&(console['error'](_0x4f6e19[_0x2ac662(0x122)](_0x4f6e19['ZgdGx'](_0x4f6e19[_0x2ac662(0xba)](_0x4f6e19[_0x2ac662(0xde)](_0x4f6e19[_0x2ac662(0xb8)]+_0x4f6e19[_0x2ac662(0x116)],'\x0a')+_0x2ac662(0xcd),_0x2ac662(0x135)),'\x0a')+'For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a',_0x4f6e19['sLOWs'])),process[_0x2ac662(0xf2)](0x1));const _0x3a0796={};if(_0x352ae5[_0x2ac662(0x11c)])for(const _0xb937bb of _0x352ae5[_0x2ac662(0x11c)]){const _0x5f45ff=_0xb937bb[_0x2ac662(0xd3)](':');if(_0x4f6e19['zPPIL'](_0x5f45ff,-0x1))throw new Error('Invalid\x20--setup-header\x20format:\x20\x22'+_0xb937bb+'\x22.\x20Expected\x20\x22Name:\x20Value\x22.');const _0xb55148=_0xb937bb[_0x2ac662(0x131)](0x0,_0x5f45ff)[_0x2ac662(0xf5)](),_0x435959=_0xb937bb['slice'](_0x5f45ff+0x1)[_0x2ac662(0xf5)]();_0x3a0796[_0xb55148]=_0x435959;}if(_0x352ae5['cdpEndpoint']!==undefined&&_0x352ae5['cdpEndpoint'][_0x2ac662(0xf5)]()==='')throw new Error(_0x4f6e19['HcHxd']);if(_0x352ae5['cdpEndpoint']&&_0x352ae5['url'])throw new Error(_0x4f6e19[_0x2ac662(0x127)]);const _0x19b978=Boolean(_0x352ae5[_0x2ac662(0xe1)]),_0x1cd3d6=isInteractive();if(!_0x1cd3d6&&!_0x352ae5[_0x2ac662(0xbb)]&&!_0x19b978&&!_0x352ae5['skipAuth'])throw new Error(_0x4f6e19['JfWBI']);if(_0x19b978){const _0x4bdbf6=_0x352ae5[_0x2ac662(0xe1)];console[_0x2ac662(0xc1)](_0x2ac662(0x110)),console['log'](_0x2ac662(0x11b)+_0x4bdbf6);const _0x4d9f98={'cdpEndpoint':_0x4bdbf6,'isElectron':!![]};_0x4f6e19[_0x2ac662(0x10b)](Object['keys'](_0x3a0796)[_0x2ac662(0x132)],0x0)&&(_0x4d9f98['setupHeaders']=_0x3a0796);await _0x4f6e19['tmoiU'](createUnconfiguredCloudProfile,_0x1aa808,_0x4d9f98);try{_0x4f6e19[_0x2ac662(0xb9)](setProfileOverride,process['cwd'](),_0x1aa808,_0x2ac662(0xe1),_0x4bdbf6),setProfileOverride(process['cwd'](),_0x1aa808,_0x4f6e19['VHcyp'],!![]);}catch(_0x494b45){console[_0x2ac662(0x134)]('\x0a\x20\x20Cloud\x20profile\x20created,\x20but\x20failed\x20to\x20write\x20per-cwd\x20CDP\x20override\x20to\x20projects.json:\x20'+(_0x494b45 instanceof Error?_0x494b45[_0x2ac662(0xe7)]:String(_0x494b45)));}console['log']('✓\x20Cloud\x20profile\x20\x27'+_0x1aa808+'\x27\x20created\x20(CDP).'),await sweepOrphansBestEffort(_0x1aa808),await markActive(_0x1aa808);return;}if(_0x352ae5[_0x2ac662(0xdd)]){const _0x430769={};_0x352ae5['url']&&(_0x430769[_0x2ac662(0xef)]=_0x352ae5[_0x2ac662(0xbb)]);Object[_0x2ac662(0x10c)](_0x3a0796)[_0x2ac662(0x132)]>0x0&&(_0x430769['setupHeaders']=_0x3a0796);await createUnconfiguredCloudProfile(_0x1aa808,_0x430769),console[_0x2ac662(0xc1)]('✓\x20Profile\x20\x27'+_0x1aa808+'\x27\x20created\x20(no\x20session).\x0a'+('\x20\x20When\x20you\x27re\x20ready\x20to\x20log\x20in,\x20run\x20`ranger\x20profile\x20add\x20'+_0x1aa808+'`\x20again\x20without\x20--skip-auth.')),await _0x4f6e19['eYyjY'](sweepOrphansBestEffort,_0x1aa808),await markActive(_0x1aa808);return;}if(_0x352ae5['url']){const _0x19a2f5=_0x352ae5[_0x2ac662(0xbb)],_0x5b2171=await _0x4f6e19[_0x2ac662(0x10f)](checkUrlReachability,_0x19a2f5);if(!_0x5b2171['ok']&&!_0x352ae5['force'])throw new Error('Could\x20not\x20reach\x20'+_0x19a2f5+':\x20'+_0x5b2171[_0x2ac662(0x134)]+_0x2ac662(0xc2));!_0x5b2171['ok']&&_0x352ae5['force']&&console[_0x2ac662(0xc1)](_0x2ac662(0xf1)+_0x19a2f5+':\x20'+_0x5b2171['error']+_0x2ac662(0xeb));}else{console[_0x2ac662(0xc1)](_0x4f6e19[_0x2ac662(0xd2)]),console['log'](_0x4f6e19['BkWKG']),console['log'](_0x2ac662(0x11a));let _0x192d75='',_0x48210d=![];while(!![]){const _0x2bd887=await _0x4b9a76['prompt']([{'type':'input','name':_0x4f6e19['NZKSe'],'message':_0x48210d?_0x4f6e19['eEwKM']:_0x4f6e19['jlckv'],'default':_0x192d75||'http://localhost:3000'}]);_0x192d75=_0x2bd887['baseUrl'];const _0xe16b91=await checkUrlReachability(_0x192d75);if(_0xe16b91['ok'])break;const _0x25c8d5=/^[a-zA-Z][\w+.-]*:\/\//['test'](_0x192d75),_0x18390d=_0xe16b91[_0x2ac662(0xe6)]&&!_0x25c8d5,_0x31333b=_0x18390d?_0x2ac662(0x106)+_0x192d75:null;_0x48210d=!![],console['log']('\x0a\x20\x20Could\x20not\x20reach\x20'+_0x192d75+':\x20'+_0xe16b91[_0x2ac662(0x134)]);_0x31333b&&console['log']('\x20\x20Did\x20you\x20mean\x20'+_0x31333b+'?');const {action:_0x64783b}=await _0x4b9a76[_0x2ac662(0x120)]([{'type':_0x4f6e19[_0x2ac662(0x128)],'name':_0x4f6e19['mRwNy'],'message':_0x4f6e19[_0x2ac662(0x125)],'choices':[..._0x31333b?[{'name':_0x2ac662(0xf9)+_0x31333b,'value':_0x4f6e19['ukEOH']}]:[],{'name':'Enter\x20a\x20different\x20URL','value':_0x4f6e19[_0x2ac662(0x100)]},{'name':_0x4f6e19['nJYXg'],'value':'continue'}]}]);if(_0x4f6e19['zPPIL'](_0x64783b,_0x4f6e19['ukEOH'])&&_0x31333b){_0x192d75=_0x31333b;const _0x2dfb88=await checkUrlReachability(_0x192d75);if(_0x2dfb88['ok'])break;console[_0x2ac662(0xc1)]('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0x192d75+':\x20'+_0x2dfb88['error']);}else{if(_0x4f6e19['eUbNW'](_0x64783b,'continue'))break;}}_0x352ae5={..._0x352ae5,'url':_0x192d75};}let _0x3d6fb9=![];try{_0x3d6fb9=await _0x4f6e19[_0x2ac662(0x108)](tryAutoRouteCloudProfile,_0x1aa808,_0x352ae5['url'],_0x352ae5,_0x1cd3d6,_0x197046);}catch(_0x1f4dcd){console['error'](_0x2ac662(0x119)+_0x1aa808+_0x2ac662(0xf6)+(_0x1f4dcd instanceof Error?_0x1f4dcd[_0x2ac662(0xe7)]:_0x4f6e19[_0x2ac662(0x10f)](String,_0x1f4dcd))),process[_0x2ac662(0xf2)](0x1);}!_0x3d6fb9&&process[_0x2ac662(0xf2)](0x1),await markActive(_0x1aa808);}
@@ -1 +1 @@
1
- (function(_0x23795c,_0x3cbeb3){var _0x52ae33=_0x2cf2,_0x5c6c48=_0x23795c();while(!![]){try{var _0x3afbe3=-parseInt(_0x52ae33(0x8b))/0x1*(parseInt(_0x52ae33(0x8a))/0x2)+-parseInt(_0x52ae33(0x84))/0x3+parseInt(_0x52ae33(0x91))/0x4*(-parseInt(_0x52ae33(0x85))/0x5)+parseInt(_0x52ae33(0x80))/0x6*(parseInt(_0x52ae33(0x86))/0x7)+-parseInt(_0x52ae33(0x90))/0x8+parseInt(_0x52ae33(0x87))/0x9*(parseInt(_0x52ae33(0x8f))/0xa)+-parseInt(_0x52ae33(0x8d))/0xb*(-parseInt(_0x52ae33(0x8e))/0xc);if(_0x3afbe3===_0x3cbeb3)break;else _0x5c6c48['push'](_0x5c6c48['shift']());}catch(_0x584597){_0x5c6c48['push'](_0x5c6c48['shift']());}}}(_0x3a82,0xc2651));export async function authEncrypt(_0x4ac325){var _0x49fd5e=_0x2cf2,_0x25e53d={'PMaMD':function(_0x4fc0d9,_0x4534c5){return _0x4fc0d9+_0x4534c5;},'ylJRV':_0x49fd5e(0x88),'eWmHD':_0x49fd5e(0x82)};console['error'](_0x25e53d[_0x49fd5e(0x81)](_0x25e53d['PMaMD']('ranger\x20profile\x20encrypt-auth\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x0a'+_0x49fd5e(0x8c)+'\x0a',_0x49fd5e(0x83))+'\x20\x20ranger\x20profile\x20add\x20<name>\x0a'+'\x0a'+_0x25e53d['ylJRV'],_0x25e53d[_0x49fd5e(0x92)])),process[_0x49fd5e(0x89)](0x1);}function _0x2cf2(_0x58bf7c,_0x41d4f4){_0x58bf7c=_0x58bf7c-0x80;var _0x3a826b=_0x3a82();var _0x2cf21b=_0x3a826b[_0x58bf7c];return _0x2cf21b;}function _0x3a82(){var _0x1ee158=['\x20\x20https://docs.ranger.net/main/concepts/profiles','To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','1765725VZZFXV','5uQeOxN','21OeqZbD','401553CQafvU','For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','exit','2pVZzrC','1495609NJHpdk','session\x20state\x20for\x20you,\x20so\x20encrypted\x20on-disk\x20auth\x20is\x20unnecessary.\x0a','132lhKoij','3131532GXXUnL','90pZgMcr','4826736qMpqmk','2312428MDgVRa','eWmHD','1057578wTAIuN','PMaMD'];_0x3a82=function(){return _0x1ee158;};return _0x3a82();}
1
+ (function(_0x4063e7,_0x2ef8bb){var _0x23a1bc=_0x3f81,_0x2b00ff=_0x4063e7();while(!![]){try{var _0x260cfb=-parseInt(_0x23a1bc(0x17e))/0x1*(-parseInt(_0x23a1bc(0x18b))/0x2)+-parseInt(_0x23a1bc(0x18a))/0x3+-parseInt(_0x23a1bc(0x185))/0x4*(-parseInt(_0x23a1bc(0x180))/0x5)+parseInt(_0x23a1bc(0x189))/0x6*(parseInt(_0x23a1bc(0x17b))/0x7)+parseInt(_0x23a1bc(0x17a))/0x8*(-parseInt(_0x23a1bc(0x182))/0x9)+parseInt(_0x23a1bc(0x17f))/0xa+-parseInt(_0x23a1bc(0x183))/0xb*(parseInt(_0x23a1bc(0x184))/0xc);if(_0x260cfb===_0x2ef8bb)break;else _0x2b00ff['push'](_0x2b00ff['shift']());}catch(_0x3ec848){_0x2b00ff['push'](_0x2b00ff['shift']());}}}(_0x3d10,0xef5e4));function _0x3f81(_0x420ce5,_0x5eae1b){_0x420ce5=_0x420ce5-0x17a;var _0x3d1072=_0x3d10();var _0x3f8196=_0x3d1072[_0x420ce5];return _0x3f8196;}export async function authEncrypt(_0x6ab018){var _0x139ae2=_0x3f81,_0x48f67e={'WAgFI':function(_0x1d6d31,_0x2bf4a3){return _0x1d6d31+_0x2bf4a3;},'Vrdgq':function(_0x3b2c0b,_0x17f968){return _0x3b2c0b+_0x17f968;},'iadSr':function(_0x3c8074,_0xf1d89e){return _0x3c8074+_0xf1d89e;},'tAEuq':_0x139ae2(0x188),'YxJbh':_0x139ae2(0x181),'czpEc':'\x20\x20ranger\x20profile\x20add\x20<name>\x0a','LAvex':'\x20\x20https://docs.ranger.net/main/concepts/profiles'};console['error'](_0x48f67e['WAgFI'](_0x48f67e[_0x139ae2(0x17c)](_0x48f67e['iadSr']('ranger\x20profile\x20encrypt-auth\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x0a',_0x48f67e['tAEuq'])+'\x0a',_0x48f67e[_0x139ae2(0x186)])+_0x48f67e['czpEc'],'\x0a')+_0x139ae2(0x187)+_0x48f67e[_0x139ae2(0x17d)]),process['exit'](0x1);}function _0x3d10(){var _0x1259bf=['5DEqWLf','17495160ifHeRH','925745GBWfaO','To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','3619953NEDpyZ','1298nKhIbB','177864eyOmCX','8xNlxTe','YxJbh','For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','session\x20state\x20for\x20you,\x20so\x20encrypted\x20on-disk\x20auth\x20is\x20unnecessary.\x0a','24auOxst','207372NBWkJW','627258eWjoCI','24EHPPZp','555212llUzrr','Vrdgq','LAvex'];_0x3d10=function(){return _0x1259bf;};return _0x3d10();}
@@ -1 +1 @@
1
- function _0x3137(_0x1bc46a,_0x4f0409){_0x1bc46a=_0x1bc46a-0x15f;const _0x323c9d=_0x323c();let _0x3137ea=_0x323c9d[_0x1bc46a];return _0x3137ea;}const _0x31edde=_0x3137;(function(_0x2f1cdc,_0x200645){const _0x32d8e7=_0x3137,_0x3fc53c=_0x2f1cdc();while(!![]){try{const _0x2af653=parseInt(_0x32d8e7(0x194))/0x1+-parseInt(_0x32d8e7(0x192))/0x2*(-parseInt(_0x32d8e7(0x169))/0x3)+-parseInt(_0x32d8e7(0x164))/0x4*(parseInt(_0x32d8e7(0x198))/0x5)+parseInt(_0x32d8e7(0x175))/0x6*(parseInt(_0x32d8e7(0x168))/0x7)+parseInt(_0x32d8e7(0x16b))/0x8*(-parseInt(_0x32d8e7(0x16c))/0x9)+-parseInt(_0x32d8e7(0x16a))/0xa*(parseInt(_0x32d8e7(0x197))/0xb)+parseInt(_0x32d8e7(0x19a))/0xc*(parseInt(_0x32d8e7(0x162))/0xd);if(_0x2af653===_0x200645)break;else _0x3fc53c['push'](_0x3fc53c['shift']());}catch(_0x1db2d8){_0x3fc53c['push'](_0x3fc53c['shift']());}}}(_0x323c,0xb583c));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{spawn}from'child_process';import{deleteAllCredentials}from'./utils/keychain.js';import{getProjectRoot,getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=[_0x31edde(0x16f),'feature-tracker',_0x31edde(0x17a),'e2e-test-recommender'],opencodePluginName=_0x31edde(0x179);function parseJsonc(_0xb74690){const _0x1f288d=_0x31edde,_0x5aed1a=_0xb74690['replace'](/\/\*[\s\S]*?\*\//g,''),_0x4275e4=_0x5aed1a['replace'](/^\s*\/\/.*$/gm,''),_0x5bb850=_0x4275e4[_0x1f288d(0x163)](/,\s*([}\]])/g,'$1');return JSON['parse'](_0x5bb850);}async function removeOpencodePluginConfig(_0x36e79d){const _0x3b81bb=_0x31edde,_0x311a51={'rrOON':function(_0x421212,_0x30e19a){return _0x421212!==_0x30e19a;},'nUgft':_0x3b81bb(0x186),'MusiB':_0x3b81bb(0x17b),'HpUTO':function(_0x372a6d,_0x392315){return _0x372a6d===_0x392315;},'lnaKa':function(_0x413be4,_0x59f173){return _0x413be4+_0x59f173;}};if(!existsSync(_0x36e79d))return![];let _0x39bd8c;try{const _0x51a77c=await readFile(_0x36e79d,_0x311a51['MusiB']);_0x39bd8c=parseJsonc(_0x51a77c);}catch{return![];}const _0xc652b=Array[_0x3b81bb(0x18f)](_0x39bd8c['plugin'])?_0x39bd8c['plugin']:[];if(_0xc652b['length']===0x0)return![];const _0x4f3dfb=_0xc652b[_0x3b81bb(0x189)](_0x183265=>{const _0xbd3c5b=_0x3b81bb;if(_0x311a51[_0xbd3c5b(0x183)](typeof _0x183265,_0x311a51['nUgft']))return!![];return _0x183265!==opencodePluginName;});if(_0x311a51['HpUTO'](_0x4f3dfb[_0x3b81bb(0x18b)],_0xc652b[_0x3b81bb(0x18b)]))return![];return _0x4f3dfb[_0x3b81bb(0x18b)]===0x0?delete _0x39bd8c[_0x3b81bb(0x185)]:_0x39bd8c[_0x3b81bb(0x185)]=_0x4f3dfb,await writeFile(_0x36e79d,_0x311a51['lnaKa'](JSON[_0x3b81bb(0x18d)](_0x39bd8c,null,0x2),'\x0a')),!![];}async function uninstallClaudePlugin(_0x123e6f){const _0x4fbee0=_0x31edde,_0xc105d7={'rUsXE':function(_0x2476bb,_0x1401f9){return _0x2476bb(_0x1401f9);},'NoWKL':function(_0x39ccfc,_0x313916){return _0x39ccfc===_0x313916;},'VyvhM':_0x4fbee0(0x18e),'nVUWe':function(_0x71736a){return _0x71736a();},'CiVkO':function(_0x53bb05,_0x5e88ae){return _0x53bb05===_0x5e88ae;},'HGrPb':_0x4fbee0(0x173),'NTDlh':_0x4fbee0(0x187)};return new Promise(_0x588b5a=>{const _0x235e55=_0x4fbee0,_0xbce679=[_0x235e55(0x185),'uninstall',_0x235e55(0x180)];_0x123e6f&&_0xbce679[_0x235e55(0x165)]('--scope',_0x123e6f);const _0x4892ff=spawn('claude',_0xbce679,{'stdio':[_0xc105d7['VyvhM'],_0xc105d7['VyvhM'],_0xc105d7['VyvhM']],'cwd':_0x123e6f?_0xc105d7['nVUWe'](getProjectRoot):undefined,'shell':_0xc105d7[_0x235e55(0x196)](process['platform'],_0xc105d7[_0x235e55(0x16e)])});_0x4892ff['on'](_0xc105d7[_0x235e55(0x177)],_0x3cbd33=>{const _0x2a8484=_0x235e55;_0xc105d7[_0x2a8484(0x17e)](_0x588b5a,_0xc105d7[_0x2a8484(0x190)](_0x3cbd33,0x0));}),_0x4892ff['on']('error',()=>{_0x588b5a(![]);});});}function _0x323c(){const _0x5ea634=['stringify','ignore','isArray','NoWKL','✓\x20Removed\x20stored\x20credentials','2RpdKhn','mNzlU','804769xFyNmI','trailhead','CiVkO','5816129tlsLVX','25IuEvEJ','✓\x20Removed\x20user\x20skill:\x20','24srTHaH','claude','FpiEV','✓\x20Removed\x20OpenCode\x20user\x20skill:\x20','user','3611894aGNjMS','replace','231004bvLDxm','push','\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','log','2807gcGgqE','1077213gnKvuh','10UfwWXn','1308520sjdXBw','54aKGyBK','platform','HGrPb','ranger','cpvJV','marketplace','xCXgR','win32','QMMiV','12312fQbMzU','DvLSy','NTDlh','✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','@ranger-testing/opencode-plugin','bug-bash','utf-8','kHjnM','opencode.json','rUsXE','UKlnW','ranger@trailhead','YuYet','xwdvO','rrOON','project','plugin','string','close','✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','filter','hCpHQ','length','Nothing\x20to\x20clean\x20up.\x0a'];_0x323c=function(){return _0x5ea634;};return _0x323c();}async function removeMarketplace(){const _0x2a2167=_0x31edde,_0xb47f03={'hCpHQ':function(_0x183e1f,_0x3065a1){return _0x183e1f(_0x3065a1);},'eQVYO':function(_0x5c7163,_0x377bd1,_0xda03b4,_0x5d8f75){return _0x5c7163(_0x377bd1,_0xda03b4,_0x5d8f75);},'jggEF':_0x2a2167(0x171),'tXcba':_0x2a2167(0x18e),'BPVdx':_0x2a2167(0x173),'gKOQe':_0x2a2167(0x187)};return new Promise(_0x10f8c0=>{const _0x176b37=_0x2a2167,_0x26e2f3=_0xb47f03['eQVYO'](spawn,_0x176b37(0x19b),['plugin',_0xb47f03['jggEF'],'remove',_0x176b37(0x195)],{'stdio':[_0x176b37(0x18e),_0x176b37(0x18e),_0xb47f03['tXcba']],'shell':process[_0x176b37(0x16d)]===_0xb47f03['BPVdx']});_0x26e2f3['on'](_0xb47f03['gKOQe'],_0x30477b=>{_0x10f8c0(_0x30477b===0x0);}),_0x26e2f3['on']('error',()=>{const _0xb84dc8=_0x176b37;_0xb47f03[_0xb84dc8(0x18a)](_0x10f8c0,![]);});});}export async function clean(){const _0x165ff7=_0x31edde,_0x190281={'QMMiV':_0x165ff7(0x166),'yDRoc':function(_0x52ce61){return _0x52ce61();},'mNzlU':function(_0x551e5b,_0x3b1bd8){return _0x551e5b(_0x3b1bd8);},'kHjnM':function(_0x3e7096,_0x39a877,_0x3dcee9){return _0x3e7096(_0x39a877,_0x3dcee9);},'xwdvO':function(_0x1ee607,_0x3e2934){return _0x1ee607(_0x3e2934);},'DvLSy':function(_0x499bca,_0x5e32a8,_0xb17f4c){return _0x499bca(_0x5e32a8,_0xb17f4c);},'UKlnW':'project','sIjrd':function(_0x52df19,_0x14b16b){return _0x52df19(_0x14b16b);},'FpiEV':function(_0x49e77f,_0x146ba3){return _0x49e77f(_0x146ba3);},'YuYet':_0x165ff7(0x161),'gZJVk':function(_0xbd58c9,_0x103848,_0x2daab3){return _0xbd58c9(_0x103848,_0x2daab3);},'QBHFQ':function(_0x3cd201,_0x7a448d,_0x5fe71a){return _0x3cd201(_0x7a448d,_0x5fe71a);},'xCXgR':function(_0x128692,_0x20569e,_0x471eee){return _0x128692(_0x20569e,_0x471eee);},'cDETy':function(_0x318528,_0x4d347b){return _0x318528(_0x4d347b);},'LGAmi':'✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','cpvJV':_0x165ff7(0x178)};console['log'](_0x190281[_0x165ff7(0x174)]);let _0x90b263=![];try{await _0x190281['yDRoc'](deleteAllCredentials),console[_0x165ff7(0x167)](_0x165ff7(0x191)),_0x90b263=!![];}catch{}const _0x58cfcb=getCacheFile();_0x190281[_0x165ff7(0x193)](existsSync,_0x58cfcb)&&(await _0x190281['mNzlU'](rm,_0x58cfcb),_0x90b263=!![]);const _0x3f013b=getRangerDir();_0x190281['mNzlU'](existsSync,_0x3f013b)&&(await rm(_0x3f013b,{'recursive':!![]}),console['log']('✓\x20Removed\x20.ranger/\x20directory'),_0x90b263=!![]);const _0x357679=getProjectSkillsDir();for(const _0x39695c of skillsToRemove){const _0x5699c2=_0x190281[_0x165ff7(0x17c)](join,_0x357679,_0x39695c);_0x190281[_0x165ff7(0x182)](existsSync,_0x5699c2)&&(await rm(_0x5699c2,{'recursive':!![]}),console['log']('✓\x20Removed\x20project\x20skill:\x20'+_0x39695c),_0x90b263=!![]);}const _0x4b382b=_0x190281['yDRoc'](getUserSkillsDir);for(const _0x377060 of skillsToRemove){const _0x5dfc12=join(_0x4b382b,_0x377060);existsSync(_0x5dfc12)&&(await _0x190281[_0x165ff7(0x176)](rm,_0x5dfc12,{'recursive':!![]}),console[_0x165ff7(0x167)](_0x165ff7(0x199)+_0x377060),_0x90b263=!![]);}const _0x23fa77=_0x190281[_0x165ff7(0x193)](getOpencodeSkillsDir,_0x190281['UKlnW']);for(const _0x1e2fe4 of skillsToRemove){const _0x5a9983=join(_0x23fa77,_0x1e2fe4);_0x190281['sIjrd'](existsSync,_0x5a9983)&&(await rm(_0x5a9983,{'recursive':!![]}),console[_0x165ff7(0x167)]('✓\x20Removed\x20OpenCode\x20project\x20skill:\x20'+_0x1e2fe4),_0x90b263=!![]);}const _0x2323df=_0x190281[_0x165ff7(0x15f)](getOpencodeSkillsDir,_0x190281['YuYet']);for(const _0x557aab of skillsToRemove){const _0x218657=_0x190281['gZJVk'](join,_0x2323df,_0x557aab);existsSync(_0x218657)&&(await _0x190281['QBHFQ'](rm,_0x218657,{'recursive':!![]}),console['log'](_0x165ff7(0x160)+_0x557aab),_0x90b263=!![]);}const _0x317403=_0x190281[_0x165ff7(0x172)](join,_0x190281['cDETy'](getOpencodeConfigDir,_0x165ff7(0x184)),_0x165ff7(0x17d));await _0x190281['sIjrd'](removeOpencodePluginConfig,_0x317403)&&(console[_0x165ff7(0x167)](_0x190281['LGAmi']),_0x90b263=!![]);const _0x1d4e41=join(getOpencodeConfigDir(_0x190281[_0x165ff7(0x181)]),'opencode.json');await _0x190281[_0x165ff7(0x193)](removeOpencodePluginConfig,_0x1d4e41)&&(console[_0x165ff7(0x167)](_0x190281[_0x165ff7(0x170)]),_0x90b263=!![]);const _0x38e0ce=await uninstallClaudePlugin();_0x38e0ce&&(console[_0x165ff7(0x167)]('✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)'),_0x90b263=!![]);const _0x209699=await uninstallClaudePlugin(_0x190281[_0x165ff7(0x17f)]);_0x209699&&(console[_0x165ff7(0x167)](_0x165ff7(0x188)),_0x90b263=!![]);const _0x50f7e9=await removeMarketplace();_0x50f7e9&&(console['log']('✓\x20Removed\x20trailhead\x20marketplace'),_0x90b263=!![]),_0x90b263?console[_0x165ff7(0x167)]('\x0a✅\x20Cleanup\x20complete!\x0a'):console[_0x165ff7(0x167)](_0x165ff7(0x18c));}
1
+ const _0x38e98f=_0x25fc;(function(_0x3b8761,_0x1bba15){const _0x5016c0=_0x25fc,_0x4f31cf=_0x3b8761();while(!![]){try{const _0x2d83c6=-parseInt(_0x5016c0(0xe1))/0x1*(parseInt(_0x5016c0(0xe3))/0x2)+-parseInt(_0x5016c0(0xd9))/0x3+-parseInt(_0x5016c0(0xdc))/0x4+-parseInt(_0x5016c0(0xb5))/0x5+parseInt(_0x5016c0(0xda))/0x6*(-parseInt(_0x5016c0(0xc9))/0x7)+parseInt(_0x5016c0(0xcd))/0x8+parseInt(_0x5016c0(0xbd))/0x9;if(_0x2d83c6===_0x1bba15)break;else _0x4f31cf['push'](_0x4f31cf['shift']());}catch(_0x31b9ac){_0x4f31cf['push'](_0x4f31cf['shift']());}}}(_0x5eb8,0x409fc));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 _0x25fc(_0x46a84b,_0x55d83e){_0x46a84b=_0x46a84b-0xb5;const _0x5eb8a7=_0x5eb8();let _0x25fc89=_0x5eb8a7[_0x46a84b];return _0x25fc89;}import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=[_0x38e98f(0xdb),_0x38e98f(0xbf),_0x38e98f(0xcc),'e2e-test-recommender'],opencodePluginName='@ranger-testing/opencode-plugin';function parseJsonc(_0xe2dc12){const _0x2165a5=_0x38e98f,_0x1be86d=_0xe2dc12[_0x2165a5(0xd1)](/\/\*[\s\S]*?\*\//g,''),_0x181420=_0x1be86d[_0x2165a5(0xd1)](/^\s*\/\/.*$/gm,''),_0x5b2046=_0x181420['replace'](/,\s*([}\]])/g,'$1');return JSON[_0x2165a5(0xd6)](_0x5b2046);}function _0x5eb8(){const _0x402be5=['1730732TnGlFG','length','✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','✓\x20Removed\x20OpenCode\x20project\x20skill:\x20','RYFiL','1NuodeK','YSiOp','672766dfjWoB','uninstall','MiQnh','ranger@trailhead','LSOsb','PYPWW','179260yYnXmm','MJzLC','\x0a✅\x20Cleanup\x20complete!\x0a','--scope','AvISV','✓\x20Removed\x20project\x20skill:\x20','✓\x20Removed\x20trailhead\x20marketplace','utf-8','14645367CmkkHw','✓\x20Removed\x20user\x20skill:\x20','feature-tracker','soAft','XVuEL','platform','✓\x20Removed\x20stored\x20credentials','umjQF','LTZUh','QWmse','opencode.json','eRrfC','1464358UxcUFZ','vKWAi','win32','bug-bash','2542328KAaHas','claude','HdzBL','close','replace','project','WIHBG','marketplace','log','parse','plugin','string','1371144texvwC','12rzsKim','ranger'];_0x5eb8=function(){return _0x402be5;};return _0x5eb8();}async function removeOpencodePluginConfig(_0x3b1e20){const _0x291d8c=_0x38e98f,_0x22c9ba={'AvISV':function(_0x10c32c,_0x1e6b81){return _0x10c32c!==_0x1e6b81;},'SnyWL':function(_0x3f1ee7,_0x26ebe9,_0x18efb9){return _0x3f1ee7(_0x26ebe9,_0x18efb9);},'oDUUZ':function(_0x228b77,_0x4b8f52){return _0x228b77===_0x4b8f52;},'RnaPu':function(_0x2a100e,_0x191a1f){return _0x2a100e+_0x191a1f;}};if(!existsSync(_0x3b1e20))return![];let _0x15f3c2;try{const _0x185c96=await _0x22c9ba['SnyWL'](readFile,_0x3b1e20,_0x291d8c(0xbc));_0x15f3c2=parseJsonc(_0x185c96);}catch{return![];}const _0x225773=Array['isArray'](_0x15f3c2['plugin'])?_0x15f3c2[_0x291d8c(0xd7)]:[];if(_0x22c9ba['oDUUZ'](_0x225773['length'],0x0))return![];const _0x3517e0=_0x225773['filter'](_0x3bb934=>{const _0x59d67b=_0x291d8c;if(typeof _0x3bb934!==_0x59d67b(0xd8))return!![];return _0x22c9ba[_0x59d67b(0xb9)](_0x3bb934,opencodePluginName);});if(_0x3517e0['length']===_0x225773[_0x291d8c(0xdd)])return![];return _0x22c9ba['oDUUZ'](_0x3517e0[_0x291d8c(0xdd)],0x0)?delete _0x15f3c2[_0x291d8c(0xd7)]:_0x15f3c2['plugin']=_0x3517e0,await writeFile(_0x3b1e20,_0x22c9ba['RnaPu'](JSON['stringify'](_0x15f3c2,null,0x2),'\x0a')),!![];}async function uninstallClaudePlugin(_0x454334){const _0x4ecff1=_0x38e98f,_0x1b021b={'QmEvb':function(_0x579359,_0x50f688){return _0x579359===_0x50f688;},'MiQnh':_0x4ecff1(0xd7),'LTZUh':_0x4ecff1(0xe4),'MJzLC':_0x4ecff1(0xe6),'fdaRh':_0x4ecff1(0xb8),'pGqjL':'ignore','XVuEL':function(_0x41a902){return _0x41a902();},'bOEzu':_0x4ecff1(0xcb),'soAft':'close','cgcZn':'error'};return new Promise(_0x5378c4=>{const _0x1c6256=_0x4ecff1,_0x57b423={'umjQF':function(_0x72a394,_0x277f91){return _0x1b021b['QmEvb'](_0x72a394,_0x277f91);}},_0xf86af5=[_0x1b021b[_0x1c6256(0xe5)],_0x1b021b[_0x1c6256(0xc5)],_0x1b021b[_0x1c6256(0xb6)]];_0x454334&&_0xf86af5['push'](_0x1b021b['fdaRh'],_0x454334);const _0x4fd99a=spawn('claude',_0xf86af5,{'stdio':['ignore','ignore',_0x1b021b['pGqjL']],'cwd':_0x454334?_0x1b021b[_0x1c6256(0xc1)](getProjectRoot):undefined,'shell':_0x1b021b['QmEvb'](process['platform'],_0x1b021b['bOEzu'])});_0x4fd99a['on'](_0x1b021b[_0x1c6256(0xc0)],_0xcd9b82=>{const _0x36813f=_0x1c6256;_0x5378c4(_0x57b423[_0x36813f(0xc4)](_0xcd9b82,0x0));}),_0x4fd99a['on'](_0x1b021b['cgcZn'],()=>{_0x5378c4(![]);});});}async function removeMarketplace(){const _0x1053e9=_0x38e98f,_0x40aaf5={'yTWxv':function(_0xf4b035,_0x578a15){return _0xf4b035(_0x578a15);},'eRrfC':_0x1053e9(0xce),'zPCoS':_0x1053e9(0xd7),'PYPWW':'remove','qAIIL':'trailhead','WIHBG':'ignore','YSiOp':_0x1053e9(0xcb),'LSOsb':_0x1053e9(0xd0)};return new Promise(_0x14f7cf=>{const _0x4c85ea=_0x1053e9,_0x3877dd={'HdzBL':function(_0x51e793,_0x56f90a){return _0x51e793===_0x56f90a;}},_0x3057be=spawn(_0x40aaf5[_0x4c85ea(0xc8)],[_0x40aaf5['zPCoS'],_0x4c85ea(0xd4),_0x40aaf5[_0x4c85ea(0xe8)],_0x40aaf5['qAIIL']],{'stdio':[_0x40aaf5['WIHBG'],'ignore',_0x40aaf5[_0x4c85ea(0xd3)]],'shell':process[_0x4c85ea(0xc2)]===_0x40aaf5[_0x4c85ea(0xe2)]});_0x3057be['on'](_0x40aaf5[_0x4c85ea(0xe7)],_0x2e3efc=>{const _0x3cba5e=_0x4c85ea;_0x14f7cf(_0x3877dd[_0x3cba5e(0xcf)](_0x2e3efc,0x0));}),_0x3057be['on']('error',()=>{_0x40aaf5['yTWxv'](_0x14f7cf,![]);});});}export async function clean(){const _0x2c4eb1=_0x38e98f,_0x53fd3d={'GiCiz':'\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','ezBSF':function(_0x29935a,_0x389482){return _0x29935a(_0x389482);},'QWmse':function(_0x5dd880){return _0x5dd880();},'IkkTV':function(_0x2ef260,_0x445d3c,_0x471c8f){return _0x2ef260(_0x445d3c,_0x471c8f);},'RoiVZ':function(_0x32a0f5,_0x3d82f7){return _0x32a0f5(_0x3d82f7);},'THTIy':function(_0xa07b52,_0x293437,_0x276bb2){return _0xa07b52(_0x293437,_0x276bb2);},'vKWAi':_0x2c4eb1(0xd2),'RYFiL':function(_0x1ce8ba,_0x1ea2fc){return _0x1ce8ba(_0x1ea2fc);},'YZQyn':'user','qBtEd':'opencode.json','nuyNl':function(_0x53ac57,_0x5d316e,_0x3e1799){return _0x53ac57(_0x5d316e,_0x3e1799);},'OgaHL':function(_0x36b057,_0x24e79d){return _0x36b057(_0x24e79d);},'yznQK':'✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','MiRyW':_0x2c4eb1(0xb7),'VwiOv':'Nothing\x20to\x20clean\x20up.\x0a'};console[_0x2c4eb1(0xd5)](_0x53fd3d['GiCiz']);let _0x5315ca=![];try{await deleteAllCredentials(),console['log'](_0x2c4eb1(0xc3)),_0x5315ca=!![];}catch{}const _0x47c236=getCacheFile();existsSync(_0x47c236)&&(await _0x53fd3d['ezBSF'](rm,_0x47c236),_0x5315ca=!![]);const _0x2955cc=_0x53fd3d['QWmse'](getRangerDir);existsSync(_0x2955cc)&&(await rm(_0x2955cc,{'recursive':!![]}),console['log']('✓\x20Removed\x20.ranger/\x20directory'),_0x5315ca=!![]);const _0x553a91=getProjectSkillsDir();for(const _0x4d395f of skillsToRemove){const _0xf4d8f7=_0x53fd3d['IkkTV'](join,_0x553a91,_0x4d395f);_0x53fd3d['RoiVZ'](existsSync,_0xf4d8f7)&&(await _0x53fd3d['THTIy'](rm,_0xf4d8f7,{'recursive':!![]}),console[_0x2c4eb1(0xd5)](_0x2c4eb1(0xba)+_0x4d395f),_0x5315ca=!![]);}const _0x5f3a76=_0x53fd3d[_0x2c4eb1(0xc6)](getUserSkillsDir);for(const _0x8130b7 of skillsToRemove){const _0x23adc2=join(_0x5f3a76,_0x8130b7);existsSync(_0x23adc2)&&(await rm(_0x23adc2,{'recursive':!![]}),console['log'](_0x2c4eb1(0xbe)+_0x8130b7),_0x5315ca=!![]);}const _0x1743dc=getOpencodeSkillsDir(_0x53fd3d[_0x2c4eb1(0xca)]);for(const _0x699c81 of skillsToRemove){const _0x1c5ac6=join(_0x1743dc,_0x699c81);existsSync(_0x1c5ac6)&&(await rm(_0x1c5ac6,{'recursive':!![]}),console[_0x2c4eb1(0xd5)](_0x2c4eb1(0xdf)+_0x699c81),_0x5315ca=!![]);}const _0x6ad93f=_0x53fd3d[_0x2c4eb1(0xe0)](getOpencodeSkillsDir,_0x53fd3d['YZQyn']);for(const _0x1ea127 of skillsToRemove){const _0x41483e=join(_0x6ad93f,_0x1ea127);existsSync(_0x41483e)&&(await rm(_0x41483e,{'recursive':!![]}),console[_0x2c4eb1(0xd5)]('✓\x20Removed\x20OpenCode\x20user\x20skill:\x20'+_0x1ea127),_0x5315ca=!![]);}const _0x197fdf=_0x53fd3d['IkkTV'](join,getOpencodeConfigDir(_0x53fd3d['vKWAi']),_0x53fd3d['qBtEd']);await _0x53fd3d['RoiVZ'](removeOpencodePluginConfig,_0x197fdf)&&(console[_0x2c4eb1(0xd5)](_0x2c4eb1(0xde)),_0x5315ca=!![]);const _0x3e2338=_0x53fd3d['nuyNl'](join,_0x53fd3d['OgaHL'](getOpencodeConfigDir,_0x53fd3d['YZQyn']),_0x2c4eb1(0xc7));await removeOpencodePluginConfig(_0x3e2338)&&(console[_0x2c4eb1(0xd5)](_0x53fd3d['yznQK']),_0x5315ca=!![]);const _0x447cdb=await _0x53fd3d['QWmse'](uninstallClaudePlugin);_0x447cdb&&(console[_0x2c4eb1(0xd5)]('✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)'),_0x5315ca=!![]);const _0x30177c=await uninstallClaudePlugin(_0x53fd3d[_0x2c4eb1(0xca)]);_0x30177c&&(console['log']('✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)'),_0x5315ca=!![]);const _0x1ab826=await removeMarketplace();_0x1ab826&&(console['log'](_0x2c4eb1(0xbb)),_0x5315ca=!![]),_0x5315ca?console['log'](_0x53fd3d['MiRyW']):console['log'](_0x53fd3d['VwiOv']);}
@@ -1 +1 @@
1
- (function(_0xb969e4,_0x1b3fad){const _0x35b887=_0x29f0,_0x3fb292=_0xb969e4();while(!![]){try{const _0x496839=-parseInt(_0x35b887(0x13a))/0x1*(parseInt(_0x35b887(0x12c))/0x2)+parseInt(_0x35b887(0x147))/0x3*(parseInt(_0x35b887(0x138))/0x4)+-parseInt(_0x35b887(0x118))/0x5*(-parseInt(_0x35b887(0x130))/0x6)+-parseInt(_0x35b887(0x136))/0x7+parseInt(_0x35b887(0x142))/0x8+parseInt(_0x35b887(0x132))/0x9*(parseInt(_0x35b887(0x11d))/0xa)+parseInt(_0x35b887(0x128))/0xb;if(_0x496839===_0x1b3fad)break;else _0x3fb292['push'](_0x3fb292['shift']());}catch(_0x44d9b2){_0x3fb292['push'](_0x3fb292['shift']());}}}(_0x5319,0x2ed0c));import{existsSync}from'fs';function _0x29f0(_0x3f2836,_0x5059a7){_0x3f2836=_0x3f2836-0x116;const _0x5319ca=_0x5319();let _0x29f03e=_0x5319ca[_0x3f2836];return _0x29f03e;}import{loadSettings,getNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';import{fetchCloudProfile}from'./utils/cloudProfile.js';import{mergeCloudProfileSettings,readProfileOverrides,resetProfileOverrides,setProfileOverride,unsetProfileOverride}from'./utils/projectsConfig.js';const BOOLEAN_KEYS=['headless','allowInsecureLocalhost'];function parseLocalValue(_0xa6a511,_0x46367f){const _0x11a0a5=_0x29f0,_0x443a66={'JvPHU':function(_0x312a31,_0x51fb4d){return _0x312a31===_0x51fb4d;},'TMFir':function(_0xa7f475,_0x2688ec){return _0xa7f475===_0x2688ec;}};if(BOOLEAN_KEYS[_0x11a0a5(0x13b)](_0xa6a511)){if(_0x443a66['JvPHU'](_0x46367f,'true'))return!![];if(_0x443a66[_0x11a0a5(0x14d)](_0x46367f,_0x11a0a5(0x14b)))return![];throw new Error(_0x11a0a5(0x149)+_0xa6a511+':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22');}return _0x46367f;}function parseOverrideValue(_0x4c241f){const _0x2a674c=_0x29f0,_0x15747a={'IwRVt':function(_0x41220d,_0x2e8e67){return _0x41220d===_0x2e8e67;},'ZgNMU':_0x2a674c(0x133),'HBixm':function(_0x19bddc,_0x23b665){return _0x19bddc(_0x23b665);}};if(_0x15747a['IwRVt'](_0x4c241f,'true'))return!![];if(_0x15747a[_0x2a674c(0x145)](_0x4c241f,_0x2a674c(0x14b)))return![];if(_0x4c241f===_0x15747a[_0x2a674c(0x139)])return null;if(_0x4c241f===_0x2a674c(0x13d))return undefined;if(/^-?\d+$/[_0x2a674c(0x134)](_0x4c241f)){const _0xd39a53=_0x15747a['HBixm'](Number,_0x4c241f);if(Number['isSafeInteger'](_0xd39a53))return _0xd39a53;}if(/^-?\d+\.\d+$/['test'](_0x4c241f)){const _0x46c212=Number(_0x4c241f);if(!Number[_0x2a674c(0x146)](_0x46c212))return _0x46c212;}const _0x421a86=_0x4c241f['trim']();if(_0x421a86[_0x2a674c(0x124)]('{')&&_0x421a86[_0x2a674c(0x11f)]('}')||_0x421a86[_0x2a674c(0x124)]('[')&&_0x421a86[_0x2a674c(0x11f)](']'))try{return JSON['parse'](_0x421a86);}catch{}return _0x4c241f;}async function resolveProfileTarget(_0x27ad82){const _0x48ebc7=_0x29f0,_0x136c27={'MrHQC':function(_0x58d2f9,_0x375f0f){return _0x58d2f9(_0x375f0f);},'KuwTE':_0x48ebc7(0x135),'gbrui':_0x48ebc7(0x11e)},_0x2a0f58=_0x136c27['MrHQC'](existsSync,getEnvDir(_0x27ad82));let _0x3eae5a=![];try{const _0x5df513=await _0x136c27['MrHQC'](fetchCloudProfile,_0x27ad82);_0x3eae5a=_0x136c27[_0x48ebc7(0x12d)](Boolean,_0x5df513);}catch{}if(_0x3eae5a)return{'kind':_0x136c27['KuwTE'],'alsoExistsElsewhere':_0x2a0f58};if(_0x2a0f58)return{'kind':_0x136c27['gbrui'],'alsoExistsElsewhere':![]};throw new Error('Profile\x20\x22'+_0x27ad82+_0x48ebc7(0x12b)+_0x27ad82);}function printDualExistsHint(_0x5540d4){const _0x52612c=_0x29f0;console[_0x52612c(0x137)](_0x52612c(0x12f)+_0x5540d4+'\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.');}function getProjectPath(){const _0x494cec=_0x29f0;return process[_0x494cec(0x131)]();}async function loadEffectiveCloudSettings(_0x2809fd){const _0x38e9be=_0x29f0,_0x161dab={'lwOzA':function(_0x4dda21,_0x335b69){return _0x4dda21(_0x335b69);},'awwDM':function(_0xec064f,_0x51b1a3,_0x3a8bb7){return _0xec064f(_0x51b1a3,_0x3a8bb7);},'KCSNH':function(_0x2b004d,_0x17f13f,_0x5896be){return _0x2b004d(_0x17f13f,_0x5896be);}},_0x43dcd3=await _0x161dab['lwOzA'](fetchCloudProfile,_0x2809fd),_0x16b9d6=_0x161dab[_0x38e9be(0x148)](readProfileOverrides,getProjectPath(),_0x2809fd);return _0x161dab[_0x38e9be(0x141)](mergeCloudProfileSettings,_0x43dcd3?.[_0x38e9be(0x123)]??{},_0x16b9d6??undefined);}export async function configSet(_0x2047e5,_0x1a4a15,_0x5cbbf8){const _0x5b5ce9=_0x29f0,_0x10d0c4={'eFyZe':'cloud','DkCow':function(_0x30e77f,_0x5143db,_0x2c49f6,_0x1baec1,_0xeadbf6){return _0x30e77f(_0x5143db,_0x2c49f6,_0x1baec1,_0xeadbf6);},'hsGvt':function(_0x5ce4bc){return _0x5ce4bc();}},_0x8a3e2a=await resolveProfileTarget(_0x2047e5);if(_0x8a3e2a['kind']===_0x10d0c4['eFyZe']){if(_0x8a3e2a[_0x5b5ce9(0x127)])printDualExistsHint(_0x2047e5);const _0x2fe33c=parseOverrideValue(_0x5cbbf8);_0x10d0c4[_0x5b5ce9(0x11b)](setProfileOverride,_0x10d0c4['hsGvt'](getProjectPath),_0x2047e5,_0x1a4a15,_0x2fe33c),console[_0x5b5ce9(0x137)](_0x5b5ce9(0x122)+_0x1a4a15+_0x5b5ce9(0x143)+JSON[_0x5b5ce9(0x144)](_0x2fe33c)+_0x5b5ce9(0x116)+_0x2047e5+'\x22');return;}const _0x531a83=parseLocalValue(_0x1a4a15,_0x5cbbf8);_0x10d0c4[_0x5b5ce9(0x11b)](setProfileOverride,getProjectPath(),_0x2047e5,_0x1a4a15,_0x531a83),console['log']('Set\x20'+_0x1a4a15+'\x20=\x20'+_0x531a83+_0x5b5ce9(0x116)+_0x2047e5+'\x22');}export async function configGet(_0x468de3,_0x5ca046){const _0x144267=_0x29f0,_0x53f78a={'uLUCm':function(_0x2b5c7c,_0x49d1db){return _0x2b5c7c(_0x49d1db);},'QhUMW':function(_0x258acf,_0x2d1802){return _0x258acf===_0x2d1802;},'WeMup':function(_0x3f1d1f,_0x36c4f9,_0x56ec6b){return _0x3f1d1f(_0x36c4f9,_0x56ec6b);},'keOab':'object','ulrvY':function(_0x1181a3,_0x4639d8){return _0x1181a3===_0x4639d8;}},_0x459c83=await _0x53f78a[_0x144267(0x12e)](resolveProfileTarget,_0x468de3);if(_0x53f78a['QhUMW'](_0x459c83[_0x144267(0x129)],'cloud')){const _0x53114d=await loadEffectiveCloudSettings(_0x468de3),_0x3fb685=_0x53f78a['WeMup'](getNestedValue,_0x53114d,_0x5ca046);if(_0x53f78a['QhUMW'](_0x3fb685,undefined))console[_0x144267(0x137)]('(not\x20set)');else typeof _0x3fb685===_0x53f78a['keOab']?console[_0x144267(0x137)](JSON['stringify'](_0x3fb685,null,0x2)):console['log'](_0x3fb685);return;}const _0x30d1da=await loadSettings(_0x468de3),_0x21727b=getNestedValue(_0x30d1da,_0x5ca046);if(_0x53f78a[_0x144267(0x14e)](_0x21727b,undefined))console['log']('(not\x20set)');else _0x53f78a['ulrvY'](typeof _0x21727b,_0x53f78a[_0x144267(0x13f)])?console[_0x144267(0x137)](JSON[_0x144267(0x144)](_0x21727b,null,0x2)):console['log'](_0x21727b);}export async function configList(_0x48ffde){const _0x592652=_0x29f0,_0x972ffb={'fgUyA':function(_0x20d764,_0x5a86e6){return _0x20d764===_0x5a86e6;},'nNEDn':function(_0x39572d,_0x22d17c){return _0x39572d(_0x22d17c);},'dGFtp':function(_0x3d3f13,_0x498456){return _0x3d3f13(_0x498456);}},_0x43e2bc=await resolveProfileTarget(_0x48ffde);if(_0x972ffb[_0x592652(0x14c)](_0x43e2bc[_0x592652(0x129)],_0x592652(0x135))){const _0x53b87f=await _0x972ffb['nNEDn'](loadEffectiveCloudSettings,_0x48ffde);if(!_0x53b87f||Object[_0x592652(0x117)](_0x53b87f)['length']===0x0){console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x48ffde+'\x22');return;}console[_0x592652(0x137)](JSON['stringify'](_0x53b87f,null,0x2));return;}const _0x4a3d0c=_0x972ffb['dGFtp'](getSettingsPath,_0x48ffde);if(!_0x972ffb[_0x592652(0x11a)](existsSync,_0x4a3d0c)){console[_0x592652(0x137)](_0x592652(0x120)+_0x48ffde+'\x22');return;}const _0x3a3893=await loadSettings(_0x48ffde),_0x2a623b=formatSettings(_0x3a3893);!_0x2a623b?console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x48ffde+'\x22'):console[_0x592652(0x137)](_0x2a623b);}export async function configUnset(_0x271626,_0x189f3e){const _0x8d783a=_0x29f0,_0x568242={'lrZzS':function(_0x126503,_0xc3da5d){return _0x126503(_0xc3da5d);},'CuRUm':function(_0xd17c6d,_0x40709c,_0x344c99,_0xe02be9){return _0xd17c6d(_0x40709c,_0x344c99,_0xe02be9);},'xhoSv':function(_0x500822){return _0x500822();},'pkqJa':function(_0x4ce7d0,_0x5d0769,_0x6042e1){return _0x4ce7d0(_0x5d0769,_0x6042e1);}},_0x2e098c=await resolveProfileTarget(_0x271626);if(_0x2e098c[_0x8d783a(0x129)]===_0x8d783a(0x135)){if(_0x2e098c[_0x8d783a(0x127)])_0x568242[_0x8d783a(0x119)](printDualExistsHint,_0x271626);const _0x502c41=_0x568242['CuRUm'](unsetProfileOverride,_0x568242[_0x8d783a(0x14a)](getProjectPath),_0x271626,_0x189f3e);_0x502c41?console['log'](_0x8d783a(0x126)+_0x189f3e+_0x8d783a(0x116)+_0x271626+'\x22'):console['log']('Key\x20\x22'+_0x189f3e+'\x22\x20not\x20found');return;}const _0x193403=unsetProfileOverride(_0x568242['xhoSv'](getProjectPath),_0x271626,_0x189f3e);if(_0x193403){console['log']('Removed\x20'+_0x189f3e);return;}const _0x326fd2=await _0x568242['lrZzS'](loadSettings,_0x271626),_0x111cfc=_0x568242['pkqJa'](deleteNestedValue,_0x326fd2,_0x189f3e);_0x111cfc?console['log']('Key\x20\x22'+_0x189f3e+'\x22\x20lives\x20in\x20the\x20legacy\x20settings\x20file\x20for\x20\x22'+_0x271626+_0x8d783a(0x13e)):console['log'](_0x8d783a(0x11c)+_0x189f3e+_0x8d783a(0x140));}export async function configReset(_0x54277d){const _0x206342=_0x29f0,_0x5c3a49={'bxgnO':function(_0x434fe1,_0x43782e){return _0x434fe1(_0x43782e);},'WVxSq':'cloud','jsOKd':function(_0x192add,_0x2de81a,_0x339e07){return _0x192add(_0x2de81a,_0x339e07);}},_0x21f6d4=await _0x5c3a49['bxgnO'](resolveProfileTarget,_0x54277d);if(_0x21f6d4[_0x206342(0x129)]===_0x5c3a49[_0x206342(0x125)]){_0x5c3a49[_0x206342(0x121)](resetProfileOverrides,getProjectPath(),_0x54277d),console['log']('Cleared\x20local\x20overrides\x20for\x20\x22'+_0x54277d+'\x22');return;}console[_0x206342(0x137)]('\x22'+_0x54277d+_0x206342(0x13c)+_0x54277d+_0x206342(0x12a));}function _0x5319(){const _0x4e707d=['DkCow','Key\x20\x22','119530BSJZnR','local','endsWith','No\x20configuration\x20set\x20for\x20\x22','jsOKd','Set\x20','settings','startsWith','WVxSq','Removed\x20','alsoExistsElsewhere','554950bBJqSO','kind','\x20<key>\x22\x20to\x20remove\x20individual\x20values.','\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20','4GJEotZ','MrHQC','uLUCm','\x20\x20Note:\x20\x22','5358GSFlPy','cwd','189pRaaUq','null','test','cloud','2419277EBDYtz','log','1316hhPbWK','ZgNMU','116860vGrdqN','includes','\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20','undefined','\x22\x20and\x20cannot\x20be\x20unset;\x20the\x20legacy\x20tree\x20is\x20read-only\x20under\x20cloud\x20profiles.','keOab','\x22\x20not\x20found','KCSNH','1212224qFxeMo','\x20=\x20','stringify','IwRVt','isNaN','2127lMQdEe','awwDM','Invalid\x20value\x20for\x20','xhoSv','false','fgUyA','TMFir','QhUMW','\x20for\x20\x22','keys','475ntxstZ','lrZzS','dGFtp'];_0x5319=function(){return _0x4e707d;};return _0x5319();}
1
+ const _0x4a0655=_0x135d;(function(_0x2e0cca,_0x29c892){const _0x2af1f6=_0x135d,_0xf62a00=_0x2e0cca();while(!![]){try{const _0x258e70=parseInt(_0x2af1f6(0xe0))/0x1+parseInt(_0x2af1f6(0xc0))/0x2+parseInt(_0x2af1f6(0xb0))/0x3*(-parseInt(_0x2af1f6(0xda))/0x4)+parseInt(_0x2af1f6(0xbf))/0x5+-parseInt(_0x2af1f6(0xb1))/0x6*(parseInt(_0x2af1f6(0xb4))/0x7)+parseInt(_0x2af1f6(0xdb))/0x8+parseInt(_0x2af1f6(0xbe))/0x9*(-parseInt(_0x2af1f6(0xc7))/0xa);if(_0x258e70===_0x29c892)break;else _0xf62a00['push'](_0xf62a00['shift']());}catch(_0x436230){_0xf62a00['push'](_0xf62a00['shift']());}}}(_0x3f33,0x273eb));import{existsSync}from'fs';import{loadSettings,getNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';import{fetchCloudProfile}from'./utils/cloudProfile.js';import{mergeCloudProfileSettings,readProfileOverrides,resetProfileOverrides,setProfileOverride,unsetProfileOverride}from'./utils/projectsConfig.js';const BOOLEAN_KEYS=[_0x4a0655(0xb6),'allowInsecureLocalhost'];function parseLocalValue(_0x1b9593,_0x4b6df){const _0x388a4e=_0x4a0655,_0x39df40={'XfMEQ':function(_0x3b5db8,_0x2282ff){return _0x3b5db8===_0x2282ff;},'KVgmJ':_0x388a4e(0xc8)};if(BOOLEAN_KEYS[_0x388a4e(0xc3)](_0x1b9593)){if(_0x4b6df==='true')return!![];if(_0x39df40['XfMEQ'](_0x4b6df,_0x39df40['KVgmJ']))return![];throw new Error(_0x388a4e(0xde)+_0x1b9593+':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22');}return _0x4b6df;}function parseOverrideValue(_0xfffc55){const _0x57d47c=_0x4a0655,_0x3bf78e={'kicZY':'true','ZSXmu':function(_0x1c69dc,_0x199d6c){return _0x1c69dc===_0x199d6c;},'IOcOP':_0x57d47c(0xc8),'VkspA':'null','zrnfj':'undefined','WRtKX':function(_0x47cd95,_0x59252b){return _0x47cd95(_0x59252b);}};if(_0xfffc55===_0x3bf78e['kicZY'])return!![];if(_0x3bf78e[_0x57d47c(0xbb)](_0xfffc55,_0x3bf78e['IOcOP']))return![];if(_0xfffc55===_0x3bf78e['VkspA'])return null;if(_0xfffc55===_0x3bf78e[_0x57d47c(0xc4)])return undefined;if(/^-?\d+$/['test'](_0xfffc55)){const _0x9286f2=_0x3bf78e[_0x57d47c(0xc9)](Number,_0xfffc55);if(Number[_0x57d47c(0xae)](_0x9286f2))return _0x9286f2;}if(/^-?\d+\.\d+$/[_0x57d47c(0xca)](_0xfffc55)){const _0x29ffe3=Number(_0xfffc55);if(!Number[_0x57d47c(0xd3)](_0x29ffe3))return _0x29ffe3;}const _0x3f3d48=_0xfffc55['trim']();if(_0x3f3d48['startsWith']('{')&&_0x3f3d48[_0x57d47c(0xb7)]('}')||_0x3f3d48['startsWith']('[')&&_0x3f3d48['endsWith'](']'))try{return JSON[_0x57d47c(0xd6)](_0x3f3d48);}catch{}return _0xfffc55;}async function resolveProfileTarget(_0x291820){const _0x413d56=_0x4a0655,_0x16250c={'pdiBB':function(_0x38a4bc,_0x6c1ce4){return _0x38a4bc(_0x6c1ce4);},'HRuvY':_0x413d56(0xc1)},_0xb5a682=_0x16250c[_0x413d56(0xbc)](existsSync,_0x16250c['pdiBB'](getEnvDir,_0x291820));let _0x12cf69=![];try{const _0xfa0f8b=await fetchCloudProfile(_0x291820);_0x12cf69=Boolean(_0xfa0f8b);}catch{}if(_0x12cf69)return{'kind':_0x16250c['HRuvY'],'alsoExistsElsewhere':_0xb5a682};if(_0xb5a682)return{'kind':_0x413d56(0xb8),'alsoExistsElsewhere':![]};throw new Error('Profile\x20\x22'+_0x291820+'\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x291820);}function printDualExistsHint(_0x1569bd){const _0x475c8f=_0x4a0655;console['log']('\x20\x20Note:\x20\x22'+_0x1569bd+_0x475c8f(0xd5));}function _0x3f33(){const _0x467b67=['kkzuL','72444boICwv','2450240eLQkeX','vYspK','KpWnT','Invalid\x20value\x20for\x20','eyLJt','45988uYsaJF','settings','isSafeInteger','stringify','9AgrItz','341958LtGoXW','log','JspqJ','21EXzUIY','length','headless','endsWith','local','\x20for\x20\x22','fsYHv','ZSXmu','pdiBB','csqvi','412695JdBpyA','216545HbDrCE','622934mxJXkL','cloud','No\x20configuration\x20set\x20for\x20\x22','includes','zrnfj','pYBUw','WHbXL','70uqXobm','false','WRtKX','test','dAeFn','object','\x22\x20not\x20found','Set\x20','\x22\x20and\x20cannot\x20be\x20unset;\x20the\x20legacy\x20tree\x20is\x20read-only\x20under\x20cloud\x20profiles.','ikIIH','AFDvj','MiiIR','isNaN','kind','\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.','parse','XGKGo','aqxOB'];_0x3f33=function(){return _0x467b67;};return _0x3f33();}function getProjectPath(){return process['cwd']();}async function loadEffectiveCloudSettings(_0x590890){const _0x9e1723=_0x4a0655,_0x356665={'OqcmO':function(_0x2c34c9){return _0x2c34c9();},'ffNNt':function(_0x44deed,_0x23c612,_0x1b3c33){return _0x44deed(_0x23c612,_0x1b3c33);},'kkzuL':function(_0x20da15,_0x2e959){return _0x20da15??_0x2e959;}},_0x558c90=await fetchCloudProfile(_0x590890),_0x445acf=readProfileOverrides(_0x356665['OqcmO'](getProjectPath),_0x590890);return _0x356665['ffNNt'](mergeCloudProfileSettings,_0x558c90?.[_0x9e1723(0xad)]??{},_0x356665[_0x9e1723(0xd9)](_0x445acf,undefined));}function _0x135d(_0x5e2ea8,_0x3071cd){_0x5e2ea8=_0x5e2ea8-0xad;const _0x3f33ae=_0x3f33();let _0x135da8=_0x3f33ae[_0x5e2ea8];return _0x135da8;}export async function configSet(_0x14ac1b,_0xef4dfc,_0x526ded){const _0x3fcea9=_0x4a0655,_0x567bc6={'JspqJ':function(_0x31ec85,_0x1d77ac){return _0x31ec85(_0x1d77ac);},'oATgM':function(_0x1fab02,_0x317463,_0x25a9d7,_0x17ff69,_0x11df01){return _0x1fab02(_0x317463,_0x25a9d7,_0x17ff69,_0x11df01);},'TqSuK':function(_0x258a62){return _0x258a62();}},_0x1ccfd2=await _0x567bc6[_0x3fcea9(0xb3)](resolveProfileTarget,_0x14ac1b);if(_0x1ccfd2['kind']===_0x3fcea9(0xc1)){if(_0x1ccfd2['alsoExistsElsewhere'])printDualExistsHint(_0x14ac1b);const _0x3075d1=parseOverrideValue(_0x526ded);setProfileOverride(getProjectPath(),_0x14ac1b,_0xef4dfc,_0x3075d1),console['log'](_0x3fcea9(0xce)+_0xef4dfc+'\x20=\x20'+JSON['stringify'](_0x3075d1)+_0x3fcea9(0xb9)+_0x14ac1b+'\x22');return;}const _0x42886d=parseLocalValue(_0xef4dfc,_0x526ded);_0x567bc6['oATgM'](setProfileOverride,_0x567bc6['TqSuK'](getProjectPath),_0x14ac1b,_0xef4dfc,_0x42886d),console['log']('Set\x20'+_0xef4dfc+'\x20=\x20'+_0x42886d+_0x3fcea9(0xb9)+_0x14ac1b+'\x22');}export async function configGet(_0x516c32,_0xdca702){const _0x59c4a2=_0x4a0655,_0x49bcab={'XGKGo':function(_0x206713,_0x31171f){return _0x206713(_0x31171f);},'MiiIR':function(_0x550325,_0xc85f50){return _0x550325===_0xc85f50;},'csqvi':_0x59c4a2(0xc1),'LVwUg':function(_0x1cc3fe,_0x3a594c,_0x67736){return _0x1cc3fe(_0x3a594c,_0x67736);},'dAeFn':function(_0x491f26,_0x501357){return _0x491f26===_0x501357;},'ikIIH':_0x59c4a2(0xcc),'vsSmQ':function(_0x16613f,_0x49964f){return _0x16613f===_0x49964f;}},_0x1b00ab=await _0x49bcab[_0x59c4a2(0xd7)](resolveProfileTarget,_0x516c32);if(_0x49bcab[_0x59c4a2(0xd2)](_0x1b00ab['kind'],_0x49bcab[_0x59c4a2(0xbd)])){const _0x58bb46=await loadEffectiveCloudSettings(_0x516c32),_0x473578=_0x49bcab['LVwUg'](getNestedValue,_0x58bb46,_0xdca702);if(_0x473578===undefined)console[_0x59c4a2(0xb2)]('(not\x20set)');else _0x49bcab[_0x59c4a2(0xcb)](typeof _0x473578,_0x49bcab[_0x59c4a2(0xd0)])?console[_0x59c4a2(0xb2)](JSON[_0x59c4a2(0xaf)](_0x473578,null,0x2)):console[_0x59c4a2(0xb2)](_0x473578);return;}const _0x44a1ed=await loadSettings(_0x516c32),_0x776875=_0x49bcab['LVwUg'](getNestedValue,_0x44a1ed,_0xdca702);if(_0x49bcab['vsSmQ'](_0x776875,undefined))console[_0x59c4a2(0xb2)]('(not\x20set)');else typeof _0x776875==='object'?console['log'](JSON['stringify'](_0x776875,null,0x2)):console[_0x59c4a2(0xb2)](_0x776875);}export async function configList(_0x5af39c){const _0x907ffc=_0x4a0655,_0x4f558c={'vYspK':function(_0x12daf4,_0x212b39){return _0x12daf4(_0x212b39);},'veCNh':function(_0x2c68af,_0x1bfab7){return _0x2c68af===_0x1bfab7;},'eyLJt':function(_0x6f294a,_0x1af544){return _0x6f294a(_0x1af544);}},_0x313421=await _0x4f558c[_0x907ffc(0xdc)](resolveProfileTarget,_0x5af39c);if(_0x313421[_0x907ffc(0xd4)]===_0x907ffc(0xc1)){const _0x18d00e=await loadEffectiveCloudSettings(_0x5af39c);if(!_0x18d00e||_0x4f558c['veCNh'](Object['keys'](_0x18d00e)[_0x907ffc(0xb5)],0x0)){console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x5af39c+'\x22');return;}console['log'](JSON['stringify'](_0x18d00e,null,0x2));return;}const _0x4dc2d5=_0x4f558c['vYspK'](getSettingsPath,_0x5af39c);if(!_0x4f558c[_0x907ffc(0xdf)](existsSync,_0x4dc2d5)){console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x5af39c+'\x22');return;}const _0x2f7341=await _0x4f558c['eyLJt'](loadSettings,_0x5af39c),_0x46c72d=formatSettings(_0x2f7341);!_0x46c72d?console[_0x907ffc(0xb2)](_0x907ffc(0xc2)+_0x5af39c+'\x22'):console[_0x907ffc(0xb2)](_0x46c72d);}export async function configUnset(_0x2451b3,_0x4d4cf1){const _0x5cdbbb=_0x4a0655,_0x1b5d3a={'aqxOB':function(_0x2ee008,_0x17db96){return _0x2ee008(_0x17db96);},'AFDvj':_0x5cdbbb(0xc1),'fsYHv':function(_0x3be08e,_0x10e4ef){return _0x3be08e(_0x10e4ef);},'pYBUw':function(_0x304399,_0x4cd748,_0x42fd26,_0x298160){return _0x304399(_0x4cd748,_0x42fd26,_0x298160);},'hjPhg':function(_0xc3c90a,_0x264719,_0x5908af,_0x30cd29){return _0xc3c90a(_0x264719,_0x5908af,_0x30cd29);},'WHbXL':function(_0x4ac5ee){return _0x4ac5ee();}},_0x1966b6=await _0x1b5d3a[_0x5cdbbb(0xd8)](resolveProfileTarget,_0x2451b3);if(_0x1966b6['kind']===_0x1b5d3a[_0x5cdbbb(0xd1)]){if(_0x1966b6['alsoExistsElsewhere'])_0x1b5d3a[_0x5cdbbb(0xba)](printDualExistsHint,_0x2451b3);const _0xb63732=_0x1b5d3a[_0x5cdbbb(0xc5)](unsetProfileOverride,getProjectPath(),_0x2451b3,_0x4d4cf1);_0xb63732?console['log']('Removed\x20'+_0x4d4cf1+_0x5cdbbb(0xb9)+_0x2451b3+'\x22'):console[_0x5cdbbb(0xb2)]('Key\x20\x22'+_0x4d4cf1+_0x5cdbbb(0xcd));return;}const _0x2e4d5c=_0x1b5d3a['hjPhg'](unsetProfileOverride,_0x1b5d3a[_0x5cdbbb(0xc6)](getProjectPath),_0x2451b3,_0x4d4cf1);if(_0x2e4d5c){console['log']('Removed\x20'+_0x4d4cf1);return;}const _0x10e3a7=await _0x1b5d3a['aqxOB'](loadSettings,_0x2451b3),_0x1041bb=deleteNestedValue(_0x10e3a7,_0x4d4cf1);_0x1041bb?console[_0x5cdbbb(0xb2)]('Key\x20\x22'+_0x4d4cf1+'\x22\x20lives\x20in\x20the\x20legacy\x20settings\x20file\x20for\x20\x22'+_0x2451b3+_0x5cdbbb(0xcf)):console['log']('Key\x20\x22'+_0x4d4cf1+'\x22\x20not\x20found');}export async function configReset(_0xb31228){const _0x37c84d=_0x4a0655,_0xb68690={'KpWnT':function(_0x4c82b9,_0x254e06){return _0x4c82b9===_0x254e06;},'aWJJE':_0x37c84d(0xc1),'fWklY':function(_0x2cb4d8){return _0x2cb4d8();}},_0x37b7d7=await resolveProfileTarget(_0xb31228);if(_0xb68690[_0x37c84d(0xdd)](_0x37b7d7['kind'],_0xb68690['aWJJE'])){resetProfileOverrides(_0xb68690['fWklY'](getProjectPath),_0xb31228),console[_0x37c84d(0xb2)]('Cleared\x20local\x20overrides\x20for\x20\x22'+_0xb31228+'\x22');return;}console['log']('\x22'+_0xb31228+'\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20'+_0xb31228+'\x20<key>\x22\x20to\x20remove\x20individual\x20values.');}
@@ -1 +1 @@
1
- (function(_0xae8faf,_0xff3abe){const _0x52cd37=_0x49ff,_0x2490a2=_0xae8faf();while(!![]){try{const _0x3e13c6=-parseInt(_0x52cd37(0x13b))/0x1*(-parseInt(_0x52cd37(0x13d))/0x2)+-parseInt(_0x52cd37(0x13f))/0x3+parseInt(_0x52cd37(0x146))/0x4+-parseInt(_0x52cd37(0x147))/0x5+parseInt(_0x52cd37(0x143))/0x6+-parseInt(_0x52cd37(0x142))/0x7+parseInt(_0x52cd37(0x145))/0x8*(-parseInt(_0x52cd37(0x144))/0x9);if(_0x3e13c6===_0xff3abe)break;else _0x2490a2['push'](_0x2490a2['shift']());}catch(_0x31328a){_0x2490a2['push'](_0x2490a2['shift']());}}}(_0x548a,0x4034e));import _0x3d8e7a from'inquirer';import{deleteCloudProfile,fetchCloudProfile}from'./utils/cloudProfile.js';import{isInteractive}from'./utils/cloudProfileSession.js';import{clearLastProfile,resetProfileOverrides}from'./utils/projectsConfig.js';function _0x49ff(_0x4c1bef,_0x5a4736){_0x4c1bef=_0x4c1bef-0x138;const _0x548ae9=_0x548a();let _0x49ff19=_0x548ae9[_0x4c1bef];return _0x49ff19;}function _0x548a(){const _0x10151c=['88ZgBZHT','1781256ouBebY','1435890dtknMF','\x22\x20to\x20confirm\x20deletion:','log','Cloud\x20profile\x20\x22','cwd','GAJBL','3HbLRbS','input','304406kDAWLn','yes','819831WQtdLH','Type\x20\x22','\x22\x20for\x20everyone\x20in\x20your\x20organization.','162806DtLNzT','1371414NGuWAk','232191jfFsAy'];_0x548a=function(){return _0x10151c;};return _0x548a();}export async function deleteProfile(_0x3c360a,_0x3dc330={}){const _0x3cf545=_0x49ff,_0x30b370={'DWQoX':'Profile\x20deletion\x20requires\x20an\x20interactive\x20terminal\x20so\x20the\x20profile\x20name\x20can\x20be\x20typed\x20for\x20confirmation.\x20Pass\x20--yes\x20to\x20skip\x20confirmation.','DavDZ':function(_0x3c10e0,_0x9a827a){return _0x3c10e0(_0x9a827a);},'GAJBL':function(_0x211203,_0x39fe28,_0x9771eb){return _0x211203(_0x39fe28,_0x9771eb);}},_0x2c94ad=await fetchCloudProfile(_0x3c360a);if(!_0x2c94ad)throw new Error(_0x3cf545(0x138)+_0x3c360a+'\x22\x20not\x20found.');if(!_0x3dc330[_0x3cf545(0x13e)]&&!isInteractive())throw new Error(_0x30b370['DWQoX']);console[_0x3cf545(0x149)]('\x0aWarning:\x20this\x20deletes\x20the\x20shared\x20cloud\x20profile\x20\x22'+_0x3c360a+_0x3cf545(0x141));if(!_0x3dc330[_0x3cf545(0x13e)]){const {confirmation:_0x1f5d6c}=await _0x3d8e7a['prompt']([{'type':_0x3cf545(0x13c),'name':'confirmation','message':_0x3cf545(0x140)+_0x3c360a+_0x3cf545(0x148)}]);if(_0x1f5d6c!==_0x3c360a)throw new Error('Profile\x20deletion\x20cancelled:\x20confirmation\x20did\x20not\x20match.');}await _0x30b370['DavDZ'](deleteCloudProfile,_0x3c360a),_0x30b370['GAJBL'](resetProfileOverrides,process[_0x3cf545(0x139)](),_0x3c360a),_0x30b370[_0x3cf545(0x13a)](clearLastProfile,process[_0x3cf545(0x139)](),_0x3c360a),console[_0x3cf545(0x149)]('✓\x20Deleted\x20cloud\x20profile\x20\x22'+_0x3c360a+'\x22.');}
1
+ (function(_0x4523fb,_0x40e174){const _0x3c9d3e=_0x3635,_0x47cc58=_0x4523fb();while(!![]){try{const _0x17abbc=-parseInt(_0x3c9d3e(0x1f4))/0x1*(-parseInt(_0x3c9d3e(0x1f9))/0x2)+parseInt(_0x3c9d3e(0x1f8))/0x3+parseInt(_0x3c9d3e(0x1ef))/0x4+parseInt(_0x3c9d3e(0x1f1))/0x5+parseInt(_0x3c9d3e(0x1f2))/0x6*(parseInt(_0x3c9d3e(0x1e9))/0x7)+-parseInt(_0x3c9d3e(0x1e7))/0x8*(-parseInt(_0x3c9d3e(0x1f5))/0x9)+-parseInt(_0x3c9d3e(0x1ea))/0xa*(parseInt(_0x3c9d3e(0x1eb))/0xb);if(_0x17abbc===_0x40e174)break;else _0x47cc58['push'](_0x47cc58['shift']());}catch(_0x351f38){_0x47cc58['push'](_0x47cc58['shift']());}}}(_0x5855,0x82aa2));function _0x5855(){const _0x1af3d9=['Profile\x20deletion\x20requires\x20an\x20interactive\x20terminal\x20so\x20the\x20profile\x20name\x20can\x20be\x20typed\x20for\x20confirmation.\x20Pass\x20--yes\x20to\x20skip\x20confirmation.','1cjBgnA','657NKURjY','✓\x20Deleted\x20cloud\x20profile\x20\x22','cwd','11787TbMZLZ','1313826EmBRRx','yes','55736TCibLz','spuJr','173663tHSSWv','27798980WZNjeW','11LLrWkU','confirmation','JHDkR','Profile\x20deletion\x20cancelled:\x20confirmation\x20did\x20not\x20match.','2812864FTAdHn','log','4731355kkDxxL','120HGWhyN'];_0x5855=function(){return _0x1af3d9;};return _0x5855();}import _0x29d492 from'inquirer';import{deleteCloudProfile,fetchCloudProfile}from'./utils/cloudProfile.js';import{isInteractive}from'./utils/cloudProfileSession.js';function _0x3635(_0x2d6565,_0xbc777e){_0x2d6565=_0x2d6565-0x1e7;const _0x5855c9=_0x5855();let _0x363581=_0x5855c9[_0x2d6565];return _0x363581;}import{clearLastProfile,resetProfileOverrides}from'./utils/projectsConfig.js';export async function deleteProfile(_0x2eb9e9,_0x396edb={}){const _0x577d81=_0x3635,_0xc266e5={'AeIDF':function(_0x496bce,_0x1faae8){return _0x496bce(_0x1faae8);},'KPIMM':'input','spuJr':function(_0x650e52,_0x3f0a82){return _0x650e52!==_0x3f0a82;},'yUEfY':_0x577d81(0x1ee),'JHDkR':function(_0x161d24,_0x2c9250,_0xfb156b){return _0x161d24(_0x2c9250,_0xfb156b);}},_0x351261=await _0xc266e5['AeIDF'](fetchCloudProfile,_0x2eb9e9);if(!_0x351261)throw new Error('Cloud\x20profile\x20\x22'+_0x2eb9e9+'\x22\x20not\x20found.');if(!_0x396edb[_0x577d81(0x1fa)]&&!isInteractive())throw new Error(_0x577d81(0x1f3));console[_0x577d81(0x1f0)]('\x0aWarning:\x20this\x20deletes\x20the\x20shared\x20cloud\x20profile\x20\x22'+_0x2eb9e9+'\x22\x20for\x20everyone\x20in\x20your\x20organization.');if(!_0x396edb['yes']){const {confirmation:_0x50c323}=await _0x29d492['prompt']([{'type':_0xc266e5['KPIMM'],'name':_0x577d81(0x1ec),'message':'Type\x20\x22'+_0x2eb9e9+'\x22\x20to\x20confirm\x20deletion:'}]);if(_0xc266e5[_0x577d81(0x1e8)](_0x50c323,_0x2eb9e9))throw new Error(_0xc266e5['yUEfY']);}await deleteCloudProfile(_0x2eb9e9),resetProfileOverrides(process[_0x577d81(0x1f7)](),_0x2eb9e9),_0xc266e5[_0x577d81(0x1ed)](clearLastProfile,process[_0x577d81(0x1f7)](),_0x2eb9e9),console[_0x577d81(0x1f0)](_0x577d81(0x1f6)+_0x2eb9e9+'\x22.');}
@@ -1 +1 @@
1
- const _0x49e249=_0x1a08;(function(_0x1c3555,_0x5e6ed1){const _0x38f584=_0x1a08,_0x314fe8=_0x1c3555();while(!![]){try{const _0x206ff2=parseInt(_0x38f584(0x1cd))/0x1+parseInt(_0x38f584(0x1e8))/0x2*(parseInt(_0x38f584(0x1cf))/0x3)+parseInt(_0x38f584(0x1e2))/0x4*(-parseInt(_0x38f584(0x1d5))/0x5)+-parseInt(_0x38f584(0x1d0))/0x6+parseInt(_0x38f584(0x1e1))/0x7+-parseInt(_0x38f584(0x1db))/0x8*(-parseInt(_0x38f584(0x1ed))/0x9)+parseInt(_0x38f584(0x1ea))/0xa*(-parseInt(_0x38f584(0x1f2))/0xb);if(_0x206ff2===_0x5e6ed1)break;else _0x314fe8['push'](_0x314fe8['shift']());}catch(_0x510041){_0x314fe8['push'](_0x314fe8['shift']());}}}(_0xad07,0xc74b6));import{readdir,stat}from'fs/promises';import{join}from'path';function _0xad07(){const _0x7df645=['has','1034usNZZm','\x0aLocal\x20Profiles\x20(legacy):','kMCcV','reports','rbJIb','VEGRy','environmentKey','565130JZZdZf','eLivn','3ZifTPQ','7409574LwTGXD','baseUrl','KyQGP','startsWith','sessionUpdatedAt','3290SkZfNR','seRBK','length','sort','includes','xgrfy','8pNYbWn','isDirectory','log','legacy','push','error','10171392IflWNF','4504buKNUb','aYMKQ','\x20\x20\x20\x20\x20\x20URL:\x20','settings.json','local','\x20[cloud]','971186kQaGWa','sessions','137570sjrVSF','\x0a*\x20=\x20active\x20profile','cached\x20(updated\x20','14233734STEImp','bug-bashes','REoHS','name'];_0xad07=function(){return _0x7df645;};return _0xad07();}function _0x1a08(_0x500314,_0x138299){_0x500314=_0x500314-0x1ca;const _0xad0797=_0xad07();let _0x1a0882=_0xad0797[_0x500314];return _0x1a0882;}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=[_0x49e249(0x1e9),_0x49e249(0x1ee),_0x49e249(0x1f5),'local','ci'];export async function getEnvNames(){const _0x9fa998=_0x49e249,_0x48b059={'xgrfy':function(_0x59fbe2){return _0x59fbe2();},'seRBK':function(_0x3585ad,_0xc68948){return _0x3585ad(_0xc68948);},'kwojS':function(_0x45612d){return _0x45612d();},'KyQGP':function(_0x50af1c,_0x196051){return _0x50af1c(_0x196051);},'REoHS':function(_0x52442a,_0x456dbb){return _0x52442a(_0x456dbb);},'VEGRy':function(_0x35e0b6,_0x11a342,_0x1238dc){return _0x35e0b6(_0x11a342,_0x1238dc);},'eLivn':'.txt'},_0x4b46a9=_0x48b059[_0x9fa998(0x1da)](getRangerDir);if(!_0x48b059[_0x9fa998(0x1d6)](existsSync,_0x4b46a9))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x4fae7a=await _0x48b059['kwojS'](readActiveProfileName),_0x2eda1c=[],_0x4820e5={},_0x5837f0=join(_0x4b46a9,_0x9fa998(0x1e6));if(_0x48b059[_0x9fa998(0x1d2)](existsSync,_0x5837f0)){const _0x2e58db=await _0x48b059['seRBK'](readdir,_0x5837f0);for(const _0x12ae7b of _0x2e58db){const _0x35e0d7=join(_0x5837f0,_0x12ae7b),_0x3e0cbf=await _0x48b059[_0x9fa998(0x1ef)](stat,_0x35e0d7);_0x3e0cbf['isDirectory']()&&(_0x2eda1c[_0x9fa998(0x1df)](_0x12ae7b),_0x4820e5[_0x12ae7b]=_0x9fa998(0x1e6));}}const _0x2e2c31=join(_0x4b46a9,'ci');if(_0x48b059[_0x9fa998(0x1d6)](existsSync,_0x2e2c31)){const _0x1bed06=await readdir(_0x2e2c31);for(const _0x1f0daa of _0x1bed06){const _0x3f9e6f=_0x48b059['VEGRy'](join,_0x2e2c31,_0x1f0daa),_0x107ba0=await _0x48b059['KyQGP'](stat,_0x3f9e6f);_0x107ba0[_0x9fa998(0x1dc)]()&&(_0x2eda1c['push'](_0x1f0daa),_0x4820e5[_0x1f0daa]='ci');}}const _0xacb009=await readdir(_0x4b46a9);for(const _0xd0fd98 of _0xacb009){if(NON_ENV_DIRS[_0x9fa998(0x1d9)](_0xd0fd98))continue;if(_0xd0fd98[_0x9fa998(0x1d3)]('.'))continue;if(_0xd0fd98['endsWith'](_0x48b059[_0x9fa998(0x1ce)]))continue;const _0x5eccc0=_0x48b059['VEGRy'](join,_0x4b46a9,_0xd0fd98),_0x24bd92=await _0x48b059['seRBK'](stat,_0x5eccc0);_0x24bd92[_0x9fa998(0x1dc)]()&&existsSync(_0x48b059[_0x9fa998(0x1cb)](join,_0x5eccc0,_0x9fa998(0x1e5)))&&(!_0x2eda1c[_0x9fa998(0x1d9)](_0xd0fd98)&&(_0x2eda1c['push'](_0xd0fd98),_0x4820e5[_0xd0fd98]=_0x9fa998(0x1de)));}return{'envNames':_0x2eda1c,'activeEnv':_0x4fae7a,'envTypes':_0x4820e5};}export async function envList(){const _0x4e91a3=_0x49e249,_0x32f74e={'sHIgA':function(_0x10ef0){return _0x10ef0();},'YFHBn':function(_0xf5157a,_0x21738b){return _0xf5157a instanceof _0x21738b;},'rbJIb':function(_0x214da8,_0x4af89){return _0x214da8===_0x4af89;},'kMCcV':'\x0aNo\x20profiles\x20found.','oJdYv':'Run:\x20ranger\x20profile\x20add\x20<profile-name>','aYMKQ':_0x4e91a3(0x1f3),'yYFUJ':function(_0x2d1acd,_0x2b5d13){return _0x2d1acd(_0x2b5d13);},'BycIK':'\x0aCloud\x20Profiles:'},{envNames:_0x3eea5f,activeEnv:_0x1a27e1,envTypes:_0x33627a}=await _0x32f74e['sHIgA'](getEnvNames);let _0x822273=[];const _0x44a544=await _0x32f74e['sHIgA'](getToken);if(_0x44a544)try{_0x822273=await listCloudProfiles();}catch(_0x42fb4f){console[_0x4e91a3(0x1e0)]('\x0aWarning:\x20could\x20not\x20fetch\x20cloud\x20profiles:\x20'+(_0x32f74e['YFHBn'](_0x42fb4f,Error)?_0x42fb4f['message']:String(_0x42fb4f)));}if(_0x32f74e[_0x4e91a3(0x1ca)](_0x3eea5f['length'],0x0)&&_0x822273[_0x4e91a3(0x1d7)]===0x0){console[_0x4e91a3(0x1dd)](_0x32f74e[_0x4e91a3(0x1f4)]),console['log'](_0x32f74e['oJdYv']);return;}const _0x5c0b04=new Set(_0x822273['map'](_0x5a6853=>_0x5a6853['name']));if(_0x3eea5f[_0x4e91a3(0x1d7)]>0x0){console[_0x4e91a3(0x1dd)](_0x32f74e[_0x4e91a3(0x1e3)]);for(const _0x512c2b of _0x3eea5f[_0x4e91a3(0x1d8)]()){const _0x46608a=_0x32f74e['rbJIb'](_0x512c2b,_0x1a27e1)&&!_0x5c0b04[_0x4e91a3(0x1f1)](_0x512c2b),_0x3197f8=_0x33627a[_0x512c2b]||_0x4e91a3(0x1e6),_0x258a2b=await _0x32f74e['yYFUJ'](loadSettings,_0x512c2b),_0x1dd320=_0x3197f8==='legacy'?'':'\x20['+_0x3197f8+']';console['log']('\x20\x20'+(_0x46608a?'*\x20':'\x20\x20')+_0x512c2b+_0x1dd320),_0x258a2b['baseUrl']&&console[_0x4e91a3(0x1dd)](_0x4e91a3(0x1e4)+_0x258a2b[_0x4e91a3(0x1d1)]),_0x258a2b['environmentDetails']&&console[_0x4e91a3(0x1dd)]('\x20\x20\x20\x20\x20\x20Details:\x20'+_0x258a2b['environmentDetails']);}}if(_0x822273[_0x4e91a3(0x1d7)]>0x0){console[_0x4e91a3(0x1dd)](_0x32f74e['BycIK']);for(const _0x48b5c0 of _0x822273['sort']((_0x476d08,_0x6187a4)=>_0x476d08['name']['localeCompare'](_0x6187a4[_0x4e91a3(0x1f0)]))){const _0x452ff7=_0x48b5c0[_0x4e91a3(0x1f0)]===_0x1a27e1,_0x5e675a=_0x48b5c0[_0x4e91a3(0x1cc)]?'\x20('+_0x48b5c0[_0x4e91a3(0x1cc)]+')':'',_0x1cc67c=_0x48b5c0[_0x4e91a3(0x1d4)]?_0x4e91a3(0x1ec)+_0x48b5c0[_0x4e91a3(0x1d4)]+')':'no\x20session';console['log']('\x20\x20'+(_0x452ff7?'*\x20':'\x20\x20')+_0x48b5c0[_0x4e91a3(0x1f0)]+_0x4e91a3(0x1e7)+_0x5e675a),console[_0x4e91a3(0x1dd)]('\x20\x20\x20\x20\x20\x20Session:\x20'+_0x1cc67c);}}_0x1a27e1&&console[_0x4e91a3(0x1dd)](_0x4e91a3(0x1eb));}
1
+ function _0x8bb5(){const _0x377e9b=['XekWM','Jfbue','startsWith','2250115ZYqggq','QmHuA','174612pYfHnj','2302344hBvwpQ','\x20\x20\x20\x20\x20\x20URL:\x20','legacy','QpfCt','local','environmentKey','environmentDetails','GZnCU','push','sessions','name','3549159NkEdFx','bug-bashes','\x20\x20\x20\x20\x20\x20Details:\x20','sessionUpdatedAt','Run:\x20ranger\x20profile\x20add\x20<profile-name>','upmXB','pPRnj','454868JhxjQV','180372zuUGWP','isDirectory','\x0aCloud\x20Profiles:','length','log','16cARjTe','efhpS','143040ecMoYE','gRaZj','6SHAWHX','DMEqx'];_0x8bb5=function(){return _0x377e9b;};return _0x8bb5();}const _0x5bd76d=_0x5335;(function(_0x1cd02b,_0x3299a8){const _0x2266a6=_0x5335,_0xed9566=_0x1cd02b();while(!![]){try{const _0x40be25=parseInt(_0x2266a6(0xd2))/0x1+-parseInt(_0x2266a6(0xd1))/0x2+parseInt(_0x2266a6(0xbe))/0x3*(-parseInt(_0x2266a6(0xd7))/0x4)+parseInt(_0x2266a6(0xd9))/0x5+parseInt(_0x2266a6(0xdb))/0x6*(parseInt(_0x2266a6(0xbc))/0x7)+-parseInt(_0x2266a6(0xbf))/0x8+parseInt(_0x2266a6(0xca))/0x9;if(_0x40be25===_0x3299a8)break;else _0xed9566['push'](_0xed9566['shift']());}catch(_0x26f48c){_0xed9566['push'](_0xed9566['shift']());}}}(_0x8bb5,0x2b25d));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=[_0x5bd76d(0xc8),_0x5bd76d(0xcb),'reports',_0x5bd76d(0xc3),'ci'];function _0x5335(_0x1650a9,_0x40b6cf){_0x1650a9=_0x1650a9-0xb9;const _0x8bb534=_0x8bb5();let _0x53357d=_0x8bb534[_0x1650a9];return _0x53357d;}export async function getEnvNames(){const _0x5e1f15=_0x5bd76d,_0x4d6fa8={'QpfCt':'local','DMEqx':function(_0x237ca4,_0x4f088e){return _0x237ca4(_0x4f088e);},'gRaZj':function(_0x48ce59,_0x5cfc73,_0x3d81bd){return _0x48ce59(_0x5cfc73,_0x3d81bd);},'xZOEU':function(_0x56a8ee,_0x5efd7b,_0x2787c1){return _0x56a8ee(_0x5efd7b,_0x2787c1);},'Jfbue':function(_0x34d689,_0x4ed7a7){return _0x34d689(_0x4ed7a7);},'QMtPV':'.txt','wlzYN':function(_0x378cf0,_0x573b55){return _0x378cf0(_0x573b55);},'pPRnj':_0x5e1f15(0xc1)},_0x10da01=getRangerDir();if(!existsSync(_0x10da01))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x31f2e9=await readActiveProfileName(),_0x5a131c=[],_0xb53aea={},_0x514d2c=join(_0x10da01,_0x4d6fa8[_0x5e1f15(0xc2)]);if(existsSync(_0x514d2c)){const _0x5376d2=await _0x4d6fa8['DMEqx'](readdir,_0x514d2c);for(const _0x53389e of _0x5376d2){const _0x24ddf1=_0x4d6fa8[_0x5e1f15(0xda)](join,_0x514d2c,_0x53389e),_0x3826a1=await stat(_0x24ddf1);_0x3826a1['isDirectory']()&&(_0x5a131c[_0x5e1f15(0xc7)](_0x53389e),_0xb53aea[_0x53389e]=_0x4d6fa8['QpfCt']);}}const _0x290855=_0x4d6fa8['xZOEU'](join,_0x10da01,'ci');if(existsSync(_0x290855)){const _0x23707a=await readdir(_0x290855);for(const _0x44d99b of _0x23707a){const _0x252552=join(_0x290855,_0x44d99b),_0x3fb1ee=await stat(_0x252552);_0x3fb1ee[_0x5e1f15(0xd3)]()&&(_0x5a131c[_0x5e1f15(0xc7)](_0x44d99b),_0xb53aea[_0x44d99b]='ci');}}const _0x505e8e=await _0x4d6fa8[_0x5e1f15(0xba)](readdir,_0x10da01);for(const _0x38b9dc of _0x505e8e){if(NON_ENV_DIRS['includes'](_0x38b9dc))continue;if(_0x38b9dc[_0x5e1f15(0xbb)]('.'))continue;if(_0x38b9dc['endsWith'](_0x4d6fa8['QMtPV']))continue;const _0x4ee783=join(_0x10da01,_0x38b9dc),_0x353b93=await _0x4d6fa8[_0x5e1f15(0xdc)](stat,_0x4ee783);_0x353b93[_0x5e1f15(0xd3)]()&&_0x4d6fa8['wlzYN'](existsSync,join(_0x4ee783,'settings.json'))&&(!_0x5a131c['includes'](_0x38b9dc)&&(_0x5a131c[_0x5e1f15(0xc7)](_0x38b9dc),_0xb53aea[_0x38b9dc]=_0x4d6fa8[_0x5e1f15(0xd0)]));}return{'envNames':_0x5a131c,'activeEnv':_0x31f2e9,'envTypes':_0xb53aea};}export async function envList(){const _0xeee971=_0x5bd76d,_0x5e58bf={'yyVnU':function(_0x57be53){return _0x57be53();},'efhpS':function(_0x1d7bc0,_0x4be994){return _0x1d7bc0 instanceof _0x4be994;},'tKZhz':function(_0x1ebbcc,_0xbad622){return _0x1ebbcc(_0xbad622);},'QmHuA':function(_0x4ceca0,_0x5a84c1){return _0x4ceca0===_0x5a84c1;},'upmXB':_0xeee971(0xce),'GZnCU':_0xeee971(0xc1),'GjmDG':function(_0x30b053,_0x428449){return _0x30b053>_0x428449;},'OtXZY':_0xeee971(0xd4),'XekWM':'no\x20session'},{envNames:_0x2545ef,activeEnv:_0x1d75ef,envTypes:_0x38a535}=await _0x5e58bf['yyVnU'](getEnvNames);let _0x1032fc=[];const _0x405e3a=await getToken();if(_0x405e3a)try{_0x1032fc=await listCloudProfiles();}catch(_0x104f81){console['error']('\x0aWarning:\x20could\x20not\x20fetch\x20cloud\x20profiles:\x20'+(_0x5e58bf[_0xeee971(0xd8)](_0x104f81,Error)?_0x104f81['message']:_0x5e58bf['tKZhz'](String,_0x104f81)));}if(_0x2545ef[_0xeee971(0xd5)]===0x0&&_0x5e58bf[_0xeee971(0xbd)](_0x1032fc[_0xeee971(0xd5)],0x0)){console['log']('\x0aNo\x20profiles\x20found.'),console[_0xeee971(0xd6)](_0x5e58bf[_0xeee971(0xcf)]);return;}const _0x2e6988=new Set(_0x1032fc['map'](_0x13a24a=>_0x13a24a['name']));if(_0x2545ef[_0xeee971(0xd5)]>0x0){console['log']('\x0aLocal\x20Profiles\x20(legacy):');for(const _0x15dbcd of _0x2545ef['sort']()){const _0x181e9e=_0x5e58bf[_0xeee971(0xbd)](_0x15dbcd,_0x1d75ef)&&!_0x2e6988['has'](_0x15dbcd),_0x484362=_0x38a535[_0x15dbcd]||_0xeee971(0xc3),_0x37842d=await loadSettings(_0x15dbcd),_0x319e07=_0x484362===_0x5e58bf[_0xeee971(0xc6)]?'':'\x20['+_0x484362+']';console[_0xeee971(0xd6)]('\x20\x20'+(_0x181e9e?'*\x20':'\x20\x20')+_0x15dbcd+_0x319e07),_0x37842d['baseUrl']&&console[_0xeee971(0xd6)](_0xeee971(0xc0)+_0x37842d['baseUrl']),_0x37842d['environmentDetails']&&console['log'](_0xeee971(0xcc)+_0x37842d[_0xeee971(0xc5)]);}}if(_0x5e58bf['GjmDG'](_0x1032fc[_0xeee971(0xd5)],0x0)){console['log'](_0x5e58bf['OtXZY']);for(const _0x1993cd of _0x1032fc['sort']((_0x3f2ef6,_0x26a3af)=>_0x3f2ef6['name']['localeCompare'](_0x26a3af['name']))){const _0x56955b=_0x1993cd['name']===_0x1d75ef,_0x510d57=_0x1993cd[_0xeee971(0xc4)]?'\x20('+_0x1993cd[_0xeee971(0xc4)]+')':'',_0x2c1d8a=_0x1993cd[_0xeee971(0xcd)]?'cached\x20(updated\x20'+_0x1993cd[_0xeee971(0xcd)]+')':_0x5e58bf[_0xeee971(0xb9)];console[_0xeee971(0xd6)]('\x20\x20'+(_0x56955b?'*\x20':'\x20\x20')+_0x1993cd[_0xeee971(0xc9)]+'\x20[cloud]'+_0x510d57),console[_0xeee971(0xd6)]('\x20\x20\x20\x20\x20\x20Session:\x20'+_0x2c1d8a);}}_0x1d75ef&&console[_0xeee971(0xd6)]('\x0a*\x20=\x20active\x20profile');}