@ranger-testing/ranger-cli 2.5.3 → 2.5.4-alpha.071b7bd-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/env.js +1 -1
  7. package/build/commands/feature.js +1 -1
  8. package/build/commands/hook.js +1 -1
  9. package/build/commands/hooks/autoPrompt.js +1 -1
  10. package/build/commands/hooks/disable.js +1 -1
  11. package/build/commands/hooks/enable.js +1 -1
  12. package/build/commands/hooks/exitPlanMode.js +1 -1
  13. package/build/commands/hooks/index.js +1 -1
  14. package/build/commands/hooks/output.js +1 -1
  15. package/build/commands/hooks/planReminder.js +1 -1
  16. package/build/commands/hooks/planStart.js +1 -1
  17. package/build/commands/hooks/postEdit.js +1 -1
  18. package/build/commands/hooks/preCompact.js +1 -1
  19. package/build/commands/hooks/sessionEnd.js +1 -1
  20. package/build/commands/hooks/sessionStart.js +1 -1
  21. package/build/commands/hooks/stopHook.js +1 -1
  22. package/build/commands/index.js +1 -1
  23. package/build/commands/login.js +1 -1
  24. package/build/commands/mcpBootstrap.js +1 -1
  25. package/build/commands/setup/claude.js +1 -1
  26. package/build/commands/setup/opencode.js +1 -1
  27. package/build/commands/setupCi.js +1 -1
  28. package/build/commands/skillup.js +1 -1
  29. package/build/commands/start.js +1 -1
  30. package/build/commands/status.js +1 -1
  31. package/build/commands/update.js +1 -1
  32. package/build/commands/updateEnv.js +1 -1
  33. package/build/commands/useEnv.js +1 -1
  34. package/build/commands/utils/activeProfile.js +1 -1
  35. package/build/commands/utils/agentEnv.js +1 -1
  36. package/build/commands/utils/browserSessionsApi.js +1 -1
  37. package/build/commands/utils/claudeConfig.js +1 -1
  38. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  39. package/build/commands/utils/claudePlugin.js +1 -1
  40. package/build/commands/utils/crypto.js +1 -1
  41. package/build/commands/utils/desirePathLog.js +1 -1
  42. package/build/commands/utils/deviceAuth.js +1 -1
  43. package/build/commands/utils/environment.js +1 -1
  44. package/build/commands/utils/featureApi.js +1 -1
  45. package/build/commands/utils/fixWebmDuration.js +1 -1
  46. package/build/commands/utils/keychain.js +1 -1
  47. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  48. package/build/commands/utils/mcpImageBase64.js +1 -1
  49. package/build/commands/utils/model.js +1 -1
  50. package/build/commands/utils/opencodeConfig.js +1 -1
  51. package/build/commands/utils/playwrightCli.js +1 -1
  52. package/build/commands/utils/profileMessages.js +1 -1
  53. package/build/commands/utils/profileSetupBanner.js +1 -1
  54. package/build/commands/utils/rangerConfig.js +1 -1
  55. package/build/commands/utils/rangerRoot.js +1 -1
  56. package/build/commands/utils/retry.js +1 -1
  57. package/build/commands/utils/sessionCache.js +1 -1
  58. package/build/commands/utils/settings.js +1 -1
  59. package/build/commands/utils/skillContent.js +1 -1
  60. package/build/commands/utils/skills.js +1 -1
  61. package/build/commands/utils/stitchWebmFiles.js +1 -1
  62. package/build/commands/utils/telemetry.js +1 -1
  63. package/build/commands/utils/tokenRefresh.js +1 -1
  64. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  65. package/build/commands/utils/userApi.js +1 -1
  66. package/build/commands/utils/version.js +1 -1
  67. package/build/commands/verifyFeature.js +1 -1
  68. package/build/commands/verifyFeatureCli.js +1 -1
  69. package/package.json +1 -1
