@ranger-testing/ranger-cli 2.2.2 → 2.2.4

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 (68) hide show
  1. package/README.md +3 -1
  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/setup/claude.js +1 -1
  26. package/build/commands/setup/opencode.js +1 -1
  27. package/build/commands/setupCi.js +1 -1
  28. package/build/commands/skillup.js +1 -1
  29. package/build/commands/start.js +1 -1
  30. package/build/commands/status.js +1 -1
  31. package/build/commands/update.js +1 -1
  32. package/build/commands/updateEnv.js +1 -1
  33. package/build/commands/useEnv.js +1 -1
  34. package/build/commands/utils/activeProfile.js +1 -1
  35. package/build/commands/utils/browserSessionsApi.js +1 -1
  36. package/build/commands/utils/claudeConfig.js +1 -1
  37. package/build/commands/utils/claudePlugin.js +1 -1
  38. package/build/commands/utils/crypto.js +1 -1
  39. package/build/commands/utils/desirePathLog.js +1 -1
  40. package/build/commands/utils/deviceAuth.js +1 -1
  41. package/build/commands/utils/environment.js +1 -1
  42. package/build/commands/utils/featureApi.js +1 -1
  43. package/build/commands/utils/featureReportGenerator.js +1 -1
  44. package/build/commands/utils/fixWebmDuration.js +1 -1
  45. package/build/commands/utils/git.js +1 -1
  46. package/build/commands/utils/keychain.js +1 -1
  47. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  48. package/build/commands/utils/mcpImageBase64.js +1 -1
  49. package/build/commands/utils/model.js +1 -1
  50. package/build/commands/utils/opencodeConfig.js +1 -1
  51. package/build/commands/utils/profileMessages.js +1 -1
  52. package/build/commands/utils/profileSetupBanner.js +1 -1
  53. package/build/commands/utils/rangerConfig.js +1 -1
  54. package/build/commands/utils/rangerRoot.js +1 -1
  55. package/build/commands/utils/reportGenerator.js +1 -1
  56. package/build/commands/utils/retry.js +1 -1
  57. package/build/commands/utils/sessionCache.js +1 -1
  58. package/build/commands/utils/settings.js +1 -1
  59. package/build/commands/utils/skillContent.js +1 -1
  60. package/build/commands/utils/skills.js +1 -1
  61. package/build/commands/utils/stitchWebmFiles.js +1 -1
  62. package/build/commands/utils/telemetry.js +1 -1
  63. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  64. package/build/commands/utils/userApi.js +1 -1
  65. package/build/commands/utils/version.js +1 -1
  66. package/build/commands/verifyFeature.js +1 -1
  67. package/build/commands/verifyInBrowser.js +1 -1
  68. package/package.json +1 -1
package/README.md CHANGED
@@ -63,7 +63,7 @@ Ask Claude to build a UI feature. Ranger handles the rest: creating a feature re
63
63
 
64
64
  | Command | Description |
65
65
  | ------------------------------------- | ----------------------------------------------------- |
66
- | `ranger profile add <name>` | Add a browser profile (opens browser to capture auth) |
66
+ | `ranger profile add <name>` | Add a browser profile (opens browser to capture auth). Use `--safe-mode` if the browser crashes. |
67
67
  | `ranger profile use <name>` | Switch active profile |
68
68
  | `ranger profile ls` | List all profiles |
69
69
  | `ranger profile update <name>` | Re-capture auth for a profile |
@@ -125,6 +125,8 @@ claude plugin install ranger@trailhead --scope user
125
125
 
126
126
  **Authentication expired** -- Run `ranger profile update <profile-name>` to re-capture.
127
127
 
128
+ **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
+
128
130
  **"No active feature review"** -- Run `ranger list` then `ranger resume <id>`.
129
131
 
