@ranger-testing/ranger-cli 2.2.1 โ†’ 2.2.3

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 _0x420c1b=_0x4a8a;(function(_0x2c9359,_0x48f500){const _0x5a59ee=_0x4a8a,_0x3680c3=_0x2c9359();while(!![]){try{const _0x2b503a=parseInt(_0x5a59ee(0x247))/0x1*(-parseInt(_0x5a59ee(0x1cb))/0x2)+-parseInt(_0x5a59ee(0x28d))/0x3+-parseInt(_0x5a59ee(0x26a))/0x4*(parseInt(_0x5a59ee(0x2a2))/0x5)+-parseInt(_0x5a59ee(0x227))/0x6*(parseInt(_0x5a59ee(0x1d4))/0x7)+parseInt(_0x5a59ee(0x2a1))/0x8*(parseInt(_0x5a59ee(0x24d))/0x9)+-parseInt(_0x5a59ee(0x2bb))/0xa+parseInt(_0x5a59ee(0x270))/0xb;if(_0x2b503a===_0x48f500)break;else _0x3680c3['push'](_0x3680c3['shift']());}catch(_0x303d5c){_0x3680c3['push'](_0x3680c3['shift']());}}}(_0x8e37,0x44c3e));import _0x59113a from'dotenv';import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x222865=_0x4a8a,_0x570a7d={'WFaNG':function(_0x463ca7,_0x29ef13){return _0x463ca7!==_0x29ef13;},'zaEwA':function(_0xb8d699,_0x35f7d6,_0x1d6de3){return _0xb8d699(_0x35f7d6,_0x1d6de3);},'AYBCZ':'.ranger'};let _0x370fb6=process[_0x222865(0x2c3)]();const _0x302a1b=parse(_0x370fb6)[_0x222865(0x2c4)];while(_0x570a7d['WFaNG'](_0x370fb6,_0x302a1b)){if(existsSync(_0x570a7d[_0x222865(0x225)](join,_0x370fb6,_0x570a7d['AYBCZ']))||existsSync(join(_0x370fb6,'.env')))return _0x370fb6;_0x370fb6=dirname(_0x370fb6);}return process[_0x222865(0x2c3)]();}_0x59113a[_0x420c1b(0x236)]({'path':join(findProjectRoot(),_0x420c1b(0x1a5))});import _0x2cd5f7 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';import{withTelemetry,getCurrentCollector}from'./commands/utils/telemetry.js';process['on'](_0x420c1b(0x2a3),async _0x4ac6a0=>{const _0x3d39c5=getCurrentCollector();_0x3d39c5&&await _0x3d39c5['trackCommandError'](_0x4ac6a0),process['exitCode']=0x1;});const rawArgs=process['argv'][_0x420c1b(0x2cb)](0x2),TOP_LEVEL_HELP=_0x420c1b(0x27c),PROFILE_HELP=_0x420c1b(0x24c),PROFILE_CONFIG_HELP='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\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\x20ci\x20header.Authorization\x20\x27${AUTH_TOKEN}\x27';function _0x8e37(){const _0x2e4934=['ranger\x20feature\x20create','gDJCO','678188yaJaAa','efVbk','CSQPO','JOBXQ','WuxPr','wyenW','16266030WOBUeR','Install\x20Ranger\x20skills','Usfav','ranger\x20config\x20set','profile-name','ranger\x20verify-feature','wQvyy','lztQT','current-branch','hook:disable','project','ranger\x20config\x20list','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.','SVZHK','zYVqh','UKZqQ','env-name','Name\x20of\x20the\x20profile\x20to\x20update','You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand','You\x20must\x20specify\x20a\x20profile\x20subcommand','AzaYU','ranger\x20feature\x20add-checklist-item','qiskI','oonKU','exit','NlAoC','Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','cdp-endpoint','positional','1632060PfxrDk','option','qfhSc','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','Twvrz','add\x20<profile-name>','yftZH','afIDh','force','skip-chromium','tlwFq','BeQMo','TWnXt','url','config\x20get','severity','RQHTZ','ranger\x20config\x20get','KHqpr','WcKII','9528SlnEWu','5MTirgR','unhandledRejection','ranger\x20env\x20update','ranger\x20setup','adirE','ranger\x20start','syBWF','name','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','kEJqs','setup-ci\x20<token>','ranger\x20profile\x20encrypt-auth','\x0aIssues:','DEXrp','--profile','hWUTw','skip-auth','delete\x20[id]','env\x20list','use\x20<env-name>','ranger\x20profile\x20config\x20set','\x20VERIFIED','OmJRW','qjCCb','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios','850490DNQtzV','BleXq','Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','Scenario\x20number\x20to\x20edit\x20(1-based)','notes','Scenario\x20description','ceanM','ivZQc','cwd','root','AOPwO','blocked','\x20FAILED','XKPny','incomplete','\x20is\x20now\x20','slice','message','IIRKJ','OPZPr','iuxer','oumJm','CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.','Config\x20value','key','Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a','wqdzt','CAxFK','kayHt','some','zUdyo','jLsof','scriptName','jiUZa','BVIls','Initialize\x20Ranger\x20in\x20your\x20project','Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version','get-review\x20[id]','LlJGw','Feature\x20review\x20ID','Btpbz','Documentation:\x0a','XLwzV','QLgZc','feature\x20get-feedback','crPPP','Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','CiGbv','xYwRz','list\x20<profile>','debug-address-comments','.env','CCWtb','token','WHYga','Unknown\x20command','ranger\x20auth\x20encrypt','pMcDQ','start-path','profile','PtkgF','model','offset','Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)','\x0aUnknown\x20command:\x20','Skip\x20Chromium\x20browser\x20installation','evaluation','ranger\x20list','\x20\x20https://docs.ranger.net\x0a','profile\x20config\x20set','SHVBW','setup\x20[token]','hook','EJYvK','edit-scenario\x20<description>','repeat','profile\x20config\x20list','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','NzSai','--scenario','Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project','lxBLj','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','limit','issues','pqRok','include-deleted','LIUVx','Unknown\x20error','2632yYwmYl','show\x20[id]','pIAuN','You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand','ulFkU','restore\x20<id>','MOSVd','demandCommand','feature\x20delete','481957iqHfqI','usage','CZXsc','JMpnb','Profile\x20name','miSwr','Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context','ranger\x20feature\x20resume','zJWtT','ALdaE','Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)','Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','update','profile\x20encrypt-auth','KQXOl','Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)','forEach','Get\x20a\x20config\x20value','xIHnL','ranger\x20profile\x20update','OZAZs','string','TUUnN','IJRqv','knSGx','profile\x20use','checklist','ZeHzd','EGJdL','session-id','CSEyo','--item','profile\x20config\x20unset','Feature\x20review\x20name','aXRvO','jzVEv','base-url','json','Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','QeTcO','scenario','qgSFa','task','get\x20<env>\x20<key>','You\x20must\x20specify\x20a\x20command','epilogue','boolean','Task\x20description\x20(defaults\x20to\x20scenario\x20description)','RAYYd','TXEmN','RGobq','value','fesam','trackCommandError','TJCPk','Enable\x20Ranger\x20hooks\x20for\x20this\x20session','resume','description','Ranger\x20API\x20token','opencode','bDeIO','Muvou','Feature\x20review\x20description','array','add-checklist-item\x20<description>','log','QymeM','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','env','KXsHW','SBVGi','Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review','enable','FeMzR','claude','error','Install\x20scope\x20for\x20skills','scope','YPfXs','ranger\x20add-scenario','encrypt-auth\x20<profile>','zaEwA','debug-outcome','36tKDlea','Name\x20of\x20the\x20environment','Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)','cnnPm','create\x20<name>','config\x20unset','kcJJd','OkhRC','Config\x20key\x20to\x20remove','Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','Hoarb','eZtWf','Scenario\x20index\x20(1-based)','WgyRH','Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','config','Qxykj','ranger\x20feature\x20list','encrypt\x20<profile>','YODVf','skillup','Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review','Name\x20of\x20the\x20profile','NWfuP','ranger\x20config\x20unset','DHKQT','Manage\x20profiles','partial','unset\x20<profile>\x20<key>','miBoS','yWTxX','ranger\x20feature\x20delete','302ILZYQO','status','Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios','update\x20<env-name>','YWevK','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','3114lcJxLS','eWHSt','command','setup-ci','zSfsm','start','set\x20<profile>\x20<key>\x20<value>','lYBKD','List\x20all\x20profiles','InLpf','number','kGKbR','hZnFn','list','CQpoB','Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','includes','ranger\x20add\x20env','OMwoT','List\x20all\x20feature\x20reviews','Number\x20of\x20feature\x20reviews\x20to\x20skip','Remove\x20a\x20config\x20value','ranger\x20profile\x20config\x20get','feature\x20restore','Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','profile\x20ls'];_0x8e37=function(){return _0x2e4934;};return _0x8e37();}function _0x4a8a(_0x2b6ca6,_0x16b621){_0x2b6ca6=_0x2b6ca6-0x184;const _0x8e37c4=_0x8e37();let _0x4a8ab9=_0x8e37c4[_0x2b6ca6];return _0x4a8ab9;}function warnRenamed(_0xde0018,_0x59f0c7){const _0x51e123=_0x420c1b;console['error']('\x0a'+_0xde0018+_0x51e123(0x2ca)+_0x59f0c7+'\x0a');}function argUsed(_0x2399c3){const _0x10b338=_0x420c1b;return rawArgs[_0x10b338(0x18f)](_0x342048=>_0x342048===_0x2399c3||_0x342048['startsWith'](_0x2399c3+'='));}function warnFlagRenamed(_0x5bed96,_0x1cb548,_0x474100){const _0x1d9cf5={'cmQTj':function(_0x208af9,_0x3b3012,_0x57ba00){return _0x208af9(_0x3b3012,_0x57ba00);}};argUsed(_0x1cb548)&&_0x1d9cf5['cmQTj'](warnRenamed,_0x5bed96+'\x20'+_0x1cb548,_0x5bed96+'\x20'+_0x474100);}async function runGoCommand(_0x40282b,_0xc0305a=![]){const _0x369628=_0x420c1b,_0x42478d={'XKPny':function(_0x25e495,_0x3b69cb){return _0x25e495+_0x3b69cb;},'BVIls':_0x369628(0x275),'KQXOl':'ranger\x20go','MiIXr':function(_0x8111d3,_0x45b616,_0x333813,_0x31adab){return _0x8111d3(_0x45b616,_0x333813,_0x31adab);},'bDeIO':'--env','BleXq':function(_0x4a4a81,_0x56391f,_0x5db2ae,_0x1ebe57){return _0x4a4a81(_0x56391f,_0x5db2ae,_0x1ebe57);},'ALdaE':'--task','masyK':_0x369628(0x1f3),'XEAfW':'flag','IJOVo':'default','euzuk':'start-path','CiGbv':'verified','CSEyo':_0x369628(0x2b7),'NzSai':function(_0x15b2e6,_0x2726bf){return _0x15b2e6===_0x2726bf;},'jLsof':'\x20INCOMPLETE','rfaFf':_0x369628(0x242),'KsNGh':'\x20PARTIAL','YcllH':_0x369628(0x2c7),'DOQMD':_0x369628(0x2ae),'FeMzR':function(_0x31d6b9,_0x589bb2){return _0x31d6b9===_0x589bb2;}};_0xc0305a&&warnRenamed(_0x42478d[_0x369628(0x194)],_0x42478d[_0x369628(0x1e2)]);_0x42478d['MiIXr'](warnFlagRenamed,'ranger\x20go',_0x42478d[_0x369628(0x210)],_0x369628(0x2b0)),_0x42478d[_0x369628(0x2bc)](warnFlagRenamed,_0x42478d['KQXOl'],_0x42478d[_0x369628(0x1dd)],'--notes'),warnFlagRenamed('ranger\x20go',_0x42478d['masyK'],'--scenario');const _0x2a6641=await loadRangerConfig(),_0x11c238=_0x40282b['model'],_0x814939=_0x2a6641[_0x369628(0x1af)],_0x2f577b=_0x11c238??_0x814939,_0x54d4ab=_0x11c238?_0x42478d['XEAfW']:_0x814939?_0x369628(0x236):_0x42478d['IJOVo'],_0x57a881=await verifyFeature({'featureId':_0x40282b['feature'],'profile':_0x40282b[_0x369628(0x1ad)]??_0x40282b['env'],'notes':_0x40282b['notes']??_0x40282b[_0x369628(0x1fe)],'scenario':_0x40282b[_0x369628(0x1fc)]??_0x40282b['item'],'startPath':_0x40282b[_0x42478d['euzuk']],'debugOutcome':_0x40282b[_0x369628(0x226)],'debugAddressComments':_0x40282b[_0x369628(0x1a4)],'headed':_0x40282b['headed'],'verifyModel':_0x2f577b,'verifyModelInput':_0x2f577b,'verifyModelSource':_0x54d4ab});console['log']('\x0a'+'='[_0x369628(0x1bd)](0x3c)),console['log'](_0x57a881['evaluation']===_0x42478d[_0x369628(0x1a1)]?_0x42478d[_0x369628(0x1f2)]:_0x42478d[_0x369628(0x1c0)](_0x57a881[_0x369628(0x1b4)],'incomplete')?_0x42478d[_0x369628(0x191)]:_0x57a881[_0x369628(0x1b4)]===_0x42478d['rfaFf']?_0x42478d['KsNGh']:_0x57a881['evaluation']===_0x369628(0x2c6)?'\x20BLOCKED':_0x42478d['YcllH']),console['log']('='[_0x369628(0x1bd)](0x3c)),console['log']('Summary:\x20'+_0x57a881['summary']),console['log']('Evaluation:\x20'+_0x57a881[_0x369628(0x1b4)]),console[_0x369628(0x215)]('Reason:\x20'+_0x57a881['evaluationReason']),_0x57a881[_0x369628(0x1c6)]?.['length']&&(console[_0x369628(0x215)](_0x42478d['DOQMD']),_0x57a881['issues'][_0x369628(0x1e4)]((_0x2cdf70,_0x20848a)=>{const _0xf21c84=_0x369628;console[_0xf21c84(0x215)]('\x0a'+_0x42478d[_0xf21c84(0x2c8)](_0x20848a,0x1)+'.\x20['+_0x2cdf70[_0xf21c84(0x29c)]+']\x20'+_0x2cdf70[_0xf21c84(0x20d)]);})),process['exit'](_0x42478d[_0x369628(0x21d)](_0x57a881[_0x369628(0x1b4)],'verified')?0x0:0x1);}_0x2cd5f7(process['argv']['slice'](0x2))[_0x420c1b(0x192)]('ranger')['usage'](TOP_LEVEL_HELP)['version'](getCurrentVersion())[_0x420c1b(0x24f)](_0x420c1b(0x22b),_0x420c1b(0x249),_0x17cbde=>{const _0x3831e8=_0x420c1b,_0x3de01e={'oumJm':_0x3831e8(0x20d),'iGONN':'string','crPPP':_0x3831e8(0x212),'TrojL':'scenario','miBoS':_0x3831e8(0x213),'EJYvK':_0x3831e8(0x235),'kcJJd':_0x3831e8(0x1ee)};return _0x17cbde['positional']('name',{'type':_0x3831e8(0x1e9),'description':'Feature\x20review\x20name','demandOption':!![]})[_0x3831e8(0x28e)](_0x3de01e[_0x3831e8(0x187)],{'type':_0x3de01e['iGONN'],'alias':'d','description':_0x3de01e[_0x3831e8(0x19f)]})['option'](_0x3de01e['TrojL'],{'type':_0x3de01e[_0x3831e8(0x244)],'alias':'c','description':_0x3de01e[_0x3831e8(0x1bb)]})[_0x3831e8(0x28e)](_0x3de01e[_0x3831e8(0x22d)],{'type':_0x3de01e['miBoS'],'hidden':!![]});},async _0x1d6aee=>{const _0x12ad71=_0x420c1b,_0x4effe9={'HLDGp':function(_0x3d29b5,_0x322967,_0x5dfddb,_0x255e4d){return _0x3d29b5(_0x322967,_0x5dfddb,_0x255e4d);},'SHVBW':'ranger\x20create'};_0x4effe9['HLDGp'](warnFlagRenamed,_0x4effe9[_0x12ad71(0x1b8)],'--checklist',_0x12ad71(0x1c1));const _0x2d18c2=_0x1d6aee[_0x12ad71(0x1fc)]||_0x1d6aee[_0x12ad71(0x1ee)];await withTelemetry('create',()=>featureCreate(_0x1d6aee['name'],{'description':_0x1d6aee['description'],'scenarios':_0x2d18c2}));})['command'](_0x420c1b(0x25a),_0x420c1b(0x261),_0x397088=>{const _0x281d52=_0x420c1b,_0x3176e1={'OPZPr':'current-branch','pxQFQ':'boolean','rSzEN':_0x281d52(0x1c4),'MWNpV':_0x281d52(0x257),'oAPMj':_0x281d52(0x2aa),'pIAuN':_0x281d52(0x1c8),'Muvou':'Include\x20soft-deleted\x20feature\x20reviews'};return _0x397088['option'](_0x3176e1[_0x281d52(0x185)],{'type':_0x3176e1['pxQFQ'],'description':_0x3176e1['rSzEN']})['option'](_0x281d52(0x1c5),{'type':_0x3176e1['MWNpV'],'alias':'l','description':_0x3176e1['oAPMj'],'default':0xa})[_0x281d52(0x28e)](_0x281d52(0x1b0),{'type':'number','alias':'o','description':'Number\x20of\x20feature\x20reviews\x20to\x20skip','default':0x0})['option'](_0x3176e1[_0x281d52(0x1cd)],{'type':'boolean','alias':'d','description':_0x3176e1[_0x281d52(0x211)],'default':![]});},async _0x2721ec=>{const _0x514957=_0x420c1b,_0x4d959d={'ksWGn':function(_0x4c360d,_0x48deac,_0x38f14f){return _0x4c360d(_0x48deac,_0x38f14f);}};await _0x4d959d['ksWGn'](withTelemetry,'list',()=>featureList({'currentBranch':_0x2721ec['current-branch'],'limit':_0x2721ec[_0x514957(0x1c5)],'offset':_0x2721ec['offset'],'includeDeleted':_0x2721ec['include-deleted']}));})['command'](_0x420c1b(0x1cc),_0x420c1b(0x1df),_0x11a266=>{const _0x1b5ac4=_0x420c1b;return _0x11a266['positional']('id',{'type':_0x1b5ac4(0x1e9),'description':_0x1b5ac4(0x199)});},async _0x511efc=>{const _0x5757d5={'Igboz':function(_0x31a331,_0x3310e3,_0x3bae91){return _0x31a331(_0x3310e3,_0x3bae91);}};await _0x5757d5['Igboz'](withTelemetry,'show',()=>featureShow(_0x511efc['id']));})['command']('resume\x20[id]',_0x420c1b(0x1da),_0x47b0e7=>{const _0xd44754=_0x420c1b;return _0x47b0e7['positional']('id',{'type':_0xd44754(0x1e9),'description':'Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)'});},async _0x15d8bc=>{const _0x33bbdd=_0x420c1b,_0x34e623={'aIMHM':_0x33bbdd(0x20c)};await withTelemetry(_0x34e623['aIMHM'],()=>featureResume(_0x15d8bc['id']));})[_0x420c1b(0x24f)]('add-scenario\x20<description>',_0x420c1b(0x21b),_0x9d3206=>{const _0x475820=_0x420c1b,_0x2bed9b={'Ftglm':'description','jzVEv':_0x475820(0x2c0),'GGXeo':'string'};return _0x9d3206['positional'](_0x2bed9b['Ftglm'],{'type':_0x475820(0x1e9),'description':_0x2bed9b[_0x475820(0x1f7)],'demandOption':!![]})[_0x475820(0x28e)]('id',{'type':_0x2bed9b['GGXeo'],'description':_0x475820(0x217)});},async _0x1add2c=>{const _0x3ada8b={'HnGnm':function(_0x1264e5,_0x5aea63,_0x48f575){return _0x1264e5(_0x5aea63,_0x48f575);},'JHmhp':'add-scenario'};await _0x3ada8b['HnGnm'](withTelemetry,_0x3ada8b['JHmhp'],()=>featureAddScenario(_0x1add2c['description'],_0x1add2c['id']));})['command'](_0x420c1b(0x1bc),_0x420c1b(0x23c),_0x2c82b9=>{const _0x3282d8=_0x420c1b,_0x41a5f1={'XLwzV':'description','CAxFK':_0x3282d8(0x257),'sSNPm':'string','wQvyy':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'};return _0x2c82b9['positional'](_0x41a5f1[_0x3282d8(0x19c)],{'type':'string','description':'New\x20scenario\x20description','demandOption':!![]})[_0x3282d8(0x28e)](_0x3282d8(0x1fc),{'type':_0x41a5f1[_0x3282d8(0x18d)],'description':_0x3282d8(0x2be),'demandOption':!![]})['option']('id',{'type':_0x41a5f1['sSNPm'],'description':_0x41a5f1[_0x3282d8(0x276)]});},async _0x539528=>{const _0x59aec6=_0x420c1b;await withTelemetry('edit-scenario',()=>featureEditScenario(_0x539528[_0x59aec6(0x20d)],{'id':_0x539528['id'],'scenario':_0x539528[_0x59aec6(0x1fc)]}));})['command']('report\x20[id]',_0x420c1b(0x1e3),_0x51e780=>{const _0x5c3a59=_0x420c1b,_0x1e5aee={'JhBHb':'exclude-scenario','NpBts':'array','RGobq':'Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)'};return _0x51e780['positional']('id',{'type':_0x5c3a59(0x1e9),'description':_0x5c3a59(0x199)})['option'](_0x1e5aee['JhBHb'],{'type':_0x1e5aee['NpBts'],'description':_0x1e5aee[_0x5c3a59(0x206)]})['option'](_0x5c3a59(0x1f9),{'type':_0x5c3a59(0x202),'description':'Output\x20structured\x20JSON\x20data\x20instead\x20of\x20markdown','default':![]});},async _0x86fee6=>{const _0x1d508a=_0x86fee6['exclude-scenario'],_0x1f05a5=_0x1d508a?_0x1d508a['map'](_0x4c69dc=>Number(_0x4c69dc)):undefined;await withTelemetry('report',()=>featureReportPrDescription(_0x86fee6['id'],{'excludeScenarios':_0x1f05a5,'json':_0x86fee6['json']}));})[_0x420c1b(0x24f)](_0x420c1b(0x197),_0x420c1b(0x2ba),_0x45a2c6=>{const _0x43e709={'UTlDK':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'};return _0x45a2c6['positional']('id',{'type':'string','description':_0x43e709['UTlDK']});},async _0x3d3d81=>{const _0x565845={'YuGLT':'get-review'};await withTelemetry(_0x565845['YuGLT'],()=>featureGetReview(_0x3d3d81['id']));})['command'](_0x420c1b(0x2b3),'Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x3a04cd=>{const _0x480d48=_0x420c1b;return _0x3a04cd[_0x480d48(0x28c)]('id',{'type':_0x480d48(0x1e9),'description':_0x480d48(0x199)});},async _0x3a4f06=>{const _0x33b895=_0x420c1b,_0x590c0c={'KXsHW':function(_0x25ad15,_0x11cac3,_0x16e377){return _0x25ad15(_0x11cac3,_0x16e377);}};await _0x590c0c[_0x33b895(0x219)](withTelemetry,'delete',()=>featureDelete(_0x3a4f06['id']));})['command'](_0x420c1b(0x1d0),'Restore\x20a\x20soft-deleted\x20feature\x20review',_0xea58c5=>{const _0x484174=_0x420c1b;return _0xea58c5[_0x484174(0x28c)]('id',{'type':_0x484174(0x1e9),'description':'Feature\x20review\x20ID\x20to\x20restore','demandOption':!![]});},async _0x1f4b8f=>{await withTelemetry('restore',()=>featureRestore(_0x1f4b8f['id']));})[_0x420c1b(0x24f)](_0x420c1b(0x1b9),_0x420c1b(0x195),_0x5c176d=>{const _0x5ab980=_0x420c1b,_0x160ebf={'NPjQq':_0x5ab980(0x296),'adirE':'boolean','PtkgF':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','xaQAe':'scope','qouVF':'string','kUJNz':'user','imZDE':_0x5ab980(0x27a),'OplTo':_0x5ab980(0x266),'tlwFq':_0x5ab980(0x1fa),'eWHSt':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','NKxaz':_0x5ab980(0x20f),'oQZMJ':'Skip\x20Claude\x20Code\x20plugin\x20+\x20skills\x20install\x20(for\x20OpenCode\x20users)'};return _0x5c176d['positional']('token',{'type':'string','description':'Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)'})[_0x5ab980(0x28e)](_0x160ebf['NPjQq'],{'type':_0x160ebf['adirE'],'description':_0x160ebf[_0x5ab980(0x1ae)],'default':![]})[_0x5ab980(0x28e)](_0x160ebf['xaQAe'],{'type':_0x160ebf['qouVF'],'choices':[_0x160ebf['kUJNz'],_0x160ebf['imZDE']],'description':_0x160ebf['OplTo']})[_0x5ab980(0x28e)](_0x5ab980(0x29a),{'type':_0x5ab980(0x1e9),'description':_0x160ebf[_0x5ab980(0x297)]})[_0x5ab980(0x28e)]('force',{'type':_0x160ebf[_0x5ab980(0x2a6)],'description':_0x160ebf[_0x5ab980(0x24e)],'default':![]})['option'](_0x160ebf['NKxaz'],{'type':'boolean','description':_0x160ebf['oQZMJ'],'default':![]});},async _0x4159fe=>{const _0x37ed85=_0x420c1b,_0x2035b9={'nszIO':function(_0xe55ed4,_0x3c5062,_0x384d76){return _0xe55ed4(_0x3c5062,_0x384d76);}};await _0x2035b9['nszIO'](withTelemetry,_0x37ed85(0x252),_0x1aecad=>start(_0x4159fe[_0x37ed85(0x1a7)],{'skipChromium':_0x4159fe['skip-chromium'],'scope':_0x4159fe['scope'],'url':_0x4159fe['url'],'force':_0x4159fe[_0x37ed85(0x295)],'opencode':_0x4159fe[_0x37ed85(0x20f)]},_0x1aecad));})['command'](_0x420c1b(0x2ac),'Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)',_0x3cfc06=>{const _0x492957=_0x420c1b,_0x4e1b9a={'PdUvB':'token','OMwoT':_0x492957(0x20e),'koQso':'CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)','ZkJWD':'base-url','WgyRH':_0x492957(0x1de),'Qxykj':_0x492957(0x296),'xYwRz':_0x492957(0x202),'Ihzsn':_0x492957(0x1b3)};return _0x3cfc06['positional'](_0x4e1b9a['PdUvB'],{'type':_0x492957(0x1e9),'description':_0x4e1b9a[_0x492957(0x260)],'demandOption':!![]})[_0x492957(0x28e)]('profile',{'type':'string','description':_0x4e1b9a['koQso']})[_0x492957(0x28e)](_0x4e1b9a['ZkJWD'],{'type':'string','description':_0x4e1b9a[_0x492957(0x234)]})['option'](_0x4e1b9a[_0x492957(0x237)],{'type':_0x4e1b9a[_0x492957(0x1a2)],'description':_0x4e1b9a['Ihzsn'],'default':![]});},async _0x6b008f=>{const _0x20ea01=_0x420c1b;await withTelemetry(_0x20ea01(0x250),_0x58801a=>setupCi(_0x6b008f[_0x20ea01(0x1a7)],{'profile':_0x6b008f[_0x20ea01(0x1ad)],'baseUrl':_0x6b008f[_0x20ea01(0x1f8)],'skipChromium':_0x6b008f[_0x20ea01(0x296)]},_0x58801a));})['command']('login',_0x420c1b(0x1b1),()=>{},async()=>{const _0x655e1f={'XaevC':function(_0x3e9ba1,_0x3c571d,_0x378cc1){return _0x3e9ba1(_0x3c571d,_0x378cc1);},'yYtBu':'login'};await _0x655e1f['XaevC'](withTelemetry,_0x655e1f['yYtBu'],()=>login());})[_0x420c1b(0x24f)]('skillup',_0x420c1b(0x271),_0x1bbab6=>{const _0x9039f=_0x420c1b,_0xa4f65a={'wyenW':'Install\x20skills\x20for\x20OpenCode','QcMVv':'string','OmJRW':'user','UKZqQ':'project','baash':_0x9039f(0x220)};return _0x1bbab6[_0x9039f(0x28e)]('opencode',{'type':'boolean','description':_0xa4f65a[_0x9039f(0x26f)],'default':![]})['option']('scope',{'type':_0xa4f65a['QcMVv'],'choices':[_0xa4f65a[_0x9039f(0x2b8)],_0xa4f65a[_0x9039f(0x27f)]],'description':_0xa4f65a['baash']});},async _0x1b744b=>{const _0x10870c=_0x420c1b,_0x190adf={'gDJCO':function(_0x525924,_0x32d802){return _0x525924(_0x32d802);},'TXEmN':_0x10870c(0x23b)},_0x5058fb=_0x190adf[_0x10870c(0x269)](Boolean,_0x1b744b['opencode']);await withTelemetry(_0x190adf[_0x10870c(0x205)],()=>skillup({'autoInstall':_0x1b744b['scope'],'platform':_0x5058fb?_0x10870c(0x20f):_0x10870c(0x21e)}));})[_0x420c1b(0x24f)]('clean',_0x420c1b(0x1c2),()=>{},async()=>{const _0xd423f0=_0x420c1b,_0x3d8760={'DEXrp':function(_0x4af42c,_0x1dad61,_0x48c4c9){return _0x4af42c(_0x1dad61,_0x48c4c9);}};await _0x3d8760[_0xd423f0(0x2af)](withTelemetry,'clean',()=>clean());})['command']('profile',_0x420c1b(0x241),_0x4fbfe1=>{const _0x3806ed=_0x420c1b,_0x3a42af={'kGKbR':_0x3806ed(0x1e9),'qgSFa':_0x3806ed(0x202),'yftZH':_0x3806ed(0x2b2),'sdchX':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','qiskI':'url','OVWOg':_0x3806ed(0x1bf),'BMhbq':_0x3806ed(0x188),'AMEIJ':'profile\x20add','nfZJy':function(_0x594ac6,_0x413499){return _0x594ac6(_0x413499);},'QeTcO':_0x3806ed(0x274),'AAdBI':_0x3806ed(0x23d),'AOPwO':function(_0x36f789,_0x7d5395,_0x255248){return _0x36f789(_0x7d5395,_0x255248);},'fesam':_0x3806ed(0x1ad),'GaEpn':function(_0x4b1c65,_0x11bf01,_0x1d465d){return _0x4b1c65(_0x11bf01,_0x1d465d);},'PLPOC':'key','YODVf':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','EmxUD':_0x3806ed(0x207),'KHqpr':'Config\x20value','KBDyf':_0x3806ed(0x253),'njZZx':'List\x20all\x20config\x20for\x20a\x20profile','gOcyo':_0x3806ed(0x263),'zYVqh':_0x3806ed(0x292),'JOBXQ':'use\x20<profile-name>','YPfXs':'Switch\x20to\x20using\x20a\x20specific\x20profile','nUWdl':_0x3806ed(0x25d),'aXRvO':_0x3806ed(0x255),'miSwr':'update\x20<profile-name>','LfnJm':'Manage\x20profile\x20configuration'};return _0x4fbfe1[_0x3806ed(0x1d5)](PROFILE_HELP)[_0x3806ed(0x24f)](_0x3a42af[_0x3806ed(0x27e)],'Add\x20profile\x20configuration',_0x340f7b=>{const _0x21099b=_0x3806ed;return _0x340f7b[_0x21099b(0x28c)](_0x21099b(0x274),{'type':_0x3a42af[_0x21099b(0x258)],'description':'Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','demandOption':!![]})['option']('ci',{'type':_0x3a42af[_0x21099b(0x1fd)],'description':'Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','default':![]})['option'](_0x3a42af[_0x21099b(0x293)],{'type':_0x3a42af[_0x21099b(0x1fd)],'description':_0x3a42af['sdchX'],'default':![]})[_0x21099b(0x28e)](_0x3a42af[_0x21099b(0x286)],{'type':_0x3a42af[_0x21099b(0x258)],'description':'Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)'})[_0x21099b(0x28e)]('force',{'type':'boolean','description':_0x3a42af['OVWOg'],'default':![]})[_0x21099b(0x28e)]('cdp-endpoint',{'type':_0x3a42af['kGKbR'],'description':_0x3a42af['BMhbq']});},async _0x10b84c=>{const _0x3828b7=_0x3806ed;await withTelemetry(_0x3a42af['AMEIJ'],_0x847d7a=>addEnv(_0x10b84c['profile-name'],{'ci':_0x10b84c['ci'],'skipAuth':_0x10b84c[_0x3828b7(0x2b2)],'url':_0x10b84c['url'],'force':_0x10b84c['force'],'cdpEndpoint':_0x10b84c[_0x3828b7(0x28b)]},_0x847d7a),{'isElectron':_0x3a42af['nfZJy'](Boolean,_0x10b84c['cdp-endpoint'])});})['command'](_0x3a42af[_0x3806ed(0x26d)],_0x3a42af[_0x3806ed(0x222)],_0x2130f7=>{const _0x1b9579=_0x3806ed;return _0x2130f7['positional'](_0x3a42af[_0x1b9579(0x1fb)],{'type':_0x3a42af[_0x1b9579(0x258)],'description':_0x3a42af['AAdBI'],'demandOption':!![]});},async _0x21113f=>{const _0x4d2faa=_0x3806ed;await _0x3a42af[_0x4d2faa(0x2c5)](withTelemetry,_0x4d2faa(0x1ed),()=>useEnv(_0x21113f[_0x4d2faa(0x274)]));})[_0x3806ed(0x24f)](_0x3806ed(0x224),_0x3a42af['nUWdl'],_0x3cd43b=>{const _0xeba7cc=_0x3806ed;return _0x3cd43b['positional'](_0x3a42af[_0xeba7cc(0x208)],{'type':_0x3a42af['kGKbR'],'description':'Profile\x20name','demandOption':!![]});},async _0x30e68f=>{const _0x5b0a2d=_0x3806ed;await _0x3a42af[_0x5b0a2d(0x2c5)](withTelemetry,_0x5b0a2d(0x1e1),()=>authEncrypt(_0x30e68f['profile']));})[_0x3806ed(0x24f)]('ls',_0x3a42af[_0x3806ed(0x1f6)],()=>{},async()=>{const _0x52f372=_0x3806ed;await _0x3a42af['GaEpn'](withTelemetry,_0x52f372(0x267),()=>envList());})['command'](_0x3a42af[_0x3806ed(0x1d9)],'Update\x20authentication\x20for\x20an\x20existing\x20profile',_0x17c0b5=>{const _0x47dc8c=_0x3806ed;return _0x17c0b5[_0x47dc8c(0x28c)](_0x3a42af[_0x47dc8c(0x1fb)],{'type':_0x47dc8c(0x1e9),'description':_0x47dc8c(0x281),'demandOption':!![]});},async _0x464e62=>{const _0x589a37=_0x3806ed;await withTelemetry('profile\x20update',_0x2af137=>updateEnv(_0x464e62[_0x589a37(0x274)],_0x2af137));})['command'](_0x3806ed(0x236),_0x3a42af['LfnJm'],_0x1992ed=>{const _0x5dbc41=_0x3806ed,_0x32f120={'RQHTZ':_0x3a42af[_0x5dbc41(0x208)],'ObQoq':_0x3a42af[_0x5dbc41(0x23a)],'bwoMm':_0x3a42af['EmxUD'],'kEJqs':_0x3a42af[_0x5dbc41(0x29f)],'OAVsn':_0x5dbc41(0x1be)};return _0x1992ed[_0x5dbc41(0x1d5)](PROFILE_CONFIG_HELP)[_0x5dbc41(0x24f)](_0x3a42af['KBDyf'],'Set\x20a\x20config\x20value',_0xbe2677=>{const _0x2c343d=_0x5dbc41;return _0xbe2677[_0x2c343d(0x28c)](_0x32f120['RQHTZ'],{'type':_0x2c343d(0x1e9),'description':_0x2c343d(0x1d8),'demandOption':!![]})['positional']('key',{'type':'string','description':_0x32f120['ObQoq'],'demandOption':!![]})['positional'](_0x32f120['bwoMm'],{'type':'string','description':_0x32f120[_0x2c343d(0x2ab)],'demandOption':!![]});},async _0x5158aa=>{const _0x2d4b52=_0x5dbc41;await withTelemetry(_0x2d4b52(0x1b7),()=>configSet(_0x5158aa[_0x2d4b52(0x1ad)],_0x5158aa['key'],_0x5158aa['value']));})[_0x5dbc41(0x24f)]('get\x20<profile>\x20<key>',_0x5dbc41(0x1e5),_0x361959=>{const _0x264d66=_0x5dbc41;return _0x361959['positional'](_0x3a42af[_0x264d66(0x208)],{'type':_0x3a42af['kGKbR'],'description':'Profile\x20name','demandOption':!![]})[_0x264d66(0x28c)](_0x3a42af['PLPOC'],{'type':_0x3a42af[_0x264d66(0x258)],'description':'Config\x20key','demandOption':!![]});},async _0x14a7f0=>{const _0x59ae82=_0x5dbc41;await withTelemetry('profile\x20config\x20get',()=>configGet(_0x14a7f0[_0x59ae82(0x1ad)],_0x14a7f0['key']));})['command'](_0x5dbc41(0x1a3),_0x3a42af['njZZx'],_0x4fc241=>{const _0x3ada99=_0x5dbc41;return _0x4fc241[_0x3ada99(0x28c)](_0x32f120[_0x3ada99(0x29d)],{'type':_0x3ada99(0x1e9),'description':'Profile\x20name','demandOption':!![]});},async _0x36b666=>{const _0x434075=_0x5dbc41;await withTelemetry(_0x32f120['OAVsn'],()=>configList(_0x36b666[_0x434075(0x1ad)]));})['command'](_0x5dbc41(0x243),_0x3a42af['gOcyo'],_0x261d42=>{const _0x1badc7=_0x5dbc41;return _0x261d42['positional'](_0x3a42af[_0x1badc7(0x208)],{'type':'string','description':'Profile\x20name','demandOption':!![]})['positional'](_0x1badc7(0x18a),{'type':'string','description':_0x1badc7(0x22f),'demandOption':!![]});},async _0x131fbf=>{const _0x12f8dd=_0x5dbc41;await withTelemetry(_0x12f8dd(0x1f4),()=>configUnset(_0x131fbf['profile'],_0x131fbf[_0x12f8dd(0x18a)]));})['demandCommand'](0x1,_0x5dbc41(0x1ce));})['demandCommand'](0x1,_0x3806ed(0x283));})[_0x420c1b(0x24f)]('status','Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)',()=>{},async()=>{const _0x2b36bd=_0x420c1b,_0x356928={'eGfPh':function(_0x5938ed,_0x4752f5,_0x363546){return _0x5938ed(_0x4752f5,_0x363546);},'dhnKU':_0x2b36bd(0x248)};await _0x356928['eGfPh'](withTelemetry,_0x356928['dhnKU'],()=>status());})['command']('update',_0x420c1b(0x196),()=>{},async()=>{const _0x3410a1=_0x420c1b;await withTelemetry(_0x3410a1(0x1e0),()=>update());})['command']('go','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)',_0x209369=>{const _0x30c3c2=_0x420c1b,_0x12df4f={'LlJGw':_0x30c3c2(0x1ad),'kayHt':_0x30c3c2(0x1e9),'MCeAy':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','NlAoC':'scenario','pKvZu':'Scenario\x20index\x20(1-based)','NWfuP':'start-path','pMcDQ':'Model\x20to\x20use\x20for\x20verification\x20(e.g.,\x20opus,\x20sonnet,\x20claude-opus-4-6,\x20anthropic.claude-opus-4-6-v1)','LIUVx':'headed','oonKU':'debug-outcome','MGDiO':'verified','qKjsQ':'blocked','KkNlu':'failed','PGzhQ':_0x30c3c2(0x2c9),'HDhRz':'item'};return _0x209369['option']('feature',{'type':_0x30c3c2(0x1e9),'description':'Optional\x20feature\x20ID'})['option'](_0x12df4f[_0x30c3c2(0x198)],{'type':_0x12df4f[_0x30c3c2(0x18e)],'description':_0x12df4f['MCeAy']})['option']('notes',{'type':_0x30c3c2(0x1e9),'description':_0x30c3c2(0x229)})[_0x30c3c2(0x28e)](_0x12df4f[_0x30c3c2(0x289)],{'type':_0x30c3c2(0x257),'description':_0x12df4f['pKvZu']})['option'](_0x12df4f[_0x30c3c2(0x23e)],{'type':'string','description':_0x30c3c2(0x1a0)})[_0x30c3c2(0x28e)](_0x30c3c2(0x1af),{'type':_0x30c3c2(0x1e9),'description':_0x12df4f[_0x30c3c2(0x1ab)]})['option'](_0x12df4f[_0x30c3c2(0x1c9)],{'type':'boolean','description':'Force\x20headed\x20browser\x20for\x20this\x20run\x20only\x20(does\x20not\x20change\x20profile\x20config)','default':![]})[_0x30c3c2(0x28e)](_0x12df4f[_0x30c3c2(0x287)],{'type':_0x30c3c2(0x1e9),'hidden':!![],'choices':[_0x12df4f['MGDiO'],'partial',_0x12df4f['qKjsQ'],_0x12df4f['KkNlu'],_0x12df4f['PGzhQ']]})['option']('debug-address-comments',{'type':_0x30c3c2(0x202),'hidden':!![]})[_0x30c3c2(0x28e)]('env',{'type':'string','hidden':!![]})['option']('task',{'type':'string','hidden':!![]})['option'](_0x12df4f['HDhRz'],{'type':_0x30c3c2(0x257),'hidden':!![]});},async _0x2ccc32=>{const _0x1d4950=_0x420c1b,_0x1ee5ac={'cnnPm':function(_0x2eb978,_0x57c292){return _0x2eb978(_0x57c292);}};await _0x1ee5ac[_0x1d4950(0x22a)](runGoCommand,_0x2ccc32);})['command']('auth',![],_0x318ab3=>{const _0x323c02=_0x420c1b,_0x16a2f4={'lxBLj':'profile','IJRqv':function(_0x2f2842,_0x258caa,_0x555aba){return _0x2f2842(_0x258caa,_0x555aba);}};return _0x318ab3['command'](_0x323c02(0x239),![],_0x58a2a8=>{const _0x277927=_0x323c02;return _0x58a2a8[_0x277927(0x28c)](_0x16a2f4[_0x277927(0x1c3)],{'type':'string','description':'Profile\x20name','demandOption':!![]});},async _0x5647c5=>{const _0x24ec32=_0x323c02;_0x16a2f4[_0x24ec32(0x1eb)](warnRenamed,_0x24ec32(0x1aa),_0x24ec32(0x2ad)),await authEncrypt(_0x5647c5[_0x24ec32(0x1ad)]);})['demandCommand'](0x1,'You\x20must\x20specify\x20an\x20auth\x20subcommand');},()=>{})['command']('start\x20[token]',![],_0x20263d=>{const _0x28e8d2=_0x420c1b,_0x41c766={'nhYXH':_0x28e8d2(0x1a7),'zUdyo':'string','TJCPk':_0x28e8d2(0x25c),'TTsiG':'skip-chromium','IIRKJ':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','OkhRC':_0x28e8d2(0x221),'OGxdC':'url','fjTDK':_0x28e8d2(0x295),'qjCCb':'boolean'};return _0x20263d[_0x28e8d2(0x28c)](_0x41c766['nhYXH'],{'type':_0x41c766[_0x28e8d2(0x190)],'description':_0x41c766[_0x28e8d2(0x20a)]})[_0x28e8d2(0x28e)](_0x41c766['TTsiG'],{'type':'boolean','description':_0x41c766[_0x28e8d2(0x184)],'default':![]})['option'](_0x41c766[_0x28e8d2(0x22e)],{'type':_0x41c766['zUdyo'],'choices':['user',_0x28e8d2(0x27a)],'description':_0x28e8d2(0x266)})['option'](_0x41c766['OGxdC'],{'type':'string','description':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)'})['option'](_0x41c766['fjTDK'],{'type':_0x41c766[_0x28e8d2(0x2b9)],'description':_0x28e8d2(0x1bf),'default':![]});},async _0x5697b8=>{const _0x487a2b=_0x420c1b;warnRenamed(_0x487a2b(0x2a7),_0x487a2b(0x2a5)),await withTelemetry('start',_0x4613ce=>start(_0x5697b8['token'],{'skipChromium':_0x5697b8[_0x487a2b(0x296)],'scope':_0x5697b8['scope'],'url':_0x5697b8[_0x487a2b(0x29a)],'force':_0x5697b8[_0x487a2b(0x295)]},_0x4613ce));})['command']('verify-feature',![],_0x3800b=>{const _0x190238=_0x420c1b,_0x162f28={'PVlYL':_0x190238(0x203),'obENP':_0x190238(0x257),'UXJZf':_0x190238(0x1e9),'lYBKD':'partial','MOSVd':_0x190238(0x2c6),'xFJxv':_0x190238(0x2c9)};return _0x3800b['option'](_0x190238(0x218),{'type':_0x190238(0x1e9),'description':_0x190238(0x230)})[_0x190238(0x28e)](_0x190238(0x1fe),{'type':_0x190238(0x1e9),'description':_0x162f28['PVlYL']})['option']('item',{'type':_0x162f28['obENP'],'description':_0x190238(0x233)})[_0x190238(0x28e)]('profile',{'type':_0x190238(0x1e9),'hidden':!![]})['option'](_0x190238(0x2bf),{'type':_0x190238(0x1e9),'hidden':!![]})['option']('scenario',{'type':'number','hidden':!![]})['option'](_0x190238(0x1ac),{'type':'string','description':_0x190238(0x1a0)})['option'](_0x190238(0x1af),{'type':_0x162f28['UXJZf'],'hidden':!![]})['option']('headed',{'type':_0x190238(0x202),'hidden':!![],'default':![]})[_0x190238(0x28e)](_0x190238(0x226),{'type':_0x190238(0x1e9),'hidden':!![],'choices':['verified',_0x162f28[_0x190238(0x254)],_0x162f28[_0x190238(0x1d1)],'failed',_0x162f28['xFJxv']]});},async _0x1ff3be=>{const _0x566001=_0x420c1b,_0x500f35={'wqdzt':function(_0x456e29,_0x773f48,_0xdf168b){return _0x456e29(_0x773f48,_0xdf168b);}};await _0x500f35[_0x566001(0x18c)](runGoCommand,_0x1ff3be,!![]);})['command']('add\x20env\x20<env-name>',![],_0x2ad758=>{const _0x141ed5=_0x420c1b,_0x4a87ef={'QYNpB':'Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','hZnFn':'boolean','JMpnb':_0x141ed5(0x2b2),'xJAyq':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)'};return _0x2ad758[_0x141ed5(0x28c)]('env-name',{'type':'string','description':_0x4a87ef['QYNpB'],'demandOption':!![]})[_0x141ed5(0x28e)]('ci',{'type':_0x4a87ef[_0x141ed5(0x259)],'description':'Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','default':![]})['option'](_0x4a87ef[_0x141ed5(0x1d7)],{'type':_0x4a87ef[_0x141ed5(0x259)],'description':_0x4a87ef['xJAyq'],'default':![]});},async _0x36fabb=>{const _0x11ee6a=_0x420c1b,_0x1dd92a={'BWOCF':_0x11ee6a(0x25f),'BeQMo':'ranger\x20profile\x20add'};warnRenamed(_0x1dd92a['BWOCF'],_0x1dd92a[_0x11ee6a(0x298)]),await withTelemetry('add\x20env',_0x21a551=>addEnv(_0x36fabb['env-name'],{'ci':_0x36fabb['ci'],'skipAuth':_0x36fabb['skip-auth']},_0x21a551));})['command'](_0x420c1b(0x2b5),![],_0x431342=>{const _0x1468b5=_0x420c1b,_0x3d4408={'EGJdL':_0x1468b5(0x280)};return _0x431342[_0x1468b5(0x28c)](_0x3d4408[_0x1468b5(0x1f0)],{'type':'string','description':_0x1468b5(0x228),'demandOption':!![]});},async _0x56d792=>{const _0x2b1f72={'VXeUK':'use'};warnRenamed('ranger\x20use','ranger\x20profile\x20use'),await withTelemetry(_0x2b1f72['VXeUK'],()=>useEnv(_0x56d792['env-name']));})[_0x420c1b(0x24f)]('config',![],_0x6887ec=>{const _0xb802e6=_0x420c1b,_0x299caf={'qfhSc':_0xb802e6(0x218),'QymeM':'Environment\x20name','Btpbz':'key','ivZQc':'string','TWnXt':function(_0xaea0f4,_0x55ce17,_0x1ec269){return _0xaea0f4(_0x55ce17,_0x1ec269);},'ZeHzd':_0xb802e6(0x2b6),'Hoarb':'config\x20set','FOAtV':_0xb802e6(0x29e),'zSfsm':_0xb802e6(0x29b),'iuxer':function(_0x117168,_0x3b19ec,_0x42b82d){return _0x117168(_0x3b19ec,_0x42b82d);},'wVENR':_0xb802e6(0x27b),'lztQT':function(_0xf39c40,_0x3b86fc,_0x4f5206){return _0xf39c40(_0x3b86fc,_0x4f5206);},'CZXsc':'config\x20list','YWevK':_0xb802e6(0x22f),'JyROc':function(_0x24b79d,_0x4883ed,_0x3f961b){return _0x24b79d(_0x4883ed,_0x3f961b);},'MHssZ':'ranger\x20profile\x20config\x20unset','eNpJB':_0xb802e6(0x1ff),'WuxPr':'unset\x20<env>\x20<key>','LzWXP':'You\x20must\x20specify\x20a\x20config\x20subcommand'};return _0x6887ec[_0xb802e6(0x24f)]('set\x20<env>\x20<key>\x20<value>',![],_0x27b5c6=>{const _0x59df52=_0xb802e6;return _0x27b5c6[_0x59df52(0x28c)](_0x299caf[_0x59df52(0x28f)],{'type':'string','description':_0x299caf[_0x59df52(0x216)],'demandOption':!![]})[_0x59df52(0x28c)](_0x299caf[_0x59df52(0x19a)],{'type':'string','description':_0x59df52(0x2bd),'demandOption':!![]})[_0x59df52(0x28c)](_0x59df52(0x207),{'type':_0x299caf['ivZQc'],'description':_0x59df52(0x189),'demandOption':!![]});},async _0x34df3b=>{const _0x45e427=_0xb802e6;_0x299caf['TWnXt'](warnRenamed,_0x45e427(0x273),_0x299caf[_0x45e427(0x1ef)]),await withTelemetry(_0x299caf[_0x45e427(0x231)],()=>configSet(_0x34df3b['env'],_0x34df3b['key'],_0x34df3b['value']));})['command'](_0x299caf['eNpJB'],![],_0x1a05e4=>{const _0xc1a350=_0xb802e6;return _0x1a05e4[_0xc1a350(0x28c)]('env',{'type':_0x299caf[_0xc1a350(0x2c2)],'description':'Environment\x20name','demandOption':!![]})[_0xc1a350(0x28c)]('key',{'type':_0x299caf[_0xc1a350(0x2c2)],'description':'Config\x20key','demandOption':!![]});},async _0x430bd6=>{const _0x3b8d30=_0xb802e6;_0x299caf[_0x3b8d30(0x299)](warnRenamed,_0x299caf['FOAtV'],_0x3b8d30(0x264)),await withTelemetry(_0x299caf[_0x3b8d30(0x251)],()=>configGet(_0x430bd6['env'],_0x430bd6[_0x3b8d30(0x18a)]));})['command']('list\x20<env>',![],_0x50c218=>{const _0x5255f0=_0xb802e6;return _0x50c218['positional']('env',{'type':_0x299caf[_0x5255f0(0x2c2)],'description':'Environment\x20name','demandOption':!![]});},async _0xfb847f=>{const _0x1aa7ee=_0xb802e6;_0x299caf[_0x1aa7ee(0x186)](warnRenamed,_0x299caf['wVENR'],'ranger\x20profile\x20config\x20list'),await _0x299caf[_0x1aa7ee(0x277)](withTelemetry,_0x299caf[_0x1aa7ee(0x1d6)],()=>configList(_0xfb847f[_0x1aa7ee(0x218)]));})[_0xb802e6(0x24f)](_0x299caf[_0xb802e6(0x26e)],![],_0x1f6eea=>{const _0x58ec7b=_0xb802e6;return _0x1f6eea['positional']('env',{'type':_0x299caf[_0x58ec7b(0x2c2)],'description':_0x299caf['QymeM'],'demandOption':!![]})['positional'](_0x299caf['Btpbz'],{'type':_0x299caf[_0x58ec7b(0x2c2)],'description':_0x299caf[_0x58ec7b(0x24b)],'demandOption':!![]});},async _0x598102=>{const _0x20a0f3=_0xb802e6;_0x299caf['JyROc'](warnRenamed,_0x20a0f3(0x23f),_0x299caf['MHssZ']),await withTelemetry(_0x20a0f3(0x22c),()=>configUnset(_0x598102['env'],_0x598102['key']));})['demandCommand'](0x1,_0x299caf['LzWXP']);})['command'](_0x420c1b(0x218),![],_0x24d8d2=>{const _0x501607=_0x420c1b,_0x2c8e82={'BoZPr':function(_0x1142bd,_0x2e562e,_0x5aebaa){return _0x1142bd(_0x2e562e,_0x5aebaa);},'jiUZa':'ranger\x20env\x20ls','efVbk':_0x501607(0x1e9),'ZHCWz':_0x501607(0x1e7),'SVZHK':'env\x20update','kTlYq':_0x501607(0x24a)};return _0x24d8d2[_0x501607(0x24f)]('ls',![],()=>{},async()=>{const _0x58de89=_0x501607;_0x2c8e82['BoZPr'](warnRenamed,_0x2c8e82[_0x58de89(0x193)],'ranger\x20profile\x20ls'),await withTelemetry(_0x58de89(0x2b4),()=>envList());})[_0x501607(0x24f)](_0x2c8e82['kTlYq'],![],_0x486b37=>{const _0x1ffa16=_0x501607;return _0x486b37['positional']('env-name',{'type':_0x2c8e82[_0x1ffa16(0x26b)],'description':'Name\x20of\x20the\x20environment\x20to\x20update','demandOption':!![]});},async _0x10ef82=>{const _0x50f43a=_0x501607;_0x2c8e82['BoZPr'](warnRenamed,_0x50f43a(0x2a4),_0x2c8e82['ZHCWz']),await withTelemetry(_0x2c8e82[_0x50f43a(0x27d)],_0xc1454f=>updateEnv(_0x10ef82[_0x50f43a(0x280)],_0xc1454f));})['demandCommand'](0x1,'You\x20must\x20specify\x20an\x20env\x20subcommand');})[_0x420c1b(0x24f)]('feature',![],_0xbbeeae=>{const _0x4e339f=_0x420c1b,_0x20fb0c={'bdyZi':_0x4e339f(0x1f5),'WcKII':_0x4e339f(0x20d),'ulwny':_0x4e339f(0x1e9),'Twvrz':'checklist','InLpf':_0x4e339f(0x213),'QLgZc':function(_0x4006a6,_0x2c5db8,_0x283a35){return _0x4006a6(_0x2c5db8,_0x283a35);},'dPcRr':'ranger\x20create','AbvEv':_0x4e339f(0x1c1),'afIDh':function(_0x2fd8d1,_0xe05049,_0x5501da){return _0x2fd8d1(_0xe05049,_0x5501da);},'eZtWf':_0x4e339f(0x278),'zJWtT':_0x4e339f(0x202),'BUzTN':_0x4e339f(0x1c4),'OZAZs':_0x4e339f(0x257),'JIhCY':_0x4e339f(0x1b0),'yWTxX':_0x4e339f(0x238),'ZPaEJ':_0x4e339f(0x1b5),'tMiOq':'ranger\x20feature\x20show','CCWtb':function(_0x5e4b34,_0x5ce16b,_0x476723){return _0x5e4b34(_0x5ce16b,_0x476723);},'RADeb':_0x4e339f(0x290),'qApJY':'feature\x20resume','ulFkU':_0x4e339f(0x2c0),'SBVGi':function(_0x15b594,_0x285d92,_0x5d03e6){return _0x15b594(_0x285d92,_0x5d03e6);},'xIHnL':_0x4e339f(0x285),'pqRok':_0x4e339f(0x199),'BvEbe':function(_0x594764,_0x549ed0,_0x38f005){return _0x594764(_0x549ed0,_0x38f005);},'XSUmv':function(_0x5b274c,_0x148086,_0x2bc9b6){return _0x5b274c(_0x148086,_0x2bc9b6);},'CSQPO':_0x4e339f(0x22b),'UtyWD':'list','iyYfS':_0x4e339f(0x1d0),'ceanM':_0x4e339f(0x282)};return _0xbbeeae['command'](_0x20fb0c[_0x4e339f(0x26c)],![],_0x3abbb1=>{const _0x4bc351=_0x4e339f;return _0x3abbb1[_0x4bc351(0x28c)]('name',{'type':'string','description':_0x20fb0c['bdyZi'],'demandOption':!![]})[_0x4bc351(0x28e)](_0x20fb0c[_0x4bc351(0x2a0)],{'type':_0x20fb0c['ulwny'],'alias':'d','description':_0x4bc351(0x212)})[_0x4bc351(0x28e)](_0x20fb0c[_0x4bc351(0x291)],{'type':_0x20fb0c['InLpf'],'alias':'c','description':_0x4bc351(0x235)})['option'](_0x4bc351(0x1fc),{'type':_0x20fb0c[_0x4bc351(0x256)],'hidden':!![]});},async _0x51268d=>{const _0x466645=_0x4e339f;_0x20fb0c[_0x466645(0x19d)](warnRenamed,_0x466645(0x268),_0x20fb0c['dPcRr']),warnFlagRenamed(_0x20fb0c['dPcRr'],'--checklist',_0x20fb0c['AbvEv']);const _0x2880c0=_0x51268d['scenario']||_0x51268d[_0x466645(0x1ee)];await _0x20fb0c[_0x466645(0x294)](withTelemetry,'feature\x20create',()=>featureCreate(_0x51268d['name'],{'description':_0x51268d[_0x466645(0x20d)],'scenarios':_0x2880c0}));})['command'](_0x20fb0c['UtyWD'],![],_0x35b488=>{const _0x56ae54=_0x4e339f;return _0x35b488['option'](_0x20fb0c[_0x56ae54(0x232)],{'type':_0x20fb0c[_0x56ae54(0x1dc)],'description':_0x20fb0c['BUzTN']})['option']('limit',{'type':_0x20fb0c[_0x56ae54(0x1e8)],'alias':'l','description':'Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','default':0xa})['option'](_0x20fb0c['JIhCY'],{'type':_0x20fb0c['OZAZs'],'alias':'o','description':_0x56ae54(0x262),'default':0x0})['option']('include-deleted',{'type':_0x20fb0c['zJWtT'],'alias':'d','description':'Include\x20soft-deleted\x20feature\x20reviews','default':![]});},async _0x35364d=>{const _0x319ce8=_0x4e339f;warnRenamed(_0x20fb0c[_0x319ce8(0x245)],_0x20fb0c['ZPaEJ']),await withTelemetry('feature\x20list',()=>featureList({'currentBranch':_0x35364d[_0x319ce8(0x278)],'limit':_0x35364d[_0x319ce8(0x1c5)],'offset':_0x35364d[_0x319ce8(0x1b0)],'includeDeleted':_0x35364d[_0x319ce8(0x1c8)]}));})[_0x4e339f(0x24f)]('show\x20[id]',![],_0x795924=>{const _0x2fd81d=_0x4e339f;return _0x795924[_0x2fd81d(0x28c)]('id',{'type':_0x2fd81d(0x1e9),'description':_0x2fd81d(0x199)});},async _0x5890de=>{warnRenamed(_0x20fb0c['tMiOq'],'ranger\x20show'),await _0x20fb0c['CCWtb'](withTelemetry,'feature\x20show',()=>featureShow(_0x5890de['id']));})['command']('resume\x20[id]',![],_0x39b0e0=>{const _0x253b1a=_0x4e339f;return _0x39b0e0[_0x253b1a(0x28c)]('id',{'type':_0x253b1a(0x1e9),'description':_0x20fb0c['RADeb']});},async _0x38d63e=>{const _0x5d43bd=_0x4e339f;_0x20fb0c[_0x5d43bd(0x1a6)](warnRenamed,_0x5d43bd(0x1db),'ranger\x20resume'),await withTelemetry(_0x20fb0c['qApJY'],()=>featureResume(_0x38d63e['id']));})[_0x4e339f(0x24f)](_0x4e339f(0x214),![],_0x154276=>{const _0x58b95c=_0x4e339f;return _0x154276['positional']('description',{'type':_0x20fb0c['ulwny'],'description':_0x20fb0c[_0x58b95c(0x1cf)],'demandOption':!![]})[_0x58b95c(0x28e)]('id',{'type':'string','description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x21d41e=>{const _0x4b4889=_0x4e339f;_0x20fb0c[_0x4b4889(0x21a)](warnRenamed,_0x20fb0c[_0x4b4889(0x1e6)],_0x4b4889(0x223)),await withTelemetry('feature\x20add-checklist-item',()=>featureAddScenario(_0x21d41e['description'],_0x21d41e['id']));})['command']('get-feedback\x20[id]',![],_0x2a1cd1=>{const _0x17d04a=_0x4e339f;return _0x2a1cd1[_0x17d04a(0x28c)]('id',{'type':_0x17d04a(0x1e9),'description':_0x17d04a(0x217)});},async _0x25f957=>{const _0x18c7eb=_0x4e339f;warnRenamed('ranger\x20feature\x20get-feedback','ranger\x20get-review'),await withTelemetry(_0x18c7eb(0x19e),()=>featureGetReview(_0x25f957['id']));})['command'](_0x4e339f(0x2b3),![],_0x373990=>{const _0x48f2e6=_0x4e339f;return _0x373990['positional']('id',{'type':'string','description':_0x20fb0c[_0x48f2e6(0x1c7)]});},async _0x59618c=>{const _0x4acf4d=_0x4e339f;warnRenamed(_0x4acf4d(0x246),'ranger\x20delete'),await _0x20fb0c['BvEbe'](withTelemetry,_0x4acf4d(0x1d3),()=>featureDelete(_0x59618c['id']));})['command'](_0x20fb0c['iyYfS'],![],_0xb6225a=>{const _0x154989=_0x4e339f;return _0xb6225a[_0x154989(0x28c)]('id',{'type':_0x154989(0x1e9),'description':'Feature\x20review\x20ID\x20to\x20restore','demandOption':!![]});},async _0x116889=>{const _0x4f41ea=_0x4e339f;_0x20fb0c['XSUmv'](warnRenamed,'ranger\x20feature\x20restore','ranger\x20restore'),await withTelemetry(_0x4f41ea(0x265),()=>featureRestore(_0x116889['id']));})['demandCommand'](0x1,_0x20fb0c[_0x4e339f(0x2c1)]);})['command'](_0x420c1b(0x1ba),![],_0x1e6bdf=>{const _0x207b58=_0x420c1b,_0x597a5e={'uJyaB':_0x207b58(0x1e9),'CQpoB':'hook:enable','TUUnN':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','zebCL':function(_0x304013,_0x2d16a4,_0x49858a){return _0x304013(_0x2d16a4,_0x49858a);},'Usfav':_0x207b58(0x279),'HTnkL':_0x207b58(0x21c),'WHYga':'Disable\x20Ranger\x20hooks\x20for\x20this\x20session','syBWF':_0x207b58(0x2a9),'hWUTw':'Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)'};return _0x1e6bdf['command'](_0x597a5e['HTnkL'],_0x207b58(0x20b),_0x325d99=>{const _0x3e43e4=_0x207b58;return _0x325d99['option']('session-id',{'type':_0x597a5e['uJyaB'],'description':_0x3e43e4(0x28a)});},async _0xefb351=>{const _0x5c9c23=_0x207b58;await withTelemetry(_0x597a5e[_0x5c9c23(0x25b)],()=>hook('enable',_0xefb351[_0x5c9c23(0x1f1)]));})['command']('disable',_0x597a5e[_0x207b58(0x1a8)],_0x1a080c=>{const _0x18026b=_0x207b58;return _0x1a080c['option']('session-id',{'type':_0x18026b(0x1e9),'description':_0x597a5e['TUUnN']});},async _0x580852=>{const _0x2e3e1e=_0x207b58;await _0x597a5e['zebCL'](withTelemetry,_0x597a5e[_0x2e3e1e(0x272)],()=>hook('disable',_0x580852['session-id']));})[_0x207b58(0x28e)](_0x597a5e[_0x207b58(0x2a8)],{'type':_0x207b58(0x1e9),'description':_0x597a5e[_0x207b58(0x2b1)]})[_0x207b58(0x28e)](_0x207b58(0x1f1),{'type':'string','description':_0x597a5e[_0x207b58(0x1ea)]});},async _0x455b69=>{_0x455b69['name']&&await hook(_0x455b69['name'],_0x455b69['session-id']);})[_0x420c1b(0x1d2)](0x1,_0x420c1b(0x200))['strictCommands']()['fail'](async(_0x5b3396,_0x52d198,_0x593e75)=>{const _0x19dfe9=_0x420c1b,_0x137408={'AzaYU':function(_0x2d1a1e,_0x25c8fb,_0x4acca4){return _0x2d1a1e(_0x25c8fb,_0x4acca4);},'DHKQT':_0x19dfe9(0x1a9),'RAYYd':function(_0x54c6e2){return _0x54c6e2();},'nhJVe':function(_0x8e5e64,_0x56b5b0){return _0x8e5e64||_0x56b5b0;},'knSGx':_0x19dfe9(0x1ca)},_0x4b29c3=sanitizeArgs(process['argv'][_0x19dfe9(0x2cb)](0x2)),_0x1cf856=_0x137408[_0x19dfe9(0x284)](getErrorType,_0x5b3396,_0x52d198);if(_0x5b3396&&_0x5b3396[_0x19dfe9(0x25e)](_0x137408[_0x19dfe9(0x240)])){const _0x3e73f4=process['argv'][0x2];console[_0x19dfe9(0x21f)](_0x19dfe9(0x1b2)+_0x3e73f4),console[_0x19dfe9(0x21f)](_0x19dfe9(0x18b));}else{if(_0x5b3396)console[_0x19dfe9(0x21f)]('\x0a'+_0x5b3396+'\x0a');else _0x52d198&&console['error']('\x0aError:\x20'+_0x52d198[_0x19dfe9(0x2cc)]+'\x0a');}await logDesirePath({'rawCommand':_0x4b29c3,'errorMessage':_0x5b3396||_0x52d198?.[_0x19dfe9(0x2cc)],'errorType':_0x1cf856});const _0x318483=_0x137408[_0x19dfe9(0x204)](getCurrentCollector);_0x318483&&await _0x318483[_0x19dfe9(0x209)](_0x52d198||new Error(_0x137408['nhJVe'](_0x5b3396,_0x137408[_0x19dfe9(0x1ec)]))),process[_0x19dfe9(0x288)](0x1);})[_0x420c1b(0x201)](_0x420c1b(0x19b)+_0x420c1b(0x1b6)+'\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)')['help']()['alias']('help','h')['parse']();
2
+ const _0x3ec279=_0x9509;(function(_0x3780a6,_0x3bc19d){const _0x5cca74=_0x9509,_0x494375=_0x3780a6();while(!![]){try{const _0x248c9c=parseInt(_0x5cca74(0xbc))/0x1+parseInt(_0x5cca74(0xd8))/0x2+parseInt(_0x5cca74(0xda))/0x3+-parseInt(_0x5cca74(0x13b))/0x4*(-parseInt(_0x5cca74(0x1f4))/0x5)+parseInt(_0x5cca74(0x198))/0x6*(-parseInt(_0x5cca74(0xbb))/0x7)+-parseInt(_0x5cca74(0xc7))/0x8+-parseInt(_0x5cca74(0xfe))/0x9;if(_0x248c9c===_0x3bc19d)break;else _0x494375['push'](_0x494375['shift']());}catch(_0x5f1364){_0x494375['push'](_0x494375['shift']());}}}(_0x197a,0x94efc));import _0x460887 from'dotenv';import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x472cd6=_0x9509,_0x2c54c4={'tIKae':function(_0x11d396,_0x3b2d8a){return _0x11d396(_0x3b2d8a);},'tfEli':function(_0x8b58df,_0x8577e3){return _0x8b58df(_0x8577e3);}};let _0x47d281=process['cwd']();const _0x204dd7=_0x2c54c4['tIKae'](parse,_0x47d281)['root'];while(_0x47d281!==_0x204dd7){if(_0x2c54c4['tfEli'](existsSync,join(_0x47d281,_0x472cd6(0x141)))||_0x2c54c4['tIKae'](existsSync,join(_0x47d281,'.env')))return _0x47d281;_0x47d281=_0x2c54c4[_0x472cd6(0x219)](dirname,_0x47d281);}return process[_0x472cd6(0xfd)]();}_0x460887[_0x3ec279(0x17c)]({'path':join(findProjectRoot(),_0x3ec279(0x1df))});import _0x3a29da 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';function _0x9509(_0x93f04b,_0x1bb276){_0x93f04b=_0x93f04b-0xb7;const _0x197a09=_0x197a();let _0x95094c=_0x197a09[_0x93f04b];return _0x95094c;}function _0x197a(){const _0x997e77=['417162zKXgpV','Set\x20a\x20config\x20value','ARewY','MMyQO','VqOxu','headed','Model\x20to\x20use\x20for\x20verification\x20(e.g.,\x20opus,\x20sonnet,\x20claude-opus-4-6,\x20anthropic.claude-opus-4-6-v1)','ZCasj','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','IeOfy','ranger\x20feature\x20add-checklist-item','1836720oNqTAi','BCfdr','klPlw','feature','tcMDk','ZXGsM','use','xNnjY','\x0aError:\x20','ranger\x20restore','Enable\x20Ranger\x20hooks\x20for\x20this\x20session','Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','disable','Output\x20structured\x20JSON\x20data\x20instead\x20of\x20markdown','JFRoq','Bhyiv','iMutt','863548UcOWTz','help','1936380BdLiet','rzOTn','jSOze','option','Force\x20headed\x20browser\x20for\x20this\x20run\x20only\x20(does\x20not\x20change\x20profile\x20config)','exitCode','checklist','You\x20must\x20specify\x20a\x20config\x20subcommand','FjwbD','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios','Profile\x20name','includes','hPuWc','Kngyn','url','restore\x20<id>','skip-chromium','report\x20[id]','gHdgq','clean','ranger\x20add-scenario','UuPrT','Optional\x20feature\x20ID','boolean','HqCEJ','QNNlh','debug-address-comments','cmnZC','tvhgk','Config\x20key\x20to\x20remove','array','skip-auth','ranger\x20delete','profile\x20update','show\x20[id]','cwd','12057615GQznGw','JNDAx','add-scenario\x20<description>','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)','cZLuC','--env','Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review','profile\x20encrypt-auth','item','lowoo','nxsyG','demandCommand','ranger\x20create','report','EqSCx','oMKPI','argv','task','\x0aIssues:','IzWTL','NqBxC','zpiWo','evaluation','base-url','scope','bOLED','tCRfL','offset','IVpuE','BVTxk','Number\x20of\x20feature\x20reviews\x20to\x20skip','Include\x20soft-deleted\x20feature\x20reviews','add\x20env\x20<env-name>','thRYh','ranger\x20profile\x20config\x20list','XYJXp','DDPXC','update\x20<env-name>','eZpMM','fIUCE','YkfKe','edit-scenario\x20<description>','--notes','session-id','hook:enable','VHppp','start','Install\x20skills\x20for\x20OpenCode','mUlwH','rxaRS','ranger\x20go','tAzRu','ranger\x20auth\x20encrypt','Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','json','FAghM','jAsxP','mjaur','RPViy','gryAF','17044pdPPen','\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)','Config\x20key','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','positional','Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','.ranger','nPOyc','iMVbJ','LPLXv','claude','--item','KafkS','Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','ranger\x20feature\x20get-feedback','limit','Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)','xDXJp','dLKar','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','Name\x20of\x20the\x20profile\x20to\x20update','SMJWe','qogCY','EhSvW','jyOal','verified','feature\x20create','opencode','\x20is\x20now\x20','failed','lqXsp','KKSbd','error','VVWwZ','setup-ci','rpuFA','Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios','log','ranger\x20feature\x20show','TuTso','user','lhMho','OMkHX','FSVzG','upJMH','profile-name','sNLKw','xTskJ','scenario','fsyay','Install\x20scope\x20for\x20skills','Toobs','gMtah','iWMmY','nDzOO','allow-insecure-localhost','unset\x20<env>\x20<key>','Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)','vragz','FsxZl','YkRfs','encrypt\x20<profile>','LgoUn','ELSGz','Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','config','NFHCu','Feature\x20review\x20ID','profile\x20config\x20get','hTGUH','ranger\x20get-review','project','pjWeo','fblun','nnHPA','MsnQL','token','key','ranger\x20feature\x20restore','YcMXW','--scenario','ASHzI','\x20PARTIAL','Etljw','Disable\x20Ranger\x20hooks\x20for\x20this\x20session','list\x20<env>','hook:disable','Name\x20of\x20the\x20environment\x20to\x20update','skillup','name','env\x20list','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)','Feature\x20review\x20description','2358360oASlPT','mPFgn','restore','ranger\x20use','fZdrZ','SxyLZ','GxOVH','koByn','vrbnO','Feature\x20review\x20ID\x20to\x20restore','Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version','kkcvA','update','blocked','WDtMl','config\x20set','ranger\x20start','Manage\x20profile\x20configuration','trackCommandError','use\x20<env-name>','yZojY','get-feedback\x20[id]','Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','egDAf','ePhKL','FJkro','get\x20<env>\x20<key>','uEKxc','jMHJn','--checklist','akaCi','hObkg','Environment\x20name','--task','Summary:\x20','ranger\x20resume','exclude-scenario','AHjZS','LaYuP','delete\x20[id]','force','env','You\x20must\x20specify\x20an\x20env\x20subcommand','ranger\x20config\x20unset','Skip\x20Chromium\x20browser\x20check\x20and\x20installation','value','show','PBSmK','ranger\x20profile\x20update','CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.','List\x20all\x20config\x20for\x20a\x20profile','message','Switch\x20to\x20using\x20a\x20specific\x20profile','XGkVg','model','slice','profile\x20add','Unknown\x20command','Scenario\x20index\x20(1-based)','kfaIL','incomplete','SrKIe','YGPkn','alias','list','sdYYh','ranger\x20setup','startsWith','tvAuZ','command','profile\x20config\x20set','.env','version','AuhWi','nUDuM','hook','resume\x20[id]','aJiZI','Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','biohO','rVdfU','current-branch','Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','ranger\x20feature\x20resume','feature\x20list','aPdNO','BbpUA','PvyWy','oqRzy','strictCommands','Rwnjd','flag','1265CgsvMB','jngcP','wRoon','JPmFJ','Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review','add-scenario','profile','profile\x20config\x20list','ranger\x20profile\x20config\x20set','PtYFy','config\x20get','CVpaN','evaluationReason','env-name','AOPPs','string','JmHzP','description','cdp-endpoint','start-path','iqxxv','bUTtO','get-review\x20[id]','Skip\x20Claude\x20Code\x20plugin\x20+\x20skills\x20install\x20(for\x20OpenCode\x20users)','unset\x20<profile>\x20<key>','YZoAk','\x20\x20https://docs.ranger.net\x0a','notes','oiwnm','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','include-deleted','feature\x20show','iSoDp','number','map','ibsji','QwzWd','tIKae','status','FnvRn','FUnak','UTjrg','7sAeJLD'];_0x197a=function(){return _0x997e77;};return _0x197a();}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 _0x65690c=>{const _0x32aff4=_0x3ec279,_0x5244d3={'IrNiG':function(_0x467411){return _0x467411();}},_0x238820=_0x5244d3['IrNiG'](getCurrentCollector);_0x238820&&await _0x238820['trackCommandError'](_0x65690c),process[_0x32aff4(0xdf)]=0x1;});const rawArgs=process['argv'][_0x3ec279(0x1cf)](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=_0x3ec279(0x13e);function warnRenamed(_0x533cbe,_0x4a7cef){const _0xdc9201=_0x3ec279;console['error']('\x0a'+_0x533cbe+_0xdc9201(0x157)+_0x4a7cef+'\x0a');}function argUsed(_0x227b18){const _0x1980d6=_0x3ec279;return rawArgs['some'](_0x1868a8=>_0x1868a8===_0x227b18||_0x1868a8[_0x1980d6(0x1db)](_0x227b18+'='));}function warnFlagRenamed(_0x389016,_0x4d7708,_0x592912){const _0x4a6ad1=_0x3ec279,_0x14a9d6={'akaCi':function(_0x2dc0e7,_0x6cd203){return _0x2dc0e7(_0x6cd203);}};_0x14a9d6[_0x4a6ad1(0x1b6)](argUsed,_0x4d7708)&&warnRenamed(_0x389016+'\x20'+_0x4d7708,_0x389016+'\x20'+_0x592912);}async function runGoCommand(_0x3a78df,_0x58ec93=![]){const _0x1d0006=_0x3ec279,_0x2ab2ae={'FAghM':function(_0x4a2020,_0x51ee08){return _0x4a2020+_0x51ee08;},'MsnQL':function(_0x11e920,_0x26dcc3,_0x11e65b){return _0x11e920(_0x26dcc3,_0x11e65b);},'gqdCU':_0x1d0006(0x131),'JARHo':_0x1d0006(0x104),'kfaIL':'--profile','BCfdr':_0x1d0006(0x129),'iEBjh':function(_0x1e6906,_0x22a9bb,_0x1f1791,_0x3f63df){return _0x1e6906(_0x22a9bb,_0x1f1791,_0x3f63df);},'uTveK':_0x1d0006(0x18b),'tzPyr':function(_0x2f0bf8){return _0x2f0bf8();},'cIsFj':function(_0x2dd3a9,_0x4bbbb8){return _0x2dd3a9??_0x4bbbb8;},'jtObx':_0x1d0006(0x1f3),'yZojY':function(_0x5db57e,_0x325ddc){return _0x5db57e(_0x325ddc);},'gHdgq':'debug-address-comments','LgoUn':'verified','jMHJn':'\x20VERIFIED','wnQqm':'\x20INCOMPLETE','LPLXv':function(_0x310197,_0x4b0eaf){return _0x310197===_0x4b0eaf;},'SrKIe':'partial','jyOal':_0x1d0006(0x1a5)};_0x58ec93&&_0x2ab2ae[_0x1d0006(0x186)](warnRenamed,'ranger\x20verify-feature',_0x2ab2ae['gqdCU']);warnFlagRenamed(_0x2ab2ae['gqdCU'],_0x2ab2ae['JARHo'],_0x2ab2ae[_0x1d0006(0x1d3)]),warnFlagRenamed(_0x2ab2ae['gqdCU'],_0x1d0006(0x1b9),_0x2ab2ae[_0x1d0006(0xc8)]),_0x2ab2ae['iEBjh'](warnFlagRenamed,_0x1d0006(0x131),_0x1d0006(0x146),_0x2ab2ae['uTveK']);const _0x348b66=await _0x2ab2ae['tzPyr'](loadRangerConfig),_0xbd942=_0x3a78df['model'],_0x19a1ca=_0x348b66[_0x1d0006(0x1ce)],_0xa26a05=_0x2ab2ae['cIsFj'](_0xbd942,_0x19a1ca),_0x152acb=_0xbd942?_0x2ab2ae['jtObx']:_0x19a1ca?'config':'default',_0xb313e8=await _0x2ab2ae[_0x1d0006(0x1ac)](verifyFeature,{'featureId':_0x3a78df['feature'],'profile':_0x3a78df[_0x1d0006(0x1fa)]??_0x3a78df[_0x1d0006(0x1c1)],'notes':_0x3a78df['notes']??_0x3a78df[_0x1d0006(0x110)],'scenario':_0x3a78df['scenario']??_0x3a78df['item'],'startPath':_0x3a78df[_0x1d0006(0x207)],'debugOutcome':_0x3a78df['debug-outcome'],'debugAddressComments':_0x3a78df[_0x2ab2ae[_0x1d0006(0xec)]],'headed':_0x3a78df[_0x1d0006(0xc1)],'verifyModel':_0xa26a05,'verifyModelInput':_0xa26a05,'verifyModelSource':_0x152acb});console['log']('\x0a'+'='['repeat'](0x3c)),console['log'](_0xb313e8[_0x1d0006(0x115)]===_0x2ab2ae[_0x1d0006(0x179)]?_0x2ab2ae[_0x1d0006(0x1b4)]:_0xb313e8[_0x1d0006(0x115)]===_0x1d0006(0x1d4)?_0x2ab2ae['wnQqm']:_0x2ab2ae[_0x1d0006(0x144)](_0xb313e8[_0x1d0006(0x115)],_0x2ab2ae[_0x1d0006(0x1d5)])?_0x1d0006(0x18d):_0xb313e8[_0x1d0006(0x115)]===_0x2ab2ae[_0x1d0006(0x153)]?'\x20BLOCKED':'\x20FAILED'),console[_0x1d0006(0x160)]('='['repeat'](0x3c)),console['log'](_0x1d0006(0x1ba)+_0xb313e8['summary']),console['log']('Evaluation:\x20'+_0xb313e8[_0x1d0006(0x115)]),console[_0x1d0006(0x160)]('Reason:\x20'+_0xb313e8[_0x1d0006(0x200)]),_0xb313e8['issues']?.['length']&&(console[_0x1d0006(0x160)](_0x1d0006(0x111)),_0xb313e8['issues']['forEach']((_0x1b61d8,_0x5f5483)=>{const _0x53b10f=_0x1d0006;console['log']('\x0a'+_0x2ab2ae[_0x53b10f(0x136)](_0x5f5483,0x1)+'.\x20['+_0x1b61d8['severity']+']\x20'+_0x1b61d8[_0x53b10f(0x205)]);})),process['exit'](_0x2ab2ae['LPLXv'](_0xb313e8[_0x1d0006(0x115)],_0x1d0006(0x154))?0x0:0x1);}_0x3a29da(process['argv']['slice'](0x2))['scriptName']('ranger')['usage'](TOP_LEVEL_HELP)[_0x3ec279(0x1e0)](getCurrentVersion())['command']('create\x20<name>',_0x3ec279(0x15f),_0x5d0a85=>{const _0x256e63=_0x3ec279,_0x47b52c={'tvAuZ':_0x256e63(0x203),'LSjNu':'scenario','Wmjdk':_0x256e63(0xf8),'uRGgD':_0x256e63(0xe0)};return _0x5d0a85[_0x256e63(0x13f)]('name',{'type':'string','description':'Feature\x20review\x20name','demandOption':!![]})[_0x256e63(0xdd)](_0x256e63(0x205),{'type':_0x47b52c[_0x256e63(0x1dc)],'alias':'d','description':_0x256e63(0x197)})['option'](_0x47b52c['LSjNu'],{'type':_0x47b52c['Wmjdk'],'alias':'c','description':_0x256e63(0x148)})[_0x256e63(0xdd)](_0x47b52c['uRGgD'],{'type':_0x47b52c['Wmjdk'],'hidden':!![]});},async _0x482070=>{const _0x3fef59=_0x3ec279,_0x2cfcc2={'cWyiF':_0x3fef59(0x10b),'mjaur':_0x3fef59(0x1b5),'AuhWi':_0x3fef59(0x18b),'qRAQW':function(_0x46f256,_0x3031a4,_0x124fcf){return _0x46f256(_0x3031a4,_0x124fcf);},'cvXul':'create'};warnFlagRenamed(_0x2cfcc2['cWyiF'],_0x2cfcc2[_0x3fef59(0x138)],_0x2cfcc2[_0x3fef59(0x1e1)]);const _0x529394=_0x482070['scenario']||_0x482070['checklist'];await _0x2cfcc2['qRAQW'](withTelemetry,_0x2cfcc2['cvXul'],()=>featureCreate(_0x482070[_0x3fef59(0x194)],{'description':_0x482070[_0x3fef59(0x205)],'scenarios':_0x529394}));})[_0x3ec279(0x1dd)](_0x3ec279(0x1d8),'List\x20all\x20feature\x20reviews',_0x7d0b73=>{const _0x3298bf=_0x3ec279,_0x519b62={'nxsyG':_0x3298bf(0xf1),'JFRoq':_0x3298bf(0xc4),'JPmFJ':_0x3298bf(0x215),'OmtTw':_0x3298bf(0x14e),'pjWeo':_0x3298bf(0x11a),'nnHPA':'Include\x20soft-deleted\x20feature\x20reviews'};return _0x7d0b73['option'](_0x3298bf(0x1e9),{'type':_0x519b62[_0x3298bf(0x109)],'description':_0x519b62[_0x3298bf(0xd5)]})[_0x3298bf(0xdd)]('limit',{'type':_0x519b62[_0x3298bf(0x1f7)],'alias':'l','description':_0x519b62['OmtTw'],'default':0xa})[_0x3298bf(0xdd)](_0x519b62[_0x3298bf(0x183)],{'type':_0x519b62['JPmFJ'],'alias':'o','description':_0x3298bf(0x11d),'default':0x0})['option']('include-deleted',{'type':'boolean','alias':'d','description':_0x519b62[_0x3298bf(0x185)],'default':![]});},async _0x1fc89e=>{const _0x5b3276=_0x3ec279,_0x1b1f34={'GxOVH':function(_0xd62191,_0x5c78c7,_0x5befad){return _0xd62191(_0x5c78c7,_0x5befad);},'iVaHP':'list'};await _0x1b1f34[_0x5b3276(0x19e)](withTelemetry,_0x1b1f34['iVaHP'],()=>featureList({'currentBranch':_0x1fc89e[_0x5b3276(0x1e9)],'limit':_0x1fc89e[_0x5b3276(0x14a)],'offset':_0x1fc89e[_0x5b3276(0x11a)],'includeDeleted':_0x1fc89e[_0x5b3276(0x212)]}));})[_0x3ec279(0x1dd)]('show\x20[id]','Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x512e54=>{const _0x374711=_0x3ec279,_0xc0687f={'IFyzW':'string'};return _0x512e54[_0x374711(0x13f)]('id',{'type':_0xc0687f['IFyzW'],'description':'Feature\x20review\x20ID'});},async _0x4d7a69=>{const _0xeafff1=_0x3ec279,_0x5e8068={'oiwnm':function(_0x33f3d8,_0x5e2f20,_0x504f62){return _0x33f3d8(_0x5e2f20,_0x504f62);},'tvhgk':_0xeafff1(0x1c6)};await _0x5e8068[_0xeafff1(0x210)](withTelemetry,_0x5e8068[_0xeafff1(0xf6)],()=>featureShow(_0x4d7a69['id']));})['command'](_0x3ec279(0x1e4),'Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context',_0x598479=>{const _0x416bdf=_0x3ec279,_0x505919={'GObiM':'string','bOLED':_0x416bdf(0x101)};return _0x598479[_0x416bdf(0x13f)]('id',{'type':_0x505919['GObiM'],'description':_0x505919[_0x416bdf(0x118)]});},async _0x311ee9=>{const _0x14a72c={'xWynA':'resume'};await withTelemetry(_0x14a72c['xWynA'],()=>featureResume(_0x311ee9['id']));})['command'](_0x3ec279(0x100),_0x3ec279(0x1f8),_0x3d3741=>{const _0x5508a5=_0x3ec279,_0x2f2f3d={'aYhZu':_0x5508a5(0x203),'iMutt':'Scenario\x20description','MuwJT':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'};return _0x3d3741[_0x5508a5(0x13f)]('description',{'type':_0x2f2f3d['aYhZu'],'description':_0x2f2f3d[_0x5508a5(0xd7)],'demandOption':!![]})[_0x5508a5(0xdd)]('id',{'type':_0x5508a5(0x203),'description':_0x2f2f3d['MuwJT']});},async _0xc0b6e1=>{const _0x4a0e06=_0x3ec279;await withTelemetry(_0x4a0e06(0x1f9),()=>featureAddScenario(_0xc0b6e1['description'],_0xc0b6e1['id']));})['command'](_0x3ec279(0x128),_0x3ec279(0x105),_0x1cc54b=>{const _0x80a99f=_0x3ec279,_0x15fe61={'THChj':'New\x20scenario\x20description','tcMDk':'scenario','SMJWe':'Scenario\x20number\x20to\x20edit\x20(1-based)','QwzWd':_0x80a99f(0x211)};return _0x1cc54b[_0x80a99f(0x13f)](_0x80a99f(0x205),{'type':'string','description':_0x15fe61['THChj'],'demandOption':!![]})[_0x80a99f(0xdd)](_0x15fe61[_0x80a99f(0xcb)],{'type':'number','description':_0x15fe61[_0x80a99f(0x150)],'demandOption':!![]})['option']('id',{'type':_0x80a99f(0x203),'description':_0x15fe61[_0x80a99f(0x218)]});},async _0x33ada2=>{const _0x1143df=_0x3ec279,_0x2dcb5c={'hzixe':function(_0x46a44d,_0x19c896,_0xdead0){return _0x46a44d(_0x19c896,_0xdead0);},'fbSxc':'edit-scenario'};await _0x2dcb5c['hzixe'](withTelemetry,_0x2dcb5c['fbSxc'],()=>featureEditScenario(_0x33ada2[_0x1143df(0x205)],{'id':_0x33ada2['id'],'scenario':_0x33ada2[_0x1143df(0x16b)]}));})[_0x3ec279(0x1dd)](_0x3ec279(0xeb),'Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)',_0x1c7e68=>{const _0x562a92=_0x3ec279,_0x4105c2={'WbXss':_0x562a92(0x203),'ZPsCn':_0x562a92(0x17e),'evGUB':'exclude-scenario','Gfqno':'Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)','qYRmK':_0x562a92(0xf1),'SZJCS':_0x562a92(0xd4)};return _0x1c7e68['positional']('id',{'type':_0x4105c2['WbXss'],'description':_0x4105c2['ZPsCn']})['option'](_0x4105c2['evGUB'],{'type':_0x562a92(0xf8),'description':_0x4105c2['Gfqno']})[_0x562a92(0xdd)]('json',{'type':_0x4105c2['qYRmK'],'description':_0x4105c2['SZJCS'],'default':![]});},async _0x5ec8ed=>{const _0x26f230=_0x3ec279,_0x434ebe={'lTaxF':function(_0x3a96f8,_0x24ab27,_0x4d1123){return _0x3a96f8(_0x24ab27,_0x4d1123);},'kkcvA':_0x26f230(0x10c)},_0x370e6e=_0x5ec8ed[_0x26f230(0x1bc)],_0x1656b5=_0x370e6e?_0x370e6e[_0x26f230(0x216)](_0xc193d9=>Number(_0xc193d9)):undefined;await _0x434ebe['lTaxF'](withTelemetry,_0x434ebe[_0x26f230(0x1a3)],()=>featureReportPrDescription(_0x5ec8ed['id'],{'excludeScenarios':_0x1656b5,'json':_0x5ec8ed[_0x26f230(0x135)]}));})['command'](_0x3ec279(0x20a),_0x3ec279(0xe3),_0x359e53=>{const _0x50132f=_0x3ec279,_0xf13c4d={'dunEK':_0x50132f(0x211)};return _0x359e53['positional']('id',{'type':_0x50132f(0x203),'description':_0xf13c4d['dunEK']});},async _0xa8d5d6=>{const _0x12eed1=_0x3ec279,_0x33c736={'zpiWo':'get-review'};await withTelemetry(_0x33c736[_0x12eed1(0x114)],()=>featureGetReview(_0xa8d5d6['id']));})['command'](_0x3ec279(0x1bf),'Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x29bf0b=>{const _0x479b59=_0x3ec279,_0x369de5={'OTANY':'string'};return _0x29bf0b[_0x479b59(0x13f)]('id',{'type':_0x369de5['OTANY'],'description':'Feature\x20review\x20ID'});},async _0x301050=>{const _0x3ee92d=_0x3ec279,_0x58b7aa={'oMKPI':function(_0x47bee1,_0x37f1cc,_0x248731){return _0x47bee1(_0x37f1cc,_0x248731);},'Etljw':'delete'};await _0x58b7aa[_0x3ee92d(0x10e)](withTelemetry,_0x58b7aa[_0x3ee92d(0x18e)],()=>featureDelete(_0x301050['id']));})['command'](_0x3ec279(0xe9),'Restore\x20a\x20soft-deleted\x20feature\x20review',_0x1a90c5=>{const _0x5a5960=_0x3ec279,_0x54215c={'LaYuP':_0x5a5960(0x203)};return _0x1a90c5[_0x5a5960(0x13f)]('id',{'type':_0x54215c[_0x5a5960(0x1be)],'description':_0x5a5960(0x1a1),'demandOption':!![]});},async _0x16f8f8=>{const _0x4c7bd1=_0x3ec279,_0x27f2af={'qWKVU':function(_0x1790e5,_0x12028c,_0x580ef2){return _0x1790e5(_0x12028c,_0x580ef2);}};await _0x27f2af['qWKVU'](withTelemetry,_0x4c7bd1(0x19a),()=>featureRestore(_0x16f8f8['id']));})[_0x3ec279(0x1dd)]('setup\x20[token]','Initialize\x20Ranger\x20in\x20your\x20project',_0xf40ee4=>{const _0x5b26de=_0x3ec279,_0x251b23={'pSKNm':_0x5b26de(0x134),'lqXsp':_0x5b26de(0x203),'wNKpe':_0x5b26de(0x163),'qwzmL':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','WsVkR':'url','xDXJp':'boolean','nDzOO':_0x5b26de(0x20b),'VVWwZ':'allow-insecure-localhost','YZoAk':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)'};return _0xf40ee4['positional']('token',{'type':'string','description':_0x251b23['pSKNm']})['option'](_0x5b26de(0xea),{'type':_0x5b26de(0xf1),'description':_0x5b26de(0x1c4),'default':![]})[_0x5b26de(0xdd)](_0x5b26de(0x117),{'type':_0x251b23['lqXsp'],'choices':[_0x251b23['wNKpe'],_0x5b26de(0x182)],'description':_0x251b23['qwzmL']})[_0x5b26de(0xdd)](_0x251b23['WsVkR'],{'type':_0x251b23[_0x5b26de(0x159)],'description':_0x5b26de(0x140)})[_0x5b26de(0xdd)]('force',{'type':_0x251b23['xDXJp'],'description':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','default':![]})['option'](_0x5b26de(0x156),{'type':_0x251b23[_0x5b26de(0x14c)],'description':_0x251b23[_0x5b26de(0x171)],'default':![]})['option'](_0x251b23[_0x5b26de(0x15c)],{'type':_0x5b26de(0xf1),'description':_0x251b23[_0x5b26de(0x20d)],'default':![]});},async _0x309e35=>{const _0x41cebe=_0x3ec279;await withTelemetry(_0x41cebe(0x12d),_0x418a47=>start(_0x309e35[_0x41cebe(0x187)],{'skipChromium':_0x309e35['skip-chromium'],'scope':_0x309e35[_0x41cebe(0x117)],'url':_0x309e35['url'],'force':_0x309e35['force'],'opencode':_0x309e35[_0x41cebe(0x156)],'allowInsecureLocalhost':_0x309e35['allow-insecure-localhost']},_0x418a47));})[_0x3ec279(0x1dd)]('setup-ci\x20<token>',_0x3ec279(0x174),_0xf6845b=>{const _0x4f0567=_0x3ec279,_0x2de74c={'YGPkn':'token','egDAf':_0x4f0567(0x203),'TuTso':'Ranger\x20API\x20token','NqBxC':_0x4f0567(0x1fa),'klPlw':'CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)','RCPbC':_0x4f0567(0x102),'fZdrZ':_0x4f0567(0xea)};return _0xf6845b[_0x4f0567(0x13f)](_0x2de74c[_0x4f0567(0x1d6)],{'type':_0x2de74c['egDAf'],'description':_0x2de74c[_0x4f0567(0x162)],'demandOption':!![]})[_0x4f0567(0xdd)](_0x2de74c[_0x4f0567(0x113)],{'type':_0x2de74c[_0x4f0567(0x1af)],'description':_0x2de74c[_0x4f0567(0xc9)]})['option'](_0x4f0567(0x116),{'type':'string','description':_0x2de74c['RCPbC']})[_0x4f0567(0xdd)](_0x2de74c[_0x4f0567(0x19c)],{'type':_0x4f0567(0xf1),'description':'Skip\x20Chromium\x20browser\x20installation','default':![]});},async _0x1927e0=>{const _0x2db0f9=_0x3ec279;await withTelemetry(_0x2db0f9(0x15d),_0x311b97=>setupCi(_0x1927e0['token'],{'profile':_0x1927e0['profile'],'baseUrl':_0x1927e0[_0x2db0f9(0x116)],'skipChromium':_0x1927e0['skip-chromium']},_0x311b97));})[_0x3ec279(0x1dd)]('login',_0x3ec279(0x14b),()=>{},async()=>{const _0x58f84f={'kysZe':'login'};await withTelemetry(_0x58f84f['kysZe'],()=>login());})[_0x3ec279(0x1dd)]('skillup','Install\x20Ranger\x20skills',_0x339b65=>{const _0x5859cc=_0x3ec279,_0x76513c={'EhSvW':'opencode','lWiwj':_0x5859cc(0xf1),'DpaMy':'string','JedWC':'project','ackqq':_0x5859cc(0x16d)};return _0x339b65[_0x5859cc(0xdd)](_0x76513c[_0x5859cc(0x152)],{'type':_0x76513c['lWiwj'],'description':_0x5859cc(0x12e),'default':![]})['option'](_0x5859cc(0x117),{'type':_0x76513c['DpaMy'],'choices':[_0x5859cc(0x163),_0x76513c['JedWC']],'description':_0x76513c['ackqq']});},async _0x40e854=>{const _0x2357d6=_0x3ec279,_0x4a7821=Boolean(_0x40e854[_0x2357d6(0x156)]);await withTelemetry(_0x2357d6(0x193),()=>skillup({'autoInstall':_0x40e854['scope'],'platform':_0x4a7821?'opencode':_0x2357d6(0x145)}));})[_0x3ec279(0x1dd)]('clean','Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project',()=>{},async()=>{const _0x2eeae4=_0x3ec279,_0x201996={'aJiZI':function(_0x141725,_0x509a58,_0xd8a131){return _0x141725(_0x509a58,_0xd8a131);},'CVpaN':_0x2eeae4(0xed)};await _0x201996[_0x2eeae4(0x1e5)](withTelemetry,_0x201996[_0x2eeae4(0x1ff)],()=>clean());})['command'](_0x3ec279(0x1fa),'Manage\x20profiles',_0x5b3c7d=>{const _0x44c120=_0x3ec279,_0x4a10fa={'Dtmbq':_0x44c120(0x17b),'OMkHX':_0x44c120(0xf1),'koByn':'Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','IzWTL':_0x44c120(0x1ea),'FsxZl':'url','mPFgn':'Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)','gEElJ':'string','CdiWg':_0x44c120(0x1c9),'xhbVa':'allow-insecure-localhost','cPbfy':'safe-mode','xNnjY':function(_0x5ce2a9,_0x3768ed,_0x38e8c8,_0x5932d4){return _0x5ce2a9(_0x3768ed,_0x38e8c8,_0x5932d4);},'wRoon':_0x44c120(0x1d0),'UuPrT':_0x44c120(0x168),'bfgvu':'Name\x20of\x20the\x20profile','VwGIk':'profile\x20use','VHppp':function(_0x1ac291,_0x5c7067,_0x4719d1){return _0x1ac291(_0x5c7067,_0x4719d1);},'vrbnO':_0x44c120(0x106),'RqSgi':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','xTskJ':_0x44c120(0xfb),'gyThZ':_0x44c120(0x1fa),'gryAF':'Config\x20key','Bhyiv':_0x44c120(0x17f),'iaSlG':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','MxhwQ':'Config\x20value','jAsxP':'set\x20<profile>\x20<key>\x20<value>','MMyQO':'get\x20<profile>\x20<key>','rpuFA':_0x44c120(0x1ca),'jSOze':'You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand','JmHzP':'Add\x20profile\x20configuration','tCRfL':_0x44c120(0x1cc),'rxaRS':'Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','XGkVg':'Update\x20authentication\x20for\x20an\x20existing\x20profile','FnvRn':'config','BNmxN':_0x44c120(0x1a9),'WHvhK':'You\x20must\x20specify\x20a\x20profile\x20subcommand'};return _0x5b3c7d['usage'](PROFILE_HELP)['command']('add\x20<profile-name>',_0x4a10fa[_0x44c120(0x204)],_0x4d5b45=>{const _0x4394b9=_0x44c120;return _0x4d5b45['positional'](_0x4394b9(0x168),{'type':'string','description':_0x4a10fa['Dtmbq'],'demandOption':!![]})[_0x4394b9(0xdd)]('ci',{'type':_0x4a10fa['OMkHX'],'description':_0x4a10fa[_0x4394b9(0x19f)],'default':![]})[_0x4394b9(0xdd)](_0x4394b9(0xf9),{'type':_0x4394b9(0xf1),'description':_0x4a10fa[_0x4394b9(0x112)],'default':![]})[_0x4394b9(0xdd)](_0x4a10fa[_0x4394b9(0x176)],{'type':'string','description':_0x4a10fa[_0x4394b9(0x199)]})['option']('force',{'type':_0x4394b9(0xf1),'description':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','default':![]})['option'](_0x4394b9(0x206),{'type':_0x4a10fa['gEElJ'],'description':_0x4a10fa['CdiWg']})[_0x4394b9(0xdd)](_0x4a10fa['xhbVa'],{'type':_0x4a10fa[_0x4394b9(0x165)],'description':'Allow\x20localhost\x20content\x20in\x20deployed\x20environments\x20(for\x20micro\x20frontend\x20/\x20single-spa\x20workflows)','default':![]})['option'](_0x4a10fa['cPbfy'],{'type':_0x4a10fa[_0x4394b9(0x165)],'description':'Disable\x20browser\x20features\x20that\x20can\x20cause\x20crashes\x20on\x20some\x20systems\x20(e.g.\x20Bluetooth\x20permission\x20prompts\x20on\x20macOS)','default':![]});},async _0x10a94a=>{const _0x1104d1=_0x44c120;await _0x4a10fa[_0x1104d1(0xce)](withTelemetry,_0x4a10fa[_0x1104d1(0x1f6)],_0x2d6db0=>addEnv(_0x10a94a['profile-name'],{'ci':_0x10a94a['ci'],'skipAuth':_0x10a94a['skip-auth'],'url':_0x10a94a['url'],'force':_0x10a94a['force'],'cdpEndpoint':_0x10a94a['cdp-endpoint'],'allowInsecureLocalhost':_0x10a94a['allow-insecure-localhost'],'safeMode':_0x10a94a['safe-mode']},_0x2d6db0),{'isElectron':Boolean(_0x10a94a[_0x1104d1(0x206)])});})[_0x44c120(0x1dd)]('use\x20<profile-name>',_0x4a10fa[_0x44c120(0x119)],_0x5c30ad=>{const _0x474990=_0x44c120;return _0x5c30ad['positional'](_0x4a10fa[_0x474990(0xef)],{'type':'string','description':_0x4a10fa['bfgvu'],'demandOption':!![]});},async _0x62dce8=>{const _0x32394a=_0x44c120;await withTelemetry(_0x4a10fa['VwGIk'],()=>useEnv(_0x62dce8[_0x32394a(0x168)]));})['command']('encrypt-auth\x20<profile>',_0x4a10fa[_0x44c120(0x130)],_0x4b8ae4=>{const _0x5a25a4=_0x44c120;return _0x4b8ae4[_0x5a25a4(0x13f)](_0x5a25a4(0x1fa),{'type':_0x5a25a4(0x203),'description':'Profile\x20name','demandOption':!![]});},async _0x317005=>{const _0x481b2e=_0x44c120;await _0x4a10fa['VHppp'](withTelemetry,_0x4a10fa[_0x481b2e(0x1a0)],()=>authEncrypt(_0x317005['profile']));})[_0x44c120(0x1dd)]('ls','List\x20all\x20profiles',()=>{},async()=>{await withTelemetry('profile\x20ls',()=>envList());})[_0x44c120(0x1dd)]('update\x20<profile-name>',_0x4a10fa[_0x44c120(0x1cd)],_0x3d9359=>{const _0x3085d0=_0x44c120;return _0x3d9359['positional'](_0x4a10fa['UuPrT'],{'type':_0x3085d0(0x203),'description':_0x3085d0(0x14f),'demandOption':!![]})['option'](_0x3085d0(0x172),{'type':_0x4a10fa[_0x3085d0(0x165)],'description':_0x4a10fa['RqSgi']});},async _0x5dbcf5=>{const _0x22021e=_0x44c120;await _0x4a10fa[_0x22021e(0x12c)](withTelemetry,_0x4a10fa[_0x22021e(0x16a)],_0x31e9df=>updateEnv(_0x5dbcf5['profile-name'],_0x31e9df,{'allowInsecureLocalhost':_0x5dbcf5['allow-insecure-localhost']}));})['command'](_0x4a10fa[_0x44c120(0xb8)],_0x4a10fa['BNmxN'],_0x5b2495=>{const _0x4a07fa=_0x44c120,_0x19445a={'EOQNd':_0x4a10fa['iaSlG'],'cmnZC':_0x4a07fa(0x203),'lbiWx':_0x4a10fa['MxhwQ'],'wuYfJ':_0x4a07fa(0x1de),'rVdfU':function(_0x24568b,_0x5ec840,_0xe38338){return _0x24568b(_0x5ec840,_0xe38338);},'PBSmK':'Profile\x20name','lmaOP':_0x4a07fa(0xf7)};return _0x5b2495['usage'](PROFILE_CONFIG_HELP)[_0x4a07fa(0x1dd)](_0x4a10fa[_0x4a07fa(0x137)],_0x4a07fa(0xbd),_0xc5478d=>{const _0x564009=_0x4a07fa;return _0xc5478d['positional']('profile',{'type':_0x564009(0x203),'description':_0x564009(0xe4),'demandOption':!![]})[_0x564009(0x13f)](_0x564009(0x188),{'type':_0x564009(0x203),'description':_0x19445a['EOQNd'],'demandOption':!![]})[_0x564009(0x13f)]('value',{'type':_0x19445a[_0x564009(0xf5)],'description':_0x19445a['lbiWx'],'demandOption':!![]});},async _0x4c03e6=>{await withTelemetry(_0x19445a['wuYfJ'],()=>configSet(_0x4c03e6['profile'],_0x4c03e6['key'],_0x4c03e6['value']));})[_0x4a07fa(0x1dd)](_0x4a10fa[_0x4a07fa(0xbf)],'Get\x20a\x20config\x20value',_0x5de627=>{const _0x5eed2c=_0x4a07fa;return _0x5de627['positional'](_0x4a10fa['gyThZ'],{'type':_0x5eed2c(0x203),'description':'Profile\x20name','demandOption':!![]})[_0x5eed2c(0x13f)](_0x5eed2c(0x188),{'type':_0x4a10fa['gEElJ'],'description':_0x4a10fa[_0x5eed2c(0x13a)],'demandOption':!![]});},async _0x4574e1=>{const _0x539460=_0x4a07fa;await withTelemetry(_0x4a10fa[_0x539460(0xd6)],()=>configGet(_0x4574e1['profile'],_0x4574e1['key']));})['command']('list\x20<profile>',_0x4a10fa[_0x4a07fa(0x15e)],_0x42be4a=>{const _0x54036c=_0x4a07fa;return _0x42be4a['positional'](_0x4a10fa['gyThZ'],{'type':_0x54036c(0x203),'description':'Profile\x20name','demandOption':!![]});},async _0x9683ac=>{const _0x5007bf=_0x4a07fa;await _0x19445a[_0x5007bf(0x1e8)](withTelemetry,_0x5007bf(0x1fb),()=>configList(_0x9683ac[_0x5007bf(0x1fa)]));})['command'](_0x4a07fa(0x20c),'Remove\x20a\x20config\x20value',_0x104485=>{const _0x2d5c33=_0x4a07fa;return _0x104485['positional'](_0x2d5c33(0x1fa),{'type':_0x2d5c33(0x203),'description':_0x19445a[_0x2d5c33(0x1c7)],'demandOption':!![]})['positional'](_0x2d5c33(0x188),{'type':_0x2d5c33(0x203),'description':_0x19445a['lmaOP'],'demandOption':!![]});},async _0x1068e5=>{const _0x2cf68d=_0x4a07fa;await withTelemetry('profile\x20config\x20unset',()=>configUnset(_0x1068e5[_0x2cf68d(0x1fa)],_0x1068e5[_0x2cf68d(0x188)]));})[_0x4a07fa(0x10a)](0x1,_0x4a10fa[_0x4a07fa(0xdc)]);})['demandCommand'](0x1,_0x4a10fa['WHvhK']);})[_0x3ec279(0x1dd)](_0x3ec279(0xb7),'Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)',()=>{},async()=>{const _0x5c7397=_0x3ec279,_0x1d57b7={'XLand':function(_0x1b9882,_0x78d214,_0x192d42){return _0x1b9882(_0x78d214,_0x192d42);},'fsyay':_0x5c7397(0xb7)};await _0x1d57b7['XLand'](withTelemetry,_0x1d57b7[_0x5c7397(0x16c)],()=>status());})[_0x3ec279(0x1dd)](_0x3ec279(0x1a4),_0x3ec279(0x1a2),()=>{},async()=>{const _0x59e298={'eRcTZ':function(_0x23e5e4,_0x4a8499,_0x3a906d){return _0x23e5e4(_0x4a8499,_0x3a906d);}};await _0x59e298['eRcTZ'](withTelemetry,'update',()=>update());})['command']('go',_0x3ec279(0x196),_0x3b0a18=>{const _0x56f9fc=_0x3ec279,_0x37702e={'QNNlh':_0x56f9fc(0x203),'CUZCg':'Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)','mcFGj':'scenario','tJUKm':_0x56f9fc(0x215),'XURLj':_0x56f9fc(0x1ce),'Wmjau':_0x56f9fc(0x154),'ikWia':'partial','oZSkP':'incomplete','DpxXe':_0x56f9fc(0x1c1),'BcIyV':_0x56f9fc(0x110)};return _0x3b0a18[_0x56f9fc(0xdd)]('feature',{'type':'string','description':_0x56f9fc(0xf0)})['option'](_0x56f9fc(0x1fa),{'type':_0x56f9fc(0x203),'description':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)'})[_0x56f9fc(0xdd)](_0x56f9fc(0x20f),{'type':_0x37702e['QNNlh'],'description':_0x37702e['CUZCg']})['option'](_0x37702e['mcFGj'],{'type':_0x37702e['tJUKm'],'description':_0x56f9fc(0x1d2)})['option']('start-path',{'type':_0x37702e[_0x56f9fc(0xf3)],'description':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)'})['option'](_0x37702e['XURLj'],{'type':_0x56f9fc(0x203),'description':_0x56f9fc(0xc2)})['option']('headed',{'type':'boolean','description':_0x56f9fc(0xde),'default':![]})[_0x56f9fc(0xdd)]('debug-outcome',{'type':_0x37702e['QNNlh'],'hidden':!![],'choices':[_0x37702e['Wmjau'],_0x37702e['ikWia'],'blocked','failed',_0x37702e['oZSkP']]})[_0x56f9fc(0xdd)](_0x56f9fc(0xf4),{'type':'boolean','hidden':!![]})['option'](_0x37702e['DpxXe'],{'type':_0x37702e['QNNlh'],'hidden':!![]})['option'](_0x37702e['BcIyV'],{'type':'string','hidden':!![]})['option'](_0x56f9fc(0x107),{'type':_0x56f9fc(0x215),'hidden':!![]});},async _0x3a959e=>{await runGoCommand(_0x3a959e);})[_0x3ec279(0x1dd)]('auth',![],_0x5c5bf9=>{const _0x2c1afe=_0x3ec279,_0x39ec24={'eYnVz':_0x2c1afe(0x1fa),'aVllp':'string','ivEdk':'Profile\x20name','lhMho':function(_0x1e40c1,_0x548ab2,_0x5278b4){return _0x1e40c1(_0x548ab2,_0x5278b4);},'XYJXp':_0x2c1afe(0x133),'LXLXy':function(_0x45d889,_0x485cc6){return _0x45d889(_0x485cc6);},'ZXGsM':_0x2c1afe(0x178)};return _0x5c5bf9['command'](_0x39ec24[_0x2c1afe(0xcc)],![],_0x10d08d=>{return _0x10d08d['positional'](_0x39ec24['eYnVz'],{'type':_0x39ec24['aVllp'],'description':_0x39ec24['ivEdk'],'demandOption':!![]});},async _0x14a09f=>{const _0x40afac=_0x2c1afe;_0x39ec24[_0x40afac(0x164)](warnRenamed,_0x39ec24[_0x40afac(0x122)],'ranger\x20profile\x20encrypt-auth'),await _0x39ec24['LXLXy'](authEncrypt,_0x14a09f['profile']);})['demandCommand'](0x1,'You\x20must\x20specify\x20an\x20auth\x20subcommand');},()=>{})[_0x3ec279(0x1dd)]('start\x20[token]',![],_0x2029a7=>{const _0x35dd7a=_0x3ec279,_0x36a236={'EqSCx':_0x35dd7a(0x203),'hnCxi':_0x35dd7a(0x134),'ASHzI':'skip-chromium','ygsSy':_0x35dd7a(0xf1),'vragz':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','hPuWc':'user','TDLKX':'project','NFHCu':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','FjwbD':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','BbpUA':_0x35dd7a(0x1c0)};return _0x2029a7['positional'](_0x35dd7a(0x187),{'type':_0x36a236[_0x35dd7a(0x10d)],'description':_0x36a236['hnCxi']})[_0x35dd7a(0xdd)](_0x36a236[_0x35dd7a(0x18c)],{'type':_0x36a236['ygsSy'],'description':_0x36a236[_0x35dd7a(0x175)],'default':![]})['option']('scope',{'type':_0x36a236[_0x35dd7a(0x10d)],'choices':[_0x36a236[_0x35dd7a(0xe6)],_0x36a236['TDLKX']],'description':_0x36a236[_0x35dd7a(0x17d)]})['option'](_0x35dd7a(0xe8),{'type':'string','description':_0x36a236[_0x35dd7a(0xe2)]})['option'](_0x36a236[_0x35dd7a(0x1ee)],{'type':_0x36a236['ygsSy'],'description':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','default':![]});},async _0x1345f7=>{const _0x2c0b63=_0x3ec279,_0x3b8983={'vzasn':_0x2c0b63(0x1a8),'ifxVO':_0x2c0b63(0x1da)};warnRenamed(_0x3b8983['vzasn'],_0x3b8983['ifxVO']),await withTelemetry(_0x2c0b63(0x12d),_0x2fca98=>start(_0x1345f7[_0x2c0b63(0x187)],{'skipChromium':_0x1345f7['skip-chromium'],'scope':_0x1345f7[_0x2c0b63(0x117)],'url':_0x1345f7[_0x2c0b63(0xe8)],'force':_0x1345f7['force']},_0x2fca98));})[_0x3ec279(0x1dd)]('verify-feature',![],_0x28ba11=>{const _0x1a54e5=_0x3ec279,_0x358260={'uYEzD':_0x1a54e5(0x1c1),'sdYYh':'string','bdlMJ':_0x1a54e5(0xd2),'DhPPT':'task','BVTxk':_0x1a54e5(0x107),'JNDAx':_0x1a54e5(0x1d2),'cPGbL':_0x1a54e5(0x1fa),'MUMkH':'notes','sNLKw':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','mYGcy':_0x1a54e5(0xc1),'GTXQM':'boolean','vINqi':'debug-outcome','ePhKL':_0x1a54e5(0x154),'YfyHU':'partial','YkfKe':_0x1a54e5(0x158),'eyWSk':_0x1a54e5(0x1d4)};return _0x28ba11[_0x1a54e5(0xdd)](_0x358260['uYEzD'],{'type':_0x358260['sdYYh'],'description':_0x358260['bdlMJ']})['option'](_0x358260['DhPPT'],{'type':_0x358260['sdYYh'],'description':'Task\x20description\x20(defaults\x20to\x20scenario\x20description)'})[_0x1a54e5(0xdd)](_0x358260[_0x1a54e5(0x11c)],{'type':_0x1a54e5(0x215),'description':_0x358260[_0x1a54e5(0xff)]})[_0x1a54e5(0xdd)](_0x358260['cPGbL'],{'type':_0x1a54e5(0x203),'hidden':!![]})['option'](_0x358260['MUMkH'],{'type':_0x358260[_0x1a54e5(0x1d9)],'hidden':!![]})['option'](_0x1a54e5(0x16b),{'type':_0x1a54e5(0x215),'hidden':!![]})['option'](_0x1a54e5(0x207),{'type':_0x358260[_0x1a54e5(0x1d9)],'description':_0x358260[_0x1a54e5(0x169)]})[_0x1a54e5(0xdd)](_0x1a54e5(0x1ce),{'type':'string','hidden':!![]})[_0x1a54e5(0xdd)](_0x358260['mYGcy'],{'type':_0x358260['GTXQM'],'hidden':!![],'default':![]})[_0x1a54e5(0xdd)](_0x358260['vINqi'],{'type':_0x358260[_0x1a54e5(0x1d9)],'hidden':!![],'choices':[_0x358260[_0x1a54e5(0x1b0)],_0x358260['YfyHU'],_0x1a54e5(0x1a5),_0x358260[_0x1a54e5(0x127)],_0x358260['eyWSk']]});},async _0x104858=>{const _0x28cab5=_0x3ec279,_0x766cae={'hTGUH':function(_0xdd2191,_0x333e6c,_0x4e5f30){return _0xdd2191(_0x333e6c,_0x4e5f30);}};await _0x766cae[_0x28cab5(0x180)](runGoCommand,_0x104858,!![]);})[_0x3ec279(0x1dd)](_0x3ec279(0x11f),![],_0x2f6d1b=>{const _0x31c217=_0x3ec279,_0x4a2eb3={'iSoDp':_0x31c217(0x201),'KKSbd':_0x31c217(0x203),'vmQwL':'Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','rzOTn':'boolean','upJMH':_0x31c217(0x1e6),'YkRfs':_0x31c217(0xf9)};return _0x2f6d1b['positional'](_0x4a2eb3[_0x31c217(0x214)],{'type':_0x4a2eb3[_0x31c217(0x15a)],'description':_0x4a2eb3['vmQwL'],'demandOption':!![]})['option']('ci',{'type':_0x4a2eb3[_0x31c217(0xdb)],'description':_0x4a2eb3[_0x31c217(0x167)],'default':![]})[_0x31c217(0xdd)](_0x4a2eb3[_0x31c217(0x177)],{'type':_0x4a2eb3[_0x31c217(0xdb)],'description':_0x31c217(0x1ea),'default':![]});},async _0x54ad98=>{const _0x56f1d0=_0x3ec279,_0x5a4b65={'thRYh':'add\x20env'};warnRenamed('ranger\x20add\x20env','ranger\x20profile\x20add'),await withTelemetry(_0x5a4b65[_0x56f1d0(0x120)],_0x36a539=>addEnv(_0x54ad98['env-name'],{'ci':_0x54ad98['ci'],'skipAuth':_0x54ad98[_0x56f1d0(0xf9)]},_0x36a539));})['command'](_0x3ec279(0x1ab),![],_0x54291c=>{const _0x1a948f=_0x3ec279,_0x1d2540={'acGIo':'string'};return _0x54291c[_0x1a948f(0x13f)](_0x1a948f(0x201),{'type':_0x1d2540['acGIo'],'description':'Name\x20of\x20the\x20environment','demandOption':!![]});},async _0x2ecc4e=>{const _0x48345a=_0x3ec279,_0x3eefc9={'wKnqC':function(_0x54a2ff,_0x22960d,_0x18f59f){return _0x54a2ff(_0x22960d,_0x18f59f);}};_0x3eefc9['wKnqC'](warnRenamed,_0x48345a(0x19b),'ranger\x20profile\x20use'),await _0x3eefc9['wKnqC'](withTelemetry,_0x48345a(0xcd),()=>useEnv(_0x2ecc4e['env-name']));})[_0x3ec279(0x1dd)](_0x3ec279(0x17c),![],_0xf41e18=>{const _0x23e5f4=_0x3ec279,_0x21517f={'FSVzG':_0x23e5f4(0x203),'YcMXW':'Environment\x20name','bUTtO':_0x23e5f4(0x188),'aKWQY':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','SxyLZ':'value','ZCasj':'Config\x20value','TDGhr':_0x23e5f4(0x1fc),'KafkS':_0x23e5f4(0x1a7),'HqCEJ':_0x23e5f4(0x1c1),'qogCY':_0x23e5f4(0x13d),'tNGAQ':function(_0x126bca,_0xe9319c,_0x24706c){return _0x126bca(_0xe9319c,_0x24706c);},'vqasS':'ranger\x20config\x20get','UTjrg':_0x23e5f4(0x1fe),'fIUCE':function(_0x43b4c6,_0x4155d9,_0x2f7999){return _0x43b4c6(_0x4155d9,_0x2f7999);},'VqOxu':'ranger\x20config\x20list','AHjZS':_0x23e5f4(0x121),'PvyWy':function(_0x4ef2ae,_0x1f43cb,_0xf0e22){return _0x4ef2ae(_0x1f43cb,_0xf0e22);},'uWwVV':'Config\x20key\x20to\x20remove','Rwnjd':function(_0x4d3eb4,_0x4dc8da,_0x48832b){return _0x4d3eb4(_0x4dc8da,_0x48832b);},'AOPPs':_0x23e5f4(0x1c3),'Kngyn':_0x23e5f4(0x1b2),'EfVxY':_0x23e5f4(0x190),'WDtMl':_0x23e5f4(0x173),'BKECn':_0x23e5f4(0xe1)};return _0xf41e18['command']('set\x20<env>\x20<key>\x20<value>',![],_0xf4db10=>{const _0x645eb6=_0x23e5f4;return _0xf4db10['positional']('env',{'type':_0x21517f[_0x645eb6(0x166)],'description':_0x21517f[_0x645eb6(0x18a)],'demandOption':!![]})['positional'](_0x21517f[_0x645eb6(0x209)],{'type':'string','description':_0x21517f['aKWQY'],'demandOption':!![]})['positional'](_0x21517f[_0x645eb6(0x19d)],{'type':_0x21517f['FSVzG'],'description':_0x21517f[_0x645eb6(0xc3)],'demandOption':!![]});},async _0x2638bc=>{const _0x4c7d01=_0x23e5f4;warnRenamed('ranger\x20config\x20set',_0x21517f['TDGhr']),await withTelemetry(_0x21517f[_0x4c7d01(0x147)],()=>configSet(_0x2638bc[_0x4c7d01(0x1c1)],_0x2638bc['key'],_0x2638bc[_0x4c7d01(0x1c5)]));})['command'](_0x21517f[_0x23e5f4(0xe7)],![],_0x175f48=>{const _0xe69db8=_0x23e5f4;return _0x175f48[_0xe69db8(0x13f)](_0x21517f[_0xe69db8(0xf2)],{'type':'string','description':_0xe69db8(0x1b8),'demandOption':!![]})[_0xe69db8(0x13f)](_0x21517f['bUTtO'],{'type':_0xe69db8(0x203),'description':_0x21517f[_0xe69db8(0x151)],'demandOption':!![]});},async _0x47f784=>{const _0x5f0474=_0x23e5f4;_0x21517f['tNGAQ'](warnRenamed,_0x21517f['vqasS'],'ranger\x20profile\x20config\x20get'),await withTelemetry(_0x21517f[_0x5f0474(0xba)],()=>configGet(_0x47f784[_0x5f0474(0x1c1)],_0x47f784[_0x5f0474(0x188)]));})['command'](_0x21517f['EfVxY'],![],_0x41ca7c=>{const _0x4ac95c=_0x23e5f4;return _0x41ca7c['positional'](_0x21517f[_0x4ac95c(0xf2)],{'type':_0x21517f[_0x4ac95c(0x166)],'description':_0x4ac95c(0x1b8),'demandOption':!![]});},async _0x9825f6=>{const _0x44c9b8=_0x23e5f4;_0x21517f[_0x44c9b8(0x126)](warnRenamed,_0x21517f[_0x44c9b8(0xc0)],_0x21517f[_0x44c9b8(0x1bd)]),await _0x21517f[_0x44c9b8(0x1ef)](withTelemetry,'config\x20list',()=>configList(_0x9825f6[_0x44c9b8(0x1c1)]));})['command'](_0x21517f[_0x23e5f4(0x1a6)],![],_0x1607a7=>{const _0x42e19d=_0x23e5f4;return _0x1607a7['positional'](_0x21517f[_0x42e19d(0xf2)],{'type':_0x42e19d(0x203),'description':'Environment\x20name','demandOption':!![]})[_0x42e19d(0x13f)]('key',{'type':'string','description':_0x21517f['uWwVV'],'demandOption':!![]});},async _0x1f6d48=>{const _0x1a65ea=_0x23e5f4;_0x21517f[_0x1a65ea(0x1f2)](warnRenamed,_0x21517f[_0x1a65ea(0x202)],'ranger\x20profile\x20config\x20unset'),await withTelemetry('config\x20unset',()=>configUnset(_0x1f6d48['env'],_0x1f6d48['key']));})[_0x23e5f4(0x10a)](0x1,_0x21517f['BKECn']);})['command'](_0x3ec279(0x1c1),![],_0x1d5222=>{const _0xe78815=_0x3ec279,_0x144677={'BtYuO':'ranger\x20env\x20ls','qMEwJ':function(_0x3d31ab,_0x5a990e,_0x5d164a){return _0x3d31ab(_0x5a990e,_0x5d164a);},'nPOyc':'ranger\x20env\x20update','eZpMM':'env\x20update'};return _0x1d5222['command']('ls',![],()=>{},async()=>{const _0x578468=_0x9509;warnRenamed(_0x144677['BtYuO'],'ranger\x20profile\x20ls'),await withTelemetry(_0x578468(0x195),()=>envList());})[_0xe78815(0x1dd)](_0xe78815(0x124),![],_0x4e7f98=>{const _0x50a532=_0xe78815;return _0x4e7f98['positional']('env-name',{'type':_0x50a532(0x203),'description':_0x50a532(0x192),'demandOption':!![]});},async _0x19613d=>{const _0x362a2d=_0xe78815;_0x144677['qMEwJ'](warnRenamed,_0x144677[_0x362a2d(0x142)],_0x362a2d(0x1c8)),await withTelemetry(_0x144677[_0x362a2d(0x125)],_0x32102c=>updateEnv(_0x19613d['env-name'],_0x32102c));})['demandCommand'](0x1,_0xe78815(0x1c2));})[_0x3ec279(0x1dd)](_0x3ec279(0xca),![],_0x5ec283=>{const _0x172262=_0x3ec279,_0x1cd550={'fblun':_0x172262(0x203),'gMtah':'description','iMVbJ':'array','tuRio':function(_0x210451,_0x305fd6,_0x371487){return _0x210451(_0x305fd6,_0x371487);},'aPdNO':'ranger\x20create','cZLuC':'--checklist','xZoEn':'--scenario','dLKar':function(_0x1791fb,_0x237407,_0x2e258f){return _0x1791fb(_0x237407,_0x2e258f);},'zrnSg':'boolean','dBIHh':'Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','BiqXG':'offset','tAzRu':_0x172262(0x11d),'DDPXC':'include-deleted','ELSGz':function(_0x526347,_0x18d231,_0x430949){return _0x526347(_0x18d231,_0x430949);},'dOKLZ':'ranger\x20feature\x20list','IeOfy':'Feature\x20review\x20ID','ARewY':_0x172262(0x1bb),'FJkro':function(_0x23f2c2,_0x257d45,_0xf0085b){return _0x23f2c2(_0x257d45,_0xf0085b);},'URrrW':'feature\x20resume','iqxxv':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','BuhGA':_0x172262(0xee),'YKAQr':'feature\x20add-checklist-item','oqRzy':function(_0x1a74c5,_0x26cc48,_0x527a59){return _0x1a74c5(_0x26cc48,_0x527a59);},'Mzlba':_0x172262(0x181),'ibsji':function(_0x14ebe8,_0x5b0794,_0x310798){return _0x14ebe8(_0x5b0794,_0x310798);},'uEKxc':'ranger\x20feature\x20delete','iWMmY':_0x172262(0xd0),'biohO':'feature\x20restore','gmniw':'create\x20<name>','jngcP':_0x172262(0x1d8),'hObkg':_0x172262(0xfc),'IVpuE':'add-checklist-item\x20<description>','mUlwH':_0x172262(0x1bf),'OekOE':'restore\x20<id>','rmnMs':'You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand'};return _0x5ec283[_0x172262(0x1dd)](_0x1cd550['gmniw'],![],_0x5ee266=>{const _0x199b49=_0x172262;return _0x5ee266[_0x199b49(0x13f)]('name',{'type':_0x1cd550['fblun'],'description':'Feature\x20review\x20name','demandOption':!![]})[_0x199b49(0xdd)](_0x1cd550[_0x199b49(0x16f)],{'type':_0x199b49(0x203),'alias':'d','description':_0x199b49(0x197)})[_0x199b49(0xdd)]('checklist',{'type':_0x1cd550[_0x199b49(0x143)],'alias':'c','description':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)'})[_0x199b49(0xdd)]('scenario',{'type':'array','hidden':!![]});},async _0x381aaf=>{const _0x2641aa=_0x172262;_0x1cd550['tuRio'](warnRenamed,'ranger\x20feature\x20create',_0x1cd550[_0x2641aa(0x1ed)]),warnFlagRenamed(_0x2641aa(0x10b),_0x1cd550[_0x2641aa(0x103)],_0x1cd550['xZoEn']);const _0x4b45a7=_0x381aaf['scenario']||_0x381aaf[_0x2641aa(0xe0)];await _0x1cd550['dLKar'](withTelemetry,_0x2641aa(0x155),()=>featureCreate(_0x381aaf[_0x2641aa(0x194)],{'description':_0x381aaf['description'],'scenarios':_0x4b45a7}));})[_0x172262(0x1dd)](_0x1cd550[_0x172262(0x1f5)],![],_0x4a2704=>{const _0x26fc76=_0x172262;return _0x4a2704['option']('current-branch',{'type':_0x1cd550['zrnSg'],'description':_0x26fc76(0xc4)})[_0x26fc76(0xdd)]('limit',{'type':_0x26fc76(0x215),'alias':'l','description':_0x1cd550['dBIHh'],'default':0xa})[_0x26fc76(0xdd)](_0x1cd550['BiqXG'],{'type':_0x26fc76(0x215),'alias':'o','description':_0x1cd550[_0x26fc76(0x132)],'default':0x0})['option'](_0x1cd550[_0x26fc76(0x123)],{'type':_0x1cd550['zrnSg'],'alias':'d','description':_0x26fc76(0x11e),'default':![]});},async _0x47b108=>{const _0x1282b3=_0x172262;_0x1cd550['ELSGz'](warnRenamed,_0x1cd550['dOKLZ'],'ranger\x20list'),await _0x1cd550[_0x1282b3(0x14d)](withTelemetry,_0x1282b3(0x1ec),()=>featureList({'currentBranch':_0x47b108[_0x1282b3(0x1e9)],'limit':_0x47b108[_0x1282b3(0x14a)],'offset':_0x47b108[_0x1282b3(0x11a)],'includeDeleted':_0x47b108[_0x1282b3(0x212)]}));})[_0x172262(0x1dd)](_0x1cd550[_0x172262(0x1b7)],![],_0x1320e7=>{const _0x10f831=_0x172262;return _0x1320e7['positional']('id',{'type':'string','description':_0x1cd550[_0x10f831(0xc5)]});},async _0x25f222=>{const _0x349800=_0x172262;warnRenamed(_0x349800(0x161),'ranger\x20show'),await withTelemetry(_0x349800(0x213),()=>featureShow(_0x25f222['id']));})[_0x172262(0x1dd)]('resume\x20[id]',![],_0xcdae97=>{const _0x52e281=_0x172262;return _0xcdae97[_0x52e281(0x13f)]('id',{'type':_0x1cd550[_0x52e281(0x184)],'description':'Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)'});},async _0x2e193b=>{const _0x1ecc3c=_0x172262;warnRenamed(_0x1ecc3c(0x1eb),_0x1cd550[_0x1ecc3c(0xbe)]),await _0x1cd550[_0x1ecc3c(0x1b1)](withTelemetry,_0x1cd550['URrrW'],()=>featureResume(_0x2e193b['id']));})[_0x172262(0x1dd)](_0x1cd550[_0x172262(0x11b)],![],_0x76e8de=>{const _0x1c0dd9=_0x172262;return _0x76e8de['positional'](_0x1cd550['gMtah'],{'type':_0x1cd550[_0x1c0dd9(0x184)],'description':'Scenario\x20description','demandOption':!![]})['option']('id',{'type':_0x1cd550[_0x1c0dd9(0x184)],'description':_0x1cd550[_0x1c0dd9(0x208)]});},async _0x59c6f6=>{const _0x5accb3=_0x172262;_0x1cd550[_0x5accb3(0x17a)](warnRenamed,_0x5accb3(0xc6),_0x1cd550['BuhGA']),await _0x1cd550['dLKar'](withTelemetry,_0x1cd550['YKAQr'],()=>featureAddScenario(_0x59c6f6['description'],_0x59c6f6['id']));})['command'](_0x172262(0x1ad),![],_0x2a9d9e=>{const _0x532198=_0x172262;return _0x2a9d9e['positional']('id',{'type':_0x532198(0x203),'description':_0x1cd550[_0x532198(0x208)]});},async _0x2271f1=>{const _0x3ac241=_0x172262;_0x1cd550[_0x3ac241(0x1f0)](warnRenamed,_0x3ac241(0x149),_0x1cd550['Mzlba']),await _0x1cd550[_0x3ac241(0x14d)](withTelemetry,'feature\x20get-feedback',()=>featureGetReview(_0x2271f1['id']));})['command'](_0x1cd550[_0x172262(0x12f)],![],_0xde801b=>{const _0x3f2412=_0x172262;return _0xde801b['positional']('id',{'type':_0x3f2412(0x203),'description':'Feature\x20review\x20ID'});},async _0x5f408f=>{const _0x3a3f84=_0x172262;_0x1cd550[_0x3a3f84(0x217)](warnRenamed,_0x1cd550[_0x3a3f84(0x1b3)],_0x3a3f84(0xfa)),await _0x1cd550[_0x3a3f84(0x1b1)](withTelemetry,'feature\x20delete',()=>featureDelete(_0x5f408f['id']));})['command'](_0x1cd550['OekOE'],![],_0x1d997d=>{const _0x407e34=_0x172262;return _0x1d997d[_0x407e34(0x13f)]('id',{'type':_0x1cd550[_0x407e34(0x184)],'description':'Feature\x20review\x20ID\x20to\x20restore','demandOption':!![]});},async _0x58d12f=>{const _0x11a8af=_0x172262;warnRenamed(_0x11a8af(0x189),_0x1cd550[_0x11a8af(0x170)]),await withTelemetry(_0x1cd550[_0x11a8af(0x1e7)],()=>featureRestore(_0x58d12f['id']));})['demandCommand'](0x1,_0x1cd550['rmnMs']);})['command'](_0x3ec279(0x1e3),![],_0x3f5732=>{const _0x36d298=_0x3ec279,_0x27d8f7={'Toobs':'session-id','lowoo':_0x36d298(0x1ae),'Ftkpf':function(_0x5573e7,_0x3c1428,_0xa95b19){return _0x5573e7(_0x3c1428,_0xa95b19);},'RPViy':'name','uhbZN':_0x36d298(0x203),'xvXOR':'Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)'};return _0x3f5732[_0x36d298(0x1dd)]('enable',_0x36d298(0xd1),_0x1306ce=>{const _0x149947=_0x36d298;return _0x1306ce[_0x149947(0xdd)](_0x149947(0x12a),{'type':_0x149947(0x203),'description':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)'});},async _0x44478a=>{const _0x8d5c7b=_0x36d298;await withTelemetry(_0x8d5c7b(0x12b),()=>hook('enable',_0x44478a['session-id']));})['command']('disable',_0x36d298(0x18f),_0x1a3a4c=>{const _0x445089=_0x36d298;return _0x1a3a4c['option'](_0x27d8f7[_0x445089(0x16e)],{'type':_0x445089(0x203),'description':_0x27d8f7[_0x445089(0x108)]});},async _0x3032b0=>{const _0x509ba6=_0x36d298;await _0x27d8f7['Ftkpf'](withTelemetry,_0x509ba6(0x191),()=>hook(_0x509ba6(0xd3),_0x3032b0['session-id']));})['option'](_0x27d8f7[_0x36d298(0x139)],{'type':_0x27d8f7['uhbZN'],'description':_0x27d8f7['xvXOR']})[_0x36d298(0xdd)](_0x36d298(0x12a),{'type':_0x27d8f7['uhbZN'],'description':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)'});},async _0x10f603=>{const _0x48098c=_0x3ec279,_0x28b391={'PtYFy':function(_0x3c1e13,_0x1bc43f,_0x1cac68){return _0x3c1e13(_0x1bc43f,_0x1cac68);},'FUnak':_0x48098c(0x12a)};_0x10f603['name']&&await _0x28b391[_0x48098c(0x1fd)](hook,_0x10f603[_0x48098c(0x194)],_0x10f603[_0x28b391[_0x48098c(0xb9)]]);})[_0x3ec279(0x10a)](0x1,'You\x20must\x20specify\x20a\x20command')[_0x3ec279(0x1f1)]()['fail'](async(_0xd2fcbc,_0x22ad64,_0x34b18a)=>{const _0x1d5e44=_0x3ec279,_0x3b4382={'nUDuM':function(_0x3e9158,_0x3168da){return _0x3e9158(_0x3168da);},'ItAIC':function(_0x132665,_0x21a672,_0x392ca6){return _0x132665(_0x21a672,_0x392ca6);},'ojnOC':'Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a','YYgXx':function(_0x3974dc,_0x568ecd){return _0x3974dc||_0x568ecd;}},_0x13bf31=_0x3b4382[_0x1d5e44(0x1e2)](sanitizeArgs,process['argv']['slice'](0x2)),_0x174359=_0x3b4382['ItAIC'](getErrorType,_0xd2fcbc,_0x22ad64);if(_0xd2fcbc&&_0xd2fcbc[_0x1d5e44(0xe5)](_0x1d5e44(0x1d1))){const _0x47bb37=process[_0x1d5e44(0x10f)][0x2];console[_0x1d5e44(0x15b)]('\x0aUnknown\x20command:\x20'+_0x47bb37),console[_0x1d5e44(0x15b)](_0x3b4382['ojnOC']);}else{if(_0xd2fcbc)console['error']('\x0a'+_0xd2fcbc+'\x0a');else _0x22ad64&&console['error'](_0x1d5e44(0xcf)+_0x22ad64[_0x1d5e44(0x1cb)]+'\x0a');}await _0x3b4382[_0x1d5e44(0x1e2)](logDesirePath,{'rawCommand':_0x13bf31,'errorMessage':_0xd2fcbc||_0x22ad64?.[_0x1d5e44(0x1cb)],'errorType':_0x174359});const _0x42f732=getCurrentCollector();_0x42f732&&await _0x42f732[_0x1d5e44(0x1aa)](_0x22ad64||new Error(_0x3b4382['YYgXx'](_0xd2fcbc,'Unknown\x20error'))),process['exit'](0x1);})['epilogue']('Documentation:\x0a'+_0x3ec279(0x20e)+_0x3ec279(0x13c))[_0x3ec279(0xd9)]()[_0x3ec279(0x1d7)](_0x3ec279(0xd9),'h')['parse']();
@@ -1 +1 @@
1
- (function(_0x20251b,_0x306128){const _0x480bed=_0x28f3,_0x4250ec=_0x20251b();while(!![]){try{const _0x426bf1=parseInt(_0x480bed(0x190))/0x1*(-parseInt(_0x480bed(0x18b))/0x2)+parseInt(_0x480bed(0x157))/0x3*(parseInt(_0x480bed(0x170))/0x4)+parseInt(_0x480bed(0x148))/0x5*(parseInt(_0x480bed(0x13f))/0x6)+parseInt(_0x480bed(0x144))/0x7*(-parseInt(_0x480bed(0x14c))/0x8)+parseInt(_0x480bed(0x14d))/0x9*(parseInt(_0x480bed(0x172))/0xa)+parseInt(_0x480bed(0x15a))/0xb+parseInt(_0x480bed(0x154))/0xc*(-parseInt(_0x480bed(0x133))/0xd);if(_0x426bf1===_0x306128)break;else _0x4250ec['push'](_0x4250ec['shift']());}catch(_0x274025){_0x4250ec['push'](_0x4250ec['shift']());}}}(_0x256d,0x45362));import{mkdir,writeFile,readFile,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import _0xee9dc1 from'inquirer';import{chromium}from'playwright';import{findExistingEnv}from'./utils/settings.js';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';function _0x28f3(_0x4e9ea5,_0x450c24){_0x4e9ea5=_0x4e9ea5-0x12a;const _0x256d44=_0x256d();let _0x28f38a=_0x256d44[_0x4e9ea5];return _0x28f38a;}function _0x256d(){const _0x2c536b=['fwMQu','97320zIqOvv','cbrvp','--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.','prompt','\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.','--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','error','use_suggestion','IfmPT','TnIdG','newPage','local','\x20(continuing\x20with\x20--force)','trackPhaseEnd','\x0aโš ๏ธ\x20\x20Profile\x20\x22','\x20\x20Set\x20active\x20profile:\x20','WVITA','location','url','test','manual','OaVOc','confirm','cdpEndpoint','What\x20would\x20you\x20like\x20to\x20do?','78zOkaFM','TlFPc','\x20would\x20shadow\x20the\x20existing\x20profile.','input','SWVdW','13401JRVwUr','hfbnV','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','pTDIq','root\x20(.ranger/)','VSiqg','uCDGu','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','MUHGt','status','\x0a\x20\x20Still\x20could\x20not\x20reach\x20','UUrJd','path','2680106dTihcr','What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','zGnst','Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.','Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','Saving\x20authentication\x20state...','\x0a\x20\x20Could\x20not\x20reach\x20','isTTY','\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','.enc','name','goto','186tuqzKz','ZwmKF','Profile\x20\x22','JEvTQ','settings.json','26831NXeFaT','about:blank','stringify','lCZhu','71035zdYDiS','Aborted.','xyKZY','JOuPI','416YSwGMM','9LTZCcg','hcvGE','NOycF','\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a','baseUrl','.backup-','aAGvr','12aZnIAC','\x0a๐Ÿ”Œ\x20CDP\x20Profile\x20Setup\x0a','bSNqP','45wwrGNc','skipAuth','signal','2664893xKpyXz','ipmFF','fpjVR','log','mGFmq','Hwown','klwip','http://localhost:3000','Use\x20','overwrite','qvrhr','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','config_write','\x0a\x20\x20\x20โš \x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.','Invalid\x20URL','\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a','trim','HTTP\x20','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20','\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a','โœ“\x20Auth\x20state\x20saved\x20to:\x20','launch','138452uNvVzT'];_0x256d=function(){return _0x2c536b;};return _0x256d();}import{getRangerDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';async function checkUrlReachability(_0xf054a6){const _0x13bf5d=_0x28f3,_0x4e6447={'bSNqP':function(_0x2cdc68,_0x2ca9c1,_0x42c798){return _0x2cdc68(_0x2ca9c1,_0x42c798);},'CwLGk':'HEAD','cbrvp':function(_0x24edbb,_0x34d9f3){return _0x24edbb(_0x34d9f3);},'TnIdG':function(_0xbf3a1e,_0x442748){return _0xbf3a1e<_0x442748;},'UmjUV':function(_0x25f624,_0x42ebdb){return _0x25f624(_0x42ebdb);},'aAGvr':_0x13bf5d(0x168)};try{const _0x2fb5b2=new AbortController(),_0x3f681a=setTimeout(()=>_0x2fb5b2['abort'](),0x1388),_0x412349=await _0x4e6447[_0x13bf5d(0x156)](fetch,_0xf054a6,{'method':_0x4e6447['CwLGk'],'signal':_0x2fb5b2[_0x13bf5d(0x159)],'redirect':_0x13bf5d(0x186)});_0x4e6447[_0x13bf5d(0x173)](clearTimeout,_0x3f681a);if(_0x4e6447[_0x13bf5d(0x17b)](_0x412349['status'],0x190))return{'ok':!![]};return{'ok':![],'error':_0x13bf5d(0x16b)+_0x412349[_0x13bf5d(0x12f)]};}catch(_0x21bf72){const _0x5eee9a=_0x21bf72,_0x4b4805=_0x5eee9a['message']||_0x4e6447['UmjUV'](String,_0x21bf72),_0x103bab=_0x4b4805['includes'](_0x4e6447[_0x13bf5d(0x153)])||_0x5eee9a[_0x13bf5d(0x13d)]==='TypeError'||_0x4b4805['includes']('fetch\x20failed');return{'ok':![],'error':_0x4b4805,'isProtocolError':_0x103bab};}}export async function addEnv(_0x253327,_0x33912e={},_0x2e7bc4){const _0x214ba7=_0x28f3,_0x434102={'vPsKO':'close','YjuKx':_0x214ba7(0x17d),'ipmFF':function(_0x559fcd){return _0x559fcd();},'JOuPI':'--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','sReAd':_0x214ba7(0x177),'gmWEy':_0x214ba7(0x174),'BlktC':'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','Hwown':function(_0x5e21b0,_0x5f0c93){return _0x5e21b0===_0x5f0c93;},'ZxaRV':_0x214ba7(0x163),'SWVdW':_0x214ba7(0x149),'ZwmKF':_0x214ba7(0x188),'UUrJd':'url_setup','CbrtP':_0x214ba7(0x18e),'OaVOc':'Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','lCZhu':function(_0x19417f,_0x12c064){return _0x19417f||_0x12c064;},'plGkF':_0x214ba7(0x18a),'hfbnV':'Continue\x20anyway','oKZMS':'continue','TlFPc':function(_0x219814,_0x3a80dd){return _0x219814===_0x3a80dd;},'qvrhr':function(_0x391ef0,_0x34668a,_0x388ad7){return _0x391ef0(_0x34668a,_0x388ad7);},'MUHGt':function(_0x138b90,_0x7548bc,_0x29db3e){return _0x138b90(_0x7548bc,_0x29db3e);},'jknSM':'auth.json','fwMQu':'\x0a๐Ÿ“‹\x20Authentication\x20Setup','VTReQ':_0x214ba7(0x176),'frOnk':'\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.','fpjVR':_0x214ba7(0x167),'VSiqg':function(_0x248b97,_0x4e1686){return _0x248b97(_0x4e1686);},'RbjBT':function(_0x118ac5,_0x36605e,_0x3ed4a0){return _0x118ac5(_0x36605e,_0x3ed4a0);},'TUlhi':_0x214ba7(0x136),'WVITA':function(_0x563e14,_0x5d4754,_0x1c2a89){return _0x563e14(_0x5d4754,_0x1c2a89);},'zGnst':_0x214ba7(0x13c),'NOycF':_0x214ba7(0x165),'klwip':'\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','hcvGE':'browser_auth','uCDGu':'config_write','mGFmq':function(_0x149a9a,_0xf67715,_0x20b6e8){return _0x149a9a(_0xf67715,_0x20b6e8);},'BMTkI':function(_0x3ea5a6,_0x372d79){return _0x3ea5a6===_0x372d79;},'xyKZY':function(_0x1df97f,_0x58a26f,_0xba5fd6){return _0x1df97f(_0x58a26f,_0xba5fd6);},'pTDIq':function(_0x117122,_0xd91332,_0x44b073){return _0x117122(_0xd91332,_0x44b073);},'hWeJJ':_0x214ba7(0x137)},_0x55f646=_0x33912e['ci']??![],_0x1e5fb3=_0x55f646?'ci':_0x434102['YjuKx'],_0x52feee=join(_0x434102[_0x214ba7(0x15b)](getRangerDir),_0x1e5fb3,_0x253327),_0x1d8e4e=join(getRangerDir(),_0x1e5fb3);if(_0x33912e['cdpEndpoint']!==undefined&&_0x33912e['cdpEndpoint'][_0x214ba7(0x16a)]()==='')throw new Error(_0x434102[_0x214ba7(0x14b)]);if(_0x33912e[_0x214ba7(0x189)]&&_0x33912e[_0x214ba7(0x184)])throw new Error(_0x434102['sReAd']);if(_0x33912e[_0x214ba7(0x189)]&&_0x33912e['ci'])throw new Error(_0x434102['gmWEy']);const _0x33935e=Boolean(_0x33912e[_0x214ba7(0x189)]),_0x381087=!_0x33912e[_0x214ba7(0x158)]&&!_0x33935e,_0xa173c2=process['stdin'][_0x214ba7(0x13a)]&&process['stdout'][_0x214ba7(0x13a)];if(!_0xa173c2&&!_0x33912e['url']&&!_0x33935e)throw new Error(_0x434102['BlktC']);const _0xb3d52f=findExistingEnv(_0x253327);let _0x5baad4=null;if(_0xb3d52f){if(!_0xa173c2)_0x5baad4=_0xb3d52f;else{if(_0x434102[_0x214ba7(0x15f)](_0xb3d52f['location'],_0x1e5fb3)){const {overwrite:_0x242486}=await _0xee9dc1['prompt']([{'type':'confirm','name':_0x434102['ZxaRV'],'message':_0x214ba7(0x141)+_0x253327+'\x22\x20already\x20exists.\x20Overwrite?','default':![]}]);if(!_0x242486){console['log'](_0x434102['SWVdW']);return;}_0x5baad4=_0xb3d52f;}else{const _0x1e193c=_0x434102[_0x214ba7(0x15f)](_0xb3d52f['location'],'legacy')?_0x214ba7(0x12a):_0xb3d52f['location'];console[_0x214ba7(0x178)](_0x214ba7(0x180)+_0x253327+'\x22\x20already\x20exists\x20in\x20'+_0x1e193c+':\x20'+_0xb3d52f[_0x214ba7(0x132)]),console['error']('\x20\x20\x20Creating\x20it\x20in\x20'+_0x1e5fb3+_0x214ba7(0x18d));const {shouldReplace:_0x3facc9}=await _0xee9dc1['prompt']([{'type':_0x434102[_0x214ba7(0x140)],'name':'shouldReplace','message':'Delete\x20existing\x20and\x20create\x20new\x20in\x20'+_0x1e5fb3+'?','default':![]}]);if(!_0x3facc9){console['log'](_0x434102[_0x214ba7(0x18f)]);return;}_0x5baad4=_0xb3d52f;}}}_0x2e7bc4?.['trackPhaseStart'](_0x434102['UUrJd']);let _0x8537cc='';if(_0x33935e)console['log'](_0x214ba7(0x155)),console['log'](_0x214ba7(0x12d)+_0x33912e[_0x214ba7(0x189)]),console[_0x214ba7(0x15d)](_0x214ba7(0x169));else{if(_0x33912e[_0x214ba7(0x184)]){_0x8537cc=_0x33912e['url'];const _0x23a5e5=await checkUrlReachability(_0x8537cc);if(!_0x23a5e5['ok']&&!_0x33912e['force'])throw new Error('Could\x20not\x20reach\x20'+_0x8537cc+':\x20'+_0x23a5e5['error']+_0x214ba7(0x192));!_0x23a5e5['ok']&&_0x33912e['force']&&console[_0x214ba7(0x15d)]('โš \x20Could\x20not\x20reach\x20'+_0x8537cc+':\x20'+_0x23a5e5['error']+_0x214ba7(0x17e));}else{console['log']('\x0a๐ŸŒ\x20Profile\x20Setup\x0a'),console[_0x214ba7(0x15d)]('\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.'),console[_0x214ba7(0x15d)](_0x214ba7(0x16d));let _0x3c0ac4=![];while(!![]){const _0x3cdef4=await _0xee9dc1[_0x214ba7(0x175)]([{'type':_0x434102['CbrtP'],'name':'baseUrl','message':_0x3c0ac4?_0x434102[_0x214ba7(0x187)]:_0x214ba7(0x134),'default':_0x434102[_0x214ba7(0x147)](_0x8537cc,_0x214ba7(0x161))}]);_0x8537cc=_0x3cdef4[_0x214ba7(0x151)];const _0x1833b7=await checkUrlReachability(_0x8537cc);if(_0x1833b7['ok'])break;const _0x1b3ef7=/^[a-zA-Z][\w+.-]*:\/\//[_0x214ba7(0x185)](_0x8537cc),_0x16df11=_0x1833b7['isProtocolError']&&!_0x1b3ef7,_0x36abce=_0x16df11?'http://'+_0x8537cc:null;_0x3c0ac4=!![],console['log'](_0x214ba7(0x139)+_0x8537cc+':\x20'+_0x1833b7['error']);_0x36abce&&console['log']('\x20\x20Did\x20you\x20mean\x20'+_0x36abce+'?');const {action:_0x5a0aa4}=await _0xee9dc1['prompt']([{'type':'list','name':'action','message':_0x434102['plGkF'],'choices':[..._0x36abce?[{'name':_0x214ba7(0x162)+_0x36abce,'value':_0x214ba7(0x179)}]:[],{'name':'Enter\x20a\x20different\x20URL','value':'retry'},{'name':_0x434102[_0x214ba7(0x191)],'value':_0x434102['oKZMS']}]}]);if(_0x434102[_0x214ba7(0x18c)](_0x5a0aa4,'use_suggestion')&&_0x36abce){_0x8537cc=_0x36abce;const _0x4d4eec=await checkUrlReachability(_0x8537cc);if(_0x4d4eec['ok'])break;console[_0x214ba7(0x15d)](_0x214ba7(0x130)+_0x8537cc+':\x20'+_0x4d4eec[_0x214ba7(0x178)]);}else{if(_0x434102['TlFPc'](_0x5a0aa4,_0x434102['oKZMS']))break;}}}}_0x2e7bc4?.[_0x214ba7(0x17f)](_0x434102[_0x214ba7(0x131)]),await _0x434102[_0x214ba7(0x164)](mkdir,_0x1d8e4e,{'recursive':!![]});const _0x372008=await mkdtemp(_0x434102[_0x214ba7(0x12e)](join,_0x1d8e4e,'.tmp-'+_0x253327+'-')),_0xcdb5f8=join(_0x372008,_0x434102['jknSM']);try{if(_0x381087){_0x2e7bc4?.['trackPhaseStart']('browser_auth'),console['log'](_0x434102[_0x214ba7(0x171)]),console['log'](_0x434102['VTReQ']),console['log'](_0x434102['frOnk']);!_0xa173c2?(console[_0x214ba7(0x15d)](_0x434102[_0x214ba7(0x15c)]),console['log'](_0x214ba7(0x150))):console['log']('');await new Promise(_0x53749d=>setTimeout(_0x53749d,0xbb8));const _0x7954e9=await chromium[_0x214ba7(0x16f)]({'headless':![]});try{const _0x4e1d37=await _0x7954e9['newContext']();await _0x434102[_0x214ba7(0x12b)](addProfileSetupBanner,_0x4e1d37);const _0x31d0f1=await _0x4e1d37[_0x214ba7(0x17c)]();await _0x31d0f1[_0x214ba7(0x13e)](_0x434102['lCZhu'](_0x8537cc,_0x214ba7(0x145))),await new Promise(_0x4744bc=>{const _0x56124b=_0x214ba7,_0x1cc7c7={'IfmPT':_0x56124b(0x138),'JEvTQ':function(_0x5aaa39){return _0x5aaa39();}};_0x31d0f1['on'](_0x434102['vPsKO'],async()=>{const _0x4707d7=_0x56124b;try{console[_0x4707d7(0x15d)](_0x1cc7c7[_0x4707d7(0x17a)]),await _0x4e1d37['storageState']({'path':_0xcdb5f8});}catch{}_0x1cc7c7[_0x4707d7(0x142)](_0x4744bc);});});}finally{await _0x7954e9['close']()['catch'](()=>{});}if(_0x55f646){const _0x4a7121=await _0x434102['RbjBT'](readFile,_0xcdb5f8,'utf-8'),_0x544fda=await getToken();if(!_0x544fda){console[_0x214ba7(0x178)](_0x214ba7(0x13b)),await unlink(_0xcdb5f8)['catch'](()=>{});throw new Error(_0x434102['TUlhi']);}else{const _0x170a51=encrypt(_0x4a7121,_0x544fda);await _0x434102[_0x214ba7(0x182)](writeFile,_0xcdb5f8+_0x434102[_0x214ba7(0x135)],_0x170a51),await unlink(_0xcdb5f8),console['log']('โœ“\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0xcdb5f8+_0x214ba7(0x13c)),console['log'](_0x434102[_0x214ba7(0x14f)]),console[_0x214ba7(0x15d)](_0x434102[_0x214ba7(0x160)]);}}else console['log'](_0x214ba7(0x16e)+_0xcdb5f8);_0x2e7bc4?.['trackPhaseEnd'](_0x434102[_0x214ba7(0x14e)]);}_0x2e7bc4?.['trackPhaseStart'](_0x434102[_0x214ba7(0x12c)]);const _0x4da024={};_0x8537cc&&(_0x4da024['baseUrl']=_0x8537cc);_0x33912e['cdpEndpoint']&&(_0x4da024['cdpEndpoint']=_0x33912e[_0x214ba7(0x189)],_0x4da024['isElectron']=!![]);await _0x434102['qvrhr'](writeFile,join(_0x372008,'settings.json'),JSON[_0x214ba7(0x146)](_0x4da024,null,0x2)),console[_0x214ba7(0x15d)]('โœ“\x20Created\x20settings:\x20'+_0x434102[_0x214ba7(0x15e)](join,_0x52feee,_0x214ba7(0x143)));if(_0x434102['BMTkI'](_0x5baad4?.[_0x214ba7(0x183)],_0x1e5fb3)){const _0x32e118=_0x5baad4['path']+_0x214ba7(0x152)+Date['now']();await rename(_0x5baad4[_0x214ba7(0x132)],_0x32e118);try{await rename(_0x372008,_0x52feee);}catch(_0x3f583c){await _0x434102[_0x214ba7(0x182)](rename,_0x32e118,_0x5baad4[_0x214ba7(0x132)]);throw _0x3f583c;}try{await _0x434102[_0x214ba7(0x14a)](rm,_0x32e118,{'recursive':!![]});}catch{console['log'](_0x214ba7(0x16c)+_0x32e118);}}else{await rename(_0x372008,_0x52feee);if(_0x5baad4)try{await _0x434102[_0x214ba7(0x193)](rm,_0x5baad4['path'],{'recursive':!![]}),console[_0x214ba7(0x15d)]('Removed\x20existing\x20profile\x20at\x20'+_0x5baad4[_0x214ba7(0x132)]);}catch{console[_0x214ba7(0x15d)]('Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20'+_0x5baad4[_0x214ba7(0x132)]);}}try{await writeActiveProfileName(_0x253327),console[_0x214ba7(0x15d)](_0x214ba7(0x181)+_0x253327);}catch{console['log'](_0x434102['hWeJJ']);}_0x2e7bc4?.[_0x214ba7(0x17f)](_0x214ba7(0x166)),console[_0x214ba7(0x15d)]('\x0a\x20\x20Profile\x20\x22'+_0x253327+'\x22\x20configured');}catch(_0x32baea){await rm(_0x372008,{'recursive':!![],'force':!![]});throw _0x32baea;}}
1
+ (function(_0x1b4421,_0x58c0a9){const _0xaf8c64=_0x30cd,_0x4bc2ea=_0x1b4421();while(!![]){try{const _0x399012=parseInt(_0xaf8c64(0x10c))/0x1+-parseInt(_0xaf8c64(0x109))/0x2*(parseInt(_0xaf8c64(0xea))/0x3)+-parseInt(_0xaf8c64(0x135))/0x4+parseInt(_0xaf8c64(0x13c))/0x5*(parseInt(_0xaf8c64(0x11a))/0x6)+parseInt(_0xaf8c64(0x12c))/0x7*(parseInt(_0xaf8c64(0x137))/0x8)+-parseInt(_0xaf8c64(0x11d))/0x9+parseInt(_0xaf8c64(0x117))/0xa*(parseInt(_0xaf8c64(0x130))/0xb);if(_0x399012===_0x58c0a9)break;else _0x4bc2ea['push'](_0x4bc2ea['shift']());}catch(_0x2df3dd){_0x4bc2ea['push'](_0x4bc2ea['shift']());}}}(_0x2440,0xc33dd));import{mkdir,writeFile,readFile,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import _0x375950 from'inquirer';import{chromium}from'playwright';function _0x30cd(_0xf83d46,_0x1fdd7c){_0xf83d46=_0xf83d46-0xd8;const _0x2440fc=_0x2440();let _0x30cdb7=_0x2440fc[_0xf83d46];return _0x30cdb7;}function _0x2440(){const _0x476fe0=['\x0a\x20\x20\x20โš \x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.','\x22\x20configured','stdin','aQBWp','1409364xIfhah','isProtocolError','3616mrCjVA','path','push','baseUrl','newPage','842995jApHfc','cdpEndpoint','Aborted.','http://localhost:3000','signal','pZYVM','\x0aโš ๏ธ\x20\x20Profile\x20\x22','stringify','\x20(continuing\x20with\x20--force)','utf-8','\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a','OoZij','skipAuth','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','iTZJP','What\x20would\x20you\x20like\x20to\x20do?','\x20\x20Did\x20you\x20mean\x20','Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.','HEAD','JqhXr','log','\x20\x20\x20Creating\x20it\x20in\x20','XThMb','HTTP\x20','xvlQr','isTTY','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','Profile\x20\x22','--disable-features=WebBluetooth','--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.','โš \x20Could\x20not\x20reach\x20','fViUi','storageState','qhUyY','fetch\x20failed','location','9978UnWiLr','Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','list','--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','TDwGN','includes','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20','kbmKB','settings.json','oUpFx','safeMode','abort','MIGcg','http://','afkqo','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','Enter\x20a\x20different\x20URL','prompt','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','local','length','\x0a๐Ÿ”Œ\x20CDP\x20Profile\x20Setup\x0a','\x0a๐ŸŒ\x20Profile\x20Setup\x0a','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','isElectron','catch','Could\x20not\x20reach\x20','\x0a\x20\x20Still\x20could\x20not\x20reach\x20','\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a','XYGhm','Invalid\x20URL','904ToEMXg','input','\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a','1153427gyDgFt','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','\x20\x20Set\x20active\x20profile:\x20','config_write','newContext','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20','\x0a\x20\x20Could\x20not\x20reach\x20','root\x20(.ranger/)','stdout','\x20--skip-auth\x20\x20\x20\x20(skip\x20browser\x20auth\x20entirely)\x0a','trackPhaseStart','730rLnHmj','\x20\x20ranger\x20profile\x20add\x20','TboFc','36Hyqmsw','\x0a\x20\x20Profile\x20\x22','You\x20can\x20try\x20again\x20with\x20one\x20of:','9656100EZhBzO','LEiEV','retry','โœ“\x20Auth\x20state\x20saved\x20to:\x20','url','\x0aThe\x20browser\x20closed\x20unexpectedly\x20before\x20authentication\x20could\x20be\x20saved.','EIqkT','aHffL','trackPhaseEnd','action','error','url_setup','continue','\x22\x20already\x20exists\x20in\x20','\x20--safe-mode\x20\x20\x20\x20(disables\x20browser\x20features\x20that\x20can\x20cause\x20crashes)','19411npjoeK','โœ“\x20Created\x20settings:\x20','\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','PfJrW','46695aQhUSt'];_0x2440=function(){return _0x476fe0;};return _0x2440();}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(_0x3cbc59){const _0x250f87=_0x30cd,_0x25df6c={'YmVtc':function(_0xc34d9f,_0x5d4b6f,_0x5ee91a){return _0xc34d9f(_0x5d4b6f,_0x5ee91a);}};try{const _0x28c279=new AbortController(),_0x223a12=setTimeout(()=>_0x28c279[_0x250f87(0xf5)](),0x1388),_0x56db40=await _0x25df6c['YmVtc'](fetch,_0x3cbc59,{'method':_0x250f87(0xd8),'signal':_0x28c279[_0x250f87(0x140)],'redirect':'manual'});clearTimeout(_0x223a12);if(_0x56db40['status']<0x190)return{'ok':!![]};return{'ok':![],'error':_0x250f87(0xdd)+_0x56db40['status']};}catch(_0x30c994){const _0x1a4f51=_0x30c994,_0x3340b9=_0x1a4f51['message']||String(_0x30c994),_0x493c5d=_0x3340b9[_0x250f87(0xef)](_0x250f87(0x108))||_0x1a4f51['name']==='TypeError'||_0x3340b9['includes'](_0x250f87(0xe8));return{'ok':![],'error':_0x3340b9,'isProtocolError':_0x493c5d};}}export async function addEnv(_0x37f43d,_0x5c6a21={},_0x11cd17){const _0x17516d=_0x30cd,_0x204b39={'qhUyY':_0x17516d(0xfd),'xvlQr':function(_0x3973f0){return _0x3973f0();},'iDSNA':function(_0x42a240,_0x24c859){return _0x42a240!==_0x24c859;},'mZyRf':'--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','aQBWp':_0x17516d(0xed),'EIqkT':_0x17516d(0xfc),'JqhXr':function(_0xe760d1,_0x629581){return _0xe760d1===_0x629581;},'bkoBa':'legacy','RCTHk':_0x17516d(0x113),'iTZJP':'confirm','bGHTr':'Aborted.','QIvXW':_0x17516d(0x100),'NIIwc':_0x17516d(0xe0),'oqFaa':_0x17516d(0x10a),'XYGhm':'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','cwdty':function(_0x3eeb2d,_0x45dcf5){return _0x3eeb2d||_0x45dcf5;},'ymtin':function(_0x5f3859,_0x9e6752){return _0x5f3859(_0x9e6752);},'seweo':_0x17516d(0xec),'ncqCL':_0x17516d(0x14b),'pZYVM':'Continue\x20anyway','jLmYj':_0x17516d(0x129),'TDwGN':'url_setup','ZBuhp':function(_0x1524ca,_0x1db5c3,_0xd559fd){return _0x1524ca(_0x1db5c3,_0xd559fd);},'fViUi':'browser_auth','edmkO':'\x0a๐Ÿ“‹\x20Authentication\x20Setup','MIGcg':'\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.','sxmoa':function(_0x52f413,_0x15bcfd){return _0x52f413>_0x15bcfd;},'TbVLJ':function(_0x16528b,_0x1f7d7f){return _0x16528b(_0x1f7d7f);},'XThMb':_0x17516d(0x122),'afkqo':'This\x20can\x20happen\x20due\x20to\x20a\x20browser\x20compatibility\x20issue\x20on\x20some\x20systems.\x0a','oUpFx':_0x17516d(0x11c),'eKGFJ':_0x17516d(0x145),'FXMKa':_0x17516d(0x12e),'ODCiU':_0x17516d(0x14d),'OoZij':function(_0x5713f7,_0x26f11b,_0x12891e){return _0x5713f7(_0x26f11b,_0x12891e);},'aHffL':function(_0x4a64de,_0x598f81,_0x4a42ca){return _0x4a64de(_0x598f81,_0x4a42ca);},'PfJrW':function(_0x476f03,_0x48058c){return _0x476f03+_0x48058c;},'LUNUh':function(_0x5bd7b6,_0x98cb14){return _0x5bd7b6(_0x98cb14);},'LEiEV':_0x17516d(0xf2),'kbmKB':function(_0x3a321e,_0x24195e,_0x296760){return _0x3a321e(_0x24195e,_0x296760);},'TboFc':function(_0x26b0a0,_0x4fb861,_0xa07cfe){return _0x26b0a0(_0x4fb861,_0xa07cfe);},'IEPmJ':function(_0x160a14,_0x39a02d,_0x27bbf7){return _0x160a14(_0x39a02d,_0x27bbf7);},'LOmqj':_0x17516d(0xeb),'wVWSN':'config_write','ShWYD':function(_0x2cbe44,_0xbd988c,_0x4988f2){return _0x2cbe44(_0xbd988c,_0x4988f2);}},_0x246945=_0x5c6a21['ci']??![],_0x20a4fc=_0x246945?'ci':_0x204b39[_0x17516d(0xe7)],_0x1939c8=join(getRangerDir(),_0x20a4fc,_0x37f43d),_0x61bd8d=join(_0x204b39[_0x17516d(0xde)](getRangerDir),_0x20a4fc);if(_0x204b39['iDSNA'](_0x5c6a21[_0x17516d(0x13d)],undefined)&&_0x5c6a21[_0x17516d(0x13d)]['trim']()==='')throw new Error(_0x204b39['mZyRf']);if(_0x5c6a21['cdpEndpoint']&&_0x5c6a21[_0x17516d(0x121)])throw new Error(_0x204b39[_0x17516d(0x134)]);if(_0x5c6a21[_0x17516d(0x13d)]&&_0x5c6a21['ci'])throw new Error(_0x17516d(0xe3));const _0x35d7e0=Boolean(_0x5c6a21[_0x17516d(0x13d)]),_0x2f038f=!_0x5c6a21[_0x17516d(0x148)]&&!_0x35d7e0,_0x2f87a6=process[_0x17516d(0x133)][_0x17516d(0xdf)]&&process[_0x17516d(0x114)]['isTTY'];if(!_0x2f87a6&&!_0x5c6a21[_0x17516d(0x121)]&&!_0x35d7e0)throw new Error(_0x204b39[_0x17516d(0x123)]);const _0x4ccf82=findExistingEnv(_0x37f43d);let _0x1242c0=null;if(_0x4ccf82){if(!_0x2f87a6)_0x1242c0=_0x4ccf82;else{if(_0x4ccf82['location']===_0x20a4fc){const {overwrite:_0x309748}=await _0x375950['prompt']([{'type':'confirm','name':'overwrite','message':_0x17516d(0xe1)+_0x37f43d+'\x22\x20already\x20exists.\x20Overwrite?','default':![]}]);if(!_0x309748){console[_0x17516d(0xda)](_0x17516d(0x13e));return;}_0x1242c0=_0x4ccf82;}else{const _0x57301a=_0x204b39['JqhXr'](_0x4ccf82[_0x17516d(0xe9)],_0x204b39['bkoBa'])?_0x204b39['RCTHk']:_0x4ccf82['location'];console['error'](_0x17516d(0x142)+_0x37f43d+_0x17516d(0x12a)+_0x57301a+':\x20'+_0x4ccf82[_0x17516d(0x138)]),console[_0x17516d(0x127)](_0x17516d(0xdb)+_0x20a4fc+'\x20would\x20shadow\x20the\x20existing\x20profile.');const {shouldReplace:_0x4cfee3}=await _0x375950[_0x17516d(0xfb)]([{'type':_0x204b39[_0x17516d(0x14a)],'name':'shouldReplace','message':'Delete\x20existing\x20and\x20create\x20new\x20in\x20'+_0x20a4fc+'?','default':![]}]);if(!_0x4cfee3){console['log'](_0x204b39['bGHTr']);return;}_0x1242c0=_0x4ccf82;}}}_0x11cd17?.[_0x17516d(0x116)](_0x17516d(0x128));let _0x3c7702='';if(_0x35d7e0)console[_0x17516d(0xda)](_0x17516d(0xff)),console['log'](_0x17516d(0xf9)+_0x5c6a21[_0x17516d(0x13d)]),console[_0x17516d(0xda)](_0x17516d(0x106));else{if(_0x5c6a21[_0x17516d(0x121)]){_0x3c7702=_0x5c6a21[_0x17516d(0x121)];const _0x167d4a=await checkUrlReachability(_0x3c7702);if(!_0x167d4a['ok']&&!_0x5c6a21['force'])throw new Error(_0x17516d(0x104)+_0x3c7702+':\x20'+_0x167d4a[_0x17516d(0x127)]+_0x17516d(0x101));!_0x167d4a['ok']&&_0x5c6a21['force']&&console[_0x17516d(0xda)](_0x17516d(0xe4)+_0x3c7702+':\x20'+_0x167d4a[_0x17516d(0x127)]+_0x17516d(0x144));}else{console['log'](_0x204b39['QIvXW']),console[_0x17516d(0xda)](_0x204b39['NIIwc']),console['log'](_0x17516d(0x10b));let _0x2830c0=![];while(!![]){const _0x329dae=await _0x375950['prompt']([{'type':_0x204b39['oqFaa'],'name':_0x17516d(0x13a),'message':_0x2830c0?'Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):':_0x204b39[_0x17516d(0x107)],'default':_0x204b39['cwdty'](_0x3c7702,_0x17516d(0x13f))}]);_0x3c7702=_0x329dae[_0x17516d(0x13a)];const _0x154a63=await _0x204b39['ymtin'](checkUrlReachability,_0x3c7702);if(_0x154a63['ok'])break;const _0x1f400c=/^[a-zA-Z][\w+.-]*:\/\//['test'](_0x3c7702),_0x547ac5=_0x154a63[_0x17516d(0x136)]&&!_0x1f400c,_0x2ff589=_0x547ac5?_0x17516d(0xf7)+_0x3c7702:null;_0x2830c0=!![],console[_0x17516d(0xda)](_0x17516d(0x112)+_0x3c7702+':\x20'+_0x154a63[_0x17516d(0x127)]);_0x2ff589&&console['log'](_0x17516d(0x14c)+_0x2ff589+'?');const {action:_0x46ceef}=await _0x375950[_0x17516d(0xfb)]([{'type':_0x204b39['seweo'],'name':_0x17516d(0x126),'message':_0x204b39['ncqCL'],'choices':[..._0x2ff589?[{'name':'Use\x20'+_0x2ff589,'value':'use_suggestion'}]:[],{'name':_0x17516d(0xfa),'value':_0x17516d(0x11f)},{'name':_0x204b39[_0x17516d(0x141)],'value':'continue'}]}]);if(_0x204b39['JqhXr'](_0x46ceef,'use_suggestion')&&_0x2ff589){_0x3c7702=_0x2ff589;const _0x45bc80=await checkUrlReachability(_0x3c7702);if(_0x45bc80['ok'])break;console['log'](_0x17516d(0x105)+_0x3c7702+':\x20'+_0x45bc80[_0x17516d(0x127)]);}else{if(_0x204b39[_0x17516d(0xd9)](_0x46ceef,_0x204b39['jLmYj']))break;}}}}_0x11cd17?.['trackPhaseEnd'](_0x204b39[_0x17516d(0xee)]),await mkdir(_0x61bd8d,{'recursive':!![]});const _0x218495=await mkdtemp(join(_0x61bd8d,'.tmp-'+_0x37f43d+'-')),_0x3151f0=_0x204b39['ZBuhp'](join,_0x218495,'auth.json');try{if(_0x2f038f){_0x11cd17?.[_0x17516d(0x116)](_0x204b39[_0x17516d(0xe5)]),console[_0x17516d(0xda)](_0x204b39['edmkO']),console['log']('\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.'),console['log'](_0x204b39[_0x17516d(0xf6)]);!_0x2f87a6?(console[_0x17516d(0xda)](_0x17516d(0x131)),console[_0x17516d(0xda)](_0x17516d(0x146))):console['log']('');await new Promise(_0x1aa42f=>setTimeout(_0x1aa42f,0xbb8));const _0x2f2969=[];_0x5c6a21[_0x17516d(0xf4)]&&_0x2f2969[_0x17516d(0x139)](_0x17516d(0xe2));const _0x4d6513=await chromium['launch']({'headless':![],..._0x204b39['sxmoa'](_0x2f2969[_0x17516d(0xfe)],0x0)?{'args':_0x2f2969}:{}});try{const _0x420168=await _0x4d6513[_0x17516d(0x110)]();await _0x204b39['TbVLJ'](addProfileSetupBanner,_0x420168);const _0x52a840=await _0x420168[_0x17516d(0x13b)]();await _0x52a840['goto'](_0x3c7702||'about:blank');let _0x3a3326=![];await new Promise(_0x35d7b5=>{const _0x587fbf={'NxhPz':function(_0x13f533){return _0x13f533();}};_0x52a840['on']('close',async()=>{const _0x56c60a=_0x30cd;try{console[_0x56c60a(0xda)]('Saving\x20authentication\x20state...'),await _0x420168[_0x56c60a(0xe6)]({'path':_0x3151f0}),_0x3a3326=!![];}catch{}_0x587fbf['NxhPz'](_0x35d7b5);});});if(!_0x3a3326){console[_0x17516d(0xda)](_0x204b39[_0x17516d(0xdc)]);!_0x5c6a21[_0x17516d(0xf4)]&&(console['log'](_0x204b39[_0x17516d(0xf8)]),console['log'](_0x204b39[_0x17516d(0xf3)]),console[_0x17516d(0xda)](_0x17516d(0x118)+_0x37f43d+_0x17516d(0x12b)),console[_0x17516d(0xda)](_0x17516d(0x118)+_0x37f43d+_0x17516d(0x115)));throw new Error('Browser\x20closed\x20before\x20authentication\x20was\x20saved.');}}finally{await _0x4d6513['close']()[_0x17516d(0x103)](()=>{});}if(_0x246945){const _0x2ce56f=await _0x204b39['ZBuhp'](readFile,_0x3151f0,_0x204b39['eKGFJ']),_0x27f515=await getToken();if(!_0x27f515){console[_0x17516d(0x127)](_0x204b39['FXMKa']),await unlink(_0x3151f0)[_0x17516d(0x103)](()=>{});throw new Error(_0x204b39['ODCiU']);}else{const _0x23f32a=_0x204b39[_0x17516d(0x147)](encrypt,_0x2ce56f,_0x27f515);await _0x204b39[_0x17516d(0x124)](writeFile,_0x204b39[_0x17516d(0x12f)](_0x3151f0,'.enc'),_0x23f32a),await _0x204b39['LUNUh'](unlink,_0x3151f0),console['log']('โœ“\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x3151f0+'.enc'),console[_0x17516d(0xda)](_0x17516d(0x149)),console[_0x17516d(0xda)](_0x17516d(0x10d));}}else console[_0x17516d(0xda)](_0x17516d(0x120)+_0x3151f0);_0x11cd17?.[_0x17516d(0x125)](_0x204b39['fViUi']);}_0x11cd17?.[_0x17516d(0x116)](_0x17516d(0x10f));const _0x39f39c={};_0x3c7702&&(_0x39f39c[_0x17516d(0x13a)]=_0x3c7702);_0x5c6a21['cdpEndpoint']&&(_0x39f39c['cdpEndpoint']=_0x5c6a21['cdpEndpoint'],_0x39f39c[_0x17516d(0x102)]=!![]);_0x5c6a21['allowInsecureLocalhost']&&(_0x39f39c['allowInsecureLocalhost']=!![]);_0x5c6a21[_0x17516d(0xf4)]&&(_0x39f39c['safeMode']=!![]);await _0x204b39['aHffL'](writeFile,join(_0x218495,_0x204b39[_0x17516d(0x11e)]),JSON[_0x17516d(0x143)](_0x39f39c,null,0x2)),console[_0x17516d(0xda)](_0x17516d(0x12d)+_0x204b39[_0x17516d(0xf1)](join,_0x1939c8,_0x17516d(0xf2)));if(_0x204b39[_0x17516d(0xd9)](_0x1242c0?.['location'],_0x20a4fc)){const _0x1617ff=_0x1242c0['path']+'.backup-'+Date['now']();await rename(_0x1242c0['path'],_0x1617ff);try{await rename(_0x218495,_0x1939c8);}catch(_0x26fd7e){await _0x204b39[_0x17516d(0x119)](rename,_0x1617ff,_0x1242c0['path']);throw _0x26fd7e;}try{await rm(_0x1617ff,{'recursive':!![]});}catch{console[_0x17516d(0xda)](_0x17516d(0xf0)+_0x1617ff);}}else{await _0x204b39['IEPmJ'](rename,_0x218495,_0x1939c8);if(_0x1242c0)try{await rm(_0x1242c0[_0x17516d(0x138)],{'recursive':!![]}),console[_0x17516d(0xda)]('Removed\x20existing\x20profile\x20at\x20'+_0x1242c0[_0x17516d(0x138)]);}catch{console[_0x17516d(0xda)](_0x17516d(0x111)+_0x1242c0[_0x17516d(0x138)]);}}try{await writeActiveProfileName(_0x37f43d),console['log'](_0x17516d(0x10e)+_0x37f43d);}catch{console['log'](_0x204b39['LOmqj']);}_0x11cd17?.['trackPhaseEnd'](_0x204b39['wVWSN']),console[_0x17516d(0xda)](_0x17516d(0x11b)+_0x37f43d+_0x17516d(0x132));}catch(_0x4618c5){await _0x204b39['ShWYD'](rm,_0x218495,{'recursive':!![],'force':!![]});throw _0x4618c5;}}
@@ -1 +1 @@
1
- (function(_0x3ce45a,_0x1f4f89){const _0x1c975e=_0x4f3b,_0x12eeca=_0x3ce45a();while(!![]){try{const _0x1d644c=parseInt(_0x1c975e(0x11c))/0x1+-parseInt(_0x1c975e(0x114))/0x2*(-parseInt(_0x1c975e(0x111))/0x3)+parseInt(_0x1c975e(0x11d))/0x4+-parseInt(_0x1c975e(0x115))/0x5*(-parseInt(_0x1c975e(0x10c))/0x6)+parseInt(_0x1c975e(0x113))/0x7+-parseInt(_0x1c975e(0x10d))/0x8*(parseInt(_0x1c975e(0x119))/0x9)+-parseInt(_0x1c975e(0x10b))/0xa;if(_0x1d644c===_0x1f4f89)break;else _0x12eeca['push'](_0x12eeca['shift']());}catch(_0x5ee5b3){_0x12eeca['push'](_0x12eeca['shift']());}}}(_0x2670,0xc7702));import{readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{encrypt}from'./utils/crypto.js';function _0x2670(){const _0x49c639=['5554308hoTeSD','auth.json','No\x20auth.json\x20found\x20at\x20','Wnllk','20126330Tdavyv','13206wfDDfU','8NwpuSu','qqrVR','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','.enc','63PwlVtk','utf-8','2864302FavwYE','66986qVMlpe','560dSfRwP','\x0aโœ“\x20Encrypted\x20auth\x20saved\x20to:\x20','aClBQ','MnNoL','5796963HouCal','log','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','726010qLXHjs'];_0x2670=function(){return _0x49c639;};return _0x2670();}function _0x4f3b(_0x42fd1c,_0x29a550){_0x42fd1c=_0x42fd1c-0x10b;const _0x2670d5=_0x2670();let _0x4f3b33=_0x2670d5[_0x42fd1c];return _0x4f3b33;}import{getToken}from'./utils/keychain.js';import{getEnvDir}from'./utils/settings.js';export async function authEncrypt(_0x3f0b28){const _0x1ff5a1=_0x4f3b,_0x4c94fc={'TykGj':function(_0x2bad2e,_0x3d84c1){return _0x2bad2e(_0x3d84c1);},'aClBQ':function(_0x3a344e,_0x7d8f66,_0x18fedb){return _0x3a344e(_0x7d8f66,_0x18fedb);},'MnNoL':function(_0x42d321,_0xd73194){return _0x42d321+_0xd73194;},'mluqj':function(_0x27fbd7,_0x420f77){return _0x27fbd7(_0x420f77);},'qEJqM':function(_0xf9179f){return _0xf9179f();},'qqrVR':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','fDMFU':function(_0x47d15a,_0x286bd6,_0xff8af7){return _0x47d15a(_0x286bd6,_0xff8af7);},'Wnllk':_0x1ff5a1(0x10f),'GvVur':_0x1ff5a1(0x11b)},_0x5a31eb=_0x4c94fc['TykGj'](getEnvDir,_0x3f0b28),_0xd889d=_0x4c94fc[_0x1ff5a1(0x117)](join,_0x5a31eb,_0x1ff5a1(0x11e)),_0x4a9264=_0x4c94fc[_0x1ff5a1(0x118)](_0xd889d,_0x1ff5a1(0x110));if(!_0x4c94fc['mluqj'](existsSync,_0x5a31eb))throw new Error('Profile\x20\x22'+_0x3f0b28+'\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0x3f0b28);if(!existsSync(_0xd889d))throw new Error(_0x1ff5a1(0x11f)+_0xd889d+'.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update');const _0x588d4f=await _0x4c94fc['qEJqM'](getToken);if(!_0x588d4f)throw new Error(_0x4c94fc[_0x1ff5a1(0x10e)]);const _0x5ed941=await _0x4c94fc[_0x1ff5a1(0x117)](readFile,_0xd889d,_0x1ff5a1(0x112)),_0xbd0742=_0x4c94fc['fDMFU'](encrypt,_0x5ed941,_0x588d4f);await writeFile(_0x4a9264,_0xbd0742),console[_0x1ff5a1(0x11a)](_0x1ff5a1(0x116)+_0x4a9264),console[_0x1ff5a1(0x11a)](_0x4c94fc[_0x1ff5a1(0x120)]),console[_0x1ff5a1(0x11a)](_0x4c94fc['GvVur']),_0x4c94fc['mluqj'](existsSync,_0x4a9264)&&(console['log']('\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.'),console['log']('\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.'));}
1
+ (function(_0x3bd769,_0x416f8c){const _0x2c248b=_0x4a64,_0x356242=_0x3bd769();while(!![]){try{const _0x515f82=parseInt(_0x2c248b(0x14b))/0x1*(-parseInt(_0x2c248b(0x13c))/0x2)+-parseInt(_0x2c248b(0x139))/0x3+parseInt(_0x2c248b(0x13a))/0x4*(parseInt(_0x2c248b(0x146))/0x5)+-parseInt(_0x2c248b(0x14e))/0x6*(-parseInt(_0x2c248b(0x13b))/0x7)+-parseInt(_0x2c248b(0x142))/0x8+parseInt(_0x2c248b(0x14a))/0x9*(-parseInt(_0x2c248b(0x138))/0xa)+parseInt(_0x2c248b(0x14d))/0xb;if(_0x515f82===_0x416f8c)break;else _0x356242['push'](_0x356242['shift']());}catch(_0x7b6e74){_0x356242['push'](_0x356242['shift']());}}}(_0x2bc4,0xc7adb));function _0x4a64(_0x358714,_0x253685){_0x358714=_0x358714-0x138;const _0x2bc4e4=_0x2bc4();let _0x4a6461=_0x2bc4e4[_0x358714];return _0x4a6461;}import{readFile,writeFile}from'fs/promises';function _0x2bc4(){const _0xe7463a=['\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.','4450220NMRJqb','oxWqE','Profile\x20\x22','.enc','741681yFAwEX','103qcLlLt','log','27073332yULIdN','42xaUluk','10IDrWFU','4585233gMGIxu','4EqDfJR','898051vKgujZ','12982xTSpUR','bPWtn','dSAoS','\x0aโœ“\x20Encrypted\x20auth\x20saved\x20to:\x20','.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update','lRDFQ','9216248eVxoxK','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','dyVtg'];_0x2bc4=function(){return _0xe7463a;};return _0x2bc4();}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(_0xc6f8cd){const _0x287c60=_0x4a64,_0x43901c={'dSAoS':function(_0x16966b,_0x4cba93){return _0x16966b(_0x4cba93);},'lRDFQ':function(_0xeb786e,_0x326b10,_0x3566ed){return _0xeb786e(_0x326b10,_0x3566ed);},'fYcaO':'auth.json','dyVtg':function(_0x4bf837,_0x4aec9b){return _0x4bf837+_0x4aec9b;},'oxWqE':_0x287c60(0x149),'bPWtn':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','VSoxK':_0x287c60(0x143)},_0x425d1b=_0x43901c['dSAoS'](getEnvDir,_0xc6f8cd),_0x5c6094=_0x43901c['lRDFQ'](join,_0x425d1b,_0x43901c['fYcaO']),_0x1d9e33=_0x43901c[_0x287c60(0x144)](_0x5c6094,_0x43901c[_0x287c60(0x147)]);if(!_0x43901c[_0x287c60(0x13e)](existsSync,_0x425d1b))throw new Error(_0x287c60(0x148)+_0xc6f8cd+'\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0xc6f8cd);if(!existsSync(_0x5c6094))throw new Error('No\x20auth.json\x20found\x20at\x20'+_0x5c6094+_0x287c60(0x140));const _0x5860f3=await getToken();if(!_0x5860f3)throw new Error(_0x43901c[_0x287c60(0x13d)]);const _0x2da5af=await readFile(_0x5c6094,'utf-8'),_0x426bb9=_0x43901c[_0x287c60(0x141)](encrypt,_0x2da5af,_0x5860f3);await writeFile(_0x1d9e33,_0x426bb9),console['log'](_0x287c60(0x13f)+_0x1d9e33),console[_0x287c60(0x14c)]('\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.'),console[_0x287c60(0x14c)](_0x43901c['VSoxK']),_0x43901c[_0x287c60(0x13e)](existsSync,_0x1d9e33)&&(console[_0x287c60(0x14c)]('\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.'),console['log'](_0x287c60(0x145)));}
@@ -1 +1 @@
1
- const _0x47d0c5=_0x111e;(function(_0x2fb18f,_0x521402){const _0x45b3d5=_0x111e,_0x726a4f=_0x2fb18f();while(!![]){try{const _0x418b34=-parseInt(_0x45b3d5(0xd9))/0x1*(parseInt(_0x45b3d5(0xcf))/0x2)+-parseInt(_0x45b3d5(0xb0))/0x3+parseInt(_0x45b3d5(0xe4))/0x4*(-parseInt(_0x45b3d5(0xc5))/0x5)+parseInt(_0x45b3d5(0xda))/0x6*(parseInt(_0x45b3d5(0xd4))/0x7)+-parseInt(_0x45b3d5(0xc3))/0x8*(-parseInt(_0x45b3d5(0xdf))/0x9)+parseInt(_0x45b3d5(0xc6))/0xa*(-parseInt(_0x45b3d5(0xd0))/0xb)+parseInt(_0x45b3d5(0xc9))/0xc;if(_0x418b34===_0x521402)break;else _0x726a4f['push'](_0x726a4f['shift']());}catch(_0x35a641){_0x726a4f['push'](_0x726a4f['shift']());}}}(_0x4996,0xa2583));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';function _0x111e(_0x1aa4be,_0x33ddd1){_0x1aa4be=_0x1aa4be-0xaf;const _0x499630=_0x4996();let _0x111e47=_0x499630[_0x1aa4be];return _0x111e47;}import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=['ranger','feature-tracker','bug-bash',_0x47d0c5(0xe5)],opencodePluginName=_0x47d0c5(0xb6);function _0x4996(){const _0x45dd1d=['โœ“\x20Removed\x20trailhead\x20marketplace','116553NsoprG','โœ“\x20Removed\x20user\x20skill:\x20','Fktqy','length','uninstall','vkFuP','@ranger-testing/opencode-plugin','parse','stringify','claude','tPWnE','\x0a๐Ÿงน\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','NUbBs','โœ“\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','isArray','yQsrE','user','error','NWmjg','1941736cGrerv','KCOQe','100faJjWB','6564070sVDBhJ','close','BCIuQ','33738180nSlqRp','marketplace','remove','plugin','efZYI','uudsz','58eFDayF','22wlANTb','โœ“\x20Removed\x20OpenCode\x20project\x20skill:\x20','project','โœ“\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','20993tqyEAV','dBpaO','mvoYR','rijyR','Nothing\x20to\x20clean\x20up.\x0a','33643GZYDGv','564XzQRff','โœ“\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','filter','โœ“\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','gCOLm','18HzkZyV','nKIuQ','--scope','voNsl','McEIC','117316oFiTfN','e2e-test-recommender','log','VhxXu'];_0x4996=function(){return _0x45dd1d;};return _0x4996();}function parseJsonc(_0x41711a){const _0x2147c3=_0x47d0c5,_0x47916f=_0x41711a['replace'](/\/\*[\s\S]*?\*\//g,''),_0x2b4d3e=_0x47916f['replace'](/^\s*\/\/.*$/gm,''),_0x120fa8=_0x2b4d3e['replace'](/,\s*([}\]])/g,'$1');return JSON[_0x2147c3(0xb7)](_0x120fa8);}async function removeOpencodePluginConfig(_0x1b8703){const _0x378d85=_0x47d0c5,_0x495180={'JKxwe':function(_0x1e5b17,_0x5d4a9c){return _0x1e5b17!==_0x5d4a9c;},'LHkLp':function(_0x439843,_0x422568){return _0x439843(_0x422568);},'CxyjQ':'utf-8','efZYI':function(_0x5d240e,_0x952ea2){return _0x5d240e(_0x952ea2);},'BCIuQ':function(_0x276dec,_0x519dde){return _0x276dec===_0x519dde;},'NWmjg':function(_0x3f672e,_0x560c4f){return _0x3f672e+_0x560c4f;}};if(!_0x495180['LHkLp'](existsSync,_0x1b8703))return![];let _0x11408a;try{const _0xaad0f3=await readFile(_0x1b8703,_0x495180['CxyjQ']);_0x11408a=_0x495180[_0x378d85(0xcd)](parseJsonc,_0xaad0f3);}catch{return![];}const _0x3aab75=Array[_0x378d85(0xbe)](_0x11408a[_0x378d85(0xcc)])?_0x11408a['plugin']:[];if(_0x495180[_0x378d85(0xc8)](_0x3aab75[_0x378d85(0xb3)],0x0))return![];const _0x1992d7=_0x3aab75[_0x378d85(0xdc)](_0x4453c8=>{if(_0x495180['JKxwe'](typeof _0x4453c8,'string'))return!![];return _0x495180['JKxwe'](_0x4453c8,opencodePluginName);});if(_0x495180[_0x378d85(0xc8)](_0x1992d7[_0x378d85(0xb3)],_0x3aab75['length']))return![];return _0x1992d7[_0x378d85(0xb3)]===0x0?delete _0x11408a['plugin']:_0x11408a['plugin']=_0x1992d7,await writeFile(_0x1b8703,_0x495180[_0x378d85(0xc2)](JSON[_0x378d85(0xb8)](_0x11408a,null,0x2),'\x0a')),!![];}async function uninstallClaudePlugin(_0x57e6a0){const _0x1fab63=_0x47d0c5,_0x31ec46={'RquDa':_0x1fab63(0xb4),'nKIuQ':_0x1fab63(0xe1),'yQsrE':'claude','voNsl':'pipe','Fktqy':function(_0x1e8821,_0xf3bf68){return _0x1e8821===_0xf3bf68;},'TQinG':_0x1fab63(0xc7)};return new Promise(_0x3dd63d=>{const _0x1fc128=_0x1fab63,_0x4c3dc0={'NEGMk':function(_0x12a53d,_0x81850a){return _0x12a53d(_0x81850a);}},_0x35d515=[_0x1fc128(0xcc),_0x31ec46['RquDa'],'ranger@trailhead'];_0x57e6a0&&_0x35d515['push'](_0x31ec46[_0x1fc128(0xe0)],_0x57e6a0);const _0x5bc69d=spawn(_0x31ec46[_0x1fc128(0xbf)],_0x35d515,{'stdio':_0x31ec46[_0x1fc128(0xe2)],'shell':_0x31ec46[_0x1fc128(0xb2)](process['platform'],'win32')});_0x5bc69d['on'](_0x31ec46['TQinG'],_0xc18ec9=>{_0x4c3dc0['NEGMk'](_0x3dd63d,_0xc18ec9===0x0);}),_0x5bc69d['on'](_0x1fc128(0xc1),()=>{_0x3dd63d(![]);});});}async function removeMarketplace(){const _0x479850=_0x47d0c5,_0x510419={'rijyR':_0x479850(0xb9),'McEIC':'plugin','dBpaO':'trailhead'};return new Promise(_0xadc5e3=>{const _0x225e42=_0x479850,_0x363643={'ldfZt':function(_0x50175e,_0x54d0e6){return _0x50175e(_0x54d0e6);}},_0x29d240=spawn(_0x510419[_0x225e42(0xd7)],[_0x510419[_0x225e42(0xe3)],_0x225e42(0xca),_0x225e42(0xcb),_0x510419[_0x225e42(0xd5)]],{'stdio':'pipe','shell':process['platform']==='win32'});_0x29d240['on'](_0x225e42(0xc7),_0x280361=>{_0x363643['ldfZt'](_0xadc5e3,_0x280361===0x0);}),_0x29d240['on'](_0x225e42(0xc1),()=>{_0x363643['ldfZt'](_0xadc5e3,![]);});});}export async function clean(){const _0x137e6e=_0x47d0c5,_0x5ea507={'EXpql':function(_0x409e8e){return _0x409e8e();},'QlmwH':'โœ“\x20Removed\x20stored\x20credentials','tPWnE':function(_0x5c4e76,_0x13a191){return _0x5c4e76(_0x13a191);},'bbMfR':function(_0x517b0c,_0x43da1f,_0x4b77a7){return _0x517b0c(_0x43da1f,_0x4b77a7);},'gCOLm':function(_0x30d628){return _0x30d628();},'hnjYm':function(_0x5374dc,_0x51fcf1,_0x4a9dff){return _0x5374dc(_0x51fcf1,_0x4a9dff);},'aAuvE':function(_0x55f8b9,_0x3c7286){return _0x55f8b9(_0x3c7286);},'uudsz':function(_0x42b161,_0x2584cb){return _0x42b161(_0x2584cb);},'zAttw':function(_0xd41b17,_0x4c7d3e){return _0xd41b17(_0x4c7d3e);},'PNUVK':function(_0x562d1b,_0x1fbfd9){return _0x562d1b(_0x1fbfd9);},'ytiTZ':'user','vkFuP':function(_0x16760b,_0x694295,_0x37330a){return _0x16760b(_0x694295,_0x37330a);},'mvoYR':function(_0x1ebb28,_0x29a227){return _0x1ebb28(_0x29a227);},'cIdvn':_0x137e6e(0xd2),'VhxXu':'opencode.json','NUbBs':function(_0x2c5991,_0xfd8eb4){return _0x2c5991(_0xfd8eb4);},'KCOQe':_0x137e6e(0xd3),'hrmZO':function(_0x1a9077){return _0x1a9077();},'SkOad':_0x137e6e(0xbd),'rVwGR':function(_0x1fb16d){return _0x1fb16d();},'JMPRX':_0x137e6e(0xaf),'otXie':_0x137e6e(0xd8)};console['log'](_0x137e6e(0xbb));let _0x2011c9=![];try{await _0x5ea507['EXpql'](deleteAllCredentials),console[_0x137e6e(0xe6)](_0x5ea507['QlmwH']),_0x2011c9=!![];}catch{}const _0x5b6d78=getCacheFile();_0x5ea507['tPWnE'](existsSync,_0x5b6d78)&&(await rm(_0x5b6d78),_0x2011c9=!![]);const _0xe1fb12=getRangerDir();existsSync(_0xe1fb12)&&(await _0x5ea507['bbMfR'](rm,_0xe1fb12,{'recursive':!![]}),console[_0x137e6e(0xe6)]('โœ“\x20Removed\x20.ranger/\x20directory'),_0x2011c9=!![]);const _0x476a1b=_0x5ea507[_0x137e6e(0xde)](getProjectSkillsDir);for(const _0x31aed1 of skillsToRemove){const _0x323e3b=_0x5ea507['hnjYm'](join,_0x476a1b,_0x31aed1);_0x5ea507['aAuvE'](existsSync,_0x323e3b)&&(await rm(_0x323e3b,{'recursive':!![]}),console['log']('โœ“\x20Removed\x20project\x20skill:\x20'+_0x31aed1),_0x2011c9=!![]);}const _0x3390c5=_0x5ea507[_0x137e6e(0xde)](getUserSkillsDir);for(const _0x4fd3ec of skillsToRemove){const _0x277e65=join(_0x3390c5,_0x4fd3ec);existsSync(_0x277e65)&&(await rm(_0x277e65,{'recursive':!![]}),console[_0x137e6e(0xe6)](_0x137e6e(0xb1)+_0x4fd3ec),_0x2011c9=!![]);}const _0x3a86c1=_0x5ea507[_0x137e6e(0xce)](getOpencodeSkillsDir,'project');for(const _0x2467ff of skillsToRemove){const _0x304113=join(_0x3a86c1,_0x2467ff);_0x5ea507['zAttw'](existsSync,_0x304113)&&(await rm(_0x304113,{'recursive':!![]}),console[_0x137e6e(0xe6)](_0x137e6e(0xd1)+_0x2467ff),_0x2011c9=!![]);}const _0x1d6555=_0x5ea507['PNUVK'](getOpencodeSkillsDir,_0x5ea507['ytiTZ']);for(const _0x1b5581 of skillsToRemove){const _0x15c3fd=_0x5ea507[_0x137e6e(0xb5)](join,_0x1d6555,_0x1b5581);_0x5ea507[_0x137e6e(0xd6)](existsSync,_0x15c3fd)&&(await _0x5ea507[_0x137e6e(0xb5)](rm,_0x15c3fd,{'recursive':!![]}),console['log']('โœ“\x20Removed\x20OpenCode\x20user\x20skill:\x20'+_0x1b5581),_0x2011c9=!![]);}const _0x575a68=join(_0x5ea507[_0x137e6e(0xba)](getOpencodeConfigDir,_0x5ea507['cIdvn']),_0x5ea507[_0x137e6e(0xe7)]);await _0x5ea507[_0x137e6e(0xbc)](removeOpencodePluginConfig,_0x575a68)&&(console['log'](_0x137e6e(0xdb)),_0x2011c9=!![]);const _0x4c1402=join(getOpencodeConfigDir(_0x137e6e(0xc0)),_0x5ea507[_0x137e6e(0xe7)]);await removeOpencodePluginConfig(_0x4c1402)&&(console[_0x137e6e(0xe6)](_0x5ea507[_0x137e6e(0xc4)]),_0x2011c9=!![]);const _0x2ec6d4=await _0x5ea507['hrmZO'](uninstallClaudePlugin);_0x2ec6d4&&(console[_0x137e6e(0xe6)](_0x5ea507['SkOad']),_0x2011c9=!![]);const _0x324329=await uninstallClaudePlugin(_0x137e6e(0xd2));_0x324329&&(console[_0x137e6e(0xe6)](_0x137e6e(0xdd)),_0x2011c9=!![]);const _0x42591e=await _0x5ea507['rVwGR'](removeMarketplace);_0x42591e&&(console[_0x137e6e(0xe6)](_0x5ea507['JMPRX']),_0x2011c9=!![]),_0x2011c9?console[_0x137e6e(0xe6)]('\x0aโœ…\x20Cleanup\x20complete!\x0a'):console['log'](_0x5ea507['otXie']);}
1
+ const _0x34de3f=_0x4f38;function _0x4f38(_0x42e372,_0x357d8e){_0x42e372=_0x42e372-0x107;const _0x3cf72a=_0x3cf7();let _0x4f38be=_0x3cf72a[_0x42e372];return _0x4f38be;}(function(_0x2fe071,_0x115d4d){const _0x5179cc=_0x4f38,_0x22d2b=_0x2fe071();while(!![]){try{const _0x114d78=-parseInt(_0x5179cc(0x135))/0x1+parseInt(_0x5179cc(0x12e))/0x2*(parseInt(_0x5179cc(0x131))/0x3)+parseInt(_0x5179cc(0x120))/0x4*(-parseInt(_0x5179cc(0x117))/0x5)+parseInt(_0x5179cc(0x12a))/0x6*(parseInt(_0x5179cc(0x136))/0x7)+-parseInt(_0x5179cc(0x121))/0x8+parseInt(_0x5179cc(0x122))/0x9+-parseInt(_0x5179cc(0x12c))/0xa;if(_0x114d78===_0x115d4d)break;else _0x22d2b['push'](_0x22d2b['shift']());}catch(_0xb63592){_0x22d2b['push'](_0x22d2b['shift']());}}}(_0x3cf7,0x2fb31));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{spawn}from'child_process';function _0x3cf7(){const _0x593a4e=['13240rUqQQm','โœ“\x20Removed\x20.ranger/\x20directory','TFpOc','kWUQo','โœ“\x20Removed\x20OpenCode\x20user\x20skill:\x20','replace','UNjLd','ranger','log','52QqHBnH','565856GjETsV','3134268NRyVdL','platform','zaqFo','HZAkl','vRNtW','JkTIt','URmhr','plYti','545598FEgEyb','close','2404930BBDtdd','oArDg','18TqSFEZ','isArray','user','47331yEgRYy','project','kkiIA','uninstall','222018YUuTci','21HeEobD','plugin','PtNAR','โœ“\x20Removed\x20OpenCode\x20project\x20skill:\x20','HKIHv','push','PvfGl','RCPtQ','length','uXkRA','AQCbt','\x0a๐Ÿงน\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','uPNHE','claude','win32','e2e-test-recommender','pipe','pfaCc','Cljjy','โœ“\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','โœ“\x20Removed\x20user\x20skill:\x20','โœ“\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','bYnEL'];_0x3cf7=function(){return _0x593a4e;};return _0x3cf7();}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=[_0x34de3f(0x11e),'feature-tracker','bug-bash',_0x34de3f(0x10f)],opencodePluginName='@ranger-testing/opencode-plugin';function parseJsonc(_0x2848d2){const _0x531a42=_0x34de3f,_0x304d8e=_0x2848d2[_0x531a42(0x11c)](/\/\*[\s\S]*?\*\//g,''),_0x254cf4=_0x304d8e[_0x531a42(0x11c)](/^\s*\/\/.*$/gm,''),_0x54bf8c=_0x254cf4[_0x531a42(0x11c)](/,\s*([}\]])/g,'$1');return JSON['parse'](_0x54bf8c);}async function removeOpencodePluginConfig(_0xc0d541){const _0x263169=_0x34de3f,_0x50fdc8={'PtNAR':function(_0x4c2be8,_0x4e2778,_0x56d2d6){return _0x4c2be8(_0x4e2778,_0x56d2d6);},'oArDg':function(_0x22ee57,_0xc8b042){return _0x22ee57(_0xc8b042);},'pfaCc':function(_0x2174a6,_0x513d60){return _0x2174a6===_0x513d60;}};if(!existsSync(_0xc0d541))return![];let _0x565316;try{const _0xaacea5=await _0x50fdc8[_0x263169(0x138)](readFile,_0xc0d541,'utf-8');_0x565316=_0x50fdc8[_0x263169(0x12d)](parseJsonc,_0xaacea5);}catch{return![];}const _0x14427b=Array[_0x263169(0x12f)](_0x565316[_0x263169(0x137)])?_0x565316['plugin']:[];if(_0x50fdc8[_0x263169(0x111)](_0x14427b[_0x263169(0x108)],0x0))return![];const _0x5ace1f=_0x14427b['filter'](_0x4a7f42=>{if(typeof _0x4a7f42!=='string')return!![];return _0x4a7f42!==opencodePluginName;});if(_0x5ace1f[_0x263169(0x108)]===_0x14427b['length'])return![];return _0x5ace1f[_0x263169(0x108)]===0x0?delete _0x565316[_0x263169(0x137)]:_0x565316[_0x263169(0x137)]=_0x5ace1f,await writeFile(_0xc0d541,JSON['stringify'](_0x565316,null,0x2)+'\x0a'),!![];}async function uninstallClaudePlugin(_0x5d2955){const _0xd363be=_0x34de3f,_0x1f84ce={'WkeYv':function(_0x1efcad,_0x396fb5){return _0x1efcad===_0x396fb5;},'zaqFo':function(_0x1cd066,_0x33826){return _0x1cd066(_0x33826);},'YoCpi':'plugin','HKIHv':_0xd363be(0x10d),'AQCbt':function(_0xd4fcdf,_0x2ca841){return _0xd4fcdf===_0x2ca841;},'lgfIE':_0xd363be(0x10e)};return new Promise(_0x4ae7eb=>{const _0x50f4d3=_0xd363be,_0x307ea0={'dIUdn':function(_0x2d81f5,_0x2152d3){return _0x2d81f5(_0x2152d3);},'DrpmG':function(_0x44794a,_0x93d4d8){return _0x1f84ce['WkeYv'](_0x44794a,_0x93d4d8);},'kWUQo':function(_0x45d326,_0x1af80d){const _0x13d616=_0x4f38;return _0x1f84ce[_0x13d616(0x124)](_0x45d326,_0x1af80d);}},_0xfb70c8=[_0x1f84ce['YoCpi'],_0x50f4d3(0x134),'ranger@trailhead'];_0x5d2955&&_0xfb70c8[_0x50f4d3(0x13b)]('--scope',_0x5d2955);const _0x265235=spawn(_0x1f84ce[_0x50f4d3(0x13a)],_0xfb70c8,{'stdio':'pipe','shell':_0x1f84ce[_0x50f4d3(0x10a)](process['platform'],_0x1f84ce['lgfIE'])});_0x265235['on'](_0x50f4d3(0x12b),_0x590a4b=>{_0x307ea0['dIUdn'](_0x4ae7eb,_0x307ea0['DrpmG'](_0x590a4b,0x0));}),_0x265235['on']('error',()=>{const _0x35644f=_0x50f4d3;_0x307ea0[_0x35644f(0x11a)](_0x4ae7eb,![]);});});}async function removeMarketplace(){const _0x16d71e=_0x34de3f,_0x532822={'URmhr':'plugin','hlCqD':'remove','nIfRr':'trailhead','WAfNI':function(_0x46b49a,_0x2ee2e0){return _0x46b49a===_0x2ee2e0;},'GnvdW':'win32','XqhmB':_0x16d71e(0x12b)};return new Promise(_0x12898=>{const _0x4de55f=_0x16d71e,_0x188f9f={'RCPtQ':function(_0x1df90b,_0x5e27e4){return _0x1df90b(_0x5e27e4);}},_0xdd36af=spawn(_0x4de55f(0x10d),[_0x532822[_0x4de55f(0x128)],'marketplace',_0x532822['hlCqD'],_0x532822['nIfRr']],{'stdio':_0x4de55f(0x110),'shell':_0x532822['WAfNI'](process[_0x4de55f(0x123)],_0x532822['GnvdW'])});_0xdd36af['on'](_0x532822['XqhmB'],_0x2702b6=>{const _0x2de97f=_0x4de55f;_0x188f9f[_0x2de97f(0x107)](_0x12898,_0x2702b6===0x0);}),_0xdd36af['on']('error',()=>{_0x12898(![]);});});}export async function clean(){const _0x5ba769=_0x34de3f,_0x54a681={'kkiIA':_0x5ba769(0x10b),'TFpOc':function(_0x4721e5){return _0x4721e5();},'YEEIT':function(_0x21f2ee,_0xc4199d){return _0x21f2ee(_0xc4199d);},'HZAkl':function(_0x5bf2c1,_0x16ec9a){return _0x5bf2c1(_0x16ec9a);},'vRNtW':function(_0x16fb0e,_0x39f940){return _0x16fb0e(_0x39f940);},'JkTIt':function(_0x444960,_0x38feb7,_0x243eef){return _0x444960(_0x38feb7,_0x243eef);},'HfzGX':_0x5ba769(0x118),'NCLru':function(_0x3336e0,_0x1860a7,_0x31ea6e){return _0x3336e0(_0x1860a7,_0x31ea6e);},'plYti':function(_0x142ac9,_0x3bee43){return _0x142ac9(_0x3bee43);},'UNjLd':function(_0x2a5281,_0x35c69c){return _0x2a5281(_0x35c69c);},'bYnEL':_0x5ba769(0x132),'Cljjy':function(_0x5c7901,_0x4ba037){return _0x5c7901(_0x4ba037);},'uPNHE':_0x5ba769(0x130),'PvfGl':function(_0x5429da,_0x18cfa2){return _0x5429da(_0x18cfa2);},'nwJXm':function(_0x3e4a2f){return _0x3e4a2f();},'VgePv':function(_0x1735c1,_0x4f9a77){return _0x1735c1(_0x4f9a77);},'uXkRA':'โœ“\x20Removed\x20trailhead\x20marketplace','rfozg':'\x0aโœ…\x20Cleanup\x20complete!\x0a','hXKHC':'Nothing\x20to\x20clean\x20up.\x0a'};console['log'](_0x54a681[_0x5ba769(0x133)]);let _0x49ecd0=![];try{await _0x54a681[_0x5ba769(0x119)](deleteAllCredentials),console[_0x5ba769(0x11f)]('โœ“\x20Removed\x20stored\x20credentials'),_0x49ecd0=!![];}catch{}const _0x578e1b=_0x54a681[_0x5ba769(0x119)](getCacheFile);_0x54a681['YEEIT'](existsSync,_0x578e1b)&&(await _0x54a681['HZAkl'](rm,_0x578e1b),_0x49ecd0=!![]);const _0xe57705=_0x54a681['TFpOc'](getRangerDir);_0x54a681[_0x5ba769(0x126)](existsSync,_0xe57705)&&(await _0x54a681[_0x5ba769(0x127)](rm,_0xe57705,{'recursive':!![]}),console[_0x5ba769(0x11f)](_0x54a681['HfzGX']),_0x49ecd0=!![]);const _0xafb522=_0x54a681['TFpOc'](getProjectSkillsDir);for(const _0x43ac24 of skillsToRemove){const _0xc84a1b=_0x54a681['NCLru'](join,_0xafb522,_0x43ac24);_0x54a681[_0x5ba769(0x129)](existsSync,_0xc84a1b)&&(await rm(_0xc84a1b,{'recursive':!![]}),console['log']('โœ“\x20Removed\x20project\x20skill:\x20'+_0x43ac24),_0x49ecd0=!![]);}const _0x48cf29=getUserSkillsDir();for(const _0x10887a of skillsToRemove){const _0x1c865e=join(_0x48cf29,_0x10887a);_0x54a681[_0x5ba769(0x11d)](existsSync,_0x1c865e)&&(await rm(_0x1c865e,{'recursive':!![]}),console['log'](_0x5ba769(0x114)+_0x10887a),_0x49ecd0=!![]);}const _0x4d1b5e=getOpencodeSkillsDir(_0x54a681[_0x5ba769(0x116)]);for(const _0x94a21b of skillsToRemove){const _0x39aa9c=_0x54a681['JkTIt'](join,_0x4d1b5e,_0x94a21b);_0x54a681[_0x5ba769(0x112)](existsSync,_0x39aa9c)&&(await rm(_0x39aa9c,{'recursive':!![]}),console['log'](_0x5ba769(0x139)+_0x94a21b),_0x49ecd0=!![]);}const _0x51a2f9=getOpencodeSkillsDir(_0x54a681[_0x5ba769(0x10c)]);for(const _0x1a3754 of skillsToRemove){const _0x33b5d6=join(_0x51a2f9,_0x1a3754);existsSync(_0x33b5d6)&&(await rm(_0x33b5d6,{'recursive':!![]}),console[_0x5ba769(0x11f)](_0x5ba769(0x11b)+_0x1a3754),_0x49ecd0=!![]);}const _0xf7efc3=join(getOpencodeConfigDir(_0x5ba769(0x132)),'opencode.json');await removeOpencodePluginConfig(_0xf7efc3)&&(console[_0x5ba769(0x11f)]('โœ“\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)'),_0x49ecd0=!![]);const _0x3f467b=join(_0x54a681[_0x5ba769(0x125)](getOpencodeConfigDir,'user'),'opencode.json');await _0x54a681[_0x5ba769(0x13c)](removeOpencodePluginConfig,_0x3f467b)&&(console[_0x5ba769(0x11f)](_0x5ba769(0x113)),_0x49ecd0=!![]);const _0x462978=await _0x54a681['nwJXm'](uninstallClaudePlugin);_0x462978&&(console['log'](_0x5ba769(0x115)),_0x49ecd0=!![]);const _0x3a3016=await _0x54a681['VgePv'](uninstallClaudePlugin,_0x54a681['bYnEL']);_0x3a3016&&(console[_0x5ba769(0x11f)]('โœ“\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)'),_0x49ecd0=!![]);const _0x38f6b8=await _0x54a681[_0x5ba769(0x119)](removeMarketplace);_0x38f6b8&&(console[_0x5ba769(0x11f)](_0x54a681[_0x5ba769(0x109)]),_0x49ecd0=!![]),_0x49ecd0?console['log'](_0x54a681['rfozg']):console[_0x5ba769(0x11f)](_0x54a681['hXKHC']);}