@ranger-testing/ranger-cli 2.5.4-alpha.a70fc60-4 → 2.5.4-alpha.b28d3b1-14
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.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/mcpBootstrap.js +1 -1
- package/build/commands/migrateProfile.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/cloudProfile.js +1 -1
- package/build/commands/utils/cloudProfileSession.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/gitTracked.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/legacyWarning.js +1 -0
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/projectsConfig.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/resolveProfileContext.js +1 -1
- package/build/commands/utils/resolveProfileUrl.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/skills/ranger/SKILL.md +25 -5
- package/build/skills/ranger/create.md +19 -0
- package/build/skills/ranger/verify.md +34 -7
- package/package.json +3 -2
package/build/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const _0x14be9b=_0x1cda;(function(_0x28932b,_0xb83781){const _0x59ccf6=_0x1cda,_0x40c82c=_0x28932b();while(!![]){try{const _0x575e14=parseInt(_0x59ccf6(0x201))/0x1+parseInt(_0x59ccf6(0x251))/0x2*(parseInt(_0x59ccf6(0x23a))/0x3)+-parseInt(_0x59ccf6(0x29d))/0x4*(parseInt(_0x59ccf6(0x1e9))/0x5)+parseInt(_0x59ccf6(0x2a8))/0x6+parseInt(_0x59ccf6(0x21d))/0x7*(-parseInt(_0x59ccf6(0x124))/0x8)+-parseInt(_0x59ccf6(0x227))/0x9*(-parseInt(_0x59ccf6(0x234))/0xa)+-parseInt(_0x59ccf6(0x292))/0xb;if(_0x575e14===_0xb83781)break;else _0x40c82c['push'](_0x40c82c['shift']());}catch(_0x5cc1a4){_0x40c82c['push'](_0x40c82c['shift']());}}}(_0x54ef,0xb5b06));import _0x2e5403 from'dotenv';import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x19aacc=_0x1cda,_0x11fdb0={'XHnvg':function(_0x45b078,_0xd268b2,_0x2cebcd){return _0x45b078(_0xd268b2,_0x2cebcd);},'kMQBN':'.ranger','JTQnS':function(_0x55f4a3,_0x103dc7){return _0x55f4a3(_0x103dc7);}};let _0x2be29d=process[_0x19aacc(0x20e)]();const _0x4f1da5=parse(_0x2be29d)[_0x19aacc(0x2a3)];while(_0x2be29d!==_0x4f1da5){if(existsSync(_0x11fdb0['XHnvg'](join,_0x2be29d,_0x11fdb0['kMQBN']))||_0x11fdb0[_0x19aacc(0x221)](existsSync,_0x11fdb0['XHnvg'](join,_0x2be29d,'.env')))return _0x2be29d;_0x2be29d=_0x11fdb0[_0x19aacc(0x221)](dirname,_0x2be29d);}return process['cwd']();}_0x2e5403[_0x14be9b(0x2b8)]({'path':join(findProjectRoot(),_0x14be9b(0x163))});import _0x580bd4 from'yargs/yargs';function _0x1cda(_0x4a563b,_0x2d1106){_0x4a563b=_0x4a563b-0x10d;const _0x54ef29=_0x54ef();let _0x1cdaf0=_0x54ef29[_0x4a563b];return _0x1cdaf0;}import{addEnv,clean,login,start,setupCi,useEnv,updateEnv,update,skillup,envList,hook,ensureLocalEnv,ensureChromium,authenticate,migrateProfile}from'./commands/index.js';import{authEncrypt}from'./commands/authEncrypt.js';import{mcpBootstrap}from'./commands/mcpBootstrap.js';import{getToken}from'./commands/utils/keychain.js';import{serverSideLogin}from'./commands/utils/cloudProfile.js';import{status}from'./commands/status.js';import{configSet,configGet,configList,configUnset,configReset}from'./commands/config.js';import{verifyFeature}from'./commands/verifyFeature.js';import{loadRangerConfig}from'./commands/utils/rangerConfig.js';import{isByokEnabled}from'./commands/utils/environment.js';function _0x54ef(){const _0x96c34a=['Config\x20key\x20to\x20remove','Profile\x20name','string','New\x20scenario\x20description','mcp-bootstrap','Feature\x20review\x20description','ranger','Disable\x20Ranger\x20hooks\x20for\x20this\x20session','restore\x20<id>','qRIjx','forEach','name','ZyPVM','list','start-path','.env','all','unknown\x20error','Install\x20Claude\x20Code\x20plugin\x20and\x20skills','set\x20<profile>\x20<key>\x20<value>','KQFOP','SsEYq','user','Unknown\x20command','jxwhA','mSjSZ','ranger\x20create','Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context','report\x20[id]','project','QvtzP','--task','ranger\x20config\x20set','mcp','Dduwq','verify-feature','env','BvXqp','update','Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','JuILz','\x20BLOCKED','ranger\x20env\x20ls','Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios','zKZFH','add\x20<profile-name>','KwmCS','Override\x20the\x20profile\x20base\x20URL\x20for\x20this\x20run.\x20Also\x20respects\x20RANGER_BASE_URL.','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','RCmyi','LBIXB','demandCommand','Qrsqd','vWqNX','gKSzw','config\x20set','Install\x20OS-level\x20dependencies\x20for\x20Chromium\x20(apt\x20packages\x20for\x20Debian/Ubuntu\x20containers)','PwpNL','Xmtqc','tdjnu','vOtDJ','feature\x20get-feedback','feature\x20add-checklist-item','HTTP\x20header\x20to\x20send\x20only\x20during\x20profile\x20setup\x20auth,\x20not\x20during\x20test\x20runs\x20(format:\x20\x22Name:\x20Value\x22)','BiEib','Ranger\x20API\x20token\x20(rngr_...)','Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','show','key','ranger\x20use','report','Bootstrap\x20CLI\x20auth\x20via\x20an\x20MCP\x20auth\x20server','dry-run','oJVeA','herDE','VzaXM','unset\x20<env>\x20<key>','WCqrG','pFjmc','env-name','RdZmy','YzDKr','usnbM','cEVAQ','option','hByNq','print-access-token','sbFJI','zGUJt','setup:profiles','kIaLQ','OHenx','error','ranger\x20profile\x20use','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios','migrate\x20[profile-name]','UqBnw','ranger\x20feature\x20delete','ranger\x20feature\x20restore','claude','fTQFa','ranger\x20profile\x20config\x20unset','WPNXC','session-id','edit-scenario','jBLkV','profile\x20login','command','fIKYV','eWIKH','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','QLByP','wUDgA','\x0aIssues:','MHvYn','Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','QSneg','CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)','evaluation','ranger\x20feature\x20create','WXmbW','array','notes','NODE_ENV','fhkmL','YHuIt','success','token','setup-ci','ICxQn','resume','rjhmc','update\x20<env-name>','Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','cJPgt','Install\x20scope\x20for\x20plugin\x20and\x20skills','sNIPY','knznl','disable','add\x20env\x20<env-name>','Unknown\x20error','epilogue','ranger\x20feature\x20resume','Authenticate\x20with\x20Ranger','Switch\x20to\x20using\x20a\x20specific\x20profile','MVWQX','afCbu','eIhsp','2800gNxFxE','OtGPj','sglnp','You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand','setup-ci\x20<token>','AdnWg','feature\x20list','yuzlF','ranger\x20go','Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)','List\x20all\x20feature\x20reviews','Name\x20of\x20a\x20single\x20local\x20profile\x20to\x20migrate.\x20Omit\x20with\x20--all.','Get\x20a\x20config\x20value','ranger\x20show','json','hook','whqzO','oAROb','API\x20token','RCAIk','\x0aUnknown\x20command:\x20','\x20PARTIAL','ranger\x20config\x20get','No\x20token\x20found.\x20Run\x20`ranger\x20login`\x20to\x20authenticate.','1066724LRiBds','VTcjW','resume\x20[id]','XJijy','IVSTT','KCuei','Iwsun','test_output','Skrwr','reset\x20<profile>','necBR','JGHnF','xeuob','cwd','Remove\x20a\x20config\x20value','verified','ranger\x20env\x20update','feature\x20create','Reason:\x20','set\x20<env>\x20<key>\x20<value>','Usage:\x20ranger\x20profile\x20config\x20<command>\x0a\x0aProfile\x20config.\x20Routes\x20automatically\x20based\x20on\x20where\x20the\x20profile\x20lives:\x0a\x20\x20-\x20Local\x20profiles\x20write\x20to\x20.ranger/<env>/settings.json\x0a\x20\x20-\x20Cloud\x20profiles\x20write\x20a\x20local\x20overlay\x20in\x20~/.ranger/projects.json\x0a\x0aCommands:\x0a\x20\x20set\x20<profile>\x20<key>\x20<value>\x20\x20\x20\x20Set\x20a\x20config\x20value\x0a\x20\x20get\x20<profile>\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Get\x20a\x20config\x20value\x20(effective\x20value\x20for\x20cloud\x20profiles)\x0a\x20\x20list\x20<profile>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20all\x20config\x20for\x20a\x20profile\x0a\x20\x20unset\x20<profile>\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20a\x20config\x20value\x0a\x20\x20reset\x20<profile>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Clear\x20all\x20local\x20overrides\x20(cloud\x20profiles\x20only)\x0a\x0aKeys:\x0a\x20\x20baseUrl\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Base\x20URL\x20(most\x20common\x20override\x20for\x20cloud\x20profiles)\x0a\x20\x20userAgent\x20\x20\x20\x20\x20\x20\x20\x20Browser\x20user\x20agent\x20string\x0a\x20\x20headless\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20browser\x20in\x20headless\x20mode\x20(true/false)\x0a\x20\x20allowInsecureLocalhost\x20\x20\x20Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(true/false)\x0a\x20\x20storageState\x20\x20\x20\x20\x20Path\x20to\x20auth\x20state\x20file\x20(e.g.,\x20./auth.json)\x0a\x20\x20header.<name>\x20\x20\x20\x20Custom\x20HTTP\x20header\x20sent\x20with\x20every\x20request\x20(e.g.,\x20header.X-Test-Mode)\x0a\x20\x20setupHeader.<name>\x20\x20HTTP\x20header\x20sent\x20only\x20during\x20profile\x20setup\x20auth,\x20not\x20during\x20test\x20runs\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(e.g.,\x20setupHeader.x-bypass-turnstile)\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20userAgent\x20\x22Mozilla/5.0\x20(CI\x20Bot)\x22\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20headless\x20true\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20allowInsecureLocalhost\x20true\x0a\x20\x20ranger\x20profile\x20config\x20set\x20admin@staging.app.com\x20baseUrl\x20http://localhost:3001\x0a\x20\x20ranger\x20profile\x20config\x20set\x20admin@staging.app.com\x20headers.X-Debug\x201','incomplete','blocked','GIdMh','rWWcS','value','VDcBA','url','5239185ySfuRH','WsWOY','CPSGl','limit','JTQnS','ranger\x20feature\x20add-checklist-item','cowOW','gDqCa','CwLPz','ranger\x20auth\x20encrypt','3916719jYAUne','list\x20<env>','qQiEa','feature\x20delete','WqiXR','nfUgF','ranger\x20config\x20unset','with-deps','get\x20<env>\x20<key>','KQYkn','Clear\x20all\x20config\x20overrides\x20for\x20a\x20profile\x20(cloud\x20profiles\x20only)','--checklist','YFNlG','20GgAUPH','clean','slice','skip-chromium','config\x20list','UrAOi','10518VjCsXQ','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)','IqXOW','YJlcy','fJGLk','dCccH','Name\x20of\x20the\x20profile','You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand','login','gVwpY','fhsjg','encrypt\x20<profile>','vQSox','Set\x20up\x20a\x20local\x20browser\x20profile','Manage\x20profile\x20configuration','Login\x20failed:\x20','Include\x20soft-deleted\x20feature\x20reviews','GZsiK','item','Restore\x20a\x20soft-deleted\x20feature\x20review','AyPZj','Example:\x20ranger\x20create\x20my-feature','debug-address-comments','710lyhfEa','repeat','scope','profile\x20ls','TeqKt','Allow\x20localhost\x20content\x20in\x20deployed\x20environments','exitCode','Skip\x20Chromium\x20browser\x20installation','wghrn','ranger\x20list','Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup','QnxDK','profile\x20config\x20reset','Skip\x20interactive\x20confirmation\x20prompts.','Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','fQgMn','Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)','setup-header','EhzAY','WmGpk','profile','base-url','sXIKa','JRrwc','allow-insecure-localhost','Skip\x20authentication\x20(install\x20deps\x20only\x20—\x20for\x20container/CI\x20image\x20builds)','partial','LmvPw','Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)','boolean','List\x20all\x20profiles','cAEsp','Config\x20value','aOUGA','WiCsg','RANGER_TEST_PASSWORD','force','ranger\x20get-review','ranger\x20add-scenario','message','start\x20[token]','enable','setup:skills','trackCommandError','RTpPD','Error:\x20`ranger\x20create`\x20requires\x20a\x20feature\x20review\x20name.\x0a','exit','profile\x20use','status','JVwoK','Skip\x20Chromium\x20browser\x20check\x20and\x20installation','Enable\x20Ranger\x20hooks\x20for\x20this\x20session','Manage\x20profiles','cMIqg','number','opencode','exclude-scenario','ryWJr','qUWby','ZIsLA','GqwMB','config\x20get','Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard).\x20Also\x20respects\x20RANGER_START_PATH.','FvZFc','Feature\x20review\x20ID','27002514BOeBNR','KvWzh','list\x20<profile>','MIzgu','zJPUr','IcMtN','aZwSE','mXGuV','--notes','meEoc','ranger\x20profile\x20encrypt-auth','1332MbCTzc','RYxpx','yes','ranger\x20verify-feature','profiles','wMkBa','root','description','Install\x20OS-level\x20dependencies\x20for\x20Chromium','hook:disable','severity','5713026iaVWzs','help','headed','ranger\x20feature\x20list','ranger\x20delete','NxBMU','rsfnr','Skip\x20authentication','ktVKS','nonkB','KULoE','checklist','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','create\x20<name>','encrypt-auth\x20<profile>','Feature\x20review\x20name','config','Evaluation:\x20','YAEnA','debug-outcome','get-review','YILHN','gQQhV','cdp-endpoint','You\x20must\x20specify\x20a\x20config\x20subcommand','Skip\x20interactive\x20confirmation\x20prompts\x20(e.g.\x20cloud-profile\x20auto-route).','NDWiS','QJyBe','\x20INCOMPLETE','Task\x20description\x20(defaults\x20to\x20scenario\x20description)','fqvNo','VZEpU','xPVtU','Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','safe-mode','eXzla','summary','GfJqD','BvUOB','map','parse','Name\x20of\x20the\x20profile\x20to\x20update','8XLQsab','RANGER_TEST_USERNAME','ihvDn','skip-auth','SwUub','ranger\x20profile\x20config\x20set','current-branch','log','model','YSvQc','afixL','FzXEv','nEwnF','Disable\x20browser\x20features\x20that\x20can\x20cause\x20crashes\x20on\x20some\x20systems\x20(e.g.\x20Bluetooth\x20permission\x20prompts\x20on\x20macOS)','positional','Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','bErSl','IlROO','evaluationReason','Name\x20of\x20the\x20environment','Store\x20RANGER_TEST_USERNAME/PASSWORD\x20env\x20values\x20on\x20the\x20migrated\x20profile.','use\x20<env-name>','.\x20[','argv','save-creds','LtpXD','includes','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','Pdjoq','bQsDJ','scenario','fxpkC','Update\x20authentication\x20for\x20an\x20existing\x20profile','CVJzs','WLsWT','hbMjX','HYHoe','setup\x20[tokenOrSubcommand]','delete\x20[id]','profile-name','usage','FIWnG','fAFqE','ZxvTk','Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)','tNQNn','LDyEr','Skip\x20browser\x20authentication'];_0x54ef=function(){return _0x96c34a;};return _0x54ef();}import{featureCreate,featureList,featureShow,featureResume,featureAddScenario,featureEditScenario,featureGetReview,featureReportPrDescription,featureDelete,featureRestore}from'./commands/feature.js';import{logDesirePath,getErrorType,sanitizeArgs}from'./commands/utils/desirePathLog.js';import{getCurrentVersion}from'./commands/utils/version.js';import{refreshCliToken}from'./commands/utils/tokenRefresh.js';import{getCurrentUser}from'./commands/utils/userApi.js';import{ensureClaudePlugin,ensureClaudeSkills}from'./commands/setup/claude.js';import{ensureOpencodePluginConfig}from'./commands/setup/opencode.js';import{installSkill}from'./commands/utils/skills.js';import{withTelemetry,getCurrentCollector}from'./commands/utils/telemetry.js';process['on']('unhandledRejection',async _0x507c10=>{const _0xaa4ded=_0x14be9b,_0x7bae12={'kzBvC':function(_0x18d15c){return _0x18d15c();}},_0x259976=_0x7bae12['kzBvC'](getCurrentCollector);_0x259976&&await _0x259976['trackCommandError'](_0x507c10),process[_0xaa4ded(0x257)]=0x1;});const rawArgs=process['argv'][_0x14be9b(0x236)](0x2),TOP_LEVEL_HELP='Usage:\x20ranger\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20setup\x20[token]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Initialize\x20Ranger\x20in\x20your\x20project\x0a\x20\x20setup\x20all\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Full\x20interactive\x20setup\x20(same\x20as\x20bare\x20setup)\x0a\x20\x20setup\x20deps\x20[--with-deps]\x20\x20\x20\x20Install\x20Chromium\x20browser\x0a\x20\x20setup\x20login\x20[--token\x20<t>]\x20\x20\x20Authenticate\x20with\x20Ranger\x0a\x20\x20setup\x20skills\x20[--scope\x20...]\x20\x20Install\x20Claude\x20Code\x20plugin\x20and\x20skills\x0a\x20\x20setup\x20profiles\x20[--url\x20<u>]\x20\x20Set\x20up\x20a\x20local\x20browser\x20profile\x0a\x20\x20setup\x20--mcp-bootstrap\x20\x20\x20\x20\x20\x20\x20Bootstrap\x20auth\x20via\x20MCP\x20auth\x20server\x0a\x20\x20login\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Re-authenticate\x20without\x20full\x20setup\x0a\x20\x20skillup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Ranger\x20skills\x0a\x20\x20clean\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20Ranger\x20artifacts\x20from\x20the\x20project\x0a\x20\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20version,\x20org,\x20skills,\x20and\x20profile\x20status\x0a\x20\x20update\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version\x0a\x0a\x20\x20profile\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Manage\x20profiles\x20(add/use/ls/update/config/encrypt-auth)\x0a\x20\x20\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth,\x20--scope\x20user|project)\x0a\x20\x20\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Set/get/list/unset/reset\x20profile\x20config\x0a\x0a\x20\x20create\x20<name>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Create\x20a\x20feature\x20review\x20with\x20scenarios\x0a\x20\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20feature\x20reviews\x0a\x20\x20show\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20feature\x20review\x20details\x0a\x20\x20resume\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20feature\x20review\x0a\x20\x20add-scenario\x20<description>\x20\x20Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review\x0a\x20\x20edit-scenario\x20<description>\x20Edit\x20a\x20scenario\x20description\x0a\x20\x20get-review\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20reviewer\x20feedback\x0a\x20\x20report\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Generate\x20PR\x20description\x20markdown\x0a\x20\x20delete\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Soft\x20delete\x20a\x20feature\x20review\x0a\x20\x20restore\x20<id>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Restore\x20a\x20soft-deleted\x20feature\x20review\x0a\x0a\x20\x20go\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20a\x20scenario\x20in\x20the\x20browser\x0a\x0aRun\x20`ranger\x20<command>\x20--help`\x20for\x20details.',PROFILE_HELP='Usage:\x20ranger\x20profile\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth,\x20--scope\x20user|project)\x0a\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Profile\x20config\x20(set/get/list/unset/reset)\x0a\x20\x20migrate\x20[<profile>]\x20\x20\x20\x20\x20\x20\x20Migrate\x20local\x20profiles\x20to\x20the\x20cloud\x20(requires\x20org\x20auth\x20config)\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20add\x20local\x0a\x20\x20ranger\x20profile\x20encrypt-auth\x20ci\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20headless\x20true\x0a\x20\x20ranger\x20profile\x20config\x20set\x20admin@staging.app.com\x20baseUrl\x20http://localhost:3001\x0a\x20\x20ranger\x20profile\x20migrate\x20--all\x20--dry-run',PROFILE_CONFIG_HELP=_0x14be9b(0x215);function warnRenamed(_0xe380ae,_0x767eef){console['error']('\x0a'+_0xe380ae+'\x20is\x20now\x20'+_0x767eef+'\x0a');}function argUsed(_0x2d0d43){return rawArgs['some'](_0x27e366=>_0x27e366===_0x2d0d43||_0x27e366['startsWith'](_0x2d0d43+'='));}function warnFlagRenamed(_0x243738,_0x2ea12b,_0x450311){const _0x48fea0=_0x14be9b,_0x17f83b={'eolSo':function(_0x7d696a,_0xa3d49f){return _0x7d696a(_0xa3d49f);},'meEoc':function(_0x2116d0,_0x2da93c,_0x2f2403){return _0x2116d0(_0x2da93c,_0x2f2403);}};_0x17f83b['eolSo'](argUsed,_0x2ea12b)&&_0x17f83b[_0x48fea0(0x29b)](warnRenamed,_0x243738+'\x20'+_0x2ea12b,_0x243738+'\x20'+_0x450311);}async function runGoCommand(_0x30cc9b,_0x19b729=![]){const _0x2f053b=_0x14be9b,_0x4c9a41={'wMkBa':_0x2f053b(0x2a0),'IlROO':_0x2f053b(0x1f1),'bgVTf':_0x2f053b(0x173),'XJijy':function(_0x6308f1,_0x147494,_0x32a9dc,_0x48014c){return _0x6308f1(_0x147494,_0x32a9dc,_0x48014c);},'mQgWM':'--item','sNIPY':'--scenario','LDyEr':function(_0x36e2ac){return _0x36e2ac();},'ihvDn':function(_0x5caa9b,_0x596ede){return _0x5caa9b(_0x596ede);},'rxtJp':_0x2f053b(0x162),'qQiEa':'verified','Iwsun':'\x20VERIFIED','CVJzs':'incomplete','xnJux':_0x2f053b(0x1fe),'FIWnG':function(_0x3d6322,_0x4b5465){return _0x3d6322===_0x4b5465;}};_0x19b729&&warnRenamed(_0x4c9a41[_0x2f053b(0x2a2)],_0x2f053b(0x1f1));warnFlagRenamed(_0x4c9a41['IlROO'],'--env','--profile'),warnFlagRenamed(_0x4c9a41[_0x2f053b(0x135)],_0x4c9a41['bgVTf'],_0x2f053b(0x29a)),_0x4c9a41[_0x2f053b(0x204)](warnFlagRenamed,_0x4c9a41['IlROO'],_0x4c9a41['mQgWM'],_0x4c9a41[_0x2f053b(0x1dd)]);const _0x384a49=await loadRangerConfig(),_0x332796=_0x4c9a41[_0x2f053b(0x152)](isByokEnabled),_0x3999e6=_0x30cc9b[_0x2f053b(0x12c)],_0x469f8b=_0x384a49['model'],_0x3b349f=await _0x4c9a41[_0x2f053b(0x126)](verifyFeature,{'featureId':_0x30cc9b['feature'],'profile':_0x30cc9b['profile']??_0x30cc9b[_0x2f053b(0x178)],'notes':_0x30cc9b['notes']??_0x30cc9b['task'],'scenario':_0x30cc9b[_0x2f053b(0x142)]??_0x30cc9b[_0x2f053b(0x24c)],'startPath':_0x30cc9b[_0x4c9a41['rxtJp']],'baseUrl':_0x30cc9b[_0x2f053b(0x266)],'debugOutcome':_0x30cc9b[_0x2f053b(0x10d)],'debugAddressComments':_0x30cc9b['debug-address-comments'],'headed':_0x30cc9b['headed'],'byokEnabled':_0x332796,'flagVerifyModel':_0x3999e6,'configVerifyModel':_0x469f8b});console[_0x2f053b(0x12b)]('\x0a'+'='[_0x2f053b(0x252)](0x3c)),console[_0x2f053b(0x12b)](_0x3b349f[_0x2f053b(0x1cb)]===_0x4c9a41[_0x2f053b(0x229)]?_0x4c9a41[_0x2f053b(0x207)]:_0x3b349f[_0x2f053b(0x1cb)]===_0x4c9a41[_0x2f053b(0x145)]?_0x2f053b(0x116):_0x3b349f[_0x2f053b(0x1cb)]==='partial'?_0x4c9a41['xnJux']:_0x4c9a41['FIWnG'](_0x3b349f[_0x2f053b(0x1cb)],'blocked')?_0x2f053b(0x17d):'\x20FAILED'),console['log']('='['repeat'](0x3c)),console['log']('Summary:\x20'+_0x3b349f[_0x2f053b(0x11e)]),console[_0x2f053b(0x12b)](_0x2f053b(0x2b9)+_0x3b349f[_0x2f053b(0x1cb)]),console[_0x2f053b(0x12b)](_0x2f053b(0x213)+_0x3b349f[_0x2f053b(0x136)]),_0x3b349f['issues']?.['length']&&(console['log'](_0x2f053b(0x1c6)),_0x3b349f['issues'][_0x2f053b(0x15e)]((_0x2e2f12,_0x1f839e)=>{const _0x12da85=_0x2f053b;console['log']('\x0a'+(_0x1f839e+0x1)+_0x12da85(0x13a)+_0x2e2f12[_0x12da85(0x2a7)]+']\x20'+_0x2e2f12[_0x12da85(0x2a4)]);})),process[_0x2f053b(0x27f)](_0x4c9a41[_0x2f053b(0x14d)](_0x3b349f[_0x2f053b(0x1cb)],_0x2f053b(0x210))?0x0:0x1);}export function buildParser(_0x4a3117){const _0x14f1d0=_0x14be9b,_0x5501f5={'gQQhV':_0x14f1d0(0x15f),'kIaLQ':'string','fAFqE':_0x14f1d0(0x2b7),'zKZFH':_0x14f1d0(0x2a4),'KULoE':_0x14f1d0(0x159),'ICxQn':'scenario','qdHQn':_0x14f1d0(0x1c8),'YSvQc':_0x14f1d0(0x27e),'WXmbW':_0x14f1d0(0x232),'jnQwV':'--scenario','cJPgt':_0x14f1d0(0x26e),'YILHN':_0x14f1d0(0x185),'lKFXi':_0x14f1d0(0x1c3),'QSneg':_0x14f1d0(0x287),'SIFhL':'include-deleted','cAEsp':_0x14f1d0(0x198),'MIzgu':function(_0x4bedfa,_0x1e177e,_0x135351){return _0x4bedfa(_0x1e177e,_0x135351);},'bQsDJ':_0x14f1d0(0x1d7),'ikeVf':'Scenario\x20description','nfUgF':'add-scenario','VAvGq':'Scenario\x20number\x20to\x20edit\x20(1-based)','xPVtU':function(_0x19e66b,_0x34f0c8,_0x290bdb){return _0x19e66b(_0x34f0c8,_0x290bdb);},'ZqFGT':_0x14f1d0(0x291),'GIdMh':_0x14f1d0(0x289),'FzXEv':_0x14f1d0(0x1f7),'afCbu':_0x14f1d0(0x19b),'sglnp':_0x14f1d0(0x2b4),'fIKYV':_0x14f1d0(0x10e),'vOtDJ':'Feature\x20review\x20ID\x20to\x20restore','VzaXM':'restore','NbtLa':'Ranger\x20API\x20token','VZEpU':_0x14f1d0(0x237),'RMlNI':_0x14f1d0(0x283),'OHenx':'skip-auth','QvtzP':_0x14f1d0(0x171),'Ogqdv':_0x14f1d0(0x1dc),'NxBMU':_0x14f1d0(0x275),'aOUGA':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','EqPbT':'Alias\x20for\x20--mcp-bootstrap','XIXLB':_0x14f1d0(0x175),'fhkmL':function(_0x43b129){return _0x43b129();},'IWDAw':function(_0x3a927c,_0x3a56b1){return _0x3a927c(_0x3a56b1);},'RTpPD':_0x14f1d0(0x253),'cEVAQ':'Install\x20for\x20OpenCode\x20instead\x20of\x20Claude\x20Code','fMzkK':'Where\x20to\x20store\x20the\x20profile','wghrn':_0x14f1d0(0x21c),'TtIZn':_0x14f1d0(0x153),'YzDKr':function(_0x4a2926,_0x25794b){return _0x4a2926(_0x25794b);},'GnPrv':'tokenOrSubcommand','IcMtN':'Subcommand\x20or\x20API\x20token\x20(rngr_...)','cowOW':'Install\x20Chromium\x20browser\x20binary','MVWQX':_0x14f1d0(0x1e4),'AlcfL':'skills','JOuJJ':_0x14f1d0(0x2a1),'JBwIz':_0x14f1d0(0x247),'eIhsp':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','xeuob':'Bootstrap\x20CLI\x20auth\x20via\x20an\x20MCP\x20auth\x20server\x20instead\x20of\x20browser\x20login','PaQRB':_0x14f1d0(0x26a),'mXGuV':'with-deps','TjYLZ':_0x14f1d0(0x18d),'Qrsqd':_0x14f1d0(0x158),'jxwhA':'start','YrNPH':_0x14f1d0(0x1ca),'Xmtqc':'Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)','DafvU':_0x14f1d0(0x258),'GZsiK':function(_0x54eafa,_0x32a13b,_0x8ffffc){return _0x54eafa(_0x32a13b,_0x8ffffc);},'eXzla':_0x14f1d0(0x242),'WsWOY':_0x14f1d0(0x288),'CPSGl':'Install\x20skills\x20for\x20OpenCode','OtGPj':'user','JYslu':'Install\x20scope\x20for\x20skills','RdZmy':function(_0x19c172,_0x5a2fb5){return _0x19c172(_0x5a2fb5);},'TicBa':'skillup','IeKgP':function(_0x53e545,_0x2a0bc2,_0x3f9e55){return _0x53e545(_0x2a0bc2,_0x3f9e55);},'WcFvD':'clean','BiEib':_0x14f1d0(0x14b),'PwpNL':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','YHuIt':_0x14f1d0(0x269),'dCccH':_0x14f1d0(0x11c),'zkrtB':_0x14f1d0(0x131),'TeqKt':'Cloud\x20profile\x20name','KwmCS':_0x14f1d0(0x1bf),'mRAEA':'dry-run','LBIXB':_0x14f1d0(0x13c),'sbFJI':function(_0x164c69,_0x3aa8e6,_0x401927){return _0x164c69(_0x3aa8e6,_0x401927);},'oYIzQ':'profile\x20config\x20get','IqGcH':_0x14f1d0(0x167),'BKiwm':'Set\x20a\x20config\x20value','zGUJt':'unset\x20<profile>\x20<key>','qUWby':_0x14f1d0(0x20f),'QJyBe':_0x14f1d0(0x231),'fQgMn':'profile\x20update','IgSEu':'key','WPNXC':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','IPbsD':'value','WmGpk':'profile\x20config\x20list','LmvPw':_0x14f1d0(0x182),'ODAAE':'use\x20<profile-name>','wNjIc':_0x14f1d0(0x1e5),'knznl':_0x14f1d0(0x2b6),'ESeig':_0x14f1d0(0x26f),'fxpkC':'login\x20<name>','SWkkp':'You\x20must\x20specify\x20a\x20profile\x20subcommand','eDYNE':'status','afixL':function(_0x16238e,_0xf06a93,_0xb58a){return _0x16238e(_0xf06a93,_0xb58a);},'QjXrG':_0x14f1d0(0x1ab),'fhsjg':'feature','jXxpx':'Optional\x20feature\x20ID','opTrM':'Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)','ryWJr':'Scenario\x20index\x20(1-based)','AdnWg':'start-path','EBpmN':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard).\x20Also\x20respects\x20RANGER_START_PATH.','Vhbyn':'Model\x20to\x20use\x20for\x20verification\x20(e.g.,\x20opus,\x20sonnet,\x20claude-opus-4-6,\x20anthropic.claude-opus-4-6-v1).\x20When\x20RANGER_BYOK=true,\x20leaving\x20this\x20unset\x20lets\x20Claude/Bedrock\x20choose\x20from\x20local\x20config.','YAEnA':'Force\x20headed\x20browser\x20for\x20this\x20run\x20only\x20(does\x20not\x20change\x20profile\x20config)','RCmyi':_0x14f1d0(0x10d),'pYTQS':'verified','mIcVt':'blocked','Skrwr':'profile','FLrsA':_0x14f1d0(0x245),'JRrwc':'You\x20must\x20specify\x20an\x20auth\x20subcommand','dGQHS':function(_0x10ab8c,_0x23ec48,_0x4fbb0b){return _0x10ab8c(_0x23ec48,_0x4fbb0b);},'zJPUr':'env','BvXqp':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','KiAST':_0x14f1d0(0x117),'AyPZj':'item','oAROb':_0x14f1d0(0x184),'JGHnF':_0x14f1d0(0x216),'whqzO':_0x14f1d0(0x11b),'PAyoq':'ranger\x20add\x20env','glrlP':function(_0x1543af,_0x493e52,_0x4d46ce){return _0x1543af(_0x493e52,_0x4d46ce);},'vWqNX':'Environment\x20name','YekPN':'Config\x20key','ZIsLA':'ranger\x20config\x20list','sXIKa':_0x14f1d0(0x1ff),'rIsrr':'ranger\x20profile\x20config\x20get','sQpdl':_0x14f1d0(0x1ba),'xqZiZ':'config\x20unset','zjnKD':_0x14f1d0(0x22f),'mwZpX':_0x14f1d0(0x1a1),'eWIKH':'ranger\x20profile\x20ls','VGsIk':'env\x20list','FvZFc':'env-name','owZLc':_0x14f1d0(0x1d9),'rjhmc':'You\x20must\x20specify\x20an\x20env\x20subcommand','BvUOB':'limit','EhzAY':'offset','RYxpx':'Number\x20of\x20feature\x20reviews\x20to\x20skip','VDcBA':function(_0x1fd51d,_0x197a65,_0x443746){return _0x1fd51d(_0x197a65,_0x443746);},'UrAOi':_0x14f1d0(0x1e3),'ntlZb':'ranger\x20resume','nonkB':'feature\x20resume','IEQfg':'ranger\x20feature\x20get-feedback','LONjO':_0x14f1d0(0x276),'cMIqg':function(_0x5b9db8,_0x492cb6,_0x21cea1){return _0x5b9db8(_0x492cb6,_0x21cea1);},'LtpXD':_0x14f1d0(0x22a),'BgAyj':'ranger\x20create','QLByP':_0x14f1d0(0x1f6),'MtoEN':function(_0x2104db,_0xc9d060,_0x3d47be){return _0x2104db(_0xc9d060,_0x3d47be);},'Ebvpu':_0x14f1d0(0x277),'VTcjW':function(_0x12a4ef,_0x4f161e,_0x246559){return _0x12a4ef(_0x4f161e,_0x246559);},'KudMo':_0x14f1d0(0x203),'zgxsS':'get-feedback\x20[id]','gKSzw':_0x14f1d0(0x15c),'KCuQJ':_0x14f1d0(0x241),'GqwMB':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','YxCLd':_0x14f1d0(0x284),'fJGLk':function(_0x1fdb08,_0x2ef537,_0x27e970){return _0x1fdb08(_0x2ef537,_0x27e970);},'SVJOe':_0x14f1d0(0x16b),'JVwoK':'Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a','KCuei':_0x14f1d0(0x1e1),'HYHoe':function(_0x37b77c,_0x48050c){return _0x37b77c(_0x48050c);},'tNQNn':function(_0x757301){return _0x757301();},'seHrY':'create\x20<name>','HuFLt':_0x14f1d0(0x1f3),'TULGf':'show\x20[id]','ktVKS':'add-scenario\x20<description>','aZwSE':'Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review','YjBUJ':_0x14f1d0(0x170),'NyXUo':'Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)','WqiXR':_0x14f1d0(0x24d),'kMCFT':'Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)','KTMtG':'Install\x20Ranger\x20skills','WCqrG':'Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project','ywugR':_0x14f1d0(0x261),'YJlcy':_0x14f1d0(0x23b),'ZDltT':'auth','NFDiF':_0x14f1d0(0x279),'MHvYn':_0x14f1d0(0x139),'haEWH':_0x14f1d0(0x1f8),'SsEYq':'You\x20must\x20specify\x20a\x20command','WLsWT':function(_0xa5d04c,_0x5b56d2){return _0xa5d04c+_0x5b56d2;},'lpGVt':'Documentation:\x0a','auDLl':'\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)','RhKhj':'help'};return _0x5501f5[_0x14f1d0(0x148)](_0x580bd4,_0x4a3117??process[_0x14f1d0(0x13b)]['slice'](0x2))['scriptName'](_0x14f1d0(0x15a))['usage'](TOP_LEVEL_HELP)['version'](_0x5501f5[_0x14f1d0(0x151)](getCurrentVersion))[_0x14f1d0(0x1c0)](_0x5501f5['seHrY'],_0x14f1d0(0x180),_0x163a92=>{const _0x3288ca=_0x14f1d0;return _0x163a92[_0x3288ca(0x132)](_0x5501f5['gQQhV'],{'type':_0x5501f5['kIaLQ'],'description':_0x5501f5[_0x3288ca(0x14e)],'demandOption':!![]})['option'](_0x5501f5[_0x3288ca(0x181)],{'type':_0x3288ca(0x156),'alias':'d','description':_0x5501f5['KULoE']})[_0x3288ca(0x1a9)](_0x5501f5[_0x3288ca(0x1d6)],{'type':'array','alias':'c','description':_0x5501f5['qdHQn']})['option']('checklist',{'type':_0x3288ca(0x1ce),'hidden':!![]});},async _0xdd8bee=>{const _0x4cea5a=_0x14f1d0;if(!_0xdd8bee['name']){console['error'](_0x5501f5[_0x4cea5a(0x12d)]+_0x4cea5a(0x24f)),process[_0x4cea5a(0x27f)](0x1);return;}warnFlagRenamed('ranger\x20create',_0x5501f5['WXmbW'],_0x5501f5['jnQwV']);const _0x20030e=_0xdd8bee['scenario']||_0xdd8bee['checklist'];await withTelemetry('create',()=>featureCreate(_0xdd8bee[_0x4cea5a(0x15f)],{'description':_0xdd8bee[_0x4cea5a(0x2a4)],'scenarios':_0x20030e}));})[_0x14f1d0(0x1c0)](_0x14f1d0(0x161),_0x5501f5['HuFLt'],_0x16ebeb=>{const _0x5cb58f=_0x14f1d0;return _0x16ebeb['option']('current-branch',{'type':_0x5501f5[_0x5cb58f(0x1db)],'description':_0x5501f5[_0x5cb58f(0x10f)]})['option'](_0x5cb58f(0x220),{'type':'number','alias':'l','description':_0x5501f5['lKFXi'],'default':0xa})['option']('offset',{'type':_0x5501f5[_0x5cb58f(0x1c9)],'alias':'o','description':'Number\x20of\x20feature\x20reviews\x20to\x20skip','default':0x0})[_0x5cb58f(0x1a9)](_0x5501f5['SIFhL'],{'type':'boolean','alias':'d','description':'Include\x20soft-deleted\x20feature\x20reviews','default':![]});},async _0x29c4fc=>{await withTelemetry('list',()=>featureList({'currentBranch':_0x29c4fc['current-branch'],'limit':_0x29c4fc['limit'],'offset':_0x29c4fc['offset'],'includeDeleted':_0x29c4fc['include-deleted']}));})['command'](_0x5501f5['TULGf'],'Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x3b548a=>{const _0x4ae08c=_0x14f1d0;return _0x3b548a[_0x4ae08c(0x132)]('id',{'type':_0x4ae08c(0x156),'description':'Feature\x20review\x20ID'});},async _0x25d804=>{const _0x5d109d=_0x14f1d0;await withTelemetry(_0x5501f5[_0x5d109d(0x270)],()=>featureShow(_0x25d804['id']));})[_0x14f1d0(0x1c0)](_0x5501f5['KudMo'],_0x14f1d0(0x16f),_0x167f08=>{const _0x3a5adc=_0x14f1d0;return _0x167f08[_0x3a5adc(0x132)]('id',{'type':_0x5501f5['kIaLQ'],'description':'Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)'});},async _0x381402=>{const _0x40de3b=_0x14f1d0;await _0x5501f5['MIzgu'](withTelemetry,_0x5501f5[_0x40de3b(0x141)],()=>featureResume(_0x381402['id']));})[_0x14f1d0(0x1c0)](_0x5501f5[_0x14f1d0(0x2b0)],_0x5501f5[_0x14f1d0(0x298)],_0x3417e1=>{const _0x11f6f1=_0x14f1d0;return _0x3417e1[_0x11f6f1(0x132)](_0x5501f5[_0x11f6f1(0x181)],{'type':'string','description':_0x5501f5['ikeVf'],'demandOption':!![]})['option']('id',{'type':_0x11f6f1(0x156),'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0xc0f0d4=>{const _0x252fff=_0x14f1d0;await withTelemetry(_0x5501f5[_0x252fff(0x22c)],()=>featureAddScenario(_0xc0f0d4[_0x252fff(0x2a4)],_0xc0f0d4['id']));})[_0x14f1d0(0x1c0)]('edit-scenario\x20<description>','Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review',_0xa12dd1=>{const _0x250da8=_0x14f1d0;return _0xa12dd1[_0x250da8(0x132)](_0x5501f5['zKZFH'],{'type':_0x5501f5[_0x250da8(0x1af)],'description':_0x250da8(0x157),'demandOption':!![]})[_0x250da8(0x1a9)](_0x5501f5[_0x250da8(0x1d6)],{'type':'number','description':_0x5501f5['VAvGq'],'demandOption':!![]})['option']('id',{'type':_0x5501f5[_0x250da8(0x1af)],'description':_0x250da8(0x2b4)});},async _0x47416b=>{const _0x2f9e44=_0x14f1d0;await _0x5501f5[_0x2f9e44(0x11a)](withTelemetry,_0x2f9e44(0x1bd),()=>featureEditScenario(_0x47416b['description'],{'id':_0x47416b['id'],'scenario':_0x47416b['scenario']}));})['command'](_0x5501f5['YjBUJ'],_0x5501f5['NyXUo'],_0x32b2d2=>{const _0x27f81c=_0x14f1d0;return _0x32b2d2[_0x27f81c(0x132)]('id',{'type':_0x5501f5['kIaLQ'],'description':_0x5501f5['ZqFGT']})[_0x27f81c(0x1a9)](_0x5501f5[_0x27f81c(0x218)],{'type':_0x27f81c(0x1ce),'description':_0x27f81c(0x26d)})['option'](_0x5501f5[_0x27f81c(0x12f)],{'type':_0x27f81c(0x26e),'description':'Output\x20structured\x20JSON\x20data\x20instead\x20of\x20markdown','default':![]});},async _0x2af31f=>{const _0x13b379=_0x14f1d0,_0x1fdec1=_0x2af31f[_0x13b379(0x289)],_0xa7ac7b=_0x1fdec1?_0x1fdec1[_0x13b379(0x121)](_0x50812e=>Number(_0x50812e)):undefined;await withTelemetry(_0x5501f5[_0x13b379(0x1e7)],()=>featureReportPrDescription(_0x2af31f['id'],{'excludeScenarios':_0xa7ac7b,'json':_0x2af31f['json']}));})['command']('get-review\x20[id]',_0x14f1d0(0x1b3),_0x28672e=>{const _0x15d8c5=_0x14f1d0;return _0x28672e['positional']('id',{'type':_0x5501f5['kIaLQ'],'description':_0x5501f5[_0x15d8c5(0x1eb)]});},async _0x397cb6=>{const _0x3debce=_0x14f1d0;await withTelemetry(_0x5501f5[_0x3debce(0x1c1)],()=>featureGetReview(_0x397cb6['id']));})[_0x14f1d0(0x1c0)]('delete\x20[id]','Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x27bb7d=>{const _0x36384f=_0x14f1d0;return _0x27bb7d['positional']('id',{'type':_0x36384f(0x156),'description':_0x5501f5['ZqFGT']});},async _0x4f98af=>{await _0x5501f5['MIzgu'](withTelemetry,'delete',()=>featureDelete(_0x4f98af['id']));})['command'](_0x5501f5[_0x14f1d0(0x18b)],_0x5501f5[_0x14f1d0(0x22b)],_0x2c1b85=>{return _0x2c1b85['positional']('id',{'type':_0x5501f5['kIaLQ'],'description':_0x5501f5['vOtDJ'],'demandOption':!![]});},async _0x3617fe=>{const _0xcd1ee3=_0x14f1d0;await withTelemetry(_0x5501f5[_0xcd1ee3(0x1a0)],()=>featureRestore(_0x3617fe['id']));})[_0x14f1d0(0x1c0)](_0x14f1d0(0x149),'Initialize\x20Ranger\x20in\x20your\x20project',_0x2deba5=>{const _0x468811=_0x14f1d0,_0x392326={'yuzlF':function(_0x1df988,_0x44c3ea,_0x16e9c8){return _0x5501f5['MIzgu'](_0x1df988,_0x44c3ea,_0x16e9c8);},'rsfnr':_0x468811(0x158),'eBNdm':function(_0x50f12a,_0x324afe,_0x578130){const _0x5847b8=_0x468811;return _0x5501f5[_0x5847b8(0x295)](_0x50f12a,_0x324afe,_0x578130);},'pFjmc':'setup:all','jBLkV':function(_0x101f76){const _0x50a4bf=_0x468811;return _0x5501f5[_0x50a4bf(0x1d1)](_0x101f76);},'yyLxG':function(_0x2f6bec,_0x3a5f1f){const _0x4f0cc3=_0x468811;return _0x5501f5[_0x4f0cc3(0x1a6)](_0x2f6bec,_0x3a5f1f);},'JuILz':_0x468811(0x1ae)};return _0x2deba5[_0x468811(0x14c)]('Usage:\x20ranger\x20setup\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20all\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Full\x20interactive\x20setup\x20(default\x20when\x20no\x20subcommand\x20given)\x0a\x20\x20deps\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Chromium\x20browser\x20binary\x0a\x20\x20login\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Authenticate\x20with\x20Ranger\x0a\x20\x20skills\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Claude\x20Code\x20plugin\x20and\x20skills\x0a\x20\x20profiles\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Set\x20up\x20a\x20local\x20browser\x20profile\x0a\x0aRun\x20`ranger\x20setup\x20<command>\x20--help`\x20for\x20details.\x0a\x0aExamples:\x0a\x20\x20ranger\x20setup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Interactive\x20first-time\x20setup\x0a\x20\x20ranger\x20setup\x20deps\x20--with-deps\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Chromium\x20+\x20OS\x20deps\x20(Dockerfile)\x0a\x20\x20ranger\x20setup\x20login\x20--mcp\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Authenticate\x20via\x20MCP\x20proxy\x0a\x20\x20ranger\x20setup\x20skills\x20--scope\x20user\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20skills\x20at\x20user\x20level')[_0x468811(0x132)](_0x5501f5['GnPrv'],{'type':'string','description':_0x5501f5[_0x468811(0x297)]})['command'](_0x468811(0x164),'Run\x20full\x20interactive\x20setup',_0x5437af=>{const _0x83f38f=_0x468811;return _0x5437af['option'](_0x83f38f(0x1d4),{'type':_0x83f38f(0x156),'description':_0x5501f5['NbtLa']})['option'](_0x5501f5['VZEpU'],{'type':_0x83f38f(0x26e),'description':_0x5501f5['RMlNI'],'default':![]})[_0x83f38f(0x1a9)](_0x5501f5['OHenx'],{'type':_0x5501f5['cJPgt'],'description':'Skip\x20authentication','default':![]})[_0x83f38f(0x1a9)](_0x83f38f(0x22e),{'type':'boolean','description':_0x83f38f(0x2a5),'default':![]})[_0x83f38f(0x1a9)]('scope',{'type':_0x5501f5['kIaLQ'],'choices':['user',_0x5501f5['QvtzP']],'description':_0x5501f5['Ogqdv']})[_0x83f38f(0x1a9)](_0x83f38f(0x21c),{'type':'string','description':_0x83f38f(0x25b)})[_0x83f38f(0x1a9)](_0x5501f5['NxBMU'],{'type':_0x5501f5['cJPgt'],'description':_0x5501f5['aOUGA'],'default':![]})[_0x83f38f(0x1a9)]('opencode',{'type':_0x83f38f(0x26e),'description':'Install\x20for\x20OpenCode\x20instead\x20of\x20Claude\x20Code','default':![]})[_0x83f38f(0x1a9)](_0x83f38f(0x269),{'type':_0x83f38f(0x26e),'description':_0x83f38f(0x256),'default':![]})[_0x83f38f(0x1a9)](_0x83f38f(0x158),{'type':_0x5501f5['cJPgt'],'description':_0x83f38f(0x19c),'default':![]})[_0x83f38f(0x1a9)]('mcp',{'type':_0x5501f5['cJPgt'],'description':_0x5501f5['EqPbT'],'default':![]});},async _0x1ec46c=>{const _0x328821=_0x468811;(_0x1ec46c[_0x328821(0x158)]||_0x1ec46c['mcp'])&&await _0x392326[_0x328821(0x1f0)](withTelemetry,_0x392326[_0x328821(0x2ae)],()=>mcpBootstrap()),await _0x392326['eBNdm'](withTelemetry,_0x392326[_0x328821(0x1a3)],_0x5bde12=>start(_0x1ec46c['token'],{'skipChromium':_0x1ec46c[_0x328821(0x237)],'skipAuth':_0x1ec46c['skip-auth'],'withDeps':_0x1ec46c['with-deps'],'scope':_0x1ec46c['scope'],'url':_0x1ec46c[_0x328821(0x21c)],'force':_0x1ec46c[_0x328821(0x275)],'opencode':_0x1ec46c[_0x328821(0x288)],'allowInsecureLocalhost':_0x1ec46c['allow-insecure-localhost']},_0x5bde12));})['command']('deps',_0x5501f5[_0x468811(0x223)],_0x3727b6=>{return _0x3727b6['option']('with-deps',{'type':'boolean','description':'Install\x20OS-level\x20dependencies\x20for\x20Chromium\x20(apt\x20packages\x20for\x20Debian/Ubuntu\x20containers)','default':![]});},async _0x40b90b=>{await withTelemetry('setup:deps',()=>ensureChromium(_0x40b90b['with-deps']));})[_0x468811(0x1c0)]('login',_0x5501f5[_0x468811(0x1e6)],_0x54e778=>{const _0x4cf43c=_0x468811;return _0x54e778['option']('token',{'type':'string','description':_0x4cf43c(0x196)})['option'](_0x5501f5['XIXLB'],{'type':_0x5501f5['cJPgt'],'description':'Authenticate\x20via\x20MCP\x20proxy','default':![]});},async _0x32df84=>{const _0x1e6f60=_0x468811,_0x633b17={'fTQFa':function(_0x1a1c07){return _0x5501f5['fhkmL'](_0x1a1c07);},'hbMjX':'Failed\x20to\x20exchange\x20MCP\x20refresh\x20token\x20for\x20a\x20CLI\x20token.','KQYkn':function(_0x3aa304,_0x2b90de){return _0x5501f5['IWDAw'](_0x3aa304,_0x2b90de);}};await _0x5501f5[_0x1e6f60(0x295)](withTelemetry,'setup:login',async()=>{const _0x2a4200=_0x1e6f60;if(_0x32df84[_0x2a4200(0x175)]){await mcpBootstrap();const _0x2a6c82=await _0x633b17[_0x2a4200(0x1b9)](refreshCliToken);if(!_0x2a6c82)throw new Error(_0x633b17[_0x2a4200(0x147)]);const _0x2db821=await getCurrentUser(_0x2a6c82);if(!_0x2db821[_0x2a4200(0x1d3)])throw new Error('Authenticated\x20via\x20MCP,\x20but\x20failed\x20to\x20verify:\x20'+_0x2db821[_0x2a4200(0x1b1)]);console['log']('✓\x20Authenticated\x20to\x20'+_0x2db821['user']['organizationName']);return;}await _0x633b17[_0x2a4200(0x230)](authenticate,_0x32df84[_0x2a4200(0x1d4)]);});})['command'](_0x5501f5['AlcfL'],_0x468811(0x166),_0x3fd800=>{const _0x1933ca=_0x468811;return _0x3fd800['option'](_0x5501f5[_0x1933ca(0x27d)],{'type':_0x1933ca(0x156),'choices':['user',_0x5501f5[_0x1933ca(0x172)]],'description':'Install\x20scope\x20for\x20plugin\x20and\x20skills'})['option'](_0x1933ca(0x288),{'type':_0x1933ca(0x26e),'description':_0x5501f5[_0x1933ca(0x1a8)],'default':![]});},async _0x4308db=>{const _0x447877=_0x468811;await withTelemetry(_0x447877(0x27b),async()=>{const _0x3d5308=_0x447877,_0x3f8c5f=_0x4308db[_0x3d5308(0x253)];if(_0x4308db['opencode']){const _0x13b9a5=await ensureOpencodePluginConfig(_0x3f8c5f);_0x13b9a5&&await installSkill(_0x3d5308(0x15a),{'level':_0x13b9a5[_0x3d5308(0x253)],'cliVersion':_0x392326[_0x3d5308(0x1be)](getCurrentVersion),'platform':_0x3d5308(0x288)});}else await _0x392326['yyLxG'](ensureClaudePlugin,_0x3f8c5f),await ensureClaudeSkills(_0x3f8c5f);});})[_0x468811(0x1c0)](_0x5501f5['JOuJJ'],_0x5501f5['JBwIz'],_0x17121e=>{const _0x1e2a8b=_0x468811;return _0x17121e[_0x1e2a8b(0x1a9)](_0x1e2a8b(0x253),{'type':'string','choices':[_0x1e2a8b(0x16a),_0x5501f5['QvtzP']],'description':_0x5501f5['fMzkK']})['option'](_0x5501f5[_0x1e2a8b(0x259)],{'type':_0x5501f5['kIaLQ'],'description':'Base\x20URL\x20of\x20the\x20running\x20app'})['option'](_0x5501f5[_0x1e2a8b(0x1b0)],{'type':_0x1e2a8b(0x26e),'description':_0x5501f5['TtIZn'],'default':![]})['option'](_0x5501f5[_0x1e2a8b(0x2ad)],{'type':'boolean','description':_0x5501f5['aOUGA'],'default':![]})['option'](_0x1e2a8b(0x269),{'type':_0x5501f5[_0x1e2a8b(0x1db)],'description':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments','default':![]});},async _0x2e81d0=>{const _0x598cd5=_0x468811;await withTelemetry(_0x392326[_0x598cd5(0x17c)],_0x405dd5=>ensureLocalEnv({'url':_0x2e81d0['url'],'force':_0x2e81d0[_0x598cd5(0x275)],'allowInsecureLocalhost':_0x2e81d0[_0x598cd5(0x269)],'scope':_0x2e81d0['scope']==='user'?'user':undefined},_0x405dd5));})['option'](_0x5501f5['VZEpU'],{'type':_0x468811(0x26e),'description':_0x5501f5['RMlNI'],'default':![]})['option'](_0x5501f5['RTpPD'],{'type':'string','choices':[_0x468811(0x16a),_0x5501f5['QvtzP']],'description':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)'})[_0x468811(0x1a9)](_0x5501f5['wghrn'],{'type':_0x5501f5[_0x468811(0x1af)],'description':_0x468811(0x17f)})['option'](_0x468811(0x275),{'type':_0x468811(0x26e),'description':_0x5501f5[_0x468811(0x272)],'default':![]})[_0x468811(0x1a9)]('opencode',{'type':_0x5501f5['cJPgt'],'description':_0x5501f5['cEVAQ'],'default':![]})['option']('allow-insecure-localhost',{'type':_0x5501f5['cJPgt'],'description':_0x5501f5[_0x468811(0x1e8)],'default':![]})['option'](_0x468811(0x158),{'type':'boolean','description':_0x5501f5[_0x468811(0x20d)],'default':![]})['option'](_0x5501f5[_0x468811(0x1b0)],{'type':_0x5501f5[_0x468811(0x1db)],'description':_0x5501f5['PaQRB'],'default':![]})[_0x468811(0x1a9)](_0x5501f5[_0x468811(0x299)],{'type':_0x5501f5['cJPgt'],'description':_0x5501f5['TjYLZ'],'default':![]})[_0x468811(0x1a9)](_0x468811(0x1d4),{'type':'string','hidden':!![],'description':_0x468811(0x1fb)});},async _0x4552f7=>{const _0x505e41=_0x14f1d0,_0x1f9044=_0x4552f7['tokenOrSubcommand'],_0xc17573=_0x4552f7['token']??_0x1f9044;_0x4552f7[_0x5501f5['Qrsqd']]&&await withTelemetry(_0x5501f5[_0x505e41(0x189)],()=>mcpBootstrap()),await withTelemetry(_0x5501f5[_0x505e41(0x16c)],_0x123797=>start(_0xc17573,{'skipChromium':_0x4552f7['skip-chromium'],'skipAuth':_0x4552f7[_0x505e41(0x127)],'withDeps':_0x4552f7[_0x505e41(0x22e)],'scope':_0x4552f7[_0x505e41(0x253)],'url':_0x4552f7[_0x505e41(0x21c)],'force':_0x4552f7['force'],'opencode':_0x4552f7[_0x505e41(0x288)],'allowInsecureLocalhost':_0x4552f7['allow-insecure-localhost']},_0x123797));})['command'](_0x14f1d0(0x1ed),'Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)',_0x263677=>{const _0x38370d=_0x14f1d0;return _0x263677[_0x38370d(0x132)]('token',{'type':'string','description':'Ranger\x20API\x20token','demandOption':!![]})['option']('profile',{'type':_0x5501f5['kIaLQ'],'description':_0x5501f5['YrNPH']})[_0x38370d(0x1a9)](_0x38370d(0x266),{'type':_0x38370d(0x156),'description':_0x5501f5[_0x38370d(0x18f)]})['option'](_0x38370d(0x237),{'type':'boolean','description':_0x5501f5['DafvU'],'default':![]});},async _0x36607e=>{const _0x3a5008=_0x14f1d0;await _0x5501f5[_0x3a5008(0x11a)](withTelemetry,_0x3a5008(0x1d5),_0x537265=>setupCi(_0x36607e['token'],{'profile':_0x36607e[_0x3a5008(0x265)],'baseUrl':_0x36607e['base-url'],'skipChromium':_0x36607e['skip-chromium']},_0x537265));})[_0x14f1d0(0x1c0)](_0x5501f5['eXzla'],_0x5501f5['kMCFT'],()=>{},async()=>{const _0x1782ef=_0x14f1d0;await _0x5501f5[_0x1782ef(0x24b)](withTelemetry,_0x5501f5[_0x1782ef(0x11d)],()=>login());})['command'](_0x5501f5['TicBa'],_0x5501f5['KTMtG'],_0x3f59b4=>{const _0x53d71c=_0x14f1d0;return _0x3f59b4[_0x53d71c(0x1a9)](_0x5501f5[_0x53d71c(0x21e)],{'type':'boolean','description':_0x5501f5[_0x53d71c(0x21f)],'default':![]})['option']('scope',{'type':_0x53d71c(0x156),'choices':[_0x5501f5[_0x53d71c(0x1ea)],'project'],'description':_0x5501f5['JYslu']});},async _0x258c0a=>{const _0x196a3b=_0x14f1d0,_0x135fa1=_0x5501f5[_0x196a3b(0x1a5)](Boolean,_0x258c0a['opencode']);await withTelemetry(_0x5501f5['TicBa'],()=>skillup({'autoInstall':_0x258c0a['scope'],'platform':_0x135fa1?'opencode':_0x196a3b(0x1b8)}));})[_0x14f1d0(0x1c0)](_0x14f1d0(0x235),_0x5501f5[_0x14f1d0(0x1a2)],()=>{},async()=>{await _0x5501f5['IeKgP'](withTelemetry,_0x5501f5['WcFvD'],()=>clean());})['command'](_0x5501f5[_0x14f1d0(0x209)],_0x14f1d0(0x285),_0xfb7246=>{const _0x527a45=_0x14f1d0,_0x4f399e={'necBR':'profile\x20add','uoaDn':_0x527a45(0x111),'WiCsg':function(_0x4037b9,_0x99a5b4,_0x5d0214){return _0x4037b9(_0x99a5b4,_0x5d0214);},'ZxvTk':_0x527a45(0x265),'nEwnF':_0x527a45(0x155),'CwLPz':_0x527a45(0x123),'mSuCm':_0x5501f5[_0x527a45(0x1db)],'IqXOW':function(_0x450242,_0x1460bd,_0x373496){return _0x450242(_0x1460bd,_0x373496);},'LczOh':_0x5501f5[_0x527a45(0x260)],'HarrR':function(_0x341adf,_0x7cc776,_0x4280e1){return _0x341adf(_0x7cc776,_0x4280e1);},'aWAkp':function(_0x44d606,_0x581ca0){return _0x44d606===_0x581ca0;},'JFEjW':_0x5501f5['IgSEu'],'NDWiS':_0x527a45(0x156),'lbbnQ':_0x5501f5[_0x527a45(0x1bb)],'GfJqD':_0x5501f5['IPbsD'],'ZyPVM':'profile\x20config\x20set','wRIUj':_0x5501f5[_0x527a45(0x264)],'vQSox':function(_0x48fde8,_0xe3d227,_0x22d780){return _0x5501f5['MIzgu'](_0x48fde8,_0xe3d227,_0x22d780);}};return _0xfb7246['usage'](PROFILE_HELP)['command'](_0x5501f5[_0x527a45(0x26c)],'Add\x20profile\x20configuration',_0x18c8c5=>{const _0x5e2551=_0x527a45;return _0x18c8c5['positional'](_0x5501f5[_0x5e2551(0x195)],{'type':'string','description':'Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','demandOption':!![]})['option']('ci',{'type':_0x5501f5['cJPgt'],'description':'Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','default':![]})['option']('skip-auth',{'type':_0x5e2551(0x26e),'description':_0x5501f5['PwpNL'],'default':![]})[_0x5e2551(0x1a9)](_0x5e2551(0x21c),{'type':_0x5501f5['kIaLQ'],'description':_0x5e2551(0x1f2)})['option'](_0x5e2551(0x275),{'type':'boolean','description':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','default':![]})[_0x5e2551(0x1a9)](_0x5e2551(0x111),{'type':_0x5501f5['kIaLQ'],'description':'CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.'})[_0x5e2551(0x1a9)](_0x5501f5[_0x5e2551(0x1d2)],{'type':_0x5e2551(0x26e),'description':_0x5e2551(0x133),'default':![]})['option'](_0x5501f5[_0x5e2551(0x23f)],{'type':_0x5501f5['cJPgt'],'description':_0x5501f5['zkrtB'],'default':![]})[_0x5e2551(0x1a9)](_0x5e2551(0x262),{'type':'string','array':!![],'description':_0x5e2551(0x194)})['option']('scope',{'type':_0x5e2551(0x156),'choices':['user','project'],'description':'Where\x20to\x20store\x20the\x20profile:\x20user\x20(~/.ranger/)\x20or\x20project\x20(.ranger/)'})[_0x5e2551(0x1a9)](_0x5e2551(0x29f),{'type':_0x5e2551(0x26e),'alias':'y','description':_0x5e2551(0x113),'default':![]});},async _0x12a2e9=>{const _0x5e1e92=_0x527a45;await withTelemetry(_0x4f399e[_0x5e1e92(0x20b)],_0x1160e3=>addEnv(_0x12a2e9['profile-name'],{'ci':_0x12a2e9['ci'],'skipAuth':_0x12a2e9['skip-auth'],'url':_0x12a2e9['url'],'force':_0x12a2e9[_0x5e1e92(0x275)],'cdpEndpoint':_0x12a2e9['cdp-endpoint'],'allowInsecureLocalhost':_0x12a2e9['allow-insecure-localhost'],'safeMode':_0x12a2e9[_0x5e1e92(0x11c)],'setupHeader':_0x12a2e9['setup-header'],'scope':_0x12a2e9['scope'],'yes':_0x12a2e9[_0x5e1e92(0x29f)]},_0x1160e3),{'isElectron':Boolean(_0x12a2e9[_0x4f399e['uoaDn']])});})[_0x527a45(0x1c0)](_0x5501f5['ODAAE'],_0x5501f5['wNjIc'],_0x28ad7d=>{const _0x14c9a7=_0x527a45;return _0x28ad7d[_0x14c9a7(0x132)]('profile-name',{'type':_0x5501f5[_0x14c9a7(0x1af)],'description':_0x14c9a7(0x240),'demandOption':!![]});},async _0x2677bc=>{const _0x46796c=_0x527a45;await _0x4f399e[_0x46796c(0x273)](withTelemetry,_0x46796c(0x280),()=>useEnv(_0x2677bc[_0x46796c(0x14b)]));})['command'](_0x5501f5[_0x527a45(0x1de)],_0x527a45(0x17b),_0x884c7b=>{const _0x5da533=_0x527a45;return _0x884c7b['positional'](_0x4f399e[_0x5da533(0x14f)],{'type':_0x5da533(0x156),'description':_0x4f399e['nEwnF'],'demandOption':!![]});},async _0xe58349=>{const _0xdb7041=_0x527a45;await withTelemetry('profile\x20encrypt-auth',()=>authEncrypt(_0xe58349[_0xdb7041(0x265)]));})[_0x527a45(0x1c0)]('ls',_0x5501f5['ESeig'],()=>{},async()=>{const _0x9bd9e=_0x527a45;await withTelemetry(_0x9bd9e(0x254),()=>envList());})[_0x527a45(0x1c0)]('update\x20<profile-name>',_0x527a45(0x144),_0x14577d=>{const _0xcf044b=_0x527a45;return _0x14577d['positional']('profile-name',{'type':_0xcf044b(0x156),'description':_0x4f399e[_0xcf044b(0x225)],'demandOption':!![]})[_0xcf044b(0x1a9)]('allow-insecure-localhost',{'type':_0x4f399e['mSuCm'],'description':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)'});},async _0xf2fdb8=>{const _0x41b15e=_0x527a45;await _0x4f399e[_0x41b15e(0x23c)](withTelemetry,_0x4f399e['LczOh'],_0x5a5303=>updateEnv(_0xf2fdb8['profile-name'],_0x5a5303,{'allowInsecureLocalhost':_0xf2fdb8['allow-insecure-localhost']}));})['command'](_0x5501f5[_0x527a45(0x143)],![],_0x5483f7=>{const _0x5933be=_0x527a45;return _0x5483f7['positional'](_0x5933be(0x15f),{'type':_0x5501f5['kIaLQ'],'description':_0x5501f5[_0x5933be(0x255)],'demandOption':!![]});},async _0xedfca3=>{const _0x1612e7=_0x527a45;await _0x5501f5['IeKgP'](withTelemetry,_0x5501f5[_0x1612e7(0x183)],async()=>{const _0x1345df=_0x1612e7,_0x18c90c=process[_0x1345df(0x178)][_0x1345df(0x125)],_0x3183a1=process[_0x1345df(0x178)][_0x1345df(0x274)];(!_0x18c90c||!_0x3183a1)&&(console[_0x1345df(0x1b1)]('Error:\x20`ranger\x20profile\x20login`\x20is\x20headless\x20—\x20set\x20RANGER_TEST_USERNAME\x20and\x20RANGER_TEST_PASSWORD\x20before\x20running.'),process['exit'](0x1));const _0x404184=_0xedfca3[_0x1345df(0x15f)],_0x3f7f30=await _0x4f399e['HarrR'](serverSideLogin,_0x404184,{'force':!![]});_0x4f399e['aWAkp'](_0x3f7f30['status'],'not_configured')&&(console[_0x1345df(0x1b1)]('No\x20auth\x20config\x20for\x20this\x20org;\x20profile\x20login\x20unavailable.'),process[_0x1345df(0x27f)](0x1)),_0x4f399e['aWAkp'](_0x3f7f30[_0x1345df(0x281)],'failed')&&(console[_0x1345df(0x1b1)](_0x1345df(0x249)+(_0x3f7f30[_0x1345df(0x1b1)]??_0x1345df(0x165))),_0x3f7f30['test_output']&&console[_0x1345df(0x1b1)](_0x3f7f30[_0x1345df(0x208)]),process[_0x1345df(0x27f)](0x1)),console['log']('✓\x20Server-side\x20login\x20succeeded\x20for\x20\x27'+_0x404184+'\x27.\x20Session\x20written\x20to\x20cloud\x20profile.');});})[_0x527a45(0x1c0)](_0x527a45(0x1b4),'Migrate\x20local\x20profiles\x20to\x20the\x20cloud\x20(requires\x20org\x20auth\x20config)',_0x3f8788=>{const _0xc0d14=_0x527a45;return _0x3f8788['positional']('profile-name',{'type':_0x5501f5['kIaLQ'],'description':_0xc0d14(0x1f4)})['option']('all',{'type':_0x5501f5[_0xc0d14(0x1db)],'description':'Migrate\x20all\x20local\x20profiles\x20that\x20match\x20a\x20configured\x20auth\x20environment.','default':![]})[_0xc0d14(0x1a9)](_0x5501f5['mRAEA'],{'type':_0x5501f5['cJPgt'],'description':'Print\x20the\x20migration\x20plan\x20without\x20mutating\x20anything.','default':![]})[_0xc0d14(0x1a9)]('yes',{'type':'boolean','alias':'y','description':_0xc0d14(0x25e),'default':![]})[_0xc0d14(0x1a9)](_0x5501f5[_0xc0d14(0x187)],{'type':_0xc0d14(0x26e),'description':_0xc0d14(0x138),'default':![]});},async _0x1b3c8d=>{const _0x5b0566=_0x527a45;await _0x5501f5[_0x5b0566(0x1ac)](withTelemetry,'profile\x20migrate',_0x6540e1=>migrateProfile({'profileName':_0x1b3c8d['profile-name'],'all':_0x1b3c8d[_0x5b0566(0x164)],'dryRun':_0x1b3c8d[_0x5b0566(0x19d)],'yes':_0x1b3c8d[_0x5b0566(0x29f)],'saveCreds':_0x1b3c8d['save-creds']},_0x6540e1));})['command'](_0x527a45(0x2b8),_0x527a45(0x248),_0x4ebc7b=>{const _0x4ebc31=_0x527a45,_0x43ffda={'fqvNo':_0x4ebc31(0x156),'bvBwd':_0x4ebc31(0x155),'QnxDK':_0x4ebc31(0x199),'gDqCa':_0x5501f5['oYIzQ'],'PgWeb':_0x4ebc31(0x154)};return _0x4ebc7b['usage'](PROFILE_CONFIG_HELP)[_0x4ebc31(0x1c0)](_0x5501f5['IqGcH'],_0x5501f5['BKiwm'],_0x48096b=>{const _0x257b6c=_0x4ebc31;return _0x48096b[_0x257b6c(0x132)](_0x4f399e[_0x257b6c(0x14f)],{'type':'string','description':_0x4f399e['nEwnF'],'demandOption':!![]})['positional'](_0x4f399e['JFEjW'],{'type':_0x4f399e[_0x257b6c(0x114)],'description':_0x4f399e['lbbnQ'],'demandOption':!![]})['positional'](_0x4f399e[_0x257b6c(0x11f)],{'type':'string','description':'Config\x20value','demandOption':!![]});},async _0x2e594f=>{const _0x2591d9=_0x4ebc31;await withTelemetry(_0x4f399e[_0x2591d9(0x160)],()=>configSet(_0x2e594f[_0x2591d9(0x265)],_0x2e594f[_0x2591d9(0x199)],_0x2e594f['value']));})[_0x4ebc31(0x1c0)]('get\x20<profile>\x20<key>',_0x4ebc31(0x1f5),_0x6cd551=>{const _0x1aa853=_0x4ebc31;return _0x6cd551['positional'](_0x1aa853(0x265),{'type':_0x43ffda[_0x1aa853(0x118)],'description':_0x43ffda['bvBwd'],'demandOption':!![]})[_0x1aa853(0x132)](_0x43ffda[_0x1aa853(0x25c)],{'type':_0x43ffda['fqvNo'],'description':'Config\x20key','demandOption':!![]});},async _0x3ba866=>{const _0x19e2be=_0x4ebc31;await withTelemetry(_0x43ffda[_0x19e2be(0x224)],()=>configGet(_0x3ba866[_0x19e2be(0x265)],_0x3ba866['key']));})['command'](_0x4ebc31(0x294),'List\x20all\x20config\x20for\x20a\x20profile',_0x1d9495=>{const _0x201930=_0x4ebc31;return _0x1d9495[_0x201930(0x132)](_0x4f399e['ZxvTk'],{'type':_0x4f399e[_0x201930(0x114)],'description':_0x4f399e[_0x201930(0x130)],'demandOption':!![]});},async _0x1184ab=>{await withTelemetry(_0x4f399e['wRIUj'],()=>configList(_0x1184ab['profile']));})['command'](_0x5501f5[_0x4ebc31(0x1ad)],_0x5501f5[_0x4ebc31(0x28b)],_0x3fb867=>{const _0x11bf56=_0x4ebc31;return _0x3fb867['positional'](_0x11bf56(0x265),{'type':_0x43ffda['fqvNo'],'description':_0x11bf56(0x155),'demandOption':!![]})['positional'](_0x43ffda['QnxDK'],{'type':'string','description':_0x43ffda['PgWeb'],'demandOption':!![]});},async _0x1909c8=>{await _0x4f399e['WiCsg'](withTelemetry,'profile\x20config\x20unset',()=>configUnset(_0x1909c8['profile'],_0x1909c8['key']));})['command'](_0x4ebc31(0x20a),_0x5501f5[_0x4ebc31(0x115)],_0x4c5472=>{const _0x1518ef=_0x4ebc31;return _0x4c5472[_0x1518ef(0x132)](_0x1518ef(0x265),{'type':_0x4f399e[_0x1518ef(0x114)],'description':_0x4f399e['nEwnF'],'demandOption':!![]});},async _0x2964d1=>{const _0x4a1e58=_0x4ebc31;await _0x4f399e[_0x4a1e58(0x246)](withTelemetry,_0x4a1e58(0x25d),()=>configReset(_0x2964d1[_0x4a1e58(0x265)]));})[_0x4ebc31(0x188)](0x1,_0x4ebc31(0x1ec));})[_0x527a45(0x188)](0x1,_0x5501f5['SWkkp']);})[_0x14f1d0(0x1c0)](_0x5501f5['eDYNE'],_0x5501f5['ywugR'],()=>{},async()=>{await _0x5501f5['IeKgP'](withTelemetry,_0x5501f5['eDYNE'],()=>status());})['command'](_0x14f1d0(0x17a),'Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version',()=>{},async()=>{await withTelemetry('update',()=>update());})['command']('print-access-token','Print\x20the\x20current\x20CLI\x20access\x20token',()=>{},async()=>{const _0x47e051=_0x14f1d0;await _0x5501f5[_0x47e051(0x12e)](withTelemetry,_0x5501f5['QjXrG'],async()=>{const _0x5b3831=_0x47e051,_0x31169d=await getToken();if(!_0x31169d)throw new Error(_0x5b3831(0x200));console[_0x5b3831(0x12b)](_0x31169d);});})['command']('go',_0x5501f5[_0x14f1d0(0x23d)],_0x306352=>{const _0x33e5c2=_0x14f1d0;return _0x306352[_0x33e5c2(0x1a9)](_0x5501f5[_0x33e5c2(0x244)],{'type':_0x5501f5[_0x33e5c2(0x1af)],'description':_0x5501f5['jXxpx']})['option'](_0x33e5c2(0x265),{'type':_0x5501f5['kIaLQ'],'description':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)'})[_0x33e5c2(0x1a9)](_0x33e5c2(0x1cf),{'type':'string','description':_0x5501f5['opTrM']})[_0x33e5c2(0x1a9)](_0x33e5c2(0x142),{'type':'number','description':_0x5501f5[_0x33e5c2(0x28a)]})['option'](_0x5501f5[_0x33e5c2(0x1ee)],{'type':_0x33e5c2(0x156),'description':_0x5501f5['EBpmN']})[_0x33e5c2(0x1a9)](_0x33e5c2(0x266),{'type':_0x5501f5['kIaLQ'],'description':'Override\x20the\x20profile\x20base\x20URL\x20for\x20this\x20run\x20(e.g.,\x20https://localhost:3003).\x20Also\x20respects\x20RANGER_BASE_URL.'})['option'](_0x33e5c2(0x12c),{'type':_0x5501f5['kIaLQ'],'description':_0x5501f5['Vhbyn']})['option'](_0x33e5c2(0x2aa),{'type':'boolean','description':_0x5501f5[_0x33e5c2(0x2ba)],'default':![]})['option'](_0x5501f5[_0x33e5c2(0x186)],{'type':_0x5501f5[_0x33e5c2(0x1af)],'hidden':!![],'choices':[_0x5501f5['pYTQS'],'partial',_0x5501f5['mIcVt'],'failed','incomplete']})[_0x33e5c2(0x1a9)](_0x33e5c2(0x250),{'type':'boolean','hidden':!![]})['option'](_0x33e5c2(0x178),{'type':_0x5501f5[_0x33e5c2(0x1af)],'hidden':!![]})['option']('task',{'type':'string','hidden':!![]})['option'](_0x33e5c2(0x24c),{'type':_0x5501f5[_0x33e5c2(0x1c9)],'hidden':!![]});},async _0x59d0b0=>{await runGoCommand(_0x59d0b0);})[_0x14f1d0(0x1c0)](_0x5501f5['ZDltT'],![],_0x15ec80=>{const _0x178171=_0x14f1d0,_0x5d0f2f={'qRIjx':function(_0x3f5cc2,_0x52ebfe,_0x4c85a5){return _0x3f5cc2(_0x52ebfe,_0x4c85a5);},'OrUVw':_0x178171(0x226),'WlroT':_0x178171(0x29c),'herDE':function(_0xa1d6f9,_0x2335f1){return _0xa1d6f9(_0x2335f1);}};return _0x15ec80[_0x178171(0x1c0)](_0x5501f5['FLrsA'],![],_0xd7c658=>{const _0x26b090=_0x178171;return _0xd7c658[_0x26b090(0x132)](_0x5501f5[_0x26b090(0x209)],{'type':_0x26b090(0x156),'description':_0x26b090(0x155),'demandOption':!![]});},async _0x414a1f=>{const _0x54066a=_0x178171;_0x5d0f2f[_0x54066a(0x15d)](warnRenamed,_0x5d0f2f['OrUVw'],_0x5d0f2f['WlroT']),await _0x5d0f2f[_0x54066a(0x19f)](authEncrypt,_0x414a1f[_0x54066a(0x265)]);})['demandCommand'](0x1,_0x5501f5[_0x178171(0x268)]);},()=>{})[_0x14f1d0(0x1c0)](_0x5501f5['NFDiF'],![],_0x2d5289=>{const _0x105884=_0x14f1d0;return _0x2d5289['positional']('token',{'type':'string','description':_0x105884(0x197)})['option'](_0x5501f5[_0x105884(0x119)],{'type':'boolean','description':_0x5501f5['RMlNI'],'default':![]})['option'](_0x105884(0x253),{'type':_0x5501f5[_0x105884(0x1af)],'choices':[_0x5501f5['OtGPj'],_0x105884(0x171)],'description':_0x105884(0x1da)})[_0x105884(0x1a9)](_0x105884(0x21c),{'type':_0x105884(0x156),'description':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)'})['option'](_0x105884(0x275),{'type':'boolean','description':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','default':![]})[_0x105884(0x1a9)]('skip-auth',{'type':'boolean','description':_0x105884(0x2af),'default':![]})[_0x105884(0x1a9)]('with-deps',{'type':'boolean','description':_0x105884(0x2a5),'default':![]});},async _0x26de8d=>{const _0x493f04=_0x14f1d0;_0x5501f5['dGQHS'](warnRenamed,'ranger\x20start','ranger\x20setup'),await withTelemetry(_0x5501f5['jxwhA'],_0x5df84e=>start(_0x26de8d['token'],{'skipChromium':_0x26de8d['skip-chromium'],'skipAuth':_0x26de8d['skip-auth'],'withDeps':_0x26de8d[_0x493f04(0x22e)],'scope':_0x26de8d['scope'],'url':_0x26de8d[_0x493f04(0x21c)],'force':_0x26de8d[_0x493f04(0x275)]},_0x5df84e));})['command'](_0x14f1d0(0x177),![],_0x49f985=>{const _0x33b544=_0x14f1d0;return _0x49f985[_0x33b544(0x1a9)](_0x5501f5['zJPUr'],{'type':_0x33b544(0x156),'description':_0x5501f5[_0x33b544(0x179)]})['option']('task',{'type':_0x33b544(0x156),'description':_0x5501f5['KiAST']})[_0x33b544(0x1a9)](_0x5501f5[_0x33b544(0x24e)],{'type':_0x5501f5['QSneg'],'description':_0x5501f5[_0x33b544(0x28a)]})['option']('profile',{'type':_0x5501f5['kIaLQ'],'hidden':!![]})['option']('notes',{'type':_0x33b544(0x156),'hidden':!![]})['option']('scenario',{'type':_0x5501f5[_0x33b544(0x1c9)],'hidden':!![]})['option'](_0x5501f5[_0x33b544(0x1ee)],{'type':'string','description':_0x33b544(0x28f)})['option']('base-url',{'type':_0x5501f5['kIaLQ'],'description':_0x5501f5[_0x33b544(0x1fa)]})[_0x33b544(0x1a9)]('model',{'type':_0x5501f5['kIaLQ'],'hidden':!![]})[_0x33b544(0x1a9)](_0x33b544(0x2aa),{'type':_0x33b544(0x26e),'hidden':!![],'default':![]})[_0x33b544(0x1a9)]('debug-outcome',{'type':_0x5501f5['kIaLQ'],'hidden':!![],'choices':['verified',_0x33b544(0x26b),_0x33b544(0x217),'failed',_0x5501f5[_0x33b544(0x20c)]]});},async _0x5348f4=>{const _0x321f34=_0x14f1d0;await _0x5501f5[_0x321f34(0x295)](runGoCommand,_0x5348f4,!![]);})[_0x14f1d0(0x1c0)](_0x14f1d0(0x1e0),![],_0x2d34c1=>{const _0x20a50c=_0x14f1d0;return _0x2d34c1[_0x20a50c(0x132)](_0x20a50c(0x1a4),{'type':'string','description':_0x20a50c(0x25f),'demandOption':!![]})['option']('ci',{'type':_0x5501f5[_0x20a50c(0x1db)],'description':_0x5501f5[_0x20a50c(0x1f9)],'default':![]})['option'](_0x5501f5['OHenx'],{'type':_0x5501f5['cJPgt'],'description':_0x5501f5[_0x20a50c(0x18e)],'default':![]});},async _0x974f0f=>{const _0x3b997b=_0x14f1d0;_0x5501f5[_0x3b997b(0x295)](warnRenamed,_0x5501f5['PAyoq'],'ranger\x20profile\x20add'),await withTelemetry('add\x20env',_0x3073cf=>addEnv(_0x974f0f['env-name'],{'ci':_0x974f0f['ci'],'skipAuth':_0x974f0f['skip-auth']},_0x3073cf));})[_0x14f1d0(0x1c0)](_0x5501f5[_0x14f1d0(0x1c7)],![],_0x479871=>{const _0x503acb=_0x14f1d0;return _0x479871[_0x503acb(0x132)]('env-name',{'type':'string','description':_0x503acb(0x137),'demandOption':!![]});},async _0x45e92b=>{const _0x5a2d8f=_0x14f1d0;warnRenamed(_0x5a2d8f(0x19a),_0x5a2d8f(0x1b2)),await _0x5501f5[_0x5a2d8f(0x12e)](withTelemetry,'use',()=>useEnv(_0x45e92b['env-name']));})['command'](_0x14f1d0(0x2b8),![],_0x3fc34d=>{const _0x295c70=_0x14f1d0,_0x24ec17={'wUDgA':'env','gVwpY':_0x5501f5[_0x295c70(0x18a)],'jyCZS':_0x5501f5['WPNXC'],'oJVeA':_0x295c70(0x156),'LTPUI':_0x295c70(0x271),'tdjnu':function(_0x4c59f5,_0x1821d6,_0xee031d){return _0x5501f5['IeKgP'](_0x4c59f5,_0x1821d6,_0xee031d);},'xcCHg':_0x5501f5[_0x295c70(0x267)],'WCHhc':_0x5501f5['rIsrr'],'XQXUB':_0x295c70(0x28e),'ZkRkx':'key','eiMCo':_0x295c70(0x22d),'rWWcS':_0x5501f5['sQpdl'],'PZaLB':_0x5501f5['xqZiZ']};return _0x3fc34d['command'](_0x295c70(0x214),![],_0x55176d=>{const _0x549584=_0x295c70;return _0x55176d['positional'](_0x24ec17['wUDgA'],{'type':'string','description':_0x24ec17[_0x549584(0x243)],'demandOption':!![]})[_0x549584(0x132)]('key',{'type':_0x549584(0x156),'description':_0x24ec17['jyCZS'],'demandOption':!![]})[_0x549584(0x132)](_0x549584(0x21a),{'type':_0x24ec17[_0x549584(0x19e)],'description':_0x24ec17['LTPUI'],'demandOption':!![]});},async _0x2ad3c7=>{const _0x597ab4=_0x295c70;_0x5501f5[_0x597ab4(0x1ac)](warnRenamed,_0x597ab4(0x174),_0x597ab4(0x129)),await _0x5501f5['glrlP'](withTelemetry,_0x597ab4(0x18c),()=>configSet(_0x2ad3c7['env'],_0x2ad3c7[_0x597ab4(0x199)],_0x2ad3c7['value']));})[_0x295c70(0x1c0)](_0x5501f5['zjnKD'],![],_0x17b6e8=>{const _0x466db7=_0x295c70;return _0x17b6e8['positional'](_0x5501f5[_0x466db7(0x296)],{'type':_0x5501f5['kIaLQ'],'description':_0x5501f5['vWqNX'],'demandOption':!![]})['positional'](_0x466db7(0x199),{'type':_0x466db7(0x156),'description':_0x5501f5['YekPN'],'demandOption':!![]});},async _0x40f789=>{const _0xf504b0=_0x295c70;_0x24ec17[_0xf504b0(0x190)](warnRenamed,_0x24ec17['xcCHg'],_0x24ec17['WCHhc']),await withTelemetry(_0x24ec17['XQXUB'],()=>configGet(_0x40f789[_0xf504b0(0x178)],_0x40f789[_0xf504b0(0x199)]));})['command'](_0x295c70(0x228),![],_0x4c7d96=>{const _0x9672fa=_0x295c70;return _0x4c7d96[_0x9672fa(0x132)](_0x24ec17[_0x9672fa(0x1c5)],{'type':_0x9672fa(0x156),'description':_0x24ec17['gVwpY'],'demandOption':!![]});},async _0x3f1b1f=>{const _0x26b287=_0x295c70;warnRenamed(_0x5501f5[_0x26b287(0x28c)],'ranger\x20profile\x20config\x20list'),await withTelemetry(_0x26b287(0x238),()=>configList(_0x3f1b1f[_0x26b287(0x178)]));})['command'](_0x5501f5['mwZpX'],![],_0x452fd4=>{const _0x21f753=_0x295c70;return _0x452fd4[_0x21f753(0x132)](_0x24ec17[_0x21f753(0x1c5)],{'type':_0x24ec17['oJVeA'],'description':_0x24ec17['gVwpY'],'demandOption':!![]})['positional'](_0x24ec17['ZkRkx'],{'type':'string','description':_0x21f753(0x154),'demandOption':!![]});},async _0xc5574b=>{const _0x1f5145=_0x295c70;_0x24ec17['tdjnu'](warnRenamed,_0x24ec17['eiMCo'],_0x24ec17[_0x1f5145(0x219)]),await withTelemetry(_0x24ec17['PZaLB'],()=>configUnset(_0xc5574b[_0x1f5145(0x178)],_0xc5574b['key']));})['demandCommand'](0x1,_0x295c70(0x112));})['command'](_0x5501f5[_0x14f1d0(0x296)],![],_0x2f55cf=>{const _0x5257b0=_0x14f1d0,_0x449010={'BVyHf':'env\x20update'};return _0x2f55cf['command']('ls',![],()=>{},async()=>{const _0x1cba29=_0x1cda;_0x5501f5['IeKgP'](warnRenamed,_0x1cba29(0x17e),_0x5501f5[_0x1cba29(0x1c2)]),await withTelemetry(_0x5501f5['VGsIk'],()=>envList());})[_0x5257b0(0x1c0)](_0x5501f5['owZLc'],![],_0xd9d16a=>{const _0x5dd088=_0x5257b0;return _0xd9d16a[_0x5dd088(0x132)](_0x5501f5[_0x5dd088(0x290)],{'type':'string','description':'Name\x20of\x20the\x20environment\x20to\x20update','demandOption':!![]});},async _0x432e8f=>{const _0x32a216=_0x5257b0;warnRenamed(_0x32a216(0x211),'ranger\x20profile\x20update'),await withTelemetry(_0x449010['BVyHf'],_0x2193fc=>updateEnv(_0x432e8f[_0x32a216(0x1a4)],_0x2193fc));})[_0x5257b0(0x188)](0x1,_0x5501f5[_0x5257b0(0x1d8)]);})[_0x14f1d0(0x1c0)]('feature',![],_0x5add83=>{const _0x18427f=_0x14f1d0,_0x1f9ad3={'IgfBb':_0x5501f5[_0x18427f(0x110)],'KvWzh':_0x5501f5['kIaLQ'],'zZZch':_0x5501f5['zKZFH'],'Dduwq':_0x5501f5[_0x18427f(0x2b2)],'WZiZB':_0x18427f(0x2b3),'KLDJh':_0x5501f5['ICxQn'],'hByNq':_0x18427f(0x1cc),'UqBnw':_0x5501f5['BgAyj'],'bErSl':_0x5501f5[_0x18427f(0x1cd)],'usnbM':function(_0x57fbaa,_0x51d3da,_0x63da2c){return _0x57fbaa(_0x51d3da,_0x63da2c);},'KQFOP':_0x5501f5[_0x18427f(0x1c4)],'mSjSZ':function(_0x438250,_0x40b77e,_0x2b5fa1){return _0x5501f5['MtoEN'](_0x438250,_0x40b77e,_0x2b5fa1);},'nGvBz':_0x5501f5['ikeVf'],'SwUub':function(_0x465293,_0x419a16,_0x1a5ea){return _0x465293(_0x419a16,_0x1a5ea);},'GGfyQ':_0x5501f5['Ebvpu'],'YFNlG':_0x18427f(0x2b4),'HByZo':function(_0x88070e,_0x59424a,_0xcae639){const _0x346d0e=_0x18427f;return _0x5501f5[_0x346d0e(0x202)](_0x88070e,_0x59424a,_0xcae639);},'Pdjoq':_0x18427f(0x1b7)};return _0x5add83[_0x18427f(0x1c0)](_0x18427f(0x2b5),![],_0x8ffc30=>{const _0x28af7d=_0x18427f;return _0x8ffc30[_0x28af7d(0x132)](_0x1f9ad3['IgfBb'],{'type':_0x1f9ad3['KvWzh'],'description':'Feature\x20review\x20name','demandOption':!![]})['option'](_0x1f9ad3['zZZch'],{'type':_0x1f9ad3['KvWzh'],'alias':'d','description':_0x1f9ad3[_0x28af7d(0x176)]})['option'](_0x1f9ad3['WZiZB'],{'type':'array','alias':'c','description':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)'})[_0x28af7d(0x1a9)](_0x1f9ad3['KLDJh'],{'type':'array','hidden':!![]});},async _0x51d48=>{const _0x14ba1a=_0x18427f;warnRenamed(_0x1f9ad3[_0x14ba1a(0x1aa)],_0x14ba1a(0x16e)),warnFlagRenamed(_0x1f9ad3[_0x14ba1a(0x1b5)],_0x1f9ad3[_0x14ba1a(0x134)],'--scenario');const _0x40ace7=_0x51d48['scenario']||_0x51d48['checklist'];await withTelemetry(_0x14ba1a(0x212),()=>featureCreate(_0x51d48['name'],{'description':_0x51d48[_0x14ba1a(0x2a4)],'scenarios':_0x40ace7}));})[_0x18427f(0x1c0)]('list',![],_0x4a2ae8=>{const _0x1e8c9a=_0x18427f;return _0x4a2ae8['option'](_0x1e8c9a(0x12a),{'type':'boolean','description':_0x5501f5[_0x1e8c9a(0x10f)]})['option'](_0x5501f5[_0x1e8c9a(0x120)],{'type':'number','alias':'l','description':_0x1e8c9a(0x1c3),'default':0xa})['option'](_0x5501f5[_0x1e8c9a(0x263)],{'type':_0x1e8c9a(0x287),'alias':'o','description':_0x5501f5[_0x1e8c9a(0x29e)],'default':0x0})['option'](_0x5501f5['SIFhL'],{'type':_0x1e8c9a(0x26e),'alias':'d','description':_0x1e8c9a(0x24a),'default':![]});},async _0x31ec4f=>{const _0x3f0e84=_0x18427f;_0x1f9ad3[_0x3f0e84(0x1a7)](warnRenamed,_0x3f0e84(0x2ab),_0x3f0e84(0x25a)),await withTelemetry(_0x3f0e84(0x1ef),()=>featureList({'currentBranch':_0x31ec4f[_0x3f0e84(0x12a)],'limit':_0x31ec4f[_0x3f0e84(0x220)],'offset':_0x31ec4f['offset'],'includeDeleted':_0x31ec4f['include-deleted']}));})['command']('show\x20[id]',![],_0x8a0cd9=>{const _0x5ea8d8=_0x18427f;return _0x8a0cd9[_0x5ea8d8(0x132)]('id',{'type':_0x5501f5[_0x5ea8d8(0x1af)],'description':_0x5501f5['ZqFGT']});},async _0xa2d0a8=>{const _0x259b3c=_0x18427f;warnRenamed('ranger\x20feature\x20show',_0x1f9ad3[_0x259b3c(0x168)]),await _0x1f9ad3[_0x259b3c(0x16d)](withTelemetry,'feature\x20show',()=>featureShow(_0xa2d0a8['id']));})['command'](_0x5501f5['KudMo'],![],_0x5c8ff5=>{const _0x3c7121=_0x18427f;return _0x5c8ff5['positional']('id',{'type':_0x3c7121(0x156),'description':_0x3c7121(0x13f)});},async _0x2703fb=>{const _0x44113c=_0x18427f;_0x5501f5[_0x44113c(0x21b)](warnRenamed,_0x5501f5[_0x44113c(0x239)],_0x5501f5['ntlZb']),await withTelemetry(_0x5501f5[_0x44113c(0x2b1)],()=>featureResume(_0x2703fb['id']));})[_0x18427f(0x1c0)]('add-checklist-item\x20<description>',![],_0x173900=>{const _0xa7d099=_0x18427f;return _0x173900['positional']('description',{'type':_0xa7d099(0x156),'description':_0x1f9ad3['nGvBz'],'demandOption':!![]})[_0xa7d099(0x1a9)]('id',{'type':_0x1f9ad3[_0xa7d099(0x293)],'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x83badf=>{const _0x59609d=_0x18427f;_0x1f9ad3[_0x59609d(0x128)](warnRenamed,_0x59609d(0x222),_0x1f9ad3['GGfyQ']),await withTelemetry(_0x59609d(0x193),()=>featureAddScenario(_0x83badf['description'],_0x83badf['id']));})[_0x18427f(0x1c0)](_0x5501f5['zgxsS'],![],_0x249abb=>{const _0x591c2d=_0x18427f;return _0x249abb['positional']('id',{'type':_0x591c2d(0x156),'description':_0x1f9ad3[_0x591c2d(0x233)]});},async _0xfac1a5=>{const _0x303168=_0x18427f;warnRenamed(_0x5501f5['IEQfg'],_0x5501f5['LONjO']),await _0x5501f5['cMIqg'](withTelemetry,_0x303168(0x192),()=>featureGetReview(_0xfac1a5['id']));})[_0x18427f(0x1c0)](_0x18427f(0x14a),![],_0x17ed15=>{const _0x2c6104=_0x18427f;return _0x17ed15['positional']('id',{'type':_0x5501f5[_0x2c6104(0x1af)],'description':_0x2c6104(0x291)});},async _0x1c7394=>{const _0x58139c=_0x18427f;warnRenamed(_0x58139c(0x1b6),_0x58139c(0x2ac)),await withTelemetry(_0x5501f5[_0x58139c(0x13d)],()=>featureDelete(_0x1c7394['id']));})['command'](_0x5501f5[_0x18427f(0x18b)],![],_0x2f304c=>{const _0x4ab0d4=_0x18427f;return _0x2f304c['positional']('id',{'type':'string','description':_0x5501f5[_0x4ab0d4(0x191)],'demandOption':!![]});},async _0x45819a=>{const _0x1c48fd=_0x18427f;_0x1f9ad3['HByZo'](warnRenamed,_0x1f9ad3[_0x1c48fd(0x140)],'ranger\x20restore'),await withTelemetry('feature\x20restore',()=>featureRestore(_0x45819a['id']));})[_0x18427f(0x188)](0x1,_0x5501f5['KCuQJ']);})[_0x14f1d0(0x1c0)](_0x5501f5['haEWH'],![],_0x85c769=>{const _0x121444=_0x14f1d0,_0x4e9f0f={'IVSTT':_0x5501f5['kIaLQ'],'RCAIk':_0x5501f5[_0x121444(0x28d)],'okpHR':function(_0x5696ab,_0x544d61,_0x1ec785){const _0x54ab06=_0x121444;return _0x5501f5[_0x54ab06(0x286)](_0x5696ab,_0x544d61,_0x1ec785);}};return _0x85c769['command'](_0x121444(0x27a),_0x5501f5['YxCLd'],_0x14922f=>{const _0x13c110=_0x121444;return _0x14922f['option']('session-id',{'type':_0x4e9f0f[_0x13c110(0x205)],'description':_0x4e9f0f[_0x13c110(0x1fc)]});},async _0x13253e=>{const _0x49dc73=_0x121444;await withTelemetry('hook:enable',()=>hook('enable',_0x13253e[_0x49dc73(0x1bc)]));})[_0x121444(0x1c0)]('disable',_0x121444(0x15b),_0x425573=>{const _0x25a8fa=_0x121444;return _0x425573['option'](_0x25a8fa(0x1bc),{'type':_0x25a8fa(0x156),'description':_0x4e9f0f[_0x25a8fa(0x1fc)]});},async _0x354d70=>{const _0x35f982=_0x121444;await _0x4e9f0f['okpHR'](withTelemetry,_0x35f982(0x2a6),()=>hook(_0x35f982(0x1df),_0x354d70[_0x35f982(0x1bc)]));})[_0x121444(0x1a9)](_0x5501f5[_0x121444(0x110)],{'type':'string','description':_0x121444(0x150)})['option'](_0x121444(0x1bc),{'type':_0x5501f5[_0x121444(0x1af)],'description':_0x5501f5['GqwMB']});},async _0x52a729=>{_0x52a729['name']&&await hook(_0x52a729['name'],_0x52a729['session-id']);})['demandCommand'](0x1,_0x5501f5[_0x14f1d0(0x169)])['strictCommands']()['fail'](async(_0x5dd726,_0x5a993c,_0x3424e4)=>{const _0x34129f=_0x14f1d0,_0x34830b=sanitizeArgs(process[_0x34129f(0x13b)][_0x34129f(0x236)](0x2)),_0x1f99a0=_0x5501f5[_0x34129f(0x23e)](getErrorType,_0x5dd726,_0x5a993c);if(_0x5dd726&&_0x5dd726[_0x34129f(0x13e)](_0x5501f5['SVJOe'])){const _0x10b901=process['argv'][0x2];console['error'](_0x34129f(0x1fd)+_0x10b901),console[_0x34129f(0x1b1)](_0x5501f5[_0x34129f(0x282)]);}else{if(_0x5dd726)console['error']('\x0a'+_0x5dd726+'\x0a');else _0x5a993c&&console['error']('\x0aError:\x20'+_0x5a993c['message']+'\x0a');}await logDesirePath({'rawCommand':_0x34830b,'errorMessage':_0x5dd726||_0x5a993c?.[_0x34129f(0x278)],'errorType':_0x1f99a0});const _0x362676=getCurrentCollector();_0x362676&&await _0x362676[_0x34129f(0x27c)](_0x5a993c||new Error(_0x5dd726||_0x5501f5[_0x34129f(0x206)])),process['exit'](0x1);})[_0x14f1d0(0x1e2)](_0x5501f5[_0x14f1d0(0x146)](_0x5501f5['lpGVt'],'\x20\x20https://docs.ranger.net\x0a')+_0x5501f5['auDLl'])[_0x14f1d0(0x2a9)]()['alias'](_0x5501f5['RhKhj'],'h');}process[_0x14be9b(0x178)][_0x14be9b(0x1d0)]!=='test'&&buildParser()[_0x14be9b(0x122)]();
|
|
2
|
+
const _0x26ed22=_0x4e13;(function(_0x14acc9,_0x1e6315){const _0xadc693=_0x4e13,_0x1791e3=_0x14acc9();while(!![]){try{const _0x2eb130=-parseInt(_0xadc693(0x329))/0x1*(parseInt(_0xadc693(0x380))/0x2)+-parseInt(_0xadc693(0x389))/0x3+-parseInt(_0xadc693(0x2b8))/0x4*(parseInt(_0xadc693(0x2ed))/0x5)+parseInt(_0xadc693(0x27d))/0x6*(parseInt(_0xadc693(0x219))/0x7)+parseInt(_0xadc693(0x36f))/0x8*(parseInt(_0xadc693(0x1eb))/0x9)+-parseInt(_0xadc693(0x2ba))/0xa*(-parseInt(_0xadc693(0x1e7))/0xb)+parseInt(_0xadc693(0x2d3))/0xc*(parseInt(_0xadc693(0x33d))/0xd);if(_0x2eb130===_0x1e6315)break;else _0x1791e3['push'](_0x1791e3['shift']());}catch(_0x1f1b16){_0x1791e3['push'](_0x1791e3['shift']());}}}(_0x39ee,0x603f8));import _0x3e7883 from'dotenv';import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x57275e=_0x4e13,_0x5bd202={'ZsYKL':function(_0x4c4fbc,_0xc4c526){return _0x4c4fbc(_0xc4c526);},'CpkkI':function(_0x398e3f,_0x5cfa17){return _0x398e3f!==_0x5cfa17;}};let _0x40a863=process[_0x57275e(0x35e)]();const _0x13759f=_0x5bd202['ZsYKL'](parse,_0x40a863)['root'];while(_0x5bd202['CpkkI'](_0x40a863,_0x13759f)){if(existsSync(join(_0x40a863,_0x57275e(0x2b0)))||existsSync(join(_0x40a863,_0x57275e(0x354))))return _0x40a863;_0x40a863=_0x5bd202['ZsYKL'](dirname,_0x40a863);}return process['cwd']();}_0x3e7883[_0x26ed22(0x32e)]({'path':join(findProjectRoot(),_0x26ed22(0x354))});import _0x3e7870 from'yargs/yargs';import{addEnv,clean,login,start,setupCi,useEnv,updateEnv,update,skillup,envList,hook,ensureLocalEnv,ensureChromium,authenticate,migrateProfile}from'./commands/index.js';import{authEncrypt}from'./commands/authEncrypt.js';import{mcpBootstrap}from'./commands/mcpBootstrap.js';import{getToken}from'./commands/utils/keychain.js';import{serverSideLogin}from'./commands/utils/cloudProfile.js';import{status}from'./commands/status.js';import{configSet,configGet,configList,configUnset,configReset}from'./commands/config.js';import{verifyFeature}from'./commands/verifyFeature.js';import{loadRangerConfig}from'./commands/utils/rangerConfig.js';import{isByokEnabled}from'./commands/utils/environment.js';import{shouldShowLegacyWarning,showLegacyDeprecationWarning}from'./commands/utils/legacyWarning.js';import{featureCreate,featureList,featureShow,featureResume,featureAddScenario,featureEditScenario,featureGetReview,featureReportPrDescription,featureDelete,featureRestore}from'./commands/feature.js';import{logDesirePath,getErrorType,sanitizeArgs}from'./commands/utils/desirePathLog.js';import{getCurrentVersion}from'./commands/utils/version.js';function _0x39ee(){const _0x33aee6=['qVEKi','Skip\x20Chromium\x20browser\x20check\x20and\x20installation','miJum','rpIEV','ukJmI','Force\x20headed\x20browser\x20for\x20this\x20run\x20only\x20(does\x20not\x20change\x20profile\x20config)','yfkbb','kgrDT','\x20INCOMPLETE','WgDOP','--checklist','scenario','value','setup-ci','profile','dshVY','report','with-deps','ranger\x20feature\x20show','setup:all','setup\x20[tokenOrSubcommand]','MgFnt','encrypt-auth\x20<profile>','--env','fopJX','qjgAT','get-review','Name\x20of\x20the\x20environment','2cNYiWn','Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context','Environment\x20name','item','deps','config','get\x20<env>\x20<key>','cqjUf','config\x20list','\x0aError:\x20','save-creds','sfGZp','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','BgNwp','session-id','Lgcto','skip-chromium','Alias\x20for\x20--mcp-bootstrap','gTPYu','dRNve','139763ubaQEO','\x20is\x20now\x20','VZycR','LTvzI','DqGAu','Install\x20Claude\x20Code\x20plugin\x20and\x20skills','vSOji','UzrfC','fFMNE','dwsoT','UthAH','NODE_ENV','raaIn','Include\x20soft-deleted\x20feature\x20reviews','Number\x20of\x20feature\x20reviews\x20to\x20skip','YJuhg','gMPSd','ranger\x20profile\x20use','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)','BJqkX','set\x20<profile>\x20<key>\x20<value>','fail','string','.env','DzSTk','number','sHKVz','add\x20<profile-name>','CJkNv','tABfX','mzOHW','log','SSXZS','cwd','\x20BLOCKED','opencode','gmMtY','xBcWj','Run\x20full\x20interactive\x20setup','ranger\x20show','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','setup-header','debug-outcome','gbCHm','ccmoe','Store\x20RANGER_TEST_USERNAME/PASSWORD\x20env\x20values\x20on\x20the\x20migrated\x20profile.','Usage:\x20ranger\x20profile\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth,\x20--scope\x20user|project)\x0a\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Profile\x20config\x20(set/get/list/unset/reset)\x0a\x20\x20migrate\x20[<profile>]\x20\x20\x20\x20\x20\x20\x20Migrate\x20local\x20profiles\x20to\x20the\x20cloud\x20(requires\x20org\x20auth\x20config)\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20add\x20local\x0a\x20\x20ranger\x20profile\x20encrypt-auth\x20ci\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20headless\x20true\x0a\x20\x20ranger\x20profile\x20config\x20set\x20admin@staging.app.com\x20baseUrl\x20http://localhost:3001\x0a\x20\x20ranger\x20profile\x20migrate\x20--all\x20--dry-run','yWdOR','ranger\x20get-review','7976LSMBRg','WKwfF','argv','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios','AFXCZ','project-scope\x20setup\x20obsolete).\x20Drop\x20the\x20--scope\x20flag\x20or\x20pass\x20--scope=user.','API\x20token','Config\x20key\x20to\x20remove','lAwRM','ranger\x20profile\x20update','NYCHs','shhbp','headed','FnafX','CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.','key','tokenOrSubcommand','256206CCFaUQ','Failed\x20to\x20exchange\x20MCP\x20refresh\x20token\x20for\x20a\x20CLI\x20token.','boolean','HxyZS','resume\x20[id]','FgsHA','blocked','aOaLc','slQaP','1740597WdKauI','Evaluation:\x20','disable','hvPBl','message','DNJuz','ZXKBZ','Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)','WcfYU','JYyXD','Setup\x20always\x20installs\x20at\x20user\x20scope\x20now\x20(cloud\x20profiles\x20make\x20','vwuqF','You\x20must\x20specify\x20a\x20command','EaYvR','user','LDzzy','use\x20<env-name>','add-scenario','description','tKkle','PQuQA','Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','Output\x20structured\x20JSON\x20data\x20instead\x20of\x20markdown','add\x20env\x20<env-name>','lpUeN','MDyZi','Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','zMPlL','skip-auth','Config\x20key','DdZVx','Fkebe','vesGJ','440nyaMUc','vLXlM','delete\x20[id]','login','3213KLfGgm','Add\x20profile\x20configuration','OzhEL','--task','scope','get-review\x20[id]','jebBH','xgvFp','FHrKo','failed','severity','kHOZN','vSbuN','bwIBq','unset\x20<profile>\x20<key>','profile\x20update','profile\x20ls','eymrT','pfQkC','You\x20must\x20specify\x20an\x20auth\x20subcommand','WlTic','✓\x20Server-side\x20login\x20succeeded\x20for\x20\x27','incomplete','Ivjxa','all','Skip\x20interactive\x20confirmation\x20prompts.','profile\x20login','eoCHT','Override\x20the\x20profile\x20base\x20URL\x20for\x20this\x20run\x20(e.g.,\x20https://localhost:3003).\x20Also\x20respects\x20RANGER_BASE_URL.','dZFRo','Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)','start\x20[token]','json','url','Name\x20of\x20the\x20profile','Feature\x20review\x20ID','unset\x20<env>\x20<key>','\x20is\x20no\x20longer\x20supported.\x20','baMFj','current-branch','print-access-token','Name\x20of\x20the\x20profile\x20to\x20update','DCAcB','KnWsp','trackCommandError','SxXZI','35LYZQBI','demandCommand','length','dhOrZ','isdGF','ZKfHY','XZWrg','Profile\x20name','✓\x20Authenticated\x20to\x20','bYygA','Feature\x20review\x20ID\x20to\x20restore','EJIvb','Cxokr','edit-scenario','Migrate\x20local\x20profiles\x20to\x20the\x20cloud\x20(requires\x20org\x20auth\x20config)','oXxVb','iUGJk','Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup','You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand','cRhqF','Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios','verify-feature','ranger\x20env\x20ls','evaluation','profile\x20config\x20get','Optional\x20feature\x20ID','Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a','DkNRX','LcSAB','DFskx','JFjRo','ranger','setup:skills','Install\x20skills\x20for\x20OpenCode','strictCommands','Bootstrap\x20CLI\x20auth\x20via\x20an\x20MCP\x20auth\x20server\x20instead\x20of\x20browser\x20login','Subcommand\x20or\x20API\x20token\x20(rngr_...)','GlDmX','env\x20update','exit','nMPLp','ranger\x20delete','show\x20[id]','vJoHp','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','No\x20token\x20found.\x20Run\x20`ranger\x20login`\x20to\x20authenticate.','ranger\x20profile\x20add','GyUOT','deHXK','XwNFV','BBOiF','not_configured','ranger\x20list','config\x20unset','bURBy','XPtow','aFGRc','ranger\x20auth\x20encrypt','RANGER_TEST_PASSWORD','create','name','fogBH','rZXvr','feature','Install\x20scope\x20for\x20plugin\x20and\x20skills','nRAhc','token','xZqjq','create\x20<name>','ranger\x20env\x20update','pTqIf','cdp-endpoint','XbdVw','NOPvA','Restore\x20a\x20soft-deleted\x20feature\x20review','Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project','uBIXB','pedpc','rvJYQ','qAOhj','mcp-bootstrap','UAfvG','PlxPU','env\x20list','use\x20<profile-name>','evCps','Model\x20to\x20use\x20for\x20verification\x20(e.g.,\x20opus,\x20sonnet,\x20claude-opus-4-6,\x20anthropic.claude-opus-4-6-v1).\x20When\x20RANGER_BYOK=true,\x20leaving\x20this\x20unset\x20lets\x20Claude/Bedrock\x20choose\x20from\x20local\x20config.','profile-name','get\x20<profile>\x20<key>','PAZTl','fHvrO','kaPwT','znJYi','ranger\x20config\x20set','MOORD','claude','ranger\x20go','feature\x20add-checklist-item','mAxoi','781998QVbpfu','Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review','Install\x20OS-level\x20dependencies\x20for\x20Chromium','YPYjj','yes','Ranger\x20API\x20token','add-checklist-item\x20<description>','ranger\x20start','wEpbD','WPCOw','pWNlA','skills','start-path','yWLDO','mWOhv','update','setup:login','YjAYR','command','repeat','kfNdR','epilogue','QRCdu','Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','HaHLr','Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','Remove\x20a\x20config\x20value','Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','mQUhw','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','verified','KFxVZ','list','New\x20scenario\x20description','YkmAM','OXhZO','positional','option','.\x20[','\x0aIssues:','BgjdB','status','safe-mode','success','Reserved\x20—\x20setup\x20always\x20installs\x20at\x20user\x20scope.','startsWith','scriptName','iUdZa','Reason:\x20','ranger\x20profile\x20config\x20get','env','.ranger','profile\x20config\x20set','cKKdd','xUtYv','mcp','offset','encrypt\x20<profile>','AUSFA','18164BORjxC','profile\x20config\x20unset','117850AgEMDk','--scenario','oHaMl','Scenario\x20index\x20(1-based)','ranger\x20profile\x20config\x20list','AnBev','Documentation:\x0a','include-deleted','delete','YiNOM','ranger\x20create','allow-insecure-localhost','Feature\x20review\x20description','Skip\x20Chromium\x20browser\x20installation','error','efdeX','clean','help','cdSJk','Naoyh','Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)','TuBkX','\x20FAILED','jOgxh','iNDWO','108yWgzkp','test_output','feature\x20show','You\x20must\x20specify\x20an\x20env\x20subcommand','usage','Name\x20of\x20a\x20single\x20local\x20profile\x20to\x20migrate.\x20Omit\x20with\x20--all.','enable','unfQG','force','TncDn','profiles','dry-run','ZIjlX','limit','VxOui','array','eILyN','ahKiZ','ranger\x20setup\x20profiles\x20--scope=','Login\x20failed:\x20','mHUfZ','resume','odrvQ','zPNaa','qPdks','slice','380xqJImn','setup:profiles','Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','KAUiB','Set\x20a\x20config\x20value','SVAVc','task','xgKUE','start','profile\x20config\x20list','Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','VvHGZ','EfkDT','Nwoqb','Install\x20OS-level\x20dependencies\x20for\x20Chromium\x20(apt\x20packages\x20for\x20Debian/Ubuntu\x20containers)','zMPFA','unhandledRejection','RANGER_PROFILE','Rycwt','Where\x20to\x20store\x20the\x20profile:\x20user\x20(~/.ranger/)\x20or\x20project\x20(.ranger/)','Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','ranger\x20feature\x20list','env-name','Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version','HTTP\x20header\x20to\x20send\x20only\x20during\x20profile\x20setup\x20auth,\x20not\x20during\x20test\x20runs\x20(format:\x20\x22Name:\x20Value\x22)','Authenticate\x20with\x20Ranger','\x0aUnknown\x20command:\x20','SEqgo','xDsSe','OazgF','Config\x20value','jBAXT'];_0x39ee=function(){return _0x33aee6;};return _0x39ee();}import{refreshCliToken}from'./commands/utils/tokenRefresh.js';import{getCurrentUser}from'./commands/utils/userApi.js';function _0x4e13(_0x1c5ce4,_0x54e3f2){_0x1c5ce4=_0x1c5ce4-0x1d7;const _0x39eefb=_0x39ee();let _0x4e139b=_0x39eefb[_0x1c5ce4];return _0x4e139b;}import{ensureClaudePlugin,ensureClaudeSkills}from'./commands/setup/claude.js';import{ensureOpencodePluginConfig}from'./commands/setup/opencode.js';import{installSkill}from'./commands/utils/skills.js';import{withTelemetry,getCurrentCollector}from'./commands/utils/telemetry.js';process['on'](_0x26ed22(0x2fd),async _0xc28f15=>{const _0x1d008e=_0x26ed22,_0x32fd37=getCurrentCollector();_0x32fd37&&await _0x32fd37[_0x1d008e(0x217)](_0xc28f15),process['exitCode']=0x1;});const rawArgs=process['argv']['slice'](0x2),TOP_LEVEL_HELP='Usage:\x20ranger\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20setup\x20[token]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Initialize\x20Ranger\x20in\x20your\x20project\x0a\x20\x20setup\x20all\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Full\x20interactive\x20setup\x20(same\x20as\x20bare\x20setup)\x0a\x20\x20setup\x20deps\x20[--with-deps]\x20\x20\x20\x20Install\x20Chromium\x20browser\x0a\x20\x20setup\x20login\x20[--token\x20<t>]\x20\x20\x20Authenticate\x20with\x20Ranger\x0a\x20\x20setup\x20skills\x20[--scope\x20...]\x20\x20Install\x20Claude\x20Code\x20plugin\x20and\x20skills\x0a\x20\x20setup\x20profiles\x20[--url\x20<u>]\x20\x20Set\x20up\x20a\x20local\x20browser\x20profile\x0a\x20\x20setup\x20--mcp-bootstrap\x20\x20\x20\x20\x20\x20\x20Bootstrap\x20auth\x20via\x20MCP\x20auth\x20server\x0a\x20\x20login\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Re-authenticate\x20without\x20full\x20setup\x0a\x20\x20skillup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Ranger\x20skills\x0a\x20\x20clean\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20Ranger\x20artifacts\x20from\x20the\x20project\x0a\x20\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20version,\x20org,\x20skills,\x20and\x20profile\x20status\x0a\x20\x20update\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version\x0a\x0a\x20\x20profile\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Manage\x20profiles\x20(add/use/ls/update/config/encrypt-auth)\x0a\x20\x20\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth,\x20--scope\x20user|project)\x0a\x20\x20\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Set/get/list/unset/reset\x20profile\x20config\x0a\x0a\x20\x20create\x20<name>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Create\x20a\x20feature\x20review\x20with\x20scenarios\x0a\x20\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20feature\x20reviews\x0a\x20\x20show\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20feature\x20review\x20details\x0a\x20\x20resume\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20feature\x20review\x0a\x20\x20add-scenario\x20<description>\x20\x20Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review\x0a\x20\x20edit-scenario\x20<description>\x20Edit\x20a\x20scenario\x20description\x0a\x20\x20get-review\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20reviewer\x20feedback\x0a\x20\x20report\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Generate\x20PR\x20description\x20markdown\x0a\x20\x20delete\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Soft\x20delete\x20a\x20feature\x20review\x0a\x20\x20restore\x20<id>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Restore\x20a\x20soft-deleted\x20feature\x20review\x0a\x0a\x20\x20go\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20a\x20scenario\x20in\x20the\x20browser\x0a\x0aRun\x20`ranger\x20<command>\x20--help`\x20for\x20details.',PROFILE_HELP=_0x26ed22(0x36c),PROFILE_CONFIG_HELP='Usage:\x20ranger\x20profile\x20config\x20<command>\x0a\x0aProfile\x20config.\x20Routes\x20automatically\x20based\x20on\x20where\x20the\x20profile\x20lives:\x0a\x20\x20-\x20Local\x20profiles\x20write\x20to\x20.ranger/<env>/settings.json\x0a\x20\x20-\x20Cloud\x20profiles\x20write\x20a\x20local\x20overlay\x20in\x20~/.ranger/projects.json\x0a\x0aCommands:\x0a\x20\x20set\x20<profile>\x20<key>\x20<value>\x20\x20\x20\x20Set\x20a\x20config\x20value\x0a\x20\x20get\x20<profile>\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Get\x20a\x20config\x20value\x20(effective\x20value\x20for\x20cloud\x20profiles)\x0a\x20\x20list\x20<profile>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20all\x20config\x20for\x20a\x20profile\x0a\x20\x20unset\x20<profile>\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20a\x20config\x20value\x0a\x20\x20reset\x20<profile>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Clear\x20all\x20local\x20overrides\x20(cloud\x20profiles\x20only)\x0a\x0aKeys:\x0a\x20\x20baseUrl\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Base\x20URL\x20(most\x20common\x20override\x20for\x20cloud\x20profiles)\x0a\x20\x20userAgent\x20\x20\x20\x20\x20\x20\x20\x20Browser\x20user\x20agent\x20string\x0a\x20\x20headless\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20browser\x20in\x20headless\x20mode\x20(true/false)\x0a\x20\x20allowInsecureLocalhost\x20\x20\x20Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(true/false)\x0a\x20\x20storageState\x20\x20\x20\x20\x20Path\x20to\x20auth\x20state\x20file\x20(e.g.,\x20./auth.json)\x0a\x20\x20headers.<name>\x20\x20\x20Custom\x20HTTP\x20header\x20sent\x20with\x20every\x20request\x20(e.g.,\x20headers.X-Test-Mode).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22header.<name>\x22\x20is\x20also\x20accepted\x20as\x20an\x20alias.\x0a\x20\x20setupHeaders.<name>\x20\x20HTTP\x20header\x20sent\x20only\x20during\x20profile\x20setup\x20auth,\x20not\x20during\x20test\x20runs\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(e.g.,\x20setupHeaders.x-bypass-turnstile).\x20\x22setupHeader.<name>\x22\x20alias\x20accepted.\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20userAgent\x20\x22Mozilla/5.0\x20(CI\x20Bot)\x22\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20headless\x20true\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20allowInsecureLocalhost\x20true\x0a\x20\x20ranger\x20profile\x20config\x20set\x20admin@staging.app.com\x20baseUrl\x20http://localhost:3001\x0a\x20\x20ranger\x20profile\x20config\x20set\x20admin@staging.app.com\x20headers.X-Debug\x201';function warnRenamed(_0x912e47,_0x227ad8){const _0x40d1a8=_0x26ed22;console['error']('\x0a'+_0x912e47+_0x40d1a8(0x33e)+_0x227ad8+'\x0a');}function argUsed(_0x48a203){const _0x3f36fb=_0x26ed22;return rawArgs['some'](_0x3d2e91=>_0x3d2e91===_0x48a203||_0x3d2e91[_0x3f36fb(0x2aa)](_0x48a203+'='));}function warnFlagRenamed(_0x2e33fe,_0xb26b66,_0x5770ba){argUsed(_0xb26b66)&&warnRenamed(_0x2e33fe+'\x20'+_0xb26b66,_0x2e33fe+'\x20'+_0x5770ba);}async function runGoCommand(_0x5ec2f4,_0x5abb6b=![]){const _0x535985=_0x26ed22,_0x3985c4={'nlnMR':function(_0xa849aa,_0x47f4d2){return _0xa849aa+_0x47f4d2;},'nQoiY':'--profile','WlTic':'ranger\x20go','oXxVb':'base-url','mRuRp':_0x535985(0x368),'efdeX':'debug-address-comments','GlDmX':function(_0x206b9b,_0x4a2e6c){return _0x206b9b+_0x4a2e6c;},'raaIn':function(_0x2ed911,_0x50a96a){return _0x2ed911===_0x50a96a;},'FgsHA':'\x20VERIFIED','xGtdA':_0x535985(0x315),'fHvrO':function(_0x3d7c55,_0x48d748){return _0x3d7c55===_0x48d748;},'zMPlL':'partial','isdGF':_0x535985(0x35f),'JYyXD':function(_0x340ad2,_0x1e0264){return _0x340ad2===_0x1e0264;},'oHaMl':_0x535985(0x29b)};_0x5abb6b&&warnRenamed('ranger\x20verify-feature',_0x535985(0x27a));warnFlagRenamed(_0x535985(0x27a),_0x535985(0x324),_0x3985c4['nQoiY']),warnFlagRenamed(_0x3985c4['WlTic'],_0x535985(0x1ee),'--notes'),warnFlagRenamed(_0x3985c4[_0x535985(0x1ff)],'--item','--scenario');const _0x20f6f1=await loadRangerConfig(),_0x31b42d=isByokEnabled(),_0x406402=_0x5ec2f4['model'],_0x52bb5e=_0x20f6f1['model'],_0x4ea0a6=await verifyFeature({'featureId':_0x5ec2f4[_0x535985(0x259)],'profile':_0x5ec2f4['profile']??_0x5ec2f4['env']??process['env'][_0x535985(0x2fe)],'notes':_0x5ec2f4['notes']??_0x5ec2f4[_0x535985(0x2f3)],'scenario':_0x5ec2f4['scenario']??_0x5ec2f4['item'],'startPath':_0x5ec2f4['start-path'],'baseUrl':_0x5ec2f4[_0x3985c4[_0x535985(0x228)]],'debugOutcome':_0x5ec2f4[_0x3985c4['mRuRp']],'debugAddressComments':_0x5ec2f4[_0x3985c4[_0x535985(0x2c9)]],'headed':_0x5ec2f4['headed'],'byokEnabled':_0x31b42d,'flagVerifyModel':_0x406402,'configVerifyModel':_0x52bb5e});console['log'](_0x3985c4[_0x535985(0x23f)]('\x0a','='[_0x535985(0x290)](0x3c))),console[_0x535985(0x35c)](_0x3985c4[_0x535985(0x349)](_0x4ea0a6[_0x535985(0x231)],'verified')?_0x3985c4[_0x535985(0x385)]:_0x4ea0a6['evaluation']===_0x535985(0x201)?_0x3985c4['xGtdA']:_0x3985c4['fHvrO'](_0x4ea0a6['evaluation'],_0x3985c4[_0x535985(0x1e1)])?'\x20PARTIAL':_0x3985c4[_0x535985(0x274)](_0x4ea0a6['evaluation'],_0x535985(0x386))?_0x3985c4[_0x535985(0x21d)]:_0x535985(0x2d0)),console[_0x535985(0x35c)]('='['repeat'](0x3c)),console['log']('Summary:\x20'+_0x4ea0a6['summary']),console[_0x535985(0x35c)](_0x535985(0x38a)+_0x4ea0a6[_0x535985(0x231)]),console['log'](_0x535985(0x2ad)+_0x4ea0a6['evaluationReason']),_0x4ea0a6['issues']?.[_0x535985(0x21b)]&&(console[_0x535985(0x35c)](_0x535985(0x2a4)),_0x4ea0a6['issues']['forEach']((_0x11c143,_0x49b3fd)=>{const _0x331782=_0x535985;console[_0x331782(0x35c)]('\x0a'+_0x3985c4['nlnMR'](_0x49b3fd,0x1)+_0x331782(0x2a3)+_0x11c143[_0x331782(0x1f5)]+']\x20'+_0x11c143['description']);})),process['exit'](_0x3985c4[_0x535985(0x392)](_0x4ea0a6[_0x535985(0x231)],_0x3985c4[_0x535985(0x2bc)])?0x0:0x1);}export function buildParser(_0xba1bb7){const _0x11575b=_0x26ed22,_0x3b1db8={'tABfX':_0x11575b(0x353),'xBcWj':'description','dZFRo':'scenario','vSOji':_0x11575b(0x2e2),'YiNOM':_0x11575b(0x1db),'Ivjxa':'checklist','VVGUn':'Error:\x20`ranger\x20create`\x20requires\x20a\x20feature\x20review\x20name.\x0a','BBOiF':'Example:\x20ranger\x20create\x20my-feature','VxOui':'ranger\x20create','BMTGp':_0x11575b(0x317),'gmMtY':function(_0x2cb6b3,_0x4e0bbb,_0x1efe08){return _0x2cb6b3(_0x4e0bbb,_0x1efe08);},'cqjUf':_0x11575b(0x255),'BgNwp':_0x11575b(0x382),'lAwRM':_0x11575b(0x335),'tkbdI':_0x11575b(0x2e0),'aFGRc':_0x11575b(0x356),'zOwws':_0x11575b(0x365),'PQuQA':_0x11575b(0x2b5),'mAxoi':'Include\x20soft-deleted\x20feature\x20reviews','qAOhj':'Scenario\x20description','nRAhc':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','SSXZS':_0x11575b(0x20e),'vJoHp':'exclude-scenario','HaHLr':_0x11575b(0x2ce),'PJsnY':_0x11575b(0x1dc),'OazgF':_0x11575b(0x2c2),'nxQhn':_0x11575b(0x223),'AUSFA':'restore','kaPwT':_0x11575b(0x282),'cRhqF':'with-deps','WgDOP':_0x11575b(0x1ef),'eoCHT':_0x11575b(0x2a9),'Naoyh':_0x11575b(0x22b),'rZXvr':'force','FnafX':'Install\x20for\x20OpenCode\x20instead\x20of\x20Claude\x20Code','AnBev':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments','LcSAB':'Bootstrap\x20CLI\x20auth\x20via\x20an\x20MCP\x20auth\x20server','qVEKi':_0x11575b(0x26a),'mzOHW':_0x11575b(0x320),'NQYAB':'setup:deps','DNJuz':_0x11575b(0x381),'sfGZp':function(_0xc19bb2,_0x3b974c,_0x1b783f){return _0xc19bb2(_0x3b974c,_0x1b783f);},'ukJmI':function(_0x33ffac,_0x41c417){return _0x33ffac(_0x41c417);},'Lgcto':function(_0x3a09d3){return _0x3a09d3();},'vwuqF':_0x11575b(0x23a),'BgjdB':'user','UFueZ':'Skip\x20browser\x20authentication','hvPBl':'allow-insecure-localhost','Lkaqf':'mcp','pWNlA':'opencode','XYswU':function(_0x3f7cd7,_0x310867,_0x163fe4){return _0x3f7cd7(_0x310867,_0x163fe4);},'baMFj':_0x11575b(0x2ee),'xSFkT':_0x11575b(0x363),'RFKnL':'Install\x20Chromium\x20browser\x20binary','yWLDO':_0x11575b(0x2dd),'gbCHm':'skip-chromium','izEQE':_0x11575b(0x1e0),'ZtFmp':_0x11575b(0x29a),'DIsNr':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','bwIBq':'skip-auth','tAazf':_0x11575b(0x2fb),'EfkDT':'token','MOORD':function(_0x5572f8,_0x363971,_0x2e61a2){return _0x5572f8(_0x363971,_0x2e61a2);},'mHUfZ':'CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)','EJIvb':'base-url','mfVPP':_0x11575b(0x2c7),'xfdjA':_0x11575b(0x1ea),'mjldI':function(_0x19654a,_0x38d0da){return _0x19654a(_0x38d0da);},'jOgxh':function(_0x17770d,_0x1fff7d,_0x1376ff){return _0x17770d(_0x1fff7d,_0x1376ff);},'KnWsp':_0x11575b(0x2ca),'slQaP':_0x11575b(0x1fb),'HUyVh':_0x11575b(0x214),'Nwoqb':'profile\x20migrate','znJYi':_0x11575b(0x220),'MDyZi':_0x11575b(0x232),'OzhEL':_0x11575b(0x2f1),'qDvZN':_0x11575b(0x272),'shhbp':'Get\x20a\x20config\x20value','DzSTk':'list\x20<profile>','yfkbb':'List\x20all\x20config\x20for\x20a\x20profile','TncDn':_0x11575b(0x297),'xgKUE':'Clear\x20all\x20config\x20overrides\x20for\x20a\x20profile\x20(cloud\x20profiles\x20only)','SEqgo':_0x11575b(0x2ef),'tiZIo':_0x11575b(0x2a7),'OxVdp':'setup-header','bYygA':_0x11575b(0x305),'KAUiB':function(_0x3cf53d,_0x373850,_0x1b9c55,_0xf23b6e){return _0x3cf53d(_0x373850,_0x1b9c55,_0xf23b6e);},'RJzzf':function(_0x54ed23,_0x4600dc){return _0x54ed23(_0x4600dc);},'rpIEV':_0x11575b(0x1fa),'ZZHDF':'Cloud\x20profile\x20name','zPNaa':_0x11575b(0x2d8),'NMjcA':_0x11575b(0x281),'tfuXI':_0x11575b(0x37e),'iNDWO':_0x11575b(0x2b1),'IEbXu':_0x11575b(0x2f6),'hCgSg':_0x11575b(0x2b9),'ajlyr':'Switch\x20to\x20using\x20a\x20specific\x20profile','dhOrZ':_0x11575b(0x323),'KFxVZ':_0x11575b(0x296),'PdkdD':'update\x20<profile-name>','YPYjj':'migrate\x20[profile-name]','evCps':_0x11575b(0x227),'cKKdd':_0x11575b(0x32e),'kgrDT':'status','xZqjq':function(_0xdd0a45,_0x2e0b7f,_0xd79883){return _0xdd0a45(_0x2e0b7f,_0xd79883);},'WPCOw':_0x11575b(0x213),'dwsoT':'feature','Cxokr':'profile','jebBH':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','frAnw':'notes','nqedK':_0x11575b(0x390),'ahKiZ':_0x11575b(0x2bd),'bcZuV':_0x11575b(0x289),'Vfsmo':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard).\x20Also\x20respects\x20RANGER_START_PATH.','DdZVx':_0x11575b(0x312),'ccmoe':_0x11575b(0x368),'YjAYR':_0x11575b(0x29b),'bDkZU':'blocked','wCXvn':'failed','LTvzI':_0x11575b(0x201),'uBIXB':'env','ZIjlX':'task','jyyrU':'item','mMeRT':function(_0x5ba1f1,_0x956515){return _0x5ba1f1(_0x956515);},'XwNFV':function(_0x40c748,_0xbe25a5){return _0x40c748(_0xbe25a5);},'WZnBS':_0x11575b(0x2b6),'mQUhw':_0x11575b(0x22a),'TuBkX':'Skip\x20authentication','DqGAu':function(_0x715fd4,_0x2b81d6,_0x17fb27){return _0x715fd4(_0x2b81d6,_0x17fb27);},'BOyTA':_0x11575b(0x284),'HxyZS':'ranger\x20setup','dRNve':_0x11575b(0x2f5),'ydbtr':'headed','gAujT':'partial','kHOZN':_0x11575b(0x248),'jBAXT':function(_0x208c39,_0x348429,_0x4c6891){return _0x208c39(_0x348429,_0x4c6891);},'wjCOb':'add\x20env','Fkebe':'env-name','uRNKh':_0x11575b(0x328),'kfNdR':'ranger\x20use','SwiIB':'Environment\x20name','iUdZa':'Config\x20key','nSmJN':function(_0x39abc1,_0x17bcae,_0x4e9536){return _0x39abc1(_0x17bcae,_0x4e9536);},'KEAsv':'ranger\x20config\x20get','FkwMv':'config\x20get','UnkBg':_0x11575b(0x2be),'pjxyo':function(_0x426768,_0x5c9824,_0x443552){return _0x426768(_0x5c9824,_0x443552);},'HVOgr':'config\x20set','qjgAT':_0x11575b(0x376),'Idkcs':_0x11575b(0x32f),'tHRoX':function(_0x20923f,_0x396f2e,_0x29029a){return _0x20923f(_0x396f2e,_0x29029a);},'DkNRX':_0x11575b(0x230),'SipOd':'Name\x20of\x20the\x20environment\x20to\x20update','UfSsX':_0x11575b(0x378),'mAlEu':'update\x20<env-name>','hXQzd':_0x11575b(0x2d6),'SxXZI':'Feature\x20review\x20name','GGUaI':_0x11575b(0x302),'eUQHL':_0x11575b(0x24e),'mQrwr':function(_0x77ab2,_0x523cde,_0x3844a4){return _0x77ab2(_0x523cde,_0x3844a4);},'DFskx':'ranger\x20feature\x20create','tWMrA':function(_0x27496b,_0x11ef4b,_0x52b78c,_0xcea7a8){return _0x27496b(_0x11ef4b,_0x52b78c,_0xcea7a8);},'TQiUX':_0x11575b(0x212),'SUfSn':_0x11575b(0x364),'opmYt':'ranger\x20feature\x20get-feedback','RgDeC':'ranger\x20feature\x20delete','yWdOR':function(_0x257f18,_0x5e7eb8,_0x34e956){return _0x257f18(_0x5e7eb8,_0x34e956);},'fopJX':'feature\x20restore','lpUeN':_0x11575b(0x244),'EaYvR':_0x11575b(0x384),'vLXlM':'get-feedback\x20[id]','LDzzy':_0x11575b(0x1e9),'qAzUE':_0x11575b(0x22c),'JFjRo':'hook:disable','BJqkX':_0x11575b(0x2d9),'pfQkC':'Disable\x20Ranger\x20hooks\x20for\x20this\x20session','ksXbH':'Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)','VvHGZ':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','pedpc':function(_0x401fd5,_0x4e0c02){return _0x401fd5(_0x4e0c02);},'acFEt':function(_0xa91a13,_0x5c9275,_0x3f627f){return _0xa91a13(_0x5c9275,_0x3f627f);},'XZWrg':function(_0x530e95){return _0x530e95();},'BdAWP':function(_0x2f46c3,_0x9e1558){return _0x2f46c3(_0x9e1558);},'llzjF':'list','fFMNE':'List\x20all\x20feature\x20reviews','CCkEs':_0x11575b(0x32a),'IWxBJ':'add-scenario\x20<description>','tuXWb':'edit-scenario\x20<description>','WXBNf':'report\x20[id]','rvJYQ':'Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)','hVsRA':'restore\x20<id>','gTPYu':_0x11575b(0x264),'Rycwt':_0x11575b(0x321),'GjKIj':'Initialize\x20Ranger\x20in\x20your\x20project','uJEGX':'skillup','EaDny':_0x11575b(0x265),'eymrT':'Manage\x20profiles','VEaZO':'Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)','GnRRu':'Print\x20the\x20current\x20CLI\x20access\x20token','zMYNS':_0x11575b(0x34f),'qYmEH':'auth','UzrfC':_0x11575b(0x395),'DCAcB':function(_0x43c418,_0x1a320d){return _0x43c418+_0x1a320d;},'WSDAZ':'\x20\x20https://docs.ranger.net\x0a','VQvyf':'\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)','NYCHs':_0x11575b(0x2cb)};return _0x3b1db8['BdAWP'](_0x3e7870,_0xba1bb7??process[_0x11575b(0x371)]['slice'](0x2))[_0x11575b(0x2ab)](_0x11575b(0x239))['usage'](TOP_LEVEL_HELP)['version'](getCurrentVersion())['command']('create\x20<name>',_0x11575b(0x22e),_0x44b0d7=>{const _0x516909=_0x11575b;return _0x44b0d7['positional'](_0x516909(0x256),{'type':_0x3b1db8[_0x516909(0x35a)],'description':'Feature\x20review\x20name','demandOption':!![]})['option'](_0x3b1db8['xBcWj'],{'type':_0x516909(0x353),'alias':'d','description':_0x516909(0x2c6)})['option'](_0x3b1db8['dZFRo'],{'type':_0x3b1db8[_0x516909(0x343)],'alias':'c','description':_0x3b1db8['YiNOM']})['option'](_0x3b1db8[_0x516909(0x202)],{'type':'array','hidden':!![]});},async _0x132527=>{const _0x7dfc10=_0x11575b;if(!_0x132527['name']){console['error'](_0x3b1db8['VVGUn']+_0x3b1db8[_0x7dfc10(0x24c)]),process[_0x7dfc10(0x241)](0x1);return;}warnFlagRenamed(_0x3b1db8['VxOui'],_0x3b1db8['BMTGp'],_0x7dfc10(0x2bb));const _0x332dc4=_0x132527['scenario']||_0x132527['checklist'];await _0x3b1db8[_0x7dfc10(0x361)](withTelemetry,_0x3b1db8[_0x7dfc10(0x330)],()=>featureCreate(_0x132527['name'],{'description':_0x132527[_0x7dfc10(0x1d8)],'scenarios':_0x332dc4}));})['command'](_0x3b1db8['llzjF'],_0x3b1db8[_0x11575b(0x345)],_0x24d4dc=>{const _0x3ea0b6=_0x11575b;return _0x24d4dc[_0x3ea0b6(0x2a2)](_0x3ea0b6(0x212),{'type':_0x3b1db8[_0x3ea0b6(0x336)],'description':_0x3b1db8[_0x3ea0b6(0x377)]})[_0x3ea0b6(0x2a2)](_0x3b1db8['tkbdI'],{'type':_0x3b1db8['aFGRc'],'alias':'l','description':_0x3b1db8['zOwws'],'default':0xa})[_0x3ea0b6(0x2a2)](_0x3b1db8[_0x3ea0b6(0x1da)],{'type':_0x3b1db8['aFGRc'],'alias':'o','description':_0x3ea0b6(0x34b),'default':0x0})[_0x3ea0b6(0x2a2)]('include-deleted',{'type':'boolean','alias':'d','description':_0x3b1db8[_0x3ea0b6(0x27c)],'default':![]});},async _0x582dd1=>{const _0x375c78=_0x11575b;await withTelemetry(_0x375c78(0x29d),()=>featureList({'currentBranch':_0x582dd1[_0x375c78(0x212)],'limit':_0x582dd1[_0x375c78(0x2e0)],'offset':_0x582dd1['offset'],'includeDeleted':_0x582dd1[_0x375c78(0x2c1)]}));})[_0x11575b(0x28f)](_0x3b1db8['lpUeN'],'Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x148c07=>{const _0x2b3141=_0x11575b;return _0x148c07['positional']('id',{'type':_0x3b1db8['tABfX'],'description':_0x2b3141(0x20e)});},async _0x313a3d=>{const _0x362bd8=_0x11575b;await _0x3b1db8[_0x362bd8(0x361)](withTelemetry,'show',()=>featureShow(_0x313a3d['id']));})['command']('resume\x20[id]',_0x3b1db8['CCkEs'],_0x4a860f=>{const _0x2a0422=_0x11575b;return _0x4a860f[_0x2a0422(0x2a1)]('id',{'type':_0x3b1db8['tABfX'],'description':_0x2a0422(0x246)});},async _0x27bff4=>{const _0x578a68=_0x11575b;await _0x3b1db8['gmMtY'](withTelemetry,_0x578a68(0x2e8),()=>featureResume(_0x27bff4['id']));})['command'](_0x3b1db8['IWxBJ'],'Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review',_0x25dc17=>{const _0x3fbdcd=_0x11575b;return _0x25dc17['positional']('description',{'type':'string','description':_0x3b1db8[_0x3fbdcd(0x269)],'demandOption':!![]})[_0x3fbdcd(0x2a2)]('id',{'type':'string','description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x26689c=>{const _0x38fc83=_0x11575b;await withTelemetry(_0x38fc83(0x1d7),()=>featureAddScenario(_0x26689c[_0x38fc83(0x1d8)],_0x26689c['id']));})['command'](_0x3b1db8['tuXWb'],_0x11575b(0x27e),_0x57e54a=>{const _0x5432a0=_0x11575b;return _0x57e54a[_0x5432a0(0x2a1)]('description',{'type':_0x5432a0(0x353),'description':_0x5432a0(0x29e),'demandOption':!![]})['option'](_0x3b1db8[_0x5432a0(0x208)],{'type':'number','description':'Scenario\x20number\x20to\x20edit\x20(1-based)','demandOption':!![]})['option']('id',{'type':_0x3b1db8['tABfX'],'description':_0x3b1db8[_0x5432a0(0x25b)]});},async _0x2a4cbe=>{const _0x4bfe09=_0x11575b;await withTelemetry(_0x4bfe09(0x226),()=>featureEditScenario(_0x2a4cbe[_0x4bfe09(0x1d8)],{'id':_0x2a4cbe['id'],'scenario':_0x2a4cbe['scenario']}));})['command'](_0x3b1db8['WXBNf'],_0x3b1db8[_0x11575b(0x268)],_0x14851e=>{const _0x150f90=_0x11575b;return _0x14851e[_0x150f90(0x2a1)]('id',{'type':_0x150f90(0x353),'description':_0x3b1db8['SSXZS']})['option'](_0x3b1db8[_0x150f90(0x245)],{'type':'array','description':_0x3b1db8[_0x150f90(0x295)]})['option'](_0x150f90(0x20b),{'type':'boolean','description':_0x3b1db8['PJsnY'],'default':![]});},async _0xc1784a=>{const _0x204eba=_0x11575b,_0x1469aa=_0xc1784a['exclude-scenario'],_0x4bf8ee=_0x1469aa?_0x1469aa['map'](_0x2d7014=>Number(_0x2d7014)):undefined;await withTelemetry(_0x204eba(0x31d),()=>featureReportPrDescription(_0xc1784a['id'],{'excludeScenarios':_0x4bf8ee,'json':_0xc1784a[_0x204eba(0x20b)]}));})[_0x11575b(0x28f)](_0x11575b(0x1f0),_0x11575b(0x372),_0x273b18=>{const _0x2a7df0=_0x11575b;return _0x273b18[_0x2a7df0(0x2a1)]('id',{'type':_0x3b1db8[_0x2a7df0(0x35a)],'description':_0x2a7df0(0x366)});},async _0x587f6e=>{const _0x58c802=_0x11575b;await withTelemetry(_0x58c802(0x327),()=>featureGetReview(_0x587f6e['id']));})['command'](_0x11575b(0x1e9),'Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x1b7c32=>{const _0x3fdfd0=_0x11575b;return _0x1b7c32['positional']('id',{'type':_0x3b1db8[_0x3fdfd0(0x35a)],'description':'Feature\x20review\x20ID'});},async _0xd567dd=>{const _0x30e7bf=_0x11575b;await _0x3b1db8[_0x30e7bf(0x361)](withTelemetry,_0x3b1db8[_0x30e7bf(0x30a)],()=>featureDelete(_0xd567dd['id']));})['command'](_0x3b1db8['hVsRA'],_0x3b1db8[_0x11575b(0x33b)],_0x49c36e=>{return _0x49c36e['positional']('id',{'type':_0x3b1db8['tABfX'],'description':_0x3b1db8['nxQhn'],'demandOption':!![]});},async _0xb604d7=>{const _0x4a764a=_0x11575b;await withTelemetry(_0x3b1db8[_0x4a764a(0x2b7)],()=>featureRestore(_0xb604d7['id']));})['command'](_0x3b1db8[_0x11575b(0x2ff)],_0x3b1db8['GjKIj'],_0x483cdc=>{const _0x42f202=_0x11575b,_0x3bf929={'fvLyT':_0x3b1db8[_0x42f202(0x22d)],'wEpbD':_0x3b1db8['Lkaqf'],'fTpem':_0x3b1db8['WgDOP'],'vesGJ':_0x3b1db8[_0x42f202(0x2a5)],'FHrKo':'project','OLwub':_0x3b1db8[_0x42f202(0x287)],'qPdks':'Install\x20for\x20OpenCode\x20instead\x20of\x20Claude\x20Code','SVAVc':function(_0x114313,_0x275258){return _0x114313+_0x275258;},'dwyJF':function(_0x2f85ba,_0x411477,_0xf545c8){return _0x3b1db8['XYswU'](_0x2f85ba,_0x411477,_0xf545c8);},'pTqIf':_0x3b1db8[_0x42f202(0x211)]};return _0x483cdc[_0x42f202(0x2d7)]('Usage:\x20ranger\x20setup\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20all\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Full\x20interactive\x20setup\x20(default\x20when\x20no\x20subcommand\x20given)\x0a\x20\x20deps\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Chromium\x20browser\x20binary\x0a\x20\x20login\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Authenticate\x20with\x20Ranger\x0a\x20\x20skills\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Claude\x20Code\x20plugin\x20and\x20skills\x0a\x20\x20profiles\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Set\x20up\x20a\x20local\x20browser\x20profile\x0a\x0aRun\x20`ranger\x20setup\x20<command>\x20--help`\x20for\x20details.\x0a\x0aExamples:\x0a\x20\x20ranger\x20setup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Interactive\x20first-time\x20setup\x0a\x20\x20ranger\x20setup\x20deps\x20--with-deps\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Chromium\x20+\x20OS\x20deps\x20(Dockerfile)\x0a\x20\x20ranger\x20setup\x20login\x20--mcp\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Authenticate\x20via\x20MCP\x20proxy\x0a\x20\x20ranger\x20setup\x20skills\x20--scope\x20user\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20skills\x20at\x20user\x20level')['positional']('tokenOrSubcommand',{'type':_0x3b1db8['tABfX'],'description':_0x42f202(0x23e)})[_0x42f202(0x28f)](_0x42f202(0x203),_0x3b1db8['xSFkT'],_0x1c191f=>{const _0x333075=_0x42f202;return _0x1c191f['option'](_0x333075(0x25c),{'type':_0x3b1db8['tABfX'],'description':_0x3b1db8[_0x333075(0x275)]})[_0x333075(0x2a2)](_0x333075(0x339),{'type':_0x333075(0x382),'description':_0x333075(0x30e),'default':![]})[_0x333075(0x2a2)](_0x333075(0x1e2),{'type':_0x333075(0x382),'description':'Skip\x20authentication','default':![]})[_0x333075(0x2a2)](_0x3b1db8[_0x333075(0x22d)],{'type':_0x3b1db8[_0x333075(0x336)],'description':_0x333075(0x27f),'default':![]})['option'](_0x3b1db8['WgDOP'],{'type':_0x3b1db8[_0x333075(0x35a)],'choices':['user'],'hidden':!![],'description':_0x3b1db8['eoCHT']})[_0x333075(0x2a2)](_0x333075(0x20c),{'type':_0x333075(0x353),'description':_0x3b1db8[_0x333075(0x2cd)]})['option'](_0x3b1db8[_0x333075(0x258)],{'type':_0x3b1db8['BgNwp'],'description':_0x333075(0x29a),'default':![]})['option']('opencode',{'type':'boolean','description':_0x3b1db8[_0x333075(0x37c)],'default':![]})[_0x333075(0x2a2)]('allow-insecure-localhost',{'type':'boolean','description':_0x3b1db8[_0x333075(0x2bf)],'default':![]})[_0x333075(0x2a2)]('mcp-bootstrap',{'type':_0x3b1db8[_0x333075(0x336)],'description':_0x3b1db8[_0x333075(0x236)],'default':![]})['option'](_0x333075(0x2b4),{'type':_0x333075(0x382),'description':_0x333075(0x33a),'default':![]});},async _0x4d3e2f=>{const _0x569f9e=_0x42f202;(_0x4d3e2f['mcp-bootstrap']||_0x4d3e2f['mcp'])&&await withTelemetry(_0x3b1db8['qVEKi'],()=>mcpBootstrap()),await withTelemetry(_0x3b1db8[_0x569f9e(0x35b)],_0x43faf0=>start(_0x4d3e2f[_0x569f9e(0x25c)],{'skipChromium':_0x4d3e2f['skip-chromium'],'skipAuth':_0x4d3e2f['skip-auth'],'withDeps':_0x4d3e2f['with-deps'],'scope':_0x4d3e2f[_0x569f9e(0x1ef)],'url':_0x4d3e2f['url'],'force':_0x4d3e2f['force'],'opencode':_0x4d3e2f[_0x569f9e(0x360)],'allowInsecureLocalhost':_0x4d3e2f[_0x569f9e(0x2c5)]},_0x43faf0));})['command'](_0x42f202(0x32d),_0x3b1db8['RFKnL'],_0x4f5e6f=>{const _0x41593a=_0x42f202;return _0x4f5e6f[_0x41593a(0x2a2)](_0x3bf929['fvLyT'],{'type':'boolean','description':_0x41593a(0x2fb),'default':![]});},async _0x21b30a=>{await withTelemetry(_0x3b1db8['NQYAB'],()=>ensureChromium(_0x21b30a['with-deps']));})[_0x42f202(0x28f)]('login',_0x42f202(0x306),_0x37ac44=>{const _0x1a5388=_0x42f202;return _0x37ac44[_0x1a5388(0x2a2)](_0x1a5388(0x25c),{'type':'string','description':'Ranger\x20API\x20token\x20(rngr_...)'})['option'](_0x3bf929[_0x1a5388(0x285)],{'type':_0x1a5388(0x382),'description':'Authenticate\x20via\x20MCP\x20proxy','default':![]});},async _0x3d2550=>{const _0x3b6b5a=_0x42f202,_0x12c5a4={'MTbMt':function(_0x58a3b7){return _0x58a3b7();},'UmHJu':_0x3b1db8[_0x3b6b5a(0x38e)],'vSbuN':function(_0x39558c,_0x4f13cd){return _0x39558c(_0x4f13cd);}};await _0x3b1db8['sfGZp'](withTelemetry,_0x3b6b5a(0x28d),async()=>{const _0xeb24f8=_0x3b6b5a;if(_0x3d2550['mcp']){await _0x12c5a4['MTbMt'](mcpBootstrap);const _0x46f56e=await _0x12c5a4['MTbMt'](refreshCliToken);if(!_0x46f56e)throw new Error(_0x12c5a4['UmHJu']);const _0x530986=await getCurrentUser(_0x46f56e);if(!_0x530986[_0xeb24f8(0x2a8)])throw new Error('Authenticated\x20via\x20MCP,\x20but\x20failed\x20to\x20verify:\x20'+_0x530986[_0xeb24f8(0x2c8)]);console['log'](_0xeb24f8(0x221)+_0x530986['user']['organizationName']);return;}await _0x12c5a4[_0xeb24f8(0x1f7)](authenticate,_0x3d2550[_0xeb24f8(0x25c)]);});})[_0x42f202(0x28f)](_0x42f202(0x288),_0x42f202(0x342),_0x13cfd9=>{const _0x58bef0=_0x42f202;return _0x13cfd9[_0x58bef0(0x2a2)](_0x3bf929['fTpem'],{'type':'string','choices':[_0x3bf929[_0x58bef0(0x1e6)],_0x3bf929[_0x58bef0(0x1f3)]],'description':_0x58bef0(0x25a)})['option'](_0x3bf929['OLwub'],{'type':'boolean','description':_0x3bf929[_0x58bef0(0x2eb)],'default':![]});},async _0x59d542=>{const _0x4aecc1=_0x42f202,_0x524d1c={'OXhZO':function(_0x3edacf,_0x4a8412){const _0x27985e=_0x4e13;return _0x3b1db8[_0x27985e(0x311)](_0x3edacf,_0x4a8412);},'bWdeZ':function(_0x7e3d29){const _0x36320c=_0x4e13;return _0x3b1db8[_0x36320c(0x338)](_0x7e3d29);}};await withTelemetry(_0x3b1db8[_0x4aecc1(0x394)],async()=>{const _0x1c87da=_0x4aecc1,_0xbc07c0=_0x59d542['scope'];if(_0x59d542['opencode']){const _0x57ff3b=await _0x524d1c['OXhZO'](ensureOpencodePluginConfig,_0xbc07c0);_0x57ff3b&&await installSkill(_0x1c87da(0x239),{'level':_0x57ff3b[_0x1c87da(0x1ef)],'cliVersion':_0x524d1c['bWdeZ'](getCurrentVersion),'platform':_0x1c87da(0x360)});}else await ensureClaudePlugin(_0xbc07c0),await _0x524d1c[_0x1c87da(0x2a0)](ensureClaudeSkills,_0xbc07c0);});})[_0x42f202(0x28f)](_0x3b1db8['yWLDO'],'Set\x20up\x20a\x20local\x20browser\x20profile',_0x4395b3=>{const _0x4d579d=_0x42f202;return _0x4395b3['option'](_0x3b1db8[_0x4d579d(0x316)],{'type':_0x3b1db8['tABfX'],'choices':[_0x3b1db8[_0x4d579d(0x2a5)]],'description':_0x3b1db8[_0x4d579d(0x206)]})[_0x4d579d(0x2a2)](_0x4d579d(0x20c),{'type':_0x4d579d(0x353),'description':'Base\x20URL\x20of\x20the\x20running\x20app'})[_0x4d579d(0x2a2)](_0x4d579d(0x1e2),{'type':_0x3b1db8[_0x4d579d(0x336)],'description':_0x3b1db8['UFueZ'],'default':![]})[_0x4d579d(0x2a2)]('force',{'type':_0x3b1db8[_0x4d579d(0x336)],'description':_0x4d579d(0x29a),'default':![]})[_0x4d579d(0x2a2)](_0x3b1db8[_0x4d579d(0x38c)],{'type':_0x4d579d(0x382),'description':_0x3b1db8[_0x4d579d(0x2bf)],'default':![]});},async _0x2798c9=>{const _0xd88377=_0x42f202,_0x54687a=_0x2798c9['scope'];_0x54687a!==undefined&&_0x54687a!==_0x3bf929['vesGJ']&&(console[_0xd88377(0x2c8)](_0x3bf929[_0xd88377(0x2f2)](_0x3bf929[_0xd88377(0x2f2)](_0xd88377(0x2e5)+_0x54687a+_0xd88377(0x210),_0xd88377(0x393)),_0xd88377(0x374))),process[_0xd88377(0x241)](0x1)),await _0x3bf929['dwyJF'](withTelemetry,_0x3bf929[_0xd88377(0x260)],_0x2ae4d5=>ensureLocalEnv({'url':_0x2798c9['url'],'force':_0x2798c9[_0xd88377(0x2db)],'allowInsecureLocalhost':_0x2798c9['allow-insecure-localhost'],'scope':_0xd88377(0x397)},_0x2ae4d5));})['option'](_0x3b1db8[_0x42f202(0x369)],{'type':_0x3b1db8['BgNwp'],'description':_0x42f202(0x30e),'default':![]})[_0x42f202(0x2a2)](_0x3b1db8['WgDOP'],{'type':_0x3b1db8[_0x42f202(0x35a)],'choices':['user'],'hidden':!![],'description':'Reserved\x20—\x20setup\x20always\x20installs\x20at\x20user\x20scope.'})['option'](_0x42f202(0x20c),{'type':_0x3b1db8[_0x42f202(0x35a)],'description':_0x3b1db8['izEQE']})[_0x42f202(0x2a2)]('force',{'type':_0x3b1db8[_0x42f202(0x336)],'description':_0x3b1db8['ZtFmp'],'default':![]})['option'](_0x3b1db8[_0x42f202(0x287)],{'type':_0x3b1db8['BgNwp'],'description':_0x3b1db8['FnafX'],'default':![]})['option'](_0x3b1db8[_0x42f202(0x38c)],{'type':_0x3b1db8['BgNwp'],'description':_0x3b1db8['DIsNr'],'default':![]})['option'](_0x3b1db8['qVEKi'],{'type':'boolean','description':_0x42f202(0x23d),'default':![]})['option'](_0x3b1db8['bwIBq'],{'type':'boolean','description':'Skip\x20authentication\x20(install\x20deps\x20only\x20—\x20for\x20container/CI\x20image\x20builds)','default':![]})[_0x42f202(0x2a2)](_0x42f202(0x31e),{'type':'boolean','description':_0x3b1db8['tAazf'],'default':![]})[_0x42f202(0x2a2)](_0x3b1db8[_0x42f202(0x2f9)],{'type':'string','hidden':!![],'description':_0x42f202(0x375)});},async _0x1e833f=>{const _0x3eb2ca=_0x11575b,_0x2341a0=_0x1e833f[_0x3eb2ca(0x37f)],_0x43b21d=_0x1e833f[_0x3eb2ca(0x25c)]??_0x2341a0;_0x1e833f[_0x3b1db8[_0x3eb2ca(0x30d)]]&&await withTelemetry(_0x3eb2ca(0x26a),()=>mcpBootstrap()),await _0x3b1db8[_0x3eb2ca(0x278)](withTelemetry,'start',_0x47ef31=>start(_0x43b21d,{'skipChromium':_0x1e833f['skip-chromium'],'skipAuth':_0x1e833f[_0x3eb2ca(0x1e2)],'withDeps':_0x1e833f[_0x3eb2ca(0x31e)],'scope':_0x1e833f['scope'],'url':_0x1e833f['url'],'force':_0x1e833f['force'],'opencode':_0x1e833f['opencode'],'allowInsecureLocalhost':_0x1e833f[_0x3eb2ca(0x2c5)]},_0x47ef31));})['command']('setup-ci\x20<token>','Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)',_0x358b9e=>{const _0x5184fb=_0x11575b;return _0x358b9e[_0x5184fb(0x2a1)]('token',{'type':_0x3b1db8[_0x5184fb(0x35a)],'description':_0x3b1db8[_0x5184fb(0x275)],'demandOption':!![]})[_0x5184fb(0x2a2)](_0x5184fb(0x31b),{'type':_0x5184fb(0x353),'description':_0x3b1db8[_0x5184fb(0x2e7)]})[_0x5184fb(0x2a2)](_0x3b1db8[_0x5184fb(0x224)],{'type':'string','description':_0x5184fb(0x209)})[_0x5184fb(0x2a2)]('skip-chromium',{'type':_0x3b1db8['BgNwp'],'description':_0x3b1db8['mfVPP'],'default':![]});},async _0x20dbb1=>{const _0x3f96b8=_0x11575b;await withTelemetry(_0x3f96b8(0x31a),_0x18e369=>setupCi(_0x20dbb1['token'],{'profile':_0x20dbb1[_0x3f96b8(0x31b)],'baseUrl':_0x20dbb1['base-url'],'skipChromium':_0x20dbb1['skip-chromium']},_0x18e369));})['command'](_0x11575b(0x1ea),'Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)',()=>{},async()=>{await withTelemetry(_0x3b1db8['xfdjA'],()=>login());})[_0x11575b(0x28f)](_0x3b1db8['uJEGX'],'Install\x20Ranger\x20skills',_0x4d730d=>{const _0x16cbca=_0x11575b;return _0x4d730d['option'](_0x16cbca(0x360),{'type':_0x3b1db8['BgNwp'],'description':_0x16cbca(0x23b),'default':![]})['option'](_0x16cbca(0x1ef),{'type':_0x16cbca(0x353),'choices':['user','project'],'description':'Install\x20scope\x20for\x20skills'});},async _0x29ee0a=>{const _0x231b02=_0x11575b,_0x248149=_0x3b1db8['mjldI'](Boolean,_0x29ee0a['opencode']);await withTelemetry('skillup',()=>skillup({'autoInstall':_0x29ee0a[_0x231b02(0x1ef)],'platform':_0x248149?'opencode':_0x231b02(0x279)}));})[_0x11575b(0x28f)](_0x3b1db8[_0x11575b(0x216)],_0x3b1db8['EaDny'],()=>{},async()=>{const _0x34ea5c=_0x11575b;await _0x3b1db8[_0x34ea5c(0x2d1)](withTelemetry,_0x3b1db8[_0x34ea5c(0x216)],()=>clean());})[_0x11575b(0x28f)]([_0x3b1db8['Cxokr'],_0x3b1db8[_0x11575b(0x28a)]],_0x3b1db8[_0x11575b(0x1fc)],_0x5cdf5b=>{const _0x33c316=_0x11575b,_0x4f20c5={'AFXCZ':'Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','mMJEs':_0x3b1db8['bwIBq'],'unfQG':_0x3b1db8[_0x33c316(0x308)],'tKkle':_0x3b1db8[_0x33c316(0x35a)],'NOPvA':_0x3b1db8['BgNwp'],'AHMdH':'cdp-endpoint','fogBH':_0x3b1db8['tiZIo'],'YkmAM':_0x3b1db8['OxVdp'],'dshVY':_0x3b1db8[_0x33c316(0x222)],'nMPLp':_0x3b1db8['BgjdB'],'xgvFp':'Skip\x20interactive\x20confirmation\x20prompts\x20(e.g.\x20cloud-profile\x20auto-route).','QRCdu':function(_0x16e6a3,_0x4863bb,_0x16ecf1,_0x523bb8){const _0x30fec0=_0x33c316;return _0x3b1db8[_0x30fec0(0x2f0)](_0x16e6a3,_0x4863bb,_0x16ecf1,_0x523bb8);},'WKwfF':'profile\x20add','VZycR':function(_0x5a0d4a,_0x467266){return _0x3b1db8['RJzzf'](_0x5a0d4a,_0x467266);},'XPtow':_0x33c316(0x20d),'eILyN':'profile','PlxPU':_0x3b1db8[_0x33c316(0x276)],'XsBEP':_0x3b1db8[_0x33c316(0x310)],'tHfvh':_0x3b1db8['ZZHDF'],'YJuhg':_0x33c316(0x24d),'CwPPh':'unknown\x20error','xDsSe':_0x3b1db8[_0x33c316(0x2ea)],'sHKVz':_0x33c316(0x203),'EQjQj':_0x3b1db8['NMjcA'],'deHXK':_0x3b1db8['tfuXI'],'ZKfHY':function(_0x357be6,_0x11e982,_0x550171){return _0x357be6(_0x11e982,_0x550171);},'bURBy':_0x3b1db8[_0x33c316(0x2d2)],'wbmwW':_0x3b1db8['IEbXu'],'bjBYC':_0x3b1db8['hCgSg']};return _0x5cdf5b['usage'](PROFILE_HELP)['command'](_0x33c316(0x358),_0x33c316(0x1ec),_0xcf4951=>{const _0x3e0d26=_0x33c316;return _0xcf4951[_0x3e0d26(0x2a1)](_0x3e0d26(0x271),{'type':_0x3e0d26(0x353),'description':_0x4f20c5[_0x3e0d26(0x373)],'demandOption':!![]})[_0x3e0d26(0x2a2)]('ci',{'type':'boolean','description':'Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','default':![]})['option'](_0x4f20c5['mMJEs'],{'type':_0x3e0d26(0x382),'description':_0x4f20c5[_0x3e0d26(0x2da)],'default':![]})['option']('url',{'type':_0x4f20c5['tKkle'],'description':'Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)'})['option']('force',{'type':_0x4f20c5['NOPvA'],'description':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','default':![]})['option'](_0x4f20c5['AHMdH'],{'type':'string','description':_0x3e0d26(0x37d)})[_0x3e0d26(0x2a2)]('allow-insecure-localhost',{'type':_0x4f20c5['NOPvA'],'description':_0x3e0d26(0x2f7),'default':![]})['option'](_0x4f20c5[_0x3e0d26(0x257)],{'type':_0x3e0d26(0x382),'description':'Disable\x20browser\x20features\x20that\x20can\x20cause\x20crashes\x20on\x20some\x20systems\x20(e.g.\x20Bluetooth\x20permission\x20prompts\x20on\x20macOS)','default':![]})[_0x3e0d26(0x2a2)](_0x4f20c5[_0x3e0d26(0x29f)],{'type':_0x4f20c5['tKkle'],'array':!![],'description':_0x4f20c5[_0x3e0d26(0x31c)]})['option']('scope',{'type':'string','choices':[_0x4f20c5[_0x3e0d26(0x242)],'project'],'description':_0x3e0d26(0x300)})['option'](_0x3e0d26(0x281),{'type':_0x4f20c5['NOPvA'],'alias':'y','description':_0x4f20c5[_0x3e0d26(0x1f2)],'default':![]});},async _0xc02e2a=>{const _0x2bced6=_0x33c316;await _0x4f20c5[_0x2bced6(0x293)](withTelemetry,_0x4f20c5[_0x2bced6(0x370)],_0x36d634=>addEnv(_0xc02e2a['profile-name'],{'ci':_0xc02e2a['ci'],'skipAuth':_0xc02e2a['skip-auth'],'url':_0xc02e2a['url'],'force':_0xc02e2a['force'],'cdpEndpoint':_0xc02e2a[_0x2bced6(0x261)],'allowInsecureLocalhost':_0xc02e2a['allow-insecure-localhost'],'safeMode':_0xc02e2a['safe-mode'],'setupHeader':_0xc02e2a[_0x2bced6(0x367)],'scope':_0xc02e2a['scope'],'yes':_0xc02e2a['yes']},_0x36d634),{'isElectron':_0x4f20c5[_0x2bced6(0x33f)](Boolean,_0xc02e2a['cdp-endpoint'])});})['command'](_0x33c316(0x26e),_0x3b1db8['ajlyr'],_0x34f25e=>{const _0x1c9973=_0x33c316;return _0x34f25e['positional']('profile-name',{'type':'string','description':_0x4f20c5[_0x1c9973(0x251)],'demandOption':!![]});},async _0x5552ec=>{await _0x3b1db8['jOgxh'](withTelemetry,'profile\x20use',()=>useEnv(_0x5552ec['profile-name']));})[_0x33c316(0x28f)](_0x3b1db8[_0x33c316(0x21c)],_0x3b1db8[_0x33c316(0x29c)],_0x5e4190=>{const _0x136971=_0x33c316;return _0x5e4190['positional'](_0x4f20c5['eILyN'],{'type':_0x4f20c5[_0x136971(0x1d9)],'description':_0x4f20c5[_0x136971(0x26c)],'demandOption':!![]});},async _0x175d82=>{await withTelemetry('profile\x20encrypt-auth',()=>authEncrypt(_0x175d82['profile']));})[_0x33c316(0x28f)]('ls','List\x20all\x20profiles',()=>{},async()=>{const _0x506bab=_0x33c316;await withTelemetry(_0x3b1db8[_0x506bab(0x388)],()=>envList());})['command'](_0x3b1db8['PdkdD'],'Update\x20authentication\x20for\x20an\x20existing\x20profile',_0x5a3533=>{const _0x143680=_0x33c316;return _0x5a3533[_0x143680(0x2a1)](_0x143680(0x271),{'type':'string','description':_0x3b1db8['HUyVh'],'demandOption':!![]})[_0x143680(0x2a2)](_0x3b1db8['hvPBl'],{'type':_0x3b1db8['BgNwp'],'description':_0x3b1db8['DIsNr']});},async _0xed2cb7=>{const _0x419e99=_0x33c316;await withTelemetry(_0x4f20c5['XsBEP'],_0x14bf17=>updateEnv(_0xed2cb7['profile-name'],_0x14bf17,{'allowInsecureLocalhost':_0xed2cb7[_0x419e99(0x2c5)]}));})[_0x33c316(0x28f)]('login\x20<name>',![],_0x46c8a9=>{const _0x2b7079=_0x33c316;return _0x46c8a9[_0x2b7079(0x2a1)]('name',{'type':'string','description':_0x4f20c5['tHfvh'],'demandOption':!![]});},async _0x321544=>{const _0x1e0f91=_0x33c316;await withTelemetry(_0x1e0f91(0x205),async()=>{const _0x36a2a0=_0x1e0f91,_0x4376f2=process[_0x36a2a0(0x2af)]['RANGER_TEST_USERNAME'],_0x359ee3=process['env'][_0x36a2a0(0x254)];(!_0x4376f2||!_0x359ee3)&&(console[_0x36a2a0(0x2c8)]('Error:\x20`ranger\x20profile\x20login`\x20is\x20headless\x20—\x20set\x20RANGER_TEST_USERNAME\x20and\x20RANGER_TEST_PASSWORD\x20before\x20running.'),process[_0x36a2a0(0x241)](0x1));const _0x10f6ed=_0x321544[_0x36a2a0(0x256)],_0x29c01b=await serverSideLogin(_0x10f6ed,{'force':!![]});_0x29c01b['status']===_0x4f20c5[_0x36a2a0(0x34c)]&&(console['error']('No\x20auth\x20config\x20for\x20this\x20org;\x20profile\x20login\x20unavailable.'),process[_0x36a2a0(0x241)](0x1)),_0x29c01b[_0x36a2a0(0x2a6)]===_0x36a2a0(0x1f4)&&(console[_0x36a2a0(0x2c8)](_0x36a2a0(0x2e6)+(_0x29c01b['error']??_0x4f20c5['CwPPh'])),_0x29c01b[_0x36a2a0(0x2d4)]&&console[_0x36a2a0(0x2c8)](_0x29c01b['test_output']),process['exit'](0x1)),console['log'](_0x36a2a0(0x200)+_0x10f6ed+'\x27.\x20Session\x20written\x20to\x20cloud\x20profile.');});})['command'](_0x3b1db8[_0x33c316(0x280)],_0x3b1db8[_0x33c316(0x26f)],_0x5f4c83=>{const _0x241a99=_0x33c316;return _0x5f4c83[_0x241a99(0x2a1)](_0x241a99(0x271),{'type':_0x241a99(0x353),'description':_0x4f20c5[_0x241a99(0x309)]})[_0x241a99(0x2a2)](_0x4f20c5[_0x241a99(0x357)],{'type':_0x4f20c5[_0x241a99(0x263)],'description':'Migrate\x20all\x20local\x20profiles\x20that\x20match\x20a\x20configured\x20auth\x20environment.','default':![]})['option'](_0x241a99(0x2de),{'type':_0x4f20c5[_0x241a99(0x263)],'description':'Print\x20the\x20migration\x20plan\x20without\x20mutating\x20anything.','default':![]})['option'](_0x4f20c5['EQjQj'],{'type':_0x4f20c5['NOPvA'],'alias':'y','description':_0x241a99(0x204),'default':![]})['option'](_0x241a99(0x333),{'type':_0x4f20c5[_0x241a99(0x263)],'description':_0x241a99(0x36b),'default':![]});},async _0x516f90=>{const _0x53571b=_0x33c316;await withTelemetry(_0x3b1db8[_0x53571b(0x2fa)],_0x338a67=>migrateProfile({'profileName':_0x516f90['profile-name'],'all':_0x516f90[_0x53571b(0x203)],'dryRun':_0x516f90[_0x53571b(0x2de)],'yes':_0x516f90['yes'],'saveCreds':_0x516f90[_0x53571b(0x333)]},_0x338a67));})['command'](_0x3b1db8[_0x33c316(0x2b2)],'Manage\x20profile\x20configuration',_0x2c34c6=>{const _0x13f45c=_0x33c316,_0x504cae={'gMPSd':_0x13f45c(0x31b),'mWOhv':_0x3b1db8['znJYi'],'UthAH':'key','CJkNv':_0x13f45c(0x1e3),'BsmVb':function(_0x3db4c0,_0x40b6b7,_0x47e432){return _0x3db4c0(_0x40b6b7,_0x47e432);},'ZqERm':_0x3b1db8[_0x13f45c(0x1df)],'EXyuK':'string','aOaLc':'profile\x20config\x20reset'};return _0x2c34c6[_0x13f45c(0x2d7)](PROFILE_CONFIG_HELP)[_0x13f45c(0x28f)](_0x13f45c(0x351),_0x3b1db8[_0x13f45c(0x1ed)],_0x22d6be=>{const _0x5cfaf6=_0x13f45c;return _0x22d6be[_0x5cfaf6(0x2a1)](_0x4f20c5[_0x5cfaf6(0x2e3)],{'type':_0x4f20c5[_0x5cfaf6(0x1d9)],'description':_0x5cfaf6(0x220),'demandOption':!![]})[_0x5cfaf6(0x2a1)](_0x4f20c5[_0x5cfaf6(0x24a)],{'type':_0x5cfaf6(0x353),'description':'Config\x20key\x20(e.g.,\x20userAgent,\x20headers.X-Custom)','demandOption':!![]})['positional'](_0x5cfaf6(0x319),{'type':_0x4f20c5['tKkle'],'description':'Config\x20value','demandOption':!![]});},async _0x438a89=>{const _0x27ac4e=_0x13f45c;await _0x4f20c5[_0x27ac4e(0x21e)](withTelemetry,_0x4f20c5[_0x27ac4e(0x250)],()=>configSet(_0x438a89[_0x27ac4e(0x31b)],_0x438a89[_0x27ac4e(0x37e)],_0x438a89[_0x27ac4e(0x319)]));})[_0x13f45c(0x28f)](_0x3b1db8['qDvZN'],_0x3b1db8[_0x13f45c(0x37a)],_0x1c635e=>{const _0x3897cf=_0x13f45c;return _0x1c635e['positional'](_0x504cae['gMPSd'],{'type':'string','description':_0x504cae[_0x3897cf(0x28b)],'demandOption':!![]})['positional'](_0x504cae[_0x3897cf(0x347)],{'type':'string','description':_0x504cae[_0x3897cf(0x359)],'demandOption':!![]});},async _0x17e0d9=>{const _0x1f0292=_0x13f45c;await _0x504cae['BsmVb'](withTelemetry,_0x504cae['ZqERm'],()=>configGet(_0x17e0d9[_0x1f0292(0x31b)],_0x17e0d9['key']));})['command'](_0x3b1db8[_0x13f45c(0x355)],_0x3b1db8[_0x13f45c(0x313)],_0x232078=>{const _0x169f32=_0x13f45c;return _0x232078[_0x169f32(0x2a1)](_0x169f32(0x31b),{'type':_0x4f20c5['tKkle'],'description':_0x4f20c5['PlxPU'],'demandOption':!![]});},async _0x72a813=>{const _0x539b9e=_0x13f45c;await _0x4f20c5[_0x539b9e(0x21e)](withTelemetry,_0x4f20c5['wbmwW'],()=>configList(_0x72a813[_0x539b9e(0x31b)]));})['command'](_0x13f45c(0x1f9),_0x3b1db8[_0x13f45c(0x2dc)],_0x29e380=>{const _0x4252a1=_0x13f45c;return _0x29e380[_0x4252a1(0x2a1)](_0x4252a1(0x31b),{'type':_0x4f20c5[_0x4252a1(0x1d9)],'description':_0x4f20c5[_0x4252a1(0x26c)],'demandOption':!![]})['positional'](_0x4f20c5['deHXK'],{'type':_0x4f20c5['tKkle'],'description':_0x4252a1(0x376),'demandOption':!![]});},async _0x337aa2=>{const _0x4eb530=_0x13f45c;await withTelemetry(_0x4f20c5['bjBYC'],()=>configUnset(_0x337aa2['profile'],_0x337aa2[_0x4eb530(0x37e)]));})['command']('reset\x20<profile>',_0x3b1db8[_0x13f45c(0x2f4)],_0x2c2ce2=>{const _0x1e353b=_0x13f45c;return _0x2c2ce2[_0x1e353b(0x2a1)](_0x504cae[_0x1e353b(0x34d)],{'type':_0x504cae['EXyuK'],'description':_0x504cae[_0x1e353b(0x28b)],'demandOption':!![]});},async _0x5344d7=>{const _0x1be94a=_0x13f45c;await withTelemetry(_0x504cae[_0x1be94a(0x387)],()=>configReset(_0x5344d7['profile']));})[_0x13f45c(0x21a)](0x1,'You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand');})[_0x33c316(0x21a)](0x1,'You\x20must\x20specify\x20a\x20profile\x20subcommand');})['command'](_0x3b1db8[_0x11575b(0x314)],_0x3b1db8['VEaZO'],()=>{},async()=>{const _0x2829df=_0x11575b;await withTelemetry(_0x3b1db8[_0x2829df(0x314)],()=>status());})['command'](_0x11575b(0x28c),_0x11575b(0x304),()=>{},async()=>{await withTelemetry('update',()=>update());})[_0x11575b(0x28f)](_0x3b1db8[_0x11575b(0x286)],_0x3b1db8['GnRRu'],()=>{},async()=>{const _0x11ba3d=_0x11575b;await _0x3b1db8[_0x11ba3d(0x25d)](withTelemetry,_0x3b1db8[_0x11ba3d(0x286)],async()=>{const _0x35f141=_0x11ba3d,_0x4c3a96=await getToken();if(!_0x4c3a96)throw new Error(_0x35f141(0x247));console['log'](_0x4c3a96);});})[_0x11575b(0x28f)]('go',_0x3b1db8['zMYNS'],_0x24a0f9=>{const _0x1dbfd1=_0x11575b;return _0x24a0f9['option'](_0x3b1db8[_0x1dbfd1(0x346)],{'type':_0x1dbfd1(0x353),'description':_0x1dbfd1(0x233)})['option'](_0x3b1db8[_0x1dbfd1(0x225)],{'type':_0x3b1db8['tABfX'],'description':_0x3b1db8[_0x1dbfd1(0x1f1)]})[_0x1dbfd1(0x2a2)](_0x3b1db8['frAnw'],{'type':_0x3b1db8['tABfX'],'description':_0x3b1db8['nqedK']})['option']('scenario',{'type':_0x3b1db8['aFGRc'],'description':_0x3b1db8[_0x1dbfd1(0x2e4)]})[_0x1dbfd1(0x2a2)](_0x3b1db8['bcZuV'],{'type':'string','description':_0x3b1db8['Vfsmo']})[_0x1dbfd1(0x2a2)](_0x3b1db8['EJIvb'],{'type':_0x1dbfd1(0x353),'description':_0x1dbfd1(0x207)})['option']('model',{'type':'string','description':_0x1dbfd1(0x270)})['option'](_0x1dbfd1(0x37b),{'type':_0x3b1db8['BgNwp'],'description':_0x3b1db8[_0x1dbfd1(0x1e4)],'default':![]})[_0x1dbfd1(0x2a2)](_0x3b1db8[_0x1dbfd1(0x36a)],{'type':_0x3b1db8['tABfX'],'hidden':!![],'choices':[_0x3b1db8[_0x1dbfd1(0x28e)],'partial',_0x3b1db8['bDkZU'],_0x3b1db8['wCXvn'],_0x3b1db8[_0x1dbfd1(0x340)]]})['option']('debug-address-comments',{'type':_0x1dbfd1(0x382),'hidden':!![]})['option'](_0x3b1db8[_0x1dbfd1(0x266)],{'type':'string','hidden':!![]})['option'](_0x3b1db8[_0x1dbfd1(0x2df)],{'type':_0x3b1db8[_0x1dbfd1(0x35a)],'hidden':!![]})[_0x1dbfd1(0x2a2)](_0x3b1db8['jyyrU'],{'type':'number','hidden':!![]});},async _0x4291ec=>{await _0x3b1db8['mMeRT'](runGoCommand,_0x4291ec);})[_0x11575b(0x28f)](_0x3b1db8['qYmEH'],![],_0x397c8b=>{const _0x167365=_0x11575b,_0x5bf6ac={'rIqNV':function(_0x4b8e3a,_0x45137a){const _0x1feb7e=_0x4e13;return _0x3b1db8[_0x1feb7e(0x24b)](_0x4b8e3a,_0x45137a);}};return _0x397c8b['command'](_0x3b1db8['WZnBS'],![],_0x122344=>{const _0x3b8a13=_0x4e13;return _0x122344['positional'](_0x3b1db8['Cxokr'],{'type':_0x3b1db8[_0x3b8a13(0x35a)],'description':'Profile\x20name','demandOption':!![]});},async _0x3d9f1d=>{const _0x13f87c=_0x4e13;warnRenamed(_0x13f87c(0x253),'ranger\x20profile\x20encrypt-auth'),await _0x5bf6ac['rIqNV'](authEncrypt,_0x3d9f1d['profile']);})[_0x167365(0x21a)](0x1,_0x167365(0x1fe));},()=>{})[_0x11575b(0x28f)](_0x11575b(0x20a),![],_0xb833c8=>{const _0x11bcf4=_0x11575b;return _0xb833c8['positional']('token',{'type':_0x11bcf4(0x353),'description':_0x3b1db8[_0x11bcf4(0x299)]})['option'](_0x3b1db8[_0x11bcf4(0x369)],{'type':_0x3b1db8[_0x11bcf4(0x336)],'description':_0x11bcf4(0x30e),'default':![]})['option']('scope',{'type':_0x11bcf4(0x353),'choices':[_0x3b1db8['BgjdB']],'hidden':!![],'description':_0x11bcf4(0x2a9)})[_0x11bcf4(0x2a2)]('url',{'type':_0x3b1db8[_0x11bcf4(0x35a)],'description':_0x3b1db8['izEQE']})[_0x11bcf4(0x2a2)](_0x11bcf4(0x2db),{'type':_0x3b1db8[_0x11bcf4(0x336)],'description':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','default':![]})['option'](_0x3b1db8[_0x11bcf4(0x1f8)],{'type':'boolean','description':_0x3b1db8[_0x11bcf4(0x2cf)],'default':![]})['option'](_0x3b1db8[_0x11bcf4(0x22d)],{'type':_0x3b1db8['BgNwp'],'description':'Install\x20OS-level\x20dependencies\x20for\x20Chromium','default':![]});},async _0x5cb501=>{const _0x58ca91=_0x11575b;_0x3b1db8['DqGAu'](warnRenamed,_0x3b1db8['BOyTA'],_0x3b1db8[_0x58ca91(0x383)]),await withTelemetry(_0x3b1db8[_0x58ca91(0x33c)],_0x340f29=>start(_0x5cb501['token'],{'skipChromium':_0x5cb501[_0x58ca91(0x339)],'skipAuth':_0x5cb501[_0x58ca91(0x1e2)],'withDeps':_0x5cb501['with-deps'],'scope':_0x5cb501[_0x58ca91(0x1ef)],'url':_0x5cb501['url'],'force':_0x5cb501[_0x58ca91(0x2db)]},_0x340f29));})[_0x11575b(0x28f)](_0x11575b(0x22f),![],_0x391eb4=>{const _0x32a4cc=_0x11575b;return _0x391eb4[_0x32a4cc(0x2a2)]('env',{'type':'string','description':_0x32a4cc(0x301)})['option'](_0x3b1db8[_0x32a4cc(0x2df)],{'type':_0x3b1db8['tABfX'],'description':'Task\x20description\x20(defaults\x20to\x20scenario\x20description)'})[_0x32a4cc(0x2a2)](_0x32a4cc(0x32c),{'type':_0x32a4cc(0x356),'description':_0x3b1db8['ahKiZ']})['option']('profile',{'type':_0x3b1db8[_0x32a4cc(0x35a)],'hidden':!![]})[_0x32a4cc(0x2a2)]('notes',{'type':_0x3b1db8[_0x32a4cc(0x35a)],'hidden':!![]})['option'](_0x3b1db8['dZFRo'],{'type':_0x3b1db8[_0x32a4cc(0x252)],'hidden':!![]})[_0x32a4cc(0x2a2)]('start-path',{'type':_0x32a4cc(0x353),'description':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard).\x20Also\x20respects\x20RANGER_START_PATH.'})[_0x32a4cc(0x2a2)]('base-url',{'type':'string','description':'Override\x20the\x20profile\x20base\x20URL\x20for\x20this\x20run.\x20Also\x20respects\x20RANGER_BASE_URL.'})[_0x32a4cc(0x2a2)]('model',{'type':_0x3b1db8[_0x32a4cc(0x35a)],'hidden':!![]})[_0x32a4cc(0x2a2)](_0x3b1db8['ydbtr'],{'type':_0x3b1db8['BgNwp'],'hidden':!![],'default':![]})[_0x32a4cc(0x2a2)](_0x3b1db8['ccmoe'],{'type':_0x32a4cc(0x353),'hidden':!![],'choices':[_0x32a4cc(0x29b),_0x3b1db8['gAujT'],_0x32a4cc(0x386),_0x32a4cc(0x1f4),_0x32a4cc(0x201)]});},async _0x412ca4=>{await runGoCommand(_0x412ca4,!![]);})['command'](_0x11575b(0x1dd),![],_0x2bb88e=>{const _0xe3d70d=_0x11575b;return _0x2bb88e[_0xe3d70d(0x2a1)](_0xe3d70d(0x303),{'type':_0xe3d70d(0x353),'description':'Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','demandOption':!![]})[_0xe3d70d(0x2a2)]('ci',{'type':_0xe3d70d(0x382),'description':_0xe3d70d(0x298),'default':![]})[_0xe3d70d(0x2a2)](_0x3b1db8['bwIBq'],{'type':'boolean','description':_0x3b1db8[_0xe3d70d(0x308)],'default':![]});},async _0x58aac3=>{const _0x451b28=_0x11575b;warnRenamed('ranger\x20add\x20env',_0x3b1db8[_0x451b28(0x1f6)]),await _0x3b1db8['jBAXT'](withTelemetry,_0x3b1db8['wjCOb'],_0x31329e=>addEnv(_0x58aac3[_0x451b28(0x303)],{'ci':_0x58aac3['ci'],'skipAuth':_0x58aac3[_0x451b28(0x1e2)]},_0x31329e));})['command'](_0x11575b(0x399),![],_0x16a1a0=>{return _0x16a1a0['positional'](_0x3b1db8['Fkebe'],{'type':'string','description':_0x3b1db8['uRNKh'],'demandOption':!![]});},async _0x2083e5=>{const _0x96108c=_0x11575b;_0x3b1db8[_0x96108c(0x30c)](warnRenamed,_0x3b1db8[_0x96108c(0x291)],_0x96108c(0x34e)),await withTelemetry('use',()=>useEnv(_0x2083e5['env-name']));})[_0x11575b(0x28f)](_0x3b1db8['cKKdd'],![],_0x272dcc=>{const _0x57a73a=_0x11575b,_0x2ddb39={'dkPLK':function(_0x542c96,_0x312c33,_0x4dd6df){return _0x3b1db8['jBAXT'](_0x542c96,_0x312c33,_0x4dd6df);},'XbdVw':_0x57a73a(0x277),'ZXKBZ':'ranger\x20profile\x20config\x20set','kybHc':_0x3b1db8['HVOgr'],'jGDyN':_0x3b1db8[_0x57a73a(0x266)],'AtulL':_0x3b1db8[_0x57a73a(0x35a)],'zMPFA':_0x3b1db8[_0x57a73a(0x326)]};return _0x272dcc['command']('set\x20<env>\x20<key>\x20<value>',![],_0x51f9c1=>{const _0x1ac6eb=_0x57a73a;return _0x51f9c1['positional'](_0x1ac6eb(0x2af),{'type':_0x3b1db8['tABfX'],'description':_0x3b1db8['SwiIB'],'demandOption':!![]})[_0x1ac6eb(0x2a1)](_0x3b1db8['tfuXI'],{'type':_0x3b1db8[_0x1ac6eb(0x35a)],'description':'Config\x20key\x20(e.g.,\x20userAgent,\x20headers.X-Custom)','demandOption':!![]})['positional'](_0x1ac6eb(0x319),{'type':_0x1ac6eb(0x353),'description':_0x1ac6eb(0x30b),'demandOption':!![]});},async _0x20900f=>{const _0x3beffa=_0x57a73a;_0x2ddb39['dkPLK'](warnRenamed,_0x2ddb39[_0x3beffa(0x262)],_0x2ddb39[_0x3beffa(0x38f)]),await withTelemetry(_0x2ddb39['kybHc'],()=>configSet(_0x20900f['env'],_0x20900f[_0x3beffa(0x37e)],_0x20900f['value']));})['command'](_0x3b1db8['Idkcs'],![],_0x28714b=>{const _0x3bc963=_0x57a73a;return _0x28714b[_0x3bc963(0x2a1)]('env',{'type':_0x3bc963(0x353),'description':_0x3bc963(0x32b),'demandOption':!![]})[_0x3bc963(0x2a1)](_0x3b1db8['tfuXI'],{'type':_0x3b1db8[_0x3bc963(0x35a)],'description':_0x3b1db8[_0x3bc963(0x2ac)],'demandOption':!![]});},async _0x1005b7=>{const _0x10c64e=_0x57a73a;_0x3b1db8['nSmJN'](warnRenamed,_0x3b1db8['KEAsv'],_0x10c64e(0x2ae)),await withTelemetry(_0x3b1db8['FkwMv'],()=>configGet(_0x1005b7['env'],_0x1005b7[_0x10c64e(0x37e)]));})['command']('list\x20<env>',![],_0x24a9fe=>{const _0x5c89cd=_0x57a73a;return _0x24a9fe['positional'](_0x2ddb39['jGDyN'],{'type':_0x2ddb39['AtulL'],'description':_0x5c89cd(0x32b),'demandOption':!![]});},async _0xf9f9f8=>{const _0xf6dbc=_0x57a73a;_0x3b1db8['MOORD'](warnRenamed,'ranger\x20config\x20list',_0x3b1db8['UnkBg']),await withTelemetry(_0xf6dbc(0x331),()=>configList(_0xf9f9f8[_0xf6dbc(0x2af)]));})['command'](_0x57a73a(0x20f),![],_0x904301=>{const _0x136ccc=_0x57a73a;return _0x904301['positional']('env',{'type':'string','description':'Environment\x20name','demandOption':!![]})[_0x136ccc(0x2a1)](_0x136ccc(0x37e),{'type':'string','description':_0x2ddb39[_0x136ccc(0x2fc)],'demandOption':!![]});},async _0x5161f2=>{const _0x2bd42e=_0x57a73a;warnRenamed('ranger\x20config\x20unset','ranger\x20profile\x20config\x20unset'),await _0x3b1db8['pjxyo'](withTelemetry,_0x2bd42e(0x24f),()=>configUnset(_0x5161f2[_0x2bd42e(0x2af)],_0x5161f2[_0x2bd42e(0x37e)]));})[_0x57a73a(0x21a)](0x1,'You\x20must\x20specify\x20a\x20config\x20subcommand');})['command'](_0x11575b(0x2af),![],_0x156ba6=>{return _0x156ba6['command']('ls',![],()=>{},async()=>{const _0x192a9a=_0x4e13;_0x3b1db8['tHRoX'](warnRenamed,_0x3b1db8[_0x192a9a(0x235)],'ranger\x20profile\x20ls'),await _0x3b1db8['pjxyo'](withTelemetry,_0x192a9a(0x26d),()=>envList());})['command'](_0x3b1db8['mAlEu'],![],_0x593571=>{const _0xd39915=_0x4e13;return _0x593571['positional'](_0x3b1db8[_0xd39915(0x1e5)],{'type':'string','description':_0x3b1db8['SipOd'],'demandOption':!![]});},async _0x101971=>{const _0x4322be=_0x4e13;warnRenamed(_0x4322be(0x25f),_0x3b1db8['UfSsX']),await _0x3b1db8[_0x4322be(0x25d)](withTelemetry,_0x4322be(0x240),_0x343863=>updateEnv(_0x101971['env-name'],_0x343863));})['demandCommand'](0x1,_0x3b1db8['hXQzd']);})[_0x11575b(0x28f)](_0x3b1db8['dwsoT'],![],_0x1ea6ba=>{const _0x420cdf=_0x11575b,_0x28576e={'cdSJk':_0x3b1db8[_0x420cdf(0x237)],'urtlz':_0x3b1db8[_0x420cdf(0x2e1)],'zGtBy':function(_0x1c2fe1,_0x245af2,_0x23c205,_0x562463){return _0x3b1db8['tWMrA'](_0x1c2fe1,_0x245af2,_0x23c205,_0x562463);},'MgFnt':_0x3b1db8['TQiUX'],'rhCjM':_0x3b1db8['tkbdI'],'SdmXq':_0x3b1db8['aFGRc'],'noqyW':_0x420cdf(0x34b),'agznK':_0x420cdf(0x353),'AfFHq':_0x3b1db8[_0x420cdf(0x35d)],'miJum':_0x3b1db8['SUfSn'],'EPLrk':_0x420cdf(0x2d5),'odrvQ':'Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','GyUOT':_0x3b1db8[_0x420cdf(0x362)],'yLnUE':'ranger\x20add-scenario','UAfvG':function(_0x5c2708,_0x42d1b0,_0x13b23a){return _0x5c2708(_0x42d1b0,_0x13b23a);},'qARBf':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','NGdRg':function(_0x3e15fd,_0x5e8c85,_0x36df67){const _0x112998=_0x420cdf;return _0x3b1db8[_0x112998(0x30c)](_0x3e15fd,_0x5e8c85,_0x36df67);},'UXueZ':_0x3b1db8['opmYt'],'gjpMm':'feature\x20get-feedback','WcfYU':function(_0x6d770,_0x16c8cd,_0xbf2436){return _0x6d770(_0x16c8cd,_0xbf2436);},'sALVq':_0x3b1db8['RgDeC'],'PAZTl':function(_0x50dba4,_0x1b6722,_0x14f4c4){const _0x353fe3=_0x420cdf;return _0x3b1db8[_0x353fe3(0x36d)](_0x50dba4,_0x1b6722,_0x14f4c4);},'KPIaW':'Feature\x20review\x20ID\x20to\x20restore','iUGJk':function(_0x1e0b4b,_0x33b772,_0x588508){return _0x1e0b4b(_0x33b772,_0x588508);},'DTaxo':_0x3b1db8[_0x420cdf(0x325)]};return _0x1ea6ba[_0x420cdf(0x28f)](_0x420cdf(0x25e),![],_0xa1fd6a=>{const _0x4e2d33=_0x420cdf;return _0xa1fd6a['positional'](_0x4e2d33(0x256),{'type':_0x4e2d33(0x353),'description':_0x3b1db8[_0x4e2d33(0x218)],'demandOption':!![]})['option']('description',{'type':'string','alias':'d','description':'Feature\x20review\x20description'})['option'](_0x3b1db8['Ivjxa'],{'type':_0x4e2d33(0x2e2),'alias':'c','description':_0x3b1db8[_0x4e2d33(0x2c3)]})[_0x4e2d33(0x2a2)](_0x4e2d33(0x318),{'type':_0x3b1db8['vSOji'],'hidden':!![]});},async _0x4d73ed=>{const _0x4fd498=_0x420cdf;warnRenamed(_0x28576e[_0x4fd498(0x2cc)],_0x28576e['urtlz']),_0x28576e['zGtBy'](warnFlagRenamed,_0x4fd498(0x2c4),'--checklist',_0x4fd498(0x2bb));const _0x16f829=_0x4d73ed['scenario']||_0x4d73ed['checklist'];await withTelemetry('feature\x20create',()=>featureCreate(_0x4d73ed[_0x4fd498(0x256)],{'description':_0x4d73ed[_0x4fd498(0x1d8)],'scenarios':_0x16f829}));})['command']('list',![],_0x3313b0=>{const _0x1849a5=_0x420cdf;return _0x3313b0['option'](_0x28576e[_0x1849a5(0x322)],{'type':'boolean','description':'Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch'})[_0x1849a5(0x2a2)](_0x28576e['rhCjM'],{'type':_0x28576e['SdmXq'],'alias':'l','description':_0x1849a5(0x365),'default':0xa})[_0x1849a5(0x2a2)]('offset',{'type':_0x28576e['SdmXq'],'alias':'o','description':_0x28576e['noqyW'],'default':0x0})[_0x1849a5(0x2a2)]('include-deleted',{'type':_0x1849a5(0x382),'alias':'d','description':_0x1849a5(0x34a),'default':![]});},async _0x8dd626=>{const _0x1284e7=_0x420cdf;warnRenamed(_0x3b1db8['GGUaI'],_0x3b1db8['eUQHL']),await _0x3b1db8['mQrwr'](withTelemetry,'feature\x20list',()=>featureList({'currentBranch':_0x8dd626[_0x1284e7(0x212)],'limit':_0x8dd626[_0x1284e7(0x2e0)],'offset':_0x8dd626[_0x1284e7(0x2b5)],'includeDeleted':_0x8dd626[_0x1284e7(0x2c1)]}));})[_0x420cdf(0x28f)](_0x3b1db8[_0x420cdf(0x1de)],![],_0x51cdc6=>{return _0x51cdc6['positional']('id',{'type':_0x28576e['agznK'],'description':_0x28576e['AfFHq']});},async _0xa9090d=>{const _0x3b899a=_0x420cdf;warnRenamed(_0x3b899a(0x31f),_0x28576e[_0x3b899a(0x30f)]),await withTelemetry(_0x28576e['EPLrk'],()=>featureShow(_0xa9090d['id']));})[_0x420cdf(0x28f)](_0x3b1db8[_0x420cdf(0x396)],![],_0x3f6250=>{const _0x5aafec=_0x420cdf;return _0x3f6250['positional']('id',{'type':'string','description':_0x28576e[_0x5aafec(0x2e9)]});},async _0x5132bd=>{warnRenamed('ranger\x20feature\x20resume','ranger\x20resume'),await withTelemetry('feature\x20resume',()=>featureResume(_0x5132bd['id']));})['command'](_0x420cdf(0x283),![],_0x338995=>{const _0x1ea614=_0x420cdf;return _0x338995['positional'](_0x28576e[_0x1ea614(0x249)],{'type':'string','description':'Scenario\x20description','demandOption':!![]})['option']('id',{'type':_0x1ea614(0x353),'description':_0x1ea614(0x366)});},async _0x15bd2a=>{const _0x13d034=_0x420cdf;warnRenamed('ranger\x20feature\x20add-checklist-item',_0x28576e['yLnUE']),await _0x28576e['UAfvG'](withTelemetry,_0x13d034(0x27b),()=>featureAddScenario(_0x15bd2a[_0x13d034(0x1d8)],_0x15bd2a['id']));})[_0x420cdf(0x28f)](_0x3b1db8[_0x420cdf(0x1e8)],![],_0x2be17c=>{const _0x1f85aa=_0x420cdf;return _0x2be17c[_0x1f85aa(0x2a1)]('id',{'type':_0x28576e['agznK'],'description':_0x28576e['qARBf']});},async _0x34fbe6=>{const _0x2990d0=_0x420cdf;_0x28576e['NGdRg'](warnRenamed,_0x28576e['UXueZ'],_0x2990d0(0x36e)),await withTelemetry(_0x28576e['gjpMm'],()=>featureGetReview(_0x34fbe6['id']));})['command'](_0x3b1db8[_0x420cdf(0x398)],![],_0x26db9b=>{const _0x394a31=_0x420cdf;return _0x26db9b[_0x394a31(0x2a1)]('id',{'type':'string','description':'Feature\x20review\x20ID'});},async _0x1f9e08=>{const _0x30a813=_0x420cdf;_0x28576e[_0x30a813(0x391)](warnRenamed,_0x28576e['sALVq'],_0x30a813(0x243)),await _0x28576e[_0x30a813(0x273)](withTelemetry,'feature\x20delete',()=>featureDelete(_0x1f9e08['id']));})['command']('restore\x20<id>',![],_0xb92221=>{const _0x50951b=_0x420cdf;return _0xb92221['positional']('id',{'type':_0x50951b(0x353),'description':_0x28576e['KPIaW'],'demandOption':!![]});},async _0x3d0abf=>{const _0x5c6222=_0x420cdf;_0x28576e[_0x5c6222(0x26b)](warnRenamed,'ranger\x20feature\x20restore','ranger\x20restore'),await _0x28576e[_0x5c6222(0x229)](withTelemetry,_0x28576e['DTaxo'],()=>featureRestore(_0x3d0abf['id']));})['demandCommand'](0x1,_0x3b1db8['qAzUE']);})['command']('hook',![],_0xae49be=>{const _0x25d5df=_0x11575b,_0x5b328b={'xUtYv':_0x25d5df(0x337),'zkvFE':_0x25d5df(0x294)};return _0xae49be['command'](_0x3b1db8[_0x25d5df(0x350)],'Enable\x20Ranger\x20hooks\x20for\x20this\x20session',_0x5e66de=>{const _0x24ac83=_0x25d5df;return _0x5e66de['option'](_0x5b328b[_0x24ac83(0x2b3)],{'type':_0x24ac83(0x353),'description':_0x5b328b['zkvFE']});},async _0x4f8fe3=>{const _0xa7ca20=_0x25d5df;await withTelemetry('hook:enable',()=>hook(_0xa7ca20(0x2d9),_0x4f8fe3['session-id']));})[_0x25d5df(0x28f)](_0x25d5df(0x38b),_0x3b1db8[_0x25d5df(0x1fd)],_0x4914cf=>{const _0x214bd0=_0x25d5df;return _0x4914cf['option'](_0x5b328b['xUtYv'],{'type':_0x214bd0(0x353),'description':_0x5b328b['zkvFE']});},async _0x3b4d36=>{const _0x4b1fab=_0x25d5df;await _0x3b1db8[_0x4b1fab(0x341)](withTelemetry,_0x3b1db8[_0x4b1fab(0x238)],()=>hook('disable',_0x3b4d36['session-id']));})['option']('name',{'type':'string','description':_0x3b1db8['ksXbH']})[_0x25d5df(0x2a2)](_0x25d5df(0x337),{'type':_0x25d5df(0x353),'description':_0x3b1db8[_0x25d5df(0x2f8)]});},async _0x42b3e5=>{const _0xab68ab=_0x11575b;_0x42b3e5[_0xab68ab(0x256)]&&await _0x3b1db8[_0xab68ab(0x334)](hook,_0x42b3e5['name'],_0x42b3e5[_0xab68ab(0x337)]);})[_0x11575b(0x21a)](0x1,_0x3b1db8[_0x11575b(0x344)])[_0x11575b(0x23c)]()[_0x11575b(0x352)](async(_0x2db0ea,_0x558194,_0x49a4f1)=>{const _0x5e9a2a=_0x11575b,_0x20b661=_0x3b1db8[_0x5e9a2a(0x267)](sanitizeArgs,process[_0x5e9a2a(0x371)][_0x5e9a2a(0x2ec)](0x2)),_0x185144=_0x3b1db8['acFEt'](getErrorType,_0x2db0ea,_0x558194);if(_0x2db0ea&&_0x2db0ea['includes']('Unknown\x20command')){const _0x5edd63=process['argv'][0x2];console['error'](_0x5e9a2a(0x307)+_0x5edd63),console['error'](_0x5e9a2a(0x234));}else{if(_0x2db0ea)console[_0x5e9a2a(0x2c8)]('\x0a'+_0x2db0ea+'\x0a');else _0x558194&&console[_0x5e9a2a(0x2c8)](_0x5e9a2a(0x332)+_0x558194['message']+'\x0a');}await _0x3b1db8[_0x5e9a2a(0x267)](logDesirePath,{'rawCommand':_0x20b661,'errorMessage':_0x2db0ea||_0x558194?.[_0x5e9a2a(0x38d)],'errorType':_0x185144});const _0x436784=_0x3b1db8[_0x5e9a2a(0x21f)](getCurrentCollector);_0x436784&&await _0x436784[_0x5e9a2a(0x217)](_0x558194||new Error(_0x2db0ea||'Unknown\x20error')),process['exit'](0x1);})[_0x11575b(0x292)](_0x3b1db8[_0x11575b(0x215)](_0x3b1db8[_0x11575b(0x215)](_0x11575b(0x2c0),_0x3b1db8['WSDAZ']),_0x3b1db8['VQvyf']))['help']()['alias'](_0x3b1db8[_0x11575b(0x379)],'h');}process['env'][_0x26ed22(0x348)]!=='test'&&(shouldShowLegacyWarning(process['argv'])&&showLegacyDeprecationWarning(),buildParser()['parse']());
|
package/build/commands/addEnv.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x71a7d,_0x51ddf7){const _0xbf4ef3=_0x4d42,_0x35c9b5=_0x71a7d();while(!![]){try{const _0x415b6f=-parseInt(_0xbf4ef3(0x1f0))/0x1*(-parseInt(_0xbf4ef3(0x215))/0x2)+parseInt(_0xbf4ef3(0x217))/0x3*(parseInt(_0xbf4ef3(0x20c))/0x4)+parseInt(_0xbf4ef3(0x1ca))/0x5+-parseInt(_0xbf4ef3(0x224))/0x6*(-parseInt(_0xbf4ef3(0x1d0))/0x7)+-parseInt(_0xbf4ef3(0x1d4))/0x8+parseInt(_0xbf4ef3(0x1c5))/0x9+-parseInt(_0xbf4ef3(0x1e0))/0xa*(parseInt(_0xbf4ef3(0x214))/0xb);if(_0x415b6f===_0x51ddf7)break;else _0x35c9b5['push'](_0x35c9b5['shift']());}catch(_0x3f90ea){_0x35c9b5['push'](_0x35c9b5['shift']());}}}(_0x77c4,0x81a97));import{mkdir,writeFile,readFile,readdir,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import _0xd634aa from'inquirer';function _0x77c4(){const _0x112e82=['\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.','error','join','setupHeader','continue','✓\x20Cloud\x20profile\x20\x27','confirm','\x20\x20Note:\x20found\x20git-tracked\x20local\x20profile\x20at\x20','TNvlG','user','config_write','TiGif','UAjKt','isTTY','local','trackPhaseEnd','user_declined','--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','buxHt','prompt','--ci\x20and\x20--cdp-endpoint\x20cannot\x20be\x20used\x20together.\x20Electron/CDP\x20profiles\x20only\x20work\x20with\x20a\x20locally\x20running\x20app\x20and\x20are\x20not\x20supported\x20in\x20CI.','safeMode','now','\x0a🌐\x20Profile\x20Setup\x0a','NDVNw','✓\x20Created\x20settings:\x20','⚠\x20Could\x20not\x20reach\x20','--allow-insecure-localhost','keys','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.','✓\x20Auth\x20state\x20saved\x20to:\x20','includes','\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20','vGwDp','You\x20can\x20try\x20again\x20with\x20one\x20of:','\x0a⚠️\x20\x20Profile\x20\x22','cdpEndpoint','8520696TNxBEn','test','gyQWf','XFtIs','yqOeN','3290645uAhnXx','GXDLa','ZxVKu','What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','esfCr','assign','1778ZXdAgQ','.backup-','http://','eMTUq','1056168bmmJhJ','BDDzI','.tmp-','SmQfT','Continue\x20anyway','location','--disable-features=WebBluetooth','saveToCloud','push','environments','Could\x20not\x20reach\x20','retry','31430AFwVrO','gnmKe','Profile\x20\x22','once','\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','skipAuth','IulGl','XVeFk','FMzoA','OqiHq','SIGINT','http://localhost:3000','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','setupHeaders','Invalid\x20URL','newContext','81NDCoxW','--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','log','\x0a\x20\x20(domains:\x20','PtlZz','Use\x20','LCJTi','qhWNv','MaxPE','\x20—\x20not\x20removing.\x20Delete\x20manually\x20if\x20you\x20want\x20it\x20gone.','path','url_setup','allowInsecureLocalhost','WvKDV','yes','TBhxF','slice','overwrite','close','about:blank','settings.json','auVxs','\x22\x20already\x20exists.\x20Choose\x20a\x20different\x20name\x20or\x20delete\x20the\x20existing\x20profile\x20first.','✓\x20Encrypted\x20auth\x20saved\x20to:\x20','domains','BYCrK','\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a','\x0a📋\x20Authentication\x20Setup','1220IWStpa','no_auth_config','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','\x20would\x20shadow\x20the\x20existing\x20profile.','NODE_TLS_REJECT_UNAUTHORIZED','wMpRj','thGJK','url','8481HicmuT','13318WpdTpx','no_match','7323vNFnqv','.enc','\x20(continuing\x20with\x20--force)','catch','force','\x0aThe\x20browser\x20closed\x20unexpectedly\x20before\x20authentication\x20could\x20be\x20saved.','message','ACBhS','utf-8','WaDZt','off','Delete\x20existing\x20and\x20create\x20new\x20in\x20','scope','4668FfAHNQ','deQpN','storageState','name','bTPAm','VCYVW','root\x20(.ranger/)','IqIFY','Saving\x20authentication\x20state...','No\x20auth\x20env\x20matches\x20this\x20URL.\x20Creating\x20local\x20profile.','length','\x20--skip-auth\x20\x20\x20\x20(skip\x20browser\x20auth\x20entirely)\x0a','kNyGg','fetch\x20failed','ONwAR','HTitM','isProtocolError','stdin'];_0x77c4=function(){return _0x112e82;};return _0x77c4();}import{chromium}from'playwright';import{findExistingEnv,loadSettings}from'./utils/settings.js';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getRangerDir,getRangerHomeDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';function _0x4d42(_0x2837d2,_0x4ed4fe){_0x2837d2=_0x2837d2-0x1b3;const _0x77c489=_0x77c4();let _0x4d424d=_0x77c489[_0x2837d2];return _0x4d424d;}import{fetchAuthConfig,createCloudProfile,ApiError}from'./utils/cloudProfile.js';import{matchAuthEnvironment}from'./utils/matchAuthEnvironment.js';import{isPathGitTracked}from'./utils/gitTracked.js';async function checkUrlReachability(_0x5e977b){const _0x4f66c2=_0x4d42,_0x2edecf={'FMzoA':function(_0x25911b,_0x475f55,_0x14ac0e){return _0x25911b(_0x475f55,_0x14ac0e);},'SmQfT':function(_0x102637,_0x45e0e3){return _0x102637<_0x45e0e3;},'thGJK':function(_0xd52908,_0x4d65da){return _0xd52908===_0x4d65da;},'WvKDV':'TypeError','eMTUq':_0x4f66c2(0x231)};try{const _0x3b6719=new AbortController(),_0x2e3eea=_0x2edecf[_0x4f66c2(0x1e8)](setTimeout,()=>_0x3b6719['abort'](),0x1388),_0x5614d4={'method':'HEAD','signal':_0x3b6719['signal'],'redirect':'manual'};/^https:\/\/localhost(:\d+)?/i[_0x4f66c2(0x1c6)](_0x5e977b)&&(process['env'][_0x4f66c2(0x210)]='0');const _0x2e7a8a=await fetch(_0x5e977b,_0x5614d4);delete process['env']['NODE_TLS_REJECT_UNAUTHORIZED'],clearTimeout(_0x2e3eea);if(_0x2edecf[_0x4f66c2(0x1d7)](_0x2e7a8a['status'],0x190))return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x2e7a8a['status']};}catch(_0x263a6){delete process['env']['NODE_TLS_REJECT_UNAUTHORIZED'];const _0x30dfb0=_0x263a6,_0x291d35=_0x30dfb0['message']||String(_0x263a6),_0x2b074c=_0x291d35[_0x4f66c2(0x1bf)](_0x4f66c2(0x1ee))||_0x2edecf[_0x4f66c2(0x212)](_0x30dfb0[_0x4f66c2(0x227)],_0x2edecf[_0x4f66c2(0x1fd)])||_0x291d35[_0x4f66c2(0x1bf)](_0x2edecf[_0x4f66c2(0x1d3)]);return{'ok':![],'error':_0x291d35,'isProtocolError':_0x2b074c};}}async function sweepOrphanLocalProfile(_0x314286,_0x3db909,_0x596488){const _0x1206b5=_0x4d42,_0x5c5fa7={'IulGl':function(_0x31e698,_0x15fbca,_0x40c1bf){return _0x31e698(_0x15fbca,_0x40c1bf);},'XFtIs':function(_0xc14f,_0x16bbc5){return _0xc14f(_0x16bbc5);},'HTitM':function(_0x469efd,_0x232159){return _0x469efd(_0x232159);}},_0x1fc32c=_0x5c5fa7[_0x1206b5(0x1e6)](join,_0x3db909,_0x1206b5(0x244)),_0x226018=join(_0x1fc32c,_0x314286);_0x5c5fa7[_0x1206b5(0x1c8)](existsSync,_0x226018)&&(_0x596488&&await _0x5c5fa7['HTitM'](isPathGitTracked,_0x226018)?console[_0x1206b5(0x1f2)](_0x1206b5(0x23d)+_0x226018+_0x1206b5(0x1f9)):(await rm(_0x226018,{'recursive':!![],'force':!![]}),console['log'](_0x1206b5(0x1c0)+_0x226018)));if(_0x5c5fa7[_0x1206b5(0x233)](existsSync,_0x1fc32c)){let _0x4505cc=[];try{_0x4505cc=await _0x5c5fa7['HTitM'](readdir,_0x1fc32c);}catch{return;}const _0x8e688f=_0x1206b5(0x1d6)+_0x314286+'-';for(const _0x273e3f of _0x4505cc){if(!_0x273e3f['startsWith'](_0x8e688f))continue;const _0x1fcb8d=join(_0x1fc32c,_0x273e3f);await rm(_0x1fcb8d,{'recursive':!![],'force':!![]}),console[_0x1206b5(0x1f2)](_0x1206b5(0x1c0)+_0x1fcb8d);}}}async function tryAutoRouteCloudProfile(_0xd1a878,_0x1012db,_0x4ad738,_0x26a082,_0x437a93){const _0xa04fb4=_0x4d42,_0x19a956={'tgUvy':function(_0x201e1f,_0x124510){return _0x201e1f===_0x124510;},'buxHt':_0xa04fb4(0x20d),'YNeQR':function(_0x5c1209,_0x5054e3,_0xf6733e){return _0x5c1209(_0x5054e3,_0xf6733e);},'esfCr':'profile.add.autoRouteSkipped','XLGiV':_0xa04fb4(0x216),'ITXPy':_0xa04fb4(0x1db),'ACBhS':_0xa04fb4(0x246),'PtlZz':function(_0xfbe4e6,_0x12bfe2){return _0xfbe4e6 instanceof _0x12bfe2;},'DytKt':function(_0x5efad0,_0x4628ec){return _0x5efad0===_0x4628ec;},'UAjKt':function(_0x5a52c7,_0x4dde22){return _0x5a52c7+_0x4dde22;},'deQpN':function(_0x19cad1,_0x3fae21){return _0x19cad1!==_0x3fae21;},'PCFmC':function(_0x4ced9b){return _0x4ced9b();},'hMruD':function(_0x1478ae,_0x15e22f,_0x39f9b8,_0x119b78){return _0x1478ae(_0x15e22f,_0x39f9b8,_0x119b78);},'dMZzk':function(_0xfa2165,_0x4a81e1){return _0xfa2165 instanceof _0x4a81e1;}};let _0x495d9c;try{_0x495d9c=await fetchAuthConfig();}catch{return _0x437a93?.['trackPhaseEnd']('profile.add.autoRouteSkipped',{'reason':'no_auth_config','profileName':_0xd1a878}),![];}if(!_0x495d9c||!_0x495d9c[_0xa04fb4(0x1dd)]||Object['keys'](_0x495d9c[_0xa04fb4(0x1dd)])[_0xa04fb4(0x22e)]===0x0)return _0x437a93?.[_0xa04fb4(0x245)]('profile.add.autoRouteSkipped',{'reason':_0x19a956[_0xa04fb4(0x248)],'profileName':_0xd1a878}),![];const _0x46993d=_0x19a956['YNeQR'](matchAuthEnvironment,_0x1012db,_0x495d9c);if(!_0x46993d)return console['log'](_0xa04fb4(0x22d)),_0x437a93?.[_0xa04fb4(0x245)](_0x19a956[_0xa04fb4(0x1ce)],{'reason':_0x19a956['XLGiV'],'profileName':_0xd1a878}),![];const _0xe20c3e=_0x495d9c['environments'][_0x46993d],_0x346cf7=_0xe20c3e?.[_0xa04fb4(0x208)]??[];if(_0x26a082&&!_0x4ad738[_0xa04fb4(0x1fe)]){const {saveToCloud:_0x543245}=await _0xd634aa['prompt']([{'type':_0xa04fb4(0x23c),'name':_0x19a956['ITXPy'],'message':'Found\x20auth\x20environment\x20\x27'+_0x46993d+'\x27\x20matching\x20'+_0x1012db+_0xa04fb4(0x1f3)+_0x346cf7[_0xa04fb4(0x238)](',\x20')+')\x0a\x20\x20Save\x20\x27'+_0xd1a878+'\x27\x20to\x20the\x20cloud?','default':!![]}]);if(!_0x543245)return _0x437a93?.['trackPhaseEnd']('profile.add.autoRouteSkipped',{'reason':_0x19a956[_0xa04fb4(0x21e)],'profileName':_0xd1a878}),![];}const _0x5cd20c=_0x346cf7['some'](_0x459fb9=>{try{return _0x19a956['tgUvy'](new URL(_0x459fb9)['origin'],new URL(_0x1012db)['origin']);}catch{return![];}}),_0x3e7168={};!_0x5cd20c&&(_0x3e7168['baseUrl']=_0x1012db);try{await createCloudProfile(_0xd1a878,_0x46993d,_0x3e7168);}catch(_0x309ad6){if(_0x19a956['PtlZz'](_0x309ad6,ApiError)&&_0x19a956['DytKt'](_0x309ad6['status'],0x199)){console['error']('\x0a\x20\x20A\x20cloud\x20profile\x20named\x20\x22'+_0xd1a878+_0xa04fb4(0x206));throw _0x309ad6;}return console[_0xa04fb4(0x1f2)]('\x20\x20Could\x20not\x20reach\x20Ranger\x20API\x20to\x20create\x20a\x20cloud\x20profile\x20('+(_0x19a956[_0xa04fb4(0x1f4)](_0x309ad6,Error)?_0x309ad6['message']:String(_0x309ad6))+').\x20Falling\x20back\x20to\x20local\x20profile.'),_0x437a93?.['trackPhaseEnd']('profile.add.autoRouteSkipped',{'reason':'no_auth_config','profileName':_0xd1a878}),![];}console['log'](_0x19a956[_0xa04fb4(0x242)](_0xa04fb4(0x23b)+_0xd1a878+'\x27\x20created,\x20linked\x20to\x20env\x20\x27'+_0x46993d+'\x27.\x0a','\x20\x20Next:\x20RANGER_TEST_USERNAME=...\x20RANGER_TEST_PASSWORD=...\x20ranger\x20go\x20--profile\x20'+_0xd1a878));try{await sweepOrphanLocalProfile(_0xd1a878,getRangerHomeDir(),![]);const _0x2c3aa3=getRangerDir();_0x19a956[_0xa04fb4(0x225)](_0x2c3aa3,_0x19a956['PCFmC'](getRangerHomeDir))&&await _0x19a956['hMruD'](sweepOrphanLocalProfile,_0xd1a878,_0x2c3aa3,!![]);}catch(_0x210774){console['log']('\x20\x20Note:\x20cloud\x20profile\x20created,\x20but\x20failed\x20to\x20sweep\x20orphan\x20local\x20dirs\x20('+(_0x19a956['dMZzk'](_0x210774,Error)?_0x210774[_0xa04fb4(0x21d)]:String(_0x210774))+').');}return _0x437a93?.['trackPhaseEnd']('profile.add.autoRouted',{'envKey':_0x46993d,'profileName':_0xd1a878}),!![];}export async function addEnv(_0x2241b0,_0x4c4c35={},_0x5bd2d2){const _0x3ae18f=_0x4d42,_0x3dde0e={'OmtiU':_0x3ae18f(0x22c),'WaDZt':function(_0xb15e62){return _0xb15e62();},'kbVSr':_0x3ae18f(0x23f),'DetlJ':function(_0x548722,_0xe9245a){return _0x548722===_0xe9245a;},'siGic':function(_0xfdc23,_0x39c0f4){return _0xfdc23+_0x39c0f4;},'yqOeN':function(_0x256601,_0x3a7420){return _0x256601!==_0x3a7420;},'xFBjW':_0x3ae18f(0x247),'XVeFk':_0x3ae18f(0x1b3),'ZxVKu':_0x3ae18f(0x1ec),'UVxjt':function(_0x395efd,_0x1762bd,_0x38dd51,_0xaf74f0,_0x3fd147,_0x1ace40){return _0x395efd(_0x1762bd,_0x38dd51,_0xaf74f0,_0x3fd147,_0x1ace40);},'gyQWf':function(_0x144af7,_0x3b879e,_0x1be555){return _0x144af7(_0x3b879e,_0x1be555);},'urqjf':_0x3ae18f(0x23c),'TBhxF':_0x3ae18f(0x201),'kNyGg':'legacy','VCYVW':_0x3ae18f(0x22a),'JfBfr':'Aborted.','BYCrK':_0x3ae18f(0x1fb),'ONwAR':_0x3ae18f(0x1e4),'OqiHq':'\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a','ghJes':'input','yYjoL':'Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','ZGKRl':function(_0x47a93d,_0x172298){return _0x47a93d||_0x172298;},'EeLCP':_0x3ae18f(0x1eb),'gnmKe':function(_0x1e94cb,_0xc86a0d){return _0x1e94cb(_0xc86a0d);},'pvAPR':_0x3ae18f(0x1df),'TiGif':function(_0x2f6c5c,_0x404ac9){return _0x2f6c5c===_0x404ac9;},'yNJlS':function(_0x4db60d,_0x5130f7,_0xfb8fd8){return _0x4db60d(_0x5130f7,_0xfb8fd8);},'qhWNv':_0x3ae18f(0x20b),'sGajP':'\x0a\x20\x20\x20⚠\x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.','TNvlG':_0x3ae18f(0x1da),'auVxs':_0x3ae18f(0x1ba),'bTPAm':function(_0x4550fd,_0x1b9567){return _0x4550fd>_0x1b9567;},'GJIYf':_0x3ae18f(0x203),'LCJTi':_0x3ae18f(0x21c),'vGwDp':'Browser\x20closed\x20before\x20authentication\x20was\x20saved.','GXDLa':function(_0x4b9a6a,_0x241f79,_0x137082){return _0x4b9a6a(_0x241f79,_0x137082);},'yfAws':_0x3ae18f(0x1bd),'xDUSE':_0x3ae18f(0x218),'XqPPb':'\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','wMpRj':'browser_auth','NDVNw':'settings.json','IqIFY':'Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','MaxPE':_0x3ae18f(0x240),'BDDzI':'SIGINT'},_0x40070e=_0x4c4c35['ci']??![],_0x22904a=_0x40070e?'ci':'local',_0x36d69a=_0x4c4c35[_0x3ae18f(0x223)]===_0x3dde0e['kbVSr']?_0x3dde0e[_0x3ae18f(0x220)](getRangerHomeDir):_0x3dde0e['WaDZt'](getRangerDir),_0x558205=join(_0x36d69a,_0x22904a,_0x2241b0),_0xbd216e={};if(_0x4c4c35[_0x3ae18f(0x239)])for(const _0x8af290 of _0x4c4c35[_0x3ae18f(0x239)]){const _0x3b038d=_0x8af290['indexOf'](':');if(_0x3dde0e['DetlJ'](_0x3b038d,-0x1))throw new Error('Invalid\x20--setup-header\x20format:\x20\x22'+_0x8af290+'\x22.\x20Expected\x20\x22Name:\x20Value\x22.');const _0x30cc98=_0x8af290[_0x3ae18f(0x200)](0x0,_0x3b038d)['trim'](),_0x1ac070=_0x8af290[_0x3ae18f(0x200)](_0x3dde0e['siGic'](_0x3b038d,0x1))['trim']();_0xbd216e[_0x30cc98]=_0x1ac070;}const _0xf0936c=join(_0x36d69a,_0x22904a);if(_0x3dde0e[_0x3ae18f(0x1c9)](_0x4c4c35['cdpEndpoint'],undefined)&&_0x4c4c35['cdpEndpoint']['trim']()==='')throw new Error(_0x3ae18f(0x1f1));if(_0x4c4c35[_0x3ae18f(0x1c4)]&&_0x4c4c35['url'])throw new Error(_0x3dde0e['xFBjW']);if(_0x4c4c35['cdpEndpoint']&&_0x4c4c35['ci'])throw new Error(_0x3dde0e[_0x3ae18f(0x1e7)]);const _0x36f5e2=Boolean(_0x4c4c35['cdpEndpoint']),_0x39d9d5=!_0x4c4c35['skipAuth']&&!_0x36f5e2,_0xdb64d0=process[_0x3ae18f(0x235)]['isTTY']&&process['stdout'][_0x3ae18f(0x243)];if(!_0xdb64d0&&!_0x4c4c35[_0x3ae18f(0x213)]&&!_0x36f5e2)throw new Error(_0x3dde0e[_0x3ae18f(0x1cc)]);if(!_0x40070e&&!_0x4c4c35[_0x3ae18f(0x1e5)]&&!_0x36f5e2&&_0x4c4c35['url']){const _0x1bc0e3=await _0x3dde0e['UVxjt'](tryAutoRouteCloudProfile,_0x2241b0,_0x4c4c35[_0x3ae18f(0x213)],_0x4c4c35,_0xdb64d0,_0x5bd2d2);if(_0x1bc0e3)return;}const _0x50a274=_0x3dde0e[_0x3ae18f(0x1c7)](findExistingEnv,_0x2241b0,{'rangerDir':_0x36d69a});let _0x456671=null;if(_0x50a274){if(!_0xdb64d0)_0x456671=_0x50a274;else{if(_0x50a274['location']===_0x22904a){const {overwrite:_0x751b77}=await _0xd634aa['prompt']([{'type':_0x3dde0e['urqjf'],'name':_0x3dde0e[_0x3ae18f(0x1ff)],'message':_0x3ae18f(0x1e2)+_0x2241b0+'\x22\x20already\x20exists.\x20Overwrite?','default':![]}]);if(!_0x751b77){console['log']('Aborted.');return;}_0x456671=_0x50a274;}else{const _0x5b3898=_0x50a274['location']===_0x3dde0e[_0x3ae18f(0x230)]?_0x3dde0e[_0x3ae18f(0x229)]:_0x50a274['location'];console[_0x3ae18f(0x237)](_0x3ae18f(0x1c3)+_0x2241b0+'\x22\x20already\x20exists\x20in\x20'+_0x5b3898+':\x20'+_0x50a274['path']),console[_0x3ae18f(0x237)]('\x20\x20\x20Creating\x20it\x20in\x20'+_0x22904a+_0x3ae18f(0x20f));const {shouldReplace:_0x304b9e}=await _0xd634aa[_0x3ae18f(0x249)]([{'type':_0x3ae18f(0x23c),'name':'shouldReplace','message':_0x3ae18f(0x222)+_0x22904a+'?','default':![]}]);if(!_0x304b9e){console['log'](_0x3dde0e['JfBfr']);return;}_0x456671=_0x50a274;}}}_0x5bd2d2?.['trackPhaseStart'](_0x3dde0e[_0x3ae18f(0x209)]);let _0x5487ae='';if(_0x36f5e2)console['log'](_0x3dde0e[_0x3ae18f(0x232)]),console['log'](_0x3ae18f(0x1bc)+_0x4c4c35[_0x3ae18f(0x1c4)]),console[_0x3ae18f(0x1f2)](_0x3dde0e[_0x3ae18f(0x1e9)]);else{if(_0x4c4c35[_0x3ae18f(0x213)]){_0x5487ae=_0x4c4c35['url'];const _0x46aa2c=await checkUrlReachability(_0x5487ae);if(!_0x46aa2c['ok']&&!_0x4c4c35[_0x3ae18f(0x21b)])throw new Error(_0x3ae18f(0x1de)+_0x5487ae+':\x20'+_0x46aa2c['error']+_0x3ae18f(0x20e));!_0x46aa2c['ok']&&_0x4c4c35['force']&&console['log'](_0x3ae18f(0x1b9)+_0x5487ae+':\x20'+_0x46aa2c[_0x3ae18f(0x237)]+_0x3ae18f(0x219));}else{console[_0x3ae18f(0x1f2)](_0x3ae18f(0x1b6)),console[_0x3ae18f(0x1f2)]('\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.'),console[_0x3ae18f(0x1f2)](_0x3ae18f(0x20a));let _0x50ea6c=![];while(!![]){const _0x553338=await _0xd634aa[_0x3ae18f(0x249)]([{'type':_0x3dde0e['ghJes'],'name':'baseUrl','message':_0x50ea6c?_0x3dde0e['yYjoL']:_0x3ae18f(0x1cd),'default':_0x3dde0e['ZGKRl'](_0x5487ae,_0x3dde0e['EeLCP'])}]);_0x5487ae=_0x553338['baseUrl'];const _0x42866c=await _0x3dde0e['gnmKe'](checkUrlReachability,_0x5487ae);if(_0x42866c['ok'])break;const _0x5caba9=/^[a-zA-Z][\w+.-]*:\/\//[_0x3ae18f(0x1c6)](_0x5487ae),_0x1cd9c5=_0x42866c[_0x3ae18f(0x234)]&&!_0x5caba9,_0x541e28=_0x1cd9c5?_0x3ae18f(0x1d2)+_0x5487ae:null;_0x50ea6c=!![],console['log']('\x0a\x20\x20Could\x20not\x20reach\x20'+_0x5487ae+':\x20'+_0x42866c[_0x3ae18f(0x237)]);_0x541e28&&console[_0x3ae18f(0x1f2)]('\x20\x20Did\x20you\x20mean\x20'+_0x541e28+'?');const {action:_0x2fe68b}=await _0xd634aa['prompt']([{'type':'list','name':'action','message':'What\x20would\x20you\x20like\x20to\x20do?','choices':[..._0x541e28?[{'name':_0x3ae18f(0x1f5)+_0x541e28,'value':'use_suggestion'}]:[],{'name':'Enter\x20a\x20different\x20URL','value':_0x3dde0e['pvAPR']},{'name':_0x3ae18f(0x1d8),'value':_0x3ae18f(0x23a)}]}]);if(_0x2fe68b==='use_suggestion'&&_0x541e28){_0x5487ae=_0x541e28;const _0x311dc9=await _0x3dde0e[_0x3ae18f(0x1e1)](checkUrlReachability,_0x5487ae);if(_0x311dc9['ok'])break;console['log']('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0x5487ae+':\x20'+_0x311dc9[_0x3ae18f(0x237)]);}else{if(_0x3dde0e[_0x3ae18f(0x241)](_0x2fe68b,_0x3ae18f(0x23a)))break;}}}}_0x5bd2d2?.['trackPhaseEnd'](_0x3ae18f(0x1fb));const _0x290fec={};if(_0x456671){const _0x45f1f1=await loadSettings(_0x2241b0);Object['assign'](_0x290fec,_0x45f1f1['setupHeaders']);}Object[_0x3ae18f(0x1cf)](_0x290fec,_0xbd216e),await _0x3dde0e['gyQWf'](mkdir,_0xf0936c,{'recursive':!![]});try{const _0x49252e=await _0x3dde0e[_0x3ae18f(0x1e1)](readdir,_0xf0936c),_0x19fbdb='.tmp-'+_0x2241b0+'-';for(const _0x4c1e1f of _0x49252e){_0x4c1e1f['startsWith'](_0x19fbdb)&&await _0x3dde0e['gyQWf'](rm,join(_0xf0936c,_0x4c1e1f),{'recursive':!![],'force':!![]});}}catch{}const _0x10da60=await _0x3dde0e['gnmKe'](mkdtemp,_0x3dde0e['yNJlS'](join,_0xf0936c,_0x3ae18f(0x1d6)+_0x2241b0+'-')),_0x28e91e=join(_0x10da60,'auth.json'),_0x4d911e=()=>{const _0x2ece48=_0x3ae18f;rm(_0x10da60,{'recursive':!![],'force':!![]})[_0x2ece48(0x21a)](()=>{})['finally'](()=>{process['exit'](0x82);});};process[_0x3ae18f(0x1e3)](_0x3ae18f(0x1ea),_0x4d911e);const _0x134664=_0x3dde0e[_0x3ae18f(0x1e1)](Boolean,_0x5487ae)&&/^https:\/\/localhost(:\d+)?/i[_0x3ae18f(0x1c6)](_0x5487ae);try{if(_0x39d9d5){_0x5bd2d2?.['trackPhaseStart']('browser_auth'),console[_0x3ae18f(0x1f2)](_0x3dde0e[_0x3ae18f(0x1f7)]),console[_0x3ae18f(0x1f2)]('\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.'),console['log'](_0x3ae18f(0x236));!_0xdb64d0?(console[_0x3ae18f(0x1f2)](_0x3dde0e['sGajP']),console[_0x3ae18f(0x1f2)]('\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a')):console['log']('');await new Promise(_0x3cf4cd=>setTimeout(_0x3cf4cd,0xbb8));const _0x898b17=[];_0x4c4c35['safeMode']&&_0x898b17[_0x3ae18f(0x1dc)](_0x3dde0e[_0x3ae18f(0x23e)]);const _0x196e51=_0x4c4c35['allowInsecureLocalhost']||_0x134664;_0x196e51&&_0x898b17['push'](_0x3dde0e[_0x3ae18f(0x205)]);const _0x4a6b95=await chromium['launch']({'headless':![],..._0x3dde0e['bTPAm'](_0x898b17['length'],0x0)?{'args':_0x898b17}:{}});try{const _0x375afb=_0x3dde0e[_0x3ae18f(0x228)](Object[_0x3ae18f(0x1bb)](_0x290fec)[_0x3ae18f(0x22e)],0x0),_0x4e54d0={'ignoreHTTPSErrors':!![]};_0x375afb&&(_0x4e54d0['extraHTTPHeaders']=_0x290fec);const _0xe7d785=await _0x4a6b95[_0x3ae18f(0x1ef)](_0x4e54d0);await addProfileSetupBanner(_0xe7d785);const _0x269ac4=await _0xe7d785['newPage']();await _0x269ac4['goto'](_0x5487ae||_0x3dde0e['GJIYf']);let _0x327738=![];await new Promise(_0x3a3816=>{const _0x6c67dd=_0x3ae18f;_0x269ac4['on'](_0x6c67dd(0x202),async()=>{const _0x5097a5=_0x6c67dd;try{console['log'](_0x3dde0e['OmtiU']),await _0xe7d785[_0x5097a5(0x226)]({'path':_0x28e91e}),_0x327738=!![];}catch{}_0x3dde0e[_0x5097a5(0x220)](_0x3a3816);});});if(!_0x327738){console['log'](_0x3dde0e[_0x3ae18f(0x1f6)]);!_0x4c4c35[_0x3ae18f(0x1b4)]&&(console['log']('This\x20can\x20happen\x20due\x20to\x20a\x20browser\x20compatibility\x20issue\x20on\x20some\x20systems.\x0a'),console[_0x3ae18f(0x1f2)](_0x3ae18f(0x1c2)),console['log']('\x20\x20ranger\x20profile\x20add\x20'+_0x2241b0+'\x20--safe-mode\x20\x20\x20\x20(disables\x20browser\x20features\x20that\x20can\x20cause\x20crashes)'),console[_0x3ae18f(0x1f2)]('\x20\x20ranger\x20profile\x20add\x20'+_0x2241b0+_0x3ae18f(0x22f)));throw new Error(_0x3dde0e[_0x3ae18f(0x1c1)]);}}finally{await _0x4a6b95[_0x3ae18f(0x202)]()['catch'](()=>{});}if(_0x40070e){const _0x300250=await _0x3dde0e[_0x3ae18f(0x1cb)](readFile,_0x28e91e,_0x3ae18f(0x21f)),_0x5e1798=await _0x3dde0e['WaDZt'](getToken);if(!_0x5e1798){console[_0x3ae18f(0x237)]('\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]'),await unlink(_0x28e91e)[_0x3ae18f(0x21a)](()=>{});throw new Error(_0x3dde0e['yfAws']);}else{const _0x4c018c=_0x3dde0e[_0x3ae18f(0x1c7)](encrypt,_0x300250,_0x5e1798);await writeFile(_0x28e91e+_0x3dde0e['xDUSE'],_0x4c018c),await unlink(_0x28e91e),console[_0x3ae18f(0x1f2)](_0x3ae18f(0x207)+_0x28e91e+_0x3ae18f(0x218)),console['log']('\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.'),console[_0x3ae18f(0x1f2)](_0x3dde0e['XqPPb']);}}else console['log'](_0x3ae18f(0x1be)+_0x28e91e);_0x5bd2d2?.['trackPhaseEnd'](_0x3dde0e[_0x3ae18f(0x211)]);}_0x5bd2d2?.['trackPhaseStart'](_0x3ae18f(0x240));const _0x4e5777={};_0x5487ae&&(_0x4e5777['baseUrl']=_0x5487ae);_0x4c4c35['cdpEndpoint']&&(_0x4e5777['cdpEndpoint']=_0x4c4c35['cdpEndpoint'],_0x4e5777['isElectron']=!![]);(_0x4c4c35['allowInsecureLocalhost']||_0x134664)&&(_0x4e5777[_0x3ae18f(0x1fc)]=!![]);_0x4c4c35['safeMode']&&(_0x4e5777['safeMode']=!![]);_0x3dde0e[_0x3ae18f(0x228)](Object[_0x3ae18f(0x1bb)](_0x290fec)[_0x3ae18f(0x22e)],0x0)&&(_0x4e5777[_0x3ae18f(0x1ed)]=_0x290fec);await writeFile(_0x3dde0e['gyQWf'](join,_0x10da60,_0x3ae18f(0x204)),JSON['stringify'](_0x4e5777,null,0x2)),console['log'](_0x3ae18f(0x1b8)+join(_0x558205,_0x3dde0e[_0x3ae18f(0x1b7)]));if(_0x456671?.[_0x3ae18f(0x1d9)]===_0x22904a){const _0xfad95b=_0x456671['path']+_0x3ae18f(0x1d1)+Date[_0x3ae18f(0x1b5)]();await _0x3dde0e['yNJlS'](rename,_0x456671['path'],_0xfad95b);try{await _0x3dde0e['gyQWf'](rename,_0x10da60,_0x558205);}catch(_0x9de3fa){await rename(_0xfad95b,_0x456671['path']);throw _0x9de3fa;}try{await rm(_0xfad95b,{'recursive':!![]});}catch{console[_0x3ae18f(0x1f2)]('Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20'+_0xfad95b);}}else{await rename(_0x10da60,_0x558205);if(_0x456671)try{await rm(_0x456671['path'],{'recursive':!![]}),console['log']('Removed\x20existing\x20profile\x20at\x20'+_0x456671[_0x3ae18f(0x1fa)]);}catch{console[_0x3ae18f(0x1f2)]('Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20'+_0x456671['path']);}}try{await _0x3dde0e[_0x3ae18f(0x1e1)](writeActiveProfileName,_0x2241b0),console['log']('\x20\x20Set\x20active\x20profile:\x20'+_0x2241b0);}catch{console[_0x3ae18f(0x1f2)](_0x3dde0e[_0x3ae18f(0x22b)]);}_0x5bd2d2?.[_0x3ae18f(0x245)](_0x3dde0e[_0x3ae18f(0x1f8)]),console[_0x3ae18f(0x1f2)]('\x0a\x20\x20Profile\x20\x22'+_0x2241b0+'\x22\x20configured');}catch(_0x2693fc){await rm(_0x10da60,{'recursive':!![],'force':!![]});throw _0x2693fc;}finally{process[_0x3ae18f(0x221)](_0x3dde0e[_0x3ae18f(0x1d5)],_0x4d911e);}}
|
|
1
|
+
(function(_0x34bd36,_0x1607c2){const _0x380f96=_0x45f1,_0x4cd214=_0x34bd36();while(!![]){try{const _0x404193=-parseInt(_0x380f96(0x1ed))/0x1+-parseInt(_0x380f96(0x1eb))/0x2+-parseInt(_0x380f96(0x1ae))/0x3+parseInt(_0x380f96(0x1d8))/0x4+-parseInt(_0x380f96(0x1f5))/0x5*(-parseInt(_0x380f96(0x1b4))/0x6)+parseInt(_0x380f96(0x1b5))/0x7*(-parseInt(_0x380f96(0x1e2))/0x8)+parseInt(_0x380f96(0x1a3))/0x9*(parseInt(_0x380f96(0x1f2))/0xa);if(_0x404193===_0x1607c2)break;else _0x4cd214['push'](_0x4cd214['shift']());}catch(_0x2801d3){_0x4cd214['push'](_0x4cd214['shift']());}}}(_0x5b4d,0xb7f0a));import{readdir,rm}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import _0x52d1d1 from'inquirer';import{getRangerDir,getRangerHomeDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{fetchAuthConfig,createCloudProfile,ApiError}from'./utils/cloudProfile.js';import{matchAuthEnvironment}from'./utils/matchAuthEnvironment.js';function _0x5b4d(){const _0x263f3c=['keys','baseUrl','rjLhV','Invalid\x20--setup-header\x20format:\x20\x22','1169454weDMDr','qLLub','1037653RptqXu','yudco','What\x20would\x20you\x20like\x20to\x20do?','length','slice','1876720DGmrjX','list','env','5425sqTFIF','join','trim','\x0a\x20\x20Cloud\x20profile\x20created,\x20but\x20failed\x20to\x20write\x20per-cwd\x20CDP\x20override\x20to\x20projects.json:\x20','\x0a\x20\x20This\x20org\x20has\x20no\x20cloud-profile\x20auth\x20config\x20configured.\x20Ask\x20an\x20admin\x20to\x20set\x20one\x20up,\x20or\x20pass\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20session.','QlXjG','cdpEndpoint','includes','cggSY','trackPhaseEnd','Continue\x20anyway','ntmdD','mfcbW','.\x20Configured\x20envs:\x20','\x27\x20to\x20the\x20cloud?','\x20\x20Next:\x20RANGER_TEST_USERNAME=...\x20RANGER_TEST_PASSWORD=...\x20ranger\x20go\x20--profile\x20','Found\x20auth\x20environment\x20\x27','log','message','url','no_auth_config','test','72tRjjIp','environments','\x20\x20Did\x20you\x20mean\x20','NODE_TLS_REJECT_UNAUTHORIZED','\x20\x20Note:\x20found\x20git-tracked\x20local\x20profile\x20at\x20','KHEUT','HEAD','RnzgR','\x20—\x20not\x20removing.\x20Delete\x20manually\x20if\x20you\x20want\x20it\x20gone.','Invalid\x20URL','\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20','1280265CHGMCe','Use\x20','prompt','YZePV','profile.add.autoRouteSkipped','XMIvm','8160DuqumA','553VivaJO','BEfcN','jtppS','✓\x20Cloud\x20profile\x20\x27','umrFe','\x27\x20matching\x20','LjMNm','--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','sdrMw','continue','--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','\x27\x20created\x20with\x20no\x20session.\x0a','NJYbn','indexOf','HTTP\x20','SyWZD','error','ranger\x20profile\x20add\x20--ci\x20writes\x20to\x20the\x20legacy\x20.ranger/ci/\x20tree\x20which\x20is\x20no\x20longer\x20supported.\x0a','udwQP','See:\x20docs/feature/cloud-profiles-old-vs-new-structure.md','.tmp-','retry','CHpJs','isTTY','setupHeaders','\x0a\x20\x20No\x20auth\x20env\x20matches\x20','cwd','What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','\x20\x20\x20\x20\x20\x20\x20\x20to\x20materialize\x20a\x20session\x20via\x20server-side\x20login.','origin','PAQeI','\x0a\x20\x20Could\x20not\x20reach\x20','status','vRtOw','use_suggestion','3911484XElAqU','exit','FdbNy','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','force','iAiUY','saveToCloud','manual','stdin','no_match','116688cCcMXM','\x20\x20\x20\x20\x20\x20\x20\x20`ranger\x20go\x20--profile\x20','OVboi',')\x0a\x20\x20Save\x20\x27','stdout'];_0x5b4d=function(){return _0x263f3c;};return _0x5b4d();}import{isPathGitTracked}from'./utils/gitTracked.js';import{setProfileOverride}from'./utils/projectsConfig.js';async function checkUrlReachability(_0x20677a){const _0x30dffa=_0x45f1,_0x549f2f={'IYaxu':function(_0x26a658,_0x4bd78b,_0x5c24db){return _0x26a658(_0x4bd78b,_0x5c24db);},'lcMQI':function(_0x5fdd4f,_0x4a03fb){return _0x5fdd4f<_0x4a03fb;},'QlXjG':function(_0x513055,_0x242475){return _0x513055(_0x242475);},'jxnKP':function(_0x392dae,_0x11edc2){return _0x392dae===_0x11edc2;},'FdbNy':'TypeError','wmlPG':'fetch\x20failed'};try{const _0x5df856=new AbortController(),_0x369102=setTimeout(()=>_0x5df856['abort'](),0x1388),_0x30fc4b={'method':_0x30dffa(0x1a9),'signal':_0x5df856['signal'],'redirect':_0x30dffa(0x1df)};/^https:\/\/localhost(:\d+)?/i['test'](_0x20677a)&&(process['env'][_0x30dffa(0x1a6)]='0');const _0x18f16c=await _0x549f2f['IYaxu'](fetch,_0x20677a,_0x30fc4b);delete process[_0x30dffa(0x1f4)][_0x30dffa(0x1a6)],clearTimeout(_0x369102);if(_0x549f2f['lcMQI'](_0x18f16c['status'],0x190))return{'ok':!![]};return{'ok':![],'error':_0x30dffa(0x1c3)+_0x18f16c[_0x30dffa(0x1d5)]};}catch(_0x2fc65a){delete process['env'][_0x30dffa(0x1a6)];const _0x2a8907=_0x2fc65a,_0x4005f0=_0x2a8907['message']||_0x549f2f[_0x30dffa(0x192)](String,_0x2fc65a),_0x171725=_0x4005f0[_0x30dffa(0x194)](_0x30dffa(0x1ac))||_0x549f2f['jxnKP'](_0x2a8907['name'],_0x549f2f[_0x30dffa(0x1da)])||_0x4005f0[_0x30dffa(0x194)](_0x549f2f['wmlPG']);return{'ok':![],'error':_0x4005f0,'isProtocolError':_0x171725};}}function _0x45f1(_0x3026b8,_0x29a56a){_0x3026b8=_0x3026b8-0x190;const _0x5b4d8a=_0x5b4d();let _0x45f15e=_0x5b4d8a[_0x3026b8];return _0x45f15e;}async function sweepOrphanLocalProfile(_0x388f3a,_0x3f2196,_0x2e33bf){const _0x30d289=_0x45f1,_0x483b31={'KHEUT':'local','vRtOw':function(_0x5c9129,_0x1b79a7){return _0x5c9129(_0x1b79a7);},'MGqYi':function(_0x419c16,_0x411a73){return _0x419c16(_0x411a73);},'ukvVo':function(_0x48bed6,_0x47c6f9,_0x22470d){return _0x48bed6(_0x47c6f9,_0x22470d);}},_0x30cb36=join(_0x3f2196,_0x483b31[_0x30d289(0x1a8)]),_0x463681=join(_0x30cb36,_0x388f3a);existsSync(_0x463681)&&(_0x2e33bf&&await _0x483b31['vRtOw'](isPathGitTracked,_0x463681)?console['log'](_0x30d289(0x1a7)+_0x463681+_0x30d289(0x1ab)):(await rm(_0x463681,{'recursive':!![],'force':!![]}),console['log'](_0x30d289(0x1ad)+_0x463681)));if(_0x483b31['MGqYi'](existsSync,_0x30cb36)){let _0x2c1078=[];try{_0x2c1078=await _0x483b31[_0x30d289(0x1d6)](readdir,_0x30cb36);}catch{return;}const _0x4cba1c=_0x30d289(0x1c9)+_0x388f3a+'-';for(const _0x3ba938 of _0x2c1078){if(!_0x3ba938['startsWith'](_0x4cba1c))continue;const _0x3e43d7=_0x483b31['ukvVo'](join,_0x30cb36,_0x3ba938);await rm(_0x3e43d7,{'recursive':!![],'force':!![]}),console['log'](_0x30d289(0x1ad)+_0x3e43d7);}}}async function sweepOrphansBestEffort(_0x22f1da){const _0x5c8254=_0x45f1,_0x2191d3={'iXnUy':function(_0x53ac7e,_0x5c54bd,_0x2f7017,_0xe2df5f){return _0x53ac7e(_0x5c54bd,_0x2f7017,_0xe2df5f);},'NmPdt':function(_0x475f61){return _0x475f61();},'MmuYT':function(_0x102073){return _0x102073();},'qLLub':function(_0x1f214b,_0x2f9b9c){return _0x1f214b instanceof _0x2f9b9c;}};try{await _0x2191d3['iXnUy'](sweepOrphanLocalProfile,_0x22f1da,_0x2191d3['NmPdt'](getRangerHomeDir),![]);const _0x560fe1=_0x2191d3['NmPdt'](getRangerDir);_0x560fe1!==_0x2191d3['MmuYT'](getRangerHomeDir)&&await sweepOrphanLocalProfile(_0x22f1da,_0x560fe1,!![]);}catch(_0x26e04d){console['log']('\x20\x20Note:\x20cloud\x20profile\x20created,\x20but\x20failed\x20to\x20sweep\x20orphan\x20local\x20dirs\x20('+(_0x2191d3[_0x5c8254(0x1ec)](_0x26e04d,Error)?_0x26e04d[_0x5c8254(0x19f)]:String(_0x26e04d))+').');}}async function markActive(_0x4d86a9){const _0xe7d7df=_0x45f1;try{await writeActiveProfileName(_0x4d86a9),console['log']('\x20\x20Set\x20active\x20profile:\x20'+_0x4d86a9);}catch{console[_0xe7d7df(0x19e)]('Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.');}}async function tryAutoRouteCloudProfile(_0x103ca3,_0x3446af,_0x14b8a4,_0x9199d7,_0x4e0463){const _0x3d98bd=_0x45f1,_0x5d8057={'XMIvm':function(_0xa380af,_0x412a97){return _0xa380af===_0x412a97;},'udwQP':_0x3d98bd(0x1a1),'RnzgR':function(_0x3e14ee,_0x21c732){return _0x3e14ee instanceof _0x21c732;},'iAiUY':function(_0xab1332,_0x317abf){return _0xab1332(_0x317abf);},'sdrMw':_0x3d98bd(0x191),'eOZOn':function(_0x16c26a,_0x1c90a5,_0x146cc9){return _0x16c26a(_0x1c90a5,_0x146cc9);},'zqpUt':_0x3d98bd(0x1b2),'Tyaxi':'confirm','ZTeSp':'\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20cloud-managed\x20session.','yiIfI':function(_0x2a6310,_0x495081,_0xdd4771,_0x23030b){return _0x2a6310(_0x495081,_0xdd4771,_0x23030b);},'zlRtn':function(_0xd46053,_0x599924){return _0xd46053===_0x599924;},'etniu':function(_0x21e8bd,_0x52a36f){return _0x21e8bd+_0x52a36f;},'IpBaT':function(_0x14441a,_0xbff376){return _0x14441a(_0xbff376);},'WJQOh':'profile.add.autoRouted'};let _0xef8bb1;try{_0xef8bb1=await fetchAuthConfig();}catch(_0x590238){return _0x4e0463?.['trackPhaseEnd']('profile.add.autoRouteSkipped',{'reason':_0x5d8057['udwQP'],'profileName':_0x103ca3}),console['error']('\x0a\x20\x20Could\x20not\x20fetch\x20this\x20org\x27s\x20auth\x20config:\x20'+(_0x5d8057['RnzgR'](_0x590238,Error)?_0x590238[_0x3d98bd(0x19f)]:_0x5d8057[_0x3d98bd(0x1dd)](String,_0x590238))),![];}if(!_0xef8bb1||!_0xef8bb1[_0x3d98bd(0x1a4)]||Object['keys'](_0xef8bb1['environments'])[_0x3d98bd(0x1f0)]===0x0)return _0x4e0463?.['trackPhaseEnd'](_0x3d98bd(0x1b2),{'reason':_0x5d8057[_0x3d98bd(0x1c7)],'profileName':_0x103ca3}),console['error'](_0x5d8057[_0x3d98bd(0x1bd)]),![];const _0x23a9cc=_0x5d8057['eOZOn'](matchAuthEnvironment,_0x3446af,_0xef8bb1);if(!_0x23a9cc)return _0x4e0463?.['trackPhaseEnd'](_0x5d8057['zqpUt'],{'reason':_0x3d98bd(0x1e1),'profileName':_0x103ca3}),console[_0x3d98bd(0x1c5)](_0x3d98bd(0x1ce)+_0x3446af+_0x3d98bd(0x19a)+Object['keys'](_0xef8bb1[_0x3d98bd(0x1a4)])[_0x3d98bd(0x1f6)](',\x20')+'.'),![];const _0x3795a6=_0xef8bb1['environments'][_0x23a9cc],_0x13c650=_0x3795a6?.['domains']??[];if(_0x9199d7&&!_0x14b8a4['yes']){const {saveToCloud:_0x2cb35f}=await _0x52d1d1['prompt']([{'type':_0x5d8057['Tyaxi'],'name':_0x3d98bd(0x1de),'message':_0x3d98bd(0x19d)+_0x23a9cc+_0x3d98bd(0x1ba)+_0x3446af+'\x0a\x20\x20(domains:\x20'+_0x13c650[_0x3d98bd(0x1f6)](',\x20')+_0x3d98bd(0x1e5)+_0x103ca3+_0x3d98bd(0x19b),'default':!![]}]);if(!_0x2cb35f)return _0x4e0463?.[_0x3d98bd(0x196)](_0x3d98bd(0x1b2),{'reason':'user_declined','profileName':_0x103ca3}),console[_0x3d98bd(0x1c5)](_0x5d8057['ZTeSp']),![];}const _0x4fff3e=_0x13c650['some'](_0x3e59a0=>{const _0x38da62=_0x3d98bd;try{return _0x5d8057[_0x38da62(0x1b3)](new URL(_0x3e59a0)['origin'],new URL(_0x3446af)[_0x38da62(0x1d2)]);}catch{return![];}}),_0x28e09a={};!_0x4fff3e&&(_0x28e09a['baseUrl']=_0x3446af);try{await _0x5d8057['yiIfI'](createCloudProfile,_0x103ca3,_0x23a9cc,{'settings':_0x28e09a});}catch(_0x39953f){if(_0x5d8057[_0x3d98bd(0x1aa)](_0x39953f,ApiError)&&_0x5d8057['zlRtn'](_0x39953f['status'],0x199)){console['error']('\x0a\x20\x20A\x20cloud\x20profile\x20named\x20\x22'+_0x103ca3+'\x22\x20already\x20exists.\x20Choose\x20a\x20different\x20name\x20or\x20delete\x20the\x20existing\x20profile\x20first.');throw _0x39953f;}throw _0x39953f;}return console['log'](_0x5d8057['etniu']('✓\x20Cloud\x20profile\x20\x27'+_0x103ca3+'\x27\x20created,\x20linked\x20to\x20env\x20\x27'+_0x23a9cc+'\x27.\x0a',_0x3d98bd(0x19c)+_0x103ca3)),await _0x5d8057['IpBaT'](sweepOrphansBestEffort,_0x103ca3),_0x4e0463?.['trackPhaseEnd'](_0x5d8057['WJQOh'],{'envKey':_0x23a9cc,'profileName':_0x103ca3}),!![];}async function createUnconfiguredCloudProfile(_0x44548d,_0x4092ab){const _0x45fd45=_0x45f1,_0x55479c={'yVjux':function(_0x3d9d9c,_0x9e3281){return _0x3d9d9c instanceof _0x9e3281;}};try{await createCloudProfile(_0x44548d,undefined,{'settings':_0x4092ab});}catch(_0x3c5964){_0x55479c['yVjux'](_0x3c5964,ApiError)&&_0x3c5964[_0x45fd45(0x1d5)]===0x199&&console['error']('\x0a\x20\x20A\x20cloud\x20profile\x20named\x20\x22'+_0x44548d+'\x22\x20already\x20exists.\x20Choose\x20a\x20different\x20name\x20or\x20delete\x20the\x20existing\x20profile\x20first.');throw _0x3c5964;}}export async function addEnv(_0x4366ba,_0x1f160d={},_0x1e729b){const _0x2f243c=_0x45f1,_0x1ff968={'PAQeI':function(_0x497ef3,_0x223f90){return _0x497ef3+_0x223f90;},'WGdbf':_0x2f243c(0x1c6),'YZePV':'Cloud\x20profiles\x20store\x20session\x20state\x20server-side;\x20the\x20--ci\x20flag\x20is\x20gone.\x0a','esoWM':'\x20\x20RANGER_TEST_USERNAME=...\x20RANGER_TEST_PASSWORD=...\x20ranger\x20go\x20--base-url\x20<url>\x0a','LjMNm':'For\x20a\x20shared\x20cloud\x20profile:\x20ranger\x20profile\x20add\x20<account-email>\x0a','xwfUB':_0x2f243c(0x1c8),'cggSY':function(_0x807bcb,_0x454f72){return _0x807bcb===_0x454f72;},'yudco':function(_0x2b31bf,_0x512589){return _0x2b31bf+_0x512589;},'fFvTB':_0x2f243c(0x1db),'WtTUo':'\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','OVboi':function(_0x9be1f,_0x2c7133){return _0x9be1f>_0x2c7133;},'CHpJs':function(_0x121146,_0x2b124b,_0x286d2d){return _0x121146(_0x2b124b,_0x286d2d);},'uSDfI':function(_0x53528d,_0x17a4a5,_0x350a45,_0x54b3c4,_0x453edf){return _0x53528d(_0x17a4a5,_0x350a45,_0x54b3c4,_0x453edf);},'dDLtf':'cdpEndpoint','SyWZD':'isElectron','wdNBm':function(_0x419f35,_0x44e5a8){return _0x419f35(_0x44e5a8);},'NCGKP':'input','jtppS':'baseUrl','VwVgn':_0x2f243c(0x1d0),'ijiPh':'http://localhost:3000','umrFe':function(_0x2c2042,_0x515cff){return _0x2c2042(_0x515cff);},'BEfcN':_0x2f243c(0x1d7),'aBBAx':'Enter\x20a\x20different\x20URL','dXGGo':_0x2f243c(0x1ca),'SlTih':_0x2f243c(0x197),'rjLhV':function(_0x5d6897,_0x33cf36){return _0x5d6897(_0x33cf36);},'NJYbn':function(_0x33df70,_0xbd7e1c){return _0x33df70===_0xbd7e1c;},'vLeWX':_0x2f243c(0x1be),'ntmdD':function(_0x3a0f86,_0x1ab8b0){return _0x3a0f86 instanceof _0x1ab8b0;},'mfcbW':function(_0x7381f8,_0x1b1f7b){return _0x7381f8(_0x1b1f7b);}};_0x1f160d['ci']&&(console[_0x2f243c(0x1c5)](_0x1ff968['PAQeI'](_0x1ff968[_0x2f243c(0x1d3)](_0x1ff968['WGdbf']+_0x1ff968[_0x2f243c(0x1b1)],'Use\x20the\x20new\x20flow:\x0a')+_0x1ff968['esoWM']+_0x1ff968[_0x2f243c(0x1bb)],_0x1ff968['xwfUB'])),process['exit'](0x1));const _0xd3ff29={};if(_0x1f160d['setupHeader'])for(const _0x511170 of _0x1f160d['setupHeader']){const _0x3f23a8=_0x511170[_0x2f243c(0x1c2)](':');if(_0x1ff968[_0x2f243c(0x195)](_0x3f23a8,-0x1))throw new Error(_0x2f243c(0x1ea)+_0x511170+'\x22.\x20Expected\x20\x22Name:\x20Value\x22.');const _0x334813=_0x511170[_0x2f243c(0x1f1)](0x0,_0x3f23a8)[_0x2f243c(0x1f7)](),_0x3e6478=_0x511170[_0x2f243c(0x1f1)](_0x1ff968[_0x2f243c(0x1ee)](_0x3f23a8,0x1))[_0x2f243c(0x1f7)]();_0xd3ff29[_0x334813]=_0x3e6478;}if(_0x1f160d[_0x2f243c(0x193)]!==undefined&&_0x1f160d['cdpEndpoint']['trim']()==='')throw new Error(_0x2f243c(0x1bc));if(_0x1f160d[_0x2f243c(0x193)]&&_0x1f160d[_0x2f243c(0x1a0)])throw new Error(_0x2f243c(0x1bf));const _0x2fbd4b=Boolean(_0x1f160d[_0x2f243c(0x193)]),_0x4d7466=process[_0x2f243c(0x1e0)][_0x2f243c(0x1cc)]&&process[_0x2f243c(0x1e6)][_0x2f243c(0x1cc)];if(!_0x4d7466&&!_0x1f160d['url']&&!_0x2fbd4b&&!_0x1f160d['skipAuth'])throw new Error(_0x1ff968['fFvTB']);if(_0x2fbd4b){const _0x342833=_0x1f160d['cdpEndpoint'];console['log'](_0x1ff968['WtTUo']),console[_0x2f243c(0x19e)]('\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20'+_0x342833);const _0x11008e={'cdpEndpoint':_0x342833,'isElectron':!![]};_0x1ff968[_0x2f243c(0x1e4)](Object['keys'](_0xd3ff29)[_0x2f243c(0x1f0)],0x0)&&(_0x11008e['setupHeaders']=_0xd3ff29);await _0x1ff968[_0x2f243c(0x1cb)](createUnconfiguredCloudProfile,_0x4366ba,_0x11008e);try{_0x1ff968['uSDfI'](setProfileOverride,process['cwd'](),_0x4366ba,_0x1ff968['dDLtf'],_0x342833),setProfileOverride(process[_0x2f243c(0x1cf)](),_0x4366ba,_0x1ff968[_0x2f243c(0x1c4)],!![]);}catch(_0x37516a){console['error'](_0x2f243c(0x190)+(_0x37516a instanceof Error?_0x37516a['message']:_0x1ff968['wdNBm'](String,_0x37516a)));}console[_0x2f243c(0x19e)]('✓\x20Cloud\x20profile\x20\x27'+_0x4366ba+'\x27\x20created\x20(CDP).'),await sweepOrphansBestEffort(_0x4366ba),await markActive(_0x4366ba);return;}if(_0x1f160d['skipAuth']){const _0x125e94={};_0x1f160d[_0x2f243c(0x1a0)]&&(_0x125e94[_0x2f243c(0x1e8)]=_0x1f160d[_0x2f243c(0x1a0)]);Object[_0x2f243c(0x1e7)](_0xd3ff29)[_0x2f243c(0x1f0)]>0x0&&(_0x125e94[_0x2f243c(0x1cd)]=_0xd3ff29);await _0x1ff968[_0x2f243c(0x1cb)](createUnconfiguredCloudProfile,_0x4366ba,_0x125e94),console['log'](_0x2f243c(0x1b8)+_0x4366ba+_0x2f243c(0x1c0)+'\x20\x20Next:\x20set\x20RANGER_TEST_USERNAME\x20/\x20RANGER_TEST_PASSWORD\x20and\x20run\x0a'+(_0x2f243c(0x1e3)+_0x4366ba+'`\x0a')+_0x2f243c(0x1d1)),await sweepOrphansBestEffort(_0x4366ba),await markActive(_0x4366ba);return;}if(_0x1f160d[_0x2f243c(0x1a0)]){const _0x16771c=_0x1f160d['url'],_0x394aa1=await checkUrlReachability(_0x16771c);if(!_0x394aa1['ok']&&!_0x1f160d[_0x2f243c(0x1dc)])throw new Error('Could\x20not\x20reach\x20'+_0x16771c+':\x20'+_0x394aa1[_0x2f243c(0x1c5)]+'\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.');!_0x394aa1['ok']&&_0x1f160d[_0x2f243c(0x1dc)]&&console['log']('⚠\x20Could\x20not\x20reach\x20'+_0x16771c+':\x20'+_0x394aa1[_0x2f243c(0x1c5)]+'\x20(continuing\x20with\x20--force)');}else{console[_0x2f243c(0x19e)]('\x0a🌐\x20Profile\x20Setup\x0a'),console[_0x2f243c(0x19e)]('\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.'),console['log']('\x20\x20Ranger\x20will\x20use\x20it\x20to\x20look\x20up\x20the\x20right\x20cloud\x20auth\x20env\x20to\x20attach.\x0a');let _0x4d8a91='',_0x973161=![];while(!![]){const _0x3e95fb=await _0x52d1d1['prompt']([{'type':_0x1ff968['NCGKP'],'name':_0x1ff968[_0x2f243c(0x1b7)],'message':_0x973161?'Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):':_0x1ff968['VwVgn'],'default':_0x4d8a91||_0x1ff968['ijiPh']}]);_0x4d8a91=_0x3e95fb['baseUrl'];const _0x43b56d=await _0x1ff968[_0x2f243c(0x1b9)](checkUrlReachability,_0x4d8a91);if(_0x43b56d['ok'])break;const _0x2cbda1=/^[a-zA-Z][\w+.-]*:\/\//[_0x2f243c(0x1a2)](_0x4d8a91),_0x54067e=_0x43b56d['isProtocolError']&&!_0x2cbda1,_0x4aec9b=_0x54067e?'http://'+_0x4d8a91:null;_0x973161=!![],console['log'](_0x2f243c(0x1d4)+_0x4d8a91+':\x20'+_0x43b56d['error']);_0x4aec9b&&console['log'](_0x2f243c(0x1a5)+_0x4aec9b+'?');const {action:_0xf1b88d}=await _0x52d1d1[_0x2f243c(0x1b0)]([{'type':_0x2f243c(0x1f3),'name':'action','message':_0x2f243c(0x1ef),'choices':[..._0x4aec9b?[{'name':_0x2f243c(0x1af)+_0x4aec9b,'value':_0x1ff968[_0x2f243c(0x1b6)]}]:[],{'name':_0x1ff968['aBBAx'],'value':_0x1ff968['dXGGo']},{'name':_0x1ff968['SlTih'],'value':_0x2f243c(0x1be)}]}]);if(_0xf1b88d===_0x2f243c(0x1d7)&&_0x4aec9b){_0x4d8a91=_0x4aec9b;const _0x7e89f=await _0x1ff968[_0x2f243c(0x1e9)](checkUrlReachability,_0x4d8a91);if(_0x7e89f['ok'])break;console['log']('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0x4d8a91+':\x20'+_0x7e89f['error']);}else{if(_0x1ff968[_0x2f243c(0x1c1)](_0xf1b88d,_0x1ff968['vLeWX']))break;}}_0x1f160d={..._0x1f160d,'url':_0x4d8a91};}let _0x540dbc=![];try{_0x540dbc=await tryAutoRouteCloudProfile(_0x4366ba,_0x1f160d['url'],_0x1f160d,_0x4d7466,_0x1e729b);}catch(_0x43ffc3){console['error']('\x0a\x20\x20Failed\x20to\x20create\x20cloud\x20profile\x20\x22'+_0x4366ba+'\x22:\x20'+(_0x1ff968[_0x2f243c(0x198)](_0x43ffc3,Error)?_0x43ffc3[_0x2f243c(0x19f)]:_0x1ff968[_0x2f243c(0x199)](String,_0x43ffc3))),process[_0x2f243c(0x1d9)](0x1);}!_0x540dbc&&process[_0x2f243c(0x1d9)](0x1),await _0x1ff968['wdNBm'](markActive,_0x4366ba);}
|