130
132
  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 _0x448d53=_0x572d;(function(_0x14dc67,_0x58a5d7){const _0x232ccd=_0x572d,_0x33b501=_0x14dc67();while(!![]){try{const _0x40e9c2=-parseInt(_0x232ccd(0xe8))/0x1+parseInt(_0x232ccd(0x1b4))/0x2+-parseInt(_0x232ccd(0x168))/0x3+parseInt(_0x232ccd(0x1e8))/0x4+-parseInt(_0x232ccd(0xfe))/0x5*(-parseInt(_0x232ccd(0x16e))/0x6)+parseInt(_0x232ccd(0x1ce))/0x7*(-parseInt(_0x232ccd(0x1cb))/0x8)+-parseInt(_0x232ccd(0x14d))/0x9;if(_0x40e9c2===_0x58a5d7)break;else _0x33b501['push'](_0x33b501['shift']());}catch(_0x8aa524){_0x33b501['push'](_0x33b501['shift']());}}}(_0x324e,0x7a0cf));function _0x572d(_0x469936,_0x17f839){_0x469936=_0x469936-0xa2;const _0x324e2a=_0x324e();let _0x572d4d=_0x324e2a[_0x469936];return _0x572d4d;}import _0x1d593c from'dotenv';import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x333372=_0x572d,_0x44abf5={'hXodB':function(_0x60eb8d,_0x4d566d){return _0x60eb8d(_0x4d566d);},'AmyeU':function(_0x5aa655,_0x39e368){return _0x5aa655!==_0x39e368;},'Yzbhw':function(_0x44bb45,_0x184b08,_0x35cf85){return _0x44bb45(_0x184b08,_0x35cf85);},'EEPxs':_0x333372(0x172),'gJQQV':function(_0x16ca47,_0x1869ae,_0x3a3c52){return _0x16ca47(_0x1869ae,_0x3a3c52);}};let _0x50bfc7=process[_0x333372(0x145)]();const _0x309374=_0x44abf5['hXodB'](parse,_0x50bfc7)[_0x333372(0x182)];while(_0x44abf5[_0x333372(0x189)](_0x50bfc7,_0x309374)){if(_0x44abf5['hXodB'](existsSync,_0x44abf5[_0x333372(0xd4)](join,_0x50bfc7,_0x44abf5[_0x333372(0xb4)]))||existsSync(_0x44abf5[_0x333372(0xcf)](join,_0x50bfc7,'.env')))return _0x50bfc7;_0x50bfc7=_0x44abf5['hXodB'](dirname,_0x50bfc7);}return process['cwd']();}_0x1d593c[_0x448d53(0xaa)]({'path':join(findProjectRoot(),'.env')});import _0x7e284 from'yargs/yargs';function _0x324e(){const _0x5f284b=['Enable\x20Ranger\x20hooks\x20for\x20this\x20session','add-scenario\x20<description>','Scenario\x20number\x20to\x20edit\x20(1-based)','uGhts','BLhTI','dbgRh','AmyeU','IrkDs','neOGy','profile\x20add','restore\x20<id>','Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','gYMol','key','feature\x20delete','issues','token','number','Environment\x20name','name','positional','arJPr','checklist','list\x20<profile>','profile\x20encrypt-auth','ANhSu','Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)','partial','Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','hcouN','ranger\x20feature\x20create','MXuVx','oRwdI','kLabr','project','ranger\x20profile\x20config\x20set','ZPJls','model','qVfzD','string','vlwwW','nynpk','ranger\x20feature\x20show','auWvW','headed','env','gOucP','Initialize\x20Ranger\x20in\x20your\x20project','list','816152mbfhim','lfwns','env\x20update','feature\x20add-checklist-item','Feature\x20review\x20ID\x20to\x20restore','dELeB','XBqWP','repeat','dVbha','Install\x20Ranger\x20skills','value','use\x20<profile-name>','JaaGJ','jZkEh','Name\x20of\x20the\x20profile\x20to\x20update','phdQV','ranger\x20profile\x20config\x20list','setup-ci\x20<token>','ranger\x20profile\x20ls','List\x20all\x20config\x20for\x20a\x20profile','ranger\x20create','cdp-endpoint','Install\x20skills\x20for\x20OpenCode','843032eJKjBV','Config\x20value','--checklist','7sIMUZx','wDSEf','YJOUR','Name\x20of\x20the\x20environment','verified','uhKut','create\x20<name>','vevIW','nhODV','current-branch','update\x20<env-name>','ARBlZ','MIVWa','Twenp','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','Skip\x20Chromium\x20browser\x20check\x20and\x20installation','ranger\x20feature\x20delete','Scenario\x20description','Switch\x20to\x20using\x20a\x20specific\x20profile','APBuB','GFpoT','Config\x20key','uAsnx','SFVcE','help','ranger\x20restore','3469364fsGRXg','LTGSa','command','ranger\x20profile\x20config\x20get','LPzMi','evaluationReason','OYqaD','batgv','exit','start','aoRKT','Documentation:\x0a','Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review','ranger\x20verify-feature','ranger\x20env\x20ls','List\x20all\x20feature\x20reviews','Manage\x20profile\x20configuration','Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','ZlOBl','jyVBS','error','skillup','irtkl','get-feedback\x20[id]','array','profile\x20config\x20list','WCJws','iYQWX','WwFNE','bACVY','Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','scope','feature\x20get-feedback','config','PfCwB','evaluation','some','\x0aError:\x20','RbVdK','ranger\x20start','kFkva','demandCommand','Include\x20soft-deleted\x20feature\x20reviews','EEPxs','rBybU','scenario','kQzCd','exitCode','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','item','EAGTK','profile','jiSoj','ranger\x20profile\x20update','Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)','cdBlm','xGwSe','add-checklist-item\x20<description>','Scenario\x20index\x20(1-based)','Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','PRigz','QfhVs','base-url','eoRTf','--scenario','DVQCm','Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)','add-scenario','RSJSq','Summary:\x20','gJQQV','add\x20env','dElfZ','SgcQw','oFejQ','Yzbhw','failed','incomplete','ranger\x20add\x20env','severity','bvqfV','exclude-scenario','mDUmZ','mzAcs','map','GMJef','New\x20scenario\x20description','klaNe','You\x20must\x20specify\x20a\x20config\x20subcommand','skip-auth','.\x20[','include-deleted','xuGzG','ranger\x20delete','allow-insecure-localhost','418682dKaDYK','Disable\x20Ranger\x20hooks\x20for\x20this\x20session','xjpPR','You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand','tKAyY','ranger\x20profile\x20add','ieUbe','ycHAx','List\x20all\x20profiles','start-path','NrQUX','verify-feature','feature\x20show','disable','Feature\x20review\x20description','profile-name','RqpJf','Sqbzk','XDvGY','ranger\x20config\x20list','default','oIbfb','15QMlPQV','session-id','IImPa','vcfdC','zqRaY','usage','lzTwN','ccvVi','iTTas','HluqK','kSiDn','rdRMx','task','Number\x20of\x20feature\x20reviews\x20to\x20skip','get\x20<profile>\x20<key>','Utshm','force','fCRJB','config\x20unset','Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios','login','TQtQy','JfwQd','pVKIW','\x20is\x20now\x20','qSZQr','CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)','Vnfiq','YJfwI','limit','update','ranger\x20config\x20get','riHUL','pWjDo','gfZQc','Install\x20scope\x20for\x20skills','Update\x20authentication\x20for\x20an\x20existing\x20profile','zuSba','message','Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)','epilogue','strictCommands','hook','Profile\x20name','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','GgjFr','argv','skip-chromium','profile\x20update','debug-outcome','start\x20[token]','Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review','wussg','\x0aIssues:','bkPxH','status','JpMQK','RBqAd','MqXsa','Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','restore','Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','length','json','Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','AaxVe','Feature\x20review\x20name','ranger\x20feature\x20add-checklist-item','blocked','cwd','TBTOB','set\x20<env>\x20<key>\x20<value>','wmESq','resume','kwGRC','jBlEi','Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)','5754843dHxhIA','vwREu','url','GlRqZ','CoWDV','ranger\x20go','startsWith','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','rmbyG','bJAXt','unset\x20<profile>\x20<key>','xllog','log','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\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)\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.','flag','Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)','profile\x20ls','dklFE','aFhfH','feature','trackCommandError','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\x20(e.g.,\x20header.X-Test-Mode)\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','boolean','description','brKAJ','list\x20<env>','Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context','637101ARukMz','Feature\x20review\x20ID','\x20INCOMPLETE','ranger','enable','Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','1200714diDAqD','Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','GwBke','dgura','.ranger','ZfsPZ','unset\x20<env>\x20<key>','Skip\x20Chromium\x20browser\x20installation','ZjAGc','ranger\x20config\x20set','\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)','opencode','get\x20<env>\x20<key>','nFatP','user','You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand','Rulrf','YbvSk','nyzqb','option','root'];_0x324e=function(){return _0x5f284b;};return _0x324e();}import{addEnv,clean,login,start,setupCi,useEnv,updateEnv,update,skillup,envList,hook}from'./commands/index.js';import{authEncrypt}from'./commands/authEncrypt.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{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{withTelemetry,getCurrentCollector}from'./commands/utils/telemetry.js';process['on']('unhandledRejection',async _0x433516=>{const _0x2878fd=_0x448d53,_0x13f3fe={'BlmlK':function(_0x5ca130){return _0x5ca130();}},_0x104d27=_0x13f3fe['BlmlK'](getCurrentCollector);_0x104d27&&await _0x104d27[_0x2878fd(0x161)](_0x433516),process[_0x2878fd(0xb8)]=0x1;});const rawArgs=process[_0x448d53(0x12d)]['slice'](0x2),TOP_LEVEL_HELP=_0x448d53(0x15a),PROFILE_HELP='Usage:\x20ranger\x20profile\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth)\x0a\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Profile\x20config\x20(set/get/list/unset)\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20add\x20local\x0a\x20\x20ranger\x20profile\x20encrypt-auth\x20ci\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20headless\x20true',PROFILE_CONFIG_HELP=_0x448d53(0x162);function warnRenamed(_0x5b564e,_0x586f97){const _0x32611f=_0x448d53;console['error']('\x0a'+_0x5b564e+_0x32611f(0x116)+_0x586f97+'\x0a');}function argUsed(_0x2e1fce){const _0x3f6f3d=_0x448d53;return rawArgs[_0x3f6f3d(0xad)](_0x586a73=>_0x586a73===_0x2e1fce||_0x586a73[_0x3f6f3d(0x153)](_0x2e1fce+'='));}function warnFlagRenamed(_0x34fb01,_0xd360ab,_0x506992){const _0x44cbde=_0x448d53,_0x107e7c={'DlQBY':function(_0x33a2ea,_0x2fe22a){return _0x33a2ea(_0x2fe22a);},'MXuVx':function(_0x4227dd,_0xcc7f48,_0x301261){return _0x4227dd(_0xcc7f48,_0x301261);}};_0x107e7c['DlQBY'](argUsed,_0xd360ab)&&_0x107e7c[_0x44cbde(0x1a2)](warnRenamed,_0x34fb01+'\x20'+_0xd360ab,_0x34fb01+'\x20'+_0x506992);}async function runGoCommand(_0x7db2e6,_0x5782d9=![]){const _0x325d54=_0x448d53,_0x4fccde={'RbVdK':function(_0x2fe678,_0x240b44,_0x452334){return _0x2fe678(_0x240b44,_0x452334);},'oGqrq':_0x325d54(0x1f5),'OYqaD':'ranger\x20go','LTGSa':'--env','bJAXt':'--profile','Vnfiq':'--notes','zvseo':'--item','riHUL':'--scenario','ocxSM':function(_0x232861,_0x10fb8c){return _0x232861(_0x10fb8c);},'rmbyG':_0x325d54(0xf1),'iYQWX':_0x325d54(0x130),'vwREu':'debug-address-comments','gxInK':function(_0x44bea8,_0x1ab84c){return _0x44bea8+_0x1ab84c;},'JYTzw':_0x325d54(0x1d2),'yrEtL':function(_0x5d4ce7,_0x1445f7){return _0x5d4ce7===_0x1445f7;},'YJfwI':_0x325d54(0x16a),'uGhts':'\x20PARTIAL','jeXCm':'\x20FAILED','HxTLp':_0x325d54(0x135)};_0x5782d9&&_0x4fccde[_0x325d54(0xaf)](warnRenamed,_0x4fccde['oGqrq'],_0x325d54(0x152));warnFlagRenamed(_0x4fccde[_0x325d54(0x1ee)],_0x4fccde[_0x325d54(0x1e9)],_0x4fccde[_0x325d54(0x156)]),warnFlagRenamed('ranger\x20go','--task',_0x4fccde[_0x325d54(0x119)]),warnFlagRenamed(_0x4fccde['OYqaD'],_0x4fccde['zvseo'],_0x4fccde[_0x325d54(0x11e)]);const _0x31aa2f=await loadRangerConfig(),_0x1b8bfe=_0x7db2e6[_0x325d54(0x1a8)],_0x196140=_0x31aa2f['model'],_0x41ea8c=_0x1b8bfe??_0x196140,_0x43885f=_0x1b8bfe?_0x325d54(0x15b):_0x196140?'config':_0x325d54(0xfc),_0x2ad48c=await _0x4fccde['ocxSM'](verifyFeature,{'featureId':_0x7db2e6['feature'],'profile':_0x7db2e6['profile']??_0x7db2e6['env'],'notes':_0x7db2e6['notes']??_0x7db2e6[_0x325d54(0x10a)],'scenario':_0x7db2e6[_0x325d54(0xb6)]??_0x7db2e6[_0x325d54(0xba)],'startPath':_0x7db2e6[_0x4fccde[_0x325d54(0x155)]],'debugOutcome':_0x7db2e6[_0x4fccde[_0x325d54(0xa4)]],'debugAddressComments':_0x7db2e6[_0x4fccde[_0x325d54(0x14e)]],'headed':_0x7db2e6['headed'],'verifyModel':_0x41ea8c,'verifyModelInput':_0x41ea8c,'verifyModelSource':_0x43885f});console['log'](_0x4fccde['gxInK']('\x0a','='[_0x325d54(0x1bb)](0x3c))),console['log'](_0x2ad48c[_0x325d54(0xac)]===_0x4fccde['JYTzw']?'\x20VERIFIED':_0x4fccde['yrEtL'](_0x2ad48c['evaluation'],_0x325d54(0xd6))?_0x4fccde[_0x325d54(0x11a)]:_0x2ad48c['evaluation']==='partial'?_0x4fccde[_0x325d54(0x186)]:_0x2ad48c[_0x325d54(0xac)]===_0x325d54(0x144)?'\x20BLOCKED':_0x4fccde['jeXCm']),console[_0x325d54(0x159)]('='['repeat'](0x3c)),console[_0x325d54(0x159)](_0x325d54(0xce)+_0x2ad48c['summary']),console[_0x325d54(0x159)]('Evaluation:\x20'+_0x2ad48c[_0x325d54(0xac)]),console[_0x325d54(0x159)]('Reason:\x20'+_0x2ad48c[_0x325d54(0x1ed)]),_0x2ad48c[_0x325d54(0x192)]?.[_0x325d54(0x13e)]&&(console[_0x325d54(0x159)](_0x4fccde['HxTLp']),_0x2ad48c['issues']['forEach']((_0x4b4cec,_0x1efa14)=>{const _0x30b1f6=_0x325d54;console['log']('\x0a'+(_0x1efa14+0x1)+_0x30b1f6(0xe3)+_0x4b4cec[_0x30b1f6(0xd8)]+']\x20'+_0x4b4cec[_0x30b1f6(0x164)]);})),process['exit'](_0x4fccde['yrEtL'](_0x2ad48c[_0x325d54(0xac)],_0x325d54(0x1d2))?0x0:0x1);}_0x7e284(process[_0x448d53(0x12d)]['slice'](0x2))['scriptName'](_0x448d53(0x16b))[_0x448d53(0x103)](TOP_LEVEL_HELP)['version'](getCurrentVersion())['command'](_0x448d53(0x1d4),_0x448d53(0x111),_0x4010ab=>{const _0x4a7c84=_0x448d53,_0x42dd97={'Rulrf':'description','qSZQr':_0x4a7c84(0x1aa),'ePTly':_0x4a7c84(0xb6),'kQzCd':_0x4a7c84(0xa7)};return _0x4010ab['positional'](_0x4a7c84(0x196),{'type':_0x4a7c84(0x1aa),'description':_0x4a7c84(0x142),'demandOption':!![]})['option'](_0x42dd97[_0x4a7c84(0x17e)],{'type':_0x42dd97[_0x4a7c84(0x117)],'alias':'d','description':_0x4a7c84(0xf6)})['option'](_0x42dd97['ePTly'],{'type':'array','alias':'c','description':_0x42dd97[_0x4a7c84(0xb7)]})[_0x4a7c84(0x181)]('checklist',{'type':_0x4a7c84(0x200),'hidden':!![]});},async _0x59cd2d=>{const _0x59e6d7=_0x448d53,_0x2ed26f={'fdIHu':function(_0x5d7fb8,_0x149093,_0x2cc999,_0x56f2f2){return _0x5d7fb8(_0x149093,_0x2cc999,_0x56f2f2);},'RBqAd':'--scenario','AyVQr':function(_0x514527,_0x3058ac,_0x1a4b54){return _0x514527(_0x3058ac,_0x1a4b54);},'tAIpp':'create'};_0x2ed26f['fdIHu'](warnFlagRenamed,_0x59e6d7(0x1c8),'--checklist',_0x2ed26f[_0x59e6d7(0x139)]);const _0x450a3d=_0x59cd2d['scenario']||_0x59cd2d[_0x59e6d7(0x199)];await _0x2ed26f['AyVQr'](withTelemetry,_0x2ed26f['tAIpp'],()=>featureCreate(_0x59cd2d['name'],{'description':_0x59cd2d['description'],'scenarios':_0x450a3d}));})[_0x448d53(0x1ea)](_0x448d53(0x1b3),_0x448d53(0x1f7),_0xf3cc62=>{const _0x3414aa=_0x448d53,_0x309ba5={'TQtQy':'current-branch','ZjAGc':_0x3414aa(0x163),'fCRJB':_0x3414aa(0x12b),'JuRwa':_0x3414aa(0x11b),'NfFJL':_0x3414aa(0xb9),'jvGUf':_0x3414aa(0x10b),'MIVWa':'include-deleted','dgura':_0x3414aa(0xb3)};return _0xf3cc62[_0x3414aa(0x181)](_0x309ba5[_0x3414aa(0x113)],{'type':_0x309ba5[_0x3414aa(0x176)],'description':_0x309ba5[_0x3414aa(0x10f)]})['option'](_0x309ba5['JuRwa'],{'type':'number','alias':'l','description':_0x309ba5['NfFJL'],'default':0xa})[_0x3414aa(0x181)]('offset',{'type':'number','alias':'o','description':_0x309ba5['jvGUf'],'default':0x0})['option'](_0x309ba5[_0x3414aa(0x1da)],{'type':_0x309ba5['ZjAGc'],'alias':'d','description':_0x309ba5[_0x3414aa(0x171)],'default':![]});},async _0x5ed578=>{const _0x333200=_0x448d53,_0x505c3a={'kdrbO':function(_0xa7eb0f,_0x42322f,_0x2f0b9d){return _0xa7eb0f(_0x42322f,_0x2f0b9d);},'lgnpx':_0x333200(0x1b3)};await _0x505c3a['kdrbO'](withTelemetry,_0x505c3a['lgnpx'],()=>featureList({'currentBranch':_0x5ed578[_0x333200(0x1d7)],'limit':_0x5ed578['limit'],'offset':_0x5ed578['offset'],'includeDeleted':_0x5ed578[_0x333200(0xe4)]}));})[_0x448d53(0x1ea)]('show\x20[id]','Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x4ed88e=>{const _0x5835eb=_0x448d53,_0x2c541b={'YpcHq':'string','ChlHP':'Feature\x20review\x20ID'};return _0x4ed88e[_0x5835eb(0x197)]('id',{'type':_0x2c541b['YpcHq'],'description':_0x2c541b['ChlHP']});},async _0x386b0e=>{await withTelemetry('show',()=>featureShow(_0x386b0e['id']));})['command']('resume\x20[id]',_0x448d53(0x167),_0x37740a=>{const _0x30fd43=_0x448d53,_0x18db1e={'HCUHT':_0x30fd43(0x1aa)};return _0x37740a[_0x30fd43(0x197)]('id',{'type':_0x18db1e['HCUHT'],'description':_0x30fd43(0x154)});},async _0x137877=>{const _0x24c8c4=_0x448d53,_0x49d292={'AgZhC':_0x24c8c4(0x149)};await withTelemetry(_0x49d292['AgZhC'],()=>featureResume(_0x137877['id']));})[_0x448d53(0x1ea)](_0x448d53(0x184),_0x448d53(0x1f4),_0x42b789=>{const _0xcdf28f=_0x448d53,_0xd67a72={'IrkDs':_0xcdf28f(0x164),'KlXci':_0xcdf28f(0x1aa),'nbFVq':_0xcdf28f(0x1df)};return _0x42b789['positional'](_0xd67a72[_0xcdf28f(0x18a)],{'type':_0xd67a72['KlXci'],'description':_0xd67a72['nbFVq'],'demandOption':!![]})[_0xcdf28f(0x181)]('id',{'type':_0xd67a72['KlXci'],'description':_0xcdf28f(0x12a)});},async _0x33bc8d=>{const _0x3b67fe=_0x448d53,_0xc2fcae={'nyzqb':_0x3b67fe(0xcc)};await withTelemetry(_0xc2fcae[_0x3b67fe(0x180)],()=>featureAddScenario(_0x33bc8d['description'],_0x33bc8d['id']));})[_0x448d53(0x1ea)]('edit-scenario\x20<description>',_0x448d53(0x133),_0x5ba5b5=>{const _0x6f3a3c=_0x448d53,_0x5ef84b={'CgBZV':_0x6f3a3c(0x1aa),'IltBC':_0x6f3a3c(0xdf)};return _0x5ba5b5['positional']('description',{'type':_0x5ef84b['CgBZV'],'description':_0x5ef84b['IltBC'],'demandOption':!![]})[_0x6f3a3c(0x181)](_0x6f3a3c(0xb6),{'type':'number','description':_0x6f3a3c(0x185),'demandOption':!![]})[_0x6f3a3c(0x181)]('id',{'type':_0x5ef84b['CgBZV'],'description':_0x6f3a3c(0x12a)});},async _0x130553=>{const _0x19a7bf=_0x448d53,_0xf93268={'eoRTf':'edit-scenario'};await withTelemetry(_0xf93268[_0x19a7bf(0xc8)],()=>featureEditScenario(_0x130553['description'],{'id':_0x130553['id'],'scenario':_0x130553['scenario']}));})['command']('report\x20[id]',_0x448d53(0x14c),_0x28992d=>{const _0x4b6c79=_0x448d53,_0x5656ce={'GDukk':_0x4b6c79(0x1aa),'MqXsa':_0x4b6c79(0x200),'Utshm':_0x4b6c79(0xcb),'LPzMi':'json','xsRaV':_0x4b6c79(0x163)};return _0x28992d[_0x4b6c79(0x197)]('id',{'type':_0x5656ce['GDukk'],'description':_0x4b6c79(0x169)})[_0x4b6c79(0x181)](_0x4b6c79(0xda),{'type':_0x5656ce[_0x4b6c79(0x13a)],'description':_0x5656ce[_0x4b6c79(0x10d)]})[_0x4b6c79(0x181)](_0x5656ce[_0x4b6c79(0x1ec)],{'type':_0x5656ce['xsRaV'],'description':'Output\x20structured\x20JSON\x20data\x20instead\x20of\x20markdown','default':![]});},async _0x5d569f=>{const _0xb37c26=_0x448d53,_0x363609=_0x5d569f[_0xb37c26(0xda)],_0x2286cf=_0x363609?_0x363609[_0xb37c26(0xdd)](_0x38f883=>Number(_0x38f883)):undefined;await withTelemetry('report',()=>featureReportPrDescription(_0x5d569f['id'],{'excludeScenarios':_0x2286cf,'json':_0x5d569f[_0xb37c26(0x13f)]}));})['command']('get-review\x20[id]','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios',_0xc7af38=>{const _0xb0a3b2=_0x448d53,_0x1ec28a={'yePIu':_0xb0a3b2(0x1aa)};return _0xc7af38[_0xb0a3b2(0x197)]('id',{'type':_0x1ec28a['yePIu'],'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x2d221e=>{const _0x895926=_0x448d53,_0x16f9c1={'zqRaY':function(_0x201520,_0x1827b1,_0x467f58){return _0x201520(_0x1827b1,_0x467f58);},'lzTwN':'get-review'};await _0x16f9c1[_0x895926(0x102)](withTelemetry,_0x16f9c1[_0x895926(0x104)],()=>featureGetReview(_0x2d221e['id']));})['command']('delete\x20[id]','Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x164ab2=>{const _0x4c6532=_0x448d53,_0x5c7572={'xPDGI':'string','blkqi':'Feature\x20review\x20ID'};return _0x164ab2[_0x4c6532(0x197)]('id',{'type':_0x5c7572['xPDGI'],'description':_0x5c7572['blkqi']});},async _0xb45c92=>{const _0x44acb3=_0x448d53,_0x3b0c1f={'xGwSe':function(_0x420e54,_0x261d9a,_0x56955a){return _0x420e54(_0x261d9a,_0x56955a);},'vlwwW':'delete'};await _0x3b0c1f[_0x44acb3(0xc1)](withTelemetry,_0x3b0c1f[_0x44acb3(0x1ab)],()=>featureDelete(_0xb45c92['id']));})['command'](_0x448d53(0x18d),'Restore\x20a\x20soft-deleted\x20feature\x20review',_0x176668=>{const _0x1b2255=_0x448d53,_0x2fd086={'ukvGa':_0x1b2255(0x1aa),'Dxwdj':_0x1b2255(0x1b8)};return _0x176668['positional']('id',{'type':_0x2fd086['ukvGa'],'description':_0x2fd086['Dxwdj'],'demandOption':!![]});},async _0x23ef8a=>{const _0x112fb2=_0x448d53,_0x1bac93={'YIwLz':function(_0x517170,_0x23f52c,_0xf256f){return _0x517170(_0x23f52c,_0xf256f);},'MQCMn':_0x112fb2(0x13c)};await _0x1bac93['YIwLz'](withTelemetry,_0x1bac93['MQCMn'],()=>featureRestore(_0x23ef8a['id']));})['command']('setup\x20[token]',_0x448d53(0x1b2),_0x52fd7e=>{const _0x31e9a8=_0x448d53,_0x28fb7e={'JfwQd':_0x31e9a8(0x163),'gYMol':_0x31e9a8(0x1dd),'mgURX':'scope','jBlEi':_0x31e9a8(0x14f),'lOBpe':_0x31e9a8(0x1dc),'gOucP':'opencode','RSJSq':'Skip\x20Claude\x20Code\x20plugin\x20+\x20skills\x20install\x20(for\x20OpenCode\x20users)','neOGy':'allow-insecure-localhost','quXVs':_0x31e9a8(0x132)};return _0x52fd7e['positional'](_0x31e9a8(0x193),{'type':'string','description':_0x31e9a8(0x18e)})[_0x31e9a8(0x181)](_0x31e9a8(0x12e),{'type':_0x28fb7e[_0x31e9a8(0x114)],'description':_0x28fb7e[_0x31e9a8(0x18f)],'default':![]})['option'](_0x28fb7e['mgURX'],{'type':'string','choices':[_0x31e9a8(0x17c),'project'],'description':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)'})[_0x31e9a8(0x181)](_0x28fb7e[_0x31e9a8(0x14b)],{'type':_0x31e9a8(0x1aa),'description':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)'})[_0x31e9a8(0x181)](_0x31e9a8(0x10e),{'type':_0x31e9a8(0x163),'description':_0x28fb7e['lOBpe'],'default':![]})[_0x31e9a8(0x181)](_0x28fb7e[_0x31e9a8(0x1b1)],{'type':'boolean','description':_0x28fb7e[_0x31e9a8(0xcd)],'default':![]})[_0x31e9a8(0x181)](_0x28fb7e[_0x31e9a8(0x18b)],{'type':_0x28fb7e[_0x31e9a8(0x114)],'description':_0x28fb7e['quXVs'],'default':![]});},async _0x15feec=>{const _0x347202=_0x448d53,_0x209840={'jjlwb':function(_0x121252,_0x2bff18,_0x24d4ba){return _0x121252(_0x2bff18,_0x24d4ba);}};await _0x209840['jjlwb'](withTelemetry,_0x347202(0x1f1),_0x198600=>start(_0x15feec[_0x347202(0x193)],{'skipChromium':_0x15feec[_0x347202(0x12e)],'scope':_0x15feec[_0x347202(0xa8)],'url':_0x15feec['url'],'force':_0x15feec['force'],'opencode':_0x15feec['opencode'],'allowInsecureLocalhost':_0x15feec['allow-insecure-localhost']},_0x198600));})['command'](_0x448d53(0x1c5),'Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)',_0x4facaf=>{const _0x48c63a=_0x448d53,_0x33e34a={'YJOUR':'token','gfZQc':'string','HlbPi':'Ranger\x20API\x20token','pVKIW':_0x48c63a(0xbc),'DVQCm':'base-url','iGbYN':'skip-chromium','jyVBS':'boolean','Cciya':_0x48c63a(0x175)};return _0x4facaf[_0x48c63a(0x197)](_0x33e34a[_0x48c63a(0x1d0)],{'type':_0x33e34a[_0x48c63a(0x120)],'description':_0x33e34a['HlbPi'],'demandOption':!![]})['option'](_0x33e34a[_0x48c63a(0x115)],{'type':_0x48c63a(0x1aa),'description':_0x48c63a(0x118)})['option'](_0x33e34a[_0x48c63a(0xca)],{'type':_0x33e34a['gfZQc'],'description':'Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)'})[_0x48c63a(0x181)](_0x33e34a['iGbYN'],{'type':_0x33e34a[_0x48c63a(0x1fb)],'description':_0x33e34a['Cciya'],'default':![]});},async _0x2cf0a7=>{const _0x325f82=_0x448d53,_0x202fc8={'XdJTw':function(_0x24b24c,_0x8e6265,_0x290c26){return _0x24b24c(_0x8e6265,_0x290c26);},'brwUt':'setup-ci'};await _0x202fc8['XdJTw'](withTelemetry,_0x202fc8['brwUt'],_0x21eda5=>setupCi(_0x2cf0a7[_0x325f82(0x193)],{'profile':_0x2cf0a7[_0x325f82(0xbc)],'baseUrl':_0x2cf0a7[_0x325f82(0xc7)],'skipChromium':_0x2cf0a7['skip-chromium']},_0x21eda5));})['command']('login',_0x448d53(0x19d),()=>{},async()=>{const _0x5dd1af=_0x448d53,_0x1c193a={'oRwdI':function(_0x4ed021,_0x52f868,_0x4f03fb){return _0x4ed021(_0x52f868,_0x4f03fb);}};await _0x1c193a[_0x5dd1af(0x1a3)](withTelemetry,_0x5dd1af(0x112),()=>login());})['command'](_0x448d53(0x1fd),_0x448d53(0x1bd),_0x49438c=>{const _0x515e38=_0x448d53,_0x86cddc={'vevIW':'boolean'};return _0x49438c[_0x515e38(0x181)](_0x515e38(0x179),{'type':_0x86cddc[_0x515e38(0x1d5)],'description':_0x515e38(0x1ca),'default':![]})[_0x515e38(0x181)](_0x515e38(0xa8),{'type':'string','choices':['user',_0x515e38(0x1a5)],'description':_0x515e38(0x121)});},async _0x1944f2=>{const _0x21e6dc=_0x448d53,_0x5ed538={'nhODV':function(_0x2b2771,_0x32ea8a){return _0x2b2771(_0x32ea8a);},'kwGRC':'skillup'},_0x4204f9=_0x5ed538[_0x21e6dc(0x1d6)](Boolean,_0x1944f2['opencode']);await withTelemetry(_0x5ed538[_0x21e6dc(0x14a)],()=>skillup({'autoInstall':_0x1944f2['scope'],'platform':_0x4204f9?_0x21e6dc(0x179):'claude'}));})['command']('clean','Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project',()=>{},async()=>{const _0x28188d={'nkavC':'clean'};await withTelemetry(_0x28188d['nkavC'],()=>clean());})[_0x448d53(0x1ea)]('profile','Manage\x20profiles',_0x3f867b=>{const _0xd8da87=_0x448d53,_0x7cb856={'nFatP':_0xd8da87(0x13d),'RqpJf':'boolean','LpXXK':_0xd8da87(0xe2),'dVbha':_0xd8da87(0x10e),'CBDVQ':_0xd8da87(0x1dc),'KuyPg':_0xd8da87(0xe7),'tnWDV':'cdp-endpoint','uAsnx':_0xd8da87(0xf7),'NrQUX':'Name\x20of\x20the\x20profile','tKAyY':function(_0x5134b3,_0x2c86c5,_0x1128d1){return _0x5134b3(_0x2c86c5,_0x1128d1);},'XDvGY':_0xd8da87(0x1aa),'wmESq':function(_0x555898,_0x4a9468,_0x1bdf0b){return _0x555898(_0x4a9468,_0x1bdf0b);},'XvKcB':'profile','dbgRh':'profile\x20config\x20set','ZfsPZ':'profile\x20config\x20get','AaxVe':'Profile\x20name','uhKut':'Config\x20key\x20to\x20remove','JaaGJ':'Set\x20a\x20config\x20value','LPfLG':_0xd8da87(0x19a),'ekHEJ':'Remove\x20a\x20config\x20value','IImPa':'add\x20<profile-name>','vcfdC':'Add\x20profile\x20configuration','xVzIc':_0xd8da87(0x1bf),'Sqbzk':'update\x20<profile-name>','GlRqZ':_0xd8da87(0xaa),'ZPJls':_0xd8da87(0x1f8),'IMoLZ':'You\x20must\x20specify\x20a\x20profile\x20subcommand'};return _0x3f867b['usage'](PROFILE_HELP)[_0xd8da87(0x1ea)](_0x7cb856[_0xd8da87(0x100)],_0x7cb856[_0xd8da87(0x101)],_0x40e0a4=>{const _0x400cff=_0xd8da87;return _0x40e0a4['positional']('profile-name',{'type':_0x400cff(0x1aa),'description':_0x7cb856[_0x400cff(0x17b)],'demandOption':!![]})[_0x400cff(0x181)]('ci',{'type':_0x7cb856['RqpJf'],'description':_0x400cff(0x16d),'default':![]})[_0x400cff(0x181)](_0x7cb856['LpXXK'],{'type':_0x400cff(0x163),'description':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','default':![]})[_0x400cff(0x181)](_0x400cff(0x14f),{'type':'string','description':_0x400cff(0xbf)})[_0x400cff(0x181)](_0x7cb856[_0x400cff(0x1bc)],{'type':_0x7cb856[_0x400cff(0xf8)],'description':_0x7cb856['CBDVQ'],'default':![]})['option'](_0x400cff(0x1c9),{'type':_0x400cff(0x1aa),'description':'CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.'})[_0x400cff(0x181)](_0x7cb856['KuyPg'],{'type':_0x7cb856['RqpJf'],'description':_0x400cff(0x132),'default':![]});},async _0x13a20a=>{const _0x3cf6b5=_0xd8da87;await withTelemetry(_0x3cf6b5(0x18c),_0x144881=>addEnv(_0x13a20a['profile-name'],{'ci':_0x13a20a['ci'],'skipAuth':_0x13a20a[_0x3cf6b5(0xe2)],'url':_0x13a20a['url'],'force':_0x13a20a['force'],'cdpEndpoint':_0x13a20a[_0x3cf6b5(0x1c9)],'allowInsecureLocalhost':_0x13a20a[_0x3cf6b5(0xe7)]},_0x144881),{'isElectron':Boolean(_0x13a20a[_0x7cb856['tnWDV']])});})[_0xd8da87(0x1ea)](_0x7cb856['xVzIc'],_0xd8da87(0x1e0),_0x430214=>{const _0x4241ae=_0xd8da87;return _0x430214['positional'](_0x7cb856[_0x4241ae(0x1e4)],{'type':'string','description':_0x7cb856[_0x4241ae(0xf2)],'demandOption':!![]});},async _0x214798=>{const _0x52cdc8=_0xd8da87;await _0x7cb856[_0x52cdc8(0xec)](withTelemetry,'profile\x20use',()=>useEnv(_0x214798['profile-name']));})[_0xd8da87(0x1ea)]('encrypt-auth\x20<profile>','Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)',_0x582fd1=>{return _0x582fd1['positional']('profile',{'type':_0x7cb856['XDvGY'],'description':'Profile\x20name','demandOption':!![]});},async _0x22f793=>{const _0x234b9e=_0xd8da87;await _0x7cb856[_0x234b9e(0x148)](withTelemetry,_0x234b9e(0x19b),()=>authEncrypt(_0x22f793['profile']));})['command']('ls',_0xd8da87(0xf0),()=>{},async()=>{const _0x4e8898=_0xd8da87;await _0x7cb856[_0x4e8898(0xec)](withTelemetry,_0x4e8898(0x15d),()=>envList());})['command'](_0x7cb856[_0xd8da87(0xf9)],_0xd8da87(0x122),_0x2b414d=>{const _0x48b98d=_0xd8da87;return _0x2b414d[_0x48b98d(0x197)](_0x7cb856[_0x48b98d(0x1e4)],{'type':_0x48b98d(0x1aa),'description':_0x48b98d(0x1c2),'demandOption':!![]})[_0x48b98d(0x181)](_0x48b98d(0xe7),{'type':'boolean','description':_0x48b98d(0x132)});},async _0x1f4cc4=>{const _0x1444f7=_0xd8da87;await _0x7cb856['tKAyY'](withTelemetry,_0x1444f7(0x12f),_0x367018=>updateEnv(_0x1f4cc4['profile-name'],_0x367018,{'allowInsecureLocalhost':_0x1f4cc4[_0x1444f7(0xe7)]}));})['command'](_0x7cb856[_0xd8da87(0x150)],_0x7cb856[_0xd8da87(0x1a7)],_0x279a24=>{const _0x41d79c=_0xd8da87,_0x325b15={'oxosa':_0x41d79c(0x129),'rdRMx':_0x7cb856['XDvGY'],'lwZBz':'Config\x20key','mDUmZ':function(_0xbe3ecf,_0x4f0e59,_0x4c408b){return _0xbe3ecf(_0x4f0e59,_0x4c408b);},'tqzAi':_0x41d79c(0xa2)};return _0x279a24[_0x41d79c(0x103)](PROFILE_CONFIG_HELP)[_0x41d79c(0x1ea)]('set\x20<profile>\x20<key>\x20<value>',_0x7cb856[_0x41d79c(0x1c0)],_0x3b0604=>{const _0x58e057=_0x41d79c;return _0x3b0604[_0x58e057(0x197)](_0x7cb856['XvKcB'],{'type':_0x7cb856[_0x58e057(0xfa)],'description':'Profile\x20name','demandOption':!![]})[_0x58e057(0x197)]('key',{'type':_0x58e057(0x1aa),'description':_0x58e057(0x13b),'demandOption':!![]})['positional'](_0x58e057(0x1be),{'type':_0x7cb856['XDvGY'],'description':'Config\x20value','demandOption':!![]});},async _0x3db3c0=>{const _0x471b21=_0x41d79c;await withTelemetry(_0x7cb856[_0x471b21(0x188)],()=>configSet(_0x3db3c0[_0x471b21(0xbc)],_0x3db3c0['key'],_0x3db3c0[_0x471b21(0x1be)]));})[_0x41d79c(0x1ea)](_0x41d79c(0x10c),'Get\x20a\x20config\x20value',_0x2bd60c=>{const _0x4ba496=_0x41d79c;return _0x2bd60c[_0x4ba496(0x197)](_0x4ba496(0xbc),{'type':'string','description':_0x325b15['oxosa'],'demandOption':!![]})['positional']('key',{'type':_0x325b15[_0x4ba496(0x109)],'description':_0x325b15['lwZBz'],'demandOption':!![]});},async _0x232380=>{const _0xc0654b=_0x41d79c;await withTelemetry(_0x7cb856[_0xc0654b(0x173)],()=>configGet(_0x232380['profile'],_0x232380['key']));})['command'](_0x7cb856['LPfLG'],_0x41d79c(0x1c7),_0x4697bf=>{const _0x1dae4b=_0x41d79c;return _0x4697bf['positional'](_0x1dae4b(0xbc),{'type':_0x1dae4b(0x1aa),'description':_0x7cb856[_0x1dae4b(0x141)],'demandOption':!![]});},async _0x94e41b=>{const _0xfd09fb=_0x41d79c;await _0x325b15[_0xfd09fb(0xdb)](withTelemetry,_0x325b15['tqzAi'],()=>configList(_0x94e41b['profile']));})['command'](_0x41d79c(0x157),_0x7cb856['ekHEJ'],_0x1c330e=>{const _0x3a6ce5=_0x41d79c;return _0x1c330e[_0x3a6ce5(0x197)](_0x7cb856['XvKcB'],{'type':_0x7cb856[_0x3a6ce5(0xfa)],'description':_0x7cb856[_0x3a6ce5(0x141)],'demandOption':!![]})['positional']('key',{'type':_0x7cb856['XDvGY'],'description':_0x7cb856[_0x3a6ce5(0x1d3)],'demandOption':!![]});},async _0x2ca72e=>{const _0x353eeb=_0x41d79c;await _0x7cb856['wmESq'](withTelemetry,'profile\x20config\x20unset',()=>configUnset(_0x2ca72e[_0x353eeb(0xbc)],_0x2ca72e[_0x353eeb(0x190)]));})['demandCommand'](0x1,_0x41d79c(0x17d));})['demandCommand'](0x1,_0x7cb856['IMoLZ']);})['command']('status','Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)',()=>{},async()=>{const _0x26429c=_0x448d53;await withTelemetry(_0x26429c(0x137),()=>status());})['command']('update','Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version',()=>{},async()=>{const _0x2649b2=_0x448d53,_0x2b3f73={'HluqK':_0x2649b2(0x11c)};await withTelemetry(_0x2b3f73[_0x2649b2(0x107)],()=>update());})[_0x448d53(0x1ea)]('go','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)',_0x3b039e=>{const _0x2feb16=_0x448d53,_0x48d6cd={'jZkEh':_0x2feb16(0xbc),'wDSEf':'string','YvuBt':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','MpboK':_0x2feb16(0x15c),'zuSba':'number','qVfzD':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','iTTas':_0x2feb16(0x1a8),'oopfE':_0x2feb16(0x1af),'aXmFM':_0x2feb16(0x163),'etFyr':_0x2feb16(0x130),'YbvSk':'debug-address-comments','MloTM':'env','PRigz':_0x2feb16(0x10a)};return _0x3b039e['option'](_0x2feb16(0x160),{'type':'string','description':'Optional\x20feature\x20ID'})[_0x2feb16(0x181)](_0x48d6cd[_0x2feb16(0x1c1)],{'type':_0x48d6cd[_0x2feb16(0x1cf)],'description':_0x48d6cd['YvuBt']})['option']('notes',{'type':_0x48d6cd['wDSEf'],'description':_0x48d6cd['MpboK']})['option']('scenario',{'type':_0x48d6cd[_0x2feb16(0x123)],'description':'Scenario\x20index\x20(1-based)'})['option'](_0x2feb16(0xf1),{'type':'string','description':_0x48d6cd[_0x2feb16(0x1a9)]})[_0x2feb16(0x181)](_0x48d6cd[_0x2feb16(0x106)],{'type':_0x48d6cd[_0x2feb16(0x1cf)],'description':'Model\x20to\x20use\x20for\x20verification\x20(e.g.,\x20opus,\x20sonnet,\x20claude-opus-4-6,\x20anthropic.claude-opus-4-6-v1)'})['option'](_0x48d6cd['oopfE'],{'type':_0x48d6cd['aXmFM'],'description':'Force\x20headed\x20browser\x20for\x20this\x20run\x20only\x20(does\x20not\x20change\x20profile\x20config)','default':![]})['option'](_0x48d6cd['etFyr'],{'type':_0x48d6cd['wDSEf'],'hidden':!![],'choices':[_0x2feb16(0x1d2),_0x2feb16(0x19e),'blocked',_0x2feb16(0xd5),_0x2feb16(0xd6)]})[_0x2feb16(0x181)](_0x48d6cd[_0x2feb16(0x17f)],{'type':_0x2feb16(0x163),'hidden':!![]})['option'](_0x48d6cd['MloTM'],{'type':_0x48d6cd[_0x2feb16(0x1cf)],'hidden':!![]})['option'](_0x48d6cd[_0x2feb16(0xc5)],{'type':_0x48d6cd[_0x2feb16(0x1cf)],'hidden':!![]})['option']('item',{'type':'number','hidden':!![]});},async _0x3dc081=>{await runGoCommand(_0x3dc081);})[_0x448d53(0x1ea)]('auth',![],_0x239286=>{const _0x98fbf2=_0x448d53,_0x4ad108={'BLhTI':_0x98fbf2(0xbc),'EAGTK':_0x98fbf2(0x1aa),'OCgBI':function(_0x2d84b7,_0x24178a,_0x157763){return _0x2d84b7(_0x24178a,_0x157763);},'rWVQh':function(_0x11b7eb,_0x3328af){return _0x11b7eb(_0x3328af);},'nynpk':'You\x20must\x20specify\x20an\x20auth\x20subcommand'};return _0x239286[_0x98fbf2(0x1ea)]('encrypt\x20<profile>',![],_0x4538cb=>{const _0x3e54e3=_0x98fbf2;return _0x4538cb['positional'](_0x4ad108[_0x3e54e3(0x187)],{'type':_0x4ad108[_0x3e54e3(0xbb)],'description':_0x3e54e3(0x129),'demandOption':!![]});},async _0x18ceaf=>{_0x4ad108['OCgBI'](warnRenamed,'ranger\x20auth\x20encrypt','ranger\x20profile\x20encrypt-auth'),await _0x4ad108['rWVQh'](authEncrypt,_0x18ceaf['profile']);})['demandCommand'](0x1,_0x4ad108[_0x98fbf2(0x1ac)]);},()=>{})[_0x448d53(0x1ea)](_0x448d53(0x131),![],_0x39767d=>{const _0x4c858c=_0x448d53,_0x506192={'cdBlm':'token','Twenp':_0x4c858c(0x1aa),'GwBke':'Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','ANhSu':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','GMJef':'scope','CoWDV':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','RySyn':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','APBuB':'force'};return _0x39767d[_0x4c858c(0x197)](_0x506192[_0x4c858c(0xc0)],{'type':_0x506192[_0x4c858c(0x1db)],'description':_0x506192[_0x4c858c(0x170)]})['option'](_0x4c858c(0x12e),{'type':_0x4c858c(0x163),'description':_0x506192[_0x4c858c(0x19c)],'default':![]})[_0x4c858c(0x181)](_0x506192[_0x4c858c(0xde)],{'type':_0x506192[_0x4c858c(0x1db)],'choices':['user','project'],'description':_0x506192[_0x4c858c(0x151)]})['option'](_0x4c858c(0x14f),{'type':_0x4c858c(0x1aa),'description':_0x506192['RySyn']})[_0x4c858c(0x181)](_0x506192[_0x4c858c(0x1e1)],{'type':_0x4c858c(0x163),'description':_0x4c858c(0x1dc),'default':![]});},async _0xf2b185=>{const _0xa25658=_0x448d53,_0x2b4d43={'DEwmE':function(_0x5ea83e,_0x5e7e0c,_0x5e0c25){return _0x5ea83e(_0x5e7e0c,_0x5e0c25);},'eVeuY':_0xa25658(0xb0),'GgjFr':'start'};_0x2b4d43['DEwmE'](warnRenamed,_0x2b4d43['eVeuY'],'ranger\x20setup'),await withTelemetry(_0x2b4d43[_0xa25658(0x12c)],_0x217b13=>start(_0xf2b185[_0xa25658(0x193)],{'skipChromium':_0xf2b185['skip-chromium'],'scope':_0xf2b185['scope'],'url':_0xf2b185['url'],'force':_0xf2b185['force']},_0x217b13));})[_0x448d53(0x1ea)](_0x448d53(0xf3),![],_0x29b63d=>{const _0x2f10e1=_0x448d53,_0x5965ce={'rwqfm':_0x2f10e1(0x1b0),'TBTOB':'string','WCJws':'task','TPaIy':'Task\x20description\x20(defaults\x20to\x20scenario\x20description)','irtkl':_0x2f10e1(0xba),'kSiDn':_0x2f10e1(0xc3),'EAKrp':'profile','kLabr':'scenario','yrhXu':_0x2f10e1(0x194),'lbdcN':'start-path','kXFyW':_0x2f10e1(0x1f9),'dELeB':_0x2f10e1(0x1a8),'ieUbe':_0x2f10e1(0x1af),'RfgsH':'boolean','YHbHe':'debug-outcome','RgEyq':_0x2f10e1(0xd6)};return _0x29b63d[_0x2f10e1(0x181)](_0x5965ce['rwqfm'],{'type':_0x5965ce['TBTOB'],'description':_0x2f10e1(0x16f)})[_0x2f10e1(0x181)](_0x5965ce[_0x2f10e1(0xa3)],{'type':'string','description':_0x5965ce['TPaIy']})[_0x2f10e1(0x181)](_0x5965ce[_0x2f10e1(0x1fe)],{'type':'number','description':_0x5965ce[_0x2f10e1(0x108)]})[_0x2f10e1(0x181)](_0x5965ce['EAKrp'],{'type':_0x2f10e1(0x1aa),'hidden':!![]})[_0x2f10e1(0x181)]('notes',{'type':_0x5965ce[_0x2f10e1(0x146)],'hidden':!![]})['option'](_0x5965ce[_0x2f10e1(0x1a4)],{'type':_0x5965ce['yrhXu'],'hidden':!![]})['option'](_0x5965ce['lbdcN'],{'type':'string','description':_0x5965ce['kXFyW']})['option'](_0x5965ce[_0x2f10e1(0x1b9)],{'type':'string','hidden':!![]})['option'](_0x5965ce[_0x2f10e1(0xee)],{'type':_0x5965ce['RfgsH'],'hidden':!![],'default':![]})[_0x2f10e1(0x181)](_0x5965ce['YHbHe'],{'type':_0x2f10e1(0x1aa),'hidden':!![],'choices':[_0x2f10e1(0x1d2),_0x2f10e1(0x19e),_0x2f10e1(0x144),_0x2f10e1(0xd5),_0x5965ce['RgEyq']]});},async _0x1ccc01=>{await runGoCommand(_0x1ccc01,!![]);})['command']('add\x20env\x20<env-name>',![],_0x10d0f5=>{const _0x5a5c24=_0x448d53,_0x366959={'GFpoT':_0x5a5c24(0x163),'pTARV':_0x5a5c24(0x19f),'aoRKT':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)'};return _0x10d0f5[_0x5a5c24(0x197)]('env-name',{'type':_0x5a5c24(0x1aa),'description':_0x5a5c24(0xc4),'demandOption':!![]})['option']('ci',{'type':_0x366959[_0x5a5c24(0x1e2)],'description':_0x366959['pTARV'],'default':![]})['option']('skip-auth',{'type':_0x5a5c24(0x163),'description':_0x366959[_0x5a5c24(0x1f2)],'default':![]});},async _0x59e199=>{const _0x552947=_0x448d53,_0x56dcd1={'auWvW':function(_0x2d4b24,_0x11294b,_0x27f023){return _0x2d4b24(_0x11294b,_0x27f023);},'UsoWm':_0x552947(0xed)};_0x56dcd1[_0x552947(0x1ae)](warnRenamed,_0x552947(0xd7),_0x56dcd1['UsoWm']),await _0x56dcd1[_0x552947(0x1ae)](withTelemetry,_0x552947(0xd0),_0x47a689=>addEnv(_0x59e199['env-name'],{'ci':_0x59e199['ci'],'skipAuth':_0x59e199['skip-auth']},_0x47a689));})['command']('use\x20<env-name>',![],_0x2b2aad=>{const _0x449036=_0x448d53,_0x5697b1={'EUUcd':'env-name','QfhVs':_0x449036(0x1d1)};return _0x2b2aad[_0x449036(0x197)](_0x5697b1['EUUcd'],{'type':_0x449036(0x1aa),'description':_0x5697b1[_0x449036(0xc6)],'demandOption':!![]});},async _0x55f25b=>{warnRenamed('ranger\x20use','ranger\x20profile\x20use'),await withTelemetry('use',()=>useEnv(_0x55f25b['env-name']));})[_0x448d53(0x1ea)]('config',![],_0x3b1bba=>{const _0x53866a=_0x448d53,_0x59bb85={'SgcQw':'string','zsgOe':_0x53866a(0x1cc),'ZlOBl':_0x53866a(0x177),'zYWAq':_0x53866a(0x1a6),'mBoVS':function(_0x226830,_0x474228,_0x45e28f){return _0x226830(_0x474228,_0x45e28f);},'nYAjD':'config\x20set','klaNe':_0x53866a(0x1b0),'xjpPR':_0x53866a(0x190),'xuGzG':function(_0x493d51,_0x3cc798,_0x352c84){return _0x493d51(_0x3cc798,_0x352c84);},'ukrYX':'config\x20get','PfCwB':_0x53866a(0x195),'bvqfV':function(_0x335961,_0x4da979,_0x5508e7){return _0x335961(_0x4da979,_0x5508e7);},'rBybU':function(_0x58a008,_0x2d70a7,_0x166826){return _0x58a008(_0x2d70a7,_0x166826);},'phdQV':'ranger\x20config\x20unset','eaAZN':_0x53866a(0x147),'UAKmF':_0x53866a(0x166),'xllog':_0x53866a(0xe1)};return _0x3b1bba['command'](_0x59bb85['eaAZN'],![],_0xb5dbbc=>{const _0xd23f03=_0x53866a;return _0xb5dbbc['positional']('env',{'type':'string','description':'Environment\x20name','demandOption':!![]})['positional'](_0xd23f03(0x190),{'type':_0x59bb85[_0xd23f03(0xd2)],'description':_0xd23f03(0x13b),'demandOption':!![]})['positional'](_0xd23f03(0x1be),{'type':'string','description':_0x59bb85['zsgOe'],'demandOption':!![]});},async _0x364862=>{const _0xf23ab6=_0x53866a;warnRenamed(_0x59bb85[_0xf23ab6(0x1fa)],_0x59bb85['zYWAq']),await _0x59bb85['mBoVS'](withTelemetry,_0x59bb85['nYAjD'],()=>configSet(_0x364862[_0xf23ab6(0x1b0)],_0x364862['key'],_0x364862['value']));})['command'](_0x53866a(0x17a),![],_0x455df4=>{const _0x1f088c=_0x53866a;return _0x455df4['positional'](_0x59bb85[_0x1f088c(0xe0)],{'type':_0x59bb85[_0x1f088c(0xd2)],'description':_0x1f088c(0x195),'demandOption':!![]})['positional'](_0x59bb85[_0x1f088c(0xea)],{'type':_0x1f088c(0x1aa),'description':_0x1f088c(0x1e3),'demandOption':!![]});},async _0x37ad23=>{const _0x31e555=_0x53866a;_0x59bb85[_0x31e555(0xe5)](warnRenamed,_0x31e555(0x11d),_0x31e555(0x1eb)),await withTelemetry(_0x59bb85['ukrYX'],()=>configGet(_0x37ad23[_0x31e555(0x1b0)],_0x37ad23['key']));})['command'](_0x59bb85['UAKmF'],![],_0x2c69fe=>{const _0x3383e0=_0x53866a;return _0x2c69fe['positional'](_0x3383e0(0x1b0),{'type':'string','description':_0x59bb85[_0x3383e0(0xab)],'demandOption':!![]});},async _0x4ade36=>{const _0x2d97ef=_0x53866a;_0x59bb85[_0x2d97ef(0xd9)](warnRenamed,_0x2d97ef(0xfb),_0x2d97ef(0x1c4)),await withTelemetry('config\x20list',()=>configList(_0x4ade36[_0x2d97ef(0x1b0)]));})[_0x53866a(0x1ea)](_0x53866a(0x174),![],_0x23e1cc=>{const _0x5f3789=_0x53866a;return _0x23e1cc['positional'](_0x5f3789(0x1b0),{'type':_0x5f3789(0x1aa),'description':_0x5f3789(0x195),'demandOption':!![]})[_0x5f3789(0x197)](_0x59bb85['xjpPR'],{'type':_0x59bb85['SgcQw'],'description':'Config\x20key\x20to\x20remove','demandOption':!![]});},async _0xcb52f1=>{const _0x26cb89=_0x53866a;_0x59bb85[_0x26cb89(0xb5)](warnRenamed,_0x59bb85[_0x26cb89(0x1c3)],'ranger\x20profile\x20config\x20unset'),await withTelemetry(_0x26cb89(0x110),()=>configUnset(_0xcb52f1['env'],_0xcb52f1[_0x26cb89(0x190)]));})[_0x53866a(0xb2)](0x1,_0x59bb85[_0x53866a(0x158)]);})['command']('env',![],_0x3d8cfd=>{const _0x3a6f9d=_0x448d53,_0x535d3f={'aFhfH':_0x3a6f9d(0x1f6),'vjSwQ':_0x3a6f9d(0x1c6),'lfnZm':_0x3a6f9d(0xbe)};return _0x3d8cfd[_0x3a6f9d(0x1ea)]('ls',![],()=>{},async()=>{const _0x10a77e=_0x3a6f9d;warnRenamed(_0x535d3f[_0x10a77e(0x15f)],_0x535d3f['vjSwQ']),await withTelemetry('env\x20list',()=>envList());})[_0x3a6f9d(0x1ea)](_0x3a6f9d(0x1d8),![],_0x17818c=>{return _0x17818c['positional']('env-name',{'type':'string','description':'Name\x20of\x20the\x20environment\x20to\x20update','demandOption':!![]});},async _0x55f746=>{const _0x11af18=_0x3a6f9d;warnRenamed('ranger\x20env\x20update',_0x535d3f['lfnZm']),await withTelemetry(_0x11af18(0x1b6),_0xfde18d=>updateEnv(_0x55f746['env-name'],_0xfde18d));})['demandCommand'](0x1,'You\x20must\x20specify\x20an\x20env\x20subcommand');})[_0x448d53(0x1ea)](_0x448d53(0x160),![],_0x22333f=>{const _0x361f1a=_0x448d53,_0x405e44={'fUeQr':_0x361f1a(0x196),'ccvVi':_0x361f1a(0x1aa),'dklFE':_0x361f1a(0x142),'eflje':_0x361f1a(0x164),'rIAIs':_0x361f1a(0xf6),'wncRA':'checklist','kAtss':_0x361f1a(0x200),'mzAcs':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','kFkva':_0x361f1a(0xb6),'batgv':function(_0x1dd8f8,_0xe93dc,_0x588b50){return _0x1dd8f8(_0xe93dc,_0x588b50);},'MxhrQ':function(_0x558690,_0x39e050,_0x27ad95,_0x424547){return _0x558690(_0x39e050,_0x27ad95,_0x424547);},'hcouN':'ranger\x20create','oFejQ':_0x361f1a(0x1cd),'dElfZ':_0x361f1a(0xc9),'RVgzZ':_0x361f1a(0x163),'ZooqF':_0x361f1a(0x11b),'lfwns':_0x361f1a(0x194),'YNPzl':_0x361f1a(0xe4),'ARBlZ':function(_0x3b33f3,_0x4cf229,_0x303bf9){return _0x3b33f3(_0x4cf229,_0x303bf9);},'kjdCN':'feature\x20list','tuJOi':function(_0x5d4fec,_0x207d49,_0x5f4cff){return _0x5d4fec(_0x207d49,_0x5f4cff);},'ikcxH':_0x361f1a(0x1ad),'lBzMF':'ranger\x20resume','JpMQK':'feature\x20resume','gAIBy':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','SFVcE':_0x361f1a(0x143),'ycHAx':_0x361f1a(0x1de),'bACVY':_0x361f1a(0xe6),'YwJCF':function(_0x1d5360,_0x584da0,_0x23e868){return _0x1d5360(_0x584da0,_0x23e868);},'wussg':'Feature\x20review\x20ID\x20to\x20restore','jiSoj':_0x361f1a(0x1e7),'YwNbD':function(_0x439271,_0x39acd8,_0x457b05){return _0x439271(_0x39acd8,_0x457b05);},'pWjDo':'feature\x20restore','dTGVC':_0x361f1a(0x1d4),'KReLs':_0x361f1a(0x1ff)};return _0x22333f[_0x361f1a(0x1ea)](_0x405e44['dTGVC'],![],_0x38c0a2=>{const _0x5d2bb4=_0x361f1a;return _0x38c0a2[_0x5d2bb4(0x197)](_0x405e44['fUeQr'],{'type':_0x405e44['ccvVi'],'description':_0x405e44[_0x5d2bb4(0x15e)],'demandOption':!![]})['option'](_0x405e44['eflje'],{'type':_0x405e44[_0x5d2bb4(0x105)],'alias':'d','description':_0x405e44['rIAIs']})[_0x5d2bb4(0x181)](_0x405e44['wncRA'],{'type':_0x405e44['kAtss'],'alias':'c','description':_0x405e44[_0x5d2bb4(0xdc)]})[_0x5d2bb4(0x181)](_0x405e44[_0x5d2bb4(0xb1)],{'type':'array','hidden':!![]});},async _0x689277=>{const _0x8db050=_0x361f1a;_0x405e44[_0x8db050(0x1ef)](warnRenamed,_0x8db050(0x1a1),_0x8db050(0x1c8)),_0x405e44['MxhrQ'](warnFlagRenamed,_0x405e44[_0x8db050(0x1a0)],_0x405e44[_0x8db050(0xd3)],_0x405e44[_0x8db050(0xd1)]);const _0x56a484=_0x689277[_0x8db050(0xb6)]||_0x689277[_0x8db050(0x199)];await withTelemetry('feature\x20create',()=>featureCreate(_0x689277[_0x8db050(0x196)],{'description':_0x689277['description'],'scenarios':_0x56a484}));})[_0x361f1a(0x1ea)]('list',![],_0x23201d=>{const _0x24b5b5=_0x361f1a;return _0x23201d[_0x24b5b5(0x181)](_0x24b5b5(0x1d7),{'type':_0x405e44['RVgzZ'],'description':'Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch'})['option'](_0x405e44['ZooqF'],{'type':_0x405e44[_0x24b5b5(0x1b5)],'alias':'l','description':'Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','default':0xa})['option']('offset',{'type':_0x405e44['lfwns'],'alias':'o','description':_0x24b5b5(0x10b),'default':0x0})[_0x24b5b5(0x181)](_0x405e44['YNPzl'],{'type':_0x24b5b5(0x163),'alias':'d','description':'Include\x20soft-deleted\x20feature\x20reviews','default':![]});},async _0x30aac6=>{const _0x5c640d=_0x361f1a;_0x405e44[_0x5c640d(0x1d9)](warnRenamed,'ranger\x20feature\x20list','ranger\x20list'),await withTelemetry(_0x405e44['kjdCN'],()=>featureList({'currentBranch':_0x30aac6['current-branch'],'limit':_0x30aac6[_0x5c640d(0x11b)],'offset':_0x30aac6['offset'],'includeDeleted':_0x30aac6[_0x5c640d(0xe4)]}));})[_0x361f1a(0x1ea)]('show\x20[id]',![],_0x244c95=>{const _0x30870b=_0x361f1a;return _0x244c95['positional']('id',{'type':_0x405e44[_0x30870b(0x105)],'description':_0x30870b(0x169)});},async _0x3ddb50=>{const _0xd494f8=_0x361f1a;_0x405e44['tuJOi'](warnRenamed,_0x405e44['ikcxH'],'ranger\x20show'),await _0x405e44['batgv'](withTelemetry,_0xd494f8(0xf4),()=>featureShow(_0x3ddb50['id']));})['command']('resume\x20[id]',![],_0x456368=>{const _0xc46393=_0x361f1a;return _0x456368['positional']('id',{'type':_0x405e44['ccvVi'],'description':_0xc46393(0x154)});},async _0x4500c6=>{const _0x18faba=_0x361f1a;warnRenamed('ranger\x20feature\x20resume',_0x405e44['lBzMF']),await _0x405e44[_0x18faba(0x1ef)](withTelemetry,_0x405e44[_0x18faba(0x138)],()=>featureResume(_0x4500c6['id']));})[_0x361f1a(0x1ea)](_0x361f1a(0xc2),![],_0x1411a1=>{const _0x433650=_0x361f1a;return _0x1411a1[_0x433650(0x197)](_0x405e44['eflje'],{'type':_0x405e44[_0x433650(0x105)],'description':'Scenario\x20description','demandOption':!![]})['option']('id',{'type':'string','description':_0x405e44['gAIBy']});},async _0x1baa9f=>{const _0x3804fd=_0x361f1a;warnRenamed(_0x405e44[_0x3804fd(0x1e5)],'ranger\x20add-scenario'),await withTelemetry(_0x3804fd(0x1b7),()=>featureAddScenario(_0x1baa9f[_0x3804fd(0x164)],_0x1baa9f['id']));})['command'](_0x405e44['KReLs'],![],_0x3f8b8f=>{const _0x255960=_0x361f1a;return _0x3f8b8f['positional']('id',{'type':_0x255960(0x1aa),'description':_0x405e44['gAIBy']});},async _0x446a94=>{const _0x4f9948=_0x361f1a;warnRenamed('ranger\x20feature\x20get-feedback','ranger\x20get-review'),await _0x405e44[_0x4f9948(0x1ef)](withTelemetry,_0x4f9948(0xa9),()=>featureGetReview(_0x446a94['id']));})['command']('delete\x20[id]',![],_0x5f2468=>{const _0x46b1c2=_0x361f1a;return _0x5f2468['positional']('id',{'type':_0x405e44[_0x46b1c2(0x105)],'description':_0x46b1c2(0x169)});},async _0x46d4fe=>{const _0x59905b=_0x361f1a;warnRenamed(_0x405e44[_0x59905b(0xef)],_0x405e44[_0x59905b(0xa6)]),await _0x405e44['YwJCF'](withTelemetry,_0x59905b(0x191),()=>featureDelete(_0x46d4fe['id']));})['command'](_0x361f1a(0x18d),![],_0xae1716=>{const _0x46e3f6=_0x361f1a;return _0xae1716['positional']('id',{'type':_0x46e3f6(0x1aa),'description':_0x405e44[_0x46e3f6(0x134)],'demandOption':!![]});},async _0x1d6dec=>{const _0xc199ea=_0x361f1a;warnRenamed('ranger\x20feature\x20restore',_0x405e44[_0xc199ea(0xbd)]),await _0x405e44['YwNbD'](withTelemetry,_0x405e44[_0xc199ea(0x11f)],()=>featureRestore(_0x1d6dec['id']));})['demandCommand'](0x1,_0x361f1a(0xeb));})[_0x448d53(0x1ea)](_0x448d53(0x128),![],_0x5cad55=>{const _0x940d68=_0x448d53,_0x51eeb1={'cJLlr':_0x940d68(0xff),'arJPr':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','oIbfb':'string','ZHWaS':function(_0x73d04,_0x561752,_0x243807){return _0x73d04(_0x561752,_0x243807);},'brKAJ':_0x940d68(0x125)};return _0x5cad55[_0x940d68(0x1ea)](_0x940d68(0x16c),_0x940d68(0x183),_0x1004a0=>{const _0x1ac7c1=_0x940d68;return _0x1004a0[_0x1ac7c1(0x181)](_0x51eeb1['cJLlr'],{'type':'string','description':_0x51eeb1[_0x1ac7c1(0x198)]});},async _0xf0db8d=>{await withTelemetry('hook:enable',()=>hook('enable',_0xf0db8d['session-id']));})[_0x940d68(0x1ea)](_0x940d68(0xf5),_0x940d68(0xe9),_0x2e5274=>{const _0x36d337=_0x940d68;return _0x2e5274[_0x36d337(0x181)]('session-id',{'type':_0x51eeb1[_0x36d337(0xfd)],'description':_0x36d337(0x140)});},async _0x5d3d98=>{await _0x51eeb1['ZHWaS'](withTelemetry,'hook:disable',()=>hook('disable',_0x5d3d98['session-id']));})['option'](_0x940d68(0x196),{'type':_0x940d68(0x1aa),'description':_0x51eeb1[_0x940d68(0x165)]})['option']('session-id',{'type':'string','description':_0x51eeb1['arJPr']});},async _0x38c929=>{const _0x1d9d33=_0x448d53,_0x23fdd2={'XBqWP':function(_0x5ccd2c,_0x4b209c,_0xc7ba26){return _0x5ccd2c(_0x4b209c,_0xc7ba26);}};_0x38c929['name']&&await _0x23fdd2[_0x1d9d33(0x1ba)](hook,_0x38c929[_0x1d9d33(0x196)],_0x38c929[_0x1d9d33(0xff)]);})[_0x448d53(0xb2)](0x1,'You\x20must\x20specify\x20a\x20command')[_0x448d53(0x127)]()['fail'](async(_0x471e1f,_0x48696e,_0x4e9e97)=>{const _0x3e7c67=_0x448d53,_0x37d386={'bkPxH':function(_0xc1975,_0x4a5fd8){return _0xc1975(_0x4a5fd8);},'QPFFx':function(_0x248821,_0x2564db,_0x500693){return _0x248821(_0x2564db,_0x500693);},'NMOpw':function(_0x5e2b37){return _0x5e2b37();},'WwFNE':function(_0x81e4ac,_0x4afe61){return _0x81e4ac||_0x4afe61;}},_0x447476=_0x37d386[_0x3e7c67(0x136)](sanitizeArgs,process[_0x3e7c67(0x12d)]['slice'](0x2)),_0x189b08=_0x37d386['QPFFx'](getErrorType,_0x471e1f,_0x48696e);if(_0x471e1f&&_0x471e1f['includes']('Unknown\x20command')){const _0x4d443e=process['argv'][0x2];console[_0x3e7c67(0x1fc)]('\x0aUnknown\x20command:\x20'+_0x4d443e),console['error']('Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a');}else{if(_0x471e1f)console['error']('\x0a'+_0x471e1f+'\x0a');else _0x48696e&&console[_0x3e7c67(0x1fc)](_0x3e7c67(0xae)+_0x48696e['message']+'\x0a');}await logDesirePath({'rawCommand':_0x447476,'errorMessage':_0x471e1f||_0x48696e?.[_0x3e7c67(0x124)],'errorType':_0x189b08});const _0x29dac0=_0x37d386['NMOpw'](getCurrentCollector);_0x29dac0&&await _0x29dac0[_0x3e7c67(0x161)](_0x48696e||new Error(_0x37d386[_0x3e7c67(0xa5)](_0x471e1f,'Unknown\x20error'))),process[_0x3e7c67(0x1f0)](0x1);})[_0x448d53(0x126)](_0x448d53(0x1f3)+'\x20\x20https://docs.ranger.net\x0a'+_0x448d53(0x178))['help']()['alias'](_0x448d53(0x1e6),'h')['parse']();
2
+ const _0x18f7c8=_0x485e;(function(_0x580a17,_0x1f7326){const _0x5e5e2b=_0x485e,_0xc03ca5=_0x580a17();while(!![]){try{const _0x36a8c3=parseInt(_0x5e5e2b(0x213))/0x1+parseInt(_0x5e5e2b(0x175))/0x2+parseInt(_0x5e5e2b(0x11b))/0x3+-parseInt(_0x5e5e2b(0x244))/0x4*(-parseInt(_0x5e5e2b(0x21f))/0x5)+-parseInt(_0x5e5e2b(0x20f))/0x6*(parseInt(_0x5e5e2b(0x1ab))/0x7)+-parseInt(_0x5e5e2b(0x1d1))/0x8*(parseInt(_0x5e5e2b(0x263))/0x9)+-parseInt(_0x5e5e2b(0x21a))/0xa;if(_0x36a8c3===_0x1f7326)break;else _0xc03ca5['push'](_0xc03ca5['shift']());}catch(_0x3a267d){_0xc03ca5['push'](_0xc03ca5['shift']());}}}(_0x20c7,0xe73df));import _0x47d76f from'dotenv';import{dirname,join,parse}from'path';import{existsSync}from'fs';function _0x20c7(){const _0x2823a8=['update\x20<profile-name>','Name\x20of\x20the\x20profile\x20to\x20update','cKlKK','\x0aIssues:','You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand','create','scope','exclude-scenario','trackCommandError','get\x20<profile>\x20<key>','TmqXM','oRMAs','VFvtZ','get-review\x20[id]','aQcRm','evaluation','notes','roBMT','command','LIxrO','XoHoP','Feature\x20review\x20description','UvZkF','Scenario\x20description','allow-insecure-localhost','bpllo','Add\x20profile\x20configuration','Evaluation:\x20','severity','XTtri','config','GncyP','Install\x20Ranger\x20skills','offset','string','KOmSU','Config\x20key\x20to\x20remove','project','6zpsPtv','LPWcK','qElPG','DxNFr','1634096XEJBYG','JaWDq','key','ykZSA','repeat','encrypt\x20<profile>','oBqQJ','2700020MVLmRi','LYUMq','feature\x20get-feedback','yQeON','add\x20env\x20<env-name>','274025zCRBeg','\x20VERIFIED','jHwlp','hook:disable','OTfqN','Reason:\x20','\x20PARTIAL','gLLUj','blocked','ZvkVA','Optional\x20feature\x20ID','Uoyns','OQfJZ','HhIwd','You\x20must\x20specify\x20a\x20profile\x20subcommand','tKlHi','clean','IJNWK','show\x20[id]','Iphon','ranger\x20feature\x20restore','model','--scenario','VcUKq','cwd','wHycB','rGUst','gjxiE','Manage\x20profile\x20configuration','jekeV','scenario','enable','eWWRd','WFxpl','IBsRa','zNZTM','ranger\x20restore','92UtCTYC','include-deleted','unset\x20<profile>\x20<key>','Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)','cdp-endpoint','kVZrt','partial','Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','PJNOk','aerxw','Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','Ranger\x20API\x20token','vhvpZ','KqDDg','EqcMv','--notes','ooKWE','Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)','profile-name','sUgUy','Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','axDUv','ranger\x20list','MztPV','uZceq','error','CeMPN','ranger\x20get-review','jswmU','zfzGx','resume','9ykGXcv','ZBFaS','svqZe','list\x20<env>','ranger\x20profile\x20update','failed','update','tVeye','ugoNy','SnrkB','verified','status','ranger\x20env\x20ls','option','--env','fkZuR','ktqEA','.\x20[','strictCommands','Feature\x20review\x20name','config\x20list','JUsuC','use\x20<profile-name>','Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','Feature\x20review\x20ID','ranger\x20verify-feature','cGITL','sIjps','ranger\x20create','usage','startsWith','ranger\x20env\x20update','version','setup-ci','gUoGm','CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.','szAju','user','List\x20all\x20config\x20for\x20a\x20profile','task','restore','lbLBz','XdCXO','UwrXR','config\x20get','pLsNz','tdudz','1099815VTZYXV','UEqQR','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','create\x20<name>','hook','current-branch','Config\x20key','checklist','get\x20<env>\x20<key>','viywd','wnCLG','ZxPQX','dpTrM','ranger\x20delete','ranger\x20use','url','restore\x20<id>','ASyXm','Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','nrLYV','Disable\x20browser\x20features\x20that\x20can\x20cause\x20crashes\x20on\x20some\x20systems\x20(e.g.\x20Bluetooth\x20permission\x20prompts\x20on\x20macOS)','oDvJZ','PwytP','get-review','Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','XNrGo','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\x20(e.g.,\x20header.X-Test-Mode)\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','zETgR','token','hVScU','number','verify-feature','VXmTD','wpIOd','IgInq','pJfZH','\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)','epilogue','limit','force','kHvqT','Initialize\x20Ranger\x20in\x20your\x20project','obUJn','List\x20all\x20feature\x20reviews','UOySb','skip-auth','SmwuN','iqJhk','Number\x20of\x20feature\x20reviews\x20to\x20skip','scriptName','Skip\x20Chromium\x20browser\x20check\x20and\x20installation','pIPYJ','kkdnP','array','item','lbBtG','ranger\x20show','config\x20set','env\x20list','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','login','summary','FiQcM','pBKLT','some','Scenario\x20index\x20(1-based)','update\x20<env-name>','JEito','Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','jreFr','message','Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','GOLyn','start','--checklist','safe-mode','You\x20must\x20specify\x20an\x20env\x20subcommand','bMPHd','Restore\x20a\x20soft-deleted\x20feature\x20review','IjVLt','env-name','Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','evvUp','positional','You\x20must\x20specify\x20a\x20command','Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)','tlYwD','Update\x20authentication\x20for\x20an\x20existing\x20profile','demandCommand','aqAFH','24570cGhZUk','issues','disable','profile','JISHb','session-id','GktRG','GpSvu','slice','log','rlwZH','ZEMZV','xVjtm','LepAd','TdifG','list','Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','feature\x20delete','ELvky','Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','ranger\x20profile\x20config\x20set','MWkxQ','list\x20<profile>','CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)','ranger\x20profile\x20config\x20get','gBFcU','use\x20<env-name>','HWYNm','GMUby','profile\x20use','mqZfK','mHuNe','YHDZm','ranger\x20add-scenario','Config\x20value','yVEbE','start-path','name','HWhqP','Environment\x20name','feature','ranger\x20feature\x20list','ranger\x20go','HJZwn','kSpHC','.env','env','Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios','fzlPy','HihVp','headed','ranger\x20setup','7362131idittK','Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review','delete\x20[id]','edit-scenario','afugh','EcVJk','Skip\x20Claude\x20Code\x20plugin\x20+\x20skills\x20install\x20(for\x20OpenCode\x20users)','Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','profile\x20encrypt-auth','profile\x20config\x20list','set\x20<env>\x20<key>\x20<value>','--task','debug-outcome','BOsPT','argv','incomplete','ranger\x20feature\x20show','bLmlN','Enable\x20Ranger\x20hooks\x20for\x20this\x20session','DSFeN','opencode','Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','JRCyF','\x20\x20https://docs.ranger.net\x0a','JujAo','json','description','XveNy','Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','NRtiU','parse','default','setup-ci\x20<token>','IjVzG','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)','ranger\x20profile\x20ls','Profile\x20name','OJIxC','8036792QfWMIl','profile\x20config\x20get','boolean','exit','iJVaf','CyQIz','debug-address-comments','skip-chromium','xQefV','.ranger','EoxML','jLzKC','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','ranger\x20config\x20get','Feature\x20review\x20ID\x20to\x20restore','jYRwV','ranger\x20add\x20env','ztqcv','Sjwwa','iqruq','auaMb','profile\x20update','CsiMR','feature\x20restore'];_0x20c7=function(){return _0x2823a8;};return _0x20c7();}function findProjectRoot(){const _0x3f8985=_0x485e,_0x37826d={'EOynd':function(_0x44c0cb,_0x489860){return _0x44c0cb(_0x489860);},'VXmTD':function(_0x5b4555,_0x4ec1c3){return _0x5b4555!==_0x4ec1c3;},'IXlWC':function(_0x466eb6,_0x46b2f3){return _0x466eb6(_0x46b2f3);},'vOUIb':function(_0x17ad65,_0x355b8e){return _0x17ad65(_0x355b8e);}};let _0x55ae39=process['cwd']();const _0x28f42e=_0x37826d['EOynd'](parse,_0x55ae39)['root'];while(_0x37826d[_0x3f8985(0x13b)](_0x55ae39,_0x28f42e)){if(existsSync(join(_0x55ae39,_0x3f8985(0x1da)))||_0x37826d['IXlWC'](existsSync,join(_0x55ae39,_0x3f8985(0x1a3))))return _0x55ae39;_0x55ae39=_0x37826d['vOUIb'](dirname,_0x55ae39);}return process[_0x3f8985(0x237)]();}_0x47d76f[_0x18f7c8(0x207)]({'path':join(findProjectRoot(),_0x18f7c8(0x1a3))});import _0x547e54 from'yargs/yargs';import{addEnv,clean,login,start,setupCi,useEnv,updateEnv,update,skillup,envList,hook}from'./commands/index.js';import{authEncrypt}from'./commands/authEncrypt.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{featureCreate,featureList,featureShow,featureResume,featureAddScenario,featureEditScenario,featureGetReview,featureReportPrDescription,featureDelete,featureRestore}from'./commands/feature.js';import{logDesirePath,getErrorType,sanitizeArgs}from'./commands/utils/desirePathLog.js';import{getCurrentVersion}from'./commands/utils/version.js';function _0x485e(_0x551428,_0x42e395){_0x551428=_0x551428-0x110;const _0x20c758=_0x20c7();let _0x485eb4=_0x20c758[_0x551428];return _0x485eb4;}import{withTelemetry,getCurrentCollector}from'./commands/utils/telemetry.js';process['on']('unhandledRejection',async _0x51ec83=>{const _0x25f3ec=_0x18f7c8,_0x44bc67={'rlwZH':function(_0x20dc31){return _0x20dc31();}},_0x3537d0=_0x44bc67[_0x25f3ec(0x17f)](getCurrentCollector);_0x3537d0&&await _0x3537d0[_0x25f3ec(0x1f1)](_0x51ec83),process['exitCode']=0x1;});const rawArgs=process['argv']['slice'](0x2),TOP_LEVEL_HELP='Usage:\x20ranger\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20setup\x20[token]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Initialize\x20Ranger\x20in\x20your\x20project\x0a\x20\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)\x0a\x20\x20\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Set/get/list/unset\x20profile\x20config\x0a\x0a\x20\x20create\x20<name>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Create\x20a\x20feature\x20review\x20with\x20scenarios\x0a\x20\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20feature\x20reviews\x0a\x20\x20show\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20feature\x20review\x20details\x0a\x20\x20resume\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20feature\x20review\x0a\x20\x20add-scenario\x20<description>\x20\x20Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review\x0a\x20\x20edit-scenario\x20<description>\x20Edit\x20a\x20scenario\x20description\x0a\x20\x20get-review\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20reviewer\x20feedback\x0a\x20\x20report\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Generate\x20PR\x20description\x20markdown\x0a\x20\x20delete\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Soft\x20delete\x20a\x20feature\x20review\x0a\x20\x20restore\x20<id>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Restore\x20a\x20soft-deleted\x20feature\x20review\x0a\x0a\x20\x20go\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20a\x20scenario\x20in\x20the\x20browser\x0a\x0aRun\x20`ranger\x20<command>\x20--help`\x20for\x20details.',PROFILE_HELP='Usage:\x20ranger\x20profile\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth)\x0a\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Profile\x20config\x20(set/get/list/unset)\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20add\x20local\x0a\x20\x20ranger\x20profile\x20encrypt-auth\x20ci\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20headless\x20true',PROFILE_CONFIG_HELP=_0x18f7c8(0x135);function warnRenamed(_0x8449bf,_0x7a7df6){console['error']('\x0a'+_0x8449bf+'\x20is\x20now\x20'+_0x7a7df6+'\x0a');}function argUsed(_0x5154e7){const _0x1d8fd8=_0x18f7c8;return rawArgs[_0x1d8fd8(0x15b)](_0x533221=>_0x533221===_0x5154e7||_0x533221[_0x1d8fd8(0x281)](_0x5154e7+'='));}function warnFlagRenamed(_0x331278,_0x594f88,_0x1a77da){argUsed(_0x594f88)&&warnRenamed(_0x331278+'\x20'+_0x594f88,_0x331278+'\x20'+_0x1a77da);}async function runGoCommand(_0x2449cf,_0x16ab7a=![]){const _0x3a31fc=_0x18f7c8,_0x5e2edc={'ovSQC':_0x3a31fc(0x27c),'tlYwD':'ranger\x20go','tiMUP':function(_0x378985,_0x34492b,_0x5a4ac2,_0x5bc8d5){return _0x378985(_0x34492b,_0x5a4ac2,_0x5bc8d5);},'kSpHC':_0x3a31fc(0x1b6),'FyXqK':_0x3a31fc(0x253),'KGHNL':function(_0x45b2b1,_0x42545b,_0x2d4fb3,_0x3d4de5){return _0x45b2b1(_0x42545b,_0x2d4fb3,_0x3d4de5);},'tdudz':'--item','UluUi':'--scenario','tbNTe':function(_0x4ffae4){return _0x4ffae4();},'bccJA':function(_0xc0f2ab,_0x17c1b9){return _0xc0f2ab??_0x17c1b9;},'QEpiC':'start-path','EcVJk':'debug-outcome','NRtiU':function(_0xe11468,_0xd9dd06){return _0xe11468+_0xd9dd06;},'pJfZH':function(_0x220865,_0x2630cf){return _0x220865===_0x2630cf;},'uZceq':'verified','LepAd':_0x3a31fc(0x220),'LYUMq':_0x3a31fc(0x1ba),'krUCc':'partial','UOySb':_0x3a31fc(0x225),'DSFeN':_0x3a31fc(0x227),'tKlHi':'\x20BLOCKED','cKCaL':'\x20FAILED'};_0x16ab7a&&warnRenamed(_0x5e2edc['ovSQC'],_0x5e2edc['tlYwD']);_0x5e2edc['tiMUP'](warnFlagRenamed,_0x3a31fc(0x1a0),_0x3a31fc(0x271),'--profile'),warnFlagRenamed(_0x5e2edc[_0x3a31fc(0x171)],_0x5e2edc[_0x3a31fc(0x1a2)],_0x5e2edc['FyXqK']),_0x5e2edc['KGHNL'](warnFlagRenamed,_0x5e2edc['tlYwD'],_0x5e2edc[_0x3a31fc(0x11a)],_0x5e2edc['UluUi']);const _0x133c66=await _0x5e2edc['tbNTe'](loadRangerConfig),_0xc2e2b3=_0x2449cf[_0x3a31fc(0x234)],_0x5ecdaa=_0x133c66[_0x3a31fc(0x234)],_0xfc21fa=_0x5e2edc['bccJA'](_0xc2e2b3,_0x5ecdaa),_0xf0e5d9=_0xc2e2b3?'flag':_0x5ecdaa?'config':_0x3a31fc(0x1ca),_0x39b003=await verifyFeature({'featureId':_0x2449cf[_0x3a31fc(0x19e)],'profile':_0x2449cf['profile']??_0x2449cf['env'],'notes':_0x2449cf['notes']??_0x2449cf[_0x3a31fc(0x113)],'scenario':_0x2449cf['scenario']??_0x2449cf[_0x3a31fc(0x151)],'startPath':_0x2449cf[_0x5e2edc['QEpiC']],'debugOutcome':_0x2449cf[_0x5e2edc[_0x3a31fc(0x1b0)]],'debugAddressComments':_0x2449cf['debug-address-comments'],'headed':_0x2449cf[_0x3a31fc(0x1a9)],'verifyModel':_0xfc21fa,'verifyModelInput':_0xfc21fa,'verifyModelSource':_0xf0e5d9});console[_0x3a31fc(0x17e)](_0x5e2edc[_0x3a31fc(0x1c8)]('\x0a','='[_0x3a31fc(0x217)](0x3c))),console[_0x3a31fc(0x17e)](_0x5e2edc['pJfZH'](_0x39b003['evaluation'],_0x5e2edc[_0x3a31fc(0x25c)])?_0x5e2edc[_0x3a31fc(0x182)]:_0x39b003['evaluation']===_0x5e2edc[_0x3a31fc(0x21b)]?'\x20INCOMPLETE':_0x39b003['evaluation']===_0x5e2edc['krUCc']?_0x5e2edc[_0x3a31fc(0x147)]:_0x5e2edc[_0x3a31fc(0x13e)](_0x39b003[_0x3a31fc(0x1f8)],_0x5e2edc[_0x3a31fc(0x1be)])?_0x5e2edc[_0x3a31fc(0x22e)]:_0x5e2edc['cKCaL']),console['log']('='[_0x3a31fc(0x217)](0x3c)),console['log']('Summary:\x20'+_0x39b003[_0x3a31fc(0x158)]),console['log'](_0x3a31fc(0x204)+_0x39b003[_0x3a31fc(0x1f8)]),console['log'](_0x3a31fc(0x224)+_0x39b003['evaluationReason']),_0x39b003['issues']?.['length']&&(console['log'](_0x3a31fc(0x1ec)),_0x39b003[_0x3a31fc(0x176)]['forEach']((_0x5472ae,_0x623261)=>{const _0x4f60d7=_0x3a31fc;console['log']('\x0a'+(_0x623261+0x1)+_0x4f60d7(0x274)+_0x5472ae[_0x4f60d7(0x205)]+']\x20'+_0x5472ae[_0x4f60d7(0x1c5)]);})),process[_0x3a31fc(0x1d4)](_0x5e2edc['pJfZH'](_0x39b003[_0x3a31fc(0x1f8)],_0x5e2edc[_0x3a31fc(0x25c)])?0x0:0x1);}_0x547e54(process[_0x18f7c8(0x1b9)][_0x18f7c8(0x17d)](0x2))[_0x18f7c8(0x14c)]('ranger')['usage'](TOP_LEVEL_HELP)[_0x18f7c8(0x283)](getCurrentVersion())[_0x18f7c8(0x1fb)](_0x18f7c8(0x11e),_0x18f7c8(0x1a5),_0x3dfe5e=>{const _0x5e11fd=_0x18f7c8,_0x5afcfc={'vhvpZ':_0x5e11fd(0x19b),'OTfqN':'string','GktRG':_0x5e11fd(0x150)};return _0x3dfe5e['positional'](_0x5afcfc[_0x5e11fd(0x250)],{'type':_0x5afcfc['OTfqN'],'description':'Feature\x20review\x20name','demandOption':!![]})[_0x5e11fd(0x270)]('description',{'type':_0x5afcfc[_0x5e11fd(0x223)],'alias':'d','description':_0x5e11fd(0x1fe)})[_0x5e11fd(0x270)](_0x5e11fd(0x23d),{'type':_0x5afcfc['GktRG'],'alias':'c','description':_0x5e11fd(0x1b2)})[_0x5e11fd(0x270)]('checklist',{'type':_0x5afcfc[_0x5e11fd(0x17b)],'hidden':!![]});},async _0x296b13=>{const _0x59d60a=_0x18f7c8,_0x192427={'lbLBz':_0x59d60a(0x27f),'qElPG':_0x59d60a(0x165),'mvHpO':_0x59d60a(0x235),'wHycB':_0x59d60a(0x1ee)};warnFlagRenamed(_0x192427[_0x59d60a(0x115)],_0x192427[_0x59d60a(0x211)],_0x192427['mvHpO']);const _0x106b80=_0x296b13[_0x59d60a(0x23d)]||_0x296b13[_0x59d60a(0x122)];await withTelemetry(_0x192427[_0x59d60a(0x238)],()=>featureCreate(_0x296b13['name'],{'description':_0x296b13['description'],'scenarios':_0x106b80}));})['command']('list',_0x18f7c8(0x146),_0x2dff7=>{const _0x5be68a=_0x18f7c8,_0x13e9df={'ELvky':_0x5be68a(0x120),'iqruq':_0x5be68a(0x1d3),'rfZxN':_0x5be68a(0x1dd),'ZEMZV':_0x5be68a(0x139),'vlbpB':_0x5be68a(0x156),'FumOh':_0x5be68a(0x20a),'JEito':'include-deleted','rGUst':'Include\x20soft-deleted\x20feature\x20reviews'};return _0x2dff7[_0x5be68a(0x270)](_0x13e9df[_0x5be68a(0x188)],{'type':_0x13e9df[_0x5be68a(0x1e4)],'description':_0x13e9df['rfZxN']})['option']('limit',{'type':_0x13e9df[_0x5be68a(0x180)],'alias':'l','description':_0x13e9df['vlbpB'],'default':0xa})[_0x5be68a(0x270)](_0x13e9df['FumOh'],{'type':_0x5be68a(0x139),'alias':'o','description':_0x5be68a(0x14b),'default':0x0})[_0x5be68a(0x270)](_0x13e9df[_0x5be68a(0x15e)],{'type':_0x13e9df[_0x5be68a(0x1e4)],'alias':'d','description':_0x13e9df[_0x5be68a(0x239)],'default':![]});},async _0x59f864=>{const _0x58eb1e=_0x18f7c8,_0x3eae03={'pPnyR':'list'};await withTelemetry(_0x3eae03['pPnyR'],()=>featureList({'currentBranch':_0x59f864['current-branch'],'limit':_0x59f864['limit'],'offset':_0x59f864[_0x58eb1e(0x20a)],'includeDeleted':_0x59f864['include-deleted']}));})[_0x18f7c8(0x1fb)]('show\x20[id]',_0x18f7c8(0x12d),_0x3ef0d0=>{const _0x4aaaf3=_0x18f7c8,_0x5814f3={'MztPV':_0x4aaaf3(0x27b)};return _0x3ef0d0['positional']('id',{'type':_0x4aaaf3(0x20b),'description':_0x5814f3[_0x4aaaf3(0x25b)]});},async _0x11f444=>{const _0x5bbd05=_0x18f7c8,_0x2184b8={'xQefV':function(_0x2f9834,_0x260ded,_0x36431a){return _0x2f9834(_0x260ded,_0x36431a);},'jreFr':'show'};await _0x2184b8[_0x5bbd05(0x1d9)](withTelemetry,_0x2184b8[_0x5bbd05(0x160)],()=>featureShow(_0x11f444['id']));})[_0x18f7c8(0x1fb)]('resume\x20[id]','Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context',_0x326904=>{const _0x412c88=_0x18f7c8,_0x185eac={'pnBHx':_0x412c88(0x20b),'IgInq':_0x412c88(0x11d)};return _0x326904[_0x412c88(0x16e)]('id',{'type':_0x185eac['pnBHx'],'description':_0x185eac[_0x412c88(0x13d)]});},async _0x169cc6=>{const _0x10d36=_0x18f7c8,_0x5e2fc7={'YlCMd':_0x10d36(0x262)};await withTelemetry(_0x5e2fc7['YlCMd'],()=>featureResume(_0x169cc6['id']));})['command']('add-scenario\x20<description>',_0x18f7c8(0x1ac),_0x3f9b56=>{const _0xb224c9=_0x18f7c8,_0x49e9e4={'XoHoP':'string','nKQsr':_0xb224c9(0x200)};return _0x3f9b56[_0xb224c9(0x16e)](_0xb224c9(0x1c5),{'type':_0x49e9e4['XoHoP'],'description':_0x49e9e4['nKQsr'],'demandOption':!![]})['option']('id',{'type':_0x49e9e4[_0xb224c9(0x1fd)],'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x45c9f3=>{const _0x4cf414=_0x18f7c8,_0x3c88b3={'dpTrM':function(_0x2a3cf6,_0x385d84,_0x2f74c3){return _0x2a3cf6(_0x385d84,_0x2f74c3);},'UvZkF':'add-scenario'};await _0x3c88b3[_0x4cf414(0x127)](withTelemetry,_0x3c88b3[_0x4cf414(0x1ff)],()=>featureAddScenario(_0x45c9f3['description'],_0x45c9f3['id']));})[_0x18f7c8(0x1fb)]('edit-scenario\x20<description>','Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review',_0x56bd52=>{const _0x29639d=_0x18f7c8,_0x597f28={'edoUW':'description','KPOHE':'string','Xfavk':'New\x20scenario\x20description','svqZe':_0x29639d(0x139),'XSpMK':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'};return _0x56bd52['positional'](_0x597f28['edoUW'],{'type':_0x597f28['KPOHE'],'description':_0x597f28['Xfavk'],'demandOption':!![]})['option']('scenario',{'type':_0x597f28[_0x29639d(0x265)],'description':'Scenario\x20number\x20to\x20edit\x20(1-based)','demandOption':!![]})['option']('id',{'type':_0x29639d(0x20b),'description':_0x597f28['XSpMK']});},async _0x43d261=>{const _0x3d7b63=_0x18f7c8;await withTelemetry(_0x3d7b63(0x1ae),()=>featureEditScenario(_0x43d261['description'],{'id':_0x43d261['id'],'scenario':_0x43d261[_0x3d7b63(0x23d)]}));})['command']('report\x20[id]','Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)',_0x2219cd=>{const _0x103df1=_0x18f7c8,_0x4b18b4={'nrLYV':_0x103df1(0x20b),'zNZTM':'Feature\x20review\x20ID','CyQIz':'exclude-scenario','KHawj':_0x103df1(0x150),'oBqQJ':_0x103df1(0x255)};return _0x2219cd['positional']('id',{'type':_0x4b18b4[_0x103df1(0x12e)],'description':_0x4b18b4[_0x103df1(0x242)]})['option'](_0x4b18b4[_0x103df1(0x1d6)],{'type':_0x4b18b4['KHawj'],'description':_0x4b18b4[_0x103df1(0x219)]})[_0x103df1(0x270)](_0x103df1(0x1c4),{'type':'boolean','description':'Output\x20structured\x20JSON\x20data\x20instead\x20of\x20markdown','default':![]});},async _0xb256bc=>{const _0x2b79e0=_0x18f7c8,_0x49cc39={'vWVzJ':function(_0x5c7bbe,_0x3fb903,_0x3486d0){return _0x5c7bbe(_0x3fb903,_0x3486d0);}},_0x4f4c96=_0xb256bc[_0x2b79e0(0x1f0)],_0x2a7b42=_0x4f4c96?_0x4f4c96['map'](_0x37f004=>Number(_0x37f004)):undefined;await _0x49cc39['vWVzJ'](withTelemetry,'report',()=>featureReportPrDescription(_0xb256bc['id'],{'excludeScenarios':_0x2a7b42,'json':_0xb256bc[_0x2b79e0(0x1c4)]}));})['command'](_0x18f7c8(0x1f6),_0x18f7c8(0x1a6),_0x2c380f=>{const _0x20b07e=_0x18f7c8;return _0x2c380f['positional']('id',{'type':_0x20b07e(0x20b),'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x113f9e=>{const _0x2aa87d=_0x18f7c8,_0x7cccf={'KOmSU':function(_0x119cb7,_0x322ac5,_0x42bea7){return _0x119cb7(_0x322ac5,_0x42bea7);},'TdifG':_0x2aa87d(0x132)};await _0x7cccf[_0x2aa87d(0x20c)](withTelemetry,_0x7cccf[_0x2aa87d(0x183)],()=>featureGetReview(_0x113f9e['id']));})[_0x18f7c8(0x1fb)](_0x18f7c8(0x1ad),_0x18f7c8(0x162),_0x408a68=>{const _0x145024=_0x18f7c8,_0x553188={'HJZwn':_0x145024(0x20b),'BpuNe':'Feature\x20review\x20ID'};return _0x408a68[_0x145024(0x16e)]('id',{'type':_0x553188[_0x145024(0x1a1)],'description':_0x553188['BpuNe']});},async _0x4f7795=>{const _0x23ccd8=_0x18f7c8,_0x119747={'ozOOD':function(_0x55eaad,_0x234ad3,_0x250ffb){return _0x55eaad(_0x234ad3,_0x250ffb);},'Uoyns':'delete'};await _0x119747['ozOOD'](withTelemetry,_0x119747[_0x23ccd8(0x22a)],()=>featureDelete(_0x4f7795['id']));})['command']('restore\x20<id>',_0x18f7c8(0x169),_0x4f55ba=>{const _0x5dcd32=_0x18f7c8,_0xd94744={'Sjwwa':'string'};return _0x4f55ba['positional']('id',{'type':_0xd94744[_0x5dcd32(0x1e3)],'description':_0x5dcd32(0x1df),'demandOption':!![]});},async _0x3ba3f5=>{const _0x3780db=_0x18f7c8;await withTelemetry(_0x3780db(0x114),()=>featureRestore(_0x3ba3f5['id']));})[_0x18f7c8(0x1fb)]('setup\x20[token]',_0x18f7c8(0x144),_0x41694a=>{const _0x38a06a=_0x18f7c8,_0x9b5d1b={'jLzKC':_0x38a06a(0x20b),'LLQxV':'Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','vIkZv':'skip-chromium','oRMAs':'boolean','CeMPN':_0x38a06a(0x14d),'IjVLt':_0x38a06a(0x111),'cGJsY':'project','mqZfK':_0x38a06a(0x258),'gXAFM':'force','yUTdW':_0x38a06a(0x1bf),'qKAbj':_0x38a06a(0x1b1)};return _0x41694a[_0x38a06a(0x16e)]('token',{'type':_0x9b5d1b['jLzKC'],'description':_0x9b5d1b['LLQxV']})[_0x38a06a(0x270)](_0x9b5d1b['vIkZv'],{'type':_0x9b5d1b[_0x38a06a(0x1f4)],'description':_0x9b5d1b[_0x38a06a(0x25e)],'default':![]})[_0x38a06a(0x270)]('scope',{'type':_0x9b5d1b[_0x38a06a(0x1dc)],'choices':[_0x9b5d1b[_0x38a06a(0x16a)],_0x9b5d1b['cGJsY']],'description':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)'})['option'](_0x38a06a(0x12a),{'type':'string','description':_0x9b5d1b[_0x38a06a(0x194)]})['option'](_0x9b5d1b['gXAFM'],{'type':_0x9b5d1b[_0x38a06a(0x1f4)],'description':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','default':![]})[_0x38a06a(0x270)](_0x9b5d1b['yUTdW'],{'type':'boolean','description':_0x9b5d1b['qKAbj'],'default':![]})['option'](_0x38a06a(0x201),{'type':'boolean','description':_0x38a06a(0x15f),'default':![]});},async _0x5d51ad=>{const _0x443a00=_0x18f7c8,_0x490bb1={'nskOS':function(_0x467e74,_0x18dc1c,_0x323b3d){return _0x467e74(_0x18dc1c,_0x323b3d);},'axDUv':'start'};await _0x490bb1['nskOS'](withTelemetry,_0x490bb1[_0x443a00(0x259)],_0x3edbb6=>start(_0x5d51ad[_0x443a00(0x137)],{'skipChromium':_0x5d51ad[_0x443a00(0x1d8)],'scope':_0x5d51ad['scope'],'url':_0x5d51ad['url'],'force':_0x5d51ad['force'],'opencode':_0x5d51ad['opencode'],'allowInsecureLocalhost':_0x5d51ad[_0x443a00(0x201)]},_0x3edbb6));})['command'](_0x18f7c8(0x1cb),'Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)',_0x4080cc=>{const _0x5f0240=_0x18f7c8,_0x6b8207={'ZvkVA':_0x5f0240(0x24f),'wodHs':'profile','lflTC':'string','GpSvu':'Skip\x20Chromium\x20browser\x20installation'};return _0x4080cc[_0x5f0240(0x16e)]('token',{'type':'string','description':_0x6b8207[_0x5f0240(0x228)],'demandOption':!![]})['option'](_0x6b8207['wodHs'],{'type':'string','description':_0x5f0240(0x18d)})['option']('base-url',{'type':_0x6b8207['lflTC'],'description':'Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)'})['option'](_0x5f0240(0x1d8),{'type':'boolean','description':_0x6b8207[_0x5f0240(0x17c)],'default':![]});},async _0x5184ef=>{const _0x688756=_0x18f7c8,_0x41e4f7={'yEjZp':function(_0x2d5391,_0x4d6858,_0x1af91e){return _0x2d5391(_0x4d6858,_0x1af91e);}};await _0x41e4f7['yEjZp'](withTelemetry,_0x688756(0x284),_0x34098b=>setupCi(_0x5184ef[_0x688756(0x137)],{'profile':_0x5184ef[_0x688756(0x178)],'baseUrl':_0x5184ef['base-url'],'skipChromium':_0x5184ef['skip-chromium']},_0x34098b));})[_0x18f7c8(0x1fb)](_0x18f7c8(0x157),'Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)',()=>{},async()=>{const _0x2519f3=_0x18f7c8;await withTelemetry(_0x2519f3(0x157),()=>login());})[_0x18f7c8(0x1fb)]('skillup',_0x18f7c8(0x209),_0x313d0b=>{const _0x26ed97=_0x18f7c8,_0x116080={'TmqXM':_0x26ed97(0x1d3),'ayrMw':'Install\x20skills\x20for\x20OpenCode','tVeye':_0x26ed97(0x1ef),'NRhjl':_0x26ed97(0x111),'UEqQR':'Install\x20scope\x20for\x20skills'};return _0x313d0b[_0x26ed97(0x270)](_0x26ed97(0x1bf),{'type':_0x116080[_0x26ed97(0x1f3)],'description':_0x116080['ayrMw'],'default':![]})[_0x26ed97(0x270)](_0x116080[_0x26ed97(0x26a)],{'type':'string','choices':[_0x116080['NRhjl'],_0x26ed97(0x20e)],'description':_0x116080[_0x26ed97(0x11c)]});},async _0x55d62d=>{const _0x5a41ff=_0x18f7c8,_0x25b50a={'XdCXO':function(_0x4aae87,_0x269348,_0x4b2765){return _0x4aae87(_0x269348,_0x4b2765);},'pLsNz':'skillup'},_0x136125=Boolean(_0x55d62d['opencode']);await _0x25b50a[_0x5a41ff(0x116)](withTelemetry,_0x25b50a[_0x5a41ff(0x119)],()=>skillup({'autoInstall':_0x55d62d['scope'],'platform':_0x136125?'opencode':'claude'}));})[_0x18f7c8(0x1fb)](_0x18f7c8(0x22f),'Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project',()=>{},async()=>{const _0x2a910a=_0x18f7c8,_0x5c9e92={'SnrkB':_0x2a910a(0x22f)};await withTelemetry(_0x5c9e92[_0x2a910a(0x26c)],()=>clean());})['command'](_0x18f7c8(0x178),'Manage\x20profiles',_0x45a4aa=>{const _0xfa34bb=_0x18f7c8,_0x1600c1={'jekeV':'profile-name','xVjtm':'Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','MWkxQ':'Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','IJNWK':_0xfa34bb(0x148),'xtAGs':_0xfa34bb(0x24e),'ykZSA':_0xfa34bb(0x20b),'HWhqP':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','stoVh':_0xfa34bb(0x286),'kVZrt':_0xfa34bb(0x201),'HihVp':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','fkZuR':'safe-mode','obUJn':'boolean','pBKLT':_0xfa34bb(0x12f),'xpjrU':'profile\x20add','EqcMv':'cdp-endpoint','hVScU':function(_0x2cfdc2,_0x1733a2,_0x1447e6){return _0x2cfdc2(_0x1733a2,_0x1447e6);},'smkoI':function(_0x2792f3,_0x230e91,_0x4f31b0){return _0x2792f3(_0x230e91,_0x4f31b0);},'DtjHa':'profile\x20ls','qWsdp':_0xfa34bb(0x1ea),'GncyP':_0xfa34bb(0x1e6),'pByEE':'Profile\x20name','JmUwJ':_0xfa34bb(0x215),'zfzGx':_0xfa34bb(0x1d2),'OJIxC':'set\x20<profile>\x20<key>\x20<value>','EoxML':_0xfa34bb(0x1f2),'IjVzG':_0xfa34bb(0x112),'mHuNe':_0xfa34bb(0x246),'icpoD':_0xfa34bb(0x203),'UGHUs':_0xfa34bb(0x279),'UvfpP':'List\x20all\x20profiles','vcjsv':_0xfa34bb(0x1e9),'HRbFR':_0xfa34bb(0x207),'yQeON':_0xfa34bb(0x23b),'CCpjV':_0xfa34bb(0x22d)};return _0x45a4aa[_0xfa34bb(0x280)](PROFILE_HELP)[_0xfa34bb(0x1fb)]('add\x20<profile-name>',_0x1600c1['icpoD'],_0x4efcdd=>{const _0x3869ae=_0xfa34bb;return _0x4efcdd[_0x3869ae(0x16e)](_0x1600c1['jekeV'],{'type':_0x3869ae(0x20b),'description':_0x1600c1[_0x3869ae(0x181)],'demandOption':!![]})['option']('ci',{'type':_0x3869ae(0x1d3),'description':_0x1600c1[_0x3869ae(0x18b)],'default':![]})['option'](_0x1600c1[_0x3869ae(0x230)],{'type':'boolean','description':_0x1600c1['xtAGs'],'default':![]})[_0x3869ae(0x270)](_0x3869ae(0x12a),{'type':_0x1600c1[_0x3869ae(0x216)],'description':_0x3869ae(0x247)})[_0x3869ae(0x270)](_0x3869ae(0x142),{'type':'boolean','description':_0x1600c1[_0x3869ae(0x19c)],'default':![]})[_0x3869ae(0x270)](_0x3869ae(0x248),{'type':'string','description':_0x1600c1['stoVh']})['option'](_0x1600c1[_0x3869ae(0x249)],{'type':'boolean','description':_0x1600c1[_0x3869ae(0x1a8)],'default':![]})[_0x3869ae(0x270)](_0x1600c1[_0x3869ae(0x272)],{'type':_0x1600c1[_0x3869ae(0x145)],'description':_0x1600c1[_0x3869ae(0x15a)],'default':![]});},async _0xb8fef4=>{const _0x27e7ea=_0xfa34bb;await withTelemetry(_0x1600c1['xpjrU'],_0x412c41=>addEnv(_0xb8fef4[_0x27e7ea(0x256)],{'ci':_0xb8fef4['ci'],'skipAuth':_0xb8fef4['skip-auth'],'url':_0xb8fef4['url'],'force':_0xb8fef4[_0x27e7ea(0x142)],'cdpEndpoint':_0xb8fef4['cdp-endpoint'],'allowInsecureLocalhost':_0xb8fef4['allow-insecure-localhost'],'safeMode':_0xb8fef4[_0x27e7ea(0x166)]},_0x412c41),{'isElectron':Boolean(_0xb8fef4[_0x1600c1[_0x27e7ea(0x252)]])});})['command'](_0x1600c1['UGHUs'],'Switch\x20to\x20using\x20a\x20specific\x20profile',_0x5ae378=>{const _0x2fb91c=_0xfa34bb;return _0x5ae378['positional'](_0x1600c1[_0x2fb91c(0x23c)],{'type':_0x1600c1[_0x2fb91c(0x216)],'description':'Name\x20of\x20the\x20profile','demandOption':!![]});},async _0x203fb1=>{const _0xfa7c96=_0xfa34bb;await _0x1600c1[_0xfa7c96(0x138)](withTelemetry,_0xfa7c96(0x193),()=>useEnv(_0x203fb1['profile-name']));})['command']('encrypt-auth\x20<profile>',_0xfa34bb(0x133),_0x87f660=>{const _0x290886=_0xfa34bb;return _0x87f660[_0x290886(0x16e)]('profile',{'type':_0x290886(0x20b),'description':'Profile\x20name','demandOption':!![]});},async _0x4476ac=>{const _0x44ce36=_0xfa34bb;await _0x1600c1['smkoI'](withTelemetry,_0x44ce36(0x1b3),()=>authEncrypt(_0x4476ac['profile']));})['command']('ls',_0x1600c1['UvfpP'],()=>{},async()=>{await withTelemetry(_0x1600c1['DtjHa'],()=>envList());})['command'](_0x1600c1['vcjsv'],_0xfa34bb(0x172),_0x4571f3=>{const _0xc85597=_0xfa34bb;return _0x4571f3['positional'](_0x1600c1[_0xc85597(0x23c)],{'type':_0x1600c1[_0xc85597(0x216)],'description':_0x1600c1['qWsdp'],'demandOption':!![]})['option'](_0x1600c1[_0xc85597(0x249)],{'type':_0x1600c1['obUJn'],'description':_0xc85597(0x15f)});},async _0x448f0b=>{const _0x440ebd=_0xfa34bb;await withTelemetry(_0x1600c1[_0x440ebd(0x208)],_0x491f9e=>updateEnv(_0x448f0b[_0x440ebd(0x256)],_0x491f9e,{'allowInsecureLocalhost':_0x448f0b['allow-insecure-localhost']}));})[_0xfa34bb(0x1fb)](_0x1600c1['HRbFR'],_0x1600c1[_0xfa34bb(0x21d)],_0x46ed55=>{const _0x594784=_0xfa34bb,_0x3b092b={'aerxw':_0x594784(0x178),'sIjps':_0x1600c1['ykZSA'],'ASyXm':_0x1600c1['pByEE'],'ZxPQX':_0x1600c1['JmUwJ'],'VcUKq':'value','CVplj':_0x594784(0x198),'HWYNm':_0x1600c1[_0x594784(0x261)],'WFxpl':'profile\x20config\x20unset'};return _0x46ed55['usage'](PROFILE_CONFIG_HELP)['command'](_0x1600c1[_0x594784(0x1d0)],'Set\x20a\x20config\x20value',_0x52a1cb=>{const _0x1d552b=_0x594784;return _0x52a1cb['positional'](_0x3b092b[_0x1d552b(0x24d)],{'type':_0x3b092b[_0x1d552b(0x27e)],'description':_0x3b092b[_0x1d552b(0x12c)],'demandOption':!![]})[_0x1d552b(0x16e)](_0x3b092b[_0x1d552b(0x126)],{'type':_0x3b092b['sIjps'],'description':_0x1d552b(0x185),'demandOption':!![]})[_0x1d552b(0x16e)](_0x3b092b[_0x1d552b(0x236)],{'type':_0x1d552b(0x20b),'description':_0x3b092b['CVplj'],'demandOption':!![]});},async _0xd6ef33=>{const _0x16704d=_0x594784;await withTelemetry('profile\x20config\x20set',()=>configSet(_0xd6ef33[_0x16704d(0x178)],_0xd6ef33[_0x16704d(0x215)],_0xd6ef33['value']));})[_0x594784(0x1fb)](_0x1600c1[_0x594784(0x1db)],'Get\x20a\x20config\x20value',_0x2df304=>{const _0x303ed2=_0x594784;return _0x2df304[_0x303ed2(0x16e)]('profile',{'type':'string','description':'Profile\x20name','demandOption':!![]})[_0x303ed2(0x16e)]('key',{'type':'string','description':_0x303ed2(0x121),'demandOption':!![]});},async _0x57b88b=>{const _0x596324=_0x594784;await withTelemetry(_0x3b092b[_0x596324(0x191)],()=>configGet(_0x57b88b['profile'],_0x57b88b[_0x596324(0x215)]));})[_0x594784(0x1fb)](_0x594784(0x18c),_0x1600c1[_0x594784(0x1cc)],_0xa9ae0f=>{const _0x4887a1=_0x594784;return _0xa9ae0f['positional'](_0x3b092b[_0x4887a1(0x24d)],{'type':_0x3b092b[_0x4887a1(0x27e)],'description':_0x3b092b['ASyXm'],'demandOption':!![]});},async _0x5ece42=>{const _0x548d52=_0x594784;await withTelemetry(_0x548d52(0x1b4),()=>configList(_0x5ece42[_0x548d52(0x178)]));})['command'](_0x1600c1[_0x594784(0x195)],'Remove\x20a\x20config\x20value',_0x22e4aa=>{const _0x3d07ed=_0x594784;return _0x22e4aa[_0x3d07ed(0x16e)]('profile',{'type':'string','description':_0x3b092b[_0x3d07ed(0x12c)],'demandOption':!![]})['positional'](_0x3b092b[_0x3d07ed(0x126)],{'type':_0x3b092b[_0x3d07ed(0x27e)],'description':_0x3d07ed(0x20d),'demandOption':!![]});},async _0x1cae90=>{const _0x5d31f4=_0x594784;await withTelemetry(_0x3b092b[_0x5d31f4(0x240)],()=>configUnset(_0x1cae90[_0x5d31f4(0x178)],_0x1cae90[_0x5d31f4(0x215)]));})[_0x594784(0x173)](0x1,_0x594784(0x1ed));})[_0xfa34bb(0x173)](0x1,_0x1600c1['CCpjV']);})[_0x18f7c8(0x1fb)](_0x18f7c8(0x26e),'Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)',()=>{},async()=>{const _0x38ca64=_0x18f7c8,_0x520679={'ugoNy':function(_0x2f20a7,_0x3ad9ee,_0x496c8b){return _0x2f20a7(_0x3ad9ee,_0x496c8b);},'Iphon':_0x38ca64(0x26e)};await _0x520679[_0x38ca64(0x26b)](withTelemetry,_0x520679[_0x38ca64(0x232)],()=>status());})['command'](_0x18f7c8(0x269),'Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version',()=>{},async()=>{await withTelemetry('update',()=>update());})['command']('go',_0x18f7c8(0x1cd),_0x32f82a=>{const _0x3908c5=_0x18f7c8,_0x608204={'HhsWQ':_0x3908c5(0x170),'PJNOk':'scenario','psvAI':_0x3908c5(0x15c),'iJVaf':'start-path','BStne':'model','evvUp':'debug-outcome','ktqEA':'blocked','LCfnF':_0x3908c5(0x268),'roBMT':_0x3908c5(0x20b),'JISHb':_0x3908c5(0x151),'KWkII':'number'};return _0x32f82a[_0x3908c5(0x270)](_0x3908c5(0x19e),{'type':'string','description':_0x3908c5(0x229)})[_0x3908c5(0x270)]('profile',{'type':_0x3908c5(0x20b),'description':_0x3908c5(0x24b)})['option']('notes',{'type':'string','description':_0x608204['HhsWQ']})['option'](_0x608204[_0x3908c5(0x24c)],{'type':_0x3908c5(0x139),'description':_0x608204['psvAI']})[_0x3908c5(0x270)](_0x608204[_0x3908c5(0x1d5)],{'type':_0x3908c5(0x20b),'description':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)'})[_0x3908c5(0x270)](_0x608204['BStne'],{'type':'string','description':'Model\x20to\x20use\x20for\x20verification\x20(e.g.,\x20opus,\x20sonnet,\x20claude-opus-4-6,\x20anthropic.claude-opus-4-6-v1)'})['option']('headed',{'type':'boolean','description':'Force\x20headed\x20browser\x20for\x20this\x20run\x20only\x20(does\x20not\x20change\x20profile\x20config)','default':![]})[_0x3908c5(0x270)](_0x608204[_0x3908c5(0x16d)],{'type':_0x3908c5(0x20b),'hidden':!![],'choices':['verified','partial',_0x608204[_0x3908c5(0x273)],_0x608204['LCfnF'],_0x3908c5(0x1ba)]})['option'](_0x3908c5(0x1d7),{'type':_0x3908c5(0x1d3),'hidden':!![]})['option']('env',{'type':_0x608204[_0x3908c5(0x1fa)],'hidden':!![]})[_0x3908c5(0x270)](_0x3908c5(0x113),{'type':_0x608204[_0x3908c5(0x1fa)],'hidden':!![]})['option'](_0x608204[_0x3908c5(0x179)],{'type':_0x608204['KWkII'],'hidden':!![]});},async _0x51529d=>{const _0x35d5c1=_0x18f7c8,_0x52003e={'IBsRa':function(_0x2caa39,_0x2436fa){return _0x2caa39(_0x2436fa);}};await _0x52003e[_0x35d5c1(0x241)](runGoCommand,_0x51529d);})['command']('auth',![],_0x198ef7=>{const _0x99d5ae=_0x18f7c8,_0x5f094a={'YHJew':'ranger\x20profile\x20encrypt-auth','tBJND':_0x99d5ae(0x218),'auaMb':'You\x20must\x20specify\x20an\x20auth\x20subcommand'};return _0x198ef7[_0x99d5ae(0x1fb)](_0x5f094a['tBJND'],![],_0x56327e=>{const _0x3c6315=_0x99d5ae;return _0x56327e[_0x3c6315(0x16e)](_0x3c6315(0x178),{'type':'string','description':_0x3c6315(0x1cf),'demandOption':!![]});},async _0x1bd6a0=>{const _0x2816bd=_0x99d5ae;warnRenamed('ranger\x20auth\x20encrypt',_0x5f094a['YHJew']),await authEncrypt(_0x1bd6a0[_0x2816bd(0x178)]);})[_0x99d5ae(0x173)](0x1,_0x5f094a[_0x99d5ae(0x1e5)]);},()=>{})[_0x18f7c8(0x1fb)]('start\x20[token]',![],_0x5cc27b=>{const _0xc8b242=_0x18f7c8,_0x102f72={'GPEHQ':_0xc8b242(0x137),'xMvlb':_0xc8b242(0x189),'LBwPQ':'skip-chromium','AzlvN':'project','gLLUj':'url','gjxiE':_0xc8b242(0x142),'gBFcU':'boolean','PwytP':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url'};return _0x5cc27b['positional'](_0x102f72['GPEHQ'],{'type':'string','description':_0x102f72['xMvlb']})[_0xc8b242(0x270)](_0x102f72['LBwPQ'],{'type':'boolean','description':_0xc8b242(0x14d),'default':![]})[_0xc8b242(0x270)]('scope',{'type':'string','choices':['user',_0x102f72['AzlvN']],'description':_0xc8b242(0x1c0)})[_0xc8b242(0x270)](_0x102f72[_0xc8b242(0x226)],{'type':_0xc8b242(0x20b),'description':_0xc8b242(0x258)})[_0xc8b242(0x270)](_0x102f72[_0xc8b242(0x23a)],{'type':_0x102f72[_0xc8b242(0x18f)],'description':_0x102f72[_0xc8b242(0x131)],'default':![]});},async _0x57d3f0=>{const _0x11ec88=_0x18f7c8;warnRenamed('ranger\x20start',_0x11ec88(0x1aa)),await withTelemetry(_0x11ec88(0x164),_0x14f4eb=>start(_0x57d3f0[_0x11ec88(0x137)],{'skipChromium':_0x57d3f0['skip-chromium'],'scope':_0x57d3f0['scope'],'url':_0x57d3f0[_0x11ec88(0x12a)],'force':_0x57d3f0[_0x11ec88(0x142)]},_0x14f4eb));})[_0x18f7c8(0x1fb)](_0x18f7c8(0x13a),![],_0x4d16da=>{const _0x4848aa=_0x18f7c8,_0x25b93a={'CsiMR':_0x4848aa(0x20b),'yugWl':_0x4848aa(0x24b),'giIpt':'Task\x20description\x20(defaults\x20to\x20scenario\x20description)','sPjIC':'item','pxoIi':_0x4848aa(0x15c),'pZfzm':_0x4848aa(0x1f9),'VlvMh':_0x4848aa(0x234),'ZBFaS':_0x4848aa(0x1b7),'YHDZm':_0x4848aa(0x26d),'ztLzR':_0x4848aa(0x24a)};return _0x4d16da['option']('env',{'type':_0x25b93a[_0x4848aa(0x1e7)],'description':_0x25b93a['yugWl']})['option']('task',{'type':'string','description':_0x25b93a['giIpt']})[_0x4848aa(0x270)](_0x25b93a['sPjIC'],{'type':'number','description':_0x25b93a['pxoIi']})['option']('profile',{'type':'string','hidden':!![]})[_0x4848aa(0x270)](_0x25b93a['pZfzm'],{'type':_0x25b93a[_0x4848aa(0x1e7)],'hidden':!![]})['option'](_0x4848aa(0x23d),{'type':_0x4848aa(0x139),'hidden':!![]})['option'](_0x4848aa(0x19a),{'type':_0x25b93a['CsiMR'],'description':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)'})['option'](_0x25b93a['VlvMh'],{'type':_0x25b93a['CsiMR'],'hidden':!![]})['option'](_0x4848aa(0x1a9),{'type':_0x4848aa(0x1d3),'hidden':!![],'default':![]})['option'](_0x25b93a[_0x4848aa(0x264)],{'type':_0x4848aa(0x20b),'hidden':!![],'choices':[_0x25b93a[_0x4848aa(0x196)],_0x25b93a['ztLzR'],_0x4848aa(0x227),'failed',_0x4848aa(0x1ba)]});},async _0x352e3c=>{const _0x1dfb77={'pxsiV':function(_0xacfe66,_0x1b4402,_0x303775){return _0xacfe66(_0x1b4402,_0x303775);}};await _0x1dfb77['pxsiV'](runGoCommand,_0x352e3c,!![]);})[_0x18f7c8(0x1fb)](_0x18f7c8(0x21e),![],_0x4d3580=>{const _0x443123=_0x18f7c8,_0x593fb2={'IXEnw':_0x443123(0x16b),'kHvqT':_0x443123(0x20b),'QjGfw':_0x443123(0x148),'viywd':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)'};return _0x4d3580['positional'](_0x593fb2['IXEnw'],{'type':_0x593fb2[_0x443123(0x143)],'description':_0x443123(0x16c),'demandOption':!![]})[_0x443123(0x270)]('ci',{'type':'boolean','description':_0x443123(0x27a),'default':![]})[_0x443123(0x270)](_0x593fb2['QjGfw'],{'type':_0x443123(0x1d3),'description':_0x593fb2[_0x443123(0x124)],'default':![]});},async _0x484b5e=>{const _0xe0735=_0x18f7c8,_0x4b5322={'iqJhk':function(_0x3eef10,_0x57a5a6,_0xf342e5){return _0x3eef10(_0x57a5a6,_0xf342e5);},'SmwuN':_0xe0735(0x1e1),'auhms':'ranger\x20profile\x20add'};_0x4b5322[_0xe0735(0x14a)](warnRenamed,_0x4b5322[_0xe0735(0x149)],_0x4b5322['auhms']),await withTelemetry('add\x20env',_0x2e5a67=>addEnv(_0x484b5e[_0xe0735(0x16b)],{'ci':_0x484b5e['ci'],'skipAuth':_0x484b5e['skip-auth']},_0x2e5a67));})['command'](_0x18f7c8(0x190),![],_0x32529c=>{const _0x533c52=_0x18f7c8,_0x4899d5={'cmboq':'env-name','FpAnW':_0x533c52(0x20b),'ieyyz':'Name\x20of\x20the\x20environment'};return _0x32529c[_0x533c52(0x16e)](_0x4899d5['cmboq'],{'type':_0x4899d5['FpAnW'],'description':_0x4899d5['ieyyz'],'demandOption':!![]});},async _0x2afb5a=>{const _0x191541=_0x18f7c8,_0x4e8da9={'pIPYJ':function(_0x1d4492,_0x3df169,_0x49325d){return _0x1d4492(_0x3df169,_0x49325d);},'cdQIx':_0x191541(0x129),'bMPHd':'ranger\x20profile\x20use','lbBtG':'use'};_0x4e8da9[_0x191541(0x14e)](warnRenamed,_0x4e8da9['cdQIx'],_0x4e8da9[_0x191541(0x168)]),await _0x4e8da9[_0x191541(0x14e)](withTelemetry,_0x4e8da9[_0x191541(0x152)],()=>useEnv(_0x2afb5a['env-name']));})['command']('config',![],_0x4ea717=>{const _0x17a87a=_0x18f7c8,_0x32add7={'jHwlp':_0x17a87a(0x1a4),'vzHfI':_0x17a87a(0x19d),'bLmlN':_0x17a87a(0x20b),'tCzXi':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','ooKWE':function(_0x11998d,_0x23b013,_0x501950){return _0x11998d(_0x23b013,_0x501950);},'aQcRm':_0x17a87a(0x215),'wUCTL':_0x17a87a(0x121),'GOLyn':function(_0x3e1075,_0x521dfd,_0x44972a){return _0x3e1075(_0x521dfd,_0x44972a);},'aqAFH':_0x17a87a(0x1de),'CmLAi':_0x17a87a(0x18e),'KqDDg':_0x17a87a(0x118),'JRCyF':function(_0x34928d,_0x2c091e,_0x467ec7){return _0x34928d(_0x2c091e,_0x467ec7);},'OQytw':'ranger\x20config\x20list','FiQcM':'ranger\x20profile\x20config\x20list','bpllo':function(_0x532799,_0x1f98b2,_0x1f7066){return _0x532799(_0x1f98b2,_0x1f7066);},'LPWcK':'ranger\x20config\x20unset','JHYOs':'ranger\x20profile\x20config\x20unset','dAPkI':_0x17a87a(0x266)};return _0x4ea717[_0x17a87a(0x1fb)](_0x17a87a(0x1b5),![],_0x3bdfe1=>{const _0x3b17a0=_0x17a87a;return _0x3bdfe1[_0x3b17a0(0x16e)](_0x32add7['jHwlp'],{'type':'string','description':_0x32add7['vzHfI'],'demandOption':!![]})[_0x3b17a0(0x16e)](_0x3b17a0(0x215),{'type':_0x32add7[_0x3b17a0(0x1bc)],'description':_0x32add7['tCzXi'],'demandOption':!![]})[_0x3b17a0(0x16e)]('value',{'type':_0x3b17a0(0x20b),'description':_0x3b17a0(0x198),'demandOption':!![]});},async _0x2b6144=>{const _0x3bf57c=_0x17a87a;_0x32add7[_0x3bf57c(0x254)](warnRenamed,'ranger\x20config\x20set',_0x3bf57c(0x18a)),await withTelemetry(_0x3bf57c(0x154),()=>configSet(_0x2b6144['env'],_0x2b6144[_0x3bf57c(0x215)],_0x2b6144['value']));})[_0x17a87a(0x1fb)](_0x17a87a(0x123),![],_0x355196=>{const _0x207519=_0x17a87a;return _0x355196[_0x207519(0x16e)](_0x32add7[_0x207519(0x221)],{'type':_0x207519(0x20b),'description':'Environment\x20name','demandOption':!![]})['positional'](_0x32add7[_0x207519(0x1f7)],{'type':_0x207519(0x20b),'description':_0x32add7['wUCTL'],'demandOption':!![]});},async _0x41502c=>{const _0x13cce3=_0x17a87a;_0x32add7[_0x13cce3(0x163)](warnRenamed,_0x32add7[_0x13cce3(0x174)],_0x32add7['CmLAi']),await withTelemetry(_0x32add7[_0x13cce3(0x251)],()=>configGet(_0x41502c[_0x13cce3(0x1a4)],_0x41502c[_0x13cce3(0x215)]));})[_0x17a87a(0x1fb)](_0x32add7['dAPkI'],![],_0x1575f6=>{const _0x464fa3=_0x17a87a;return _0x1575f6['positional'](_0x32add7[_0x464fa3(0x221)],{'type':_0x464fa3(0x20b),'description':'Environment\x20name','demandOption':!![]});},async _0x41feef=>{const _0x3c1403=_0x17a87a;_0x32add7[_0x3c1403(0x1c1)](warnRenamed,_0x32add7['OQytw'],_0x32add7[_0x3c1403(0x159)]),await _0x32add7[_0x3c1403(0x202)](withTelemetry,_0x3c1403(0x277),()=>configList(_0x41feef['env']));})['command']('unset\x20<env>\x20<key>',![],_0x57c36c=>{const _0x10c96e=_0x17a87a;return _0x57c36c['positional'](_0x10c96e(0x1a4),{'type':'string','description':'Environment\x20name','demandOption':!![]})[_0x10c96e(0x16e)](_0x32add7['aQcRm'],{'type':'string','description':_0x10c96e(0x20d),'demandOption':!![]});},async _0x3f1590=>{const _0x408201=_0x17a87a;warnRenamed(_0x32add7[_0x408201(0x210)],_0x32add7['JHYOs']),await withTelemetry('config\x20unset',()=>configUnset(_0x3f1590[_0x408201(0x1a4)],_0x3f1590['key']));})['demandCommand'](0x1,'You\x20must\x20specify\x20a\x20config\x20subcommand');})['command'](_0x18f7c8(0x1a4),![],_0x4a3597=>{const _0x558183=_0x18f7c8,_0x33e4e1={'wpIOd':_0x558183(0x26f),'wrpjv':_0x558183(0x1ce),'gqEIs':'env-name','ztqcv':_0x558183(0x20b),'cKlKK':'Name\x20of\x20the\x20environment\x20to\x20update','XTtri':function(_0x42cee9,_0x5f28e0,_0x5becd2){return _0x42cee9(_0x5f28e0,_0x5becd2);},'cewes':_0x558183(0x282),'hvdNI':_0x558183(0x267),'eWWRd':_0x558183(0x15d),'SUhcs':_0x558183(0x167)};return _0x4a3597[_0x558183(0x1fb)]('ls',![],()=>{},async()=>{const _0x1baf0b=_0x558183;warnRenamed(_0x33e4e1[_0x1baf0b(0x13c)],_0x33e4e1['wrpjv']),await withTelemetry(_0x1baf0b(0x155),()=>envList());})[_0x558183(0x1fb)](_0x33e4e1[_0x558183(0x23f)],![],_0x144db0=>{const _0xa2ab4c=_0x558183;return _0x144db0['positional'](_0x33e4e1['gqEIs'],{'type':_0x33e4e1[_0xa2ab4c(0x1e2)],'description':_0x33e4e1[_0xa2ab4c(0x1eb)],'demandOption':!![]});},async _0x4347f1=>{const _0x46a6f4=_0x558183;_0x33e4e1['XTtri'](warnRenamed,_0x33e4e1['cewes'],_0x33e4e1['hvdNI']),await _0x33e4e1[_0x46a6f4(0x206)](withTelemetry,'env\x20update',_0x1482d5=>updateEnv(_0x4347f1[_0x46a6f4(0x16b)],_0x1482d5));})['demandCommand'](0x1,_0x33e4e1['SUhcs']);})['command'](_0x18f7c8(0x19e),![],_0x3e3dd5=>{const _0x58cc04=_0x18f7c8,_0x456356={'DxNFr':'name','XveNy':'string','VFvtZ':_0x58cc04(0x276),'wXfKB':_0x58cc04(0x1fe),'sUgUy':_0x58cc04(0x122),'gyQsI':'array','kkdnP':function(_0x274904,_0x1e887d,_0x417daa){return _0x274904(_0x1e887d,_0x417daa);},'fzlPy':'ranger\x20feature\x20create','CmgyT':function(_0x571ae9,_0x565d11,_0x2a3b44,_0x4dc6f5){return _0x571ae9(_0x565d11,_0x2a3b44,_0x4dc6f5);},'afugh':'--checklist','lMOdN':'feature\x20create','LIxrO':_0x58cc04(0x1d3),'gUoGm':_0x58cc04(0x139),'XNrGo':_0x58cc04(0x20a),'oDvJZ':_0x58cc04(0x25a),'wQbIf':'feature\x20list','ZjfOa':_0x58cc04(0x27b),'GMUby':'ranger\x20feature\x20resume','OQfJZ':'feature\x20resume','pmvPi':'description','wTZPQ':'Scenario\x20description','ZeSlT':_0x58cc04(0x186),'jYRwV':'ranger\x20feature\x20get-feedback','zETgR':_0x58cc04(0x128),'jswmU':function(_0x389697,_0x5e5db5,_0x3d94b8){return _0x389697(_0x5e5db5,_0x3d94b8);},'UwrXR':_0x58cc04(0x187),'JaWDq':_0x58cc04(0x1df),'KUkBD':'create\x20<name>','HhIwd':_0x58cc04(0x184),'yVEbE':'resume\x20[id]','HoqUd':'get-feedback\x20[id]','cGITL':_0x58cc04(0x12b)};return _0x3e3dd5[_0x58cc04(0x1fb)](_0x456356['KUkBD'],![],_0x185eb8=>{const _0x397d92=_0x58cc04;return _0x185eb8['positional'](_0x456356[_0x397d92(0x212)],{'type':_0x456356[_0x397d92(0x1c6)],'description':_0x456356[_0x397d92(0x1f5)],'demandOption':!![]})[_0x397d92(0x270)]('description',{'type':_0x456356[_0x397d92(0x1c6)],'alias':'d','description':_0x456356['wXfKB']})['option'](_0x456356[_0x397d92(0x257)],{'type':_0x456356['gyQsI'],'alias':'c','description':_0x397d92(0x1b2)})[_0x397d92(0x270)]('scenario',{'type':'array','hidden':!![]});},async _0x2cc769=>{const _0x22399c=_0x58cc04;_0x456356['kkdnP'](warnRenamed,_0x456356[_0x22399c(0x1a7)],'ranger\x20create'),_0x456356['CmgyT'](warnFlagRenamed,'ranger\x20create',_0x456356[_0x22399c(0x1af)],_0x22399c(0x235));const _0x26967c=_0x2cc769[_0x22399c(0x23d)]||_0x2cc769['checklist'];await withTelemetry(_0x456356['lMOdN'],()=>featureCreate(_0x2cc769[_0x22399c(0x19b)],{'description':_0x2cc769['description'],'scenarios':_0x26967c}));})[_0x58cc04(0x1fb)](_0x456356[_0x58cc04(0x22c)],![],_0x392b5e=>{const _0x14b8ce=_0x58cc04;return _0x392b5e['option'](_0x14b8ce(0x120),{'type':_0x456356[_0x14b8ce(0x1fc)],'description':'Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch'})[_0x14b8ce(0x270)](_0x14b8ce(0x141),{'type':_0x456356['gUoGm'],'alias':'l','description':_0x14b8ce(0x156),'default':0xa})['option'](_0x456356[_0x14b8ce(0x134)],{'type':_0x456356[_0x14b8ce(0x285)],'alias':'o','description':'Number\x20of\x20feature\x20reviews\x20to\x20skip','default':0x0})['option'](_0x14b8ce(0x245),{'type':_0x456356[_0x14b8ce(0x1fc)],'alias':'d','description':'Include\x20soft-deleted\x20feature\x20reviews','default':![]});},async _0x4eb275=>{const _0x58fb73=_0x58cc04;_0x456356[_0x58fb73(0x14f)](warnRenamed,_0x58fb73(0x19f),_0x456356[_0x58fb73(0x130)]),await _0x456356['kkdnP'](withTelemetry,_0x456356['wQbIf'],()=>featureList({'currentBranch':_0x4eb275[_0x58fb73(0x120)],'limit':_0x4eb275['limit'],'offset':_0x4eb275['offset'],'includeDeleted':_0x4eb275['include-deleted']}));})[_0x58cc04(0x1fb)](_0x58cc04(0x231),![],_0x5d736f=>{return _0x5d736f['positional']('id',{'type':'string','description':_0x456356['ZjfOa']});},async _0x754095=>{const _0x1988e4=_0x58cc04;warnRenamed(_0x1988e4(0x1bb),_0x1988e4(0x153)),await _0x456356[_0x1988e4(0x14f)](withTelemetry,'feature\x20show',()=>featureShow(_0x754095['id']));})['command'](_0x456356[_0x58cc04(0x199)],![],_0xf6345e=>{const _0xdbd97b=_0x58cc04;return _0xf6345e['positional']('id',{'type':_0x456356[_0xdbd97b(0x1c6)],'description':_0xdbd97b(0x11d)});},async _0x3d0264=>{const _0x253824=_0x58cc04;warnRenamed(_0x456356[_0x253824(0x192)],'ranger\x20resume'),await withTelemetry(_0x456356[_0x253824(0x22b)],()=>featureResume(_0x3d0264['id']));})['command']('add-checklist-item\x20<description>',![],_0xe02bc2=>{const _0x53ad5f=_0x58cc04;return _0xe02bc2[_0x53ad5f(0x16e)](_0x456356['pmvPi'],{'type':_0x53ad5f(0x20b),'description':_0x456356['wTZPQ'],'demandOption':!![]})[_0x53ad5f(0x270)]('id',{'type':_0x456356[_0x53ad5f(0x1c6)],'description':_0x53ad5f(0x186)});},async _0x44cb04=>{const _0x2eda55=_0x58cc04;warnRenamed('ranger\x20feature\x20add-checklist-item',_0x2eda55(0x197)),await _0x456356[_0x2eda55(0x14f)](withTelemetry,'feature\x20add-checklist-item',()=>featureAddScenario(_0x44cb04[_0x2eda55(0x1c5)],_0x44cb04['id']));})['command'](_0x456356['HoqUd'],![],_0x1596db=>{const _0x5360ae=_0x58cc04;return _0x1596db['positional']('id',{'type':_0x5360ae(0x20b),'description':_0x456356['ZeSlT']});},async _0xfb15e9=>{const _0x357e51=_0x58cc04;warnRenamed(_0x456356[_0x357e51(0x1e0)],_0x357e51(0x25f)),await withTelemetry(_0x357e51(0x21c),()=>featureGetReview(_0xfb15e9['id']));})[_0x58cc04(0x1fb)](_0x58cc04(0x1ad),![],_0x51e99a=>{const _0x54afe1=_0x58cc04;return _0x51e99a[_0x54afe1(0x16e)]('id',{'type':_0x54afe1(0x20b),'description':'Feature\x20review\x20ID'});},async _0x2765f1=>{const _0x15969d=_0x58cc04;warnRenamed('ranger\x20feature\x20delete',_0x456356[_0x15969d(0x136)]),await _0x456356['jswmU'](withTelemetry,_0x456356[_0x15969d(0x117)],()=>featureDelete(_0x2765f1['id']));})[_0x58cc04(0x1fb)](_0x456356[_0x58cc04(0x27d)],![],_0x2e7d70=>{const _0x1004c9=_0x58cc04;return _0x2e7d70[_0x1004c9(0x16e)]('id',{'type':_0x456356['XveNy'],'description':_0x456356[_0x1004c9(0x214)],'demandOption':!![]});},async _0x12168a=>{const _0x15d52f=_0x58cc04;warnRenamed(_0x15d52f(0x233),_0x15d52f(0x243)),await _0x456356[_0x15d52f(0x260)](withTelemetry,_0x15d52f(0x1e8),()=>featureRestore(_0x12168a['id']));})['demandCommand'](0x1,'You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand');})[_0x18f7c8(0x1fb)](_0x18f7c8(0x11f),![],_0xaba7b0=>{const _0x513129=_0x18f7c8,_0x51df6d={'wnCLG':_0x513129(0x17a),'szAju':'string','JujAo':function(_0x31615b,_0x1138c1,_0x4530b3){return _0x31615b(_0x1138c1,_0x4530b3);},'JUsuC':'hook:enable','MQzeB':_0x513129(0x222),'fKSLU':'enable','XkdmM':'disable','tydxH':'name','hVDWr':'Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)'};return _0xaba7b0[_0x513129(0x1fb)](_0x51df6d['fKSLU'],_0x513129(0x1bd),_0x5a3a7d=>{const _0x2fae60=_0x513129;return _0x5a3a7d['option'](_0x51df6d['wnCLG'],{'type':_0x51df6d[_0x2fae60(0x110)],'description':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)'});},async _0x439570=>{const _0x1e2a56=_0x513129;await _0x51df6d[_0x1e2a56(0x1c3)](withTelemetry,_0x51df6d[_0x1e2a56(0x278)],()=>hook(_0x1e2a56(0x23e),_0x439570[_0x1e2a56(0x17a)]));})['command'](_0x51df6d['XkdmM'],'Disable\x20Ranger\x20hooks\x20for\x20this\x20session',_0x345cb5=>{const _0x543cae=_0x513129;return _0x345cb5['option']('session-id',{'type':'string','description':_0x543cae(0x1c7)});},async _0x50a58b=>{const _0x39843c=_0x513129;await withTelemetry(_0x51df6d['MQzeB'],()=>hook(_0x39843c(0x177),_0x50a58b[_0x39843c(0x17a)]));})[_0x513129(0x270)](_0x51df6d['tydxH'],{'type':_0x513129(0x20b),'description':_0x51df6d['hVDWr']})['option'](_0x51df6d[_0x513129(0x125)],{'type':_0x513129(0x20b),'description':_0x513129(0x1c7)});},async _0x13fae4=>{const _0x4e10af=_0x18f7c8,_0xa67dff={'BOsPT':function(_0x1c8bf7,_0x2f82d3,_0x468cc4){return _0x1c8bf7(_0x2f82d3,_0x468cc4);},'hJzUe':_0x4e10af(0x17a)};_0x13fae4[_0x4e10af(0x19b)]&&await _0xa67dff[_0x4e10af(0x1b8)](hook,_0x13fae4['name'],_0x13fae4[_0xa67dff['hJzUe']]);})[_0x18f7c8(0x173)](0x1,_0x18f7c8(0x16f))[_0x18f7c8(0x275)]()['fail'](async(_0x59a575,_0x467f8a,_0x123a00)=>{const _0x627632=_0x18f7c8,_0x5d55fe={'upIaa':function(_0x8de3f2,_0x2f48d5,_0x31883a){return _0x8de3f2(_0x2f48d5,_0x31883a);},'UwbHl':'Unknown\x20command','wKtOC':'Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a'},_0x4c54ab=sanitizeArgs(process[_0x627632(0x1b9)]['slice'](0x2)),_0x5b2667=_0x5d55fe['upIaa'](getErrorType,_0x59a575,_0x467f8a);if(_0x59a575&&_0x59a575['includes'](_0x5d55fe['UwbHl'])){const _0x596ca4=process[_0x627632(0x1b9)][0x2];console['error']('\x0aUnknown\x20command:\x20'+_0x596ca4),console['error'](_0x5d55fe['wKtOC']);}else{if(_0x59a575)console[_0x627632(0x25d)]('\x0a'+_0x59a575+'\x0a');else _0x467f8a&&console[_0x627632(0x25d)]('\x0aError:\x20'+_0x467f8a[_0x627632(0x161)]+'\x0a');}await logDesirePath({'rawCommand':_0x4c54ab,'errorMessage':_0x59a575||_0x467f8a?.[_0x627632(0x161)],'errorType':_0x5b2667});const _0x2dedad=getCurrentCollector();_0x2dedad&&await _0x2dedad['trackCommandError'](_0x467f8a||new Error(_0x59a575||'Unknown\x20error')),process[_0x627632(0x1d4)](0x1);})[_0x18f7c8(0x140)]('Documentation:\x0a'+_0x18f7c8(0x1c2)+_0x18f7c8(0x13f))['help']()['alias']('help','h')[_0x18f7c8(0x1c9)]();
@@ -1 +1 @@
1
- function _0x4302(){const _0x3be283=['uYlBV','60QrFwku','ZBYvp','iWivC','587436TvmQCO','config_write','Saving\x20authentication\x20state...','fbpzK','launch','pGCMW','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','url','GGFgF','MFDuq','Removed\x20existing\x20profile\x20at\x20','http://localhost:3000','goto','Use\x20','input','\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','isTTY','10544ScRmnm','prompt','error','url_setup','trackPhaseStart','Enter\x20a\x20different\x20URL','16971670kSNUjG','about:blank','baseUrl','--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','use_suggestion','UQqwy','What\x20would\x20you\x20like\x20to\x20do?','HYWNM','jlQou','TRUgH','TypeError','action','includes','RiYwi','ljMsc','fetch\x20failed','force','FuLbB','abort','\x20\x20Did\x20you\x20mean\x20','catch','\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a','location','4781HZqLGu','Continue\x20anyway','HEAD','path','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.','close','✓\x20Encrypted\x20auth\x20saved\x20to:\x20','fMgLw','skipAuth','confirm','storageState','.enc','manual','✓\x20Auth\x20state\x20saved\x20to:\x20','signal','--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','EawNs','name','5201244dYyVqs','vAFDr','Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','stringify','cdpEndpoint','trim','\x0a🌐\x20Profile\x20Setup\x0a','ExEPO','log','NXNDt','shouldReplace','status','continue','ZxxMe','KIZsO','Please\x20provide\x20--url\x20when\x20running\x20in\x20non-interactive\x20mode.\x0aMake\x20sure\x20the\x20service\x20is\x20running\x20on\x20that\x20port\x20before\x20retrying.\x0aExample:\x20ranger\x20profile\x20add\x20local\x20--url\x20http://localhost:3000','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','Delete\x20existing\x20and\x20create\x20new\x20in\x20','list','278555hcWadZ','94170WrsQPN','message','12qtOfZt','841959ALSkcD'];_0x4302=function(){return _0x3be283;};return _0x4302();}function _0x5035(_0xf309f6,_0x276b7e){_0xf309f6=_0xf309f6-0x160;const _0x4302d8=_0x4302();let _0x5035b6=_0x4302d8[_0xf309f6];return _0x5035b6;}(function(_0x14f176,_0x219e82){const _0x115dd7=_0x5035,_0x2048f3=_0x14f176();while(!![]){try{const _0x95f38=parseInt(_0x115dd7(0x18c))/0x1+-parseInt(_0x115dd7(0x191))/0x2*(parseInt(_0x115dd7(0x18b))/0x3)+-parseInt(_0x115dd7(0x18e))/0x4*(-parseInt(_0x115dd7(0x188))/0x5)+-parseInt(_0x115dd7(0x189))/0x6+-parseInt(_0x115dd7(0x162))/0x7*(parseInt(_0x115dd7(0x1a2))/0x8)+-parseInt(_0x115dd7(0x175))/0x9+parseInt(_0x115dd7(0x1a8))/0xa;if(_0x95f38===_0x219e82)break;else _0x2048f3['push'](_0x2048f3['shift']());}catch(_0x1b152a){_0x2048f3['push'](_0x2048f3['shift']());}}}(_0x4302,0xac642));import{mkdir,writeFile,readFile,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import _0x2b8bc9 from'inquirer';import{chromium}from'playwright';import{findExistingEnv}from'./utils/settings.js';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getRangerDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';async function checkUrlReachability(_0x3ad08d){const _0x1ccaa0=_0x5035,_0x5961e9={'ISdYZ':function(_0xa4b5bb,_0x4201e5,_0x1443a0){return _0xa4b5bb(_0x4201e5,_0x1443a0);},'UQqwy':'Invalid\x20URL','RUmMi':_0x1ccaa0(0x1b7)};try{const _0x4ffce9=new AbortController(),_0x7259e4=setTimeout(()=>_0x4ffce9[_0x1ccaa0(0x1ba)](),0x1388),_0x3ed1d0=await _0x5961e9['ISdYZ'](fetch,_0x3ad08d,{'method':_0x1ccaa0(0x164),'signal':_0x4ffce9[_0x1ccaa0(0x171)],'redirect':_0x1ccaa0(0x16f)});clearTimeout(_0x7259e4);if(_0x3ed1d0['status']<0x190)return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x3ed1d0[_0x1ccaa0(0x180)]};}catch(_0x3e6af3){const _0x116ab7=_0x3e6af3,_0x153acc=_0x116ab7[_0x1ccaa0(0x18a)]||String(_0x3e6af3),_0x3a5b40=_0x153acc[_0x1ccaa0(0x1b4)](_0x5961e9[_0x1ccaa0(0x1ad)])||_0x116ab7[_0x1ccaa0(0x174)]===_0x1ccaa0(0x1b2)||_0x153acc['includes'](_0x5961e9['RUmMi']);return{'ok':![],'error':_0x153acc,'isProtocolError':_0x3a5b40};}}export async function addEnv(_0x33eaf3,_0x13eae7={},_0x3e0627){const _0x2cfa41=_0x5035,_0x3e9762={'eHPLP':'close','jlQou':'local','QFbUv':function(_0x483e7d,_0x2fbdb1,_0x4fd269){return _0x483e7d(_0x2fbdb1,_0x4fd269);},'wBKun':function(_0x581fc8){return _0x581fc8();},'RiYwi':function(_0x1a8bd2,_0x4c32f0){return _0x1a8bd2===_0x4c32f0;},'ZBYvp':_0x2cfa41(0x1ab),'ZYwlg':_0x2cfa41(0x172),'fMgLw':'--ci\x20and\x20--cdp-endpoint\x20cannot\x20be\x20used\x20together.\x20Electron/CDP\x20profiles\x20only\x20work\x20with\x20a\x20locally\x20running\x20app\x20and\x20are\x20not\x20supported\x20in\x20CI.','ViiSE':function(_0x2052f9,_0x121dbb){return _0x2052f9(_0x121dbb);},'ExEPO':_0x2cfa41(0x16c),'NXNDt':'Aborted.','GGFgF':function(_0x56444b,_0x2a1b0a){return _0x56444b===_0x2a1b0a;},'eVrsU':'legacy','zQDan':'root\x20(.ranger/)','EawNs':_0x2cfa41(0x1a5),'TRUgH':_0x2cfa41(0x160),'xUlLl':function(_0x4adc89,_0xcef231){return _0x4adc89(_0xcef231);},'fbpzK':_0x2cfa41(0x17b),'DEWoj':function(_0x12a1f2,_0x403f39){return _0x12a1f2||_0x403f39;},'kNNYA':_0x2cfa41(0x187),'TNUSC':_0x2cfa41(0x1ae),'jgSkU':_0x2cfa41(0x1ac),'uYlBV':_0x2cfa41(0x1a7),'OKjKf':'retry','bOutI':_0x2cfa41(0x181),'yDdve':function(_0x8d0aec,_0x1d22c4){return _0x8d0aec===_0x1d22c4;},'KIZsO':'auth.json','FuLbB':'browser_auth','WovuR':'\x0a📋\x20Authentication\x20Setup','XNKlr':'\x0a\x20\x20\x20⚠\x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.','HkLsR':function(_0x3a4818,_0x2dd691){return _0x3a4818(_0x2dd691);},'JYmLY':_0x2cfa41(0x1a9),'ZxxMe':function(_0x2f1819,_0x3affcc,_0x282db2){return _0x2f1819(_0x3affcc,_0x282db2);},'iWivC':function(_0x48efda){return _0x48efda();},'MFDuq':'Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.','GsWlh':function(_0x46848d,_0x4d5c65,_0x26f67f){return _0x46848d(_0x4d5c65,_0x26f67f);},'OARXT':'\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','vAFDr':_0x2cfa41(0x192),'ljMsc':'settings.json','HYWNM':function(_0x3decad,_0x5722b5){return _0x3decad===_0x5722b5;},'ornFG':function(_0xf40de6,_0x31b862,_0x3b2c74){return _0xf40de6(_0x31b862,_0x3b2c74);},'XuLYA':function(_0x2fdb34,_0x4babb3,_0x5ee986){return _0x2fdb34(_0x4babb3,_0x5ee986);},'pGCMW':function(_0x1e626d,_0x1dea4e,_0x1f1c2d){return _0x1e626d(_0x1dea4e,_0x1f1c2d);},'lFWDX':function(_0x4a6290,_0x3f85a4,_0x360ff3){return _0x4a6290(_0x3f85a4,_0x360ff3);}},_0x1db608=_0x13eae7['ci']??![],_0x24a737=_0x1db608?'ci':_0x3e9762[_0x2cfa41(0x1b0)],_0x378513=join(getRangerDir(),_0x24a737,_0x33eaf3),_0xf4b512=_0x3e9762['QFbUv'](join,_0x3e9762['wBKun'](getRangerDir),_0x24a737);if(_0x13eae7['cdpEndpoint']!==undefined&&_0x3e9762[_0x2cfa41(0x1b5)](_0x13eae7['cdpEndpoint'][_0x2cfa41(0x17a)](),''))throw new Error(_0x3e9762[_0x2cfa41(0x18f)]);if(_0x13eae7[_0x2cfa41(0x179)]&&_0x13eae7[_0x2cfa41(0x198)])throw new Error(_0x3e9762['ZYwlg']);if(_0x13eae7[_0x2cfa41(0x179)]&&_0x13eae7['ci'])throw new Error(_0x3e9762[_0x2cfa41(0x16a)]);const _0x5c6fb2=Boolean(_0x13eae7['cdpEndpoint']),_0x1b0de1=!_0x13eae7[_0x2cfa41(0x16b)]&&!_0x5c6fb2,_0x22cd73=process['stdin'][_0x2cfa41(0x1a1)]&&process['stdout']['isTTY'];if(!_0x22cd73&&!_0x13eae7['url']&&!_0x5c6fb2)throw new Error(_0x2cfa41(0x184));const _0x267b8e=_0x3e9762['ViiSE'](findExistingEnv,_0x33eaf3);let _0x1dc155=null;if(_0x267b8e){if(!_0x22cd73)_0x1dc155=_0x267b8e;else{if(_0x267b8e['location']===_0x24a737){const {overwrite:_0x341ab4}=await _0x2b8bc9[_0x2cfa41(0x1a3)]([{'type':_0x3e9762[_0x2cfa41(0x17c)],'name':'overwrite','message':'Profile\x20\x22'+_0x33eaf3+'\x22\x20already\x20exists.\x20Overwrite?','default':![]}]);if(!_0x341ab4){console['log'](_0x3e9762['NXNDt']);return;}_0x1dc155=_0x267b8e;}else{const _0x2a7e4e=_0x3e9762[_0x2cfa41(0x199)](_0x267b8e[_0x2cfa41(0x161)],_0x3e9762['eVrsU'])?_0x3e9762['zQDan']:_0x267b8e['location'];console['error']('\x0a⚠️\x20\x20Profile\x20\x22'+_0x33eaf3+'\x22\x20already\x20exists\x20in\x20'+_0x2a7e4e+':\x20'+_0x267b8e['path']),console['error']('\x20\x20\x20Creating\x20it\x20in\x20'+_0x24a737+'\x20would\x20shadow\x20the\x20existing\x20profile.');const {shouldReplace:_0x540712}=await _0x2b8bc9[_0x2cfa41(0x1a3)]([{'type':_0x3e9762[_0x2cfa41(0x17c)],'name':_0x2cfa41(0x17f),'message':_0x2cfa41(0x186)+_0x24a737+'?','default':![]}]);if(!_0x540712){console[_0x2cfa41(0x17d)](_0x3e9762[_0x2cfa41(0x17e)]);return;}_0x1dc155=_0x267b8e;}}}_0x3e0627?.[_0x2cfa41(0x1a6)](_0x3e9762['EawNs']);let _0x552099='';if(_0x5c6fb2)console[_0x2cfa41(0x17d)]('\x0a🔌\x20CDP\x20Profile\x20Setup\x0a'),console[_0x2cfa41(0x17d)](_0x2cfa41(0x197)+_0x13eae7['cdpEndpoint']),console[_0x2cfa41(0x17d)](_0x3e9762[_0x2cfa41(0x1b1)]);else{if(_0x13eae7[_0x2cfa41(0x198)]){_0x552099=_0x13eae7[_0x2cfa41(0x198)];const _0x536a5e=await _0x3e9762['xUlLl'](checkUrlReachability,_0x552099);if(!_0x536a5e['ok']&&!_0x13eae7['force'])throw new Error('Could\x20not\x20reach\x20'+_0x552099+':\x20'+_0x536a5e['error']+_0x2cfa41(0x185));!_0x536a5e['ok']&&_0x13eae7[_0x2cfa41(0x1b8)]&&console['log']('⚠\x20Could\x20not\x20reach\x20'+_0x552099+':\x20'+_0x536a5e[_0x2cfa41(0x1a4)]+'\x20(continuing\x20with\x20--force)');}else{console['log'](_0x3e9762[_0x2cfa41(0x194)]),console['log'](_0x2cfa41(0x166)),console[_0x2cfa41(0x17d)]('\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a');let _0x3764a4=![];while(!![]){const _0x23878e=await _0x2b8bc9[_0x2cfa41(0x1a3)]([{'type':_0x2cfa41(0x19f),'name':_0x2cfa41(0x1aa),'message':_0x3764a4?'Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):':'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','default':_0x3e9762['DEWoj'](_0x552099,_0x2cfa41(0x19c))}]);_0x552099=_0x23878e['baseUrl'];const _0x33bf63=await _0x3e9762['xUlLl'](checkUrlReachability,_0x552099);if(_0x33bf63['ok'])break;const _0x5a1d3b=/^[a-zA-Z][\w+.-]*:\/\//['test'](_0x552099),_0x56d4d8=_0x33bf63['isProtocolError']&&!_0x5a1d3b,_0x6be548=_0x56d4d8?'http://'+_0x552099:null;_0x3764a4=!![],console[_0x2cfa41(0x17d)]('\x0a\x20\x20Could\x20not\x20reach\x20'+_0x552099+':\x20'+_0x33bf63[_0x2cfa41(0x1a4)]);_0x6be548&&console['log'](_0x2cfa41(0x1bb)+_0x6be548+'?');const {action:_0x385abf}=await _0x2b8bc9['prompt']([{'type':_0x3e9762['kNNYA'],'name':_0x2cfa41(0x1b3),'message':_0x3e9762['TNUSC'],'choices':[..._0x6be548?[{'name':_0x2cfa41(0x19e)+_0x6be548,'value':_0x3e9762['jgSkU']}]:[],{'name':_0x3e9762[_0x2cfa41(0x18d)],'value':_0x3e9762['OKjKf']},{'name':_0x2cfa41(0x163),'value':_0x3e9762['bOutI']}]}]);if(_0x385abf===_0x2cfa41(0x1ac)&&_0x6be548){_0x552099=_0x6be548;const _0x5707bd=await checkUrlReachability(_0x552099);if(_0x5707bd['ok'])break;console[_0x2cfa41(0x17d)]('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0x552099+':\x20'+_0x5707bd['error']);}else{if(_0x3e9762['yDdve'](_0x385abf,_0x2cfa41(0x181)))break;}}}}_0x3e0627?.['trackPhaseEnd'](_0x3e9762[_0x2cfa41(0x173)]),await mkdir(_0xf4b512,{'recursive':!![]});const _0xf1b48a=await mkdtemp(join(_0xf4b512,'.tmp-'+_0x33eaf3+'-')),_0x143508=_0x3e9762['QFbUv'](join,_0xf1b48a,_0x3e9762[_0x2cfa41(0x183)]);try{if(_0x1b0de1){_0x3e0627?.['trackPhaseStart'](_0x3e9762[_0x2cfa41(0x1b9)]),console['log'](_0x3e9762['WovuR']),console[_0x2cfa41(0x17d)](_0x2cfa41(0x167)),console[_0x2cfa41(0x17d)]('\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.');!_0x22cd73?(console['log'](_0x3e9762['XNKlr']),console['log']('\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a')):console[_0x2cfa41(0x17d)]('');await new Promise(_0xf039fb=>setTimeout(_0xf039fb,0xbb8));const _0x5aace5=await chromium[_0x2cfa41(0x195)]({'headless':![]});try{const _0x101781=await _0x5aace5['newContext']();await _0x3e9762['HkLsR'](addProfileSetupBanner,_0x101781);const _0x14fa30=await _0x101781['newPage']();await _0x14fa30[_0x2cfa41(0x19d)](_0x3e9762['DEWoj'](_0x552099,_0x3e9762['JYmLY'])),await new Promise(_0x4890e9=>{const _0x65ad14=_0x2cfa41,_0xd72de9={'ZJeOf':_0x65ad14(0x193)};_0x14fa30['on'](_0x3e9762['eHPLP'],async()=>{const _0x206a61=_0x65ad14;try{console[_0x206a61(0x17d)](_0xd72de9['ZJeOf']),await _0x101781[_0x206a61(0x16d)]({'path':_0x143508});}catch{}_0x4890e9();});});}finally{await _0x5aace5[_0x2cfa41(0x168)]()[_0x2cfa41(0x1bc)](()=>{});}if(_0x1db608){const _0x7ae6c3=await _0x3e9762[_0x2cfa41(0x182)](readFile,_0x143508,'utf-8'),_0x55387a=await _0x3e9762[_0x2cfa41(0x190)](getToken);if(!_0x55387a){console['error'](_0x2cfa41(0x1a0)),await unlink(_0x143508)['catch'](()=>{});throw new Error(_0x3e9762[_0x2cfa41(0x19a)]);}else{const _0x10d458=encrypt(_0x7ae6c3,_0x55387a);await _0x3e9762['GsWlh'](writeFile,_0x143508+_0x2cfa41(0x16e),_0x10d458),await unlink(_0x143508),console['log'](_0x2cfa41(0x169)+_0x143508+_0x2cfa41(0x16e)),console['log']('\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.'),console['log'](_0x3e9762['OARXT']);}}else console[_0x2cfa41(0x17d)](_0x2cfa41(0x170)+_0x143508);_0x3e0627?.['trackPhaseEnd']('browser_auth');}_0x3e0627?.['trackPhaseStart'](_0x3e9762[_0x2cfa41(0x176)]);const _0x4d4f5c={};_0x552099&&(_0x4d4f5c['baseUrl']=_0x552099);_0x13eae7[_0x2cfa41(0x179)]&&(_0x4d4f5c['cdpEndpoint']=_0x13eae7['cdpEndpoint'],_0x4d4f5c['isElectron']=!![]);_0x13eae7['allowInsecureLocalhost']&&(_0x4d4f5c['allowInsecureLocalhost']=!![]);await writeFile(join(_0xf1b48a,_0x3e9762[_0x2cfa41(0x1b6)]),JSON[_0x2cfa41(0x178)](_0x4d4f5c,null,0x2)),console['log']('✓\x20Created\x20settings:\x20'+join(_0x378513,_0x3e9762[_0x2cfa41(0x1b6)]));if(_0x3e9762[_0x2cfa41(0x1af)](_0x1dc155?.['location'],_0x24a737)){const _0x4ff324=_0x1dc155[_0x2cfa41(0x165)]+'.backup-'+Date['now']();await _0x3e9762['ornFG'](rename,_0x1dc155[_0x2cfa41(0x165)],_0x4ff324);try{await rename(_0xf1b48a,_0x378513);}catch(_0x1908ec){await rename(_0x4ff324,_0x1dc155['path']);throw _0x1908ec;}try{await rm(_0x4ff324,{'recursive':!![]});}catch{console['log']('Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20'+_0x4ff324);}}else{await _0x3e9762['XuLYA'](rename,_0xf1b48a,_0x378513);if(_0x1dc155)try{await _0x3e9762[_0x2cfa41(0x196)](rm,_0x1dc155['path'],{'recursive':!![]}),console['log'](_0x2cfa41(0x19b)+_0x1dc155[_0x2cfa41(0x165)]);}catch{console[_0x2cfa41(0x17d)]('Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20'+_0x1dc155['path']);}}try{await writeActiveProfileName(_0x33eaf3),console[_0x2cfa41(0x17d)]('\x20\x20Set\x20active\x20profile:\x20'+_0x33eaf3);}catch{console[_0x2cfa41(0x17d)](_0x2cfa41(0x177));}_0x3e0627?.['trackPhaseEnd'](_0x3e9762[_0x2cfa41(0x176)]),console['log']('\x0a\x20\x20Profile\x20\x22'+_0x33eaf3+'\x22\x20configured');}catch(_0x26bffa){await _0x3e9762['lFWDX'](rm,_0xf1b48a,{'recursive':!![],'force':!![]});throw _0x26bffa;}}
1
+ (function(_0xbef4da,_0x4c685a){const _0x46cc9a=_0x994f,_0x48c8d2=_0xbef4da();while(!![]){try{const _0x24a792=parseInt(_0x46cc9a(0x10a))/0x1*(parseInt(_0x46cc9a(0x123))/0x2)+parseInt(_0x46cc9a(0xed))/0x3+-parseInt(_0x46cc9a(0xc7))/0x4+parseInt(_0x46cc9a(0xef))/0x5+parseInt(_0x46cc9a(0xfd))/0x6*(-parseInt(_0x46cc9a(0x11e))/0x7)+-parseInt(_0x46cc9a(0xfa))/0x8*(-parseInt(_0x46cc9a(0xd9))/0x9)+-parseInt(_0x46cc9a(0x113))/0xa*(parseInt(_0x46cc9a(0xb7))/0xb);if(_0x24a792===_0x4c685a)break;else _0x48c8d2['push'](_0x48c8d2['shift']());}catch(_0x865466){_0x48c8d2['push'](_0x48c8d2['shift']());}}}(_0x3345,0x281d9));import{mkdir,writeFile,readFile,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import _0x57e95b from'inquirer';import{chromium}from'playwright';import{findExistingEnv}from'./utils/settings.js';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getRangerDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';function _0x3345(){const _0x5b15ba=['jPeDA','list','26xvDBcN','isElectron','\x0a📋\x20Authentication\x20Setup','\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a','message','.tmp-','isTTY','YzlNV','1748252rsFePq','LQszV','hBHoO','url','\x22\x20already\x20exists\x20in\x20','http://localhost:3000','QqGbY','stdin','\x20\x20\x20Creating\x20it\x20in\x20','launch','Use\x20','HTTP\x20','Invalid\x20URL','\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a','cLHzL','trackPhaseStart','4192FhFUZT','\x0aThe\x20browser\x20closed\x20unexpectedly\x20before\x20authentication\x20could\x20be\x20saved.','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20','TLird','nGaNE','path','\x22\x20configured','dUGFn','Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','HswCr','.enc','utf-8','error','cnfdx','action','safeMode','trackPhaseEnd','iVSZz','81vSJQlZ','--disable-features=WebBluetooth','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','fsvIo','You\x20can\x20try\x20again\x20with\x20one\x20of:','kTMYQ','auth.json','\x20--skip-auth\x20\x20\x20\x20(skip\x20browser\x20auth\x20entirely)\x0a','kgNwM','rNiMy','FbPxJ','tUFwX','gisKL','\x20\x20Did\x20you\x20mean\x20','What\x20would\x20you\x20like\x20to\x20do?','includes','use_suggestion','BFZFD','bsDhi','KTvgT','149700QsmbJp','trim','1242720AtlIgq','browser_auth','force','ahWBk','local','retry','Enter\x20a\x20different\x20URL','location','settings.json','IKxSo','txOFZ','187944qiCTPz','\x0a🌐\x20Profile\x20Setup\x0a','cdpEndpoint','156QyBAYo','\x20would\x20shadow\x20the\x20existing\x20profile.','push','config_write','skipAuth','\x20(continuing\x20with\x20--force)','length','close','\x0a\x20\x20Could\x20not\x20reach\x20','newContext','input','prompt','.backup-','3122OethPz','hdwLC','Aborted.','baseUrl','confirm','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','TypeError','Could\x20not\x20reach\x20','\x22\x20already\x20exists.\x20Overwrite?','10vuBtsj','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','legacy','\x0a\x20\x20Profile\x20\x22','log','⚠\x20Could\x20not\x20reach\x20','about:blank','✓\x20Created\x20settings:\x20','\x20\x20ranger\x20profile\x20add\x20','--ci\x20and\x20--cdp-endpoint\x20cannot\x20be\x20used\x20together.\x20Electron/CDP\x20profiles\x20only\x20work\x20with\x20a\x20locally\x20running\x20app\x20and\x20are\x20not\x20supported\x20in\x20CI.','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','60893fqYBUg','url_setup','QXCGd'];_0x3345=function(){return _0x5b15ba;};return _0x3345();}function _0x994f(_0x4cb4bc,_0x75353f){_0x4cb4bc=_0x4cb4bc-0xb6;const _0x33452b=_0x3345();let _0x994ffd=_0x33452b[_0x4cb4bc];return _0x994ffd;}import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';async function checkUrlReachability(_0x442db5){const _0x1e844a=_0x994f,_0x23a488={'YzlNV':function(_0x4c5bc1,_0x3c0274,_0x5f169a){return _0x4c5bc1(_0x3c0274,_0x5f169a);},'cUqSp':'HEAD','dUGFn':function(_0x2fe3c6,_0x5425ef){return _0x2fe3c6<_0x5425ef;},'jPeDA':function(_0x21a621,_0xd1a77f){return _0x21a621(_0xd1a77f);},'uFtFP':_0x1e844a(0x110),'hdwLC':'fetch\x20failed'};try{const _0xf38a19=new AbortController(),_0x48ba62=_0x23a488[_0x1e844a(0xb6)](setTimeout,()=>_0xf38a19['abort'](),0x1388),_0x56fea0=await fetch(_0x442db5,{'method':_0x23a488['cUqSp'],'signal':_0xf38a19['signal'],'redirect':'manual'});clearTimeout(_0x48ba62);if(_0x23a488[_0x1e844a(0xce)](_0x56fea0['status'],0x190))return{'ok':!![]};return{'ok':![],'error':_0x1e844a(0xc2)+_0x56fea0['status']};}catch(_0x3d9715){const _0x43fd54=_0x3d9715,_0x25fb63=_0x43fd54[_0x1e844a(0x127)]||_0x23a488[_0x1e844a(0x121)](String,_0x3d9715),_0x3260f3=_0x25fb63[_0x1e844a(0xe8)](_0x1e844a(0xc3))||_0x43fd54['name']===_0x23a488['uFtFP']||_0x25fb63['includes'](_0x23a488[_0x1e844a(0x10b)]);return{'ok':![],'error':_0x25fb63,'isProtocolError':_0x3260f3};}}export async function addEnv(_0x3aeb26,_0x232c27={},_0x961b13){const _0x257484=_0x994f,_0x78f9b5={'ocKUk':function(_0x1cc642){return _0x1cc642();},'ahWBk':function(_0x456bc8,_0xaa0d9,_0x396873,_0x4a4c88){return _0x456bc8(_0xaa0d9,_0x396873,_0x4a4c88);},'cLHzL':'--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','drdwr':_0x257484(0x11c),'hBHoO':function(_0x55077f,_0x1e1146){return _0x55077f(_0x1e1146);},'TPFsY':'confirm','nGaNE':'Aborted.','BWAzs':'root\x20(.ranger/)','tUFwX':function(_0x5ce7cb,_0x1796ce){return _0x5ce7cb(_0x1796ce);},'bsDhi':_0x257484(0xfb),'TLird':_0x257484(0x114),'FbPxJ':_0x257484(0x107),'kTMYQ':_0x257484(0xbc),'DNLGy':_0x257484(0x122),'fsvIo':_0x257484(0xd5),'vuULu':_0x257484(0xe9),'SiFlk':_0x257484(0xf5),'gisKL':function(_0x5c9977,_0x42d5f6){return _0x5c9977===_0x42d5f6;},'IKxSo':function(_0x5574d5,_0x2c6890){return _0x5574d5===_0x2c6890;},'ZCjru':'continue','nRUow':'url_setup','LRKpz':function(_0x3980c6,_0x29dfed,_0x2bd96b){return _0x3980c6(_0x29dfed,_0x2bd96b);},'KTvgT':function(_0x1555ca,_0x1baeb0){return _0x1555ca(_0x1baeb0);},'iVSZz':_0x257484(0xdf),'fPbAS':'\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.','nOxXT':'\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.','kgNwM':'\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a','jDAer':function(_0x400805,_0x1d282b){return _0x400805||_0x1d282b;},'cnfdx':_0x257484(0xc8),'TyxQI':'This\x20can\x20happen\x20due\x20to\x20a\x20browser\x20compatibility\x20issue\x20on\x20some\x20systems.\x0a','LQszV':_0x257484(0xd2),'QqGbY':function(_0x12bf9a,_0x3a84d2){return _0x12bf9a+_0x3a84d2;},'QXCGd':_0x257484(0xd1),'TZbom':_0x257484(0x10f),'HswCr':_0x257484(0xdb),'rNiMy':_0x257484(0xf7),'BFZFD':function(_0x41291a,_0x8135d4,_0x3e837a){return _0x41291a(_0x8135d4,_0x3e837a);},'PYJMs':function(_0x355bbb,_0x3d8d04,_0xd2e585){return _0x355bbb(_0x3d8d04,_0xd2e585);},'Gecvh':function(_0xe64554,_0xac3aa1,_0x401140){return _0xe64554(_0xac3aa1,_0x401140);},'qxwOe':_0x257484(0xcf),'txOFZ':_0x257484(0x100)},_0x5e8bc7=_0x232c27['ci']??![],_0x208169=_0x5e8bc7?'ci':_0x257484(0xf3),_0x2be6a4=_0x78f9b5[_0x257484(0xf2)](join,getRangerDir(),_0x208169,_0x3aeb26),_0x578566=join(_0x78f9b5['ocKUk'](getRangerDir),_0x208169);if(_0x232c27[_0x257484(0xfc)]!==undefined&&_0x232c27['cdpEndpoint'][_0x257484(0xee)]()==='')throw new Error(_0x78f9b5[_0x257484(0xc5)]);if(_0x232c27[_0x257484(0xfc)]&&_0x232c27['url'])throw new Error('--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.');if(_0x232c27['cdpEndpoint']&&_0x232c27['ci'])throw new Error(_0x78f9b5['drdwr']);const _0x8f985e=_0x78f9b5[_0x257484(0xb9)](Boolean,_0x232c27['cdpEndpoint']),_0x12da79=!_0x232c27[_0x257484(0x101)]&&!_0x8f985e,_0x1ffd49=process[_0x257484(0xbe)][_0x257484(0x129)]&&process['stdout'][_0x257484(0x129)];if(!_0x1ffd49&&!_0x232c27[_0x257484(0xba)]&&!_0x8f985e)throw new Error('Please\x20provide\x20--url\x20when\x20running\x20in\x20non-interactive\x20mode.\x0aMake\x20sure\x20the\x20service\x20is\x20running\x20on\x20that\x20port\x20before\x20retrying.\x0aExample:\x20ranger\x20profile\x20add\x20local\x20--url\x20http://localhost:3000');const _0x1b821f=_0x78f9b5[_0x257484(0xb9)](findExistingEnv,_0x3aeb26);let _0x284605=null;if(_0x1b821f){if(!_0x1ffd49)_0x284605=_0x1b821f;else{if(_0x1b821f['location']===_0x208169){const {overwrite:_0x2c1a65}=await _0x57e95b['prompt']([{'type':_0x78f9b5['TPFsY'],'name':'overwrite','message':'Profile\x20\x22'+_0x3aeb26+_0x257484(0x112),'default':![]}]);if(!_0x2c1a65){console[_0x257484(0x117)](_0x78f9b5[_0x257484(0xcb)]);return;}_0x284605=_0x1b821f;}else{const _0x5d016a=_0x1b821f['location']===_0x257484(0x115)?_0x78f9b5['BWAzs']:_0x1b821f[_0x257484(0xf6)];console['error']('\x0a⚠️\x20\x20Profile\x20\x22'+_0x3aeb26+_0x257484(0xbb)+_0x5d016a+':\x20'+_0x1b821f['path']),console[_0x257484(0xd3)](_0x257484(0xbf)+_0x208169+_0x257484(0xfe));const {shouldReplace:_0xccf89f}=await _0x57e95b['prompt']([{'type':_0x257484(0x10e),'name':'shouldReplace','message':'Delete\x20existing\x20and\x20create\x20new\x20in\x20'+_0x208169+'?','default':![]}]);if(!_0xccf89f){console['log'](_0x257484(0x10c));return;}_0x284605=_0x1b821f;}}}_0x961b13?.['trackPhaseStart'](_0x257484(0x11f));let _0x19ca9c='';if(_0x8f985e)console['log']('\x0a🔌\x20CDP\x20Profile\x20Setup\x0a'),console['log'](_0x257484(0x11d)+_0x232c27[_0x257484(0xfc)]),console['log'](_0x257484(0xc4));else{if(_0x232c27['url']){_0x19ca9c=_0x232c27[_0x257484(0xba)];const _0xb4615d=await _0x78f9b5['tUFwX'](checkUrlReachability,_0x19ca9c);if(!_0xb4615d['ok']&&!_0x232c27[_0x257484(0xf1)])throw new Error(_0x257484(0x111)+_0x19ca9c+':\x20'+_0xb4615d[_0x257484(0xd3)]+'\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.');!_0xb4615d['ok']&&_0x232c27[_0x257484(0xf1)]&&console[_0x257484(0x117)](_0x257484(0x118)+_0x19ca9c+':\x20'+_0xb4615d['error']+_0x257484(0x102));}else{console['log'](_0x78f9b5[_0x257484(0xeb)]),console['log'](_0x78f9b5[_0x257484(0xca)]),console[_0x257484(0x117)](_0x257484(0x126));let _0x28d311=![];while(!![]){const _0x3e2366=await _0x57e95b[_0x257484(0x108)]([{'type':_0x78f9b5[_0x257484(0xe3)],'name':'baseUrl','message':_0x28d311?'Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):':'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','default':_0x19ca9c||_0x78f9b5[_0x257484(0xde)]}]);_0x19ca9c=_0x3e2366[_0x257484(0x10d)];const _0x1b7e3f=await checkUrlReachability(_0x19ca9c);if(_0x1b7e3f['ok'])break;const _0x2a9645=/^[a-zA-Z][\w+.-]*:\/\//['test'](_0x19ca9c),_0x356eb1=_0x1b7e3f['isProtocolError']&&!_0x2a9645,_0x4bb1da=_0x356eb1?'http://'+_0x19ca9c:null;_0x28d311=!![],console[_0x257484(0x117)](_0x257484(0x105)+_0x19ca9c+':\x20'+_0x1b7e3f[_0x257484(0xd3)]);_0x4bb1da&&console['log'](_0x257484(0xe6)+_0x4bb1da+'?');const {action:_0x21c94d}=await _0x57e95b['prompt']([{'type':_0x78f9b5['DNLGy'],'name':_0x78f9b5[_0x257484(0xdc)],'message':_0x257484(0xe7),'choices':[..._0x4bb1da?[{'name':_0x257484(0xc1)+_0x4bb1da,'value':_0x78f9b5['vuULu']}]:[],{'name':_0x78f9b5['SiFlk'],'value':_0x257484(0xf4)},{'name':'Continue\x20anyway','value':'continue'}]}]);if(_0x78f9b5[_0x257484(0xe5)](_0x21c94d,'use_suggestion')&&_0x4bb1da){_0x19ca9c=_0x4bb1da;const _0x149d5e=await checkUrlReachability(_0x19ca9c);if(_0x149d5e['ok'])break;console['log']('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0x19ca9c+':\x20'+_0x149d5e[_0x257484(0xd3)]);}else{if(_0x78f9b5[_0x257484(0xf8)](_0x21c94d,_0x78f9b5['ZCjru']))break;}}}}_0x961b13?.['trackPhaseEnd'](_0x78f9b5['nRUow']),await _0x78f9b5['LRKpz'](mkdir,_0x578566,{'recursive':!![]});const _0x464bce=await _0x78f9b5[_0x257484(0xec)](mkdtemp,join(_0x578566,_0x257484(0x128)+_0x3aeb26+'-')),_0x342c8c=join(_0x464bce,_0x78f9b5[_0x257484(0xd8)]);try{if(_0x12da79){_0x961b13?.['trackPhaseStart'](_0x257484(0xf0)),console['log'](_0x257484(0x125)),console[_0x257484(0x117)](_0x78f9b5['fPbAS']),console['log'](_0x78f9b5['nOxXT']);!_0x1ffd49?(console[_0x257484(0x117)]('\x0a\x20\x20\x20⚠\x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.'),console['log'](_0x78f9b5[_0x257484(0xe1)])):console[_0x257484(0x117)]('');await new Promise(_0x187c0e=>setTimeout(_0x187c0e,0xbb8));const _0x28db56=[];_0x232c27[_0x257484(0xd6)]&&_0x28db56[_0x257484(0xff)](_0x257484(0xda));const _0x3ddfb1=await chromium[_0x257484(0xc0)]({'headless':![],..._0x28db56[_0x257484(0x103)]>0x0?{'args':_0x28db56}:{}});try{const _0xa1e994=await _0x3ddfb1[_0x257484(0x106)]();await _0x78f9b5['KTvgT'](addProfileSetupBanner,_0xa1e994);const _0x440a08=await _0xa1e994['newPage']();await _0x440a08['goto'](_0x78f9b5['jDAer'](_0x19ca9c,_0x257484(0x119)));let _0x63727f=![];await new Promise(_0x529e22=>{const _0x274040=_0x257484,_0x4b3888={'cWjDk':'Saving\x20authentication\x20state...','FUTaJ':function(_0x49bd16){return _0x78f9b5['ocKUk'](_0x49bd16);}};_0x440a08['on'](_0x274040(0x104),async()=>{try{console['log'](_0x4b3888['cWjDk']),await _0xa1e994['storageState']({'path':_0x342c8c}),_0x63727f=!![];}catch{}_0x4b3888['FUTaJ'](_0x529e22);});});if(!_0x63727f){console['log'](_0x78f9b5[_0x257484(0xd4)]);!_0x232c27[_0x257484(0xd6)]&&(console[_0x257484(0x117)](_0x78f9b5['TyxQI']),console[_0x257484(0x117)](_0x257484(0xdd)),console[_0x257484(0x117)](_0x257484(0x11b)+_0x3aeb26+'\x20--safe-mode\x20\x20\x20\x20(disables\x20browser\x20features\x20that\x20can\x20cause\x20crashes)'),console['log']('\x20\x20ranger\x20profile\x20add\x20'+_0x3aeb26+_0x257484(0xe0)));throw new Error('Browser\x20closed\x20before\x20authentication\x20was\x20saved.');}}finally{await _0x3ddfb1[_0x257484(0x104)]()['catch'](()=>{});}if(_0x5e8bc7){const _0x11e5c2=await readFile(_0x342c8c,_0x78f9b5[_0x257484(0xb8)]),_0x99cd63=await getToken();if(!_0x99cd63){console[_0x257484(0xd3)]('\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]'),await _0x78f9b5[_0x257484(0xe4)](unlink,_0x342c8c)['catch'](()=>{});throw new Error('Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.');}else{const _0x3e2a86=encrypt(_0x11e5c2,_0x99cd63);await _0x78f9b5['LRKpz'](writeFile,_0x78f9b5[_0x257484(0xbd)](_0x342c8c,_0x78f9b5[_0x257484(0x120)]),_0x3e2a86),await _0x78f9b5[_0x257484(0xb9)](unlink,_0x342c8c),console['log']('✓\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x342c8c+'.enc'),console['log'](_0x78f9b5['TZbom']),console['log'](_0x78f9b5[_0x257484(0xd0)]);}}else console['log']('✓\x20Auth\x20state\x20saved\x20to:\x20'+_0x342c8c);_0x961b13?.[_0x257484(0xd7)]('browser_auth');}_0x961b13?.[_0x257484(0xc6)]('config_write');const _0x212419={};_0x19ca9c&&(_0x212419['baseUrl']=_0x19ca9c);_0x232c27[_0x257484(0xfc)]&&(_0x212419[_0x257484(0xfc)]=_0x232c27['cdpEndpoint'],_0x212419[_0x257484(0x124)]=!![]);_0x232c27['allowInsecureLocalhost']&&(_0x212419['allowInsecureLocalhost']=!![]);_0x232c27[_0x257484(0xd6)]&&(_0x212419['safeMode']=!![]);await writeFile(join(_0x464bce,_0x78f9b5[_0x257484(0xe2)]),JSON['stringify'](_0x212419,null,0x2)),console[_0x257484(0x117)](_0x257484(0x11a)+join(_0x2be6a4,_0x257484(0xf7)));if(_0x78f9b5['IKxSo'](_0x284605?.['location'],_0x208169)){const _0x19d0c8=_0x284605[_0x257484(0xcc)]+_0x257484(0x109)+Date['now']();await rename(_0x284605['path'],_0x19d0c8);try{await _0x78f9b5[_0x257484(0xea)](rename,_0x464bce,_0x2be6a4);}catch(_0x491070){await _0x78f9b5['PYJMs'](rename,_0x19d0c8,_0x284605['path']);throw _0x491070;}try{await rm(_0x19d0c8,{'recursive':!![]});}catch{console['log']('Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20'+_0x19d0c8);}}else{await rename(_0x464bce,_0x2be6a4);if(_0x284605)try{await _0x78f9b5['Gecvh'](rm,_0x284605[_0x257484(0xcc)],{'recursive':!![]}),console[_0x257484(0x117)]('Removed\x20existing\x20profile\x20at\x20'+_0x284605['path']);}catch{console[_0x257484(0x117)](_0x257484(0xc9)+_0x284605['path']);}}try{await _0x78f9b5[_0x257484(0xec)](writeActiveProfileName,_0x3aeb26),console['log']('\x20\x20Set\x20active\x20profile:\x20'+_0x3aeb26);}catch{console[_0x257484(0x117)](_0x78f9b5['qxwOe']);}_0x961b13?.[_0x257484(0xd7)](_0x78f9b5[_0x257484(0xf9)]),console['log'](_0x257484(0x116)+_0x3aeb26+_0x257484(0xcd));}catch(_0x1ea441){await _0x78f9b5['LRKpz'](rm,_0x464bce,{'recursive':!![],'force':!![]});throw _0x1ea441;}}
@@ -1 +1 @@
1
- function _0x36f7(){const _0x2a9594=['4401955oVKGmY','738KChOTb','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','21196wzwVuM','9422651htnifD','1066830uFVhIO','.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update','jBxvR','log','5864duvMaz','FestS','8FUIwWh','90ipAhPC','auth.json','7875725TAvLQf','XzUPW','\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.','111JwUVyN','.enc','393129WdXWav'];_0x36f7=function(){return _0x2a9594;};return _0x36f7();}function _0x14ff(_0x27128a,_0x27cf65){_0x27128a=_0x27128a-0x12b;const _0x36f739=_0x36f7();let _0x14ffbd=_0x36f739[_0x27128a];return _0x14ffbd;}(function(_0x299f0a,_0x4eaa69){const _0x52d717=_0x14ff,_0xe7e4df=_0x299f0a();while(!![]){try{const _0x55e1d8=-parseInt(_0x52d717(0x13c))/0x1*(-parseInt(_0x52d717(0x134))/0x2)+parseInt(_0x52d717(0x12c))/0x3*(-parseInt(_0x52d717(0x12e))/0x4)+parseInt(_0x52d717(0x12b))/0x5+-parseInt(_0x52d717(0x130))/0x6+parseInt(_0x52d717(0x12f))/0x7*(parseInt(_0x52d717(0x136))/0x8)+parseInt(_0x52d717(0x13e))/0x9*(parseInt(_0x52d717(0x137))/0xa)+-parseInt(_0x52d717(0x139))/0xb;if(_0x55e1d8===_0x4eaa69)break;else _0xe7e4df['push'](_0xe7e4df['shift']());}catch(_0xcfbeb6){_0xe7e4df['push'](_0xe7e4df['shift']());}}}(_0x36f7,0xb68d3));import{readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getEnvDir}from'./utils/settings.js';export async function authEncrypt(_0x3fa87f){const _0x1e0d30=_0x14ff,_0x235deb={'XzUPW':_0x1e0d30(0x138),'nxvrH':_0x1e0d30(0x13d),'oRxNS':function(_0x5afe89,_0x5c2bd5){return _0x5afe89(_0x5c2bd5);},'FestS':function(_0x50eb0f,_0x5cabed,_0x47b1ad){return _0x50eb0f(_0x5cabed,_0x47b1ad);},'exKYK':'utf-8','yQdDA':_0x1e0d30(0x12d),'jBxvR':function(_0x5fe1cb,_0x19140f){return _0x5fe1cb(_0x19140f);}},_0x5a40d2=getEnvDir(_0x3fa87f),_0x39a01e=join(_0x5a40d2,_0x235deb[_0x1e0d30(0x13a)]),_0x29dc3e=_0x39a01e+_0x235deb['nxvrH'];if(!_0x235deb['oRxNS'](existsSync,_0x5a40d2))throw new Error('Profile\x20\x22'+_0x3fa87f+'\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0x3fa87f);if(!existsSync(_0x39a01e))throw new Error('No\x20auth.json\x20found\x20at\x20'+_0x39a01e+_0x1e0d30(0x131));const _0x529c1a=await getToken();if(!_0x529c1a)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x58b117=await _0x235deb['FestS'](readFile,_0x39a01e,_0x235deb['exKYK']),_0x43ab7f=_0x235deb[_0x1e0d30(0x135)](encrypt,_0x58b117,_0x529c1a);await writeFile(_0x29dc3e,_0x43ab7f),console['log']('\x0a✓\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x29dc3e),console[_0x1e0d30(0x133)]('\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.'),console['log'](_0x235deb['yQdDA']),_0x235deb[_0x1e0d30(0x132)](existsSync,_0x29dc3e)&&(console[_0x1e0d30(0x133)](_0x1e0d30(0x13b)),console[_0x1e0d30(0x133)]('\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.'));}
1
+ (function(_0x56e4cf,_0x500eac){const _0x3ed96a=_0x539f,_0x564f84=_0x56e4cf();while(!![]){try{const _0x2b027d=-parseInt(_0x3ed96a(0x74))/0x1*(parseInt(_0x3ed96a(0x66))/0x2)+-parseInt(_0x3ed96a(0x72))/0x3*(parseInt(_0x3ed96a(0x6a))/0x4)+-parseInt(_0x3ed96a(0x7d))/0x5+parseInt(_0x3ed96a(0x7a))/0x6+-parseInt(_0x3ed96a(0x6f))/0x7*(-parseInt(_0x3ed96a(0x6c))/0x8)+-parseInt(_0x3ed96a(0x73))/0x9*(-parseInt(_0x3ed96a(0x68))/0xa)+-parseInt(_0x3ed96a(0x70))/0xb*(-parseInt(_0x3ed96a(0x77))/0xc);if(_0x2b027d===_0x500eac)break;else _0x564f84['push'](_0x564f84['shift']());}catch(_0x142c7e){_0x564f84['push'](_0x564f84['shift']());}}}(_0x23c6,0xd8e28));import{readFile,writeFile}from'fs/promises';function _0x539f(_0x5181cd,_0x3042a7){_0x5181cd=_0x5181cd-0x66;const _0x23c634=_0x23c6();let _0x539fe0=_0x23c634[_0x5181cd];return _0x539fe0;}import{join}from'path';import{existsSync}from'fs';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';function _0x23c6(){const _0x38ae48=['7wdYMpq','13696331tNWAGc','eeMzN','4818459CxGctA','3519459sfMPnK','51079WNuSEI','\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','.enc','12nKxCnE','\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','2389776VCIGHv','log','auth.json','281615aBXCNs','Profile\x20\x22','48CduUCn','kGyJu','20TBiGnT','QAUmL','4ZeJWvI','bmiTd','10809704zcoTYD','GorXt','LsNnN'];_0x23c6=function(){return _0x38ae48;};return _0x23c6();}import{getEnvDir}from'./utils/settings.js';export async function authEncrypt(_0x56a1d1){const _0x4213b1=_0x539f,_0x45ab9b={'bmiTd':function(_0x17b3f3,_0x5d0663){return _0x17b3f3+_0x5d0663;},'LsNnN':function(_0x383939,_0x52a347){return _0x383939(_0x52a347);},'eeMzN':function(_0x1db1cf){return _0x1db1cf();},'QAUmL':'utf-8','kGyJu':function(_0x5adf69,_0x38a9fa,_0x3dfd69){return _0x5adf69(_0x38a9fa,_0x3dfd69);},'jkNZU':'\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','GorXt':_0x4213b1(0x79)},_0x4aee0b=getEnvDir(_0x56a1d1),_0x3311f5=join(_0x4aee0b,_0x4213b1(0x7c)),_0x5e32a1=_0x45ab9b[_0x4213b1(0x6b)](_0x3311f5,_0x4213b1(0x76));if(!_0x45ab9b[_0x4213b1(0x6e)](existsSync,_0x4aee0b))throw new Error(_0x4213b1(0x7e)+_0x56a1d1+_0x4213b1(0x75)+_0x56a1d1);if(!_0x45ab9b[_0x4213b1(0x6e)](existsSync,_0x3311f5))throw new Error('No\x20auth.json\x20found\x20at\x20'+_0x3311f5+'.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update');const _0x40f571=await _0x45ab9b[_0x4213b1(0x71)](getToken);if(!_0x40f571)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x1ac540=await readFile(_0x3311f5,_0x45ab9b[_0x4213b1(0x69)]),_0x3f75e1=_0x45ab9b[_0x4213b1(0x67)](encrypt,_0x1ac540,_0x40f571);await _0x45ab9b['kGyJu'](writeFile,_0x5e32a1,_0x3f75e1),console['log']('\x0a✓\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x5e32a1),console['log'](_0x45ab9b['jkNZU']),console['log'](_0x45ab9b[_0x4213b1(0x6d)]),_0x45ab9b[_0x4213b1(0x6e)](existsSync,_0x5e32a1)&&(console['log'](_0x4213b1(0x78)),console[_0x4213b1(0x7b)]('\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.'));}
@@ -1 +1 @@
1
- const _0x27186f=_0x11e5;(function(_0x505891,_0x240db9){const _0x329841=_0x11e5,_0x27b5b4=_0x505891();while(!![]){try{const _0x373539=parseInt(_0x329841(0xf9))/0x1+parseInt(_0x329841(0x114))/0x2*(parseInt(_0x329841(0xf6))/0x3)+parseInt(_0x329841(0x113))/0x4*(parseInt(_0x329841(0x11b))/0x5)+parseInt(_0x329841(0x11e))/0x6+-parseInt(_0x329841(0x111))/0x7+parseInt(_0x329841(0xf1))/0x8*(-parseInt(_0x329841(0x108))/0x9)+-parseInt(_0x329841(0x106))/0xa;if(_0x373539===_0x240db9)break;else _0x27b5b4['push'](_0x27b5b4['shift']());}catch(_0x120dc0){_0x27b5b4['push'](_0x27b5b4['shift']());}}}(_0x3c21,0x5de4c));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{spawn}from'child_process';import{deleteAllCredentials}from'./utils/keychain.js';import{getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=[_0x27186f(0x11c),_0x27186f(0x102),_0x27186f(0x11f),'e2e-test-recommender'],opencodePluginName='@ranger-testing/opencode-plugin';function _0x3c21(){const _0x483ae2=['LMQrb','ObFdW','error','azVFR','ZACqG','platform','\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','IjhhR','win32','8hwBaCj','BCYRG','tSXrm','uVLal','fkTrV','3nLQDqW','REXOV','✓\x20Removed\x20.ranger/\x20directory','368386oiOBQz','remove','ranger@trailhead','✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','project','parse','plugin','marketplace','ITqdX','feature-tracker','gnDGc','UGRqo','length','8088480ZqTDRx','isArray','4542183RWntfb','uninstall','filter','string','sqRnQ','close','IUTTZ','tNBZl','pILKX','18620LCFLAy','✓\x20Removed\x20trailhead\x20marketplace','5068weuPfu','1310412aqtLOo','claude','✓\x20Removed\x20project\x20skill:\x20','log','opencode.json','stringify','ywjKG','2435ucuNxF','ranger','dmVtK','360972UOFSUU','bug-bash','replace','NtAlR','alohU','✓\x20Removed\x20stored\x20credentials','Nothing\x20to\x20clean\x20up.\x0a','TqYwe'];_0x3c21=function(){return _0x483ae2;};return _0x3c21();}function parseJsonc(_0x470d2f){const _0xba98e5=_0x27186f,_0x1b0e3a=_0x470d2f['replace'](/\/\*[\s\S]*?\*\//g,''),_0x8c1fcd=_0x1b0e3a[_0xba98e5(0x120)](/^\s*\/\/.*$/gm,''),_0x58771f=_0x8c1fcd[_0xba98e5(0x120)](/,\s*([}\]])/g,'$1');return JSON[_0xba98e5(0xfe)](_0x58771f);}async function removeOpencodePluginConfig(_0xf82f69){const _0x2d19db=_0x27186f,_0x4a1c90={'aEPkw':_0x2d19db(0x10b),'dmVtK':function(_0x578322,_0x42fec7){return _0x578322!==_0x42fec7;},'lASoF':function(_0x3025da,_0x4b820d,_0x473754){return _0x3025da(_0x4b820d,_0x473754);},'uVLal':function(_0x464770,_0x54d70e){return _0x464770(_0x54d70e);},'UGRqo':function(_0x27bcf9,_0x5c0fd5){return _0x27bcf9+_0x5c0fd5;}};if(!existsSync(_0xf82f69))return![];let _0x22a0a4;try{const _0x2e785c=await _0x4a1c90['lASoF'](readFile,_0xf82f69,'utf-8');_0x22a0a4=_0x4a1c90[_0x2d19db(0xf4)](parseJsonc,_0x2e785c);}catch{return![];}const _0x3065e1=Array[_0x2d19db(0x107)](_0x22a0a4['plugin'])?_0x22a0a4['plugin']:[];if(_0x3065e1[_0x2d19db(0x105)]===0x0)return![];const _0x353e1d=_0x3065e1[_0x2d19db(0x10a)](_0x19260d=>{const _0x5674e2=_0x2d19db;if(typeof _0x19260d!==_0x4a1c90['aEPkw'])return!![];return _0x4a1c90[_0x5674e2(0x11d)](_0x19260d,opencodePluginName);});if(_0x353e1d['length']===_0x3065e1['length'])return![];return _0x353e1d['length']===0x0?delete _0x22a0a4[_0x2d19db(0xff)]:_0x22a0a4[_0x2d19db(0xff)]=_0x353e1d,await writeFile(_0xf82f69,_0x4a1c90[_0x2d19db(0x104)](JSON[_0x2d19db(0x119)](_0x22a0a4,null,0x2),'\x0a')),!![];}function _0x11e5(_0x8af988,_0x2f0c84){_0x8af988=_0x8af988-0xea;const _0x3c21b8=_0x3c21();let _0x11e50a=_0x3c21b8[_0x8af988];return _0x11e50a;}async function uninstallClaudePlugin(_0x2710eb){const _0x58b169=_0x27186f,_0x17c4cd={'tSXrm':'plugin','NCjFZ':_0x58b169(0xfb),'ITqdX':'--scope','tqysg':function(_0x1dd9b8,_0x1299e1,_0x29dc32,_0x2c51c9){return _0x1dd9b8(_0x1299e1,_0x29dc32,_0x2c51c9);},'NncIr':_0x58b169(0x115),'eUPYw':'pipe','VHSng':_0x58b169(0xea)};return new Promise(_0x363ab0=>{const _0x368ab0=_0x58b169,_0x25cce8=[_0x17c4cd[_0x368ab0(0xf3)],_0x368ab0(0x109),_0x17c4cd['NCjFZ']];_0x2710eb&&_0x25cce8['push'](_0x17c4cd[_0x368ab0(0x101)],_0x2710eb);const _0x2353ae=_0x17c4cd['tqysg'](spawn,_0x17c4cd['NncIr'],_0x25cce8,{'stdio':_0x17c4cd['eUPYw'],'shell':process[_0x368ab0(0xed)]===_0x368ab0(0xf0)});_0x2353ae['on'](_0x368ab0(0x10d),_0x56c442=>{_0x363ab0(_0x56c442===0x0);}),_0x2353ae['on'](_0x17c4cd['VHSng'],()=>{_0x363ab0(![]);});});}async function removeMarketplace(){const _0x2f331e=_0x27186f,_0x4aebaf={'OSGQQ':function(_0x2c9ed7,_0x1a82f5,_0x3e5f9e,_0x74b622){return _0x2c9ed7(_0x1a82f5,_0x3e5f9e,_0x74b622);},'tNBZl':'plugin','pILKX':_0x2f331e(0xfa),'rqorm':'trailhead','HBvgG':'pipe','CafnA':function(_0xfc5935,_0x5ed5d6){return _0xfc5935===_0x5ed5d6;},'vOAZk':_0x2f331e(0xf0),'gnDGc':_0x2f331e(0xea)};return new Promise(_0x31b38f=>{const _0x15f506=_0x2f331e,_0x1a4e35={'dWNrT':function(_0x2c897f,_0x19dc1b){return _0x2c897f(_0x19dc1b);}},_0x338715=_0x4aebaf['OSGQQ'](spawn,_0x15f506(0x115),[_0x4aebaf[_0x15f506(0x10f)],_0x15f506(0x100),_0x4aebaf[_0x15f506(0x110)],_0x4aebaf['rqorm']],{'stdio':_0x4aebaf['HBvgG'],'shell':_0x4aebaf['CafnA'](process['platform'],_0x4aebaf['vOAZk'])});_0x338715['on'](_0x15f506(0x10d),_0x2c11c7=>{_0x1a4e35['dWNrT'](_0x31b38f,_0x2c11c7===0x0);}),_0x338715['on'](_0x4aebaf[_0x15f506(0x103)],()=>{_0x1a4e35['dWNrT'](_0x31b38f,![]);});});}export async function clean(){const _0x3521d8=_0x27186f,_0x569751={'fkTrV':function(_0x103d51){return _0x103d51();},'ywjKG':function(_0x531afb){return _0x531afb();},'sqRnQ':function(_0x1de318,_0x26f324){return _0x1de318(_0x26f324);},'ZACqG':function(_0xa79298,_0xd2935c,_0x1d7fc0){return _0xa79298(_0xd2935c,_0x1d7fc0);},'alohU':_0x3521d8(0xf8),'IjhhR':function(_0x5bcea5,_0xf3d110,_0x57f912){return _0x5bcea5(_0xf3d110,_0x57f912);},'ObFdW':function(_0x31e55b,_0x3b76a0,_0x3c05b0){return _0x31e55b(_0x3b76a0,_0x3c05b0);},'SiXun':function(_0x70842){return _0x70842();},'NtAlR':function(_0x12af0f,_0x3e95d2,_0x4ad525){return _0x12af0f(_0x3e95d2,_0x4ad525);},'LMQrb':function(_0x305f0b,_0x4dec52){return _0x305f0b(_0x4dec52);},'BCYRG':_0x3521d8(0xfd),'gAasY':function(_0x18210d,_0x3ac57d,_0x54045b){return _0x18210d(_0x3ac57d,_0x54045b);},'azVFR':'user','iaSzm':function(_0x346164,_0x25167f){return _0x346164(_0x25167f);},'TqYwe':_0x3521d8(0x118),'KaWZv':function(_0x15f0b3,_0x4c83c7){return _0x15f0b3(_0x4c83c7);},'IUTTZ':function(_0x142ab8){return _0x142ab8();},'NzEgZ':_0x3521d8(0x112),'REXOV':_0x3521d8(0x124)};console[_0x3521d8(0x117)](_0x3521d8(0xee));let _0x447d0d=![];try{await _0x569751[_0x3521d8(0xf5)](deleteAllCredentials),console[_0x3521d8(0x117)](_0x3521d8(0x123)),_0x447d0d=!![];}catch{}const _0x415c9c=_0x569751[_0x3521d8(0x11a)](getCacheFile);existsSync(_0x415c9c)&&(await rm(_0x415c9c),_0x447d0d=!![]);const _0x40ddb1=getRangerDir();_0x569751[_0x3521d8(0x10c)](existsSync,_0x40ddb1)&&(await _0x569751[_0x3521d8(0xec)](rm,_0x40ddb1,{'recursive':!![]}),console[_0x3521d8(0x117)](_0x569751[_0x3521d8(0x122)]),_0x447d0d=!![]);const _0x231aa2=getProjectSkillsDir();for(const _0x8333f9 of skillsToRemove){const _0xbdc19f=_0x569751[_0x3521d8(0xef)](join,_0x231aa2,_0x8333f9);existsSync(_0xbdc19f)&&(await _0x569751[_0x3521d8(0x127)](rm,_0xbdc19f,{'recursive':!![]}),console[_0x3521d8(0x117)](_0x3521d8(0x116)+_0x8333f9),_0x447d0d=!![]);}const _0x84091=_0x569751['SiXun'](getUserSkillsDir);for(const _0x3c1390 of skillsToRemove){const _0x31853d=_0x569751['ZACqG'](join,_0x84091,_0x3c1390);_0x569751[_0x3521d8(0x10c)](existsSync,_0x31853d)&&(await _0x569751[_0x3521d8(0x121)](rm,_0x31853d,{'recursive':!![]}),console[_0x3521d8(0x117)]('✓\x20Removed\x20user\x20skill:\x20'+_0x3c1390),_0x447d0d=!![]);}const _0x4d7923=_0x569751[_0x3521d8(0x126)](getOpencodeSkillsDir,_0x569751[_0x3521d8(0xf2)]);for(const _0x4427e7 of skillsToRemove){const _0x578978=_0x569751['NtAlR'](join,_0x4d7923,_0x4427e7);existsSync(_0x578978)&&(await _0x569751['gAasY'](rm,_0x578978,{'recursive':!![]}),console[_0x3521d8(0x117)]('✓\x20Removed\x20OpenCode\x20project\x20skill:\x20'+_0x4427e7),_0x447d0d=!![]);}const _0xa2bde2=getOpencodeSkillsDir(_0x569751[_0x3521d8(0xeb)]);for(const _0x12f81d of skillsToRemove){const _0x7b06c2=join(_0xa2bde2,_0x12f81d);_0x569751['LMQrb'](existsSync,_0x7b06c2)&&(await rm(_0x7b06c2,{'recursive':!![]}),console[_0x3521d8(0x117)]('✓\x20Removed\x20OpenCode\x20user\x20skill:\x20'+_0x12f81d),_0x447d0d=!![]);}const _0x56a302=join(_0x569751['iaSzm'](getOpencodeConfigDir,_0x569751[_0x3521d8(0xf2)]),_0x569751[_0x3521d8(0x125)]);await removeOpencodePluginConfig(_0x56a302)&&(console[_0x3521d8(0x117)]('✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)'),_0x447d0d=!![]);const _0x5c0058=join(getOpencodeConfigDir(_0x569751['azVFR']),_0x569751[_0x3521d8(0x125)]);await _0x569751['KaWZv'](removeOpencodePluginConfig,_0x5c0058)&&(console[_0x3521d8(0x117)](_0x3521d8(0xfc)),_0x447d0d=!![]);const _0x51b3e1=await _0x569751[_0x3521d8(0x10e)](uninstallClaudePlugin);_0x51b3e1&&(console[_0x3521d8(0x117)]('✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)'),_0x447d0d=!![]);const _0xb1d362=await uninstallClaudePlugin('project');_0xb1d362&&(console[_0x3521d8(0x117)]('✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)'),_0x447d0d=!![]);const _0x512e16=await _0x569751['ywjKG'](removeMarketplace);_0x512e16&&(console['log'](_0x569751['NzEgZ']),_0x447d0d=!![]),_0x447d0d?console['log']('\x0a✅\x20Cleanup\x20complete!\x0a'):console['log'](_0x569751[_0x3521d8(0xf7)]);}
1
+ const _0x277fd1=_0x32c6;(function(_0x559b88,_0x4fa121){const _0x1914c0=_0x32c6,_0x5292b=_0x559b88();while(!![]){try{const _0x462161=-parseInt(_0x1914c0(0x88))/0x1*(-parseInt(_0x1914c0(0xa4))/0x2)+parseInt(_0x1914c0(0xbf))/0x3+-parseInt(_0x1914c0(0x96))/0x4+parseInt(_0x1914c0(0x90))/0x5*(parseInt(_0x1914c0(0x9c))/0x6)+-parseInt(_0x1914c0(0x9a))/0x7*(parseInt(_0x1914c0(0x8b))/0x8)+parseInt(_0x1914c0(0xbd))/0x9+-parseInt(_0x1914c0(0xa3))/0xa*(-parseInt(_0x1914c0(0x8a))/0xb);if(_0x462161===_0x4fa121)break;else _0x5292b['push'](_0x5292b['shift']());}catch(_0x4adcd1){_0x5292b['push'](_0x5292b['shift']());}}}(_0x43d9,0x65326));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{spawn}from'child_process';function _0x32c6(_0x19e1c2,_0x3a5f69){_0x19e1c2=_0x19e1c2-0x85;const _0x43d9b6=_0x43d9();let _0x32c62a=_0x43d9b6[_0x19e1c2];return _0x32c62a;}import{deleteAllCredentials}from'./utils/keychain.js';import{getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=[_0x277fd1(0xa7),'feature-tracker',_0x277fd1(0xa8),'e2e-test-recommender'],opencodePluginName='@ranger-testing/opencode-plugin';function parseJsonc(_0xa15a76){const _0x345785=_0x277fd1,_0x40d236=_0xa15a76['replace'](/\/\*[\s\S]*?\*\//g,''),_0x3bc79c=_0x40d236[_0x345785(0x9b)](/^\s*\/\/.*$/gm,''),_0x184744=_0x3bc79c['replace'](/,\s*([}\]])/g,'$1');return JSON[_0x345785(0x94)](_0x184744);}function _0x43d9(){const _0x1bbdd1=['dwbfZ','user','ukcls','--scope','WYzIs','AUcHQ','CYelP','marketplace','pudsE','mJCyv','log','pipe','✓\x20Removed\x20project\x20skill:\x20','PVfgf','1637226TajkJR','✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','1696374EvXInU','✓\x20Removed\x20user\x20skill:\x20','✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','length','1QJqGjm','stringify','1967449odGFyl','88QNhoks','bJzEL','cnTXd','faIHV','qebpU','21305RMivbW','YVzJR','uHYkQ','isArray','parse','filter','1067228TtHDjt','push','mGwkC','claude','453040gYLBdy','replace','90bOaZJX','close','eYxBi','\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','TvXPT','DPqGL','BQRBU','10GNfroe','806166AIJLxF','\x0a✅\x20Cleanup\x20complete!\x0a','Nothing\x20to\x20clean\x20up.\x0a','ranger','bug-bash','✓\x20Removed\x20OpenCode\x20user\x20skill:\x20','✓\x20Removed\x20OpenCode\x20project\x20skill:\x20','project','plugin','RyoMB','✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)'];_0x43d9=function(){return _0x1bbdd1;};return _0x43d9();}async function removeOpencodePluginConfig(_0x11d33d){const _0x4bb3cc=_0x277fd1,_0x1d6b4f={'cnTXd':function(_0x27e6b3,_0x28dce3){return _0x27e6b3!==_0x28dce3;},'BQRBU':function(_0x2d9c4b,_0x49b4e4){return _0x2d9c4b(_0x49b4e4);},'tQcxi':'utf-8','dwbfZ':function(_0x340f6d,_0x58b821){return _0x340f6d(_0x58b821);},'ZSVhz':function(_0x348217,_0x320965){return _0x348217===_0x320965;},'mJCyv':function(_0x3aa8db,_0x1fa6bb){return _0x3aa8db+_0x1fa6bb;}};if(!_0x1d6b4f[_0x4bb3cc(0xa2)](existsSync,_0x11d33d))return![];let _0x27a4d2;try{const _0x36caa1=await readFile(_0x11d33d,_0x1d6b4f['tQcxi']);_0x27a4d2=_0x1d6b4f[_0x4bb3cc(0xaf)](parseJsonc,_0x36caa1);}catch{return![];}const _0x3a1632=Array[_0x4bb3cc(0x93)](_0x27a4d2[_0x4bb3cc(0xac)])?_0x27a4d2['plugin']:[];if(_0x3a1632[_0x4bb3cc(0x87)]===0x0)return![];const _0x7035a=_0x3a1632[_0x4bb3cc(0x95)](_0x4ecaf3=>{const _0x397f4a=_0x4bb3cc;if(_0x1d6b4f[_0x397f4a(0x8d)](typeof _0x4ecaf3,'string'))return!![];return _0x4ecaf3!==opencodePluginName;});if(_0x7035a[_0x4bb3cc(0x87)]===_0x3a1632[_0x4bb3cc(0x87)])return![];return _0x1d6b4f['ZSVhz'](_0x7035a['length'],0x0)?delete _0x27a4d2['plugin']:_0x27a4d2['plugin']=_0x7035a,await writeFile(_0x11d33d,_0x1d6b4f[_0x4bb3cc(0xb8)](JSON[_0x4bb3cc(0x89)](_0x27a4d2,null,0x2),'\x0a')),!![];}async function uninstallClaudePlugin(_0x4daf05){const _0x23334f=_0x277fd1,_0x25c828={'uHYkQ':function(_0x3fa80,_0x45fe0b){return _0x3fa80===_0x45fe0b;},'yHErr':function(_0x50210f,_0x372532){return _0x50210f(_0x372532);},'nRPzr':'uninstall','QsZYh':_0x23334f(0x99),'AUcHQ':function(_0x3e38af,_0x2a6ed6){return _0x3e38af===_0x2a6ed6;},'PVfgf':'win32','kgYXl':_0x23334f(0x9d)};return new Promise(_0x35bde0=>{const _0x515b56=_0x23334f,_0x36e7a3=[_0x515b56(0xac),_0x25c828['nRPzr'],'ranger@trailhead'];_0x4daf05&&_0x36e7a3[_0x515b56(0x97)](_0x515b56(0xb2),_0x4daf05);const _0x45b7ec=spawn(_0x25c828['QsZYh'],_0x36e7a3,{'stdio':_0x515b56(0xba),'shell':_0x25c828[_0x515b56(0xb4)](process['platform'],_0x25c828[_0x515b56(0xbc)])});_0x45b7ec['on'](_0x25c828['kgYXl'],_0x1a2599=>{const _0x9e9a9f=_0x515b56;_0x35bde0(_0x25c828[_0x9e9a9f(0x92)](_0x1a2599,0x0));}),_0x45b7ec['on']('error',()=>{_0x25c828['yHErr'](_0x35bde0,![]);});});}async function removeMarketplace(){const _0x293604=_0x277fd1,_0x38f3e4={'bJzEL':function(_0x1670d4,_0xefae9e){return _0x1670d4===_0xefae9e;},'eYxBi':function(_0x2377b6,_0x22fdfa,_0x54149d,_0x30a1ba){return _0x2377b6(_0x22fdfa,_0x54149d,_0x30a1ba);},'JPWBF':_0x293604(0xac),'DPqGL':_0x293604(0xb6),'faIHV':'remove','csAov':_0x293604(0x9d)};return new Promise(_0x24483d=>{const _0x32ca2c=_0x293604,_0x2b4eaf={'WYzIs':function(_0x113392,_0xd5f34c){return _0x113392(_0xd5f34c);}},_0x2d96fe=_0x38f3e4[_0x32ca2c(0x9e)](spawn,'claude',[_0x38f3e4['JPWBF'],_0x38f3e4[_0x32ca2c(0xa1)],_0x38f3e4[_0x32ca2c(0x8e)],'trailhead'],{'stdio':'pipe','shell':process['platform']==='win32'});_0x2d96fe['on'](_0x38f3e4['csAov'],_0x5f1336=>{const _0x618f76=_0x32ca2c;_0x24483d(_0x38f3e4[_0x618f76(0x8c)](_0x5f1336,0x0));}),_0x2d96fe['on']('error',()=>{const _0x388ede=_0x32ca2c;_0x2b4eaf[_0x388ede(0xb3)](_0x24483d,![]);});});}export async function clean(){const _0x37876b=_0x277fd1,_0x462dc4={'qebpU':function(_0x4d350a){return _0x4d350a();},'YVzJR':function(_0x2fc86a,_0xa13e9f,_0x5e3b1f){return _0x2fc86a(_0xa13e9f,_0x5e3b1f);},'CYelP':function(_0xf8b09c,_0x31abe3,_0x503658){return _0xf8b09c(_0x31abe3,_0x503658);},'mGwkC':_0x37876b(0xb0),'pudsE':function(_0x2bc364,_0x2e5d51,_0x352da6){return _0x2bc364(_0x2e5d51,_0x352da6);},'tyTeB':function(_0x5da5ad,_0x4596de){return _0x5da5ad(_0x4596de);},'oyFsG':function(_0x151e14,_0x3d2463){return _0x151e14(_0x3d2463);},'Qdftk':_0x37876b(0x86),'NNJWU':function(_0x5e90ec,_0x11b411,_0x22ec86){return _0x5e90ec(_0x11b411,_0x22ec86);},'TvXPT':function(_0x21a223,_0x3a964b){return _0x21a223(_0x3a964b);},'RyoMB':function(_0x545cbd){return _0x545cbd();},'rYBSr':_0x37876b(0xbe),'jPmLY':'project','eHxar':function(_0xf314d7){return _0xf314d7();},'ukcls':_0x37876b(0xa5)};console['log'](_0x37876b(0x9f));let _0xd40b33=![];try{await deleteAllCredentials(),console[_0x37876b(0xb9)]('✓\x20Removed\x20stored\x20credentials'),_0xd40b33=!![];}catch{}const _0x3e187f=_0x462dc4['qebpU'](getCacheFile);existsSync(_0x3e187f)&&(await rm(_0x3e187f),_0xd40b33=!![]);const _0x175140=_0x462dc4[_0x37876b(0x8f)](getRangerDir);existsSync(_0x175140)&&(await _0x462dc4['YVzJR'](rm,_0x175140,{'recursive':!![]}),console[_0x37876b(0xb9)]('✓\x20Removed\x20.ranger/\x20directory'),_0xd40b33=!![]);const _0x28614f=getProjectSkillsDir();for(const _0x58bdf6 of skillsToRemove){const _0x26ff63=_0x462dc4[_0x37876b(0x91)](join,_0x28614f,_0x58bdf6);existsSync(_0x26ff63)&&(await _0x462dc4[_0x37876b(0x91)](rm,_0x26ff63,{'recursive':!![]}),console['log'](_0x37876b(0xbb)+_0x58bdf6),_0xd40b33=!![]);}const _0x246c03=getUserSkillsDir();for(const _0x1be17b of skillsToRemove){const _0x15c0bb=join(_0x246c03,_0x1be17b);existsSync(_0x15c0bb)&&(await rm(_0x15c0bb,{'recursive':!![]}),console['log'](_0x37876b(0x85)+_0x1be17b),_0xd40b33=!![]);}const _0x1dced6=getOpencodeSkillsDir(_0x37876b(0xab));for(const _0x445721 of skillsToRemove){const _0x336129=_0x462dc4[_0x37876b(0xb5)](join,_0x1dced6,_0x445721);existsSync(_0x336129)&&(await _0x462dc4['YVzJR'](rm,_0x336129,{'recursive':!![]}),console['log'](_0x37876b(0xaa)+_0x445721),_0xd40b33=!![]);}const _0x283f1a=getOpencodeSkillsDir(_0x462dc4[_0x37876b(0x98)]);for(const _0x5499b3 of skillsToRemove){const _0x5d76ce=_0x462dc4[_0x37876b(0xb7)](join,_0x283f1a,_0x5499b3);_0x462dc4['tyTeB'](existsSync,_0x5d76ce)&&(await _0x462dc4['CYelP'](rm,_0x5d76ce,{'recursive':!![]}),console['log'](_0x37876b(0xa9)+_0x5499b3),_0xd40b33=!![]);}const _0x1f5b6b=join(getOpencodeConfigDir('project'),'opencode.json');await _0x462dc4['oyFsG'](removeOpencodePluginConfig,_0x1f5b6b)&&(console['log'](_0x462dc4['Qdftk']),_0xd40b33=!![]);const _0x1ed41c=_0x462dc4['NNJWU'](join,getOpencodeConfigDir(_0x37876b(0xb0)),'opencode.json');await _0x462dc4[_0x37876b(0xa0)](removeOpencodePluginConfig,_0x1ed41c)&&(console['log']('✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)'),_0xd40b33=!![]);const _0xfe31c7=await _0x462dc4[_0x37876b(0xad)](uninstallClaudePlugin);_0xfe31c7&&(console[_0x37876b(0xb9)](_0x462dc4['rYBSr']),_0xd40b33=!![]);const _0x30b928=await uninstallClaudePlugin(_0x462dc4['jPmLY']);_0x30b928&&(console['log'](_0x37876b(0xae)),_0xd40b33=!![]);const _0xd75f0b=await _0x462dc4['eHxar'](removeMarketplace);_0xd75f0b&&(console['log']('✓\x20Removed\x20trailhead\x20marketplace'),_0xd40b33=!![]),_0xd40b33?console['log'](_0x462dc4[_0x37876b(0xb1)]):console['log'](_0x37876b(0xa6));}