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

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 (82) hide show
  1. package/README.md +36 -14
  2. package/build/cli.js +1 -1
  3. package/build/commands/addEnv.js +1 -1
  4. package/build/commands/authEncrypt.js +1 -1
  5. package/build/commands/clean.js +1 -1
  6. package/build/commands/config.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -0
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -0
  43. package/build/commands/utils/cloudProfileSession.js +1 -0
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -0
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -0
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -0
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/opencodeConfig.js +1 -1
  58. package/build/commands/utils/playwrightCli.js +1 -1
  59. package/build/commands/utils/profileMessages.js +1 -1
  60. package/build/commands/utils/profileSetupBanner.js +1 -1
  61. package/build/commands/utils/projectsConfig.js +1 -0
  62. package/build/commands/utils/rangerConfig.js +1 -1
  63. package/build/commands/utils/rangerRoot.js +1 -1
  64. package/build/commands/utils/resolveProfileContext.js +1 -0
  65. package/build/commands/utils/resolveProfileUrl.js +1 -0
  66. package/build/commands/utils/retry.js +1 -1
  67. package/build/commands/utils/sessionCache.js +1 -1
  68. package/build/commands/utils/settings.js +1 -1
  69. package/build/commands/utils/skillContent.js +1 -1
  70. package/build/commands/utils/skills.js +1 -1
  71. package/build/commands/utils/stitchWebmFiles.js +1 -1
  72. package/build/commands/utils/telemetry.js +1 -1
  73. package/build/commands/utils/tokenRefresh.js +1 -1
  74. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  75. package/build/commands/utils/userApi.js +1 -1
  76. package/build/commands/utils/version.js +1 -1
  77. package/build/commands/verifyFeature.js +1 -1
  78. package/build/commands/verifyFeatureCli.js +1 -1
  79. package/build/skills/ranger/SKILL.md +36 -6
  80. package/build/skills/ranger/create.md +19 -0
  81. package/build/skills/ranger/verify.md +46 -7
  82. package/package.json +8 -3
package/README.md CHANGED
@@ -25,7 +25,7 @@ This walks you through everything interactively:
25
25
  - **Authentication** -- opens your browser to log in (credentials stored in OS Keychain)
26
26
  - **Chromium** -- installs the browser used for verification
27
27
  - **Plugin** -- installs the Claude Code plugin (you choose user-level or project-level)
28
- - **Profile** -- prompts for your app's URL, opens a browser to capture login session
28
+ - **Profile** -- prompts for your app's URL, opens a browser to capture a session for the verification agent
29
29
  - **Skills** -- installs markdown files that teach Claude the Ranger workflow
30
30
 
31
31
  > For CI, pass a token directly: `ranger setup [token]`. See `RANGER_CLI_TOKEN` env var for non-interactive use.
@@ -61,13 +61,24 @@ Ask Claude to build a UI feature. Ranger handles the rest: creating a feature re
61
61
 
62
62
  ### Profiles
63
63
 
64
+ A profile tells Ranger where your app runs and how to log in. Run
65
+ `ranger profile add <name>` once — a browser opens, you log in, Ranger
66
+ saves the session for every subsequent run. Convention is one profile per
67
+ account; the CLI suggests `git config user.email` as a default name.
68
+
64
69
  | Command | Description |
65
70
  | ------------------------------------- | ----------------------------------------------------- |
66
- | `ranger profile add <name>` | Add a browser profile (opens browser to capture auth). Use `--safe-mode` if the browser crashes. |
71
+ | `ranger profile add <name>` | Add a profile (opens a browser for login). Use `--safe-mode` if the browser crashes. |
67
72
  | `ranger profile use <name>` | Switch active profile |
68
73
  | `ranger profile ls` | List all profiles |
69
- | `ranger profile update <name>` | Re-capture auth for a profile |
70
- | `ranger profile encrypt-auth <name>` | Encrypt auth.json for safe git storage (CI) |
74
+
75
+ For CI / background agents and other setup options, see
76
+ https://docs.ranger.net/main/concepts/profiles.
77
+
78
+ > Deprecated: `ranger profile update`, `ranger profile encrypt-auth`, and
79
+ > `ranger profile migrate` exit non-zero with a redirect. Run
80
+ > `ranger profile add <name>` to set up a fresh profile. See
81
+ > https://docs.ranger.net/main/concepts/profiles for setup options.
71
82
 
72
83
  ### Feature Reviews
73
84
 
@@ -89,7 +100,12 @@ Ask Claude to build a UI feature. Ranger handles the rest: creating a feature re
89
100
  | ------------ | ------------------------------------ |
90
101
  | `ranger go` | Verify a scenario in the browser |
91
102
 