package/build/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const _0x3121b2=_0x3a5f;(function(_0x39ac0d,_0x17fc96){const _0x5ac720=_0x3a5f,_0x1cdcc5=_0x39ac0d();while(!![]){try{const _0x33e27b=-parseInt(_0x5ac720(0x204))/0x1+-parseInt(_0x5ac720(0x2ed))/0x2+parseInt(_0x5ac720(0x327))/0x3+parseInt(_0x5ac720(0x318))/0x4+-parseInt(_0x5ac720(0x2e9))/0x5*(-parseInt(_0x5ac720(0x23b))/0x6)+-parseInt(_0x5ac720(0x2f3))/0x7+parseInt(_0x5ac720(0x1ef))/0x8*(parseInt(_0x5ac720(0x23f))/0x9);if(_0x33e27b===_0x17fc96)break;else _0x1cdcc5['push'](_0x1cdcc5['shift']());}catch(_0x21dd9f){_0x1cdcc5['push'](_0x1cdcc5['shift']());}}}(_0x5ec4,0x898a2));import _0x42afb1 from'dotenv';import{dirname,join,parse}from'path';import{existsSync}from'fs';function _0x3a5f(_0x30febc,_0x379c94){_0x30febc=_0x30febc-0x1be;const _0x5ec441=_0x5ec4();let _0x3a5f2c=_0x5ec441[_0x30febc];return _0x3a5f2c;}function findProjectRoot(){const _0x159b8d=_0x3a5f,_0x29a7b2={'LTYjd':function(_0x35e162,_0x26734c){return _0x35e162(_0x26734c);},'RjVnJ':function(_0x392b8b,_0x309c0a){return _0x392b8b!==_0x309c0a;},'bBeHN':function(_0x237c84,_0x2520d0,_0x4e1aab){return _0x237c84(_0x2520d0,_0x4e1aab);}};let _0x372a5d=process[_0x159b8d(0x2fa)]();const _0x323373=_0x29a7b2['LTYjd'](parse,_0x372a5d)[_0x159b8d(0x2f6)];while(_0x29a7b2[_0x159b8d(0x1ec)](_0x372a5d,_0x323373)){if(existsSync(join(_0x372a5d,_0x159b8d(0x278)))||existsSync(_0x29a7b2[_0x159b8d(0x331)](join,_0x372a5d,_0x159b8d(0x234))))return _0x372a5d;_0x372a5d=dirname(_0x372a5d);}return process[_0x159b8d(0x2fa)]();}_0x42afb1['config']({'path':join(findProjectRoot(),'.env')});import _0x22022e from'yargs/yargs';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';function _0x5ec4(){const _0x34ba29=['success','show\x20[id]','notes','Run\x20full\x20interactive\x20setup','wxbXo','--notes','UwZJf','mrLZg','.ranger','debug-outcome','Print\x20the\x20current\x20CLI\x20access\x20token','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','tiGqz','Zvoue','QSzaH','value','abQtE','Feature\x20review\x20ID','UktZK','uOhqc','positional','mBjHA','Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)','fail','boolean','ranger\x20delete','JACmz','onbwI','headed','HDgce','issues','Include\x20soft-deleted\x20feature\x20reviews','ranger\x20profile\x20config\x20get','Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)','\x20BLOCKED','MiQPL','aNpqa','\x0aUnknown\x20command:\x20','aKdMJ','VmOrj','wgrAe','knyxq','report','tOtyv','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios','error','--env','uevWl','sIeko','jLXGu','jIqYV','Skip\x20Chromium\x20browser\x20check\x20and\x20installation','ranger\x20config\x20get','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','set\x20<profile>\x20<key>\x20<value>','config\x20list','edit-scenario\x20<description>','start-path','Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','add-scenario\x20<description>','option','Authenticated\x20via\x20MCP,\x20but\x20failed\x20to\x20verify:\x20','name','pTowm','limit','HTTP\x20header\x20to\x20send\x20only\x20during\x20profile\x20setup\x20auth,\x20not\x20during\x20test\x20runs\x20(format:\x20\x22Name:\x20Value\x22)','Environment\x20name','Config\x20key','qEKiY','WFwuD','Task\x20description\x20(defaults\x20to\x20scenario\x20description)','VvjUo','current-branch','ZnJKg','incomplete','key','BjbDY','ranger\x20start','XUtjR','force','enable','Evaluation:\x20','BIzGD','ranger\x20feature\x20resume','ranger\x20show','profile\x20update','DPakH','hook:enable','NQQte','exitCode','--item','setup-header','JIctN','Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','yoqDy','Install\x20for\x20OpenCode\x20instead\x20of\x20Claude\x20Code','checklist','resume','✓\x20Authenticated\x20to\x20','task','env','JwmuV','SVIsc','Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','login','RQVqb','restore','mbtRM','kVcqZ','profile-name','setup:login','allow-insecure-localhost','scriptName','ranger\x20feature\x20get-feedback','siYgV','Documentation:\x0a','Set\x20up\x20a\x20local\x20browser\x20profile','iQVTB','Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)','config\x20unset','rFGzR','12635ymFMDa','start\x20[token]','Force\x20headed\x20browser\x20for\x20this\x20run\x20only\x20(does\x20not\x20change\x20profile\x20config)','Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review','1443508sLZQsS','qVwqU','Skip\x20authentication\x20(install\x20deps\x20only\x20—\x20for\x20container/CI\x20image\x20builds)','\x20is\x20now\x20','number','ranger\x20profile\x20update','7333732FNGVCi','command','ranger','root','Scenario\x20description','qMmGi','feature','cwd','encrypt\x20<profile>','profiles','auth','HlVVY','Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','Feature\x20review\x20description','print-access-token','phNpe','with-deps','offset','JCtAo','organizationName','List\x20all\x20feature\x20reviews','cfkRd','KuTlH','pCFun','feature\x20restore','HMqYh','base-url','\x0aIssues:','VAyJt','afCaM','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)','dZlyq','uusEw','ZPlwh','tokenOrSubcommand','skip-auth','\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)','190684iAElEF','partial','skillup','ranger\x20create','ranger\x20feature\x20list','usage','jnJEb','Ranger\x20API\x20token\x20(rngr_...)','setup-ci','show','user','Scenario\x20number\x20to\x20edit\x20(1-based)','config\x20get','Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version','MntQF','48285hbawjj','disable','scope','ibtOA','hnLfN','env\x20list','You\x20must\x20specify\x20an\x20env\x20subcommand','IlXFo','item','array','bBeHN','ePxrr','Name\x20of\x20the\x20environment','OeRKl','sgUqW','Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','add\x20<profile-name>','IOloU','cdp-endpoint','argv','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','gVhgX','Where\x20to\x20store\x20the\x20profile','ranger\x20add\x20env','Disable\x20browser\x20features\x20that\x20can\x20cause\x20crashes\x20on\x20some\x20systems\x20(e.g.\x20Bluetooth\x20permission\x20prompts\x20on\x20macOS)','config\x20set','Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','Scenario\x20index\x20(1-based)','TqVQt','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','NNGCl','session-id','Install\x20OS-level\x20dependencies\x20for\x20Chromium','setup-ci\x20<token>','ranger\x20config\x20list','url','dAVuR','EwEYF','opencode','hook','ranger\x20profile\x20use','parse','UAPxt','update','gKHQa','ngoeG','restore\x20<id>','profile\x20ls','ranger\x20profile\x20config\x20set','YrEpJ','ranger\x20go','HtZgM','Install\x20scope\x20for\x20skills','Config\x20key\x20to\x20remove','safe-mode','Unknown\x20error','JHZmr','FZlSn','Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review','gVEbx','API\x20token','maebH','ranger\x20setup','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','RjVnJ','You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand','XZnsw','15906104JAlshN','Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','project','rPJSM','MZcgE','rmuZW','blocked','AjObF','ranger\x20list','UITqC','iYWPS','fPvdT','csoko','model','Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context','description','JyCRn','hnWbX','tIrxe','Skip\x20Chromium\x20browser\x20installation','claude','131138JNKBxT','profile','Enable\x20Ranger\x20hooks\x20for\x20this\x20session','log','Qrgwe','qvKzV','json','Install\x20skills\x20for\x20OpenCode','Bootstrap\x20CLI\x20auth\x20via\x20an\x20MCP\x20auth\x20server\x20instead\x20of\x20browser\x20login','Install\x20Claude\x20Code\x20plugin\x20and\x20skills','exclude-scenario','Where\x20to\x20store\x20the\x20profile:\x20user\x20(~/.ranger/)\x20or\x20project\x20(.ranger/)','scenario','BHnQT','Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','Name\x20of\x20the\x20profile\x20to\x20update','mcp','wxySj','ranger\x20get-review','WSXgM','QUJXt','CLlzP','Profile\x20name','list','debug-address-comments','env-name','setup:profiles','trackCommandError','jhSRr','Summary:\x20','Manage\x20profile\x20configuration','AFDlF','yNISX','Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','pjIaz','tbQQM','List\x20all\x20profiles','ranger\x20config\x20set','Update\x20authentication\x20for\x20an\x20existing\x20profile','help','repeat','XbOHS','Set\x20a\x20config\x20value','config','Install\x20scope\x20for\x20plugin\x20and\x20skills','uvuEp','ranger\x20verify-feature','uayuo','.env','JvnzW','Authenticate\x20with\x20Ranger','mcp-bootstrap','Config\x20value','Install\x20OS-level\x20dependencies\x20for\x20Chromium\x20(apt\x20packages\x20for\x20Debian/Ubuntu\x20containers)','GVsKQ','978GvIVnm','tmyAq','profile\x20use','create\x20<name>','9nMdrac','YUXCF','yEWwy','setup:skills','map','ranger\x20feature\x20show','string','add\x20env\x20<env-name>','EEumP','ranger\x20config\x20unset','qSHgj','profile\x20config\x20get','include-deleted','UjQxz','TxxSQ','Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','ranger\x20feature\x20delete','some','BnQsr','token','Skip\x20browser\x20authentication','CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.','Number\x20of\x20feature\x20reviews\x20to\x20skip','skip-chromium','eypRt','VjQPq','lrkTP','mzyVL','feature\x20add-checklist-item','Get\x20a\x20config\x20value','Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)','YZhPE','--checklist','Feature\x20review\x20ID\x20to\x20restore','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','demandCommand','xVrDg','all','--profile','algyr','ranger\x20add-scenario','wLhTT','Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','evaluationReason','evaluation','hgTIA','fEIWJ','verify-feature','alias'];_0x5ec4=function(){return _0x34ba29;};return _0x5ec4();}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']('unhandledRejection',async _0x210953=>{const _0x491343=_0x3a5f,_0xe4ee56=getCurrentCollector();_0xe4ee56&&await _0xe4ee56[_0x491343(0x21f)](_0x210953),process[_0x491343(0x2c9)]=0x1;});const rawArgs=process[_0x3121b2(0x1be)]['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\x20profile\x20config\x0a\x0a\x20\x20create\x20<name>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Create\x20a\x20feature\x20review\x20with\x20scenarios\x0a\x20\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20feature\x20reviews\x0a\x20\x20show\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20feature\x20review\x20details\x0a\x20\x20resume\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20feature\x20review\x0a\x20\x20add-scenario\x20<description>\x20\x20Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review\x0a\x20\x20edit-scenario\x20<description>\x20Edit\x20a\x20scenario\x20description\x0a\x20\x20get-review\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20reviewer\x20feedback\x0a\x20\x20report\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Generate\x20PR\x20description\x20markdown\x0a\x20\x20delete\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Soft\x20delete\x20a\x20feature\x20review\x0a\x20\x20restore\x20<id>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Restore\x20a\x20soft-deleted\x20feature\x20review\x0a\x0a\x20\x20go\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20a\x20scenario\x20in\x20the\x20browser\x0a\x0aRun\x20`ranger\x20<command>\x20--help`\x20for\x20details.',PROFILE_HELP='Usage:\x20ranger\x20profile\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth,\x20--scope\x20user|project)\x0a\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Profile\x20config\x20(set/get/list/unset)\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20add\x20local\x0a\x20\x20ranger\x20profile\x20encrypt-auth\x20ci\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20headless\x20true',PROFILE_CONFIG_HELP=_0x3121b2(0x27b);function warnRenamed(_0x336e4c,_0x4de396){const _0x5485df=_0x3121b2;console['error']('\x0a'+_0x336e4c+_0x5485df(0x2f0)+_0x4de396+'\x0a');}function argUsed(_0x7419a4){const _0x491b6a=_0x3121b2;return rawArgs[_0x491b6a(0x250)](_0x31ced=>_0x31ced===_0x7419a4||_0x31ced['startsWith'](_0x7419a4+'='));}function warnFlagRenamed(_0x8331df,_0x11a354,_0x1c573d){const _0x24f4e1={'rDCJL':function(_0x10aa7a,_0x1d839a,_0x581e11){return _0x10aa7a(_0x1d839a,_0x581e11);}};argUsed(_0x11a354)&&_0x24f4e1['rDCJL'](warnRenamed,_0x8331df+'\x20'+_0x11a354,_0x8331df+'\x20'+_0x1c573d);}async function runGoCommand(_0x434620,_0x5a8c1e=![]){const _0x4228dc=_0x3121b2,_0x2f064a={'AvILt':'ranger\x20go','tRtyw':_0x4228dc(0x29e),'AJxvQ':_0x4228dc(0x265),'xvlox':'--scenario','dNlTx':function(_0x4eb86b){return _0x4eb86b();},'emynI':function(_0x1cbf36,_0xb9efe4){return _0x1cbf36+_0xb9efe4;},'zXzfr':'verified','iQVTB':'\x20VERIFIED','WFwuD':_0x4228dc(0x2ba),'hgTIA':'\x20INCOMPLETE','uusEw':'\x20PARTIAL','ijYHK':function(_0xaeb9e5,_0x19175c){return _0xaeb9e5===_0x19175c;},'UktZK':'\x20FAILED','RWaen':function(_0x5a0bf8,_0x1fe5f4){return _0x5a0bf8===_0x1fe5f4;}};_0x5a8c1e&&warnRenamed(_0x4228dc(0x232),_0x2f064a['AvILt']);warnFlagRenamed(_0x4228dc(0x1dd),_0x2f064a['tRtyw'],_0x2f064a['AJxvQ']),warnFlagRenamed(_0x2f064a['AvILt'],'--task',_0x4228dc(0x275)),warnFlagRenamed(_0x4228dc(0x1dd),_0x4228dc(0x2ca),_0x2f064a['xvlox']);const _0x29233b=await loadRangerConfig(),_0x4fd7ff=_0x2f064a['dNlTx'](isByokEnabled),_0x1698cb=_0x434620[_0x4228dc(0x1fc)],_0x369695=_0x29233b[_0x4228dc(0x1fc)],_0x4a5db8=await verifyFeature({'featureId':_0x434620[_0x4228dc(0x2f9)],'profile':_0x434620[_0x4228dc(0x205)]??_0x434620[_0x4228dc(0x2d4)],'notes':_0x434620[_0x4228dc(0x272)]??_0x434620[_0x4228dc(0x2d3)],'scenario':_0x434620['scenario']??_0x434620[_0x4228dc(0x32f)],'startPath':_0x434620['start-path'],'debugOutcome':_0x434620[_0x4228dc(0x279)],'debugAddressComments':_0x434620['debug-address-comments'],'headed':_0x434620[_0x4228dc(0x28c)],'byokEnabled':_0x4fd7ff,'flagVerifyModel':_0x1698cb,'configVerifyModel':_0x369695});console['log'](_0x2f064a['emynI']('\x0a','='[_0x4228dc(0x22c)](0x3c))),console[_0x4228dc(0x207)](_0x4a5db8['evaluation']===_0x2f064a['zXzfr']?_0x2f064a[_0x4228dc(0x2e5)]:_0x4a5db8[_0x4228dc(0x26b)]===_0x2f064a[_0x4228dc(0x2b5)]?_0x2f064a[_0x4228dc(0x26c)]:_0x4a5db8['evaluation']==='partial'?_0x2f064a[_0x4228dc(0x313)]:_0x2f064a['ijYHK'](_0x4a5db8['evaluation'],_0x4228dc(0x1f5))?_0x4228dc(0x292):_0x2f064a[_0x4228dc(0x282)]),console[_0x4228dc(0x207)]('='['repeat'](0x3c)),console[_0x4228dc(0x207)](_0x4228dc(0x221)+_0x4a5db8['summary']),console['log'](_0x4228dc(0x2c1)+_0x4a5db8['evaluation']),console[_0x4228dc(0x207)]('Reason:\x20'+_0x4a5db8[_0x4228dc(0x26a)]),_0x4a5db8['issues']?.['length']&&(console[_0x4228dc(0x207)](_0x4228dc(0x30e)),_0x4a5db8[_0x4228dc(0x28e)]['forEach']((_0x1522a7,_0x47215b)=>{console['log']('\x0a'+(_0x47215b+0x1)+'.\x20['+_0x1522a7['severity']+']\x20'+_0x1522a7['description']);})),process['exit'](_0x2f064a['RWaen'](_0x4a5db8['evaluation'],_0x2f064a['zXzfr'])?0x0:0x1);}_0x22022e(process[_0x3121b2(0x1be)]['slice'](0x2))[_0x3121b2(0x2e0)](_0x3121b2(0x2f5))['usage'](TOP_LEVEL_HELP)['version'](getCurrentVersion())[_0x3121b2(0x2f4)](_0x3121b2(0x23e),'Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios',_0x204a18=>{const _0x200a37=_0x3121b2,_0x29df76={'VJYQP':_0x200a37(0x1fe),'dtBCh':_0x200a37(0x245)};return _0x204a18[_0x200a37(0x284)](_0x200a37(0x2ae),{'type':_0x200a37(0x245),'description':'Feature\x20review\x20name','demandOption':!![]})[_0x200a37(0x2ac)](_0x29df76['VJYQP'],{'type':_0x29df76['dtBCh'],'alias':'d','description':_0x200a37(0x300)})[_0x200a37(0x2ac)](_0x200a37(0x210),{'type':'array','alias':'c','description':_0x200a37(0x2d7)})['option']('checklist',{'type':_0x200a37(0x330),'hidden':!![]});},async _0x45936c=>{const _0x55c212=_0x3121b2,_0x1b783f={'TVzML':_0x55c212(0x31b),'tNTEn':_0x55c212(0x25f),'RRDqN':function(_0x5d979c,_0x461b44,_0x39511e){return _0x5d979c(_0x461b44,_0x39511e);}};warnFlagRenamed(_0x1b783f['TVzML'],_0x1b783f['tNTEn'],'--scenario');const _0x18d9b9=_0x45936c[_0x55c212(0x210)]||_0x45936c[_0x55c212(0x2d0)];await _0x1b783f['RRDqN'](withTelemetry,'create',()=>featureCreate(_0x45936c[_0x55c212(0x2ae)],{'description':_0x45936c[_0x55c212(0x1fe)],'scenarios':_0x18d9b9}));})[_0x3121b2(0x2f4)]('list',_0x3121b2(0x307),_0x479bf0=>{const _0x1bfb9b=_0x3121b2,_0x3d5472={'KPrbh':'Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','CgIJF':_0x1bfb9b(0x2f1),'Zvoue':_0x1bfb9b(0x24b),'QbvrE':'boolean','TqVQt':'Include\x20soft-deleted\x20feature\x20reviews'};return _0x479bf0[_0x1bfb9b(0x2ac)]('current-branch',{'type':_0x1bfb9b(0x288),'description':'Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch'})[_0x1bfb9b(0x2ac)](_0x1bfb9b(0x2b0),{'type':'number','alias':'l','description':_0x3d5472['KPrbh'],'default':0xa})['option']('offset',{'type':_0x3d5472['CgIJF'],'alias':'o','description':_0x1bfb9b(0x255),'default':0x0})['option'](_0x3d5472[_0x1bfb9b(0x27d)],{'type':_0x3d5472['QbvrE'],'alias':'d','description':_0x3d5472[_0x1bfb9b(0x1c7)],'default':![]});},async _0x36b3e1=>{const _0x2a89f2=_0x3121b2,_0x2b660f={'dnZki':function(_0x5f2877,_0x16c010,_0x51f54b){return _0x5f2877(_0x16c010,_0x51f54b);},'RQVqb':_0x2a89f2(0x21b)};await _0x2b660f['dnZki'](withTelemetry,_0x2b660f[_0x2a89f2(0x2d9)],()=>featureList({'currentBranch':_0x36b3e1[_0x2a89f2(0x2b8)],'limit':_0x36b3e1[_0x2a89f2(0x2b0)],'offset':_0x36b3e1['offset'],'includeDeleted':_0x36b3e1['include-deleted']}));})['command'](_0x3121b2(0x271),'Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x2e4d8c=>{const _0x588787=_0x3121b2,_0x565282={'fJtfK':'Feature\x20review\x20ID'};return _0x2e4d8c[_0x588787(0x284)]('id',{'type':'string','description':_0x565282['fJtfK']});},async _0x17a6f6=>{const _0x439db4=_0x3121b2;await withTelemetry(_0x439db4(0x321),()=>featureShow(_0x17a6f6['id']));})[_0x3121b2(0x2f4)]('resume\x20[id]',_0x3121b2(0x1fd),_0x2465d1=>{const _0xcf2429=_0x3121b2,_0x1e3b12={'VjQPq':'Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)'};return _0x2465d1[_0xcf2429(0x284)]('id',{'type':'string','description':_0x1e3b12[_0xcf2429(0x258)]});},async _0x4505f9=>{const _0x1fbc79=_0x3121b2;await withTelemetry(_0x1fbc79(0x2d1),()=>featureResume(_0x4505f9['id']));})[_0x3121b2(0x2f4)](_0x3121b2(0x2ab),_0x3121b2(0x1e5),_0x3ad079=>{const _0x54511d=_0x3121b2,_0x5ef379={'yoqDy':'description'};return _0x3ad079['positional'](_0x5ef379[_0x54511d(0x2ce)],{'type':'string','description':_0x54511d(0x2f7),'demandOption':!![]})['option']('id',{'type':_0x54511d(0x245),'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x2f423d=>{const _0x823204=_0x3121b2,_0x4d554f={'onbwI':'add-scenario'};await withTelemetry(_0x4d554f[_0x823204(0x28b)],()=>featureAddScenario(_0x2f423d['description'],_0x2f423d['id']));})['command'](_0x3121b2(0x2a8),_0x3121b2(0x2ec),_0x383338=>{const _0xe1f32e=_0x3121b2,_0x13e524={'BjbDY':_0xe1f32e(0x1fe),'kdrCm':_0xe1f32e(0x245),'UJzNY':'New\x20scenario\x20description','IlXFo':'scenario','lsObj':_0xe1f32e(0x323)};return _0x383338['positional'](_0x13e524[_0xe1f32e(0x2bc)],{'type':_0x13e524['kdrCm'],'description':_0x13e524['UJzNY'],'demandOption':!![]})[_0xe1f32e(0x2ac)](_0x13e524[_0xe1f32e(0x32e)],{'type':'number','description':_0x13e524['lsObj'],'demandOption':!![]})[_0xe1f32e(0x2ac)]('id',{'type':_0xe1f32e(0x245),'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x586c99=>{const _0x3ebb6e=_0x3121b2,_0x3a090f={'UAPxt':'edit-scenario'};await withTelemetry(_0x3a090f[_0x3ebb6e(0x1d5)],()=>featureEditScenario(_0x586c99[_0x3ebb6e(0x1fe)],{'id':_0x586c99['id'],'scenario':_0x586c99[_0x3ebb6e(0x210)]}));})[_0x3121b2(0x2f4)]('report\x20[id]',_0x3121b2(0x25d),_0x1f36fd=>{const _0x147405=_0x3121b2,_0x1aed6f={'AcuNC':_0x147405(0x20a)};return _0x1f36fd[_0x147405(0x284)]('id',{'type':'string','description':_0x147405(0x281)})[_0x147405(0x2ac)](_0x147405(0x20e),{'type':_0x147405(0x330),'description':_0x147405(0x286)})['option'](_0x1aed6f['AcuNC'],{'type':'boolean','description':'Output\x20structured\x20JSON\x20data\x20instead\x20of\x20markdown','default':![]});},async _0x5ac8ee=>{const _0x14df02=_0x3121b2,_0x450c97={'VhGrC':_0x14df02(0x20e),'NQQte':function(_0x1fc336,_0x338d8c,_0x2bd14f){return _0x1fc336(_0x338d8c,_0x2bd14f);}},_0x2ea96c=_0x5ac8ee[_0x450c97['VhGrC']],_0x3154fc=_0x2ea96c?_0x2ea96c[_0x14df02(0x243)](_0x1bf9f7=>Number(_0x1bf9f7)):undefined;await _0x450c97[_0x14df02(0x2c8)](withTelemetry,_0x14df02(0x29a),()=>featureReportPrDescription(_0x5ac8ee['id'],{'excludeScenarios':_0x3154fc,'json':_0x5ac8ee[_0x14df02(0x20a)]}));})['command']('get-review\x20[id]',_0x3121b2(0x29c),_0x12abc0=>{const _0x5628cc=_0x3121b2,_0x227e48={'KcfAd':_0x5628cc(0x245)};return _0x12abc0[_0x5628cc(0x284)]('id',{'type':_0x227e48['KcfAd'],'description':_0x5628cc(0x261)});},async _0x195df6=>{const _0x86c3ed=_0x3121b2,_0x1cd9db={'uevWl':function(_0x5b54e0,_0x205cf2,_0x321b61){return _0x5b54e0(_0x205cf2,_0x321b61);}};await _0x1cd9db[_0x86c3ed(0x29f)](withTelemetry,'get-review',()=>featureGetReview(_0x195df6['id']));})['command']('delete\x20[id]','Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x51b250=>{const _0x1c37ee=_0x3121b2;return _0x51b250['positional']('id',{'type':_0x1c37ee(0x245),'description':'Feature\x20review\x20ID'});},async _0x3e582f=>{const _0x7dcf51=_0x3121b2,_0x41e453={'VAyJt':function(_0x1c56e4,_0x385b02,_0x1fe3d5){return _0x1c56e4(_0x385b02,_0x1fe3d5);}};await _0x41e453[_0x7dcf51(0x30f)](withTelemetry,'delete',()=>featureDelete(_0x3e582f['id']));})[_0x3121b2(0x2f4)](_0x3121b2(0x1d9),'Restore\x20a\x20soft-deleted\x20feature\x20review',_0x53ecd1=>{const _0x4caf9b=_0x3121b2,_0x52798a={'afCaM':_0x4caf9b(0x260)};return _0x53ecd1['positional']('id',{'type':_0x4caf9b(0x245),'description':_0x52798a[_0x4caf9b(0x310)],'demandOption':!![]});},async _0x3d0142=>{const _0x7193d4=_0x3121b2;await withTelemetry(_0x7193d4(0x2da),()=>featureRestore(_0x3d0142['id']));})['command']('setup\x20[tokenOrSubcommand]','Initialize\x20Ranger\x20in\x20your\x20project',_0x1e73e2=>{const _0x54f8b0=_0x3121b2,_0xc919d1={'DtKAe':'token','ibtOA':'Ranger\x20API\x20token','UwZJf':'boolean','cLKwy':_0x54f8b0(0x316),'nIKAV':'Skip\x20authentication','zyHCP':'with-deps','WaWgl':_0x54f8b0(0x1cb),'JCtAo':_0x54f8b0(0x329),'ngoeG':_0x54f8b0(0x322),'KJOih':'project','UYRVJ':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup','iZTcL':'Install\x20for\x20OpenCode\x20instead\x20of\x20Claude\x20Code','BnQsr':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments','MDwqm':'Bootstrap\x20CLI\x20auth\x20via\x20an\x20MCP\x20auth\x20server','JIctN':'mcp-bootstrap','fpLzA':_0x54f8b0(0x239),'iYWPS':'setup:deps','NNGCl':_0x54f8b0(0x214),'KJNlM':'Authenticate\x20via\x20MCP\x20proxy','YZhPE':function(_0x63548a){return _0x63548a();},'ihzWf':function(_0x2558f5,_0x3ff848){return _0x2558f5(_0x3ff848);},'nUngE':_0x54f8b0(0x2de),'JArSI':'Install\x20scope\x20for\x20plugin\x20and\x20skills','aNpqa':'opencode','oZUMD':function(_0x1e551f,_0x338e64,_0x48a9a7){return _0x1e551f(_0x338e64,_0x48a9a7);},'algyr':function(_0x56f548,_0x2921c2){return _0x56f548(_0x2921c2);},'yNISX':_0x54f8b0(0x245),'EDShx':_0x54f8b0(0x253),'abQtE':_0x54f8b0(0x1c8),'HlVVY':_0x54f8b0(0x21e),'rmuZW':'deps','wxbXo':'Install\x20Chromium\x20browser\x20binary','nNCvv':_0x54f8b0(0x20d),'UjQxz':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','YrEpJ':'url','EhflP':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','hmBLi':_0x54f8b0(0x2df),'IOloU':_0x54f8b0(0x225)};return _0x1e73e2['usage'](_0x54f8b0(0x2a5))[_0x54f8b0(0x284)](_0x54f8b0(0x315),{'type':_0x54f8b0(0x245),'description':'Subcommand\x20or\x20API\x20token\x20(rngr_...)'})['command'](_0x54f8b0(0x264),_0x54f8b0(0x273),_0xcd91a8=>{const _0x44a698=_0x54f8b0;return _0xcd91a8[_0x44a698(0x2ac)](_0xc919d1['DtKAe'],{'type':'string','description':_0xc919d1[_0x44a698(0x32a)]})['option']('skip-chromium',{'type':_0xc919d1[_0x44a698(0x276)],'description':_0x44a698(0x2a3),'default':![]})['option'](_0xc919d1['cLKwy'],{'type':'boolean','description':_0xc919d1['nIKAV'],'default':![]})['option'](_0xc919d1['zyHCP'],{'type':_0xc919d1[_0x44a698(0x276)],'description':_0xc919d1['WaWgl'],'default':![]})[_0x44a698(0x2ac)](_0xc919d1[_0x44a698(0x305)],{'type':'string','choices':[_0xc919d1[_0x44a698(0x1d8)],_0xc919d1['KJOih']],'description':_0x44a698(0x230)})['option']('url',{'type':_0x44a698(0x245),'description':_0xc919d1['UYRVJ']})['option']('force',{'type':_0xc919d1['UwZJf'],'description':_0x44a698(0x1c8),'default':![]})[_0x44a698(0x2ac)](_0x44a698(0x1d1),{'type':_0x44a698(0x288),'description':_0xc919d1['iZTcL'],'default':![]})['option']('allow-insecure-localhost',{'type':_0xc919d1[_0x44a698(0x276)],'description':_0xc919d1[_0x44a698(0x251)],'default':![]})[_0x44a698(0x2ac)](_0x44a698(0x237),{'type':'boolean','description':_0xc919d1['MDwqm'],'default':![]})['option'](_0x44a698(0x214),{'type':'boolean','description':'Alias\x20for\x20--mcp-bootstrap','default':![]});},async _0x20432d=>{const _0x2198a5=_0x54f8b0;(_0x20432d[_0xc919d1[_0x2198a5(0x2cc)]]||_0x20432d[_0x2198a5(0x214)])&&await withTelemetry(_0xc919d1['JIctN'],()=>mcpBootstrap()),await withTelemetry('setup:all',_0x1fcfd7=>start(_0x20432d[_0x2198a5(0x252)],{'skipChromium':_0x20432d['skip-chromium'],'skipAuth':_0x20432d['skip-auth'],'withDeps':_0x20432d['with-deps'],'scope':_0x20432d[_0x2198a5(0x329)],'url':_0x20432d[_0x2198a5(0x1ce)],'force':_0x20432d[_0x2198a5(0x2bf)],'opencode':_0x20432d[_0x2198a5(0x1d1)],'allowInsecureLocalhost':_0x20432d[_0x2198a5(0x2df)]},_0x1fcfd7));})['command'](_0xc919d1[_0x54f8b0(0x1f4)],_0xc919d1[_0x54f8b0(0x274)],_0x31f681=>{const _0x7305d=_0x54f8b0;return _0x31f681['option']('with-deps',{'type':_0x7305d(0x288),'description':_0xc919d1['fpLzA'],'default':![]});},async _0x5e0ab7=>{const _0x1319e9=_0x54f8b0;await withTelemetry(_0xc919d1[_0x1319e9(0x1f9)],()=>ensureChromium(_0x5e0ab7[_0x1319e9(0x303)]));})[_0x54f8b0(0x2f4)]('login',_0x54f8b0(0x236),_0x1ab0e0=>{const _0x56b2de=_0x54f8b0;return _0x1ab0e0['option'](_0x56b2de(0x252),{'type':'string','description':_0x56b2de(0x31f)})[_0x56b2de(0x2ac)](_0xc919d1[_0x56b2de(0x1c9)],{'type':_0xc919d1['UwZJf'],'description':_0xc919d1['KJNlM'],'default':![]});},async _0x2ceb72=>{await withTelemetry(_0xc919d1['nUngE'],async()=>{const _0x5e9224=_0x3a5f;if(_0x2ceb72[_0x5e9224(0x214)]){await _0xc919d1[_0x5e9224(0x25e)](mcpBootstrap);const _0x444b10=await _0xc919d1[_0x5e9224(0x25e)](refreshCliToken);if(!_0x444b10)throw new Error('Failed\x20to\x20exchange\x20MCP\x20refresh\x20token\x20for\x20a\x20CLI\x20token.');const _0x3a8b40=await getCurrentUser(_0x444b10);if(!_0x3a8b40[_0x5e9224(0x270)])throw new Error(_0x5e9224(0x2ad)+_0x3a8b40[_0x5e9224(0x29d)]);console[_0x5e9224(0x207)](_0x5e9224(0x2d2)+_0x3a8b40['user'][_0x5e9224(0x306)]);return;}await _0xc919d1['ihzWf'](authenticate,_0x2ceb72[_0x5e9224(0x252)]);});})['command']('skills',_0xc919d1['nNCvv'],_0x2c32f7=>{const _0x1a2637=_0x54f8b0;return _0x2c32f7['option'](_0x1a2637(0x329),{'type':_0x1a2637(0x245),'choices':['user','project'],'description':_0xc919d1['JArSI']})[_0x1a2637(0x2ac)](_0xc919d1[_0x1a2637(0x294)],{'type':_0xc919d1['UwZJf'],'description':_0xc919d1['iZTcL'],'default':![]});},async _0x576a8e=>{const _0xaffebb=_0x54f8b0,_0x30359f={'qvKzV':function(_0x261fb0,_0x48e9d0,_0x177363){return _0xc919d1['oZUMD'](_0x261fb0,_0x48e9d0,_0x177363);},'hnWbX':function(_0x2681ed,_0x32fcbb){const _0x2f9b64=_0x3a5f;return _0xc919d1[_0x2f9b64(0x266)](_0x2681ed,_0x32fcbb);}};await withTelemetry(_0xaffebb(0x242),async()=>{const _0x3d69ca=_0xaffebb,_0x44199d=_0x576a8e['scope'];if(_0x576a8e['opencode']){const _0x56bfa3=await ensureOpencodePluginConfig(_0x44199d);_0x56bfa3&&await _0x30359f[_0x3d69ca(0x209)](installSkill,'ranger',{'level':_0x56bfa3[_0x3d69ca(0x329)],'cliVersion':getCurrentVersion(),'platform':'opencode'});}else await _0x30359f['hnWbX'](ensureClaudePlugin,_0x44199d),await _0x30359f[_0x3d69ca(0x200)](ensureClaudeSkills,_0x44199d);});})[_0x54f8b0(0x2f4)](_0x54f8b0(0x2fc),_0x54f8b0(0x2e4),_0xcbf99a=>{const _0x2226d1=_0x54f8b0;return _0xcbf99a['option']('scope',{'type':_0xc919d1[_0x2226d1(0x224)],'choices':[_0xc919d1['ngoeG'],_0xc919d1['KJOih']],'description':_0x2226d1(0x1c1)})['option'](_0x2226d1(0x1ce),{'type':_0x2226d1(0x245),'description':'Base\x20URL\x20of\x20the\x20running\x20app'})[_0x2226d1(0x2ac)]('skip-auth',{'type':'boolean','description':_0xc919d1['EDShx'],'default':![]})['option'](_0x2226d1(0x2bf),{'type':'boolean','description':_0xc919d1['abQtE'],'default':![]})['option'](_0x2226d1(0x2df),{'type':_0xc919d1['UwZJf'],'description':_0xc919d1[_0x2226d1(0x251)],'default':![]});},async _0x54f89e=>{const _0x192309=_0x54f8b0;await withTelemetry(_0xc919d1[_0x192309(0x2fe)],_0x40490f=>ensureLocalEnv({'url':_0x54f89e[_0x192309(0x1ce)],'force':_0x54f89e['force'],'allowInsecureLocalhost':_0x54f89e['allow-insecure-localhost'],'scope':_0x54f89e['scope']===_0x192309(0x322)?'user':undefined},_0x40490f));})[_0x54f8b0(0x2ac)]('skip-chromium',{'type':'boolean','description':_0x54f8b0(0x2a3),'default':![]})['option'](_0xc919d1['JCtAo'],{'type':'string','choices':['user','project'],'description':_0xc919d1[_0x54f8b0(0x24c)]})['option'](_0xc919d1[_0x54f8b0(0x1dc)],{'type':_0x54f8b0(0x245),'description':_0xc919d1['EhflP']})['option']('force',{'type':_0xc919d1['UwZJf'],'description':_0xc919d1[_0x54f8b0(0x280)],'default':![]})['option']('opencode',{'type':_0xc919d1[_0x54f8b0(0x276)],'description':_0x54f8b0(0x2cf),'default':![]})['option'](_0xc919d1['hmBLi'],{'type':_0xc919d1[_0x54f8b0(0x276)],'description':_0xc919d1[_0x54f8b0(0x338)],'default':![]})['option'](_0xc919d1[_0x54f8b0(0x2cc)],{'type':_0xc919d1['UwZJf'],'description':_0x54f8b0(0x20c),'default':![]})['option']('skip-auth',{'type':_0xc919d1['UwZJf'],'description':_0x54f8b0(0x2ef),'default':![]})[_0x54f8b0(0x2ac)](_0xc919d1['zyHCP'],{'type':_0xc919d1[_0x54f8b0(0x276)],'description':_0xc919d1['fpLzA'],'default':![]})[_0x54f8b0(0x2ac)]('token',{'type':'string','hidden':!![],'description':_0x54f8b0(0x1e7)});},async _0x340ad9=>{const _0x3c5d93=_0x3121b2,_0x15442a={'uOhqc':_0x3c5d93(0x237),'fEIWJ':function(_0xd8c5b0,_0x361980,_0x13507e){return _0xd8c5b0(_0x361980,_0x13507e);},'SVIsc':'start'},_0x37009b=_0x340ad9[_0x3c5d93(0x315)],_0x4b0783=_0x340ad9['token']??_0x37009b;_0x340ad9[_0x15442a[_0x3c5d93(0x283)]]&&await _0x15442a[_0x3c5d93(0x26d)](withTelemetry,_0x3c5d93(0x237),()=>mcpBootstrap()),await _0x15442a[_0x3c5d93(0x26d)](withTelemetry,_0x15442a[_0x3c5d93(0x2d6)],_0x5b0206=>start(_0x4b0783,{'skipChromium':_0x340ad9[_0x3c5d93(0x256)],'skipAuth':_0x340ad9[_0x3c5d93(0x316)],'withDeps':_0x340ad9['with-deps'],'scope':_0x340ad9['scope'],'url':_0x340ad9['url'],'force':_0x340ad9[_0x3c5d93(0x2bf)],'opencode':_0x340ad9['opencode'],'allowInsecureLocalhost':_0x340ad9['allow-insecure-localhost']},_0x5b0206));})[_0x3121b2(0x2f4)](_0x3121b2(0x1cc),'Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)',_0x4a5e8c=>{const _0x247951=_0x3121b2,_0x569223={'xVrDg':'token','wgrAe':'CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)','kDkjJ':'skip-chromium','ZoWQs':_0x247951(0x202)};return _0x4a5e8c['positional'](_0x569223[_0x247951(0x263)],{'type':'string','description':'Ranger\x20API\x20token','demandOption':!![]})['option'](_0x247951(0x205),{'type':'string','description':_0x569223[_0x247951(0x298)]})[_0x247951(0x2ac)](_0x247951(0x30d),{'type':_0x247951(0x245),'description':_0x247951(0x291)})[_0x247951(0x2ac)](_0x569223['kDkjJ'],{'type':'boolean','description':_0x569223['ZoWQs'],'default':![]});},async _0x412c76=>{const _0x300cad=_0x3121b2;await withTelemetry(_0x300cad(0x320),_0x55bc52=>setupCi(_0x412c76[_0x300cad(0x252)],{'profile':_0x412c76[_0x300cad(0x205)],'baseUrl':_0x412c76[_0x300cad(0x30d)],'skipChromium':_0x412c76['skip-chromium']},_0x55bc52));})['command']('login','Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)',()=>{},async()=>{const _0x472bf7=_0x3121b2,_0x1137aa={'QSjWV':_0x472bf7(0x2d8)};await withTelemetry(_0x1137aa['QSjWV'],()=>login());})['command'](_0x3121b2(0x31a),'Install\x20Ranger\x20skills',_0x9c5215=>{const _0x33fb4c=_0x3121b2,_0x4760c8={'gFVvW':_0x33fb4c(0x288),'vzWVp':_0x33fb4c(0x20b)};return _0x9c5215[_0x33fb4c(0x2ac)]('opencode',{'type':_0x4760c8['gFVvW'],'description':_0x4760c8['vzWVp'],'default':![]})['option']('scope',{'type':'string','choices':[_0x33fb4c(0x322),_0x33fb4c(0x1f1)],'description':_0x33fb4c(0x1df)});},async _0x2b8595=>{const _0x444382=_0x3121b2,_0x20efc8={'cfkRd':function(_0x4c250b,_0x48e46f,_0x25bae1){return _0x4c250b(_0x48e46f,_0x25bae1);}},_0x34c038=Boolean(_0x2b8595['opencode']);await _0x20efc8[_0x444382(0x308)](withTelemetry,'skillup',()=>skillup({'autoInstall':_0x2b8595['scope'],'platform':_0x34c038?'opencode':_0x444382(0x203)}));})[_0x3121b2(0x2f4)]('clean','Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project',()=>{},async()=>{const _0x561ef2={'zOWRf':function(_0x495794,_0x398d16,_0x472f70){return _0x495794(_0x398d16,_0x472f70);}};await _0x561ef2['zOWRf'](withTelemetry,'clean',()=>clean());})['command'](_0x3121b2(0x205),'Manage\x20profiles',_0x3dee6e=>{const _0x58b208=_0x3121b2,_0xc8d93c={'XbOHS':'profile-name','ePxrr':_0x58b208(0x245),'GUGtl':_0x58b208(0x1f0),'HMqYh':_0x58b208(0x288),'BIzGD':_0x58b208(0x336),'Othni':'force','FMrrv':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','MZcgE':_0x58b208(0x339),'dZlyq':_0x58b208(0x2df),'wSOzJ':_0x58b208(0x1c3),'Ygosd':_0x58b208(0x2b1),'yEWwy':_0x58b208(0x20f),'XuzyN':function(_0x51a295,_0x20a206,_0x40cb63,_0x597e0f){return _0x51a295(_0x20a206,_0x40cb63,_0x597e0f);},'rgeLe':'profile\x20add','DSIlj':'Name\x20of\x20the\x20profile','XZnsw':function(_0x3f5dad,_0xfafa59,_0x2608f5){return _0x3f5dad(_0xfafa59,_0x2608f5);},'tbQQM':_0x58b208(0x23d),'cPNRl':'profile\x20encrypt-auth','oWijw':_0x58b208(0x225),'SHNTS':function(_0xa804ec,_0x4ae00e,_0x53f9bd){return _0xa804ec(_0x4ae00e,_0x53f9bd);},'kVcqZ':'profile','JwmuV':'key','anciV':'Config\x20value','pCFun':_0x58b208(0x21a),'vEkvL':_0x58b208(0x2b3),'ATNst':_0x58b208(0x24a),'xrFlo':_0x58b208(0x2a6),'MiQPL':_0x58b208(0x22e),'JHZmr':_0x58b208(0x25c),'jLXGu':'list\x20<profile>','GKQBu':'unset\x20<profile>\x20<key>','MntQF':_0x58b208(0x1ed),'aKdMJ':_0x58b208(0x337),'JACmz':'encrypt-auth\x20<profile>','myxJi':_0x58b208(0x2aa),'pjIaz':'update\x20<profile-name>','sjLgs':_0x58b208(0x22f),'CLlzP':_0x58b208(0x222)};return _0x3dee6e['usage'](PROFILE_HELP)['command'](_0xc8d93c[_0x58b208(0x296)],'Add\x20profile\x20configuration',_0x52a093=>{const _0x5ed776=_0x58b208;return _0x52a093['positional'](_0xc8d93c[_0x5ed776(0x22d)],{'type':_0xc8d93c[_0x5ed776(0x332)],'description':'Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','demandOption':!![]})['option']('ci',{'type':'boolean','description':_0xc8d93c['GUGtl'],'default':![]})['option']('skip-auth',{'type':_0xc8d93c[_0x5ed776(0x30c)],'description':_0xc8d93c[_0x5ed776(0x2c2)],'default':![]})['option'](_0x5ed776(0x1ce),{'type':_0xc8d93c['ePxrr'],'description':'Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)'})[_0x5ed776(0x2ac)](_0xc8d93c['Othni'],{'type':_0xc8d93c[_0x5ed776(0x30c)],'description':_0xc8d93c['FMrrv'],'default':![]})[_0x5ed776(0x2ac)](_0xc8d93c[_0x5ed776(0x1f3)],{'type':_0x5ed776(0x245),'description':_0x5ed776(0x254)})['option'](_0xc8d93c[_0x5ed776(0x312)],{'type':_0x5ed776(0x288),'description':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','default':![]})[_0x5ed776(0x2ac)](_0x5ed776(0x1e1),{'type':'boolean','description':_0xc8d93c['wSOzJ'],'default':![]})['option']('setup-header',{'type':_0xc8d93c['ePxrr'],'array':!![],'description':_0xc8d93c['Ygosd']})['option']('scope',{'type':_0xc8d93c[_0x5ed776(0x332)],'choices':[_0x5ed776(0x322),_0x5ed776(0x1f1)],'description':_0xc8d93c[_0x5ed776(0x241)]});},async _0x50845a=>{const _0x4bec81=_0x58b208;await _0xc8d93c['XuzyN'](withTelemetry,_0xc8d93c['rgeLe'],_0xc40e2c=>addEnv(_0x50845a['profile-name'],{'ci':_0x50845a['ci'],'skipAuth':_0x50845a['skip-auth'],'url':_0x50845a[_0x4bec81(0x1ce)],'force':_0x50845a['force'],'cdpEndpoint':_0x50845a[_0x4bec81(0x339)],'allowInsecureLocalhost':_0x50845a['allow-insecure-localhost'],'safeMode':_0x50845a[_0x4bec81(0x1e1)],'setupHeader':_0x50845a[_0x4bec81(0x2cb)],'scope':_0x50845a['scope']},_0xc40e2c),{'isElectron':Boolean(_0x50845a['cdp-endpoint'])});})['command']('use\x20<profile-name>','Switch\x20to\x20using\x20a\x20specific\x20profile',_0x1e98c4=>{const _0x1bfba5=_0x58b208;return _0x1e98c4['positional'](_0x1bfba5(0x2dd),{'type':_0xc8d93c['ePxrr'],'description':_0xc8d93c['DSIlj'],'demandOption':!![]});},async _0x4b0d44=>{const _0x6005d9=_0x58b208;await _0xc8d93c[_0x6005d9(0x1ee)](withTelemetry,_0xc8d93c[_0x6005d9(0x227)],()=>useEnv(_0x4b0d44['profile-name']));})[_0x58b208(0x2f4)](_0xc8d93c[_0x58b208(0x28a)],_0xc8d93c['myxJi'],_0x228d1a=>{const _0x219896=_0x58b208;return _0x228d1a['positional'](_0x219896(0x205),{'type':_0x219896(0x245),'description':_0x219896(0x21a),'demandOption':!![]});},async _0x5c56c1=>{await withTelemetry(_0xc8d93c['cPNRl'],()=>authEncrypt(_0x5c56c1['profile']));})[_0x58b208(0x2f4)]('ls',_0x58b208(0x228),()=>{},async()=>{const _0x302413=_0x58b208;await withTelemetry(_0x302413(0x1da),()=>envList());})['command'](_0xc8d93c[_0x58b208(0x226)],_0x58b208(0x22a),_0x1d7f81=>{const _0x93f4f3=_0x58b208;return _0x1d7f81['positional'](_0xc8d93c[_0x93f4f3(0x22d)],{'type':_0xc8d93c['ePxrr'],'description':_0x93f4f3(0x213),'demandOption':!![]})[_0x93f4f3(0x2ac)](_0xc8d93c['dZlyq'],{'type':_0xc8d93c['HMqYh'],'description':_0xc8d93c['oWijw']});},async _0x587fb9=>{const _0x90adb=_0x58b208;await _0xc8d93c['SHNTS'](withTelemetry,_0x90adb(0x2c5),_0x4941ff=>updateEnv(_0x587fb9[_0x90adb(0x2dd)],_0x4941ff,{'allowInsecureLocalhost':_0x587fb9[_0x90adb(0x2df)]}));})[_0x58b208(0x2f4)](_0xc8d93c['sjLgs'],_0xc8d93c[_0x58b208(0x219)],_0x38c2dd=>{const _0xcc0eff=_0x58b208,_0x57c6ab={'QUJXt':function(_0xaaf105,_0x3a1671,_0x2dee1f){const _0x10fe57=_0x3a5f;return _0xc8d93c[_0x10fe57(0x1ee)](_0xaaf105,_0x3a1671,_0x2dee1f);},'YUXCF':'profile\x20config\x20set','YnOBE':'profile\x20config\x20list','QBISh':_0xc8d93c['kVcqZ'],'DPakH':_0xcc0eff(0x245),'uUarD':_0xc8d93c[_0xcc0eff(0x2d5)],'dAVuR':'profile\x20config\x20unset'};return _0x38c2dd[_0xcc0eff(0x31d)](PROFILE_CONFIG_HELP)['command'](_0xc8d93c['xrFlo'],_0xc8d93c[_0xcc0eff(0x293)],_0x592631=>{const _0x535bc9=_0xcc0eff;return _0x592631['positional'](_0xc8d93c[_0x535bc9(0x2dc)],{'type':_0x535bc9(0x245),'description':_0x535bc9(0x21a),'demandOption':!![]})[_0x535bc9(0x284)](_0xc8d93c['JwmuV'],{'type':_0xc8d93c['ePxrr'],'description':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','demandOption':!![]})[_0x535bc9(0x284)](_0x535bc9(0x27f),{'type':_0xc8d93c[_0x535bc9(0x332)],'description':_0xc8d93c['anciV'],'demandOption':!![]});},async _0x54f541=>{const _0x11aea0=_0xcc0eff;await _0x57c6ab['QUJXt'](withTelemetry,_0x57c6ab[_0x11aea0(0x240)],()=>configSet(_0x54f541[_0x11aea0(0x205)],_0x54f541['key'],_0x54f541['value']));})[_0xcc0eff(0x2f4)]('get\x20<profile>\x20<key>',_0xc8d93c[_0xcc0eff(0x1e3)],_0x4c6381=>{const _0x45ff75=_0xcc0eff;return _0x4c6381[_0x45ff75(0x284)](_0x45ff75(0x205),{'type':'string','description':_0xc8d93c[_0x45ff75(0x30a)],'demandOption':!![]})[_0x45ff75(0x284)]('key',{'type':_0x45ff75(0x245),'description':_0xc8d93c['vEkvL'],'demandOption':!![]});},async _0x1da084=>{const _0x1ade99=_0xcc0eff;await _0xc8d93c['XZnsw'](withTelemetry,_0xc8d93c['ATNst'],()=>configGet(_0x1da084[_0x1ade99(0x205)],_0x1da084[_0x1ade99(0x2bb)]));})[_0xcc0eff(0x2f4)](_0xc8d93c[_0xcc0eff(0x2a1)],'List\x20all\x20config\x20for\x20a\x20profile',_0x6b2f05=>{const _0x281d40=_0xcc0eff;return _0x6b2f05[_0x281d40(0x284)](_0xc8d93c[_0x281d40(0x2dc)],{'type':_0xc8d93c[_0x281d40(0x332)],'description':_0xc8d93c[_0x281d40(0x30a)],'demandOption':!![]});},async _0x32f088=>{const _0x15e74a=_0xcc0eff;await _0x57c6ab[_0x15e74a(0x218)](withTelemetry,_0x57c6ab['YnOBE'],()=>configList(_0x32f088['profile']));})['command'](_0xc8d93c['GKQBu'],'Remove\x20a\x20config\x20value',_0x1813ec=>{const _0x10100f=_0xcc0eff;return _0x1813ec[_0x10100f(0x284)](_0x57c6ab['QBISh'],{'type':_0x57c6ab[_0x10100f(0x2c6)],'description':_0x10100f(0x21a),'demandOption':!![]})[_0x10100f(0x284)](_0x57c6ab['uUarD'],{'type':_0x57c6ab['DPakH'],'description':_0x10100f(0x1e0),'demandOption':!![]});},async _0x23b7e6=>{const _0xb41995=_0xcc0eff;await _0x57c6ab[_0xb41995(0x218)](withTelemetry,_0x57c6ab[_0xb41995(0x1cf)],()=>configUnset(_0x23b7e6['profile'],_0x23b7e6['key']));})[_0xcc0eff(0x262)](0x1,_0xc8d93c[_0xcc0eff(0x326)]);})[_0x58b208(0x262)](0x1,'You\x20must\x20specify\x20a\x20profile\x20subcommand');})[_0x3121b2(0x2f4)]('status','Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)',()=>{},async()=>{const _0x233fbb={'sjcxB':function(_0x4bfed3,_0x38dfac,_0x2b0bf4){return _0x4bfed3(_0x38dfac,_0x2b0bf4);}};await _0x233fbb['sjcxB'](withTelemetry,'status',()=>status());})['command'](_0x3121b2(0x1d6),_0x3121b2(0x325),()=>{},async()=>{const _0x632fda=_0x3121b2;await withTelemetry(_0x632fda(0x1d6),()=>update());})[_0x3121b2(0x2f4)]('print-access-token',_0x3121b2(0x27a),()=>{},async()=>{const _0x20885e=_0x3121b2,_0xa5a8db={'QtAHt':_0x20885e(0x301)};await withTelemetry(_0xa5a8db['QtAHt'],async()=>{const _0x351ea8=_0x20885e,_0xb0b1e7=await getToken();if(!_0xb0b1e7)throw new Error('No\x20token\x20found.\x20Run\x20`ranger\x20login`\x20to\x20authenticate.');console[_0x351ea8(0x207)](_0xb0b1e7);});})['command']('go',_0x3121b2(0x311),_0x4e23ea=>{const _0x33e1c0=_0x3121b2,_0x5c9f68={'BHnQT':_0x33e1c0(0x205),'HDgce':_0x33e1c0(0x245),'njWTX':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','bWvOK':'notes','IcQkN':'Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)','Nrwol':'number','AjObF':_0x33e1c0(0x24e),'WANPx':'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.','lrkTP':_0x33e1c0(0x28c),'NaDfN':'verified','qMmGi':_0x33e1c0(0x1f5),'VvjUo':'failed','rFGzR':_0x33e1c0(0x21c),'EYODv':'item'};return _0x4e23ea[_0x33e1c0(0x2ac)]('feature',{'type':'string','description':'Optional\x20feature\x20ID'})[_0x33e1c0(0x2ac)](_0x5c9f68[_0x33e1c0(0x211)],{'type':_0x5c9f68['HDgce'],'description':_0x5c9f68['njWTX']})[_0x33e1c0(0x2ac)](_0x5c9f68['bWvOK'],{'type':'string','description':_0x5c9f68['IcQkN']})[_0x33e1c0(0x2ac)](_0x33e1c0(0x210),{'type':_0x5c9f68['Nrwol'],'description':_0x33e1c0(0x1c6)})['option']('start-path',{'type':_0x5c9f68[_0x33e1c0(0x28d)],'description':_0x5c9f68[_0x33e1c0(0x1f6)]})[_0x33e1c0(0x2ac)]('model',{'type':_0x5c9f68[_0x33e1c0(0x28d)],'description':_0x5c9f68['WANPx']})[_0x33e1c0(0x2ac)](_0x5c9f68[_0x33e1c0(0x259)],{'type':'boolean','description':_0x33e1c0(0x2eb),'default':![]})['option'](_0x33e1c0(0x279),{'type':_0x33e1c0(0x245),'hidden':!![],'choices':[_0x5c9f68['NaDfN'],'partial',_0x5c9f68[_0x33e1c0(0x2f8)],_0x5c9f68[_0x33e1c0(0x2b7)],_0x33e1c0(0x2ba)]})['option'](_0x5c9f68[_0x33e1c0(0x2e8)],{'type':'boolean','hidden':!![]})['option']('env',{'type':'string','hidden':!![]})['option'](_0x33e1c0(0x2d3),{'type':_0x33e1c0(0x245),'hidden':!![]})[_0x33e1c0(0x2ac)](_0x5c9f68['EYODv'],{'type':'number','hidden':!![]});},async _0x1635cf=>{const _0x1d062d=_0x3121b2,_0x30b089={'gVhgX':function(_0x276510,_0x46400d){return _0x276510(_0x46400d);}};await _0x30b089[_0x1d062d(0x1c0)](runGoCommand,_0x1635cf);})[_0x3121b2(0x2f4)](_0x3121b2(0x2fd),![],_0x516585=>{const _0xa2be7=_0x3121b2,_0x483b55={'ZTWuy':_0xa2be7(0x205),'hsMTZ':_0xa2be7(0x21a),'tiGqz':function(_0xfd8d32,_0x520f73,_0x5eaf6f){return _0xfd8d32(_0x520f73,_0x5eaf6f);}};return _0x516585['command'](_0xa2be7(0x2fb),![],_0x141320=>{const _0x329227=_0xa2be7;return _0x141320['positional'](_0x483b55['ZTWuy'],{'type':_0x329227(0x245),'description':_0x483b55['hsMTZ'],'demandOption':!![]});},async _0x58bb6e=>{const _0x271f11=_0xa2be7;_0x483b55[_0x271f11(0x27c)](warnRenamed,'ranger\x20auth\x20encrypt','ranger\x20profile\x20encrypt-auth'),await authEncrypt(_0x58bb6e[_0x271f11(0x205)]);})[_0xa2be7(0x262)](0x1,'You\x20must\x20specify\x20an\x20auth\x20subcommand');},()=>{})[_0x3121b2(0x2f4)](_0x3121b2(0x2ea),![],_0x1288c3=>{const _0x5affaa=_0x3121b2,_0x4e684f={'Hxjub':'token','yPiTi':_0x5affaa(0x245),'DkbtD':_0x5affaa(0x2a3),'wLhTT':_0x5affaa(0x329),'ePaRB':_0x5affaa(0x322),'uayuo':'project','NeRDe':_0x5affaa(0x2ff),'YJyqA':_0x5affaa(0x1ce),'GVsKQ':_0x5affaa(0x2bf),'tIQDr':_0x5affaa(0x1c8),'tIrxe':'skip-auth','AFDlF':'boolean','mbtRM':_0x5affaa(0x303),'VmOrj':'Install\x20OS-level\x20dependencies\x20for\x20Chromium'};return _0x1288c3['positional'](_0x4e684f['Hxjub'],{'type':_0x4e684f['yPiTi'],'description':_0x5affaa(0x1eb)})[_0x5affaa(0x2ac)]('skip-chromium',{'type':_0x5affaa(0x288),'description':_0x4e684f['DkbtD'],'default':![]})[_0x5affaa(0x2ac)](_0x4e684f[_0x5affaa(0x268)],{'type':_0x4e684f['yPiTi'],'choices':[_0x4e684f['ePaRB'],_0x4e684f[_0x5affaa(0x233)]],'description':_0x4e684f['NeRDe']})['option'](_0x4e684f['YJyqA'],{'type':_0x5affaa(0x245),'description':_0x5affaa(0x212)})[_0x5affaa(0x2ac)](_0x4e684f[_0x5affaa(0x23a)],{'type':'boolean','description':_0x4e684f['tIQDr'],'default':![]})[_0x5affaa(0x2ac)](_0x4e684f[_0x5affaa(0x201)],{'type':_0x4e684f[_0x5affaa(0x223)],'description':'Skip\x20authentication','default':![]})['option'](_0x4e684f[_0x5affaa(0x2db)],{'type':'boolean','description':_0x4e684f[_0x5affaa(0x297)],'default':![]});},async _0x501c73=>{const _0x26ac9f=_0x3121b2,_0x405dac={'SKTwx':'start'};warnRenamed(_0x26ac9f(0x2bd),_0x26ac9f(0x1e9)),await withTelemetry(_0x405dac['SKTwx'],_0x48c3a1=>start(_0x501c73['token'],{'skipChromium':_0x501c73['skip-chromium'],'skipAuth':_0x501c73['skip-auth'],'withDeps':_0x501c73[_0x26ac9f(0x303)],'scope':_0x501c73['scope'],'url':_0x501c73['url'],'force':_0x501c73['force']},_0x48c3a1));})[_0x3121b2(0x2f4)](_0x3121b2(0x26e),![],_0x5e15e2=>{const _0x1c9a0b=_0x3121b2,_0x3d1d4f={'jToMv':_0x1c9a0b(0x2d4),'jhSRr':'string','nksgg':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','ipSSX':'number','WSMBv':_0x1c9a0b(0x1c6),'zOddh':'profile','knyxq':'notes','phNpe':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','hnLfN':'verified','JyCRn':_0x1c9a0b(0x319)};return _0x5e15e2['option'](_0x3d1d4f['jToMv'],{'type':_0x3d1d4f['jhSRr'],'description':_0x3d1d4f['nksgg']})[_0x1c9a0b(0x2ac)](_0x1c9a0b(0x2d3),{'type':'string','description':_0x1c9a0b(0x2b6)})[_0x1c9a0b(0x2ac)]('item',{'type':_0x3d1d4f['ipSSX'],'description':_0x3d1d4f['WSMBv']})[_0x1c9a0b(0x2ac)](_0x3d1d4f['zOddh'],{'type':_0x1c9a0b(0x245),'hidden':!![]})['option'](_0x3d1d4f[_0x1c9a0b(0x299)],{'type':'string','hidden':!![]})[_0x1c9a0b(0x2ac)](_0x1c9a0b(0x210),{'type':'number','hidden':!![]})['option'](_0x1c9a0b(0x2a9),{'type':_0x3d1d4f[_0x1c9a0b(0x220)],'description':_0x3d1d4f[_0x1c9a0b(0x302)]})['option'](_0x1c9a0b(0x1fc),{'type':'string','hidden':!![]})['option']('headed',{'type':'boolean','hidden':!![],'default':![]})['option']('debug-outcome',{'type':_0x3d1d4f[_0x1c9a0b(0x220)],'hidden':!![],'choices':[_0x3d1d4f[_0x1c9a0b(0x32b)],_0x3d1d4f[_0x1c9a0b(0x1ff)],_0x1c9a0b(0x1f5),'failed','incomplete']});},async _0x365006=>{await runGoCommand(_0x365006,!![]);})['command'](_0x3121b2(0x246),![],_0x390f5c=>{const _0x3232d9=_0x3121b2,_0x2c49e4={'cezoF':_0x3232d9(0x21d),'VVuzP':_0x3232d9(0x245),'AnQFB':_0x3232d9(0x1c5),'pTowm':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)'};return _0x390f5c[_0x3232d9(0x284)](_0x2c49e4['cezoF'],{'type':_0x2c49e4['VVuzP'],'description':_0x2c49e4['AnQFB'],'demandOption':!![]})['option']('ci',{'type':'boolean','description':_0x3232d9(0x2cd),'default':![]})['option'](_0x3232d9(0x316),{'type':_0x3232d9(0x288),'description':_0x2c49e4[_0x3232d9(0x2af)],'default':![]});},async _0x2a8a21=>{const _0x16a804=_0x3121b2,_0x5094d0={'uqBgk':_0x16a804(0x1c2)};warnRenamed(_0x5094d0['uqBgk'],'ranger\x20profile\x20add'),await withTelemetry('add\x20env',_0x44e6ba=>addEnv(_0x2a8a21[_0x16a804(0x21d)],{'ci':_0x2a8a21['ci'],'skipAuth':_0x2a8a21[_0x16a804(0x316)]},_0x44e6ba));})['command']('use\x20<env-name>',![],_0x1e0165=>{const _0x4d1e9f=_0x3121b2,_0x576cbe={'jIqYV':'env-name','QSzaH':_0x4d1e9f(0x333)};return _0x1e0165[_0x4d1e9f(0x284)](_0x576cbe[_0x4d1e9f(0x2a2)],{'type':'string','description':_0x576cbe[_0x4d1e9f(0x27e)],'demandOption':!![]});},async _0x633df1=>{const _0x25785c=_0x3121b2,_0x581b5e={'fPvdT':function(_0x52fcaa,_0x48c0d6,_0x5e5d33){return _0x52fcaa(_0x48c0d6,_0x5e5d33);},'eypRt':'ranger\x20use','csoko':_0x25785c(0x1d3)};_0x581b5e[_0x25785c(0x1fa)](warnRenamed,_0x581b5e[_0x25785c(0x257)],_0x581b5e[_0x25785c(0x1fb)]),await withTelemetry('use',()=>useEnv(_0x633df1['env-name']));})['command']('config',![],_0x3130ad=>{const _0x4d350b=_0x3121b2,_0x500388={'siYgV':_0x4d350b(0x245),'BZikx':_0x4d350b(0x2bb),'UGEsG':_0x4d350b(0x269),'jnJEb':_0x4d350b(0x229),'wxySj':function(_0xe9df2c,_0x1b9437,_0x2150ab){return _0xe9df2c(_0x1b9437,_0x2150ab);},'rPJSM':_0x4d350b(0x2b2),'fPEqQ':_0x4d350b(0x2b3),'tOtyv':_0x4d350b(0x324),'UITqC':'env','eCSAP':'Config\x20key\x20to\x20remove','jpBQG':_0x4d350b(0x248)};return _0x3130ad['command']('set\x20<env>\x20<key>\x20<value>',![],_0x91a052=>{const _0x324215=_0x4d350b;return _0x91a052[_0x324215(0x284)]('env',{'type':_0x500388['siYgV'],'description':_0x324215(0x2b2),'demandOption':!![]})[_0x324215(0x284)](_0x500388['BZikx'],{'type':'string','description':_0x500388['UGEsG'],'demandOption':!![]})['positional'](_0x324215(0x27f),{'type':_0x500388[_0x324215(0x2e2)],'description':_0x324215(0x238),'demandOption':!![]});},async _0x5f48c7=>{const _0x48859a=_0x4d350b;warnRenamed(_0x500388[_0x48859a(0x31e)],_0x48859a(0x1db)),await _0x500388[_0x48859a(0x215)](withTelemetry,_0x48859a(0x1c4),()=>configSet(_0x5f48c7[_0x48859a(0x2d4)],_0x5f48c7[_0x48859a(0x2bb)],_0x5f48c7['value']));})['command']('get\x20<env>\x20<key>',![],_0xbe4e5=>{const _0x154e29=_0x4d350b;return _0xbe4e5[_0x154e29(0x284)](_0x154e29(0x2d4),{'type':'string','description':_0x500388['rPJSM'],'demandOption':!![]})['positional']('key',{'type':_0x500388[_0x154e29(0x2e2)],'description':_0x500388['fPEqQ'],'demandOption':!![]});},async _0x3b2e07=>{const _0x34ff03=_0x4d350b;_0x500388[_0x34ff03(0x215)](warnRenamed,_0x34ff03(0x2a4),_0x34ff03(0x290)),await _0x500388['wxySj'](withTelemetry,_0x500388[_0x34ff03(0x29b)],()=>configGet(_0x3b2e07[_0x34ff03(0x2d4)],_0x3b2e07[_0x34ff03(0x2bb)]));})[_0x4d350b(0x2f4)]('list\x20<env>',![],_0x530b9a=>{const _0x48de5c=_0x4d350b;return _0x530b9a[_0x48de5c(0x284)](_0x500388[_0x48de5c(0x1f8)],{'type':'string','description':_0x500388['rPJSM'],'demandOption':!![]});},async _0x4dd6a8=>{const _0x4ebfa6=_0x4d350b;warnRenamed(_0x4ebfa6(0x1cd),'ranger\x20profile\x20config\x20list'),await _0x500388[_0x4ebfa6(0x215)](withTelemetry,_0x4ebfa6(0x2a7),()=>configList(_0x4dd6a8[_0x4ebfa6(0x2d4)]));})[_0x4d350b(0x2f4)]('unset\x20<env>\x20<key>',![],_0x5d4e3e=>{const _0xe9c1f6=_0x4d350b;return _0x5d4e3e[_0xe9c1f6(0x284)](_0x500388['UITqC'],{'type':_0x500388['siYgV'],'description':_0x500388[_0xe9c1f6(0x1f2)],'demandOption':!![]})[_0xe9c1f6(0x284)](_0x500388['BZikx'],{'type':'string','description':_0x500388['eCSAP'],'demandOption':!![]});},async _0x40b1c2=>{const _0x52ecbb=_0x4d350b;_0x500388[_0x52ecbb(0x215)](warnRenamed,_0x500388['jpBQG'],'ranger\x20profile\x20config\x20unset'),await withTelemetry(_0x52ecbb(0x2e7),()=>configUnset(_0x40b1c2['env'],_0x40b1c2['key']));})[_0x4d350b(0x262)](0x1,'You\x20must\x20specify\x20a\x20config\x20subcommand');})['command'](_0x3121b2(0x2d4),![],_0x246b2e=>{const _0x5ee8dc=_0x3121b2,_0xb258cf={'qVwqU':'ranger\x20env\x20ls','yNfmK':'ranger\x20profile\x20ls','DyCeo':_0x5ee8dc(0x32c),'Qrgwe':_0x5ee8dc(0x245),'gVEbx':'Name\x20of\x20the\x20environment\x20to\x20update','mzyVL':'ranger\x20env\x20update','kDvKn':_0x5ee8dc(0x32d)};return _0x246b2e[_0x5ee8dc(0x2f4)]('ls',![],()=>{},async()=>{const _0x35ee05=_0x5ee8dc;warnRenamed(_0xb258cf[_0x35ee05(0x2ee)],_0xb258cf['yNfmK']),await withTelemetry(_0xb258cf['DyCeo'],()=>envList());})['command']('update\x20<env-name>',![],_0x360002=>{const _0x1f827d=_0x5ee8dc;return _0x360002['positional'](_0x1f827d(0x21d),{'type':_0xb258cf[_0x1f827d(0x208)],'description':_0xb258cf[_0x1f827d(0x1e6)],'demandOption':!![]});},async _0x14799b=>{const _0x19fd9a=_0x5ee8dc;warnRenamed(_0xb258cf[_0x19fd9a(0x25a)],_0x19fd9a(0x2f2)),await withTelemetry('env\x20update',_0x51d278=>updateEnv(_0x14799b['env-name'],_0x51d278));})[_0x5ee8dc(0x262)](0x1,_0xb258cf['kDvKn']);})['command']('feature',![],_0x5cd024=>{const _0x51898a=_0x3121b2,_0x1d9098={'sgUqW':'name','WSXgM':'string','ayZVP':_0x51898a(0x1fe),'dSXxm':'Feature\x20review\x20description','sIeko':'checklist','ZKawB':_0x51898a(0x330),'SCBnT':'scenario','qEKiY':function(_0x4c6ccf,_0x192ed0,_0x4892d4){return _0x4c6ccf(_0x192ed0,_0x4892d4);},'SAezk':'ranger\x20feature\x20create','ZnJKg':'feature\x20create','XUtjR':_0x51898a(0x2b8),'qSHgj':_0x51898a(0x288),'YtEYg':'number','qwmSQ':_0x51898a(0x1bf),'KuTlH':_0x51898a(0x31c),'PhqVn':_0x51898a(0x1f7),'nzQTy':'Feature\x20review\x20ID','gKHQa':_0x51898a(0x1ea),'DLQGN':_0x51898a(0x2c3),'FZlSn':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','BUNsC':function(_0x322ddc,_0x40a6ab,_0x1aa2ac){return _0x322ddc(_0x40a6ab,_0x1aa2ac);},'EwEYF':'ranger\x20feature\x20add-checklist-item','DKAgI':_0x51898a(0x267),'xpBYO':_0x51898a(0x25b),'maebH':function(_0x572d2b,_0x472a2e,_0x4bdd5a){return _0x572d2b(_0x472a2e,_0x4bdd5a);},'JDWAi':_0x51898a(0x216),'uvuEp':'feature\x20get-feedback','HtZgM':_0x51898a(0x289),'TxxSQ':'ranger\x20restore','ysyee':_0x51898a(0x23e),'ajzOF':_0x51898a(0x271),'mrLZg':'add-checklist-item\x20<description>','nMmds':'restore\x20<id>','EEumP':'You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand'};return _0x5cd024[_0x51898a(0x2f4)](_0x1d9098['ysyee'],![],_0x357612=>{const _0x2ad3d1=_0x51898a;return _0x357612['positional'](_0x1d9098[_0x2ad3d1(0x335)],{'type':_0x1d9098['WSXgM'],'description':'Feature\x20review\x20name','demandOption':!![]})[_0x2ad3d1(0x2ac)](_0x1d9098['ayZVP'],{'type':'string','alias':'d','description':_0x1d9098['dSXxm']})['option'](_0x1d9098[_0x2ad3d1(0x2a0)],{'type':_0x1d9098['ZKawB'],'alias':'c','description':_0x2ad3d1(0x2d7)})['option'](_0x1d9098['SCBnT'],{'type':_0x1d9098['ZKawB'],'hidden':!![]});},async _0x14f3a8=>{const _0xf49540=_0x51898a;_0x1d9098[_0xf49540(0x2b4)](warnRenamed,_0x1d9098['SAezk'],_0xf49540(0x31b)),warnFlagRenamed(_0xf49540(0x31b),_0xf49540(0x25f),'--scenario');const _0x5d1991=_0x14f3a8[_0xf49540(0x210)]||_0x14f3a8[_0xf49540(0x2d0)];await withTelemetry(_0x1d9098[_0xf49540(0x2b9)],()=>featureCreate(_0x14f3a8[_0xf49540(0x2ae)],{'description':_0x14f3a8['description'],'scenarios':_0x5d1991}));})[_0x51898a(0x2f4)]('list',![],_0x362ca3=>{const _0x3b128d=_0x51898a;return _0x362ca3['option'](_0x1d9098[_0x3b128d(0x2be)],{'type':_0x1d9098[_0x3b128d(0x249)],'description':'Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch'})['option']('limit',{'type':_0x1d9098['YtEYg'],'alias':'l','description':_0x1d9098['qwmSQ'],'default':0xa})[_0x3b128d(0x2ac)](_0x3b128d(0x304),{'type':'number','alias':'o','description':'Number\x20of\x20feature\x20reviews\x20to\x20skip','default':0x0})[_0x3b128d(0x2ac)](_0x3b128d(0x24b),{'type':_0x1d9098['qSHgj'],'alias':'d','description':_0x3b128d(0x28f),'default':![]});},async _0x559b5a=>{const _0x2fec5a=_0x51898a;warnRenamed(_0x1d9098[_0x2fec5a(0x309)],_0x1d9098['PhqVn']),await withTelemetry('feature\x20list',()=>featureList({'currentBranch':_0x559b5a['current-branch'],'limit':_0x559b5a['limit'],'offset':_0x559b5a[_0x2fec5a(0x304)],'includeDeleted':_0x559b5a[_0x2fec5a(0x24b)]}));})[_0x51898a(0x2f4)](_0x1d9098['ajzOF'],![],_0x48a612=>{const _0x3f317c=_0x51898a;return _0x48a612['positional']('id',{'type':_0x3f317c(0x245),'description':_0x1d9098['nzQTy']});},async _0x212dbd=>{const _0x11297a=_0x51898a;_0x1d9098['qEKiY'](warnRenamed,_0x11297a(0x244),_0x11297a(0x2c4)),await _0x1d9098[_0x11297a(0x2b4)](withTelemetry,'feature\x20show',()=>featureShow(_0x212dbd['id']));})[_0x51898a(0x2f4)]('resume\x20[id]',![],_0x3bda0c=>{const _0x14fadc=_0x51898a;return _0x3bda0c[_0x14fadc(0x284)]('id',{'type':_0x1d9098[_0x14fadc(0x217)],'description':_0x1d9098[_0x14fadc(0x1d7)]});},async _0x28932b=>{warnRenamed(_0x1d9098['DLQGN'],'ranger\x20resume'),await withTelemetry('feature\x20resume',()=>featureResume(_0x28932b['id']));})['command'](_0x1d9098[_0x51898a(0x277)],![],_0x20d5a6=>{const _0x5e4f38=_0x51898a;return _0x20d5a6['positional'](_0x5e4f38(0x1fe),{'type':_0x5e4f38(0x245),'description':_0x5e4f38(0x2f7),'demandOption':!![]})['option']('id',{'type':_0x1d9098[_0x5e4f38(0x217)],'description':_0x1d9098[_0x5e4f38(0x1e4)]});},async _0x418014=>{const _0xbff47c=_0x51898a;_0x1d9098['BUNsC'](warnRenamed,_0x1d9098[_0xbff47c(0x1d0)],_0x1d9098['DKAgI']),await withTelemetry(_0x1d9098['xpBYO'],()=>featureAddScenario(_0x418014['description'],_0x418014['id']));})[_0x51898a(0x2f4)]('get-feedback\x20[id]',![],_0x16412a=>{const _0x1aec63=_0x51898a;return _0x16412a[_0x1aec63(0x284)]('id',{'type':_0x1d9098['WSXgM'],'description':_0x1d9098['FZlSn']});},async _0x4efebe=>{const _0x1dedcf=_0x51898a;_0x1d9098['maebH'](warnRenamed,_0x1dedcf(0x2e1),_0x1d9098['JDWAi']),await _0x1d9098['qEKiY'](withTelemetry,_0x1d9098[_0x1dedcf(0x231)],()=>featureGetReview(_0x4efebe['id']));})['command']('delete\x20[id]',![],_0x5a66ec=>{const _0x5bc181=_0x51898a;return _0x5a66ec[_0x5bc181(0x284)]('id',{'type':_0x1d9098[_0x5bc181(0x217)],'description':_0x1d9098['nzQTy']});},async _0x4d4408=>{const _0x250e6e=_0x51898a;_0x1d9098[_0x250e6e(0x1e8)](warnRenamed,_0x250e6e(0x24f),_0x1d9098[_0x250e6e(0x1de)]),await withTelemetry('feature\x20delete',()=>featureDelete(_0x4d4408['id']));})[_0x51898a(0x2f4)](_0x1d9098['nMmds'],![],_0x32532f=>{const _0x44943b=_0x51898a;return _0x32532f['positional']('id',{'type':_0x1d9098['WSXgM'],'description':_0x44943b(0x260),'demandOption':!![]});},async _0x2976fe=>{const _0x1452b3=_0x51898a;warnRenamed('ranger\x20feature\x20restore',_0x1d9098[_0x1452b3(0x24d)]),await withTelemetry(_0x1452b3(0x30b),()=>featureRestore(_0x2976fe['id']));})[_0x51898a(0x262)](0x1,_0x1d9098[_0x51898a(0x247)]);})['command'](_0x3121b2(0x1d2),![],_0x2e1fce=>{const _0x38913c=_0x3121b2,_0x5f07d4={'ZPlwh':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','tmyAq':function(_0x1b1f7e,_0x495b5c,_0x129781){return _0x1b1f7e(_0x495b5c,_0x129781);},'JvnzW':_0x38913c(0x2c7),'muvvv':function(_0x599e45,_0x2692d4,_0x1f4e61){return _0x599e45(_0x2692d4,_0x1f4e61);},'imYAf':'hook:disable','OeRKl':'Disable\x20Ranger\x20hooks\x20for\x20this\x20session','kHQRN':_0x38913c(0x2e6),'mBjHA':'session-id','WLrKR':'string'};return _0x2e1fce[_0x38913c(0x2f4)]('enable',_0x38913c(0x206),_0x1310c2=>{const _0x147e11=_0x38913c;return _0x1310c2[_0x147e11(0x2ac)](_0x147e11(0x1ca),{'type':_0x147e11(0x245),'description':_0x5f07d4[_0x147e11(0x314)]});},async _0xb0eb1f=>{const _0x167a62=_0x38913c;await _0x5f07d4[_0x167a62(0x23c)](withTelemetry,_0x5f07d4[_0x167a62(0x235)],()=>hook(_0x167a62(0x2c0),_0xb0eb1f[_0x167a62(0x1ca)]));})['command'](_0x38913c(0x328),_0x5f07d4[_0x38913c(0x334)],_0x1fd236=>{const _0x2821c6=_0x38913c;return _0x1fd236['option'](_0x2821c6(0x1ca),{'type':'string','description':_0x5f07d4['ZPlwh']});},async _0x2c98c4=>{const _0x28950d=_0x38913c;await _0x5f07d4['muvvv'](withTelemetry,_0x5f07d4['imYAf'],()=>hook(_0x28950d(0x328),_0x2c98c4['session-id']));})[_0x38913c(0x2ac)](_0x38913c(0x2ae),{'type':'string','description':_0x5f07d4['kHQRN']})['option'](_0x5f07d4[_0x38913c(0x285)],{'type':_0x5f07d4['WLrKR'],'description':_0x5f07d4['ZPlwh']});},async _0x1b6f8b=>{_0x1b6f8b['name']&&await hook(_0x1b6f8b['name'],_0x1b6f8b['session-id']);})['demandCommand'](0x1,'You\x20must\x20specify\x20a\x20command')['strictCommands']()[_0x3121b2(0x287)](async(_0xbac3aa,_0x5e6a00,_0x3962fb)=>{const _0x58fd89=_0x3121b2,_0x3d91cb={'PKMgs':'Unknown\x20command'},_0x4ae501=sanitizeArgs(process['argv']['slice'](0x2)),_0x5ddfe4=getErrorType(_0xbac3aa,_0x5e6a00);if(_0xbac3aa&&_0xbac3aa['includes'](_0x3d91cb['PKMgs'])){const _0x1098f7=process['argv'][0x2];console[_0x58fd89(0x29d)](_0x58fd89(0x295)+_0x1098f7),console['error']('Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a');}else{if(_0xbac3aa)console['error']('\x0a'+_0xbac3aa+'\x0a');else _0x5e6a00&&console['error']('\x0aError:\x20'+_0x5e6a00['message']+'\x0a');}await logDesirePath({'rawCommand':_0x4ae501,'errorMessage':_0xbac3aa||_0x5e6a00?.['message'],'errorType':_0x5ddfe4});const _0x51d90b=getCurrentCollector();_0x51d90b&&await _0x51d90b['trackCommandError'](_0x5e6a00||new Error(_0xbac3aa||_0x58fd89(0x1e2))),process['exit'](0x1);})['epilogue'](_0x3121b2(0x2e3)+'\x20\x20https://docs.ranger.net\x0a'+_0x3121b2(0x317))[_0x3121b2(0x22b)]()[_0x3121b2(0x26f)]('help','h')[_0x3121b2(0x1d4)]();
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']();
@@ -1 +1 @@
1
- (function(_0x33580b,_0x38a5ad){const _0x4f3c1d=_0x3539,_0x49e0c7=_0x33580b();while(!![]){try{const _0x5dacbc=parseInt(_0x4f3c1d(0x108))/0x1*(-parseInt(_0x4f3c1d(0xde))/0x2)+parseInt(_0x4f3c1d(0x120))/0x3+parseInt(_0x4f3c1d(0xcb))/0x4+-parseInt(_0x4f3c1d(0xc9))/0x5+-parseInt(_0x4f3c1d(0x11f))/0x6*(parseInt(_0x4f3c1d(0x110))/0x7)+-parseInt(_0x4f3c1d(0x11c))/0x8*(-parseInt(_0x4f3c1d(0x10f))/0x9)+parseInt(_0x4f3c1d(0x114))/0xa;if(_0x5dacbc===_0x38a5ad)break;else _0x49e0c7['push'](_0x49e0c7['shift']());}catch(_0xdee764){_0x49e0c7['push'](_0x49e0c7['shift']());}}}(_0x1dd1,0x6d85c));import{mkdir,writeFile,readFile,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import _0xbfc7bc from'inquirer';import{chromium}from'playwright';function _0x1dd1(){const _0x477929=['\x20\x20ranger\x20profile\x20add\x20','skipAuth','Use\x20','26SStRkg','setupHeaders','extraHTTPHeaders','SulzR','vZuDo','wvczZ','assign','gvJsE','CTooY','local','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','confirm','\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a','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','HKqYS','isTTY','BHKsh','✓\x20Encrypted\x20auth\x20saved\x20to:\x20','\x20--safe-mode\x20\x20\x20\x20(disables\x20browser\x20features\x20that\x20can\x20cause\x20crashes)','tLZDS','jlxLH','allowInsecureLocalhost','cdpEndpoint','action','pjyrX','status','root\x20(.ranger/)','XaizE','keys','isElectron','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20','auth.json','\x22\x20already\x20exists.\x20Overwrite?','push','settings.json','\x0a\x20\x20Could\x20not\x20reach\x20','includes','path','shouldReplace','\x0aThe\x20browser\x20closed\x20unexpectedly\x20before\x20authentication\x20could\x20be\x20saved.','bceql','scope','47672gtJuvs','http://localhost:3000','THEdP','\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','about:blank','url','close','2293983lDhDIR','5768896HkaLoZ','pGaqT','HieGu','xIXns','19556200nVBYtz','HEAD','\x0a\x20\x20Profile\x20\x22','⚠\x20Could\x20not\x20reach\x20','\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a','http://','safeMode','✓\x20Created\x20settings:\x20','8tvPHeY','Browser\x20closed\x20before\x20authentication\x20was\x20saved.','\x20(continuing\x20with\x20--force)','6QeUfhS','970365enZvWM','url_setup','setupHeader','prompt','Delete\x20existing\x20and\x20create\x20new\x20in\x20','location','\x20\x20\x20Creating\x20it\x20in\x20','hHzXR','trim','utf-8','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','slice','ImhUs','indexOf','Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','catch','yADuB','\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a','browser_auth','\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.','\x22.\x20Expected\x20\x22Name:\x20Value\x22.','trackPhaseStart','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','log','jLEoW','Invalid\x20URL','dpDXy','3902905zhFxDM','zbYqH','556348Cybhvu','error','storageState','test','env','use_suggestion','NODE_TLS_REJECT_UNAUTHORIZED','abort','VkTYO','trackPhaseEnd','continue','✓\x20Auth\x20state\x20saved\x20to:\x20','.enc','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','signal','UOuiZ'];_0x1dd1=function(){return _0x477929;};return _0x1dd1();}import{findExistingEnv,loadSettings}from'./utils/settings.js';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';function _0x3539(_0x599bb9,_0x23a3d0){_0x599bb9=_0x599bb9-0xb8;const _0x1dd190=_0x1dd1();let _0x353915=_0x1dd190[_0x599bb9];return _0x353915;}import{getRangerDir,getRangerHomeDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';async function checkUrlReachability(_0x4ca9ad){const _0x1feb41=_0x3539,_0x2a20ef={'vZuDo':function(_0x5da433,_0x5921a7,_0x73ed5){return _0x5da433(_0x5921a7,_0x73ed5);},'wNRFx':function(_0x4925f4,_0x3a3917){return _0x4925f4<_0x3a3917;},'wvczZ':'TypeError','xIXns':'fetch\x20failed'};try{const _0x356d51=new AbortController(),_0x22e745=_0x2a20ef[_0x1feb41(0xe2)](setTimeout,()=>_0x356d51[_0x1feb41(0xd2)](),0x1388),_0x2a48e6={'method':_0x1feb41(0x115),'signal':_0x356d51[_0x1feb41(0xd9)],'redirect':'manual'};/^https:\/\/localhost(:\d+)?/i[_0x1feb41(0xce)](_0x4ca9ad)&&(process[_0x1feb41(0xcf)]['NODE_TLS_REJECT_UNAUTHORIZED']='0');const _0x24c5cf=await _0x2a20ef['vZuDo'](fetch,_0x4ca9ad,_0x2a48e6);delete process['env'][_0x1feb41(0xd1)],clearTimeout(_0x22e745);if(_0x2a20ef['wNRFx'](_0x24c5cf[_0x1feb41(0xf7)],0x190))return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x24c5cf[_0x1feb41(0xf7)]};}catch(_0x43ee89){delete process['env']['NODE_TLS_REJECT_UNAUTHORIZED'];const _0x10a3de=_0x43ee89,_0x15e35c=_0x10a3de['message']||String(_0x43ee89),_0x5899a4=_0x15e35c[_0x1feb41(0x102)](_0x1feb41(0xc7))||_0x10a3de['name']===_0x2a20ef[_0x1feb41(0xe3)]||_0x15e35c[_0x1feb41(0x102)](_0x2a20ef[_0x1feb41(0x113)]);return{'ok':![],'error':_0x15e35c,'isProtocolError':_0x5899a4};}}export async function addEnv(_0x320bfa,_0x35bb2a={},_0x1a697e){const _0x55fb4e=_0x3539,_0x168f04={'tYcTD':function(_0x2b9ec5,_0x3bd82d){return _0x2b9ec5===_0x3bd82d;},'AnFaK':function(_0x508e98,_0x3e74ec,_0x27f4af,_0x5c159c){return _0x508e98(_0x3e74ec,_0x27f4af,_0x5c159c);},'BHKsh':function(_0x5dd4c8,_0x1e7bae){return _0x5dd4c8===_0x1e7bae;},'iBscF':'--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','yADuB':function(_0x5ae2bc,_0x82652d){return _0x5ae2bc(_0x82652d);},'tLZDS':function(_0x438ffb,_0x4bbb61,_0x320f97){return _0x438ffb(_0x4bbb61,_0x320f97);},'jEqJX':_0x55fb4e(0xe9),'KLLfq':function(_0x2b87df,_0x554804){return _0x2b87df===_0x554804;},'RnQqV':'legacy','kbJMn':_0x55fb4e(0xf8),'CTooY':_0x55fb4e(0x121),'THEdP':'\x0a🌐\x20Profile\x20Setup\x0a','pjyrX':_0x55fb4e(0xf5),'jlxLH':'What\x20would\x20you\x20like\x20to\x20do?','SulzR':'Enter\x20a\x20different\x20URL','VkTYO':_0x55fb4e(0xd5),'jLEoW':_0x55fb4e(0xd0),'gvJsE':function(_0x255fb6,_0x5f198a){return _0x255fb6(_0x5f198a);},'XaizE':_0x55fb4e(0xc0),'Myhlk':'\x0a📋\x20Authentication\x20Setup','HKqYS':_0x55fb4e(0xc1),'jKPsS':'\x0a\x20\x20\x20⚠\x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.','CBbHg':'--allow-insecure-localhost','UnfWa':function(_0xfc31bd,_0x4390d4){return _0xfc31bd>_0x4390d4;},'zbYqH':function(_0x158d40,_0x55152b){return _0x158d40||_0x55152b;},'pGaqT':_0x55fb4e(0x10c),'bceql':'This\x20can\x20happen\x20due\x20to\x20a\x20browser\x20compatibility\x20issue\x20on\x20some\x20systems.\x0a','PgFVv':'You\x20can\x20try\x20again\x20with\x20one\x20of:','czaga':_0x55fb4e(0x11d),'NOAaV':_0x55fb4e(0x129),'TLbaC':function(_0x389076){return _0x389076();},'HieGu':function(_0x28ad8a,_0x1ae3d8){return _0x28ad8a+_0x1ae3d8;},'zpjZf':_0x55fb4e(0xd7),'pvkjl':_0x55fb4e(0xb8),'dpDXy':_0x55fb4e(0xc4),'UOuiZ':function(_0x367fcf,_0x1fc3de,_0x149739){return _0x367fcf(_0x1fc3de,_0x149739);},'sRHVf':_0x55fb4e(0x100),'GvISy':function(_0x4dc504,_0x16b6f5,_0x1d5eeb){return _0x4dc504(_0x16b6f5,_0x1d5eeb);},'zZrao':function(_0x9ebf16,_0x629b83,_0x4a7b27){return _0x9ebf16(_0x629b83,_0x4a7b27);},'ImhUs':function(_0x14f891,_0x224265,_0x2f1ead){return _0x14f891(_0x224265,_0x2f1ead);},'hHzXR':function(_0x14453b,_0x3cb311,_0x30cf75){return _0x14453b(_0x3cb311,_0x30cf75);},'mkDLO':'config_write'},_0x3a233d=_0x35bb2a['ci']??![],_0x54be0d=_0x3a233d?'ci':_0x55fb4e(0xe7),_0x5d9c29=_0x168f04['tYcTD'](_0x35bb2a[_0x55fb4e(0x107)],'user')?getRangerHomeDir():getRangerDir(),_0x11adbb=_0x168f04['AnFaK'](join,_0x5d9c29,_0x54be0d,_0x320bfa),_0x363160={};if(_0x35bb2a['setupHeader'])for(const _0xfe2cde of _0x35bb2a[_0x55fb4e(0x122)]){const _0x2df7ac=_0xfe2cde[_0x55fb4e(0xbb)](':');if(_0x2df7ac===-0x1)throw new Error('Invalid\x20--setup-header\x20format:\x20\x22'+_0xfe2cde+_0x55fb4e(0xc2));const _0x14cd00=_0xfe2cde[_0x55fb4e(0xb9)](0x0,_0x2df7ac)['trim'](),_0x136dda=_0xfe2cde['slice'](_0x2df7ac+0x1)['trim']();_0x363160[_0x14cd00]=_0x136dda;}const _0x4ac859=join(_0x5d9c29,_0x54be0d);if(_0x35bb2a[_0x55fb4e(0xf4)]!==undefined&&_0x168f04[_0x55fb4e(0xee)](_0x35bb2a['cdpEndpoint'][_0x55fb4e(0x128)](),''))throw new Error('--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222');if(_0x35bb2a[_0x55fb4e(0xf4)]&&_0x35bb2a[_0x55fb4e(0x10d)])throw new Error(_0x168f04['iBscF']);if(_0x35bb2a[_0x55fb4e(0xf4)]&&_0x35bb2a['ci'])throw new Error('--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.');const _0x41681f=_0x168f04[_0x55fb4e(0xbe)](Boolean,_0x35bb2a[_0x55fb4e(0xf4)]),_0x31d4f2=!_0x35bb2a[_0x55fb4e(0xdc)]&&!_0x41681f,_0x10e5ac=process['stdin'][_0x55fb4e(0xed)]&&process['stdout']['isTTY'];if(!_0x10e5ac&&!_0x35bb2a[_0x55fb4e(0x10d)]&&!_0x41681f)throw new Error(_0x55fb4e(0xeb));const _0x39e344=_0x168f04[_0x55fb4e(0xf1)](findExistingEnv,_0x320bfa,{'rangerDir':_0x5d9c29});let _0x306b2c=null;if(_0x39e344){if(!_0x10e5ac)_0x306b2c=_0x39e344;else{if(_0x168f04['BHKsh'](_0x39e344[_0x55fb4e(0x125)],_0x54be0d)){const {overwrite:_0x9bbf3d}=await _0xbfc7bc['prompt']([{'type':_0x168f04['jEqJX'],'name':'overwrite','message':'Profile\x20\x22'+_0x320bfa+_0x55fb4e(0xfe),'default':![]}]);if(!_0x9bbf3d){console[_0x55fb4e(0xc5)]('Aborted.');return;}_0x306b2c=_0x39e344;}else{const _0x3dbbaf=_0x168f04['KLLfq'](_0x39e344[_0x55fb4e(0x125)],_0x168f04['RnQqV'])?_0x168f04['kbJMn']:_0x39e344['location'];console[_0x55fb4e(0xcc)]('\x0a⚠️\x20\x20Profile\x20\x22'+_0x320bfa+'\x22\x20already\x20exists\x20in\x20'+_0x3dbbaf+':\x20'+_0x39e344[_0x55fb4e(0x103)]),console[_0x55fb4e(0xcc)](_0x55fb4e(0x126)+_0x54be0d+'\x20would\x20shadow\x20the\x20existing\x20profile.');const {shouldReplace:_0x2d4125}=await _0xbfc7bc[_0x55fb4e(0x123)]([{'type':'confirm','name':_0x55fb4e(0x104),'message':_0x55fb4e(0x124)+_0x54be0d+'?','default':![]}]);if(!_0x2d4125){console[_0x55fb4e(0xc5)]('Aborted.');return;}_0x306b2c=_0x39e344;}}}_0x1a697e?.['trackPhaseStart'](_0x168f04[_0x55fb4e(0xe6)]);let _0x214e33='';if(_0x41681f)console['log']('\x0a🔌\x20CDP\x20Profile\x20Setup\x0a'),console[_0x55fb4e(0xc5)](_0x55fb4e(0xd8)+_0x35bb2a[_0x55fb4e(0xf4)]),console['log'](_0x55fb4e(0xbf));else{if(_0x35bb2a['url']){_0x214e33=_0x35bb2a['url'];const _0x284b3d=await checkUrlReachability(_0x214e33);if(!_0x284b3d['ok']&&!_0x35bb2a['force'])throw new Error('Could\x20not\x20reach\x20'+_0x214e33+':\x20'+_0x284b3d['error']+'\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.');!_0x284b3d['ok']&&_0x35bb2a['force']&&console['log'](_0x55fb4e(0x117)+_0x214e33+':\x20'+_0x284b3d['error']+_0x55fb4e(0x11e));}else{console[_0x55fb4e(0xc5)](_0x168f04[_0x55fb4e(0x10a)]),console['log'](_0x55fb4e(0xe8)),console[_0x55fb4e(0xc5)](_0x55fb4e(0x118));let _0x22fd41=![];while(!![]){const _0x4abdeb=await _0xbfc7bc[_0x55fb4e(0x123)]([{'type':'input','name':'baseUrl','message':_0x22fd41?_0x55fb4e(0xbc):'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','default':_0x214e33||_0x55fb4e(0x109)}]);_0x214e33=_0x4abdeb['baseUrl'];const _0x4931cc=await _0x168f04[_0x55fb4e(0xbe)](checkUrlReachability,_0x214e33);if(_0x4931cc['ok'])break;const _0x54f9b4=/^[a-zA-Z][\w+.-]*:\/\//[_0x55fb4e(0xce)](_0x214e33),_0x28abc8=_0x4931cc['isProtocolError']&&!_0x54f9b4,_0x4bd5b9=_0x28abc8?_0x55fb4e(0x119)+_0x214e33:null;_0x22fd41=!![],console[_0x55fb4e(0xc5)](_0x55fb4e(0x101)+_0x214e33+':\x20'+_0x4931cc['error']);_0x4bd5b9&&console[_0x55fb4e(0xc5)]('\x20\x20Did\x20you\x20mean\x20'+_0x4bd5b9+'?');const {action:_0x4626ae}=await _0xbfc7bc[_0x55fb4e(0x123)]([{'type':'list','name':_0x168f04[_0x55fb4e(0xf6)],'message':_0x168f04[_0x55fb4e(0xf2)],'choices':[..._0x4bd5b9?[{'name':_0x55fb4e(0xdd)+_0x4bd5b9,'value':_0x55fb4e(0xd0)}]:[],{'name':_0x168f04[_0x55fb4e(0xe1)],'value':'retry'},{'name':'Continue\x20anyway','value':_0x168f04[_0x55fb4e(0xd3)]}]}]);if(_0x168f04['KLLfq'](_0x4626ae,_0x168f04[_0x55fb4e(0xc6)])&&_0x4bd5b9){_0x214e33=_0x4bd5b9;const _0x5345e5=await checkUrlReachability(_0x214e33);if(_0x5345e5['ok'])break;console[_0x55fb4e(0xc5)]('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0x214e33+':\x20'+_0x5345e5[_0x55fb4e(0xcc)]);}else{if(_0x4626ae==='continue')break;}}}}_0x1a697e?.['trackPhaseEnd'](_0x168f04['CTooY']);const _0x249380={};if(_0x306b2c){const _0x3b0ce6=await loadSettings(_0x320bfa);Object[_0x55fb4e(0xe4)](_0x249380,_0x3b0ce6[_0x55fb4e(0xdf)]);}Object['assign'](_0x249380,_0x363160),await mkdir(_0x4ac859,{'recursive':!![]});const _0x2670e3=await _0x168f04[_0x55fb4e(0xe5)](mkdtemp,_0x168f04[_0x55fb4e(0xf1)](join,_0x4ac859,'.tmp-'+_0x320bfa+'-')),_0x58b66f=join(_0x2670e3,_0x55fb4e(0xfd)),_0x4cee30=_0x168f04[_0x55fb4e(0xe5)](Boolean,_0x214e33)&&/^https:\/\/localhost(:\d+)?/i['test'](_0x214e33);try{if(_0x31d4f2){_0x1a697e?.[_0x55fb4e(0xc3)](_0x168f04[_0x55fb4e(0xf9)]),console['log'](_0x168f04['Myhlk']),console['log']('\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.'),console[_0x55fb4e(0xc5)](_0x168f04[_0x55fb4e(0xec)]);!_0x10e5ac?(console[_0x55fb4e(0xc5)](_0x168f04['jKPsS']),console['log'](_0x55fb4e(0xea))):console[_0x55fb4e(0xc5)]('');await new Promise(_0x53aae2=>setTimeout(_0x53aae2,0xbb8));const _0x4d0965=[];_0x35bb2a[_0x55fb4e(0x11a)]&&_0x4d0965[_0x55fb4e(0xff)]('--disable-features=WebBluetooth');const _0x6c3b0=_0x35bb2a[_0x55fb4e(0xf3)]||_0x4cee30;_0x6c3b0&&_0x4d0965[_0x55fb4e(0xff)](_0x168f04['CBbHg']);const _0x426c05=await chromium['launch']({'headless':![],..._0x168f04['UnfWa'](_0x4d0965['length'],0x0)?{'args':_0x4d0965}:{}});try{const _0x5dd8fd=Object[_0x55fb4e(0xfa)](_0x249380)['length']>0x0,_0x220fd2={'ignoreHTTPSErrors':!![]};_0x5dd8fd&&(_0x220fd2[_0x55fb4e(0xe0)]=_0x249380);const _0x3491f2=await _0x426c05['newContext'](_0x220fd2);await _0x168f04[_0x55fb4e(0xbe)](addProfileSetupBanner,_0x3491f2);const _0x55e1eb=await _0x3491f2['newPage']();await _0x55e1eb['goto'](_0x168f04[_0x55fb4e(0xca)](_0x214e33,_0x168f04[_0x55fb4e(0x111)]));let _0x35b290=![];await new Promise(_0x5ecf83=>{const _0x3d7e93=_0x55fb4e;_0x55e1eb['on'](_0x3d7e93(0x10e),async()=>{const _0x31d6a2=_0x3d7e93;try{console[_0x31d6a2(0xc5)]('Saving\x20authentication\x20state...'),await _0x3491f2[_0x31d6a2(0xcd)]({'path':_0x58b66f}),_0x35b290=!![];}catch{}_0x5ecf83();});});if(!_0x35b290){console['log'](_0x55fb4e(0x105));!_0x35bb2a['safeMode']&&(console['log'](_0x168f04[_0x55fb4e(0x106)]),console[_0x55fb4e(0xc5)](_0x168f04['PgFVv']),console['log'](_0x55fb4e(0xdb)+_0x320bfa+_0x55fb4e(0xf0)),console[_0x55fb4e(0xc5)](_0x55fb4e(0xdb)+_0x320bfa+'\x20--skip-auth\x20\x20\x20\x20(skip\x20browser\x20auth\x20entirely)\x0a'));throw new Error(_0x168f04['czaga']);}}finally{await _0x426c05[_0x55fb4e(0x10e)]()['catch'](()=>{});}if(_0x3a233d){const _0x4aa5b8=await _0x168f04['tLZDS'](readFile,_0x58b66f,_0x168f04['NOAaV']),_0xd1c62a=await _0x168f04['TLbaC'](getToken);if(!_0xd1c62a){console['error'](_0x55fb4e(0x10b)),await unlink(_0x58b66f)[_0x55fb4e(0xbd)](()=>{});throw new Error('Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.');}else{const _0x2ce32f=_0x168f04['tLZDS'](encrypt,_0x4aa5b8,_0xd1c62a);await writeFile(_0x168f04[_0x55fb4e(0x112)](_0x58b66f,_0x168f04['zpjZf']),_0x2ce32f),await _0x168f04[_0x55fb4e(0xbe)](unlink,_0x58b66f),console[_0x55fb4e(0xc5)](_0x55fb4e(0xef)+_0x58b66f+'.enc'),console[_0x55fb4e(0xc5)](_0x168f04['pvkjl']),console['log'](_0x168f04[_0x55fb4e(0xc8)]);}}else console['log'](_0x55fb4e(0xd6)+_0x58b66f);_0x1a697e?.['trackPhaseEnd'](_0x55fb4e(0xc0));}_0x1a697e?.[_0x55fb4e(0xc3)]('config_write');const _0x538ba3={};_0x214e33&&(_0x538ba3['baseUrl']=_0x214e33);_0x35bb2a[_0x55fb4e(0xf4)]&&(_0x538ba3['cdpEndpoint']=_0x35bb2a['cdpEndpoint'],_0x538ba3[_0x55fb4e(0xfb)]=!![]);(_0x35bb2a[_0x55fb4e(0xf3)]||_0x4cee30)&&(_0x538ba3[_0x55fb4e(0xf3)]=!![]);_0x35bb2a['safeMode']&&(_0x538ba3[_0x55fb4e(0x11a)]=!![]);Object['keys'](_0x249380)['length']>0x0&&(_0x538ba3['setupHeaders']=_0x249380);await writeFile(_0x168f04['UOuiZ'](join,_0x2670e3,_0x168f04['sRHVf']),JSON['stringify'](_0x538ba3,null,0x2)),console['log'](_0x55fb4e(0x11b)+_0x168f04['GvISy'](join,_0x11adbb,_0x168f04['sRHVf']));if(_0x306b2c?.['location']===_0x54be0d){const _0x128b4c=_0x306b2c['path']+'.backup-'+Date['now']();await _0x168f04['zZrao'](rename,_0x306b2c[_0x55fb4e(0x103)],_0x128b4c);try{await _0x168f04['zZrao'](rename,_0x2670e3,_0x11adbb);}catch(_0x195895){await _0x168f04[_0x55fb4e(0xba)](rename,_0x128b4c,_0x306b2c[_0x55fb4e(0x103)]);throw _0x195895;}try{await _0x168f04[_0x55fb4e(0x127)](rm,_0x128b4c,{'recursive':!![]});}catch{console['log'](_0x55fb4e(0xfc)+_0x128b4c);}}else{await rename(_0x2670e3,_0x11adbb);if(_0x306b2c)try{await _0x168f04['tLZDS'](rm,_0x306b2c['path'],{'recursive':!![]}),console['log']('Removed\x20existing\x20profile\x20at\x20'+_0x306b2c[_0x55fb4e(0x103)]);}catch{console[_0x55fb4e(0xc5)]('Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20'+_0x306b2c['path']);}}try{await writeActiveProfileName(_0x320bfa),console[_0x55fb4e(0xc5)]('\x20\x20Set\x20active\x20profile:\x20'+_0x320bfa);}catch{console[_0x55fb4e(0xc5)]('Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.');}_0x1a697e?.[_0x55fb4e(0xd4)](_0x168f04['mkDLO']),console['log'](_0x55fb4e(0x116)+_0x320bfa+'\x22\x20configured');}catch(_0x1ce3e6){await _0x168f04[_0x55fb4e(0xda)](rm,_0x2670e3,{'recursive':!![],'force':!![]});throw _0x1ce3e6;}}
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 +1 @@
1
- (function(_0x43a9a3,_0x237cf8){const _0x3abd04=_0x3fd9,_0x2a067a=_0x43a9a3();while(!![]){try{const _0x2ac99c=-parseInt(_0x3abd04(0x7f))/0x1*(parseInt(_0x3abd04(0x6e))/0x2)+parseInt(_0x3abd04(0x81))/0x3*(-parseInt(_0x3abd04(0x6f))/0x4)+-parseInt(_0x3abd04(0x72))/0x5*(parseInt(_0x3abd04(0x7b))/0x6)+parseInt(_0x3abd04(0x7c))/0x7+parseInt(_0x3abd04(0x80))/0x8+-parseInt(_0x3abd04(0x74))/0x9+-parseInt(_0x3abd04(0x83))/0xa*(-parseInt(_0x3abd04(0x78))/0xb);if(_0x2ac99c===_0x237cf8)break;else _0x2a067a['push'](_0x2a067a['shift']());}catch(_0x11adad){_0x2a067a['push'](_0x2a067a['shift']());}}}(_0x37c7,0x20e0b));import{readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getEnvDir}from'./utils/settings.js';function _0x3fd9(_0x24b4da,_0x4afce6){_0x24b4da=_0x24b4da-0x6e;const _0x37c792=_0x37c7();let _0x3fd9ed=_0x37c792[_0x24b4da];return _0x3fd9ed;}function _0x37c7(){const _0x63b57e=['.enc','451LGZiFR','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','log','18KQutCR','1270213KHokQe','ygtRX','.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update','69DIwHGW','1369400nfpCVO','611214ILjNnT','YSpEQ','139790CpSMCa','auth.json','AFQVG','6158luyPld','4VxFgpW','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','Profile\x20\x22','211995uNIaTW','\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.','2229480kNmori','\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','No\x20auth.json\x20found\x20at\x20'];_0x37c7=function(){return _0x63b57e;};return _0x37c7();}export async function authEncrypt(_0x60f6c6){const _0x3bbe34=_0x3fd9,_0x587590={'YSpEQ':function(_0x459ecf,_0x2a87c8){return _0x459ecf(_0x2a87c8);},'UDmti':function(_0x2f7e8f,_0x4f8b9f){return _0x2f7e8f+_0x4f8b9f;},'DvedC':_0x3bbe34(0x77),'jEYUI':function(_0x2e5c16,_0x517183){return _0x2e5c16(_0x517183);},'gwPnr':function(_0x205b31){return _0x205b31();},'AFZCP':_0x3bbe34(0x79),'AFQVG':function(_0x255f1f,_0x2b8153,_0x419792){return _0x255f1f(_0x2b8153,_0x419792);},'ygtRX':'\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.'},_0x2a7184=_0x587590[_0x3bbe34(0x82)](getEnvDir,_0x60f6c6),_0x44f771=join(_0x2a7184,_0x3bbe34(0x84)),_0x334a6e=_0x587590['UDmti'](_0x44f771,_0x587590['DvedC']);if(!_0x587590[_0x3bbe34(0x82)](existsSync,_0x2a7184))throw new Error(_0x3bbe34(0x71)+_0x60f6c6+_0x3bbe34(0x75)+_0x60f6c6);if(!_0x587590['jEYUI'](existsSync,_0x44f771))throw new Error(_0x3bbe34(0x76)+_0x44f771+_0x3bbe34(0x7e));const _0x3ee8f0=await _0x587590['gwPnr'](getToken);if(!_0x3ee8f0)throw new Error(_0x587590['AFZCP']);const _0x4b0e03=await _0x587590['AFQVG'](readFile,_0x44f771,'utf-8'),_0x2e3088=_0x587590[_0x3bbe34(0x85)](encrypt,_0x4b0e03,_0x3ee8f0);await writeFile(_0x334a6e,_0x2e3088),console['log']('\x0a✓\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x334a6e),console[_0x3bbe34(0x7a)](_0x3bbe34(0x70)),console[_0x3bbe34(0x7a)](_0x587590[_0x3bbe34(0x7d)]),existsSync(_0x334a6e)&&(console[_0x3bbe34(0x7a)](_0x3bbe34(0x73)),console[_0x3bbe34(0x7a)]('\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.'));}
1
+ (function(_0x322e35,_0x599afc){const _0x12eac5=_0x5afb,_0x31df4e=_0x322e35();while(!![]){try{const _0x52a74a=-parseInt(_0x12eac5(0x1a7))/0x1*(-parseInt(_0x12eac5(0x1a4))/0x2)+-parseInt(_0x12eac5(0x1a1))/0x3*(-parseInt(_0x12eac5(0x19a))/0x4)+parseInt(_0x12eac5(0x193))/0x5*(-parseInt(_0x12eac5(0x199))/0x6)+-parseInt(_0x12eac5(0x19c))/0x7*(parseInt(_0x12eac5(0x194))/0x8)+parseInt(_0x12eac5(0x1a8))/0x9+-parseInt(_0x12eac5(0x198))/0xa*(-parseInt(_0x12eac5(0x197))/0xb)+-parseInt(_0x12eac5(0x195))/0xc*(parseInt(_0x12eac5(0x1a2))/0xd);if(_0x52a74a===_0x599afc)break;else _0x31df4e['push'](_0x31df4e['shift']());}catch(_0xf00018){_0x31df4e['push'](_0x31df4e['shift']());}}}(_0x5e38,0x43ec3));import{readFile,writeFile}from'fs/promises';function _0x5afb(_0x5bbc3c,_0x4a15a7){_0x5bbc3c=_0x5bbc3c-0x191;const _0x5e384a=_0x5e38();let _0x5afb6e=_0x5e384a[_0x5bbc3c];return _0x5afb6e;}import{join}from'path';import{existsSync}from'fs';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getEnvDir}from'./utils/settings.js';function _0x5e38(){const _0x58cbe7=['sCuEM','5xsvkwg','2238030zfvYOI','\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update','13790XzlNhq','8LKDIBz','2603676BMxUDt','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','5489gbfnvM','2170zTKNQT','222UhUzrz','164puSieZ','\x0a✓\x20Encrypted\x20auth\x20saved\x20to:\x20','986629ZmFIRE','Profile\x20\x22','utf-8','log','\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.','6657zwrXxa','13jCCqNJ','Vczcy','116098zCBMCt','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.'];_0x5e38=function(){return _0x58cbe7;};return _0x5e38();}export async function authEncrypt(_0x1bb03f){const _0x5ac09c=_0x5afb,_0x3854e1={'PcQyd':'auth.json','nwUnF':function(_0x6a60a8,_0x421935){return _0x6a60a8+_0x421935;},'Vczcy':function(_0x42c832){return _0x42c832();},'KBiCR':_0x5ac09c(0x196),'sCuEM':_0x5ac09c(0x1a5),'UXVSw':function(_0x44fc02,_0x494e8){return _0x44fc02(_0x494e8);}},_0x1684d2=getEnvDir(_0x1bb03f),_0x1846ad=join(_0x1684d2,_0x3854e1['PcQyd']),_0x12a232=_0x3854e1['nwUnF'](_0x1846ad,'.enc');if(!existsSync(_0x1684d2))throw new Error(_0x5ac09c(0x19d)+_0x1bb03f+_0x5ac09c(0x191)+_0x1bb03f);if(!existsSync(_0x1846ad))throw new Error('No\x20auth.json\x20found\x20at\x20'+_0x1846ad+_0x5ac09c(0x192));const _0x112bcb=await _0x3854e1[_0x5ac09c(0x1a3)](getToken);if(!_0x112bcb)throw new Error(_0x3854e1['KBiCR']);const _0x1bf800=await readFile(_0x1846ad,_0x5ac09c(0x19e)),_0x57be97=encrypt(_0x1bf800,_0x112bcb);await writeFile(_0x12a232,_0x57be97),console['log'](_0x5ac09c(0x19b)+_0x12a232),console['log']('\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.'),console[_0x5ac09c(0x19f)](_0x3854e1[_0x5ac09c(0x1a6)]),_0x3854e1['UXVSw'](existsSync,_0x12a232)&&(console[_0x5ac09c(0x19f)]('\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.'),console['log'](_0x5ac09c(0x1a0)));}