@ranger-testing/ranger-cli 2.5.4-alpha.071b7bd-1 → 2.5.4-alpha.1f7a251-7
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 -0
- 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 -0
- package/build/commands/utils/cloudProfileSession.js +1 -0
- 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 -0
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -0
- 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 -0
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/resolveProfileContext.js +1 -0
- package/build/commands/utils/resolveProfileUrl.js +1 -0
- 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 +18 -4
- package/build/skills/ranger/create.md +6 -0
- package/build/skills/ranger/verify.md +23 -3
- package/package.json +6 -2
package/build/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const _0x1b6b0a=_0x52fd;(function(_0x1bf53a,_0x4f7dd3){const _0x9272ba=_0x52fd,_0x13dab1=_0x1bf53a();while(!![]){try{const _0x2938cb=parseInt(_0x9272ba(0x220))/0x1+-parseInt(_0x9272ba(0x293))/0x2+-parseInt(_0x9272ba(0x23d))/0x3+-parseInt(_0x9272ba(0x2bc))/0x4+-parseInt(_0x9272ba(0x2a5))/0x5*(parseInt(_0x9272ba(0x1be))/0x6)+parseInt(_0x9272ba(0x193))/0x7*(parseInt(_0x9272ba(0x17e))/0x8)+-parseInt(_0x9272ba(0x204))/0x9*(-parseInt(_0x9272ba(0x226))/0xa);if(_0x2938cb===_0x4f7dd3)break;else _0x13dab1['push'](_0x13dab1['shift']());}catch(_0x590a24){_0x13dab1['push'](_0x13dab1['shift']());}}}(_0x5745,0xef6d1));import _0x5783fd from'dotenv';import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x5582dd=_0x52fd,_0x1fddf3={'eFRrk':function(_0x28b01e,_0x1e1c10){return _0x28b01e(_0x1e1c10);},'TpHhN':function(_0x4cdfe6,_0x1bc6cb,_0x56cd7f){return _0x4cdfe6(_0x1bc6cb,_0x56cd7f);},'fAUsZ':_0x5582dd(0x2de)};let _0x6ca0a6=process[_0x5582dd(0x280)]();const _0x53d6f3=parse(_0x6ca0a6)[_0x5582dd(0x231)];while(_0x6ca0a6!==_0x53d6f3){if(existsSync(join(_0x6ca0a6,'.ranger'))||_0x1fddf3[_0x5582dd(0x2b7)](existsSync,_0x1fddf3[_0x5582dd(0x22b)](join,_0x6ca0a6,_0x1fddf3['fAUsZ'])))return _0x6ca0a6;_0x6ca0a6=dirname(_0x6ca0a6);}return process[_0x5582dd(0x280)]();}function _0x5745(){const _0x24ff8d=['unset\x20<profile>\x20<key>','New\x20scenario\x20description','array','get-feedback\x20[id]','4319532PqzoRQ','verified','feature\x20show','evaluationReason','profile\x20ls','Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','WSdzn','Config\x20key','CkdPR','get-review','scope','unset\x20<env>\x20<key>','PEQLY','evaluation','ranger\x20feature\x20get-feedback','Install\x20for\x20OpenCode\x20instead\x20of\x20Claude\x20Code','aBqrZ','Zmbvp','Config\x20key\x20to\x20remove','ranger\x20config\x20get','add\x20env\x20<env-name>','--notes','error','Reason:\x20','iVCne','yyIlR','login','DSicp','ViaKT','Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','LstnK','ziDSg','add\x20env','demandCommand','.env','IwZpJ','ranger\x20resume','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','aFzrh','checklist','env','allow-insecure-localhost','You\x20must\x20specify\x20a\x20profile\x20subcommand','exclude-scenario','epilogue','show','slice','ranger\x20verify-feature','RZzNx','VmPlj','GEKgG','NXRtB','skip-chromium','PhbCZ','hMrKQ','MVtFA','Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','add\x20<profile-name>','xYTsb','update\x20<env-name>','Where\x20to\x20store\x20the\x20profile','partial','Print\x20the\x20current\x20CLI\x20access\x20token','kmluY','task','skills','Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','jRBrw','number','ObSEE','List\x20all\x20feature\x20reviews','Ieiej','--checklist','QZxcs','log','Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','status','Scenario\x20description','ranger\x20env\x20update','aDqDX','Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)','include-deleted','command','ajmDY','use','limit','setup:deps','Include\x20soft-deleted\x20feature\x20reviews','Set\x20up\x20a\x20local\x20browser\x20profile','cdp-endpoint','Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','eIBue','855648IRougv','crgMZ','KHAMG','MOjdA','HTTP\x20header\x20to\x20send\x20only\x20during\x20profile\x20setup\x20auth,\x20not\x20during\x20test\x20runs\x20(format:\x20\x22Name:\x20Value\x22)','DiDHe','IMRTx','ohSFb','sTgbi','clean','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','headed','positional','cXBji','name','TKEWE','You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand','nfPAN','Qzljo','rhigU','fNYHP','42diynvk','token','start\x20[token]','usage','\x20BLOCKED','Usage:\x20ranger\x20profile\x20config\x20<command>\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\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\x0aKeys:\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\x20ci\x20header.Authorization\x20\x27${AUTH_TOKEN}\x27\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20setupHeader.x-bypass-turnstile\x20\x27a1b2c3d4...\x27','includes','WkeVv','ranger\x20profile\x20use','ranger\x20profile\x20config\x20unset','restore\x20<id>','boolean','\x20VERIFIED','Disable\x20browser\x20features\x20that\x20can\x20cause\x20crashes\x20on\x20some\x20systems\x20(e.g.\x20Bluetooth\x20permission\x20prompts\x20on\x20macOS)','profile-name','setup-header','HBVYN','feature','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','QWNKm','notes','GqJXy','lvVks','version','ZvsSI','yrboE','resume\x20[id]','config','json','skip-auth','aovGI','Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)','bMliB','wqsbH','Authenticate\x20with\x20Ranger','XGYVw','user','Run\x20full\x20interactive\x20setup','opencode','failed','SqSLg','zDVNg','Hutzr','6flWykm','Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','AUcaB','feature\x20delete','scriptName','MAzih','argv','list\x20<profile>','vsPVy','env-name','Update\x20authentication\x20for\x20an\x20existing\x20profile','eZycM','with-deps','ranger\x20add-scenario','qCWvy','qhOpG','JBwDt','item','jedrC','Skip\x20authentication','Allow\x20localhost\x20content\x20in\x20deployed\x20environments','vKiml','Install\x20skills\x20for\x20OpenCode','IdxeE','list','base-url','offset','vnguJ','GqYdN','Hmflk','VaEll','EmHzN','blocked','ruUEd','\x0aUnknown\x20command:\x20','ranger\x20use','iAfRN','ranger\x20feature\x20resume','yLsSf','Unknown\x20error','profile','thMlT','session-id','GOuZG','setup:login','description','use\x20<profile-name>','bgZlM','KTdoY','fail','--profile','map','scenario','profile\x20config\x20get','config\x20unset','KyWui','Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project','Task\x20description\x20(defaults\x20to\x20scenario\x20description)','organizationName','ranger\x20restore','qlyrw','hvSve','ThQGy','config\x20set','WIOwn','get\x20<profile>\x20<key>','wmjAU','Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)','Optional\x20feature\x20ID','trackCommandError','1017qtgJmS','ExFWI','XlZxl','wxPPf','config\x20get','Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','hPmgC','edMgd','report\x20[id]','Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)','KVNUj','Bootstrap\x20CLI\x20auth\x20via\x20an\x20MCP\x20auth\x20server','\x0aIssues:','Name\x20of\x20the\x20environment','help','WQjCi','✓\x20Authenticated\x20to\x20','UiPjk','YDqIO','fZscN','Manage\x20profiles','cHCtG','SydEm','ranger\x20get-review','Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a','rmhNL','Skip\x20Chromium\x20browser\x20installation','List\x20all\x20profiles','1275497cnnkxB','EUioV','unhandledRejection','startsWith','ranger\x20feature\x20show','lNJro','302820pSvGoe','Manage\x20profile\x20configuration','oeOfU','\x20\x20https://docs.ranger.net\x0a','KMxFx','TpHhN','Glwpb','Feature\x20review\x20ID','delete','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\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.','mcp','root','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','setup:profiles','VYHxg','pRvJk','Output\x20structured\x20JSON\x20data\x20instead\x20of\x20markdown','fsKdY','use\x20<env-name>','url','zOyyw','deps','IPNIP','5690970xwVZFE','mcp-bootstrap','hook:disable','list\x20<env>','hook','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)\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20add\x20local\x0a\x20\x20ranger\x20profile\x20encrypt-auth\x20ci\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20headless\x20true','Unknown\x20command','Alias\x20for\x20--mcp-bootstrap','Failed\x20to\x20exchange\x20MCP\x20refresh\x20token\x20for\x20a\x20CLI\x20token.','mSYWO','xqYvP','SsJeu','Authenticated\x20via\x20MCP,\x20but\x20failed\x20to\x20verify:\x20','uThtn','model','You\x20must\x20specify\x20an\x20auth\x20subcommand','show\x20[id]','BNcKa','zerwU','crVcK','print-access-token','cqYHm','update','profile\x20use','debug-address-comments','lMUqR','TMZrG','xEkhg','key','suLuD','exit','incomplete','YkLTB','HEigy','You\x20must\x20specify\x20an\x20env\x20subcommand','SQIHr','Documentation:\x0a','vBFpj','wNiZj','aLkfg','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)','NIdqY','some','skillup','string','QaUbu','setup-ci\x20<token>','ranger\x20auth\x20encrypt','Install\x20OS-level\x20dependencies\x20for\x20Chromium\x20(apt\x20packages\x20for\x20Debian/Ubuntu\x20containers)','.\x20[','Scenario\x20index\x20(1-based)','xqflL','AAIAB','edit-scenario\x20<description>','Initialize\x20Ranger\x20in\x20your\x20project','option','ranger\x20config\x20list','force','setup:all','Bootstrap\x20CLI\x20auth\x20via\x20an\x20MCP\x20auth\x20server\x20instead\x20of\x20browser\x20login','profile\x20update','Skip\x20authentication\x20(install\x20deps\x20only\x20—\x20for\x20container/CI\x20image\x20builds)','Restore\x20a\x20soft-deleted\x20feature\x20review','lyTPC','HHjKC','Profile\x20name','hYdxz','cwd','Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version','zcyhr','Number\x20of\x20feature\x20reviews\x20to\x20skip','SzYtL','CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)','HdMRU','current-branch','feature\x20list','resume','ayxVR','okLVq','ranger\x20go','safe-mode','ranger\x20add\x20env','--env','aFhcy','FXGNk','aBZnL','815560iiQRfu','MKokI','thdsG','start','UQBZr','Install\x20OS-level\x20dependencies\x20for\x20Chromium','project','BxvpL','XPXGB','vrQOg','wsEGU','rNqsl','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','ranger\x20profile\x20ls','Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','debug-outcome','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.','Feature\x20review\x20ID\x20to\x20restore','4868785VCpgPB','iPHyH','mQWcW','set\x20<profile>\x20<key>\x20<value>','Disable\x20Ranger\x20hooks\x20for\x20this\x20session','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','verify-feature','Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)','enable','repeat','value','UQNVt','ranger\x20profile\x20config\x20set','HQRDO','ranger\x20create','qKPKc','Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','PvfdB','eFRrk'];_0x5745=function(){return _0x24ff8d;};return _0x5745();}_0x5783fd[_0x1b6b0a(0x1ae)]({'path':join(findProjectRoot(),'.env')});import _0x46c9fe from'yargs/yargs';function _0x52fd(_0x5c9492,_0x1e3271){_0x5c9492=_0x5c9492-0x16b;const _0x57457a=_0x5745();let _0x52fd45=_0x57457a[_0x5c9492];return _0x52fd45;}import{addEnv,clean,login,start,setupCi,useEnv,updateEnv,update,skillup,envList,hook,ensureLocalEnv,ensureChromium,authenticate}from'./commands/index.js';import{authEncrypt}from'./commands/authEncrypt.js';import{mcpBootstrap}from'./commands/mcpBootstrap.js';import{getToken}from'./commands/utils/keychain.js';import{status}from'./commands/status.js';import{configSet,configGet,configList,configUnset}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{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'](_0x1b6b0a(0x222),async _0x231b98=>{const _0x1ff83a={'oKyZL':function(_0x34f9a0){return _0x34f9a0();}},_0xd173=_0x1ff83a['oKyZL'](getCurrentCollector);_0xd173&&await _0xd173['trackCommandError'](_0x231b98),process['exitCode']=0x1;});const rawArgs=process['argv'][_0x1b6b0a(0x2eb)](0x2),TOP_LEVEL_HELP=_0x1b6b0a(0x22f),PROFILE_HELP=_0x1b6b0a(0x242),PROFILE_CONFIG_HELP=_0x1b6b0a(0x198);function warnRenamed(_0x5ee1d2,_0x1e2d48){console['error']('\x0a'+_0x5ee1d2+'\x20is\x20now\x20'+_0x1e2d48+'\x0a');}function argUsed(_0x357edf){const _0x366901=_0x1b6b0a;return rawArgs[_0x366901(0x267)](_0x1c3235=>_0x1c3235===_0x357edf||_0x1c3235[_0x366901(0x223)](_0x357edf+'='));}function warnFlagRenamed(_0x81524,_0x416627,_0x2610e1){const _0x1ea29b=_0x1b6b0a,_0x40cb8a={'ZvsSI':function(_0x41d139,_0x51927f){return _0x41d139(_0x51927f);},'xqYvP':function(_0x2a85ff,_0x30b1c2,_0x1f330c){return _0x2a85ff(_0x30b1c2,_0x1f330c);}};_0x40cb8a[_0x1ea29b(0x1ab)](argUsed,_0x416627)&&_0x40cb8a[_0x1ea29b(0x247)](warnRenamed,_0x81524+'\x20'+_0x416627,_0x81524+'\x20'+_0x2610e1);}async function runGoCommand(_0x17a9b4,_0x4b29be=![]){const _0x6fe79b=_0x1b6b0a,_0x3b7bbd={'rfKeD':function(_0x8d16e8,_0x21b84d){return _0x8d16e8+_0x21b84d;},'InnoA':function(_0x300e81,_0x297b84,_0x23c482){return _0x300e81(_0x297b84,_0x23c482);},'gTbCo':_0x6fe79b(0x28f),'CUulA':_0x6fe79b(0x1f0),'oeOfU':function(_0x508c9c,_0x511baa,_0x362f21,_0x28ebd7){return _0x508c9c(_0x511baa,_0x362f21,_0x28ebd7);},'VmPlj':_0x6fe79b(0x28c),'gThmd':'--task','couUy':function(_0x4f3ebb){return _0x4f3ebb();},'vBFpj':function(_0x42e431){return _0x42e431();},'crVcK':_0x6fe79b(0x2a2),'UPbkn':_0x6fe79b(0x255),'fNYHP':function(_0x1fd12f,_0x20de7c){return _0x1fd12f+_0x20de7c;},'RGVys':_0x6fe79b(0x19f),'pRvJk':'incomplete','aFzrh':'partial','Hutzr':'blocked','sTgbi':'\x20FAILED','DJcmE':function(_0x31df98,_0x119cba){return _0x31df98===_0x119cba;},'thMlT':'verified'};_0x4b29be&&_0x3b7bbd['InnoA'](warnRenamed,_0x6fe79b(0x2ec),'ranger\x20go');warnFlagRenamed(_0x6fe79b(0x28c),_0x3b7bbd['gTbCo'],_0x3b7bbd['CUulA']),_0x3b7bbd['oeOfU'](warnFlagRenamed,_0x3b7bbd[_0x6fe79b(0x2ee)],_0x3b7bbd['gThmd'],_0x6fe79b(0x2d1)),_0x3b7bbd[_0x6fe79b(0x228)](warnFlagRenamed,_0x3b7bbd[_0x6fe79b(0x2ee)],'--item','--scenario');const _0x247f64=await _0x3b7bbd['couUy'](loadRangerConfig),_0x1e2a97=_0x3b7bbd[_0x6fe79b(0x262)](isByokEnabled),_0x2c06bb=_0x17a9b4['model'],_0x4051de=_0x247f64[_0x6fe79b(0x24b)],_0x4902d5=await verifyFeature({'featureId':_0x17a9b4[_0x6fe79b(0x1a4)],'profile':_0x17a9b4[_0x6fe79b(0x1e6)]??_0x17a9b4[_0x6fe79b(0x2e5)],'notes':_0x17a9b4['notes']??_0x17a9b4['task'],'scenario':_0x17a9b4['scenario']??_0x17a9b4[_0x6fe79b(0x1cf)],'startPath':_0x17a9b4['start-path'],'debugOutcome':_0x17a9b4[_0x3b7bbd[_0x6fe79b(0x250)]],'debugAddressComments':_0x17a9b4[_0x3b7bbd['UPbkn']],'headed':_0x17a9b4['headed'],'byokEnabled':_0x1e2a97,'flagVerifyModel':_0x2c06bb,'configVerifyModel':_0x4051de});console['log'](_0x3b7bbd[_0x6fe79b(0x192)]('\x0a','='[_0x6fe79b(0x2ae)](0x3c))),console['log'](_0x4902d5[_0x6fe79b(0x2c9)]==='verified'?_0x3b7bbd['RGVys']:_0x4902d5['evaluation']===_0x3b7bbd[_0x6fe79b(0x235)]?'\x20INCOMPLETE':_0x4902d5[_0x6fe79b(0x2c9)]===_0x3b7bbd[_0x6fe79b(0x2e3)]?'\x20PARTIAL':_0x4902d5[_0x6fe79b(0x2c9)]===_0x3b7bbd[_0x6fe79b(0x1bd)]?_0x6fe79b(0x197):_0x3b7bbd[_0x6fe79b(0x186)]),console['log']('='['repeat'](0x3c)),console[_0x6fe79b(0x16b)]('Summary:\x20'+_0x4902d5['summary']),console['log']('Evaluation:\x20'+_0x4902d5[_0x6fe79b(0x2c9)]),console['log'](_0x6fe79b(0x2d3)+_0x4902d5[_0x6fe79b(0x2bf)]),_0x4902d5['issues']?.['length']&&(console['log'](_0x6fe79b(0x210)),_0x4902d5['issues']['forEach']((_0x4f0b0e,_0x20506d)=>{const _0x426fc8=_0x6fe79b;console['log']('\x0a'+_0x3b7bbd['rfKeD'](_0x20506d,0x1)+_0x426fc8(0x26e)+_0x4f0b0e['severity']+']\x20'+_0x4f0b0e['description']);})),process[_0x6fe79b(0x25b)](_0x3b7bbd['DJcmE'](_0x4902d5['evaluation'],_0x3b7bbd[_0x6fe79b(0x1e7)])?0x0:0x1);}_0x46c9fe(process[_0x1b6b0a(0x1c4)]['slice'](0x2))[_0x1b6b0a(0x1c2)]('ranger')[_0x1b6b0a(0x196)](TOP_LEVEL_HELP)[_0x1b6b0a(0x1aa)](getCurrentVersion())['command']('create\x20<name>','Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios',_0x2d8ba2=>{const _0x50dbda=_0x1b6b0a,_0x2ea8e3={'OoHzr':'name','bgZlM':_0x50dbda(0x269),'XYgEq':'Feature\x20review\x20name','EleFG':'Feature\x20review\x20description','njwzD':_0x50dbda(0x2e4),'YOyAt':'array'};return _0x2d8ba2[_0x50dbda(0x18a)](_0x2ea8e3['OoHzr'],{'type':_0x2ea8e3[_0x50dbda(0x1ed)],'description':_0x2ea8e3['XYgEq'],'demandOption':!![]})[_0x50dbda(0x274)]('description',{'type':_0x50dbda(0x269),'alias':'d','description':_0x2ea8e3['EleFG']})['option']('scenario',{'type':_0x50dbda(0x2ba),'alias':'c','description':_0x50dbda(0x1bf)})[_0x50dbda(0x274)](_0x2ea8e3['njwzD'],{'type':_0x2ea8e3['YOyAt'],'hidden':!![]});},async _0x3c5ba3=>{const _0x1d1f57=_0x1b6b0a,_0x331fe5={'mBeCh':function(_0x3dee02,_0x464d52,_0xaadef,_0x44fab1){return _0x3dee02(_0x464d52,_0xaadef,_0x44fab1);},'crgMZ':_0x1d1f57(0x2b3),'CdxsW':'--checklist','vsgKg':'--scenario','XTSqC':'create'};_0x331fe5['mBeCh'](warnFlagRenamed,_0x331fe5[_0x1d1f57(0x17f)],_0x331fe5['CdxsW'],_0x331fe5['vsgKg']);const _0x575ef2=_0x3c5ba3['scenario']||_0x3c5ba3[_0x1d1f57(0x2e4)];await withTelemetry(_0x331fe5['XTSqC'],()=>featureCreate(_0x3c5ba3['name'],{'description':_0x3c5ba3[_0x1d1f57(0x1eb)],'scenarios':_0x575ef2}));})['command']('list',_0x1b6b0a(0x303),_0x58ea94=>{const _0x2f49a5=_0x1b6b0a,_0x69775a={'cXkvL':'current-branch','sZGVy':_0x2f49a5(0x232),'HEigy':_0x2f49a5(0x301),'jedrC':_0x2f49a5(0x1d8),'JNGZX':'Number\x20of\x20feature\x20reviews\x20to\x20skip','IdxeE':_0x2f49a5(0x19e)};return _0x58ea94['option'](_0x69775a['cXkvL'],{'type':_0x2f49a5(0x19e),'description':_0x69775a['sZGVy']})['option'](_0x2f49a5(0x176),{'type':_0x69775a[_0x2f49a5(0x25e)],'alias':'l','description':'Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','default':0xa})['option'](_0x69775a[_0x2f49a5(0x1d0)],{'type':_0x69775a[_0x2f49a5(0x25e)],'alias':'o','description':_0x69775a['JNGZX'],'default':0x0})['option']('include-deleted',{'type':_0x69775a[_0x2f49a5(0x1d5)],'alias':'d','description':_0x2f49a5(0x178),'default':![]});},async _0x592d5d=>{const _0x56ca8b=_0x1b6b0a,_0x1c3940={'YDqIO':function(_0x1dd70c,_0x4fd8af,_0x4bb5c3){return _0x1dd70c(_0x4fd8af,_0x4bb5c3);},'mUUzK':_0x56ca8b(0x1d6)};await _0x1c3940[_0x56ca8b(0x216)](withTelemetry,_0x1c3940['mUUzK'],()=>featureList({'currentBranch':_0x592d5d[_0x56ca8b(0x287)],'limit':_0x592d5d['limit'],'offset':_0x592d5d[_0x56ca8b(0x1d8)],'includeDeleted':_0x592d5d[_0x56ca8b(0x172)]}));})['command'](_0x1b6b0a(0x24d),_0x1b6b0a(0x17c),_0x677a2c=>{const _0x2d16f5=_0x1b6b0a,_0x56426a={'qlyrw':_0x2d16f5(0x22d)};return _0x677a2c[_0x2d16f5(0x18a)]('id',{'type':'string','description':_0x56426a[_0x2d16f5(0x1fa)]});},async _0x4a4bd7=>{const _0x13b376=_0x1b6b0a,_0xad174e={'WFlGt':function(_0x2486ec,_0x161426,_0x10ed36){return _0x2486ec(_0x161426,_0x10ed36);},'CnUCi':_0x13b376(0x2ea)};await _0xad174e['WFlGt'](withTelemetry,_0xad174e['CnUCi'],()=>featureShow(_0x4a4bd7['id']));})[_0x1b6b0a(0x173)](_0x1b6b0a(0x1ad),'Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context',_0x58398b=>{const _0x3d11e1=_0x1b6b0a,_0x71716a={'IIcHV':_0x3d11e1(0x269)};return _0x58398b[_0x3d11e1(0x18a)]('id',{'type':_0x71716a['IIcHV'],'description':_0x3d11e1(0x1a5)});},async _0x2e7e69=>{const _0x385412=_0x1b6b0a,_0x10fd57={'dQbTh':_0x385412(0x289)};await withTelemetry(_0x10fd57['dQbTh'],()=>featureResume(_0x2e7e69['id']));})['command']('add-scenario\x20<description>','Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review',_0x1e1c91=>{const _0x9c159c=_0x1b6b0a,_0x307b36={'KTdoY':_0x9c159c(0x1eb),'KVNUj':'string','aDqDX':'Scenario\x20description'};return _0x1e1c91['positional'](_0x307b36[_0x9c159c(0x1ee)],{'type':_0x307b36[_0x9c159c(0x20e)],'description':_0x307b36[_0x9c159c(0x170)],'demandOption':!![]})[_0x9c159c(0x274)]('id',{'type':_0x9c159c(0x269),'description':_0x9c159c(0x29f)});},async _0x8d0227=>{const _0x138f9c=_0x1b6b0a,_0x59f5d9={'aBqrZ':function(_0x387c58,_0x34ed45,_0x30fc52){return _0x387c58(_0x34ed45,_0x30fc52);}};await _0x59f5d9[_0x138f9c(0x2cc)](withTelemetry,'add-scenario',()=>featureAddScenario(_0x8d0227[_0x138f9c(0x1eb)],_0x8d0227['id']));})['command'](_0x1b6b0a(0x272),'Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review',_0x1d4cff=>{const _0x23782e=_0x1b6b0a,_0x57f372={'iHsDH':_0x23782e(0x1eb),'AByhd':'scenario','wNiZj':'Scenario\x20number\x20to\x20edit\x20(1-based)','HMfdL':_0x23782e(0x269),'eKdMh':_0x23782e(0x29f)};return _0x1d4cff['positional'](_0x57f372['iHsDH'],{'type':'string','description':_0x23782e(0x2b9),'demandOption':!![]})['option'](_0x57f372['AByhd'],{'type':_0x23782e(0x301),'description':_0x57f372[_0x23782e(0x263)],'demandOption':!![]})['option']('id',{'type':_0x57f372['HMfdL'],'description':_0x57f372['eKdMh']});},async _0x5b725b=>{const _0x2bd7e2=_0x1b6b0a,_0x58145f={'SZSwN':'edit-scenario'};await withTelemetry(_0x58145f['SZSwN'],()=>featureEditScenario(_0x5b725b[_0x2bd7e2(0x1eb)],{'id':_0x5b725b['id'],'scenario':_0x5b725b['scenario']}));})['command'](_0x1b6b0a(0x20c),_0x1b6b0a(0x1b2),_0xde83df=>{const _0xeaab36=_0x1b6b0a,_0x1af3ac={'DIzRQ':_0xeaab36(0x2e8),'thdsG':'Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)'};return _0xde83df[_0xeaab36(0x18a)]('id',{'type':_0xeaab36(0x269),'description':'Feature\x20review\x20ID'})[_0xeaab36(0x274)](_0x1af3ac['DIzRQ'],{'type':'array','description':_0x1af3ac[_0xeaab36(0x295)]})[_0xeaab36(0x274)]('json',{'type':_0xeaab36(0x19e),'description':_0xeaab36(0x236),'default':![]});},async _0x42cec3=>{const _0x45fdfc=_0x1b6b0a,_0x288217={'XGYVw':_0x45fdfc(0x2e8),'CaiPl':'report'},_0x54cd9b=_0x42cec3[_0x288217[_0x45fdfc(0x1b6)]],_0x5697eb=_0x54cd9b?_0x54cd9b[_0x45fdfc(0x1f1)](_0x3e8a44=>Number(_0x3e8a44)):undefined;await withTelemetry(_0x288217['CaiPl'],()=>featureReportPrDescription(_0x42cec3['id'],{'excludeScenarios':_0x5697eb,'json':_0x42cec3[_0x45fdfc(0x1af)]}));})['command']('get-review\x20[id]',_0x1b6b0a(0x2e1),_0x82f5df=>{const _0xf8a1b0=_0x1b6b0a,_0x43794c={'fsKdY':'string','MygCE':_0xf8a1b0(0x29f)};return _0x82f5df[_0xf8a1b0(0x18a)]('id',{'type':_0x43794c[_0xf8a1b0(0x237)],'description':_0x43794c['MygCE']});},async _0x34f803=>{const _0x4b15a9=_0x1b6b0a,_0x3d6fce={'kdeBo':function(_0x1aca32,_0x2fbd51,_0x1b5955){return _0x1aca32(_0x2fbd51,_0x1b5955);},'OMTnY':_0x4b15a9(0x2c5)};await _0x3d6fce['kdeBo'](withTelemetry,_0x3d6fce['OMTnY'],()=>featureGetReview(_0x34f803['id']));})['command']('delete\x20[id]',_0x1b6b0a(0x2b5),_0x41b0ad=>{const _0xad6d5=_0x1b6b0a,_0x13357c={'IMRTx':'string','QEMpW':'Feature\x20review\x20ID'};return _0x41b0ad[_0xad6d5(0x18a)]('id',{'type':_0x13357c[_0xad6d5(0x184)],'description':_0x13357c['QEMpW']});},async _0x2b2173=>{const _0x932a07=_0x1b6b0a,_0x3367bf={'VYHxg':function(_0x413635,_0x34d9e0,_0x136dae){return _0x413635(_0x34d9e0,_0x136dae);}};await _0x3367bf[_0x932a07(0x234)](withTelemetry,_0x932a07(0x22e),()=>featureDelete(_0x2b2173['id']));})['command']('restore\x20<id>',_0x1b6b0a(0x27b),_0x36f01d=>{const _0x357305=_0x1b6b0a,_0x799b96={'IwZpJ':_0x357305(0x269),'ceoWJ':_0x357305(0x2a4)};return _0x36f01d['positional']('id',{'type':_0x799b96[_0x357305(0x2df)],'description':_0x799b96['ceoWJ'],'demandOption':!![]});},async _0x27c9b5=>{const _0x2b03c4={'MNjQV':function(_0x89bf1a,_0x57e6d5,_0x39cfa1){return _0x89bf1a(_0x57e6d5,_0x39cfa1);},'VZmZN':'restore'};await _0x2b03c4['MNjQV'](withTelemetry,_0x2b03c4['VZmZN'],()=>featureRestore(_0x27c9b5['id']));})[_0x1b6b0a(0x173)]('setup\x20[tokenOrSubcommand]',_0x1b6b0a(0x273),_0x2f6ef1=>{const _0x1aa239=_0x1b6b0a,_0x4542b5={'ziDSg':_0x1aa239(0x269),'WSdzn':'Ranger\x20API\x20token','PtdVK':_0x1aa239(0x2f1),'fwdMU':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','WXYDL':_0x1aa239(0x1d1),'ruUEd':'scope','HBVYN':'user','FXGNk':'boolean','cXBji':_0x1aa239(0x1d2),'xEkhg':function(_0x580bae,_0x628840,_0x5b32c9){return _0x580bae(_0x628840,_0x5b32c9);},'hYdxz':_0x1aa239(0x23e),'rpnWa':function(_0x4b0f21,_0x527e66,_0x47328f){return _0x4b0f21(_0x527e66,_0x47328f);},'Hmflk':_0x1aa239(0x277),'GqYdN':'with-deps','wmjAU':_0x1aa239(0x177),'HdMRU':'mcp','bJaUV':'Authenticate\x20via\x20MCP\x20proxy','lMUqR':function(_0x532f3c){return _0x532f3c();},'wqsbH':_0x1aa239(0x245),'rFwBe':'project','RNxHI':'Install\x20scope\x20for\x20plugin\x20and\x20skills','cqYHm':'opencode','jRBrw':'Install\x20for\x20OpenCode\x20instead\x20of\x20Claude\x20Code','jGGel':'ranger','wiltw':function(_0xc67918,_0x4a0958){return _0xc67918(_0x4a0958);},'XlZxl':'setup:skills','QaUbu':_0x1aa239(0x2f9),'LhrzC':'url','hkGzU':'Base\x20URL\x20of\x20the\x20running\x20app','uThtn':_0x1aa239(0x1b0),'gxxnL':'force','UQNVt':_0x1aa239(0x233),'zOyyw':'tokenOrSubcommand','kmluY':'Subcommand\x20or\x20API\x20token\x20(rngr_...)','AAIAB':_0x1aa239(0x23b),'MVtFA':'Install\x20Chromium\x20browser\x20binary','yyPid':'login','JsPEd':'profiles','HHjKC':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','uzDjm':_0x1aa239(0x2e2),'XEtBB':_0x1aa239(0x209),'uwIJT':_0x1aa239(0x278),'MXSFR':_0x1aa239(0x27a),'zcyhr':'Install\x20OS-level\x20dependencies\x20for\x20Chromium\x20(apt\x20packages\x20for\x20Debian/Ubuntu\x20containers)','aovGI':_0x1aa239(0x194),'AMTYD':'API\x20token'};return _0x2f6ef1[_0x1aa239(0x196)](_0x1aa239(0x188))[_0x1aa239(0x18a)](_0x4542b5[_0x1aa239(0x23a)],{'type':'string','description':_0x4542b5[_0x1aa239(0x2fc)]})[_0x1aa239(0x173)]('all',_0x1aa239(0x1b8),_0x3a5351=>{const _0x2019de=_0x1aa239;return _0x3a5351[_0x2019de(0x274)]('token',{'type':_0x4542b5[_0x2019de(0x2db)],'description':_0x4542b5[_0x2019de(0x2c2)]})['option'](_0x4542b5['PtdVK'],{'type':'boolean','description':_0x4542b5['fwdMU'],'default':![]})[_0x2019de(0x274)](_0x2019de(0x1b0),{'type':'boolean','description':_0x4542b5['WXYDL'],'default':![]})[_0x2019de(0x274)](_0x2019de(0x1ca),{'type':'boolean','description':_0x2019de(0x298),'default':![]})['option'](_0x4542b5['ruUEd'],{'type':_0x2019de(0x269),'choices':[_0x4542b5['HBVYN'],'project'],'description':'Install\x20scope\x20for\x20plugin\x20and\x20skills'})['option']('url',{'type':'string','description':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup'})['option'](_0x2019de(0x276),{'type':_0x2019de(0x19e),'description':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','default':![]})['option']('opencode',{'type':_0x2019de(0x19e),'description':_0x2019de(0x2cb),'default':![]})[_0x2019de(0x274)](_0x2019de(0x2e6),{'type':_0x4542b5[_0x2019de(0x291)],'description':_0x4542b5[_0x2019de(0x18b)],'default':![]})['option'](_0x2019de(0x23e),{'type':_0x2019de(0x19e),'description':_0x2019de(0x20f),'default':![]})['option']('mcp',{'type':_0x2019de(0x19e),'description':_0x2019de(0x244),'default':![]});},async _0x22bb80=>{const _0x211a1f=_0x1aa239;(_0x22bb80['mcp-bootstrap']||_0x22bb80['mcp'])&&await _0x4542b5[_0x211a1f(0x258)](withTelemetry,_0x4542b5['hYdxz'],()=>mcpBootstrap()),await _0x4542b5['rpnWa'](withTelemetry,_0x4542b5[_0x211a1f(0x1db)],_0xc2edd3=>start(_0x22bb80['token'],{'skipChromium':_0x22bb80[_0x211a1f(0x2f1)],'skipAuth':_0x22bb80['skip-auth'],'withDeps':_0x22bb80['with-deps'],'scope':_0x22bb80[_0x211a1f(0x2c6)],'url':_0x22bb80[_0x211a1f(0x239)],'force':_0x22bb80[_0x211a1f(0x276)],'opencode':_0x22bb80['opencode'],'allowInsecureLocalhost':_0x22bb80[_0x211a1f(0x2e6)]},_0xc2edd3));})['command'](_0x4542b5[_0x1aa239(0x271)],_0x4542b5[_0x1aa239(0x2f4)],_0x4321d9=>{const _0x3e153d=_0x1aa239;return _0x4321d9['option'](_0x4542b5[_0x3e153d(0x1da)],{'type':_0x4542b5[_0x3e153d(0x291)],'description':_0x3e153d(0x26d),'default':![]});},async _0xb338f3=>{const _0x37f8ac=_0x1aa239;await withTelemetry(_0x4542b5[_0x37f8ac(0x200)],()=>ensureChromium(_0xb338f3[_0x37f8ac(0x1ca)]));})['command'](_0x4542b5['yyPid'],_0x1aa239(0x1b5),_0x534de9=>{const _0x5d5d64=_0x1aa239;return _0x534de9[_0x5d5d64(0x274)](_0x5d5d64(0x194),{'type':_0x4542b5[_0x5d5d64(0x2db)],'description':'Ranger\x20API\x20token\x20(rngr_...)'})['option'](_0x4542b5[_0x5d5d64(0x286)],{'type':'boolean','description':_0x4542b5['bJaUV'],'default':![]});},async _0x2c28ca=>{const _0xbf464e=_0x1aa239,_0xccb41c={'Qzljo':function(_0x3ba0a8){const _0x39a6e5=_0x52fd;return _0x4542b5[_0x39a6e5(0x256)](_0x3ba0a8);},'oCkFm':function(_0x3fbb88){return _0x3fbb88();},'eTJkm':_0x4542b5[_0xbf464e(0x1b4)]};await _0x4542b5['rpnWa'](withTelemetry,_0xbf464e(0x1ea),async()=>{const _0x270912=_0xbf464e;if(_0x2c28ca[_0x270912(0x230)]){await _0xccb41c[_0x270912(0x190)](mcpBootstrap);const _0x36858b=await _0xccb41c['oCkFm'](refreshCliToken);if(!_0x36858b)throw new Error(_0xccb41c['eTJkm']);const _0xd090a8=await getCurrentUser(_0x36858b);if(!_0xd090a8['success'])throw new Error(_0x270912(0x249)+_0xd090a8['error']);console['log'](_0x270912(0x214)+_0xd090a8['user'][_0x270912(0x1f8)]);return;}await authenticate(_0x2c28ca['token']);});})['command'](_0x1aa239(0x2fe),'Install\x20Claude\x20Code\x20plugin\x20and\x20skills',_0x431572=>{const _0xa93e48=_0x1aa239;return _0x431572[_0xa93e48(0x274)](_0xa93e48(0x2c6),{'type':'string','choices':[_0x4542b5[_0xa93e48(0x1a3)],_0x4542b5['rFwBe']],'description':_0x4542b5['RNxHI']})['option'](_0x4542b5[_0xa93e48(0x252)],{'type':_0x4542b5['FXGNk'],'description':_0x4542b5[_0xa93e48(0x300)],'default':![]});},async _0x57b4fe=>{const _0x208e1c=_0x1aa239;await withTelemetry(_0x4542b5[_0x208e1c(0x206)],async()=>{const _0x224fe1=_0x208e1c,_0x523f62=_0x57b4fe[_0x224fe1(0x2c6)];if(_0x57b4fe[_0x224fe1(0x1b9)]){const _0x2a4478=await ensureOpencodePluginConfig(_0x523f62);_0x2a4478&&await installSkill(_0x4542b5['jGGel'],{'level':_0x2a4478['scope'],'cliVersion':getCurrentVersion(),'platform':_0x4542b5['cqYHm']});}else await _0x4542b5['wiltw'](ensureClaudePlugin,_0x523f62),await ensureClaudeSkills(_0x523f62);});})[_0x1aa239(0x173)](_0x4542b5['JsPEd'],_0x1aa239(0x179),_0x22e1dd=>{const _0x3ff60a=_0x1aa239;return _0x22e1dd['option'](_0x4542b5['ruUEd'],{'type':_0x3ff60a(0x269),'choices':[_0x3ff60a(0x1b7),_0x3ff60a(0x299)],'description':_0x4542b5[_0x3ff60a(0x26a)]})[_0x3ff60a(0x274)](_0x4542b5['LhrzC'],{'type':_0x4542b5[_0x3ff60a(0x2db)],'description':_0x4542b5['hkGzU']})[_0x3ff60a(0x274)](_0x4542b5[_0x3ff60a(0x24a)],{'type':'boolean','description':'Skip\x20browser\x20authentication','default':![]})['option'](_0x4542b5['gxxnL'],{'type':'boolean','description':_0x3ff60a(0x2e2),'default':![]})[_0x3ff60a(0x274)](_0x3ff60a(0x2e6),{'type':_0x3ff60a(0x19e),'description':_0x4542b5['cXBji'],'default':![]});},async _0x494596=>{const _0x18bee1=_0x1aa239;await withTelemetry(_0x4542b5[_0x18bee1(0x2b0)],_0x40fe9c=>ensureLocalEnv({'url':_0x494596['url'],'force':_0x494596[_0x18bee1(0x276)],'allowInsecureLocalhost':_0x494596[_0x18bee1(0x2e6)],'scope':_0x494596['scope']==='user'?'user':undefined},_0x40fe9c));})[_0x1aa239(0x274)](_0x4542b5['PtdVK'],{'type':'boolean','description':_0x4542b5['fwdMU'],'default':![]})[_0x1aa239(0x274)](_0x4542b5[_0x1aa239(0x1df)],{'type':_0x4542b5['ziDSg'],'choices':['user',_0x4542b5['rFwBe']],'description':_0x4542b5[_0x1aa239(0x27d)]})['option']('url',{'type':_0x4542b5['ziDSg'],'description':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)'})[_0x1aa239(0x274)](_0x4542b5['gxxnL'],{'type':_0x4542b5['FXGNk'],'description':_0x4542b5['uzDjm'],'default':![]})[_0x1aa239(0x274)](_0x4542b5['cqYHm'],{'type':_0x4542b5['FXGNk'],'description':'Install\x20for\x20OpenCode\x20instead\x20of\x20Claude\x20Code','default':![]})[_0x1aa239(0x274)]('allow-insecure-localhost',{'type':_0x4542b5[_0x1aa239(0x291)],'description':_0x4542b5['XEtBB'],'default':![]})[_0x1aa239(0x274)](_0x4542b5[_0x1aa239(0x27f)],{'type':_0x1aa239(0x19e),'description':_0x4542b5['uwIJT'],'default':![]})[_0x1aa239(0x274)](_0x4542b5[_0x1aa239(0x24a)],{'type':_0x4542b5[_0x1aa239(0x291)],'description':_0x4542b5['MXSFR'],'default':![]})['option']('with-deps',{'type':_0x4542b5['FXGNk'],'description':_0x4542b5[_0x1aa239(0x282)],'default':![]})['option'](_0x4542b5[_0x1aa239(0x1b1)],{'type':_0x4542b5[_0x1aa239(0x2db)],'hidden':!![],'description':_0x4542b5['AMTYD']});},async _0x141712=>{const _0x2fe5ba=_0x1b6b0a,_0xee52ed={'YloKL':function(_0x291bf9,_0x25b6f9,_0x38a2dd){return _0x291bf9(_0x25b6f9,_0x38a2dd);},'RsXkd':_0x2fe5ba(0x296)},_0x5bb198=_0x141712['tokenOrSubcommand'],_0x43c5e6=_0x141712[_0x2fe5ba(0x194)]??_0x5bb198;_0x141712[_0x2fe5ba(0x23e)]&&await _0xee52ed['YloKL'](withTelemetry,'mcp-bootstrap',()=>mcpBootstrap()),await _0xee52ed['YloKL'](withTelemetry,_0xee52ed['RsXkd'],_0x540182=>start(_0x43c5e6,{'skipChromium':_0x141712['skip-chromium'],'skipAuth':_0x141712[_0x2fe5ba(0x1b0)],'withDeps':_0x141712[_0x2fe5ba(0x1ca)],'scope':_0x141712['scope'],'url':_0x141712['url'],'force':_0x141712[_0x2fe5ba(0x276)],'opencode':_0x141712['opencode'],'allowInsecureLocalhost':_0x141712[_0x2fe5ba(0x2e6)]},_0x540182));})['command'](_0x1b6b0a(0x26b),_0x1b6b0a(0x2ac),_0x148e6b=>{const _0x3747d4=_0x1b6b0a,_0x1e5746={'vnguJ':'string','NIdqY':_0x3747d4(0x1e6),'eIBue':_0x3747d4(0x1d7),'vrQOg':_0x3747d4(0x201),'rhigU':'skip-chromium','LHPqM':_0x3747d4(0x21e)};return _0x148e6b[_0x3747d4(0x18a)](_0x3747d4(0x194),{'type':_0x1e5746['vnguJ'],'description':'Ranger\x20API\x20token','demandOption':!![]})['option'](_0x1e5746[_0x3747d4(0x266)],{'type':_0x1e5746['vnguJ'],'description':_0x3747d4(0x285)})[_0x3747d4(0x274)](_0x1e5746[_0x3747d4(0x17d)],{'type':_0x1e5746[_0x3747d4(0x1d9)],'description':_0x1e5746[_0x3747d4(0x29c)]})[_0x3747d4(0x274)](_0x1e5746[_0x3747d4(0x191)],{'type':'boolean','description':_0x1e5746['LHPqM'],'default':![]});},async _0x39ef8d=>{const _0x1579c8=_0x1b6b0a,_0x2638e6={'MKokI':function(_0x3f7ea5,_0x1ca475,_0x815e81){return _0x3f7ea5(_0x1ca475,_0x815e81);}};await _0x2638e6[_0x1579c8(0x294)](withTelemetry,'setup-ci',_0x59098b=>setupCi(_0x39ef8d['token'],{'profile':_0x39ef8d['profile'],'baseUrl':_0x39ef8d[_0x1579c8(0x1d7)],'skipChromium':_0x39ef8d['skip-chromium']},_0x59098b));})[_0x1b6b0a(0x173)](_0x1b6b0a(0x2d6),_0x1b6b0a(0x20d),()=>{},async()=>{const _0x4d7c21={'qEmXP':function(_0x330c78,_0x2b4ea1,_0xb7d95d){return _0x330c78(_0x2b4ea1,_0xb7d95d);}};await _0x4d7c21['qEmXP'](withTelemetry,'login',()=>login());})[_0x1b6b0a(0x173)]('skillup','Install\x20Ranger\x20skills',_0x1d9df6=>{const _0x1b4d97=_0x1b6b0a,_0xf8407a={'EzMbp':_0x1b4d97(0x1b9),'LpLIT':'boolean','dcIwW':_0x1b4d97(0x1d4),'SqSLg':_0x1b4d97(0x1b7),'uVueK':_0x1b4d97(0x299),'IYZrS':'Install\x20scope\x20for\x20skills'};return _0x1d9df6[_0x1b4d97(0x274)](_0xf8407a['EzMbp'],{'type':_0xf8407a['LpLIT'],'description':_0xf8407a['dcIwW'],'default':![]})[_0x1b4d97(0x274)](_0x1b4d97(0x2c6),{'type':'string','choices':[_0xf8407a[_0x1b4d97(0x1bb)],_0xf8407a['uVueK']],'description':_0xf8407a['IYZrS']});},async _0x3ede0c=>{const _0xbcfc77=_0x1b6b0a,_0x2c1df6={'PeyYe':function(_0x52e431,_0x4b18c3){return _0x52e431(_0x4b18c3);},'XPXGB':function(_0xcf16eb,_0x44d667,_0x305c18){return _0xcf16eb(_0x44d667,_0x305c18);}},_0xcecc36=_0x2c1df6['PeyYe'](Boolean,_0x3ede0c[_0xbcfc77(0x1b9)]);await _0x2c1df6[_0xbcfc77(0x29b)](withTelemetry,_0xbcfc77(0x268),()=>skillup({'autoInstall':_0x3ede0c[_0xbcfc77(0x2c6)],'platform':_0xcecc36?'opencode':'claude'}));})['command'](_0x1b6b0a(0x187),_0x1b6b0a(0x1f6),()=>{},async()=>{const _0xf6562d=_0x1b6b0a,_0xd4d056={'PTbAJ':function(_0x1d2e8f,_0x5ec345,_0x1c9eec){return _0x1d2e8f(_0x5ec345,_0x1c9eec);}};await _0xd4d056['PTbAJ'](withTelemetry,_0xf6562d(0x187),()=>clean());})[_0x1b6b0a(0x173)](_0x1b6b0a(0x1e6),_0x1b6b0a(0x218),_0x38d8af=>{const _0xec11cc=_0x1b6b0a,_0x4c5093={'mSYWO':_0xec11cc(0x1a1),'TMZrG':'skip-auth','wsEGU':'url','FuUKN':'boolean','mvCKr':_0xec11cc(0x2e6),'zerwU':_0xec11cc(0x1a0),'rNqsl':'setup-header','iVCne':'string','aLkfg':'scope','MOjdA':_0xec11cc(0x299),'grgih':function(_0x5a4f7b,_0x4803a5,_0x31f2f4,_0x3d7005){return _0x5a4f7b(_0x4803a5,_0x31f2f4,_0x3d7005);},'JYnrJ':_0xec11cc(0x1e6),'GOuZG':_0xec11cc(0x27e),'qCWvy':function(_0x2a15da,_0x4e0de5,_0x48c7d8){return _0x2a15da(_0x4e0de5,_0x48c7d8);},'IPNIP':'profile\x20encrypt-auth','Zmbvp':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','KMxFx':function(_0x401f6e,_0x18ccb0,_0x3da985){return _0x401f6e(_0x18ccb0,_0x3da985);},'qhOpG':_0xec11cc(0x2c3),'ljzux':'profile\x20config\x20list','GqJXy':'profile\x20config\x20unset','YjmbK':'key','NRdeE':_0xec11cc(0x2a8),'wxPPf':_0xec11cc(0x2b8),'RZzNx':'Remove\x20a\x20config\x20value','yyIlR':_0xec11cc(0x18e),'Mmdct':_0xec11cc(0x1ec),'CpWeA':'Switch\x20to\x20using\x20a\x20specific\x20profile','cHCtG':_0xec11cc(0x16c),'MAzih':_0xec11cc(0x21f),'eACsw':'config','RDUUd':_0xec11cc(0x227),'QWNKm':_0xec11cc(0x2e7)};return _0x38d8af['usage'](PROFILE_HELP)[_0xec11cc(0x173)](_0xec11cc(0x2f6),'Add\x20profile\x20configuration',_0x401eea=>{const _0x7456b8=_0xec11cc;return _0x401eea[_0x7456b8(0x18a)](_0x4c5093['mSYWO'],{'type':'string','description':'Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','demandOption':!![]})[_0x7456b8(0x274)]('ci',{'type':_0x7456b8(0x19e),'description':'Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','default':![]})['option'](_0x4c5093[_0x7456b8(0x257)],{'type':_0x7456b8(0x19e),'description':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','default':![]})[_0x7456b8(0x274)](_0x4c5093[_0x7456b8(0x29d)],{'type':_0x7456b8(0x269),'description':_0x7456b8(0x171)})['option']('force',{'type':_0x4c5093['FuUKN'],'description':_0x7456b8(0x2e2),'default':![]})['option']('cdp-endpoint',{'type':_0x7456b8(0x269),'description':'CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.'})['option'](_0x4c5093['mvCKr'],{'type':'boolean','description':_0x7456b8(0x209),'default':![]})[_0x7456b8(0x274)](_0x7456b8(0x28d),{'type':'boolean','description':_0x4c5093[_0x7456b8(0x24f)],'default':![]})['option'](_0x4c5093[_0x7456b8(0x29e)],{'type':_0x4c5093[_0x7456b8(0x2d4)],'array':!![],'description':_0x7456b8(0x182)})[_0x7456b8(0x274)](_0x4c5093[_0x7456b8(0x264)],{'type':'string','choices':['user',_0x4c5093[_0x7456b8(0x181)]],'description':'Where\x20to\x20store\x20the\x20profile:\x20user\x20(~/.ranger/)\x20or\x20project\x20(.ranger/)'});},async _0x472b47=>{const _0x38c87b=_0xec11cc;await _0x4c5093['grgih'](withTelemetry,'profile\x20add',_0x17e7fa=>addEnv(_0x472b47[_0x38c87b(0x1a1)],{'ci':_0x472b47['ci'],'skipAuth':_0x472b47['skip-auth'],'url':_0x472b47['url'],'force':_0x472b47[_0x38c87b(0x276)],'cdpEndpoint':_0x472b47[_0x38c87b(0x17a)],'allowInsecureLocalhost':_0x472b47['allow-insecure-localhost'],'safeMode':_0x472b47[_0x38c87b(0x28d)],'setupHeader':_0x472b47[_0x38c87b(0x1a2)],'scope':_0x472b47['scope']},_0x17e7fa),{'isElectron':Boolean(_0x472b47['cdp-endpoint'])});})['command'](_0x4c5093['Mmdct'],_0x4c5093['CpWeA'],_0x169825=>{const _0x363b12=_0xec11cc;return _0x169825[_0x363b12(0x18a)](_0x4c5093[_0x363b12(0x246)],{'type':'string','description':'Name\x20of\x20the\x20profile','demandOption':!![]});},async _0x2e0845=>{const _0x6c2ee4=_0xec11cc;await withTelemetry(_0x6c2ee4(0x254),()=>useEnv(_0x2e0845['profile-name']));})[_0xec11cc(0x173)]('encrypt-auth\x20<profile>',_0x4c5093[_0xec11cc(0x219)],_0x554587=>{const _0x3463d8=_0xec11cc;return _0x554587[_0x3463d8(0x18a)](_0x4c5093['JYnrJ'],{'type':_0x4c5093['iVCne'],'description':_0x4c5093[_0x3463d8(0x1e9)],'demandOption':!![]});},async _0x266e6f=>{const _0x4096b8=_0xec11cc;await _0x4c5093[_0x4096b8(0x1cc)](withTelemetry,_0x4c5093[_0x4096b8(0x23c)],()=>authEncrypt(_0x266e6f[_0x4096b8(0x1e6)]));})[_0xec11cc(0x173)]('ls',_0x4c5093[_0xec11cc(0x1c3)],()=>{},async()=>{const _0x184c6e=_0xec11cc;await _0x4c5093[_0x184c6e(0x1cc)](withTelemetry,_0x184c6e(0x2c0),()=>envList());})[_0xec11cc(0x173)]('update\x20<profile-name>',_0xec11cc(0x1c8),_0x1b9b4b=>{const _0x368909=_0xec11cc;return _0x1b9b4b[_0x368909(0x18a)](_0x4c5093[_0x368909(0x246)],{'type':_0x368909(0x269),'description':'Name\x20of\x20the\x20profile\x20to\x20update','demandOption':!![]})['option'](_0x4c5093['mvCKr'],{'type':_0x368909(0x19e),'description':_0x4c5093[_0x368909(0x2cd)]});},async _0x43d96b=>{const _0x4aa4e6=_0xec11cc;await _0x4c5093[_0x4aa4e6(0x22a)](withTelemetry,_0x4aa4e6(0x279),_0x2c0712=>updateEnv(_0x43d96b['profile-name'],_0x2c0712,{'allowInsecureLocalhost':_0x43d96b[_0x4aa4e6(0x2e6)]}));})[_0xec11cc(0x173)](_0x4c5093['eACsw'],_0x4c5093['RDUUd'],_0xabc6fc=>{const _0xefe7e=_0xec11cc,_0x5d6ceb={'KHAMG':'Profile\x20name','ajmDY':_0x4c5093['YjmbK'],'hvSve':'string','fcSJL':'Config\x20value','EmHzN':'profile\x20config\x20set','EUioV':_0x4c5093['JYnrJ']};return _0xabc6fc['usage'](PROFILE_CONFIG_HELP)[_0xefe7e(0x173)](_0x4c5093['NRdeE'],'Set\x20a\x20config\x20value',_0x293571=>{const _0x32666f=_0xefe7e;return _0x293571['positional'](_0x32666f(0x1e6),{'type':'string','description':_0x5d6ceb[_0x32666f(0x180)],'demandOption':!![]})[_0x32666f(0x18a)](_0x5d6ceb[_0x32666f(0x174)],{'type':_0x5d6ceb['hvSve'],'description':_0x32666f(0x2a1),'demandOption':!![]})['positional'](_0x32666f(0x2af),{'type':_0x5d6ceb['hvSve'],'description':_0x5d6ceb['fcSJL'],'demandOption':!![]});},async _0x1b5113=>{const _0x47289a=_0xefe7e;await withTelemetry(_0x5d6ceb[_0x47289a(0x1dd)],()=>configSet(_0x1b5113['profile'],_0x1b5113['key'],_0x1b5113['value']));})['command'](_0xefe7e(0x1ff),'Get\x20a\x20config\x20value',_0x3468b5=>{const _0x49fc5e=_0xefe7e;return _0x3468b5[_0x49fc5e(0x18a)](_0x49fc5e(0x1e6),{'type':'string','description':_0x4c5093['GOuZG'],'demandOption':!![]})[_0x49fc5e(0x18a)]('key',{'type':_0x49fc5e(0x269),'description':_0x4c5093[_0x49fc5e(0x1cd)],'demandOption':!![]});},async _0x5d1ff4=>{const _0x1a7aad=_0xefe7e;await _0x4c5093[_0x1a7aad(0x22a)](withTelemetry,_0x1a7aad(0x1f3),()=>configGet(_0x5d1ff4[_0x1a7aad(0x1e6)],_0x5d1ff4[_0x1a7aad(0x259)]));})['command'](_0xefe7e(0x1c5),'List\x20all\x20config\x20for\x20a\x20profile',_0x9b43e2=>{const _0x58a380=_0xefe7e;return _0x9b43e2[_0x58a380(0x18a)](_0x58a380(0x1e6),{'type':_0x4c5093[_0x58a380(0x2d4)],'description':_0x4c5093[_0x58a380(0x1e9)],'demandOption':!![]});},async _0x2586f7=>{await withTelemetry(_0x4c5093['ljzux'],()=>configList(_0x2586f7['profile']));})[_0xefe7e(0x173)](_0x4c5093[_0xefe7e(0x207)],_0x4c5093[_0xefe7e(0x2ed)],_0x35b03f=>{const _0x12ec13=_0xefe7e;return _0x35b03f['positional'](_0x5d6ceb[_0x12ec13(0x221)],{'type':_0x5d6ceb[_0x12ec13(0x1fb)],'description':'Profile\x20name','demandOption':!![]})['positional']('key',{'type':_0x5d6ceb[_0x12ec13(0x1fb)],'description':'Config\x20key\x20to\x20remove','demandOption':!![]});},async _0x3560fd=>{const _0x5d649c=_0xefe7e;await _0x4c5093[_0x5d649c(0x1cc)](withTelemetry,_0x4c5093[_0x5d649c(0x1a8)],()=>configUnset(_0x3560fd['profile'],_0x3560fd['key']));})['demandCommand'](0x1,_0x4c5093[_0xefe7e(0x2d5)]);})['demandCommand'](0x1,_0x4c5093[_0xec11cc(0x1a6)]);})['command']('status','Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)',()=>{},async()=>{const _0x19e275=_0x1b6b0a,_0x190afa={'BxvpL':_0x19e275(0x16d)};await withTelemetry(_0x190afa[_0x19e275(0x29a)],()=>status());})[_0x1b6b0a(0x173)](_0x1b6b0a(0x253),_0x1b6b0a(0x281),()=>{},async()=>{const _0x3d0b94=_0x1b6b0a,_0xa04e44={'PEQLY':function(_0x42549f,_0x505d6e,_0x465dc3){return _0x42549f(_0x505d6e,_0x465dc3);}};await _0xa04e44[_0x3d0b94(0x2c8)](withTelemetry,'update',()=>update());})[_0x1b6b0a(0x173)](_0x1b6b0a(0x251),_0x1b6b0a(0x2fb),()=>{},async()=>{const _0x5ca949=_0x1b6b0a,_0x222f9d={'suLuD':_0x5ca949(0x251)};await withTelemetry(_0x222f9d[_0x5ca949(0x25a)],async()=>{const _0x43f071=await getToken();if(!_0x43f071)throw new Error('No\x20token\x20found.\x20Run\x20`ranger\x20login`\x20to\x20authenticate.');console['log'](_0x43f071);});})['command']('go',_0x1b6b0a(0x265),_0x47145e=>{const _0x2d5a96=_0x1b6b0a,_0x599f3f={'wxlHW':_0x2d5a96(0x202),'YkLTB':_0x2d5a96(0x2ff),'ViaKT':'string','FfiRw':_0x2d5a96(0x1f2),'ZvIWD':_0x2d5a96(0x2d9),'ohSFb':'model','lNJro':_0x2d5a96(0x2a3),'Ieiej':_0x2d5a96(0x1ba),'SsJeu':_0x2d5a96(0x255),'qlesb':_0x2d5a96(0x19e),'WkeVv':'env','EoADq':_0x2d5a96(0x2fd),'HQRDO':_0x2d5a96(0x1cf)};return _0x47145e['option'](_0x2d5a96(0x1a4),{'type':'string','description':_0x599f3f['wxlHW']})['option']('profile',{'type':_0x2d5a96(0x269),'description':_0x599f3f[_0x2d5a96(0x25d)]})['option'](_0x2d5a96(0x1a7),{'type':_0x599f3f['ViaKT'],'description':'Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)'})[_0x2d5a96(0x274)](_0x599f3f['FfiRw'],{'type':'number','description':'Scenario\x20index\x20(1-based)'})[_0x2d5a96(0x274)]('start-path',{'type':_0x2d5a96(0x269),'description':_0x599f3f['ZvIWD']})['option'](_0x599f3f[_0x2d5a96(0x185)],{'type':_0x599f3f[_0x2d5a96(0x2d8)],'description':_0x599f3f[_0x2d5a96(0x225)]})['option']('headed',{'type':_0x2d5a96(0x19e),'description':'Force\x20headed\x20browser\x20for\x20this\x20run\x20only\x20(does\x20not\x20change\x20profile\x20config)','default':![]})[_0x2d5a96(0x274)]('debug-outcome',{'type':_0x599f3f['ViaKT'],'hidden':!![],'choices':['verified',_0x2d5a96(0x2fa),_0x2d5a96(0x1de),_0x599f3f[_0x2d5a96(0x304)],_0x2d5a96(0x25c)]})['option'](_0x599f3f[_0x2d5a96(0x248)],{'type':_0x599f3f['qlesb'],'hidden':!![]})['option'](_0x599f3f[_0x2d5a96(0x19a)],{'type':_0x2d5a96(0x269),'hidden':!![]})[_0x2d5a96(0x274)](_0x599f3f['EoADq'],{'type':'string','hidden':!![]})['option'](_0x599f3f[_0x2d5a96(0x2b2)],{'type':_0x2d5a96(0x301),'hidden':!![]});},async _0x32e100=>{await runGoCommand(_0x32e100);})['command']('auth',![],_0x498dcb=>{const _0x1bcb4e=_0x1b6b0a,_0x4bf1f9={'yLsSf':function(_0x366e23,_0x42a2f0,_0x370a2f){return _0x366e23(_0x42a2f0,_0x370a2f);},'UtufV':_0x1bcb4e(0x26c),'xHiRx':function(_0x4f8d9c,_0x106442){return _0x4f8d9c(_0x106442);},'ftPrb':'encrypt\x20<profile>'};return _0x498dcb[_0x1bcb4e(0x173)](_0x4bf1f9['ftPrb'],![],_0x56393a=>{const _0x5237af=_0x1bcb4e;return _0x56393a[_0x5237af(0x18a)](_0x5237af(0x1e6),{'type':'string','description':_0x5237af(0x27e),'demandOption':!![]});},async _0x275ab4=>{const _0x1ea546=_0x1bcb4e;_0x4bf1f9[_0x1ea546(0x1e4)](warnRenamed,_0x4bf1f9['UtufV'],'ranger\x20profile\x20encrypt-auth'),await _0x4bf1f9['xHiRx'](authEncrypt,_0x275ab4['profile']);})[_0x1bcb4e(0x2dd)](0x1,_0x1bcb4e(0x24c));},()=>{})[_0x1b6b0a(0x173)](_0x1b6b0a(0x195),![],_0xd60c4=>{const _0x3287ec=_0x1b6b0a,_0x5eb315={'pXJJm':'token','afuNu':'string','KIzgp':'Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','LstnK':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','vKiml':_0x3287ec(0x19e),'XvKXj':'Skip\x20authentication','DiDHe':_0x3287ec(0x1ca)};return _0xd60c4['positional'](_0x5eb315['pXJJm'],{'type':_0x5eb315['afuNu'],'description':_0x5eb315['KIzgp']})[_0x3287ec(0x274)]('skip-chromium',{'type':_0x3287ec(0x19e),'description':_0x5eb315[_0x3287ec(0x2da)],'default':![]})[_0x3287ec(0x274)](_0x3287ec(0x2c6),{'type':_0x3287ec(0x269),'choices':['user','project'],'description':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)'})['option'](_0x3287ec(0x239),{'type':'string','description':_0x3287ec(0x17b)})[_0x3287ec(0x274)](_0x3287ec(0x276),{'type':_0x5eb315['vKiml'],'description':_0x3287ec(0x2e2),'default':![]})['option']('skip-auth',{'type':_0x5eb315['vKiml'],'description':_0x5eb315['XvKXj'],'default':![]})[_0x3287ec(0x274)](_0x5eb315[_0x3287ec(0x183)],{'type':_0x5eb315[_0x3287ec(0x1d3)],'description':'Install\x20OS-level\x20dependencies\x20for\x20Chromium','default':![]});},async _0x4da75a=>{const _0x536a67=_0x1b6b0a,_0x48f069={'QjSjJ':function(_0x2980af,_0x3b9000,_0x334a9c){return _0x2980af(_0x3b9000,_0x334a9c);},'lvVks':_0x536a67(0x296)};_0x48f069['QjSjJ'](warnRenamed,'ranger\x20start','ranger\x20setup'),await withTelemetry(_0x48f069[_0x536a67(0x1a9)],_0x9d5f3e=>start(_0x4da75a[_0x536a67(0x194)],{'skipChromium':_0x4da75a[_0x536a67(0x2f1)],'skipAuth':_0x4da75a['skip-auth'],'withDeps':_0x4da75a[_0x536a67(0x1ca)],'scope':_0x4da75a[_0x536a67(0x2c6)],'url':_0x4da75a['url'],'force':_0x4da75a[_0x536a67(0x276)]},_0x9d5f3e));})[_0x1b6b0a(0x173)](_0x1b6b0a(0x2ab),![],_0x5942b2=>{const _0x2aa916=_0x1b6b0a,_0x29682c={'PvfdB':'env','WQjCi':'string','bMliB':_0x2aa916(0x1f7),'KLfvJ':_0x2aa916(0x1cf),'tEXgT':_0x2aa916(0x26f),'WFszP':_0x2aa916(0x301),'aloMU':_0x2aa916(0x2d9),'eZycM':'model','DSicp':_0x2aa916(0x189),'TQrSj':_0x2aa916(0x19e),'ayxVR':'debug-outcome','SQIHr':_0x2aa916(0x2bd),'kqzTC':_0x2aa916(0x1de),'GEKgG':'failed'};return _0x5942b2[_0x2aa916(0x274)](_0x29682c[_0x2aa916(0x2b6)],{'type':'string','description':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)'})['option']('task',{'type':_0x29682c['WQjCi'],'description':_0x29682c[_0x2aa916(0x1b3)]})['option'](_0x29682c['KLfvJ'],{'type':_0x2aa916(0x301),'description':_0x29682c['tEXgT']})['option'](_0x2aa916(0x1e6),{'type':'string','hidden':!![]})[_0x2aa916(0x274)](_0x2aa916(0x1a7),{'type':_0x29682c['WQjCi'],'hidden':!![]})[_0x2aa916(0x274)](_0x2aa916(0x1f2),{'type':_0x29682c['WFszP'],'hidden':!![]})['option']('start-path',{'type':_0x29682c[_0x2aa916(0x213)],'description':_0x29682c['aloMU']})['option'](_0x29682c[_0x2aa916(0x1c9)],{'type':_0x29682c['WQjCi'],'hidden':!![]})['option'](_0x29682c[_0x2aa916(0x2d7)],{'type':_0x29682c['TQrSj'],'hidden':!![],'default':![]})['option'](_0x29682c[_0x2aa916(0x28a)],{'type':_0x29682c['WQjCi'],'hidden':!![],'choices':[_0x29682c[_0x2aa916(0x260)],'partial',_0x29682c['kqzTC'],_0x29682c[_0x2aa916(0x2ef)],_0x2aa916(0x25c)]});},async _0xe39934=>{await runGoCommand(_0xe39934,!![]);})[_0x1b6b0a(0x173)](_0x1b6b0a(0x2d0),![],_0x214926=>{const _0xd884fc=_0x1b6b0a,_0x53753c={'pdvmi':'string','LbeOP':_0xd884fc(0x2c1),'QZxcs':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)'};return _0x214926['positional'](_0xd884fc(0x1c7),{'type':_0x53753c['pdvmi'],'description':_0x53753c['LbeOP'],'demandOption':!![]})[_0xd884fc(0x274)]('ci',{'type':'boolean','description':'Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','default':![]})[_0xd884fc(0x274)](_0xd884fc(0x1b0),{'type':'boolean','description':_0x53753c[_0xd884fc(0x306)],'default':![]});},async _0xe4c2ab=>{const _0x2367d8=_0x1b6b0a,_0x146803={'eTuSl':function(_0x2f21e4,_0x10d612,_0x4febe7){return _0x2f21e4(_0x10d612,_0x4febe7);},'ZvVIJ':_0x2367d8(0x2dc)};_0x146803['eTuSl'](warnRenamed,_0x2367d8(0x28e),'ranger\x20profile\x20add'),await withTelemetry(_0x146803['ZvVIJ'],_0x178060=>addEnv(_0xe4c2ab[_0x2367d8(0x1c7)],{'ci':_0xe4c2ab['ci'],'skipAuth':_0xe4c2ab[_0x2367d8(0x1b0)]},_0x178060));})['command'](_0x1b6b0a(0x238),![],_0x4baa7a=>{const _0xe114f9=_0x1b6b0a,_0x1a0de1={'hPmgC':'env-name','ExFWI':_0xe114f9(0x269),'TgJMH':_0xe114f9(0x211)};return _0x4baa7a['positional'](_0x1a0de1[_0xe114f9(0x20a)],{'type':_0x1a0de1[_0xe114f9(0x205)],'description':_0x1a0de1['TgJMH'],'demandOption':!![]});},async _0x56d031=>{const _0x2fc8fd=_0x1b6b0a,_0x47661b={'qfupj':function(_0x1848f7,_0x51825e,_0x2412bc){return _0x1848f7(_0x51825e,_0x2412bc);},'phBxc':_0x2fc8fd(0x19b)};_0x47661b['qfupj'](warnRenamed,_0x2fc8fd(0x1e1),_0x47661b['phBxc']),await withTelemetry(_0x2fc8fd(0x175),()=>useEnv(_0x56d031[_0x2fc8fd(0x1c7)]));})['command']('config',![],_0x45c478=>{const _0x455609=_0x1b6b0a,_0x289639={'hMrKQ':'Environment\x20name','ThQGy':_0x455609(0x259),'edMgd':_0x455609(0x269),'auThI':'ranger\x20config\x20set','uIqon':_0x455609(0x2b1),'rmhNL':function(_0x5666cd,_0x18b91e,_0x5a1d8f){return _0x5666cd(_0x18b91e,_0x5a1d8f);},'SydEm':_0x455609(0x1fd),'BNcKa':'env','TKEWE':_0x455609(0x2cf),'uEhxq':'ranger\x20profile\x20config\x20get','okLVq':_0x455609(0x208),'yRKpj':'config\x20list','uvlcB':'ranger\x20config\x20unset','PhbCZ':_0x455609(0x19c),'NYYck':function(_0x14a71b,_0x5ee12f,_0x2c1280){return _0x14a71b(_0x5ee12f,_0x2c1280);},'uzEQT':'set\x20<env>\x20<key>\x20<value>','cKTHt':'get\x20<env>\x20<key>','oQfSh':_0x455609(0x240),'gWrpn':_0x455609(0x2c7),'zZWpd':'You\x20must\x20specify\x20a\x20config\x20subcommand'};return _0x45c478[_0x455609(0x173)](_0x289639['uzEQT'],![],_0x75d924=>{const _0x3c2c35=_0x455609;return _0x75d924[_0x3c2c35(0x18a)]('env',{'type':'string','description':_0x289639[_0x3c2c35(0x2f3)],'demandOption':!![]})['positional'](_0x289639[_0x3c2c35(0x1fc)],{'type':'string','description':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','demandOption':!![]})[_0x3c2c35(0x18a)]('value',{'type':_0x289639[_0x3c2c35(0x20b)],'description':'Config\x20value','demandOption':!![]});},async _0x39771f=>{const _0x14ea15=_0x455609;warnRenamed(_0x289639['auThI'],_0x289639['uIqon']),await _0x289639[_0x14ea15(0x21d)](withTelemetry,_0x289639[_0x14ea15(0x21a)],()=>configSet(_0x39771f[_0x14ea15(0x2e5)],_0x39771f['key'],_0x39771f['value']));})[_0x455609(0x173)](_0x289639['cKTHt'],![],_0x4ea527=>{const _0xf6bce3=_0x455609;return _0x4ea527[_0xf6bce3(0x18a)](_0x289639['BNcKa'],{'type':'string','description':_0x289639[_0xf6bce3(0x2f3)],'demandOption':!![]})[_0xf6bce3(0x18a)]('key',{'type':_0x289639['edMgd'],'description':'Config\x20key','demandOption':!![]});},async _0x535b34=>{const _0x350531=_0x455609;warnRenamed(_0x289639[_0x350531(0x18d)],_0x289639['uEhxq']),await _0x289639['rmhNL'](withTelemetry,_0x289639[_0x350531(0x28b)],()=>configGet(_0x535b34['env'],_0x535b34[_0x350531(0x259)]));})[_0x455609(0x173)](_0x289639['oQfSh'],![],_0x2310b6=>{const _0x3a7229=_0x455609;return _0x2310b6[_0x3a7229(0x18a)]('env',{'type':_0x289639['edMgd'],'description':'Environment\x20name','demandOption':!![]});},async _0x4ef288=>{const _0x52d696=_0x455609;warnRenamed(_0x52d696(0x275),'ranger\x20profile\x20config\x20list'),await _0x289639['rmhNL'](withTelemetry,_0x289639['yRKpj'],()=>configList(_0x4ef288['env']));})[_0x455609(0x173)](_0x289639['gWrpn'],![],_0x29f1a5=>{const _0x3cfa38=_0x455609;return _0x29f1a5['positional'](_0x289639[_0x3cfa38(0x24e)],{'type':'string','description':'Environment\x20name','demandOption':!![]})['positional']('key',{'type':_0x3cfa38(0x269),'description':_0x3cfa38(0x2ce),'demandOption':!![]});},async _0x41ba16=>{const _0x40defc=_0x455609;_0x289639[_0x40defc(0x21d)](warnRenamed,_0x289639['uvlcB'],_0x289639[_0x40defc(0x2f2)]),await _0x289639['NYYck'](withTelemetry,_0x40defc(0x1f4),()=>configUnset(_0x41ba16['env'],_0x41ba16['key']));})[_0x455609(0x2dd)](0x1,_0x289639['zZWpd']);})[_0x1b6b0a(0x173)](_0x1b6b0a(0x2e5),![],_0x32e7b0=>{const _0x2d9f61=_0x1b6b0a,_0x36da06={'xqflL':'ranger\x20env\x20ls','IOvxw':'env\x20list','mRWQF':_0x2d9f61(0x269),'qPuLj':function(_0x13ad52,_0x59716c,_0x238911){return _0x13ad52(_0x59716c,_0x238911);},'AUcaB':'ranger\x20profile\x20update','iBmru':function(_0x120d0c,_0x572473,_0xd1827b){return _0x120d0c(_0x572473,_0xd1827b);},'mQWcW':_0x2d9f61(0x2f8)};return _0x32e7b0[_0x2d9f61(0x173)]('ls',![],()=>{},async()=>{const _0x1ca7a3=_0x2d9f61;warnRenamed(_0x36da06[_0x1ca7a3(0x270)],_0x1ca7a3(0x2a0)),await withTelemetry(_0x36da06['IOvxw'],()=>envList());})['command'](_0x36da06[_0x2d9f61(0x2a7)],![],_0x258f18=>{const _0x30ea39=_0x2d9f61;return _0x258f18[_0x30ea39(0x18a)]('env-name',{'type':_0x36da06['mRWQF'],'description':'Name\x20of\x20the\x20environment\x20to\x20update','demandOption':!![]});},async _0x533676=>{const _0x35e244=_0x2d9f61;_0x36da06['qPuLj'](warnRenamed,_0x35e244(0x16f),_0x36da06[_0x35e244(0x1c0)]),await _0x36da06['iBmru'](withTelemetry,'env\x20update',_0x1c7105=>updateEnv(_0x533676[_0x35e244(0x1c7)],_0x1c7105));})[_0x2d9f61(0x2dd)](0x1,_0x2d9f61(0x25f));})['command']('feature',![],_0x134c49=>{const _0x331664=_0x1b6b0a,_0x44613d={'yPmLc':'string','VaEll':'Feature\x20review\x20name','dPSiK':'Feature\x20review\x20description','aBZnL':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','CkdPR':'array','Glwpb':function(_0x3ea19b,_0xc7f73a,_0x7f8448){return _0x3ea19b(_0xc7f73a,_0x7f8448);},'KHnWr':'ranger\x20create','lyTPC':_0x331664(0x305),'UQBZr':'feature\x20create','xYTsb':_0x331664(0x287),'mAmmE':'boolean','SzYtL':_0x331664(0x176),'iAfRN':_0x331664(0x178),'KyWui':'ranger\x20feature\x20list','ObSEE':function(_0x551273,_0x8143e,_0x271463){return _0x551273(_0x8143e,_0x271463);},'wbdaW':'Feature\x20review\x20ID','zDVNg':function(_0x263f87,_0x3a94ed,_0x4a312d){return _0x263f87(_0x3a94ed,_0x4a312d);},'UiPjk':_0x331664(0x224),'iPHyH':'ranger\x20show','YOwuL':_0x331664(0x2be),'fvDEH':_0x331664(0x1e3),'WIOwn':'feature\x20resume','aFhcy':'description','aOnrF':_0x331664(0x16e),'MUxgy':_0x331664(0x1cb),'dyFLB':_0x331664(0x21b),'NXRtB':'ranger\x20feature\x20delete','JBwDt':'Feature\x20review\x20ID\x20to\x20restore','MeoFu':'ranger\x20feature\x20restore','fZscN':function(_0x3ae9c3,_0x3b1646,_0x5d8ea4){return _0x3ae9c3(_0x3b1646,_0x5d8ea4);},'Xhjbj':'feature\x20restore','LKSyO':_0x331664(0x1ad),'CqbkM':_0x331664(0x19d),'bEPEg':'You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand'};return _0x134c49[_0x331664(0x173)]('create\x20<name>',![],_0x245933=>{const _0x152ef5=_0x331664;return _0x245933['positional']('name',{'type':_0x44613d['yPmLc'],'description':_0x44613d[_0x152ef5(0x1dc)],'demandOption':!![]})['option']('description',{'type':'string','alias':'d','description':_0x44613d['dPSiK']})['option'](_0x152ef5(0x2e4),{'type':_0x152ef5(0x2ba),'alias':'c','description':_0x44613d[_0x152ef5(0x292)]})[_0x152ef5(0x274)](_0x152ef5(0x1f2),{'type':_0x44613d[_0x152ef5(0x2c4)],'hidden':!![]});},async _0x4de3a9=>{const _0x352d2=_0x331664;_0x44613d[_0x352d2(0x22c)](warnRenamed,'ranger\x20feature\x20create',_0x44613d['KHnWr']),warnFlagRenamed(_0x44613d['KHnWr'],_0x44613d[_0x352d2(0x27c)],'--scenario');const _0x14a493=_0x4de3a9['scenario']||_0x4de3a9['checklist'];await _0x44613d[_0x352d2(0x22c)](withTelemetry,_0x44613d[_0x352d2(0x297)],()=>featureCreate(_0x4de3a9[_0x352d2(0x18c)],{'description':_0x4de3a9['description'],'scenarios':_0x14a493}));})[_0x331664(0x173)]('list',![],_0x37c1d5=>{const _0x5a9b54=_0x331664;return _0x37c1d5[_0x5a9b54(0x274)](_0x44613d[_0x5a9b54(0x2f7)],{'type':_0x44613d['mAmmE'],'description':'Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch'})[_0x5a9b54(0x274)](_0x44613d[_0x5a9b54(0x284)],{'type':'number','alias':'l','description':_0x5a9b54(0x2aa),'default':0xa})['option'](_0x5a9b54(0x1d8),{'type':'number','alias':'o','description':_0x5a9b54(0x283),'default':0x0})[_0x5a9b54(0x274)]('include-deleted',{'type':_0x5a9b54(0x19e),'alias':'d','description':_0x44613d[_0x5a9b54(0x1e2)],'default':![]});},async _0x328eba=>{const _0x36bdf1=_0x331664;warnRenamed(_0x44613d[_0x36bdf1(0x1f5)],'ranger\x20list'),await _0x44613d['ObSEE'](withTelemetry,_0x36bdf1(0x288),()=>featureList({'currentBranch':_0x328eba[_0x36bdf1(0x287)],'limit':_0x328eba[_0x36bdf1(0x176)],'offset':_0x328eba[_0x36bdf1(0x1d8)],'includeDeleted':_0x328eba[_0x36bdf1(0x172)]}));})['command']('show\x20[id]',![],_0x477128=>{return _0x477128['positional']('id',{'type':_0x44613d['yPmLc'],'description':_0x44613d['wbdaW']});},async _0x145cdc=>{const _0x2716f8=_0x331664;_0x44613d['zDVNg'](warnRenamed,_0x44613d[_0x2716f8(0x215)],_0x44613d[_0x2716f8(0x2a6)]),await _0x44613d['Glwpb'](withTelemetry,_0x44613d['YOwuL'],()=>featureShow(_0x145cdc['id']));})[_0x331664(0x173)](_0x44613d['LKSyO'],![],_0x198394=>{const _0x2ef307=_0x331664;return _0x198394[_0x2ef307(0x18a)]('id',{'type':'string','description':_0x2ef307(0x1a5)});},async _0x24b730=>{const _0x5de4eb=_0x331664;_0x44613d[_0x5de4eb(0x1bc)](warnRenamed,_0x44613d['fvDEH'],_0x5de4eb(0x2e0)),await withTelemetry(_0x44613d[_0x5de4eb(0x1fe)],()=>featureResume(_0x24b730['id']));})[_0x331664(0x173)]('add-checklist-item\x20<description>',![],_0x2037b5=>{const _0x19daf5=_0x331664;return _0x2037b5['positional'](_0x44613d[_0x19daf5(0x290)],{'type':_0x19daf5(0x269),'description':_0x44613d['aOnrF'],'demandOption':!![]})['option']('id',{'type':_0x44613d['yPmLc'],'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x5b555a=>{const _0xc2a56d=_0x331664;_0x44613d[_0xc2a56d(0x302)](warnRenamed,'ranger\x20feature\x20add-checklist-item',_0x44613d['MUxgy']),await withTelemetry('feature\x20add-checklist-item',()=>featureAddScenario(_0x5b555a[_0xc2a56d(0x1eb)],_0x5b555a['id']));})[_0x331664(0x173)](_0x331664(0x2bb),![],_0x353079=>{const _0x4fa038=_0x331664;return _0x353079['positional']('id',{'type':'string','description':_0x4fa038(0x29f)});},async _0x3ae5e6=>{const _0x295972=_0x331664;warnRenamed(_0x295972(0x2ca),_0x44613d['dyFLB']),await withTelemetry('feature\x20get-feedback',()=>featureGetReview(_0x3ae5e6['id']));})[_0x331664(0x173)]('delete\x20[id]',![],_0x3b39af=>{const _0x12d95a=_0x331664;return _0x3b39af[_0x12d95a(0x18a)]('id',{'type':_0x12d95a(0x269),'description':_0x44613d['wbdaW']});},async _0x1ece15=>{const _0x4ab1a3=_0x331664;warnRenamed(_0x44613d[_0x4ab1a3(0x2f0)],'ranger\x20delete'),await _0x44613d['ObSEE'](withTelemetry,_0x4ab1a3(0x1c1),()=>featureDelete(_0x1ece15['id']));})[_0x331664(0x173)](_0x44613d['CqbkM'],![],_0x3ec0f5=>{const _0x4e3c49=_0x331664;return _0x3ec0f5['positional']('id',{'type':_0x4e3c49(0x269),'description':_0x44613d[_0x4e3c49(0x1ce)],'demandOption':!![]});},async _0x3df10e=>{const _0x598cef=_0x331664;warnRenamed(_0x44613d['MeoFu'],_0x598cef(0x1f9)),await _0x44613d[_0x598cef(0x217)](withTelemetry,_0x44613d['Xhjbj'],()=>featureRestore(_0x3df10e['id']));})['demandCommand'](0x1,_0x44613d['bEPEg']);})['command'](_0x1b6b0a(0x241),![],_0xdbbdfe=>{const _0x4e13b9=_0x1b6b0a,_0x3c06e5={'yrboE':_0x4e13b9(0x2f5),'xGhEP':'hook:enable','KeNGV':function(_0x3d77fe,_0x5607dd,_0x199770){return _0x3d77fe(_0x5607dd,_0x199770);},'ySwoZ':'Enable\x20Ranger\x20hooks\x20for\x20this\x20session','MADBT':'disable','LbjHQ':_0x4e13b9(0x2a9),'nfPAN':'string','vsPVy':'Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)','pAVJP':_0x4e13b9(0x1e8)};return _0xdbbdfe['command']('enable',_0x3c06e5['ySwoZ'],_0x45537f=>{const _0x584a1e=_0x4e13b9;return _0x45537f['option'](_0x584a1e(0x1e8),{'type':'string','description':_0x3c06e5['yrboE']});},async _0x1eb354=>{const _0x59174a=_0x4e13b9;await withTelemetry(_0x3c06e5['xGhEP'],()=>hook(_0x59174a(0x2ad),_0x1eb354['session-id']));})[_0x4e13b9(0x173)](_0x3c06e5['MADBT'],_0x3c06e5['LbjHQ'],_0xc44fdf=>{const _0x49d436=_0x4e13b9;return _0xc44fdf[_0x49d436(0x274)]('session-id',{'type':'string','description':_0x3c06e5[_0x49d436(0x1ac)]});},async _0x5a1678=>{const _0x174bdf=_0x4e13b9;await _0x3c06e5['KeNGV'](withTelemetry,_0x174bdf(0x23f),()=>hook('disable',_0x5a1678[_0x174bdf(0x1e8)]));})['option'](_0x4e13b9(0x18c),{'type':_0x3c06e5[_0x4e13b9(0x18f)],'description':_0x3c06e5[_0x4e13b9(0x1c6)]})['option'](_0x3c06e5['pAVJP'],{'type':_0x3c06e5[_0x4e13b9(0x18f)],'description':_0x3c06e5[_0x4e13b9(0x1ac)]});},async _0x2f5e72=>{const _0xc1818f=_0x1b6b0a,_0x1d6af9={'qKPKc':function(_0x13e5be,_0x48e2a2,_0xcc8600){return _0x13e5be(_0x48e2a2,_0xcc8600);},'mztsI':_0xc1818f(0x1e8)};_0x2f5e72[_0xc1818f(0x18c)]&&await _0x1d6af9[_0xc1818f(0x2b4)](hook,_0x2f5e72[_0xc1818f(0x18c)],_0x2f5e72[_0x1d6af9['mztsI']]);})['demandCommand'](0x1,'You\x20must\x20specify\x20a\x20command')['strictCommands']()[_0x1b6b0a(0x1ef)](async(_0x27ecc2,_0x5cf765,_0x46182f)=>{const _0x3e84e9=_0x1b6b0a,_0x413ed3={'qlwlz':function(_0x15b79e,_0x418145){return _0x15b79e(_0x418145);},'fGCbw':function(_0x55cb39,_0x2629e5,_0x142bc7){return _0x55cb39(_0x2629e5,_0x142bc7);},'coynl':_0x3e84e9(0x21c)},_0x1370c4=_0x413ed3['qlwlz'](sanitizeArgs,process[_0x3e84e9(0x1c4)]['slice'](0x2)),_0x310e78=_0x413ed3['fGCbw'](getErrorType,_0x27ecc2,_0x5cf765);if(_0x27ecc2&&_0x27ecc2[_0x3e84e9(0x199)](_0x3e84e9(0x243))){const _0x472dd4=process[_0x3e84e9(0x1c4)][0x2];console[_0x3e84e9(0x2d2)](_0x3e84e9(0x1e0)+_0x472dd4),console[_0x3e84e9(0x2d2)](_0x413ed3['coynl']);}else{if(_0x27ecc2)console[_0x3e84e9(0x2d2)]('\x0a'+_0x27ecc2+'\x0a');else _0x5cf765&&console[_0x3e84e9(0x2d2)]('\x0aError:\x20'+_0x5cf765['message']+'\x0a');}await logDesirePath({'rawCommand':_0x1370c4,'errorMessage':_0x27ecc2||_0x5cf765?.['message'],'errorType':_0x310e78});const _0x846386=getCurrentCollector();_0x846386&&await _0x846386[_0x3e84e9(0x203)](_0x5cf765||new Error(_0x27ecc2||_0x3e84e9(0x1e5))),process['exit'](0x1);})[_0x1b6b0a(0x2e9)](_0x1b6b0a(0x261)+_0x1b6b0a(0x229)+'\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)')[_0x1b6b0a(0x212)]()['alias']('help','h')['parse']();
|
|
2
|
+
const _0x45d515=_0xe1c5;(function(_0x3a60b2,_0xa34120){const _0x57e8dd=_0xe1c5,_0x36e373=_0x3a60b2();while(!![]){try{const _0x5206ef=-parseInt(_0x57e8dd(0x33e))/0x1+-parseInt(_0x57e8dd(0x2d8))/0x2+parseInt(_0x57e8dd(0x248))/0x3+parseInt(_0x57e8dd(0x31e))/0x4+-parseInt(_0x57e8dd(0x25e))/0x5+parseInt(_0x57e8dd(0x1df))/0x6+parseInt(_0x57e8dd(0x2cf))/0x7*(parseInt(_0x57e8dd(0x255))/0x8);if(_0x5206ef===_0xa34120)break;else _0x36e373['push'](_0x36e373['shift']());}catch(_0x132b7c){_0x36e373['push'](_0x36e373['shift']());}}}(_0x26fe,0x68b68));import _0x59b7c5 from'dotenv';import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0xa7ac6f=_0xe1c5,_0x3bd4a8={'ZgQax':function(_0x2a8397,_0x4a596d,_0x3bba7b){return _0x2a8397(_0x4a596d,_0x3bba7b);},'PAfdt':_0xa7ac6f(0x30f),'JCOAW':'.env'};let _0x5ca55d=process[_0xa7ac6f(0x2a3)]();const _0x5cacfe=parse(_0x5ca55d)['root'];while(_0x5ca55d!==_0x5cacfe){if(existsSync(_0x3bd4a8[_0xa7ac6f(0x284)](join,_0x5ca55d,_0x3bd4a8[_0xa7ac6f(0x22d)]))||existsSync(join(_0x5ca55d,_0x3bd4a8['JCOAW'])))return _0x5ca55d;_0x5ca55d=dirname(_0x5ca55d);}return process['cwd']();}_0x59b7c5['config']({'path':join(findProjectRoot(),_0x45d515(0x1ee))});import _0x5255ae 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';function _0x26fe(){const _0x302c83=['error','start','Base\x20URL\x20of\x20the\x20running\x20app','PiubK','Where\x20to\x20store\x20the\x20profile','CwvVv','description','add-checklist-item\x20<description>','Cenfc','RNkPA','boolean','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','vSlSg','option','Optional\x20feature\x20ID','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','JLswU','Example:\x20ranger\x20create\x20my-feature','deps','Update\x20authentication\x20for\x20an\x20existing\x20profile','GYbzm','FOOWE','feature\x20restore','Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','exitCode','OGNdI','mcp','baRYn','\x20\x20https://docs.ranger.net\x0a','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','Skip\x20Chromium\x20browser\x20check\x20and\x20installation','ranger\x20feature\x20restore','VPUQf','Task\x20description\x20(defaults\x20to\x20scenario\x20description)','DeNvS','tfyQM','CYibI','2364216sLnbyT','number','Wrivq','GkIqm','update','config\x20get','CRrcm','map','setup:all','teUpf','mMlPr','cdp-endpoint','vZGJy','POuwN','sdWrB','.env','config\x20unset','MZgqY','BoHLu','Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)','setup:profiles','PLurw','pkcHa','RFbAn','nfklv','Print\x20the\x20migration\x20plan\x20without\x20mutating\x20anything.','iZqeC','YQTtt','ranger\x20get-review','name','MPFSD','delete\x20[id]','failed','You\x20must\x20specify\x20an\x20auth\x20subcommand','Skip\x20authentication','setup:deps','Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)','Unknown\x20command','base-url','kNRLR','WZCUX','print-access-token','QwwGK','sSMkj','repeat','cPdTe','AErmd','Install\x20for\x20OpenCode\x20instead\x20of\x20Claude\x20Code','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)','EwmRv','You\x20must\x20specify\x20a\x20config\x20subcommand','Install\x20Chromium\x20browser\x20binary','get\x20<env>\x20<key>','Kdoad','feature','CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.','RXBtX','You\x20must\x20specify\x20a\x20command','scope','BNSmV','NHDMO','opencode','hTuGC','env-name','list\x20<env>','\x20INCOMPLETE','sOPqo','Authenticate\x20with\x20Ranger','organizationName','Store\x20RANGER_TEST_USERNAME/PASSWORD\x20env\x20values\x20on\x20the\x20migrated\x20profile.','ranger\x20profile\x20config\x20unset','wiaHO','--task','FehOy','EGNoc','profile\x20add','set\x20<env>\x20<key>\x20<value>','rfQyG','PAfdt','ranger\x20show','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','ckAjA','tSggM','yes','kuAdK','FAkCW','verify-feature','KzXPN','Environment\x20name','No\x20token\x20found.\x20Run\x20`ranger\x20login`\x20to\x20authenticate.','show\x20[id]','CqUzq','strictCommands','Subcommand\x20or\x20API\x20token\x20(rngr_...)','session-id','MHNFV','edit-scenario\x20<description>','NOeko','vRRAs','limit','offset','Summary:\x20','Remove\x20a\x20config\x20value','UMIgu','XmDPR','1218684BglXJH','env\x20update','version','GjFdr','zwvdf','key','usage','scenario','vSRrh','project','Skip\x20interactive\x20confirmation\x20prompts\x20(e.g.\x20cloud-profile\x20auto-route).','safe-mode','rrgaL','80VMzpUv','positional','partial','ecwnS','pOBZx','json','argv','Cloud\x20profile\x20name','notes','2323315VxRlwG','KSpgu','login\x20<name>','Scenario\x20description','Name\x20of\x20the\x20profile\x20to\x20update','List\x20all\x20config\x20for\x20a\x20profile','Skip\x20browser\x20authentication','RlJMs','KjovQ','Unknown\x20error','setup-header','ranger\x20create','array','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','Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)','\x20VERIFIED','vHGMH','uJBlt','ranger\x20env\x20ls','bQsjv','yJXhF','XvWqo','verified','gcGgp','tgixr','token','gxHlA','nZaqr','WuaVg','PxaFv','Feature\x20review\x20ID','profiles','pqDqS','env','OBkeZ','rTdzR','trackCommandError','Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','ZgQax','List\x20all\x20profiles','QWrpk','--env','TdDCj','kurXv','wkZjz','ranger\x20go','blocked','resume','Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','mcp-bootstrap','add\x20env\x20<env-name>','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','Umhuv','evaluation','feature\x20get-feedback','task','soyXo','XbNyK','Config\x20key','ranger\x20profile\x20config\x20get','wzJHt','NCdiO','gLlag','ranger\x20profile\x20config\x20list','ggzoS','test','Override\x20the\x20profile\x20base\x20URL\x20for\x20this\x20run\x20(e.g.,\x20https://localhost:3003).\x20Also\x20respects\x20RANGER_BASE_URL.','wHdxq','scriptName','cwd','AtcUq','rMuqj','Feature\x20review\x20description','ssyDT','exit','kypDb','xmNik','Feature\x20review\x20ID\x20to\x20restore','login','Feature\x20review\x20name','Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','lFAFh','value','Fjcfa','Get\x20a\x20config\x20value','string','Dcnto','report','aLpLL','SLjDx','headed','profile\x20migrate','qcOJn','jFRre','dry-run','url','Install\x20OS-level\x20dependencies\x20for\x20Chromium\x20(apt\x20packages\x20for\x20Debian/Ubuntu\x20containers)','start-path','test_output','Clear\x20all\x20config\x20overrides\x20for\x20a\x20profile\x20(cloud\x20profiles\x20only)','ENUNP','WoOka','not_configured','Install\x20scope\x20for\x20skills','BEYge','xPkLg','rdriY','MffeN','PGgYv','KfkQt','nRRKl','include-deleted','Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','326067CYZDjq','oaQdD','DkKDK','user','PsuaG','ranger\x20feature\x20delete','model','poaoi','list\x20<profile>','708462ZoRxup','fqPrH','Authenticated\x20via\x20MCP,\x20but\x20failed\x20to\x20verify:\x20','current-branch','Config\x20key\x20to\x20remove','Set\x20up\x20a\x20local\x20browser\x20profile','rvekk','profile\x20config\x20reset','unhandledRejection','Error:\x20`ranger\x20profile\x20login`\x20is\x20headless\x20—\x20set\x20RANGER_TEST_USERNAME\x20and\x20RANGER_TEST_PASSWORD\x20before\x20running.','profile\x20config\x20list','zzFDM','Config\x20value','alias','ranger\x20profile\x20ls','obLyD','CgjAU','Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','Switch\x20to\x20using\x20a\x20specific\x20profile','get-review\x20[id]','mBpds','HJVji','show','kYupn','Evaluation:\x20','allow-insecure-localhost','WowKr','ranger\x20auth\x20encrypt','Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)','uVpWA','You\x20must\x20specify\x20an\x20env\x20subcommand','claude','QmCVp','help','skip-auth','Mkrbi','EKnpw','restore\x20<id>','PZeRN','setup-ci','yELyI','resume\x20[id]','McSiA','force','ranger\x20feature\x20create','ranger\x20feature\x20list','profile','Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup','use\x20<profile-name>','epilogue','oZGpD','ZxuOv','txxiH','eLXsc','ranger\x20start','.ranger','Scenario\x20index\x20(1-based)','BcQMk','Ranger\x20API\x20token','Allow\x20localhost\x20content\x20in\x20deployed\x20environments','add-scenario','profile\x20config\x20get','command','ranger\x20feature\x20show','\x27.\x20Session\x20written\x20to\x20cloud\x20profile.','Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)','parse','incomplete','AZGLN','kqpGC','305352qjFehE','AtNmI','demandCommand','tMQeE','Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard).\x20Also\x20respects\x20RANGER_START_PATH.','ranger\x20env\x20update','SDLOm','Install\x20skills\x20for\x20OpenCode','profile-name','UenXh','ranger\x20profile\x20encrypt-auth','ranger\x20restore','ckMge','WjEah','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','skip-chromium','axaGL','YBeji','--profile','ranger\x20list','qZDaO','profile\x20use','encrypt-auth\x20<profile>','TNmye','WGQWS','exclude-scenario','NflQT','migrate\x20[profile-name]','Profile\x20name','--checklist','QysXq','EtFgy','94614DJFtlq','hUhsQ','create\x20<name>','bfYcE','status','teJaz','MlZXc','tokenOrSubcommand','MhjOV','vmhsR','kvmgO','--notes','message','puqkf','with-deps','ooMzt','ElisN','save-creds','log','get-feedback\x20[id]','skillup','get\x20<profile>\x20<key>','muiKC','summary','NODE_ENV','cnyKZ','mlbOq','item','update\x20<profile-name>','ranger\x20profile\x20config\x20set'];_0x26fe=function(){return _0x302c83;};return _0x26fe();}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{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'](_0x45d515(0x2e0),async _0x6c7b6d=>{const _0x57eedc=_0x45d515,_0x1f07f3=getCurrentCollector();_0x1f07f3&&await _0x1f07f3['trackCommandError'](_0x6c7b6d),process[_0x57eedc(0x374)]=0x1;});function _0xe1c5(_0x36c94e,_0x4f01f6){_0x36c94e=_0x36c94e-0x1de;const _0x26fe26=_0x26fe();let _0xe1c56c=_0x26fe26[_0x36c94e];return _0xe1c56c;}const rawArgs=process[_0x45d515(0x25b)]['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=_0x45d515(0x26b),PROFILE_CONFIG_HELP=_0x45d515(0x36b);function warnRenamed(_0x228d8d,_0x383138){const _0x105be8=_0x45d515;console[_0x105be8(0x35c)]('\x0a'+_0x228d8d+'\x20is\x20now\x20'+_0x383138+'\x0a');}function argUsed(_0x49591f){return rawArgs['some'](_0x40046d=>_0x40046d===_0x49591f||_0x40046d['startsWith'](_0x49591f+'='));}function warnFlagRenamed(_0x45d88b,_0x423d3f,_0x3f555f){argUsed(_0x423d3f)&&warnRenamed(_0x45d88b+'\x20'+_0x423d3f,_0x45d88b+'\x20'+_0x3f555f);}async function runGoCommand(_0x338066,_0x4190a5=![]){const _0x47d4e9=_0x45d515,_0xa3c46={'KSpgu':function(_0x3b6d21,_0x368a2d){return _0x3b6d21+_0x368a2d;},'xPkLg':function(_0x2c4701,_0x2136ad,_0x1294f7,_0x2cb7fd){return _0x2c4701(_0x2136ad,_0x1294f7,_0x2cb7fd);},'IsDRl':_0x47d4e9(0x28b),'kbaiH':_0x47d4e9(0x349),'PAhks':function(_0x5e2696,_0x1d5c53,_0x199981,_0x48147e){return _0x5e2696(_0x1d5c53,_0x199981,_0x48147e);},'rvekk':function(_0x132da3){return _0x132da3();},'SDLOm':function(_0x4d329c,_0x3a407e){return _0x4d329c(_0x3a407e);},'BZIPH':_0x47d4e9(0x205),'yFStF':'debug-outcome','fxcPE':'debug-address-comments','cnyKZ':function(_0x3b2a52,_0x4a1623){return _0x3b2a52===_0x4a1623;},'NOeko':_0x47d4e9(0x26d),'McSiA':_0x47d4e9(0x257),'PEfen':_0x47d4e9(0x274)};_0x4190a5&&warnRenamed('ranger\x20verify-feature','ranger\x20go');_0xa3c46[_0x47d4e9(0x2c7)](warnFlagRenamed,_0x47d4e9(0x28b),_0x47d4e9(0x287),_0x47d4e9(0x330)),warnFlagRenamed(_0xa3c46['IsDRl'],_0x47d4e9(0x227),_0xa3c46['kbaiH']),_0xa3c46['PAhks'](warnFlagRenamed,'ranger\x20go','--item','--scenario');const _0x2a371f=await loadRangerConfig(),_0x407d6d=_0xa3c46[_0x47d4e9(0x2de)](isByokEnabled),_0x521022=_0x338066['model'],_0x10b533=_0x2a371f['model'],_0x1a3d6a=await _0xa3c46[_0x47d4e9(0x324)](verifyFeature,{'featureId':_0x338066['feature'],'profile':_0x338066['profile']??_0x338066['env']??process['env']['RANGER_PROFILE'],'notes':_0x338066[_0x47d4e9(0x25d)]??_0x338066[_0x47d4e9(0x295)],'scenario':_0x338066['scenario']??_0x338066['item'],'startPath':_0x338066[_0x47d4e9(0x2bf)],'baseUrl':_0x338066[_0xa3c46['BZIPH']],'debugOutcome':_0x338066[_0xa3c46['yFStF']],'debugAddressComments':_0x338066[_0xa3c46['fxcPE']],'headed':_0x338066[_0x47d4e9(0x2b8)],'byokEnabled':_0x407d6d,'flagVerifyModel':_0x521022,'configVerifyModel':_0x10b533});console[_0x47d4e9(0x350)](_0xa3c46[_0x47d4e9(0x25f)]('\x0a','='[_0x47d4e9(0x20b)](0x3c))),console[_0x47d4e9(0x350)](_0xa3c46[_0x47d4e9(0x357)](_0x1a3d6a['evaluation'],_0x47d4e9(0x274))?_0xa3c46[_0x47d4e9(0x240)]:_0x1a3d6a[_0x47d4e9(0x293)]===_0x47d4e9(0x31b)?_0x47d4e9(0x220):_0xa3c46[_0x47d4e9(0x357)](_0x1a3d6a['evaluation'],_0xa3c46[_0x47d4e9(0x302)])?'\x20PARTIAL':_0xa3c46[_0x47d4e9(0x357)](_0x1a3d6a['evaluation'],_0x47d4e9(0x28c))?'\x20BLOCKED':'\x20FAILED'),console['log']('='['repeat'](0x3c)),console[_0x47d4e9(0x350)](_0x47d4e9(0x244)+_0x1a3d6a[_0x47d4e9(0x355)]),console['log'](_0x47d4e9(0x2f0)+_0x1a3d6a[_0x47d4e9(0x293)]),console[_0x47d4e9(0x350)]('Reason:\x20'+_0x1a3d6a['evaluationReason']),_0x1a3d6a['issues']?.['length']&&(console['log']('\x0aIssues:'),_0x1a3d6a['issues']['forEach']((_0x51aa3b,_0x442a6f)=>{const _0x5b1d6d=_0x47d4e9;console['log']('\x0a'+_0xa3c46['KSpgu'](_0x442a6f,0x1)+'.\x20['+_0x51aa3b['severity']+']\x20'+_0x51aa3b[_0x5b1d6d(0x362)]);})),process[_0x47d4e9(0x2a8)](_0xa3c46[_0x47d4e9(0x357)](_0x1a3d6a['evaluation'],_0xa3c46['PEfen'])?0x0:0x1);}export function buildParser(_0x421a87){const _0x379555=_0x45d515,_0x5068f9={'CwvVv':_0x379555(0x1fc),'NCdiO':_0x379555(0x2b3),'LnbYE':'description','kvmgO':_0x379555(0x2a6),'wkZjz':'array','xgVdd':function(_0x239eb8,_0x195521){return _0x239eb8+_0x195521;},'vZGJy':_0x379555(0x36d),'nRRKl':function(_0x217b66,_0x4679c5,_0x3d3a6c,_0x5180cd){return _0x217b66(_0x4679c5,_0x3d3a6c,_0x5180cd);},'dcXPK':_0x379555(0x269),'EKnpw':function(_0x11e27a,_0x2d034a,_0x26a240){return _0x11e27a(_0x2d034a,_0x26a240);},'EPrSz':_0x379555(0x242),'vSlSg':'number','ZymOi':_0x379555(0x243),'WGQWS':'Number\x20of\x20feature\x20reviews\x20to\x20skip','PiubK':'Include\x20soft-deleted\x20feature\x20reviews','FehOy':'list','WuaVg':_0x379555(0x32c),'muiKC':_0x379555(0x261),'bmYMi':_0x379555(0x367),'qcOJn':'New\x20scenario\x20description','kAefr':_0x379555(0x24f),'dnsFj':'edit-scenario','xGxSu':'exclude-scenario','BcQMk':'Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)','WowKr':'Output\x20structured\x20JSON\x20data\x20instead\x20of\x20markdown','yELyI':'Feature\x20review\x20ID','teJaz':'delete','ckMge':'restore','VPUQf':_0x379555(0x34c),'IUmtZ':_0x379555(0x2be),'UjiAA':'setup:login','KjovQ':'user','HJVji':'project','TYkLX':'Install\x20scope\x20for\x20plugin\x20and\x20skills','mBpds':function(_0x31bf0e,_0x36186e,_0x2b92e7){return _0x31bf0e(_0x36186e,_0x2b92e7);},'tMQeE':'setup:skills','NcEFk':_0x379555(0x201),'uOvRQ':'Install\x20OS-level\x20dependencies\x20for\x20Chromium','zwvdf':'allow-insecure-localhost','FumuL':_0x379555(0x313),'AErmd':'mcp-bootstrap','igTIu':_0x379555(0x376),'UkZyK':'Ranger\x20API\x20token\x20(rngr_...)','mlbOq':function(_0x2bd23a){return _0x2bd23a();},'TdDCj':'Failed\x20to\x20exchange\x20MCP\x20refresh\x20token\x20for\x20a\x20CLI\x20token.','aLpLL':function(_0x158217,_0x3b6031){return _0x158217(_0x3b6031);},'sdWrB':_0x379555(0x21c),'OGNdI':_0x379555(0x360),'gxHlA':_0x379555(0x345),'qdfQL':_0x379555(0x23c),'jGaTy':'Run\x20full\x20interactive\x20setup','ecwnS':_0x379555(0x36e),'EGNoc':_0x379555(0x212),'OHIlC':'skills','RXBtX':'Install\x20Claude\x20Code\x20plugin\x20and\x20skills','KMAPx':'skip-chromium','QwwGK':'boolean','bQsjv':_0x379555(0x219),'POuwN':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','PZeRN':_0x379555(0x28e),'kypDb':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','NflQT':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','PxaFv':'API\x20token','itPWX':_0x379555(0x35d),'DAKFm':_0x379555(0x306),'FYnxM':'base-url','YQTtt':function(_0x187cee,_0x261c3a,_0x5afd67){return _0x187cee(_0x261c3a,_0x5afd67);},'yKiQr':_0x379555(0x2ac),'kurXv':_0x379555(0x325),'HbNwZ':'clean','lNipZ':'Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','uJBlt':'Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','vSRrh':_0x379555(0x2fa),'rMuqj':_0x379555(0x2bd),'WEinP':'force','DIAWz':_0x379555(0x216),'PwtEI':'Where\x20to\x20store\x20the\x20profile:\x20user\x20(~/.ranger/)\x20or\x20project\x20(.ranger/)','drxbU':_0x379555(0x333),'ElisN':'profile-name','PsuaG':'profile\x20update','vRRAs':_0x379555(0x25c),'tIkvR':_0x379555(0x2e1),'OMbJz':_0x379555(0x2c4),'KfkQt':'profile\x20login','TMYWI':'all','ZGSoR':'dry-run','iZqeC':'Skip\x20interactive\x20confirmation\x20prompts.','kNRLR':_0x379555(0x224),'Kdoad':_0x379555(0x2b9),'xMwkb':_0x379555(0x22a),'RMMFO':function(_0x55ddde,_0x3ce14a){return _0x55ddde(_0x3ce14a);},'QysXq':_0x379555(0x33a),'EtFgy':'unset\x20<profile>\x20<key>','RiMbA':'Add\x20profile\x20configuration','AKyZT':_0x379555(0x308),'yJXhF':_0x379555(0x2ea),'KzXPN':_0x379555(0x334),'Cenfc':_0x379555(0x2e9),'rrgaL':'Migrate\x20local\x20profiles\x20to\x20the\x20cloud\x20(requires\x20org\x20auth\x20config)','EwmRv':'config','wuzlk':'Manage\x20profile\x20configuration','wHdxq':'You\x20must\x20specify\x20a\x20profile\x20subcommand','baRYn':function(_0x117cf3,_0xccfbe1,_0xbf5fb0){return _0x117cf3(_0xccfbe1,_0xbf5fb0);},'ZxuOv':_0x379555(0x342),'gQXhj':_0x379555(0x215),'Dcnto':_0x379555(0x36a),'Wrivq':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','cqfIA':'notes','yFquq':_0x379555(0x2bf),'MhjOV':_0x379555(0x322),'MPFSD':'model','VGDaC':'headed','hUhsQ':'Force\x20headed\x20browser\x20for\x20this\x20run\x20only\x20(does\x20not\x20change\x20profile\x20config)','mfmkl':'debug-outcome','oRgFf':_0x379555(0x257),'tdyfv':'incomplete','mYsxE':'debug-address-comments','EsmAq':_0x379555(0x2f3),'hTuGC':'token','pKvvd':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','UneOC':_0x379555(0x30e),'xmNik':'env','WoOka':function(_0x447511,_0x24a255,_0x480d2d){return _0x447511(_0x24a255,_0x480d2d);},'Lnagc':'Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','tgixr':'add\x20env','DkKDK':'Name\x20of\x20the\x20environment','JCEDT':'ranger\x20use','VfiGR':'ranger\x20profile\x20use','JLswU':_0x379555(0x237),'tgLqx':'key','XCTof':'ranger\x20config\x20list','TNmye':_0x379555(0x29d),'Fjcfa':function(_0x217200,_0x37fca3,_0x4eb107){return _0x217200(_0x37fca3,_0x4eb107);},'QmCVp':function(_0x4667a8,_0x548945,_0x299955){return _0x4667a8(_0x548945,_0x299955);},'gLlag':_0x379555(0x2dc),'PlHSo':_0x379555(0x22b),'BoHLu':function(_0x24b64c,_0x16af4e,_0x5a4732){return _0x24b64c(_0x16af4e,_0x5a4732);},'oZGpD':_0x379555(0x270),'soyXo':_0x379555(0x2db),'UenXh':_0x379555(0x291),'CgjAU':'Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','wiKuY':_0x379555(0x331),'cyEIO':_0x379555(0x22e),'YtpmJ':function(_0x33e285,_0x48837e,_0x4aa48b){return _0x33e285(_0x48837e,_0x4aa48b);},'aovCv':'ranger\x20feature\x20add-checklist-item','VLNzK':function(_0x1fab36,_0x39ff9e,_0x503069){return _0x1fab36(_0x39ff9e,_0x503069);},'PuQVn':function(_0x18e218,_0x46e4b4,_0x5b5ddc){return _0x18e218(_0x46e4b4,_0x5b5ddc);},'GjFdr':'ranger\x20feature\x20get-feedback','kqpGC':_0x379555(0x1fb),'HaIuw':function(_0x8a1292,_0x3f357a,_0x3153da){return _0x8a1292(_0x3f357a,_0x3153da);},'cJhfT':_0x379555(0x2ab),'sSMkj':_0x379555(0x283),'MffeN':'ranger\x20feature\x20resume','xuhlm':_0x379555(0x329),'rdriY':function(_0x4179b4,_0xfec77a,_0x252c62){return _0x4179b4(_0xfec77a,_0x252c62);},'WjEah':_0x379555(0x340),'tSggM':_0x379555(0x239),'amHNz':_0x379555(0x351),'yIfiF':_0x379555(0x1fe),'SbfuN':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','rTdzR':function(_0x18c314,_0x55992c,_0x428bb6){return _0x18c314(_0x55992c,_0x428bb6);},'Umhuv':'hook:enable','pOBZx':'enable','UMIgu':'Enable\x20Ranger\x20hooks\x20for\x20this\x20session','zzFDM':'disable','iEAnd':'Disable\x20Ranger\x20hooks\x20for\x20this\x20session','bANni':_0x379555(0x2f4),'teUpf':'session-id','pqDqS':function(_0x120912,_0x4e5832,_0x24d25a){return _0x120912(_0x4e5832,_0x24d25a);},'Zxbkd':function(_0x18cfbb,_0x303932){return _0x18cfbb(_0x303932);},'BNSmV':_0x379555(0x204),'puqkf':'Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios','YfxrP':'List\x20all\x20feature\x20reviews','lYhKL':'Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context','AtcUq':'Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review','NOYRv':'report\x20[id]','CqUzq':_0x379555(0x2eb),'nlMVX':'Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios','scPsn':'Restore\x20a\x20soft-deleted\x20feature\x20review','GYbzm':'Initialize\x20Ranger\x20in\x20your\x20project','FCtkn':_0x379555(0x203),'RMbCZ':_0x379555(0x352),'mMlPr':'Install\x20Ranger\x20skills','ylbBe':'Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project','RNkPA':_0x379555(0x27d),'jFRre':'Manage\x20profiles','nZaqr':'Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)','lFAFh':'update','NrljG':'Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version','eLXsc':_0x379555(0x20f),'bgiYl':'start\x20[token]','FOOWE':'hook','oaQdD':_0x379555(0x378),'ebUTt':'help'};return _0x5255ae(_0x421a87??process[_0x379555(0x25b)]['slice'](0x2))[_0x379555(0x2a2)]('ranger')['usage'](TOP_LEVEL_HELP)[_0x379555(0x24a)](_0x5068f9[_0x379555(0x358)](getCurrentVersion))[_0x379555(0x316)](_0x5068f9[_0x379555(0x32b)],_0x5068f9[_0x379555(0x34b)],_0x8effd4=>{const _0x3eb763=_0x379555;return _0x8effd4['positional'](_0x5068f9[_0x3eb763(0x361)],{'type':_0x5068f9['NCdiO'],'description':_0x3eb763(0x2ad),'demandOption':!![]})['option'](_0x5068f9['LnbYE'],{'type':'string','alias':'d','description':_0x5068f9['kvmgO']})[_0x3eb763(0x369)](_0x3eb763(0x24f),{'type':_0x5068f9[_0x3eb763(0x28a)],'alias':'c','description':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)'})[_0x3eb763(0x369)]('checklist',{'type':_0x5068f9['wkZjz'],'hidden':!![]});},async _0x3e3217=>{const _0x4c109c=_0x379555;if(!_0x3e3217[_0x4c109c(0x1fc)]){console['error'](_0x5068f9['xgVdd']('Error:\x20`ranger\x20create`\x20requires\x20a\x20feature\x20review\x20name.\x0a',_0x5068f9[_0x4c109c(0x1eb)])),process['exit'](0x1);return;}_0x5068f9[_0x4c109c(0x2cc)](warnFlagRenamed,_0x5068f9['dcXPK'],_0x4c109c(0x33b),'--scenario');const _0x10d663=_0x3e3217[_0x4c109c(0x24f)]||_0x3e3217['checklist'];await _0x5068f9['EKnpw'](withTelemetry,'create',()=>featureCreate(_0x3e3217[_0x4c109c(0x1fc)],{'description':_0x3e3217['description'],'scenarios':_0x10d663}));})['command']('list',_0x5068f9['YfxrP'],_0x1cb0d6=>{const _0x4cd552=_0x379555;return _0x1cb0d6['option']('current-branch',{'type':_0x4cd552(0x366),'description':_0x4cd552(0x291)})[_0x4cd552(0x369)](_0x5068f9['EPrSz'],{'type':_0x5068f9[_0x4cd552(0x368)],'alias':'l','description':_0x4cd552(0x379),'default':0xa})['option'](_0x5068f9['ZymOi'],{'type':'number','alias':'o','description':_0x5068f9[_0x4cd552(0x336)],'default':0x0})[_0x4cd552(0x369)](_0x4cd552(0x2cd),{'type':_0x4cd552(0x366),'alias':'d','description':_0x5068f9[_0x4cd552(0x35f)],'default':![]});},async _0x7a822e=>{const _0x4fcbbc=_0x379555;await withTelemetry(_0x5068f9['FehOy'],()=>featureList({'currentBranch':_0x7a822e['current-branch'],'limit':_0x7a822e[_0x4fcbbc(0x242)],'offset':_0x7a822e['offset'],'includeDeleted':_0x7a822e[_0x4fcbbc(0x2cd)]}));})[_0x379555(0x316)](_0x379555(0x239),'Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x58817a=>{const _0x5b5c52=_0x379555;return _0x58817a[_0x5b5c52(0x256)]('id',{'type':_0x5b5c52(0x2b3),'description':'Feature\x20review\x20ID'});},async _0x1daf78=>{const _0x1451c9=_0x379555;await withTelemetry(_0x1451c9(0x2ee),()=>featureShow(_0x1daf78['id']));})['command'](_0x379555(0x301),_0x5068f9['lYhKL'],_0x41970a=>{const _0x50db94=_0x379555;return _0x41970a[_0x50db94(0x256)]('id',{'type':_0x5068f9[_0x50db94(0x29b)],'description':_0x5068f9[_0x50db94(0x27a)]});},async _0x1542db=>{const _0x218460=_0x379555;await withTelemetry(_0x218460(0x28d),()=>featureResume(_0x1542db['id']));})['command']('add-scenario\x20<description>','Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review',_0x834622=>{const _0xa6fb=_0x379555;return _0x834622['positional']('description',{'type':_0x5068f9[_0xa6fb(0x29b)],'description':_0x5068f9[_0xa6fb(0x354)],'demandOption':!![]})['option']('id',{'type':_0x5068f9['NCdiO'],'description':_0x5068f9['bmYMi']});},async _0x3d9d06=>{const _0x17389a=_0x379555;await withTelemetry(_0x17389a(0x314),()=>featureAddScenario(_0x3d9d06[_0x17389a(0x362)],_0x3d9d06['id']));})[_0x379555(0x316)](_0x379555(0x23f),_0x5068f9[_0x379555(0x2a4)],_0x4f16a7=>{const _0xda500b=_0x379555;return _0x4f16a7['positional'](_0xda500b(0x362),{'type':_0x5068f9['NCdiO'],'description':_0x5068f9[_0xda500b(0x2ba)],'demandOption':!![]})[_0xda500b(0x369)](_0x5068f9['kAefr'],{'type':_0xda500b(0x1e0),'description':'Scenario\x20number\x20to\x20edit\x20(1-based)','demandOption':!![]})['option']('id',{'type':_0x5068f9['NCdiO'],'description':_0x5068f9['bmYMi']});},async _0x5a0aa3=>{const _0x40904c=_0x379555;await withTelemetry(_0x5068f9['dnsFj'],()=>featureEditScenario(_0x5a0aa3['description'],{'id':_0x5a0aa3['id'],'scenario':_0x5a0aa3[_0x40904c(0x24f)]}));})[_0x379555(0x316)](_0x5068f9['NOYRv'],'Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)',_0x23d87b=>{const _0x4035da=_0x379555;return _0x23d87b[_0x4035da(0x256)]('id',{'type':'string','description':_0x4035da(0x27c)})['option'](_0x5068f9['xGxSu'],{'type':'array','description':_0x5068f9[_0x4035da(0x311)]})[_0x4035da(0x369)](_0x4035da(0x25a),{'type':_0x4035da(0x366),'description':_0x5068f9[_0x4035da(0x2f2)],'default':![]});},async _0x29f574=>{const _0x55fad7=_0x379555,_0x489b73=_0x29f574[_0x55fad7(0x337)],_0x9150f3=_0x489b73?_0x489b73[_0x55fad7(0x1e6)](_0x3b5eec=>Number(_0x3b5eec)):undefined;await withTelemetry(_0x55fad7(0x2b5),()=>featureReportPrDescription(_0x29f574['id'],{'excludeScenarios':_0x9150f3,'json':_0x29f574[_0x55fad7(0x25a)]}));})[_0x379555(0x316)](_0x5068f9[_0x379555(0x23a)],_0x5068f9['nlMVX'],_0x421770=>{const _0xf1080b=_0x379555;return _0x421770['positional']('id',{'type':_0xf1080b(0x2b3),'description':_0xf1080b(0x367)});},async _0x347ed7=>{await _0x5068f9['EKnpw'](withTelemetry,'get-review',()=>featureGetReview(_0x347ed7['id']));})['command'](_0x379555(0x1fe),_0x379555(0x2ce),_0x2d890f=>{const _0x359d1f=_0x379555;return _0x2d890f[_0x359d1f(0x256)]('id',{'type':_0x5068f9['NCdiO'],'description':_0x5068f9['yELyI']});},async _0x468477=>{const _0x116311=_0x379555;await withTelemetry(_0x5068f9[_0x116311(0x343)],()=>featureDelete(_0x468477['id']));})[_0x379555(0x316)](_0x379555(0x2fd),_0x5068f9['scPsn'],_0x56d074=>{const _0x31b83d=_0x379555;return _0x56d074[_0x31b83d(0x256)]('id',{'type':'string','description':'Feature\x20review\x20ID\x20to\x20restore','demandOption':!![]});},async _0x4e2227=>{const _0x213d4c=_0x379555;await _0x5068f9['EKnpw'](withTelemetry,_0x5068f9[_0x213d4c(0x32a)],()=>featureRestore(_0x4e2227['id']));})['command']('setup\x20[tokenOrSubcommand]',_0x5068f9[_0x379555(0x370)],_0x1eb2cd=>{const _0x59c467=_0x379555,_0x3a3b84={'LscLF':_0x59c467(0x277),'RlJMs':_0x5068f9[_0x59c467(0x29b)],'flwaa':_0x5068f9['NcEFk'],'GkIqm':_0x5068f9['uOvRQ'],'tfyQM':_0x5068f9['KjovQ'],'StJya':_0x59c467(0x2bd),'AtNmI':_0x59c467(0x303),'qZDaO':_0x59c467(0x366),'iJwoB':_0x59c467(0x20e),'bfYcE':_0x5068f9[_0x59c467(0x24c)],'CDWsW':_0x5068f9['FumuL'],'PGgYv':_0x5068f9['AErmd'],'WZCUX':'Bootstrap\x20CLI\x20auth\x20via\x20an\x20MCP\x20auth\x20server','nfklv':_0x5068f9['igTIu'],'TQuzH':function(_0x136855,_0xd02a80,_0x166ed9){return _0x136855(_0xd02a80,_0x166ed9);},'jSoOy':_0x5068f9['UkZyK'],'sOPqo':'Authenticate\x20via\x20MCP\x20proxy','bDoDM':function(_0x28cae9){return _0x5068f9['mlbOq'](_0x28cae9);},'TwIEe':_0x5068f9[_0x59c467(0x288)],'QCneS':function(_0x49c4c4,_0x505347){return _0x5068f9['aLpLL'](_0x49c4c4,_0x505347);},'DeNvS':function(_0x48cafa,_0x239743){return _0x5068f9['aLpLL'](_0x48cafa,_0x239743);},'pMAAD':_0x5068f9[_0x59c467(0x1ed)],'wZSNw':'project','AZGLN':_0x5068f9[_0x59c467(0x375)]};return _0x1eb2cd['usage']('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')[_0x59c467(0x256)](_0x5068f9[_0x59c467(0x278)],{'type':_0x5068f9['NCdiO'],'description':_0x5068f9['qdfQL']})['command']('all',_0x5068f9['jGaTy'],_0x490154=>{const _0x994e7f=_0x59c467;return _0x490154[_0x994e7f(0x369)](_0x3a3b84['LscLF'],{'type':_0x3a3b84['RlJMs'],'description':_0x994e7f(0x312)})['option'](_0x994e7f(0x32d),{'type':_0x994e7f(0x366),'description':_0x994e7f(0x37a),'default':![]})[_0x994e7f(0x369)]('skip-auth',{'type':'boolean','description':_0x3a3b84['flwaa'],'default':![]})['option']('with-deps',{'type':_0x994e7f(0x366),'description':_0x3a3b84[_0x994e7f(0x1e2)],'default':![]})['option']('scope',{'type':_0x3a3b84[_0x994e7f(0x265)],'choices':[_0x3a3b84[_0x994e7f(0x37f)],'project'],'description':'Install\x20scope\x20for\x20plugin\x20and\x20skills'})[_0x994e7f(0x369)](_0x3a3b84['StJya'],{'type':_0x3a3b84[_0x994e7f(0x265)],'description':_0x994e7f(0x307)})['option'](_0x3a3b84[_0x994e7f(0x31f)],{'type':_0x3a3b84['qZDaO'],'description':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','default':![]})[_0x994e7f(0x369)](_0x994e7f(0x21c),{'type':_0x3a3b84[_0x994e7f(0x332)],'description':_0x3a3b84['iJwoB'],'default':![]})['option'](_0x3a3b84[_0x994e7f(0x341)],{'type':'boolean','description':_0x3a3b84['CDWsW'],'default':![]})['option'](_0x3a3b84[_0x994e7f(0x2ca)],{'type':_0x994e7f(0x366),'description':_0x3a3b84[_0x994e7f(0x207)],'default':![]})[_0x994e7f(0x369)](_0x3a3b84[_0x994e7f(0x1f7)],{'type':_0x994e7f(0x366),'description':'Alias\x20for\x20--mcp-bootstrap','default':![]});},async _0x56b8b1=>{const _0x38f5ae=_0x59c467;(_0x56b8b1['mcp-bootstrap']||_0x56b8b1['mcp'])&&await withTelemetry(_0x3a3b84[_0x38f5ae(0x2ca)],()=>mcpBootstrap()),await _0x3a3b84['TQuzH'](withTelemetry,_0x38f5ae(0x1e7),_0x2cfd85=>start(_0x56b8b1['token'],{'skipChromium':_0x56b8b1[_0x38f5ae(0x32d)],'skipAuth':_0x56b8b1[_0x38f5ae(0x2fa)],'withDeps':_0x56b8b1[_0x38f5ae(0x34c)],'scope':_0x56b8b1['scope'],'url':_0x56b8b1['url'],'force':_0x56b8b1['force'],'opencode':_0x56b8b1[_0x38f5ae(0x21c)],'allowInsecureLocalhost':_0x56b8b1['allow-insecure-localhost']},_0x2cfd85));})[_0x59c467(0x316)](_0x5068f9[_0x59c467(0x258)],_0x5068f9[_0x59c467(0x229)],_0x4e6bc2=>{const _0x5a885a=_0x59c467;return _0x4e6bc2[_0x5a885a(0x369)](_0x5068f9[_0x5a885a(0x37c)],{'type':'boolean','description':_0x5068f9['IUmtZ'],'default':![]});},async _0x19e0e9=>{const _0x3e38ba=_0x59c467;await withTelemetry(_0x3e38ba(0x202),()=>ensureChromium(_0x19e0e9[_0x3e38ba(0x34c)]));})['command'](_0x59c467(0x2ac),_0x59c467(0x222),_0x48164c=>{const _0x3dd0af=_0x59c467;return _0x48164c[_0x3dd0af(0x369)](_0x3dd0af(0x277),{'type':'string','description':_0x3a3b84['jSoOy']})[_0x3dd0af(0x369)](_0x3a3b84[_0x3dd0af(0x1f7)],{'type':_0x3dd0af(0x366),'description':_0x3a3b84[_0x3dd0af(0x221)],'default':![]});},async _0x50a906=>{await withTelemetry(_0x5068f9['UjiAA'],async()=>{const _0x14255f=_0xe1c5;if(_0x50a906['mcp']){await mcpBootstrap();const _0x4e5931=await _0x3a3b84['bDoDM'](refreshCliToken);if(!_0x4e5931)throw new Error(_0x3a3b84['TwIEe']);const _0x552966=await _0x3a3b84['QCneS'](getCurrentUser,_0x4e5931);if(!_0x552966['success'])throw new Error(_0x14255f(0x2da)+_0x552966['error']);console[_0x14255f(0x350)]('✓\x20Authenticated\x20to\x20'+_0x552966['user'][_0x14255f(0x223)]);return;}await _0x3a3b84[_0x14255f(0x37e)](authenticate,_0x50a906['token']);});})[_0x59c467(0x316)](_0x5068f9['OHIlC'],_0x5068f9[_0x59c467(0x217)],_0x4314e=>{const _0xf4fa97=_0x59c467;return _0x4314e[_0xf4fa97(0x369)]('scope',{'type':'string','choices':[_0x5068f9[_0xf4fa97(0x266)],_0x5068f9[_0xf4fa97(0x2ed)]],'description':_0x5068f9['TYkLX']})[_0xf4fa97(0x369)](_0xf4fa97(0x21c),{'type':'boolean','description':'Install\x20for\x20OpenCode\x20instead\x20of\x20Claude\x20Code','default':![]});},async _0x5e47ff=>{const _0x43f46a=_0x59c467;await _0x5068f9['mBpds'](withTelemetry,_0x5068f9[_0x43f46a(0x321)],async()=>{const _0x1387f2=_0x43f46a,_0x1fdf0d=_0x5e47ff[_0x1387f2(0x219)];if(_0x5e47ff[_0x1387f2(0x21c)]){const _0x2e3dcc=await ensureOpencodePluginConfig(_0x1fdf0d);_0x2e3dcc&&await installSkill('ranger',{'level':_0x2e3dcc['scope'],'cliVersion':getCurrentVersion(),'platform':_0x3a3b84['pMAAD']});}else await ensureClaudePlugin(_0x1fdf0d),await ensureClaudeSkills(_0x1fdf0d);});})[_0x59c467(0x316)](_0x59c467(0x27d),_0x59c467(0x2dd),_0x51c21c=>{const _0x498513=_0x59c467;return _0x51c21c[_0x498513(0x369)]('scope',{'type':_0x3a3b84['RlJMs'],'choices':['user',_0x3a3b84['wZSNw']],'description':_0x3a3b84[_0x498513(0x31c)]})[_0x498513(0x369)](_0x498513(0x2bd),{'type':_0x3a3b84[_0x498513(0x265)],'description':_0x498513(0x35e)})['option']('skip-auth',{'type':'boolean','description':_0x498513(0x264),'default':![]})['option'](_0x3a3b84['AtNmI'],{'type':_0x3a3b84[_0x498513(0x332)],'description':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','default':![]})['option'](_0x498513(0x2f1),{'type':_0x3a3b84['qZDaO'],'description':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments','default':![]});},async _0x41b0f6=>{const _0x4a2523=_0x59c467;await _0x5068f9['EKnpw'](withTelemetry,_0x4a2523(0x1f3),_0x4fce8d=>ensureLocalEnv({'url':_0x41b0f6['url'],'force':_0x41b0f6['force'],'allowInsecureLocalhost':_0x41b0f6[_0x4a2523(0x2f1)],'scope':_0x41b0f6['scope']===_0x4a2523(0x2d2)?'user':undefined},_0x4fce8d));})[_0x59c467(0x369)](_0x5068f9['KMAPx'],{'type':_0x5068f9['QwwGK'],'description':_0x59c467(0x37a),'default':![]})['option'](_0x5068f9['bQsjv'],{'type':_0x5068f9[_0x59c467(0x29b)],'choices':[_0x5068f9[_0x59c467(0x266)],_0x5068f9[_0x59c467(0x2ed)]],'description':_0x5068f9[_0x59c467(0x1ec)]})[_0x59c467(0x369)]('url',{'type':'string','description':_0x5068f9[_0x59c467(0x2fe)]})['option'](_0x59c467(0x303),{'type':_0x59c467(0x366),'description':_0x5068f9[_0x59c467(0x2a9)],'default':![]})['option']('opencode',{'type':_0x5068f9[_0x59c467(0x209)],'description':'Install\x20for\x20OpenCode\x20instead\x20of\x20Claude\x20Code','default':![]})['option'](_0x59c467(0x2f1),{'type':_0x59c467(0x366),'description':_0x5068f9[_0x59c467(0x338)],'default':![]})['option'](_0x59c467(0x28f),{'type':'boolean','description':'Bootstrap\x20CLI\x20auth\x20via\x20an\x20MCP\x20auth\x20server\x20instead\x20of\x20browser\x20login','default':![]})[_0x59c467(0x369)](_0x59c467(0x2fa),{'type':_0x5068f9['QwwGK'],'description':'Skip\x20authentication\x20(install\x20deps\x20only\x20—\x20for\x20container/CI\x20image\x20builds)','default':![]})['option'](_0x59c467(0x34c),{'type':'boolean','description':_0x5068f9['IUmtZ'],'default':![]})[_0x59c467(0x369)](_0x59c467(0x277),{'type':_0x59c467(0x2b3),'hidden':!![],'description':_0x5068f9[_0x59c467(0x27b)]});},async _0x5ea334=>{const _0x47c6f4=_0x379555,_0x5a26de=_0x5ea334[_0x47c6f4(0x345)],_0x5f4513=_0x5ea334[_0x47c6f4(0x277)]??_0x5a26de;_0x5ea334[_0x5068f9[_0x47c6f4(0x20d)]]&&await _0x5068f9['mBpds'](withTelemetry,_0x5068f9[_0x47c6f4(0x20d)],()=>mcpBootstrap()),await withTelemetry(_0x5068f9['itPWX'],_0x7289b8=>start(_0x5f4513,{'skipChromium':_0x5ea334[_0x47c6f4(0x32d)],'skipAuth':_0x5ea334['skip-auth'],'withDeps':_0x5ea334[_0x47c6f4(0x34c)],'scope':_0x5ea334[_0x47c6f4(0x219)],'url':_0x5ea334['url'],'force':_0x5ea334[_0x47c6f4(0x303)],'opencode':_0x5ea334[_0x47c6f4(0x21c)],'allowInsecureLocalhost':_0x5ea334[_0x47c6f4(0x2f1)]},_0x7289b8));})['command']('setup-ci\x20<token>',_0x5068f9['FCtkn'],_0x1f3467=>{const _0x3cfedb=_0x379555;return _0x1f3467[_0x3cfedb(0x256)]('token',{'type':_0x3cfedb(0x2b3),'description':_0x3cfedb(0x312),'demandOption':!![]})[_0x3cfedb(0x369)](_0x5068f9['DAKFm'],{'type':_0x3cfedb(0x2b3),'description':'CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)'})[_0x3cfedb(0x369)](_0x5068f9['FYnxM'],{'type':_0x5068f9['NCdiO'],'description':_0x3cfedb(0x1f2)})[_0x3cfedb(0x369)](_0x5068f9['KMAPx'],{'type':_0x5068f9['QwwGK'],'description':'Skip\x20Chromium\x20browser\x20installation','default':![]});},async _0x1cf98c=>{const _0xadd431=_0x379555;await _0x5068f9['mBpds'](withTelemetry,_0xadd431(0x2ff),_0x42d870=>setupCi(_0x1cf98c[_0xadd431(0x277)],{'profile':_0x1cf98c[_0xadd431(0x306)],'baseUrl':_0x1cf98c[_0xadd431(0x205)],'skipChromium':_0x1cf98c['skip-chromium']},_0x42d870));})[_0x379555(0x316)](_0x379555(0x2ac),_0x379555(0x319),()=>{},async()=>{const _0x316d97=_0x379555;await _0x5068f9[_0x316d97(0x1fa)](withTelemetry,_0x5068f9['yKiQr'],()=>login());})[_0x379555(0x316)](_0x5068f9['RMbCZ'],_0x5068f9[_0x379555(0x1e9)],_0x45af52=>{const _0x1f1d10=_0x379555;return _0x45af52['option']('opencode',{'type':'boolean','description':_0x5068f9[_0x1f1d10(0x289)],'default':![]})['option'](_0x5068f9[_0x1f1d10(0x271)],{'type':_0x5068f9[_0x1f1d10(0x29b)],'choices':[_0x5068f9['KjovQ'],_0x5068f9['HJVji']],'description':_0x1f1d10(0x2c5)});},async _0x3d8329=>{const _0x3beecf=_0x379555,_0x445a01=Boolean(_0x3d8329[_0x3beecf(0x21c)]);await withTelemetry('skillup',()=>skillup({'autoInstall':_0x3d8329[_0x3beecf(0x219)],'platform':_0x445a01?'opencode':_0x3beecf(0x2f7)}));})[_0x379555(0x316)]('clean',_0x5068f9['ylbBe'],()=>{},async()=>{await withTelemetry(_0x5068f9['HbNwZ'],()=>clean());})['command']([_0x5068f9['DAKFm'],_0x5068f9[_0x379555(0x365)]],_0x5068f9[_0x379555(0x2bb)],_0x4c6a9b=>{const _0x93579e=_0x379555,_0x273b8f={'fqPrH':_0x5068f9['xMwkb'],'WGRfX':function(_0x4081d5,_0x2ea62f){return _0x5068f9['RMMFO'](_0x4081d5,_0x2ea62f);},'FAkCW':'profile-name','LzXEA':_0x93579e(0x2b3),'HMVaj':'Name\x20of\x20the\x20profile','wzJHt':function(_0x25012c,_0x3dd89f,_0x58c9af){return _0x25012c(_0x3dd89f,_0x58c9af);},'XmDPR':'profile\x20ls','OBkeZ':_0x5068f9[_0x93579e(0x33c)],'YBeji':'key','wVgGb':'profile','obLyD':function(_0xfc63ac,_0x170fb7,_0x5d7316){return _0x5068f9['YQTtt'](_0xfc63ac,_0x170fb7,_0x5d7316);},'cPdTe':_0x93579e(0x2e2),'RFbAn':function(_0x578bd0,_0x1eb807,_0x480c58){const _0x26c196=_0x93579e;return _0x5068f9[_0x26c196(0x2ec)](_0x578bd0,_0x1eb807,_0x480c58);},'fJQFE':'profile\x20config\x20unset','cIqFx':'Set\x20a\x20config\x20value','eseGe':_0x5068f9[_0x93579e(0x33d)],'clRjP':_0x93579e(0x245)};return _0x4c6a9b['usage'](PROFILE_HELP)[_0x93579e(0x316)]('add\x20<profile-name>',_0x5068f9['RiMbA'],_0x25d116=>{const _0x5e8b4a=_0x93579e;return _0x25d116['positional'](_0x5e8b4a(0x326),{'type':_0x5e8b4a(0x2b3),'description':_0x5068f9['lNipZ'],'demandOption':!![]})['option']('ci',{'type':_0x5068f9[_0x5e8b4a(0x209)],'description':_0x5068f9[_0x5e8b4a(0x26f)],'default':![]})['option'](_0x5068f9[_0x5e8b4a(0x250)],{'type':_0x5e8b4a(0x366),'description':_0x5e8b4a(0x2ae),'default':![]})['option'](_0x5068f9[_0x5e8b4a(0x2a5)],{'type':_0x5e8b4a(0x2b3),'description':_0x5e8b4a(0x26c)})[_0x5e8b4a(0x369)](_0x5068f9['WEinP'],{'type':_0x5e8b4a(0x366),'description':_0x5068f9[_0x5e8b4a(0x2a9)],'default':![]})[_0x5e8b4a(0x369)](_0x5e8b4a(0x1ea),{'type':_0x5068f9['NCdiO'],'description':_0x5068f9['DIAWz']})['option'](_0x5e8b4a(0x2f1),{'type':_0x5068f9[_0x5e8b4a(0x209)],'description':_0x5e8b4a(0x373),'default':![]})[_0x5e8b4a(0x369)]('safe-mode',{'type':_0x5e8b4a(0x366),'description':'Disable\x20browser\x20features\x20that\x20can\x20cause\x20crashes\x20on\x20some\x20systems\x20(e.g.\x20Bluetooth\x20permission\x20prompts\x20on\x20macOS)','default':![]})[_0x5e8b4a(0x369)](_0x5e8b4a(0x268),{'type':'string','array':!![],'description':'HTTP\x20header\x20to\x20send\x20only\x20during\x20profile\x20setup\x20auth,\x20not\x20during\x20test\x20runs\x20(format:\x20\x22Name:\x20Value\x22)'})[_0x5e8b4a(0x369)](_0x5e8b4a(0x219),{'type':_0x5e8b4a(0x2b3),'choices':[_0x5068f9['KjovQ'],_0x5068f9[_0x5e8b4a(0x2ed)]],'description':_0x5068f9['PwtEI']})['option']('yes',{'type':_0x5068f9[_0x5e8b4a(0x209)],'alias':'y','description':_0x5e8b4a(0x252),'default':![]});},async _0x387f7d=>{const _0xb123ed=_0x93579e;await withTelemetry(_0x273b8f[_0xb123ed(0x2d9)],_0x23e73f=>addEnv(_0x387f7d['profile-name'],{'ci':_0x387f7d['ci'],'skipAuth':_0x387f7d['skip-auth'],'url':_0x387f7d['url'],'force':_0x387f7d['force'],'cdpEndpoint':_0x387f7d['cdp-endpoint'],'allowInsecureLocalhost':_0x387f7d[_0xb123ed(0x2f1)],'safeMode':_0x387f7d[_0xb123ed(0x253)],'setupHeader':_0x387f7d[_0xb123ed(0x268)],'scope':_0x387f7d[_0xb123ed(0x219)],'yes':_0x387f7d['yes']},_0x23e73f),{'isElectron':_0x273b8f['WGRfX'](Boolean,_0x387f7d['cdp-endpoint'])});})['command'](_0x5068f9['AKyZT'],_0x5068f9[_0x93579e(0x272)],_0x5cd13b=>{const _0xfa9ce1=_0x93579e;return _0x5cd13b[_0xfa9ce1(0x256)](_0x273b8f[_0xfa9ce1(0x234)],{'type':_0x273b8f['LzXEA'],'description':_0x273b8f['HMVaj'],'demandOption':!![]});},async _0x10821b=>{await withTelemetry(_0x5068f9['drxbU'],()=>useEnv(_0x10821b['profile-name']));})['command'](_0x5068f9[_0x93579e(0x236)],_0x5068f9[_0x93579e(0x364)],_0x8b293e=>{const _0x403b1b=_0x93579e;return _0x8b293e['positional']('profile',{'type':_0x5068f9['NCdiO'],'description':_0x403b1b(0x33a),'demandOption':!![]});},async _0x19928a=>{await withTelemetry('profile\x20encrypt-auth',()=>authEncrypt(_0x19928a['profile']));})[_0x93579e(0x316)]('ls',_0x93579e(0x285),()=>{},async()=>{const _0x35d631=_0x93579e;await _0x273b8f[_0x35d631(0x29a)](withTelemetry,_0x273b8f[_0x35d631(0x247)],()=>envList());})['command'](_0x93579e(0x35a),_0x93579e(0x36f),_0x5a16f4=>{const _0x1071e0=_0x93579e;return _0x5a16f4[_0x1071e0(0x256)](_0x5068f9[_0x1071e0(0x34e)],{'type':'string','description':_0x1071e0(0x262),'demandOption':!![]})['option'](_0x5068f9['zwvdf'],{'type':_0x1071e0(0x366),'description':_0x1071e0(0x373)});},async _0x3e02d2=>{const _0x47489a=_0x93579e;await _0x5068f9['mBpds'](withTelemetry,_0x5068f9[_0x47489a(0x2d3)],_0x115ba0=>updateEnv(_0x3e02d2[_0x47489a(0x326)],_0x115ba0,{'allowInsecureLocalhost':_0x3e02d2[_0x47489a(0x2f1)]}));})[_0x93579e(0x316)](_0x93579e(0x260),![],_0x34a60d=>{const _0x54d4f3=_0x93579e;return _0x34a60d[_0x54d4f3(0x256)](_0x5068f9['CwvVv'],{'type':_0x54d4f3(0x2b3),'description':_0x5068f9[_0x54d4f3(0x241)],'demandOption':!![]});},async _0x1828dc=>{const _0x4f745d=_0x93579e,_0x1ff300={'aGqjt':_0x5068f9['tIkvR'],'xwhVL':function(_0x256a3c,_0x23318f){return _0x256a3c===_0x23318f;},'AkxMH':_0x5068f9['OMbJz'],'OXfRj':'failed'};await withTelemetry(_0x5068f9[_0x4f745d(0x2cb)],async()=>{const _0x3e439b=_0x4f745d,_0x56e1c9=process['env']['RANGER_TEST_USERNAME'],_0x18faa1=process[_0x3e439b(0x27f)]['RANGER_TEST_PASSWORD'];(!_0x56e1c9||!_0x18faa1)&&(console['error'](_0x1ff300['aGqjt']),process[_0x3e439b(0x2a8)](0x1));const _0x105670=_0x1828dc['name'],_0x45fb3e=await serverSideLogin(_0x105670,{'force':!![]});_0x1ff300['xwhVL'](_0x45fb3e['status'],_0x1ff300['AkxMH'])&&(console['error']('No\x20auth\x20config\x20for\x20this\x20org;\x20profile\x20login\x20unavailable.'),process['exit'](0x1)),_0x45fb3e['status']===_0x1ff300['OXfRj']&&(console['error']('Login\x20failed:\x20'+(_0x45fb3e[_0x3e439b(0x35c)]??'unknown\x20error')),_0x45fb3e[_0x3e439b(0x2c0)]&&console[_0x3e439b(0x35c)](_0x45fb3e[_0x3e439b(0x2c0)]),process[_0x3e439b(0x2a8)](0x1)),console[_0x3e439b(0x350)]('✓\x20Server-side\x20login\x20succeeded\x20for\x20\x27'+_0x105670+_0x3e439b(0x318));});})['command'](_0x93579e(0x339),_0x5068f9[_0x93579e(0x254)],_0x310a4d=>{const _0x234bcc=_0x93579e;return _0x310a4d[_0x234bcc(0x256)]('profile-name',{'type':_0x5068f9['NCdiO'],'description':'Name\x20of\x20a\x20single\x20local\x20profile\x20to\x20migrate.\x20Omit\x20with\x20--all.'})[_0x234bcc(0x369)](_0x5068f9['TMYWI'],{'type':'boolean','description':'Migrate\x20all\x20local\x20profiles\x20that\x20match\x20a\x20configured\x20auth\x20environment.','default':![]})[_0x234bcc(0x369)](_0x5068f9['ZGSoR'],{'type':_0x5068f9['QwwGK'],'description':_0x234bcc(0x1f8),'default':![]})[_0x234bcc(0x369)]('yes',{'type':_0x5068f9['QwwGK'],'alias':'y','description':_0x5068f9[_0x234bcc(0x1f9)],'default':![]})['option'](_0x234bcc(0x34f),{'type':_0x234bcc(0x366),'description':_0x5068f9[_0x234bcc(0x206)],'default':![]});},async _0x234550=>{const _0x359721=_0x93579e;await withTelemetry(_0x5068f9[_0x359721(0x214)],_0x3fd69a=>migrateProfile({'profileName':_0x234550[_0x359721(0x326)],'all':_0x234550['all'],'dryRun':_0x234550[_0x359721(0x2bc)],'yes':_0x234550[_0x359721(0x232)],'saveCreds':_0x234550['save-creds']},_0x3fd69a));})[_0x93579e(0x316)](_0x5068f9['EwmRv'],_0x5068f9['wuzlk'],_0x286347=>{const _0x59b08d=_0x93579e,_0x49300a={'CRrcm':function(_0x37557a,_0x55dcfa,_0xa29881){return _0x37557a(_0x55dcfa,_0xa29881);},'MHNFV':'profile','uVpWA':_0x273b8f['fJQFE']};return _0x286347[_0x59b08d(0x24e)](PROFILE_CONFIG_HELP)[_0x59b08d(0x316)]('set\x20<profile>\x20<key>\x20<value>',_0x273b8f['cIqFx'],_0x29f55c=>{const _0x13d975=_0x59b08d;return _0x29f55c[_0x13d975(0x256)](_0x13d975(0x306),{'type':'string','description':_0x273b8f[_0x13d975(0x280)],'demandOption':!![]})[_0x13d975(0x256)](_0x273b8f[_0x13d975(0x32f)],{'type':_0x273b8f['LzXEA'],'description':'Config\x20key\x20(e.g.,\x20userAgent,\x20headers.X-Custom)','demandOption':!![]})['positional']('value',{'type':'string','description':_0x13d975(0x2e4),'demandOption':!![]});},async _0x2344cd=>{const _0x5bcb1d=_0x59b08d;await _0x49300a[_0x5bcb1d(0x1e5)](withTelemetry,'profile\x20config\x20set',()=>configSet(_0x2344cd['profile'],_0x2344cd['key'],_0x2344cd[_0x5bcb1d(0x2b0)]));})['command'](_0x59b08d(0x353),_0x59b08d(0x2b2),_0xec002a=>{const _0x176535=_0x59b08d;return _0xec002a[_0x176535(0x256)]('profile',{'type':_0x273b8f['LzXEA'],'description':'Profile\x20name','demandOption':!![]})[_0x176535(0x256)]('key',{'type':_0x176535(0x2b3),'description':_0x176535(0x298),'demandOption':!![]});},async _0x426bab=>{const _0x3df309=_0x59b08d;await _0x49300a['CRrcm'](withTelemetry,_0x3df309(0x315),()=>configGet(_0x426bab[_0x3df309(0x306)],_0x426bab['key']));})['command'](_0x59b08d(0x2d7),_0x59b08d(0x263),_0x159df4=>{return _0x159df4['positional'](_0x273b8f['wVgGb'],{'type':'string','description':_0x273b8f['OBkeZ'],'demandOption':!![]});},async _0x2710c4=>{const _0x2bcec5=_0x59b08d;await _0x273b8f[_0x2bcec5(0x2e7)](withTelemetry,_0x273b8f[_0x2bcec5(0x20c)],()=>configList(_0x2710c4['profile']));})[_0x59b08d(0x316)](_0x273b8f['eseGe'],_0x273b8f['clRjP'],_0x4dc25f=>{const _0x161bc2=_0x59b08d;return _0x4dc25f[_0x161bc2(0x256)](_0x49300a[_0x161bc2(0x23e)],{'type':'string','description':'Profile\x20name','demandOption':!![]})[_0x161bc2(0x256)](_0x161bc2(0x24d),{'type':'string','description':'Config\x20key\x20to\x20remove','demandOption':!![]});},async _0x5b5f0f=>{const _0x133959=_0x59b08d;await withTelemetry(_0x49300a[_0x133959(0x2f5)],()=>configUnset(_0x5b5f0f['profile'],_0x5b5f0f['key']));})['command']('reset\x20<profile>',_0x59b08d(0x2c1),_0x1ebd8b=>{const _0xc32238=_0x59b08d;return _0x1ebd8b[_0xc32238(0x256)](_0xc32238(0x306),{'type':_0xc32238(0x2b3),'description':'Profile\x20name','demandOption':!![]});},async _0x16dbb3=>{const _0x16d354=_0x59b08d;await _0x273b8f[_0x16d354(0x1f6)](withTelemetry,_0x16d354(0x2df),()=>configReset(_0x16dbb3[_0x16d354(0x306)]));})['demandCommand'](0x1,'You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand');})['demandCommand'](0x1,_0x5068f9[_0x93579e(0x2a1)]);})[_0x379555(0x316)]('status',_0x5068f9[_0x379555(0x279)],()=>{},async()=>{const _0x39b671=_0x379555;await _0x5068f9[_0x39b671(0x377)](withTelemetry,_0x5068f9[_0x39b671(0x30b)],()=>status());})[_0x379555(0x316)](_0x5068f9[_0x379555(0x2af)],_0x5068f9['NrljG'],()=>{},async()=>{const _0x3f5a37=_0x379555;await _0x5068f9[_0x3f5a37(0x2fc)](withTelemetry,_0x3f5a37(0x1e3),()=>update());})[_0x379555(0x316)](_0x379555(0x208),'Print\x20the\x20current\x20CLI\x20access\x20token',()=>{},async()=>{const _0x5b07e2=_0x379555,_0x43c4b7={'zFsOR':function(_0x168f95){return _0x168f95();}};await withTelemetry(_0x5b07e2(0x208),async()=>{const _0x497ec1=_0x5b07e2,_0x230341=await _0x43c4b7['zFsOR'](getToken);if(!_0x230341)throw new Error(_0x497ec1(0x238));console[_0x497ec1(0x350)](_0x230341);});})['command']('go',_0x5068f9[_0x379555(0x30d)],_0x24ef80=>{const _0x5cc437=_0x379555;return _0x24ef80[_0x5cc437(0x369)](_0x5068f9['gQXhj'],{'type':_0x5068f9['NCdiO'],'description':_0x5068f9[_0x5cc437(0x2b4)]})[_0x5cc437(0x369)]('profile',{'type':_0x5068f9['NCdiO'],'description':_0x5068f9['Wrivq']})['option'](_0x5068f9['cqfIA'],{'type':'string','description':'Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)'})['option']('scenario',{'type':_0x5068f9[_0x5cc437(0x368)],'description':_0x5cc437(0x310)})['option'](_0x5068f9['yFquq'],{'type':_0x5cc437(0x2b3),'description':_0x5068f9['MhjOV']})['option']('base-url',{'type':_0x5cc437(0x2b3),'description':_0x5cc437(0x2a0)})['option'](_0x5068f9[_0x5cc437(0x1fd)],{'type':_0x5cc437(0x2b3),'description':'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.'})['option'](_0x5068f9['VGDaC'],{'type':_0x5cc437(0x366),'description':_0x5068f9[_0x5cc437(0x33f)],'default':![]})['option'](_0x5068f9['mfmkl'],{'type':_0x5cc437(0x2b3),'hidden':!![],'choices':[_0x5cc437(0x274),_0x5068f9['oRgFf'],'blocked',_0x5cc437(0x1ff),_0x5068f9['tdyfv']]})[_0x5cc437(0x369)](_0x5068f9['mYsxE'],{'type':_0x5cc437(0x366),'hidden':!![]})['option'](_0x5cc437(0x27f),{'type':_0x5068f9['NCdiO'],'hidden':!![]})['option'](_0x5cc437(0x295),{'type':_0x5068f9['NCdiO'],'hidden':!![]})['option'](_0x5cc437(0x359),{'type':'number','hidden':!![]});},async _0x49d661=>{await runGoCommand(_0x49d661);})['command']('auth',![],_0x229208=>{const _0x5affe2=_0x379555,_0x50566f={'vHGMH':'profile','OhHDd':_0x5068f9[_0x5affe2(0x33c)]};return _0x229208[_0x5affe2(0x316)]('encrypt\x20<profile>',![],_0x552c60=>{const _0x165c15=_0x5affe2;return _0x552c60['positional'](_0x50566f[_0x165c15(0x26e)],{'type':'string','description':_0x50566f['OhHDd'],'demandOption':!![]});},async _0x160fca=>{const _0x4660d2=_0x5affe2;warnRenamed(_0x5068f9['EsmAq'],_0x4660d2(0x328)),await authEncrypt(_0x160fca[_0x4660d2(0x306)]);})[_0x5affe2(0x320)](0x1,_0x5affe2(0x200));},()=>{})[_0x379555(0x316)](_0x5068f9['bgiYl'],![],_0x55a3f1=>{const _0x1472b7=_0x379555;return _0x55a3f1[_0x1472b7(0x256)](_0x5068f9[_0x1472b7(0x21d)],{'type':_0x5068f9[_0x1472b7(0x29b)],'description':'Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)'})[_0x1472b7(0x369)](_0x1472b7(0x32d),{'type':_0x5068f9[_0x1472b7(0x209)],'description':_0x5068f9['pKvvd'],'default':![]})['option'](_0x5068f9[_0x1472b7(0x271)],{'type':_0x5068f9[_0x1472b7(0x29b)],'choices':[_0x1472b7(0x2d2),_0x1472b7(0x251)],'description':_0x5068f9['POuwN']})[_0x1472b7(0x369)](_0x5068f9['rMuqj'],{'type':'string','description':_0x5068f9[_0x1472b7(0x2fe)]})['option'](_0x1472b7(0x303),{'type':_0x5068f9[_0x1472b7(0x209)],'description':_0x1472b7(0x22f),'default':![]})['option'](_0x1472b7(0x2fa),{'type':_0x5068f9[_0x1472b7(0x209)],'description':_0x1472b7(0x201),'default':![]})[_0x1472b7(0x369)](_0x5068f9['VPUQf'],{'type':_0x5068f9[_0x1472b7(0x209)],'description':_0x5068f9['uOvRQ'],'default':![]});},async _0x3c125f=>{const _0x3f886a=_0x379555;warnRenamed(_0x5068f9['UneOC'],'ranger\x20setup'),await withTelemetry('start',_0x3a6406=>start(_0x3c125f['token'],{'skipChromium':_0x3c125f['skip-chromium'],'skipAuth':_0x3c125f[_0x3f886a(0x2fa)],'withDeps':_0x3c125f[_0x3f886a(0x34c)],'scope':_0x3c125f['scope'],'url':_0x3c125f['url'],'force':_0x3c125f[_0x3f886a(0x303)]},_0x3a6406));})['command'](_0x379555(0x235),![],_0x91cdcb=>{const _0x1c724a=_0x379555;return _0x91cdcb[_0x1c724a(0x369)](_0x5068f9['xmNik'],{'type':_0x1c724a(0x2b3),'description':_0x5068f9[_0x1c724a(0x1e1)]})['option']('task',{'type':_0x5068f9['NCdiO'],'description':_0x1c724a(0x37d)})[_0x1c724a(0x369)]('item',{'type':_0x5068f9[_0x1c724a(0x368)],'description':'Scenario\x20index\x20(1-based)'})['option']('profile',{'type':_0x5068f9['NCdiO'],'hidden':!![]})['option']('notes',{'type':'string','hidden':!![]})['option']('scenario',{'type':_0x1c724a(0x1e0),'hidden':!![]})[_0x1c724a(0x369)]('start-path',{'type':_0x1c724a(0x2b3),'description':_0x5068f9[_0x1c724a(0x346)]})[_0x1c724a(0x369)]('base-url',{'type':_0x5068f9['NCdiO'],'description':'Override\x20the\x20profile\x20base\x20URL\x20for\x20this\x20run.\x20Also\x20respects\x20RANGER_BASE_URL.'})[_0x1c724a(0x369)](_0x1c724a(0x2d5),{'type':_0x5068f9[_0x1c724a(0x29b)],'hidden':!![]})[_0x1c724a(0x369)]('headed',{'type':_0x1c724a(0x366),'hidden':!![],'default':![]})['option']('debug-outcome',{'type':_0x1c724a(0x2b3),'hidden':!![],'choices':['verified','partial',_0x1c724a(0x28c),'failed',_0x5068f9['tdyfv']]});},async _0x46f332=>{await _0x5068f9['WoOka'](runGoCommand,_0x46f332,!![]);})['command'](_0x379555(0x290),![],_0x1e3df7=>{const _0x88725c=_0x379555;return _0x1e3df7['positional'](_0x88725c(0x21e),{'type':_0x88725c(0x2b3),'description':'Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','demandOption':!![]})['option']('ci',{'type':_0x5068f9[_0x88725c(0x209)],'description':_0x5068f9['Lnagc'],'default':![]})[_0x88725c(0x369)](_0x5068f9['vSRrh'],{'type':'boolean','description':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','default':![]});},async _0x450697=>{const _0xf2f658=_0x379555;warnRenamed('ranger\x20add\x20env','ranger\x20profile\x20add'),await withTelemetry(_0x5068f9[_0xf2f658(0x276)],_0x2167e5=>addEnv(_0x450697[_0xf2f658(0x21e)],{'ci':_0x450697['ci'],'skipAuth':_0x450697[_0xf2f658(0x2fa)]},_0x2167e5));})[_0x379555(0x316)]('use\x20<env-name>',![],_0x4b23c6=>{const _0x34d8a2=_0x379555;return _0x4b23c6[_0x34d8a2(0x256)](_0x34d8a2(0x21e),{'type':_0x5068f9['NCdiO'],'description':_0x5068f9[_0x34d8a2(0x2d1)],'demandOption':!![]});},async _0x2d25e2=>{const _0x5011f2=_0x379555;warnRenamed(_0x5068f9['JCEDT'],_0x5068f9['VfiGR']),await withTelemetry('use',()=>useEnv(_0x2d25e2[_0x5011f2(0x21e)]));})[_0x379555(0x316)](_0x5068f9[_0x379555(0x210)],![],_0x356b1d=>{const _0x54b099=_0x379555,_0x29cc72={'MZgqY':'env','txxiH':_0x5068f9['JLswU'],'ggzoS':_0x54b099(0x24d),'Mkrbi':_0x54b099(0x2b3),'sIwll':_0x54b099(0x2e4),'ooMzt':'config\x20set','gcGgp':function(_0x502f52,_0x33d103,_0x9c91a2){return _0x5068f9['WoOka'](_0x502f52,_0x33d103,_0x9c91a2);},'axaGL':'ranger\x20config\x20get','SLjDx':function(_0x5b009c,_0x529459,_0x3dceeb){return _0x5b009c(_0x529459,_0x3dceeb);},'DXKvy':_0x5068f9[_0x54b099(0x29c)]};return _0x356b1d[_0x54b099(0x316)](_0x5068f9['PlHSo'],![],_0x1149bf=>{const _0x376f2f=_0x54b099;return _0x1149bf[_0x376f2f(0x256)](_0x29cc72[_0x376f2f(0x1f0)],{'type':'string','description':_0x29cc72[_0x376f2f(0x30c)],'demandOption':!![]})['positional'](_0x29cc72[_0x376f2f(0x29e)],{'type':_0x29cc72['Mkrbi'],'description':'Config\x20key\x20(e.g.,\x20userAgent,\x20headers.X-Custom)','demandOption':!![]})['positional']('value',{'type':'string','description':_0x29cc72['sIwll'],'demandOption':!![]});},async _0x4ecfeb=>{const _0x115aad=_0x54b099;warnRenamed('ranger\x20config\x20set',_0x115aad(0x35b)),await withTelemetry(_0x29cc72[_0x115aad(0x34d)],()=>configSet(_0x4ecfeb[_0x115aad(0x27f)],_0x4ecfeb['key'],_0x4ecfeb[_0x115aad(0x2b0)]));})['command'](_0x54b099(0x213),![],_0x39f1be=>{const _0x6bda36=_0x54b099;return _0x39f1be['positional'](_0x5068f9[_0x6bda36(0x2aa)],{'type':_0x5068f9[_0x6bda36(0x29b)],'description':_0x5068f9[_0x6bda36(0x36c)],'demandOption':!![]})[_0x6bda36(0x256)](_0x5068f9['tgLqx'],{'type':_0x6bda36(0x2b3),'description':_0x6bda36(0x298),'demandOption':!![]});},async _0x9bd9e6=>{const _0x1576f7=_0x54b099;_0x29cc72[_0x1576f7(0x275)](warnRenamed,_0x29cc72[_0x1576f7(0x32e)],_0x1576f7(0x299)),await _0x29cc72[_0x1576f7(0x2b7)](withTelemetry,_0x1576f7(0x1e4),()=>configGet(_0x9bd9e6[_0x1576f7(0x27f)],_0x9bd9e6['key']));})['command'](_0x54b099(0x21f),![],_0x4f93ed=>{const _0x340167=_0x54b099;return _0x4f93ed[_0x340167(0x256)](_0x340167(0x27f),{'type':_0x5068f9['NCdiO'],'description':_0x5068f9[_0x340167(0x36c)],'demandOption':!![]});},async _0x47f060=>{const _0x32d811=_0x54b099;_0x5068f9['EKnpw'](warnRenamed,_0x5068f9['XCTof'],_0x5068f9[_0x32d811(0x335)]),await _0x5068f9['Fjcfa'](withTelemetry,'config\x20list',()=>configList(_0x47f060['env']));})[_0x54b099(0x316)]('unset\x20<env>\x20<key>',![],_0x5641f1=>{const _0x21b70b=_0x54b099;return _0x5641f1['positional']('env',{'type':_0x29cc72['Mkrbi'],'description':_0x29cc72[_0x21b70b(0x30c)],'demandOption':!![]})['positional'](_0x21b70b(0x24d),{'type':_0x29cc72[_0x21b70b(0x2fb)],'description':_0x29cc72['DXKvy'],'demandOption':!![]});},async _0x34317d=>{const _0x1d065d=_0x54b099;_0x5068f9[_0x1d065d(0x2f8)](warnRenamed,'ranger\x20config\x20unset',_0x1d065d(0x225)),await withTelemetry(_0x1d065d(0x1ef),()=>configUnset(_0x34317d[_0x1d065d(0x27f)],_0x34317d[_0x1d065d(0x24d)]));})[_0x54b099(0x320)](0x1,_0x54b099(0x211));})[_0x379555(0x316)](_0x5068f9[_0x379555(0x2aa)],![],_0x25da89=>{const _0x5d7a65=_0x379555,_0x5adf05={'ssyDT':function(_0x451e53,_0x455ebb,_0x18e750){const _0x3bfd1b=_0xe1c5;return _0x5068f9[_0x3bfd1b(0x1f1)](_0x451e53,_0x455ebb,_0x18e750);},'wiaHO':_0x5068f9[_0x5d7a65(0x30a)],'kYupn':_0x5d7a65(0x2e6),'MlZXc':'env-name','XbNyK':'ranger\x20profile\x20update'};return _0x25da89[_0x5d7a65(0x316)]('ls',![],()=>{},async()=>{const _0x1392a2=_0x5d7a65;_0x5adf05['ssyDT'](warnRenamed,_0x5adf05[_0x1392a2(0x226)],_0x5adf05[_0x1392a2(0x2ef)]),await withTelemetry('env\x20list',()=>envList());})['command']('update\x20<env-name>',![],_0x2deda1=>{const _0xb96402=_0x5d7a65;return _0x2deda1['positional'](_0x5adf05[_0xb96402(0x344)],{'type':_0xb96402(0x2b3),'description':'Name\x20of\x20the\x20environment\x20to\x20update','demandOption':!![]});},async _0x582400=>{const _0x15c185=_0x5d7a65;_0x5adf05[_0x15c185(0x2a7)](warnRenamed,_0x15c185(0x323),_0x5adf05[_0x15c185(0x297)]),await withTelemetry(_0x15c185(0x249),_0x883759=>updateEnv(_0x582400[_0x15c185(0x21e)],_0x883759));})[_0x5d7a65(0x320)](0x1,_0x5d7a65(0x2f6));})[_0x379555(0x316)](_0x5068f9['gQXhj'],![],_0x1efa6e=>{const _0x15c0d7=_0x379555,_0x16bac1={'CWzsI':'name','NHDMO':_0x15c0d7(0x362),'XvWqo':_0x15c0d7(0x2b3),'poaoi':_0x5068f9[_0x15c0d7(0x348)],'TsPkt':_0x5068f9[_0x15c0d7(0x20a)],'lcJpt':_0x15c0d7(0x26a),'rfQyG':function(_0x1ddec2,_0x1a635e,_0x5949b2){const _0x3a1db2=_0x15c0d7;return _0x5068f9[_0x3a1db2(0x2ec)](_0x1ddec2,_0x1a635e,_0x5949b2);},'PLurw':_0x15c0d7(0x304),'ENUNP':_0x15c0d7(0x269),'BEYge':function(_0x13884f,_0x48fd21,_0x58e529,_0x3c8183){return _0x13884f(_0x48fd21,_0x58e529,_0x3c8183);},'wZzLe':'--scenario','CYibI':_0x5068f9[_0x15c0d7(0x300)],'pkcHa':'Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','ckAjA':function(_0x4576b,_0x1d1aa0,_0x40f1f3){const _0x349981=_0x15c0d7;return _0x5068f9[_0x349981(0x1fa)](_0x4576b,_0x1d1aa0,_0x40f1f3);},'zWGkw':_0x5068f9[_0x15c0d7(0x2c9)],'QWrpk':_0x15c0d7(0x367),'yvtPb':_0x15c0d7(0x37b),'ITqDs':_0x5068f9['xuhlm'],'ZeMMI':function(_0x319ade,_0x2540da,_0x395846){const _0x5141d8=_0x15c0d7;return _0x5068f9[_0x5141d8(0x2c8)](_0x319ade,_0x2540da,_0x395846);},'VZiqi':_0x15c0d7(0x372)};return _0x1efa6e[_0x15c0d7(0x316)](_0x5068f9[_0x15c0d7(0x32b)],![],_0x332c05=>{const _0x36f10c=_0x15c0d7;return _0x332c05['positional'](_0x16bac1['CWzsI'],{'type':'string','description':'Feature\x20review\x20name','demandOption':!![]})['option'](_0x16bac1[_0x36f10c(0x21b)],{'type':_0x16bac1['XvWqo'],'alias':'d','description':_0x16bac1[_0x36f10c(0x2d6)]})[_0x36f10c(0x369)]('checklist',{'type':'array','alias':'c','description':_0x16bac1['TsPkt']})['option']('scenario',{'type':_0x16bac1['lcJpt'],'hidden':!![]});},async _0x50206b=>{const _0x40a586=_0x15c0d7;_0x16bac1['rfQyG'](warnRenamed,_0x16bac1[_0x40a586(0x1f4)],_0x16bac1[_0x40a586(0x2c2)]),_0x16bac1[_0x40a586(0x2c6)](warnFlagRenamed,_0x16bac1[_0x40a586(0x2c2)],_0x40a586(0x33b),_0x16bac1['wZzLe']);const _0x469c31=_0x50206b[_0x40a586(0x24f)]||_0x50206b['checklist'];await _0x16bac1[_0x40a586(0x22c)](withTelemetry,'feature\x20create',()=>featureCreate(_0x50206b[_0x40a586(0x1fc)],{'description':_0x50206b['description'],'scenarios':_0x469c31}));})[_0x15c0d7(0x316)](_0x5068f9[_0x15c0d7(0x228)],![],_0x307477=>{const _0x1bb1ad=_0x15c0d7;return _0x307477[_0x1bb1ad(0x369)](_0x5068f9[_0x1bb1ad(0x296)],{'type':_0x5068f9['QwwGK'],'description':_0x5068f9[_0x1bb1ad(0x327)]})[_0x1bb1ad(0x369)]('limit',{'type':_0x5068f9[_0x1bb1ad(0x368)],'alias':'l','description':_0x5068f9[_0x1bb1ad(0x2e8)],'default':0xa})[_0x1bb1ad(0x369)](_0x5068f9['ZymOi'],{'type':'number','alias':'o','description':_0x5068f9[_0x1bb1ad(0x336)],'default':0x0})['option']('include-deleted',{'type':_0x5068f9['QwwGK'],'alias':'d','description':_0x5068f9[_0x1bb1ad(0x35f)],'default':![]});},async _0x228f83=>{const _0x201ee2=_0x15c0d7;warnRenamed(_0x201ee2(0x305),_0x5068f9['wiKuY']),await _0x5068f9[_0x201ee2(0x2c3)](withTelemetry,'feature\x20list',()=>featureList({'currentBranch':_0x228f83['current-branch'],'limit':_0x228f83['limit'],'offset':_0x228f83[_0x201ee2(0x243)],'includeDeleted':_0x228f83[_0x201ee2(0x2cd)]}));})['command'](_0x5068f9[_0x15c0d7(0x231)],![],_0x54bfd2=>{const _0x184f85=_0x15c0d7;return _0x54bfd2['positional']('id',{'type':_0x16bac1['XvWqo'],'description':_0x16bac1[_0x184f85(0x1de)]});},async _0x3b6dfc=>{const _0x36b8d9=_0x15c0d7;warnRenamed(_0x36b8d9(0x317),_0x5068f9['cyEIO']),await _0x5068f9['YtpmJ'](withTelemetry,'feature\x20show',()=>featureShow(_0x3b6dfc['id']));})['command'](_0x15c0d7(0x301),![],_0x2836d5=>{const _0x4af43f=_0x15c0d7;return _0x2836d5['positional']('id',{'type':_0x4af43f(0x2b3),'description':_0x16bac1[_0x4af43f(0x1f5)]});},async _0x40d806=>{const _0xfce30b=_0x15c0d7;_0x16bac1[_0xfce30b(0x230)](warnRenamed,_0x16bac1['zWGkw'],'ranger\x20resume'),await withTelemetry('feature\x20resume',()=>featureResume(_0x40d806['id']));})['command'](_0x15c0d7(0x363),![],_0x437a25=>{const _0x4f672e=_0x15c0d7;return _0x437a25['positional'](_0x16bac1['NHDMO'],{'type':'string','description':'Scenario\x20description','demandOption':!![]})[_0x4f672e(0x369)]('id',{'type':_0x16bac1[_0x4f672e(0x273)],'description':_0x16bac1[_0x4f672e(0x286)]});},async _0x306c03=>{warnRenamed(_0x5068f9['aovCv'],'ranger\x20add-scenario'),await _0x5068f9['VLNzK'](withTelemetry,'feature\x20add-checklist-item',()=>featureAddScenario(_0x306c03['description'],_0x306c03['id']));})['command'](_0x5068f9['amHNz'],![],_0x4ecd=>{const _0xccfdfd=_0x15c0d7;return _0x4ecd[_0xccfdfd(0x256)]('id',{'type':_0xccfdfd(0x2b3),'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x3ac8f2=>{const _0x5cd934=_0x15c0d7;_0x5068f9['PuQVn'](warnRenamed,_0x5068f9[_0x5cd934(0x24b)],_0x5068f9[_0x5cd934(0x31d)]),await _0x5068f9['HaIuw'](withTelemetry,_0x5cd934(0x294),()=>featureGetReview(_0x3ac8f2['id']));})[_0x15c0d7(0x316)](_0x5068f9['yIfiF'],![],_0x40cb43=>{const _0x43eca7=_0x15c0d7;return _0x40cb43[_0x43eca7(0x256)]('id',{'type':_0x5068f9['NCdiO'],'description':'Feature\x20review\x20ID'});},async _0x4f4ef0=>{const _0x2f6150=_0x15c0d7;warnRenamed(_0x2f6150(0x2d4),'ranger\x20delete'),await _0x5068f9['mBpds'](withTelemetry,'feature\x20delete',()=>featureDelete(_0x4f4ef0['id']));})['command'](_0x15c0d7(0x2fd),![],_0x14c806=>{const _0x5b3265=_0x15c0d7;return _0x14c806[_0x5b3265(0x256)]('id',{'type':_0x5b3265(0x2b3),'description':_0x5068f9['cJhfT'],'demandOption':!![]});},async _0x25d7a7=>{_0x16bac1['rfQyG'](warnRenamed,_0x16bac1['yvtPb'],_0x16bac1['ITqDs']),await _0x16bac1['ZeMMI'](withTelemetry,_0x16bac1['VZiqi'],()=>featureRestore(_0x25d7a7['id']));})[_0x15c0d7(0x320)](0x1,'You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand');})['command'](_0x5068f9[_0x379555(0x371)],![],_0x12f641=>{const _0x2ca0bc=_0x379555,_0x8b7984={'kuAdK':_0x2ca0bc(0x2b3),'vmhsR':function(_0x52cd72,_0x3865e4,_0x2a8069){const _0x183973=_0x2ca0bc;return _0x5068f9[_0x183973(0x2b1)](_0x52cd72,_0x3865e4,_0x2a8069);},'zNHfT':'hook:disable'};return _0x12f641[_0x2ca0bc(0x316)](_0x5068f9[_0x2ca0bc(0x259)],_0x5068f9[_0x2ca0bc(0x246)],_0x1c813e=>{const _0x1bb321=_0x2ca0bc;return _0x1c813e[_0x1bb321(0x369)]('session-id',{'type':_0x5068f9['NCdiO'],'description':_0x5068f9['SbfuN']});},async _0x5b7121=>{const _0x94479c=_0x2ca0bc;await _0x5068f9[_0x94479c(0x281)](withTelemetry,_0x5068f9[_0x94479c(0x292)],()=>hook('enable',_0x5b7121['session-id']));})[_0x2ca0bc(0x316)](_0x5068f9[_0x2ca0bc(0x2e3)],_0x5068f9['iEAnd'],_0x92d0f2=>{const _0x470be7=_0x2ca0bc;return _0x92d0f2[_0x470be7(0x369)](_0x470be7(0x23d),{'type':_0x8b7984[_0x470be7(0x233)],'description':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)'});},async _0xaa9c2e=>{const _0x4bdd89=_0x2ca0bc;await _0x8b7984[_0x4bdd89(0x347)](withTelemetry,_0x8b7984['zNHfT'],()=>hook('disable',_0xaa9c2e[_0x4bdd89(0x23d)]));})['option'](_0x5068f9['CwvVv'],{'type':_0x5068f9['NCdiO'],'description':_0x5068f9['bANni']})[_0x2ca0bc(0x369)](_0x5068f9[_0x2ca0bc(0x1e8)],{'type':_0x5068f9['NCdiO'],'description':_0x5068f9['SbfuN']});},async _0x1b31bc=>{const _0x492130=_0x379555;_0x1b31bc['name']&&await _0x5068f9[_0x492130(0x27e)](hook,_0x1b31bc['name'],_0x1b31bc[_0x492130(0x23d)]);})[_0x379555(0x320)](0x1,_0x379555(0x218))[_0x379555(0x23b)]()['fail'](async(_0x162ed3,_0x54a5cc,_0x568153)=>{const _0x57865b=_0x379555,_0x44c375=_0x5068f9['Zxbkd'](sanitizeArgs,process[_0x57865b(0x25b)]['slice'](0x2)),_0x38adbe=getErrorType(_0x162ed3,_0x54a5cc);if(_0x162ed3&&_0x162ed3['includes'](_0x5068f9[_0x57865b(0x21a)])){const _0xacc8a0=process['argv'][0x2];console[_0x57865b(0x35c)]('\x0aUnknown\x20command:\x20'+_0xacc8a0),console[_0x57865b(0x35c)]('Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a');}else{if(_0x162ed3)console[_0x57865b(0x35c)]('\x0a'+_0x162ed3+'\x0a');else _0x54a5cc&&console[_0x57865b(0x35c)]('\x0aError:\x20'+_0x54a5cc[_0x57865b(0x34a)]+'\x0a');}await _0x5068f9[_0x57865b(0x2b6)](logDesirePath,{'rawCommand':_0x44c375,'errorMessage':_0x162ed3||_0x54a5cc?.['message'],'errorType':_0x38adbe});const _0x1b7eb8=getCurrentCollector();_0x1b7eb8&&await _0x1b7eb8[_0x57865b(0x282)](_0x54a5cc||new Error(_0x162ed3||_0x57865b(0x267))),process['exit'](0x1);})[_0x379555(0x309)](_0x5068f9['xgVdd']('Documentation:\x0a'+_0x5068f9[_0x379555(0x2d0)],'\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)'))[_0x379555(0x2f9)]()[_0x379555(0x2e5)](_0x5068f9['ebUTt'],'h');}process['env'][_0x45d515(0x356)]!==_0x45d515(0x29f)&&buildParser()[_0x45d515(0x31a)]();
|
package/build/commands/addEnv.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x5b2467,_0x30ec30){const _0xd6da53=_0x5472,_0x537bf9=_0x5b2467();while(!![]){try{const _0x5a47f5=-parseInt(_0xd6da53(0xb3))/0x1*(-parseInt(_0xd6da53(0xa8))/0x2)+-parseInt(_0xd6da53(0x8d))/0x3+parseInt(_0xd6da53(0x7e))/0x4+parseInt(_0xd6da53(0xc0))/0x5*(-parseInt(_0xd6da53(0x8b))/0x6)+parseInt(_0xd6da53(0x7f))/0x7*(-parseInt(_0xd6da53(0xcf))/0x8)+parseInt(_0xd6da53(0x7b))/0x9*(parseInt(_0xd6da53(0xa1))/0xa)+parseInt(_0xd6da53(0xdd))/0xb;if(_0x5a47f5===_0x30ec30)break;else _0x537bf9['push'](_0x537bf9['shift']());}catch(_0x417946){_0x537bf9['push'](_0x537bf9['shift']());}}}(_0x57a8,0xee64b));function _0x5472(_0x50d7f1,_0xe49c73){_0x50d7f1=_0x50d7f1-0x6d;const _0x57a807=_0x57a8();let _0x547246=_0x57a807[_0x50d7f1];return _0x547246;}import{mkdir,writeFile,readFile,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import _0x1eac44 from'inquirer';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';function _0x57a8(){const _0x120ee4=['Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','yNSan','Browser\x20closed\x20before\x20authentication\x20was\x20saved.','list','retry','Invalid\x20--setup-header\x20format:\x20\x22','.backup-','HEAD','close','location','action','push','14688ubDHRv','isTTY','now','\x20\x20Did\x20you\x20mean\x20','local','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20','Enter\x20a\x20different\x20URL','error','AMGQY','env','isProtocolError','test','shouldReplace','HTTP\x20','2428140xzyDrs','NODE_TLS_REJECT_UNAUTHORIZED','DNgiO','\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a','LODAb','confirm','ydyTv','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20','DdzaZ','newPage','trackPhaseStart','goto','✓\x20Encrypted\x20auth\x20saved\x20to:\x20','\x22.\x20Expected\x20\x22Name:\x20Value\x22.','kVljb','\x22\x20configured','qyZoR','UxvtU','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','PPvNJ','Delete\x20existing\x20and\x20create\x20new\x20in\x20','\x0a🌐\x20Profile\x20Setup\x0a','stdin','trim','tZuCi','slice','21555XxPJiW','NVGjS','\x20\x20ranger\x20profile\x20add\x20','6045700tPrQTn','2429XtERkM','What\x20would\x20you\x20like\x20to\x20do?','prompt','name','setupHeader','.enc','ceyrL','npdGX','CvcZw','path','ltUIq','assign','373326KvGcgP','browser_auth','4281672cDJnJH','✓\x20Created\x20settings:\x20','zMSxn','includes','trackPhaseEnd','\x20(continuing\x20with\x20--force)','log','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','\x20\x20\x20Creating\x20it\x20in\x20','WMJSJ','force','baseUrl','cdpEndpoint','eGzkL','IHNvB','fetch\x20failed','Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.','newContext','--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','iGUSt','2170yPQlBc','wLqTR','Profile\x20\x22','url','length','JBqef','vasZM','4iZBhHR','TypeError','\x20--safe-mode\x20\x20\x20\x20(disables\x20browser\x20features\x20that\x20can\x20cause\x20crashes)','about:blank','Lyehl','auth.json','safeMode','\x0a📋\x20Authentication\x20Setup','\x0a\x20\x20Could\x20not\x20reach\x20','kzMDg','catch','425558mhBwiq','keys','skipAuth','Invalid\x20URL','use_suggestion','cmwhV','MxXPr','⚠\x20Could\x20not\x20reach\x20','url_setup','Removed\x20existing\x20profile\x20at\x20','UjlHs','Could\x20not\x20reach\x20','config_write','5vnMHCZ','message','Ykysc'];_0x57a8=function(){return _0x120ee4;};return _0x57a8();}import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';async function checkUrlReachability(_0x56e3ff){const _0x2927fa=_0x5472,_0xb89df2={'eGzkL':function(_0x1db9e1,_0x39e67a,_0x581e02){return _0x1db9e1(_0x39e67a,_0x581e02);},'oUhac':_0x2927fa(0xca),'Ykysc':'manual','MoZPt':function(_0x3dd7a9,_0x2099b5,_0x3aed47){return _0x3dd7a9(_0x2099b5,_0x3aed47);},'qYlsq':function(_0x1a8593,_0x3ece34){return _0x1a8593(_0x3ece34);},'npdGX':_0x2927fa(0xb6),'OqpRp':function(_0x55b619,_0xd6661c){return _0x55b619===_0xd6661c;}};try{const _0x56a1ea=new AbortController(),_0x5946bd=_0xb89df2[_0x2927fa(0x9a)](setTimeout,()=>_0x56a1ea['abort'](),0x1388),_0x103eb0={'method':_0xb89df2['oUhac'],'signal':_0x56a1ea['signal'],'redirect':_0xb89df2[_0x2927fa(0xc2)]};/^https:\/\/localhost(:\d+)?/i[_0x2927fa(0xda)](_0x56e3ff)&&(process['env']['NODE_TLS_REJECT_UNAUTHORIZED']='0');const _0x3fa376=await _0xb89df2['MoZPt'](fetch,_0x56e3ff,_0x103eb0);delete process[_0x2927fa(0xd8)]['NODE_TLS_REJECT_UNAUTHORIZED'],_0xb89df2['qYlsq'](clearTimeout,_0x5946bd);if(_0x3fa376['status']<0x190)return{'ok':!![]};return{'ok':![],'error':_0x2927fa(0xdc)+_0x3fa376['status']};}catch(_0x284d3c){delete process[_0x2927fa(0xd8)][_0x2927fa(0xde)];const _0x1e3438=_0x284d3c,_0x3cb99b=_0x1e3438[_0x2927fa(0xc1)]||_0xb89df2['qYlsq'](String,_0x284d3c),_0x13065d=_0x3cb99b['includes'](_0xb89df2[_0x2927fa(0x86)])||_0xb89df2['OqpRp'](_0x1e3438[_0x2927fa(0x82)],_0x2927fa(0xa9))||_0x3cb99b[_0x2927fa(0x90)](_0x2927fa(0x9c));return{'ok':![],'error':_0x3cb99b,'isProtocolError':_0x13065d};}}export async function addEnv(_0x52a729,_0x1bcb45={},_0x2c51f9){const _0x42fc70=_0x5472,_0x3b7371={'yNSan':'Saving\x20authentication\x20state...','gvBUJ':function(_0x5e0a98,_0xafa037){return _0x5e0a98===_0xafa037;},'XpjxN':'user','nMWys':function(_0xbb4c6d){return _0xbb4c6d();},'IHNvB':function(_0x5f1fe2,_0x14a007){return _0x5f1fe2+_0x14a007;},'WMJSJ':function(_0x472a59,_0x547b7b,_0x140e48){return _0x472a59(_0x547b7b,_0x140e48);},'MxXPr':function(_0x47a753,_0x5a3f34){return _0x47a753!==_0x5a3f34;},'kVljb':_0x42fc70(0x9f),'ZbmfS':'--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','CvcZw':'--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.','JsBlZ':function(_0x442314,_0x2bbf5c){return _0x442314(_0x2bbf5c);},'JBqef':function(_0x473ee4,_0x574fe1,_0x3fc08a){return _0x473ee4(_0x574fe1,_0x3fc08a);},'wLqTR':'Aborted.','DdzaZ':'legacy','APxiJ':_0x42fc70(0xbb),'ltUIq':'\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','LODAb':function(_0x2e3c2d,_0x677818){return _0x2e3c2d(_0x677818);},'AMGQY':_0x42fc70(0x76),'kzMDg':'\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a','UjlHs':function(_0x39fc95,_0x19d7a6){return _0x39fc95||_0x19d7a6;},'cmwhV':'http://localhost:3000','DNgiO':function(_0x1a9a4f,_0xe9b374){return _0x1a9a4f(_0xe9b374);},'ceyrL':_0x42fc70(0x80),'XNFpD':'Continue\x20anyway','iGUSt':'continue','ydyTv':function(_0x176e00,_0x1680e3,_0x5de3){return _0x176e00(_0x1680e3,_0x5de3);},'cIJpA':'browser_auth','UxvtU':_0x42fc70(0xaf),'mCmqg':'\x0a\x20\x20\x20⚠\x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.','ilMEQ':_0x42fc70(0xe0),'vasZM':'--disable-features=WebBluetooth','OezgP':function(_0x235f75,_0x20ce4e){return _0x235f75||_0x20ce4e;},'VrWna':_0x42fc70(0xab),'lbAFb':'\x0aThe\x20browser\x20closed\x20unexpectedly\x20before\x20authentication\x20could\x20be\x20saved.','PPvNJ':'You\x20can\x20try\x20again\x20with\x20one\x20of:','NVGjS':_0x42fc70(0xc5),'qyZoR':function(_0x418380,_0x12b1b9,_0x5d9f0f){return _0x418380(_0x12b1b9,_0x5d9f0f);},'zMSxn':'utf-8','FmGBB':function(_0x1ac4c2,_0x3d810c){return _0x1ac4c2(_0x3d810c);},'VDgPO':_0x42fc70(0x9d),'nDBHG':function(_0x5eb394,_0x5cff0f,_0x9eaea5){return _0x5eb394(_0x5cff0f,_0x9eaea5);},'DwYTv':function(_0x289363,_0x3eb95b){return _0x289363+_0x3eb95b;},'gRBnW':_0x42fc70(0x84),'tZuCi':'config_write','SpdWA':function(_0x5de283,_0x15c988){return _0x5de283>_0x15c988;},'QeVoF':function(_0x5761c7,_0x31273c,_0x2b552c){return _0x5761c7(_0x31273c,_0x2b552c);},'zyPiJ':function(_0x2ec979,_0x287a6e,_0x470802){return _0x2ec979(_0x287a6e,_0x470802);},'Lyehl':function(_0x30b19d,_0x38602b,_0x5598f5){return _0x30b19d(_0x38602b,_0x5598f5);},'OVsRq':function(_0x352250,_0x3a0d8e,_0x21f5c2){return _0x352250(_0x3a0d8e,_0x21f5c2);}},_0x534418=_0x1bcb45['ci']??![],_0x6a86ff=_0x534418?'ci':_0x42fc70(0xd3),_0x3f5b5c=_0x3b7371['gvBUJ'](_0x1bcb45['scope'],_0x3b7371['XpjxN'])?getRangerHomeDir():_0x3b7371['nMWys'](getRangerDir),_0x507b3c=join(_0x3f5b5c,_0x6a86ff,_0x52a729),_0x53b99e={};if(_0x1bcb45[_0x42fc70(0x83)])for(const _0x4f750c of _0x1bcb45['setupHeader']){const _0xc84b3b=_0x4f750c['indexOf'](':');if(_0xc84b3b===-0x1)throw new Error(_0x42fc70(0xc8)+_0x4f750c+_0x42fc70(0x6e));const _0xf6ecdb=_0x4f750c['slice'](0x0,_0xc84b3b)['trim'](),_0x1bcab7=_0x4f750c[_0x42fc70(0x7a)](_0x3b7371[_0x42fc70(0x9b)](_0xc84b3b,0x1))[_0x42fc70(0x78)]();_0x53b99e[_0xf6ecdb]=_0x1bcab7;}const _0x4f6835=_0x3b7371[_0x42fc70(0x96)](join,_0x3f5b5c,_0x6a86ff);if(_0x3b7371[_0x42fc70(0xb9)](_0x1bcb45[_0x42fc70(0x99)],undefined)&&_0x3b7371['gvBUJ'](_0x1bcb45[_0x42fc70(0x99)]['trim'](),''))throw new Error(_0x3b7371[_0x42fc70(0x6f)]);if(_0x1bcb45['cdpEndpoint']&&_0x1bcb45[_0x42fc70(0xa4)])throw new Error(_0x3b7371['ZbmfS']);if(_0x1bcb45[_0x42fc70(0x99)]&&_0x1bcb45['ci'])throw new Error(_0x3b7371[_0x42fc70(0x87)]);const _0x43026a=_0x3b7371['JsBlZ'](Boolean,_0x1bcb45[_0x42fc70(0x99)]),_0x46f603=!_0x1bcb45[_0x42fc70(0xb5)]&&!_0x43026a,_0x4aa789=process[_0x42fc70(0x77)]['isTTY']&&process['stdout'][_0x42fc70(0xd0)];if(!_0x4aa789&&!_0x1bcb45[_0x42fc70(0xa4)]&&!_0x43026a)throw new Error('Please\x20provide\x20--url\x20when\x20running\x20in\x20non-interactive\x20mode.\x0aMake\x20sure\x20the\x20service\x20is\x20running\x20on\x20that\x20port\x20before\x20retrying.\x0aExample:\x20ranger\x20profile\x20add\x20local\x20--url\x20http://localhost:3000');const _0xdc9935=_0x3b7371[_0x42fc70(0xa6)](findExistingEnv,_0x52a729,{'rangerDir':_0x3f5b5c});let _0x5087aa=null;if(_0xdc9935){if(!_0x4aa789)_0x5087aa=_0xdc9935;else{if(_0xdc9935['location']===_0x6a86ff){const {overwrite:_0x26512e}=await _0x1eac44['prompt']([{'type':'confirm','name':'overwrite','message':_0x42fc70(0xa3)+_0x52a729+'\x22\x20already\x20exists.\x20Overwrite?','default':![]}]);if(!_0x26512e){console['log'](_0x3b7371[_0x42fc70(0xa2)]);return;}_0x5087aa=_0xdc9935;}else{const _0x2f4fa4=_0xdc9935['location']===_0x3b7371[_0x42fc70(0xe5)]?'root\x20(.ranger/)':_0xdc9935[_0x42fc70(0xcc)];console['error']('\x0a⚠️\x20\x20Profile\x20\x22'+_0x52a729+'\x22\x20already\x20exists\x20in\x20'+_0x2f4fa4+':\x20'+_0xdc9935[_0x42fc70(0x88)]),console[_0x42fc70(0xd6)](_0x42fc70(0x95)+_0x6a86ff+'\x20would\x20shadow\x20the\x20existing\x20profile.');const {shouldReplace:_0x4431b1}=await _0x1eac44['prompt']([{'type':_0x42fc70(0xe2),'name':_0x42fc70(0xdb),'message':_0x42fc70(0x75)+_0x6a86ff+'?','default':![]}]);if(!_0x4431b1){console['log'](_0x3b7371['wLqTR']);return;}_0x5087aa=_0xdc9935;}}}_0x2c51f9?.[_0x42fc70(0xe7)](_0x3b7371['APxiJ']);let _0x1174c3='';if(_0x43026a)console[_0x42fc70(0x93)](_0x3b7371[_0x42fc70(0x89)]),console['log']('\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20'+_0x1bcb45[_0x42fc70(0x99)]),console[_0x42fc70(0x93)]('\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a');else{if(_0x1bcb45[_0x42fc70(0xa4)]){_0x1174c3=_0x1bcb45[_0x42fc70(0xa4)];const _0x45ec58=await _0x3b7371[_0x42fc70(0xe1)](checkUrlReachability,_0x1174c3);if(!_0x45ec58['ok']&&!_0x1bcb45['force'])throw new Error(_0x42fc70(0xbe)+_0x1174c3+':\x20'+_0x45ec58['error']+'\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.');!_0x45ec58['ok']&&_0x1bcb45[_0x42fc70(0x97)]&&console['log'](_0x42fc70(0xba)+_0x1174c3+':\x20'+_0x45ec58[_0x42fc70(0xd6)]+_0x42fc70(0x92));}else{console[_0x42fc70(0x93)](_0x3b7371[_0x42fc70(0xd7)]),console[_0x42fc70(0x93)](_0x42fc70(0x73)),console['log'](_0x3b7371[_0x42fc70(0xb1)]);let _0x28e557=![];while(!![]){const _0x1e889f=await _0x1eac44['prompt']([{'type':'input','name':_0x42fc70(0x98),'message':_0x28e557?_0x42fc70(0xc3):'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','default':_0x3b7371[_0x42fc70(0xbd)](_0x1174c3,_0x3b7371[_0x42fc70(0xb8)])}]);_0x1174c3=_0x1e889f['baseUrl'];const _0x4053cd=await _0x3b7371['DNgiO'](checkUrlReachability,_0x1174c3);if(_0x4053cd['ok'])break;const _0x529656=/^[a-zA-Z][\w+.-]*:\/\//['test'](_0x1174c3),_0x5dc5b2=_0x4053cd[_0x42fc70(0xd9)]&&!_0x529656,_0x28eab8=_0x5dc5b2?'http://'+_0x1174c3:null;_0x28e557=!![],console['log'](_0x42fc70(0xb0)+_0x1174c3+':\x20'+_0x4053cd['error']);_0x28eab8&&console[_0x42fc70(0x93)](_0x42fc70(0xd2)+_0x28eab8+'?');const {action:_0x1e3857}=await _0x1eac44[_0x42fc70(0x81)]([{'type':_0x42fc70(0xc6),'name':_0x42fc70(0xcd),'message':_0x3b7371[_0x42fc70(0x85)],'choices':[..._0x28eab8?[{'name':'Use\x20'+_0x28eab8,'value':_0x42fc70(0xb7)}]:[],{'name':_0x42fc70(0xd5),'value':_0x42fc70(0xc7)},{'name':_0x3b7371['XNFpD'],'value':'continue'}]}]);if(_0x3b7371['gvBUJ'](_0x1e3857,'use_suggestion')&&_0x28eab8){_0x1174c3=_0x28eab8;const _0x19fd9a=await _0x3b7371['JsBlZ'](checkUrlReachability,_0x1174c3);if(_0x19fd9a['ok'])break;console[_0x42fc70(0x93)]('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0x1174c3+':\x20'+_0x19fd9a['error']);}else{if(_0x1e3857===_0x3b7371[_0x42fc70(0xa0)])break;}}}}_0x2c51f9?.['trackPhaseEnd'](_0x42fc70(0xbb));const _0x516e14={};if(_0x5087aa){const _0x566019=await loadSettings(_0x52a729);Object[_0x42fc70(0x8a)](_0x516e14,_0x566019['setupHeaders']);}Object['assign'](_0x516e14,_0x53b99e),await _0x3b7371[_0x42fc70(0xe3)](mkdir,_0x4f6835,{'recursive':!![]});const _0x8810ef=await mkdtemp(join(_0x4f6835,'.tmp-'+_0x52a729+'-')),_0x189823=_0x3b7371['ydyTv'](join,_0x8810ef,_0x42fc70(0xad)),_0x2ca9a4=Boolean(_0x1174c3)&&/^https:\/\/localhost(:\d+)?/i[_0x42fc70(0xda)](_0x1174c3);try{if(_0x46f603){_0x2c51f9?.['trackPhaseStart'](_0x3b7371['cIJpA']),console[_0x42fc70(0x93)](_0x3b7371[_0x42fc70(0x72)]),console['log']('\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.'),console['log']('\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.');!_0x4aa789?(console[_0x42fc70(0x93)](_0x3b7371['mCmqg']),console['log'](_0x3b7371['ilMEQ'])):console['log']('');await new Promise(_0x24ce93=>setTimeout(_0x24ce93,0xbb8));const _0x5a26c3=[];_0x1bcb45[_0x42fc70(0xae)]&&_0x5a26c3[_0x42fc70(0xce)](_0x3b7371[_0x42fc70(0xa7)]);const _0x570eb4=_0x1bcb45['allowInsecureLocalhost']||_0x2ca9a4;_0x570eb4&&_0x5a26c3[_0x42fc70(0xce)]('--allow-insecure-localhost');const _0x383d2f=await chromium['launch']({'headless':![],..._0x5a26c3[_0x42fc70(0xa5)]>0x0?{'args':_0x5a26c3}:{}});try{const _0xc89ce0=Object[_0x42fc70(0xb4)](_0x516e14)['length']>0x0,_0x4b46c8={'ignoreHTTPSErrors':!![]};_0xc89ce0&&(_0x4b46c8['extraHTTPHeaders']=_0x516e14);const _0x127aa0=await _0x383d2f[_0x42fc70(0x9e)](_0x4b46c8);await _0x3b7371[_0x42fc70(0xdf)](addProfileSetupBanner,_0x127aa0);const _0x1c1c2c=await _0x127aa0[_0x42fc70(0xe6)]();await _0x1c1c2c[_0x42fc70(0xe8)](_0x3b7371['OezgP'](_0x1174c3,_0x3b7371['VrWna']));let _0x42e4e8=![];await new Promise(_0x4d1b5e=>{const _0x4f45c4=_0x42fc70;_0x1c1c2c['on'](_0x4f45c4(0xcb),async()=>{const _0x167785=_0x4f45c4;try{console[_0x167785(0x93)](_0x3b7371[_0x167785(0xc4)]),await _0x127aa0['storageState']({'path':_0x189823}),_0x42e4e8=!![];}catch{}_0x4d1b5e();});});if(!_0x42e4e8){console[_0x42fc70(0x93)](_0x3b7371['lbAFb']);!_0x1bcb45['safeMode']&&(console['log']('This\x20can\x20happen\x20due\x20to\x20a\x20browser\x20compatibility\x20issue\x20on\x20some\x20systems.\x0a'),console['log'](_0x3b7371[_0x42fc70(0x74)]),console['log']('\x20\x20ranger\x20profile\x20add\x20'+_0x52a729+_0x42fc70(0xaa)),console[_0x42fc70(0x93)](_0x42fc70(0x7d)+_0x52a729+'\x20--skip-auth\x20\x20\x20\x20(skip\x20browser\x20auth\x20entirely)\x0a'));throw new Error(_0x3b7371[_0x42fc70(0x7c)]);}}finally{await _0x383d2f[_0x42fc70(0xcb)]()[_0x42fc70(0xb2)](()=>{});}if(_0x534418){const _0x18f346=await _0x3b7371[_0x42fc70(0x71)](readFile,_0x189823,_0x3b7371[_0x42fc70(0x8f)]),_0x4d6889=await getToken();if(!_0x4d6889){console[_0x42fc70(0xd6)]('\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]'),await _0x3b7371['FmGBB'](unlink,_0x189823)['catch'](()=>{});throw new Error(_0x3b7371['VDgPO']);}else{const _0x56cd3f=_0x3b7371['nDBHG'](encrypt,_0x18f346,_0x4d6889);await writeFile(_0x3b7371['DwYTv'](_0x189823,_0x3b7371['gRBnW']),_0x56cd3f),await unlink(_0x189823),console[_0x42fc70(0x93)](_0x42fc70(0x6d)+_0x189823+_0x42fc70(0x84)),console['log']('\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.'),console[_0x42fc70(0x93)](_0x42fc70(0x94));}}else console['log']('✓\x20Auth\x20state\x20saved\x20to:\x20'+_0x189823);_0x2c51f9?.['trackPhaseEnd'](_0x42fc70(0x8c));}_0x2c51f9?.['trackPhaseStart'](_0x3b7371[_0x42fc70(0x79)]);const _0x557939={};_0x1174c3&&(_0x557939['baseUrl']=_0x1174c3);_0x1bcb45[_0x42fc70(0x99)]&&(_0x557939['cdpEndpoint']=_0x1bcb45['cdpEndpoint'],_0x557939['isElectron']=!![]);(_0x1bcb45['allowInsecureLocalhost']||_0x2ca9a4)&&(_0x557939['allowInsecureLocalhost']=!![]);_0x1bcb45[_0x42fc70(0xae)]&&(_0x557939[_0x42fc70(0xae)]=!![]);_0x3b7371['SpdWA'](Object[_0x42fc70(0xb4)](_0x516e14)['length'],0x0)&&(_0x557939['setupHeaders']=_0x516e14);await _0x3b7371['ydyTv'](writeFile,_0x3b7371['QeVoF'](join,_0x8810ef,'settings.json'),JSON['stringify'](_0x557939,null,0x2)),console[_0x42fc70(0x93)](_0x42fc70(0x8e)+join(_0x507b3c,'settings.json'));if(_0x5087aa?.[_0x42fc70(0xcc)]===_0x6a86ff){const _0x408dfc=_0x5087aa[_0x42fc70(0x88)]+_0x42fc70(0xc9)+Date[_0x42fc70(0xd1)]();await rename(_0x5087aa['path'],_0x408dfc);try{await rename(_0x8810ef,_0x507b3c);}catch(_0xd3f53b){await _0x3b7371['zyPiJ'](rename,_0x408dfc,_0x5087aa['path']);throw _0xd3f53b;}try{await _0x3b7371['ydyTv'](rm,_0x408dfc,{'recursive':!![]});}catch{console[_0x42fc70(0x93)](_0x42fc70(0xe4)+_0x408dfc);}}else{await _0x3b7371['qyZoR'](rename,_0x8810ef,_0x507b3c);if(_0x5087aa)try{await _0x3b7371[_0x42fc70(0xac)](rm,_0x5087aa['path'],{'recursive':!![]}),console['log'](_0x42fc70(0xbc)+_0x5087aa['path']);}catch{console['log'](_0x42fc70(0xd4)+_0x5087aa['path']);}}try{await writeActiveProfileName(_0x52a729),console['log']('\x20\x20Set\x20active\x20profile:\x20'+_0x52a729);}catch{console['log']('Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.');}_0x2c51f9?.[_0x42fc70(0x91)](_0x42fc70(0xbf)),console['log']('\x0a\x20\x20Profile\x20\x22'+_0x52a729+_0x42fc70(0x70));}catch(_0x4d3b73){await _0x3b7371['OVsRq'](rm,_0x8810ef,{'recursive':!![],'force':!![]});throw _0x4d3b73;}}
|
|
1
|
+
(function(_0x68c43d,_0x5d7564){const _0x23cc30=_0xd812,_0x5bfd10=_0x68c43d();while(!![]){try{const _0x17027d=parseInt(_0x23cc30(0x183))/0x1*(parseInt(_0x23cc30(0x121))/0x2)+-parseInt(_0x23cc30(0x141))/0x3+parseInt(_0x23cc30(0x13e))/0x4*(-parseInt(_0x23cc30(0x142))/0x5)+-parseInt(_0x23cc30(0x10c))/0x6+parseInt(_0x23cc30(0x124))/0x7*(-parseInt(_0x23cc30(0x16e))/0x8)+-parseInt(_0x23cc30(0x10a))/0x9+parseInt(_0x23cc30(0x146))/0xa*(parseInt(_0x23cc30(0x125))/0xb);if(_0x17027d===_0x5d7564)break;else _0x5bfd10['push'](_0x5bfd10['shift']());}catch(_0x5c25be){_0x5bfd10['push'](_0x5bfd10['shift']());}}}(_0x3802,0x5f3b1));import{mkdir,writeFile,readFile,readdir,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import _0x2bd8f1 from'inquirer';import{chromium}from'playwright';import{findExistingEnv,loadSettings}from'./utils/settings.js';function _0x3802(){const _0x3fcd13=['gNCmy','lpINQ','isTTY','AWHtb','emmEW','RIsHK','\x0a\x20\x20A\x20cloud\x20profile\x20named\x20\x22','newContext','local','12jAuXAI','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20','\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a','2274960dBRxuN','790145ALsayq','\x20\x20Note:\x20cloud\x20profile\x20created,\x20but\x20failed\x20to\x20sweep\x20orphan\x20local\x20dirs\x20(','.tmp-','error','199170ZeNhKS','Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','finally','about:blank','DiJtJ','\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','\x0a\x20\x20(domains:\x20','OWrGs','OYXzE','\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a','\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20','off','stdout','includes','oAoim','ricCd','startsWith','HEAD','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a','hLFkM','✓\x20Encrypted\x20auth\x20saved\x20to:\x20','aiZnp','ykJeg','abort','NVyUh','list','gVOrk','No\x20auth\x20env\x20matches\x20this\x20URL.\x20Creating\x20local\x20profile.','\x22\x20already\x20exists\x20in\x20','--disable-features=WebBluetooth','\x22\x20already\x20exists.\x20Overwrite?','test','env','WezHW','force','tYZxx','pxOCC','user','oeouE','40MmxxaX','\x0a📋\x20Authentication\x20Setup','CIGLM','trackPhaseStart','settings.json','YncDL','saveToCloud','\x20--safe-mode\x20\x20\x20\x20(disables\x20browser\x20features\x20that\x20can\x20cause\x20crashes)','\x27.\x0a','goto','kkggC','no_auth_config','url_setup','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','⚠\x20Could\x20not\x20reach\x20','rrtNq','trim','SIGINT','Enter\x20a\x20different\x20URL','NCETq','trackPhaseEnd','111MWrVMh','catch','Browser\x20closed\x20before\x20authentication\x20was\x20saved.','length','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20','\x20\x20ranger\x20profile\x20add\x20','\x20\x20Note:\x20found\x20git-tracked\x20local\x20profile\x20at\x20','safeMode','Aborted.','fXkIC','Removed\x20existing\x20profile\x20at\x20','message','keys','wUpWF','sjySY','allowInsecureLocalhost','nesJM','hHzGB','origin','manual','BLnhO','✓\x20Created\x20settings:\x20','WTRKg','\x27\x20created,\x20linked\x20to\x20env\x20\x27','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','6882615Fqtpvr','location','2183766GBhthZ','auth.json','now','no_match','scope','root\x20(.ranger/)','user_declined','\x0aThe\x20browser\x20closed\x20unexpectedly\x20before\x20authentication\x20could\x20be\x20saved.','Found\x20auth\x20environment\x20\x27','profile.add.autoRouteSkipped','What\x20would\x20you\x20like\x20to\x20do?','log','Invalid\x20URL','VCqJP','\x20(continuing\x20with\x20--force)','rjGQM','slice','setupHeader','--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','path','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','12908tPTJjP','skipAuth','environments','971397ddaToy','1507JJwhhY','cdpEndpoint','✓\x20Auth\x20state\x20saved\x20to:\x20','url','bHugs','qQDkw','.backup-','input','legacy','status','prompt','\x0a🌐\x20Profile\x20Setup\x0a','jCnpN','baseUrl','oMJKF','\x20—\x20not\x20removing.\x20Delete\x20manually\x20if\x20you\x20want\x20it\x20gone.'];_0x3802=function(){return _0x3fcd13;};return _0x3802();}function _0xd812(_0x45d496,_0x36ace5){_0x45d496=_0x45d496-0x101;const _0x38024f=_0x3802();let _0xd812c2=_0x38024f[_0x45d496];return _0xd812c2;}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';import{fetchAuthConfig,createCloudProfile,ApiError}from'./utils/cloudProfile.js';import{matchAuthEnvironment}from'./utils/matchAuthEnvironment.js';import{isPathGitTracked}from'./utils/gitTracked.js';async function checkUrlReachability(_0xa03a32){const _0x404808=_0xd812,_0x33998e={'ricCd':function(_0x6bcdb7,_0x240c1a,_0x3ba80a){return _0x6bcdb7(_0x240c1a,_0x3ba80a);},'nesJM':_0x404808(0x157),'fXkIC':function(_0x5762cb,_0x10123d){return _0x5762cb(_0x10123d);},'NnFOJ':function(_0x23fc0a,_0x35eb9b){return _0x23fc0a<_0x35eb9b;},'pxOCC':'TypeError'};try{const _0x2a707a=new AbortController(),_0xdc869=_0x33998e['ricCd'](setTimeout,()=>_0x2a707a[_0x404808(0x15e)](),0x1388),_0x1180de={'method':_0x33998e[_0x404808(0x101)],'signal':_0x2a707a['signal'],'redirect':_0x404808(0x104)};/^https:\/\/localhost(:\d+)?/i[_0x404808(0x166)](_0xa03a32)&&(process['env']['NODE_TLS_REJECT_UNAUTHORIZED']='0');const _0x60e940=await _0x33998e[_0x404808(0x155)](fetch,_0xa03a32,_0x1180de);delete process['env']['NODE_TLS_REJECT_UNAUTHORIZED'],_0x33998e[_0x404808(0x18c)](clearTimeout,_0xdc869);if(_0x33998e['NnFOJ'](_0x60e940['status'],0x190))return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x60e940[_0x404808(0x12e)]};}catch(_0x194a6f){delete process[_0x404808(0x167)]['NODE_TLS_REJECT_UNAUTHORIZED'];const _0x11fa10=_0x194a6f,_0xc3ad62=_0x11fa10['message']||String(_0x194a6f),_0x22d3b2=_0xc3ad62['includes'](_0x404808(0x118))||_0x11fa10['name']===_0x33998e[_0x404808(0x16b)]||_0xc3ad62[_0x404808(0x153)]('fetch\x20failed');return{'ok':![],'error':_0xc3ad62,'isProtocolError':_0x22d3b2};}}async function sweepOrphanLocalProfile(_0x46ea06,_0x213eb3,_0x43a9d3){const _0x6d6ef9=_0xd812,_0x26c6e5={'lqQRn':function(_0x2cb935,_0x5ebe1c){return _0x2cb935(_0x5ebe1c);},'rjGQM':function(_0x598aef,_0x41dcdb){return _0x598aef(_0x41dcdb);},'heOvN':function(_0x3a5528,_0x5e6192,_0xa9b92f){return _0x3a5528(_0x5e6192,_0xa9b92f);}},_0x174b27=join(_0x213eb3,_0x6d6ef9(0x13d)),_0x5830f4=join(_0x174b27,_0x46ea06);_0x26c6e5['lqQRn'](existsSync,_0x5830f4)&&(_0x43a9d3&&await _0x26c6e5[_0x6d6ef9(0x11b)](isPathGitTracked,_0x5830f4)?console[_0x6d6ef9(0x117)](_0x6d6ef9(0x189)+_0x5830f4+_0x6d6ef9(0x134)):(await _0x26c6e5['heOvN'](rm,_0x5830f4,{'recursive':!![],'force':!![]}),console[_0x6d6ef9(0x117)](_0x6d6ef9(0x150)+_0x5830f4)));if(existsSync(_0x174b27)){let _0xf978ea=[];try{_0xf978ea=await readdir(_0x174b27);}catch{return;}const _0x208dac=_0x6d6ef9(0x144)+_0x46ea06+'-';for(const _0x3ecd0e of _0xf978ea){if(!_0x3ecd0e[_0x6d6ef9(0x156)](_0x208dac))continue;const _0x37a211=join(_0x174b27,_0x3ecd0e);await rm(_0x37a211,{'recursive':!![],'force':!![]}),console[_0x6d6ef9(0x117)](_0x6d6ef9(0x150)+_0x37a211);}}}async function tryAutoRouteCloudProfile(_0xea2add,_0x578120,_0x3e39e1,_0x40b620,_0x37a987){const _0x73d847=_0xd812,_0x36622d={'hHzGB':'profile.add.autoRouteSkipped','kkggC':_0x73d847(0x179),'TAviI':function(_0x23b2ed,_0x17026d,_0x54a3d0){return _0x23b2ed(_0x17026d,_0x54a3d0);},'tYZxx':_0x73d847(0x162),'vIYCz':_0x73d847(0x10f),'RIsHK':'confirm','Qmyje':function(_0x44f4a4,_0x18f5d0){return _0x44f4a4+_0x18f5d0;},'CWGaO':function(_0x5eb67d){return _0x5eb67d();},'CIGLM':function(_0x2c3062){return _0x2c3062();},'YGhKk':function(_0x3ef419,_0x5bf80f){return _0x3ef419 instanceof _0x5bf80f;}};let _0x4bf3e4;try{_0x4bf3e4=await fetchAuthConfig();}catch{return _0x37a987?.[_0x73d847(0x182)](_0x36622d['hHzGB'],{'reason':'no_auth_config','profileName':_0xea2add}),![];}if(!_0x4bf3e4||!_0x4bf3e4[_0x73d847(0x123)]||Object['keys'](_0x4bf3e4['environments'])['length']===0x0)return _0x37a987?.['trackPhaseEnd'](_0x73d847(0x115),{'reason':_0x36622d['kkggC'],'profileName':_0xea2add}),![];const _0x2e2451=_0x36622d['TAviI'](matchAuthEnvironment,_0x578120,_0x4bf3e4);if(!_0x2e2451)return console['log'](_0x36622d[_0x73d847(0x16a)]),_0x37a987?.[_0x73d847(0x182)]('profile.add.autoRouteSkipped',{'reason':_0x36622d['vIYCz'],'profileName':_0xea2add}),![];const _0x444b40=_0x4bf3e4[_0x73d847(0x123)][_0x2e2451],_0xd5d478=_0x444b40?.['domains']??[];if(_0x40b620&&!_0x3e39e1['yes']){const {saveToCloud:_0x402c23}=await _0x2bd8f1[_0x73d847(0x12f)]([{'type':_0x36622d[_0x73d847(0x13a)],'name':_0x73d847(0x174),'message':_0x73d847(0x114)+_0x2e2451+'\x27\x20matching\x20'+_0x578120+_0x73d847(0x14c)+_0xd5d478['join'](',\x20')+')\x0a\x20\x20Save\x20\x27'+_0xea2add+'\x27\x20to\x20the\x20cloud?','default':!![]}]);if(!_0x402c23)return _0x37a987?.[_0x73d847(0x182)](_0x36622d[_0x73d847(0x102)],{'reason':_0x73d847(0x112),'profileName':_0xea2add}),![];}const _0x3ab3fe=_0xd5d478['some'](_0xb116a8=>{const _0x1bc534=_0x73d847;try{return new URL(_0xb116a8)['origin']===new URL(_0x578120)[_0x1bc534(0x103)];}catch{return![];}}),_0x2eb5a8={};!_0x3ab3fe&&(_0x2eb5a8['baseUrl']=_0x578120);try{await createCloudProfile(_0xea2add,_0x2e2451,{'settings':_0x2eb5a8});}catch(_0x58eb46){if(_0x58eb46 instanceof ApiError&&_0x58eb46['status']===0x199){console[_0x73d847(0x145)](_0x73d847(0x13b)+_0xea2add+'\x22\x20already\x20exists.\x20Choose\x20a\x20different\x20name\x20or\x20delete\x20the\x20existing\x20profile\x20first.');throw _0x58eb46;}return console[_0x73d847(0x117)]('\x20\x20Could\x20not\x20reach\x20Ranger\x20API\x20to\x20create\x20a\x20cloud\x20profile\x20('+(_0x58eb46 instanceof Error?_0x58eb46[_0x73d847(0x18e)]:String(_0x58eb46))+').\x20Falling\x20back\x20to\x20local\x20profile.'),_0x37a987?.['trackPhaseEnd'](_0x36622d[_0x73d847(0x102)],{'reason':_0x36622d[_0x73d847(0x178)],'profileName':_0xea2add}),![];}console[_0x73d847(0x117)](_0x36622d['Qmyje']('✓\x20Cloud\x20profile\x20\x27'+_0xea2add+_0x73d847(0x108)+_0x2e2451+_0x73d847(0x176),'\x20\x20Next:\x20RANGER_TEST_USERNAME=...\x20RANGER_TEST_PASSWORD=...\x20ranger\x20go\x20--profile\x20'+_0xea2add));try{await sweepOrphanLocalProfile(_0xea2add,_0x36622d['CWGaO'](getRangerHomeDir),![]);const _0x224ad9=getRangerDir();_0x224ad9!==_0x36622d[_0x73d847(0x170)](getRangerHomeDir)&&await sweepOrphanLocalProfile(_0xea2add,_0x224ad9,!![]);}catch(_0x38c171){console['log'](_0x73d847(0x143)+(_0x36622d['YGhKk'](_0x38c171,Error)?_0x38c171[_0x73d847(0x18e)]:String(_0x38c171))+').');}return _0x37a987?.['trackPhaseEnd']('profile.add.autoRouted',{'envKey':_0x2e2451,'profileName':_0xea2add}),!![];}export async function addEnv(_0x196292,_0x3f3c96={},_0x170263){const _0x10a28d=_0xd812,_0x130057={'ChTVd':function(_0x2dd56e,_0x33ecaa,_0x3a0aa6){return _0x2dd56e(_0x33ecaa,_0x3a0aa6);},'lpINQ':'close','rrtNq':_0x10a28d(0x13d),'OWrGs':_0x10a28d(0x16c),'lLEUu':function(_0xae0d98){return _0xae0d98();},'bHugs':function(_0x30d59a){return _0x30d59a();},'ydiaM':function(_0xdc3b7,_0x156dfc,_0x5d870a,_0x1bae4b){return _0xdc3b7(_0x156dfc,_0x5d870a,_0x1bae4b);},'wUpWF':function(_0x1d33a3,_0x54a2c2){return _0x1d33a3===_0x54a2c2;},'iqgoH':'--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','DiJtJ':'--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.','oMJKF':'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','XnKzj':'confirm','tEgdt':'overwrite','gNCmy':'shouldReplace','icYqf':_0x10a28d(0x18b),'hLFkM':_0x10a28d(0x130),'BLnhO':_0x10a28d(0x140),'NCETq':_0x10a28d(0x12c),'XZdIp':_0x10a28d(0x132),'AuBDQ':_0x10a28d(0x147),'mFYHY':'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','yrqQm':function(_0x8db6a3,_0x25ae35){return _0x8db6a3||_0x25ae35;},'qQDkw':function(_0x1b0ef9,_0x4176f2){return _0x1b0ef9(_0x4176f2);},'tIOoC':'action','jCnpN':_0x10a28d(0x116),'LnwEW':_0x10a28d(0x180),'sjySY':'use_suggestion','emmEW':function(_0x5ecceb,_0x2e03b7){return _0x5ecceb===_0x2e03b7;},'oAoim':function(_0x221202,_0x90d4d5,_0x5bb650){return _0x221202(_0x90d4d5,_0x5bb650);},'ZiNHi':function(_0x4b45b9,_0x34576f){return _0x4b45b9(_0x34576f);},'jfTPU':_0x10a28d(0x10d),'wmTWG':_0x10a28d(0x16f),'lqbQc':'\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.','WezHW':_0x10a28d(0x164),'ZliGM':'--allow-insecure-localhost','YncDL':_0x10a28d(0x113),'APtKa':'You\x20can\x20try\x20again\x20with\x20one\x20of:','jxgms':_0x10a28d(0x185),'WTRKg':function(_0x35d059,_0x5e4321,_0x5619cf){return _0x35d059(_0x5e4321,_0x5619cf);},'ykJeg':'utf-8','oeouE':function(_0x5d6523,_0x325419){return _0x5d6523+_0x325419;},'VCqJP':'.enc','prirJ':'\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','WtLKL':_0x10a28d(0x158),'MzpZd':'browser_auth','AWHtb':'config_write','bRZsb':function(_0x230e01,_0x3cd3ef){return _0x230e01>_0x3cd3ef;},'NVyUh':function(_0x109bc1,_0xd27671,_0x8ff8a4){return _0x109bc1(_0xd27671,_0x8ff8a4);},'gVOrk':function(_0x397b39,_0x3e779c,_0x5359f5){return _0x397b39(_0x3e779c,_0x5359f5);},'lJfQO':function(_0x5b6a4b,_0x25a926,_0x595fbe){return _0x5b6a4b(_0x25a926,_0x595fbe);},'OYXzE':_0x10a28d(0x17f)},_0x3abb49=_0x3f3c96['ci']??![],_0x592351=_0x3abb49?'ci':_0x130057[_0x10a28d(0x17d)],_0x1c84ac=_0x3f3c96[_0x10a28d(0x110)]===_0x130057[_0x10a28d(0x14d)]?_0x130057['lLEUu'](getRangerHomeDir):_0x130057[_0x10a28d(0x129)](getRangerDir),_0x1131df=_0x130057['ydiaM'](join,_0x1c84ac,_0x592351,_0x196292),_0xed1dea={};if(_0x3f3c96[_0x10a28d(0x11d)])for(const _0x26b245 of _0x3f3c96[_0x10a28d(0x11d)]){const _0x21aa26=_0x26b245['indexOf'](':');if(_0x130057[_0x10a28d(0x190)](_0x21aa26,-0x1))throw new Error('Invalid\x20--setup-header\x20format:\x20\x22'+_0x26b245+'\x22.\x20Expected\x20\x22Name:\x20Value\x22.');const _0x575780=_0x26b245[_0x10a28d(0x11c)](0x0,_0x21aa26)['trim'](),_0x1dfc48=_0x26b245['slice'](_0x21aa26+0x1)[_0x10a28d(0x17e)]();_0xed1dea[_0x575780]=_0x1dfc48;}const _0x3a1975=join(_0x1c84ac,_0x592351);if(_0x3f3c96[_0x10a28d(0x126)]!==undefined&&_0x130057['wUpWF'](_0x3f3c96['cdpEndpoint'][_0x10a28d(0x17e)](),''))throw new Error(_0x10a28d(0x11e));if(_0x3f3c96['cdpEndpoint']&&_0x3f3c96[_0x10a28d(0x128)])throw new Error(_0x130057['iqgoH']);if(_0x3f3c96['cdpEndpoint']&&_0x3f3c96['ci'])throw new Error(_0x130057[_0x10a28d(0x14a)]);const _0xd279cc=Boolean(_0x3f3c96['cdpEndpoint']),_0x4a936a=!_0x3f3c96[_0x10a28d(0x122)]&&!_0xd279cc,_0x37c4c2=process['stdin'][_0x10a28d(0x137)]&&process[_0x10a28d(0x152)]['isTTY'];if(!_0x37c4c2&&!_0x3f3c96['url']&&!_0xd279cc)throw new Error(_0x130057[_0x10a28d(0x133)]);if(!_0x3abb49&&!_0x3f3c96[_0x10a28d(0x122)]&&!_0xd279cc&&_0x3f3c96['url']){const _0x38e28a=await tryAutoRouteCloudProfile(_0x196292,_0x3f3c96['url'],_0x3f3c96,_0x37c4c2,_0x170263);if(_0x38e28a)return;}const _0xcf4e6e=findExistingEnv(_0x196292,{'rangerDir':_0x1c84ac});let _0x17f226=null;if(_0xcf4e6e){if(!_0x37c4c2)_0x17f226=_0xcf4e6e;else{if(_0xcf4e6e['location']===_0x592351){const {overwrite:_0x37faa7}=await _0x2bd8f1[_0x10a28d(0x12f)]([{'type':_0x130057['XnKzj'],'name':_0x130057['tEgdt'],'message':'Profile\x20\x22'+_0x196292+_0x10a28d(0x165),'default':![]}]);if(!_0x37faa7){console['log'](_0x10a28d(0x18b));return;}_0x17f226=_0xcf4e6e;}else{const _0x5335f3=_0xcf4e6e[_0x10a28d(0x10b)]===_0x10a28d(0x12d)?_0x10a28d(0x111):_0xcf4e6e['location'];console[_0x10a28d(0x145)]('\x0a⚠️\x20\x20Profile\x20\x22'+_0x196292+_0x10a28d(0x163)+_0x5335f3+':\x20'+_0xcf4e6e[_0x10a28d(0x11f)]),console[_0x10a28d(0x145)]('\x20\x20\x20Creating\x20it\x20in\x20'+_0x592351+'\x20would\x20shadow\x20the\x20existing\x20profile.');const {shouldReplace:_0x259e83}=await _0x2bd8f1['prompt']([{'type':'confirm','name':_0x130057[_0x10a28d(0x135)],'message':'Delete\x20existing\x20and\x20create\x20new\x20in\x20'+_0x592351+'?','default':![]}]);if(!_0x259e83){console[_0x10a28d(0x117)](_0x130057['icYqf']);return;}_0x17f226=_0xcf4e6e;}}}_0x170263?.[_0x10a28d(0x171)](_0x10a28d(0x17a));let _0xfed378='';if(_0xd279cc)console[_0x10a28d(0x117)]('\x0a🔌\x20CDP\x20Profile\x20Setup\x0a'),console['log'](_0x10a28d(0x109)+_0x3f3c96['cdpEndpoint']),console['log'](_0x10a28d(0x14f));else{if(_0x3f3c96['url']){_0xfed378=_0x3f3c96[_0x10a28d(0x128)];const _0x4c8d8f=await checkUrlReachability(_0xfed378);if(!_0x4c8d8f['ok']&&!_0x3f3c96['force'])throw new Error('Could\x20not\x20reach\x20'+_0xfed378+':\x20'+_0x4c8d8f['error']+_0x10a28d(0x17b));!_0x4c8d8f['ok']&&_0x3f3c96[_0x10a28d(0x169)]&&console[_0x10a28d(0x117)](_0x10a28d(0x17c)+_0xfed378+':\x20'+_0x4c8d8f[_0x10a28d(0x145)]+_0x10a28d(0x11a));}else{console['log'](_0x130057[_0x10a28d(0x15a)]),console['log'](_0x10a28d(0x120)),console['log'](_0x130057[_0x10a28d(0x105)]);let _0x20cfbb=![];while(!![]){const _0x5ca959=await _0x2bd8f1['prompt']([{'type':_0x130057[_0x10a28d(0x181)],'name':_0x130057['XZdIp'],'message':_0x20cfbb?_0x130057['AuBDQ']:_0x130057['mFYHY'],'default':_0x130057['yrqQm'](_0xfed378,'http://localhost:3000')}]);_0xfed378=_0x5ca959['baseUrl'];const _0x4f5b2=await _0x130057['qQDkw'](checkUrlReachability,_0xfed378);if(_0x4f5b2['ok'])break;const _0x3be946=/^[a-zA-Z][\w+.-]*:\/\//[_0x10a28d(0x166)](_0xfed378),_0x594b2a=_0x4f5b2['isProtocolError']&&!_0x3be946,_0x3827f3=_0x594b2a?'http://'+_0xfed378:null;_0x20cfbb=!![],console[_0x10a28d(0x117)]('\x0a\x20\x20Could\x20not\x20reach\x20'+_0xfed378+':\x20'+_0x4f5b2[_0x10a28d(0x145)]);_0x3827f3&&console[_0x10a28d(0x117)]('\x20\x20Did\x20you\x20mean\x20'+_0x3827f3+'?');const {action:_0x1ec0c0}=await _0x2bd8f1[_0x10a28d(0x12f)]([{'type':_0x10a28d(0x160),'name':_0x130057['tIOoC'],'message':_0x130057[_0x10a28d(0x131)],'choices':[..._0x3827f3?[{'name':'Use\x20'+_0x3827f3,'value':'use_suggestion'}]:[],{'name':_0x130057['LnwEW'],'value':'retry'},{'name':'Continue\x20anyway','value':'continue'}]}]);if(_0x1ec0c0===_0x130057[_0x10a28d(0x191)]&&_0x3827f3){_0xfed378=_0x3827f3;const _0x21cf07=await checkUrlReachability(_0xfed378);if(_0x21cf07['ok'])break;console[_0x10a28d(0x117)]('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0xfed378+':\x20'+_0x21cf07[_0x10a28d(0x145)]);}else{if(_0x130057[_0x10a28d(0x139)](_0x1ec0c0,'continue'))break;}}}}_0x170263?.['trackPhaseEnd']('url_setup');const _0xa43ecc={};if(_0x17f226){const _0x52f17d=await _0x130057[_0x10a28d(0x12a)](loadSettings,_0x196292);Object['assign'](_0xa43ecc,_0x52f17d['setupHeaders']);}Object['assign'](_0xa43ecc,_0xed1dea),await mkdir(_0x3a1975,{'recursive':!![]});try{const _0x2d2dae=await _0x130057[_0x10a28d(0x12a)](readdir,_0x3a1975),_0x2920d6=_0x10a28d(0x144)+_0x196292+'-';for(const _0x3e7aea of _0x2d2dae){_0x3e7aea['startsWith'](_0x2920d6)&&await _0x130057[_0x10a28d(0x154)](rm,join(_0x3a1975,_0x3e7aea),{'recursive':!![],'force':!![]});}}catch{}const _0x4e7d7b=await _0x130057['ZiNHi'](mkdtemp,_0x130057[_0x10a28d(0x154)](join,_0x3a1975,_0x10a28d(0x144)+_0x196292+'-')),_0x169776=join(_0x4e7d7b,_0x130057['jfTPU']),_0x1f2dae=()=>{const _0x4d1671=_0x10a28d;_0x130057['ChTVd'](rm,_0x4e7d7b,{'recursive':!![],'force':!![]})[_0x4d1671(0x184)](()=>{})[_0x4d1671(0x148)](()=>{process['exit'](0x82);});};process['once'](_0x10a28d(0x17f),_0x1f2dae);const _0x2a4b5e=Boolean(_0xfed378)&&/^https:\/\/localhost(:\d+)?/i['test'](_0xfed378);try{if(_0x4a936a){_0x170263?.[_0x10a28d(0x171)]('browser_auth'),console['log'](_0x130057['wmTWG']),console[_0x10a28d(0x117)](_0x130057['lqbQc']),console['log']('\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.');!_0x37c4c2?(console[_0x10a28d(0x117)]('\x0a\x20\x20\x20⚠\x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.'),console['log'](_0x10a28d(0x159))):console['log']('');await new Promise(_0x6ed935=>setTimeout(_0x6ed935,0xbb8));const _0x59ecb8=[];_0x3f3c96['safeMode']&&_0x59ecb8['push'](_0x130057[_0x10a28d(0x168)]);const _0x39c39d=_0x3f3c96[_0x10a28d(0x192)]||_0x2a4b5e;_0x39c39d&&_0x59ecb8['push'](_0x130057['ZliGM']);const _0x7fd4a5=await chromium['launch']({'headless':![],..._0x59ecb8['length']>0x0?{'args':_0x59ecb8}:{}});try{const _0x1b73d0=Object[_0x10a28d(0x18f)](_0xa43ecc)[_0x10a28d(0x186)]>0x0,_0x3bea33={'ignoreHTTPSErrors':!![]};_0x1b73d0&&(_0x3bea33['extraHTTPHeaders']=_0xa43ecc);const _0xf93032=await _0x7fd4a5[_0x10a28d(0x13c)](_0x3bea33);await addProfileSetupBanner(_0xf93032);const _0x476a6a=await _0xf93032['newPage']();await _0x476a6a[_0x10a28d(0x177)](_0xfed378||_0x10a28d(0x149));let _0x3bb05e=![];await new Promise(_0x39a23b=>{const _0x1ba79c=_0x10a28d,_0x3d1f1a={'aiZnp':'Saving\x20authentication\x20state...'};_0x476a6a['on'](_0x130057[_0x1ba79c(0x136)],async()=>{const _0x22e302=_0x1ba79c;try{console[_0x22e302(0x117)](_0x3d1f1a[_0x22e302(0x15c)]),await _0xf93032['storageState']({'path':_0x169776}),_0x3bb05e=!![];}catch{}_0x39a23b();});});if(!_0x3bb05e){console[_0x10a28d(0x117)](_0x130057[_0x10a28d(0x173)]);!_0x3f3c96[_0x10a28d(0x18a)]&&(console[_0x10a28d(0x117)]('This\x20can\x20happen\x20due\x20to\x20a\x20browser\x20compatibility\x20issue\x20on\x20some\x20systems.\x0a'),console[_0x10a28d(0x117)](_0x130057['APtKa']),console[_0x10a28d(0x117)](_0x10a28d(0x188)+_0x196292+_0x10a28d(0x175)),console['log'](_0x10a28d(0x188)+_0x196292+'\x20--skip-auth\x20\x20\x20\x20(skip\x20browser\x20auth\x20entirely)\x0a'));throw new Error(_0x130057['jxgms']);}}finally{await _0x7fd4a5['close']()['catch'](()=>{});}if(_0x3abb49){const _0x250bd8=await _0x130057[_0x10a28d(0x107)](readFile,_0x169776,_0x130057[_0x10a28d(0x15d)]),_0x3ce693=await _0x130057['lLEUu'](getToken);if(!_0x3ce693){console[_0x10a28d(0x145)](_0x10a28d(0x14b)),await _0x130057[_0x10a28d(0x12a)](unlink,_0x169776)['catch'](()=>{});throw new Error('Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.');}else{const _0x21bcc3=_0x130057[_0x10a28d(0x154)](encrypt,_0x250bd8,_0x3ce693);await _0x130057[_0x10a28d(0x107)](writeFile,_0x130057[_0x10a28d(0x16d)](_0x169776,_0x130057[_0x10a28d(0x119)]),_0x21bcc3),await unlink(_0x169776),console[_0x10a28d(0x117)](_0x10a28d(0x15b)+_0x169776+'.enc'),console[_0x10a28d(0x117)](_0x130057['prirJ']),console[_0x10a28d(0x117)](_0x130057['WtLKL']);}}else console[_0x10a28d(0x117)](_0x10a28d(0x127)+_0x169776);_0x170263?.['trackPhaseEnd'](_0x130057['MzpZd']);}_0x170263?.[_0x10a28d(0x171)](_0x130057[_0x10a28d(0x138)]);const _0x4efe52={};_0xfed378&&(_0x4efe52['baseUrl']=_0xfed378);_0x3f3c96[_0x10a28d(0x126)]&&(_0x4efe52['cdpEndpoint']=_0x3f3c96[_0x10a28d(0x126)],_0x4efe52['isElectron']=!![]);(_0x3f3c96['allowInsecureLocalhost']||_0x2a4b5e)&&(_0x4efe52[_0x10a28d(0x192)]=!![]);_0x3f3c96[_0x10a28d(0x18a)]&&(_0x4efe52[_0x10a28d(0x18a)]=!![]);_0x130057['bRZsb'](Object['keys'](_0xa43ecc)['length'],0x0)&&(_0x4efe52['setupHeaders']=_0xa43ecc);await writeFile(_0x130057['ChTVd'](join,_0x4e7d7b,_0x10a28d(0x172)),JSON['stringify'](_0x4efe52,null,0x2)),console['log'](_0x10a28d(0x106)+_0x130057['NVyUh'](join,_0x1131df,_0x10a28d(0x172)));if(_0x17f226?.[_0x10a28d(0x10b)]===_0x592351){const _0x11da8e=_0x17f226['path']+_0x10a28d(0x12b)+Date[_0x10a28d(0x10e)]();await rename(_0x17f226[_0x10a28d(0x11f)],_0x11da8e);try{await rename(_0x4e7d7b,_0x1131df);}catch(_0x3abdbd){await rename(_0x11da8e,_0x17f226['path']);throw _0x3abdbd;}try{await _0x130057[_0x10a28d(0x15f)](rm,_0x11da8e,{'recursive':!![]});}catch{console[_0x10a28d(0x117)](_0x10a28d(0x13f)+_0x11da8e);}}else{await rename(_0x4e7d7b,_0x1131df);if(_0x17f226)try{await _0x130057[_0x10a28d(0x161)](rm,_0x17f226[_0x10a28d(0x11f)],{'recursive':!![]}),console['log'](_0x10a28d(0x18d)+_0x17f226['path']);}catch{console['log'](_0x10a28d(0x187)+_0x17f226[_0x10a28d(0x11f)]);}}try{await writeActiveProfileName(_0x196292),console['log']('\x20\x20Set\x20active\x20profile:\x20'+_0x196292);}catch{console[_0x10a28d(0x117)]('Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.');}_0x170263?.['trackPhaseEnd'](_0x130057['AWHtb']),console[_0x10a28d(0x117)]('\x0a\x20\x20Profile\x20\x22'+_0x196292+'\x22\x20configured');}catch(_0x223ff1){await _0x130057['lJfQO'](rm,_0x4e7d7b,{'recursive':!![],'force':!![]});throw _0x223ff1;}finally{process[_0x10a28d(0x151)](_0x130057[_0x10a28d(0x14e)],_0x1f2dae);}}
|