92
- Options: `--scenario <N>` (scenario index), `--notes "<desc>"` (override notes), `--start-path /path` (start URL), `--profile <name>`, `--model <model>`, `--headed` (force headed browser for this run only).
103
+ Options: `--scenario <N>` (scenario index), `--notes "<desc>"` (override notes), `--start-path /path` (start URL), `--base-url <url>` (override profile base URL), `--profile <name>`, `--model <model>`, `--headed` (force headed browser for this run only).
104
+
105
+ Env vars:
106
+ - `RANGER_TEST_USERNAME` / `RANGER_TEST_PASSWORD` — for [automated login](https://docs.ranger.net/main/concepts/profiles#automated-login). The fastest path for CI / background agents. Works for any login flow we can run deterministically (username/password, SSO, OAuth, MFA, passkeys, magic links) — set up per-app with our team. Talk to us.
107
+ - `RANGER_PROFILE` — pin a profile (lower precedence than `--profile`).
108
+ - `RANGER_BASE_URL` / `RANGER_START_PATH` — analogues of `--base-url` / `--start-path`.
93
109
 
94
110
  You can set a default verify model in `.ranger/config.json`:
95
111
 
@@ -101,14 +117,18 @@ You can set a default verify model in `.ranger/config.json`:
101
117
 
102
118
  ### Config
103
119
 
104
- | Command | Description |
105
- | ------------------------------------------------- | ------------------------------ |
106
- | `ranger profile config set <profile> <key> <value>` | Set a config value |
107
- | `ranger profile config get <profile> <key>` | Read a config value |
108
- | `ranger profile config list <profile>` | Show all config for a profile |
109
- | `ranger profile config unset <profile> <key>` | Remove a config value |
120
+ Fine-tune browser behavior for a profile. Settings apply per cwd, so
121
+ different checkouts of the same repo can have different overrides.
122
+
123
+ | Command | Description |
124
+ | --------------------------------------------------- | ------------------------------ |
125
+ | `ranger profile config set <profile> <key> <value>` | Set a config value |
126
+ | `ranger profile config get <profile> <key>` | Read a config value |
127
+ | `ranger profile config list <profile>` | Show all config for a profile |
128
+ | `ranger profile config unset <profile> <key>` | Remove a config value |
129
+ | `ranger profile config reset <profile>` | Clear all overrides (cloud only) |
110
130
 
111
- Keys: `headless`, `userAgent`, `storageState`, `header.<name>`. Environment variables (e.g., `${AUTH_TOKEN}`) are resolved at runtime.
131
+ Keys: `baseUrl`, `headless`, `userAgent`, `storageState`, `allowInsecureLocalhost`, `headers.<name>`, `setupHeaders.<name>`. Environment variables (e.g., `${AUTH_TOKEN}`) are resolved at runtime.
112
132
 
113
133
  ## Plugin
114
134
 
@@ -121,12 +141,14 @@ claude plugin install ranger@trailhead --scope user
121
141
 
122
142
  ## Troubleshooting
123
143
 
124
- **"No active profile"** -- Run `ranger profile use <profile-name>`.
144
+ **"No active profile"** -- Run `ranger profile use <profile-name>`, or set `RANGER_PROFILE=<name>` for the session.
125
145
 
126
- **Authentication expired** -- Run `ranger profile update <profile-name>` to re-capture.
146
+ **Authentication expired** -- Run `ranger profile add <name>` to refresh. (For automated login, re-run `ranger go` with `RANGER_TEST_USERNAME` / `RANGER_TEST_PASSWORD` set.)
127
147
 
128
148
  **Browser crashes during profile setup** -- On some macOS + Chrome combinations, the browser may crash during authentication. Run `ranger profile add <name> --safe-mode` to disable browser features that trigger the crash.
129
149
 
130
150
  **"No active feature review"** -- Run `ranger list` then `ranger resume <id>`.
131
151
 
152
+ **Daily warning about legacy `.ranger/` paths** -- Existing sessions in those paths still work as a fallback, but new sessions are managed for you. Run `ranger profile add <name>` to set up a fresh profile, then delete the legacy dirs to silence the warning. See https://docs.ranger.net/main/concepts/profiles.
153
+
132
154
  Run `ranger status` to see everything at a glance.
package/build/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const _0x1b6b0a=_0x52fd;(function(_0x1bf53a,_0x4f7dd3){const _0x9272ba=_0x52fd,_0x13dab1=_0x1bf53a();while(!![]){try{const _0x2938cb=parseInt(_0x9272ba(0x220))/0x1+-parseInt(_0x9272ba(0x293))/0x2+-parseInt(_0x9272ba(0x23d))/0x3+-parseInt(_0x9272ba(0x2bc))/0x4+-parseInt(_0x9272ba(0x2a5))/0x5*(parseInt(_0x9272ba(0x1be))/0x6)+parseInt(_0x9272ba(0x193))/0x7*(parseInt(_0x9272ba(0x17e))/0x8)+-parseInt(_0x9272ba(0x204))/0x9*(-parseInt(_0x9272ba(0x226))/0xa);if(_0x2938cb===_0x4f7dd3)break;else _0x13dab1['push'](_0x13dab1['shift']());}catch(_0x590a24){_0x13dab1['push'](_0x13dab1['shift']());}}}(_0x5745,0xef6d1));import _0x5783fd from'dotenv';import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x5582dd=_0x52fd,_0x1fddf3={'eFRrk':function(_0x28b01e,_0x1e1c10){return _0x28b01e(_0x1e1c10);},'TpHhN':function(_0x4cdfe6,_0x1bc6cb,_0x56cd7f){return _0x4cdfe6(_0x1bc6cb,_0x56cd7f);},'fAUsZ':_0x5582dd(0x2de)};let _0x6ca0a6=process[_0x5582dd(0x280)]();const _0x53d6f3=parse(_0x6ca0a6)[_0x5582dd(0x231)];while(_0x6ca0a6!==_0x53d6f3){if(existsSync(join(_0x6ca0a6,'.ranger'))||_0x1fddf3[_0x5582dd(0x2b7)](existsSync,_0x1fddf3[_0x5582dd(0x22b)](join,_0x6ca0a6,_0x1fddf3['fAUsZ'])))return _0x6ca0a6;_0x6ca0a6=dirname(_0x6ca0a6);}return process[_0x5582dd(0x280)]();}function _0x5745(){const _0x24ff8d=['unset\x20<profile>\x20<key>','New\x20scenario\x20description','array','get-feedback\x20[id]','4319532PqzoRQ','verified','feature\x20show','evaluationReason','profile\x20ls','Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','WSdzn','Config\x20key','CkdPR','get-review','scope','unset\x20<env>\x20<key>','PEQLY','evaluation','ranger\x20feature\x20get-feedback','Install\x20for\x20OpenCode\x20instead\x20of\x20Claude\x20Code','aBqrZ','Zmbvp','Config\x20key\x20to\x20remove','ranger\x20config\x20get','add\x20env\x20<env-name>','--notes','error','Reason:\x20','iVCne','yyIlR','login','DSicp','ViaKT','Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','LstnK','ziDSg','add\x20env','demandCommand','.env','IwZpJ','ranger\x20resume','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','aFzrh','checklist','env','allow-insecure-localhost','You\x20must\x20specify\x20a\x20profile\x20subcommand','exclude-scenario','epilogue','show','slice','ranger\x20verify-feature','RZzNx','VmPlj','GEKgG','NXRtB','skip-chromium','PhbCZ','hMrKQ','MVtFA','Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','add\x20<profile-name>','xYTsb','update\x20<env-name>','Where\x20to\x20store\x20the\x20profile','partial','Print\x20the\x20current\x20CLI\x20access\x20token','kmluY','task','skills','Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','jRBrw','number','ObSEE','List\x20all\x20feature\x20reviews','Ieiej','--checklist','QZxcs','log','Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','status','Scenario\x20description','ranger\x20env\x20update','aDqDX','Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)','include-deleted','command','ajmDY','use','limit','setup:deps','Include\x20soft-deleted\x20feature\x20reviews','Set\x20up\x20a\x20local\x20browser\x20profile','cdp-endpoint','Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','eIBue','855648IRougv','crgMZ','KHAMG','MOjdA','HTTP\x20header\x20to\x20send\x20only\x20during\x20profile\x20setup\x20auth,\x20not\x20during\x20test\x20runs\x20(format:\x20\x22Name:\x20Value\x22)','DiDHe','IMRTx','ohSFb','sTgbi','clean','Usage:\x20ranger\x20setup\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20all\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Full\x20interactive\x20setup\x20(default\x20when\x20no\x20subcommand\x20given)\x0a\x20\x20deps\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Chromium\x20browser\x20binary\x0a\x20\x20login\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Authenticate\x20with\x20Ranger\x0a\x20\x20skills\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Claude\x20Code\x20plugin\x20and\x20skills\x0a\x20\x20profiles\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Set\x20up\x20a\x20local\x20browser\x20profile\x0a\x0aRun\x20`ranger\x20setup\x20<command>\x20--help`\x20for\x20details.\x0a\x0aExamples:\x0a\x20\x20ranger\x20setup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Interactive\x20first-time\x20setup\x0a\x20\x20ranger\x20setup\x20deps\x20--with-deps\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Chromium\x20+\x20OS\x20deps\x20(Dockerfile)\x0a\x20\x20ranger\x20setup\x20login\x20--mcp\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Authenticate\x20via\x20MCP\x20proxy\x0a\x20\x20ranger\x20setup\x20skills\x20--scope\x20user\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20skills\x20at\x20user\x20level','headed','positional','cXBji','name','TKEWE','You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand','nfPAN','Qzljo','rhigU','fNYHP','42diynvk','token','start\x20[token]','usage','\x20BLOCKED','Usage:\x20ranger\x20profile\x20config\x20<command>\x0a\x0aCommands:\x0a\x20\x20set\x20<profile>\x20<key>\x20<value>\x20\x20\x20\x20Set\x20a\x20config\x20value\x0a\x20\x20get\x20<profile>\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Get\x20a\x20config\x20value\x0a\x20\x20list\x20<profile>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20all\x20config\x20for\x20a\x20profile\x0a\x20\x20unset\x20<profile>\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20a\x20config\x20value\x0a\x0aKeys:\x0a\x20\x20userAgent\x20\x20\x20\x20\x20\x20\x20\x20Browser\x20user\x20agent\x20string\x0a\x20\x20headless\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20browser\x20in\x20headless\x20mode\x20(true/false)\x0a\x20\x20allowInsecureLocalhost\x20\x20\x20Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(true/false)\x0a\x20\x20storageState\x20\x20\x20\x20\x20Path\x20to\x20auth\x20state\x20file\x20(e.g.,\x20./auth.json)\x0a\x20\x20header.<name>\x20\x20\x20\x20Custom\x20HTTP\x20header\x20sent\x20with\x20every\x20request\x20(e.g.,\x20header.X-Test-Mode)\x0a\x20\x20setupHeader.<name>\x20\x20HTTP\x20header\x20sent\x20only\x20during\x20profile\x20setup\x20auth,\x20not\x20during\x20test\x20runs\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(e.g.,\x20setupHeader.x-bypass-turnstile)\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20userAgent\x20\x22Mozilla/5.0\x20(CI\x20Bot)\x22\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20headless\x20true\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20allowInsecureLocalhost\x20true\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20header.Authorization\x20\x27${AUTH_TOKEN}\x27\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20setupHeader.x-bypass-turnstile\x20\x27a1b2c3d4...\x27','includes','WkeVv','ranger\x20profile\x20use','ranger\x20profile\x20config\x20unset','restore\x20<id>','boolean','\x20VERIFIED','Disable\x20browser\x20features\x20that\x20can\x20cause\x20crashes\x20on\x20some\x20systems\x20(e.g.\x20Bluetooth\x20permission\x20prompts\x20on\x20macOS)','profile-name','setup-header','HBVYN','feature','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','QWNKm','notes','GqJXy','lvVks','version','ZvsSI','yrboE','resume\x20[id]','config','json','skip-auth','aovGI','Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)','bMliB','wqsbH','Authenticate\x20with\x20Ranger','XGYVw','user','Run\x20full\x20interactive\x20setup','opencode','failed','SqSLg','zDVNg','Hutzr','6flWykm','Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','AUcaB','feature\x20delete','scriptName','MAzih','argv','list\x20<profile>','vsPVy','env-name','Update\x20authentication\x20for\x20an\x20existing\x20profile','eZycM','with-deps','ranger\x20add-scenario','qCWvy','qhOpG','JBwDt','item','jedrC','Skip\x20authentication','Allow\x20localhost\x20content\x20in\x20deployed\x20environments','vKiml','Install\x20skills\x20for\x20OpenCode','IdxeE','list','base-url','offset','vnguJ','GqYdN','Hmflk','VaEll','EmHzN','blocked','ruUEd','\x0aUnknown\x20command:\x20','ranger\x20use','iAfRN','ranger\x20feature\x20resume','yLsSf','Unknown\x20error','profile','thMlT','session-id','GOuZG','setup:login','description','use\x20<profile-name>','bgZlM','KTdoY','fail','--profile','map','scenario','profile\x20config\x20get','config\x20unset','KyWui','Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project','Task\x20description\x20(defaults\x20to\x20scenario\x20description)','organizationName','ranger\x20restore','qlyrw','hvSve','ThQGy','config\x20set','WIOwn','get\x20<profile>\x20<key>','wmjAU','Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)','Optional\x20feature\x20ID','trackCommandError','1017qtgJmS','ExFWI','XlZxl','wxPPf','config\x20get','Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','hPmgC','edMgd','report\x20[id]','Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)','KVNUj','Bootstrap\x20CLI\x20auth\x20via\x20an\x20MCP\x20auth\x20server','\x0aIssues:','Name\x20of\x20the\x20environment','help','WQjCi','✓\x20Authenticated\x20to\x20','UiPjk','YDqIO','fZscN','Manage\x20profiles','cHCtG','SydEm','ranger\x20get-review','Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a','rmhNL','Skip\x20Chromium\x20browser\x20installation','List\x20all\x20profiles','1275497cnnkxB','EUioV','unhandledRejection','startsWith','ranger\x20feature\x20show','lNJro','302820pSvGoe','Manage\x20profile\x20configuration','oeOfU','\x20\x20https://docs.ranger.net\x0a','KMxFx','TpHhN','Glwpb','Feature\x20review\x20ID','delete','Usage:\x20ranger\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20setup\x20[token]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Initialize\x20Ranger\x20in\x20your\x20project\x0a\x20\x20setup\x20all\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Full\x20interactive\x20setup\x20(same\x20as\x20bare\x20setup)\x0a\x20\x20setup\x20deps\x20[--with-deps]\x20\x20\x20\x20Install\x20Chromium\x20browser\x0a\x20\x20setup\x20login\x20[--token\x20<t>]\x20\x20\x20Authenticate\x20with\x20Ranger\x0a\x20\x20setup\x20skills\x20[--scope\x20...]\x20\x20Install\x20Claude\x20Code\x20plugin\x20and\x20skills\x0a\x20\x20setup\x20profiles\x20[--url\x20<u>]\x20\x20Set\x20up\x20a\x20local\x20browser\x20profile\x0a\x20\x20setup\x20--mcp-bootstrap\x20\x20\x20\x20\x20\x20\x20Bootstrap\x20auth\x20via\x20MCP\x20auth\x20server\x0a\x20\x20login\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Re-authenticate\x20without\x20full\x20setup\x0a\x20\x20skillup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Ranger\x20skills\x0a\x20\x20clean\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20Ranger\x20artifacts\x20from\x20the\x20project\x0a\x20\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20version,\x20org,\x20skills,\x20and\x20profile\x20status\x0a\x20\x20update\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version\x0a\x0a\x20\x20profile\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Manage\x20profiles\x20(add/use/ls/update/config/encrypt-auth)\x0a\x20\x20\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth,\x20--scope\x20user|project)\x0a\x20\x20\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Set/get/list/unset\x20profile\x20config\x0a\x0a\x20\x20create\x20<name>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Create\x20a\x20feature\x20review\x20with\x20scenarios\x0a\x20\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20feature\x20reviews\x0a\x20\x20show\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20feature\x20review\x20details\x0a\x20\x20resume\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20feature\x20review\x0a\x20\x20add-scenario\x20<description>\x20\x20Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review\x0a\x20\x20edit-scenario\x20<description>\x20Edit\x20a\x20scenario\x20description\x0a\x20\x20get-review\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20reviewer\x20feedback\x0a\x20\x20report\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Generate\x20PR\x20description\x20markdown\x0a\x20\x20delete\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Soft\x20delete\x20a\x20feature\x20review\x0a\x20\x20restore\x20<id>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Restore\x20a\x20soft-deleted\x20feature\x20review\x0a\x0a\x20\x20go\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20a\x20scenario\x20in\x20the\x20browser\x0a\x0aRun\x20`ranger\x20<command>\x20--help`\x20for\x20details.','mcp','root','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','setup:profiles','VYHxg','pRvJk','Output\x20structured\x20JSON\x20data\x20instead\x20of\x20markdown','fsKdY','use\x20<env-name>','url','zOyyw','deps','IPNIP','5690970xwVZFE','mcp-bootstrap','hook:disable','list\x20<env>','hook','Usage:\x20ranger\x20profile\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth,\x20--scope\x20user|project)\x0a\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Profile\x20config\x20(set/get/list/unset)\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20add\x20local\x0a\x20\x20ranger\x20profile\x20encrypt-auth\x20ci\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20headless\x20true','Unknown\x20command','Alias\x20for\x20--mcp-bootstrap','Failed\x20to\x20exchange\x20MCP\x20refresh\x20token\x20for\x20a\x20CLI\x20token.','mSYWO','xqYvP','SsJeu','Authenticated\x20via\x20MCP,\x20but\x20failed\x20to\x20verify:\x20','uThtn','model','You\x20must\x20specify\x20an\x20auth\x20subcommand','show\x20[id]','BNcKa','zerwU','crVcK','print-access-token','cqYHm','update','profile\x20use','debug-address-comments','lMUqR','TMZrG','xEkhg','key','suLuD','exit','incomplete','YkLTB','HEigy','You\x20must\x20specify\x20an\x20env\x20subcommand','SQIHr','Documentation:\x0a','vBFpj','wNiZj','aLkfg','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)','NIdqY','some','skillup','string','QaUbu','setup-ci\x20<token>','ranger\x20auth\x20encrypt','Install\x20OS-level\x20dependencies\x20for\x20Chromium\x20(apt\x20packages\x20for\x20Debian/Ubuntu\x20containers)','.\x20[','Scenario\x20index\x20(1-based)','xqflL','AAIAB','edit-scenario\x20<description>','Initialize\x20Ranger\x20in\x20your\x20project','option','ranger\x20config\x20list','force','setup:all','Bootstrap\x20CLI\x20auth\x20via\x20an\x20MCP\x20auth\x20server\x20instead\x20of\x20browser\x20login','profile\x20update','Skip\x20authentication\x20(install\x20deps\x20only\x20—\x20for\x20container/CI\x20image\x20builds)','Restore\x20a\x20soft-deleted\x20feature\x20review','lyTPC','HHjKC','Profile\x20name','hYdxz','cwd','Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version','zcyhr','Number\x20of\x20feature\x20reviews\x20to\x20skip','SzYtL','CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)','HdMRU','current-branch','feature\x20list','resume','ayxVR','okLVq','ranger\x20go','safe-mode','ranger\x20add\x20env','--env','aFhcy','FXGNk','aBZnL','815560iiQRfu','MKokI','thdsG','start','UQBZr','Install\x20OS-level\x20dependencies\x20for\x20Chromium','project','BxvpL','XPXGB','vrQOg','wsEGU','rNqsl','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','ranger\x20profile\x20ls','Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','debug-outcome','Model\x20to\x20use\x20for\x20verification\x20(e.g.,\x20opus,\x20sonnet,\x20claude-opus-4-6,\x20anthropic.claude-opus-4-6-v1).\x20When\x20RANGER_BYOK=true,\x20leaving\x20this\x20unset\x20lets\x20Claude/Bedrock\x20choose\x20from\x20local\x20config.','Feature\x20review\x20ID\x20to\x20restore','4868785VCpgPB','iPHyH','mQWcW','set\x20<profile>\x20<key>\x20<value>','Disable\x20Ranger\x20hooks\x20for\x20this\x20session','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','verify-feature','Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)','enable','repeat','value','UQNVt','ranger\x20profile\x20config\x20set','HQRDO','ranger\x20create','qKPKc','Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','PvfdB','eFRrk'];_0x5745=function(){return _0x24ff8d;};return _0x5745();}_0x5783fd[_0x1b6b0a(0x1ae)]({'path':join(findProjectRoot(),'.env')});import _0x46c9fe from'yargs/yargs';function _0x52fd(_0x5c9492,_0x1e3271){_0x5c9492=_0x5c9492-0x16b;const _0x57457a=_0x5745();let _0x52fd45=_0x57457a[_0x5c9492];return _0x52fd45;}import{addEnv,clean,login,start,setupCi,useEnv,updateEnv,update,skillup,envList,hook,ensureLocalEnv,ensureChromium,authenticate}from'./commands/index.js';import{authEncrypt}from'./commands/authEncrypt.js';import{mcpBootstrap}from'./commands/mcpBootstrap.js';import{getToken}from'./commands/utils/keychain.js';import{status}from'./commands/status.js';import{configSet,configGet,configList,configUnset}from'./commands/config.js';import{verifyFeature}from'./commands/verifyFeature.js';import{loadRangerConfig}from'./commands/utils/rangerConfig.js';import{isByokEnabled}from'./commands/utils/environment.js';import{featureCreate,featureList,featureShow,featureResume,featureAddScenario,featureEditScenario,featureGetReview,featureReportPrDescription,featureDelete,featureRestore}from'./commands/feature.js';import{logDesirePath,getErrorType,sanitizeArgs}from'./commands/utils/desirePathLog.js';import{getCurrentVersion}from'./commands/utils/version.js';import{refreshCliToken}from'./commands/utils/tokenRefresh.js';import{getCurrentUser}from'./commands/utils/userApi.js';import{ensureClaudePlugin,ensureClaudeSkills}from'./commands/setup/claude.js';import{ensureOpencodePluginConfig}from'./commands/setup/opencode.js';import{installSkill}from'./commands/utils/skills.js';import{withTelemetry,getCurrentCollector}from'./commands/utils/telemetry.js';process['on'](_0x1b6b0a(0x222),async _0x231b98=>{const _0x1ff83a={'oKyZL':function(_0x34f9a0){return _0x34f9a0();}},_0xd173=_0x1ff83a['oKyZL'](getCurrentCollector);_0xd173&&await _0xd173['trackCommandError'](_0x231b98),process['exitCode']=0x1;});const rawArgs=process['argv'][_0x1b6b0a(0x2eb)](0x2),TOP_LEVEL_HELP=_0x1b6b0a(0x22f),PROFILE_HELP=_0x1b6b0a(0x242),PROFILE_CONFIG_HELP=_0x1b6b0a(0x198);function warnRenamed(_0x5ee1d2,_0x1e2d48){console['error']('\x0a'+_0x5ee1d2+'\x20is\x20now\x20'+_0x1e2d48+'\x0a');}function argUsed(_0x357edf){const _0x366901=_0x1b6b0a;return rawArgs[_0x366901(0x267)](_0x1c3235=>_0x1c3235===_0x357edf||_0x1c3235[_0x366901(0x223)](_0x357edf+'='));}function warnFlagRenamed(_0x81524,_0x416627,_0x2610e1){const _0x1ea29b=_0x1b6b0a,_0x40cb8a={'ZvsSI':function(_0x41d139,_0x51927f){return _0x41d139(_0x51927f);},'xqYvP':function(_0x2a85ff,_0x30b1c2,_0x1f330c){return _0x2a85ff(_0x30b1c2,_0x1f330c);}};_0x40cb8a[_0x1ea29b(0x1ab)](argUsed,_0x416627)&&_0x40cb8a[_0x1ea29b(0x247)](warnRenamed,_0x81524+'\x20'+_0x416627,_0x81524+'\x20'+_0x2610e1);}async function runGoCommand(_0x17a9b4,_0x4b29be=![]){const _0x6fe79b=_0x1b6b0a,_0x3b7bbd={'rfKeD':function(_0x8d16e8,_0x21b84d){return _0x8d16e8+_0x21b84d;},'InnoA':function(_0x300e81,_0x297b84,_0x23c482){return _0x300e81(_0x297b84,_0x23c482);},'gTbCo':_0x6fe79b(0x28f),'CUulA':_0x6fe79b(0x1f0),'oeOfU':function(_0x508c9c,_0x511baa,_0x362f21,_0x28ebd7){return _0x508c9c(_0x511baa,_0x362f21,_0x28ebd7);},'VmPlj':_0x6fe79b(0x28c),'gThmd':'--task','couUy':function(_0x4f3ebb){return _0x4f3ebb();},'vBFpj':function(_0x42e431){return _0x42e431();},'crVcK':_0x6fe79b(0x2a2),'UPbkn':_0x6fe79b(0x255),'fNYHP':function(_0x1fd12f,_0x20de7c){return _0x1fd12f+_0x20de7c;},'RGVys':_0x6fe79b(0x19f),'pRvJk':'incomplete','aFzrh':'partial','Hutzr':'blocked','sTgbi':'\x20FAILED','DJcmE':function(_0x31df98,_0x119cba){return _0x31df98===_0x119cba;},'thMlT':'verified'};_0x4b29be&&_0x3b7bbd['InnoA'](warnRenamed,_0x6fe79b(0x2ec),'ranger\x20go');warnFlagRenamed(_0x6fe79b(0x28c),_0x3b7bbd['gTbCo'],_0x3b7bbd['CUulA']),_0x3b7bbd['oeOfU'](warnFlagRenamed,_0x3b7bbd[_0x6fe79b(0x2ee)],_0x3b7bbd['gThmd'],_0x6fe79b(0x2d1)),_0x3b7bbd[_0x6fe79b(0x228)](warnFlagRenamed,_0x3b7bbd[_0x6fe79b(0x2ee)],'--item','--scenario');const _0x247f64=await _0x3b7bbd['couUy'](loadRangerConfig),_0x1e2a97=_0x3b7bbd[_0x6fe79b(0x262)](isByokEnabled),_0x2c06bb=_0x17a9b4['model'],_0x4051de=_0x247f64[_0x6fe79b(0x24b)],_0x4902d5=await verifyFeature({'featureId':_0x17a9b4[_0x6fe79b(0x1a4)],'profile':_0x17a9b4[_0x6fe79b(0x1e6)]??_0x17a9b4[_0x6fe79b(0x2e5)],'notes':_0x17a9b4['notes']??_0x17a9b4['task'],'scenario':_0x17a9b4['scenario']??_0x17a9b4[_0x6fe79b(0x1cf)],'startPath':_0x17a9b4['start-path'],'debugOutcome':_0x17a9b4[_0x3b7bbd[_0x6fe79b(0x250)]],'debugAddressComments':_0x17a9b4[_0x3b7bbd['UPbkn']],'headed':_0x17a9b4['headed'],'byokEnabled':_0x1e2a97,'flagVerifyModel':_0x2c06bb,'configVerifyModel':_0x4051de});console['log'](_0x3b7bbd[_0x6fe79b(0x192)]('\x0a','='[_0x6fe79b(0x2ae)](0x3c))),console['log'](_0x4902d5[_0x6fe79b(0x2c9)]==='verified'?_0x3b7bbd['RGVys']:_0x4902d5['evaluation']===_0x3b7bbd[_0x6fe79b(0x235)]?'\x20INCOMPLETE':_0x4902d5[_0x6fe79b(0x2c9)]===_0x3b7bbd[_0x6fe79b(0x2e3)]?'\x20PARTIAL':_0x4902d5[_0x6fe79b(0x2c9)]===_0x3b7bbd[_0x6fe79b(0x1bd)]?_0x6fe79b(0x197):_0x3b7bbd[_0x6fe79b(0x186)]),console['log']('='['repeat'](0x3c)),console[_0x6fe79b(0x16b)]('Summary:\x20'+_0x4902d5['summary']),console['log']('Evaluation:\x20'+_0x4902d5[_0x6fe79b(0x2c9)]),console['log'](_0x6fe79b(0x2d3)+_0x4902d5[_0x6fe79b(0x2bf)]),_0x4902d5['issues']?.['length']&&(console['log'](_0x6fe79b(0x210)),_0x4902d5['issues']['forEach']((_0x4f0b0e,_0x20506d)=>{const _0x426fc8=_0x6fe79b;console['log']('\x0a'+_0x3b7bbd['rfKeD'](_0x20506d,0x1)+_0x426fc8(0x26e)+_0x4f0b0e['severity']+']\x20'+_0x4f0b0e['description']);})),process[_0x6fe79b(0x25b)](_0x3b7bbd['DJcmE'](_0x4902d5['evaluation'],_0x3b7bbd[_0x6fe79b(0x1e7)])?0x0:0x1);}_0x46c9fe(process[_0x1b6b0a(0x1c4)]['slice'](0x2))[_0x1b6b0a(0x1c2)]('ranger')[_0x1b6b0a(0x196)](TOP_LEVEL_HELP)[_0x1b6b0a(0x1aa)](getCurrentVersion())['command']('create\x20<name>','Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios',_0x2d8ba2=>{const _0x50dbda=_0x1b6b0a,_0x2ea8e3={'OoHzr':'name','bgZlM':_0x50dbda(0x269),'XYgEq':'Feature\x20review\x20name','EleFG':'Feature\x20review\x20description','njwzD':_0x50dbda(0x2e4),'YOyAt':'array'};return _0x2d8ba2[_0x50dbda(0x18a)](_0x2ea8e3['OoHzr'],{'type':_0x2ea8e3[_0x50dbda(0x1ed)],'description':_0x2ea8e3['XYgEq'],'demandOption':!![]})[_0x50dbda(0x274)]('description',{'type':_0x50dbda(0x269),'alias':'d','description':_0x2ea8e3['EleFG']})['option']('scenario',{'type':_0x50dbda(0x2ba),'alias':'c','description':_0x50dbda(0x1bf)})[_0x50dbda(0x274)](_0x2ea8e3['njwzD'],{'type':_0x2ea8e3['YOyAt'],'hidden':!![]});},async _0x3c5ba3=>{const _0x1d1f57=_0x1b6b0a,_0x331fe5={'mBeCh':function(_0x3dee02,_0x464d52,_0xaadef,_0x44fab1){return _0x3dee02(_0x464d52,_0xaadef,_0x44fab1);},'crgMZ':_0x1d1f57(0x2b3),'CdxsW':'--checklist','vsgKg':'--scenario','XTSqC':'create'};_0x331fe5['mBeCh'](warnFlagRenamed,_0x331fe5[_0x1d1f57(0x17f)],_0x331fe5['CdxsW'],_0x331fe5['vsgKg']);const _0x575ef2=_0x3c5ba3['scenario']||_0x3c5ba3[_0x1d1f57(0x2e4)];await withTelemetry(_0x331fe5['XTSqC'],()=>featureCreate(_0x3c5ba3['name'],{'description':_0x3c5ba3[_0x1d1f57(0x1eb)],'scenarios':_0x575ef2}));})['command']('list',_0x1b6b0a(0x303),_0x58ea94=>{const _0x2f49a5=_0x1b6b0a,_0x69775a={'cXkvL':'current-branch','sZGVy':_0x2f49a5(0x232),'HEigy':_0x2f49a5(0x301),'jedrC':_0x2f49a5(0x1d8),'JNGZX':'Number\x20of\x20feature\x20reviews\x20to\x20skip','IdxeE':_0x2f49a5(0x19e)};return _0x58ea94['option'](_0x69775a['cXkvL'],{'type':_0x2f49a5(0x19e),'description':_0x69775a['sZGVy']})['option'](_0x2f49a5(0x176),{'type':_0x69775a[_0x2f49a5(0x25e)],'alias':'l','description':'Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','default':0xa})['option'](_0x69775a[_0x2f49a5(0x1d0)],{'type':_0x69775a[_0x2f49a5(0x25e)],'alias':'o','description':_0x69775a['JNGZX'],'default':0x0})['option']('include-deleted',{'type':_0x69775a[_0x2f49a5(0x1d5)],'alias':'d','description':_0x2f49a5(0x178),'default':![]});},async _0x592d5d=>{const _0x56ca8b=_0x1b6b0a,_0x1c3940={'YDqIO':function(_0x1dd70c,_0x4fd8af,_0x4bb5c3){return _0x1dd70c(_0x4fd8af,_0x4bb5c3);},'mUUzK':_0x56ca8b(0x1d6)};await _0x1c3940[_0x56ca8b(0x216)](withTelemetry,_0x1c3940['mUUzK'],()=>featureList({'currentBranch':_0x592d5d[_0x56ca8b(0x287)],'limit':_0x592d5d['limit'],'offset':_0x592d5d[_0x56ca8b(0x1d8)],'includeDeleted':_0x592d5d[_0x56ca8b(0x172)]}));})['command'](_0x1b6b0a(0x24d),_0x1b6b0a(0x17c),_0x677a2c=>{const _0x2d16f5=_0x1b6b0a,_0x56426a={'qlyrw':_0x2d16f5(0x22d)};return _0x677a2c[_0x2d16f5(0x18a)]('id',{'type':'string','description':_0x56426a[_0x2d16f5(0x1fa)]});},async _0x4a4bd7=>{const _0x13b376=_0x1b6b0a,_0xad174e={'WFlGt':function(_0x2486ec,_0x161426,_0x10ed36){return _0x2486ec(_0x161426,_0x10ed36);},'CnUCi':_0x13b376(0x2ea)};await _0xad174e['WFlGt'](withTelemetry,_0xad174e['CnUCi'],()=>featureShow(_0x4a4bd7['id']));})[_0x1b6b0a(0x173)](_0x1b6b0a(0x1ad),'Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context',_0x58398b=>{const _0x3d11e1=_0x1b6b0a,_0x71716a={'IIcHV':_0x3d11e1(0x269)};return _0x58398b[_0x3d11e1(0x18a)]('id',{'type':_0x71716a['IIcHV'],'description':_0x3d11e1(0x1a5)});},async _0x2e7e69=>{const _0x385412=_0x1b6b0a,_0x10fd57={'dQbTh':_0x385412(0x289)};await withTelemetry(_0x10fd57['dQbTh'],()=>featureResume(_0x2e7e69['id']));})['command']('add-scenario\x20<description>','Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review',_0x1e1c91=>{const _0x9c159c=_0x1b6b0a,_0x307b36={'KTdoY':_0x9c159c(0x1eb),'KVNUj':'string','aDqDX':'Scenario\x20description'};return _0x1e1c91['positional'](_0x307b36[_0x9c159c(0x1ee)],{'type':_0x307b36[_0x9c159c(0x20e)],'description':_0x307b36[_0x9c159c(0x170)],'demandOption':!![]})[_0x9c159c(0x274)]('id',{'type':_0x9c159c(0x269),'description':_0x9c159c(0x29f)});},async _0x8d0227=>{const _0x138f9c=_0x1b6b0a,_0x59f5d9={'aBqrZ':function(_0x387c58,_0x34ed45,_0x30fc52){return _0x387c58(_0x34ed45,_0x30fc52);}};await _0x59f5d9[_0x138f9c(0x2cc)](withTelemetry,'add-scenario',()=>featureAddScenario(_0x8d0227[_0x138f9c(0x1eb)],_0x8d0227['id']));})['command'](_0x1b6b0a(0x272),'Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review',_0x1d4cff=>{const _0x23782e=_0x1b6b0a,_0x57f372={'iHsDH':_0x23782e(0x1eb),'AByhd':'scenario','wNiZj':'Scenario\x20number\x20to\x20edit\x20(1-based)','HMfdL':_0x23782e(0x269),'eKdMh':_0x23782e(0x29f)};return _0x1d4cff['positional'](_0x57f372['iHsDH'],{'type':'string','description':_0x23782e(0x2b9),'demandOption':!![]})['option'](_0x57f372['AByhd'],{'type':_0x23782e(0x301),'description':_0x57f372[_0x23782e(0x263)],'demandOption':!![]})['option']('id',{'type':_0x57f372['HMfdL'],'description':_0x57f372['eKdMh']});},async _0x5b725b=>{const _0x2bd7e2=_0x1b6b0a,_0x58145f={'SZSwN':'edit-scenario'};await withTelemetry(_0x58145f['SZSwN'],()=>featureEditScenario(_0x5b725b[_0x2bd7e2(0x1eb)],{'id':_0x5b725b['id'],'scenario':_0x5b725b['scenario']}));})['command'](_0x1b6b0a(0x20c),_0x1b6b0a(0x1b2),_0xde83df=>{const _0xeaab36=_0x1b6b0a,_0x1af3ac={'DIzRQ':_0xeaab36(0x2e8),'thdsG':'Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)'};return _0xde83df[_0xeaab36(0x18a)]('id',{'type':_0xeaab36(0x269),'description':'Feature\x20review\x20ID'})[_0xeaab36(0x274)](_0x1af3ac['DIzRQ'],{'type':'array','description':_0x1af3ac[_0xeaab36(0x295)]})[_0xeaab36(0x274)]('json',{'type':_0xeaab36(0x19e),'description':_0xeaab36(0x236),'default':![]});},async _0x42cec3=>{const _0x45fdfc=_0x1b6b0a,_0x288217={'XGYVw':_0x45fdfc(0x2e8),'CaiPl':'report'},_0x54cd9b=_0x42cec3[_0x288217[_0x45fdfc(0x1b6)]],_0x5697eb=_0x54cd9b?_0x54cd9b[_0x45fdfc(0x1f1)](_0x3e8a44=>Number(_0x3e8a44)):undefined;await withTelemetry(_0x288217['CaiPl'],()=>featureReportPrDescription(_0x42cec3['id'],{'excludeScenarios':_0x5697eb,'json':_0x42cec3[_0x45fdfc(0x1af)]}));})['command']('get-review\x20[id]',_0x1b6b0a(0x2e1),_0x82f5df=>{const _0xf8a1b0=_0x1b6b0a,_0x43794c={'fsKdY':'string','MygCE':_0xf8a1b0(0x29f)};return _0x82f5df[_0xf8a1b0(0x18a)]('id',{'type':_0x43794c[_0xf8a1b0(0x237)],'description':_0x43794c['MygCE']});},async _0x34f803=>{const _0x4b15a9=_0x1b6b0a,_0x3d6fce={'kdeBo':function(_0x1aca32,_0x2fbd51,_0x1b5955){return _0x1aca32(_0x2fbd51,_0x1b5955);},'OMTnY':_0x4b15a9(0x2c5)};await _0x3d6fce['kdeBo'](withTelemetry,_0x3d6fce['OMTnY'],()=>featureGetReview(_0x34f803['id']));})['command']('delete\x20[id]',_0x1b6b0a(0x2b5),_0x41b0ad=>{const _0xad6d5=_0x1b6b0a,_0x13357c={'IMRTx':'string','QEMpW':'Feature\x20review\x20ID'};return _0x41b0ad[_0xad6d5(0x18a)]('id',{'type':_0x13357c[_0xad6d5(0x184)],'description':_0x13357c['QEMpW']});},async _0x2b2173=>{const _0x932a07=_0x1b6b0a,_0x3367bf={'VYHxg':function(_0x413635,_0x34d9e0,_0x136dae){return _0x413635(_0x34d9e0,_0x136dae);}};await _0x3367bf[_0x932a07(0x234)](withTelemetry,_0x932a07(0x22e),()=>featureDelete(_0x2b2173['id']));})['command']('restore\x20<id>',_0x1b6b0a(0x27b),_0x36f01d=>{const _0x357305=_0x1b6b0a,_0x799b96={'IwZpJ':_0x357305(0x269),'ceoWJ':_0x357305(0x2a4)};return _0x36f01d['positional']('id',{'type':_0x799b96[_0x357305(0x2df)],'description':_0x799b96['ceoWJ'],'demandOption':!![]});},async _0x27c9b5=>{const _0x2b03c4={'MNjQV':function(_0x89bf1a,_0x57e6d5,_0x39cfa1){return _0x89bf1a(_0x57e6d5,_0x39cfa1);},'VZmZN':'restore'};await _0x2b03c4['MNjQV'](withTelemetry,_0x2b03c4['VZmZN'],()=>featureRestore(_0x27c9b5['id']));})[_0x1b6b0a(0x173)]('setup\x20[tokenOrSubcommand]',_0x1b6b0a(0x273),_0x2f6ef1=>{const _0x1aa239=_0x1b6b0a,_0x4542b5={'ziDSg':_0x1aa239(0x269),'WSdzn':'Ranger\x20API\x20token','PtdVK':_0x1aa239(0x2f1),'fwdMU':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','WXYDL':_0x1aa239(0x1d1),'ruUEd':'scope','HBVYN':'user','FXGNk':'boolean','cXBji':_0x1aa239(0x1d2),'xEkhg':function(_0x580bae,_0x628840,_0x5b32c9){return _0x580bae(_0x628840,_0x5b32c9);},'hYdxz':_0x1aa239(0x23e),'rpnWa':function(_0x4b0f21,_0x527e66,_0x47328f){return _0x4b0f21(_0x527e66,_0x47328f);},'Hmflk':_0x1aa239(0x277),'GqYdN':'with-deps','wmjAU':_0x1aa239(0x177),'HdMRU':'mcp','bJaUV':'Authenticate\x20via\x20MCP\x20proxy','lMUqR':function(_0x532f3c){return _0x532f3c();},'wqsbH':_0x1aa239(0x245),'rFwBe':'project','RNxHI':'Install\x20scope\x20for\x20plugin\x20and\x20skills','cqYHm':'opencode','jRBrw':'Install\x20for\x20OpenCode\x20instead\x20of\x20Claude\x20Code','jGGel':'ranger','wiltw':function(_0xc67918,_0x4a0958){return _0xc67918(_0x4a0958);},'XlZxl':'setup:skills','QaUbu':_0x1aa239(0x2f9),'LhrzC':'url','hkGzU':'Base\x20URL\x20of\x20the\x20running\x20app','uThtn':_0x1aa239(0x1b0),'gxxnL':'force','UQNVt':_0x1aa239(0x233),'zOyyw':'tokenOrSubcommand','kmluY':'Subcommand\x20or\x20API\x20token\x20(rngr_...)','AAIAB':_0x1aa239(0x23b),'MVtFA':'Install\x20Chromium\x20browser\x20binary','yyPid':'login','JsPEd':'profiles','HHjKC':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','uzDjm':_0x1aa239(0x2e2),'XEtBB':_0x1aa239(0x209),'uwIJT':_0x1aa239(0x278),'MXSFR':_0x1aa239(0x27a),'zcyhr':'Install\x20OS-level\x20dependencies\x20for\x20Chromium\x20(apt\x20packages\x20for\x20Debian/Ubuntu\x20containers)','aovGI':_0x1aa239(0x194),'AMTYD':'API\x20token'};return _0x2f6ef1[_0x1aa239(0x196)](_0x1aa239(0x188))[_0x1aa239(0x18a)](_0x4542b5[_0x1aa239(0x23a)],{'type':'string','description':_0x4542b5[_0x1aa239(0x2fc)]})[_0x1aa239(0x173)]('all',_0x1aa239(0x1b8),_0x3a5351=>{const _0x2019de=_0x1aa239;return _0x3a5351[_0x2019de(0x274)]('token',{'type':_0x4542b5[_0x2019de(0x2db)],'description':_0x4542b5[_0x2019de(0x2c2)]})['option'](_0x4542b5['PtdVK'],{'type':'boolean','description':_0x4542b5['fwdMU'],'default':![]})[_0x2019de(0x274)](_0x2019de(0x1b0),{'type':'boolean','description':_0x4542b5['WXYDL'],'default':![]})[_0x2019de(0x274)](_0x2019de(0x1ca),{'type':'boolean','description':_0x2019de(0x298),'default':![]})['option'](_0x4542b5['ruUEd'],{'type':_0x2019de(0x269),'choices':[_0x4542b5['HBVYN'],'project'],'description':'Install\x20scope\x20for\x20plugin\x20and\x20skills'})['option']('url',{'type':'string','description':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup'})['option'](_0x2019de(0x276),{'type':_0x2019de(0x19e),'description':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','default':![]})['option']('opencode',{'type':_0x2019de(0x19e),'description':_0x2019de(0x2cb),'default':![]})[_0x2019de(0x274)](_0x2019de(0x2e6),{'type':_0x4542b5[_0x2019de(0x291)],'description':_0x4542b5[_0x2019de(0x18b)],'default':![]})['option'](_0x2019de(0x23e),{'type':_0x2019de(0x19e),'description':_0x2019de(0x20f),'default':![]})['option']('mcp',{'type':_0x2019de(0x19e),'description':_0x2019de(0x244),'default':![]});},async _0x22bb80=>{const _0x211a1f=_0x1aa239;(_0x22bb80['mcp-bootstrap']||_0x22bb80['mcp'])&&await _0x4542b5[_0x211a1f(0x258)](withTelemetry,_0x4542b5['hYdxz'],()=>mcpBootstrap()),await _0x4542b5['rpnWa'](withTelemetry,_0x4542b5[_0x211a1f(0x1db)],_0xc2edd3=>start(_0x22bb80['token'],{'skipChromium':_0x22bb80[_0x211a1f(0x2f1)],'skipAuth':_0x22bb80['skip-auth'],'withDeps':_0x22bb80['with-deps'],'scope':_0x22bb80[_0x211a1f(0x2c6)],'url':_0x22bb80[_0x211a1f(0x239)],'force':_0x22bb80[_0x211a1f(0x276)],'opencode':_0x22bb80['opencode'],'allowInsecureLocalhost':_0x22bb80[_0x211a1f(0x2e6)]},_0xc2edd3));})['command'](_0x4542b5[_0x1aa239(0x271)],_0x4542b5[_0x1aa239(0x2f4)],_0x4321d9=>{const _0x3e153d=_0x1aa239;return _0x4321d9['option'](_0x4542b5[_0x3e153d(0x1da)],{'type':_0x4542b5[_0x3e153d(0x291)],'description':_0x3e153d(0x26d),'default':![]});},async _0xb338f3=>{const _0x37f8ac=_0x1aa239;await withTelemetry(_0x4542b5[_0x37f8ac(0x200)],()=>ensureChromium(_0xb338f3[_0x37f8ac(0x1ca)]));})['command'](_0x4542b5['yyPid'],_0x1aa239(0x1b5),_0x534de9=>{const _0x5d5d64=_0x1aa239;return _0x534de9[_0x5d5d64(0x274)](_0x5d5d64(0x194),{'type':_0x4542b5[_0x5d5d64(0x2db)],'description':'Ranger\x20API\x20token\x20(rngr_...)'})['option'](_0x4542b5[_0x5d5d64(0x286)],{'type':'boolean','description':_0x4542b5['bJaUV'],'default':![]});},async _0x2c28ca=>{const _0xbf464e=_0x1aa239,_0xccb41c={'Qzljo':function(_0x3ba0a8){const _0x39a6e5=_0x52fd;return _0x4542b5[_0x39a6e5(0x256)](_0x3ba0a8);},'oCkFm':function(_0x3fbb88){return _0x3fbb88();},'eTJkm':_0x4542b5[_0xbf464e(0x1b4)]};await _0x4542b5['rpnWa'](withTelemetry,_0xbf464e(0x1ea),async()=>{const _0x270912=_0xbf464e;if(_0x2c28ca[_0x270912(0x230)]){await _0xccb41c[_0x270912(0x190)](mcpBootstrap);const _0x36858b=await _0xccb41c['oCkFm'](refreshCliToken);if(!_0x36858b)throw new Error(_0xccb41c['eTJkm']);const _0xd090a8=await getCurrentUser(_0x36858b);if(!_0xd090a8['success'])throw new Error(_0x270912(0x249)+_0xd090a8['error']);console['log'](_0x270912(0x214)+_0xd090a8['user'][_0x270912(0x1f8)]);return;}await authenticate(_0x2c28ca['token']);});})['command'](_0x1aa239(0x2fe),'Install\x20Claude\x20Code\x20plugin\x20and\x20skills',_0x431572=>{const _0xa93e48=_0x1aa239;return _0x431572[_0xa93e48(0x274)](_0xa93e48(0x2c6),{'type':'string','choices':[_0x4542b5[_0xa93e48(0x1a3)],_0x4542b5['rFwBe']],'description':_0x4542b5['RNxHI']})['option'](_0x4542b5[_0xa93e48(0x252)],{'type':_0x4542b5['FXGNk'],'description':_0x4542b5[_0xa93e48(0x300)],'default':![]});},async _0x57b4fe=>{const _0x208e1c=_0x1aa239;await withTelemetry(_0x4542b5[_0x208e1c(0x206)],async()=>{const _0x224fe1=_0x208e1c,_0x523f62=_0x57b4fe[_0x224fe1(0x2c6)];if(_0x57b4fe[_0x224fe1(0x1b9)]){const _0x2a4478=await ensureOpencodePluginConfig(_0x523f62);_0x2a4478&&await installSkill(_0x4542b5['jGGel'],{'level':_0x2a4478['scope'],'cliVersion':getCurrentVersion(),'platform':_0x4542b5['cqYHm']});}else await _0x4542b5['wiltw'](ensureClaudePlugin,_0x523f62),await ensureClaudeSkills(_0x523f62);});})[_0x1aa239(0x173)](_0x4542b5['JsPEd'],_0x1aa239(0x179),_0x22e1dd=>{const _0x3ff60a=_0x1aa239;return _0x22e1dd['option'](_0x4542b5['ruUEd'],{'type':_0x3ff60a(0x269),'choices':[_0x3ff60a(0x1b7),_0x3ff60a(0x299)],'description':_0x4542b5[_0x3ff60a(0x26a)]})[_0x3ff60a(0x274)](_0x4542b5['LhrzC'],{'type':_0x4542b5[_0x3ff60a(0x2db)],'description':_0x4542b5['hkGzU']})[_0x3ff60a(0x274)](_0x4542b5[_0x3ff60a(0x24a)],{'type':'boolean','description':'Skip\x20browser\x20authentication','default':![]})['option'](_0x4542b5['gxxnL'],{'type':'boolean','description':_0x3ff60a(0x2e2),'default':![]})[_0x3ff60a(0x274)](_0x3ff60a(0x2e6),{'type':_0x3ff60a(0x19e),'description':_0x4542b5['cXBji'],'default':![]});},async _0x494596=>{const _0x18bee1=_0x1aa239;await withTelemetry(_0x4542b5[_0x18bee1(0x2b0)],_0x40fe9c=>ensureLocalEnv({'url':_0x494596['url'],'force':_0x494596[_0x18bee1(0x276)],'allowInsecureLocalhost':_0x494596[_0x18bee1(0x2e6)],'scope':_0x494596['scope']==='user'?'user':undefined},_0x40fe9c));})[_0x1aa239(0x274)](_0x4542b5['PtdVK'],{'type':'boolean','description':_0x4542b5['fwdMU'],'default':![]})[_0x1aa239(0x274)](_0x4542b5[_0x1aa239(0x1df)],{'type':_0x4542b5['ziDSg'],'choices':['user',_0x4542b5['rFwBe']],'description':_0x4542b5[_0x1aa239(0x27d)]})['option']('url',{'type':_0x4542b5['ziDSg'],'description':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)'})[_0x1aa239(0x274)](_0x4542b5['gxxnL'],{'type':_0x4542b5['FXGNk'],'description':_0x4542b5['uzDjm'],'default':![]})[_0x1aa239(0x274)](_0x4542b5['cqYHm'],{'type':_0x4542b5['FXGNk'],'description':'Install\x20for\x20OpenCode\x20instead\x20of\x20Claude\x20Code','default':![]})[_0x1aa239(0x274)]('allow-insecure-localhost',{'type':_0x4542b5[_0x1aa239(0x291)],'description':_0x4542b5['XEtBB'],'default':![]})[_0x1aa239(0x274)](_0x4542b5[_0x1aa239(0x27f)],{'type':_0x1aa239(0x19e),'description':_0x4542b5['uwIJT'],'default':![]})[_0x1aa239(0x274)](_0x4542b5[_0x1aa239(0x24a)],{'type':_0x4542b5[_0x1aa239(0x291)],'description':_0x4542b5['MXSFR'],'default':![]})['option']('with-deps',{'type':_0x4542b5['FXGNk'],'description':_0x4542b5[_0x1aa239(0x282)],'default':![]})['option'](_0x4542b5[_0x1aa239(0x1b1)],{'type':_0x4542b5[_0x1aa239(0x2db)],'hidden':!![],'description':_0x4542b5['AMTYD']});},async _0x141712=>{const _0x2fe5ba=_0x1b6b0a,_0xee52ed={'YloKL':function(_0x291bf9,_0x25b6f9,_0x38a2dd){return _0x291bf9(_0x25b6f9,_0x38a2dd);},'RsXkd':_0x2fe5ba(0x296)},_0x5bb198=_0x141712['tokenOrSubcommand'],_0x43c5e6=_0x141712[_0x2fe5ba(0x194)]??_0x5bb198;_0x141712[_0x2fe5ba(0x23e)]&&await _0xee52ed['YloKL'](withTelemetry,'mcp-bootstrap',()=>mcpBootstrap()),await _0xee52ed['YloKL'](withTelemetry,_0xee52ed['RsXkd'],_0x540182=>start(_0x43c5e6,{'skipChromium':_0x141712['skip-chromium'],'skipAuth':_0x141712[_0x2fe5ba(0x1b0)],'withDeps':_0x141712[_0x2fe5ba(0x1ca)],'scope':_0x141712['scope'],'url':_0x141712['url'],'force':_0x141712[_0x2fe5ba(0x276)],'opencode':_0x141712['opencode'],'allowInsecureLocalhost':_0x141712[_0x2fe5ba(0x2e6)]},_0x540182));})['command'](_0x1b6b0a(0x26b),_0x1b6b0a(0x2ac),_0x148e6b=>{const _0x3747d4=_0x1b6b0a,_0x1e5746={'vnguJ':'string','NIdqY':_0x3747d4(0x1e6),'eIBue':_0x3747d4(0x1d7),'vrQOg':_0x3747d4(0x201),'rhigU':'skip-chromium','LHPqM':_0x3747d4(0x21e)};return _0x148e6b[_0x3747d4(0x18a)](_0x3747d4(0x194),{'type':_0x1e5746['vnguJ'],'description':'Ranger\x20API\x20token','demandOption':!![]})['option'](_0x1e5746[_0x3747d4(0x266)],{'type':_0x1e5746['vnguJ'],'description':_0x3747d4(0x285)})[_0x3747d4(0x274)](_0x1e5746[_0x3747d4(0x17d)],{'type':_0x1e5746[_0x3747d4(0x1d9)],'description':_0x1e5746[_0x3747d4(0x29c)]})[_0x3747d4(0x274)](_0x1e5746[_0x3747d4(0x191)],{'type':'boolean','description':_0x1e5746['LHPqM'],'default':![]});},async _0x39ef8d=>{const _0x1579c8=_0x1b6b0a,_0x2638e6={'MKokI':function(_0x3f7ea5,_0x1ca475,_0x815e81){return _0x3f7ea5(_0x1ca475,_0x815e81);}};await _0x2638e6[_0x1579c8(0x294)](withTelemetry,'setup-ci',_0x59098b=>setupCi(_0x39ef8d['token'],{'profile':_0x39ef8d['profile'],'baseUrl':_0x39ef8d[_0x1579c8(0x1d7)],'skipChromium':_0x39ef8d['skip-chromium']},_0x59098b));})[_0x1b6b0a(0x173)](_0x1b6b0a(0x2d6),_0x1b6b0a(0x20d),()=>{},async()=>{const _0x4d7c21={'qEmXP':function(_0x330c78,_0x2b4ea1,_0xb7d95d){return _0x330c78(_0x2b4ea1,_0xb7d95d);}};await _0x4d7c21['qEmXP'](withTelemetry,'login',()=>login());})[_0x1b6b0a(0x173)]('skillup','Install\x20Ranger\x20skills',_0x1d9df6=>{const _0x1b4d97=_0x1b6b0a,_0xf8407a={'EzMbp':_0x1b4d97(0x1b9),'LpLIT':'boolean','dcIwW':_0x1b4d97(0x1d4),'SqSLg':_0x1b4d97(0x1b7),'uVueK':_0x1b4d97(0x299),'IYZrS':'Install\x20scope\x20for\x20skills'};return _0x1d9df6[_0x1b4d97(0x274)](_0xf8407a['EzMbp'],{'type':_0xf8407a['LpLIT'],'description':_0xf8407a['dcIwW'],'default':![]})[_0x1b4d97(0x274)](_0x1b4d97(0x2c6),{'type':'string','choices':[_0xf8407a[_0x1b4d97(0x1bb)],_0xf8407a['uVueK']],'description':_0xf8407a['IYZrS']});},async _0x3ede0c=>{const _0xbcfc77=_0x1b6b0a,_0x2c1df6={'PeyYe':function(_0x52e431,_0x4b18c3){return _0x52e431(_0x4b18c3);},'XPXGB':function(_0xcf16eb,_0x44d667,_0x305c18){return _0xcf16eb(_0x44d667,_0x305c18);}},_0xcecc36=_0x2c1df6['PeyYe'](Boolean,_0x3ede0c[_0xbcfc77(0x1b9)]);await _0x2c1df6[_0xbcfc77(0x29b)](withTelemetry,_0xbcfc77(0x268),()=>skillup({'autoInstall':_0x3ede0c[_0xbcfc77(0x2c6)],'platform':_0xcecc36?'opencode':'claude'}));})['command'](_0x1b6b0a(0x187),_0x1b6b0a(0x1f6),()=>{},async()=>{const _0xf6562d=_0x1b6b0a,_0xd4d056={'PTbAJ':function(_0x1d2e8f,_0x5ec345,_0x1c9eec){return _0x1d2e8f(_0x5ec345,_0x1c9eec);}};await _0xd4d056['PTbAJ'](withTelemetry,_0xf6562d(0x187),()=>clean());})[_0x1b6b0a(0x173)](_0x1b6b0a(0x1e6),_0x1b6b0a(0x218),_0x38d8af=>{const _0xec11cc=_0x1b6b0a,_0x4c5093={'mSYWO':_0xec11cc(0x1a1),'TMZrG':'skip-auth','wsEGU':'url','FuUKN':'boolean','mvCKr':_0xec11cc(0x2e6),'zerwU':_0xec11cc(0x1a0),'rNqsl':'setup-header','iVCne':'string','aLkfg':'scope','MOjdA':_0xec11cc(0x299),'grgih':function(_0x5a4f7b,_0x4803a5,_0x31f2f4,_0x3d7005){return _0x5a4f7b(_0x4803a5,_0x31f2f4,_0x3d7005);},'JYnrJ':_0xec11cc(0x1e6),'GOuZG':_0xec11cc(0x27e),'qCWvy':function(_0x2a15da,_0x4e0de5,_0x48c7d8){return _0x2a15da(_0x4e0de5,_0x48c7d8);},'IPNIP':'profile\x20encrypt-auth','Zmbvp':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','KMxFx':function(_0x401f6e,_0x18ccb0,_0x3da985){return _0x401f6e(_0x18ccb0,_0x3da985);},'qhOpG':_0xec11cc(0x2c3),'ljzux':'profile\x20config\x20list','GqJXy':'profile\x20config\x20unset','YjmbK':'key','NRdeE':_0xec11cc(0x2a8),'wxPPf':_0xec11cc(0x2b8),'RZzNx':'Remove\x20a\x20config\x20value','yyIlR':_0xec11cc(0x18e),'Mmdct':_0xec11cc(0x1ec),'CpWeA':'Switch\x20to\x20using\x20a\x20specific\x20profile','cHCtG':_0xec11cc(0x16c),'MAzih':_0xec11cc(0x21f),'eACsw':'config','RDUUd':_0xec11cc(0x227),'QWNKm':_0xec11cc(0x2e7)};return _0x38d8af['usage'](PROFILE_HELP)[_0xec11cc(0x173)](_0xec11cc(0x2f6),'Add\x20profile\x20configuration',_0x401eea=>{const _0x7456b8=_0xec11cc;return _0x401eea[_0x7456b8(0x18a)](_0x4c5093['mSYWO'],{'type':'string','description':'Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','demandOption':!![]})[_0x7456b8(0x274)]('ci',{'type':_0x7456b8(0x19e),'description':'Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','default':![]})['option'](_0x4c5093[_0x7456b8(0x257)],{'type':_0x7456b8(0x19e),'description':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','default':![]})[_0x7456b8(0x274)](_0x4c5093[_0x7456b8(0x29d)],{'type':_0x7456b8(0x269),'description':_0x7456b8(0x171)})['option']('force',{'type':_0x4c5093['FuUKN'],'description':_0x7456b8(0x2e2),'default':![]})['option']('cdp-endpoint',{'type':_0x7456b8(0x269),'description':'CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.'})['option'](_0x4c5093['mvCKr'],{'type':'boolean','description':_0x7456b8(0x209),'default':![]})[_0x7456b8(0x274)](_0x7456b8(0x28d),{'type':'boolean','description':_0x4c5093[_0x7456b8(0x24f)],'default':![]})['option'](_0x4c5093[_0x7456b8(0x29e)],{'type':_0x4c5093[_0x7456b8(0x2d4)],'array':!![],'description':_0x7456b8(0x182)})[_0x7456b8(0x274)](_0x4c5093[_0x7456b8(0x264)],{'type':'string','choices':['user',_0x4c5093[_0x7456b8(0x181)]],'description':'Where\x20to\x20store\x20the\x20profile:\x20user\x20(~/.ranger/)\x20or\x20project\x20(.ranger/)'});},async _0x472b47=>{const _0x38c87b=_0xec11cc;await _0x4c5093['grgih'](withTelemetry,'profile\x20add',_0x17e7fa=>addEnv(_0x472b47[_0x38c87b(0x1a1)],{'ci':_0x472b47['ci'],'skipAuth':_0x472b47['skip-auth'],'url':_0x472b47['url'],'force':_0x472b47[_0x38c87b(0x276)],'cdpEndpoint':_0x472b47[_0x38c87b(0x17a)],'allowInsecureLocalhost':_0x472b47['allow-insecure-localhost'],'safeMode':_0x472b47[_0x38c87b(0x28d)],'setupHeader':_0x472b47[_0x38c87b(0x1a2)],'scope':_0x472b47['scope']},_0x17e7fa),{'isElectron':Boolean(_0x472b47['cdp-endpoint'])});})['command'](_0x4c5093['Mmdct'],_0x4c5093['CpWeA'],_0x169825=>{const _0x363b12=_0xec11cc;return _0x169825[_0x363b12(0x18a)](_0x4c5093[_0x363b12(0x246)],{'type':'string','description':'Name\x20of\x20the\x20profile','demandOption':!![]});},async _0x2e0845=>{const _0x6c2ee4=_0xec11cc;await withTelemetry(_0x6c2ee4(0x254),()=>useEnv(_0x2e0845['profile-name']));})[_0xec11cc(0x173)]('encrypt-auth\x20<profile>',_0x4c5093[_0xec11cc(0x219)],_0x554587=>{const _0x3463d8=_0xec11cc;return _0x554587[_0x3463d8(0x18a)](_0x4c5093['JYnrJ'],{'type':_0x4c5093['iVCne'],'description':_0x4c5093[_0x3463d8(0x1e9)],'demandOption':!![]});},async _0x266e6f=>{const _0x4096b8=_0xec11cc;await _0x4c5093[_0x4096b8(0x1cc)](withTelemetry,_0x4c5093[_0x4096b8(0x23c)],()=>authEncrypt(_0x266e6f[_0x4096b8(0x1e6)]));})[_0xec11cc(0x173)]('ls',_0x4c5093[_0xec11cc(0x1c3)],()=>{},async()=>{const _0x184c6e=_0xec11cc;await _0x4c5093[_0x184c6e(0x1cc)](withTelemetry,_0x184c6e(0x2c0),()=>envList());})[_0xec11cc(0x173)]('update\x20<profile-name>',_0xec11cc(0x1c8),_0x1b9b4b=>{const _0x368909=_0xec11cc;return _0x1b9b4b[_0x368909(0x18a)](_0x4c5093[_0x368909(0x246)],{'type':_0x368909(0x269),'description':'Name\x20of\x20the\x20profile\x20to\x20update','demandOption':!![]})['option'](_0x4c5093['mvCKr'],{'type':_0x368909(0x19e),'description':_0x4c5093[_0x368909(0x2cd)]});},async _0x43d96b=>{const _0x4aa4e6=_0xec11cc;await _0x4c5093[_0x4aa4e6(0x22a)](withTelemetry,_0x4aa4e6(0x279),_0x2c0712=>updateEnv(_0x43d96b['profile-name'],_0x2c0712,{'allowInsecureLocalhost':_0x43d96b[_0x4aa4e6(0x2e6)]}));})[_0xec11cc(0x173)](_0x4c5093['eACsw'],_0x4c5093['RDUUd'],_0xabc6fc=>{const _0xefe7e=_0xec11cc,_0x5d6ceb={'KHAMG':'Profile\x20name','ajmDY':_0x4c5093['YjmbK'],'hvSve':'string','fcSJL':'Config\x20value','EmHzN':'profile\x20config\x20set','EUioV':_0x4c5093['JYnrJ']};return _0xabc6fc['usage'](PROFILE_CONFIG_HELP)[_0xefe7e(0x173)](_0x4c5093['NRdeE'],'Set\x20a\x20config\x20value',_0x293571=>{const _0x32666f=_0xefe7e;return _0x293571['positional'](_0x32666f(0x1e6),{'type':'string','description':_0x5d6ceb[_0x32666f(0x180)],'demandOption':!![]})[_0x32666f(0x18a)](_0x5d6ceb[_0x32666f(0x174)],{'type':_0x5d6ceb['hvSve'],'description':_0x32666f(0x2a1),'demandOption':!![]})['positional'](_0x32666f(0x2af),{'type':_0x5d6ceb['hvSve'],'description':_0x5d6ceb['fcSJL'],'demandOption':!![]});},async _0x1b5113=>{const _0x47289a=_0xefe7e;await withTelemetry(_0x5d6ceb[_0x47289a(0x1dd)],()=>configSet(_0x1b5113['profile'],_0x1b5113['key'],_0x1b5113['value']));})['command'](_0xefe7e(0x1ff),'Get\x20a\x20config\x20value',_0x3468b5=>{const _0x49fc5e=_0xefe7e;return _0x3468b5[_0x49fc5e(0x18a)](_0x49fc5e(0x1e6),{'type':'string','description':_0x4c5093['GOuZG'],'demandOption':!![]})[_0x49fc5e(0x18a)]('key',{'type':_0x49fc5e(0x269),'description':_0x4c5093[_0x49fc5e(0x1cd)],'demandOption':!![]});},async _0x5d1ff4=>{const _0x1a7aad=_0xefe7e;await _0x4c5093[_0x1a7aad(0x22a)](withTelemetry,_0x1a7aad(0x1f3),()=>configGet(_0x5d1ff4[_0x1a7aad(0x1e6)],_0x5d1ff4[_0x1a7aad(0x259)]));})['command'](_0xefe7e(0x1c5),'List\x20all\x20config\x20for\x20a\x20profile',_0x9b43e2=>{const _0x58a380=_0xefe7e;return _0x9b43e2[_0x58a380(0x18a)](_0x58a380(0x1e6),{'type':_0x4c5093[_0x58a380(0x2d4)],'description':_0x4c5093[_0x58a380(0x1e9)],'demandOption':!![]});},async _0x2586f7=>{await withTelemetry(_0x4c5093['ljzux'],()=>configList(_0x2586f7['profile']));})[_0xefe7e(0x173)](_0x4c5093[_0xefe7e(0x207)],_0x4c5093[_0xefe7e(0x2ed)],_0x35b03f=>{const _0x12ec13=_0xefe7e;return _0x35b03f['positional'](_0x5d6ceb[_0x12ec13(0x221)],{'type':_0x5d6ceb[_0x12ec13(0x1fb)],'description':'Profile\x20name','demandOption':!![]})['positional']('key',{'type':_0x5d6ceb[_0x12ec13(0x1fb)],'description':'Config\x20key\x20to\x20remove','demandOption':!![]});},async _0x3560fd=>{const _0x5d649c=_0xefe7e;await _0x4c5093[_0x5d649c(0x1cc)](withTelemetry,_0x4c5093[_0x5d649c(0x1a8)],()=>configUnset(_0x3560fd['profile'],_0x3560fd['key']));})['demandCommand'](0x1,_0x4c5093[_0xefe7e(0x2d5)]);})['demandCommand'](0x1,_0x4c5093[_0xec11cc(0x1a6)]);})['command']('status','Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)',()=>{},async()=>{const _0x19e275=_0x1b6b0a,_0x190afa={'BxvpL':_0x19e275(0x16d)};await withTelemetry(_0x190afa[_0x19e275(0x29a)],()=>status());})[_0x1b6b0a(0x173)](_0x1b6b0a(0x253),_0x1b6b0a(0x281),()=>{},async()=>{const _0x3d0b94=_0x1b6b0a,_0xa04e44={'PEQLY':function(_0x42549f,_0x505d6e,_0x465dc3){return _0x42549f(_0x505d6e,_0x465dc3);}};await _0xa04e44[_0x3d0b94(0x2c8)](withTelemetry,'update',()=>update());})[_0x1b6b0a(0x173)](_0x1b6b0a(0x251),_0x1b6b0a(0x2fb),()=>{},async()=>{const _0x5ca949=_0x1b6b0a,_0x222f9d={'suLuD':_0x5ca949(0x251)};await withTelemetry(_0x222f9d[_0x5ca949(0x25a)],async()=>{const _0x43f071=await getToken();if(!_0x43f071)throw new Error('No\x20token\x20found.\x20Run\x20`ranger\x20login`\x20to\x20authenticate.');console['log'](_0x43f071);});})['command']('go',_0x1b6b0a(0x265),_0x47145e=>{const _0x2d5a96=_0x1b6b0a,_0x599f3f={'wxlHW':_0x2d5a96(0x202),'YkLTB':_0x2d5a96(0x2ff),'ViaKT':'string','FfiRw':_0x2d5a96(0x1f2),'ZvIWD':_0x2d5a96(0x2d9),'ohSFb':'model','lNJro':_0x2d5a96(0x2a3),'Ieiej':_0x2d5a96(0x1ba),'SsJeu':_0x2d5a96(0x255),'qlesb':_0x2d5a96(0x19e),'WkeVv':'env','EoADq':_0x2d5a96(0x2fd),'HQRDO':_0x2d5a96(0x1cf)};return _0x47145e['option'](_0x2d5a96(0x1a4),{'type':'string','description':_0x599f3f['wxlHW']})['option']('profile',{'type':_0x2d5a96(0x269),'description':_0x599f3f[_0x2d5a96(0x25d)]})['option'](_0x2d5a96(0x1a7),{'type':_0x599f3f['ViaKT'],'description':'Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)'})[_0x2d5a96(0x274)](_0x599f3f['FfiRw'],{'type':'number','description':'Scenario\x20index\x20(1-based)'})[_0x2d5a96(0x274)]('start-path',{'type':_0x2d5a96(0x269),'description':_0x599f3f['ZvIWD']})['option'](_0x599f3f[_0x2d5a96(0x185)],{'type':_0x599f3f[_0x2d5a96(0x2d8)],'description':_0x599f3f[_0x2d5a96(0x225)]})['option']('headed',{'type':_0x2d5a96(0x19e),'description':'Force\x20headed\x20browser\x20for\x20this\x20run\x20only\x20(does\x20not\x20change\x20profile\x20config)','default':![]})[_0x2d5a96(0x274)]('debug-outcome',{'type':_0x599f3f['ViaKT'],'hidden':!![],'choices':['verified',_0x2d5a96(0x2fa),_0x2d5a96(0x1de),_0x599f3f[_0x2d5a96(0x304)],_0x2d5a96(0x25c)]})['option'](_0x599f3f[_0x2d5a96(0x248)],{'type':_0x599f3f['qlesb'],'hidden':!![]})['option'](_0x599f3f[_0x2d5a96(0x19a)],{'type':_0x2d5a96(0x269),'hidden':!![]})[_0x2d5a96(0x274)](_0x599f3f['EoADq'],{'type':'string','hidden':!![]})['option'](_0x599f3f[_0x2d5a96(0x2b2)],{'type':_0x2d5a96(0x301),'hidden':!![]});},async _0x32e100=>{await runGoCommand(_0x32e100);})['command']('auth',![],_0x498dcb=>{const _0x1bcb4e=_0x1b6b0a,_0x4bf1f9={'yLsSf':function(_0x366e23,_0x42a2f0,_0x370a2f){return _0x366e23(_0x42a2f0,_0x370a2f);},'UtufV':_0x1bcb4e(0x26c),'xHiRx':function(_0x4f8d9c,_0x106442){return _0x4f8d9c(_0x106442);},'ftPrb':'encrypt\x20<profile>'};return _0x498dcb[_0x1bcb4e(0x173)](_0x4bf1f9['ftPrb'],![],_0x56393a=>{const _0x5237af=_0x1bcb4e;return _0x56393a[_0x5237af(0x18a)](_0x5237af(0x1e6),{'type':'string','description':_0x5237af(0x27e),'demandOption':!![]});},async _0x275ab4=>{const _0x1ea546=_0x1bcb4e;_0x4bf1f9[_0x1ea546(0x1e4)](warnRenamed,_0x4bf1f9['UtufV'],'ranger\x20profile\x20encrypt-auth'),await _0x4bf1f9['xHiRx'](authEncrypt,_0x275ab4['profile']);})[_0x1bcb4e(0x2dd)](0x1,_0x1bcb4e(0x24c));},()=>{})[_0x1b6b0a(0x173)](_0x1b6b0a(0x195),![],_0xd60c4=>{const _0x3287ec=_0x1b6b0a,_0x5eb315={'pXJJm':'token','afuNu':'string','KIzgp':'Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','LstnK':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','vKiml':_0x3287ec(0x19e),'XvKXj':'Skip\x20authentication','DiDHe':_0x3287ec(0x1ca)};return _0xd60c4['positional'](_0x5eb315['pXJJm'],{'type':_0x5eb315['afuNu'],'description':_0x5eb315['KIzgp']})[_0x3287ec(0x274)]('skip-chromium',{'type':_0x3287ec(0x19e),'description':_0x5eb315[_0x3287ec(0x2da)],'default':![]})[_0x3287ec(0x274)](_0x3287ec(0x2c6),{'type':_0x3287ec(0x269),'choices':['user','project'],'description':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)'})['option'](_0x3287ec(0x239),{'type':'string','description':_0x3287ec(0x17b)})[_0x3287ec(0x274)](_0x3287ec(0x276),{'type':_0x5eb315['vKiml'],'description':_0x3287ec(0x2e2),'default':![]})['option']('skip-auth',{'type':_0x5eb315['vKiml'],'description':_0x5eb315['XvKXj'],'default':![]})[_0x3287ec(0x274)](_0x5eb315[_0x3287ec(0x183)],{'type':_0x5eb315[_0x3287ec(0x1d3)],'description':'Install\x20OS-level\x20dependencies\x20for\x20Chromium','default':![]});},async _0x4da75a=>{const _0x536a67=_0x1b6b0a,_0x48f069={'QjSjJ':function(_0x2980af,_0x3b9000,_0x334a9c){return _0x2980af(_0x3b9000,_0x334a9c);},'lvVks':_0x536a67(0x296)};_0x48f069['QjSjJ'](warnRenamed,'ranger\x20start','ranger\x20setup'),await withTelemetry(_0x48f069[_0x536a67(0x1a9)],_0x9d5f3e=>start(_0x4da75a[_0x536a67(0x194)],{'skipChromium':_0x4da75a[_0x536a67(0x2f1)],'skipAuth':_0x4da75a['skip-auth'],'withDeps':_0x4da75a[_0x536a67(0x1ca)],'scope':_0x4da75a[_0x536a67(0x2c6)],'url':_0x4da75a['url'],'force':_0x4da75a[_0x536a67(0x276)]},_0x9d5f3e));})[_0x1b6b0a(0x173)](_0x1b6b0a(0x2ab),![],_0x5942b2=>{const _0x2aa916=_0x1b6b0a,_0x29682c={'PvfdB':'env','WQjCi':'string','bMliB':_0x2aa916(0x1f7),'KLfvJ':_0x2aa916(0x1cf),'tEXgT':_0x2aa916(0x26f),'WFszP':_0x2aa916(0x301),'aloMU':_0x2aa916(0x2d9),'eZycM':'model','DSicp':_0x2aa916(0x189),'TQrSj':_0x2aa916(0x19e),'ayxVR':'debug-outcome','SQIHr':_0x2aa916(0x2bd),'kqzTC':_0x2aa916(0x1de),'GEKgG':'failed'};return _0x5942b2[_0x2aa916(0x274)](_0x29682c[_0x2aa916(0x2b6)],{'type':'string','description':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)'})['option']('task',{'type':_0x29682c['WQjCi'],'description':_0x29682c[_0x2aa916(0x1b3)]})['option'](_0x29682c['KLfvJ'],{'type':_0x2aa916(0x301),'description':_0x29682c['tEXgT']})['option'](_0x2aa916(0x1e6),{'type':'string','hidden':!![]})[_0x2aa916(0x274)](_0x2aa916(0x1a7),{'type':_0x29682c['WQjCi'],'hidden':!![]})[_0x2aa916(0x274)](_0x2aa916(0x1f2),{'type':_0x29682c['WFszP'],'hidden':!![]})['option']('start-path',{'type':_0x29682c[_0x2aa916(0x213)],'description':_0x29682c['aloMU']})['option'](_0x29682c[_0x2aa916(0x1c9)],{'type':_0x29682c['WQjCi'],'hidden':!![]})['option'](_0x29682c[_0x2aa916(0x2d7)],{'type':_0x29682c['TQrSj'],'hidden':!![],'default':![]})['option'](_0x29682c[_0x2aa916(0x28a)],{'type':_0x29682c['WQjCi'],'hidden':!![],'choices':[_0x29682c[_0x2aa916(0x260)],'partial',_0x29682c['kqzTC'],_0x29682c[_0x2aa916(0x2ef)],_0x2aa916(0x25c)]});},async _0xe39934=>{await runGoCommand(_0xe39934,!![]);})[_0x1b6b0a(0x173)](_0x1b6b0a(0x2d0),![],_0x214926=>{const _0xd884fc=_0x1b6b0a,_0x53753c={'pdvmi':'string','LbeOP':_0xd884fc(0x2c1),'QZxcs':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)'};return _0x214926['positional'](_0xd884fc(0x1c7),{'type':_0x53753c['pdvmi'],'description':_0x53753c['LbeOP'],'demandOption':!![]})[_0xd884fc(0x274)]('ci',{'type':'boolean','description':'Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','default':![]})[_0xd884fc(0x274)](_0xd884fc(0x1b0),{'type':'boolean','description':_0x53753c[_0xd884fc(0x306)],'default':![]});},async _0xe4c2ab=>{const _0x2367d8=_0x1b6b0a,_0x146803={'eTuSl':function(_0x2f21e4,_0x10d612,_0x4febe7){return _0x2f21e4(_0x10d612,_0x4febe7);},'ZvVIJ':_0x2367d8(0x2dc)};_0x146803['eTuSl'](warnRenamed,_0x2367d8(0x28e),'ranger\x20profile\x20add'),await withTelemetry(_0x146803['ZvVIJ'],_0x178060=>addEnv(_0xe4c2ab[_0x2367d8(0x1c7)],{'ci':_0xe4c2ab['ci'],'skipAuth':_0xe4c2ab[_0x2367d8(0x1b0)]},_0x178060));})['command'](_0x1b6b0a(0x238),![],_0x4baa7a=>{const _0xe114f9=_0x1b6b0a,_0x1a0de1={'hPmgC':'env-name','ExFWI':_0xe114f9(0x269),'TgJMH':_0xe114f9(0x211)};return _0x4baa7a['positional'](_0x1a0de1[_0xe114f9(0x20a)],{'type':_0x1a0de1[_0xe114f9(0x205)],'description':_0x1a0de1['TgJMH'],'demandOption':!![]});},async _0x56d031=>{const _0x2fc8fd=_0x1b6b0a,_0x47661b={'qfupj':function(_0x1848f7,_0x51825e,_0x2412bc){return _0x1848f7(_0x51825e,_0x2412bc);},'phBxc':_0x2fc8fd(0x19b)};_0x47661b['qfupj'](warnRenamed,_0x2fc8fd(0x1e1),_0x47661b['phBxc']),await withTelemetry(_0x2fc8fd(0x175),()=>useEnv(_0x56d031[_0x2fc8fd(0x1c7)]));})['command']('config',![],_0x45c478=>{const _0x455609=_0x1b6b0a,_0x289639={'hMrKQ':'Environment\x20name','ThQGy':_0x455609(0x259),'edMgd':_0x455609(0x269),'auThI':'ranger\x20config\x20set','uIqon':_0x455609(0x2b1),'rmhNL':function(_0x5666cd,_0x18b91e,_0x5a1d8f){return _0x5666cd(_0x18b91e,_0x5a1d8f);},'SydEm':_0x455609(0x1fd),'BNcKa':'env','TKEWE':_0x455609(0x2cf),'uEhxq':'ranger\x20profile\x20config\x20get','okLVq':_0x455609(0x208),'yRKpj':'config\x20list','uvlcB':'ranger\x20config\x20unset','PhbCZ':_0x455609(0x19c),'NYYck':function(_0x14a71b,_0x5ee12f,_0x2c1280){return _0x14a71b(_0x5ee12f,_0x2c1280);},'uzEQT':'set\x20<env>\x20<key>\x20<value>','cKTHt':'get\x20<env>\x20<key>','oQfSh':_0x455609(0x240),'gWrpn':_0x455609(0x2c7),'zZWpd':'You\x20must\x20specify\x20a\x20config\x20subcommand'};return _0x45c478[_0x455609(0x173)](_0x289639['uzEQT'],![],_0x75d924=>{const _0x3c2c35=_0x455609;return _0x75d924[_0x3c2c35(0x18a)]('env',{'type':'string','description':_0x289639[_0x3c2c35(0x2f3)],'demandOption':!![]})['positional'](_0x289639[_0x3c2c35(0x1fc)],{'type':'string','description':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','demandOption':!![]})[_0x3c2c35(0x18a)]('value',{'type':_0x289639[_0x3c2c35(0x20b)],'description':'Config\x20value','demandOption':!![]});},async _0x39771f=>{const _0x14ea15=_0x455609;warnRenamed(_0x289639['auThI'],_0x289639['uIqon']),await _0x289639[_0x14ea15(0x21d)](withTelemetry,_0x289639[_0x14ea15(0x21a)],()=>configSet(_0x39771f[_0x14ea15(0x2e5)],_0x39771f['key'],_0x39771f['value']));})[_0x455609(0x173)](_0x289639['cKTHt'],![],_0x4ea527=>{const _0xf6bce3=_0x455609;return _0x4ea527[_0xf6bce3(0x18a)](_0x289639['BNcKa'],{'type':'string','description':_0x289639[_0xf6bce3(0x2f3)],'demandOption':!![]})[_0xf6bce3(0x18a)]('key',{'type':_0x289639['edMgd'],'description':'Config\x20key','demandOption':!![]});},async _0x535b34=>{const _0x350531=_0x455609;warnRenamed(_0x289639[_0x350531(0x18d)],_0x289639['uEhxq']),await _0x289639['rmhNL'](withTelemetry,_0x289639[_0x350531(0x28b)],()=>configGet(_0x535b34['env'],_0x535b34[_0x350531(0x259)]));})[_0x455609(0x173)](_0x289639['oQfSh'],![],_0x2310b6=>{const _0x3a7229=_0x455609;return _0x2310b6[_0x3a7229(0x18a)]('env',{'type':_0x289639['edMgd'],'description':'Environment\x20name','demandOption':!![]});},async _0x4ef288=>{const _0x52d696=_0x455609;warnRenamed(_0x52d696(0x275),'ranger\x20profile\x20config\x20list'),await _0x289639['rmhNL'](withTelemetry,_0x289639['yRKpj'],()=>configList(_0x4ef288['env']));})[_0x455609(0x173)](_0x289639['gWrpn'],![],_0x29f1a5=>{const _0x3cfa38=_0x455609;return _0x29f1a5['positional'](_0x289639[_0x3cfa38(0x24e)],{'type':'string','description':'Environment\x20name','demandOption':!![]})['positional']('key',{'type':_0x3cfa38(0x269),'description':_0x3cfa38(0x2ce),'demandOption':!![]});},async _0x41ba16=>{const _0x40defc=_0x455609;_0x289639[_0x40defc(0x21d)](warnRenamed,_0x289639['uvlcB'],_0x289639[_0x40defc(0x2f2)]),await _0x289639['NYYck'](withTelemetry,_0x40defc(0x1f4),()=>configUnset(_0x41ba16['env'],_0x41ba16['key']));})[_0x455609(0x2dd)](0x1,_0x289639['zZWpd']);})[_0x1b6b0a(0x173)](_0x1b6b0a(0x2e5),![],_0x32e7b0=>{const _0x2d9f61=_0x1b6b0a,_0x36da06={'xqflL':'ranger\x20env\x20ls','IOvxw':'env\x20list','mRWQF':_0x2d9f61(0x269),'qPuLj':function(_0x13ad52,_0x59716c,_0x238911){return _0x13ad52(_0x59716c,_0x238911);},'AUcaB':'ranger\x20profile\x20update','iBmru':function(_0x120d0c,_0x572473,_0xd1827b){return _0x120d0c(_0x572473,_0xd1827b);},'mQWcW':_0x2d9f61(0x2f8)};return _0x32e7b0[_0x2d9f61(0x173)]('ls',![],()=>{},async()=>{const _0x1ca7a3=_0x2d9f61;warnRenamed(_0x36da06[_0x1ca7a3(0x270)],_0x1ca7a3(0x2a0)),await withTelemetry(_0x36da06['IOvxw'],()=>envList());})['command'](_0x36da06[_0x2d9f61(0x2a7)],![],_0x258f18=>{const _0x30ea39=_0x2d9f61;return _0x258f18[_0x30ea39(0x18a)]('env-name',{'type':_0x36da06['mRWQF'],'description':'Name\x20of\x20the\x20environment\x20to\x20update','demandOption':!![]});},async _0x533676=>{const _0x35e244=_0x2d9f61;_0x36da06['qPuLj'](warnRenamed,_0x35e244(0x16f),_0x36da06[_0x35e244(0x1c0)]),await _0x36da06['iBmru'](withTelemetry,'env\x20update',_0x1c7105=>updateEnv(_0x533676[_0x35e244(0x1c7)],_0x1c7105));})[_0x2d9f61(0x2dd)](0x1,_0x2d9f61(0x25f));})['command']('feature',![],_0x134c49=>{const _0x331664=_0x1b6b0a,_0x44613d={'yPmLc':'string','VaEll':'Feature\x20review\x20name','dPSiK':'Feature\x20review\x20description','aBZnL':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','CkdPR':'array','Glwpb':function(_0x3ea19b,_0xc7f73a,_0x7f8448){return _0x3ea19b(_0xc7f73a,_0x7f8448);},'KHnWr':'ranger\x20create','lyTPC':_0x331664(0x305),'UQBZr':'feature\x20create','xYTsb':_0x331664(0x287),'mAmmE':'boolean','SzYtL':_0x331664(0x176),'iAfRN':_0x331664(0x178),'KyWui':'ranger\x20feature\x20list','ObSEE':function(_0x551273,_0x8143e,_0x271463){return _0x551273(_0x8143e,_0x271463);},'wbdaW':'Feature\x20review\x20ID','zDVNg':function(_0x263f87,_0x3a94ed,_0x4a312d){return _0x263f87(_0x3a94ed,_0x4a312d);},'UiPjk':_0x331664(0x224),'iPHyH':'ranger\x20show','YOwuL':_0x331664(0x2be),'fvDEH':_0x331664(0x1e3),'WIOwn':'feature\x20resume','aFhcy':'description','aOnrF':_0x331664(0x16e),'MUxgy':_0x331664(0x1cb),'dyFLB':_0x331664(0x21b),'NXRtB':'ranger\x20feature\x20delete','JBwDt':'Feature\x20review\x20ID\x20to\x20restore','MeoFu':'ranger\x20feature\x20restore','fZscN':function(_0x3ae9c3,_0x3b1646,_0x5d8ea4){return _0x3ae9c3(_0x3b1646,_0x5d8ea4);},'Xhjbj':'feature\x20restore','LKSyO':_0x331664(0x1ad),'CqbkM':_0x331664(0x19d),'bEPEg':'You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand'};return _0x134c49[_0x331664(0x173)]('create\x20<name>',![],_0x245933=>{const _0x152ef5=_0x331664;return _0x245933['positional']('name',{'type':_0x44613d['yPmLc'],'description':_0x44613d[_0x152ef5(0x1dc)],'demandOption':!![]})['option']('description',{'type':'string','alias':'d','description':_0x44613d['dPSiK']})['option'](_0x152ef5(0x2e4),{'type':_0x152ef5(0x2ba),'alias':'c','description':_0x44613d[_0x152ef5(0x292)]})[_0x152ef5(0x274)](_0x152ef5(0x1f2),{'type':_0x44613d[_0x152ef5(0x2c4)],'hidden':!![]});},async _0x4de3a9=>{const _0x352d2=_0x331664;_0x44613d[_0x352d2(0x22c)](warnRenamed,'ranger\x20feature\x20create',_0x44613d['KHnWr']),warnFlagRenamed(_0x44613d['KHnWr'],_0x44613d[_0x352d2(0x27c)],'--scenario');const _0x14a493=_0x4de3a9['scenario']||_0x4de3a9['checklist'];await _0x44613d[_0x352d2(0x22c)](withTelemetry,_0x44613d[_0x352d2(0x297)],()=>featureCreate(_0x4de3a9[_0x352d2(0x18c)],{'description':_0x4de3a9['description'],'scenarios':_0x14a493}));})[_0x331664(0x173)]('list',![],_0x37c1d5=>{const _0x5a9b54=_0x331664;return _0x37c1d5[_0x5a9b54(0x274)](_0x44613d[_0x5a9b54(0x2f7)],{'type':_0x44613d['mAmmE'],'description':'Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch'})[_0x5a9b54(0x274)](_0x44613d[_0x5a9b54(0x284)],{'type':'number','alias':'l','description':_0x5a9b54(0x2aa),'default':0xa})['option'](_0x5a9b54(0x1d8),{'type':'number','alias':'o','description':_0x5a9b54(0x283),'default':0x0})[_0x5a9b54(0x274)]('include-deleted',{'type':_0x5a9b54(0x19e),'alias':'d','description':_0x44613d[_0x5a9b54(0x1e2)],'default':![]});},async _0x328eba=>{const _0x36bdf1=_0x331664;warnRenamed(_0x44613d[_0x36bdf1(0x1f5)],'ranger\x20list'),await _0x44613d['ObSEE'](withTelemetry,_0x36bdf1(0x288),()=>featureList({'currentBranch':_0x328eba[_0x36bdf1(0x287)],'limit':_0x328eba[_0x36bdf1(0x176)],'offset':_0x328eba[_0x36bdf1(0x1d8)],'includeDeleted':_0x328eba[_0x36bdf1(0x172)]}));})['command']('show\x20[id]',![],_0x477128=>{return _0x477128['positional']('id',{'type':_0x44613d['yPmLc'],'description':_0x44613d['wbdaW']});},async _0x145cdc=>{const _0x2716f8=_0x331664;_0x44613d['zDVNg'](warnRenamed,_0x44613d[_0x2716f8(0x215)],_0x44613d[_0x2716f8(0x2a6)]),await _0x44613d['Glwpb'](withTelemetry,_0x44613d['YOwuL'],()=>featureShow(_0x145cdc['id']));})[_0x331664(0x173)](_0x44613d['LKSyO'],![],_0x198394=>{const _0x2ef307=_0x331664;return _0x198394[_0x2ef307(0x18a)]('id',{'type':'string','description':_0x2ef307(0x1a5)});},async _0x24b730=>{const _0x5de4eb=_0x331664;_0x44613d[_0x5de4eb(0x1bc)](warnRenamed,_0x44613d['fvDEH'],_0x5de4eb(0x2e0)),await withTelemetry(_0x44613d[_0x5de4eb(0x1fe)],()=>featureResume(_0x24b730['id']));})[_0x331664(0x173)]('add-checklist-item\x20<description>',![],_0x2037b5=>{const _0x19daf5=_0x331664;return _0x2037b5['positional'](_0x44613d[_0x19daf5(0x290)],{'type':_0x19daf5(0x269),'description':_0x44613d['aOnrF'],'demandOption':!![]})['option']('id',{'type':_0x44613d['yPmLc'],'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x5b555a=>{const _0xc2a56d=_0x331664;_0x44613d[_0xc2a56d(0x302)](warnRenamed,'ranger\x20feature\x20add-checklist-item',_0x44613d['MUxgy']),await withTelemetry('feature\x20add-checklist-item',()=>featureAddScenario(_0x5b555a[_0xc2a56d(0x1eb)],_0x5b555a['id']));})[_0x331664(0x173)](_0x331664(0x2bb),![],_0x353079=>{const _0x4fa038=_0x331664;return _0x353079['positional']('id',{'type':'string','description':_0x4fa038(0x29f)});},async _0x3ae5e6=>{const _0x295972=_0x331664;warnRenamed(_0x295972(0x2ca),_0x44613d['dyFLB']),await withTelemetry('feature\x20get-feedback',()=>featureGetReview(_0x3ae5e6['id']));})[_0x331664(0x173)]('delete\x20[id]',![],_0x3b39af=>{const _0x12d95a=_0x331664;return _0x3b39af[_0x12d95a(0x18a)]('id',{'type':_0x12d95a(0x269),'description':_0x44613d['wbdaW']});},async _0x1ece15=>{const _0x4ab1a3=_0x331664;warnRenamed(_0x44613d[_0x4ab1a3(0x2f0)],'ranger\x20delete'),await _0x44613d['ObSEE'](withTelemetry,_0x4ab1a3(0x1c1),()=>featureDelete(_0x1ece15['id']));})[_0x331664(0x173)](_0x44613d['CqbkM'],![],_0x3ec0f5=>{const _0x4e3c49=_0x331664;return _0x3ec0f5['positional']('id',{'type':_0x4e3c49(0x269),'description':_0x44613d[_0x4e3c49(0x1ce)],'demandOption':!![]});},async _0x3df10e=>{const _0x598cef=_0x331664;warnRenamed(_0x44613d['MeoFu'],_0x598cef(0x1f9)),await _0x44613d[_0x598cef(0x217)](withTelemetry,_0x44613d['Xhjbj'],()=>featureRestore(_0x3df10e['id']));})['demandCommand'](0x1,_0x44613d['bEPEg']);})['command'](_0x1b6b0a(0x241),![],_0xdbbdfe=>{const _0x4e13b9=_0x1b6b0a,_0x3c06e5={'yrboE':_0x4e13b9(0x2f5),'xGhEP':'hook:enable','KeNGV':function(_0x3d77fe,_0x5607dd,_0x199770){return _0x3d77fe(_0x5607dd,_0x199770);},'ySwoZ':'Enable\x20Ranger\x20hooks\x20for\x20this\x20session','MADBT':'disable','LbjHQ':_0x4e13b9(0x2a9),'nfPAN':'string','vsPVy':'Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)','pAVJP':_0x4e13b9(0x1e8)};return _0xdbbdfe['command']('enable',_0x3c06e5['ySwoZ'],_0x45537f=>{const _0x584a1e=_0x4e13b9;return _0x45537f['option'](_0x584a1e(0x1e8),{'type':'string','description':_0x3c06e5['yrboE']});},async _0x1eb354=>{const _0x59174a=_0x4e13b9;await withTelemetry(_0x3c06e5['xGhEP'],()=>hook(_0x59174a(0x2ad),_0x1eb354['session-id']));})[_0x4e13b9(0x173)](_0x3c06e5['MADBT'],_0x3c06e5['LbjHQ'],_0xc44fdf=>{const _0x49d436=_0x4e13b9;return _0xc44fdf[_0x49d436(0x274)]('session-id',{'type':'string','description':_0x3c06e5[_0x49d436(0x1ac)]});},async _0x5a1678=>{const _0x174bdf=_0x4e13b9;await _0x3c06e5['KeNGV'](withTelemetry,_0x174bdf(0x23f),()=>hook('disable',_0x5a1678[_0x174bdf(0x1e8)]));})['option'](_0x4e13b9(0x18c),{'type':_0x3c06e5[_0x4e13b9(0x18f)],'description':_0x3c06e5[_0x4e13b9(0x1c6)]})['option'](_0x3c06e5['pAVJP'],{'type':_0x3c06e5[_0x4e13b9(0x18f)],'description':_0x3c06e5[_0x4e13b9(0x1ac)]});},async _0x2f5e72=>{const _0xc1818f=_0x1b6b0a,_0x1d6af9={'qKPKc':function(_0x13e5be,_0x48e2a2,_0xcc8600){return _0x13e5be(_0x48e2a2,_0xcc8600);},'mztsI':_0xc1818f(0x1e8)};_0x2f5e72[_0xc1818f(0x18c)]&&await _0x1d6af9[_0xc1818f(0x2b4)](hook,_0x2f5e72[_0xc1818f(0x18c)],_0x2f5e72[_0x1d6af9['mztsI']]);})['demandCommand'](0x1,'You\x20must\x20specify\x20a\x20command')['strictCommands']()[_0x1b6b0a(0x1ef)](async(_0x27ecc2,_0x5cf765,_0x46182f)=>{const _0x3e84e9=_0x1b6b0a,_0x413ed3={'qlwlz':function(_0x15b79e,_0x418145){return _0x15b79e(_0x418145);},'fGCbw':function(_0x55cb39,_0x2629e5,_0x142bc7){return _0x55cb39(_0x2629e5,_0x142bc7);},'coynl':_0x3e84e9(0x21c)},_0x1370c4=_0x413ed3['qlwlz'](sanitizeArgs,process[_0x3e84e9(0x1c4)]['slice'](0x2)),_0x310e78=_0x413ed3['fGCbw'](getErrorType,_0x27ecc2,_0x5cf765);if(_0x27ecc2&&_0x27ecc2[_0x3e84e9(0x199)](_0x3e84e9(0x243))){const _0x472dd4=process[_0x3e84e9(0x1c4)][0x2];console[_0x3e84e9(0x2d2)](_0x3e84e9(0x1e0)+_0x472dd4),console[_0x3e84e9(0x2d2)](_0x413ed3['coynl']);}else{if(_0x27ecc2)console[_0x3e84e9(0x2d2)]('\x0a'+_0x27ecc2+'\x0a');else _0x5cf765&&console[_0x3e84e9(0x2d2)]('\x0aError:\x20'+_0x5cf765['message']+'\x0a');}await logDesirePath({'rawCommand':_0x1370c4,'errorMessage':_0x27ecc2||_0x5cf765?.['message'],'errorType':_0x310e78});const _0x846386=getCurrentCollector();_0x846386&&await _0x846386[_0x3e84e9(0x203)](_0x5cf765||new Error(_0x27ecc2||_0x3e84e9(0x1e5))),process['exit'](0x1);})[_0x1b6b0a(0x2e9)](_0x1b6b0a(0x261)+_0x1b6b0a(0x229)+'\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)')[_0x1b6b0a(0x212)]()['alias']('help','h')['parse']();
2
+ const _0x40e819=_0x5dfa;(function(_0x212c51,_0x23afd3){const _0x4abbec=_0x5dfa,_0x5acc66=_0x212c51();while(!![]){try{const _0x11e9a7=-parseInt(_0x4abbec(0x1db))/0x1*(parseInt(_0x4abbec(0x190))/0x2)+parseInt(_0x4abbec(0x1de))/0x3+-parseInt(_0x4abbec(0x242))/0x4+-parseInt(_0x4abbec(0x206))/0x5*(parseInt(_0x4abbec(0x202))/0x6)+-parseInt(_0x4abbec(0x1ea))/0x7+parseInt(_0x4abbec(0x18d))/0x8*(-parseInt(_0x4abbec(0x2ea))/0x9)+parseInt(_0x4abbec(0x23f))/0xa*(parseInt(_0x4abbec(0x310))/0xb);if(_0x11e9a7===_0x23afd3)break;else _0x5acc66['push'](_0x5acc66['shift']());}catch(_0x3ab6f4){_0x5acc66['push'](_0x5acc66['shift']());}}}(_0x38c9,0x345f1));import _0x5727c0 from'dotenv';import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x94efb5=_0x5dfa,_0x24d666={'FOdRv':function(_0x11a867,_0x20c2dd){return _0x11a867(_0x20c2dd);},'HCOiH':function(_0x437674,_0x38fe3c){return _0x437674!==_0x38fe3c;},'KwtNm':function(_0x5d735a,_0x34342e,_0x54a5e0){return _0x5d735a(_0x34342e,_0x54a5e0);},'Uquid':'.ranger','duQWb':'.env'};let _0x550b7a=process['cwd']();const _0x4ebe13=_0x24d666[_0x94efb5(0x238)](parse,_0x550b7a)['root'];while(_0x24d666[_0x94efb5(0x1ab)](_0x550b7a,_0x4ebe13)){if(_0x24d666[_0x94efb5(0x238)](existsSync,_0x24d666['KwtNm'](join,_0x550b7a,_0x24d666[_0x94efb5(0x1a7)]))||existsSync(join(_0x550b7a,_0x24d666['duQWb'])))return _0x550b7a;_0x550b7a=dirname(_0x550b7a);}return process['cwd']();}_0x5727c0['config']({'path':join(findProjectRoot(),_0x40e819(0x183))});import _0x5053c4 from'yargs/yargs';import{addEnv,clean,login,start,setupCi,useEnv,updateEnv,update,skillup,envList,hook,ensureLocalEnv,ensureChromium,authenticate,migrateProfile}from'./commands/index.js';import{authEncrypt}from'./commands/authEncrypt.js';import{mcpBootstrap}from'./commands/mcpBootstrap.js';import{getToken}from'./commands/utils/keychain.js';import{serverSideLogin}from'./commands/utils/cloudProfile.js';import{status}from'./commands/status.js';import{configSet,configGet,configList,configUnset,configReset}from'./commands/config.js';function _0x5dfa(_0x39b3ad,_0x2526f5){_0x39b3ad=_0x39b3ad-0x177;const _0x38c920=_0x38c9();let _0x5dfaa4=_0x38c920[_0x39b3ad];return _0x5dfaa4;}import{verifyFeature}from'./commands/verifyFeature.js';import{loadRangerConfig}from'./commands/utils/rangerConfig.js';import{isByokEnabled}from'./commands/utils/environment.js';import{shouldShowLegacyWarning,showLegacyDeprecationWarning}from'./commands/utils/legacyWarning.js';import{featureCreate,featureList,featureShow,featureResume,featureAddScenario,featureEditScenario,featureGetReview,featureReportPrDescription,featureDelete,featureRestore}from'./commands/feature.js';import{logDesirePath,getErrorType,sanitizeArgs}from'./commands/utils/desirePathLog.js';import{getCurrentVersion}from'./commands/utils/version.js';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 _0x32192e=>{const _0x61c15e=getCurrentCollector();_0x61c15e&&await _0x61c15e['trackCommandError'](_0x32192e),process['exitCode']=0x1;});const rawArgs=process['argv'][_0x40e819(0x201)](0x2),TOP_LEVEL_HELP='Usage:\x20ranger\x20<command>\x20[options]\x0a\x0aTo\x20set\x20up\x20a\x20profile\x20for\x20your\x20app,\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20—\x20opens\x20a\x0abrowser\x20so\x20you\x20can\x20log\x20in\x20once.\x20For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x0aoptions,\x20see\x20https://docs.ranger.net/main/concepts/profiles.\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\x20Add\x20a\x20profile\x20(opens\x20a\x20browser\x20for\x20login)\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/config)\x0a\x20\x20\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20a\x20profile\x20(opens\x20a\x20browser\x20for\x20login)\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\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Set/get/list/unset/reset\x20profile\x20config\x0a\x0a\x20\x20create\x20<name>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Create\x20a\x20feature\x20review\x20with\x20scenarios\x0a\x20\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20feature\x20reviews\x0a\x20\x20show\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20feature\x20review\x20details\x0a\x20\x20resume\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20feature\x20review\x0a\x20\x20add-scenario\x20<description>\x20\x20Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review\x0a\x20\x20edit-scenario\x20<description>\x20Edit\x20a\x20scenario\x20description\x0a\x20\x20get-review\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20reviewer\x20feedback\x0a\x20\x20report\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Generate\x20PR\x20description\x20markdown\x0a\x20\x20delete\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Soft\x20delete\x20a\x20feature\x20review\x0a\x20\x20restore\x20<id>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Restore\x20a\x20soft-deleted\x20feature\x20review\x0a\x0a\x20\x20go\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20a\x20scenario\x20in\x20the\x20browser\x0a\x0aDeprecated\x20(now\x20exit\x201\x20with\x20a\x20redirect):\x20`profile\x20update`,\x20`profile\x20encrypt-auth`,\x0a`profile\x20migrate`,\x20`setup\x20--ci`.\x20Run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20set\x20up\x20a\x0afresh\x20profile.\x0a\x0aRun\x20`ranger\x20<command>\x20--help`\x20for\x20details.',PROFILE_HELP=_0x40e819(0x28f),PROFILE_CONFIG_HELP=_0x40e819(0x22a);function warnRenamed(_0x2bd442,_0x110a5a){const _0x23d6a=_0x40e819;console['error']('\x0a'+_0x2bd442+_0x23d6a(0x2e9)+_0x110a5a+'\x0a');}function argUsed(_0x23d3f3){const _0x258efd=_0x40e819;return rawArgs['some'](_0x554223=>_0x554223===_0x23d3f3||_0x554223[_0x258efd(0x315)](_0x23d3f3+'='));}function warnFlagRenamed(_0x46720d,_0x414732,_0x585f23){const _0x295a0b=_0x40e819,_0x1267f3={'iEOAG':function(_0xd0e98d,_0x4e251b,_0x1e28f8){return _0xd0e98d(_0x4e251b,_0x1e28f8);}};argUsed(_0x414732)&&_0x1267f3[_0x295a0b(0x22d)](warnRenamed,_0x46720d+'\x20'+_0x414732,_0x46720d+'\x20'+_0x585f23);}async function runGoCommand(_0x196635,_0x43430f=![]){const _0x24c588=_0x40e819,_0x407ec2={'GyDnS':function(_0x10d331,_0x21278a){return _0x10d331+_0x21278a;},'mCjxd':function(_0x5d65b1,_0x499bf9,_0x5d4402){return _0x5d65b1(_0x499bf9,_0x5d4402);},'XWfAB':function(_0x18fcb1,_0x4fdf50,_0x138320,_0x250b1f){return _0x18fcb1(_0x4fdf50,_0x138320,_0x250b1f);},'HCnFi':_0x24c588(0x17b),'DkKQv':_0x24c588(0x320),'SfCHh':_0x24c588(0x1fe),'iMJxs':_0x24c588(0x260),'jslTa':function(_0x3f6848){return _0x3f6848();},'mJLtA':'start-path','NoxGl':_0x24c588(0x2d1),'VcjFx':'debug-outcome','QIKWN':function(_0x16cf0f,_0x55b0e2){return _0x16cf0f+_0x55b0e2;},'dGvCg':function(_0x1e54ea,_0x54ef2){return _0x1e54ea===_0x54ef2;},'OTRJn':_0x24c588(0x2b4),'nngsE':function(_0x567320,_0xa22c09){return _0x567320===_0xa22c09;},'mWRVz':_0x24c588(0x2d7),'NZsHP':_0x24c588(0x1e4),'ABssh':'\x0aIssues:','Lriom':function(_0xd63e30,_0x4236e3){return _0xd63e30===_0x4236e3;}};_0x43430f&&_0x407ec2['mCjxd'](warnRenamed,_0x24c588(0x2e1),_0x24c588(0x17b));_0x407ec2[_0x24c588(0x316)](warnFlagRenamed,_0x407ec2[_0x24c588(0x25b)],_0x24c588(0x1e9),'--profile'),warnFlagRenamed('ranger\x20go',_0x407ec2['DkKQv'],_0x407ec2['SfCHh']),warnFlagRenamed(_0x407ec2[_0x24c588(0x25b)],_0x407ec2['iMJxs'],_0x24c588(0x1ae));const _0x37089a=await _0x407ec2['jslTa'](loadRangerConfig),_0x2dcd35=isByokEnabled(),_0x18b964=_0x196635[_0x24c588(0x195)],_0x2c2eb5=_0x37089a[_0x24c588(0x195)],_0x2ecf4c=await verifyFeature({'featureId':_0x196635[_0x24c588(0x240)],'profile':_0x196635[_0x24c588(0x262)]??_0x196635['env']??process['env'][_0x24c588(0x2e8)],'notes':_0x196635[_0x24c588(0x2c9)]??_0x196635[_0x24c588(0x2da)],'scenario':_0x196635['scenario']??_0x196635['item'],'startPath':_0x196635[_0x407ec2['mJLtA']],'baseUrl':_0x196635[_0x407ec2['NoxGl']],'debugOutcome':_0x196635[_0x407ec2[_0x24c588(0x1c3)]],'debugAddressComments':_0x196635[_0x24c588(0x2e5)],'headed':_0x196635['headed'],'byokEnabled':_0x2dcd35,'flagVerifyModel':_0x18b964,'configVerifyModel':_0x2c2eb5});console[_0x24c588(0x215)](_0x407ec2['QIKWN']('\x0a','='['repeat'](0x3c))),console[_0x24c588(0x215)](_0x2ecf4c['evaluation']==='verified'?'\x20VERIFIED':_0x2ecf4c[_0x24c588(0x237)]===_0x24c588(0x1a1)?_0x24c588(0x322):_0x407ec2['dGvCg'](_0x2ecf4c['evaluation'],_0x24c588(0x2bb))?_0x407ec2[_0x24c588(0x185)]:_0x407ec2['nngsE'](_0x2ecf4c[_0x24c588(0x237)],_0x407ec2[_0x24c588(0x2e4)])?_0x24c588(0x2a3):_0x407ec2['NZsHP']),console[_0x24c588(0x215)]('='[_0x24c588(0x2ae)](0x3c)),console[_0x24c588(0x215)]('Summary:\x20'+_0x2ecf4c['summary']),console[_0x24c588(0x215)]('Evaluation:\x20'+_0x2ecf4c[_0x24c588(0x237)]),console['log']('Reason:\x20'+_0x2ecf4c[_0x24c588(0x18b)]),_0x2ecf4c[_0x24c588(0x326)]?.['length']&&(console['log'](_0x407ec2['ABssh']),_0x2ecf4c[_0x24c588(0x326)][_0x24c588(0x22f)]((_0xf583e3,_0x2cfe5d)=>{const _0x5d3bd1=_0x24c588;console[_0x5d3bd1(0x215)]('\x0a'+_0x407ec2[_0x5d3bd1(0x179)](_0x2cfe5d,0x1)+'.\x20['+_0xf583e3['severity']+']\x20'+_0xf583e3['description']);})),process[_0x24c588(0x291)](_0x407ec2[_0x24c588(0x1e2)](_0x2ecf4c[_0x24c588(0x237)],_0x24c588(0x1ee))?0x0:0x1);}function _0x38c9(){const _0x50f236=['sQcqe','UPHMd','get-feedback\x20[id]','EGlou','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','ERWxo','TPRQW','KSsrP','Error:\x20`ranger\x20profile\x20login`\x20is\x20headless\x20—\x20set\x20RANGER_TEST_USERNAME\x20and\x20RANGER_TEST_PASSWORD\x20before\x20running.','create','GhSZg','yDCZQ','TugGy','Failed\x20to\x20exchange\x20MCP\x20refresh\x20token\x20for\x20a\x20CLI\x20token.','use\x20<env-name>','add-scenario','unknown\x20error','string','list\x20<env>','pUxdD','NFtug','LWxxL','Optional\x20feature\x20ID','profile\x20config\x20set','Manage\x20profile\x20configuration','zsvOt','update\x20<env-name>','qZmbk','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','profile\x20add','11TABOVr','Config\x20value','Scenario\x20number\x20to\x20edit\x20(1-based)','option','Unpct','startsWith','XWfAB','aaSnk','Config\x20key\x20(e.g.,\x20userAgent,\x20headers.X-Custom)','UJchD','EWcpg','--checklist','IMZCV','Switch\x20to\x20using\x20a\x20specific\x20profile','dHPVs','ranger\x20feature\x20delete','--task','MTSxa','\x20INCOMPLETE','token','profile\x20ls','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','issues','muqvG','xcXOl','Skip\x20authentication','Feature\x20review\x20ID','You\x20must\x20specify\x20a\x20profile\x20subcommand','project','GyDnS','No\x20auth\x20config\x20for\x20this\x20org;\x20profile\x20login\x20unavailable.','ranger\x20go','feature\x20resume','SzUTI','hook:enable','ranger\x20create','jFeZe','use','Fnvrj','.env','ranger\x20feature\x20restore','OTRJn','eWaFG','argv','Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','ioNaE','ranger\x20config\x20get','evaluationReason','url','898232jPUNhY','Migrate\x20all\x20local\x20profiles\x20that\x20match\x20a\x20configured\x20auth\x20environment.','ZNBUy','6SnxfRh','profile\x20config\x20reset','fTZxA','✓\x20Authenticated\x20to\x20','Drop\x20the\x20--scope\x20flag\x20or\x20pass\x20--scope=user.','model','NWHTJ','env','Authenticated\x20via\x20MCP,\x20but\x20failed\x20to\x20verify:\x20','rZlnr','edit-scenario\x20<description>','JlBYW','skip-auth','Allow\x20localhost\x20content\x20in\x20deployed\x20environments','Install\x20Ranger\x20skills','aroni','item','incomplete','skills','force','demandCommand','TqVKw','Feature\x20review\x20ID\x20to\x20restore','Uquid','set\x20<profile>\x20<key>\x20<value>','Skip\x20interactive\x20confirmation\x20prompts.','config\x20get','HCOiH','Get\x20a\x20config\x20value','delete','--scenario','success','clean','tFFST','kJYzD','Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project','effLf','tXNGv','Install\x20scope\x20for\x20skills','Task\x20description\x20(defaults\x20to\x20scenario\x20description)','yes','fwWUl','KrJQC','Skip\x20Chromium\x20browser\x20check\x20and\x20installation','RrwHg','safe-mode','ZpegO','profile\x20use','Skip\x20interactive\x20confirmation\x20prompts\x20(e.g.\x20cloud-profile\x20auto-route).','enable','\x27.\x20Session\x20saved.','VcjFx','KYwZM','include-deleted','Include\x20soft-deleted\x20feature\x20reviews','Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','\x20\x20https://docs.ranger.net\x0a','txOfX','YuUWN','all','rVWfl','QlLap','message','includes','jzzbg','KUPgQ','fjqaD','Print\x20the\x20migration\x20plan\x20without\x20mutating\x20anything.','Skip\x20Chromium\x20browser\x20installation','feature\x20restore','lJmlr','You\x20must\x20specify\x20an\x20env\x20subcommand','VqalQ','disable','ZWXky','58687ktJICm','Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)','FYFpu','654024uHbmoZ','HEFBa','BXQhA','with-deps','Lriom','vRDjH','\x20FAILED','tJKWG','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','GhPVK','ALVUf','--env','223860mwvuSs','CFhJv','Install\x20for\x20OpenCode\x20instead\x20of\x20Claude\x20Code','ranger\x20setup','verified','NcpVC','lmwQE','usage','Usage:\x20ranger\x20setup\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20all\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Full\x20interactive\x20setup\x20(default\x20when\x20no\x20subcommand\x20given)\x0a\x20\x20deps\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Chromium\x20browser\x20binary\x0a\x20\x20login\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Authenticate\x20with\x20Ranger\x0a\x20\x20skills\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Claude\x20Code\x20plugin\x20and\x20skills\x0a\x20\x20profiles\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Set\x20up\x20a\x20local\x20browser\x20profile\x0a\x0aRun\x20`ranger\x20setup\x20<command>\x20--help`\x20for\x20details.\x0a\x0aExamples:\x0a\x20\x20ranger\x20setup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Interactive\x20first-time\x20setup\x0a\x20\x20ranger\x20setup\x20deps\x20--with-deps\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Chromium\x20+\x20OS\x20deps\x20(Dockerfile)\x0a\x20\x20ranger\x20setup\x20login\x20--mcp\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Authenticate\x20via\x20MCP\x20proxy\x0a\x20\x20ranger\x20setup\x20skills\x20--scope\x20user\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20skills\x20at\x20user\x20level','profile\x20config\x20list','You\x20must\x20specify\x20a\x20command','HTTP\x20header\x20to\x20send\x20only\x20during\x20profile\x20setup\x20auth,\x20not\x20during\x20test\x20runs\x20(format:\x20\x22Name:\x20Value\x22)','mRrhs','Profile\x20name','ubDdG','dLeMj','xZuvQ','hGGEL','ranger\x20feature\x20show','key','--notes','Config\x20key\x20to\x20remove','YtZWm','slice','13872HiaLMm','HftWX','wGHxg','Install\x20OS-level\x20dependencies\x20for\x20Chromium\x20(apt\x20packages\x20for\x20Debian/Ubuntu\x20containers)','685WfWsse','Install\x20OS-level\x20dependencies\x20for\x20Chromium','ranger\x20feature\x20add-checklist-item','show\x20[id]','verify-feature','mcp-bootstrap','pPWaC','PFtAK','No\x20token\x20found.\x20Run\x20`ranger\x20login`\x20to\x20authenticate.','Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios','alias','Update\x20authentication\x20for\x20an\x20existing\x20profile','hMzVN','opencode','You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand','log','MHDgZ','feature\x20add-checklist-item','ranger\x20feature\x20create','restore\x20<id>','moQhc','profiles','unset\x20<profile>\x20<key>','List\x20all\x20profiles','Migrate\x20local\x20profiles\x20to\x20the\x20cloud\x20(requires\x20org\x20auth\x20config)','list','bUVEt','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios','hvDAJ','description','HmKVE','ranger\x20profile\x20config\x20get','Name\x20of\x20the\x20profile','PuUtU','add\x20env\x20<env-name>','UJbBI','Usage:\x20ranger\x20profile\x20config\x20<command>\x0a\x0aFine-tune\x20browser\x20behavior\x20for\x20a\x20profile.\x20Settings\x20apply\x20per\x20cwd,\x20so\x20different\x0acheckouts\x20of\x20the\x20same\x20repo\x20can\x20have\x20different\x20overrides.\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\x20\x20reset\x20<profile>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Clear\x20all\x20overrides\x0a\x0aKeys:\x0a\x20\x20baseUrl\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Base\x20URL\x20(most\x20common\x20override)\x0a\x20\x20userAgent\x20\x20\x20\x20\x20\x20\x20\x20Browser\x20user\x20agent\x20string\x0a\x20\x20headless\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20browser\x20in\x20headless\x20mode\x20(true/false)\x0a\x20\x20allowInsecureLocalhost\x20\x20\x20Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(true/false)\x0a\x20\x20storageState\x20\x20\x20\x20\x20Path\x20to\x20auth\x20state\x20file\x20(e.g.,\x20./auth.json)\x0a\x20\x20headers.<name>\x20\x20\x20Custom\x20HTTP\x20header\x20sent\x20with\x20every\x20request\x20(e.g.,\x20headers.X-Test-Mode).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22header.<name>\x22\x20is\x20also\x20accepted\x20as\x20an\x20alias.\x0a\x20\x20setupHeaders.<name>\x20\x20HTTP\x20header\x20sent\x20only\x20during\x20profile\x20setup\x20auth,\x20not\x20during\x20test\x20runs\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(e.g.,\x20setupHeaders.x-bypass-turnstile).\x20\x22setupHeader.<name>\x22\x20alias\x20accepted.\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20userAgent\x20\x22Mozilla/5.0\x20(CI\x20Bot)\x22\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20headless\x20true\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20allowInsecureLocalhost\x20true\x0a\x20\x20ranger\x20profile\x20config\x20set\x20admin@staging.app.com\x20baseUrl\x20http://localhost:3001\x0a\x20\x20ranger\x20profile\x20config\x20set\x20admin@staging.app.com\x20headers.X-Debug\x201','env\x20list','Config\x20key','iEOAG','Install\x20Chromium\x20browser\x20binary','forEach','yRcYq','Environment\x20name','env-name','strictCommands','Authenticate\x20with\x20Ranger','kasbJ','LToMX','evaluation','FOdRv','ranger\x20start','\x20is\x20no\x20longer\x20supported.\x20','user','\x0aError:\x20','UYkbi','epilogue','8692790FUvRvB','feature','EvXoF','493724qMqMtX','Ranger\x20API\x20token','Unknown\x20command','offset','nsNab','SbCYF','IxFEy','ZKDAS','GCfyh','ranger\x20profile\x20use','joSdr','skip-chromium','setup:all','KEcqW','CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)','config\x20set','name','get\x20<profile>\x20<key>','ranger\x20get-review','add\x20<profile-name>','OhPfG','command','Output\x20structured\x20JSON\x20data\x20instead\x20of\x20markdown','config\x20unset','feature\x20list','HCnFi','ranger\x20feature\x20list','resume\x20[id]','setup:profiles','YcnXu','--item','ggTRw','profile','vAnHG','setup:deps','Where\x20to\x20store\x20the\x20profile:\x20user\x20(~/.ranger/)\x20or\x20project\x20(.ranger/)','zbltN','ranger\x20show','PaggX','zZOjS','jsoye','add-scenario\x20<description>','OyPZY','NODE_ENV','Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','fail','TrpaE','wYyJV','profile\x20config\x20get','JtiAI','save-creds','auth','Cloud\x20profile\x20name','BRNPi','value','XimuY','New\x20scenario\x20description','JjXAM','hxLiK','KisIm','aWWXB','syEwq','SdPBZ','ekSVm','ZfeZf','IrmUm','dry-run','ClPIB','Install\x20Claude\x20Code\x20plugin\x20and\x20skills','Print\x20the\x20current\x20CLI\x20access\x20token','Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review','PZOpP','print-access-token','xBkWS','ranger\x20add-scenario','ytaZq','help','Usage:\x20ranger\x20profile\x20<command>\x20[options]\x0a\x0aConvention\x20is\x20one\x20profile\x20per\x20account\x20—\x20use\x20whatever\x20name\x20is\x20stable\x20for\x20that\x0aaccount\x20(email,\x20username,\x20etc.).\x20For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x0aoptions,\x20see\x20https://docs.ranger.net/main/concepts/profiles.\x0a\x0aCommands:\x0a\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20a\x20profile\x20(opens\x20a\x20browser\x20for\x20login)\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\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Profile\x20config\x20(set/get/list/unset/reset)\x0a\x0aDeprecated\x20(exit\x201\x20with\x20a\x20redirect\x20message):\x0a\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20→\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20refresh\x20auth\x0a\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20→\x20no\x20longer\x20needed;\x20Ranger\x20manages\x20session\x20state\x0a\x20\x20migrate\x20[<profile>]\x20\x20\x20\x20\x20\x20\x20→\x20run\x20`ranger\x20profile\x20add\x20<name>`;\x20old\x20dirs\x20stay\x20readable\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20add\x20alice@example.com\x0a\x20\x20ranger\x20profile\x20config\x20set\x20alice@example.com\x20baseUrl\x20http://localhost:3001\x0a\x20\x20ranger\x20profile\x20config\x20set\x20alice@example.com\x20headers.X-Debug\x201','uVxsb','exit','NuNmo','report\x20[id]','eMpjs','teuEB','positional','ranger\x20feature\x20get-feedback','WgJrH','number','gavhy','Example:\x20ranger\x20create\x20my-feature','tZPJd','epugu','Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)','profile-name','SWiQG','current-branch','Base\x20URL\x20of\x20the\x20running\x20app','\x20BLOCKED','migrate\x20[profile-name]','jRfnv','array','session-id','qpbeU','TvbBT','TbSqX','cVMqP','qfZhW','mcp','repeat','API\x20token','profile\x20login','odCXY','CIuGK','VhSYD','\x20PARTIAL','trackCommandError','pXwFz','cijKM','MWsJK','feature\x20create','kuuQY','partial','DHVEG','rOuQe','status','\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)','EfLGU','allow-insecure-localhost','Number\x20of\x20feature\x20reviews\x20to\x20skip','iaOnc','ranger\x20profile\x20add','kxFBr','MDZAP','EaGLz','HXnRF','notes','gxqmG','sgQzg','ranger\x20delete','vhhHF','QlMkC','parse','XQFsx','base-url','Enable\x20Ranger\x20hooks\x20for\x20this\x20session','Feature\x20review\x20description','error','boolean','jngom','blocked','checklist','IhiTo','task','Skip\x20authentication\x20(install\x20deps\x20only\x20—\x20for\x20container/CI\x20image\x20builds)','start\x20[token]','RsgUA','delete\x20[id]','get-review\x20[id]','TRCdw','ranger\x20verify-feature','encrypt\x20<profile>','start','mWRVz','debug-address-comments','ranger','IMoVv','RANGER_PROFILE','\x20is\x20now\x20','18XLIcpM','QxHjW','failed','Ranger\x20API\x20token\x20(rngr_...)','deps','scope','scenario','LgeMt'];_0x38c9=function(){return _0x50f236;};return _0x38c9();}export function buildParser(_0x1f763a){const _0x1ecff4=_0x40e819,_0x47b4e4={'BRNPi':'string','tZPJd':_0x1ecff4(0x2a6),'sQcqe':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','ekSVm':'checklist','aroni':function(_0xb78405,_0x132dc3){return _0xb78405+_0x132dc3;},'PFtAK':function(_0x34160e,_0x39d22e,_0x44bbaf,_0x1190a4){return _0x34160e(_0x39d22e,_0x44bbaf,_0x1190a4);},'NcpVC':_0x1ecff4(0x1ae),'kuuQY':function(_0x2b5fab,_0x1f3630,_0x414e80){return _0x2b5fab(_0x1f3630,_0x414e80);},'LRkgj':'current-branch','NWHTJ':'number','SzUTI':_0x1ecff4(0x1c5),'xBkWS':'description','YuUWN':_0x1ecff4(0x325),'effLf':_0x1ecff4(0x301),'wQZoH':'scenario','obrhJ':_0x1ecff4(0x312),'lgWvZ':'edit-scenario','rZDGm':'Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)','LBAgs':'json','joSdr':_0x1ecff4(0x258),'QlLap':'exclude-scenario','QlMkC':function(_0x62987d,_0xd37f1f,_0x4fd74b){return _0x62987d(_0xd37f1f,_0x4fd74b);},'DHVEG':'get-review','fTZxA':'Feature\x20review\x20ID','txOfX':_0x1ecff4(0x1ad),'TRCdw':'Feature\x20review\x20ID\x20to\x20restore','pcIZe':function(_0x3c8605,_0x3cbc4f,_0x534bda){return _0x3c8605(_0x3cbc4f,_0x534bda);},'TrpaE':_0x1ecff4(0x20b),'PuUtU':function(_0xe94c84,_0x3c85bb,_0x1bf5fb){return _0xe94c84(_0x3c85bb,_0x1bf5fb);},'epugu':'boolean','hxLiK':_0x1ecff4(0x323),'bGbvm':'mcp','vRDjH':'setup:login','KEcqW':_0x1ecff4(0x2ef),'XimuY':'user','kasbJ':'Reserved\x20—\x20setup\x20always\x20installs\x20at\x20user\x20scope.','hGGEL':_0x1ecff4(0x2a2),'VhSYD':_0x1ecff4(0x1a3),'muqvG':_0x1ecff4(0x2c1),'VJImP':_0x1ecff4(0x19d),'eVotf':function(_0x136fe1,_0x4bbdab){return _0x136fe1!==_0x4bbdab;},'YcnXu':function(_0x141272,_0x5dc59f){return _0x141272+_0x5dc59f;},'syEwq':_0x1ecff4(0x25e),'yRcYq':_0x1ecff4(0x1e1),'eSeoh':function(_0x160dd1){return _0x160dd1();},'HftWX':function(_0x1da071,_0x690a08){return _0x1da071(_0x690a08);},'lHiPF':'Install\x20scope\x20for\x20plugin\x20and\x20skills','NbSOX':_0x1ecff4(0x213),'OyPZY':function(_0x99d95b,_0x2fc1f6){return _0x99d95b(_0x2fc1f6);},'KYwZM':function(_0x57c467,_0x40a50e,_0x4d1e6f){return _0x57c467(_0x40a50e,_0x4d1e6f);},'cxyuH':_0x1ecff4(0x22e),'GCfyh':'login','SWiQG':_0x1ecff4(0x234),'OICBB':_0x1ecff4(0x1a2),'LgeMt':_0x1ecff4(0x286),'qRauC':_0x1ecff4(0x21b),'EWcpg':'url','YtZWm':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','KTjfy':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','CIuGK':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','nWgrN':'Bootstrap\x20CLI\x20auth\x20via\x20an\x20MCP\x20auth\x20server\x20instead\x20of\x20browser\x20login','qZmbk':'skip-auth','FYIiL':_0x1ecff4(0x2db),'UObGf':function(_0x22beb1,_0x52e361,_0x513ac2){return _0x22beb1(_0x52e361,_0x513ac2);},'ZfeZf':_0x1ecff4(0x243),'pXwFz':'profile','zSDAe':_0x1ecff4(0x250),'ZNBUy':function(_0x58b66b,_0x39fd60,_0x216b2a){return _0x58b66b(_0x39fd60,_0x216b2a);},'yDCZQ':_0x1ecff4(0x178),'RZZGq':_0x1ecff4(0x1b6),'EaGLz':_0x1ecff4(0x1b0),'ggTRw':_0x1ecff4(0x29f),'xUKEK':_0x1ecff4(0x1c7),'xZuvQ':'Disable\x20browser\x20features\x20that\x20can\x20cause\x20crashes\x20on\x20some\x20systems\x20(e.g.\x20Bluetooth\x20permission\x20prompts\x20on\x20macOS)','ubDdG':'setup-header','wGHxg':_0x1ecff4(0x265),'MHDgZ':_0x1ecff4(0x1b8),'nXlJQ':_0x1ecff4(0x1c0),'JiYHx':_0x1ecff4(0x1bf),'moQhc':_0x1ecff4(0x324),'pjtVs':'name','yvTMX':_0x1ecff4(0x276),'MDZAP':'Name\x20of\x20a\x20single\x20local\x20profile\x20to\x20migrate.\x20Omit\x20with\x20--all.','RsXAe':_0x1ecff4(0x1f7),'HEFBa':'profile\x20encrypt-auth','TvbBT':function(_0x567215,_0x40c16e){return _0x567215===_0x40c16e;},'UYkbi':'failed','vNjwp':_0x1ecff4(0x2b0),'rOuQe':'key','dLeMj':function(_0x645062,_0x301b4f,_0x5e306f){return _0x645062(_0x301b4f,_0x5e306f);},'vAnHG':_0x1ecff4(0x309),'IMoVv':_0x1ecff4(0x1a8),'onKlk':_0x1ecff4(0x21c),'ZKDAS':'Remove\x20a\x20config\x20value','teuEB':'reset\x20<profile>','PaggX':'Clear\x20all\x20config\x20overrides\x20for\x20a\x20profile','TPRQW':'You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand','gzGyT':_0x1ecff4(0x31d),'UpwFH':'Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','GIRBn':_0x1ecff4(0x21d),'ycEvc':'update\x20<profile-name>','EWVrj':_0x1ecff4(0x211),'eWaFG':_0x1ecff4(0x2a4),'bmtnF':_0x1ecff4(0x21e),'jsoye':'config','Deokr':_0x1ecff4(0x30a),'odOqX':function(_0x8749f6,_0x19bc26,_0x5e8946){return _0x8749f6(_0x19bc26,_0x5e8946);},'vtuKG':_0x1ecff4(0x20e),'aMIcw':'Scenario\x20index\x20(1-based)','JjXAM':'start-path','UJchD':_0x1ecff4(0x1ee),'wYyJV':'partial','Afksy':_0x1ecff4(0x2e5),'MhaKK':_0x1ecff4(0x2da),'ThiAS':'ranger\x20profile\x20encrypt-auth','lVvEC':_0x1ecff4(0x26e),'kxFBr':_0x1ecff4(0x1bb),'lJmlr':'Skip\x20authentication','fwWUl':_0x1ecff4(0x207),'vwRpz':_0x1ecff4(0x2e3),'IhiTo':_0x1ecff4(0x197),'nnRxO':_0x1ecff4(0x1b7),'dHPVs':_0x1ecff4(0x1a0),'qpbeU':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard).\x20Also\x20respects\x20RANGER_START_PATH.','ytSqL':_0x1ecff4(0x2d1),'diFkm':'Override\x20the\x20profile\x20base\x20URL\x20for\x20this\x20run.\x20Also\x20respects\x20RANGER_BASE_URL.','IMZCV':'debug-outcome','eMpjs':'blocked','AsOzK':'Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','QZKOE':'Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','vhhHF':_0x1ecff4(0x2c4),'RAtiE':'Name\x20of\x20the\x20environment','IxFEy':_0x1ecff4(0x24b),'jIoPZ':_0x1ecff4(0x181),'tBCRq':_0x1ecff4(0x231),'LWxxL':_0x1ecff4(0x311),'hvDAJ':_0x1ecff4(0x251),'NuNmo':_0x1ecff4(0x18a),'ERWxo':_0x1ecff4(0x1aa),'UqRfo':'ranger\x20config\x20list','TugGy':'ranger\x20config\x20unset','GxbLN':'get\x20<env>\x20<key>','HXnRF':_0x1ecff4(0x304),'PZOpP':function(_0x6ce6ee,_0x324e8e,_0x56866c){return _0x6ce6ee(_0x324e8e,_0x56866c);},'JtiAI':function(_0x330a4c,_0x165b83,_0x340fec,_0x377ef9){return _0x330a4c(_0x165b83,_0x340fec,_0x377ef9);},'BXQhA':_0x1ecff4(0x31b),'nsNab':_0x1ecff4(0x2b9),'RryRd':_0x1ecff4(0x267),'NLAkT':function(_0x17a4fb,_0x26b8bf,_0x41b369){return _0x17a4fb(_0x26b8bf,_0x41b369);},'gavhy':'Scenario\x20description','DdXDo':_0x1ecff4(0x297),'FFizU':'feature\x20get-feedback','lcmia':'limit','pPWaC':_0x1ecff4(0x2f6),'ioNaE':'Number\x20of\x20feature\x20reviews\x20to\x20skip','gxqmG':_0x1ecff4(0x25c),'TbSqX':_0x1ecff4(0x25a),'cJdhT':'feature\x20delete','DLGcV':_0x1ecff4(0x21f),'LToMX':_0x1ecff4(0x209),'WGebn':'add-checklist-item\x20<description>','MVtib':'restore\x20<id>','txOAZ':_0x1ecff4(0x214),'zODJH':'hook:disable','cicyq':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','zbltN':_0x1ecff4(0x1c1),'UJbBI':_0x1ecff4(0x2d2),'MTWjR':'disable','GJOAX':'Disable\x20Ranger\x20hooks\x20for\x20this\x20session','sVGQr':'session-id','zumdK':_0x1ecff4(0x244),'YDZRE':'Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a','SbCYF':function(_0x2b0565){return _0x2b0565();},'tFFST':'ranger','MWsJK':function(_0x340280){return _0x340280();},'NCxmo':'create\x20<name>','Iqxrb':'resume\x20[id]','KSsrP':_0x1ecff4(0x19a),'kJYzD':'Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)','aaSnk':'setup\x20[tokenOrSubcommand]','jFeZe':_0x1ecff4(0x2be),'PNCDi':'Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)','DqQGe':'update','aKBWZ':'Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version','qBZGz':_0x1ecff4(0x287),'SNtTr':_0x1ecff4(0x275),'CFhJv':_0x1ecff4(0x2dc),'sgQzg':_0x1ecff4(0x20a),'edPdw':_0x1ecff4(0x228),'bUVEt':_0x1ecff4(0x1f4),'QxHjW':_0x1ecff4(0x1c8),'UPHMd':_0x1ecff4(0x2bf),'cijKM':'help'};return _0x47b4e4[_0x1ecff4(0x26c)](_0x5053c4,_0x1f763a??process[_0x1ecff4(0x187)]['slice'](0x2))['scriptName'](_0x47b4e4[_0x1ecff4(0x1b1)])['usage'](TOP_LEVEL_HELP)['version'](_0x47b4e4[_0x1ecff4(0x2b8)](getCurrentVersion))['command'](_0x47b4e4['NCxmo'],_0x1ecff4(0x20f),_0x3b8d5a=>{const _0x5bc5a1=_0x1ecff4;return _0x3b8d5a['positional']('name',{'type':_0x47b4e4['BRNPi'],'description':'Feature\x20review\x20name','demandOption':!![]})[_0x5bc5a1(0x313)](_0x5bc5a1(0x223),{'type':'string','alias':'d','description':'Feature\x20review\x20description'})['option'](_0x5bc5a1(0x2f0),{'type':_0x47b4e4[_0x5bc5a1(0x29c)],'alias':'c','description':_0x47b4e4[_0x5bc5a1(0x2f2)]})['option'](_0x47b4e4[_0x5bc5a1(0x281)],{'type':'array','hidden':!![]});},async _0x11cbda=>{const _0x4b02fc=_0x1ecff4;if(!_0x11cbda['name']){console[_0x4b02fc(0x2d4)](_0x47b4e4[_0x4b02fc(0x19f)]('Error:\x20`ranger\x20create`\x20requires\x20a\x20feature\x20review\x20name.\x0a',_0x4b02fc(0x29b))),process['exit'](0x1);return;}_0x47b4e4[_0x4b02fc(0x20d)](warnFlagRenamed,_0x4b02fc(0x17f),_0x4b02fc(0x31b),_0x47b4e4[_0x4b02fc(0x1ef)]);const _0x4c4b94=_0x11cbda[_0x4b02fc(0x2f0)]||_0x11cbda[_0x4b02fc(0x2d8)];await _0x47b4e4['kuuQY'](withTelemetry,_0x4b02fc(0x2fb),()=>featureCreate(_0x11cbda[_0x4b02fc(0x252)],{'description':_0x11cbda['description'],'scenarios':_0x4c4b94}));})[_0x1ecff4(0x257)]('list','List\x20all\x20feature\x20reviews',_0x3d9fe2=>{const _0x5bae42=_0x1ecff4;return _0x3d9fe2[_0x5bae42(0x313)](_0x47b4e4['LRkgj'],{'type':_0x5bae42(0x2d5),'description':_0x5bae42(0x30e)})[_0x5bae42(0x313)]('limit',{'type':_0x47b4e4['NWHTJ'],'alias':'l','description':_0x5bae42(0x2f6),'default':0xa})['option'](_0x5bae42(0x245),{'type':_0x5bae42(0x299),'alias':'o','description':_0x5bae42(0x2c2),'default':0x0})[_0x5bae42(0x313)](_0x47b4e4[_0x5bae42(0x17d)],{'type':'boolean','alias':'d','description':'Include\x20soft-deleted\x20feature\x20reviews','default':![]});},async _0x1a0ce9=>{const _0x3d3730=_0x1ecff4;await _0x47b4e4[_0x3d3730(0x2ba)](withTelemetry,'list',()=>featureList({'currentBranch':_0x1a0ce9[_0x3d3730(0x2a1)],'limit':_0x1a0ce9['limit'],'offset':_0x1a0ce9['offset'],'includeDeleted':_0x1a0ce9['include-deleted']}));})[_0x1ecff4(0x257)](_0x1ecff4(0x209),'Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x2eaee8=>{const _0x36c29a=_0x1ecff4;return _0x2eaee8[_0x36c29a(0x296)]('id',{'type':_0x36c29a(0x303),'description':'Feature\x20review\x20ID'});},async _0x33256a=>{await withTelemetry('show',()=>featureShow(_0x33256a['id']));})[_0x1ecff4(0x257)](_0x47b4e4['Iqxrb'],'Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context',_0x5d991c=>{const _0x2780f5=_0x1ecff4;return _0x5d991c[_0x2780f5(0x296)]('id',{'type':_0x2780f5(0x303),'description':'Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)'});},async _0x324daf=>{const _0x23293f=_0x1ecff4;await _0x47b4e4[_0x23293f(0x2ba)](withTelemetry,'resume',()=>featureResume(_0x324daf['id']));})['command'](_0x1ecff4(0x26b),'Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review',_0x46feb=>{const _0x2d2133=_0x1ecff4;return _0x46feb['positional'](_0x47b4e4['xBkWS'],{'type':_0x2d2133(0x303),'description':'Scenario\x20description','demandOption':!![]})['option']('id',{'type':_0x47b4e4[_0x2d2133(0x277)],'description':_0x47b4e4['YuUWN']});},async _0x5be765=>{const _0x56b03f=_0x1ecff4;await withTelemetry(_0x47b4e4[_0x56b03f(0x1b4)],()=>featureAddScenario(_0x5be765[_0x56b03f(0x223)],_0x5be765['id']));})[_0x1ecff4(0x257)](_0x47b4e4[_0x1ecff4(0x2f9)],_0x1ecff4(0x288),_0x401759=>{const _0x3970f7=_0x1ecff4;return _0x401759['positional']('description',{'type':_0x47b4e4['BRNPi'],'description':_0x3970f7(0x27a),'demandOption':!![]})['option'](_0x47b4e4['wQZoH'],{'type':_0x47b4e4[_0x3970f7(0x196)],'description':_0x47b4e4['obrhJ'],'demandOption':!![]})['option']('id',{'type':_0x47b4e4['BRNPi'],'description':_0x47b4e4[_0x3970f7(0x1ca)]});},async _0x4d5325=>{await _0x47b4e4['kuuQY'](withTelemetry,_0x47b4e4['lgWvZ'],()=>featureEditScenario(_0x4d5325['description'],{'id':_0x4d5325['id'],'scenario':_0x4d5325['scenario']}));})[_0x1ecff4(0x257)](_0x1ecff4(0x293),_0x47b4e4[_0x1ecff4(0x1b2)],_0x2c62bf=>{const _0x289bff=_0x1ecff4;return _0x2c62bf[_0x289bff(0x296)]('id',{'type':'string','description':'Feature\x20review\x20ID'})[_0x289bff(0x313)]('exclude-scenario',{'type':_0x47b4e4[_0x289bff(0x29c)],'description':_0x47b4e4['rZDGm']})['option'](_0x47b4e4['LBAgs'],{'type':'boolean','description':_0x47b4e4[_0x289bff(0x24c)],'default':![]});},async _0x107c24=>{const _0x295c74=_0x1ecff4,_0x387663=_0x107c24[_0x47b4e4[_0x295c74(0x1cd)]],_0x47ee98=_0x387663?_0x387663['map'](_0x386c69=>Number(_0x386c69)):undefined;await withTelemetry('report',()=>featureReportPrDescription(_0x107c24['id'],{'excludeScenarios':_0x47ee98,'json':_0x107c24['json']}));})[_0x1ecff4(0x257)](_0x1ecff4(0x2df),_0x1ecff4(0x221),_0x3c8fa2=>{const _0x1c1d48=_0x1ecff4;return _0x3c8fa2['positional']('id',{'type':'string','description':_0x1c1d48(0x325)});},async _0x1e965d=>{const _0x4e0f34=_0x1ecff4;await _0x47b4e4['QlMkC'](withTelemetry,_0x47b4e4[_0x4e0f34(0x2bc)],()=>featureGetReview(_0x1e965d['id']));})['command'](_0x1ecff4(0x2de),'Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x596477=>{const _0x355498=_0x1ecff4;return _0x596477[_0x355498(0x296)]('id',{'type':_0x355498(0x303),'description':_0x47b4e4[_0x355498(0x192)]});},async _0x39cafb=>{const _0xcd73b7=_0x1ecff4;await _0x47b4e4[_0xcd73b7(0x2ba)](withTelemetry,_0x47b4e4[_0xcd73b7(0x1c9)],()=>featureDelete(_0x39cafb['id']));})[_0x1ecff4(0x257)](_0x1ecff4(0x219),'Restore\x20a\x20soft-deleted\x20feature\x20review',_0x4f0706=>{const _0x266f0c=_0x1ecff4;return _0x4f0706[_0x266f0c(0x296)]('id',{'type':_0x47b4e4[_0x266f0c(0x277)],'description':_0x47b4e4[_0x266f0c(0x2e0)],'demandOption':!![]});},async _0x1397b0=>{await _0x47b4e4['pcIZe'](withTelemetry,'restore',()=>featureRestore(_0x1397b0['id']));})['command'](_0x47b4e4[_0x1ecff4(0x317)],'Initialize\x20Ranger\x20in\x20your\x20project',_0x3be51e=>{const _0x15c0ad=_0x1ecff4,_0x36f0a4={'RrwHg':_0x47b4e4['BRNPi'],'EvXoF':'boolean','Fnvrj':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','hMzVN':_0x47b4e4[_0x15c0ad(0x230)],'cVMqP':_0x15c0ad(0x23b),'aWWXB':'Reserved\x20—\x20setup\x20always\x20installs\x20at\x20user\x20scope.','mRrhs':'url','EfLGU':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup','cShGy':_0x15c0ad(0x1a3),'GhSZg':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','OvrIn':_0x15c0ad(0x2c1),'qsMxL':_0x47b4e4['VJImP'],'sWNIr':_0x15c0ad(0x20b),'SdPBZ':_0x15c0ad(0x2ad),'KisIm':function(_0x217eee){return _0x47b4e4['eSeoh'](_0x217eee);},'awVQz':function(_0x2fe27a,_0x49eb67){return _0x47b4e4['HftWX'](_0x2fe27a,_0x49eb67);},'xcXOl':_0x47b4e4['lHiPF'],'KrJQC':_0x47b4e4['NbSOX'],'Mkiht':'Install\x20for\x20OpenCode\x20instead\x20of\x20Claude\x20Code','RsgUA':function(_0x37d7dc,_0x42b964){const _0x5d1971=_0x15c0ad;return _0x47b4e4[_0x5d1971(0x26c)](_0x37d7dc,_0x42b964);},'VMPsO':function(_0x5d60b6,_0x40d986,_0x17c5d5){const _0x391adf=_0x15c0ad;return _0x47b4e4[_0x391adf(0x1c4)](_0x5d60b6,_0x40d986,_0x17c5d5);},'HmKVE':function(_0x52ee08,_0x5222b2){return _0x52ee08(_0x5222b2);}};return _0x3be51e['usage'](_0x15c0ad(0x1f2))[_0x15c0ad(0x296)]('tokenOrSubcommand',{'type':_0x15c0ad(0x303),'description':'Subcommand\x20or\x20API\x20token\x20(rngr_...)'})[_0x15c0ad(0x257)](_0x15c0ad(0x1cb),'Run\x20full\x20interactive\x20setup',_0x13fb4c=>{const _0x4cfe41=_0x15c0ad;return _0x13fb4c['option']('token',{'type':_0x36f0a4[_0x4cfe41(0x1bc)],'description':'Ranger\x20API\x20token'})['option']('skip-chromium',{'type':_0x36f0a4['EvXoF'],'description':_0x36f0a4[_0x4cfe41(0x182)],'default':![]})[_0x4cfe41(0x313)](_0x4cfe41(0x19c),{'type':'boolean','description':_0x4cfe41(0x329),'default':![]})[_0x4cfe41(0x313)](_0x36f0a4[_0x4cfe41(0x212)],{'type':_0x36f0a4[_0x4cfe41(0x241)],'description':'Install\x20OS-level\x20dependencies\x20for\x20Chromium','default':![]})[_0x4cfe41(0x313)]('scope',{'type':'string','choices':[_0x36f0a4[_0x4cfe41(0x2ab)]],'hidden':!![],'description':_0x36f0a4[_0x4cfe41(0x27e)]})[_0x4cfe41(0x313)](_0x36f0a4[_0x4cfe41(0x1f6)],{'type':_0x36f0a4['RrwHg'],'description':_0x36f0a4[_0x4cfe41(0x2c0)]})[_0x4cfe41(0x313)](_0x36f0a4['cShGy'],{'type':_0x36f0a4['EvXoF'],'description':_0x36f0a4[_0x4cfe41(0x2fc)],'default':![]})['option'](_0x4cfe41(0x213),{'type':_0x4cfe41(0x2d5),'description':'Install\x20for\x20OpenCode\x20instead\x20of\x20Claude\x20Code','default':![]})['option'](_0x36f0a4['OvrIn'],{'type':_0x4cfe41(0x2d5),'description':_0x36f0a4['qsMxL'],'default':![]})['option'](_0x36f0a4['sWNIr'],{'type':_0x36f0a4[_0x4cfe41(0x241)],'description':'Bootstrap\x20CLI\x20auth\x20via\x20an\x20MCP\x20auth\x20server','default':![]})[_0x4cfe41(0x313)](_0x36f0a4[_0x4cfe41(0x280)],{'type':_0x36f0a4[_0x4cfe41(0x241)],'description':'Alias\x20for\x20--mcp-bootstrap','default':![]});},async _0xd0e941=>{const _0x1b23af=_0x15c0ad;(_0xd0e941[_0x47b4e4['TrpaE']]||_0xd0e941[_0x1b23af(0x2ad)])&&await _0x47b4e4['kuuQY'](withTelemetry,_0x1b23af(0x20b),()=>mcpBootstrap()),await _0x47b4e4[_0x1b23af(0x227)](withTelemetry,_0x1b23af(0x24e),_0x1449e2=>start(_0xd0e941['token'],{'skipChromium':_0xd0e941['skip-chromium'],'skipAuth':_0xd0e941[_0x1b23af(0x19c)],'withDeps':_0xd0e941['with-deps'],'scope':_0xd0e941['scope'],'url':_0xd0e941['url'],'force':_0xd0e941[_0x1b23af(0x1a3)],'opencode':_0xd0e941['opencode'],'allowInsecureLocalhost':_0xd0e941['allow-insecure-localhost']},_0x1449e2));})['command'](_0x15c0ad(0x2ee),_0x47b4e4['cxyuH'],_0xa88b29=>{const _0x5b7603=_0x15c0ad;return _0xa88b29[_0x5b7603(0x313)]('with-deps',{'type':_0x47b4e4[_0x5b7603(0x29d)],'description':_0x5b7603(0x205),'default':![]});},async _0x28d81e=>{const _0x542a90=_0x15c0ad;await withTelemetry(_0x542a90(0x264),()=>ensureChromium(_0x28d81e['with-deps']));})['command'](_0x47b4e4[_0x15c0ad(0x24a)],_0x47b4e4[_0x15c0ad(0x2a0)],_0x1313c8=>{const _0x2bb951=_0x15c0ad;return _0x1313c8['option'](_0x47b4e4[_0x2bb951(0x27c)],{'type':_0x47b4e4[_0x2bb951(0x277)],'description':_0x2bb951(0x2ed)})['option'](_0x47b4e4['bGbvm'],{'type':'boolean','description':'Authenticate\x20via\x20MCP\x20proxy','default':![]});},async _0xabdce3=>{const _0x33a27c=_0x15c0ad;await _0x47b4e4['PuUtU'](withTelemetry,_0x47b4e4[_0x33a27c(0x1e3)],async()=>{const _0x46e696=_0x33a27c;if(_0xabdce3['mcp']){await _0x36f0a4[_0x46e696(0x27d)](mcpBootstrap);const _0x582617=await refreshCliToken();if(!_0x582617)throw new Error(_0x46e696(0x2ff));const _0x47b315=await getCurrentUser(_0x582617);if(!_0x47b315[_0x46e696(0x1af)])throw new Error(_0x46e696(0x198)+_0x47b315['error']);console['log'](_0x46e696(0x193)+_0x47b315['user']['organizationName']);return;}await _0x36f0a4['awVQz'](authenticate,_0xabdce3['token']);});})['command'](_0x47b4e4['OICBB'],_0x47b4e4[_0x15c0ad(0x2f1)],_0x27b9b4=>{const _0x3868b2=_0x15c0ad;return _0x27b9b4['option'](_0x3868b2(0x2ef),{'type':_0x3868b2(0x303),'choices':[_0x36f0a4[_0x3868b2(0x2ab)],_0x3868b2(0x178)],'description':_0x36f0a4[_0x3868b2(0x328)]})[_0x3868b2(0x313)](_0x36f0a4[_0x3868b2(0x1ba)],{'type':_0x36f0a4['EvXoF'],'description':_0x36f0a4['Mkiht'],'default':![]});},async _0x415833=>{const _0x12ea47=_0x15c0ad;await _0x47b4e4[_0x12ea47(0x227)](withTelemetry,'setup:skills',async()=>{const _0x488647=_0x12ea47,_0x42f9fb=_0x415833['scope'];if(_0x415833['opencode']){const _0x3710d4=await _0x36f0a4[_0x488647(0x2dd)](ensureOpencodePluginConfig,_0x42f9fb);_0x3710d4&&await _0x36f0a4['VMPsO'](installSkill,_0x488647(0x2e6),{'level':_0x3710d4['scope'],'cliVersion':getCurrentVersion(),'platform':_0x36f0a4[_0x488647(0x1ba)]});}else await _0x36f0a4['awVQz'](ensureClaudePlugin,_0x42f9fb),await _0x36f0a4[_0x488647(0x224)](ensureClaudeSkills,_0x42f9fb);});})[_0x15c0ad(0x257)](_0x47b4e4['qRauC'],'Set\x20up\x20a\x20local\x20browser\x20profile',_0x47f9d7=>{const _0x2b4bde=_0x15c0ad;return _0x47f9d7['option'](_0x47b4e4[_0x2b4bde(0x24f)],{'type':_0x47b4e4['BRNPi'],'choices':[_0x47b4e4[_0x2b4bde(0x279)]],'description':_0x47b4e4[_0x2b4bde(0x235)]})[_0x2b4bde(0x313)](_0x2b4bde(0x18c),{'type':_0x47b4e4[_0x2b4bde(0x277)],'description':_0x47b4e4[_0x2b4bde(0x1fb)]})[_0x2b4bde(0x313)](_0x2b4bde(0x19c),{'type':_0x47b4e4['epugu'],'description':'Skip\x20browser\x20authentication','default':![]})['option'](_0x47b4e4[_0x2b4bde(0x2b3)],{'type':_0x47b4e4[_0x2b4bde(0x29d)],'description':_0x2b4bde(0x1e6),'default':![]})['option'](_0x47b4e4[_0x2b4bde(0x327)],{'type':_0x2b4bde(0x2d5),'description':_0x47b4e4['VJImP'],'default':![]});},async _0x31ca10=>{const _0x22a5b4=_0x15c0ad,_0x45b33c=_0x31ca10['scope'];_0x47b4e4['eVotf'](_0x45b33c,undefined)&&_0x45b33c!==_0x47b4e4['XimuY']&&(console['error'](_0x47b4e4[_0x22a5b4(0x25f)]('ranger\x20setup\x20profiles\x20--scope='+_0x45b33c+_0x22a5b4(0x23a),'Setup\x20always\x20installs\x20at\x20user\x20scope\x20now.\x20')+_0x22a5b4(0x194)),process['exit'](0x1)),await _0x47b4e4['pcIZe'](withTelemetry,_0x47b4e4[_0x22a5b4(0x27f)],_0x382cc6=>ensureLocalEnv({'url':_0x31ca10['url'],'force':_0x31ca10['force'],'allowInsecureLocalhost':_0x31ca10[_0x22a5b4(0x2c1)],'scope':'user'},_0x382cc6));})['option']('skip-chromium',{'type':_0x15c0ad(0x2d5),'description':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','default':![]})[_0x15c0ad(0x313)](_0x47b4e4[_0x15c0ad(0x24f)],{'type':_0x15c0ad(0x303),'choices':[_0x47b4e4['XimuY']],'hidden':!![],'description':_0x47b4e4[_0x15c0ad(0x235)]})[_0x15c0ad(0x313)](_0x47b4e4[_0x15c0ad(0x31a)],{'type':_0x47b4e4[_0x15c0ad(0x277)],'description':_0x47b4e4[_0x15c0ad(0x200)]})[_0x15c0ad(0x313)](_0x47b4e4['VhSYD'],{'type':_0x47b4e4['epugu'],'description':_0x47b4e4['KTjfy'],'default':![]})['option']('opencode',{'type':'boolean','description':_0x15c0ad(0x1ec),'default':![]})[_0x15c0ad(0x313)]('allow-insecure-localhost',{'type':'boolean','description':_0x47b4e4[_0x15c0ad(0x2b2)],'default':![]})['option']('mcp-bootstrap',{'type':_0x47b4e4[_0x15c0ad(0x29d)],'description':_0x47b4e4['nWgrN'],'default':![]})['option'](_0x47b4e4['qZmbk'],{'type':_0x47b4e4['epugu'],'description':_0x47b4e4['FYIiL'],'default':![]})['option']('with-deps',{'type':_0x15c0ad(0x2d5),'description':'Install\x20OS-level\x20dependencies\x20for\x20Chromium\x20(apt\x20packages\x20for\x20Debian/Ubuntu\x20containers)','default':![]})[_0x15c0ad(0x313)]('token',{'type':_0x47b4e4[_0x15c0ad(0x277)],'hidden':!![],'description':_0x15c0ad(0x2af)});},async _0x380db7=>{const _0x58f41f=_0x1ecff4,_0x538ef8=_0x380db7['tokenOrSubcommand'],_0x57611e=_0x380db7['token']??_0x538ef8;_0x380db7[_0x47b4e4[_0x58f41f(0x270)]]&&await _0x47b4e4[_0x58f41f(0x2ce)](withTelemetry,'mcp-bootstrap',()=>mcpBootstrap()),await _0x47b4e4['UObGf'](withTelemetry,_0x58f41f(0x2e3),_0x25084a=>start(_0x57611e,{'skipChromium':_0x380db7['skip-chromium'],'skipAuth':_0x380db7['skip-auth'],'withDeps':_0x380db7['with-deps'],'scope':_0x380db7['scope'],'url':_0x380db7['url'],'force':_0x380db7[_0x58f41f(0x1a3)],'opencode':_0x380db7[_0x58f41f(0x213)],'allowInsecureLocalhost':_0x380db7[_0x58f41f(0x2c1)]},_0x25084a));})['command']('setup-ci\x20<token>',_0x1ecff4(0x1dc),_0x5a0e73=>{const _0xe44bd0=_0x1ecff4;return _0x5a0e73['positional'](_0x47b4e4[_0xe44bd0(0x27c)],{'type':_0x47b4e4['BRNPi'],'description':_0x47b4e4[_0xe44bd0(0x282)],'demandOption':!![]})['option'](_0x47b4e4[_0xe44bd0(0x2b6)],{'type':_0x47b4e4[_0xe44bd0(0x277)],'description':_0x47b4e4['zSDAe']})[_0xe44bd0(0x313)]('base-url',{'type':_0xe44bd0(0x303),'description':'Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)'})[_0xe44bd0(0x313)](_0xe44bd0(0x24d),{'type':_0x47b4e4[_0xe44bd0(0x29d)],'description':_0xe44bd0(0x1d4),'default':![]});},async _0xc75b0a=>{const _0x3f8033=_0x1ecff4;await withTelemetry('setup-ci',_0x1d30a5=>setupCi(_0xc75b0a['token'],{'profile':_0xc75b0a['profile'],'baseUrl':_0xc75b0a[_0x3f8033(0x2d1)],'skipChromium':_0xc75b0a[_0x3f8033(0x24d)]},_0x1d30a5));})['command'](_0x47b4e4[_0x1ecff4(0x24a)],'Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)',()=>{},async()=>{const _0x5ca784=_0x1ecff4;await _0x47b4e4[_0x5ca784(0x18f)](withTelemetry,_0x47b4e4[_0x5ca784(0x24a)],()=>login());})[_0x1ecff4(0x257)]('skillup',_0x1ecff4(0x19e),_0x34c5c4=>{const _0x2c21b9=_0x1ecff4;return _0x34c5c4['option']('opencode',{'type':_0x47b4e4[_0x2c21b9(0x29d)],'description':'Install\x20skills\x20for\x20OpenCode','default':![]})['option'](_0x47b4e4[_0x2c21b9(0x24f)],{'type':'string','choices':[_0x2c21b9(0x23b),_0x47b4e4['yDCZQ']],'description':_0x47b4e4['RZZGq']});},async _0x5ab0d2=>{const _0x3c7e91=Boolean(_0x5ab0d2['opencode']);await withTelemetry('skillup',()=>skillup({'autoInstall':_0x5ab0d2['scope'],'platform':_0x3c7e91?'opencode':'claude'}));})[_0x1ecff4(0x257)]('clean',_0x1ecff4(0x1b3),()=>{},async()=>{const _0x5a74eb=_0x1ecff4;await withTelemetry(_0x47b4e4[_0x5a74eb(0x2c7)],()=>clean());})['command'](['profile',_0x47b4e4['qRauC']],'Manage\x20profiles',_0xdc06ee=>{const _0x57f7d5=_0x1ecff4,_0x58a568={'lmwQE':_0x47b4e4['ggTRw'],'rVWfl':_0x47b4e4[_0x57f7d5(0x277)],'HzGcF':_0x47b4e4['pXwFz'],'ojrqn':_0x47b4e4['RsXAe'],'qfZhW':_0x47b4e4[_0x57f7d5(0x1df)],'ZWXky':_0x57f7d5(0x2c1),'TEXPp':_0x47b4e4['epugu'],'jngom':function(_0xb91207,_0x7602e){const _0x543d62=_0x57f7d5;return _0x47b4e4[_0x543d62(0x2a9)](_0xb91207,_0x7602e);},'pONYG':'not_configured','fjqaD':_0x47b4e4[_0x57f7d5(0x23d)],'pUxdD':function(_0x459fda,_0x270fcd,_0x3b9656){return _0x47b4e4['KYwZM'](_0x459fda,_0x270fcd,_0x3b9656);},'uVxsb':_0x47b4e4['vNjwp'],'TaLVf':function(_0x53efab,_0x5efc7d,_0x9618f3){return _0x53efab(_0x5efc7d,_0x9618f3);},'VdlUx':'profile\x20migrate','VpjGH':_0x47b4e4['rOuQe'],'eklrx':function(_0x54c8d9,_0x53bdee,_0x36bb02){return _0x47b4e4['dLeMj'](_0x54c8d9,_0x53bdee,_0x36bb02);},'tFBrv':function(_0x5dd805,_0x5aeab5,_0x2cd11f){return _0x5dd805(_0x5aeab5,_0x2cd11f);},'aEgoe':_0x47b4e4[_0x57f7d5(0x263)],'jRfnv':_0x57f7d5(0x272),'CVINV':_0x47b4e4[_0x57f7d5(0x2e7)],'ytaZq':'list\x20<profile>','dawzH':_0x47b4e4['onKlk'],'KBOeu':_0x47b4e4[_0x57f7d5(0x249)],'OhPfG':_0x47b4e4[_0x57f7d5(0x295)],'zZOjS':_0x47b4e4[_0x57f7d5(0x268)],'ixZuQ':_0x47b4e4[_0x57f7d5(0x2f8)]};return _0xdc06ee[_0x57f7d5(0x1f1)](PROFILE_HELP)[_0x57f7d5(0x257)](_0x57f7d5(0x255),'Add\x20profile\x20configuration',_0x1dd445=>{const _0x10b2c4=_0x57f7d5;return _0x1dd445[_0x10b2c4(0x296)](_0x47b4e4[_0x10b2c4(0x261)],{'type':'string','description':_0x47b4e4['xUKEK'],'demandOption':!![]})[_0x10b2c4(0x313)]('ci',{'type':_0x47b4e4['epugu'],'description':'Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','default':![]})['option'](_0x47b4e4[_0x10b2c4(0x30d)],{'type':_0x47b4e4[_0x10b2c4(0x29d)],'description':_0x10b2c4(0x188),'default':![]})['option']('url',{'type':_0x47b4e4[_0x10b2c4(0x277)],'description':_0x10b2c4(0x29e)})['option']('force',{'type':_0x47b4e4['epugu'],'description':_0x47b4e4['KTjfy'],'default':![]})['option']('cdp-endpoint',{'type':_0x47b4e4[_0x10b2c4(0x277)],'description':'CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.'})[_0x10b2c4(0x313)](_0x47b4e4['muqvG'],{'type':'boolean','description':_0x47b4e4[_0x10b2c4(0x2b2)],'default':![]})[_0x10b2c4(0x313)]('safe-mode',{'type':'boolean','description':_0x47b4e4[_0x10b2c4(0x1fa)],'default':![]})[_0x10b2c4(0x313)](_0x47b4e4[_0x10b2c4(0x1f8)],{'type':_0x47b4e4[_0x10b2c4(0x277)],'array':!![],'description':_0x10b2c4(0x1f5)})['option']('scope',{'type':_0x47b4e4['BRNPi'],'choices':[_0x47b4e4[_0x10b2c4(0x279)],_0x47b4e4[_0x10b2c4(0x2fd)]],'description':_0x47b4e4[_0x10b2c4(0x204)]})['option'](_0x47b4e4['MHDgZ'],{'type':'boolean','alias':'y','description':_0x47b4e4['nXlJQ'],'default':![]});},async _0x2650a4=>{const _0x2d142f=_0x57f7d5;await withTelemetry(_0x2d142f(0x30f),_0x2f1646=>addEnv(_0x2650a4[_0x2d142f(0x29f)],{'ci':_0x2650a4['ci'],'skipAuth':_0x2650a4[_0x2d142f(0x19c)],'url':_0x2650a4[_0x2d142f(0x18c)],'force':_0x2650a4['force'],'cdpEndpoint':_0x2650a4['cdp-endpoint'],'allowInsecureLocalhost':_0x2650a4[_0x2d142f(0x2c1)],'safeMode':_0x2650a4[_0x2d142f(0x1bd)],'setupHeader':_0x2650a4['setup-header'],'scope':_0x2650a4['scope'],'yes':_0x2650a4[_0x2d142f(0x1b8)]},_0x2f1646),{'isElectron':Boolean(_0x2650a4['cdp-endpoint'])});})[_0x57f7d5(0x257)]('use\x20<profile-name>',_0x47b4e4['gzGyT'],_0x4c50ab=>{const _0x20d88f=_0x57f7d5;return _0x4c50ab[_0x20d88f(0x296)](_0x58a568[_0x20d88f(0x1f0)],{'type':_0x58a568['rVWfl'],'description':_0x20d88f(0x226),'demandOption':!![]});},async _0x11aa62=>{await withTelemetry(_0x47b4e4['JiYHx'],()=>useEnv(_0x11aa62['profile-name']));})[_0x57f7d5(0x257)]('encrypt-auth\x20<profile>',_0x47b4e4['UpwFH'],_0x72cdc1=>{const _0x27260d=_0x57f7d5;return _0x72cdc1[_0x27260d(0x296)](_0x58a568['HzGcF'],{'type':_0x27260d(0x303),'description':_0x58a568['ojrqn'],'demandOption':!![]});},async _0x38fbad=>{const _0x1517c7=_0x57f7d5;await withTelemetry(_0x58a568[_0x1517c7(0x2ac)],()=>authEncrypt(_0x38fbad['profile']));})['command']('ls',_0x47b4e4['GIRBn'],()=>{},async()=>{const _0x4d9823=_0x57f7d5;await withTelemetry(_0x47b4e4[_0x4d9823(0x21a)],()=>envList());})['command'](_0x47b4e4['ycEvc'],_0x47b4e4['EWVrj'],_0x9fea0c=>{const _0xc709ca=_0x57f7d5;return _0x9fea0c['positional']('profile-name',{'type':_0x58a568[_0xc709ca(0x1cc)],'description':'Name\x20of\x20the\x20profile\x20to\x20update','demandOption':!![]})['option'](_0x58a568[_0xc709ca(0x1da)],{'type':_0x58a568['TEXPp'],'description':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)'});},async _0x142d9d=>{const _0x415485=_0x57f7d5;await withTelemetry('profile\x20update',_0x1ca135=>updateEnv(_0x142d9d[_0x415485(0x29f)],_0x1ca135,{'allowInsecureLocalhost':_0x142d9d['allow-insecure-localhost']}));})[_0x57f7d5(0x257)]('login\x20<name>',![],_0x538ea6=>{const _0x7bb05b=_0x57f7d5;return _0x538ea6[_0x7bb05b(0x296)](_0x47b4e4['pjtVs'],{'type':'string','description':_0x47b4e4['yvTMX'],'demandOption':!![]});},async _0x57a2c1=>{const _0x36d0c8=_0x57f7d5;await _0x58a568[_0x36d0c8(0x305)](withTelemetry,_0x58a568[_0x36d0c8(0x290)],async()=>{const _0x264237=_0x36d0c8,_0x3f49b1=process[_0x264237(0x197)]['RANGER_TEST_USERNAME'],_0x24ed73=process['env']['RANGER_TEST_PASSWORD'];(!_0x3f49b1||!_0x24ed73)&&(console[_0x264237(0x2d4)](_0x264237(0x2fa)),process[_0x264237(0x291)](0x1));const _0x23f9eb=_0x57a2c1[_0x264237(0x252)],_0x115f64=await serverSideLogin(_0x23f9eb,{'force':!![]});_0x58a568[_0x264237(0x2d6)](_0x115f64[_0x264237(0x2be)],_0x58a568['pONYG'])&&(console[_0x264237(0x2d4)](_0x264237(0x17a)),process[_0x264237(0x291)](0x1)),_0x115f64[_0x264237(0x2be)]===_0x58a568[_0x264237(0x1d2)]&&(console['error']('Login\x20failed:\x20'+(_0x115f64['error']??_0x264237(0x302))),_0x115f64['test_output']&&console['error'](_0x115f64['test_output']),process[_0x264237(0x291)](0x1)),console['log']('✓\x20Login\x20succeeded\x20for\x20\x27'+_0x23f9eb+_0x264237(0x1c2));});})[_0x57f7d5(0x257)](_0x47b4e4[_0x57f7d5(0x186)],_0x47b4e4['bmtnF'],_0x534393=>{const _0x1c59e8=_0x57f7d5;return _0x534393['positional'](_0x47b4e4['ggTRw'],{'type':_0x47b4e4[_0x1c59e8(0x277)],'description':_0x47b4e4[_0x1c59e8(0x2c6)]})[_0x1c59e8(0x313)](_0x1c59e8(0x1cb),{'type':'boolean','description':_0x1c59e8(0x18e),'default':![]})['option']('dry-run',{'type':'boolean','description':_0x1c59e8(0x1d3),'default':![]})[_0x1c59e8(0x313)](_0x47b4e4[_0x1c59e8(0x216)],{'type':_0x1c59e8(0x2d5),'alias':'y','description':_0x1c59e8(0x1a9),'default':![]})[_0x1c59e8(0x313)]('save-creds',{'type':_0x47b4e4['epugu'],'description':'Store\x20RANGER_TEST_USERNAME/PASSWORD\x20env\x20values\x20on\x20the\x20migrated\x20profile.','default':![]});},async _0x1c7dc0=>{const _0xfca79b=_0x57f7d5;await _0x58a568['TaLVf'](withTelemetry,_0x58a568['VdlUx'],_0x4e9497=>migrateProfile({'profileName':_0x1c7dc0['profile-name'],'all':_0x1c7dc0['all'],'dryRun':_0x1c7dc0[_0xfca79b(0x284)],'yes':_0x1c7dc0[_0xfca79b(0x1b8)],'saveCreds':_0x1c7dc0[_0xfca79b(0x274)]},_0x4e9497));})['command'](_0x47b4e4[_0x57f7d5(0x26a)],_0x47b4e4['Deokr'],_0x658d7b=>{const _0x268c94=_0x57f7d5,_0x27e6a6={'ZpegO':_0x58a568['HzGcF'],'GhPVK':_0x58a568['rVWfl'],'tFetI':'key','IrmUm':function(_0x52cfc2,_0x2acbd0,_0x56b538){return _0x52cfc2(_0x2acbd0,_0x56b538);},'cBsXe':_0x58a568['aEgoe'],'XQFsx':_0x58a568[_0x268c94(0x2a5)]};return _0x658d7b['usage'](PROFILE_CONFIG_HELP)['command'](_0x58a568['CVINV'],'Set\x20a\x20config\x20value',_0x2d4c1c=>{const _0x20e4d6=_0x268c94;return _0x2d4c1c['positional'](_0x27e6a6[_0x20e4d6(0x1be)],{'type':_0x27e6a6['GhPVK'],'description':_0x20e4d6(0x1f7),'demandOption':!![]})[_0x20e4d6(0x296)](_0x27e6a6['tFetI'],{'type':_0x27e6a6['GhPVK'],'description':'Config\x20key\x20(e.g.,\x20userAgent,\x20headers.X-Custom)','demandOption':!![]})['positional'](_0x20e4d6(0x278),{'type':_0x27e6a6[_0x20e4d6(0x1e7)],'description':'Config\x20value','demandOption':!![]});},async _0x259949=>{const _0x2a70d1=_0x268c94;await _0x27e6a6[_0x2a70d1(0x283)](withTelemetry,_0x27e6a6['cBsXe'],()=>configSet(_0x259949['profile'],_0x259949['key'],_0x259949[_0x2a70d1(0x278)]));})[_0x268c94(0x257)](_0x268c94(0x253),_0x268c94(0x1ac),_0xbe6dc4=>{const _0xbbe234=_0x268c94;return _0xbe6dc4[_0xbbe234(0x296)]('profile',{'type':_0x58a568[_0xbbe234(0x1cc)],'description':_0x58a568['ojrqn'],'demandOption':!![]})[_0xbbe234(0x296)](_0x58a568['VpjGH'],{'type':_0x58a568['rVWfl'],'description':_0xbbe234(0x22c),'demandOption':!![]});},async _0x59249f=>{const _0xef3c4e=_0x268c94;await withTelemetry(_0x27e6a6[_0xef3c4e(0x2d0)],()=>configGet(_0x59249f[_0xef3c4e(0x262)],_0x59249f[_0xef3c4e(0x1fd)]));})[_0x268c94(0x257)](_0x58a568[_0x268c94(0x28d)],'List\x20all\x20config\x20for\x20a\x20profile',_0x133d53=>{const _0x1b6dd1=_0x268c94;return _0x133d53['positional'](_0x1b6dd1(0x262),{'type':_0x1b6dd1(0x303),'description':_0x1b6dd1(0x1f7),'demandOption':!![]});},async _0x1c84e3=>{const _0xd57e48=_0x268c94;await _0x58a568['eklrx'](withTelemetry,_0xd57e48(0x1f3),()=>configList(_0x1c84e3[_0xd57e48(0x262)]));})['command'](_0x58a568['dawzH'],_0x58a568['KBOeu'],_0x33559c=>{const _0x40a145=_0x268c94;return _0x33559c[_0x40a145(0x296)](_0x58a568['HzGcF'],{'type':_0x58a568[_0x40a145(0x1cc)],'description':'Profile\x20name','demandOption':!![]})['positional']('key',{'type':_0x40a145(0x303),'description':_0x40a145(0x1ff),'demandOption':!![]});},async _0x44c3e0=>{await withTelemetry('profile\x20config\x20unset',()=>configUnset(_0x44c3e0['profile'],_0x44c3e0['key']));})[_0x268c94(0x257)](_0x58a568[_0x268c94(0x256)],_0x58a568[_0x268c94(0x269)],_0xead4b2=>{const _0x2cb378=_0x268c94;return _0xead4b2[_0x2cb378(0x296)](_0x2cb378(0x262),{'type':_0x27e6a6['GhPVK'],'description':_0x2cb378(0x1f7),'demandOption':!![]});},async _0x1479fe=>{const _0x31a4d8=_0x268c94;await _0x58a568['tFBrv'](withTelemetry,_0x31a4d8(0x191),()=>configReset(_0x1479fe[_0x31a4d8(0x262)]));})['demandCommand'](0x1,_0x58a568['ixZuQ']);})[_0x57f7d5(0x1a4)](0x1,_0x57f7d5(0x177));})['command'](_0x47b4e4[_0x1ecff4(0x180)],_0x47b4e4['PNCDi'],()=>{},async()=>{const _0x27eae6=_0x1ecff4;await withTelemetry(_0x27eae6(0x2be),()=>status());})['command'](_0x47b4e4['DqQGe'],_0x47b4e4['aKBWZ'],()=>{},async()=>{await _0x47b4e4['odOqX'](withTelemetry,'update',()=>update());})[_0x1ecff4(0x257)](_0x1ecff4(0x28a),_0x47b4e4['qBZGz'],()=>{},async()=>{const _0x8d27a6=_0x1ecff4;await _0x47b4e4['PuUtU'](withTelemetry,_0x8d27a6(0x28a),async()=>{const _0x208eb5=_0x8d27a6,_0xceed66=await getToken();if(!_0xceed66)throw new Error(_0x47b4e4['vtuKG']);console[_0x208eb5(0x215)](_0xceed66);});})[_0x1ecff4(0x257)]('go','Verify\x20a\x20scenario\x20in\x20the\x20browser.\x20Uses\x20the\x20active\x20profile\x20by\x20default;\x20pass\x20--profile\x20to\x20switch.',_0x1e131c=>{const _0x336f2f=_0x1ecff4;return _0x1e131c['option']('feature',{'type':_0x47b4e4['BRNPi'],'description':_0x336f2f(0x308)})[_0x336f2f(0x313)](_0x336f2f(0x262),{'type':_0x336f2f(0x303),'description':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile;\x20also\x20reads\x20RANGER_PROFILE)'})['option'](_0x336f2f(0x2c9),{'type':_0x47b4e4['BRNPi'],'description':'Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)'})['option']('scenario',{'type':'number','description':_0x47b4e4['aMIcw']})['option'](_0x47b4e4[_0x336f2f(0x27b)],{'type':_0x47b4e4[_0x336f2f(0x277)],'description':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard).\x20Also\x20respects\x20RANGER_START_PATH.'})['option']('base-url',{'type':_0x47b4e4[_0x336f2f(0x277)],'description':'Override\x20the\x20profile\x20base\x20URL\x20for\x20this\x20run\x20(e.g.,\x20https://localhost:3003).\x20Also\x20respects\x20RANGER_BASE_URL.'})[_0x336f2f(0x313)]('model',{'type':_0x47b4e4[_0x336f2f(0x277)],'description':'Model\x20to\x20use\x20for\x20verification\x20(e.g.,\x20opus,\x20sonnet,\x20claude-opus-4-6,\x20anthropic.claude-opus-4-6-v1).\x20When\x20RANGER_BYOK=true,\x20leaving\x20this\x20unset\x20lets\x20Claude/Bedrock\x20choose\x20from\x20local\x20config.'})['option']('headed',{'type':_0x47b4e4[_0x336f2f(0x29d)],'description':'Force\x20headed\x20browser\x20for\x20this\x20run\x20only\x20(does\x20not\x20change\x20profile\x20config)','default':![]})['option']('debug-outcome',{'type':_0x336f2f(0x303),'hidden':!![],'choices':[_0x47b4e4[_0x336f2f(0x319)],_0x47b4e4[_0x336f2f(0x271)],_0x336f2f(0x2d7),_0x47b4e4[_0x336f2f(0x23d)],_0x336f2f(0x1a1)]})['option'](_0x47b4e4['Afksy'],{'type':_0x47b4e4['epugu'],'hidden':!![]})['option'](_0x336f2f(0x197),{'type':_0x336f2f(0x303),'hidden':!![]})['option'](_0x47b4e4['MhaKK'],{'type':'string','hidden':!![]})[_0x336f2f(0x313)](_0x336f2f(0x1a0),{'type':'number','hidden':!![]});},async _0xd3e19e=>{await runGoCommand(_0xd3e19e);})['command'](_0x47b4e4['SNtTr'],![],_0x2db65e=>{const _0xa74784=_0x1ecff4,_0x227b75={'zsvOt':_0x47b4e4[_0xa74784(0x2b6)],'EGlou':_0x47b4e4[_0xa74784(0x277)],'WzAdd':_0xa74784(0x1f7)};return _0x2db65e[_0xa74784(0x257)](_0xa74784(0x2e2),![],_0x21840a=>{const _0x37718a=_0xa74784;return _0x21840a['positional'](_0x227b75[_0x37718a(0x30b)],{'type':_0x227b75[_0x37718a(0x2f5)],'description':_0x227b75['WzAdd'],'demandOption':!![]});},async _0x286703=>{const _0x24d6dc=_0xa74784;_0x47b4e4['QlMkC'](warnRenamed,'ranger\x20auth\x20encrypt',_0x47b4e4['ThiAS']),await _0x47b4e4[_0x24d6dc(0x203)](authEncrypt,_0x286703[_0x24d6dc(0x262)]);})[_0xa74784(0x1a4)](0x1,'You\x20must\x20specify\x20an\x20auth\x20subcommand');},()=>{})['command'](_0x47b4e4[_0x1ecff4(0x1eb)],![],_0x62493d=>{const _0x299b46=_0x1ecff4;return _0x62493d[_0x299b46(0x296)](_0x47b4e4[_0x299b46(0x27c)],{'type':_0x47b4e4[_0x299b46(0x277)],'description':_0x47b4e4['lVvEC']})['option']('skip-chromium',{'type':'boolean','description':_0x47b4e4[_0x299b46(0x2c5)],'default':![]})[_0x299b46(0x313)](_0x47b4e4['KEcqW'],{'type':_0x299b46(0x303),'choices':['user'],'hidden':!![],'description':'Reserved\x20—\x20setup\x20always\x20installs\x20at\x20user\x20scope.'})[_0x299b46(0x313)](_0x299b46(0x18c),{'type':'string','description':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)'})[_0x299b46(0x313)](_0x299b46(0x1a3),{'type':_0x47b4e4['epugu'],'description':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','default':![]})['option'](_0x299b46(0x19c),{'type':_0x47b4e4['epugu'],'description':_0x47b4e4[_0x299b46(0x1d6)],'default':![]})['option']('with-deps',{'type':_0x47b4e4[_0x299b46(0x29d)],'description':_0x47b4e4[_0x299b46(0x1b9)],'default':![]});},async _0x5c0962=>{const _0x100543=_0x1ecff4;warnRenamed(_0x100543(0x239),_0x100543(0x1ed)),await _0x47b4e4[_0x100543(0x1c4)](withTelemetry,_0x47b4e4['vwRpz'],_0x25f81b=>start(_0x5c0962[_0x100543(0x323)],{'skipChromium':_0x5c0962[_0x100543(0x24d)],'skipAuth':_0x5c0962['skip-auth'],'withDeps':_0x5c0962[_0x100543(0x1e1)],'scope':_0x5c0962['scope'],'url':_0x5c0962['url'],'force':_0x5c0962[_0x100543(0x1a3)]},_0x25f81b));})['command'](_0x47b4e4[_0x1ecff4(0x2cb)],![],_0x1713ad=>{const _0x6bbb80=_0x1ecff4;return _0x1713ad['option'](_0x47b4e4[_0x6bbb80(0x2d9)],{'type':'string','description':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)'})[_0x6bbb80(0x313)](_0x47b4e4['MhaKK'],{'type':'string','description':_0x47b4e4['nnRxO']})['option'](_0x47b4e4[_0x6bbb80(0x31e)],{'type':_0x47b4e4['NWHTJ'],'description':_0x47b4e4['aMIcw']})[_0x6bbb80(0x313)]('profile',{'type':_0x47b4e4[_0x6bbb80(0x277)],'hidden':!![]})['option']('notes',{'type':_0x47b4e4['BRNPi'],'hidden':!![]})['option'](_0x47b4e4['wQZoH'],{'type':_0x6bbb80(0x299),'hidden':!![]})[_0x6bbb80(0x313)]('start-path',{'type':_0x6bbb80(0x303),'description':_0x47b4e4[_0x6bbb80(0x2a8)]})['option'](_0x47b4e4['ytSqL'],{'type':_0x6bbb80(0x303),'description':_0x47b4e4['diFkm']})['option'](_0x6bbb80(0x195),{'type':_0x47b4e4[_0x6bbb80(0x277)],'hidden':!![]})[_0x6bbb80(0x313)]('headed',{'type':_0x6bbb80(0x2d5),'hidden':!![],'default':![]})['option'](_0x47b4e4[_0x6bbb80(0x31c)],{'type':'string','hidden':!![],'choices':[_0x47b4e4['UJchD'],_0x47b4e4[_0x6bbb80(0x271)],_0x47b4e4[_0x6bbb80(0x294)],_0x6bbb80(0x2ec),_0x6bbb80(0x1a1)]});},async _0x15bc5f=>{const _0x2eec57=_0x1ecff4;await _0x47b4e4[_0x2eec57(0x1f9)](runGoCommand,_0x15bc5f,!![]);})['command'](_0x47b4e4['edPdw'],![],_0x45f968=>{const _0x5e53d7=_0x1ecff4;return _0x45f968[_0x5e53d7(0x296)]('env-name',{'type':_0x47b4e4['BRNPi'],'description':_0x47b4e4['AsOzK'],'demandOption':!![]})['option']('ci',{'type':'boolean','description':_0x47b4e4['QZKOE'],'default':![]})[_0x5e53d7(0x313)]('skip-auth',{'type':_0x47b4e4['epugu'],'description':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','default':![]});},async _0x2bcad6=>{const _0x58878e=_0x1ecff4;warnRenamed('ranger\x20add\x20env',_0x47b4e4[_0x58878e(0x2cd)]),await withTelemetry('add\x20env',_0x59d125=>addEnv(_0x2bcad6['env-name'],{'ci':_0x2bcad6['ci'],'skipAuth':_0x2bcad6['skip-auth']},_0x59d125));})[_0x1ecff4(0x257)](_0x1ecff4(0x300),![],_0x4f00e8=>{const _0x2721c3=_0x1ecff4;return _0x4f00e8[_0x2721c3(0x296)](_0x2721c3(0x232),{'type':_0x2721c3(0x303),'description':_0x47b4e4['RAtiE'],'demandOption':!![]});},async _0x1ce17f=>{const _0xd31f71=_0x1ecff4;warnRenamed('ranger\x20use',_0x47b4e4[_0xd31f71(0x248)]),await withTelemetry(_0x47b4e4['jIoPZ'],()=>useEnv(_0x1ce17f['env-name']));})[_0x1ecff4(0x257)](_0x47b4e4[_0x1ecff4(0x26a)],![],_0x4c475d=>{const _0x21f1be=_0x1ecff4,_0x5eaccd={'rZlnr':'env','fdNsY':_0x21f1be(0x231),'JlBYW':_0x47b4e4[_0x21f1be(0x2bd)],'MTSxa':_0x21f1be(0x22c),'hHlao':_0x47b4e4['BRNPi'],'IkpFQ':_0x47b4e4[_0x21f1be(0x2fe)],'DntFZ':function(_0x1638e3,_0x4d17f1,_0xa04ecf){return _0x1638e3(_0x4d17f1,_0xa04ecf);}};return _0x4c475d[_0x21f1be(0x257)]('set\x20<env>\x20<key>\x20<value>',![],_0x1a91b8=>{const _0x2791da=_0x21f1be;return _0x1a91b8['positional'](_0x47b4e4['IhiTo'],{'type':'string','description':_0x47b4e4['tBCRq'],'demandOption':!![]})[_0x2791da(0x296)]('key',{'type':_0x2791da(0x303),'description':_0x2791da(0x318),'demandOption':!![]})['positional']('value',{'type':'string','description':_0x47b4e4[_0x2791da(0x307)],'demandOption':!![]});},async _0x1ed872=>{const _0x4a901c=_0x21f1be;_0x47b4e4['KYwZM'](warnRenamed,'ranger\x20config\x20set','ranger\x20profile\x20config\x20set'),await withTelemetry(_0x47b4e4[_0x4a901c(0x222)],()=>configSet(_0x1ed872[_0x4a901c(0x197)],_0x1ed872[_0x4a901c(0x1fd)],_0x1ed872['value']));})[_0x21f1be(0x257)](_0x47b4e4['GxbLN'],![],_0x56eb9f=>{const _0x1f021e=_0x21f1be;return _0x56eb9f['positional'](_0x5eaccd[_0x1f021e(0x199)],{'type':'string','description':_0x5eaccd['fdNsY'],'demandOption':!![]})['positional'](_0x5eaccd[_0x1f021e(0x19b)],{'type':'string','description':_0x5eaccd[_0x1f021e(0x321)],'demandOption':!![]});},async _0x589f45=>{const _0x40f731=_0x21f1be;warnRenamed(_0x47b4e4[_0x40f731(0x292)],_0x40f731(0x225)),await _0x47b4e4[_0x40f731(0x1f9)](withTelemetry,_0x47b4e4[_0x40f731(0x2f7)],()=>configGet(_0x589f45[_0x40f731(0x197)],_0x589f45[_0x40f731(0x1fd)]));})[_0x21f1be(0x257)](_0x47b4e4[_0x21f1be(0x2c8)],![],_0x3c9508=>{const _0x4fdc42=_0x21f1be;return _0x3c9508[_0x4fdc42(0x296)](_0x47b4e4[_0x4fdc42(0x2d9)],{'type':'string','description':'Environment\x20name','demandOption':!![]});},async _0x346334=>{const _0x3dee79=_0x21f1be;warnRenamed(_0x47b4e4['UqRfo'],'ranger\x20profile\x20config\x20list'),await withTelemetry('config\x20list',()=>configList(_0x346334[_0x3dee79(0x197)]));})['command']('unset\x20<env>\x20<key>',![],_0x481975=>{const _0xc9b8ea=_0x21f1be;return _0x481975[_0xc9b8ea(0x296)](_0x5eaccd['rZlnr'],{'type':_0x5eaccd['hHlao'],'description':_0x5eaccd['fdNsY'],'demandOption':!![]})[_0xc9b8ea(0x296)](_0x5eaccd[_0xc9b8ea(0x19b)],{'type':'string','description':_0xc9b8ea(0x1ff),'demandOption':!![]});},async _0x28b684=>{const _0xe7a800=_0x21f1be;warnRenamed(_0x5eaccd['IkpFQ'],'ranger\x20profile\x20config\x20unset'),await _0x5eaccd['DntFZ'](withTelemetry,_0xe7a800(0x259),()=>configUnset(_0x28b684['env'],_0x28b684['key']));})['demandCommand'](0x1,'You\x20must\x20specify\x20a\x20config\x20subcommand');})['command'](_0x47b4e4[_0x1ecff4(0x2d9)],![],_0x1a2e4e=>{const _0xd03e2b=_0x1ecff4,_0x21f80e={'FYFpu':'env\x20update'};return _0x1a2e4e[_0xd03e2b(0x257)]('ls',![],()=>{},async()=>{const _0x1542a1=_0xd03e2b;_0x47b4e4['KYwZM'](warnRenamed,'ranger\x20env\x20ls','ranger\x20profile\x20ls'),await _0x47b4e4['dLeMj'](withTelemetry,_0x1542a1(0x22b),()=>envList());})[_0xd03e2b(0x257)](_0xd03e2b(0x30c),![],_0x480034=>{const _0xebe090=_0xd03e2b;return _0x480034[_0xebe090(0x296)](_0xebe090(0x232),{'type':_0xebe090(0x303),'description':'Name\x20of\x20the\x20environment\x20to\x20update','demandOption':!![]});},async _0x397f05=>{const _0x188eae=_0xd03e2b;warnRenamed('ranger\x20env\x20update','ranger\x20profile\x20update'),await withTelemetry(_0x21f80e[_0x188eae(0x1dd)],_0x4d3052=>updateEnv(_0x397f05[_0x188eae(0x232)],_0x4d3052));})['demandCommand'](0x1,_0xd03e2b(0x1d7));})['command'](_0x1ecff4(0x240),![],_0x3df506=>{const _0x21a329=_0x1ecff4,_0x2380e8={'KUPgQ':'current-branch','MYyTX':_0x21a329(0x30e),'WgJrH':_0x47b4e4['lcmia'],'ALVUf':_0x47b4e4[_0x21a329(0x20c)],'WSnFW':_0x47b4e4[_0x21a329(0x196)],'VqalQ':_0x47b4e4[_0x21a329(0x189)],'Unpct':_0x21a329(0x2d5),'tJKWG':function(_0x56df50,_0x1e256c,_0x260534){return _0x56df50(_0x1e256c,_0x260534);},'TqVKw':_0x47b4e4[_0x21a329(0x2ca)],'bzyjI':_0x47b4e4[_0x21a329(0x2aa)],'QpuPR':_0x47b4e4['BRNPi'],'tXNGv':_0x47b4e4[_0x21a329(0x192)],'iaOnc':function(_0x164578,_0x1beb9e,_0x497a57){return _0x47b4e4['PuUtU'](_0x164578,_0x1beb9e,_0x497a57);},'odCXY':_0x21a329(0x31f),'sxbqb':_0x21a329(0x2cc),'uRsgp':_0x47b4e4['cJdhT'],'IYoiw':_0x21a329(0x184),'jzzbg':function(_0x38779f,_0x1c3a6e,_0x4e93fd){const _0x32d8f1=_0x21a329;return _0x47b4e4[_0x32d8f1(0x18f)](_0x38779f,_0x1c3a6e,_0x4e93fd);}};return _0x3df506['command']('create\x20<name>',![],_0x95b27d=>{const _0x27e045=_0x21a329;return _0x95b27d[_0x27e045(0x296)](_0x27e045(0x252),{'type':_0x47b4e4['BRNPi'],'description':'Feature\x20review\x20name','demandOption':!![]})['option'](_0x47b4e4[_0x27e045(0x28b)],{'type':_0x27e045(0x303),'alias':'d','description':_0x27e045(0x2d3)})[_0x27e045(0x313)](_0x47b4e4['ekSVm'],{'type':_0x27e045(0x2a6),'alias':'c','description':_0x47b4e4[_0x27e045(0x2f2)]})['option'](_0x47b4e4['wQZoH'],{'type':_0x27e045(0x2a6),'hidden':!![]});},async _0x382052=>{const _0x5cf117=_0x21a329;_0x47b4e4[_0x5cf117(0x289)](warnRenamed,_0x5cf117(0x218),'ranger\x20create'),_0x47b4e4[_0x5cf117(0x273)](warnFlagRenamed,'ranger\x20create',_0x47b4e4[_0x5cf117(0x1e0)],_0x5cf117(0x1ae));const _0x220ed1=_0x382052[_0x5cf117(0x2f0)]||_0x382052['checklist'];await _0x47b4e4[_0x5cf117(0x227)](withTelemetry,_0x47b4e4[_0x5cf117(0x246)],()=>featureCreate(_0x382052['name'],{'description':_0x382052[_0x5cf117(0x223)],'scenarios':_0x220ed1}));})[_0x21a329(0x257)](_0x47b4e4['DLGcV'],![],_0x337596=>{const _0x2a56cf=_0x21a329;return _0x337596['option'](_0x2380e8[_0x2a56cf(0x1d1)],{'type':'boolean','description':_0x2380e8['MYyTX']})['option'](_0x2380e8[_0x2a56cf(0x298)],{'type':'number','alias':'l','description':_0x2380e8[_0x2a56cf(0x1e8)],'default':0xa})[_0x2a56cf(0x313)]('offset',{'type':_0x2380e8['WSnFW'],'alias':'o','description':_0x2380e8[_0x2a56cf(0x1d8)],'default':0x0})[_0x2a56cf(0x313)](_0x2a56cf(0x1c5),{'type':_0x2380e8[_0x2a56cf(0x314)],'alias':'d','description':_0x2a56cf(0x1c6),'default':![]});},async _0x1ad945=>{const _0x432ace=_0x21a329;_0x2380e8[_0x432ace(0x1e5)](warnRenamed,_0x2380e8[_0x432ace(0x1a5)],'ranger\x20list'),await _0x2380e8['tJKWG'](withTelemetry,_0x2380e8['bzyjI'],()=>featureList({'currentBranch':_0x1ad945['current-branch'],'limit':_0x1ad945['limit'],'offset':_0x1ad945['offset'],'includeDeleted':_0x1ad945['include-deleted']}));})[_0x21a329(0x257)](_0x47b4e4[_0x21a329(0x236)],![],_0x5e3718=>{const _0xb12f9e=_0x21a329;return _0x5e3718['positional']('id',{'type':_0x2380e8['QpuPR'],'description':_0x2380e8[_0xb12f9e(0x1b5)]});},async _0x16a2dd=>{const _0x1b5b06=_0x21a329;warnRenamed(_0x1b5b06(0x1fc),_0x47b4e4['RryRd']),await _0x47b4e4[_0x1b5b06(0x2ce)](withTelemetry,'feature\x20show',()=>featureShow(_0x16a2dd['id']));})['command'](_0x21a329(0x25d),![],_0xdc6e57=>{return _0xdc6e57['positional']('id',{'type':_0x2380e8['QpuPR'],'description':'Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)'});},async _0x48b848=>{const _0x1b0696=_0x21a329;warnRenamed('ranger\x20feature\x20resume','ranger\x20resume'),await _0x47b4e4['NLAkT'](withTelemetry,_0x1b0696(0x17c),()=>featureResume(_0x48b848['id']));})['command'](_0x47b4e4['WGebn'],![],_0xaa2dbe=>{const _0x3d6438=_0x21a329;return _0xaa2dbe[_0x3d6438(0x296)](_0x3d6438(0x223),{'type':_0x47b4e4['BRNPi'],'description':_0x47b4e4[_0x3d6438(0x29a)],'demandOption':!![]})['option']('id',{'type':_0x47b4e4[_0x3d6438(0x277)],'description':_0x47b4e4[_0x3d6438(0x1ca)]});},async _0x62b52c=>{const _0x547eb2=_0x21a329;_0x2380e8[_0x547eb2(0x2c3)](warnRenamed,_0x547eb2(0x208),_0x547eb2(0x28c)),await _0x2380e8['tJKWG'](withTelemetry,_0x547eb2(0x217),()=>featureAddScenario(_0x62b52c['description'],_0x62b52c['id']));})['command'](_0x21a329(0x2f4),![],_0x4ca553=>{const _0x2b29a0=_0x21a329;return _0x4ca553['positional']('id',{'type':_0x2b29a0(0x303),'description':_0x47b4e4['YuUWN']});},async _0x7addf9=>{const _0x25c22f=_0x21a329;_0x47b4e4[_0x25c22f(0x2ce)](warnRenamed,_0x47b4e4['DdXDo'],_0x25c22f(0x254)),await withTelemetry(_0x47b4e4['FFizU'],()=>featureGetReview(_0x7addf9['id']));})[_0x21a329(0x257)](_0x21a329(0x2de),![],_0x4e872b=>{const _0xbf6d=_0x21a329;return _0x4e872b['positional']('id',{'type':'string','description':_0xbf6d(0x32a)});},async _0x1e344a=>{const _0x4e050f=_0x21a329;warnRenamed(_0x2380e8[_0x4e050f(0x2b1)],_0x2380e8['sxbqb']),await _0x2380e8[_0x4e050f(0x1e5)](withTelemetry,_0x2380e8['uRsgp'],()=>featureDelete(_0x1e344a['id']));})['command'](_0x47b4e4['MVtib'],![],_0x5b4376=>{const _0x537101=_0x21a329;return _0x5b4376[_0x537101(0x296)]('id',{'type':_0x47b4e4[_0x537101(0x277)],'description':_0x537101(0x1a6),'demandOption':!![]});},async _0x3e80bf=>{const _0x5260ef=_0x21a329;warnRenamed(_0x2380e8['IYoiw'],'ranger\x20restore'),await _0x2380e8[_0x5260ef(0x1d0)](withTelemetry,_0x5260ef(0x1d5),()=>featureRestore(_0x3e80bf['id']));})[_0x21a329(0x1a4)](0x1,_0x47b4e4['txOAZ']);})[_0x1ecff4(0x257)]('hook',![],_0xf7bb3d=>{const _0x3fdd89=_0x1ecff4,_0x12567e={'NFtug':'session-id','ClPIB':'string','imGOO':_0x47b4e4['cicyq'],'RwjuR':_0x3fdd89(0x17e)};return _0xf7bb3d['command'](_0x47b4e4[_0x3fdd89(0x266)],_0x47b4e4[_0x3fdd89(0x229)],_0x132147=>{const _0x1f811a=_0x3fdd89;return _0x132147[_0x1f811a(0x313)](_0x12567e[_0x1f811a(0x306)],{'type':_0x12567e[_0x1f811a(0x285)],'description':_0x12567e['imGOO']});},async _0x3db4f1=>{const _0x1e7e99=_0x3fdd89;await withTelemetry(_0x12567e['RwjuR'],()=>hook(_0x1e7e99(0x1c1),_0x3db4f1['session-id']));})[_0x3fdd89(0x257)](_0x47b4e4['MTWjR'],_0x47b4e4['GJOAX'],_0x36e838=>{const _0x1e6166=_0x3fdd89;return _0x36e838['option'](_0x12567e['NFtug'],{'type':_0x1e6166(0x303),'description':_0x12567e['imGOO']});},async _0x4fd772=>{const _0x12a6c1=_0x3fdd89;await _0x47b4e4[_0x12a6c1(0x18f)](withTelemetry,_0x47b4e4['zODJH'],()=>hook(_0x12a6c1(0x1d9),_0x4fd772['session-id']));})['option']('name',{'type':_0x3fdd89(0x303),'description':'Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)'})['option'](_0x3fdd89(0x2a7),{'type':_0x47b4e4[_0x3fdd89(0x277)],'description':_0x47b4e4['cicyq']});},async _0x3e2b55=>{const _0x59b763=_0x1ecff4;_0x3e2b55[_0x59b763(0x252)]&&await hook(_0x3e2b55[_0x59b763(0x252)],_0x3e2b55[_0x47b4e4['sVGQr']]);})['demandCommand'](0x1,_0x47b4e4[_0x1ecff4(0x220)])[_0x1ecff4(0x233)]()[_0x1ecff4(0x26f)](async(_0x44d74d,_0xf71d0,_0x5c6665)=>{const _0x34315e=_0x1ecff4,_0x488187=sanitizeArgs(process[_0x34315e(0x187)][_0x34315e(0x201)](0x2)),_0x4fe0d5=_0x47b4e4[_0x34315e(0x227)](getErrorType,_0x44d74d,_0xf71d0);if(_0x44d74d&&_0x44d74d[_0x34315e(0x1cf)](_0x47b4e4['zumdK'])){const _0x40ba42=process[_0x34315e(0x187)][0x2];console[_0x34315e(0x2d4)]('\x0aUnknown\x20command:\x20'+_0x40ba42),console[_0x34315e(0x2d4)](_0x47b4e4['YDZRE']);}else{if(_0x44d74d)console[_0x34315e(0x2d4)]('\x0a'+_0x44d74d+'\x0a');else _0xf71d0&&console['error'](_0x34315e(0x23c)+_0xf71d0[_0x34315e(0x1ce)]+'\x0a');}await _0x47b4e4['OyPZY'](logDesirePath,{'rawCommand':_0x488187,'errorMessage':_0x44d74d||_0xf71d0?.['message'],'errorType':_0x4fe0d5});const _0xff46e7=_0x47b4e4[_0x34315e(0x247)](getCurrentCollector);_0xff46e7&&await _0xff46e7[_0x34315e(0x2b5)](_0xf71d0||new Error(_0x44d74d||'Unknown\x20error')),process[_0x34315e(0x291)](0x1);})[_0x1ecff4(0x23e)](_0x47b4e4[_0x1ecff4(0x19f)]('Documentation:\x0a',_0x47b4e4[_0x1ecff4(0x2eb)])+_0x47b4e4[_0x1ecff4(0x2f3)])[_0x1ecff4(0x28e)]()[_0x1ecff4(0x210)](_0x47b4e4[_0x1ecff4(0x2b7)],'h');}process[_0x40e819(0x197)][_0x40e819(0x26d)]!=='test'&&(shouldShowLegacyWarning(process[_0x40e819(0x187)])&&showLegacyDeprecationWarning(),buildParser()[_0x40e819(0x2cf)]());